shellpuppet 0.2.1 → 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/README.md +63 -16
- package/dist/agents/agy/index.d.ts +2 -0
- package/dist/agents/agy/index.js +11 -0
- package/dist/agents/agy/index.js.map +1 -0
- package/dist/agents/agy/nudge.d.ts +2 -0
- package/dist/agents/agy/nudge.js +29 -0
- package/dist/agents/agy/nudge.js.map +1 -0
- package/dist/agents/agy/reading.d.ts +2 -0
- package/dist/agents/agy/reading.js +28 -0
- package/dist/agents/agy/reading.js.map +1 -0
- package/dist/agents/barNudge.d.ts +9 -0
- package/dist/agents/barNudge.js +21 -0
- package/dist/agents/barNudge.js.map +1 -0
- package/dist/agents/claude/index.d.ts +2 -0
- package/dist/agents/claude/index.js +31 -0
- package/dist/agents/claude/index.js.map +1 -0
- package/dist/agents/claude/nudge.d.ts +2 -0
- package/dist/agents/claude/nudge.js +38 -0
- package/dist/agents/claude/nudge.js.map +1 -0
- package/dist/agents/claude/prompts.d.ts +9 -0
- package/dist/agents/claude/prompts.js +16 -0
- package/dist/agents/claude/prompts.js.map +1 -0
- package/dist/agents/claude/reading.d.ts +2 -0
- package/dist/agents/claude/reading.js +25 -0
- package/dist/agents/claude/reading.js.map +1 -0
- package/dist/agents/codex/index.d.ts +2 -0
- package/dist/agents/codex/index.js +28 -0
- package/dist/agents/codex/index.js.map +1 -0
- package/dist/agents/codex/nudge.d.ts +2 -0
- package/dist/agents/codex/nudge.js +35 -0
- package/dist/agents/codex/nudge.js.map +1 -0
- package/dist/agents/codex/prompts.d.ts +9 -0
- package/dist/agents/codex/prompts.js +14 -0
- package/dist/agents/codex/prompts.js.map +1 -0
- package/dist/agents/codex/reading.d.ts +2 -0
- package/dist/agents/codex/reading.js +22 -0
- package/dist/agents/codex/reading.js.map +1 -0
- package/dist/agents/generic/index.d.ts +3 -0
- package/dist/agents/generic/index.js +9 -0
- package/dist/agents/generic/index.js.map +1 -0
- package/dist/agents/generic/prompts.d.ts +2 -0
- package/dist/agents/generic/prompts.js +10 -0
- package/dist/agents/generic/prompts.js.map +1 -0
- package/dist/agents/grok/actionBox.d.ts +13 -0
- package/dist/agents/grok/actionBox.js +127 -0
- package/dist/agents/grok/actionBox.js.map +1 -0
- package/dist/agents/grok/index.d.ts +2 -0
- package/dist/agents/grok/index.js +20 -0
- package/dist/agents/grok/index.js.map +1 -0
- package/dist/agents/grok/nudge.d.ts +2 -0
- package/dist/agents/grok/nudge.js +76 -0
- package/dist/agents/grok/nudge.js.map +1 -0
- package/dist/agents/grok/prompts.d.ts +4 -0
- package/dist/agents/grok/prompts.js +89 -0
- package/dist/agents/grok/prompts.js.map +1 -0
- package/dist/agents/grok/reading.d.ts +2 -0
- package/dist/agents/grok/reading.js +49 -0
- package/dist/agents/grok/reading.js.map +1 -0
- package/dist/agents/grok/readingRules.d.ts +2 -0
- package/dist/agents/grok/readingRules.js +44 -0
- package/dist/agents/grok/readingRules.js.map +1 -0
- package/dist/agents/index.d.ts +28 -0
- package/dist/agents/index.js +46 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/input.d.ts +2 -0
- package/dist/agents/input.js +9 -0
- package/dist/agents/input.js.map +1 -0
- package/dist/agents/mimo/index.d.ts +2 -0
- package/dist/agents/mimo/index.js +13 -0
- package/dist/agents/mimo/index.js.map +1 -0
- package/dist/agents/mimo/nudge.d.ts +3 -0
- package/dist/agents/mimo/nudge.js +59 -0
- package/dist/agents/mimo/nudge.js.map +1 -0
- package/dist/agents/mimo/prompts.d.ts +2 -0
- package/dist/agents/mimo/prompts.js +40 -0
- package/dist/agents/mimo/prompts.js.map +1 -0
- package/dist/agents/mimo/reading.d.ts +2 -0
- package/dist/agents/mimo/reading.js +31 -0
- package/dist/agents/mimo/reading.js.map +1 -0
- package/dist/agents/mimo/readingRules.d.ts +2 -0
- package/dist/agents/mimo/readingRules.js +79 -0
- package/dist/agents/mimo/readingRules.js.map +1 -0
- package/dist/agents/mimo/stalls.d.ts +2 -0
- package/dist/agents/mimo/stalls.js +81 -0
- package/dist/agents/mimo/stalls.js.map +1 -0
- package/dist/agents/muse/index.d.ts +2 -0
- package/dist/agents/muse/index.js +20 -0
- package/dist/agents/muse/index.js.map +1 -0
- package/dist/agents/muse/input.d.ts +3 -0
- package/dist/agents/muse/input.js +7 -0
- package/dist/agents/muse/input.js.map +1 -0
- package/dist/agents/muse/nudge.d.ts +2 -0
- package/dist/agents/muse/nudge.js +33 -0
- package/dist/agents/muse/nudge.js.map +1 -0
- package/dist/agents/muse/prompts.d.ts +14 -0
- package/dist/agents/muse/prompts.js +132 -0
- package/dist/agents/muse/prompts.js.map +1 -0
- package/dist/agents/muse/reading.d.ts +2 -0
- package/dist/agents/muse/reading.js +33 -0
- package/dist/agents/muse/reading.js.map +1 -0
- package/dist/agents/muse/readingRules.d.ts +2 -0
- package/dist/agents/muse/readingRules.js +49 -0
- package/dist/agents/muse/readingRules.js.map +1 -0
- package/dist/agents/nudgeReading.d.ts +74 -0
- package/dist/agents/nudgeReading.js +262 -0
- package/dist/agents/nudgeReading.js.map +1 -0
- package/dist/agents/opencode/index.d.ts +2 -0
- package/dist/agents/opencode/index.js +21 -0
- package/dist/agents/opencode/index.js.map +1 -0
- package/dist/agents/opencode/nudge.d.ts +6 -0
- package/dist/agents/opencode/nudge.js +187 -0
- package/dist/agents/opencode/nudge.js.map +1 -0
- package/dist/agents/opencode/prompts.d.ts +6 -0
- package/dist/agents/opencode/prompts.js +198 -0
- package/dist/agents/opencode/prompts.js.map +1 -0
- package/dist/agents/opencode/reading.d.ts +2 -0
- package/dist/agents/opencode/reading.js +29 -0
- package/dist/agents/opencode/reading.js.map +1 -0
- package/dist/agents/opencode/stalls.d.ts +3 -0
- package/dist/agents/opencode/stalls.js +14 -0
- package/dist/agents/opencode/stalls.js.map +1 -0
- package/dist/agents/qoder/index.d.ts +2 -0
- package/dist/agents/qoder/index.js +12 -0
- package/dist/agents/qoder/index.js.map +1 -0
- package/dist/agents/qoder/nudge.d.ts +2 -0
- package/dist/agents/qoder/nudge.js +16 -0
- package/dist/agents/qoder/nudge.js.map +1 -0
- package/dist/agents/qoder/prompts.d.ts +2 -0
- package/dist/agents/qoder/prompts.js +6 -0
- package/dist/agents/qoder/prompts.js.map +1 -0
- package/dist/agents/qoder/reading.d.ts +2 -0
- package/dist/agents/qoder/reading.js +41 -0
- package/dist/agents/qoder/reading.js.map +1 -0
- package/dist/agents/types.d.ts +187 -0
- package/dist/agents/types.js +2 -0
- package/dist/agents/types.js.map +1 -0
- package/dist/cli/index.js +185 -19
- package/dist/cli/index.js.map +1 -1
- package/dist/client/http.d.ts +5 -1
- package/dist/client/http.js +39 -9
- package/dist/client/http.js.map +1 -1
- package/dist/core/dialogs.d.ts +2 -4
- package/dist/core/dialogs.js +6 -12
- package/dist/core/dialogs.js.map +1 -1
- package/dist/core/mailbox.d.ts +222 -0
- package/dist/core/mailbox.js +545 -0
- package/dist/core/mailbox.js.map +1 -0
- package/dist/core/manager.d.ts +3 -0
- package/dist/core/manager.js +37 -2
- package/dist/core/manager.js.map +1 -1
- package/dist/core/messageText.d.ts +2 -0
- package/dist/core/messageText.js +6 -0
- package/dist/core/messageText.js.map +1 -0
- package/dist/core/nudge.d.ts +37 -0
- package/dist/core/nudge.js +57 -0
- package/dist/core/nudge.js.map +1 -0
- package/dist/core/promptDetector.d.ts +14 -12
- package/dist/core/promptDetector.js +113 -363
- package/dist/core/promptDetector.js.map +1 -1
- package/dist/core/promptText.d.ts +1 -0
- package/dist/core/promptText.js +4 -0
- package/dist/core/promptText.js.map +1 -0
- package/dist/core/readiness.d.ts +14 -0
- package/dist/core/readiness.js +95 -0
- package/dist/core/readiness.js.map +1 -0
- package/dist/core/reasoning.d.ts +68 -7
- package/dist/core/reasoning.js +572 -325
- package/dist/core/reasoning.js.map +1 -1
- package/dist/core/renderer.d.ts +63 -3
- package/dist/core/renderer.js +368 -42
- package/dist/core/renderer.js.map +1 -1
- package/dist/core/selection.d.ts +1 -1
- package/dist/core/selection.js +3 -3
- package/dist/core/selection.js.map +1 -1
- package/dist/core/session.d.ts +165 -13
- package/dist/core/session.js +998 -84
- package/dist/core/session.js.map +1 -1
- package/dist/core/types.d.ts +60 -4
- package/dist/core/types.js +41 -0
- package/dist/core/types.js.map +1 -1
- package/dist/core/waiter.d.ts +9 -2
- package/dist/core/waiter.js +35 -10
- package/dist/core/waiter.js.map +1 -1
- package/dist/daemon/audit.d.ts +1 -1
- package/dist/daemon/audit.js +2 -1
- package/dist/daemon/audit.js.map +1 -1
- package/dist/daemon/config.d.ts +42 -0
- package/dist/daemon/config.js +159 -4
- package/dist/daemon/config.js.map +1 -1
- package/dist/daemon/folderPicker.js +21 -2
- package/dist/daemon/folderPicker.js.map +1 -1
- package/dist/daemon/homeOwner.d.ts +15 -0
- package/dist/daemon/homeOwner.js +106 -0
- package/dist/daemon/homeOwner.js.map +1 -0
- package/dist/daemon/index.js +10 -6
- package/dist/daemon/index.js.map +1 -1
- package/dist/daemon/launchProfiles.d.ts +5 -0
- package/dist/daemon/launchProfiles.js +42 -40
- package/dist/daemon/launchProfiles.js.map +1 -1
- package/dist/daemon/nudgeScheduler.d.ts +21 -0
- package/dist/daemon/nudgeScheduler.js +61 -0
- package/dist/daemon/nudgeScheduler.js.map +1 -0
- package/dist/daemon/paths.d.ts +20 -16
- package/dist/daemon/paths.js +137 -49
- package/dist/daemon/paths.js.map +1 -1
- package/dist/daemon/restartSource.d.ts +7 -0
- package/dist/daemon/restartSource.js +89 -0
- package/dist/daemon/restartSource.js.map +1 -0
- package/dist/daemon/screenshot.d.ts +4 -1
- package/dist/daemon/screenshot.js +45 -7
- package/dist/daemon/screenshot.js.map +1 -1
- package/dist/daemon/server.d.ts +70 -13
- package/dist/daemon/server.js +1596 -294
- package/dist/daemon/server.js.map +1 -1
- package/dist/daemon/sessionFeed.js +4 -1
- package/dist/daemon/sessionFeed.js.map +1 -1
- package/dist/mcp/config.js +2 -1
- package/dist/mcp/config.js.map +1 -1
- package/dist/mcp/index.js +12 -2
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/tools.d.ts +21 -1
- package/dist/mcp/tools.js +213 -28
- package/dist/mcp/tools.js.map +1 -1
- package/dist/viewer/dashboard-folders.js +7 -1
- package/dist/viewer/dashboard-layout.js +6 -52
- package/dist/viewer/dashboard.css +20 -4
- package/dist/viewer/dashboard.html +12 -3
- package/dist/viewer/dashboard.js +549 -382
- package/dist/viewer/pane.js +744 -136
- package/dist/viewer/viewer.css +1 -1
- package/dist/viewer/viewer.js +3 -1
- package/package.json +1 -1
package/dist/daemon/server.d.ts
CHANGED
|
@@ -5,18 +5,20 @@
|
|
|
5
5
|
* Host-header validation on every request, Origin validation on WebSocket
|
|
6
6
|
* upgrades, bearer-token auth on the API, no CORS headers at all.
|
|
7
7
|
*/
|
|
8
|
+
import type { MessagingConfig } from './config.js';
|
|
8
9
|
import type { Session } from '../core/session.js';
|
|
9
10
|
import type { Logger, PolicyConfig, SessionOptions, SessionEnvMode } from '../core/types.js';
|
|
10
11
|
import { launchViewer } from './viewerLauncher.js';
|
|
11
12
|
import { captureViewer } from './screenshot.js';
|
|
12
13
|
import type { ViewerLaunchConfig } from './viewerLauncher.js';
|
|
13
14
|
import type { Auditor } from './audit.js';
|
|
14
|
-
import
|
|
15
|
+
import { AlreadyRunningError } from './homeOwner.js';
|
|
15
16
|
import type { FeedFrame } from './sessionFeed.js';
|
|
16
17
|
import type { LauncherConfig } from './launchProfiles.js';
|
|
17
18
|
export interface DaemonOptions {
|
|
18
19
|
home: string;
|
|
19
20
|
logger: Logger;
|
|
21
|
+
messaging?: MessagingConfig;
|
|
20
22
|
startedWrapped?: boolean;
|
|
21
23
|
policy?: PolicyConfig;
|
|
22
24
|
/** Session environment hygiene (design §4.6, ADR-008). Defaults to clean. */
|
|
@@ -79,15 +81,15 @@ export interface DaemonOptions {
|
|
|
79
81
|
/** Test seam for dashboard starts without native terminal startup. */
|
|
80
82
|
dashboardSessionFactory?: (options: SessionOptions) => Session;
|
|
81
83
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
constructor(state: DaemonState);
|
|
85
|
-
}
|
|
84
|
+
/** Thrown by `start()` when a healthy daemon already owns this home. */
|
|
85
|
+
export { AlreadyRunningError };
|
|
86
86
|
export declare class Daemon {
|
|
87
87
|
private readonly options;
|
|
88
88
|
private readonly logger;
|
|
89
89
|
private readonly tokens;
|
|
90
90
|
private readonly manager;
|
|
91
|
+
private readonly mailbox;
|
|
92
|
+
private readonly nudges;
|
|
91
93
|
private readonly server;
|
|
92
94
|
private readonly wss;
|
|
93
95
|
private readonly sockets;
|
|
@@ -110,6 +112,15 @@ export declare class Daemon {
|
|
|
110
112
|
private readonly geometryController;
|
|
111
113
|
/** A dashboard document keeps its grid while a covered pane reconnects. */
|
|
112
114
|
private readonly dashboardGeometryOwner;
|
|
115
|
+
/** The credential shared by that dashboard's windows, for transfers between documents. */
|
|
116
|
+
private readonly dashboardCredentialOwner;
|
|
117
|
+
/** Destination document for a released grid. A rosterless release allows a
|
|
118
|
+
* same-credential stream (null). A release awaiting a new assignment has no recipient. */
|
|
119
|
+
private readonly dashboardTransferable;
|
|
120
|
+
private readonly dashboardSocketCredential;
|
|
121
|
+
/** External geometry acts invalidate a temporary wider read's restoration. */
|
|
122
|
+
private readonly geometryEpoch;
|
|
123
|
+
private readonly widerReads;
|
|
113
124
|
/** Subscribers to the daemon-wide event stream (`/events`). */
|
|
114
125
|
private readonly eventSockets;
|
|
115
126
|
/**
|
|
@@ -117,8 +128,12 @@ export declare class Daemon {
|
|
|
117
128
|
* not launch a per-session viewer window and does not hand back a viewer URL.
|
|
118
129
|
*/
|
|
119
130
|
private readonly dashboardEventSockets;
|
|
120
|
-
/**
|
|
131
|
+
/** Dashboard windows and assignments are owned by the authenticated feed. */
|
|
121
132
|
private readonly dashboardWindowIds;
|
|
133
|
+
private readonly dashboardAssignments;
|
|
134
|
+
private dashboardDesignated;
|
|
135
|
+
/** The document proof survives a feed reconnect and expires with the proof ring. */
|
|
136
|
+
private readonly dashboardDocumentFocus;
|
|
122
137
|
private readonly liveDashboardEventSockets;
|
|
123
138
|
/** A launched dashboard has 30 seconds to connect before a start may retry. */
|
|
124
139
|
private dashboardWindowStartedAt;
|
|
@@ -135,10 +150,13 @@ export declare class Daemon {
|
|
|
135
150
|
private portValue;
|
|
136
151
|
private waitsInFlight;
|
|
137
152
|
private lastActivity;
|
|
153
|
+
private readonly shutdownWarnings;
|
|
138
154
|
private idleTimer;
|
|
139
155
|
private raceCheckTimer;
|
|
140
156
|
private statePublishTimer;
|
|
141
157
|
private statePublishRunning;
|
|
158
|
+
private homeOwner?;
|
|
159
|
+
private claimsRestored;
|
|
142
160
|
/** What this daemon published in daemon.json, once it has claimed it. */
|
|
143
161
|
private publishedState;
|
|
144
162
|
private readonly instanceId;
|
|
@@ -149,6 +167,7 @@ export declare class Daemon {
|
|
|
149
167
|
private promptScanRunning;
|
|
150
168
|
private stopPromise;
|
|
151
169
|
private readonly audit;
|
|
170
|
+
private readonly callerContext;
|
|
152
171
|
/**
|
|
153
172
|
* What sessions get from the daemon's environment (ADR-008), resolved once so
|
|
154
173
|
* that what the daemon reports is what its sessions get.
|
|
@@ -157,10 +176,13 @@ export declare class Daemon {
|
|
|
157
176
|
/** The profiles the dashboard may name, and the entries that did not load. */
|
|
158
177
|
private readonly launchProfiles;
|
|
159
178
|
private readonly daemonEnv;
|
|
179
|
+
private readonly cliPath;
|
|
160
180
|
/** The global policy, kept here so a launch can report it before creating. */
|
|
161
181
|
private readonly compiledPolicy;
|
|
162
182
|
/** Accepted launch times, for the sliding sixty-second cap. */
|
|
163
183
|
private readonly launchTimes;
|
|
184
|
+
private readonly claimTimes;
|
|
185
|
+
private claimCount;
|
|
164
186
|
private folderPickerBusy;
|
|
165
187
|
private folderPickerAbort;
|
|
166
188
|
private folderPickerDone;
|
|
@@ -212,13 +234,18 @@ export declare class Daemon {
|
|
|
212
234
|
private isHealthy;
|
|
213
235
|
private closeServerOnly;
|
|
214
236
|
/**
|
|
215
|
-
* Kill every session's process tree
|
|
216
|
-
*
|
|
237
|
+
* Kill every session's process tree and release our discovery record. A
|
|
238
|
+
* restart leaves a credential-free handoff for the next owner.
|
|
217
239
|
* The daemon must never exit and strand running agent CLIs (design §2.3).
|
|
218
240
|
*/
|
|
219
241
|
stop(opts?: {
|
|
220
242
|
removeState?: boolean;
|
|
243
|
+
restart?: boolean;
|
|
221
244
|
}): Promise<void>;
|
|
245
|
+
private finishDiscovery;
|
|
246
|
+
private writeShutdownRecord;
|
|
247
|
+
private releaseOwnership;
|
|
248
|
+
private requireHomeOwner;
|
|
222
249
|
private doStop;
|
|
223
250
|
/**
|
|
224
251
|
* What sessions inherit (ADR-008): the mode, and under passthrough the names
|
|
@@ -268,6 +295,8 @@ export declare class Daemon {
|
|
|
268
295
|
private waitAcrossSessions;
|
|
269
296
|
/** Cookie-authenticated `GET /sessions`. A missing or wrong proof is a 403. */
|
|
270
297
|
private serveDashboardSessionList;
|
|
298
|
+
/** Owner-wide history is available only with the dashboard cookie and document proof. */
|
|
299
|
+
private serveDashboardMessages;
|
|
271
300
|
/** A cookie mutation: same-origin Fetch Metadata and a matching Origin. */
|
|
272
301
|
private isSameOriginMutation;
|
|
273
302
|
/**
|
|
@@ -305,18 +334,20 @@ export declare class Daemon {
|
|
|
305
334
|
* command, arguments or an environment value.
|
|
306
335
|
*/
|
|
307
336
|
private handleDashboardLaunch;
|
|
337
|
+
private launchProfile;
|
|
308
338
|
/**
|
|
309
339
|
* `DELETE /sessions/<id>` for the dashboard cookie. Origin, Fetch Metadata
|
|
310
340
|
* and the document proof are the same checks as launch. One call kills the
|
|
311
341
|
* session and audits actor `dashboard`. A client token never reaches here.
|
|
312
342
|
*/
|
|
313
343
|
private handleDashboardKill;
|
|
344
|
+
private handleDashboardRename;
|
|
314
345
|
/**
|
|
315
|
-
*
|
|
346
|
+
* Authenticate the dashboard event feed and retain its issuing credential.
|
|
316
347
|
* The client token on the query is not a way in. The proof is the
|
|
317
348
|
* subprotocol, not `X-ShellPuppet-CSRF`.
|
|
318
349
|
*/
|
|
319
|
-
private
|
|
350
|
+
private dashboardUpgradeCredential;
|
|
320
351
|
/**
|
|
321
352
|
* Select `sp-csrf.<proof>` when this upgrade's credential is the dashboard
|
|
322
353
|
* cookie: the dashboard feed, or a session stream the client token did not
|
|
@@ -341,6 +372,19 @@ export declare class Daemon {
|
|
|
341
372
|
*/
|
|
342
373
|
private sessionStreamDecision;
|
|
343
374
|
private handleRequest;
|
|
375
|
+
private resolveCallerIdentity;
|
|
376
|
+
private verifiedRestartSnapshot;
|
|
377
|
+
private savePreviousSessions;
|
|
378
|
+
private saveLauncherClaims;
|
|
379
|
+
private grantedLauncher;
|
|
380
|
+
private messageAudit;
|
|
381
|
+
private endMailboxParticipant;
|
|
382
|
+
private lapseIdleClaims;
|
|
383
|
+
private deliverNudge;
|
|
384
|
+
private registerMailboxSession;
|
|
385
|
+
private isReservedClaimName;
|
|
386
|
+
private handleMessages;
|
|
387
|
+
private handleClientRequest;
|
|
344
388
|
private handleStart;
|
|
345
389
|
/**
|
|
346
390
|
* The signature that reads a session's screen for `hideReasoning` and
|
|
@@ -405,6 +449,8 @@ export declare class Daemon {
|
|
|
405
449
|
private listWithPrompts;
|
|
406
450
|
private summaryWithPrompt;
|
|
407
451
|
private updateFeedSession;
|
|
452
|
+
/** One transition drives the feed, audit, log and both notification channels. */
|
|
453
|
+
private watchStalls;
|
|
408
454
|
private clearPromptGraceCheck;
|
|
409
455
|
private schedulePromptGraceCheck;
|
|
410
456
|
/**
|
|
@@ -416,16 +462,26 @@ export declare class Daemon {
|
|
|
416
462
|
private scanForPromptStalls;
|
|
417
463
|
/** Fan an event out to every `/events` subscriber (TEXT JSON frames). */
|
|
418
464
|
private emitEvent;
|
|
465
|
+
private emitMessageEvent;
|
|
466
|
+
/** Dashboard notifications carry metadata only; the page fetches text separately. */
|
|
467
|
+
private emitDashboardMessageEvent;
|
|
419
468
|
private handleUpgrade;
|
|
420
469
|
/** Attach a subscriber to the daemon-wide event stream. */
|
|
421
470
|
private attachEventSocket;
|
|
422
471
|
/**
|
|
423
|
-
* Attach a subscriber to the dashboard session feed.
|
|
424
|
-
*
|
|
425
|
-
*
|
|
472
|
+
* Attach a subscriber to the dashboard session feed. After hello and a
|
|
473
|
+
* snapshot, registered windows receive roster and assignment state. A
|
|
474
|
+
* registered socket may focus, designate or move a pane through the daemon.
|
|
426
475
|
* The socket counts as connected so idle shutdown waits while the dashboard
|
|
427
476
|
* is open.
|
|
428
477
|
*/
|
|
478
|
+
private dashboardPair;
|
|
479
|
+
private dashboardWindows;
|
|
480
|
+
private dashboardFocusTime;
|
|
481
|
+
private updateDashboardOffers;
|
|
482
|
+
private publishDashboardWindows;
|
|
483
|
+
private dashboardFeedCurrent;
|
|
484
|
+
private retireDashboardFeeds;
|
|
429
485
|
private attachDashboardSocket;
|
|
430
486
|
private hasLiveDashboardSocket;
|
|
431
487
|
/** Send a JSON control message (TEXT frame) to every watcher of a session. */
|
|
@@ -437,6 +493,7 @@ export declare class Daemon {
|
|
|
437
493
|
* xterm's in-place reflow of what they had (§5).
|
|
438
494
|
*/
|
|
439
495
|
private announceGeometry;
|
|
496
|
+
private gridOfferedTo;
|
|
440
497
|
/** What one watcher is told about the grid, from its own point of view. */
|
|
441
498
|
private geometryFrame;
|
|
442
499
|
/** The viewer URL for a session, carrying a one-use grant. */
|