Skip to content

Commit c939aa0

Browse files
chore: generate
1 parent 9b8e356 commit c939aa0

4 files changed

Lines changed: 87 additions & 85 deletions

File tree

‎packages/opencode/test/effect/app-graph-types.test.ts‎

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,26 @@ class NetworkError {
1919
}
2020

2121
const aImplementation = Layer.succeed(A, A.of({ value: "a" }))
22-
const bImplementation = Layer.effect(B, Effect.gen(function* () {
23-
yield* A
24-
return B.of({ value: "b" })
25-
}))
26-
const cImplementation = Layer.effect(C, Effect.gen(function* () {
27-
yield* A
28-
yield* B
29-
return C.of({ value: "c" })
30-
}))
22+
const bImplementation = Layer.effect(
23+
B,
24+
Effect.gen(function* () {
25+
yield* A
26+
return B.of({ value: "b" })
27+
}),
28+
)
29+
const cImplementation = Layer.effect(
30+
C,
31+
Effect.gen(function* () {
32+
yield* A
33+
yield* B
34+
return C.of({ value: "c" })
35+
}),
36+
)
3137
const failingAImplementation = Layer.effect(A, Effect.fail(new LayerError()))
3238
const notFoundAImplementation = Layer.effect(A, Effect.fail(new NotFoundError()))
3339
const diskAImplementation = Layer.effect(A, Effect.fail(new DiskError()))
3440
const networkAImplementation = Layer.effect(A, Effect.fail(new NetworkError()))
35-
const notFoundOrDiskAImplementation = Layer.effect(
36-
A,
37-
Effect.fail(new NotFoundError() as NotFoundError | DiskError),
38-
)
41+
const notFoundOrDiskAImplementation = Layer.effect(A, Effect.fail(new NotFoundError() as NotFoundError | DiskError))
3942

4043
type Equal<A, B> = (<T>() => T extends A ? 1 : 2) extends <T>() => T extends B ? 1 : 2 ? true : false
4144
type Assert<T extends true> = T

