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