@opencode/client 2.1.3 → 2.2.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 (76) hide show
  1. package/dist/chunks/service-timing-6mq2wh8y.js +33 -0
  2. package/dist/chunks/{service-probe-y2etg5bs.js → service-timing-7f0py9js.js} +2 -2
  3. package/dist/chunks/{service-probe-ezt8t3fk.js → service-timing-8we1dz3p.js} +6 -2
  4. package/dist/chunks/{service-probe-8ye1ye6f.js → service-timing-8ye1ye6f.js} +2 -2
  5. package/dist/chunks/{service-probe-6vp15eh6.js → service-timing-ab9bm97w.js} +1 -1
  6. package/dist/chunks/service-timing-b80wmp2t.js +30 -0
  7. package/dist/chunks/{service-probe-61wt4y9h.js → service-timing-cyxwqteg.js} +111 -75
  8. package/dist/chunks/{service-probe-8bbb028w.js → service-timing-gecjxyvt.js} +5 -1
  9. package/dist/chunks/{service-probe-xwk4fryp.js → service-timing-jpd9ebw3.js} +17 -17
  10. package/dist/chunks/{service-probe-nwcpakzx.js → service-timing-js54wxgp.js} +2 -2
  11. package/dist/chunks/{service-probe-v1n69e13.js → service-timing-knyqkv17.js} +8 -2
  12. package/dist/chunks/{service-probe-9j12j8xw.js → service-timing-myz4ngx9.js} +5 -5
  13. package/dist/chunks/{service-probe-5r97ebd4.js → service-timing-rxd7awy0.js} +59 -22
  14. package/dist/chunks/{service-probe-ryy6kscr.js → service-timing-ryy6kscr.js} +1 -1
  15. package/dist/chunks/{service-probe-g22sa7qz.js → service-timing-wcsbjfhx.js} +129 -36
  16. package/dist/contract.js +1 -1
  17. package/dist/effect/api/api.d.ts +104 -14
  18. package/dist/effect/api.d.ts +1 -0
  19. package/dist/effect/client.d.ts +901 -885
  20. package/dist/effect/client.js +12 -12
  21. package/dist/effect/generated/client-error.js +3 -3
  22. package/dist/effect/generated/client.d.ts +515 -503
  23. package/dist/effect/generated/client.js +5 -5
  24. package/dist/effect/generated/index.js +8 -8
  25. package/dist/effect/index.js +12 -12
  26. package/dist/effect/rpc.js +4 -4
  27. package/dist/effect/service.d.ts +1 -1
  28. package/dist/effect/service.js +11 -11
  29. package/dist/mcp.d.ts +44 -0
  30. package/dist/mcp.js +110 -0
  31. package/dist/promise/api.d.ts +1 -0
  32. package/dist/promise/client.d.ts +16 -5
  33. package/dist/promise/client.js +11 -11
  34. package/dist/promise/generated/client-error.js +3 -3
  35. package/dist/promise/generated/client.d.ts +17 -6
  36. package/dist/promise/generated/client.js +4 -4
  37. package/dist/promise/generated/index.js +17 -9
  38. package/dist/promise/generated/types.d.ts +1165 -3509
  39. package/dist/promise/generated/types.js +10 -2
  40. package/dist/promise/index.d.ts +1 -0
  41. package/dist/promise/index.js +21 -13
  42. package/dist/promise/rpc.js +2 -2
  43. package/dist/promise/service.d.ts +2 -2
  44. package/dist/promise/service.js +12 -11
  45. package/dist/pty-handoff.js +4 -1
  46. package/dist/rpc-runtime.js +1 -1
  47. package/dist/service-contender.js +1 -1
  48. package/dist/service-probe.js +3 -3
  49. package/dist/service-timing.js +1 -1
  50. package/dist/service-version.js +1 -1
  51. package/dist/service.js +1 -1
  52. package/dist/shared-events.d.ts +7 -2
  53. package/dist/shared-events.js +1 -1
  54. package/dist/solid/connection.js +1 -1
  55. package/dist/solid/data.d.ts +11 -1
  56. package/dist/solid/data.js +9 -9
  57. package/dist/solid/index.d.ts +1 -0
  58. package/dist/solid/index.js +16 -12
  59. package/dist/solid/pty.js +1 -1
  60. package/dist/solid/retention.d.ts +10 -0
  61. package/dist/solid/retention.js +6 -0
  62. package/dist/solid/usage.js +1 -1
  63. package/package.json +15 -8
  64. package/dist/chunks/service-probe-9p0yrv34.js +0 -30
  65. /package/dist/chunks/{service-probe-6mptkzbc.js → service-timing-6mptkzbc.js} +0 -0
  66. /package/dist/chunks/{service-probe-8s2anffy.js → service-timing-8s2anffy.js} +0 -0
  67. /package/dist/chunks/{service-probe-9rqn6x4v.js → service-timing-9rqn6x4v.js} +0 -0
  68. /package/dist/chunks/{service-probe-gne7h7mq.js → service-timing-gne7h7mq.js} +0 -0
  69. /package/dist/chunks/{service-probe-m2eywc8w.js → service-timing-m2eywc8w.js} +0 -0
  70. /package/dist/chunks/{service-probe-qav6mfdz.js → service-timing-qav6mfdz.js} +0 -0
  71. /package/dist/chunks/{service-probe-sxt88q69.js → service-timing-sxt88q69.js} +0 -0
  72. /package/dist/chunks/{service-probe-ve4aws36.js → service-timing-ve4aws36.js} +0 -0
  73. /package/dist/chunks/{service-probe-vmytr4q8.js → service-timing-vmytr4q8.js} +0 -0
  74. /package/dist/chunks/{service-probe-vyas3vgt.js → service-timing-vyas3vgt.js} +0 -0
  75. /package/dist/chunks/{service-probe-xgnj2w4v.js → service-timing-xgnj2w4v.js} +0 -0
  76. /package/dist/chunks/{service-probe-ydhz1zrh.js → service-timing-ydhz1zrh.js} +0 -0
