@stateforge-labs/herdr 0.0.0-stage → 0.3.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/LICENSE +18 -0
- package/NOTICE.md +51 -0
- package/README.md +211 -2
- package/bin/herdr-drift.js +14 -0
- package/bin/herdr-skill.js +38 -0
- package/dist/admin.d.ts +2 -0
- package/dist/admin.js +3 -0
- package/dist/constants.d.ts +236 -0
- package/dist/constants.js +294 -0
- package/dist/core/backoff.d.ts +20 -0
- package/dist/core/backoff.js +53 -0
- package/dist/core/constants.d.ts +143 -0
- package/dist/core/constants.js +98 -0
- package/dist/core/errors.d.ts +35 -0
- package/dist/core/errors.js +16 -0
- package/dist/core/events.d.ts +42 -0
- package/dist/core/events.js +128 -0
- package/dist/core/kernel.d.ts +65 -0
- package/dist/core/kernel.js +138 -0
- package/dist/core/link.d.ts +47 -0
- package/dist/core/link.js +187 -0
- package/dist/core/test-kit/constants.d.ts +51 -0
- package/dist/core/test-kit/constants.js +43 -0
- package/dist/core/test-kit/fake-core.d.ts +61 -0
- package/dist/core/test-kit/fake-core.js +228 -0
- package/dist/core/test-kit/frames.d.ts +1 -0
- package/dist/core/test-kit/frames.js +480 -0
- package/dist/core/test-kit/setup-test.d.ts +18 -0
- package/dist/core/test-kit/setup-test.js +35 -0
- package/dist/core/wire.d.ts +85 -0
- package/dist/core/wire.js +199 -0
- package/dist/core-test-kit.d.ts +5 -0
- package/dist/core-test-kit.js +5 -0
- package/dist/core.d.ts +15 -0
- package/dist/core.js +12 -0
- package/dist/drift/cli.d.ts +22 -0
- package/dist/drift/cli.js +146 -0
- package/dist/drift/constants.d.ts +83 -0
- package/dist/drift/constants.js +73 -0
- package/dist/drift/diff.d.ts +7 -0
- package/dist/drift/diff.js +91 -0
- package/dist/drift/schema.d.ts +19 -0
- package/dist/drift/schema.js +190 -0
- package/dist/drift/types.d.ts +76 -0
- package/dist/drift/types.js +1 -0
- package/dist/drift.d.ts +5 -0
- package/dist/drift.js +6 -0
- package/dist/effect.d.ts +3 -0
- package/dist/effect.js +4 -0
- package/dist/herdr/client/connect.d.ts +5 -0
- package/dist/herdr/client/connect.js +81 -0
- package/dist/herdr/client/held.d.ts +54 -0
- package/dist/herdr/client/held.js +100 -0
- package/dist/herdr/client/long-poll.d.ts +33 -0
- package/dist/herdr/client/long-poll.js +66 -0
- package/dist/herdr/client/scoped.d.ts +45 -0
- package/dist/herdr/client/scoped.js +241 -0
- package/dist/herdr/client/streams.d.ts +9 -0
- package/dist/herdr/client/streams.js +40 -0
- package/dist/herdr/client/subscribe.d.ts +75 -0
- package/dist/herdr/client/subscribe.js +208 -0
- package/dist/herdr/client/types.d.ts +150 -0
- package/dist/herdr/client/types.js +1 -0
- package/dist/herdr/client/watch-pane-set.d.ts +34 -0
- package/dist/herdr/client/watch-pane-set.js +271 -0
- package/dist/herdr/client/watch.d.ts +117 -0
- package/dist/herdr/client/watch.js +138 -0
- package/dist/herdr/effect/to-tagged-error.d.ts +2 -0
- package/dist/herdr/effect/to-tagged-error.js +54 -0
- package/dist/herdr/effect/types.d.ts +51 -0
- package/dist/herdr/effect/types.js +26 -0
- package/dist/herdr/errors.d.ts +53 -0
- package/dist/herdr/errors.js +87 -0
- package/dist/herdr/generated/entries/admin.d.ts +2 -0
- package/dist/herdr/generated/entries/admin.js +5 -0
- package/dist/herdr/generated/entries/client.d.ts +2 -0
- package/dist/herdr/generated/entries/client.js +5 -0
- package/dist/herdr/generated/entries/held.d.ts +2 -0
- package/dist/herdr/generated/entries/held.js +5 -0
- package/dist/herdr/generated/entries/prompt.d.ts +2 -0
- package/dist/herdr/generated/entries/prompt.js +5 -0
- package/dist/herdr/generated/entries/read-only-content.d.ts +2 -0
- package/dist/herdr/generated/entries/read-only-content.js +5 -0
- package/dist/herdr/generated/entries/read-only.d.ts +2 -0
- package/dist/herdr/generated/entries/read-only.js +5 -0
- package/dist/herdr/generated/entry-methods.d.ts +9 -0
- package/dist/herdr/generated/entry-methods.js +17 -0
- package/dist/herdr/generated/errors.d.ts +4 -0
- package/dist/herdr/generated/errors.js +3 -0
- package/dist/herdr/generated/events.d.ts +274 -0
- package/dist/herdr/generated/events.js +3 -0
- package/dist/herdr/generated/index.d.ts +20 -0
- package/dist/herdr/generated/index.js +19 -0
- package/dist/herdr/generated/method-table.d.ts +615 -0
- package/dist/herdr/generated/method-table.js +106 -0
- package/dist/herdr/generated/names/agent-status.d.ts +10 -0
- package/dist/herdr/generated/names/agent-status.js +10 -0
- package/dist/herdr/generated/names/capability-class.d.ts +14 -0
- package/dist/herdr/generated/names/capability-class.js +15 -0
- package/dist/herdr/generated/names/event-kind.d.ts +31 -0
- package/dist/herdr/generated/names/event-kind.js +31 -0
- package/dist/herdr/generated/names/event-match-kind.d.ts +23 -0
- package/dist/herdr/generated/names/event-match-kind.js +24 -0
- package/dist/herdr/generated/names/index.d.ts +10 -0
- package/dist/herdr/generated/names/index.js +12 -0
- package/dist/herdr/generated/names/method.d.ts +209 -0
- package/dist/herdr/generated/names/method.js +209 -0
- package/dist/herdr/generated/names/result-tag.d.ts +68 -0
- package/dist/herdr/generated/names/result-tag.js +68 -0
- package/dist/herdr/generated/names/server-capability.d.ts +10 -0
- package/dist/herdr/generated/names/server-capability.js +11 -0
- package/dist/herdr/generated/names/subscription-event-kind.d.ts +8 -0
- package/dist/herdr/generated/names/subscription-event-kind.js +8 -0
- package/dist/herdr/generated/names/subscription-type.d.ts +31 -0
- package/dist/herdr/generated/names/subscription-type.js +32 -0
- package/dist/herdr/generated/names/token-name-pattern.d.ts +2 -0
- package/dist/herdr/generated/names/token-name-pattern.js +4 -0
- package/dist/herdr/generated/namespaces.d.ts +785 -0
- package/dist/herdr/generated/namespaces.js +3 -0
- package/dist/herdr/generated/overrides.d.ts +33 -0
- package/dist/herdr/generated/overrides.js +20 -0
- package/dist/herdr/generated/params.d.ts +799 -0
- package/dist/herdr/generated/params.js +3 -0
- package/dist/herdr/generated/preset-methods.d.ts +4 -0
- package/dist/herdr/generated/preset-methods.js +7 -0
- package/dist/herdr/generated/presets/sessions-reader.d.ts +2 -0
- package/dist/herdr/generated/presets/sessions-reader.js +5 -0
- package/dist/herdr/generated/results.d.ts +978 -0
- package/dist/herdr/generated/results.js +52 -0
- package/dist/herdr/generated/test-data/defaults.d.ts +739 -0
- package/dist/herdr/generated/test-data/defaults.js +741 -0
- package/dist/herdr/generated/test-data/shapes.d.ts +1325 -0
- package/dist/herdr/generated/test-data/shapes.js +2245 -0
- package/dist/herdr/test-kit/fake-herdr.d.ts +13 -0
- package/dist/herdr/test-kit/fake-herdr.js +216 -0
- package/dist/herdr/test-kit/fake-protocol.d.ts +107 -0
- package/dist/herdr/test-kit/fake-protocol.js +436 -0
- package/dist/herdr/test-kit/types.d.ts +88 -0
- package/dist/herdr/test-kit/types.js +1 -0
- package/dist/herdr/wire/codec.d.ts +36 -0
- package/dist/herdr/wire/codec.js +62 -0
- package/dist/herdr/wire/connection.d.ts +13 -0
- package/dist/herdr/wire/connection.js +65 -0
- package/dist/herdr/wire/dedicated.d.ts +2 -0
- package/dist/herdr/wire/dedicated.js +238 -0
- package/dist/herdr/wire/push-decoder.d.ts +2 -0
- package/dist/herdr/wire/push-decoder.js +40 -0
- package/dist/herdr/wire/rpc.d.ts +3 -0
- package/dist/herdr/wire/rpc.js +141 -0
- package/dist/herdr/wire/socket-path.d.ts +8 -0
- package/dist/herdr/wire/socket-path.js +23 -0
- package/dist/herdr/wire/types.d.ts +78 -0
- package/dist/herdr/wire/types.js +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +7 -0
- package/dist/read-only.d.ts +5 -0
- package/dist/read-only.js +6 -0
- package/dist/schema.d.ts +5 -0
- package/dist/schema.js +6 -0
- package/dist/test-kit.d.ts +2 -0
- package/dist/test-kit.js +3 -0
- package/docs/api/events.md +43 -0
- package/docs/api/methods.md +232 -0
- package/package.json +112 -4
- package/schema/herdr-api.schema.json +10759 -0
- package/schema/herdr-version.json +5 -0
- package/skills/herdr-sdk/SKILL.md +75 -0
- package/skills/herdr-sdk/references/api-map.md +28 -0
- package/skills/herdr-sdk/references/errors.md +19 -0
- package/skills/herdr-sdk/references/recipes.md +171 -0
- package/skills/herdr-sdk/references/versions.md +7 -0
|
@@ -0,0 +1,978 @@
|
|
|
1
|
+
export type AgentInfo = {
|
|
2
|
+
"agent"?: string | null;
|
|
3
|
+
"agent_session"?: (AgentSessionInfo) | (null);
|
|
4
|
+
"agent_status": AgentStatus; /** The current idle transition completed work, independently of who has viewed it. uint64: values above 2^53 lose precision */
|
|
5
|
+
"completion_seq"?: number | null;
|
|
6
|
+
"cwd"?: string | null;
|
|
7
|
+
"display_agent"?: string | null;
|
|
8
|
+
"focused": boolean;
|
|
9
|
+
"foreground_cwd"?: string | null;
|
|
10
|
+
"interactive_ready"?: boolean;
|
|
11
|
+
"launch_pending"?: boolean;
|
|
12
|
+
"name"?: string | null;
|
|
13
|
+
"pane_id": string; /** uint64: values above 2^53 lose precision */
|
|
14
|
+
"revision": number;
|
|
15
|
+
"screen_detection_skipped"?: boolean; /** @default 0 uint64: values above 2^53 lose precision */
|
|
16
|
+
"state_change_seq"?: number;
|
|
17
|
+
"state_labels"?: {
|
|
18
|
+
[key: string]: string;
|
|
19
|
+
};
|
|
20
|
+
"tab_id": string;
|
|
21
|
+
"terminal_id": string;
|
|
22
|
+
"terminal_title"?: string | null;
|
|
23
|
+
"terminal_title_stripped"?: string | null;
|
|
24
|
+
"title"?: string | null; /** keys match ^[A-Za-z0-9_-]{1,32}$ */
|
|
25
|
+
"tokens"?: {
|
|
26
|
+
[key: string]: string;
|
|
27
|
+
};
|
|
28
|
+
"workspace_id": string;
|
|
29
|
+
};
|
|
30
|
+
export type AgentManifestInfo = {
|
|
31
|
+
"active_version"?: string | null;
|
|
32
|
+
"agent": string;
|
|
33
|
+
"cached_remote_version"?: string | null;
|
|
34
|
+
"local_override_shadowing_remote": boolean; /** uint64: values above 2^53 lose precision */
|
|
35
|
+
"remote_last_checked_unix"?: number | null;
|
|
36
|
+
"remote_update_error"?: string | null;
|
|
37
|
+
"remote_update_result"?: string | null;
|
|
38
|
+
"source": string;
|
|
39
|
+
"source_kind": string;
|
|
40
|
+
"warning"?: string | null;
|
|
41
|
+
};
|
|
42
|
+
export type AgentSessionInfo = {
|
|
43
|
+
"agent": string;
|
|
44
|
+
"kind": AgentSessionRefKind;
|
|
45
|
+
"source": string;
|
|
46
|
+
"value": string;
|
|
47
|
+
};
|
|
48
|
+
export type AgentSessionRefKind = "id" | "path";
|
|
49
|
+
export type AgentStatus = "idle" | "working" | "blocked" | "done" | "unknown";
|
|
50
|
+
export type ClientWindowTitleReason = "set" | "cleared" | "no_foreground_client";
|
|
51
|
+
export type ConfigReloadStatus = "applied" | "partial" | "failed";
|
|
52
|
+
export type EventData = ({
|
|
53
|
+
"type": "workspace_created";
|
|
54
|
+
"workspace": WorkspaceInfo;
|
|
55
|
+
}) | ({
|
|
56
|
+
"type": "workspace_updated";
|
|
57
|
+
"workspace": WorkspaceInfo;
|
|
58
|
+
}) | ({
|
|
59
|
+
"type": "workspace_metadata_updated";
|
|
60
|
+
"workspace": WorkspaceInfo;
|
|
61
|
+
}) | ({
|
|
62
|
+
"type": "workspace_closed";
|
|
63
|
+
"workspace"?: (WorkspaceInfo) | (null);
|
|
64
|
+
"workspace_id": string;
|
|
65
|
+
}) | ({
|
|
66
|
+
"label": string;
|
|
67
|
+
"type": "workspace_renamed";
|
|
68
|
+
"workspace_id": string;
|
|
69
|
+
}) | ({
|
|
70
|
+
"insert_index": number;
|
|
71
|
+
"type": "workspace_moved";
|
|
72
|
+
"workspace_id": string;
|
|
73
|
+
"workspaces": Array<WorkspaceInfo>;
|
|
74
|
+
}) | ({
|
|
75
|
+
"before_workspace_id"?: string | null;
|
|
76
|
+
"type": "workspace_reordered";
|
|
77
|
+
"workspace_ids": Array<string>;
|
|
78
|
+
"workspaces": Array<WorkspaceInfo>;
|
|
79
|
+
}) | ({
|
|
80
|
+
"type": "workspace_focused";
|
|
81
|
+
"workspace_id": string;
|
|
82
|
+
}) | ({
|
|
83
|
+
"type": "worktree_created";
|
|
84
|
+
"workspace": WorkspaceInfo;
|
|
85
|
+
"worktree": WorktreeInfo;
|
|
86
|
+
}) | ({
|
|
87
|
+
"already_open": boolean;
|
|
88
|
+
"type": "worktree_opened";
|
|
89
|
+
"workspace": WorkspaceInfo;
|
|
90
|
+
"worktree": WorktreeInfo;
|
|
91
|
+
}) | ({
|
|
92
|
+
"forced": boolean;
|
|
93
|
+
"type": "worktree_removed";
|
|
94
|
+
"workspace"?: (WorkspaceInfo) | (null);
|
|
95
|
+
"workspace_id": string;
|
|
96
|
+
"worktree": WorktreeInfo;
|
|
97
|
+
}) | ({
|
|
98
|
+
"tab": TabInfo;
|
|
99
|
+
"type": "tab_created";
|
|
100
|
+
}) | ({
|
|
101
|
+
"tab_id": string;
|
|
102
|
+
"type": "tab_closed";
|
|
103
|
+
"workspace_id": string;
|
|
104
|
+
}) | ({
|
|
105
|
+
"label": string;
|
|
106
|
+
"tab_id": string;
|
|
107
|
+
"type": "tab_renamed";
|
|
108
|
+
"workspace_id": string;
|
|
109
|
+
}) | ({
|
|
110
|
+
"insert_index": number;
|
|
111
|
+
"tab_id": string;
|
|
112
|
+
"tabs": Array<TabInfo>;
|
|
113
|
+
"type": "tab_moved";
|
|
114
|
+
"workspace_id": string;
|
|
115
|
+
}) | ({
|
|
116
|
+
"tab_id": string;
|
|
117
|
+
"type": "tab_focused";
|
|
118
|
+
"workspace_id": string;
|
|
119
|
+
}) | ({
|
|
120
|
+
"pane": PaneInfo;
|
|
121
|
+
"type": "pane_created";
|
|
122
|
+
}) | ({
|
|
123
|
+
"pane_id": string;
|
|
124
|
+
"type": "pane_closed";
|
|
125
|
+
"workspace_id": string;
|
|
126
|
+
}) | ({
|
|
127
|
+
"pane": PaneInfo;
|
|
128
|
+
"type": "pane_updated";
|
|
129
|
+
}) | ({
|
|
130
|
+
"pane_id": string;
|
|
131
|
+
"type": "pane_focused";
|
|
132
|
+
"workspace_id": string;
|
|
133
|
+
}) | ({
|
|
134
|
+
"closed_tab_id"?: string | null;
|
|
135
|
+
"closed_workspace_id"?: string | null;
|
|
136
|
+
"created_tab"?: (TabInfo) | (null);
|
|
137
|
+
"created_workspace"?: (WorkspaceInfo) | (null);
|
|
138
|
+
"pane": PaneInfo;
|
|
139
|
+
"previous_pane_id": string;
|
|
140
|
+
"previous_tab_id": string;
|
|
141
|
+
"previous_workspace_id": string;
|
|
142
|
+
"type": "pane_moved";
|
|
143
|
+
}) | ({
|
|
144
|
+
"pane_id": string; /** uint64: values above 2^53 lose precision */
|
|
145
|
+
"revision": number;
|
|
146
|
+
"type": "pane_output_changed";
|
|
147
|
+
"workspace_id": string;
|
|
148
|
+
}) | ({
|
|
149
|
+
"pane_id": string;
|
|
150
|
+
"type": "pane_exited";
|
|
151
|
+
"workspace_id": string;
|
|
152
|
+
}) | ({
|
|
153
|
+
"agent"?: string | null;
|
|
154
|
+
"final_status"?: (AgentStatus) | (null);
|
|
155
|
+
"pane_id": string;
|
|
156
|
+
"released"?: boolean;
|
|
157
|
+
"type": "pane_agent_detected";
|
|
158
|
+
"workspace_id": string;
|
|
159
|
+
}) | ({
|
|
160
|
+
"agent"?: string | null;
|
|
161
|
+
"agent_status": AgentStatus;
|
|
162
|
+
"display_agent"?: string | null;
|
|
163
|
+
"pane_id": string;
|
|
164
|
+
"state_labels"?: {
|
|
165
|
+
[key: string]: string;
|
|
166
|
+
};
|
|
167
|
+
"title"?: string | null;
|
|
168
|
+
"type": "pane_agent_status_changed";
|
|
169
|
+
"workspace_id": string;
|
|
170
|
+
}) | ({
|
|
171
|
+
"layout": PaneLayoutSnapshot;
|
|
172
|
+
"type": "layout_updated";
|
|
173
|
+
});
|
|
174
|
+
export type EventEnvelope = {
|
|
175
|
+
"data": EventData;
|
|
176
|
+
"event": EventKind;
|
|
177
|
+
};
|
|
178
|
+
export type EventKind = "workspace_created" | "workspace_updated" | "workspace_metadata_updated" | "workspace_closed" | "workspace_renamed" | "workspace_moved" | "workspace_reordered" | "workspace_focused" | "worktree_created" | "worktree_opened" | "worktree_removed" | "tab_created" | "tab_closed" | "tab_renamed" | "tab_moved" | "tab_focused" | "pane_created" | "pane_closed" | "pane_updated" | "pane_focused" | "pane_moved" | "pane_output_changed" | "pane_exited" | "pane_agent_detected" | "pane_agent_status_changed" | "layout_updated";
|
|
179
|
+
export type InstalledPluginInfo = {
|
|
180
|
+
"actions"?: Array<PluginManifestAction>;
|
|
181
|
+
"build"?: Array<PluginManifestBuild>;
|
|
182
|
+
"description"?: string | null;
|
|
183
|
+
"enabled": boolean;
|
|
184
|
+
"events"?: Array<PluginManifestEventHook>;
|
|
185
|
+
"link_handlers"?: Array<PluginManifestLinkHandler>;
|
|
186
|
+
"manifest_path": string; /** @default "" */
|
|
187
|
+
"min_herdr_version"?: string;
|
|
188
|
+
"name": string;
|
|
189
|
+
"panes"?: Array<PluginManifestPane>;
|
|
190
|
+
"platforms"?: Array<PluginPlatform> | null;
|
|
191
|
+
"plugin_id": string;
|
|
192
|
+
"plugin_root": string; /** @default {"kind":"local"} */
|
|
193
|
+
"source"?: PluginSourceInfo;
|
|
194
|
+
"startup"?: Array<PluginManifestStartup>;
|
|
195
|
+
"version": string; /** Warnings collected at link time or on registry load (e.g. unknown event names, missing manifest file). Non-fatal — the entry is kept and surfaced by plugin.list. */
|
|
196
|
+
"warnings"?: Array<string>;
|
|
197
|
+
};
|
|
198
|
+
export type IntegrationInfo = {
|
|
199
|
+
"available": boolean;
|
|
200
|
+
"command": string;
|
|
201
|
+
"label": string;
|
|
202
|
+
"state": IntegrationState;
|
|
203
|
+
"target": IntegrationTarget;
|
|
204
|
+
};
|
|
205
|
+
export type IntegrationInstallResult = {
|
|
206
|
+
"messages": Array<string>;
|
|
207
|
+
};
|
|
208
|
+
export type IntegrationState = "not_installed" | "current" | "outdated";
|
|
209
|
+
export type IntegrationTarget = "pi" | "omp" | "claude" | "codex" | "copilot" | "devin" | "droid" | "kimi" | "opencode" | "kilo" | "hermes" | "qodercli" | "qwen" | "cursor" | "mastracode" | "antigravity_cli" | "grok";
|
|
210
|
+
export type IntegrationUninstallResult = {
|
|
211
|
+
"messages": Array<string>;
|
|
212
|
+
};
|
|
213
|
+
export type LayoutDescription = {
|
|
214
|
+
"focused_pane_id": string;
|
|
215
|
+
"root": LayoutNode;
|
|
216
|
+
"tab_id": string;
|
|
217
|
+
"workspace_id": string;
|
|
218
|
+
"zoomed": boolean;
|
|
219
|
+
};
|
|
220
|
+
export type LayoutNode = ({
|
|
221
|
+
"command"?: Array<string> | null;
|
|
222
|
+
"cwd"?: string | null;
|
|
223
|
+
"env"?: {
|
|
224
|
+
[key: string]: string;
|
|
225
|
+
};
|
|
226
|
+
"label"?: string | null;
|
|
227
|
+
"pane_id"?: string | null;
|
|
228
|
+
"type": "pane";
|
|
229
|
+
}) | ({
|
|
230
|
+
"direction": SplitDirection;
|
|
231
|
+
"first": LayoutNode;
|
|
232
|
+
"ratio": number;
|
|
233
|
+
"second": LayoutNode;
|
|
234
|
+
"type": "split";
|
|
235
|
+
});
|
|
236
|
+
export type NotificationShowReason = "shown" | "disabled" | "rate_limited" | "no_foreground_client" | "busy";
|
|
237
|
+
export type PaneDirection = "left" | "right" | "up" | "down";
|
|
238
|
+
export type PaneEdgesResult = {
|
|
239
|
+
"down": boolean;
|
|
240
|
+
"layout": PaneLayoutSnapshot;
|
|
241
|
+
"left": boolean;
|
|
242
|
+
"pane_id": string;
|
|
243
|
+
"right": boolean;
|
|
244
|
+
"up": boolean;
|
|
245
|
+
};
|
|
246
|
+
export type PaneFocusDirectionReason = "no_neighbor";
|
|
247
|
+
export type PaneFocusDirectionResult = {
|
|
248
|
+
"changed": boolean;
|
|
249
|
+
"focused_pane_id"?: string | null;
|
|
250
|
+
"layout": PaneLayoutSnapshot;
|
|
251
|
+
"reason"?: (PaneFocusDirectionReason) | (null);
|
|
252
|
+
"source_pane_id": string;
|
|
253
|
+
};
|
|
254
|
+
export type PaneInfo = {
|
|
255
|
+
"agent"?: string | null;
|
|
256
|
+
"agent_session"?: (AgentSessionInfo) | (null);
|
|
257
|
+
"agent_status": AgentStatus;
|
|
258
|
+
"cwd"?: string | null;
|
|
259
|
+
"display_agent"?: string | null;
|
|
260
|
+
"focused": boolean;
|
|
261
|
+
"foreground_cwd"?: string | null;
|
|
262
|
+
"label"?: string | null;
|
|
263
|
+
"pane_id": string;
|
|
264
|
+
"restore_error"?: string | null; /** uint64: values above 2^53 lose precision */
|
|
265
|
+
"revision": number;
|
|
266
|
+
"scroll"?: (PaneScrollInfo) | (null);
|
|
267
|
+
"state_labels"?: {
|
|
268
|
+
[key: string]: string;
|
|
269
|
+
};
|
|
270
|
+
"tab_id": string;
|
|
271
|
+
"terminal_id": string;
|
|
272
|
+
"terminal_title"?: string | null;
|
|
273
|
+
"terminal_title_stripped"?: string | null;
|
|
274
|
+
"title"?: string | null; /** keys match ^[A-Za-z0-9_-]{1,32}$ */
|
|
275
|
+
"tokens"?: {
|
|
276
|
+
[key: string]: string;
|
|
277
|
+
};
|
|
278
|
+
"workspace_id": string;
|
|
279
|
+
};
|
|
280
|
+
export type PaneLayoutPane = {
|
|
281
|
+
"focused": boolean;
|
|
282
|
+
"pane_id": string;
|
|
283
|
+
"rect": PaneLayoutRect;
|
|
284
|
+
};
|
|
285
|
+
export type PaneLayoutRect = {
|
|
286
|
+
"height": number;
|
|
287
|
+
"width": number;
|
|
288
|
+
"x": number;
|
|
289
|
+
"y": number;
|
|
290
|
+
};
|
|
291
|
+
export type PaneLayoutSnapshot = {
|
|
292
|
+
"area": PaneLayoutRect;
|
|
293
|
+
"focused_pane_id": string;
|
|
294
|
+
"panes": Array<PaneLayoutPane>;
|
|
295
|
+
"splits": Array<PaneLayoutSplit>;
|
|
296
|
+
"tab_id": string;
|
|
297
|
+
"workspace_id": string;
|
|
298
|
+
"zoomed": boolean;
|
|
299
|
+
};
|
|
300
|
+
export type PaneLayoutSplit = {
|
|
301
|
+
"direction": SplitDirection;
|
|
302
|
+
"id": string;
|
|
303
|
+
"ratio": number;
|
|
304
|
+
"rect": PaneLayoutRect;
|
|
305
|
+
};
|
|
306
|
+
/** Inclusive display-cell columns on a pane's current viewport. */
|
|
307
|
+
export type PaneLinkRegion = {
|
|
308
|
+
"end_col": number;
|
|
309
|
+
"row": number;
|
|
310
|
+
"start_col": number;
|
|
311
|
+
};
|
|
312
|
+
export type PaneMoveReason = "same_tab" | "zoomed_tab";
|
|
313
|
+
export type PaneMoveResult = {
|
|
314
|
+
"changed": boolean;
|
|
315
|
+
"closed_tab_id"?: string | null;
|
|
316
|
+
"closed_workspace_id"?: string | null;
|
|
317
|
+
"created_tab"?: (TabInfo) | (null);
|
|
318
|
+
"created_workspace"?: (WorkspaceInfo) | (null);
|
|
319
|
+
"focused_pane_id": string;
|
|
320
|
+
"pane": PaneInfo;
|
|
321
|
+
"previous_pane_id": string;
|
|
322
|
+
"previous_tab_id": string;
|
|
323
|
+
"previous_workspace_id": string;
|
|
324
|
+
"reason"?: (PaneMoveReason) | (null);
|
|
325
|
+
"source_layout"?: (PaneLayoutSnapshot) | (null);
|
|
326
|
+
"target_layout": PaneLayoutSnapshot;
|
|
327
|
+
};
|
|
328
|
+
export type PaneNeighborResult = {
|
|
329
|
+
"direction": PaneDirection;
|
|
330
|
+
"layout": PaneLayoutSnapshot;
|
|
331
|
+
"neighbor_pane_id"?: string | null;
|
|
332
|
+
"pane_id": string;
|
|
333
|
+
};
|
|
334
|
+
export type PaneProcessInfo = {
|
|
335
|
+
"foreground_process_group_id"?: number | null;
|
|
336
|
+
"foreground_processes"?: Array<PaneProcessInfoProcess>;
|
|
337
|
+
"pane_id": string;
|
|
338
|
+
"shell_pid"?: number | null;
|
|
339
|
+
"tty"?: string | null;
|
|
340
|
+
};
|
|
341
|
+
export type PaneProcessInfoProcess = {
|
|
342
|
+
"argv"?: Array<string> | null;
|
|
343
|
+
"argv0"?: string | null;
|
|
344
|
+
"cmdline"?: string | null;
|
|
345
|
+
"cwd"?: string | null;
|
|
346
|
+
"name": string;
|
|
347
|
+
"pid": number;
|
|
348
|
+
};
|
|
349
|
+
export type PaneReadResult = {
|
|
350
|
+
"format": ReadFormat;
|
|
351
|
+
"pane_id": string; /** uint64: values above 2^53 lose precision */
|
|
352
|
+
"revision": number;
|
|
353
|
+
"source": ReadSource;
|
|
354
|
+
"tab_id": string;
|
|
355
|
+
"text": string;
|
|
356
|
+
"truncated": boolean;
|
|
357
|
+
"workspace_id": string;
|
|
358
|
+
};
|
|
359
|
+
export type PaneResizeReason = "unchanged";
|
|
360
|
+
export type PaneResizeResult = {
|
|
361
|
+
"changed": boolean;
|
|
362
|
+
"focused_pane_id": string;
|
|
363
|
+
"layout": PaneLayoutSnapshot;
|
|
364
|
+
"pane_id": string;
|
|
365
|
+
"reason"?: (PaneResizeReason) | (null);
|
|
366
|
+
};
|
|
367
|
+
export type PaneScrollInfo = {
|
|
368
|
+
"max_offset_from_bottom": number; /** uint64: values above 2^53 lose precision */
|
|
369
|
+
"offset_from_bottom": number; /** uint64: values above 2^53 lose precision */
|
|
370
|
+
"viewport_rows": number;
|
|
371
|
+
};
|
|
372
|
+
export type PaneSwapReason = "no_neighbor" | "same_pane" | "not_found" | "cross_tab";
|
|
373
|
+
export type PaneSwapResult = {
|
|
374
|
+
"changed": boolean;
|
|
375
|
+
"focused_pane_id": string;
|
|
376
|
+
"layout": PaneLayoutSnapshot;
|
|
377
|
+
"reason"?: (PaneSwapReason) | (null);
|
|
378
|
+
"source_pane_id": string;
|
|
379
|
+
"target_pane_id"?: string | null;
|
|
380
|
+
};
|
|
381
|
+
export type PaneTextPoint = {
|
|
382
|
+
"col": number;
|
|
383
|
+
"row": number;
|
|
384
|
+
};
|
|
385
|
+
export type PaneTextRange = {
|
|
386
|
+
"end": PaneTextPoint;
|
|
387
|
+
"start": PaneTextPoint;
|
|
388
|
+
};
|
|
389
|
+
export type PaneZoomReason = "single_pane" | "already_zoomed" | "already_unzoomed";
|
|
390
|
+
export type PaneZoomResult = {
|
|
391
|
+
"changed": boolean;
|
|
392
|
+
"focus_changed": boolean;
|
|
393
|
+
"focused_pane_id": string;
|
|
394
|
+
"layout": PaneLayoutSnapshot;
|
|
395
|
+
"pane_id": string;
|
|
396
|
+
"reason"?: (PaneZoomReason) | (null);
|
|
397
|
+
"zoom_changed": boolean;
|
|
398
|
+
"zoomed": boolean;
|
|
399
|
+
};
|
|
400
|
+
export type PluginActionContext = "global" | "workspace" | "tab" | "pane" | "selection";
|
|
401
|
+
export type PluginActionInfo = {
|
|
402
|
+
"action_id": string;
|
|
403
|
+
"command": Array<string>;
|
|
404
|
+
"contexts"?: Array<PluginActionContext>;
|
|
405
|
+
"description"?: string | null;
|
|
406
|
+
"platforms"?: Array<PluginPlatform> | null;
|
|
407
|
+
"plugin_id": string;
|
|
408
|
+
"title": string;
|
|
409
|
+
};
|
|
410
|
+
export type PluginCommandLogInfo = {
|
|
411
|
+
"action_id"?: string | null;
|
|
412
|
+
"command": Array<string>;
|
|
413
|
+
"error"?: string | null;
|
|
414
|
+
"event"?: string | null;
|
|
415
|
+
"exit_code"?: number | null; /** uint64: values above 2^53 lose precision */
|
|
416
|
+
"finished_unix_ms"?: number | null;
|
|
417
|
+
"log_id": string;
|
|
418
|
+
"plugin_id": string; /** uint64: values above 2^53 lose precision */
|
|
419
|
+
"started_unix_ms": number;
|
|
420
|
+
"status": PluginCommandStatus;
|
|
421
|
+
"stderr"?: string | null;
|
|
422
|
+
"stdout"?: string | null;
|
|
423
|
+
};
|
|
424
|
+
export type PluginCommandStatus = "running" | "succeeded" | "failed";
|
|
425
|
+
export type PluginInvocationContext = {
|
|
426
|
+
"clicked_url"?: string | null;
|
|
427
|
+
"correlation_id"?: string | null;
|
|
428
|
+
"focused_pane_agent"?: string | null;
|
|
429
|
+
"focused_pane_cwd"?: string | null;
|
|
430
|
+
"focused_pane_id"?: string | null;
|
|
431
|
+
"focused_pane_status"?: (AgentStatus) | (null);
|
|
432
|
+
"invocation_source"?: string | null;
|
|
433
|
+
"link_handler_id"?: string | null;
|
|
434
|
+
"selected_text"?: string | null;
|
|
435
|
+
"tab_id"?: string | null;
|
|
436
|
+
"tab_label"?: string | null;
|
|
437
|
+
"workspace_cwd"?: string | null;
|
|
438
|
+
"workspace_id"?: string | null;
|
|
439
|
+
"workspace_label"?: string | null;
|
|
440
|
+
"worktree"?: (WorkspaceWorktreeInfo) | (null);
|
|
441
|
+
};
|
|
442
|
+
export type PluginManifestAction = {
|
|
443
|
+
"command": Array<string>;
|
|
444
|
+
"contexts"?: Array<PluginActionContext>;
|
|
445
|
+
"description"?: string | null;
|
|
446
|
+
"id": string;
|
|
447
|
+
"platforms"?: Array<PluginPlatform> | null;
|
|
448
|
+
"title": string;
|
|
449
|
+
};
|
|
450
|
+
export type PluginManifestBuild = {
|
|
451
|
+
"command": Array<string>;
|
|
452
|
+
"platforms"?: Array<PluginPlatform> | null;
|
|
453
|
+
};
|
|
454
|
+
export type PluginManifestEventHook = {
|
|
455
|
+
"command": Array<string>;
|
|
456
|
+
"on": string;
|
|
457
|
+
"platforms"?: Array<PluginPlatform> | null;
|
|
458
|
+
};
|
|
459
|
+
export type PluginManifestLinkHandler = {
|
|
460
|
+
"action": string;
|
|
461
|
+
"id": string;
|
|
462
|
+
"pattern": string;
|
|
463
|
+
"platforms"?: Array<PluginPlatform> | null;
|
|
464
|
+
"title": string;
|
|
465
|
+
};
|
|
466
|
+
export type PluginManifestPane = {
|
|
467
|
+
"command": Array<string>;
|
|
468
|
+
"description"?: string | null;
|
|
469
|
+
"height"?: (PopupSize) | (null);
|
|
470
|
+
"id": string; /** @default "overlay" */
|
|
471
|
+
"placement"?: PluginPanePlacement;
|
|
472
|
+
"platforms"?: Array<PluginPlatform> | null;
|
|
473
|
+
"title": string;
|
|
474
|
+
"width"?: (PopupSize) | (null);
|
|
475
|
+
};
|
|
476
|
+
export type PluginManifestStartup = {
|
|
477
|
+
"command": Array<string>;
|
|
478
|
+
"platforms"?: Array<PluginPlatform> | null;
|
|
479
|
+
};
|
|
480
|
+
export type PluginPaneInfo = {
|
|
481
|
+
"entrypoint": string;
|
|
482
|
+
"pane": PaneInfo;
|
|
483
|
+
"plugin_id": string;
|
|
484
|
+
};
|
|
485
|
+
export type PluginPanePlacement = "overlay" | "popup" | "split" | "tab" | "zoomed";
|
|
486
|
+
export type PluginPlatform = "linux" | "macos" | "windows";
|
|
487
|
+
export type PluginSourceInfo = {
|
|
488
|
+
"installed_unix_ms"?: number | null; /** @default "local" */
|
|
489
|
+
"kind"?: PluginSourceKind;
|
|
490
|
+
"managed_path"?: string | null;
|
|
491
|
+
"owner"?: string | null;
|
|
492
|
+
"repo"?: string | null;
|
|
493
|
+
"requested_ref"?: string | null;
|
|
494
|
+
"resolved_commit"?: string | null;
|
|
495
|
+
"subdir"?: string | null;
|
|
496
|
+
};
|
|
497
|
+
export type PluginSourceKind = "local" | "github";
|
|
498
|
+
export type PopupSize = (number) | (string);
|
|
499
|
+
export type ReadFormat = "text" | "ansi";
|
|
500
|
+
export type ReadSource = "visible" | "recent" | "recent_unwrapped" | "detection";
|
|
501
|
+
export type ServerCapabilities = {
|
|
502
|
+
"detached_server_daemon"?: boolean; /** Stable client-owned endpoint generation supported by this server. */
|
|
503
|
+
"endpoint_protocol_generation"?: number | null; /** Whether this server supports endpoint health probes. @default false */
|
|
504
|
+
"health_check"?: boolean;
|
|
505
|
+
"live_handoff": boolean; /** Supports connection-scoped `server.ssh_agent.register` on the local JSON API. @default false */
|
|
506
|
+
"ssh_agent_registration"?: boolean; /** Whether this server supports explicit client-shell surface interest. @default false */
|
|
507
|
+
"surface_interest"?: boolean;
|
|
508
|
+
};
|
|
509
|
+
export type SessionSnapshot = {
|
|
510
|
+
"agents": Array<AgentInfo>;
|
|
511
|
+
"focused_pane_id"?: string | null;
|
|
512
|
+
"focused_tab_id"?: string | null;
|
|
513
|
+
"focused_workspace_id"?: string | null;
|
|
514
|
+
"layouts": Array<PaneLayoutSnapshot>;
|
|
515
|
+
"panes": Array<PaneInfo>;
|
|
516
|
+
"protocol": number;
|
|
517
|
+
"tabs": Array<TabInfo>;
|
|
518
|
+
"version": string;
|
|
519
|
+
"workspaces": Array<WorkspaceInfo>;
|
|
520
|
+
};
|
|
521
|
+
export type SplitDirection = "right" | "down";
|
|
522
|
+
export type TabInfo = {
|
|
523
|
+
"agent_status": AgentStatus;
|
|
524
|
+
"focused": boolean;
|
|
525
|
+
"label": string;
|
|
526
|
+
"number": number;
|
|
527
|
+
"pane_count": number;
|
|
528
|
+
"tab_id": string;
|
|
529
|
+
"workspace_id": string;
|
|
530
|
+
};
|
|
531
|
+
export type WorkspaceInfo = {
|
|
532
|
+
"active_tab_id": string;
|
|
533
|
+
"agent_status": AgentStatus;
|
|
534
|
+
"focused": boolean;
|
|
535
|
+
"label": string;
|
|
536
|
+
"number": number;
|
|
537
|
+
"pane_count": number;
|
|
538
|
+
"tab_count": number; /** keys match ^[A-Za-z0-9_-]{1,32}$ */
|
|
539
|
+
"tokens"?: {
|
|
540
|
+
[key: string]: string;
|
|
541
|
+
};
|
|
542
|
+
"workspace_id": string;
|
|
543
|
+
"worktree"?: (WorkspaceWorktreeInfo) | (null);
|
|
544
|
+
};
|
|
545
|
+
export type WorkspaceWorktreeInfo = {
|
|
546
|
+
"checkout_path": string;
|
|
547
|
+
"is_linked_worktree": boolean;
|
|
548
|
+
"repo_key": string;
|
|
549
|
+
"repo_name": string;
|
|
550
|
+
"repo_root": string;
|
|
551
|
+
};
|
|
552
|
+
export type WorktreeInfo = {
|
|
553
|
+
"branch"?: string | null;
|
|
554
|
+
"is_bare": boolean;
|
|
555
|
+
"is_detached": boolean;
|
|
556
|
+
"is_linked_worktree": boolean;
|
|
557
|
+
"is_prunable": boolean;
|
|
558
|
+
"label": string;
|
|
559
|
+
"open_workspace_id"?: string | null;
|
|
560
|
+
"path": string;
|
|
561
|
+
};
|
|
562
|
+
export type WorktreeSourceInfo = {
|
|
563
|
+
"repo_key": string;
|
|
564
|
+
"repo_name": string;
|
|
565
|
+
"repo_root": string;
|
|
566
|
+
"source_checkout_path": string;
|
|
567
|
+
"source_workspace_id"?: string | null;
|
|
568
|
+
};
|
|
569
|
+
export type Result_pong = {
|
|
570
|
+
"capabilities"?: (ServerCapabilities) | (null);
|
|
571
|
+
"protocol": number;
|
|
572
|
+
"type": "pong";
|
|
573
|
+
"version": string;
|
|
574
|
+
};
|
|
575
|
+
export type Result_session_snapshot = {
|
|
576
|
+
"snapshot": SessionSnapshot;
|
|
577
|
+
"type": "session_snapshot";
|
|
578
|
+
};
|
|
579
|
+
export type Result_workspace_info = {
|
|
580
|
+
"type": "workspace_info";
|
|
581
|
+
"workspace": WorkspaceInfo;
|
|
582
|
+
};
|
|
583
|
+
export type Result_workspace_created = {
|
|
584
|
+
"root_pane": PaneInfo;
|
|
585
|
+
"tab": TabInfo;
|
|
586
|
+
"type": "workspace_created";
|
|
587
|
+
"workspace": WorkspaceInfo;
|
|
588
|
+
};
|
|
589
|
+
export type Result_workspace_list = {
|
|
590
|
+
"type": "workspace_list";
|
|
591
|
+
"workspaces": Array<WorkspaceInfo>;
|
|
592
|
+
};
|
|
593
|
+
export type Result_worktree_list = {
|
|
594
|
+
"source": WorktreeSourceInfo;
|
|
595
|
+
"type": "worktree_list";
|
|
596
|
+
"worktrees": Array<WorktreeInfo>;
|
|
597
|
+
};
|
|
598
|
+
export type Result_worktree_created = {
|
|
599
|
+
"root_pane": PaneInfo;
|
|
600
|
+
"tab": TabInfo;
|
|
601
|
+
"type": "worktree_created";
|
|
602
|
+
"workspace": WorkspaceInfo;
|
|
603
|
+
"worktree": WorktreeInfo;
|
|
604
|
+
};
|
|
605
|
+
export type Result_worktree_opened = {
|
|
606
|
+
"already_open": boolean;
|
|
607
|
+
"root_pane": PaneInfo;
|
|
608
|
+
"tab": TabInfo;
|
|
609
|
+
"type": "worktree_opened";
|
|
610
|
+
"workspace": WorkspaceInfo;
|
|
611
|
+
"worktree": WorktreeInfo;
|
|
612
|
+
};
|
|
613
|
+
export type Result_worktree_removed = {
|
|
614
|
+
"forced": boolean;
|
|
615
|
+
"path": string;
|
|
616
|
+
"type": "worktree_removed";
|
|
617
|
+
"workspace_id": string;
|
|
618
|
+
};
|
|
619
|
+
export type Result_tab_info = {
|
|
620
|
+
"tab": TabInfo;
|
|
621
|
+
"type": "tab_info";
|
|
622
|
+
};
|
|
623
|
+
export type Result_tab_created = {
|
|
624
|
+
"root_pane": PaneInfo;
|
|
625
|
+
"tab": TabInfo;
|
|
626
|
+
"type": "tab_created";
|
|
627
|
+
};
|
|
628
|
+
export type Result_tab_list = {
|
|
629
|
+
"tabs": Array<TabInfo>;
|
|
630
|
+
"type": "tab_list";
|
|
631
|
+
};
|
|
632
|
+
export type Result_agent_info = {
|
|
633
|
+
"agent": AgentInfo;
|
|
634
|
+
"type": "agent_info";
|
|
635
|
+
};
|
|
636
|
+
export type Result_agent_started = {
|
|
637
|
+
"agent": AgentInfo;
|
|
638
|
+
"argv": Array<string>;
|
|
639
|
+
"type": "agent_started";
|
|
640
|
+
};
|
|
641
|
+
export type Result_agent_prompted = {
|
|
642
|
+
"agent": AgentInfo;
|
|
643
|
+
"type": "agent_prompted";
|
|
644
|
+
};
|
|
645
|
+
export type Result_agent_list = {
|
|
646
|
+
"agents": Array<AgentInfo>;
|
|
647
|
+
"type": "agent_list";
|
|
648
|
+
};
|
|
649
|
+
export type Result_agent_view = {
|
|
650
|
+
"active": boolean;
|
|
651
|
+
"label"?: string | null;
|
|
652
|
+
"source"?: string | null;
|
|
653
|
+
"type": "agent_view";
|
|
654
|
+
};
|
|
655
|
+
export type Result_pane_info = {
|
|
656
|
+
"pane": PaneInfo;
|
|
657
|
+
"type": "pane_info";
|
|
658
|
+
};
|
|
659
|
+
export type Result_pane_list = {
|
|
660
|
+
"panes": Array<PaneInfo>;
|
|
661
|
+
"type": "pane_list";
|
|
662
|
+
};
|
|
663
|
+
export type Result_pane_current = {
|
|
664
|
+
"pane": PaneInfo;
|
|
665
|
+
"type": "pane_current";
|
|
666
|
+
};
|
|
667
|
+
export type Result_pane_swap = {
|
|
668
|
+
"swap": PaneSwapResult;
|
|
669
|
+
"type": "pane_swap";
|
|
670
|
+
};
|
|
671
|
+
export type Result_pane_move = {
|
|
672
|
+
"move_result": PaneMoveResult;
|
|
673
|
+
"type": "pane_move";
|
|
674
|
+
};
|
|
675
|
+
export type Result_pane_zoom = {
|
|
676
|
+
"type": "pane_zoom";
|
|
677
|
+
"zoom": PaneZoomResult;
|
|
678
|
+
};
|
|
679
|
+
export type Result_pane_layout = {
|
|
680
|
+
"layout": PaneLayoutSnapshot;
|
|
681
|
+
"type": "pane_layout";
|
|
682
|
+
};
|
|
683
|
+
export type Result_pane_process_info = {
|
|
684
|
+
"process_info": PaneProcessInfo;
|
|
685
|
+
"type": "pane_process_info";
|
|
686
|
+
};
|
|
687
|
+
export type Result_layout_export = {
|
|
688
|
+
"layout": LayoutDescription;
|
|
689
|
+
"type": "layout_export";
|
|
690
|
+
};
|
|
691
|
+
export type Result_layout_apply = {
|
|
692
|
+
"layout": LayoutDescription;
|
|
693
|
+
"type": "layout_apply";
|
|
694
|
+
};
|
|
695
|
+
export type Result_layout_split_ratio_set = {
|
|
696
|
+
"layout": LayoutDescription;
|
|
697
|
+
"type": "layout_split_ratio_set";
|
|
698
|
+
};
|
|
699
|
+
export type Result_pane_neighbor = {
|
|
700
|
+
"neighbor": PaneNeighborResult;
|
|
701
|
+
"type": "pane_neighbor";
|
|
702
|
+
};
|
|
703
|
+
export type Result_pane_edges = {
|
|
704
|
+
"edges": PaneEdgesResult;
|
|
705
|
+
"type": "pane_edges";
|
|
706
|
+
};
|
|
707
|
+
export type Result_pane_focus_direction = {
|
|
708
|
+
"focus": PaneFocusDirectionResult;
|
|
709
|
+
"type": "pane_focus_direction";
|
|
710
|
+
};
|
|
711
|
+
export type Result_pane_resize = {
|
|
712
|
+
"resize": PaneResizeResult;
|
|
713
|
+
"type": "pane_resize";
|
|
714
|
+
};
|
|
715
|
+
export type Result_pane_read = {
|
|
716
|
+
"read": PaneReadResult;
|
|
717
|
+
"type": "pane_read";
|
|
718
|
+
};
|
|
719
|
+
export type Result_pane_selection = {
|
|
720
|
+
"pane_id": string;
|
|
721
|
+
"text": string;
|
|
722
|
+
"type": "pane_selection";
|
|
723
|
+
};
|
|
724
|
+
export type Result_pane_copy_motion = {
|
|
725
|
+
"content_revision": number;
|
|
726
|
+
"cursor": PaneTextPoint;
|
|
727
|
+
"pane_id": string;
|
|
728
|
+
"type": "pane_copy_motion";
|
|
729
|
+
};
|
|
730
|
+
export type Result_pane_copy_search = {
|
|
731
|
+
"content_revision": number;
|
|
732
|
+
"current"?: number | null; /** uint64: values above 2^53 lose precision */
|
|
733
|
+
"current_global"?: number | null;
|
|
734
|
+
"matches": Array<PaneTextRange>;
|
|
735
|
+
"pane_id": string; /** uint64: values above 2^53 lose precision */
|
|
736
|
+
"total": number;
|
|
737
|
+
"type": "pane_copy_search";
|
|
738
|
+
};
|
|
739
|
+
export type Result_agent_explain = {
|
|
740
|
+
"explain": unknown;
|
|
741
|
+
"type": "agent_explain";
|
|
742
|
+
};
|
|
743
|
+
export type Result_subscription_started = {
|
|
744
|
+
"type": "subscription_started";
|
|
745
|
+
};
|
|
746
|
+
export type Result_wait_matched = {
|
|
747
|
+
"event": EventEnvelope;
|
|
748
|
+
"type": "wait_matched";
|
|
749
|
+
};
|
|
750
|
+
export type Result_output_matched = {
|
|
751
|
+
"matched_line"?: string | null;
|
|
752
|
+
"pane_id": string;
|
|
753
|
+
"read": PaneReadResult; /** uint64: values above 2^53 lose precision */
|
|
754
|
+
"revision": number;
|
|
755
|
+
"type": "output_matched";
|
|
756
|
+
};
|
|
757
|
+
export type Result_notification_show = {
|
|
758
|
+
"reason": NotificationShowReason;
|
|
759
|
+
"shown": boolean;
|
|
760
|
+
"type": "notification_show";
|
|
761
|
+
};
|
|
762
|
+
export type Result_client_window_title = {
|
|
763
|
+
"changed": boolean;
|
|
764
|
+
"reason": ClientWindowTitleReason;
|
|
765
|
+
"type": "client_window_title";
|
|
766
|
+
};
|
|
767
|
+
export type Result_integration_list = {
|
|
768
|
+
"integrations": Array<IntegrationInfo>;
|
|
769
|
+
"type": "integration_list";
|
|
770
|
+
};
|
|
771
|
+
export type Result_integration_install = {
|
|
772
|
+
"details": IntegrationInstallResult;
|
|
773
|
+
"target": IntegrationTarget;
|
|
774
|
+
"type": "integration_install";
|
|
775
|
+
};
|
|
776
|
+
export type Result_integration_uninstall = {
|
|
777
|
+
"details": IntegrationUninstallResult;
|
|
778
|
+
"target": IntegrationTarget;
|
|
779
|
+
"type": "integration_uninstall";
|
|
780
|
+
};
|
|
781
|
+
export type Result_agent_manifest_reload = {
|
|
782
|
+
"manifests": Array<AgentManifestInfo>;
|
|
783
|
+
"type": "agent_manifest_reload";
|
|
784
|
+
};
|
|
785
|
+
export type Result_agent_manifest_status = {
|
|
786
|
+
"last_check_unix"?: number | null;
|
|
787
|
+
"last_result"?: string | null;
|
|
788
|
+
"manifests": Array<AgentManifestInfo>;
|
|
789
|
+
"type": "agent_manifest_status";
|
|
790
|
+
};
|
|
791
|
+
export type Result_plugin_linked = {
|
|
792
|
+
"plugin": InstalledPluginInfo;
|
|
793
|
+
"type": "plugin_linked";
|
|
794
|
+
};
|
|
795
|
+
export type Result_plugin_list = {
|
|
796
|
+
"plugins": Array<InstalledPluginInfo>;
|
|
797
|
+
"type": "plugin_list";
|
|
798
|
+
};
|
|
799
|
+
export type Result_plugin_unlinked = {
|
|
800
|
+
"plugin_id": string;
|
|
801
|
+
"removed": boolean;
|
|
802
|
+
"type": "plugin_unlinked";
|
|
803
|
+
};
|
|
804
|
+
export type Result_plugin_enabled = {
|
|
805
|
+
"plugin": InstalledPluginInfo;
|
|
806
|
+
"type": "plugin_enabled";
|
|
807
|
+
};
|
|
808
|
+
export type Result_plugin_disabled = {
|
|
809
|
+
"plugin": InstalledPluginInfo;
|
|
810
|
+
"type": "plugin_disabled";
|
|
811
|
+
};
|
|
812
|
+
export type Result_plugin_action_list = {
|
|
813
|
+
"actions": Array<PluginActionInfo>;
|
|
814
|
+
"type": "plugin_action_list";
|
|
815
|
+
};
|
|
816
|
+
export type Result_plugin_action_invoked = {
|
|
817
|
+
"action": PluginActionInfo;
|
|
818
|
+
"context": PluginInvocationContext;
|
|
819
|
+
"log": PluginCommandLogInfo;
|
|
820
|
+
"type": "plugin_action_invoked";
|
|
821
|
+
};
|
|
822
|
+
export type Result_pane_link_resolved = {
|
|
823
|
+
"regions": Array<PaneLinkRegion>;
|
|
824
|
+
"type": "pane_link_resolved";
|
|
825
|
+
};
|
|
826
|
+
export type Result_pane_link_activated = {
|
|
827
|
+
"handled": boolean;
|
|
828
|
+
"type": "pane_link_activated";
|
|
829
|
+
"url"?: string | null;
|
|
830
|
+
};
|
|
831
|
+
export type Result_plugin_log_list = {
|
|
832
|
+
"logs": Array<PluginCommandLogInfo>;
|
|
833
|
+
"type": "plugin_log_list";
|
|
834
|
+
};
|
|
835
|
+
export type Result_plugin_pane_opened = {
|
|
836
|
+
"plugin_pane": PluginPaneInfo;
|
|
837
|
+
"type": "plugin_pane_opened";
|
|
838
|
+
};
|
|
839
|
+
export type Result_plugin_pane_focused = {
|
|
840
|
+
"plugin_pane": PluginPaneInfo;
|
|
841
|
+
"type": "plugin_pane_focused";
|
|
842
|
+
};
|
|
843
|
+
export type Result_plugin_pane_closed = {
|
|
844
|
+
"pane_id": string;
|
|
845
|
+
"type": "plugin_pane_closed";
|
|
846
|
+
};
|
|
847
|
+
export type Result_config_reload = {
|
|
848
|
+
"diagnostics": Array<string>;
|
|
849
|
+
"status": ConfigReloadStatus;
|
|
850
|
+
"type": "config_reload";
|
|
851
|
+
};
|
|
852
|
+
export type Result_client_shell_surface_set = {
|
|
853
|
+
"active": boolean; /** uint64: values above 2^53 lose precision */
|
|
854
|
+
"projection_revision": number;
|
|
855
|
+
"type": "client_shell_surface_set";
|
|
856
|
+
};
|
|
857
|
+
export type Result_ok = {
|
|
858
|
+
"type": "ok";
|
|
859
|
+
};
|
|
860
|
+
/** The full union of every result shape the server can return. */
|
|
861
|
+
export type ResponseResult = Result_pong | Result_session_snapshot | Result_workspace_info | Result_workspace_created | Result_workspace_list | Result_worktree_list | Result_worktree_created | Result_worktree_opened | Result_worktree_removed | Result_tab_info | Result_tab_created | Result_tab_list | Result_agent_info | Result_agent_started | Result_agent_prompted | Result_agent_list | Result_agent_view | Result_pane_info | Result_pane_list | Result_pane_current | Result_pane_swap | Result_pane_move | Result_pane_zoom | Result_pane_layout | Result_pane_process_info | Result_layout_export | Result_layout_apply | Result_layout_split_ratio_set | Result_pane_neighbor | Result_pane_edges | Result_pane_focus_direction | Result_pane_resize | Result_pane_read | Result_pane_selection | Result_pane_copy_motion | Result_pane_copy_search | Result_agent_explain | Result_subscription_started | Result_wait_matched | Result_output_matched | Result_notification_show | Result_client_window_title | Result_integration_list | Result_integration_install | Result_integration_uninstall | Result_agent_manifest_reload | Result_agent_manifest_status | Result_plugin_linked | Result_plugin_list | Result_plugin_unlinked | Result_plugin_enabled | Result_plugin_disabled | Result_plugin_action_list | Result_plugin_action_invoked | Result_pane_link_resolved | Result_pane_link_activated | Result_plugin_log_list | Result_plugin_pane_opened | Result_plugin_pane_focused | Result_plugin_pane_closed | Result_config_reload | Result_client_shell_surface_set | Result_ok;
|
|
862
|
+
/** Result shape, keyed by its `type` tag. */
|
|
863
|
+
export interface ResultByTag {
|
|
864
|
+
"pong": Result_pong;
|
|
865
|
+
"session_snapshot": Result_session_snapshot;
|
|
866
|
+
"workspace_info": Result_workspace_info;
|
|
867
|
+
"workspace_created": Result_workspace_created;
|
|
868
|
+
"workspace_list": Result_workspace_list;
|
|
869
|
+
"worktree_list": Result_worktree_list;
|
|
870
|
+
"worktree_created": Result_worktree_created;
|
|
871
|
+
"worktree_opened": Result_worktree_opened;
|
|
872
|
+
"worktree_removed": Result_worktree_removed;
|
|
873
|
+
"tab_info": Result_tab_info;
|
|
874
|
+
"tab_created": Result_tab_created;
|
|
875
|
+
"tab_list": Result_tab_list;
|
|
876
|
+
"agent_info": Result_agent_info;
|
|
877
|
+
"agent_started": Result_agent_started;
|
|
878
|
+
"agent_prompted": Result_agent_prompted;
|
|
879
|
+
"agent_list": Result_agent_list;
|
|
880
|
+
"agent_view": Result_agent_view;
|
|
881
|
+
"pane_info": Result_pane_info;
|
|
882
|
+
"pane_list": Result_pane_list;
|
|
883
|
+
"pane_current": Result_pane_current;
|
|
884
|
+
"pane_swap": Result_pane_swap;
|
|
885
|
+
"pane_move": Result_pane_move;
|
|
886
|
+
"pane_zoom": Result_pane_zoom;
|
|
887
|
+
"pane_layout": Result_pane_layout;
|
|
888
|
+
"pane_process_info": Result_pane_process_info;
|
|
889
|
+
"layout_export": Result_layout_export;
|
|
890
|
+
"layout_apply": Result_layout_apply;
|
|
891
|
+
"layout_split_ratio_set": Result_layout_split_ratio_set;
|
|
892
|
+
"pane_neighbor": Result_pane_neighbor;
|
|
893
|
+
"pane_edges": Result_pane_edges;
|
|
894
|
+
"pane_focus_direction": Result_pane_focus_direction;
|
|
895
|
+
"pane_resize": Result_pane_resize;
|
|
896
|
+
"pane_read": Result_pane_read;
|
|
897
|
+
"pane_selection": Result_pane_selection;
|
|
898
|
+
"pane_copy_motion": Result_pane_copy_motion;
|
|
899
|
+
"pane_copy_search": Result_pane_copy_search;
|
|
900
|
+
"agent_explain": Result_agent_explain;
|
|
901
|
+
"subscription_started": Result_subscription_started;
|
|
902
|
+
"wait_matched": Result_wait_matched;
|
|
903
|
+
"output_matched": Result_output_matched;
|
|
904
|
+
"notification_show": Result_notification_show;
|
|
905
|
+
"client_window_title": Result_client_window_title;
|
|
906
|
+
"integration_list": Result_integration_list;
|
|
907
|
+
"integration_install": Result_integration_install;
|
|
908
|
+
"integration_uninstall": Result_integration_uninstall;
|
|
909
|
+
"agent_manifest_reload": Result_agent_manifest_reload;
|
|
910
|
+
"agent_manifest_status": Result_agent_manifest_status;
|
|
911
|
+
"plugin_linked": Result_plugin_linked;
|
|
912
|
+
"plugin_list": Result_plugin_list;
|
|
913
|
+
"plugin_unlinked": Result_plugin_unlinked;
|
|
914
|
+
"plugin_enabled": Result_plugin_enabled;
|
|
915
|
+
"plugin_disabled": Result_plugin_disabled;
|
|
916
|
+
"plugin_action_list": Result_plugin_action_list;
|
|
917
|
+
"plugin_action_invoked": Result_plugin_action_invoked;
|
|
918
|
+
"pane_link_resolved": Result_pane_link_resolved;
|
|
919
|
+
"pane_link_activated": Result_pane_link_activated;
|
|
920
|
+
"plugin_log_list": Result_plugin_log_list;
|
|
921
|
+
"plugin_pane_opened": Result_plugin_pane_opened;
|
|
922
|
+
"plugin_pane_focused": Result_plugin_pane_focused;
|
|
923
|
+
"plugin_pane_closed": Result_plugin_pane_closed;
|
|
924
|
+
"config_reload": Result_config_reload;
|
|
925
|
+
"client_shell_surface_set": Result_client_shell_surface_set;
|
|
926
|
+
"ok": Result_ok;
|
|
927
|
+
}
|
|
928
|
+
export type ResultTag = keyof ResultByTag;
|
|
929
|
+
/** Method -> response tag for every typed row of tools/gen/method-result-map.ts (LOOSE rows are absent: ResultOf falls back to ResponseResult). Completed in phase 3 (plan 4.2). */
|
|
930
|
+
export declare const METHOD_RESULT: {
|
|
931
|
+
readonly ping: "pong";
|
|
932
|
+
readonly "notification.show": "notification_show";
|
|
933
|
+
readonly "client_shell.surface.set": "client_shell_surface_set";
|
|
934
|
+
readonly "session.snapshot": "session_snapshot";
|
|
935
|
+
readonly "workspace.create": "workspace_created";
|
|
936
|
+
readonly "workspace.list": "workspace_list";
|
|
937
|
+
readonly "workspace.get": "workspace_info";
|
|
938
|
+
readonly "worktree.list": "worktree_list";
|
|
939
|
+
readonly "worktree.create": "worktree_created";
|
|
940
|
+
readonly "worktree.open": "worktree_opened";
|
|
941
|
+
readonly "worktree.remove": "worktree_removed";
|
|
942
|
+
readonly "tab.create": "tab_created";
|
|
943
|
+
readonly "tab.list": "tab_list";
|
|
944
|
+
readonly "tab.get": "tab_info";
|
|
945
|
+
readonly "agent.list": "agent_list";
|
|
946
|
+
readonly "agent.get": "agent_info";
|
|
947
|
+
readonly "agent.read": "pane_read";
|
|
948
|
+
readonly "agent.explain": "agent_explain";
|
|
949
|
+
readonly "agent.view.set": "agent_view";
|
|
950
|
+
readonly "agent.view.clear": "agent_view";
|
|
951
|
+
readonly "agent.start": "agent_started";
|
|
952
|
+
readonly "agent.prompt": "agent_prompted";
|
|
953
|
+
readonly "agent.wait": "agent_info";
|
|
954
|
+
readonly "pane.swap": "pane_swap";
|
|
955
|
+
readonly "pane.move": "pane_move";
|
|
956
|
+
readonly "pane.zoom": "pane_zoom";
|
|
957
|
+
readonly "pane.layout": "pane_layout";
|
|
958
|
+
readonly "pane.process_info": "pane_process_info";
|
|
959
|
+
readonly "layout.export": "layout_export";
|
|
960
|
+
readonly "layout.apply": "layout_apply";
|
|
961
|
+
readonly "pane.neighbor": "pane_neighbor";
|
|
962
|
+
readonly "pane.edges": "pane_edges";
|
|
963
|
+
readonly "pane.focus_direction": "pane_focus_direction";
|
|
964
|
+
readonly "pane.resize": "pane_resize";
|
|
965
|
+
readonly "pane.copy_motion": "pane_copy_motion";
|
|
966
|
+
readonly "pane.copy_search": "pane_copy_search";
|
|
967
|
+
readonly "pane.list": "pane_list";
|
|
968
|
+
readonly "pane.current": "pane_current";
|
|
969
|
+
readonly "pane.get": "pane_info";
|
|
970
|
+
readonly "pane.read": "pane_read";
|
|
971
|
+
readonly "events.subscribe": "subscription_started";
|
|
972
|
+
readonly "integration.list": "integration_list";
|
|
973
|
+
readonly "integration.install": "integration_install";
|
|
974
|
+
readonly "integration.uninstall": "integration_uninstall";
|
|
975
|
+
readonly "plugin.list": "plugin_list";
|
|
976
|
+
readonly "plugin.action.list": "plugin_action_list";
|
|
977
|
+
readonly "plugin.log.list": "plugin_log_list";
|
|
978
|
+
};
|