‎packages/opencode/test/effect/app-graph.test.ts‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,7 @@ describe("app graph", () => {
141141
class ReplacementConfig extends Context.Service<ReplacementConfig, { readonly value: string }>()(
142142
"test/ReplacementConfig",
143143
) {}
144-
const replacementConfig = node(
145-
Layer.succeed(ReplacementConfig, ReplacementConfig.of({ value: "replacement" })),
146-
[],
147-
)
144+
const replacementConfig = node(Layer.succeed(ReplacementConfig, ReplacementConfig.of({ value: "replacement" })), [])
148145
const replacement = node(
149146
Layer.effect(
150147
Value,
@@ -175,7 +172,9 @@ describe("app graph", () => {
175172
[],
176173
)
177174

178-
await Effect.runPromise(Effect.provide(Greeting, build(greeting, { replacements: [replace(unreachable, replacement)] })))
175+
await Effect.runPromise(
176+
Effect.provide(Greeting, build(greeting, { replacements: [replace(unreachable, replacement)] })),
177+
)
179178

180179
expect(acquisitions).toBe(0)
181180
})

‎packages/sdk/js/src/v2/gen/types.gen.ts‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ export type Event =
7979
| EventCommandExecuted
8080
| EventProjectDirectoriesUpdated
8181
| EventProjectUpdated
82+
| EventVcsBranchUpdated
8283
| EventQuestionAsked
8384
| EventQuestionReplied
8485
| EventQuestionRejected
8586
| EventSessionStatus
8687
| EventSessionIdle
8788
| EventSessionCompacted
88-
| EventVcsBranchUpdated
8989
| EventWorktreeReady
9090
| EventWorktreeFailed
9191
| EventWorkspaceReady
@@ -1522,6 +1522,13 @@ export type GlobalEvent = {
15221522
sandboxes: Array<string>
15231523
}
15241524
}
1525+
| {
1526+
id: string
1527+
type: "vcs.branch.updated"
1528+
properties: {
1529+
branch?: string
1530+
}
1531+
}
15251532
| {
15261533
id: string
15271534
type: "question.asked"
@@ -1574,13 +1581,6 @@ export type GlobalEvent = {
15741581
sessionID: string
15751582
}
15761583
}
1577-
| {
1578-
id: string
1579-
type: "vcs.branch.updated"
1580-
properties: {
1581-
branch?: string
1582-
}
1583-
}
15841584
| {
15851585
id: string
15861586
type: "worktree.ready"
@@ -5103,6 +5103,14 @@ export type EventProjectUpdated = {
51035103
}
51045104
}
51055105

5106+
export type EventVcsBranchUpdated = {
5107+
id: string
5108+
type: "vcs.branch.updated"
5109+
properties: {
5110+
branch?: string
5111+
}
5112+
}
5113+
51065114
export type EventQuestionAsked = {
51075115
id: string
51085116
type: "question.asked"
@@ -5161,14 +5169,6 @@ export type EventSessionCompacted = {
51615169
}
51625170
}
51635171

5164-
export type EventVcsBranchUpdated = {
5165-
id: string
5166-
type: "vcs.branch.updated"
5167-
properties: {
5168-
branch?: string
5169-
}
5170-
}
5171-
51725172
export type EventWorktreeReady = {
51735173
id: string
51745174
type: "worktree.ready"

‎packages/sdk/openapi.json‎

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -12481,6 +12481,9 @@
1248112481
{
1248212482
"$ref": "#/components/schemas/EventProjectUpdated"
1248312483
},
12484+
{
12485+
"$ref": "#/components/schemas/EventVcsBranchUpdated"
12486+
},
1248412487
{
1248512488
"$ref": "#/components/schemas/EventQuestionAsked"
1248612489
},
@@ -12499,9 +12502,6 @@
1249912502
{
1250012503
"$ref": "#/components/schemas/EventSessionCompacted"
1250112504
},
12502-
{
12503-
"$ref": "#/components/schemas/EventVcsBranchUpdated"
12504-
},
1250512505
{
1250612506
"$ref": "#/components/schemas/EventWorktreeReady"
1250712507
},
@@ -17104,6 +17104,30 @@
1710417104
"required": ["id", "type", "properties"],
1710517105
"additionalProperties": false
1710617106
},
17107+
{
17108+
"type": "object",
17109+
"properties": {
17110+
"id": {
17111+
"type": "string",
17112+
"pattern": "^evt_"
17113+
},
17114+
"type": {
17115+
"type": "string",
17116+
"enum": ["vcs.branch.updated"]
17117+
},
17118+
"properties": {
17119+
"type": "object",
17120+
"properties": {
17121+
"branch": {
17122+
"type": "string"
17123+
}
17124+
},
17125+
"additionalProperties": false
17126+
}
17127+
},
17128+
"required": ["id", "type", "properties"],
17129+
"additionalProperties": false
17130+
},
1710717131
{
1710817132
"type": "object",
1710917133
"properties": {
@@ -17291,30 +17315,6 @@
1729117315
"required": ["id", "type", "properties"],
1729217316
"additionalProperties": false
1729317317
},
17294-
{
17295-
"type": "object",
17296-
"properties": {
17297-
"id": {
17298-
"type": "string",
17299-
"pattern": "^evt_"
17300-
},
17301-
"type": {
17302-
"type": "string",
17303-
"enum": ["vcs.branch.updated"]
17304-
},
17305-
"properties": {
17306-
"type": "object",
17307-
"properties": {
17308-
"branch": {
17309-
"type": "string"
17310-
}
17311-
},
17312-
"additionalProperties": false
17313-
}
17314-
},
17315-
"required": ["id", "type", "properties"],
17316-
"additionalProperties": false
17317-
},
1731817318
{
1731917319
"type": "object",
1732017320
"properties": {
@@ -28341,6 +28341,30 @@
2834128341
"required": ["id", "type", "properties"],
2834228342
"additionalProperties": false
2834328343
},
28344+
"EventVcsBranchUpdated": {
28345+
"type": "object",
28346+
"properties": {
28347+
"id": {
28348+
"type": "string",
28349+
"pattern": "^evt_"
28350+
},
28351+
"type": {
28352+
"type": "string",
28353+
"enum": ["vcs.branch.updated"]
28354+
},
28355+
"properties": {
28356+
"type": "object",
28357+
"properties": {
28358+
"branch": {
28359+
"type": "string"
28360+
}
28361+
},
28362+
"additionalProperties": false
28363+
}
28364+
},
28365+
"required": ["id", "type", "properties"],
28366+
"additionalProperties": false
28367+
},
2834428368
"EventQuestionAsked": {
2834528369
"type": "object",
2834628370
"properties": {
@@ -28528,30 +28552,6 @@
2852828552
"required": ["id", "type", "properties"],
2852928553
"additionalProperties": false
2853028554
},
28531-
"EventVcsBranchUpdated": {
28532-
"type": "object",
28533-
"properties": {
28534-
"id": {
28535-
"type": "string",
28536-
"pattern": "^evt_"
28537-
},
28538-
"type": {
28539-
"type": "string",
28540-
"enum": ["vcs.branch.updated"]
28541-
},
28542-
"properties": {
28543-
"type": "object",
28544-
"properties": {
28545-
"branch": {
28546-
"type": "string"
28547-
}
28548-
},
28549-
"additionalProperties": false
28550-
}
28551-
},
28552-
"required": ["id", "type", "properties"],
28553-
"additionalProperties": false
28554-
},
2855528555
"EventWorktreeReady": {
2855628556
"type": "object",
2855728557
"properties": {

0 commit comments

Comments
 (0)