@opencode/client 2.0.31 → 2.1.0

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