@opencode-ai/client 0.0.0-dev-17471

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +27 -0
  2. package/dist/contract.d.ts +1 -0
  3. package/dist/contract.js +1 -0
  4. package/dist/effect/api/api.d.ts +2155 -0
  5. package/dist/effect/api/api.js +0 -0
  6. package/dist/effect/api.d.ts +7 -0
  7. package/dist/effect/api.js +0 -0
  8. package/dist/effect/generated/client-error.d.ts +7 -0
  9. package/dist/effect/generated/client-error.js +5 -0
  10. package/dist/effect/generated/client.d.ts +2208 -0
  11. package/dist/effect/generated/client.js +460 -0
  12. package/dist/effect/generated/index.d.ts +2 -0
  13. package/dist/effect/generated/index.js +2 -0
  14. package/dist/effect/index.d.ts +32 -0
  15. package/dist/effect/index.js +28 -0
  16. package/dist/effect/service.d.ts +78 -0
  17. package/dist/effect/service.js +286 -0
  18. package/dist/promise/api.d.ts +18 -0
  19. package/dist/promise/api.js +0 -0
  20. package/dist/promise/generated/client-error.d.ts +6 -0
  21. package/dist/promise/generated/client-error.js +8 -0
  22. package/dist/promise/generated/client.d.ts +228 -0
  23. package/dist/promise/generated/client.js +1205 -0
  24. package/dist/promise/generated/index.d.ts +3 -0
  25. package/dist/promise/generated/index.js +3 -0
  26. package/dist/promise/generated/types.d.ts +7807 -0
  27. package/dist/promise/generated/types.js +26 -0
  28. package/dist/promise/index.d.ts +4 -0
  29. package/dist/promise/index.js +1 -0
  30. package/dist/promise/service.d.ts +26 -0
  31. package/dist/promise/service.js +273 -0
  32. package/dist/service-contender.d.ts +11 -0
  33. package/dist/service-contender.js +52 -0
  34. package/dist/service-timing.d.ts +13 -0
  35. package/dist/service-timing.js +19 -0
  36. package/dist/service-version.d.ts +2 -0
  37. package/dist/service-version.js +9 -0
  38. package/dist/service.d.ts +48 -0
  39. package/dist/service.js +0 -0
  40. package/package.json +75 -0