@@ -1,7 +1,7 @@
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, VoiceModelsOutput, VoiceSessionInput, VoiceSessionOutput, VoiceInstructionsInput, 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";
4
+ import type { ServerInfoOutput, ServerPairOutput, ServerConnectInput, ServerConnectOutput, LocationGetInput, AgentListInput, AgentListOutput, AgentGetInput, AgentGetOutput, PluginListInput, PluginListOutput, PluginGuiInput, PluginGuiOutput, 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, GenerateImageInput, GenerateDecisionsInput, VoiceModelsOutput, 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, McpClientTokenInput, McpClientTokenOutput, 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, FileWatchInput, FileUnwatchInput, CommandListInput, CommandListOutput, SkillListInput, SkillListOutput, RpcCallInput, RpcCallOutput, EventSubscribeInput, 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, DebugHeapDumpInput, DebugHeapDumpOutput, DebugLocationListOutput, DebugLocationEvictInput, MigrationV1StatusOutput, WebsearchProvidersInput, WebsearchProvidersOutput, WebsearchQueryInput, WebsearchQueryOutput, UsageLimitsInput, UsageLimitsOutput, 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;
@@ -16,11 +16,12 @@ export declare const make: (options?: {
16
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, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, 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").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError, never>;
20
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
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
+ gui: (input: PluginGuiInput) => Effect.Effect<PluginGuiOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").PluginNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
24
25
  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
26
  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
27
  };
@@ -33,9 +34,9 @@ export declare const make: (options?: {
33
34
  active: () => Effect.Effect<SessionActiveOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
34
35
  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
36
  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>;
37
+ fork: (input: SessionForkInput) => Effect.Effect<import("@opencode/schema/session").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>;
38
+ switchAgent: (input: SessionSwitchAgentInput) => Effect.Effect<void, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
39
+ switchModel: (input: SessionSwitchModelInput) => Effect.Effect<void, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
39
40
  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
41
  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
42
  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>;
@@ -44,11 +45,11 @@ export declare const make: (options?: {
44
45
  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
46
  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
47
  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
+ wait: (input: SessionWaitInput) => Effect.Effect<void, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
48
49
  revert: {
49
50
  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
51
  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
+ commit: (input: SessionRevertCommitInput) => Effect.Effect<void, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").SessionBusyError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
52
53
  };
53
54
  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
55
  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>;
@@ -59,15 +60,15 @@ export declare const make: (options?: {
59
60
  };
60
61
  instructions: {
61
62
  entry: {
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>;
63
+ list: (input: SessionInstructionsEntryListInput) => Effect.Effect<SessionInstructionsEntryListOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
64
+ put: (input: SessionInstructionsEntryPutInput) => Effect.Effect<void, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/schema/instruction-entry").ValueTooLargeError, never>;
65
+ remove: (input: SessionInstructionsEntryRemoveInput) => Effect.Effect<void, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
65
66
  };
66
67
  };
67
68
  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
69
  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>;
70
+ interrupt: (input: SessionInterruptInput) => Effect.Effect<SessionInterruptOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
71
+ background: (input: SessionBackgroundInput) => Effect.Effect<void, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").SessionNotFoundError | import("@opencode/protocol/errors").UnauthorizedError, never>;
71
72
  message: {
72
73
  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
74
  };
@@ -89,12 +90,13 @@ export declare const make: (options?: {
89
90
  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
91
  };
91
92
  generate: {
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
+ text: (input: GenerateTextInput) => Effect.Effect<GenerateTextOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ModelNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("@opencode/protocol/errors").ProviderRequestError | Schema.SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnsupportedModelError, never>;
94
+ image: (input: GenerateImageInput) => Effect.Effect<import("@opencode/schema/generate").ImageResult, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ModelNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("@opencode/protocol/errors").ProviderRequestError | Schema.SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnsupportedModelError, never>;
95
+ decisions: (input: GenerateDecisionsInput) => Effect.Effect<import("@opencode/schema/generate").DecisionResult, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | import("@opencode/protocol/errors").ModelNotFoundError | import("@opencode/protocol/errors").ProviderNotFoundError | import("@opencode/protocol/errors").ProviderRequestError | Schema.SchemaError | import("@opencode/protocol/errors").ServiceUnavailableError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnsupportedModelError, never>;
93
96
  };
94
97
  voice: {
95
98
  models: () => Effect.Effect<VoiceModelsOutput, 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>;
96
99
  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>;
97
- instructions: (input: VoiceInstructionsInput) => 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>;
98
100
  };
99
101
  provider: {
100
102
  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>;
@@ -131,6 +133,9 @@ export declare const make: (options?: {
131
133
  resource: {
132
134
  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>;
133
135
  };
136
+ client: {
137
+ token: (input: McpClientTokenInput) => Effect.Effect<McpClientTokenOutput, ClientError | import("@opencode/protocol/errors").ForbiddenError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
138
+ };
134
139
  };
135
140
  credential: {
136
141
  list: () => Effect.Effect<CredentialListOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
@@ -140,8 +145,8 @@ export declare const make: (options?: {
140
145
  remove: (input: CredentialRemoveInput) => Effect.Effect<void, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
141
146
  };
142
147
  project: {
143
- 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>;
144
- 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>;
148
+ list: (input?: ProjectListInput) => Effect.Effect<ProjectListOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
149
+ update: (input: ProjectUpdateInput) => Effect.Effect<import("@opencode/schema/project").Info, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").ProjectNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
145
150
  };
146
151
  form: {
147
152
  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>;
@@ -152,8 +157,8 @@ export declare const make: (options?: {
152
157
  };
153
158
  saved: {
154
159
  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>;
155
- 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>;
156
- 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>;
160
+ 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").PermissionSavedNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
161
+ remove: (input: PermissionSavedRemoveInput) => Effect.Effect<void, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
157
162
  };
158
163
  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>;
159
164
  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>;
@@ -163,6 +168,8 @@ export declare const make: (options?: {
163
168
  file: {
164
169
  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>;
165
170
  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>;
171
+ watch: (input: FileWatchInput) => Effect.Effect<void, ClientError | import("@opencode/protocol/errors").FileNotFoundError | 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>;
172
+ unwatch: (input: FileUnwatchInput) => Effect.Effect<void, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | import("@opencode/protocol/errors").LocationNotFoundError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
166
173
  };
167
174
  command: {
168
175
  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>;
@@ -174,262 +181,7 @@ export declare const make: (options?: {
174
181
  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>;
175
182
  };
176
183
  event: {
177
- subscribe: () => Stream.Stream<{
178
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
179
- readonly created: number;
180
- readonly metadata?: {
181
- readonly [x: string]: unknown;
182
- } | undefined;
183
- readonly type: "form.cancelled";
184
- readonly location?: {
185
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
186
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
187
- } | undefined;
188
- readonly data: {
189
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
190
- readonly sessionID: string;
191
- };
192
- } | {
193
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
194
- readonly created: number;
195
- readonly metadata?: {
196
- readonly [x: string]: unknown;
197
- } | undefined;
198
- readonly type: "form.created";
199
- readonly location?: {
200
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
201
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
202
- } | undefined;
203
- readonly data: {
204
- readonly form: {
205
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
206
- readonly sessionID: string;
207
- readonly title: string;
208
- readonly metadata?: {
209
- readonly [x: string]: unknown;
210
- } | undefined;
211
- readonly fields: readonly [{
212
- readonly key: string;
213
- readonly title?: string | undefined;
214
- readonly description?: string | undefined;
215
- readonly required?: boolean | undefined;
216
- readonly hidden?: boolean | undefined;
217
- readonly when?: readonly {
218
- readonly key: string;
219
- readonly op: "eq" | "neq";
220
- readonly value: string | number | boolean;
221
- }[] | undefined;
222
- readonly type: "string";
223
- readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
224
- readonly minLength?: number | undefined;
225
- readonly maxLength?: number | undefined;
226
- readonly pattern?: string | undefined;
227
- readonly placeholder?: string | undefined;
228
- readonly default?: string | undefined;
229
- readonly options?: readonly {
230
- readonly value: string;
231
- readonly label: string;
232
- readonly description?: string | undefined;
233
- }[] | undefined;
234
- readonly custom?: boolean | undefined;
235
- } | {
236
- readonly key: string;
237
- readonly title?: string | undefined;
238
- readonly description?: string | undefined;
239
- readonly required?: boolean | undefined;
240
- readonly hidden?: boolean | undefined;
241
- readonly when?: readonly {
242
- readonly key: string;
243
- readonly op: "eq" | "neq";
244
- readonly value: string | number | boolean;
245
- }[] | undefined;
246
- readonly type: "number";
247
- readonly minimum?: number | undefined;
248
- readonly maximum?: number | undefined;
249
- readonly default?: number | undefined;
250
- } | {
251
- readonly key: string;
252
- readonly title?: string | undefined;
253
- readonly description?: string | undefined;
254
- readonly required?: boolean | undefined;
255
- readonly hidden?: boolean | undefined;
256
- readonly when?: readonly {
257
- readonly key: string;
258
- readonly op: "eq" | "neq";
259
- readonly value: string | number | boolean;
260
- }[] | undefined;
261
- readonly type: "integer";
262
- readonly minimum?: number | undefined;
263
- readonly maximum?: number | undefined;
264
- readonly default?: number | undefined;
265
- } | {
266
- readonly key: string;
267
- readonly title?: string | undefined;
268
- readonly description?: string | undefined;
269
- readonly required?: boolean | undefined;
270
- readonly hidden?: boolean | undefined;
271
- readonly when?: readonly {
272
- readonly key: string;
273
- readonly op: "eq" | "neq";
274
- readonly value: string | number | boolean;
275
- }[] | undefined;
276
- readonly type: "boolean";
277
- readonly default?: boolean | undefined;
278
- } | {
279
- readonly key: string;
280
- readonly title?: string | undefined;
281
- readonly description?: string | undefined;
282
- readonly required?: boolean | undefined;
283
- readonly hidden?: boolean | undefined;
284
- readonly when?: readonly {
285
- readonly key: string;
286
- readonly op: "eq" | "neq";
287
- readonly value: string | number | boolean;
288
- }[] | undefined;
289
- readonly type: "multiselect";
290
- readonly options: readonly {
291
- readonly value: string;
292
- readonly label: string;
293
- readonly description?: string | undefined;
294
- }[];
295
- readonly minItems?: number | undefined;
296
- readonly maxItems?: number | undefined;
297
- readonly custom?: boolean | undefined;
298
- readonly default?: readonly string[] | undefined;
299
- } | {
300
- readonly key: string;
301
- readonly type: "external";
302
- readonly url: string;
303
- readonly title?: string | undefined;
304
- readonly description?: string | undefined;
305
- }, ...({
306
- readonly key: string;
307
- readonly title?: string | undefined;
308
- readonly description?: string | undefined;
309
- readonly required?: boolean | undefined;
310
- readonly hidden?: boolean | undefined;
311
- readonly when?: readonly {
312
- readonly key: string;
313
- readonly op: "eq" | "neq";
314
- readonly value: string | number | boolean;
315
- }[] | undefined;
316
- readonly type: "string";
317
- readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
318
- readonly minLength?: number | undefined;
319
- readonly maxLength?: number | undefined;
320
- readonly pattern?: string | undefined;
321
- readonly placeholder?: string | undefined;
322
- readonly default?: string | undefined;
323
- readonly options?: readonly {
324
- readonly value: string;
325
- readonly label: string;
326
- readonly description?: string | undefined;
327
- }[] | undefined;
328
- readonly custom?: boolean | undefined;
329
- } | {
330
- readonly key: string;
331
- readonly title?: string | undefined;
332
- readonly description?: string | undefined;
333
- readonly required?: boolean | undefined;
334
- readonly hidden?: boolean | undefined;
335
- readonly when?: readonly {
336
- readonly key: string;
337
- readonly op: "eq" | "neq";
338
- readonly value: string | number | boolean;
339
- }[] | undefined;
340
- readonly type: "number";
341
- readonly minimum?: number | undefined;
342
- readonly maximum?: number | undefined;
343
- readonly default?: number | undefined;
344
- } | {
345
- readonly key: string;
346
- readonly title?: string | undefined;
347
- readonly description?: string | undefined;
348
- readonly required?: boolean | undefined;
349
- readonly hidden?: boolean | undefined;
350
- readonly when?: readonly {
351
- readonly key: string;
352
- readonly op: "eq" | "neq";
353
- readonly value: string | number | boolean;
354
- }[] | undefined;
355
- readonly type: "integer";
356
- readonly minimum?: number | undefined;
357
- readonly maximum?: number | undefined;
358
- readonly default?: number | undefined;
359
- } | {
360
- readonly key: string;
361
- readonly title?: string | undefined;
362
- readonly description?: string | undefined;
363
- readonly required?: boolean | undefined;
364
- readonly hidden?: boolean | undefined;
365
- readonly when?: readonly {
366
- readonly key: string;
367
- readonly op: "eq" | "neq";
368
- readonly value: string | number | boolean;
369
- }[] | undefined;
370
- readonly type: "boolean";
371
- readonly default?: boolean | undefined;
372
- } | {
373
- readonly key: string;
374
- readonly title?: string | undefined;
375
- readonly description?: string | undefined;
376
- readonly required?: boolean | undefined;
377
- readonly hidden?: boolean | undefined;
378
- readonly when?: readonly {
379
- readonly key: string;
380
- readonly op: "eq" | "neq";
381
- readonly value: string | number | boolean;
382
- }[] | undefined;
383
- readonly type: "multiselect";
384
- readonly options: readonly {
385
- readonly value: string;
386
- readonly label: string;
387
- readonly description?: string | undefined;
388
- }[];
389
- readonly minItems?: number | undefined;
390
- readonly maxItems?: number | undefined;
391
- readonly custom?: boolean | undefined;
392
- readonly default?: readonly string[] | undefined;
393
- } | {
394
- readonly key: string;
395
- readonly type: "external";
396
- readonly url: string;
397
- readonly title?: string | undefined;
398
- readonly description?: string | undefined;
399
- })[]];
400
- };
401
- };
402
- } | {
403
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
404
- readonly created: number;
405
- readonly metadata?: {
406
- readonly [x: string]: unknown;
407
- } | undefined;
408
- readonly type: "form.replied";
409
- readonly location?: {
410
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
411
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
412
- } | undefined;
413
- readonly data: {
414
- readonly id: string & import("effect/Brand").Brand<"Form.ID">;
415
- readonly sessionID: string;
416
- readonly answer: {
417
- readonly [x: string]: string | number | boolean | readonly string[];
418
- };
419
- };
420
- } | {
421
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
422
- readonly created: number;
423
- readonly metadata?: {
424
- readonly [x: string]: unknown;
425
- } | undefined;
426
- readonly type: "agent.updated";
427
- readonly location?: {
428
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
429
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
430
- } | undefined;
431
- readonly data: {};
432
- } | {
184
+ subscribe: (input?: EventSubscribeInput) => Stream.Stream<{
433
185
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
434
186
  readonly created: number;
435
187
  readonly metadata?: {
@@ -1193,6 +945,7 @@ export declare const make: (options?: {
1193
945
  readonly additions: number;
1194
946
  readonly deletions: number;
1195
947
  readonly status: "added" | "deleted" | "modified";
948
+ readonly more?: true | undefined;
1196
949
  }[] | undefined;
1197
950
  };
1198
951
  };
@@ -1715,14 +1468,21 @@ export declare const make: (options?: {
1715
1468
  readonly metadata?: {
1716
1469
  readonly [x: string]: unknown;
1717
1470
  } | undefined;
1718
- readonly type: "session.compaction.delta";
1471
+ readonly type: "worktree.resolved";
1472
+ readonly durable: {
1473
+ readonly aggregateID: string;
1474
+ readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1475
+ readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1476
+ };
1719
1477
  readonly location?: {
1720
1478
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1721
1479
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1722
1480
  } | undefined;
1723
1481
  readonly data: {
1724
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1725
- readonly text: string;
1482
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
1483
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1484
+ readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
1485
+ readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
1726
1486
  };
1727
1487
  } | {
1728
1488
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1730,16 +1490,50 @@ export declare const make: (options?: {
1730
1490
  readonly metadata?: {
1731
1491
  readonly [x: string]: unknown;
1732
1492
  } | undefined;
1733
- readonly type: "session.reasoning.delta";
1493
+ readonly type: "agent.updated";
1494
+ readonly location?: {
1495
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1496
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1497
+ } | undefined;
1498
+ readonly data: {};
1499
+ } | {
1500
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1501
+ readonly created: number;
1502
+ readonly metadata?: {
1503
+ readonly [x: string]: unknown;
1504
+ } | undefined;
1505
+ readonly type: "command.updated";
1506
+ readonly location?: {
1507
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1508
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1509
+ } | undefined;
1510
+ readonly data: {};
1511
+ } | {
1512
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1513
+ readonly created: number;
1514
+ readonly metadata?: {
1515
+ readonly [x: string]: unknown;
1516
+ } | undefined;
1517
+ readonly type: "config.updated";
1518
+ readonly location?: {
1519
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1520
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1521
+ } | undefined;
1522
+ readonly data: {};
1523
+ } | {
1524
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1525
+ readonly created: number;
1526
+ readonly metadata?: {
1527
+ readonly [x: string]: unknown;
1528
+ } | undefined;
1529
+ readonly type: "credential.switched";
1734
1530
  readonly location?: {
1735
1531
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1736
1532
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1737
1533
  } | undefined;
1738
1534
  readonly data: {
1739
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1740
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1741
- readonly ordinal: number;
1742
- readonly delta: string;
1535
+ readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
1536
+ readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
1743
1537
  };
1744
1538
  } | {
1745
1539
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1747,16 +1541,26 @@ export declare const make: (options?: {
1747
1541
  readonly metadata?: {
1748
1542
  readonly [x: string]: unknown;
1749
1543
  } | undefined;
1750
- readonly type: "session.text.delta";
1544
+ readonly type: "credential.updated";
1545
+ readonly location?: {
1546
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1547
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1548
+ } | undefined;
1549
+ readonly data: {};
1550
+ } | {
1551
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1552
+ readonly created: number;
1553
+ readonly metadata?: {
1554
+ readonly [x: string]: unknown;
1555
+ } | undefined;
1556
+ readonly type: "filesystem.changed";
1751
1557
  readonly location?: {
1752
1558
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1753
1559
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1754
1560
  } | undefined;
1755
1561
  readonly data: {
1756
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1757
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1758
- readonly ordinal: number;
1759
- readonly delta: string;
1562
+ readonly file: string;
1563
+ readonly event: "add" | "change" | "unlink";
1760
1564
  };
1761
1565
  } | {
1762
1566
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1764,16 +1568,14 @@ export declare const make: (options?: {
1764
1568
  readonly metadata?: {
1765
1569
  readonly [x: string]: unknown;
1766
1570
  } | undefined;
1767
- readonly type: "session.tool.input.delta";
1571
+ readonly type: "form.cancelled";
1768
1572
  readonly location?: {
1769
1573
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1770
1574
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1771
1575
  } | undefined;
1772
1576
  readonly data: {
1773
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1774
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1775
- readonly id: string;
1776
- readonly delta: string;
1577
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
1578
+ readonly sessionID: string;
1777
1579
  };
1778
1580
  } | {
1779
1581
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1781,17 +1583,208 @@ export declare const make: (options?: {
1781
1583
  readonly metadata?: {
1782
1584
  readonly [x: string]: unknown;
1783
1585
  } | undefined;
1784
- readonly type: "session.tool.progress";
1586
+ readonly type: "form.created";
1785
1587
  readonly location?: {
1786
1588
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1787
1589
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1788
1590
  } | undefined;
1789
1591
  readonly data: {
1790
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1791
- readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
1792
- readonly id: string;
1793
- readonly metadata: {
1794
- readonly [x: string]: Schema.Json;
1592
+ readonly form: {
1593
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
1594
+ readonly sessionID: string;
1595
+ readonly title: string;
1596
+ readonly metadata?: {
1597
+ readonly [x: string]: unknown;
1598
+ } | undefined;
1599
+ readonly fields: readonly [{
1600
+ readonly key: string;
1601
+ readonly title?: string | undefined;
1602
+ readonly description?: string | undefined;
1603
+ readonly required?: boolean | undefined;
1604
+ readonly hidden?: boolean | undefined;
1605
+ readonly when?: readonly {
1606
+ readonly key: string;
1607
+ readonly op: "eq" | "neq";
1608
+ readonly value: string | number | boolean;
1609
+ }[] | undefined;
1610
+ readonly type: "string";
1611
+ readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
1612
+ readonly minLength?: number | undefined;
1613
+ readonly maxLength?: number | undefined;
1614
+ readonly pattern?: string | undefined;
1615
+ readonly placeholder?: string | undefined;
1616
+ readonly default?: string | undefined;
1617
+ readonly options?: readonly {
1618
+ readonly value: string;
1619
+ readonly label: string;
1620
+ readonly description?: string | undefined;
1621
+ }[] | undefined;
1622
+ readonly custom?: boolean | undefined;
1623
+ } | {
1624
+ readonly key: string;
1625
+ readonly title?: string | undefined;
1626
+ readonly description?: string | undefined;
1627
+ readonly required?: boolean | undefined;
1628
+ readonly hidden?: boolean | undefined;
1629
+ readonly when?: readonly {
1630
+ readonly key: string;
1631
+ readonly op: "eq" | "neq";
1632
+ readonly value: string | number | boolean;
1633
+ }[] | undefined;
1634
+ readonly type: "number";
1635
+ readonly minimum?: number | undefined;
1636
+ readonly maximum?: number | undefined;
1637
+ readonly default?: number | undefined;
1638
+ } | {
1639
+ readonly key: string;
1640
+ readonly title?: string | undefined;
1641
+ readonly description?: string | undefined;
1642
+ readonly required?: boolean | undefined;
1643
+ readonly hidden?: boolean | undefined;
1644
+ readonly when?: readonly {
1645
+ readonly key: string;
1646
+ readonly op: "eq" | "neq";
1647
+ readonly value: string | number | boolean;
1648
+ }[] | undefined;
1649
+ readonly type: "integer";
1650
+ readonly minimum?: number | undefined;
1651
+ readonly maximum?: number | undefined;
1652
+ readonly default?: number | undefined;
1653
+ } | {
1654
+ readonly key: string;
1655
+ readonly title?: string | undefined;
1656
+ readonly description?: string | undefined;
1657
+ readonly required?: boolean | undefined;
1658
+ readonly hidden?: boolean | undefined;
1659
+ readonly when?: readonly {
1660
+ readonly key: string;
1661
+ readonly op: "eq" | "neq";
1662
+ readonly value: string | number | boolean;
1663
+ }[] | undefined;
1664
+ readonly type: "boolean";
1665
+ readonly default?: boolean | undefined;
1666
+ } | {
1667
+ readonly key: string;
1668
+ readonly title?: string | undefined;
1669
+ readonly description?: string | undefined;
1670
+ readonly required?: boolean | undefined;
1671
+ readonly hidden?: boolean | undefined;
1672
+ readonly when?: readonly {
1673
+ readonly key: string;
1674
+ readonly op: "eq" | "neq";
1675
+ readonly value: string | number | boolean;
1676
+ }[] | undefined;
1677
+ readonly type: "multiselect";
1678
+ readonly options: readonly {
1679
+ readonly value: string;
1680
+ readonly label: string;
1681
+ readonly description?: string | undefined;
1682
+ }[];
1683
+ readonly minItems?: number | undefined;
1684
+ readonly maxItems?: number | undefined;
1685
+ readonly custom?: boolean | undefined;
1686
+ readonly default?: readonly string[] | undefined;
1687
+ } | {
1688
+ readonly key: string;
1689
+ readonly type: "external";
1690
+ readonly url: string;
1691
+ readonly title?: string | undefined;
1692
+ readonly description?: string | undefined;
1693
+ }, ...({
1694
+ readonly key: string;
1695
+ readonly title?: string | undefined;
1696
+ readonly description?: string | undefined;
1697
+ readonly required?: boolean | undefined;
1698
+ readonly hidden?: boolean | undefined;
1699
+ readonly when?: readonly {
1700
+ readonly key: string;
1701
+ readonly op: "eq" | "neq";
1702
+ readonly value: string | number | boolean;
1703
+ }[] | undefined;
1704
+ readonly type: "string";
1705
+ readonly format?: "date" | "date-time" | "email" | "uri" | undefined;
1706
+ readonly minLength?: number | undefined;
1707
+ readonly maxLength?: number | undefined;
1708
+ readonly pattern?: string | undefined;
1709
+ readonly placeholder?: string | undefined;
1710
+ readonly default?: string | undefined;
1711
+ readonly options?: readonly {
1712
+ readonly value: string;
1713
+ readonly label: string;
1714
+ readonly description?: string | undefined;
1715
+ }[] | undefined;
1716
+ readonly custom?: boolean | undefined;
1717
+ } | {
1718
+ readonly key: string;
1719
+ readonly title?: string | undefined;
1720
+ readonly description?: string | undefined;
1721
+ readonly required?: boolean | undefined;
1722
+ readonly hidden?: boolean | undefined;
1723
+ readonly when?: readonly {
1724
+ readonly key: string;
1725
+ readonly op: "eq" | "neq";
1726
+ readonly value: string | number | boolean;
1727
+ }[] | undefined;
1728
+ readonly type: "number";
1729
+ readonly minimum?: number | undefined;
1730
+ readonly maximum?: number | undefined;
1731
+ readonly default?: number | undefined;
1732
+ } | {
1733
+ readonly key: string;
1734
+ readonly title?: string | undefined;
1735
+ readonly description?: string | undefined;
1736
+ readonly required?: boolean | undefined;
1737
+ readonly hidden?: boolean | undefined;
1738
+ readonly when?: readonly {
1739
+ readonly key: string;
1740
+ readonly op: "eq" | "neq";
1741
+ readonly value: string | number | boolean;
1742
+ }[] | undefined;
1743
+ readonly type: "integer";
1744
+ readonly minimum?: number | undefined;
1745
+ readonly maximum?: number | undefined;
1746
+ readonly default?: number | undefined;
1747
+ } | {
1748
+ readonly key: string;
1749
+ readonly title?: string | undefined;
1750
+ readonly description?: string | undefined;
1751
+ readonly required?: boolean | undefined;
1752
+ readonly hidden?: boolean | undefined;
1753
+ readonly when?: readonly {
1754
+ readonly key: string;
1755
+ readonly op: "eq" | "neq";
1756
+ readonly value: string | number | boolean;
1757
+ }[] | undefined;
1758
+ readonly type: "boolean";
1759
+ readonly default?: boolean | undefined;
1760
+ } | {
1761
+ readonly key: string;
1762
+ readonly title?: string | undefined;
1763
+ readonly description?: string | undefined;
1764
+ readonly required?: boolean | undefined;
1765
+ readonly hidden?: boolean | undefined;
1766
+ readonly when?: readonly {
1767
+ readonly key: string;
1768
+ readonly op: "eq" | "neq";
1769
+ readonly value: string | number | boolean;
1770
+ }[] | undefined;
1771
+ readonly type: "multiselect";
1772
+ readonly options: readonly {
1773
+ readonly value: string;
1774
+ readonly label: string;
1775
+ readonly description?: string | undefined;
1776
+ }[];
1777
+ readonly minItems?: number | undefined;
1778
+ readonly maxItems?: number | undefined;
1779
+ readonly custom?: boolean | undefined;
1780
+ readonly default?: readonly string[] | undefined;
1781
+ } | {
1782
+ readonly key: string;
1783
+ readonly type: "external";
1784
+ readonly url: string;
1785
+ readonly title?: string | undefined;
1786
+ readonly description?: string | undefined;
1787
+ })[]];
1795
1788
  };
1796
1789
  };
1797
1790
  } | {
@@ -1800,22 +1793,16 @@ export declare const make: (options?: {
1800
1793
  readonly metadata?: {
1801
1794
  readonly [x: string]: unknown;
1802
1795
  } | undefined;
1803
- readonly type: "session.usage.updated";
1796
+ readonly type: "form.replied";
1804
1797
  readonly location?: {
1805
1798
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1806
1799
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1807
1800
  } | undefined;
1808
1801
  readonly data: {
1809
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1810
- readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
1811
- readonly tokens: {
1812
- readonly input: number;
1813
- readonly output: number;
1814
- readonly reasoning: number;
1815
- readonly cache: {
1816
- readonly read: number;
1817
- readonly write: number;
1818
- };
1802
+ readonly id: string & import("effect/Brand").Brand<"Form.ID">;
1803
+ readonly sessionID: string;
1804
+ readonly answer: {
1805
+ readonly [x: string]: string | number | boolean | readonly string[];
1819
1806
  };
1820
1807
  };
1821
1808
  } | {
@@ -1824,33 +1811,27 @@ export declare const make: (options?: {
1824
1811
  readonly metadata?: {
1825
1812
  readonly [x: string]: unknown;
1826
1813
  } | undefined;
1827
- readonly type: "websearch.updated";
1814
+ readonly type: "installation.update-available";
1828
1815
  readonly location?: {
1829
1816
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1830
1817
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1831
1818
  } | undefined;
1832
- readonly data: {};
1819
+ readonly data: {
1820
+ readonly version: string;
1821
+ };
1833
1822
  } | {
1834
1823
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1835
1824
  readonly created: number;
1836
1825
  readonly metadata?: {
1837
1826
  readonly [x: string]: unknown;
1838
1827
  } | undefined;
1839
- readonly type: "worktree.resolved";
1840
- readonly durable: {
1841
- readonly aggregateID: string;
1842
- readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
1843
- readonly version: number & import("effect/Brand").Brand<"Event.Version">;
1844
- };
1828
+ readonly type: "installation.updated";
1845
1829
  readonly location?: {
1846
1830
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1847
1831
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1848
1832
  } | undefined;
1849
1833
  readonly data: {
1850
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
1851
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1852
- readonly previous: string & import("effect/Brand").Brand<"Project.ID">;
1853
- readonly adopted?: readonly (string & import("effect/Brand").Brand<"Project.ID">)[] | undefined;
1834
+ readonly version: string;
1854
1835
  };
1855
1836
  } | {
1856
1837
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1858,13 +1839,37 @@ export declare const make: (options?: {
1858
1839
  readonly metadata?: {
1859
1840
  readonly [x: string]: unknown;
1860
1841
  } | undefined;
1861
- readonly type: "worktree.updated";
1842
+ readonly type: "integration.updated";
1843
+ readonly location?: {
1844
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1845
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1846
+ } | undefined;
1847
+ readonly data: {};
1848
+ } | {
1849
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1850
+ readonly created: number;
1851
+ readonly metadata?: {
1852
+ readonly [x: string]: unknown;
1853
+ } | undefined;
1854
+ readonly type: "location.shutdown";
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
+ } | {
1861
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1862
+ readonly created: number;
1863
+ readonly metadata?: {
1864
+ readonly [x: string]: unknown;
1865
+ } | undefined;
1866
+ readonly type: "mcp.resources.changed";
1862
1867
  readonly location?: {
1863
1868
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1864
1869
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1865
1870
  } | undefined;
1866
1871
  readonly data: {
1867
- readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
1872
+ readonly server: string;
1868
1873
  };
1869
1874
  } | {
1870
1875
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1872,22 +1877,13 @@ export declare const make: (options?: {
1872
1877
  readonly metadata?: {
1873
1878
  readonly [x: string]: unknown;
1874
1879
  } | undefined;
1875
- readonly type: "pty.created";
1880
+ readonly type: "mcp.status.changed";
1876
1881
  readonly location?: {
1877
1882
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1878
1883
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1879
1884
  } | undefined;
1880
1885
  readonly data: {
1881
- readonly info: {
1882
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
1883
- readonly title: string;
1884
- readonly command: string;
1885
- readonly args: readonly string[];
1886
- readonly cwd: string;
1887
- readonly status: "exited" | "running";
1888
- readonly pid: number;
1889
- readonly exitCode?: number | undefined;
1890
- };
1886
+ readonly server: string;
1891
1887
  };
1892
1888
  } | {
1893
1889
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1895,13 +1891,50 @@ export declare const make: (options?: {
1895
1891
  readonly metadata?: {
1896
1892
  readonly [x: string]: unknown;
1897
1893
  } | undefined;
1898
- readonly type: "pty.deleted";
1894
+ readonly type: "model.updated";
1895
+ readonly location?: {
1896
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1897
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1898
+ } | undefined;
1899
+ readonly data: {};
1900
+ } | {
1901
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1902
+ readonly created: number;
1903
+ readonly metadata?: {
1904
+ readonly [x: string]: unknown;
1905
+ } | undefined;
1906
+ readonly type: "models-dev.refreshed";
1907
+ readonly location?: {
1908
+ readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1909
+ readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1910
+ } | undefined;
1911
+ readonly data: {};
1912
+ } | {
1913
+ readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1914
+ readonly created: number;
1915
+ readonly metadata?: {
1916
+ readonly [x: string]: unknown;
1917
+ } | undefined;
1918
+ readonly type: "permission.asked";
1899
1919
  readonly location?: {
1900
1920
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1901
1921
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1902
1922
  } | undefined;
1903
1923
  readonly data: {
1904
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
1924
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1925
+ readonly action: string;
1926
+ readonly resources: readonly string[];
1927
+ readonly save?: readonly string[] | undefined;
1928
+ readonly metadata?: {
1929
+ readonly [x: string]: unknown;
1930
+ } | undefined;
1931
+ readonly source?: {
1932
+ readonly type: "tool";
1933
+ readonly messageID: string;
1934
+ readonly id: string;
1935
+ } | undefined;
1936
+ readonly message?: string | undefined;
1937
+ readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
1905
1938
  };
1906
1939
  } | {
1907
1940
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1909,14 +1942,15 @@ export declare const make: (options?: {
1909
1942
  readonly metadata?: {
1910
1943
  readonly [x: string]: unknown;
1911
1944
  } | undefined;
1912
- readonly type: "pty.exited";
1945
+ readonly type: "permission.replied";
1913
1946
  readonly location?: {
1914
1947
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1915
1948
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1916
1949
  } | undefined;
1917
1950
  readonly data: {
1918
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
1919
- readonly exitCode: number;
1951
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1952
+ readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
1953
+ readonly reply: "always" | "once" | "reject";
1920
1954
  };
1921
1955
  } | {
1922
1956
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1924,13 +1958,14 @@ export declare const make: (options?: {
1924
1958
  readonly metadata?: {
1925
1959
  readonly [x: string]: unknown;
1926
1960
  } | undefined;
1927
- readonly type: "pty.updated";
1961
+ readonly type: "persistent-pty.added";
1928
1962
  readonly location?: {
1929
1963
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1930
1964
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1931
1965
  } | undefined;
1932
1966
  readonly data: {
1933
- readonly info: {
1967
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1968
+ readonly terminal: {
1934
1969
  readonly id: string & import("effect/Brand").Brand<"PtyID">;
1935
1970
  readonly title: string;
1936
1971
  readonly command: string;
@@ -1939,6 +1974,16 @@ export declare const make: (options?: {
1939
1974
  readonly status: "exited" | "running";
1940
1975
  readonly pid: number;
1941
1976
  readonly exitCode?: number | undefined;
1977
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
1978
+ readonly foregroundProcess: string | null;
1979
+ readonly size: {
1980
+ readonly cols: number;
1981
+ readonly rows: number;
1982
+ };
1983
+ readonly output: {
1984
+ readonly head: number;
1985
+ readonly tail: number;
1986
+ };
1942
1987
  };
1943
1988
  };
1944
1989
  } | {
@@ -1947,19 +1992,22 @@ export declare const make: (options?: {
1947
1992
  readonly metadata?: {
1948
1993
  readonly [x: string]: unknown;
1949
1994
  } | undefined;
1950
- readonly type: "location.shutdown";
1995
+ readonly type: "persistent-pty.removed";
1951
1996
  readonly location?: {
1952
1997
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1953
1998
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1954
1999
  } | undefined;
1955
- readonly data: {};
2000
+ readonly data: {
2001
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2002
+ readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
2003
+ };
1956
2004
  } | {
1957
2005
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
1958
2006
  readonly created: number;
1959
2007
  readonly metadata?: {
1960
2008
  readonly [x: string]: unknown;
1961
2009
  } | undefined;
1962
- readonly type: "models-dev.refreshed";
2010
+ readonly type: "plugin.updated";
1963
2011
  readonly location?: {
1964
2012
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1965
2013
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -1971,14 +2019,31 @@ export declare const make: (options?: {
1971
2019
  readonly metadata?: {
1972
2020
  readonly [x: string]: unknown;
1973
2021
  } | undefined;
1974
- readonly type: "credential.switched";
2022
+ readonly type: "project.updated";
1975
2023
  readonly location?: {
1976
2024
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1977
2025
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1978
2026
  } | undefined;
1979
2027
  readonly data: {
1980
- readonly integrationID: string & import("effect/Brand").Brand<"Integration.ID">;
1981
- readonly credentialID: (string & import("effect/Brand").Brand<"Credential.ID">) | null;
2028
+ readonly id: string & import("effect/Brand").Brand<"Project.ID">;
2029
+ readonly canonical: string & import("effect/Brand").Brand<"AbsolutePath">;
2030
+ readonly vcs?: string | undefined;
2031
+ readonly name?: string | undefined;
2032
+ readonly icon?: {
2033
+ readonly url?: string | undefined;
2034
+ readonly override?: string | undefined;
2035
+ readonly color?: string | undefined;
2036
+ } | undefined;
2037
+ readonly commands?: {
2038
+ readonly start?: string | undefined;
2039
+ } | undefined;
2040
+ readonly time: {
2041
+ readonly created: number;
2042
+ readonly updated: number;
2043
+ readonly active: number;
2044
+ readonly archived?: number | undefined;
2045
+ };
2046
+ readonly sandboxes: readonly string[];
1982
2047
  };
1983
2048
  } | {
1984
2049
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -1986,7 +2051,7 @@ export declare const make: (options?: {
1986
2051
  readonly metadata?: {
1987
2052
  readonly [x: string]: unknown;
1988
2053
  } | undefined;
1989
- readonly type: "credential.updated";
2054
+ readonly type: "provider.updated";
1990
2055
  readonly location?: {
1991
2056
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1992
2057
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
@@ -1998,50 +2063,74 @@ export declare const make: (options?: {
1998
2063
  readonly metadata?: {
1999
2064
  readonly [x: string]: unknown;
2000
2065
  } | undefined;
2001
- readonly type: "integration.updated";
2066
+ readonly type: "pty.created";
2002
2067
  readonly location?: {
2003
2068
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2004
2069
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2005
2070
  } | undefined;
2006
- readonly data: {};
2071
+ readonly data: {
2072
+ readonly info: {
2073
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
2074
+ readonly title: string;
2075
+ readonly command: string;
2076
+ readonly args: readonly string[];
2077
+ readonly cwd: string;
2078
+ readonly status: "exited" | "running";
2079
+ readonly pid: number;
2080
+ readonly exitCode?: number | undefined;
2081
+ };
2082
+ };
2007
2083
  } | {
2008
2084
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2009
2085
  readonly created: number;
2010
2086
  readonly metadata?: {
2011
2087
  readonly [x: string]: unknown;
2012
2088
  } | undefined;
2013
- readonly type: "provider.updated";
2089
+ readonly type: "pty.deleted";
2014
2090
  readonly location?: {
2015
2091
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2016
2092
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2017
2093
  } | undefined;
2018
- readonly data: {};
2094
+ readonly data: {
2095
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
2096
+ };
2019
2097
  } | {
2020
2098
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2021
2099
  readonly created: number;
2022
2100
  readonly metadata?: {
2023
2101
  readonly [x: string]: unknown;
2024
2102
  } | undefined;
2025
- readonly type: "model.updated";
2103
+ readonly type: "pty.exited";
2026
2104
  readonly location?: {
2027
2105
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2028
2106
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2029
2107
  } | undefined;
2030
- readonly data: {};
2108
+ readonly data: {
2109
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
2110
+ readonly exitCode: number;
2111
+ };
2031
2112
  } | {
2032
2113
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2033
2114
  readonly created: number;
2034
2115
  readonly metadata?: {
2035
2116
  readonly [x: string]: unknown;
2036
2117
  } | undefined;
2037
- readonly type: "filesystem.changed";
2118
+ readonly type: "pty.updated";
2038
2119
  readonly location?: {
2039
2120
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2040
2121
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2041
2122
  } | undefined;
2042
2123
  readonly data: {
2043
- readonly file: string;
2044
- readonly event: "add" | "change" | "unlink";
2124
+ readonly info: {
2125
+ readonly id: string & import("effect/Brand").Brand<"PtyID">;
2126
+ readonly title: string;
2127
+ readonly command: string;
2128
+ readonly args: readonly string[];
2129
+ readonly cwd: string;
2130
+ readonly status: "exited" | "running";
2131
+ readonly pid: number;
2132
+ readonly exitCode?: number | undefined;
2133
+ };
2045
2134
  };
2046
2135
  } | {
2047
2136
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -2061,26 +2150,14 @@ export declare const make: (options?: {
2061
2150
  readonly metadata?: {
2062
2151
  readonly [x: string]: unknown;
2063
2152
  } | undefined;
2064
- readonly type: "permission.asked";
2153
+ readonly type: "session.compaction.delta";
2065
2154
  readonly location?: {
2066
2155
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2067
2156
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2068
2157
  } | undefined;
2069
2158
  readonly data: {
2070
2159
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2071
- readonly action: string;
2072
- readonly resources: readonly string[];
2073
- readonly save?: readonly string[] | undefined;
2074
- readonly metadata?: {
2075
- readonly [x: string]: unknown;
2076
- } | undefined;
2077
- readonly source?: {
2078
- readonly type: "tool";
2079
- readonly messageID: string;
2080
- readonly id: string;
2081
- } | undefined;
2082
- readonly message?: string | undefined;
2083
- readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
2160
+ readonly text: string;
2084
2161
  };
2085
2162
  } | {
2086
2163
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -2088,15 +2165,13 @@ export declare const make: (options?: {
2088
2165
  readonly metadata?: {
2089
2166
  readonly [x: string]: unknown;
2090
2167
  } | undefined;
2091
- readonly type: "permission.replied";
2168
+ readonly type: "session.idle";
2092
2169
  readonly location?: {
2093
2170
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2094
2171
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2095
2172
  } | undefined;
2096
2173
  readonly data: {
2097
2174
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2098
- readonly requestID: string & import("effect/Brand").Brand<"Permission.ID">;
2099
- readonly reply: "always" | "once" | "reject";
2100
2175
  };
2101
2176
  } | {
2102
2177
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -2104,43 +2179,48 @@ export declare const make: (options?: {
2104
2179
  readonly metadata?: {
2105
2180
  readonly [x: string]: unknown;
2106
2181
  } | undefined;
2107
- readonly type: "plugin.updated";
2182
+ readonly type: "session.reasoning.delta";
2108
2183
  readonly location?: {
2109
2184
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2110
2185
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2111
2186
  } | undefined;
2112
- readonly data: {};
2187
+ readonly data: {
2188
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2189
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
2190
+ readonly ordinal: number;
2191
+ readonly delta: string;
2192
+ };
2113
2193
  } | {
2114
2194
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2115
2195
  readonly created: number;
2116
2196
  readonly metadata?: {
2117
2197
  readonly [x: string]: unknown;
2118
2198
  } | undefined;
2119
- readonly type: "project.updated";
2199
+ readonly type: "session.status";
2120
2200
  readonly location?: {
2121
2201
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2122
2202
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2123
2203
  } | undefined;
2124
2204
  readonly data: {
2125
- readonly id: string & import("effect/Brand").Brand<"Project.ID">;
2126
- readonly canonical: string & import("effect/Brand").Brand<"AbsolutePath">;
2127
- readonly vcs?: string | undefined;
2128
- readonly name?: string | undefined;
2129
- readonly icon?: {
2130
- readonly url?: string | undefined;
2131
- readonly override?: string | undefined;
2132
- readonly color?: string | undefined;
2133
- } | undefined;
2134
- readonly commands?: {
2135
- readonly start?: string | undefined;
2136
- } | undefined;
2137
- readonly time: {
2138
- readonly created: number;
2139
- readonly updated: number;
2140
- readonly active: number;
2141
- readonly archived?: number | undefined;
2205
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2206
+ readonly status: {
2207
+ readonly type: "idle";
2208
+ } | {
2209
+ readonly type: "busy";
2210
+ } | {
2211
+ readonly type: "retry";
2212
+ readonly attempt: number;
2213
+ readonly message: string;
2214
+ readonly action?: {
2215
+ readonly reason: string;
2216
+ readonly provider: string;
2217
+ readonly title: string;
2218
+ readonly message: string;
2219
+ readonly label: string;
2220
+ readonly link?: string | undefined;
2221
+ } | undefined;
2222
+ readonly next: number;
2142
2223
  };
2143
- readonly sandboxes: readonly string[];
2144
2224
  };
2145
2225
  } | {
2146
2226
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -2148,68 +2228,51 @@ export declare const make: (options?: {
2148
2228
  readonly metadata?: {
2149
2229
  readonly [x: string]: unknown;
2150
2230
  } | undefined;
2151
- readonly type: "command.updated";
2152
- readonly location?: {
2153
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2154
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2155
- } | undefined;
2156
- readonly data: {};
2157
- } | {
2158
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2159
- readonly created: number;
2160
- readonly metadata?: {
2161
- readonly [x: string]: unknown;
2162
- } | undefined;
2163
- readonly type: "config.updated";
2231
+ readonly type: "session.text.delta";
2164
2232
  readonly location?: {
2165
2233
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2166
2234
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2167
2235
  } | undefined;
2168
- readonly data: {};
2236
+ readonly data: {
2237
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2238
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
2239
+ readonly ordinal: number;
2240
+ readonly delta: string;
2241
+ };
2169
2242
  } | {
2170
2243
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2171
2244
  readonly created: number;
2172
2245
  readonly metadata?: {
2173
2246
  readonly [x: string]: unknown;
2174
2247
  } | undefined;
2175
- readonly type: "skill.updated";
2248
+ readonly type: "session.tool.input.delta";
2176
2249
  readonly location?: {
2177
2250
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2178
2251
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2179
2252
  } | undefined;
2180
- readonly data: {};
2253
+ readonly data: {
2254
+ readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2255
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
2256
+ readonly id: string;
2257
+ readonly delta: string;
2258
+ };
2181
2259
  } | {
2182
2260
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2183
2261
  readonly created: number;
2184
2262
  readonly metadata?: {
2185
2263
  readonly [x: string]: unknown;
2186
2264
  } | undefined;
2187
- readonly type: "persistent-pty.added";
2265
+ readonly type: "session.tool.progress";
2188
2266
  readonly location?: {
2189
2267
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2190
2268
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2191
2269
  } | undefined;
2192
2270
  readonly data: {
2193
2271
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2194
- readonly terminal: {
2195
- readonly id: string & import("effect/Brand").Brand<"PtyID">;
2196
- readonly title: string;
2197
- readonly command: string;
2198
- readonly args: readonly string[];
2199
- readonly cwd: string;
2200
- readonly status: "exited" | "running";
2201
- readonly pid: number;
2202
- readonly exitCode?: number | undefined;
2203
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2204
- readonly foregroundProcess: string | null;
2205
- readonly size: {
2206
- readonly cols: number;
2207
- readonly rows: number;
2208
- };
2209
- readonly output: {
2210
- readonly head: number;
2211
- readonly tail: number;
2212
- };
2272
+ readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
2273
+ readonly id: string;
2274
+ readonly metadata: {
2275
+ readonly [x: string]: Schema.Json;
2213
2276
  };
2214
2277
  };
2215
2278
  } | {
@@ -2218,14 +2281,23 @@ export declare const make: (options?: {
2218
2281
  readonly metadata?: {
2219
2282
  readonly [x: string]: unknown;
2220
2283
  } | undefined;
2221
- readonly type: "persistent-pty.removed";
2284
+ readonly type: "session.usage.updated";
2222
2285
  readonly location?: {
2223
2286
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2224
2287
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2225
2288
  } | undefined;
2226
2289
  readonly data: {
2227
2290
  readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2228
- readonly ptyID: string & import("effect/Brand").Brand<"PtyID">;
2291
+ readonly cost: number & import("effect/Brand").Brand<"Money.USD">;
2292
+ readonly tokens: {
2293
+ readonly input: number;
2294
+ readonly output: number;
2295
+ readonly reasoning: number;
2296
+ readonly cache: {
2297
+ readonly read: number;
2298
+ readonly write: number;
2299
+ };
2300
+ };
2229
2301
  };
2230
2302
  } | {
2231
2303
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -2294,46 +2366,12 @@ export declare const make: (options?: {
2294
2366
  readonly metadata?: {
2295
2367
  readonly [x: string]: unknown;
2296
2368
  } | undefined;
2297
- readonly type: "session.idle";
2298
- readonly location?: {
2299
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2300
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2301
- } | undefined;
2302
- readonly data: {
2303
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2304
- };
2305
- } | {
2306
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2307
- readonly created: number;
2308
- readonly metadata?: {
2309
- readonly [x: string]: unknown;
2310
- } | undefined;
2311
- readonly type: "session.status";
2369
+ readonly type: "skill.updated";
2312
2370
  readonly location?: {
2313
2371
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2314
2372
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2315
2373
  } | undefined;
2316
- readonly data: {
2317
- readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
2318
- readonly status: {
2319
- readonly type: "idle";
2320
- } | {
2321
- readonly type: "retry";
2322
- readonly attempt: number;
2323
- readonly message: string;
2324
- readonly action?: {
2325
- readonly reason: string;
2326
- readonly provider: string;
2327
- readonly title: string;
2328
- readonly message: string;
2329
- readonly label: string;
2330
- readonly link?: string | undefined;
2331
- } | undefined;
2332
- readonly next: number;
2333
- } | {
2334
- readonly type: "busy";
2335
- };
2336
- };
2374
+ readonly data: {};
2337
2375
  } | {
2338
2376
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2339
2377
  readonly created: number;
@@ -2393,34 +2431,6 @@ export declare const make: (options?: {
2393
2431
  readonly variant: "error" | "info" | "success" | "warning";
2394
2432
  readonly duration: number;
2395
2433
  };
2396
- } | {
2397
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2398
- readonly created: number;
2399
- readonly metadata?: {
2400
- readonly [x: string]: unknown;
2401
- } | undefined;
2402
- readonly type: "installation.update-available";
2403
- readonly location?: {
2404
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2405
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2406
- } | undefined;
2407
- readonly data: {
2408
- readonly version: string;
2409
- };
2410
- } | {
2411
- readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2412
- readonly created: number;
2413
- readonly metadata?: {
2414
- readonly [x: string]: unknown;
2415
- } | undefined;
2416
- readonly type: "installation.updated";
2417
- readonly location?: {
2418
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2419
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2420
- } | undefined;
2421
- readonly data: {
2422
- readonly version: string;
2423
- };
2424
2434
  } | {
2425
2435
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2426
2436
  readonly created: number;
@@ -2441,27 +2451,25 @@ export declare const make: (options?: {
2441
2451
  readonly metadata?: {
2442
2452
  readonly [x: string]: unknown;
2443
2453
  } | undefined;
2444
- readonly type: "mcp.resources.changed";
2454
+ readonly type: "websearch.updated";
2445
2455
  readonly location?: {
2446
2456
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2447
2457
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2448
2458
  } | undefined;
2449
- readonly data: {
2450
- readonly server: string;
2451
- };
2459
+ readonly data: {};
2452
2460
  } | {
2453
2461
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
2454
2462
  readonly created: number;
2455
2463
  readonly metadata?: {
2456
2464
  readonly [x: string]: unknown;
2457
2465
  } | undefined;
2458
- readonly type: "mcp.status.changed";
2466
+ readonly type: "worktree.updated";
2459
2467
  readonly location?: {
2460
2468
  readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
2461
2469
  readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
2462
2470
  } | undefined;
2463
2471
  readonly data: {
2464
- readonly server: string;
2472
+ readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
2465
2473
  };
2466
2474
  } | {
2467
2475
  readonly id: string & import("effect/Brand").Brand<"Event.ID">;
@@ -2542,6 +2550,7 @@ export declare const make: (options?: {
2542
2550
  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>;
2543
2551
  };
2544
2552
  debug: {
2553
+ heapDump: (input?: DebugHeapDumpInput) => Effect.Effect<DebugHeapDumpOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError | import("@opencode/protocol/errors").UnknownError, never>;
2545
2554
  location: {
2546
2555
  list: () => Effect.Effect<DebugLocationListOutput, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
2547
2556
  evict: (input?: DebugLocationEvictInput) => Effect.Effect<void, ClientError | HttpClientError.HttpClientError | import("@opencode/protocol/errors").InvalidRequestError | Schema.SchemaError | import("@opencode/protocol/errors").UnauthorizedError, never>;
@@ -2556,6 +2565,9 @@ export declare const make: (options?: {
2556
2565
  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>;
2557
2566
  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>;
2558
2567
  };
2568
+ usage: {
2569
+ limits: (input?: UsageLimitsInput) => Effect.Effect<UsageLimitsOutput, 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>;
2570
+ };
2559
2571
  config: {
2560
2572
  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>;
2561
2573
  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>;