@kilocode/client 0.0.0-stage → 0.0.0-v2-9

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 (94) hide show
  1. package/README.md +26 -2
  2. package/dist/chunks/contract-15p82y03.js +62 -0
  3. package/dist/chunks/contract-1x65x4hv.js +1701 -0
  4. package/dist/chunks/contract-5bf0yjkp.js +111 -0
  5. package/dist/chunks/contract-6mptkzbc.js +0 -0
  6. package/dist/chunks/contract-8bbb028w.js +145 -0
  7. package/dist/chunks/contract-8s2anffy.js +11 -0
  8. package/dist/chunks/contract-8ye1ye6f.js +92 -0
  9. package/dist/chunks/contract-9rqn6x4v.js +16 -0
  10. package/dist/chunks/contract-c46qzyff.js +37 -0
  11. package/dist/chunks/contract-gne7h7mq.js +50 -0
  12. package/dist/chunks/contract-hjez4bfs.js +52 -0
  13. package/dist/chunks/contract-m2eywc8w.js +0 -0
  14. package/dist/chunks/contract-nwcpakzx.js +12 -0
  15. package/dist/chunks/contract-qav6mfdz.js +0 -0
  16. package/dist/chunks/contract-ryy6kscr.js +39 -0
  17. package/dist/chunks/contract-s2hya144.js +1524 -0
  18. package/dist/chunks/contract-skhp7hxc.js +81 -0
  19. package/dist/chunks/contract-sxt88q69.js +12 -0
  20. package/dist/chunks/contract-ve4aws36.js +103 -0
  21. package/dist/chunks/contract-vmytr4q8.js +4 -0
  22. package/dist/chunks/contract-vwtmm97t.js +30 -0
  23. package/dist/chunks/contract-vyas3vgt.js +0 -0
  24. package/dist/chunks/contract-w10x3kfx.js +658 -0
  25. package/dist/chunks/contract-xgnj2w4v.js +20 -0
  26. package/dist/chunks/contract-y2etg5bs.js +9 -0
  27. package/dist/chunks/contract-ydhz1zrh.js +238 -0
  28. package/dist/contract.d.ts +1 -0
  29. package/dist/contract.js +12 -0
  30. package/dist/effect/api/api.d.ts +2927 -0
  31. package/dist/effect/api/api.js +0 -0
  32. package/dist/effect/api.d.ts +4 -0
  33. package/dist/effect/api.js +0 -0
  34. package/dist/effect/client.d.ts +2569 -0
  35. package/dist/effect/client.js +15 -0
  36. package/dist/effect/generated/client-error.d.ts +7 -0
  37. package/dist/effect/generated/client-error.js +6 -0
  38. package/dist/effect/generated/client.d.ts +2568 -0
  39. package/dist/effect/generated/client.js +8 -0
  40. package/dist/effect/generated/index.d.ts +2 -0
  41. package/dist/effect/generated/index.js +12 -0
  42. package/dist/effect/index.d.ts +35 -0
  43. package/dist/effect/index.js +75 -0
  44. package/dist/effect/rpc.d.ts +20 -0
  45. package/dist/effect/rpc.js +11 -0
  46. package/dist/effect/service.d.ts +90 -0
  47. package/dist/effect/service.js +187 -0
  48. package/dist/mcp.d.ts +44 -0
  49. package/dist/mcp.js +110 -0
  50. package/dist/promise/api.d.ts +21 -0
  51. package/dist/promise/api.js +0 -0
  52. package/dist/promise/client.d.ts +270 -0
  53. package/dist/promise/client.js +14 -0
  54. package/dist/promise/generated/client-error.d.ts +8 -0
  55. package/dist/promise/generated/client-error.js +6 -0
  56. package/dist/promise/generated/client.d.ts +277 -0
  57. package/dist/promise/generated/client.js +7 -0
  58. package/dist/promise/generated/index.d.ts +3 -0
  59. package/dist/promise/generated/index.js +81 -0
  60. package/dist/promise/generated/types.d.ts +7877 -0
  61. package/dist/promise/generated/types.js +72 -0
  62. package/dist/promise/index.d.ts +6 -0
  63. package/dist/promise/index.js +85 -0
  64. package/dist/promise/rpc.d.ts +32 -0
  65. package/dist/promise/rpc.js +7 -0
  66. package/dist/promise/service.d.ts +24 -0
  67. package/dist/promise/service.js +187 -0
  68. package/dist/pty-handoff.d.ts +12 -0
  69. package/dist/pty-handoff.js +17 -0
  70. package/dist/rpc-runtime.d.ts +20 -0
  71. package/dist/rpc-runtime.js +14 -0
  72. package/dist/service-contender.d.ts +37 -0
  73. package/dist/service-contender.js +10 -0
  74. package/dist/service-probe.d.ts +70 -0
  75. package/dist/service-probe.js +16 -0
  76. package/dist/service-timing.d.ts +12 -0
  77. package/dist/service-timing.js +10 -0
  78. package/dist/service-version.d.ts +2 -0
  79. package/dist/service-version.js +6 -0
  80. package/dist/service.d.ts +52 -0
  81. package/dist/service.js +1 -0
  82. package/dist/shared-events.d.ts +11 -0
  83. package/dist/shared-events.js +8 -0
  84. package/dist/solid/connection.d.ts +37 -0
  85. package/dist/solid/connection.js +10 -0
  86. package/dist/solid/data.d.ts +211 -0
  87. package/dist/solid/data.js +18 -0
  88. package/dist/solid/index.d.ts +4 -0
  89. package/dist/solid/index.js +36 -0
  90. package/dist/solid/pty.d.ts +22 -0
  91. package/dist/solid/pty.js +8 -0
  92. package/dist/solid/usage.d.ts +9 -0
  93. package/dist/solid/usage.js +6 -0
  94. package/package.json +88 -4