@@ -0,0 +1,2208 @@
1
+ import { Effect, Stream, Schema } from "effect";
2
+ import { Sse } from "effect/unstable/encoding";
3
+ import { HttpClientError } from "effect/unstable/http";
4
+ import type { Endpoint0_0Output, Endpoint0_1Input, Endpoint0_1Output, Endpoint1_0Output, Endpoint2_0Input, Endpoint3_0Input, Endpoint3_0Output, Endpoint3_1Input, Endpoint3_1Output, Endpoint4_0Input, Endpoint4_0Output, Endpoint5_0Input, Endpoint5_0Output, Endpoint5_1Input, Endpoint5_2Input, Endpoint5_3Input, Endpoint5_3Output, Endpoint5_4Output, Endpoint5_5Input, Endpoint5_6Input, Endpoint5_7Input, Endpoint5_8Input, Endpoint5_9Input, Endpoint5_10Input, Endpoint5_11Input, Endpoint5_12Input, Endpoint5_13Input, Endpoint5_14Input, Endpoint5_15Input, Endpoint5_16Input, Endpoint5_17Input, Endpoint5_18Input, Endpoint5_19Input, Endpoint5_20Input, Endpoint5_21Input, Endpoint5_22Input, Endpoint5_22Output, Endpoint5_23Input, Endpoint5_23Output, Endpoint5_24Input, Endpoint5_25Input, Endpoint5_26Input, Endpoint5_27Input, Endpoint5_27Output, Endpoint5_28Input, Endpoint5_29Input, Endpoint5_30Input, Endpoint5_30Output, Endpoint5_31Input, Endpoint5_31Output, Endpoint5_32Input, Endpoint5_33Input, Endpoint5_34Input, Endpoint6_0Input, Endpoint6_0Output, Endpoint7_0Input, Endpoint7_0Output, Endpoint7_1Input, Endpoint7_1Output, Endpoint8_0Input, Endpoint8_0Output, Endpoint9_0Input, Endpoint9_0Output, Endpoint9_1Input, Endpoint9_1Output, Endpoint10_0Input, Endpoint10_0Output, Endpoint10_1Input, Endpoint10_1Output, Endpoint10_2Input, Endpoint10_3Input, Endpoint10_4Input, Endpoint10_4Output, Endpoint10_5Input, Endpoint10_5Output, Endpoint10_6Input, Endpoint10_7Input, Endpoint10_8Input, Endpoint10_8Output, Endpoint10_9Input, Endpoint10_9Output, Endpoint10_10Input, Endpoint11_0Input, Endpoint11_0Output, Endpoint11_1Input, Endpoint11_2Input, Endpoint11_3Input, Endpoint11_4Input, Endpoint11_5Input, Endpoint11_5Output, Endpoint12_0Input, Endpoint12_1Input, Endpoint13_0Output, Endpoint13_1Input, Endpoint14_0Input, Endpoint14_0Output, Endpoint14_1Input, Endpoint14_1Output, Endpoint14_2Input, Endpoint14_3Input, Endpoint14_4Input, Endpoint14_5Input, Endpoint14_6Input, Endpoint15_0Input, Endpoint15_0Output, Endpoint15_1Input, Endpoint15_1Output, Endpoint15_2Input, Endpoint15_3Input, Endpoint15_3Output, Endpoint15_4Input, Endpoint15_4Output, Endpoint15_5Input, Endpoint15_6Input, Endpoint16_0Input, Endpoint16_0Output, Endpoint16_1Input, Endpoint16_1Output, Endpoint17_0Input, Endpoint17_0Output, Endpoint18_0Input, Endpoint18_0Output, Endpoint20_0Input, Endpoint20_0Output, Endpoint20_1Input, Endpoint20_1Output, Endpoint20_2Input, Endpoint20_2Output, Endpoint20_3Input, Endpoint20_3Output, Endpoint20_4Input, Endpoint21_0Input, Endpoint21_0Output, Endpoint21_1Input, Endpoint21_1Output, Endpoint21_2Input, Endpoint21_2Output, Endpoint21_3Input, Endpoint21_3Output, Endpoint21_4Input, Endpoint21_4Output, Endpoint21_5Input, Endpoint22_0Input, Endpoint22_0Output, Endpoint23_0Input, Endpoint23_1Input, Endpoint23_2Input, Endpoint23_3Input, Endpoint24_0Input, Endpoint24_0Output, Endpoint24_1Input, Endpoint24_1Output, Endpoint24_2Input, Endpoint24_2Output, Endpoint25_0Output, Endpoint25_1Input, Endpoint26_0Output, Endpoint27_0Input, Endpoint27_0Output, Endpoint27_1Input, Endpoint27_1Output, Endpoint28_0Input, Endpoint28_0Output } from "../api/api.js";
5
+ import { ClientError } from "./client-error.js";
6
+ export declare const make: (options?: {
7
+ readonly baseUrl?: URL | string;
8
+ }) => Effect.Effect<{
9
+ health: {
10
+ get: () => Effect.Effect<Endpoint0_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
11
+ stop: (input: Endpoint0_1Input) => Effect.Effect<Endpoint0_1Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
12
+ };
13
+ server: {
14
+ get: () => Effect.Effect<Endpoint1_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
15
+ };
16
+ location: {
17
+ get: (input?: Endpoint2_0Input) => Effect.Effect<import("@opencode-ai/schema/location").Info, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
18
+ };
19
+ agent: {
20
+ list: (input?: Endpoint3_0Input) => Effect.Effect<Endpoint3_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
21
+ get: (input: Endpoint3_1Input) => Effect.Effect<Endpoint3_1Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").AgentNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
22
+ };
23
+ plugin: {
24
+ list: (input?: Endpoint4_0Input) => Effect.Effect<Endpoint4_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
25
+ };
26
+ session: {
27
+ list: (input?: Endpoint5_0Input) => Effect.Effect<Endpoint5_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").InvalidCursorError | ClientError | HttpClientError.HttpClientError, never>;
28
+ create: (input?: Endpoint5_1Input) => Effect.Effect<import("@opencode-ai/schema/session").Info, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
29
+ import: (input: Endpoint5_2Input) => Effect.Effect<import("@opencode-ai/schema/session").Info, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | ClientError | HttpClientError.HttpClientError, never>;
30
+ export: (input: Endpoint5_3Input) => Effect.Effect<Endpoint5_3Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").UnknownError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
31
+ active: () => Effect.Effect<Endpoint5_4Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
32
+ get: (input: Endpoint5_5Input) => Effect.Effect<import("@opencode-ai/schema/session").Info, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
33
+ remove: (input: Endpoint5_6Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
34
+ fork: (input: Endpoint5_7Input) => Effect.Effect<import("@opencode-ai/schema/session").Info, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | import("@opencode-ai/protocol/errors").MessageNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
35
+ switchAgent: (input: Endpoint5_8Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
36
+ switchModel: (input: Endpoint5_9Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
37
+ rename: (input: Endpoint5_10Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
38
+ move: (input: Endpoint5_11Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
39
+ prompt: (input: Endpoint5_12Input) => Effect.Effect<import("@opencode-ai/schema/session-inbox").User, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
40
+ command: (input: Endpoint5_13Input) => Effect.Effect<import("@opencode-ai/schema/session-inbox").User, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | import("@opencode-ai/protocol/errors").CommandNotFoundError | import("@opencode-ai/protocol/errors").CommandEvaluationError | ClientError | HttpClientError.HttpClientError, never>;
41
+ skill: (input: Endpoint5_14Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | import("@opencode-ai/protocol/errors").SkillNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
42
+ synthetic: (input: Endpoint5_15Input) => Effect.Effect<import("@opencode-ai/schema/session-inbox").Synthetic, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
43
+ shell: (input: Endpoint5_16Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
44
+ compact: (input: Endpoint5_17Input) => Effect.Effect<import("@opencode-ai/schema/session-inbox").Compaction, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
45
+ wait: (input: Endpoint5_18Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ServiceUnavailableError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
46
+ revert: {
47
+ stage: (input: Endpoint5_19Input) => Effect.Effect<import("@opencode-ai/schema/session-revert").Revert, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionBusyError | import("@opencode-ai/protocol/errors").UnknownError | import("@opencode-ai/protocol/errors").SessionNotFoundError | import("@opencode-ai/protocol/errors").MessageNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
48
+ clear: (input: Endpoint5_20Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionBusyError | import("@opencode-ai/protocol/errors").UnknownError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
49
+ commit: (input: Endpoint5_21Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionBusyError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
50
+ };
51
+ context: (input: Endpoint5_22Input) => Effect.Effect<Endpoint5_22Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").UnknownError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
52
+ inbox: {
53
+ list: (input: Endpoint5_23Input) => Effect.Effect<Endpoint5_23Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
54
+ cancel: (input: Endpoint5_24Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
55
+ steer: (input: Endpoint5_25Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
56
+ queue: (input: Endpoint5_26Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
57
+ };
58
+ instructions: {
59
+ entry: {
60
+ list: (input: Endpoint5_27Input) => Effect.Effect<Endpoint5_27Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
61
+ put: (input: Endpoint5_28Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | import("@opencode-ai/schema/instruction-entry").ValueTooLargeError | ClientError | HttpClientError.HttpClientError, never>;
62
+ remove: (input: Endpoint5_29Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
63
+ };
64
+ };
65
+ generate: (input: Endpoint5_30Input) => Effect.Effect<Endpoint5_30Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ServiceUnavailableError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
66
+ log: (input: Endpoint5_31Input) => Stream.Stream<Endpoint5_31Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError | Sse.Retry, never>;
67
+ interrupt: (input: Endpoint5_32Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
68
+ background: (input: Endpoint5_33Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
69
+ message: (input: Endpoint5_34Input) => Effect.Effect<import("@opencode-ai/schema/session-message").Info, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | import("@opencode-ai/protocol/errors").MessageNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
70
+ };
71
+ message: {
72
+ list: (input: Endpoint6_0Input) => Effect.Effect<Endpoint6_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").UnknownError | import("@opencode-ai/protocol/errors").SessionNotFoundError | import("@opencode-ai/protocol/errors").InvalidCursorError | ClientError | HttpClientError.HttpClientError, never>;
73
+ };
74
+ model: {
75
+ list: (input?: Endpoint7_0Input) => Effect.Effect<Endpoint7_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ServiceUnavailableError | ClientError | HttpClientError.HttpClientError, never>;
76
+ default: (input?: Endpoint7_1Input) => Effect.Effect<Endpoint7_1Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ServiceUnavailableError | ClientError | HttpClientError.HttpClientError, never>;
77
+ };
78
+ generate: {
79
+ text: (input: Endpoint8_0Input) => Effect.Effect<Endpoint8_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ServiceUnavailableError | ClientError | HttpClientError.HttpClientError, never>;
80
+ };
81
+ provider: {
82
+ list: (input?: Endpoint9_0Input) => Effect.Effect<Endpoint9_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ServiceUnavailableError | ClientError | HttpClientError.HttpClientError, never>;
83
+ get: (input: Endpoint9_1Input) => Effect.Effect<Endpoint9_1Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ServiceUnavailableError | import("@opencode-ai/protocol/errors").ProviderNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
84
+ };
85
+ integration: {
86
+ list: (input?: Endpoint10_0Input) => Effect.Effect<Endpoint10_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
87
+ get: (input: Endpoint10_1Input) => Effect.Effect<Endpoint10_1Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
88
+ wellknown: {
89
+ add: (input: Endpoint10_2Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
90
+ };
91
+ connect: {
92
+ key: (input: Endpoint10_3Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
93
+ };
94
+ oauth: {
95
+ connect: (input: Endpoint10_4Input) => Effect.Effect<Endpoint10_4Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
96
+ status: (input: Endpoint10_5Input) => Effect.Effect<Endpoint10_5Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
97
+ complete: (input: Endpoint10_6Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
98
+ cancel: (input: Endpoint10_7Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
99
+ };
100
+ command: {
101
+ connect: (input: Endpoint10_8Input) => Effect.Effect<Endpoint10_8Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
102
+ status: (input: Endpoint10_9Input) => Effect.Effect<Endpoint10_9Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
103
+ cancel: (input: Endpoint10_10Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
104
+ };
105
+ };
106
+ mcp: {
107
+ list: (input?: Endpoint11_0Input) => Effect.Effect<Endpoint11_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
108
+ add: (input: Endpoint11_1Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
109
+ remove: (input: Endpoint11_2Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").McpServerNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
110
+ connect: (input: Endpoint11_3Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").McpServerNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
111
+ disconnect: (input: Endpoint11_4Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").McpServerNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
112
+ resource: {
113
+ catalog: (input?: Endpoint11_5Input) => Effect.Effect<Endpoint11_5Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
114
+ };
115
+ };
116
+ credential: {
117
+ update: (input: Endpoint12_0Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
118
+ remove: (input: Endpoint12_1Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
119
+ };
120
+ project: {
121
+ list: () => Effect.Effect<Endpoint13_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
122
+ current: (input?: Endpoint13_1Input) => Effect.Effect<import("@opencode-ai/schema/project").Current, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
123
+ };
124
+ form: {
125
+ request: {
126
+ list: (input?: Endpoint14_0Input) => Effect.Effect<Endpoint14_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
127
+ };
128
+ list: (input: Endpoint14_1Input) => Effect.Effect<Endpoint14_1Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
129
+ create: (input: Endpoint14_2Input) => Effect.Effect<import("@opencode-ai/schema/form").Info, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ConflictError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
130
+ get: (input: Endpoint14_3Input) => Effect.Effect<import("@opencode-ai/schema/form").Info, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | import("@opencode-ai/protocol/errors").FormNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
131
+ state: (input: Endpoint14_4Input) => Effect.Effect<{
132
+ readonly status: "pending";
133
+ } | {
134
+ readonly status: "answered";
135
+ readonly answer: {
136
+ readonly [x: string]: string | number | boolean | readonly string[];
137
+ };
138
+ } | {
139
+ readonly status: "cancelled";
140
+ }, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | import("@opencode-ai/protocol/errors").FormNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
141
+ reply: (input: Endpoint14_5Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | import("@opencode-ai/protocol/errors").FormNotFoundError | import("@opencode-ai/protocol/errors").FormAlreadySettledError | import("@opencode-ai/protocol/errors").FormInvalidAnswerError | ClientError | HttpClientError.HttpClientError, never>;
142
+ cancel: (input: Endpoint14_6Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | import("@opencode-ai/protocol/errors").FormNotFoundError | import("@opencode-ai/protocol/errors").FormAlreadySettledError | ClientError | HttpClientError.HttpClientError, never>;
143
+ };
144
+ permission: {
145
+ request: {
146
+ list: (input?: Endpoint15_0Input) => Effect.Effect<Endpoint15_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
147
+ };
148
+ saved: {
149
+ list: (input?: Endpoint15_1Input) => Effect.Effect<Endpoint15_1Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
150
+ remove: (input: Endpoint15_2Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
151
+ };
152
+ create: (input: Endpoint15_3Input) => Effect.Effect<Endpoint15_3Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
153
+ list: (input: Endpoint15_4Input) => Effect.Effect<Endpoint15_4Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
154
+ get: (input: Endpoint15_5Input) => Effect.Effect<import("@opencode-ai/schema/permission").Request, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | import("@opencode-ai/protocol/errors").PermissionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
155
+ reply: (input: Endpoint15_6Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").SessionNotFoundError | import("@opencode-ai/protocol/errors").PermissionNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
156
+ };
157
+ file: {
158
+ list: (input?: Endpoint16_0Input) => Effect.Effect<Endpoint16_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
159
+ find: (input: Endpoint16_1Input) => Effect.Effect<Endpoint16_1Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
160
+ };
161
+ command: {
162
+ list: (input?: Endpoint17_0Input) => Effect.Effect<Endpoint17_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
163
+ };
164
+ skill: {
165
+ list: (input?: Endpoint18_0Input) => Effect.Effect<Endpoint18_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
166
+ };
167
+ event: {
168
+ subscribe: () => Stream.Stream<{
169
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
170
+ readonly data: {};
171
+ readonly type: "skill.updated";
172
+ readonly created: number;
173
+ readonly location?: {
174
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
175
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
176
+ } | undefined;
177
+ readonly metadata?: {
178
+ readonly [x: string]: unknown;
179
+ } | undefined;
180
+ } | {
181
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
182
+ readonly data: {
183
+ readonly form: {
184
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
185
+ readonly sessionID: string;
186
+ readonly title: string;
187
+ readonly fields: readonly [{
188
+ readonly type: "string";
189
+ readonly key: string;
190
+ readonly required?: boolean | undefined;
191
+ readonly description?: string | undefined;
192
+ readonly format?: "email" | "uri" | "date" | "date-time" | undefined;
193
+ readonly minLength?: number | undefined;
194
+ readonly maxLength?: number | undefined;
195
+ readonly pattern?: string | undefined;
196
+ readonly placeholder?: string | undefined;
197
+ readonly default?: string | undefined;
198
+ readonly options?: readonly {
199
+ readonly value: string;
200
+ readonly label: string;
201
+ readonly description?: string | undefined;
202
+ }[] | undefined;
203
+ readonly custom?: boolean | undefined;
204
+ readonly title?: string | undefined;
205
+ readonly when?: readonly {
206
+ readonly key: string;
207
+ readonly op: "eq" | "neq";
208
+ readonly value: string | number | boolean;
209
+ }[] | undefined;
210
+ } | {
211
+ readonly type: "number";
212
+ readonly key: string;
213
+ readonly required?: boolean | undefined;
214
+ readonly description?: string | undefined;
215
+ readonly default?: number | undefined;
216
+ readonly title?: string | undefined;
217
+ readonly when?: readonly {
218
+ readonly key: string;
219
+ readonly op: "eq" | "neq";
220
+ readonly value: string | number | boolean;
221
+ }[] | undefined;
222
+ readonly minimum?: number | undefined;
223
+ readonly maximum?: number | undefined;
224
+ } | {
225
+ readonly type: "integer";
226
+ readonly key: string;
227
+ readonly required?: boolean | undefined;
228
+ readonly description?: string | undefined;
229
+ readonly default?: number | undefined;
230
+ readonly title?: string | undefined;
231
+ readonly when?: readonly {
232
+ readonly key: string;
233
+ readonly op: "eq" | "neq";
234
+ readonly value: string | number | boolean;
235
+ }[] | undefined;
236
+ readonly minimum?: number | undefined;
237
+ readonly maximum?: number | undefined;
238
+ } | {
239
+ readonly type: "boolean";
240
+ readonly key: string;
241
+ readonly required?: boolean | undefined;
242
+ readonly description?: string | undefined;
243
+ readonly default?: boolean | undefined;
244
+ readonly title?: string | undefined;
245
+ readonly when?: readonly {
246
+ readonly key: string;
247
+ readonly op: "eq" | "neq";
248
+ readonly value: string | number | boolean;
249
+ }[] | undefined;
250
+ } | {
251
+ readonly type: "multiselect";
252
+ readonly key: string;
253
+ readonly options: readonly {
254
+ readonly value: string;
255
+ readonly label: string;
256
+ readonly description?: string | undefined;
257
+ }[];
258
+ readonly required?: boolean | undefined;
259
+ readonly description?: string | undefined;
260
+ readonly default?: readonly string[] | undefined;
261
+ readonly custom?: boolean | undefined;
262
+ readonly title?: string | undefined;
263
+ readonly when?: readonly {
264
+ readonly key: string;
265
+ readonly op: "eq" | "neq";
266
+ readonly value: string | number | boolean;
267
+ }[] | undefined;
268
+ readonly minItems?: number | undefined;
269
+ readonly maxItems?: number | undefined;
270
+ } | {
271
+ readonly type: "external";
272
+ readonly url: string;
273
+ readonly key: string;
274
+ readonly description?: string | undefined;
275
+ readonly title?: string | undefined;
276
+ }, ...({
277
+ readonly type: "string";
278
+ readonly key: string;
279
+ readonly required?: boolean | undefined;
280
+ readonly description?: string | undefined;
281
+ readonly format?: "email" | "uri" | "date" | "date-time" | undefined;
282
+ readonly minLength?: number | undefined;
283
+ readonly maxLength?: number | undefined;
284
+ readonly pattern?: string | undefined;
285
+ readonly placeholder?: string | undefined;
286
+ readonly default?: string | undefined;
287
+ readonly options?: readonly {
288
+ readonly value: string;
289
+ readonly label: string;
290
+ readonly description?: string | undefined;
291
+ }[] | undefined;
292
+ readonly custom?: boolean | undefined;
293
+ readonly title?: string | undefined;
294
+ readonly when?: readonly {
295
+ readonly key: string;
296
+ readonly op: "eq" | "neq";
297
+ readonly value: string | number | boolean;
298
+ }[] | undefined;
299
+ } | {
300
+ readonly type: "number";
301
+ readonly key: string;
302
+ readonly required?: boolean | undefined;
303
+ readonly description?: string | undefined;
304
+ readonly default?: number | undefined;
305
+ readonly title?: string | undefined;
306
+ readonly when?: readonly {
307
+ readonly key: string;
308
+ readonly op: "eq" | "neq";
309
+ readonly value: string | number | boolean;
310
+ }[] | undefined;
311
+ readonly minimum?: number | undefined;
312
+ readonly maximum?: number | undefined;
313
+ } | {
314
+ readonly type: "integer";
315
+ readonly key: string;
316
+ readonly required?: boolean | undefined;
317
+ readonly description?: string | undefined;
318
+ readonly default?: number | undefined;
319
+ readonly title?: string | undefined;
320
+ readonly when?: readonly {
321
+ readonly key: string;
322
+ readonly op: "eq" | "neq";
323
+ readonly value: string | number | boolean;
324
+ }[] | undefined;
325
+ readonly minimum?: number | undefined;
326
+ readonly maximum?: number | undefined;
327
+ } | {
328
+ readonly type: "boolean";
329
+ readonly key: string;
330
+ readonly required?: boolean | undefined;
331
+ readonly description?: string | undefined;
332
+ readonly default?: boolean | undefined;
333
+ readonly title?: string | undefined;
334
+ readonly when?: readonly {
335
+ readonly key: string;
336
+ readonly op: "eq" | "neq";
337
+ readonly value: string | number | boolean;
338
+ }[] | undefined;
339
+ } | {
340
+ readonly type: "multiselect";
341
+ readonly key: string;
342
+ readonly options: readonly {
343
+ readonly value: string;
344
+ readonly label: string;
345
+ readonly description?: string | undefined;
346
+ }[];
347
+ readonly required?: boolean | undefined;
348
+ readonly description?: string | undefined;
349
+ readonly default?: readonly string[] | undefined;
350
+ readonly custom?: boolean | undefined;
351
+ readonly title?: string | undefined;
352
+ readonly when?: readonly {
353
+ readonly key: string;
354
+ readonly op: "eq" | "neq";
355
+ readonly value: string | number | boolean;
356
+ }[] | undefined;
357
+ readonly minItems?: number | undefined;
358
+ readonly maxItems?: number | undefined;
359
+ } | {
360
+ readonly type: "external";
361
+ readonly url: string;
362
+ readonly key: string;
363
+ readonly description?: string | undefined;
364
+ readonly title?: string | undefined;
365
+ })[]];
366
+ readonly metadata?: {
367
+ readonly [x: string]: unknown;
368
+ } | undefined;
369
+ };
370
+ };
371
+ readonly type: "form.created";
372
+ readonly created: number;
373
+ readonly location?: {
374
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
375
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
376
+ } | undefined;
377
+ readonly metadata?: {
378
+ readonly [x: string]: unknown;
379
+ } | undefined;
380
+ } | {
381
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
382
+ readonly data: {
383
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
384
+ readonly sessionID: string;
385
+ readonly answer: {
386
+ readonly [x: string]: string | number | boolean | readonly string[];
387
+ };
388
+ };
389
+ readonly type: "form.replied";
390
+ readonly created: number;
391
+ readonly location?: {
392
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
393
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
394
+ } | undefined;
395
+ readonly metadata?: {
396
+ readonly [x: string]: unknown;
397
+ } | undefined;
398
+ } | {
399
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
400
+ readonly data: {
401
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
402
+ readonly sessionID: string;
403
+ };
404
+ readonly type: "form.cancelled";
405
+ readonly created: number;
406
+ readonly location?: {
407
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
408
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
409
+ } | undefined;
410
+ readonly metadata?: {
411
+ readonly [x: string]: unknown;
412
+ } | undefined;
413
+ } | {
414
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
415
+ readonly data: {};
416
+ readonly type: "integration.updated";
417
+ readonly created: number;
418
+ readonly location?: {
419
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
420
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
421
+ } | undefined;
422
+ readonly metadata?: {
423
+ readonly [x: string]: unknown;
424
+ } | undefined;
425
+ } | {
426
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
427
+ readonly data: {
428
+ readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
429
+ };
430
+ readonly type: "integration.connection.updated";
431
+ readonly created: number;
432
+ readonly location?: {
433
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
434
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
435
+ } | undefined;
436
+ readonly metadata?: {
437
+ readonly [x: string]: unknown;
438
+ } | undefined;
439
+ } | {
440
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
441
+ readonly data: {
442
+ readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
443
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
444
+ readonly action: string;
445
+ readonly resources: readonly string[];
446
+ readonly metadata?: {
447
+ readonly [x: string]: unknown;
448
+ } | undefined;
449
+ readonly save?: readonly string[] | undefined;
450
+ readonly source?: {
451
+ readonly type: "tool";
452
+ readonly messageID: string;
453
+ readonly id: string;
454
+ } | undefined;
455
+ };
456
+ readonly type: "permission.asked";
457
+ readonly created: number;
458
+ readonly location?: {
459
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
460
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
461
+ } | undefined;
462
+ readonly metadata?: {
463
+ readonly [x: string]: unknown;
464
+ } | undefined;
465
+ } | {
466
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
467
+ readonly data: {
468
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
469
+ readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
470
+ readonly reply: "once" | "always" | "reject";
471
+ };
472
+ readonly type: "permission.replied";
473
+ readonly created: number;
474
+ readonly location?: {
475
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
476
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
477
+ } | undefined;
478
+ readonly metadata?: {
479
+ readonly [x: string]: unknown;
480
+ } | undefined;
481
+ } | {
482
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
483
+ readonly data: {};
484
+ readonly type: "agent.updated";
485
+ readonly created: number;
486
+ readonly location?: {
487
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
488
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
489
+ } | undefined;
490
+ readonly metadata?: {
491
+ readonly [x: string]: unknown;
492
+ } | undefined;
493
+ } | {
494
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
495
+ readonly data: {
496
+ readonly info: {
497
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
498
+ readonly metadata: {
499
+ readonly [x: string]: unknown;
500
+ };
501
+ readonly command: string;
502
+ readonly status: "running" | "exited" | "timeout" | "killed";
503
+ readonly time: {
504
+ readonly started: number;
505
+ readonly completed?: number | undefined;
506
+ };
507
+ readonly cwd: string;
508
+ readonly shell: string;
509
+ readonly file: string;
510
+ readonly pid?: number | undefined;
511
+ readonly exit?: number | undefined;
512
+ };
513
+ };
514
+ readonly type: "shell.created";
515
+ readonly created: number;
516
+ readonly location?: {
517
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
518
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
519
+ } | undefined;
520
+ readonly metadata?: {
521
+ readonly [x: string]: unknown;
522
+ } | undefined;
523
+ } | {
524
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
525
+ readonly data: {
526
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
527
+ readonly status: "running" | "exited" | "timeout" | "killed";
528
+ readonly exit?: number | undefined;
529
+ };
530
+ readonly type: "shell.exited";
531
+ readonly created: number;
532
+ readonly location?: {
533
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
534
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
535
+ } | undefined;
536
+ readonly metadata?: {
537
+ readonly [x: string]: unknown;
538
+ } | undefined;
539
+ } | {
540
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
541
+ readonly data: {
542
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
543
+ };
544
+ readonly type: "shell.deleted";
545
+ readonly created: number;
546
+ readonly location?: {
547
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
548
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
549
+ } | undefined;
550
+ readonly metadata?: {
551
+ readonly [x: string]: unknown;
552
+ } | undefined;
553
+ } | {
554
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
555
+ readonly data: {
556
+ readonly location: {
557
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
558
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
559
+ };
560
+ readonly version: string;
561
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
562
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
563
+ readonly slug: string;
564
+ readonly title?: string | undefined;
565
+ readonly model?: {
566
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
567
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
568
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
569
+ } | undefined;
570
+ readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
571
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
572
+ readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
573
+ };
574
+ readonly durable: {
575
+ readonly aggregateID: string;
576
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
577
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
578
+ };
579
+ readonly type: "session.created";
580
+ readonly created: number;
581
+ readonly location?: {
582
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
583
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
584
+ } | undefined;
585
+ readonly metadata?: {
586
+ readonly [x: string]: unknown;
587
+ } | undefined;
588
+ } | {
589
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
590
+ readonly data: {
591
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
592
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
593
+ readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
594
+ };
595
+ readonly durable: {
596
+ readonly aggregateID: string;
597
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
598
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
599
+ };
600
+ readonly type: "session.agent.selected";
601
+ readonly created: number;
602
+ readonly location?: {
603
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
604
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
605
+ } | undefined;
606
+ readonly metadata?: {
607
+ readonly [x: string]: unknown;
608
+ } | undefined;
609
+ } | {
610
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
611
+ readonly data: {
612
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
613
+ readonly model: {
614
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
615
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
616
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
617
+ };
618
+ readonly previous?: {
619
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
620
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
621
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
622
+ } | undefined;
623
+ };
624
+ readonly durable: {
625
+ readonly aggregateID: string;
626
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
627
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
628
+ };
629
+ readonly type: "session.model.selected";
630
+ readonly created: number;
631
+ readonly location?: {
632
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
633
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
634
+ } | undefined;
635
+ readonly metadata?: {
636
+ readonly [x: string]: unknown;
637
+ } | undefined;
638
+ } | {
639
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
640
+ readonly data: {
641
+ readonly location: {
642
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
643
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
644
+ };
645
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
646
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
647
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
648
+ };
649
+ readonly durable: {
650
+ readonly aggregateID: string;
651
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
652
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
653
+ };
654
+ readonly type: "session.moved";
655
+ readonly created: number;
656
+ readonly location?: {
657
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
658
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
659
+ } | undefined;
660
+ readonly metadata?: {
661
+ readonly [x: string]: unknown;
662
+ } | undefined;
663
+ } | {
664
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
665
+ readonly data: {
666
+ readonly title: string;
667
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
668
+ };
669
+ readonly durable: {
670
+ readonly aggregateID: string;
671
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
672
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
673
+ };
674
+ readonly type: "session.renamed";
675
+ readonly created: number;
676
+ readonly location?: {
677
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
678
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
679
+ } | undefined;
680
+ readonly metadata?: {
681
+ readonly [x: string]: unknown;
682
+ } | undefined;
683
+ } | {
684
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
685
+ readonly data: {
686
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
687
+ readonly tokens: {
688
+ readonly input: number;
689
+ readonly output: number;
690
+ readonly reasoning: number;
691
+ readonly cache: {
692
+ readonly read: number;
693
+ readonly write: number;
694
+ };
695
+ };
696
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
697
+ };
698
+ readonly type: "session.usage.updated";
699
+ readonly created: number;
700
+ readonly location?: {
701
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
702
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
703
+ } | undefined;
704
+ readonly metadata?: {
705
+ readonly [x: string]: unknown;
706
+ } | undefined;
707
+ } | {
708
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
709
+ readonly data: {
710
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
711
+ };
712
+ readonly durable: {
713
+ readonly aggregateID: string;
714
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
715
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
716
+ };
717
+ readonly type: "session.deleted";
718
+ readonly created: number;
719
+ readonly location?: {
720
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
721
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
722
+ } | undefined;
723
+ readonly metadata?: {
724
+ readonly [x: string]: unknown;
725
+ } | undefined;
726
+ } | {
727
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
728
+ readonly data: {
729
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
730
+ readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
731
+ readonly boundary: {
732
+ readonly type: "before";
733
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
734
+ } | {
735
+ readonly type: "through";
736
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
737
+ };
738
+ readonly instructions?: {
739
+ readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
740
+ } | undefined;
741
+ };
742
+ readonly durable: {
743
+ readonly aggregateID: string;
744
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
745
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
746
+ };
747
+ readonly type: "session.forked";
748
+ readonly created: number;
749
+ readonly location?: {
750
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
751
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
752
+ } | undefined;
753
+ readonly metadata?: {
754
+ readonly [x: string]: unknown;
755
+ } | undefined;
756
+ } | {
757
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
758
+ readonly data: {
759
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
760
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
761
+ };
762
+ readonly durable: {
763
+ readonly aggregateID: string;
764
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
765
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
766
+ };
767
+ readonly type: "session.inbox.delivered";
768
+ readonly created: number;
769
+ readonly location?: {
770
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
771
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
772
+ } | undefined;
773
+ readonly metadata?: {
774
+ readonly [x: string]: unknown;
775
+ } | undefined;
776
+ } | {
777
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
778
+ readonly data: {
779
+ readonly item: {
780
+ readonly type: "user";
781
+ readonly payload: {
782
+ readonly text: string;
783
+ readonly metadata?: {
784
+ readonly [x: string]: unknown;
785
+ } | undefined;
786
+ readonly files?: readonly {
787
+ readonly data: string;
788
+ readonly source: {
789
+ readonly type: "inline";
790
+ } | {
791
+ readonly type: "uri";
792
+ readonly uri: string;
793
+ };
794
+ readonly mime: string;
795
+ readonly description?: string | undefined;
796
+ readonly name?: string | undefined;
797
+ readonly mention?: {
798
+ readonly start: number;
799
+ readonly end: number;
800
+ readonly text: string;
801
+ } | undefined;
802
+ }[] | undefined;
803
+ readonly agents?: readonly {
804
+ readonly name: string;
805
+ readonly mention?: {
806
+ readonly start: number;
807
+ readonly end: number;
808
+ readonly text: string;
809
+ } | undefined;
810
+ }[] | undefined;
811
+ readonly skills?: readonly {
812
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
813
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
814
+ readonly text: string;
815
+ readonly mention?: {
816
+ readonly start: number;
817
+ readonly end: number;
818
+ readonly text: string;
819
+ } | undefined;
820
+ }[] | undefined;
821
+ };
822
+ readonly delivery: "steer" | "queue";
823
+ } | {
824
+ readonly type: "synthetic";
825
+ readonly payload: {
826
+ readonly text: string;
827
+ readonly metadata?: {
828
+ readonly [x: string]: unknown;
829
+ } | undefined;
830
+ readonly description?: string | undefined;
831
+ };
832
+ readonly delivery: "steer" | "queue";
833
+ } | {
834
+ readonly type: "compaction";
835
+ readonly payload: {};
836
+ readonly delivery: "steer" | "queue";
837
+ } | {
838
+ readonly type: "move";
839
+ readonly payload: {
840
+ readonly location: {
841
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
842
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
843
+ };
844
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
845
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
846
+ };
847
+ readonly delivery: "steer" | "queue";
848
+ };
849
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
850
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
851
+ };
852
+ readonly durable: {
853
+ readonly aggregateID: string;
854
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
855
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
856
+ };
857
+ readonly type: "session.inbox.enqueued";
858
+ readonly created: number;
859
+ readonly location?: {
860
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
861
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
862
+ } | undefined;
863
+ readonly metadata?: {
864
+ readonly [x: string]: unknown;
865
+ } | undefined;
866
+ } | {
867
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
868
+ readonly data: {
869
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
870
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
871
+ };
872
+ readonly durable: {
873
+ readonly aggregateID: string;
874
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
875
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
876
+ };
877
+ readonly type: "session.inbox.cancelled";
878
+ readonly created: number;
879
+ readonly location?: {
880
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
881
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
882
+ } | undefined;
883
+ readonly metadata?: {
884
+ readonly [x: string]: unknown;
885
+ } | undefined;
886
+ } | {
887
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
888
+ readonly data: {
889
+ readonly delivery: "steer" | "queue";
890
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
891
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
892
+ };
893
+ readonly durable: {
894
+ readonly aggregateID: string;
895
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
896
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
897
+ };
898
+ readonly type: "session.inbox.delivery.changed";
899
+ readonly created: number;
900
+ readonly location?: {
901
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
902
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
903
+ } | undefined;
904
+ readonly metadata?: {
905
+ readonly [x: string]: unknown;
906
+ } | undefined;
907
+ } | {
908
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
909
+ readonly data: {
910
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
911
+ };
912
+ readonly durable: {
913
+ readonly aggregateID: string;
914
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
915
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
916
+ };
917
+ readonly type: "session.execution.started";
918
+ readonly created: number;
919
+ readonly location?: {
920
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
921
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
922
+ } | undefined;
923
+ readonly metadata?: {
924
+ readonly [x: string]: unknown;
925
+ } | undefined;
926
+ } | {
927
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
928
+ readonly data: {
929
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
930
+ };
931
+ readonly durable: {
932
+ readonly aggregateID: string;
933
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
934
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
935
+ };
936
+ readonly type: "session.execution.succeeded";
937
+ readonly created: number;
938
+ readonly location?: {
939
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
940
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
941
+ } | undefined;
942
+ readonly metadata?: {
943
+ readonly [x: string]: unknown;
944
+ } | undefined;
945
+ } | {
946
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
947
+ readonly data: {
948
+ readonly error: {
949
+ readonly type: string;
950
+ readonly message: string;
951
+ readonly status?: number | undefined;
952
+ };
953
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
954
+ };
955
+ readonly durable: {
956
+ readonly aggregateID: string;
957
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
958
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
959
+ };
960
+ readonly type: "session.execution.failed";
961
+ readonly created: number;
962
+ readonly location?: {
963
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
964
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
965
+ } | undefined;
966
+ readonly metadata?: {
967
+ readonly [x: string]: unknown;
968
+ } | undefined;
969
+ } | {
970
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
971
+ readonly data: {
972
+ readonly reason: "user" | "shutdown" | "superseded";
973
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
974
+ };
975
+ readonly durable: {
976
+ readonly aggregateID: string;
977
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
978
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
979
+ };
980
+ readonly type: "session.execution.interrupted";
981
+ readonly created: number;
982
+ readonly location?: {
983
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
984
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
985
+ } | undefined;
986
+ readonly metadata?: {
987
+ readonly [x: string]: unknown;
988
+ } | undefined;
989
+ } | {
990
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
991
+ readonly data: {
992
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
993
+ readonly delta: {
994
+ readonly [x: string]: (string & import("effect/Brand").Brand<"Instruction.Hash">) | "removed";
995
+ };
996
+ readonly text?: string | undefined;
997
+ };
998
+ readonly durable: {
999
+ readonly aggregateID: string;
1000
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1001
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1002
+ };
1003
+ readonly type: "session.instructions.updated";
1004
+ readonly created: number;
1005
+ readonly location?: {
1006
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1007
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1008
+ } | undefined;
1009
+ readonly metadata?: {
1010
+ readonly [x: string]: unknown;
1011
+ } | undefined;
1012
+ } | {
1013
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1014
+ readonly data: {
1015
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1016
+ readonly text: string;
1017
+ readonly metadata?: {
1018
+ readonly [x: string]: unknown;
1019
+ } | undefined;
1020
+ readonly description?: string | undefined;
1021
+ };
1022
+ readonly durable: {
1023
+ readonly aggregateID: string;
1024
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1025
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1026
+ };
1027
+ readonly type: "session.synthetic";
1028
+ readonly created: number;
1029
+ readonly location?: {
1030
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1031
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1032
+ } | undefined;
1033
+ readonly metadata?: {
1034
+ readonly [x: string]: unknown;
1035
+ } | undefined;
1036
+ } | {
1037
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1038
+ readonly data: {
1039
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
1040
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1041
+ readonly text: string;
1042
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1043
+ };
1044
+ readonly durable: {
1045
+ readonly aggregateID: string;
1046
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1047
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1048
+ };
1049
+ readonly type: "session.skill.activated";
1050
+ readonly created: number;
1051
+ readonly location?: {
1052
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1053
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1054
+ } | undefined;
1055
+ readonly metadata?: {
1056
+ readonly [x: string]: unknown;
1057
+ } | undefined;
1058
+ } | {
1059
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1060
+ readonly data: {
1061
+ readonly shell: {
1062
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
1063
+ readonly metadata: {
1064
+ readonly [x: string]: unknown;
1065
+ };
1066
+ readonly command: string;
1067
+ readonly status: "running" | "exited" | "timeout" | "killed";
1068
+ readonly time: {
1069
+ readonly started: number;
1070
+ readonly completed?: number | undefined;
1071
+ };
1072
+ readonly cwd: string;
1073
+ readonly shell: string;
1074
+ readonly file: string;
1075
+ readonly pid?: number | undefined;
1076
+ readonly exit?: number | undefined;
1077
+ };
1078
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1079
+ };
1080
+ readonly durable: {
1081
+ readonly aggregateID: string;
1082
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1083
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1084
+ };
1085
+ readonly type: "session.shell.started";
1086
+ readonly created: number;
1087
+ readonly location?: {
1088
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1089
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1090
+ } | undefined;
1091
+ readonly metadata?: {
1092
+ readonly [x: string]: unknown;
1093
+ } | undefined;
1094
+ } | {
1095
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1096
+ readonly data: {
1097
+ readonly shell: {
1098
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
1099
+ readonly metadata: {
1100
+ readonly [x: string]: unknown;
1101
+ };
1102
+ readonly command: string;
1103
+ readonly status: "running" | "exited" | "timeout" | "killed";
1104
+ readonly time: {
1105
+ readonly started: number;
1106
+ readonly completed?: number | undefined;
1107
+ };
1108
+ readonly cwd: string;
1109
+ readonly shell: string;
1110
+ readonly file: string;
1111
+ readonly pid?: number | undefined;
1112
+ readonly exit?: number | undefined;
1113
+ };
1114
+ readonly output: {
1115
+ readonly output: string;
1116
+ readonly cursor: number;
1117
+ readonly size: number;
1118
+ readonly truncated: boolean;
1119
+ };
1120
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1121
+ };
1122
+ readonly durable: {
1123
+ readonly aggregateID: string;
1124
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1125
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1126
+ };
1127
+ readonly type: "session.shell.ended";
1128
+ readonly created: number;
1129
+ readonly location?: {
1130
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1131
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1132
+ } | undefined;
1133
+ readonly metadata?: {
1134
+ readonly [x: string]: unknown;
1135
+ } | undefined;
1136
+ } | {
1137
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1138
+ readonly data: {
1139
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1140
+ readonly model: {
1141
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1142
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1143
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1144
+ };
1145
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
1146
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1147
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1148
+ };
1149
+ readonly durable: {
1150
+ readonly aggregateID: string;
1151
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1152
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1153
+ };
1154
+ readonly type: "session.step.started";
1155
+ readonly created: number;
1156
+ readonly location?: {
1157
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1158
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1159
+ } | undefined;
1160
+ readonly metadata?: {
1161
+ readonly [x: string]: unknown;
1162
+ } | undefined;
1163
+ } | {
1164
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1165
+ readonly data: {
1166
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1167
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
1168
+ readonly finish: "length" | "error" | "stop" | "tool-calls" | "content-filter" | "unknown";
1169
+ readonly tokens: {
1170
+ readonly input: number;
1171
+ readonly output: number;
1172
+ readonly reasoning: number;
1173
+ readonly cache: {
1174
+ readonly read: number;
1175
+ readonly write: number;
1176
+ };
1177
+ };
1178
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1179
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1180
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1181
+ };
1182
+ readonly durable: {
1183
+ readonly aggregateID: string;
1184
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1185
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1186
+ };
1187
+ readonly type: "session.step.ended";
1188
+ readonly created: number;
1189
+ readonly location?: {
1190
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1191
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1192
+ } | undefined;
1193
+ readonly metadata?: {
1194
+ readonly [x: string]: unknown;
1195
+ } | undefined;
1196
+ } | {
1197
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1198
+ readonly data: {
1199
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1200
+ readonly error: {
1201
+ readonly type: string;
1202
+ readonly message: string;
1203
+ readonly status?: number | undefined;
1204
+ };
1205
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1206
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1207
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1208
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1209
+ readonly tokens?: {
1210
+ readonly input: number;
1211
+ readonly output: number;
1212
+ readonly reasoning: number;
1213
+ readonly cache: {
1214
+ readonly read: number;
1215
+ readonly write: number;
1216
+ };
1217
+ } | undefined;
1218
+ };
1219
+ readonly durable: {
1220
+ readonly aggregateID: string;
1221
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1222
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1223
+ };
1224
+ readonly type: "session.step.failed";
1225
+ readonly created: number;
1226
+ readonly location?: {
1227
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1228
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1229
+ } | undefined;
1230
+ readonly metadata?: {
1231
+ readonly [x: string]: unknown;
1232
+ } | undefined;
1233
+ } | {
1234
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1235
+ readonly data: {
1236
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1237
+ readonly ordinal: number;
1238
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1239
+ };
1240
+ readonly durable: {
1241
+ readonly aggregateID: string;
1242
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1243
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1244
+ };
1245
+ readonly type: "session.text.started";
1246
+ readonly created: number;
1247
+ readonly location?: {
1248
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1249
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1250
+ } | undefined;
1251
+ readonly metadata?: {
1252
+ readonly [x: string]: unknown;
1253
+ } | undefined;
1254
+ } | {
1255
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1256
+ readonly data: {
1257
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1258
+ readonly ordinal: number;
1259
+ readonly delta: string;
1260
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1261
+ };
1262
+ readonly type: "session.text.delta";
1263
+ readonly created: number;
1264
+ readonly location?: {
1265
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1266
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1267
+ } | undefined;
1268
+ readonly metadata?: {
1269
+ readonly [x: string]: unknown;
1270
+ } | undefined;
1271
+ } | {
1272
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1273
+ readonly data: {
1274
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1275
+ readonly text: string;
1276
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1277
+ readonly ordinal: number;
1278
+ readonly state?: {
1279
+ readonly [x: string]: unknown;
1280
+ } | undefined;
1281
+ };
1282
+ readonly durable: {
1283
+ readonly aggregateID: string;
1284
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1285
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1286
+ };
1287
+ readonly type: "session.text.ended";
1288
+ readonly created: number;
1289
+ readonly location?: {
1290
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1291
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1292
+ } | undefined;
1293
+ readonly metadata?: {
1294
+ readonly [x: string]: unknown;
1295
+ } | undefined;
1296
+ } | {
1297
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1298
+ readonly data: {
1299
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1300
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1301
+ readonly ordinal: number;
1302
+ readonly state?: {
1303
+ readonly [x: string]: unknown;
1304
+ } | undefined;
1305
+ };
1306
+ readonly durable: {
1307
+ readonly aggregateID: string;
1308
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1309
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1310
+ };
1311
+ readonly type: "session.reasoning.started";
1312
+ readonly created: number;
1313
+ readonly location?: {
1314
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1315
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1316
+ } | undefined;
1317
+ readonly metadata?: {
1318
+ readonly [x: string]: unknown;
1319
+ } | undefined;
1320
+ } | {
1321
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1322
+ readonly data: {
1323
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1324
+ readonly ordinal: number;
1325
+ readonly delta: string;
1326
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1327
+ };
1328
+ readonly type: "session.reasoning.delta";
1329
+ readonly created: number;
1330
+ readonly location?: {
1331
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1332
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1333
+ } | undefined;
1334
+ readonly metadata?: {
1335
+ readonly [x: string]: unknown;
1336
+ } | undefined;
1337
+ } | {
1338
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1339
+ readonly data: {
1340
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1341
+ readonly text: string;
1342
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1343
+ readonly ordinal: number;
1344
+ readonly state?: {
1345
+ readonly [x: string]: unknown;
1346
+ } | undefined;
1347
+ };
1348
+ readonly durable: {
1349
+ readonly aggregateID: string;
1350
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1351
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1352
+ };
1353
+ readonly type: "session.reasoning.ended";
1354
+ readonly created: number;
1355
+ readonly location?: {
1356
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1357
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1358
+ } | undefined;
1359
+ readonly metadata?: {
1360
+ readonly [x: string]: unknown;
1361
+ } | undefined;
1362
+ } | {
1363
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1364
+ readonly data: {
1365
+ readonly name: string;
1366
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1367
+ readonly id: string;
1368
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1369
+ };
1370
+ readonly durable: {
1371
+ readonly aggregateID: string;
1372
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1373
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1374
+ };
1375
+ readonly type: "session.tool.input.started";
1376
+ readonly created: number;
1377
+ readonly location?: {
1378
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1379
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1380
+ } | undefined;
1381
+ readonly metadata?: {
1382
+ readonly [x: string]: unknown;
1383
+ } | undefined;
1384
+ } | {
1385
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1386
+ readonly data: {
1387
+ readonly delta: string;
1388
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1389
+ readonly id: string;
1390
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1391
+ };
1392
+ readonly type: "session.tool.input.delta";
1393
+ readonly created: number;
1394
+ readonly location?: {
1395
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1396
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1397
+ } | undefined;
1398
+ readonly metadata?: {
1399
+ readonly [x: string]: unknown;
1400
+ } | undefined;
1401
+ } | {
1402
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1403
+ readonly data: {
1404
+ readonly text: string;
1405
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1406
+ readonly id: string;
1407
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1408
+ };
1409
+ readonly durable: {
1410
+ readonly aggregateID: string;
1411
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1412
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1413
+ };
1414
+ readonly type: "session.tool.input.ended";
1415
+ readonly created: number;
1416
+ readonly location?: {
1417
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1418
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1419
+ } | undefined;
1420
+ readonly metadata?: {
1421
+ readonly [x: string]: unknown;
1422
+ } | undefined;
1423
+ } | {
1424
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1425
+ readonly data: {
1426
+ readonly id: string;
1427
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1428
+ readonly input: {
1429
+ readonly [x: string]: unknown;
1430
+ };
1431
+ readonly executed: boolean;
1432
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1433
+ readonly state?: {
1434
+ readonly [x: string]: unknown;
1435
+ } | undefined;
1436
+ };
1437
+ readonly durable: {
1438
+ readonly aggregateID: string;
1439
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1440
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1441
+ };
1442
+ readonly type: "session.tool.called";
1443
+ readonly created: number;
1444
+ readonly location?: {
1445
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1446
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1447
+ } | undefined;
1448
+ readonly metadata?: {
1449
+ readonly [x: string]: unknown;
1450
+ } | undefined;
1451
+ } | {
1452
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1453
+ readonly data: {
1454
+ readonly metadata: {
1455
+ readonly [x: string]: Schema.Json;
1456
+ };
1457
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1458
+ readonly id: string;
1459
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1460
+ };
1461
+ readonly type: "session.tool.progress";
1462
+ readonly created: number;
1463
+ readonly location?: {
1464
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1465
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1466
+ } | undefined;
1467
+ readonly metadata?: {
1468
+ readonly [x: string]: unknown;
1469
+ } | undefined;
1470
+ } | {
1471
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1472
+ readonly data: {
1473
+ readonly id: string;
1474
+ readonly content: readonly [{
1475
+ readonly type: "text";
1476
+ readonly text: string;
1477
+ } | {
1478
+ readonly type: "file";
1479
+ readonly uri: string;
1480
+ readonly mime: string;
1481
+ readonly name?: string | undefined;
1482
+ }, ...({
1483
+ readonly type: "text";
1484
+ readonly text: string;
1485
+ } | {
1486
+ readonly type: "file";
1487
+ readonly uri: string;
1488
+ readonly mime: string;
1489
+ readonly name?: string | undefined;
1490
+ })[]];
1491
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1492
+ readonly executed: boolean;
1493
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1494
+ readonly metadata?: {
1495
+ readonly [x: string]: Schema.Json;
1496
+ } | undefined;
1497
+ readonly resultState?: {
1498
+ readonly [x: string]: unknown;
1499
+ } | undefined;
1500
+ };
1501
+ readonly durable: {
1502
+ readonly aggregateID: string;
1503
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1504
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1505
+ };
1506
+ readonly type: "session.tool.success";
1507
+ readonly created: number;
1508
+ readonly location?: {
1509
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1510
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1511
+ } | undefined;
1512
+ readonly metadata?: {
1513
+ readonly [x: string]: unknown;
1514
+ } | undefined;
1515
+ } | {
1516
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1517
+ readonly data: {
1518
+ readonly id: string;
1519
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1520
+ readonly error: {
1521
+ readonly type: string;
1522
+ readonly message: string;
1523
+ readonly status?: number | undefined;
1524
+ };
1525
+ readonly executed: boolean;
1526
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1527
+ readonly metadata?: {
1528
+ readonly [x: string]: Schema.Json;
1529
+ } | undefined;
1530
+ readonly content?: readonly [{
1531
+ readonly type: "text";
1532
+ readonly text: string;
1533
+ } | {
1534
+ readonly type: "file";
1535
+ readonly uri: string;
1536
+ readonly mime: string;
1537
+ readonly name?: string | undefined;
1538
+ }, ...({
1539
+ readonly type: "text";
1540
+ readonly text: string;
1541
+ } | {
1542
+ readonly type: "file";
1543
+ readonly uri: string;
1544
+ readonly mime: string;
1545
+ readonly name?: string | undefined;
1546
+ })[]] | undefined;
1547
+ readonly resultState?: {
1548
+ readonly [x: string]: unknown;
1549
+ } | undefined;
1550
+ };
1551
+ readonly durable: {
1552
+ readonly aggregateID: string;
1553
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1554
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1555
+ };
1556
+ readonly type: "session.tool.failed";
1557
+ readonly created: number;
1558
+ readonly location?: {
1559
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1560
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1561
+ } | undefined;
1562
+ readonly metadata?: {
1563
+ readonly [x: string]: unknown;
1564
+ } | undefined;
1565
+ } | {
1566
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1567
+ readonly data: {
1568
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1569
+ readonly attempt: number;
1570
+ readonly at: number;
1571
+ readonly error: {
1572
+ readonly type: string;
1573
+ readonly message: string;
1574
+ readonly status?: number | undefined;
1575
+ };
1576
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1577
+ };
1578
+ readonly durable: {
1579
+ readonly aggregateID: string;
1580
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1581
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1582
+ };
1583
+ readonly type: "session.retry.scheduled";
1584
+ readonly created: number;
1585
+ readonly location?: {
1586
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1587
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1588
+ } | undefined;
1589
+ readonly metadata?: {
1590
+ readonly [x: string]: unknown;
1591
+ } | undefined;
1592
+ } | {
1593
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1594
+ readonly data: {
1595
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1596
+ readonly reason: "auto" | "manual";
1597
+ readonly recent: string;
1598
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
1599
+ };
1600
+ readonly durable: {
1601
+ readonly aggregateID: string;
1602
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1603
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1604
+ };
1605
+ readonly type: "session.compaction.started";
1606
+ readonly created: number;
1607
+ readonly location?: {
1608
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1609
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1610
+ } | undefined;
1611
+ readonly metadata?: {
1612
+ readonly [x: string]: unknown;
1613
+ } | undefined;
1614
+ } | {
1615
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1616
+ readonly data: {
1617
+ readonly text: string;
1618
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1619
+ };
1620
+ readonly type: "session.compaction.delta";
1621
+ readonly created: number;
1622
+ readonly location?: {
1623
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1624
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1625
+ } | undefined;
1626
+ readonly metadata?: {
1627
+ readonly [x: string]: unknown;
1628
+ } | undefined;
1629
+ } | {
1630
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1631
+ readonly data: {
1632
+ readonly reason: "auto" | "manual";
1633
+ readonly text: string;
1634
+ readonly recent: string;
1635
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1636
+ };
1637
+ readonly durable: {
1638
+ readonly aggregateID: string;
1639
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1640
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1641
+ };
1642
+ readonly type: "session.compaction.ended";
1643
+ readonly created: number;
1644
+ readonly location?: {
1645
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1646
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1647
+ } | undefined;
1648
+ readonly metadata?: {
1649
+ readonly [x: string]: unknown;
1650
+ } | undefined;
1651
+ } | {
1652
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1653
+ readonly data: {
1654
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1655
+ readonly error: {
1656
+ readonly type: string;
1657
+ readonly message: string;
1658
+ readonly status?: number | undefined;
1659
+ };
1660
+ readonly reason: "auto" | "manual";
1661
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
1662
+ };
1663
+ readonly durable: {
1664
+ readonly aggregateID: string;
1665
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1666
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1667
+ };
1668
+ readonly type: "session.compaction.failed";
1669
+ readonly created: number;
1670
+ readonly location?: {
1671
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1672
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1673
+ } | undefined;
1674
+ readonly metadata?: {
1675
+ readonly [x: string]: unknown;
1676
+ } | undefined;
1677
+ } | {
1678
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1679
+ readonly data: {
1680
+ readonly revert: {
1681
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1682
+ readonly files?: readonly {
1683
+ readonly file: string;
1684
+ readonly patch: string;
1685
+ readonly additions: number;
1686
+ readonly deletions: number;
1687
+ readonly status: "added" | "deleted" | "modified";
1688
+ }[] | undefined;
1689
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1690
+ readonly partID?: string | undefined;
1691
+ };
1692
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1693
+ };
1694
+ readonly durable: {
1695
+ readonly aggregateID: string;
1696
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1697
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1698
+ };
1699
+ readonly type: "session.revert.staged";
1700
+ readonly created: number;
1701
+ readonly location?: {
1702
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1703
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1704
+ } | undefined;
1705
+ readonly metadata?: {
1706
+ readonly [x: string]: unknown;
1707
+ } | undefined;
1708
+ } | {
1709
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1710
+ readonly data: {
1711
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1712
+ };
1713
+ readonly durable: {
1714
+ readonly aggregateID: string;
1715
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1716
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1717
+ };
1718
+ readonly type: "session.revert.cleared";
1719
+ readonly created: number;
1720
+ readonly location?: {
1721
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1722
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1723
+ } | undefined;
1724
+ readonly metadata?: {
1725
+ readonly [x: string]: unknown;
1726
+ } | undefined;
1727
+ } | {
1728
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1729
+ readonly data: {
1730
+ readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
1731
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1732
+ };
1733
+ readonly durable: {
1734
+ readonly aggregateID: string;
1735
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1736
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1737
+ };
1738
+ readonly type: "session.revert.committed";
1739
+ readonly created: number;
1740
+ readonly location?: {
1741
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1742
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1743
+ } | undefined;
1744
+ readonly metadata?: {
1745
+ readonly [x: string]: unknown;
1746
+ } | undefined;
1747
+ } | {
1748
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1749
+ readonly data: {
1750
+ readonly file: string;
1751
+ readonly event: "add" | "change" | "unlink";
1752
+ };
1753
+ readonly type: "filesystem.changed";
1754
+ readonly created: number;
1755
+ readonly location?: {
1756
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1757
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1758
+ } | undefined;
1759
+ readonly metadata?: {
1760
+ readonly [x: string]: unknown;
1761
+ } | undefined;
1762
+ } | {
1763
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1764
+ readonly data: {};
1765
+ readonly type: "command.updated";
1766
+ readonly created: number;
1767
+ readonly location?: {
1768
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1769
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1770
+ } | undefined;
1771
+ readonly metadata?: {
1772
+ readonly [x: string]: unknown;
1773
+ } | undefined;
1774
+ } | {
1775
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1776
+ readonly data: {};
1777
+ readonly type: "catalog.updated";
1778
+ readonly created: number;
1779
+ readonly location?: {
1780
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1781
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1782
+ } | undefined;
1783
+ readonly metadata?: {
1784
+ readonly [x: string]: unknown;
1785
+ } | undefined;
1786
+ } | {
1787
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1788
+ readonly data: {};
1789
+ readonly type: "websearch.updated";
1790
+ readonly created: number;
1791
+ readonly location?: {
1792
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1793
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1794
+ } | undefined;
1795
+ readonly metadata?: {
1796
+ readonly [x: string]: unknown;
1797
+ } | undefined;
1798
+ } | {
1799
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1800
+ readonly data: {};
1801
+ readonly type: "config.updated";
1802
+ readonly created: number;
1803
+ readonly location?: {
1804
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1805
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1806
+ } | undefined;
1807
+ readonly metadata?: {
1808
+ readonly [x: string]: unknown;
1809
+ } | undefined;
1810
+ } | {
1811
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1812
+ readonly data: {
1813
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
1814
+ };
1815
+ readonly type: "worktree.updated";
1816
+ readonly created: number;
1817
+ readonly location?: {
1818
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1819
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1820
+ } | undefined;
1821
+ readonly metadata?: {
1822
+ readonly [x: string]: unknown;
1823
+ } | undefined;
1824
+ } | {
1825
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1826
+ readonly data: {
1827
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
1828
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1829
+ readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
1830
+ };
1831
+ readonly durable: {
1832
+ readonly aggregateID: string;
1833
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1834
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1835
+ };
1836
+ readonly type: "worktree.resolved";
1837
+ readonly created: number;
1838
+ readonly location?: {
1839
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1840
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1841
+ } | undefined;
1842
+ readonly metadata?: {
1843
+ readonly [x: string]: unknown;
1844
+ } | undefined;
1845
+ } | {
1846
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1847
+ readonly data: {
1848
+ readonly version: string;
1849
+ };
1850
+ readonly type: "installation.updated";
1851
+ readonly created: number;
1852
+ readonly location?: {
1853
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1854
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1855
+ } | undefined;
1856
+ readonly metadata?: {
1857
+ readonly [x: string]: unknown;
1858
+ } | undefined;
1859
+ } | {
1860
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1861
+ readonly data: {
1862
+ readonly version: string;
1863
+ };
1864
+ readonly type: "installation.update-available";
1865
+ readonly created: number;
1866
+ readonly location?: {
1867
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1868
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1869
+ } | undefined;
1870
+ readonly metadata?: {
1871
+ readonly [x: string]: unknown;
1872
+ } | undefined;
1873
+ } | {
1874
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1875
+ readonly data: {
1876
+ readonly server: string;
1877
+ };
1878
+ readonly type: "mcp.resources.changed";
1879
+ readonly created: number;
1880
+ readonly location?: {
1881
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1882
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1883
+ } | undefined;
1884
+ readonly metadata?: {
1885
+ readonly [x: string]: unknown;
1886
+ } | undefined;
1887
+ } | {
1888
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1889
+ readonly data: {
1890
+ readonly server: string;
1891
+ };
1892
+ readonly type: "mcp.status.changed";
1893
+ readonly created: number;
1894
+ readonly location?: {
1895
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1896
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1897
+ } | undefined;
1898
+ readonly metadata?: {
1899
+ readonly [x: string]: unknown;
1900
+ } | undefined;
1901
+ } | {
1902
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1903
+ readonly data: {};
1904
+ readonly type: "models-dev.refreshed";
1905
+ readonly created: number;
1906
+ readonly location?: {
1907
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1908
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1909
+ } | undefined;
1910
+ readonly metadata?: {
1911
+ readonly [x: string]: unknown;
1912
+ } | undefined;
1913
+ } | {
1914
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1915
+ readonly data: {
1916
+ readonly id: string & import("effect/Brand").Brand<"Plugin.ID">;
1917
+ };
1918
+ readonly type: "plugin.added";
1919
+ readonly created: number;
1920
+ readonly location?: {
1921
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1922
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1923
+ } | undefined;
1924
+ readonly metadata?: {
1925
+ readonly [x: string]: unknown;
1926
+ } | undefined;
1927
+ } | {
1928
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1929
+ readonly data: {};
1930
+ readonly type: "plugin.updated";
1931
+ readonly created: number;
1932
+ readonly location?: {
1933
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1934
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1935
+ } | undefined;
1936
+ readonly metadata?: {
1937
+ readonly [x: string]: unknown;
1938
+ } | undefined;
1939
+ } | {
1940
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1941
+ readonly data: {
1942
+ readonly info: {
1943
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
1944
+ readonly command: string;
1945
+ readonly title: string;
1946
+ readonly status: "running" | "exited";
1947
+ readonly pid: number;
1948
+ readonly cwd: string;
1949
+ readonly args: readonly string[];
1950
+ readonly exitCode?: number | undefined;
1951
+ };
1952
+ };
1953
+ readonly type: "pty.created";
1954
+ readonly created: number;
1955
+ readonly location?: {
1956
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1957
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1958
+ } | undefined;
1959
+ readonly metadata?: {
1960
+ readonly [x: string]: unknown;
1961
+ } | undefined;
1962
+ } | {
1963
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1964
+ readonly data: {
1965
+ readonly info: {
1966
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
1967
+ readonly command: string;
1968
+ readonly title: string;
1969
+ readonly status: "running" | "exited";
1970
+ readonly pid: number;
1971
+ readonly cwd: string;
1972
+ readonly args: readonly string[];
1973
+ readonly exitCode?: number | undefined;
1974
+ };
1975
+ };
1976
+ readonly type: "pty.updated";
1977
+ readonly created: number;
1978
+ readonly location?: {
1979
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1980
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1981
+ } | undefined;
1982
+ readonly metadata?: {
1983
+ readonly [x: string]: unknown;
1984
+ } | undefined;
1985
+ } | {
1986
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1987
+ readonly data: {
1988
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
1989
+ readonly exitCode: number;
1990
+ };
1991
+ readonly type: "pty.exited";
1992
+ readonly created: number;
1993
+ readonly location?: {
1994
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1995
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1996
+ } | undefined;
1997
+ readonly metadata?: {
1998
+ readonly [x: string]: unknown;
1999
+ } | undefined;
2000
+ } | {
2001
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2002
+ readonly data: {
2003
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
2004
+ };
2005
+ readonly type: "pty.deleted";
2006
+ readonly created: number;
2007
+ readonly location?: {
2008
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2009
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2010
+ } | undefined;
2011
+ readonly metadata?: {
2012
+ readonly [x: string]: unknown;
2013
+ } | undefined;
2014
+ } | {
2015
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2016
+ readonly data: {};
2017
+ readonly type: "reference.updated";
2018
+ readonly created: number;
2019
+ readonly location?: {
2020
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2021
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2022
+ } | undefined;
2023
+ readonly metadata?: {
2024
+ readonly [x: string]: unknown;
2025
+ } | undefined;
2026
+ } | {
2027
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2028
+ readonly data: {
2029
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2030
+ readonly status: {
2031
+ readonly type: "idle";
2032
+ } | {
2033
+ readonly type: "retry";
2034
+ readonly message: string;
2035
+ readonly attempt: number;
2036
+ readonly next: number;
2037
+ readonly action?: {
2038
+ readonly message: string;
2039
+ readonly label: string;
2040
+ readonly title: string;
2041
+ readonly reason: string;
2042
+ readonly provider: string;
2043
+ readonly link?: string | undefined;
2044
+ } | undefined;
2045
+ } | {
2046
+ readonly type: "busy";
2047
+ };
2048
+ };
2049
+ readonly type: "session.status";
2050
+ readonly created: number;
2051
+ readonly location?: {
2052
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2053
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2054
+ } | undefined;
2055
+ readonly metadata?: {
2056
+ readonly [x: string]: unknown;
2057
+ } | undefined;
2058
+ } | {
2059
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2060
+ readonly data: {
2061
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2062
+ };
2063
+ readonly type: "session.idle";
2064
+ readonly created: number;
2065
+ readonly location?: {
2066
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2067
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2068
+ } | undefined;
2069
+ readonly metadata?: {
2070
+ readonly [x: string]: unknown;
2071
+ } | undefined;
2072
+ } | {
2073
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2074
+ readonly data: {
2075
+ readonly text: string;
2076
+ };
2077
+ readonly type: "tui.prompt.append";
2078
+ readonly created: number;
2079
+ readonly location?: {
2080
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2081
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2082
+ } | undefined;
2083
+ readonly metadata?: {
2084
+ readonly [x: string]: unknown;
2085
+ } | undefined;
2086
+ } | {
2087
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2088
+ readonly data: {
2089
+ readonly command: string;
2090
+ };
2091
+ readonly type: "tui.command.execute";
2092
+ readonly created: number;
2093
+ readonly location?: {
2094
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2095
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2096
+ } | undefined;
2097
+ readonly metadata?: {
2098
+ readonly [x: string]: unknown;
2099
+ } | undefined;
2100
+ } | {
2101
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2102
+ readonly data: {
2103
+ readonly message: string;
2104
+ readonly variant: "error" | "success" | "info" | "warning";
2105
+ readonly duration: number;
2106
+ readonly title?: string | undefined;
2107
+ };
2108
+ readonly type: "tui.toast.show";
2109
+ readonly created: number;
2110
+ readonly location?: {
2111
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2112
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2113
+ } | undefined;
2114
+ readonly metadata?: {
2115
+ readonly [x: string]: unknown;
2116
+ } | undefined;
2117
+ } | {
2118
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2119
+ readonly data: {
2120
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2121
+ };
2122
+ readonly type: "tui.session.select";
2123
+ readonly created: number;
2124
+ readonly location?: {
2125
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2126
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2127
+ } | undefined;
2128
+ readonly metadata?: {
2129
+ readonly [x: string]: unknown;
2130
+ } | undefined;
2131
+ } | {
2132
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2133
+ readonly data: {
2134
+ readonly branch?: string | undefined;
2135
+ };
2136
+ readonly type: "vcs.branch.updated";
2137
+ readonly created: number;
2138
+ readonly location?: {
2139
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2140
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2141
+ } | undefined;
2142
+ readonly metadata?: {
2143
+ readonly [x: string]: unknown;
2144
+ } | undefined;
2145
+ } | {
2146
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2147
+ readonly data: {};
2148
+ readonly type: "server.connected";
2149
+ readonly location?: {
2150
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2151
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2152
+ } | undefined;
2153
+ readonly metadata?: {
2154
+ readonly [x: string]: unknown;
2155
+ } | undefined;
2156
+ }, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError | Sse.Retry, never>;
2157
+ };
2158
+ pty: {
2159
+ list: (input?: Endpoint20_0Input) => Effect.Effect<Endpoint20_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
2160
+ create: (input?: Endpoint20_1Input) => Effect.Effect<Endpoint20_1Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
2161
+ get: (input: Endpoint20_2Input) => Effect.Effect<Endpoint20_2Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").PtyNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
2162
+ update: (input: Endpoint20_3Input) => Effect.Effect<Endpoint20_3Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").PtyNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
2163
+ remove: (input: Endpoint20_4Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").PtyNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
2164
+ };
2165
+ shell: {
2166
+ list: (input?: Endpoint21_0Input) => Effect.Effect<Endpoint21_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
2167
+ create: (input: Endpoint21_1Input) => Effect.Effect<Endpoint21_1Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
2168
+ get: (input: Endpoint21_2Input) => Effect.Effect<Endpoint21_2Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ShellNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
2169
+ timeout: (input: Endpoint21_3Input) => Effect.Effect<Endpoint21_3Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ShellNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
2170
+ output: (input: Endpoint21_4Input) => Effect.Effect<Endpoint21_4Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ShellNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
2171
+ remove: (input: Endpoint21_5Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ShellNotFoundError | ClientError | HttpClientError.HttpClientError, never>;
2172
+ };
2173
+ reference: {
2174
+ list: (input?: Endpoint22_0Input) => Effect.Effect<Endpoint22_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
2175
+ };
2176
+ worktree: {
2177
+ list: (input: Endpoint23_0Input) => Effect.Effect<readonly {
2178
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2179
+ readonly strategy?: string | undefined;
2180
+ }[], Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
2181
+ create: (input: Endpoint23_1Input) => Effect.Effect<import("@opencode-ai/schema/worktree").Info, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/groups/worktree").WorktreeError | ClientError | HttpClientError.HttpClientError, never>;
2182
+ remove: (input: Endpoint23_2Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/groups/worktree").WorktreeError | ClientError | HttpClientError.HttpClientError, never>;
2183
+ refresh: (input: Endpoint23_3Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/groups/worktree").WorktreeError | ClientError | HttpClientError.HttpClientError, never>;
2184
+ };
2185
+ vcs: {
2186
+ get: (input?: Endpoint24_0Input) => Effect.Effect<Endpoint24_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
2187
+ status: (input?: Endpoint24_1Input) => Effect.Effect<Endpoint24_1Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
2188
+ diff: (input: Endpoint24_2Input) => Effect.Effect<Endpoint24_2Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
2189
+ };
2190
+ debug: {
2191
+ location: {
2192
+ list: () => Effect.Effect<Endpoint25_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
2193
+ evict: (input?: Endpoint25_1Input) => Effect.Effect<void, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
2194
+ };
2195
+ };
2196
+ migration: {
2197
+ v1: {
2198
+ status: () => Effect.Effect<Endpoint26_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
2199
+ };
2200
+ };
2201
+ websearch: {
2202
+ providers: (input?: Endpoint27_0Input) => Effect.Effect<Endpoint27_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ServiceUnavailableError | ClientError | HttpClientError.HttpClientError, never>;
2203
+ query: (input: Endpoint27_1Input) => Effect.Effect<Endpoint27_1Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | import("@opencode-ai/protocol/errors").ServiceUnavailableError | ClientError | HttpClientError.HttpClientError, never>;
2204
+ };
2205
+ config: {
2206
+ get: (input?: Endpoint28_0Input) => Effect.Effect<Endpoint28_0Output, Schema.SchemaError | import("@opencode-ai/protocol/errors").InvalidRequestError | import("@opencode-ai/protocol/errors").UnauthorizedError | ClientError | HttpClientError.HttpClientError, never>;
2207
+ };
2208
+ }, never, import("effect/unstable/http/HttpClient").HttpClient>;