@silo-code/sdk 0.29.1 → 0.31.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/agents-service.d.ts +174 -0
- package/dist/agents-service.d.ts.map +1 -0
- package/dist/agents-service.js +2 -0
- package/dist/agents-service.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +26 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/agents-service.ts +181 -0
- package/src/index.ts +1 -0
- package/src/types.ts +22 -0
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import type { Disposable } from "./types.js";
|
|
2
|
+
import type { TerminalKind } from "./domain-types.js";
|
|
3
|
+
/**
|
|
4
|
+
* What a terminal's agent is currently doing, as classified by the host from
|
|
5
|
+
* OSC/output signals. `"none"` means no agent activity has been observed
|
|
6
|
+
* (including plain, non-agent shells). `"idle"` means the agent finished its
|
|
7
|
+
* last turn and is waiting for the next input — this is purely a fact about
|
|
8
|
+
* the agent itself, independent of whether anyone is looking at the
|
|
9
|
+
* terminal; see {@link AgentInfo.needsAttention} for the separate "has a
|
|
10
|
+
* human seen this" signal (an earlier design conflated the two into a
|
|
11
|
+
* `"waiting"`/`"done"` split on `activity` itself — dropped once it turned
|
|
12
|
+
* out to carry no information `needsAttention` didn't already have).
|
|
13
|
+
* `"dead"` is distinct from a merely `stale` restored state — see
|
|
14
|
+
* {@link AgentInfo.stale} — and means the terminal's backend was confirmed
|
|
15
|
+
* gone (no daemon to reattach to) after an unclean shutdown; nothing will
|
|
16
|
+
* arrive to resolve this on its own.
|
|
17
|
+
*
|
|
18
|
+
* @category Core Types
|
|
19
|
+
* @public
|
|
20
|
+
* @beta
|
|
21
|
+
*/
|
|
22
|
+
export type AgentActivity = "none" | "working" | "idle" | "error" | "dead";
|
|
23
|
+
/**
|
|
24
|
+
* Live agent-activity and resume-identity state for one terminal, computed
|
|
25
|
+
* once by the host and shared across every subscriber — never recomputed
|
|
26
|
+
* per-extension. Returned by {@link AgentsService.getState} and
|
|
27
|
+
* {@link AgentsService.getByTerminalId}; delivered to
|
|
28
|
+
* {@link AgentsService.subscribe} listeners on every change.
|
|
29
|
+
*
|
|
30
|
+
* @category Consumer Services
|
|
31
|
+
* @public
|
|
32
|
+
* @beta
|
|
33
|
+
*/
|
|
34
|
+
export interface AgentInfo {
|
|
35
|
+
/** The terminal record id this state belongs to. */
|
|
36
|
+
readonly terminalId: string;
|
|
37
|
+
/** The workspace this terminal belongs to. */
|
|
38
|
+
readonly workspaceId: string;
|
|
39
|
+
/** The terminal's kind at registration time (`"shell"`, `"claude"`, `"pi"`). */
|
|
40
|
+
readonly kind: TerminalKind;
|
|
41
|
+
/**
|
|
42
|
+
* Whether this terminal currently hosts an agent — true if it was created
|
|
43
|
+
* as one, or an agent-specific signal was observed in it (e.g. typing
|
|
44
|
+
* `claude` into a plain shell).
|
|
45
|
+
*/
|
|
46
|
+
readonly isAgent: boolean;
|
|
47
|
+
/** Current classified activity. */
|
|
48
|
+
readonly activity: AgentActivity;
|
|
49
|
+
/**
|
|
50
|
+
* Sticky "finished, go look" flag: set when the agent goes idle in a
|
|
51
|
+
* terminal that wasn't the active one at that moment, and cleared only by
|
|
52
|
+
* {@link AgentsService.acknowledge}. Never set at all if the terminal
|
|
53
|
+
* *was* already active the instant the agent went idle — being watched
|
|
54
|
+
* live counts as already seen, no acknowledgment needed.
|
|
55
|
+
*/
|
|
56
|
+
readonly needsAttention: boolean;
|
|
57
|
+
/** ISO timestamp of when `needsAttention` was set; undefined when not pending. */
|
|
58
|
+
readonly attentionSince?: string;
|
|
59
|
+
/** ISO timestamp of when the current `"working"` phase started; undefined otherwise. */
|
|
60
|
+
readonly workingSince?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Soft, time-gap-based, **self-clearing** signal: this restored `working`/
|
|
63
|
+
* `needsAttention` duration followed a gap long enough that it can't be
|
|
64
|
+
* fully trusted — the agent may have finished without it being observed.
|
|
65
|
+
* The next live signal clears it automatically. Distinct from
|
|
66
|
+
* `activity === "dead"`, which is a hard, structural, non-self-resolving
|
|
67
|
+
* fact — see {@link AgentActivity}.
|
|
68
|
+
*/
|
|
69
|
+
readonly stale: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Exact session identifier for the agent running in this terminal, when one
|
|
72
|
+
* could be determined. Present only when an opt-in `SessionStart` hook has
|
|
73
|
+
* reported it (see the Settings → Agents page); absent otherwise — Silo
|
|
74
|
+
* never *infers* a session id by directory/recency, since that can silently
|
|
75
|
+
* resolve to the wrong session. Populated live once the hook fires (not
|
|
76
|
+
* deferred to death), then persisted, so a consumer reacting to
|
|
77
|
+
* `activity === "dead"` can read it back.
|
|
78
|
+
*/
|
|
79
|
+
readonly sessionId?: string;
|
|
80
|
+
/**
|
|
81
|
+
* A ready-to-show (and copy/paste) resume hint. Either an exact
|
|
82
|
+
* `"claude --resume 01abc..."` (when {@link AgentInfo.sessionId} was
|
|
83
|
+
* resolved via a hook) or an honest, session-id-less
|
|
84
|
+
* `"was running claude in ~/foo"` note (when it wasn't). Attached the first
|
|
85
|
+
* time the terminal's agent is detected and persisted, so it is available
|
|
86
|
+
* both live and at `activity === "dead"`.
|
|
87
|
+
*/
|
|
88
|
+
readonly resumeCommand?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Human-readable agent name, e.g. `"Claude Code"` or `"Codex CLI"`. Tells
|
|
91
|
+
* you *which* agent CLI is running in this terminal, independent of
|
|
92
|
+
* whether an exact session id was ever resolved — populated as soon as a
|
|
93
|
+
* known agent leader is detected at all (same moment
|
|
94
|
+
* {@link AgentInfo.resumeCommand} is first attached), not deferred until
|
|
95
|
+
* {@link AgentInfo.sessionId} is available.
|
|
96
|
+
*/
|
|
97
|
+
readonly agentName?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Stable catalog key for the agent, e.g. `"claude"` or `"codex"` — unlike
|
|
100
|
+
* {@link AgentInfo.agentName} (a display string meant for showing to the
|
|
101
|
+
* user), this is meant for an extension's own code to switch or compare
|
|
102
|
+
* on, and won't change if the display name is ever reworded. Populated at
|
|
103
|
+
* the same moment and lifecycle as `agentName`.
|
|
104
|
+
*/
|
|
105
|
+
readonly agentId?: string;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Host-computed coding-agent observability — exposed as
|
|
109
|
+
* {@link ExtensionContext.agents}. Detection (what OSC/output signals mean
|
|
110
|
+
* for a given agent) and resume-hint resolution are both sealed inside the
|
|
111
|
+
* host implementation; there is no registration API. Mirrors
|
|
112
|
+
* {@link ProcessesService} in shape: one shared, canonical answer, not
|
|
113
|
+
* something each extension recomputes — reads are unscoped, and
|
|
114
|
+
* {@link AgentsService.acknowledge} is the one deliberately scoped mutation,
|
|
115
|
+
* the same pattern {@link ProcessesService.kill} establishes.
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```ts
|
|
119
|
+
* const sub = ctx.agents.subscribe((agents) => {
|
|
120
|
+
* const dead = agents.find((a) => a.activity === "dead");
|
|
121
|
+
* if (dead) ctx.ui.notify("info", dead.resumeCommand ?? "An agent session ended.");
|
|
122
|
+
* });
|
|
123
|
+
* ctx.subscriptions.push(sub);
|
|
124
|
+
* ```
|
|
125
|
+
*
|
|
126
|
+
* @category Consumer Services
|
|
127
|
+
* @public
|
|
128
|
+
* @beta
|
|
129
|
+
*/
|
|
130
|
+
export interface AgentsService {
|
|
131
|
+
/**
|
|
132
|
+
* Current {@link AgentInfo} for every tracked terminal in the active
|
|
133
|
+
* workspace. Pass `{ allWorkspaces: true }` for every loaded workspace
|
|
134
|
+
* instead.
|
|
135
|
+
*/
|
|
136
|
+
getState(options?: {
|
|
137
|
+
allWorkspaces?: boolean;
|
|
138
|
+
}): AgentInfo[];
|
|
139
|
+
/** Look up {@link AgentInfo} for a specific terminal tab by its record id. */
|
|
140
|
+
getByTerminalId(terminalId: string): AgentInfo | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* Subscribe to changes in the active workspace's agent state. Pass
|
|
143
|
+
* `{ allWorkspaces: true }` to be notified across every loaded workspace
|
|
144
|
+
* instead. Returns a {@link Disposable} that cancels the subscription.
|
|
145
|
+
*/
|
|
146
|
+
subscribe(listener: (state: AgentInfo[]) => void, options?: {
|
|
147
|
+
allWorkspaces?: boolean;
|
|
148
|
+
}): Disposable;
|
|
149
|
+
/**
|
|
150
|
+
* Acknowledge a finished run: clears {@link AgentInfo.needsAttention} (and
|
|
151
|
+
* its `attentionSince` timestamp). A no-op if the terminal wasn't pending
|
|
152
|
+
* attention. Doesn't touch `activity` — `"idle"` already correctly
|
|
153
|
+
* describes the agent both before and after acknowledgment; only whether
|
|
154
|
+
* a human has seen it changes.
|
|
155
|
+
*
|
|
156
|
+
* Deliberately **not** wired to focus automatically by the host — whether
|
|
157
|
+
* *viewing* a terminal should count as acknowledging it is a per-consumer
|
|
158
|
+
* policy call this method leaves to you, not a fixed rule `ctx.agents`
|
|
159
|
+
* imposes. Call it from wherever your own UI decides a run has been seen —
|
|
160
|
+
* typically `ctx.terminals.subscribeActive`, but it doesn't have to be.
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* ```ts
|
|
164
|
+
* // Acknowledge whenever the user actually looks at the terminal.
|
|
165
|
+
* ctx.subscriptions.push(
|
|
166
|
+
* ctx.terminals.subscribeActive((terminalId) => {
|
|
167
|
+
* if (terminalId) ctx.agents.acknowledge(terminalId);
|
|
168
|
+
* }),
|
|
169
|
+
* );
|
|
170
|
+
* ```
|
|
171
|
+
*/
|
|
172
|
+
acknowledge(terminalId: string): void;
|
|
173
|
+
}
|
|
174
|
+
//# sourceMappingURL=agents-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents-service.d.ts","sourceRoot":"","sources":["../src/agents-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAA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IAC9E,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;IAC3D;;;;OAIG;IACH,SAAS,CACP,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,EACtC,OAAO,CAAC,EAAE;QAAE,aAAa,CAAC,EAAE,OAAO,CAAA;KAAE,GACpC,UAAU,CAAC;IACd;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CACvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents-service.js","sourceRoot":"","sources":["../src/agents-service.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export type { EditorService, EditorSaveHandlers, OpenFileOptions, EditorViewInfo
|
|
|
22
22
|
export type { LayoutService, LayoutState, SidePanelColumnState, SideLocation, } from "./layout-service.js";
|
|
23
23
|
export type { ProcessService, ProcessSession, ProcessSpawnOptions, ProcessExecOptions, ProcessExecResult, } from "./process-service.js";
|
|
24
24
|
export type { ProcessesService, ProcessInfo, ProcessStats, ProcessTreeNode, } from "./processes-service.js";
|
|
25
|
+
export type { AgentsService, AgentInfo, AgentActivity } from "./agents-service.js";
|
|
25
26
|
export type { TerminalService, CreateTerminalInput, TerminalKind, TerminalRecord, TerminalTabDecoration, TerminalTabDecorationProvider, OscEvent, } from "./terminal-service.js";
|
|
26
27
|
export type { FileService, FileMeta, FileChangeKind, FileChangeEvent, } from "./file-service.js";
|
|
27
28
|
export type { SearchService, SearchOptions, SearchMatch, SearchFileResult, SearchResponse, } from "./search-service.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,YAAY,EACV,UAAU,EACV,YAAY,EACZ,cAAc,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EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACvE,YAAY,EACV,UAAU,EACV,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAK3B,OAAO,EACL,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAkHH,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AA6BhD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAoBzC,sEAAsE;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAkCjD,8EAA8E;AAC9E,8EAA8E;AAC9E,6DAA6D;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,yEAAyE;AACzE,iFAAiF;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,4EAA4E;AAC5E,qDAAqD;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,4DAA4D;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEvC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,wEAAwE;AACxE,iFAAiF;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,8EAA8E;AAC9E,4EAA4E;AAC5E,8EAA8E;AAC9E,8EAA8E;AAC9E,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAUvE,6EAA6E;AAC7E,wEAAwE;AACxE,+CAA+C;AAC/C,OAAO,EACL,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,0BAA0B,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ import type { EditorService } from "./editor-service.js";
|
|
|
32
32
|
import type { LayoutService } from "./layout-service.js";
|
|
33
33
|
import type { ProcessService } from "./process-service.js";
|
|
34
34
|
import type { ProcessesService } from "./processes-service.js";
|
|
35
|
+
import type { AgentsService } from "./agents-service.js";
|
|
35
36
|
import type { TerminalService } from "./terminal-service.js";
|
|
36
37
|
import type { FileService } from "./file-service.js";
|
|
37
38
|
import type { SearchService } from "./search-service.js";
|
|
@@ -306,7 +307,7 @@ export interface MenuItemContribution {
|
|
|
306
307
|
* @category Registration
|
|
307
308
|
* @public
|
|
308
309
|
*/
|
|
309
|
-
export type MenuSurface = "explorer/item" | "editor/tab" | "terminal/tab" | "workspace";
|
|
310
|
+
export type MenuSurface = "explorer/item" | "editor/tab" | "terminal/tab" | "terminal/link" | "workspace";
|
|
310
311
|
/**
|
|
311
312
|
* The typed **context object** each {@link MenuSurface} passes to an invoked
|
|
312
313
|
* command (as its first argument) and to the contribution's
|
|
@@ -337,6 +338,18 @@ export interface MenuContext {
|
|
|
337
338
|
terminalId: string;
|
|
338
339
|
workspaceId: string;
|
|
339
340
|
};
|
|
341
|
+
/**
|
|
342
|
+
* The right-clicked link's kind (`"url"` for OSC-8/`WebLinksAddon`-detected
|
|
343
|
+
* links, `"path"` for Silo's own file-path provider) and its literal text
|
|
344
|
+
* (the URL or path string), alongside which terminal it was found in. See
|
|
345
|
+
* {@link https://github.com/silo-code/silo/blob/main/docs/decisions/0027-terminal-link-policy.md | ADR 0027}
|
|
346
|
+
* for the shared link contract this surface hooks into.
|
|
347
|
+
*/
|
|
348
|
+
"terminal/link": {
|
|
349
|
+
terminalId: string;
|
|
350
|
+
kind: "url" | "path";
|
|
351
|
+
text: string;
|
|
352
|
+
};
|
|
340
353
|
workspace: Workspace;
|
|
341
354
|
}
|
|
342
355
|
/**
|
|
@@ -358,6 +371,8 @@ export interface ContextMenuContribution<S extends MenuSurface = MenuSurface> {
|
|
|
358
371
|
command: string;
|
|
359
372
|
/** Menu label (falls back to the command's label). */
|
|
360
373
|
label?: string;
|
|
374
|
+
/** Leading glyph for the row (e.g. a Phosphor icon element), same as {@link MenuItem.icon}. */
|
|
375
|
+
icon?: React.ReactNode;
|
|
361
376
|
/** Ordering within the menu; lower sorts first. */
|
|
362
377
|
order?: number;
|
|
363
378
|
/**
|
|
@@ -666,6 +681,16 @@ export interface ExtensionContext {
|
|
|
666
681
|
* See {@link ProcessesService} for the full API.
|
|
667
682
|
*/
|
|
668
683
|
readonly processes: ProcessesService;
|
|
684
|
+
/**
|
|
685
|
+
* Host-computed coding-agent activity and resume-identity observability —
|
|
686
|
+
* a live, read-only view of what each terminal's agent is doing
|
|
687
|
+
* (`none`/`working`/`idle`/`error`/`dead`) and, once a terminal's
|
|
688
|
+
* backend is confirmed dead after an unclean shutdown, a resume hint for
|
|
689
|
+
* it. Detection is fully sealed in the host implementation; there is no
|
|
690
|
+
* registration API. **@beta** — the shape may still change. See
|
|
691
|
+
* {@link AgentsService} for the full API.
|
|
692
|
+
*/
|
|
693
|
+
readonly agents: AgentsService;
|
|
669
694
|
/**
|
|
670
695
|
* Consumer API for the terminal domain — open a terminal tab in a workspace
|
|
671
696
|
* (`create`) or reap a workspace's terminals (`closeWorkspace`). The terminal
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D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CAAC,GAAG,SAAS,CAAC;CAC3E;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe,CAAC,GAAG,GAAG,OAAO;IAC5C,mCAAmC;IACnC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,8CAA8C;IAC9C,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB;gDAC4C;IAC5C,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,SAAS,CAAC;CAC/B;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,iBAAiB;IAChC,+EAA+E;IAC/E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,mDAAmD;IACnD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,6CAA6C;IAC7C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;;OAKG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,SAAS,CAAC,GAAG,GAAG,OAAO;IACtC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,EAAE,gBAAgB,GAAG,GAAG,GAAG,IAAI,CAAC;IAC5C,gEAAgE;IAChE,UAAU,CAAC,IAAI,IAAI,CAAC;CACrB"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import type { Disposable } from "./types";
|
|
2
|
+
import type { TerminalKind } from "./domain-types";
|
|
3
|
+
|
|
4
|
+
// `ctx.agents` — host-computed coding-agent activity and resume-identity
|
|
5
|
+
// observability. See RFC 0018 (docs/proposals/0018-ctx-agents-surface.md).
|
|
6
|
+
// Detection is fully sealed inside the host implementation — there is no
|
|
7
|
+
// registration API for detectors or resume-hint resolvers. Extensions only
|
|
8
|
+
// ever read this surface.
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* What a terminal's agent is currently doing, as classified by the host from
|
|
12
|
+
* OSC/output signals. `"none"` means no agent activity has been observed
|
|
13
|
+
* (including plain, non-agent shells). `"idle"` means the agent finished its
|
|
14
|
+
* last turn and is waiting for the next input — this is purely a fact about
|
|
15
|
+
* the agent itself, independent of whether anyone is looking at the
|
|
16
|
+
* terminal; see {@link AgentInfo.needsAttention} for the separate "has a
|
|
17
|
+
* human seen this" signal (an earlier design conflated the two into a
|
|
18
|
+
* `"waiting"`/`"done"` split on `activity` itself — dropped once it turned
|
|
19
|
+
* out to carry no information `needsAttention` didn't already have).
|
|
20
|
+
* `"dead"` is distinct from a merely `stale` restored state — see
|
|
21
|
+
* {@link AgentInfo.stale} — and means the terminal's backend was confirmed
|
|
22
|
+
* gone (no daemon to reattach to) after an unclean shutdown; nothing will
|
|
23
|
+
* arrive to resolve this on its own.
|
|
24
|
+
*
|
|
25
|
+
* @category Core Types
|
|
26
|
+
* @public
|
|
27
|
+
* @beta
|
|
28
|
+
*/
|
|
29
|
+
export type AgentActivity = "none" | "working" | "idle" | "error" | "dead";
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Live agent-activity and resume-identity state for one terminal, computed
|
|
33
|
+
* once by the host and shared across every subscriber — never recomputed
|
|
34
|
+
* per-extension. Returned by {@link AgentsService.getState} and
|
|
35
|
+
* {@link AgentsService.getByTerminalId}; delivered to
|
|
36
|
+
* {@link AgentsService.subscribe} listeners on every change.
|
|
37
|
+
*
|
|
38
|
+
* @category Consumer Services
|
|
39
|
+
* @public
|
|
40
|
+
* @beta
|
|
41
|
+
*/
|
|
42
|
+
export interface AgentInfo {
|
|
43
|
+
/** The terminal record id this state belongs to. */
|
|
44
|
+
readonly terminalId: string;
|
|
45
|
+
/** The workspace this terminal belongs to. */
|
|
46
|
+
readonly workspaceId: string;
|
|
47
|
+
/** The terminal's kind at registration time (`"shell"`, `"claude"`, `"pi"`). */
|
|
48
|
+
readonly kind: TerminalKind;
|
|
49
|
+
/**
|
|
50
|
+
* Whether this terminal currently hosts an agent — true if it was created
|
|
51
|
+
* as one, or an agent-specific signal was observed in it (e.g. typing
|
|
52
|
+
* `claude` into a plain shell).
|
|
53
|
+
*/
|
|
54
|
+
readonly isAgent: boolean;
|
|
55
|
+
/** Current classified activity. */
|
|
56
|
+
readonly activity: AgentActivity;
|
|
57
|
+
/**
|
|
58
|
+
* Sticky "finished, go look" flag: set when the agent goes idle in a
|
|
59
|
+
* terminal that wasn't the active one at that moment, and cleared only by
|
|
60
|
+
* {@link AgentsService.acknowledge}. Never set at all if the terminal
|
|
61
|
+
* *was* already active the instant the agent went idle — being watched
|
|
62
|
+
* live counts as already seen, no acknowledgment needed.
|
|
63
|
+
*/
|
|
64
|
+
readonly needsAttention: boolean;
|
|
65
|
+
/** ISO timestamp of when `needsAttention` was set; undefined when not pending. */
|
|
66
|
+
readonly attentionSince?: string;
|
|
67
|
+
/** ISO timestamp of when the current `"working"` phase started; undefined otherwise. */
|
|
68
|
+
readonly workingSince?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Soft, time-gap-based, **self-clearing** signal: this restored `working`/
|
|
71
|
+
* `needsAttention` duration followed a gap long enough that it can't be
|
|
72
|
+
* fully trusted — the agent may have finished without it being observed.
|
|
73
|
+
* The next live signal clears it automatically. Distinct from
|
|
74
|
+
* `activity === "dead"`, which is a hard, structural, non-self-resolving
|
|
75
|
+
* fact — see {@link AgentActivity}.
|
|
76
|
+
*/
|
|
77
|
+
readonly stale: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Exact session identifier for the agent running in this terminal, when one
|
|
80
|
+
* could be determined. Present only when an opt-in `SessionStart` hook has
|
|
81
|
+
* reported it (see the Settings → Agents page); absent otherwise — Silo
|
|
82
|
+
* never *infers* a session id by directory/recency, since that can silently
|
|
83
|
+
* resolve to the wrong session. Populated live once the hook fires (not
|
|
84
|
+
* deferred to death), then persisted, so a consumer reacting to
|
|
85
|
+
* `activity === "dead"` can read it back.
|
|
86
|
+
*/
|
|
87
|
+
readonly sessionId?: string;
|
|
88
|
+
/**
|
|
89
|
+
* A ready-to-show (and copy/paste) resume hint. Either an exact
|
|
90
|
+
* `"claude --resume 01abc..."` (when {@link AgentInfo.sessionId} was
|
|
91
|
+
* resolved via a hook) or an honest, session-id-less
|
|
92
|
+
* `"was running claude in ~/foo"` note (when it wasn't). Attached the first
|
|
93
|
+
* time the terminal's agent is detected and persisted, so it is available
|
|
94
|
+
* both live and at `activity === "dead"`.
|
|
95
|
+
*/
|
|
96
|
+
readonly resumeCommand?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Human-readable agent name, e.g. `"Claude Code"` or `"Codex CLI"`. Tells
|
|
99
|
+
* you *which* agent CLI is running in this terminal, independent of
|
|
100
|
+
* whether an exact session id was ever resolved — populated as soon as a
|
|
101
|
+
* known agent leader is detected at all (same moment
|
|
102
|
+
* {@link AgentInfo.resumeCommand} is first attached), not deferred until
|
|
103
|
+
* {@link AgentInfo.sessionId} is available.
|
|
104
|
+
*/
|
|
105
|
+
readonly agentName?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Stable catalog key for the agent, e.g. `"claude"` or `"codex"` — unlike
|
|
108
|
+
* {@link AgentInfo.agentName} (a display string meant for showing to the
|
|
109
|
+
* user), this is meant for an extension's own code to switch or compare
|
|
110
|
+
* on, and won't change if the display name is ever reworded. Populated at
|
|
111
|
+
* the same moment and lifecycle as `agentName`.
|
|
112
|
+
*/
|
|
113
|
+
readonly agentId?: string;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Host-computed coding-agent observability — exposed as
|
|
118
|
+
* {@link ExtensionContext.agents}. Detection (what OSC/output signals mean
|
|
119
|
+
* for a given agent) and resume-hint resolution are both sealed inside the
|
|
120
|
+
* host implementation; there is no registration API. Mirrors
|
|
121
|
+
* {@link ProcessesService} in shape: one shared, canonical answer, not
|
|
122
|
+
* something each extension recomputes — reads are unscoped, and
|
|
123
|
+
* {@link AgentsService.acknowledge} is the one deliberately scoped mutation,
|
|
124
|
+
* the same pattern {@link ProcessesService.kill} establishes.
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* ```ts
|
|
128
|
+
* const sub = ctx.agents.subscribe((agents) => {
|
|
129
|
+
* const dead = agents.find((a) => a.activity === "dead");
|
|
130
|
+
* if (dead) ctx.ui.notify("info", dead.resumeCommand ?? "An agent session ended.");
|
|
131
|
+
* });
|
|
132
|
+
* ctx.subscriptions.push(sub);
|
|
133
|
+
* ```
|
|
134
|
+
*
|
|
135
|
+
* @category Consumer Services
|
|
136
|
+
* @public
|
|
137
|
+
* @beta
|
|
138
|
+
*/
|
|
139
|
+
export interface AgentsService {
|
|
140
|
+
/**
|
|
141
|
+
* Current {@link AgentInfo} for every tracked terminal in the active
|
|
142
|
+
* workspace. Pass `{ allWorkspaces: true }` for every loaded workspace
|
|
143
|
+
* instead.
|
|
144
|
+
*/
|
|
145
|
+
getState(options?: { allWorkspaces?: boolean }): AgentInfo[];
|
|
146
|
+
/** Look up {@link AgentInfo} for a specific terminal tab by its record id. */
|
|
147
|
+
getByTerminalId(terminalId: string): AgentInfo | undefined;
|
|
148
|
+
/**
|
|
149
|
+
* Subscribe to changes in the active workspace's agent state. Pass
|
|
150
|
+
* `{ allWorkspaces: true }` to be notified across every loaded workspace
|
|
151
|
+
* instead. Returns a {@link Disposable} that cancels the subscription.
|
|
152
|
+
*/
|
|
153
|
+
subscribe(
|
|
154
|
+
listener: (state: AgentInfo[]) => void,
|
|
155
|
+
options?: { allWorkspaces?: boolean },
|
|
156
|
+
): Disposable;
|
|
157
|
+
/**
|
|
158
|
+
* Acknowledge a finished run: clears {@link AgentInfo.needsAttention} (and
|
|
159
|
+
* its `attentionSince` timestamp). A no-op if the terminal wasn't pending
|
|
160
|
+
* attention. Doesn't touch `activity` — `"idle"` already correctly
|
|
161
|
+
* describes the agent both before and after acknowledgment; only whether
|
|
162
|
+
* a human has seen it changes.
|
|
163
|
+
*
|
|
164
|
+
* Deliberately **not** wired to focus automatically by the host — whether
|
|
165
|
+
* *viewing* a terminal should count as acknowledging it is a per-consumer
|
|
166
|
+
* policy call this method leaves to you, not a fixed rule `ctx.agents`
|
|
167
|
+
* imposes. Call it from wherever your own UI decides a run has been seen —
|
|
168
|
+
* typically `ctx.terminals.subscribeActive`, but it doesn't have to be.
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* ```ts
|
|
172
|
+
* // Acknowledge whenever the user actually looks at the terminal.
|
|
173
|
+
* ctx.subscriptions.push(
|
|
174
|
+
* ctx.terminals.subscribeActive((terminalId) => {
|
|
175
|
+
* if (terminalId) ctx.agents.acknowledge(terminalId);
|
|
176
|
+
* }),
|
|
177
|
+
* );
|
|
178
|
+
* ```
|
|
179
|
+
*/
|
|
180
|
+
acknowledge(terminalId: string): void;
|
|
181
|
+
}
|
package/src/index.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -32,6 +32,7 @@ import type { EditorService } from "./editor-service";
|
|
|
32
32
|
import type { LayoutService } from "./layout-service";
|
|
33
33
|
import type { ProcessService } from "./process-service";
|
|
34
34
|
import type { ProcessesService } from "./processes-service";
|
|
35
|
+
import type { AgentsService } from "./agents-service";
|
|
35
36
|
import type { TerminalService } from "./terminal-service";
|
|
36
37
|
import type { FileService } from "./file-service";
|
|
37
38
|
import type { SearchService } from "./search-service";
|
|
@@ -325,6 +326,7 @@ export type MenuSurface =
|
|
|
325
326
|
| "explorer/item" // right-click on a file/folder in the file explorer
|
|
326
327
|
| "editor/tab" // right-click on an editor tab
|
|
327
328
|
| "terminal/tab" // right-click on a terminal tab
|
|
329
|
+
| "terminal/link" // right-click landing directly on a link inside a terminal
|
|
328
330
|
| "workspace"; // right-click on a workspace row in the Workspaces panel
|
|
329
331
|
|
|
330
332
|
/**
|
|
@@ -346,6 +348,14 @@ export interface MenuContext {
|
|
|
346
348
|
"explorer/item": { path: string; isDir: boolean; workspaceId: string };
|
|
347
349
|
"editor/tab": { editorId: string; filePath: string | null; viewId: string };
|
|
348
350
|
"terminal/tab": { terminalId: string; workspaceId: string };
|
|
351
|
+
/**
|
|
352
|
+
* The right-clicked link's kind (`"url"` for OSC-8/`WebLinksAddon`-detected
|
|
353
|
+
* links, `"path"` for Silo's own file-path provider) and its literal text
|
|
354
|
+
* (the URL or path string), alongside which terminal it was found in. See
|
|
355
|
+
* {@link https://github.com/silo-code/silo/blob/main/docs/decisions/0027-terminal-link-policy.md | ADR 0027}
|
|
356
|
+
* for the shared link contract this surface hooks into.
|
|
357
|
+
*/
|
|
358
|
+
"terminal/link": { terminalId: string; kind: "url" | "path"; text: string };
|
|
349
359
|
workspace: Workspace;
|
|
350
360
|
}
|
|
351
361
|
|
|
@@ -368,6 +378,8 @@ export interface ContextMenuContribution<S extends MenuSurface = MenuSurface> {
|
|
|
368
378
|
command: string;
|
|
369
379
|
/** Menu label (falls back to the command's label). */
|
|
370
380
|
label?: string;
|
|
381
|
+
/** Leading glyph for the row (e.g. a Phosphor icon element), same as {@link MenuItem.icon}. */
|
|
382
|
+
icon?: React.ReactNode;
|
|
371
383
|
/** Ordering within the menu; lower sorts first. */
|
|
372
384
|
order?: number;
|
|
373
385
|
/**
|
|
@@ -687,6 +699,16 @@ export interface ExtensionContext {
|
|
|
687
699
|
* See {@link ProcessesService} for the full API.
|
|
688
700
|
*/
|
|
689
701
|
readonly processes: ProcessesService;
|
|
702
|
+
/**
|
|
703
|
+
* Host-computed coding-agent activity and resume-identity observability —
|
|
704
|
+
* a live, read-only view of what each terminal's agent is doing
|
|
705
|
+
* (`none`/`working`/`idle`/`error`/`dead`) and, once a terminal's
|
|
706
|
+
* backend is confirmed dead after an unclean shutdown, a resume hint for
|
|
707
|
+
* it. Detection is fully sealed in the host implementation; there is no
|
|
708
|
+
* registration API. **@beta** — the shape may still change. See
|
|
709
|
+
* {@link AgentsService} for the full API.
|
|
710
|
+
*/
|
|
711
|
+
readonly agents: AgentsService;
|
|
690
712
|
/**
|
|
691
713
|
* Consumer API for the terminal domain — open a terminal tab in a workspace
|
|
692
714
|
* (`create`) or reap a workspace's terminals (`closeWorkspace`). The terminal
|