shellpuppet 0.2.1 → 0.4.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 +65 -18
- 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/liveResumeId.d.ts +6 -0
- package/dist/agents/claude/liveResumeId.js +101 -0
- package/dist/agents/claude/liveResumeId.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/draft.d.ts +3 -0
- package/dist/agents/codex/draft.js +88 -0
- package/dist/agents/codex/draft.js.map +1 -0
- package/dist/agents/codex/index.d.ts +2 -0
- package/dist/agents/codex/index.js +30 -0
- package/dist/agents/codex/index.js.map +1 -0
- package/dist/agents/codex/lineBreaks.d.ts +6 -0
- package/dist/agents/codex/lineBreaks.js +105 -0
- package/dist/agents/codex/lineBreaks.js.map +1 -0
- package/dist/agents/codex/nudge.d.ts +2 -0
- package/dist/agents/codex/nudge.js +34 -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 +81 -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/hermes/frame.d.ts +25 -0
- package/dist/agents/hermes/frame.js +145 -0
- package/dist/agents/hermes/frame.js.map +1 -0
- package/dist/agents/hermes/index.d.ts +2 -0
- package/dist/agents/hermes/index.js +20 -0
- package/dist/agents/hermes/index.js.map +1 -0
- package/dist/agents/hermes/nudge.d.ts +5 -0
- package/dist/agents/hermes/nudge.js +76 -0
- package/dist/agents/hermes/nudge.js.map +1 -0
- package/dist/agents/hermes/prompts.d.ts +7 -0
- package/dist/agents/hermes/prompts.js +101 -0
- package/dist/agents/hermes/prompts.js.map +1 -0
- package/dist/agents/hermes/reading.d.ts +7 -0
- package/dist/agents/hermes/reading.js +102 -0
- package/dist/agents/hermes/reading.js.map +1 -0
- package/dist/agents/index.d.ts +28 -0
- package/dist/agents/index.js +48 -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 +60 -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 +252 -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 +189 -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 +202 -0
- package/dist/agents/types.js +2 -0
- package/dist/agents/types.js.map +1 -0
- package/dist/cli/index.js +220 -21
- package/dist/cli/index.js.map +1 -1
- package/dist/client/http.d.ts +8 -2
- package/dist/client/http.js +179 -56
- package/dist/client/http.js.map +1 -1
- package/dist/core/cron.d.ts +6 -0
- package/dist/core/cron.js +63 -0
- package/dist/core/cron.js.map +1 -0
- 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/environment.d.ts +6 -0
- package/dist/core/environment.js +35 -0
- package/dist/core/environment.js.map +1 -0
- package/dist/core/mailbox.d.ts +223 -0
- package/dist/core/mailbox.js +549 -0
- package/dist/core/mailbox.js.map +1 -0
- package/dist/core/manager.d.ts +4 -0
- package/dist/core/manager.js +40 -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 +60 -0
- package/dist/core/nudge.js.map +1 -0
- package/dist/core/promptDetector.d.ts +14 -12
- package/dist/core/promptDetector.js +115 -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 +584 -328
- package/dist/core/reasoning.js.map +1 -1
- package/dist/core/renderer.d.ts +63 -3
- package/dist/core/renderer.js +370 -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 +175 -13
- package/dist/core/session.js +1030 -93
- package/dist/core/session.js.map +1 -1
- package/dist/core/stringWidth.d.ts +2 -0
- package/dist/core/stringWidth.js +13 -0
- package/dist/core/stringWidth.js.map +1 -0
- package/dist/core/types.d.ts +62 -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 +44 -0
- package/dist/daemon/config.js +166 -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 +14 -6
- package/dist/daemon/index.js.map +1 -1
- package/dist/daemon/launchProfiles.d.ts +5 -0
- package/dist/daemon/launchProfiles.js +54 -48
- package/dist/daemon/launchProfiles.js.map +1 -1
- package/dist/daemon/logger.js +1 -1
- package/dist/daemon/logger.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 +181 -50
- package/dist/daemon/paths.js.map +1 -1
- package/dist/daemon/restartHold.js +16 -15
- package/dist/daemon/restartHold.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/schedules.d.ts +57 -0
- package/dist/daemon/schedules.js +181 -0
- package/dist/daemon/schedules.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 +82 -13
- package/dist/daemon/server.js +1737 -330
- 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/daemon/viewerLauncher.js +3 -2
- package/dist/daemon/viewerLauncher.js.map +1 -1
- package/dist/daemon/wrappedLaunch.d.ts +1 -0
- package/dist/daemon/wrappedLaunch.js +38 -0
- package/dist/daemon/wrappedLaunch.js.map +1 -0
- package/dist/daemon/wrappedStart.d.ts +13 -0
- package/dist/daemon/wrappedStart.js +113 -0
- package/dist/daemon/wrappedStart.js.map +1 -0
- package/dist/daemon/wrappedSupervisor.d.ts +1 -0
- package/dist/daemon/wrappedSupervisor.js +55 -0
- package/dist/daemon/wrappedSupervisor.js.map +1 -0
- package/dist/mcp/config.js +2 -1
- package/dist/mcp/config.js.map +1 -1
- package/dist/mcp/index.js +28 -2
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/tools.d.ts +21 -1
- package/dist/mcp/tools.js +216 -29
- 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,19 +5,23 @@
|
|
|
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;
|
|
23
|
+
/** Release the pending Windows process after discovery, before any client can use it. */
|
|
24
|
+
afterPublish?: () => Promise<void>;
|
|
21
25
|
policy?: PolicyConfig;
|
|
22
26
|
/** Session environment hygiene (design §4.6, ADR-008). Defaults to clean. */
|
|
23
27
|
sessionEnv?: SessionEnvMode;
|
|
@@ -79,15 +83,19 @@ export interface DaemonOptions {
|
|
|
79
83
|
/** Test seam for dashboard starts without native terminal startup. */
|
|
80
84
|
dashboardSessionFactory?: (options: SessionOptions) => Session;
|
|
81
85
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
constructor(state: DaemonState);
|
|
85
|
-
}
|
|
86
|
+
/** Thrown by `start()` when a healthy daemon already owns this home. */
|
|
87
|
+
export { AlreadyRunningError };
|
|
86
88
|
export declare class Daemon {
|
|
87
89
|
private readonly options;
|
|
88
90
|
private readonly logger;
|
|
89
91
|
private readonly tokens;
|
|
90
92
|
private readonly manager;
|
|
93
|
+
private readonly mailbox;
|
|
94
|
+
private readonly nudges;
|
|
95
|
+
private readonly schedules;
|
|
96
|
+
private readonly pendingSchedules;
|
|
97
|
+
private readonly promptScheduler;
|
|
98
|
+
private stopScheduleWatch?;
|
|
91
99
|
private readonly server;
|
|
92
100
|
private readonly wss;
|
|
93
101
|
private readonly sockets;
|
|
@@ -110,6 +118,15 @@ export declare class Daemon {
|
|
|
110
118
|
private readonly geometryController;
|
|
111
119
|
/** A dashboard document keeps its grid while a covered pane reconnects. */
|
|
112
120
|
private readonly dashboardGeometryOwner;
|
|
121
|
+
/** The credential shared by that dashboard's windows, for transfers between documents. */
|
|
122
|
+
private readonly dashboardCredentialOwner;
|
|
123
|
+
/** Destination document for a released grid. A rosterless release allows a
|
|
124
|
+
* same-credential stream (null). A release awaiting a new assignment has no recipient. */
|
|
125
|
+
private readonly dashboardTransferable;
|
|
126
|
+
private readonly dashboardSocketCredential;
|
|
127
|
+
/** External geometry acts invalidate a temporary wider read's restoration. */
|
|
128
|
+
private readonly geometryEpoch;
|
|
129
|
+
private readonly widerReads;
|
|
113
130
|
/** Subscribers to the daemon-wide event stream (`/events`). */
|
|
114
131
|
private readonly eventSockets;
|
|
115
132
|
/**
|
|
@@ -117,8 +134,12 @@ export declare class Daemon {
|
|
|
117
134
|
* not launch a per-session viewer window and does not hand back a viewer URL.
|
|
118
135
|
*/
|
|
119
136
|
private readonly dashboardEventSockets;
|
|
120
|
-
/**
|
|
137
|
+
/** Dashboard windows and assignments are owned by the authenticated feed. */
|
|
121
138
|
private readonly dashboardWindowIds;
|
|
139
|
+
private readonly dashboardAssignments;
|
|
140
|
+
private dashboardDesignated;
|
|
141
|
+
/** The document proof survives a feed reconnect and expires with the proof ring. */
|
|
142
|
+
private readonly dashboardDocumentFocus;
|
|
122
143
|
private readonly liveDashboardEventSockets;
|
|
123
144
|
/** A launched dashboard has 30 seconds to connect before a start may retry. */
|
|
124
145
|
private dashboardWindowStartedAt;
|
|
@@ -135,10 +156,13 @@ export declare class Daemon {
|
|
|
135
156
|
private portValue;
|
|
136
157
|
private waitsInFlight;
|
|
137
158
|
private lastActivity;
|
|
159
|
+
private readonly shutdownWarnings;
|
|
138
160
|
private idleTimer;
|
|
139
161
|
private raceCheckTimer;
|
|
140
162
|
private statePublishTimer;
|
|
141
163
|
private statePublishRunning;
|
|
164
|
+
private homeOwner?;
|
|
165
|
+
private claimsRestored;
|
|
142
166
|
/** What this daemon published in daemon.json, once it has claimed it. */
|
|
143
167
|
private publishedState;
|
|
144
168
|
private readonly instanceId;
|
|
@@ -148,7 +172,9 @@ export declare class Daemon {
|
|
|
148
172
|
private readonly promptGraceTimers;
|
|
149
173
|
private promptScanRunning;
|
|
150
174
|
private stopPromise;
|
|
175
|
+
private shutdownRecords?;
|
|
151
176
|
private readonly audit;
|
|
177
|
+
private readonly callerContext;
|
|
152
178
|
/**
|
|
153
179
|
* What sessions get from the daemon's environment (ADR-008), resolved once so
|
|
154
180
|
* that what the daemon reports is what its sessions get.
|
|
@@ -157,10 +183,13 @@ export declare class Daemon {
|
|
|
157
183
|
/** The profiles the dashboard may name, and the entries that did not load. */
|
|
158
184
|
private readonly launchProfiles;
|
|
159
185
|
private readonly daemonEnv;
|
|
186
|
+
private readonly cliPath;
|
|
160
187
|
/** The global policy, kept here so a launch can report it before creating. */
|
|
161
188
|
private readonly compiledPolicy;
|
|
162
189
|
/** Accepted launch times, for the sliding sixty-second cap. */
|
|
163
190
|
private readonly launchTimes;
|
|
191
|
+
private readonly claimTimes;
|
|
192
|
+
private claimCount;
|
|
164
193
|
private folderPickerBusy;
|
|
165
194
|
private folderPickerAbort;
|
|
166
195
|
private folderPickerDone;
|
|
@@ -212,13 +241,20 @@ export declare class Daemon {
|
|
|
212
241
|
private isHealthy;
|
|
213
242
|
private closeServerOnly;
|
|
214
243
|
/**
|
|
215
|
-
* Kill every session's process tree
|
|
216
|
-
*
|
|
244
|
+
* Kill every session's process tree and release our discovery record. A
|
|
245
|
+
* restart leaves a credential-free handoff for the next owner.
|
|
217
246
|
* The daemon must never exit and strand running agent CLIs (design §2.3).
|
|
218
247
|
*/
|
|
219
248
|
stop(opts?: {
|
|
220
249
|
removeState?: boolean;
|
|
250
|
+
restart?: boolean;
|
|
221
251
|
}): Promise<void>;
|
|
252
|
+
private saveShutdownRecords;
|
|
253
|
+
private finishDiscovery;
|
|
254
|
+
private writeShutdownRecord;
|
|
255
|
+
private shutdownRecordFailure;
|
|
256
|
+
private releaseOwnership;
|
|
257
|
+
private requireHomeOwner;
|
|
222
258
|
private doStop;
|
|
223
259
|
/**
|
|
224
260
|
* What sessions inherit (ADR-008): the mode, and under passthrough the names
|
|
@@ -268,6 +304,8 @@ export declare class Daemon {
|
|
|
268
304
|
private waitAcrossSessions;
|
|
269
305
|
/** Cookie-authenticated `GET /sessions`. A missing or wrong proof is a 403. */
|
|
270
306
|
private serveDashboardSessionList;
|
|
307
|
+
/** Owner-wide history is available only with the dashboard cookie and document proof. */
|
|
308
|
+
private serveDashboardMessages;
|
|
271
309
|
/** A cookie mutation: same-origin Fetch Metadata and a matching Origin. */
|
|
272
310
|
private isSameOriginMutation;
|
|
273
311
|
/**
|
|
@@ -305,18 +343,20 @@ export declare class Daemon {
|
|
|
305
343
|
* command, arguments or an environment value.
|
|
306
344
|
*/
|
|
307
345
|
private handleDashboardLaunch;
|
|
346
|
+
private launchProfile;
|
|
308
347
|
/**
|
|
309
348
|
* `DELETE /sessions/<id>` for the dashboard cookie. Origin, Fetch Metadata
|
|
310
349
|
* and the document proof are the same checks as launch. One call kills the
|
|
311
350
|
* session and audits actor `dashboard`. A client token never reaches here.
|
|
312
351
|
*/
|
|
313
352
|
private handleDashboardKill;
|
|
353
|
+
private handleDashboardRename;
|
|
314
354
|
/**
|
|
315
|
-
*
|
|
355
|
+
* Authenticate the dashboard event feed and retain its issuing credential.
|
|
316
356
|
* The client token on the query is not a way in. The proof is the
|
|
317
357
|
* subprotocol, not `X-ShellPuppet-CSRF`.
|
|
318
358
|
*/
|
|
319
|
-
private
|
|
359
|
+
private dashboardUpgradeCredential;
|
|
320
360
|
/**
|
|
321
361
|
* Select `sp-csrf.<proof>` when this upgrade's credential is the dashboard
|
|
322
362
|
* cookie: the dashboard feed, or a session stream the client token did not
|
|
@@ -341,6 +381,22 @@ export declare class Daemon {
|
|
|
341
381
|
*/
|
|
342
382
|
private sessionStreamDecision;
|
|
343
383
|
private handleRequest;
|
|
384
|
+
private resolveCallerIdentity;
|
|
385
|
+
private verifiedRestartSnapshot;
|
|
386
|
+
private savePreviousSessions;
|
|
387
|
+
private saveLauncherClaims;
|
|
388
|
+
private grantedLauncher;
|
|
389
|
+
private messageAudit;
|
|
390
|
+
private endMailboxParticipant;
|
|
391
|
+
private lapseIdleClaims;
|
|
392
|
+
private deliverNudge;
|
|
393
|
+
private clearScheduledBody;
|
|
394
|
+
private deliverScheduled;
|
|
395
|
+
private deliverLine;
|
|
396
|
+
private registerMailboxSession;
|
|
397
|
+
private isReservedClaimName;
|
|
398
|
+
private handleMessages;
|
|
399
|
+
private handleClientRequest;
|
|
344
400
|
private handleStart;
|
|
345
401
|
/**
|
|
346
402
|
* The signature that reads a session's screen for `hideReasoning` and
|
|
@@ -405,6 +461,8 @@ export declare class Daemon {
|
|
|
405
461
|
private listWithPrompts;
|
|
406
462
|
private summaryWithPrompt;
|
|
407
463
|
private updateFeedSession;
|
|
464
|
+
/** One transition drives the feed, audit, log and both notification channels. */
|
|
465
|
+
private watchStalls;
|
|
408
466
|
private clearPromptGraceCheck;
|
|
409
467
|
private schedulePromptGraceCheck;
|
|
410
468
|
/**
|
|
@@ -416,16 +474,26 @@ export declare class Daemon {
|
|
|
416
474
|
private scanForPromptStalls;
|
|
417
475
|
/** Fan an event out to every `/events` subscriber (TEXT JSON frames). */
|
|
418
476
|
private emitEvent;
|
|
477
|
+
private emitMessageEvent;
|
|
478
|
+
/** Dashboard notifications carry metadata only; the page fetches text separately. */
|
|
479
|
+
private emitDashboardMessageEvent;
|
|
419
480
|
private handleUpgrade;
|
|
420
481
|
/** Attach a subscriber to the daemon-wide event stream. */
|
|
421
482
|
private attachEventSocket;
|
|
422
483
|
/**
|
|
423
|
-
* Attach a subscriber to the dashboard session feed.
|
|
424
|
-
*
|
|
425
|
-
*
|
|
484
|
+
* Attach a subscriber to the dashboard session feed. After hello and a
|
|
485
|
+
* snapshot, registered windows receive roster and assignment state. A
|
|
486
|
+
* registered socket may focus, designate or move a pane through the daemon.
|
|
426
487
|
* The socket counts as connected so idle shutdown waits while the dashboard
|
|
427
488
|
* is open.
|
|
428
489
|
*/
|
|
490
|
+
private dashboardPair;
|
|
491
|
+
private dashboardWindows;
|
|
492
|
+
private dashboardFocusTime;
|
|
493
|
+
private updateDashboardOffers;
|
|
494
|
+
private publishDashboardWindows;
|
|
495
|
+
private dashboardFeedCurrent;
|
|
496
|
+
private retireDashboardFeeds;
|
|
429
497
|
private attachDashboardSocket;
|
|
430
498
|
private hasLiveDashboardSocket;
|
|
431
499
|
/** Send a JSON control message (TEXT frame) to every watcher of a session. */
|
|
@@ -437,6 +505,7 @@ export declare class Daemon {
|
|
|
437
505
|
* xterm's in-place reflow of what they had (§5).
|
|
438
506
|
*/
|
|
439
507
|
private announceGeometry;
|
|
508
|
+
private gridOfferedTo;
|
|
440
509
|
/** What one watcher is told about the grid, from its own point of view. */
|
|
441
510
|
private geometryFrame;
|
|
442
511
|
/** The viewer URL for a session, carrying a one-use grant. */
|