@opencode/client 0.0.0-dev-21106 → 0.0.0-dev-21107

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