@@ -0,0 +1,2569 @@
1
+ export * as OpenCode from "./client.js";
2
+ import { Effect, Stream } from "effect";
3
+ import { HttpClient } from "effect/http";
4
+ import { ClientError } from "./generated/index.js";
5
+ import { RpcClientRuntime } from "./rpc.js";
6
+ import type { RpcCallOptions } from "../promise/rpc.js";
7
+ export declare const make: (options?: {
8
+ readonly baseUrl?: URL | string;
9
+ } | undefined) => Effect.Effect<{
10
+ server: {
11
+ info: () => Effect.Effect<import("./api.js").ServerInfoOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
12
+ pair: () => Effect.Effect<import("./api.js").ServerPairOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
13
+ connect: (input: import("./api.js").ServerConnectInput) => Effect.Effect<import("./api.js").ServerConnectOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
14
+ };
15
+ location: {
16
+ get: (input?: import("./api.js").LocationGetInput) => Effect.Effect<import("@opencode/schema/location").PublicInfo, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
17
+ reload: () => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
18
+ };
19
+ agent: {
20
+ list: (input?: import("./api.js").AgentListInput) => Effect.Effect<import("./api.js").AgentListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
21
+ get: (input: import("./api.js").AgentGetInput) => Effect.Effect<import("./api.js").AgentGetOutput, import("@opencode/protocol/errors").AgentNotFoundError | ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
22
+ };
23
+ plugin: {
24
+ list: (input?: import("./api.js").PluginListInput) => Effect.Effect<import("./api.js").PluginListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
25
+ check: (input?: import("./api.js").PluginCheckInput) => Effect.Effect<import("./api.js").PluginCheckOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
26
+ update: (input: import("./api.js").PluginUpdateInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
27
+ };
28
+ session: {
29
+ list: (input?: import("./api.js").SessionListInput) => Effect.Effect<import("./api.js").SessionListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidCursorError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
30
+ stats: (input?: import("./api.js").SessionStatsInput) => Effect.Effect<import("./api.js").SessionStatsOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
31
+ create: (input?: import("./api.js").SessionCreateInput) => Effect.Effect<import("@opencode/schema/session").Info, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
32
+ import: (input: import("./api.js").SessionImportInput) => Effect.Effect<import("@opencode/schema/session").Info, ClientError | import("@opencode/protocol/errors").ConflictError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
33
+ export: (input: import("./api.js").SessionExportInput) => Effect.Effect<import("./api.js").SessionExportOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnknownError, never>;
34
+ active: () => Effect.Effect<import("./api.js").SessionActiveOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
35
+ get: (input: import("./api.js").SessionGetInput) => Effect.Effect<import("@opencode/schema/session").Info, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
36
+ remove: (input: import("./api.js").SessionRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
37
+ fork: (input: import("./api.js").SessionForkInput) => Effect.Effect<import("@opencode/schema/session").Info, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").MessageNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
38
+ switchAgent: (input: import("./api.js").SessionSwitchAgentInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
39
+ switchModel: (input: import("./api.js").SessionSwitchModelInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
40
+ update: (input: import("./api.js").SessionUpdateInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
41
+ move: (input: import("./api.js").SessionMoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
42
+ prompt: (input: import("./api.js").SessionPromptInput) => Effect.Effect<import("@opencode/schema/session-inbox").User, ClientError | import("@opencode/protocol/errors").ConflictError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
43
+ command: (input: import("./api.js").SessionCommandInput) => Effect.Effect<void, ClientError | import("@opencode/protocol/errors").CommandExecutionError | import("@opencode/protocol/errors").CommandNotFoundError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
44
+ skill: (input: import("./api.js").SessionSkillInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").SkillNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
45
+ synthetic: (input: import("./api.js").SessionSyntheticInput) => Effect.Effect<import("@opencode/schema/session-inbox").Synthetic, ClientError | import("@opencode/protocol/errors").ConflictError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
46
+ shell: (input: import("./api.js").SessionShellInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
47
+ compact: (input: import("./api.js").SessionCompactInput) => Effect.Effect<import("@opencode/schema/session-inbox").Compaction, ClientError | import("@opencode/protocol/errors").ConflictError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
48
+ wait: (input: import("./api.js").SessionWaitInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
49
+ revert: {
50
+ stage: (input: import("./api.js").SessionRevertStageInput) => Effect.Effect<import("@opencode/schema/session-revert").Revert, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").MessageNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionBusyError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnknownError, never>;
51
+ clear: (input: import("./api.js").SessionRevertClearInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionBusyError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnknownError, never>;
52
+ commit: (input: import("./api.js").SessionRevertCommitInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionBusyError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
53
+ };
54
+ context: (input: import("./api.js").SessionContextInput) => Effect.Effect<import("./api.js").SessionContextOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnknownError, never>;
55
+ diff: (input: import("./api.js").SessionDiffInput) => Effect.Effect<import("./api.js").SessionDiffOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").MessageNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnknownError, never>;
56
+ inbox: {
57
+ list: (input: import("./api.js").SessionInboxListInput) => Effect.Effect<import("./api.js").SessionInboxListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
58
+ cancel: (input: import("./api.js").SessionInboxCancelInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
59
+ update: (input: import("./api.js").SessionInboxUpdateInput) => Effect.Effect<void, ClientError | import("@opencode/protocol/errors").ConflictError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
60
+ };
61
+ instructions: {
62
+ entry: {
63
+ list: (input: import("./api.js").SessionInstructionsEntryListInput) => Effect.Effect<import("./api.js").SessionInstructionsEntryListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
64
+ put: (input: import("./api.js").SessionInstructionsEntryPutInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/schema/instruction-entry").ValueTooLargeError, never>;
65
+ remove: (input: import("./api.js").SessionInstructionsEntryRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
66
+ };
67
+ };
68
+ generate: (input: import("./api.js").SessionGenerateInput) => Effect.Effect<import("./api.js").SessionGenerateOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
69
+ log: (input: import("./api.js").SessionLogInput) => Stream.Stream<import("./api.js").SessionLogOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/encoding/Sse").Retry | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("effect/encoding/Sse").SseError | import("@opencode/protocol/errors").UnauthorizedError, never>;
70
+ interrupt: (input: import("./api.js").SessionInterruptInput) => Effect.Effect<import("./api.js").SessionInterruptOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
71
+ background: (input: import("./api.js").SessionBackgroundInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
72
+ message: {
73
+ get: (input: import("./api.js").SessionMessageGetInput) => Effect.Effect<import("@opencode/schema/session-message").Info, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").MessageNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
74
+ };
75
+ form: {
76
+ list: (input: import("./api.js").SessionFormListInput) => Effect.Effect<import("./api.js").SessionFormListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
77
+ create: (input: import("./api.js").SessionFormCreateInput) => Effect.Effect<import("@opencode/schema/form").Info, ClientError | import("@opencode/protocol/errors").ConflictError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
78
+ get: (input: import("./api.js").SessionFormGetInput) => Effect.Effect<import("@opencode/schema/form").Detail, ClientError | import("@opencode/protocol/errors").FormNotFoundError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
79
+ reply: (input: import("./api.js").SessionFormReplyInput) => Effect.Effect<void, ClientError | import("@opencode/protocol/errors").FormAlreadySettledError | import("@opencode/protocol/errors").FormInvalidAnswerError | import("@opencode/protocol/errors").FormNotFoundError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
80
+ cancel: (input: import("./api.js").SessionFormCancelInput) => Effect.Effect<void, ClientError | import("@opencode/protocol/errors").FormAlreadySettledError | import("@opencode/protocol/errors").FormNotFoundError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
81
+ };
82
+ environment: (input: import("./api.js").SessionEnvironmentInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
83
+ view: (input: import("./api.js").SessionViewInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
84
+ };
85
+ message: {
86
+ list: (input: import("./api.js").MessageListInput) => Effect.Effect<import("./api.js").MessageListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidCursorError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnknownError, never>;
87
+ };
88
+ model: {
89
+ list: (input?: import("./api.js").ModelListInput) => Effect.Effect<import("./api.js").ModelListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
90
+ default: (input?: import("./api.js").ModelDefaultInput) => Effect.Effect<import("./api.js").ModelDefaultOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
91
+ };
92
+ generate: {
93
+ text: (input: import("./api.js").GenerateTextInput) => Effect.Effect<import("./api.js").GenerateTextOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
94
+ };
95
+ voice: {
96
+ models: () => Effect.Effect<import("./api.js").VoiceModelsOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
97
+ session: (input: import("./api.js").VoiceSessionInput) => Effect.Effect<import("./api.js").VoiceSessionOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
98
+ instructions: (input: import("./api.js").VoiceInstructionsInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
99
+ };
100
+ provider: {
101
+ list: (input?: import("./api.js").ProviderListInput) => Effect.Effect<import("./api.js").ProviderListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
102
+ get: (input: import("./api.js").ProviderGetInput) => Effect.Effect<import("./api.js").ProviderGetOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
103
+ };
104
+ integration: {
105
+ list: (input?: import("./api.js").IntegrationListInput) => Effect.Effect<import("./api.js").IntegrationListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
106
+ get: (input: import("./api.js").IntegrationGetInput) => Effect.Effect<import("./api.js").IntegrationGetOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
107
+ wellknown: {
108
+ add: (input: import("./api.js").IntegrationWellknownAddInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
109
+ };
110
+ connect: {
111
+ key: (input: import("./api.js").IntegrationConnectKeyInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
112
+ external: (input: import("./api.js").IntegrationConnectExternalInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
113
+ };
114
+ oauth: {
115
+ connect: (input: import("./api.js").IntegrationOauthConnectInput) => Effect.Effect<import("./api.js").IntegrationOauthConnectOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
116
+ status: (input: import("./api.js").IntegrationOauthStatusInput) => Effect.Effect<import("./api.js").IntegrationOauthStatusOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").IntegrationAttemptNotFoundError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
117
+ complete: (input: import("./api.js").IntegrationOauthCompleteInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").IntegrationAttemptNotFoundError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
118
+ cancel: (input: import("./api.js").IntegrationOauthCancelInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
119
+ };
120
+ command: {
121
+ connect: (input: import("./api.js").IntegrationCommandConnectInput) => Effect.Effect<import("./api.js").IntegrationCommandConnectOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").IntegrationMethodNotFoundError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
122
+ status: (input: import("./api.js").IntegrationCommandStatusInput) => Effect.Effect<import("./api.js").IntegrationCommandStatusOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").IntegrationAttemptNotFoundError | import("@opencode/protocol/errors").IntegrationNotFoundError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
123
+ cancel: (input: import("./api.js").IntegrationCommandCancelInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
124
+ };
125
+ };
126
+ mcp: {
127
+ list: (input?: import("./api.js").McpListInput) => Effect.Effect<import("./api.js").McpListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
128
+ add: (input: import("./api.js").McpAddInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
129
+ remove: (input: import("./api.js").McpRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").McpServerNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
130
+ connect: (input: import("./api.js").McpConnectInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").McpServerNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
131
+ disconnect: (input: import("./api.js").McpDisconnectInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").McpServerNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
132
+ resource: {
133
+ catalog: (input?: import("./api.js").McpResourceCatalogInput) => Effect.Effect<import("./api.js").McpResourceCatalogOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
134
+ };
135
+ client: {
136
+ token: (input: import("./api.js").McpClientTokenInput) => Effect.Effect<import("./api.js").McpClientTokenOutput, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
137
+ };
138
+ };
139
+ credential: {
140
+ list: () => Effect.Effect<import("./api.js").CredentialListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
141
+ create: (input: import("./api.js").CredentialCreateInput) => Effect.Effect<import("@opencode/schema/credential").Entry, ClientError | import("@opencode/protocol/errors").ConflictError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
142
+ update: (input: import("./api.js").CredentialUpdateInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
143
+ activate: (input: import("./api.js").CredentialActivateInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
144
+ remove: (input: import("./api.js").CredentialRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
145
+ };
146
+ project: {
147
+ list: (input?: import("./api.js").ProjectListInput) => Effect.Effect<import("./api.js").ProjectListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
148
+ update: (input: import("./api.js").ProjectUpdateInput) => Effect.Effect<import("@opencode/schema/project").Info, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ProjectNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
149
+ };
150
+ form: {
151
+ list: (input?: import("./api.js").FormListInput) => Effect.Effect<import("./api.js").FormListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
152
+ };
153
+ permission: {
154
+ request: {
155
+ list: (input?: import("./api.js").PermissionRequestListInput) => Effect.Effect<import("./api.js").PermissionRequestListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
156
+ };
157
+ saved: {
158
+ list: (input?: import("./api.js").PermissionSavedListInput) => Effect.Effect<import("./api.js").PermissionSavedListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
159
+ update: (input: import("./api.js").PermissionSavedUpdateInput) => Effect.Effect<import("@opencode/schema/permission-saved").Info, ClientError | import("@opencode/protocol/errors").ConflictError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").PermissionSavedNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
160
+ remove: (input: import("./api.js").PermissionSavedRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
161
+ };
162
+ create: (input: import("./api.js").PermissionCreateInput) => Effect.Effect<import("./api.js").PermissionCreateOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
163
+ list: (input: import("./api.js").PermissionListInput) => Effect.Effect<import("./api.js").PermissionListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
164
+ get: (input: import("./api.js").PermissionGetInput) => Effect.Effect<import("@opencode/schema/permission").Request, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").PermissionNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
165
+ reply: (input: import("./api.js").PermissionReplyInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").PermissionNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
166
+ };
167
+ file: {
168
+ list: (input?: import("./api.js").FileListInput) => Effect.Effect<import("./api.js").FileListOutput, ClientError | import("@opencode/protocol/errors").FileNotFoundError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
169
+ find: (input: import("./api.js").FileFindInput) => Effect.Effect<import("./api.js").FileFindOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
170
+ };
171
+ command: {
172
+ list: (input?: import("./api.js").CommandListInput) => Effect.Effect<import("./api.js").CommandListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
173
+ };
174
+ skill: {
175
+ list: (input?: import("./api.js").SkillListInput) => Effect.Effect<import("./api.js").SkillListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
176
+ };
177
+ pty: {
178
+ list: (input?: import("./api.js").PtyListInput) => Effect.Effect<import("./api.js").PtyListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
179
+ create: (input?: import("./api.js").PtyCreateInput) => Effect.Effect<import("./api.js").PtyCreateOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
180
+ get: (input: import("./api.js").PtyGetInput) => Effect.Effect<import("./api.js").PtyGetOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
181
+ update: (input: import("./api.js").PtyUpdateInput) => Effect.Effect<import("./api.js").PtyUpdateOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
182
+ remove: (input: import("./api.js").PtyRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
183
+ connect: {
184
+ token: (input: import("./api.js").PtyConnectTokenInput) => Effect.Effect<import("./api.js").PtyConnectTokenOutput, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
185
+ };
186
+ };
187
+ experimental: {
188
+ persistentPty: {
189
+ read: (input: import("./api.js").ExperimentalPersistentPtyReadInput) => Effect.Effect<import("./api.js").ExperimentalPersistentPtyReadOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
190
+ list: (input: import("./api.js").ExperimentalPersistentPtyListInput) => Effect.Effect<import("./api.js").ExperimentalPersistentPtyListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
191
+ create: (input: import("./api.js").ExperimentalPersistentPtyCreateInput) => Effect.Effect<import("./api.js").ExperimentalPersistentPtyCreateOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
192
+ shutdown: () => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
193
+ handoff: () => Effect.Effect<import("./api.js").ExperimentalPersistentPtyHandoffOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
194
+ get: (input: import("./api.js").ExperimentalPersistentPtyGetInput) => Effect.Effect<import("./api.js").ExperimentalPersistentPtyGetOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
195
+ update: (input: import("./api.js").ExperimentalPersistentPtyUpdateInput) => Effect.Effect<import("./api.js").ExperimentalPersistentPtyUpdateOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
196
+ snapshot: (input: import("./api.js").ExperimentalPersistentPtySnapshotInput) => Effect.Effect<import("./api.js").ExperimentalPersistentPtySnapshotOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
197
+ remove: (input: import("./api.js").ExperimentalPersistentPtyRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
198
+ connectToken: (input: import("./api.js").ExperimentalPersistentPtyConnectTokenInput) => Effect.Effect<import("@opencode/schema/pty-ticket").ConnectToken, ClientError | import("@opencode/protocol/errors").ForbiddenError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").PtyNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
199
+ };
200
+ };
201
+ shell: {
202
+ list: (input?: import("./api.js").ShellListInput) => Effect.Effect<import("./api.js").ShellListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
203
+ create: (input: import("./api.js").ShellCreateInput) => Effect.Effect<import("./api.js").ShellCreateOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
204
+ get: (input: import("./api.js").ShellGetInput) => Effect.Effect<import("./api.js").ShellGetOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ShellNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
205
+ output: (input: import("./api.js").ShellOutputInput) => Effect.Effect<import("./api.js").ShellOutputOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ShellNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
206
+ remove: (input: import("./api.js").ShellRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
207
+ };
208
+ reference: {
209
+ list: (input?: import("./api.js").ReferenceListInput) => Effect.Effect<import("./api.js").ReferenceListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
210
+ };
211
+ worktree: {
212
+ list: (input: import("./api.js").WorktreeListInput) => Effect.Effect<readonly {
213
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
214
+ readonly strategy?: string | undefined;
215
+ }[], ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").ProjectNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
216
+ create: (input: import("./api.js").WorktreeCreateInput) => Effect.Effect<import("@opencode/schema/worktree").Info, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").ProjectNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/groups/worktree").WorktreeError, never>;
217
+ remove: (input: import("./api.js").WorktreeRemoveInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").ProjectNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/groups/worktree").WorktreeError, never>;
218
+ refresh: (input: import("./api.js").WorktreeRefreshInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").ProjectNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/groups/worktree").WorktreeError, never>;
219
+ };
220
+ vcs: {
221
+ init: (input?: import("./api.js").VcsInitInput) => Effect.Effect<void, ClientError | import("@opencode/protocol/errors").ConflictError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/groups/vcs").VcsInitNotSupportedError, never>;
222
+ get: (input?: import("./api.js").VcsGetInput) => Effect.Effect<import("./api.js").VcsGetOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
223
+ base: (input?: import("./api.js").VcsBaseInput) => Effect.Effect<import("./api.js").VcsBaseOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
224
+ status: (input?: import("./api.js").VcsStatusInput) => Effect.Effect<import("./api.js").VcsStatusOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
225
+ branch: {
226
+ list: (input?: import("./api.js").VcsBranchListInput) => Effect.Effect<import("./api.js").VcsBranchListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
227
+ };
228
+ diff: (input: import("./api.js").VcsDiffInput) => Effect.Effect<import("./api.js").VcsDiffOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
229
+ };
230
+ debug: {
231
+ heapDump: (input?: import("./api.js").DebugHeapDumpInput) => Effect.Effect<import("./api.js").DebugHeapDumpOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnknownError, never>;
232
+ location: {
233
+ list: () => Effect.Effect<import("./api.js").DebugLocationListOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
234
+ evict: (input?: import("./api.js").DebugLocationEvictInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
235
+ };
236
+ };
237
+ migration: {
238
+ v1: {
239
+ status: () => Effect.Effect<import("./api.js").MigrationV1StatusOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
240
+ };
241
+ };
242
+ websearch: {
243
+ providers: (input?: import("./api.js").WebsearchProvidersInput) => Effect.Effect<import("./api.js").WebsearchProvidersOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
244
+ query: (input: import("./api.js").WebsearchQueryInput) => Effect.Effect<import("./api.js").WebsearchQueryOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
245
+ };
246
+ config: {
247
+ get: (input?: import("./api.js").ConfigGetInput) => Effect.Effect<import("./api.js").ConfigGetOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
248
+ shells: () => Effect.Effect<import("./api.js").ConfigShellsOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
249
+ update: (input: import("./api.js").ConfigUpdateInput) => Effect.Effect<void, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
250
+ };
251
+ event: {
252
+ subscribe: () => Stream.Stream<{
253
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
254
+ readonly created: number;
255
+ readonly metadata?: {
256
+ readonly [x: string]: unknown;
257
+ } | undefined;
258
+ readonly type: "session.agent.selected";
259
+ readonly durable: {
260
+ readonly aggregateID: string;
261
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
262
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
263
+ };
264
+ readonly location?: {
265
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
266
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
267
+ } | undefined;
268
+ readonly data: {
269
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
270
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
271
+ readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
272
+ };
273
+ } | {
274
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
275
+ readonly created: number;
276
+ readonly metadata?: {
277
+ readonly [x: string]: unknown;
278
+ } | undefined;
279
+ readonly type: "session.archived";
280
+ readonly durable: {
281
+ readonly aggregateID: string;
282
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
283
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
284
+ };
285
+ readonly location?: {
286
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
287
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
288
+ } | undefined;
289
+ readonly data: {
290
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
291
+ };
292
+ } | {
293
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
294
+ readonly created: number;
295
+ readonly metadata?: {
296
+ readonly [x: string]: unknown;
297
+ } | undefined;
298
+ readonly type: "session.compaction.ended";
299
+ readonly durable: {
300
+ readonly aggregateID: string;
301
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
302
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
303
+ };
304
+ readonly location?: {
305
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
306
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
307
+ } | undefined;
308
+ readonly data: {
309
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
310
+ readonly reason: "auto" | "manual";
311
+ readonly model?: {
312
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
313
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
314
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
315
+ } | undefined;
316
+ readonly native?: {
317
+ readonly [x: string]: unknown;
318
+ } | undefined;
319
+ readonly text: string;
320
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
321
+ readonly tokens?: {
322
+ readonly input: number;
323
+ readonly output: number;
324
+ readonly reasoning: number;
325
+ readonly cache: {
326
+ readonly read: number;
327
+ readonly write: number;
328
+ };
329
+ } | undefined;
330
+ };
331
+ } | {
332
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
333
+ readonly created: number;
334
+ readonly metadata?: {
335
+ readonly [x: string]: unknown;
336
+ } | undefined;
337
+ readonly type: "session.compaction.failed";
338
+ readonly durable: {
339
+ readonly aggregateID: string;
340
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
341
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
342
+ };
343
+ readonly location?: {
344
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
345
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
346
+ } | undefined;
347
+ readonly data: {
348
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
349
+ readonly reason: "auto" | "manual";
350
+ readonly error: {
351
+ readonly type: string;
352
+ readonly message: string;
353
+ readonly status?: number | undefined;
354
+ readonly response?: {
355
+ readonly body: string;
356
+ } | undefined;
357
+ readonly retryAfterMs?: number | undefined;
358
+ };
359
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
360
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
361
+ readonly tokens?: {
362
+ readonly input: number;
363
+ readonly output: number;
364
+ readonly reasoning: number;
365
+ readonly cache: {
366
+ readonly read: number;
367
+ readonly write: number;
368
+ };
369
+ } | undefined;
370
+ };
371
+ } | {
372
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
373
+ readonly created: number;
374
+ readonly metadata?: {
375
+ readonly [x: string]: unknown;
376
+ } | undefined;
377
+ readonly type: "session.compaction.started";
378
+ readonly durable: {
379
+ readonly aggregateID: string;
380
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
381
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
382
+ };
383
+ readonly location?: {
384
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
385
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
386
+ } | undefined;
387
+ readonly data: {
388
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
389
+ readonly reason: "auto" | "manual";
390
+ readonly inputID?: (string & import("effect/Brand").Brand<"Session.Message.ID">) | undefined;
391
+ };
392
+ } | {
393
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
394
+ readonly created: number;
395
+ readonly metadata?: {
396
+ readonly [x: string]: unknown;
397
+ } | undefined;
398
+ readonly type: "session.created";
399
+ readonly durable: {
400
+ readonly aggregateID: string;
401
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
402
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
403
+ };
404
+ readonly location?: {
405
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
406
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
407
+ } | undefined;
408
+ readonly data: {
409
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
410
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
411
+ readonly location: {
412
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
413
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
414
+ };
415
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
416
+ readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | undefined;
417
+ readonly slug: string;
418
+ readonly title?: string | undefined;
419
+ readonly agent?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
420
+ readonly model?: {
421
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
422
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
423
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
424
+ } | undefined;
425
+ readonly metadata?: {
426
+ readonly [x: string]: import("effect/Schema").Json;
427
+ } | undefined;
428
+ readonly permissions?: readonly {
429
+ readonly action: string;
430
+ readonly resource: string;
431
+ readonly effect: "allow" | "ask" | "deny";
432
+ }[] | undefined;
433
+ readonly version: string;
434
+ };
435
+ } | {
436
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
437
+ readonly created: number;
438
+ readonly metadata?: {
439
+ readonly [x: string]: unknown;
440
+ } | undefined;
441
+ readonly type: "session.deleted";
442
+ readonly durable: {
443
+ readonly aggregateID: string;
444
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
445
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
446
+ };
447
+ readonly location?: {
448
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
449
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
450
+ } | undefined;
451
+ readonly data: {
452
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
453
+ };
454
+ } | {
455
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
456
+ readonly created: number;
457
+ readonly metadata?: {
458
+ readonly [x: string]: unknown;
459
+ } | undefined;
460
+ readonly type: "session.execution.failed";
461
+ readonly durable: {
462
+ readonly aggregateID: string;
463
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
464
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
465
+ };
466
+ readonly location?: {
467
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
468
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
469
+ } | undefined;
470
+ readonly data: {
471
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
472
+ readonly error: {
473
+ readonly type: string;
474
+ readonly message: string;
475
+ readonly status?: number | undefined;
476
+ readonly response?: {
477
+ readonly body: string;
478
+ } | undefined;
479
+ readonly retryAfterMs?: number | undefined;
480
+ };
481
+ };
482
+ } | {
483
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
484
+ readonly created: number;
485
+ readonly metadata?: {
486
+ readonly [x: string]: unknown;
487
+ } | undefined;
488
+ readonly type: "session.execution.interrupted";
489
+ readonly durable: {
490
+ readonly aggregateID: string;
491
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
492
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
493
+ };
494
+ readonly location?: {
495
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
496
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
497
+ } | undefined;
498
+ readonly data: {
499
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
500
+ readonly reason: "inactivity" | "shutdown" | "superseded" | "user";
501
+ };
502
+ } | {
503
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
504
+ readonly created: number;
505
+ readonly metadata?: {
506
+ readonly [x: string]: unknown;
507
+ } | undefined;
508
+ readonly type: "session.execution.started";
509
+ readonly durable: {
510
+ readonly aggregateID: string;
511
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
512
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
513
+ };
514
+ readonly location?: {
515
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
516
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
517
+ } | undefined;
518
+ readonly data: {
519
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
520
+ };
521
+ } | {
522
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
523
+ readonly created: number;
524
+ readonly metadata?: {
525
+ readonly [x: string]: unknown;
526
+ } | undefined;
527
+ readonly type: "session.execution.succeeded";
528
+ readonly durable: {
529
+ readonly aggregateID: string;
530
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
531
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
532
+ };
533
+ readonly location?: {
534
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
535
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
536
+ } | undefined;
537
+ readonly data: {
538
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
539
+ };
540
+ } | {
541
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
542
+ readonly created: number;
543
+ readonly metadata?: {
544
+ readonly [x: string]: unknown;
545
+ } | undefined;
546
+ readonly type: "session.forked";
547
+ readonly durable: {
548
+ readonly aggregateID: string;
549
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
550
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
551
+ };
552
+ readonly location?: {
553
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
554
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
555
+ } | undefined;
556
+ readonly data: {
557
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
558
+ readonly parentID: string & import("effect/Brand").Brand<"SessionID">;
559
+ readonly boundary: {
560
+ readonly type: "before";
561
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
562
+ } | {
563
+ readonly type: "through";
564
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
565
+ };
566
+ readonly instructions?: {
567
+ readonly [x: string & import("effect/Brand").Brand<"Instruction.Key">]: string & import("effect/Brand").Brand<"Instruction.Hash">;
568
+ } | undefined;
569
+ readonly instructionEntries?: readonly {
570
+ readonly key: string;
571
+ readonly value: import("effect/Schema").Json;
572
+ readonly removed: boolean;
573
+ }[] | undefined;
574
+ };
575
+ } | {
576
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
577
+ readonly created: number;
578
+ readonly metadata?: {
579
+ readonly [x: string]: unknown;
580
+ } | undefined;
581
+ readonly type: "session.inbox.cancelled";
582
+ readonly durable: {
583
+ readonly aggregateID: string;
584
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
585
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
586
+ };
587
+ readonly location?: {
588
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
589
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
590
+ } | undefined;
591
+ readonly data: {
592
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
593
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
594
+ };
595
+ } | {
596
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
597
+ readonly created: number;
598
+ readonly metadata?: {
599
+ readonly [x: string]: unknown;
600
+ } | undefined;
601
+ readonly type: "session.inbox.delivered";
602
+ readonly durable: {
603
+ readonly aggregateID: string;
604
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
605
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
606
+ };
607
+ readonly location?: {
608
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
609
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
610
+ } | undefined;
611
+ readonly data: {
612
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
613
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
614
+ };
615
+ } | {
616
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
617
+ readonly created: number;
618
+ readonly metadata?: {
619
+ readonly [x: string]: unknown;
620
+ } | undefined;
621
+ readonly type: "session.inbox.delivery.changed";
622
+ readonly durable: {
623
+ readonly aggregateID: string;
624
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
625
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
626
+ };
627
+ readonly location?: {
628
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
629
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
630
+ } | undefined;
631
+ readonly data: {
632
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
633
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
634
+ readonly delivery: "queue" | "steer";
635
+ };
636
+ } | {
637
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
638
+ readonly created: number;
639
+ readonly metadata?: {
640
+ readonly [x: string]: unknown;
641
+ } | undefined;
642
+ readonly type: "session.inbox.enqueued";
643
+ readonly durable: {
644
+ readonly aggregateID: string;
645
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
646
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
647
+ };
648
+ readonly location?: {
649
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
650
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
651
+ } | undefined;
652
+ readonly data: {
653
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
654
+ readonly inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">;
655
+ readonly item: {
656
+ readonly type: "user";
657
+ readonly payload: {
658
+ readonly text: string;
659
+ readonly files?: readonly {
660
+ readonly data: string;
661
+ readonly mime: string;
662
+ readonly source: {
663
+ readonly type: "inline";
664
+ } | {
665
+ readonly type: "uri";
666
+ readonly uri: string;
667
+ };
668
+ readonly name?: string | undefined;
669
+ readonly description?: string | undefined;
670
+ readonly mention?: {
671
+ readonly start: number;
672
+ readonly end: number;
673
+ readonly text: string;
674
+ } | undefined;
675
+ }[] | undefined;
676
+ readonly agents?: readonly {
677
+ readonly name: string;
678
+ readonly mention?: {
679
+ readonly start: number;
680
+ readonly end: number;
681
+ readonly text: string;
682
+ } | undefined;
683
+ }[] | undefined;
684
+ readonly skills?: readonly {
685
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
686
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
687
+ readonly text?: string | undefined;
688
+ readonly mention?: {
689
+ readonly start: number;
690
+ readonly end: number;
691
+ readonly text: string;
692
+ } | undefined;
693
+ }[] | undefined;
694
+ readonly metadata?: {
695
+ readonly [x: string]: unknown;
696
+ } | undefined;
697
+ };
698
+ readonly delivery: "queue" | "steer";
699
+ } | {
700
+ readonly type: "synthetic";
701
+ readonly payload: {
702
+ readonly text: string;
703
+ readonly description?: string | undefined;
704
+ readonly metadata?: {
705
+ readonly [x: string]: unknown;
706
+ } | undefined;
707
+ };
708
+ readonly delivery: "queue" | "steer";
709
+ } | {
710
+ readonly type: "compaction";
711
+ readonly payload: {};
712
+ readonly delivery: "queue" | "steer";
713
+ } | {
714
+ readonly type: "move";
715
+ readonly payload: {
716
+ readonly location: {
717
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
718
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
719
+ };
720
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
721
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
722
+ };
723
+ readonly delivery: "queue" | "steer";
724
+ };
725
+ };
726
+ } | {
727
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
728
+ readonly created: number;
729
+ readonly metadata?: {
730
+ readonly [x: string]: unknown;
731
+ } | undefined;
732
+ readonly type: "session.instructions.updated";
733
+ readonly durable: {
734
+ readonly aggregateID: string;
735
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
736
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
737
+ };
738
+ readonly location?: {
739
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
740
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
741
+ } | undefined;
742
+ readonly data: {
743
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
744
+ readonly delta: {
745
+ readonly [x: string]: "removed" | (string & import("effect/Brand").Brand<"Instruction.Hash">);
746
+ };
747
+ readonly text?: string | undefined;
748
+ };
749
+ } | {
750
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
751
+ readonly created: number;
752
+ readonly metadata?: {
753
+ readonly [x: string]: unknown;
754
+ } | undefined;
755
+ readonly type: "session.metadata.updated";
756
+ readonly durable: {
757
+ readonly aggregateID: string;
758
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
759
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
760
+ };
761
+ readonly location?: {
762
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
763
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
764
+ } | undefined;
765
+ readonly data: {
766
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
767
+ readonly metadata: {
768
+ readonly [x: string]: import("effect/Schema").Json;
769
+ };
770
+ };
771
+ } | {
772
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
773
+ readonly created: number;
774
+ readonly metadata?: {
775
+ readonly [x: string]: unknown;
776
+ } | undefined;
777
+ readonly type: "session.model.selected";
778
+ readonly durable: {
779
+ readonly aggregateID: string;
780
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
781
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
782
+ };
783
+ readonly location?: {
784
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
785
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
786
+ } | undefined;
787
+ readonly data: {
788
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
789
+ readonly model: {
790
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
791
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
792
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
793
+ };
794
+ readonly previous?: {
795
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
796
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
797
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
798
+ } | undefined;
799
+ };
800
+ } | {
801
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
802
+ readonly created: number;
803
+ readonly metadata?: {
804
+ readonly [x: string]: unknown;
805
+ } | undefined;
806
+ readonly type: "session.moved";
807
+ readonly durable: {
808
+ readonly aggregateID: string;
809
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
810
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
811
+ };
812
+ readonly location?: {
813
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
814
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
815
+ } | undefined;
816
+ readonly data: {
817
+ readonly location: {
818
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
819
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
820
+ };
821
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
822
+ readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
823
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
824
+ };
825
+ } | {
826
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
827
+ readonly created: number;
828
+ readonly metadata?: {
829
+ readonly [x: string]: unknown;
830
+ } | undefined;
831
+ readonly type: "session.permissions";
832
+ readonly durable: {
833
+ readonly aggregateID: string;
834
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
835
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
836
+ };
837
+ readonly location?: {
838
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
839
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
840
+ } | undefined;
841
+ readonly data: {
842
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
843
+ readonly permissions: readonly {
844
+ readonly action: string;
845
+ readonly resource: string;
846
+ readonly effect: "allow" | "ask" | "deny";
847
+ }[];
848
+ };
849
+ } | {
850
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
851
+ readonly created: number;
852
+ readonly metadata?: {
853
+ readonly [x: string]: unknown;
854
+ } | undefined;
855
+ readonly type: "session.reasoning.ended";
856
+ readonly durable: {
857
+ readonly aggregateID: string;
858
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
859
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
860
+ };
861
+ readonly location?: {
862
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
863
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
864
+ } | undefined;
865
+ readonly data: {
866
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
867
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
868
+ readonly ordinal: number;
869
+ readonly text: string;
870
+ readonly native?: {
871
+ readonly [x: string]: unknown;
872
+ } | undefined;
873
+ };
874
+ } | {
875
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
876
+ readonly created: number;
877
+ readonly metadata?: {
878
+ readonly [x: string]: unknown;
879
+ } | undefined;
880
+ readonly type: "session.reasoning.started";
881
+ readonly durable: {
882
+ readonly aggregateID: string;
883
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
884
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
885
+ };
886
+ readonly location?: {
887
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
888
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
889
+ } | undefined;
890
+ readonly data: {
891
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
892
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
893
+ readonly ordinal: number;
894
+ readonly native?: {
895
+ readonly [x: string]: unknown;
896
+ } | undefined;
897
+ };
898
+ } | {
899
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
900
+ readonly created: number;
901
+ readonly metadata?: {
902
+ readonly [x: string]: unknown;
903
+ } | undefined;
904
+ readonly type: "session.renamed";
905
+ readonly durable: {
906
+ readonly aggregateID: string;
907
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
908
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
909
+ };
910
+ readonly location?: {
911
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
912
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
913
+ } | undefined;
914
+ readonly data: {
915
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
916
+ readonly title: string;
917
+ };
918
+ } | {
919
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
920
+ readonly created: number;
921
+ readonly metadata?: {
922
+ readonly [x: string]: unknown;
923
+ } | undefined;
924
+ readonly type: "session.retry.scheduled";
925
+ readonly durable: {
926
+ readonly aggregateID: string;
927
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
928
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
929
+ };
930
+ readonly location?: {
931
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
932
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
933
+ } | undefined;
934
+ readonly data: {
935
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
936
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
937
+ readonly attempt: number;
938
+ readonly at: number;
939
+ readonly error: {
940
+ readonly type: string;
941
+ readonly message: string;
942
+ readonly status?: number | undefined;
943
+ readonly response?: {
944
+ readonly body: string;
945
+ } | undefined;
946
+ readonly retryAfterMs?: number | undefined;
947
+ };
948
+ };
949
+ } | {
950
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
951
+ readonly created: number;
952
+ readonly metadata?: {
953
+ readonly [x: string]: unknown;
954
+ } | undefined;
955
+ readonly type: "session.revert.cleared";
956
+ readonly durable: {
957
+ readonly aggregateID: string;
958
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
959
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
960
+ };
961
+ readonly location?: {
962
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
963
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
964
+ } | undefined;
965
+ readonly data: {
966
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
967
+ };
968
+ } | {
969
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
970
+ readonly created: number;
971
+ readonly metadata?: {
972
+ readonly [x: string]: unknown;
973
+ } | undefined;
974
+ readonly type: "session.revert.committed";
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 location?: {
981
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
982
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
983
+ } | undefined;
984
+ readonly data: {
985
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
986
+ readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
987
+ };
988
+ } | {
989
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
990
+ readonly created: number;
991
+ readonly metadata?: {
992
+ readonly [x: string]: unknown;
993
+ } | undefined;
994
+ readonly type: "session.revert.staged";
995
+ readonly durable: {
996
+ readonly aggregateID: string;
997
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
998
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
999
+ };
1000
+ readonly location?: {
1001
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1002
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1003
+ } | undefined;
1004
+ readonly data: {
1005
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1006
+ readonly revert: {
1007
+ readonly messageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1008
+ readonly partID?: string | undefined;
1009
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1010
+ readonly files?: readonly {
1011
+ readonly file: string;
1012
+ readonly patch: string;
1013
+ readonly additions: number;
1014
+ readonly deletions: number;
1015
+ readonly status: "added" | "deleted" | "modified";
1016
+ }[] | undefined;
1017
+ };
1018
+ };
1019
+ } | {
1020
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1021
+ readonly created: number;
1022
+ readonly metadata?: {
1023
+ readonly [x: string]: unknown;
1024
+ } | undefined;
1025
+ readonly type: "session.shell.ended";
1026
+ readonly durable: {
1027
+ readonly aggregateID: string;
1028
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1029
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1030
+ };
1031
+ readonly location?: {
1032
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1033
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1034
+ } | undefined;
1035
+ readonly data: {
1036
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1037
+ readonly shell: {
1038
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
1039
+ readonly status: "exited" | "killed" | "running" | "timeout";
1040
+ readonly command: string;
1041
+ readonly cwd: string;
1042
+ readonly shell: string;
1043
+ readonly file: string;
1044
+ readonly pid?: number | undefined;
1045
+ readonly exit?: number | undefined;
1046
+ readonly signal?: string | undefined;
1047
+ readonly metadata: {
1048
+ readonly [x: string]: unknown;
1049
+ };
1050
+ readonly time: {
1051
+ readonly started: number;
1052
+ readonly completed?: number | undefined;
1053
+ };
1054
+ };
1055
+ readonly output: {
1056
+ readonly output: string;
1057
+ readonly cursor: number;
1058
+ readonly size: number;
1059
+ readonly truncated: boolean;
1060
+ };
1061
+ };
1062
+ } | {
1063
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1064
+ readonly created: number;
1065
+ readonly metadata?: {
1066
+ readonly [x: string]: unknown;
1067
+ } | undefined;
1068
+ readonly type: "session.shell.started";
1069
+ readonly durable: {
1070
+ readonly aggregateID: string;
1071
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1072
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1073
+ };
1074
+ readonly location?: {
1075
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1076
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1077
+ } | undefined;
1078
+ readonly data: {
1079
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1080
+ readonly shell: {
1081
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
1082
+ readonly status: "exited" | "killed" | "running" | "timeout";
1083
+ readonly command: string;
1084
+ readonly cwd: string;
1085
+ readonly shell: string;
1086
+ readonly file: string;
1087
+ readonly pid?: number | undefined;
1088
+ readonly exit?: number | undefined;
1089
+ readonly signal?: string | undefined;
1090
+ readonly metadata: {
1091
+ readonly [x: string]: unknown;
1092
+ };
1093
+ readonly time: {
1094
+ readonly started: number;
1095
+ readonly completed?: number | undefined;
1096
+ };
1097
+ };
1098
+ };
1099
+ } | {
1100
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1101
+ readonly created: number;
1102
+ readonly metadata?: {
1103
+ readonly [x: string]: unknown;
1104
+ } | undefined;
1105
+ readonly type: "session.skill.activated";
1106
+ readonly durable: {
1107
+ readonly aggregateID: string;
1108
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1109
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1110
+ };
1111
+ readonly location?: {
1112
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1113
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1114
+ } | undefined;
1115
+ readonly data: {
1116
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1117
+ readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
1118
+ readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1119
+ readonly text: string;
1120
+ };
1121
+ } | {
1122
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1123
+ readonly created: number;
1124
+ readonly metadata?: {
1125
+ readonly [x: string]: unknown;
1126
+ } | undefined;
1127
+ readonly type: "session.step.ended";
1128
+ readonly durable: {
1129
+ readonly aggregateID: string;
1130
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1131
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1132
+ };
1133
+ readonly location?: {
1134
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1135
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1136
+ } | undefined;
1137
+ readonly data: {
1138
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1139
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1140
+ readonly finish: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown";
1141
+ readonly rawFinish?: string | undefined;
1142
+ readonly native?: {
1143
+ readonly [x: string]: unknown;
1144
+ } | undefined;
1145
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
1146
+ readonly tokens: {
1147
+ readonly input: number;
1148
+ readonly output: number;
1149
+ readonly reasoning: number;
1150
+ readonly cache: {
1151
+ readonly read: number;
1152
+ readonly write: number;
1153
+ };
1154
+ };
1155
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1156
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1157
+ };
1158
+ } | {
1159
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1160
+ readonly created: number;
1161
+ readonly metadata?: {
1162
+ readonly [x: string]: unknown;
1163
+ } | undefined;
1164
+ readonly type: "session.step.failed";
1165
+ readonly durable: {
1166
+ readonly aggregateID: string;
1167
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1168
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1169
+ };
1170
+ readonly location?: {
1171
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1172
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1173
+ } | undefined;
1174
+ readonly data: {
1175
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1176
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1177
+ readonly error: {
1178
+ readonly type: string;
1179
+ readonly message: string;
1180
+ readonly status?: number | undefined;
1181
+ readonly response?: {
1182
+ readonly body: string;
1183
+ } | undefined;
1184
+ readonly retryAfterMs?: number | undefined;
1185
+ };
1186
+ readonly finish?: "content-filter" | undefined;
1187
+ readonly rawFinish?: string | undefined;
1188
+ readonly native?: {
1189
+ readonly [x: string]: unknown;
1190
+ } | undefined;
1191
+ readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1192
+ readonly tokens?: {
1193
+ readonly input: number;
1194
+ readonly output: number;
1195
+ readonly reasoning: number;
1196
+ readonly cache: {
1197
+ readonly read: number;
1198
+ readonly write: number;
1199
+ };
1200
+ } | undefined;
1201
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1202
+ readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1203
+ };
1204
+ } | {
1205
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1206
+ readonly created: number;
1207
+ readonly metadata?: {
1208
+ readonly [x: string]: unknown;
1209
+ } | undefined;
1210
+ readonly type: "session.step.started";
1211
+ readonly durable: {
1212
+ readonly aggregateID: string;
1213
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1214
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1215
+ };
1216
+ readonly location?: {
1217
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1218
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1219
+ } | undefined;
1220
+ readonly data: {
1221
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1222
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1223
+ readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
1224
+ readonly model: {
1225
+ readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1226
+ readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1227
+ readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1228
+ };
1229
+ readonly snapshot?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1230
+ readonly started: number;
1231
+ };
1232
+ } | {
1233
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1234
+ readonly created: number;
1235
+ readonly metadata?: {
1236
+ readonly [x: string]: unknown;
1237
+ } | undefined;
1238
+ readonly type: "session.step.streamed";
1239
+ readonly durable: {
1240
+ readonly aggregateID: string;
1241
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1242
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1243
+ };
1244
+ readonly location?: {
1245
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1246
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1247
+ } | undefined;
1248
+ readonly data: {
1249
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1250
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1251
+ };
1252
+ } | {
1253
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1254
+ readonly created: number;
1255
+ readonly metadata?: {
1256
+ readonly [x: string]: unknown;
1257
+ } | undefined;
1258
+ readonly type: "session.synthetic";
1259
+ readonly durable: {
1260
+ readonly aggregateID: string;
1261
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1262
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1263
+ };
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 data: {
1269
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1270
+ readonly text: string;
1271
+ readonly description?: string | undefined;
1272
+ readonly metadata?: {
1273
+ readonly [x: string]: unknown;
1274
+ } | undefined;
1275
+ };
1276
+ } | {
1277
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1278
+ readonly created: number;
1279
+ readonly metadata?: {
1280
+ readonly [x: string]: unknown;
1281
+ } | undefined;
1282
+ readonly type: "session.text.ended";
1283
+ readonly durable: {
1284
+ readonly aggregateID: string;
1285
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1286
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1287
+ };
1288
+ readonly location?: {
1289
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1290
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1291
+ } | undefined;
1292
+ readonly data: {
1293
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1294
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1295
+ readonly ordinal: number;
1296
+ readonly text: string;
1297
+ readonly native?: {
1298
+ readonly [x: string]: unknown;
1299
+ } | undefined;
1300
+ };
1301
+ } | {
1302
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1303
+ readonly created: number;
1304
+ readonly metadata?: {
1305
+ readonly [x: string]: unknown;
1306
+ } | undefined;
1307
+ readonly type: "session.text.started";
1308
+ readonly durable: {
1309
+ readonly aggregateID: string;
1310
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1311
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1312
+ };
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 data: {
1318
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1319
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1320
+ readonly ordinal: number;
1321
+ };
1322
+ } | {
1323
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1324
+ readonly created: number;
1325
+ readonly metadata?: {
1326
+ readonly [x: string]: unknown;
1327
+ } | undefined;
1328
+ readonly type: "session.tool.called";
1329
+ readonly durable: {
1330
+ readonly aggregateID: string;
1331
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1332
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1333
+ };
1334
+ readonly location?: {
1335
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1336
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1337
+ } | undefined;
1338
+ readonly data: {
1339
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1340
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1341
+ readonly id: string;
1342
+ readonly input: {
1343
+ readonly [x: string]: unknown;
1344
+ };
1345
+ readonly executed: boolean;
1346
+ readonly native?: {
1347
+ readonly [x: string]: unknown;
1348
+ } | undefined;
1349
+ };
1350
+ } | {
1351
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1352
+ readonly created: number;
1353
+ readonly metadata?: {
1354
+ readonly [x: string]: unknown;
1355
+ } | undefined;
1356
+ readonly type: "session.tool.failed";
1357
+ readonly durable: {
1358
+ readonly aggregateID: string;
1359
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1360
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1361
+ };
1362
+ readonly location?: {
1363
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1364
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1365
+ } | undefined;
1366
+ readonly data: {
1367
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1368
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1369
+ readonly id: string;
1370
+ readonly error: {
1371
+ readonly type: string;
1372
+ readonly message: string;
1373
+ readonly status?: number | undefined;
1374
+ readonly response?: {
1375
+ readonly body: string;
1376
+ } | undefined;
1377
+ readonly retryAfterMs?: number | undefined;
1378
+ };
1379
+ readonly content?: readonly [{
1380
+ readonly type: "text";
1381
+ readonly text: string;
1382
+ } | {
1383
+ readonly type: "file";
1384
+ readonly uri: string;
1385
+ readonly mime: string;
1386
+ readonly name?: string | undefined;
1387
+ }, ...({
1388
+ readonly type: "text";
1389
+ readonly text: string;
1390
+ } | {
1391
+ readonly type: "file";
1392
+ readonly uri: string;
1393
+ readonly mime: string;
1394
+ readonly name?: string | undefined;
1395
+ })[]] | undefined;
1396
+ readonly metadata?: {
1397
+ readonly [x: string]: import("effect/Schema").Json;
1398
+ } | undefined;
1399
+ readonly executed: boolean;
1400
+ readonly native?: {
1401
+ readonly [x: string]: unknown;
1402
+ } | undefined;
1403
+ };
1404
+ } | {
1405
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1406
+ readonly created: number;
1407
+ readonly metadata?: {
1408
+ readonly [x: string]: unknown;
1409
+ } | undefined;
1410
+ readonly type: "session.tool.input.ended";
1411
+ readonly durable: {
1412
+ readonly aggregateID: string;
1413
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1414
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1415
+ };
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 data: {
1421
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1422
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1423
+ readonly id: string;
1424
+ readonly text: string;
1425
+ };
1426
+ } | {
1427
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1428
+ readonly created: number;
1429
+ readonly metadata?: {
1430
+ readonly [x: string]: unknown;
1431
+ } | undefined;
1432
+ readonly type: "session.tool.input.started";
1433
+ readonly durable: {
1434
+ readonly aggregateID: string;
1435
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1436
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1437
+ };
1438
+ readonly location?: {
1439
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1440
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1441
+ } | undefined;
1442
+ readonly data: {
1443
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1444
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1445
+ readonly id: string;
1446
+ readonly name: string;
1447
+ };
1448
+ } | {
1449
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1450
+ readonly created: number;
1451
+ readonly metadata?: {
1452
+ readonly [x: string]: unknown;
1453
+ } | undefined;
1454
+ readonly type: "session.tool.success";
1455
+ readonly durable: {
1456
+ readonly aggregateID: string;
1457
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1458
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1459
+ };
1460
+ readonly location?: {
1461
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1462
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1463
+ } | undefined;
1464
+ readonly data: {
1465
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1466
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1467
+ readonly id: string;
1468
+ readonly content: readonly [{
1469
+ readonly type: "text";
1470
+ readonly text: string;
1471
+ } | {
1472
+ readonly type: "file";
1473
+ readonly uri: string;
1474
+ readonly mime: string;
1475
+ readonly name?: string | undefined;
1476
+ }, ...({
1477
+ readonly type: "text";
1478
+ readonly text: string;
1479
+ } | {
1480
+ readonly type: "file";
1481
+ readonly uri: string;
1482
+ readonly mime: string;
1483
+ readonly name?: string | undefined;
1484
+ })[]];
1485
+ readonly metadata?: {
1486
+ readonly [x: string]: import("effect/Schema").Json;
1487
+ } | undefined;
1488
+ readonly executed: boolean;
1489
+ readonly native?: {
1490
+ readonly [x: string]: unknown;
1491
+ } | undefined;
1492
+ };
1493
+ } | {
1494
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1495
+ readonly created: number;
1496
+ readonly metadata?: {
1497
+ readonly [x: string]: unknown;
1498
+ } | undefined;
1499
+ readonly type: "session.unarchived";
1500
+ readonly durable: {
1501
+ readonly aggregateID: string;
1502
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1503
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1504
+ };
1505
+ readonly location?: {
1506
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1507
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1508
+ } | undefined;
1509
+ readonly data: {
1510
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1511
+ };
1512
+ } | {
1513
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1514
+ readonly created: number;
1515
+ readonly metadata?: {
1516
+ readonly [x: string]: unknown;
1517
+ } | undefined;
1518
+ readonly type: "session.viewed";
1519
+ readonly durable: {
1520
+ readonly aggregateID: string;
1521
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1522
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1523
+ };
1524
+ readonly location?: {
1525
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1526
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1527
+ } | undefined;
1528
+ readonly data: {
1529
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1530
+ readonly idle: number;
1531
+ };
1532
+ } | {
1533
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1534
+ readonly created: number;
1535
+ readonly metadata?: {
1536
+ readonly [x: string]: unknown;
1537
+ } | undefined;
1538
+ readonly type: "worktree.resolved";
1539
+ readonly durable: {
1540
+ readonly aggregateID: string;
1541
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1542
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1543
+ };
1544
+ readonly location?: {
1545
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1546
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1547
+ } | undefined;
1548
+ readonly data: {
1549
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
1550
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1551
+ readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
1552
+ readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
1553
+ };
1554
+ } | {
1555
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1556
+ readonly created: number;
1557
+ readonly metadata?: {
1558
+ readonly [x: string]: unknown;
1559
+ } | undefined;
1560
+ readonly type: "agent.updated";
1561
+ readonly location?: {
1562
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1563
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1564
+ } | undefined;
1565
+ readonly data: {};
1566
+ } | {
1567
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1568
+ readonly created: number;
1569
+ readonly metadata?: {
1570
+ readonly [x: string]: unknown;
1571
+ } | undefined;
1572
+ readonly type: "command.updated";
1573
+ readonly location?: {
1574
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1575
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1576
+ } | undefined;
1577
+ readonly data: {};
1578
+ } | {
1579
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1580
+ readonly created: number;
1581
+ readonly metadata?: {
1582
+ readonly [x: string]: unknown;
1583
+ } | undefined;
1584
+ readonly type: "config.updated";
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 data: {};
1590
+ } | {
1591
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1592
+ readonly created: number;
1593
+ readonly metadata?: {
1594
+ readonly [x: string]: unknown;
1595
+ } | undefined;
1596
+ readonly type: "credential.switched";
1597
+ readonly location?: {
1598
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1599
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1600
+ } | undefined;
1601
+ readonly data: {
1602
+ readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
1603
+ readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
1604
+ };
1605
+ } | {
1606
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1607
+ readonly created: number;
1608
+ readonly metadata?: {
1609
+ readonly [x: string]: unknown;
1610
+ } | undefined;
1611
+ readonly type: "credential.updated";
1612
+ readonly location?: {
1613
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1614
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1615
+ } | undefined;
1616
+ readonly data: {};
1617
+ } | {
1618
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1619
+ readonly created: number;
1620
+ readonly metadata?: {
1621
+ readonly [x: string]: unknown;
1622
+ } | undefined;
1623
+ readonly type: "filesystem.changed";
1624
+ readonly location?: {
1625
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1626
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1627
+ } | undefined;
1628
+ readonly data: {
1629
+ readonly file: string;
1630
+ readonly event: "add" | "change" | "unlink";
1631
+ };
1632
+ } | {
1633
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1634
+ readonly created: number;
1635
+ readonly metadata?: {
1636
+ readonly [x: string]: unknown;
1637
+ } | undefined;
1638
+ readonly type: "form.cancelled";
1639
+ readonly location?: {
1640
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1641
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1642
+ } | undefined;
1643
+ readonly data: {
1644
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
1645
+ readonly sessionID: string;
1646
+ };
1647
+ } | {
1648
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1649
+ readonly created: number;
1650
+ readonly metadata?: {
1651
+ readonly [x: string]: unknown;
1652
+ } | undefined;
1653
+ readonly type: "form.created";
1654
+ readonly location?: {
1655
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1656
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1657
+ } | undefined;
1658
+ readonly data: {
1659
+ readonly form: {
1660
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
1661
+ readonly sessionID: string;
1662
+ readonly title: string;
1663
+ readonly metadata?: {
1664
+ readonly [x: string]: unknown;
1665
+ } | undefined;
1666
+ readonly fields: readonly [{
1667
+ readonly key: string;
1668
+ readonly title?: string | undefined;
1669
+ readonly description?: string | undefined;
1670
+ readonly required?: boolean | undefined;
1671
+ readonly hidden?: boolean | undefined;
1672
+ readonly when?: readonly {
1673
+ readonly key: string;
1674
+ readonly op: "eq" | "neq";
1675
+ readonly value: string | number | boolean;
1676
+ }[] | undefined;
1677
+ readonly type: "string";
1678
+ readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
1679
+ readonly minLength?: number | undefined;
1680
+ readonly maxLength?: number | undefined;
1681
+ readonly pattern?: string | undefined;
1682
+ readonly placeholder?: string | undefined;
1683
+ readonly default?: string | undefined;
1684
+ readonly options?: readonly {
1685
+ readonly value: string;
1686
+ readonly label: string;
1687
+ readonly description?: string | undefined;
1688
+ }[] | undefined;
1689
+ readonly custom?: boolean | undefined;
1690
+ } | {
1691
+ readonly key: string;
1692
+ readonly title?: string | undefined;
1693
+ readonly description?: string | undefined;
1694
+ readonly required?: boolean | undefined;
1695
+ readonly hidden?: boolean | undefined;
1696
+ readonly when?: readonly {
1697
+ readonly key: string;
1698
+ readonly op: "eq" | "neq";
1699
+ readonly value: string | number | boolean;
1700
+ }[] | undefined;
1701
+ readonly type: "number";
1702
+ readonly minimum?: number | undefined;
1703
+ readonly maximum?: number | undefined;
1704
+ readonly default?: number | undefined;
1705
+ } | {
1706
+ readonly key: string;
1707
+ readonly title?: string | undefined;
1708
+ readonly description?: string | undefined;
1709
+ readonly required?: boolean | undefined;
1710
+ readonly hidden?: boolean | undefined;
1711
+ readonly when?: readonly {
1712
+ readonly key: string;
1713
+ readonly op: "eq" | "neq";
1714
+ readonly value: string | number | boolean;
1715
+ }[] | undefined;
1716
+ readonly type: "integer";
1717
+ readonly minimum?: number | undefined;
1718
+ readonly maximum?: number | undefined;
1719
+ readonly default?: number | undefined;
1720
+ } | {
1721
+ readonly key: string;
1722
+ readonly title?: string | undefined;
1723
+ readonly description?: string | undefined;
1724
+ readonly required?: boolean | undefined;
1725
+ readonly hidden?: boolean | undefined;
1726
+ readonly when?: readonly {
1727
+ readonly key: string;
1728
+ readonly op: "eq" | "neq";
1729
+ readonly value: string | number | boolean;
1730
+ }[] | undefined;
1731
+ readonly type: "boolean";
1732
+ readonly default?: boolean | undefined;
1733
+ } | {
1734
+ readonly key: string;
1735
+ readonly title?: string | undefined;
1736
+ readonly description?: string | undefined;
1737
+ readonly required?: boolean | undefined;
1738
+ readonly hidden?: boolean | undefined;
1739
+ readonly when?: readonly {
1740
+ readonly key: string;
1741
+ readonly op: "eq" | "neq";
1742
+ readonly value: string | number | boolean;
1743
+ }[] | undefined;
1744
+ readonly type: "multiselect";
1745
+ readonly options: readonly {
1746
+ readonly value: string;
1747
+ readonly label: string;
1748
+ readonly description?: string | undefined;
1749
+ }[];
1750
+ readonly minItems?: number | undefined;
1751
+ readonly maxItems?: number | undefined;
1752
+ readonly custom?: boolean | undefined;
1753
+ readonly default?: readonly string[] | undefined;
1754
+ } | {
1755
+ readonly key: string;
1756
+ readonly type: "external";
1757
+ readonly url: string;
1758
+ readonly title?: string | undefined;
1759
+ readonly description?: string | undefined;
1760
+ }, ...({
1761
+ readonly key: string;
1762
+ readonly title?: string | undefined;
1763
+ readonly description?: string | undefined;
1764
+ readonly required?: boolean | undefined;
1765
+ readonly hidden?: boolean | undefined;
1766
+ readonly when?: readonly {
1767
+ readonly key: string;
1768
+ readonly op: "eq" | "neq";
1769
+ readonly value: string | number | boolean;
1770
+ }[] | undefined;
1771
+ readonly type: "string";
1772
+ readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
1773
+ readonly minLength?: number | undefined;
1774
+ readonly maxLength?: number | undefined;
1775
+ readonly pattern?: string | undefined;
1776
+ readonly placeholder?: string | undefined;
1777
+ readonly default?: string | undefined;
1778
+ readonly options?: readonly {
1779
+ readonly value: string;
1780
+ readonly label: string;
1781
+ readonly description?: string | undefined;
1782
+ }[] | undefined;
1783
+ readonly custom?: boolean | undefined;
1784
+ } | {
1785
+ readonly key: string;
1786
+ readonly title?: string | undefined;
1787
+ readonly description?: string | undefined;
1788
+ readonly required?: boolean | undefined;
1789
+ readonly hidden?: boolean | undefined;
1790
+ readonly when?: readonly {
1791
+ readonly key: string;
1792
+ readonly op: "eq" | "neq";
1793
+ readonly value: string | number | boolean;
1794
+ }[] | undefined;
1795
+ readonly type: "number";
1796
+ readonly minimum?: number | undefined;
1797
+ readonly maximum?: number | undefined;
1798
+ readonly default?: number | undefined;
1799
+ } | {
1800
+ readonly key: string;
1801
+ readonly title?: string | undefined;
1802
+ readonly description?: string | undefined;
1803
+ readonly required?: boolean | undefined;
1804
+ readonly hidden?: boolean | undefined;
1805
+ readonly when?: readonly {
1806
+ readonly key: string;
1807
+ readonly op: "eq" | "neq";
1808
+ readonly value: string | number | boolean;
1809
+ }[] | undefined;
1810
+ readonly type: "integer";
1811
+ readonly minimum?: number | undefined;
1812
+ readonly maximum?: number | undefined;
1813
+ readonly default?: number | undefined;
1814
+ } | {
1815
+ readonly key: string;
1816
+ readonly title?: string | undefined;
1817
+ readonly description?: string | undefined;
1818
+ readonly required?: boolean | undefined;
1819
+ readonly hidden?: boolean | undefined;
1820
+ readonly when?: readonly {
1821
+ readonly key: string;
1822
+ readonly op: "eq" | "neq";
1823
+ readonly value: string | number | boolean;
1824
+ }[] | undefined;
1825
+ readonly type: "boolean";
1826
+ readonly default?: boolean | undefined;
1827
+ } | {
1828
+ readonly key: string;
1829
+ readonly title?: string | undefined;
1830
+ readonly description?: string | undefined;
1831
+ readonly required?: boolean | undefined;
1832
+ readonly hidden?: boolean | undefined;
1833
+ readonly when?: readonly {
1834
+ readonly key: string;
1835
+ readonly op: "eq" | "neq";
1836
+ readonly value: string | number | boolean;
1837
+ }[] | undefined;
1838
+ readonly type: "multiselect";
1839
+ readonly options: readonly {
1840
+ readonly value: string;
1841
+ readonly label: string;
1842
+ readonly description?: string | undefined;
1843
+ }[];
1844
+ readonly minItems?: number | undefined;
1845
+ readonly maxItems?: number | undefined;
1846
+ readonly custom?: boolean | undefined;
1847
+ readonly default?: readonly string[] | undefined;
1848
+ } | {
1849
+ readonly key: string;
1850
+ readonly type: "external";
1851
+ readonly url: string;
1852
+ readonly title?: string | undefined;
1853
+ readonly description?: string | undefined;
1854
+ })[]];
1855
+ };
1856
+ };
1857
+ } | {
1858
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1859
+ readonly created: number;
1860
+ readonly metadata?: {
1861
+ readonly [x: string]: unknown;
1862
+ } | undefined;
1863
+ readonly type: "form.replied";
1864
+ readonly location?: {
1865
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1866
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1867
+ } | undefined;
1868
+ readonly data: {
1869
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
1870
+ readonly sessionID: string;
1871
+ readonly answer: {
1872
+ readonly [x: string]: string | number | boolean | readonly string[];
1873
+ };
1874
+ };
1875
+ } | {
1876
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1877
+ readonly created: number;
1878
+ readonly metadata?: {
1879
+ readonly [x: string]: unknown;
1880
+ } | undefined;
1881
+ readonly type: "installation.update-available";
1882
+ readonly location?: {
1883
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1884
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1885
+ } | undefined;
1886
+ readonly data: {
1887
+ readonly version: string;
1888
+ };
1889
+ } | {
1890
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1891
+ readonly created: number;
1892
+ readonly metadata?: {
1893
+ readonly [x: string]: unknown;
1894
+ } | undefined;
1895
+ readonly type: "installation.updated";
1896
+ readonly location?: {
1897
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1898
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1899
+ } | undefined;
1900
+ readonly data: {
1901
+ readonly version: string;
1902
+ };
1903
+ } | {
1904
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1905
+ readonly created: number;
1906
+ readonly metadata?: {
1907
+ readonly [x: string]: unknown;
1908
+ } | undefined;
1909
+ readonly type: "integration.updated";
1910
+ readonly location?: {
1911
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1912
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1913
+ } | undefined;
1914
+ readonly data: {};
1915
+ } | {
1916
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1917
+ readonly created: number;
1918
+ readonly metadata?: {
1919
+ readonly [x: string]: unknown;
1920
+ } | undefined;
1921
+ readonly type: "location.shutdown";
1922
+ readonly location?: {
1923
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1924
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1925
+ } | undefined;
1926
+ readonly data: {};
1927
+ } | {
1928
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1929
+ readonly created: number;
1930
+ readonly metadata?: {
1931
+ readonly [x: string]: unknown;
1932
+ } | undefined;
1933
+ readonly type: "mcp.resources.changed";
1934
+ readonly location?: {
1935
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1936
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1937
+ } | undefined;
1938
+ readonly data: {
1939
+ readonly server: string;
1940
+ };
1941
+ } | {
1942
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1943
+ readonly created: number;
1944
+ readonly metadata?: {
1945
+ readonly [x: string]: unknown;
1946
+ } | undefined;
1947
+ readonly type: "mcp.status.changed";
1948
+ readonly location?: {
1949
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1950
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1951
+ } | undefined;
1952
+ readonly data: {
1953
+ readonly server: string;
1954
+ };
1955
+ } | {
1956
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1957
+ readonly created: number;
1958
+ readonly metadata?: {
1959
+ readonly [x: string]: unknown;
1960
+ } | undefined;
1961
+ readonly type: "model.updated";
1962
+ readonly location?: {
1963
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1964
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1965
+ } | undefined;
1966
+ readonly data: {};
1967
+ } | {
1968
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1969
+ readonly created: number;
1970
+ readonly metadata?: {
1971
+ readonly [x: string]: unknown;
1972
+ } | undefined;
1973
+ readonly type: "models-dev.refreshed";
1974
+ readonly location?: {
1975
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1976
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1977
+ } | undefined;
1978
+ readonly data: {};
1979
+ } | {
1980
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1981
+ readonly created: number;
1982
+ readonly metadata?: {
1983
+ readonly [x: string]: unknown;
1984
+ } | undefined;
1985
+ readonly type: "permission.asked";
1986
+ readonly location?: {
1987
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1988
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1989
+ } | undefined;
1990
+ readonly data: {
1991
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1992
+ readonly action: string;
1993
+ readonly resources: readonly string[];
1994
+ readonly save?: readonly string[] | undefined;
1995
+ readonly metadata?: {
1996
+ readonly [x: string]: unknown;
1997
+ } | undefined;
1998
+ readonly source?: {
1999
+ readonly type: "tool";
2000
+ readonly messageID: string;
2001
+ readonly id: string;
2002
+ } | undefined;
2003
+ readonly message?: string | undefined;
2004
+ readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
2005
+ };
2006
+ } | {
2007
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2008
+ readonly created: number;
2009
+ readonly metadata?: {
2010
+ readonly [x: string]: unknown;
2011
+ } | undefined;
2012
+ readonly type: "permission.replied";
2013
+ readonly location?: {
2014
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2015
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2016
+ } | undefined;
2017
+ readonly data: {
2018
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2019
+ readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
2020
+ readonly reply: "always" | "once" | "reject";
2021
+ };
2022
+ } | {
2023
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2024
+ readonly created: number;
2025
+ readonly metadata?: {
2026
+ readonly [x: string]: unknown;
2027
+ } | undefined;
2028
+ readonly type: "persistent-pty.added";
2029
+ readonly location?: {
2030
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2031
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2032
+ } | undefined;
2033
+ readonly data: {
2034
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2035
+ readonly terminal: {
2036
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
2037
+ readonly title: string;
2038
+ readonly command: string;
2039
+ readonly args: readonly string[];
2040
+ readonly cwd: string;
2041
+ readonly status: "exited" | "running";
2042
+ readonly pid: number;
2043
+ readonly exitCode?: number | undefined;
2044
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2045
+ readonly foregroundProcess: string | null;
2046
+ readonly size: {
2047
+ readonly cols: number;
2048
+ readonly rows: number;
2049
+ };
2050
+ readonly output: {
2051
+ readonly head: number;
2052
+ readonly tail: number;
2053
+ };
2054
+ };
2055
+ };
2056
+ } | {
2057
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2058
+ readonly created: number;
2059
+ readonly metadata?: {
2060
+ readonly [x: string]: unknown;
2061
+ } | undefined;
2062
+ readonly type: "persistent-pty.removed";
2063
+ readonly location?: {
2064
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2065
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2066
+ } | undefined;
2067
+ readonly data: {
2068
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2069
+ readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
2070
+ };
2071
+ } | {
2072
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2073
+ readonly created: number;
2074
+ readonly metadata?: {
2075
+ readonly [x: string]: unknown;
2076
+ } | undefined;
2077
+ readonly type: "plugin.updated";
2078
+ readonly location?: {
2079
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2080
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2081
+ } | undefined;
2082
+ readonly data: {};
2083
+ } | {
2084
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2085
+ readonly created: number;
2086
+ readonly metadata?: {
2087
+ readonly [x: string]: unknown;
2088
+ } | undefined;
2089
+ readonly type: "project.updated";
2090
+ readonly location?: {
2091
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2092
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2093
+ } | undefined;
2094
+ readonly data: {
2095
+ readonly id: string & import("effect/Brand").Brand<"Project.ID">;
2096
+ readonly canonical: string & import("effect/Brand").Brand<"AbsolutePath">;
2097
+ readonly vcs?: string | undefined;
2098
+ readonly name?: string | undefined;
2099
+ readonly icon?: {
2100
+ readonly url?: string | undefined;
2101
+ readonly override?: string | undefined;
2102
+ readonly color?: string | undefined;
2103
+ } | undefined;
2104
+ readonly commands?: {
2105
+ readonly start?: string | undefined;
2106
+ } | undefined;
2107
+ readonly time: {
2108
+ readonly created: number;
2109
+ readonly updated: number;
2110
+ readonly active: number;
2111
+ readonly archived?: number | undefined;
2112
+ };
2113
+ readonly sandboxes: readonly string[];
2114
+ };
2115
+ } | {
2116
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2117
+ readonly created: number;
2118
+ readonly metadata?: {
2119
+ readonly [x: string]: unknown;
2120
+ } | undefined;
2121
+ readonly type: "provider.updated";
2122
+ readonly location?: {
2123
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2124
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2125
+ } | undefined;
2126
+ readonly data: {};
2127
+ } | {
2128
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2129
+ readonly created: number;
2130
+ readonly metadata?: {
2131
+ readonly [x: string]: unknown;
2132
+ } | undefined;
2133
+ readonly type: "pty.created";
2134
+ readonly location?: {
2135
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2136
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2137
+ } | undefined;
2138
+ readonly data: {
2139
+ readonly info: {
2140
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
2141
+ readonly title: string;
2142
+ readonly command: string;
2143
+ readonly args: readonly string[];
2144
+ readonly cwd: string;
2145
+ readonly status: "exited" | "running";
2146
+ readonly pid: number;
2147
+ readonly exitCode?: number | undefined;
2148
+ };
2149
+ };
2150
+ } | {
2151
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2152
+ readonly created: number;
2153
+ readonly metadata?: {
2154
+ readonly [x: string]: unknown;
2155
+ } | undefined;
2156
+ readonly type: "pty.deleted";
2157
+ readonly location?: {
2158
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2159
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2160
+ } | undefined;
2161
+ readonly data: {
2162
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
2163
+ };
2164
+ } | {
2165
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2166
+ readonly created: number;
2167
+ readonly metadata?: {
2168
+ readonly [x: string]: unknown;
2169
+ } | undefined;
2170
+ readonly type: "pty.exited";
2171
+ readonly location?: {
2172
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2173
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2174
+ } | undefined;
2175
+ readonly data: {
2176
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
2177
+ readonly exitCode: number;
2178
+ };
2179
+ } | {
2180
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2181
+ readonly created: number;
2182
+ readonly metadata?: {
2183
+ readonly [x: string]: unknown;
2184
+ } | undefined;
2185
+ readonly type: "pty.updated";
2186
+ readonly location?: {
2187
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2188
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2189
+ } | undefined;
2190
+ readonly data: {
2191
+ readonly info: {
2192
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
2193
+ readonly title: string;
2194
+ readonly command: string;
2195
+ readonly args: readonly string[];
2196
+ readonly cwd: string;
2197
+ readonly status: "exited" | "running";
2198
+ readonly pid: number;
2199
+ readonly exitCode?: number | undefined;
2200
+ };
2201
+ };
2202
+ } | {
2203
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2204
+ readonly created: number;
2205
+ readonly metadata?: {
2206
+ readonly [x: string]: unknown;
2207
+ } | undefined;
2208
+ readonly type: "reference.updated";
2209
+ readonly location?: {
2210
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2211
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2212
+ } | undefined;
2213
+ readonly data: {};
2214
+ } | {
2215
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2216
+ readonly created: number;
2217
+ readonly metadata?: {
2218
+ readonly [x: string]: unknown;
2219
+ } | undefined;
2220
+ readonly type: "session.compaction.delta";
2221
+ readonly location?: {
2222
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2223
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2224
+ } | undefined;
2225
+ readonly data: {
2226
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2227
+ readonly text: string;
2228
+ };
2229
+ } | {
2230
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2231
+ readonly created: number;
2232
+ readonly metadata?: {
2233
+ readonly [x: string]: unknown;
2234
+ } | undefined;
2235
+ readonly type: "session.idle";
2236
+ readonly location?: {
2237
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2238
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2239
+ } | undefined;
2240
+ readonly data: {
2241
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2242
+ };
2243
+ } | {
2244
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2245
+ readonly created: number;
2246
+ readonly metadata?: {
2247
+ readonly [x: string]: unknown;
2248
+ } | undefined;
2249
+ readonly type: "session.reasoning.delta";
2250
+ readonly location?: {
2251
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2252
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2253
+ } | undefined;
2254
+ readonly data: {
2255
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2256
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
2257
+ readonly ordinal: number;
2258
+ readonly delta: string;
2259
+ };
2260
+ } | {
2261
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2262
+ readonly created: number;
2263
+ readonly metadata?: {
2264
+ readonly [x: string]: unknown;
2265
+ } | undefined;
2266
+ readonly type: "session.status";
2267
+ readonly location?: {
2268
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2269
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2270
+ } | undefined;
2271
+ readonly data: {
2272
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2273
+ readonly status: {
2274
+ readonly type: "idle";
2275
+ } | {
2276
+ readonly type: "busy";
2277
+ } | {
2278
+ readonly type: "retry";
2279
+ readonly attempt: number;
2280
+ readonly message: string;
2281
+ readonly action?: {
2282
+ readonly reason: string;
2283
+ readonly provider: string;
2284
+ readonly title: string;
2285
+ readonly message: string;
2286
+ readonly label: string;
2287
+ readonly link?: string | undefined;
2288
+ } | undefined;
2289
+ readonly next: number;
2290
+ };
2291
+ };
2292
+ } | {
2293
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2294
+ readonly created: number;
2295
+ readonly metadata?: {
2296
+ readonly [x: string]: unknown;
2297
+ } | undefined;
2298
+ readonly type: "session.text.delta";
2299
+ readonly location?: {
2300
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2301
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2302
+ } | undefined;
2303
+ readonly data: {
2304
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2305
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
2306
+ readonly ordinal: number;
2307
+ readonly delta: string;
2308
+ };
2309
+ } | {
2310
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2311
+ readonly created: number;
2312
+ readonly metadata?: {
2313
+ readonly [x: string]: unknown;
2314
+ } | undefined;
2315
+ readonly type: "session.tool.input.delta";
2316
+ readonly location?: {
2317
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2318
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2319
+ } | undefined;
2320
+ readonly data: {
2321
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2322
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
2323
+ readonly id: string;
2324
+ readonly delta: string;
2325
+ };
2326
+ } | {
2327
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2328
+ readonly created: number;
2329
+ readonly metadata?: {
2330
+ readonly [x: string]: unknown;
2331
+ } | undefined;
2332
+ readonly type: "session.tool.progress";
2333
+ readonly location?: {
2334
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2335
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2336
+ } | undefined;
2337
+ readonly data: {
2338
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2339
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
2340
+ readonly id: string;
2341
+ readonly metadata: {
2342
+ readonly [x: string]: import("effect/Schema").Json;
2343
+ };
2344
+ };
2345
+ } | {
2346
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2347
+ readonly created: number;
2348
+ readonly metadata?: {
2349
+ readonly [x: string]: unknown;
2350
+ } | undefined;
2351
+ readonly type: "session.usage.updated";
2352
+ readonly location?: {
2353
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2354
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2355
+ } | undefined;
2356
+ readonly data: {
2357
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2358
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
2359
+ readonly tokens: {
2360
+ readonly input: number;
2361
+ readonly output: number;
2362
+ readonly reasoning: number;
2363
+ readonly cache: {
2364
+ readonly read: number;
2365
+ readonly write: number;
2366
+ };
2367
+ };
2368
+ };
2369
+ } | {
2370
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2371
+ readonly created: number;
2372
+ readonly metadata?: {
2373
+ readonly [x: string]: unknown;
2374
+ } | undefined;
2375
+ readonly type: "shell.created";
2376
+ readonly location?: {
2377
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2378
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2379
+ } | undefined;
2380
+ readonly data: {
2381
+ readonly info: {
2382
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
2383
+ readonly status: "exited" | "killed" | "running" | "timeout";
2384
+ readonly command: string;
2385
+ readonly cwd: string;
2386
+ readonly shell: string;
2387
+ readonly file: string;
2388
+ readonly pid?: number | undefined;
2389
+ readonly exit?: number | undefined;
2390
+ readonly signal?: string | undefined;
2391
+ readonly metadata: {
2392
+ readonly [x: string]: unknown;
2393
+ };
2394
+ readonly time: {
2395
+ readonly started: number;
2396
+ readonly completed?: number | undefined;
2397
+ };
2398
+ };
2399
+ };
2400
+ } | {
2401
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2402
+ readonly created: number;
2403
+ readonly metadata?: {
2404
+ readonly [x: string]: unknown;
2405
+ } | undefined;
2406
+ readonly type: "shell.deleted";
2407
+ readonly location?: {
2408
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2409
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2410
+ } | undefined;
2411
+ readonly data: {
2412
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
2413
+ };
2414
+ } | {
2415
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2416
+ readonly created: number;
2417
+ readonly metadata?: {
2418
+ readonly [x: string]: unknown;
2419
+ } | undefined;
2420
+ readonly type: "shell.exited";
2421
+ readonly location?: {
2422
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2423
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2424
+ } | undefined;
2425
+ readonly data: {
2426
+ readonly id: string & import("effect/Brand").Brand<"Shell.ID">;
2427
+ readonly exit?: number | undefined;
2428
+ readonly status: "exited" | "killed" | "running" | "timeout";
2429
+ };
2430
+ } | {
2431
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2432
+ readonly created: number;
2433
+ readonly metadata?: {
2434
+ readonly [x: string]: unknown;
2435
+ } | undefined;
2436
+ readonly type: "skill.updated";
2437
+ readonly location?: {
2438
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2439
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2440
+ } | undefined;
2441
+ readonly data: {};
2442
+ } | {
2443
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2444
+ readonly created: number;
2445
+ readonly metadata?: {
2446
+ readonly [x: string]: unknown;
2447
+ } | undefined;
2448
+ readonly type: "tui.command.execute";
2449
+ readonly location?: {
2450
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2451
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2452
+ } | undefined;
2453
+ readonly data: {
2454
+ readonly command: string;
2455
+ };
2456
+ } | {
2457
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2458
+ readonly created: number;
2459
+ readonly metadata?: {
2460
+ readonly [x: string]: unknown;
2461
+ } | undefined;
2462
+ readonly type: "tui.prompt.append";
2463
+ readonly location?: {
2464
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2465
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2466
+ } | undefined;
2467
+ readonly data: {
2468
+ readonly text: string;
2469
+ };
2470
+ } | {
2471
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2472
+ readonly created: number;
2473
+ readonly metadata?: {
2474
+ readonly [x: string]: unknown;
2475
+ } | undefined;
2476
+ readonly type: "tui.session.select";
2477
+ readonly location?: {
2478
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2479
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2480
+ } | undefined;
2481
+ readonly data: {
2482
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2483
+ };
2484
+ } | {
2485
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2486
+ readonly created: number;
2487
+ readonly metadata?: {
2488
+ readonly [x: string]: unknown;
2489
+ } | undefined;
2490
+ readonly type: "tui.toast.show";
2491
+ readonly location?: {
2492
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2493
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2494
+ } | undefined;
2495
+ readonly data: {
2496
+ readonly title?: string | undefined;
2497
+ readonly message: string;
2498
+ readonly variant: "error" | "info" | "success" | "warning";
2499
+ readonly duration: number;
2500
+ };
2501
+ } | {
2502
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2503
+ readonly created: number;
2504
+ readonly metadata?: {
2505
+ readonly [x: string]: unknown;
2506
+ } | undefined;
2507
+ readonly type: "vcs.branch.updated";
2508
+ readonly location?: {
2509
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2510
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2511
+ } | undefined;
2512
+ readonly data: {
2513
+ readonly branch?: string | undefined;
2514
+ };
2515
+ } | {
2516
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2517
+ readonly created: number;
2518
+ readonly metadata?: {
2519
+ readonly [x: string]: unknown;
2520
+ } | undefined;
2521
+ readonly type: "websearch.updated";
2522
+ readonly location?: {
2523
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2524
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2525
+ } | undefined;
2526
+ readonly data: {};
2527
+ } | {
2528
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2529
+ readonly created: number;
2530
+ readonly metadata?: {
2531
+ readonly [x: string]: unknown;
2532
+ } | undefined;
2533
+ readonly type: "worktree.updated";
2534
+ readonly location?: {
2535
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2536
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2537
+ } | undefined;
2538
+ readonly data: {
2539
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
2540
+ };
2541
+ } | {
2542
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2543
+ readonly created: number;
2544
+ readonly metadata?: {
2545
+ readonly [x: string]: unknown;
2546
+ } | undefined;
2547
+ readonly type: `rpc.${string}`;
2548
+ readonly location: {
2549
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2550
+ };
2551
+ readonly data: {
2552
+ readonly [x: string]: unknown;
2553
+ };
2554
+ } | {
2555
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2556
+ readonly metadata?: {
2557
+ readonly [x: string]: unknown;
2558
+ } | undefined;
2559
+ readonly location?: {
2560
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2561
+ } | undefined;
2562
+ readonly type: "server.connected";
2563
+ readonly data: {};
2564
+ }, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/encoding/Sse").Retry | import("effect/Schema").SchemaError | import("effect/encoding/Sse").SseError | import("@opencode/protocol/errors").UnauthorizedError, never>;
2565
+ };
2566
+ rpc: RpcClientRuntime.RpcApi<ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("effect/Schema").SchemaError | import("@opencode/schema/rpc").SystemError | import("@opencode/protocol/errors").UnauthorizedError, RpcCallOptions, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("effect/encoding/Sse").Retry | import("effect/Schema").SchemaError | import("effect/encoding/Sse").SseError | import("@opencode/protocol/errors").UnauthorizedError> & {
2567
+ call: (input: import("./api.js").RpcCallInput) => Effect.Effect<import("./api.js").RpcCallOutput, ClientError | import("effect/http/HttpClientError").HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").RpcError | import("@opencode/protocol/errors").RpcInternalError | import("effect/Schema").SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
2568
+ };
2569
+ }, never, HttpClient.HttpClient>;