@cluesmith/codev 3.3.2 → 3.3.4
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/dashboard-dist/assets/{index-D3XaKpZW.js → index-DZf6pNPE.js} +41 -41
- package/dashboard-dist/assets/index-DZf6pNPE.js.map +1 -0
- package/dashboard-dist/assets/index-DnYLy5C_.css +32 -0
- package/dashboard-dist/index.html +2 -2
- package/dist/agent-farm/cli.d.ts.map +1 -1
- package/dist/agent-farm/cli.js +48 -0
- package/dist/agent-farm/cli.js.map +1 -1
- package/dist/agent-farm/commands/ide.d.ts +20 -0
- package/dist/agent-farm/commands/ide.d.ts.map +1 -0
- package/dist/agent-farm/commands/ide.js +138 -0
- package/dist/agent-farm/commands/ide.js.map +1 -0
- package/dist/agent-farm/commands/inbox.d.ts.map +1 -1
- package/dist/agent-farm/commands/inbox.js +79 -10
- package/dist/agent-farm/commands/inbox.js.map +1 -1
- package/dist/agent-farm/commands/interrupt.d.ts +4 -1
- package/dist/agent-farm/commands/interrupt.d.ts.map +1 -1
- package/dist/agent-farm/commands/interrupt.js +6 -3
- package/dist/agent-farm/commands/interrupt.js.map +1 -1
- package/dist/agent-farm/commands/reset.d.ts +4 -1
- package/dist/agent-farm/commands/reset.d.ts.map +1 -1
- package/dist/agent-farm/commands/reset.js +6 -3
- package/dist/agent-farm/commands/reset.js.map +1 -1
- package/dist/agent-farm/commands/send.d.ts +28 -0
- package/dist/agent-farm/commands/send.d.ts.map +1 -1
- package/dist/agent-farm/commands/send.js +79 -6
- package/dist/agent-farm/commands/send.js.map +1 -1
- package/dist/agent-farm/commands/spawn-worktree.d.ts.map +1 -1
- package/dist/agent-farm/commands/spawn-worktree.js +16 -7
- package/dist/agent-farm/commands/spawn-worktree.js.map +1 -1
- package/dist/agent-farm/commands/tower.d.ts +21 -9
- package/dist/agent-farm/commands/tower.d.ts.map +1 -1
- package/dist/agent-farm/commands/tower.js +90 -30
- package/dist/agent-farm/commands/tower.js.map +1 -1
- package/dist/agent-farm/db/index.d.ts +3 -1
- package/dist/agent-farm/db/index.d.ts.map +1 -1
- package/dist/agent-farm/db/index.js +8 -443
- package/dist/agent-farm/db/index.js.map +1 -1
- package/dist/agent-farm/db/mailbox.d.ts +47 -7
- package/dist/agent-farm/db/mailbox.d.ts.map +1 -1
- package/dist/agent-farm/db/mailbox.js +56 -12
- package/dist/agent-farm/db/mailbox.js.map +1 -1
- package/dist/agent-farm/db/migrations.d.ts +57 -0
- package/dist/agent-farm/db/migrations.d.ts.map +1 -0
- package/dist/agent-farm/db/migrations.js +530 -0
- package/dist/agent-farm/db/migrations.js.map +1 -0
- package/dist/agent-farm/db/schema.d.ts +1 -1
- package/dist/agent-farm/db/schema.d.ts.map +1 -1
- package/dist/agent-farm/db/schema.js +1 -0
- package/dist/agent-farm/db/schema.js.map +1 -1
- package/dist/agent-farm/db/tower-owner.d.ts +168 -0
- package/dist/agent-farm/db/tower-owner.d.ts.map +1 -0
- package/dist/agent-farm/db/tower-owner.js +369 -0
- package/dist/agent-farm/db/tower-owner.js.map +1 -0
- package/dist/agent-farm/db/types.d.ts +47 -0
- package/dist/agent-farm/db/types.d.ts.map +1 -1
- package/dist/agent-farm/db/types.js.map +1 -1
- package/dist/agent-farm/lib/ide-record.d.ts +65 -0
- package/dist/agent-farm/lib/ide-record.d.ts.map +1 -0
- package/dist/agent-farm/lib/ide-record.js +118 -0
- package/dist/agent-farm/lib/ide-record.js.map +1 -0
- package/dist/agent-farm/lib/tunnel-client.d.ts +22 -0
- package/dist/agent-farm/lib/tunnel-client.d.ts.map +1 -1
- package/dist/agent-farm/lib/tunnel-client.js +96 -19
- package/dist/agent-farm/lib/tunnel-client.js.map +1 -1
- package/dist/agent-farm/servers/cron-delivery.d.ts +7 -1
- package/dist/agent-farm/servers/cron-delivery.d.ts.map +1 -1
- package/dist/agent-farm/servers/cron-delivery.js +2 -1
- package/dist/agent-farm/servers/cron-delivery.js.map +1 -1
- package/dist/agent-farm/servers/gate-profiles.d.ts +44 -2
- package/dist/agent-farm/servers/gate-profiles.d.ts.map +1 -1
- package/dist/agent-farm/servers/gate-profiles.js +79 -6
- package/dist/agent-farm/servers/gate-profiles.js.map +1 -1
- package/dist/agent-farm/servers/ide-forward.d.ts +62 -0
- package/dist/agent-farm/servers/ide-forward.d.ts.map +1 -0
- package/dist/agent-farm/servers/ide-forward.js +274 -0
- package/dist/agent-farm/servers/ide-forward.js.map +1 -0
- package/dist/agent-farm/servers/ide-server.d.ts +68 -0
- package/dist/agent-farm/servers/ide-server.d.ts.map +1 -0
- package/dist/agent-farm/servers/ide-server.js +281 -0
- package/dist/agent-farm/servers/ide-server.js.map +1 -0
- package/dist/agent-farm/servers/mailbox-delivery.d.ts +296 -12
- package/dist/agent-farm/servers/mailbox-delivery.d.ts.map +1 -1
- package/dist/agent-farm/servers/mailbox-delivery.js +566 -69
- package/dist/agent-farm/servers/mailbox-delivery.js.map +1 -1
- package/dist/agent-farm/servers/mailbox-wiring.d.ts +66 -19
- package/dist/agent-farm/servers/mailbox-wiring.d.ts.map +1 -1
- package/dist/agent-farm/servers/mailbox-wiring.js +204 -37
- package/dist/agent-farm/servers/mailbox-wiring.js.map +1 -1
- package/dist/agent-farm/servers/message-write.d.ts +138 -11
- package/dist/agent-farm/servers/message-write.d.ts.map +1 -1
- package/dist/agent-farm/servers/message-write.js +144 -35
- package/dist/agent-farm/servers/message-write.js.map +1 -1
- package/dist/agent-farm/servers/overview.d.ts +28 -12
- package/dist/agent-farm/servers/overview.d.ts.map +1 -1
- package/dist/agent-farm/servers/overview.js +130 -79
- package/dist/agent-farm/servers/overview.js.map +1 -1
- package/dist/agent-farm/servers/render-gate.d.ts +77 -1
- package/dist/agent-farm/servers/render-gate.d.ts.map +1 -1
- package/dist/agent-farm/servers/render-gate.js +174 -25
- package/dist/agent-farm/servers/render-gate.js.map +1 -1
- package/dist/agent-farm/servers/session-submit.d.ts +7 -4
- package/dist/agent-farm/servers/session-submit.d.ts.map +1 -1
- package/dist/agent-farm/servers/session-submit.js +7 -4
- package/dist/agent-farm/servers/session-submit.js.map +1 -1
- package/dist/agent-farm/servers/tower-cron.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-cron.js +7 -3
- package/dist/agent-farm/servers/tower-cron.js.map +1 -1
- package/dist/agent-farm/servers/tower-instances.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-instances.js +17 -10
- package/dist/agent-farm/servers/tower-instances.js.map +1 -1
- package/dist/agent-farm/servers/tower-routes.d.ts +32 -0
- package/dist/agent-farm/servers/tower-routes.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-routes.js +186 -26
- package/dist/agent-farm/servers/tower-routes.js.map +1 -1
- package/dist/agent-farm/servers/tower-server.js +79 -9
- package/dist/agent-farm/servers/tower-server.js.map +1 -1
- package/dist/agent-farm/servers/tower-terminals.d.ts +21 -0
- package/dist/agent-farm/servers/tower-terminals.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-terminals.js +106 -13
- package/dist/agent-farm/servers/tower-terminals.js.map +1 -1
- package/dist/agent-farm/servers/tower-utils.d.ts +35 -0
- package/dist/agent-farm/servers/tower-utils.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-utils.js +39 -0
- package/dist/agent-farm/servers/tower-utils.js.map +1 -1
- package/dist/agent-farm/servers/tower-websocket.d.ts.map +1 -1
- package/dist/agent-farm/servers/tower-websocket.js +26 -2
- package/dist/agent-farm/servers/tower-websocket.js.map +1 -1
- package/dist/agent-farm/utils/message-format.d.ts +78 -2
- package/dist/agent-farm/utils/message-format.d.ts.map +1 -1
- package/dist/agent-farm/utils/message-format.js +107 -11
- package/dist/agent-farm/utils/message-format.js.map +1 -1
- package/dist/agent-farm/utils/port.d.ts +22 -0
- package/dist/agent-farm/utils/port.d.ts.map +1 -0
- package/dist/agent-farm/utils/port.js +35 -0
- package/dist/agent-farm/utils/port.js.map +1 -0
- package/dist/agent-farm/utils/server-utils.d.ts +26 -0
- package/dist/agent-farm/utils/server-utils.d.ts.map +1 -1
- package/dist/agent-farm/utils/server-utils.js +36 -0
- package/dist/agent-farm/utils/server-utils.js.map +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +3 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/consult/index.d.ts.map +1 -1
- package/dist/commands/consult/index.js +61 -1
- package/dist/commands/consult/index.js.map +1 -1
- package/dist/commands/consult/tree-tripwire.d.ts +177 -0
- package/dist/commands/consult/tree-tripwire.d.ts.map +1 -0
- package/dist/commands/consult/tree-tripwire.js +356 -0
- package/dist/commands/consult/tree-tripwire.js.map +1 -0
- package/dist/commands/doctor.d.ts +69 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +165 -2
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/generate-image.d.ts +25 -1
- package/dist/commands/generate-image.d.ts.map +1 -1
- package/dist/commands/generate-image.js +410 -2
- package/dist/commands/generate-image.js.map +1 -1
- package/dist/commands/porch/prompts.d.ts.map +1 -1
- package/dist/commands/porch/prompts.js +18 -2
- package/dist/commands/porch/prompts.js.map +1 -1
- package/dist/lib/agent-env.d.ts +86 -0
- package/dist/lib/agent-env.d.ts.map +1 -0
- package/dist/lib/agent-env.js +126 -0
- package/dist/lib/agent-env.js.map +1 -0
- package/dist/lib/forge-contracts.d.ts +76 -5
- package/dist/lib/forge-contracts.d.ts.map +1 -1
- package/dist/lib/forge-contracts.js.map +1 -1
- package/dist/lib/forge-rate-limit.d.ts +45 -0
- package/dist/lib/forge-rate-limit.d.ts.map +1 -0
- package/dist/lib/forge-rate-limit.js +89 -0
- package/dist/lib/forge-rate-limit.js.map +1 -0
- package/dist/lib/forge.d.ts +29 -1
- package/dist/lib/forge.d.ts.map +1 -1
- package/dist/lib/forge.js +96 -21
- package/dist/lib/forge.js.map +1 -1
- package/dist/lib/github.d.ts +13 -1
- package/dist/lib/github.d.ts.map +1 -1
- package/dist/lib/github.js +58 -15
- package/dist/lib/github.js.map +1 -1
- package/dist/lib/test-env.d.ts +17 -0
- package/dist/lib/test-env.d.ts.map +1 -1
- package/dist/lib/test-env.js +20 -0
- package/dist/lib/test-env.js.map +1 -1
- package/dist/terminal/pty-manager.d.ts +10 -1
- package/dist/terminal/pty-manager.d.ts.map +1 -1
- package/dist/terminal/pty-manager.js +38 -9
- package/dist/terminal/pty-manager.js.map +1 -1
- package/dist/terminal/pty-session.d.ts +174 -8
- package/dist/terminal/pty-session.d.ts.map +1 -1
- package/dist/terminal/pty-session.js +299 -25
- package/dist/terminal/pty-session.js.map +1 -1
- package/dist/terminal/session-manager.d.ts +23 -2
- package/dist/terminal/session-manager.d.ts.map +1 -1
- package/dist/terminal/session-manager.js +115 -36
- package/dist/terminal/session-manager.js.map +1 -1
- package/dist/terminal/session-screen.d.ts +34 -5
- package/dist/terminal/session-screen.d.ts.map +1 -1
- package/dist/terminal/session-screen.js +52 -6
- package/dist/terminal/session-screen.js.map +1 -1
- package/dist/terminal/shellper-client.d.ts +73 -0
- package/dist/terminal/shellper-client.d.ts.map +1 -1
- package/dist/terminal/shellper-client.js +151 -0
- package/dist/terminal/shellper-client.js.map +1 -1
- package/dist/terminal/shellper-main.js +20 -3
- package/dist/terminal/shellper-main.js.map +1 -1
- package/dist/terminal/shellper-process.d.ts +2 -0
- package/dist/terminal/shellper-process.d.ts.map +1 -1
- package/dist/terminal/shellper-process.js +17 -1
- package/dist/terminal/shellper-process.js.map +1 -1
- package/dist/terminal/shellper-protocol.d.ts +28 -0
- package/dist/terminal/shellper-protocol.d.ts.map +1 -1
- package/dist/terminal/shellper-protocol.js.map +1 -1
- package/dist/terminal/terminal-replies.d.ts +102 -0
- package/dist/terminal/terminal-replies.d.ts.map +1 -0
- package/dist/terminal/terminal-replies.js +181 -0
- package/dist/terminal/terminal-replies.js.map +1 -0
- package/package.json +4 -4
- package/scripts/forge/gitea/_lib.sh +214 -0
- package/scripts/forge/gitea/issue-comment.sh +8 -1
- package/scripts/forge/gitea/issue-view.sh +95 -4
- package/scripts/forge/gitea/pr-create.sh +155 -0
- package/scripts/forge/gitea/pr-exists.sh +32 -4
- package/scripts/forge/gitea/pr-list.sh +40 -31
- package/scripts/forge/gitea/pr-view.sh +65 -4
- package/scripts/forge/gitea/recently-merged.sh +91 -21
- package/scripts/forge/gitea/user-identity.sh +30 -1
- package/scripts/forge/github/issue-view.sh +5 -2
- package/scripts/forge/github/pr-create.sh +47 -0
- package/scripts/forge/github/pr-list.sh +6 -2
- package/scripts/forge/github/pr-search.sh +6 -2
- package/scripts/forge/gitlab/issue-search.sh +1 -0
- package/scripts/forge/gitlab/issue-view.sh +24 -4
- package/scripts/forge/gitlab/pr-create.sh +53 -0
- package/scripts/forge/gitlab/pr-search.sh +37 -2
- package/scripts/forge/linear/auth-status.sh +1 -0
- package/scripts/forge/linear/issue-comment.sh +1 -0
- package/scripts/forge/linear/issue-list.sh +1 -0
- package/scripts/forge/linear/issue-search.sh +1 -0
- package/scripts/forge/linear/issue-view.sh +14 -2
- package/scripts/forge/linear/recently-closed.sh +1 -0
- package/scripts/forge/linear/user-identity.sh +1 -0
- package/skeleton/.claude/skills/generate-image/SKILL.md +39 -1
- package/skeleton/.codex/skills/generate-image/SKILL.md +39 -1
- package/skeleton/protocols/air/prompts/pr.md +6 -1
- package/skeleton/protocols/aspir/prompts/review.md +6 -1
- package/skeleton/protocols/bugfix/prompts/pr.md +6 -1
- package/skeleton/protocols/bugfix/protocol.md +2 -1
- package/skeleton/protocols/maintain/prompts/review.md +6 -1
- package/skeleton/protocols/pir/prompts/review.md +10 -7
- package/skeleton/protocols/spir/prompts/review.md +6 -1
- package/skeleton/resources/commands/agent-farm.md +28 -3
- package/skeleton/roles/consultant.md +32 -0
- package/skeleton/templates/AGENTS.md +1 -1
- package/skeleton/templates/CLAUDE.md +1 -1
- package/templates/tower.html +16 -1
- package/dashboard-dist/assets/index-BZRTEMtH.css +0 -32
- package/dashboard-dist/assets/index-D3XaKpZW.js.map +0 -1
|
@@ -7,6 +7,31 @@ import path from 'node:path';
|
|
|
7
7
|
import { EventEmitter } from 'node:events';
|
|
8
8
|
import { RingBuffer } from './ring-buffer.js';
|
|
9
9
|
import { SessionScreen } from './session-screen.js';
|
|
10
|
+
import { stripTerminalReplies, terminalReplyMatches, escapeBytes } from './terminal-replies.js';
|
|
11
|
+
/**
|
|
12
|
+
* Set `AF_LOG_INPUT_SIGNAL=1` to trace every external write's effect on the delivery gate's
|
|
13
|
+
* input signal (Issue #1473): the raw chunk, what the reply filter removed, and what survived
|
|
14
|
+
* as human input.
|
|
15
|
+
*
|
|
16
|
+
* It exists because the filter's correctness is otherwise INVISIBLE. An under-strip shows up as
|
|
17
|
+
* a hold with nobody at the keyboard and an over-strip shows up as nothing at all, and neither
|
|
18
|
+
* can be told apart from normal operation by watching the outside of the system. The one
|
|
19
|
+
* measurement that settles it — sit with hands off the keyboard and see whether anything is
|
|
20
|
+
* recorded as input — needs this trace to be readable.
|
|
21
|
+
*
|
|
22
|
+
* Read once at module load: this is on the write path for every keystroke, and a per-write
|
|
23
|
+
* `process.env` lookup is a string-map hit on the hottest line in the terminal layer.
|
|
24
|
+
*
|
|
25
|
+
* ## SENSITIVE DATA — this logs what a human types, verbatim
|
|
26
|
+
*
|
|
27
|
+
* `survived="..."` is literal keystrokes. Everything typed into any composer on this Tower goes
|
|
28
|
+
* to the log while the flag is on: prompts, pasted content, and anything a person types into a
|
|
29
|
+
* password or token field an app happens to be showing. It is off by default and must stay a
|
|
30
|
+
* short, deliberate, supervised diagnostic session — never a setting left on in a shared or
|
|
31
|
+
* long-lived Tower, never enabled in an environment whose logs are shipped or retained. Delete
|
|
32
|
+
* or truncate the captured output when the session ends.
|
|
33
|
+
*/
|
|
34
|
+
const LOG_INPUT_SIGNAL = process.env.AF_LOG_INPUT_SIGNAL === '1';
|
|
10
35
|
import { isDeliberateExit } from './shellper-protocol.js';
|
|
11
36
|
/**
|
|
12
37
|
* Terminal delivery-signal bus (Spec 1313, Phase 5).
|
|
@@ -72,8 +97,26 @@ export class PtySession extends EventEmitter {
|
|
|
72
97
|
// SessionManager's in-place reconnect delivers a replacement client.
|
|
73
98
|
_closeGraceTimer = null;
|
|
74
99
|
shellperPid = -1;
|
|
100
|
+
// APPLIED geometry (Issue #1482): the dimensions a resize actually reached the process with.
|
|
101
|
+
// Everything that must agree with the real TUI reads these — `info`, and above all the gate
|
|
102
|
+
// mirror, whose classification is only valid if it wraps the way the app's own layout does.
|
|
103
|
+
// They move in `resize()` ONLY after the underlying resize is confirmed; see that method.
|
|
75
104
|
cols;
|
|
76
105
|
rows;
|
|
106
|
+
// REQUESTED geometry (Issue #1482): the last dimensions anyone ASKED for, applied or not.
|
|
107
|
+
// Kept separately so a resize that arrives before the process exists — or one dropped by a
|
|
108
|
+
// disconnected shellper — is not simply lost: `spawn()` starts the process at the requested
|
|
109
|
+
// size, and the attach path re-sends it once a connection is back. Without this pair, the
|
|
110
|
+
// fix for a dropped resize (don't commit dims) would regress the pre-spawn resize, which
|
|
111
|
+
// used to work precisely because the assignment was unconditional.
|
|
112
|
+
requestedCols;
|
|
113
|
+
requestedRows;
|
|
114
|
+
// Is `requested` an OUTSTANDING request — one somebody made that could not be applied?
|
|
115
|
+
// (Issue #1482.) Set when a resize is dropped, cleared when one lands. The attach path needs
|
|
116
|
+
// exactly this distinction: re-sending on "requested !== applied" alone would also re-send
|
|
117
|
+
// the constructor's own defaults, which would immediately overwrite the geometry just
|
|
118
|
+
// adopted from the shellper — trading a measurement back for the memory it corrected.
|
|
119
|
+
resizePending = false;
|
|
77
120
|
exitCode;
|
|
78
121
|
logFd = null;
|
|
79
122
|
logBytes = 0;
|
|
@@ -86,8 +129,12 @@ export class PtySession extends EventEmitter {
|
|
|
86
129
|
_quiescenceTimer = null;
|
|
87
130
|
clients = new Set();
|
|
88
131
|
_lastInputAt = 0;
|
|
132
|
+
// Issue #1473: the gate's MONOTONE input-change counter. Never reset — not on respawn, not
|
|
133
|
+
// on re-attach — see the `inputSeq` getter.
|
|
134
|
+
_inputSeq = 0;
|
|
89
135
|
_lastDataAt = Date.now();
|
|
90
136
|
_composing = false;
|
|
137
|
+
clock;
|
|
91
138
|
constructor(config) {
|
|
92
139
|
super();
|
|
93
140
|
this.config = config;
|
|
@@ -95,11 +142,14 @@ export class PtySession extends EventEmitter {
|
|
|
95
142
|
this.label = config.label;
|
|
96
143
|
this.cols = config.cols;
|
|
97
144
|
this.rows = config.rows;
|
|
145
|
+
this.requestedCols = config.cols;
|
|
146
|
+
this.requestedRows = config.rows;
|
|
98
147
|
this.createdAt = new Date().toISOString();
|
|
99
148
|
this.ringBuffer = new RingBuffer(config.ringBufferLines ?? 1000);
|
|
100
149
|
this.diskLogEnabled = config.diskLogEnabled ?? true;
|
|
101
150
|
this.diskLogMaxBytes = config.diskLogMaxBytes ?? 50 * 1024 * 1024; // DEFAULT_DISK_LOG_MAX_BYTES
|
|
102
151
|
this.reconnectTimeoutMs = config.reconnectTimeoutMs ?? 300_000;
|
|
152
|
+
this.clock = config.clock ?? Date.now;
|
|
103
153
|
this.logPath = path.join(config.logDir, `${config.id}.log`);
|
|
104
154
|
}
|
|
105
155
|
/** Spawn the PTY process. Must be called after construction. */
|
|
@@ -111,6 +161,13 @@ export class PtySession extends EventEmitter {
|
|
|
111
161
|
fs.mkdirSync(path.dirname(this.logPath), { recursive: true });
|
|
112
162
|
this.logFd = fs.openSync(this.logPath, 'a');
|
|
113
163
|
}
|
|
164
|
+
// Spawn at the REQUESTED geometry (Issue #1482): a viewer that resized before the process
|
|
165
|
+
// existed had its resize dropped by the `status === 'running'` guard in `resize()`, and the
|
|
166
|
+
// request is honoured here instead. Applied and requested are equal for a session nobody
|
|
167
|
+
// resized, so this is a no-op in the common case.
|
|
168
|
+
this.cols = this.requestedCols;
|
|
169
|
+
this.rows = this.requestedRows;
|
|
170
|
+
this.resizePending = false;
|
|
114
171
|
this.pty = nodePty.spawn(this.config.command, this.config.args, {
|
|
115
172
|
name: 'xterm-256color',
|
|
116
173
|
cols: this.cols,
|
|
@@ -165,6 +222,12 @@ export class PtySession extends EventEmitter {
|
|
|
165
222
|
// it has a value (WELCOME-side hydration carries genuine activity
|
|
166
223
|
// history across Tower restart). The data-frame subscription below
|
|
167
224
|
// keeps it bumped going forward via onPtyData.
|
|
225
|
+
//
|
|
226
|
+
// The INPUT signals (`_inputSeq`, `_lastInputAt`) get no such hydration and must be left
|
|
227
|
+
// strictly alone here (Issue #1473). The shellper has no view of them, and this object
|
|
228
|
+
// survives the re-attach — so resetting the counter could reproduce an earlier gate token
|
|
229
|
+
// on the same session identity and alias a stale CLEAN verdict, while resetting the
|
|
230
|
+
// timestamp would erase a keystroke that is still un-echoed on the line.
|
|
168
231
|
this._lastDataAt = client.lastDataAt;
|
|
169
232
|
// Ensure log directory exists. Guarded on logFd: with #1198 re-attach is
|
|
170
233
|
// a routine recovery step, and reopening unconditionally would leak one
|
|
@@ -174,6 +237,39 @@ export class PtySession extends EventEmitter {
|
|
|
174
237
|
fs.mkdirSync(path.dirname(this.logPath), { recursive: true });
|
|
175
238
|
this.logFd = fs.openSync(this.logPath, 'a');
|
|
176
239
|
}
|
|
240
|
+
// Reconcile our geometry against the PROCESS before seeding anything (Issue #1482).
|
|
241
|
+
//
|
|
242
|
+
// The render gate classifies the mirror seeded just below, and its verdict is only valid
|
|
243
|
+
// if that mirror wraps the way the real TUI does. Until now the seed was rendered at
|
|
244
|
+
// whatever Tower believed — which after a restart is a value read back out of the
|
|
245
|
+
// database, and after a dropped resize was never true at all. The shellper, meanwhile,
|
|
246
|
+
// has always reported the geometry it actually applied to the kernel winsize in its
|
|
247
|
+
// WELCOME frame, and Tower has always thrown it away. Adopt it: a measurement beats a
|
|
248
|
+
// memory, and this is the only measurement available.
|
|
249
|
+
//
|
|
250
|
+
// Adoption is not the last word — a live viewer's geometry still wins. It is re-sent
|
|
251
|
+
// immediately below, and only takes effect (per `resize`) if it reaches the process.
|
|
252
|
+
const reportedCols = client.welcomeCols ?? null;
|
|
253
|
+
const reportedRows = client.welcomeRows ?? null;
|
|
254
|
+
if (reportedCols && reportedRows && (reportedCols !== this.cols || reportedRows !== this.rows)) {
|
|
255
|
+
// This log line is the one that would have made #1482 self-evident in the field: it
|
|
256
|
+
// names both geometries at the moment they are known to disagree.
|
|
257
|
+
console.warn(`[pty-session ${this.id}] dimension divergence on attach: Tower believed ` +
|
|
258
|
+
`${this.cols}x${this.rows}, shellper reports ${reportedCols}x${reportedRows} — ` +
|
|
259
|
+
`adopting the shellper's (the render gate classifies at these dimensions)`);
|
|
260
|
+
this.cols = reportedCols;
|
|
261
|
+
this.rows = reportedRows;
|
|
262
|
+
// Adoption re-bases the REQUEST too, unless one is genuinely outstanding. Without this
|
|
263
|
+
// the constructor's defaults would count as a request to undo the correction we just
|
|
264
|
+
// made — see `resizePending`.
|
|
265
|
+
if (!this.resizePending) {
|
|
266
|
+
this.requestedCols = reportedCols;
|
|
267
|
+
this.requestedRows = reportedRows;
|
|
268
|
+
}
|
|
269
|
+
// A mirror that outlived a disconnect was built at the stale geometry; re-wrap it now,
|
|
270
|
+
// BEFORE the seed below is fed into it. A null mirror is created at the corrected dims.
|
|
271
|
+
this._gateScreen?.resize(reportedCols, reportedRows);
|
|
272
|
+
}
|
|
177
273
|
// Populate the ring buffer and seed the screen mirror so both reflect the session's
|
|
178
274
|
// history from the moment Tower (re)attaches — a mirror seeded only from live output
|
|
179
275
|
// after this point would be born torn (Spec 1313 render-gate round 2). The mirror may
|
|
@@ -188,6 +284,19 @@ export class PtySession extends EventEmitter {
|
|
|
188
284
|
if (screenSeed.length > 0) {
|
|
189
285
|
this.feedGateScreen(screenSeed.toString('utf-8'));
|
|
190
286
|
}
|
|
287
|
+
// Re-assert an OUTSTANDING resize now that a connection exists (Issue #1482). A viewer's
|
|
288
|
+
// size is the one Tower should be driving toward; adopting the shellper's above only fixed
|
|
289
|
+
// our BELIEF, and a resize dropped while the socket was down was never delivered at all.
|
|
290
|
+
// Gated on `resizePending` rather than on "requested !== applied": the latter is also true
|
|
291
|
+
// for a session whose constructor defaults simply differ from the running geometry, and
|
|
292
|
+
// re-sending THOSE would undo the adoption above. Routed through `resize`, so it commits
|
|
293
|
+
// only if it lands and cannot re-introduce the divergence it exists to close.
|
|
294
|
+
if (this.resizePending && (this.requestedCols !== this.cols || this.requestedRows !== this.rows)) {
|
|
295
|
+
if (!this.resize(this.requestedCols, this.requestedRows)) {
|
|
296
|
+
console.warn(`[pty-session ${this.id}] could not re-apply requested ${this.requestedCols}x${this.requestedRows} ` +
|
|
297
|
+
`on attach; running at ${this.cols}x${this.rows}`);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
191
300
|
// Forward shellper data to ring buffer + WebSocket clients
|
|
192
301
|
client.on('data', (buf) => {
|
|
193
302
|
this.onPtyData(buf.toString('utf-8'));
|
|
@@ -469,8 +578,36 @@ export class PtySession extends EventEmitter {
|
|
|
469
578
|
/**
|
|
470
579
|
* Write user input to the PTY or shellper.
|
|
471
580
|
* Returns false when the input was dropped (#1198).
|
|
581
|
+
*
|
|
582
|
+
* THE GATE'S INPUT OBSERVATION POINT (Issue #1473). This is the single funnel every write
|
|
583
|
+
* to a session passes through, so it is where the delivery gate learns that somebody put
|
|
584
|
+
* something on the line. Until now it recorded nothing: `bytesWritten` counts OUTPUT and
|
|
585
|
+
* `lastDataAt` tracks OUTPUT, so a keystroke was invisible to the gate until the TUI
|
|
586
|
+
* happened to echo it — which is the whole of the echo-lag hole.
|
|
587
|
+
*
|
|
588
|
+
* Two things are deliberate here:
|
|
589
|
+
*
|
|
590
|
+
* - **The filter, not just the counter.** xterm forwards terminal REPLIES (DA, CPR,
|
|
591
|
+
* DECRPM, focus, …) through the same upstream path as keystrokes, so counting the raw
|
|
592
|
+
* chunk would hold mail with nobody at the keyboard — and would SELF-TRIP, since our own
|
|
593
|
+
* delivery repaints the TUI, which queries the client, which answers. Only the human
|
|
594
|
+
* residue is recorded; see {@link stripTerminalReplies}. The PTY still receives the
|
|
595
|
+
* chunk VERBATIM, because the application asked for the reply and blocks on it.
|
|
596
|
+
* - **The bump ignores the return value.** The question the gate asks is "did a foreign
|
|
597
|
+
* writer put input at this session?", not "did it land". A dropped write cannot
|
|
598
|
+
* misreport itself as `busy` instead of `no-live-pty` either, because the delivery
|
|
599
|
+
* precheck tests `writable` BEFORE the token.
|
|
600
|
+
*
|
|
601
|
+
* Record-then-write is atomic with respect to the event loop: this method has no await.
|
|
472
602
|
*/
|
|
473
|
-
write(data) {
|
|
603
|
+
write(data, origin = 'external') {
|
|
604
|
+
if (origin === 'external') {
|
|
605
|
+
const human = stripTerminalReplies(data);
|
|
606
|
+
if (LOG_INPUT_SIGNAL)
|
|
607
|
+
this.logInputSignal(data, human);
|
|
608
|
+
if (human)
|
|
609
|
+
this.recordUserInput(human);
|
|
610
|
+
}
|
|
474
611
|
if (this._shellperBacked) {
|
|
475
612
|
if (this.shellperClient && this.status === 'running') {
|
|
476
613
|
return this.shellperClient.write(data);
|
|
@@ -486,24 +623,51 @@ export class PtySession extends EventEmitter {
|
|
|
486
623
|
/**
|
|
487
624
|
* Resize the PTY or shellper.
|
|
488
625
|
* Returns false when the resize was dropped (#1198).
|
|
626
|
+
*
|
|
627
|
+
* COMMIT-ON-SUCCESS (Issue #1482). This used to assign `this.cols`/`this.rows` and resize the
|
|
628
|
+
* gate mirror on entry, BEFORE finding out whether the resize could reach the process. When
|
|
629
|
+
* it could not — a dropped shellper write, or no live process at all — Tower's dimensions and
|
|
630
|
+
* the classification mirror moved while the kernel winsize, and therefore the TUI's own
|
|
631
|
+
* layout, did not. The render gate then classified a screen re-wrapped at a geometry the app
|
|
632
|
+
* never adopted: the composer's bounding rule lands on a different row, `findRegionEnd`
|
|
633
|
+
* returns -1, and every message to that agent holds `busy`/`no-region-end` FOREVER. That is
|
|
634
|
+
* the indefinite false-busy this issue is named for, and it starts with a boolean nobody read.
|
|
635
|
+
*
|
|
636
|
+
* So: record the request, attempt the resize, and move the applied geometry only if it
|
|
637
|
+
* landed. The request survives in `requestedCols`/`requestedRows` for `spawn()` and for the
|
|
638
|
+
* re-send on re-attach, so nothing is lost by declining to commit — only the false belief is.
|
|
639
|
+
*
|
|
640
|
+
* Callers must not ignore the return value; a dropped resize means Tower and the process now
|
|
641
|
+
* disagree about the geometry until something re-sends it.
|
|
489
642
|
*/
|
|
490
643
|
resize(cols, rows) {
|
|
491
|
-
|
|
492
|
-
this.
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
this._gateScreen?.resize(cols, rows);
|
|
644
|
+
// The request stands whether or not it lands — see the field comments.
|
|
645
|
+
this.requestedCols = cols;
|
|
646
|
+
this.requestedRows = rows;
|
|
647
|
+
let applied = false;
|
|
496
648
|
if (this._shellperBacked) {
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
return false;
|
|
649
|
+
applied = this.shellperClient !== null && this.status === 'running'
|
|
650
|
+
? this.shellperClient.resize(cols, rows)
|
|
651
|
+
: false;
|
|
501
652
|
}
|
|
502
|
-
if (this.pty && this.status === 'running') {
|
|
653
|
+
else if (this.pty && this.status === 'running') {
|
|
503
654
|
this.pty.resize(cols, rows);
|
|
504
|
-
|
|
655
|
+
applied = true;
|
|
505
656
|
}
|
|
506
|
-
|
|
657
|
+
if (!applied) {
|
|
658
|
+
this.resizePending = true;
|
|
659
|
+
return false;
|
|
660
|
+
}
|
|
661
|
+
this.resizePending = false;
|
|
662
|
+
this.cols = cols;
|
|
663
|
+
this.rows = rows;
|
|
664
|
+
// Keep the gate mirror at the live geometry (Spec 1313) so the classified screen wraps
|
|
665
|
+
// identically to what the user sees; no-op before the mirror's first output / after
|
|
666
|
+
// teardown. Safe to do after the process resize rather than before it: the app's repaint
|
|
667
|
+
// arrives as output on a later tick, so the mirror is always re-sized before the first byte
|
|
668
|
+
// drawn at the new geometry reaches it.
|
|
669
|
+
this._gateScreen?.resize(cols, rows);
|
|
670
|
+
return true;
|
|
507
671
|
}
|
|
508
672
|
/** Kill the PTY process or send signal to shellper. */
|
|
509
673
|
kill() {
|
|
@@ -634,20 +798,59 @@ export class PtySession extends EventEmitter {
|
|
|
634
798
|
get cwd() {
|
|
635
799
|
return this.config.cwd;
|
|
636
800
|
}
|
|
801
|
+
/**
|
|
802
|
+
* The identity the attached shellper reported for its CURRENT PTY, or null
|
|
803
|
+
* when there is none to be had — no shellper attached (a local node-pty
|
|
804
|
+
* session), an older shellper that omits the WELCOME fields, or a payload that
|
|
805
|
+
* failed validation (PIR #1475).
|
|
806
|
+
*
|
|
807
|
+
* Read THROUGH to the live client on every access rather than snapshotted at
|
|
808
|
+
* `attachShellper`. An ordinary SPAWN relaunch (the #1149 crash-loop fallback,
|
|
809
|
+
* the #1264 clean-exit rerun) replaces the PTY without a socket reconnect, so
|
|
810
|
+
* `attachShellper` never runs again — a snapshot would freeze at the
|
|
811
|
+
* pre-relaunch identity for the rest of the session. `detachShellper` nulls
|
|
812
|
+
* `shellperClient`, so falling back is automatic with no extra state.
|
|
813
|
+
*
|
|
814
|
+
* Command and args are resolved as ONE unit: with no usable command there is
|
|
815
|
+
* no usable identity, and `config` supplies both. That keeps the atomicity the
|
|
816
|
+
* client's validation establishes, and lets a legitimately empty argv stay `[]`
|
|
817
|
+
* instead of silently falling back to the config's args.
|
|
818
|
+
*/
|
|
819
|
+
get hydratedIdentity() {
|
|
820
|
+
// Falsy, not `!= null`: interface members are optional, so a test double or
|
|
821
|
+
// an unhydrated client yields `undefined`, and a rejected payload yields
|
|
822
|
+
// `null`. Empty string means "unknown" everywhere in this codebase.
|
|
823
|
+
const command = this.shellperClient?.welcomeCommand;
|
|
824
|
+
if (!command)
|
|
825
|
+
return null;
|
|
826
|
+
return { command, args: this.shellperClient?.welcomeArgs ?? [] };
|
|
827
|
+
}
|
|
637
828
|
/**
|
|
638
829
|
* Launch command of this session's process (Spec 1313 — render-gate identity seam).
|
|
639
830
|
*
|
|
640
|
-
*
|
|
641
|
-
*
|
|
642
|
-
*
|
|
643
|
-
* the
|
|
831
|
+
* The render-gate's `resolveProfile` needs an authoritative source to map a
|
|
832
|
+
* session to its classifier profile (claude/codex/agy/unknown). Precedence
|
|
833
|
+
* (PIR #1475): the shellper's own WELCOME report — what actually got spawned —
|
|
834
|
+
* then the launch command Tower recorded in `config` (restored from
|
|
835
|
+
* `terminal_sessions.command` on reconnect, with the Spec 1313 legacy
|
|
836
|
+
* self-heal behind it). Exposed as read-only getters so the gate never guesses
|
|
837
|
+
* app identity from the label alone.
|
|
644
838
|
*/
|
|
645
839
|
get command() {
|
|
646
|
-
return this.config.command;
|
|
840
|
+
return this.hydratedIdentity?.command ?? this.config.command;
|
|
647
841
|
}
|
|
648
842
|
/** Launch arguments of this session's process (Spec 1313 — paired with `command`). */
|
|
649
843
|
get launchArgs() {
|
|
650
|
-
return this.config.args;
|
|
844
|
+
return this.hydratedIdentity?.args ?? this.config.args;
|
|
845
|
+
}
|
|
846
|
+
/**
|
|
847
|
+
* Which source {@link PtySession.command} is currently answering from
|
|
848
|
+
* (PIR #1475) — `'welcome'` when the shellper stated its own identity,
|
|
849
|
+
* `'config'` when we fell back to the recorded launch command. Exists so the
|
|
850
|
+
* fallback is observable in logs and tests rather than inferred.
|
|
851
|
+
*/
|
|
852
|
+
get identitySource() {
|
|
853
|
+
return this.hydratedIdentity ? 'welcome' : 'config';
|
|
651
854
|
}
|
|
652
855
|
get status() {
|
|
653
856
|
return this.exitCode === undefined ? 'running' : 'exited';
|
|
@@ -698,9 +901,62 @@ export class PtySession extends EventEmitter {
|
|
|
698
901
|
get bytesWritten() {
|
|
699
902
|
return this.ringBuffer.bytesWritten;
|
|
700
903
|
}
|
|
701
|
-
/**
|
|
702
|
-
|
|
703
|
-
|
|
904
|
+
/**
|
|
905
|
+
* One `AF_LOG_INPUT_SIGNAL` trace line. See {@link LOG_INPUT_SIGNAL}.
|
|
906
|
+
*
|
|
907
|
+
* `survived=<NOTHING>` is the line to look for with hands off the keyboard: it means the
|
|
908
|
+
* chunk was entirely terminal replies and moved no input signal. A line with a non-empty
|
|
909
|
+
* `survived` while nobody is typing names the exact bytes the filter failed to recognise —
|
|
910
|
+
* which is the whole finding, so they are printed escaped rather than summarised.
|
|
911
|
+
*
|
|
912
|
+
* SENSITIVE: that same fidelity means a `survived` run is the operator's literal keystrokes.
|
|
913
|
+
* The diagnostic is only useful if it prints the bytes exactly, so there is no redaction to
|
|
914
|
+
* add here without destroying it — the control is the flag, which is off by default. See
|
|
915
|
+
* {@link LOG_INPUT_SIGNAL}.
|
|
916
|
+
*/
|
|
917
|
+
logInputSignal(raw, survived) {
|
|
918
|
+
const stripped = terminalReplyMatches(raw);
|
|
919
|
+
console.log(`[input-signal ${this.id.slice(0, 8)}] raw="${escapeBytes(raw)}" ` +
|
|
920
|
+
`stripped=${stripped.length === 0 ? '<none>' : stripped.map((r) => `"${escapeBytes(r)}"`).join(' ')} ` +
|
|
921
|
+
`survived=${survived === '' ? '<NOTHING>' : `"${escapeBytes(survived)}"`} ` +
|
|
922
|
+
`inputSeq=${this._inputSeq}→${this._inputSeq + survived.length}`);
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
* The gate's MONOTONE input-change counter (Issue #1473) — the input-side twin of
|
|
926
|
+
* {@link bytesWritten}.
|
|
927
|
+
*
|
|
928
|
+
* *A change counter, not a total.* It exists to DIFFER between two samples, never to be
|
|
929
|
+
* read as a byte count: it advances by the recorded chunk's `.length`, which is UTF-16 code
|
|
930
|
+
* units, so an emoji moves it by two and a stripped reply by nothing. Naming it `inputBytes`
|
|
931
|
+
* would have been a lie.
|
|
932
|
+
*
|
|
933
|
+
* The delivery path folds it into the gate's change token, which is what makes a keystroke
|
|
934
|
+
* landing during the async classify invalidate the clean verdict instead of being written
|
|
935
|
+
* over — and, just as importantly, what keeps a memoized CLEAN verdict from being reused
|
|
936
|
+
* across one.
|
|
937
|
+
*
|
|
938
|
+
* NEVER RESET. Not on `spawn()`, not on {@link attachShellper}: those replace the PTY while
|
|
939
|
+
* KEEPING this `PtySession` object, and the gate's verdict memo is keyed on object identity
|
|
940
|
+
* plus the token — so a counter that fell back to 0 could reproduce an earlier token value
|
|
941
|
+
* on the same object and alias a stale verdict. (`attachShellper` does hydrate
|
|
942
|
+
* `_lastDataAt` from the shellper's tracker; the input signals get no such hydration, and
|
|
943
|
+
* must not.)
|
|
944
|
+
*/
|
|
945
|
+
get inputSeq() {
|
|
946
|
+
return this._inputSeq;
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
* Record that a user sent input to this session.
|
|
950
|
+
*
|
|
951
|
+
* `chunk` is the HUMAN residue of the write — replies already stripped by
|
|
952
|
+
* {@link stripTerminalReplies} — and is what advances {@link inputSeq}. Called with no
|
|
953
|
+
* argument (Spec 403's original typing-awareness contract) it still moves
|
|
954
|
+
* {@link lastInputAt}, so an existing caller keeps working; it just contributes no change
|
|
955
|
+
* to the counter, since there is no chunk to measure.
|
|
956
|
+
*/
|
|
957
|
+
recordUserInput(chunk = '') {
|
|
958
|
+
this._lastInputAt = this.clock();
|
|
959
|
+
this._inputSeq += chunk.length;
|
|
704
960
|
}
|
|
705
961
|
/**
|
|
706
962
|
* Handle one chunk of user keyboard input from a live terminal client: record it for
|
|
@@ -711,9 +967,17 @@ export class PtySession extends EventEmitter {
|
|
|
711
967
|
* fast-delivery trigger emitted by {@link stopComposing}) can never diverge between
|
|
712
968
|
* clients. Automated mailbox delivery calls {@link write} directly and so, correctly,
|
|
713
969
|
* never trips a submit signal.
|
|
970
|
+
*
|
|
971
|
+
* The input RECORDING moved down into {@link write} (Issue #1473), so it covers every
|
|
972
|
+
* writer rather than only this one — the raw `POST /api/terminals/:id/write` route and the
|
|
973
|
+
* operator `^C`/ESC bypasses are counted for free, and a future input path is counted by
|
|
974
|
+
* default. What stays here is what only a live client can tell us: whether the chunk ends a
|
|
975
|
+
* draft. Composing state is tracked on the RAW chunk deliberately — a reply already called
|
|
976
|
+
* `startComposing()` before this change, `stopComposing` drives the `'submit'` delivery
|
|
977
|
+
* trigger, and perturbing a delivery trigger inside a delivery-safety fix is not a trade
|
|
978
|
+
* worth making for a getter with no production consumer.
|
|
714
979
|
*/
|
|
715
980
|
handleUserInput(data) {
|
|
716
|
-
this.recordUserInput();
|
|
717
981
|
if (data.includes('\r') || data.includes('\n')) {
|
|
718
982
|
this.stopComposing();
|
|
719
983
|
}
|
|
@@ -724,9 +988,19 @@ export class PtySession extends EventEmitter {
|
|
|
724
988
|
}
|
|
725
989
|
/** Whether the user has been idle (no input) for at least thresholdMs. */
|
|
726
990
|
isUserIdle(thresholdMs) {
|
|
727
|
-
return
|
|
991
|
+
return this.clock() - this._lastInputAt >= thresholdMs;
|
|
728
992
|
}
|
|
729
|
-
/**
|
|
993
|
+
/**
|
|
994
|
+
* Timestamp (epoch ms) of the last user input, or 0 if none.
|
|
995
|
+
*
|
|
996
|
+
* Beyond Spec 403's typing-awareness, this is now the delivery gate's INPUT-SETTLE signal
|
|
997
|
+
* (Issue #1473). A change counter can only catch input that arrives AFTER the gate sampled
|
|
998
|
+
* it; input that landed just BEFORE the sample and has not been echoed yet moves no counter
|
|
999
|
+
* — both samples agree, correctly — and the classifier reads a genuinely empty composer.
|
|
1000
|
+
* Only a clock can see that, so the delivery path requires a quiet interval here before it
|
|
1001
|
+
* writes. `0` for a session that has never received input, which reads as settled from
|
|
1002
|
+
* birth.
|
|
1003
|
+
*/
|
|
730
1004
|
get lastInputAt() {
|
|
731
1005
|
return this._lastInputAt;
|
|
732
1006
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pty-session.js","sourceRoot":"","sources":["../../src/terminal/pty-session.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AA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eAAe,GAAG,IAAI,CAAC;QAC9B,CAAC;QACD,IAAI,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC1B,YAAY,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;YACpC,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QAC/B,CAAC;QACD,gCAAgC;QAChC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;QACrB,6BAA6B;QAC7B,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;QACxB,2DAA2D;QAC3D,IAAI,CAAC,WAAW,EAAE,OAAO,EAAE,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,wBAAwB;QACxB,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;YACxB,IAAI,CAAC;gBAAC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAAC,CAAC;YAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC;YACxD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QACpB,CAAC;IACH,CAAC;CACF"}
|
|
@@ -121,6 +121,14 @@ export declare const CRASH_LOOP_THRESHOLD = 3;
|
|
|
121
121
|
export declare const RECONNECT_BACKOFF_MS: number[];
|
|
122
122
|
export declare const RECONNECT_STABILITY_MS = 30000;
|
|
123
123
|
export declare const MAX_RECOVERY_ROUNDS = 3;
|
|
124
|
+
/**
|
|
125
|
+
* Bugfix #1685: budget for `killOrphanedShellpers`. The sweep runs `ps` over the
|
|
126
|
+
* whole process table and probes each orphan's socket (up to 2s each,
|
|
127
|
+
* sequentially), so on a flooded or wedged table it can stall for minutes. It is
|
|
128
|
+
* hygiene, not correctness — past this budget the sweep is abandoned so it can
|
|
129
|
+
* never block startup, and the next Tower start retries it.
|
|
130
|
+
*/
|
|
131
|
+
export declare const ORPHAN_SWEEP_TIMEOUT_MS = 10000;
|
|
124
132
|
/**
|
|
125
133
|
* Issue #1149: true when the recorded failing-exit timestamps amount to a
|
|
126
134
|
* crash loop (>= CRASH_LOOP_THRESHOLD failures inside the trailing
|
|
@@ -247,9 +255,18 @@ export declare class SessionManager extends EventEmitter {
|
|
|
247
255
|
* track of (e.g., SQLite was corrupt/empty during reconciliation). In that
|
|
248
256
|
* case, the shellper is NOT killed — reality (live socket) trumps SQLite.
|
|
249
257
|
*
|
|
250
|
-
* Returns the number of orphans killed
|
|
258
|
+
* Returns the number of orphans killed, or -1 if the sweep was abandoned
|
|
259
|
+
* because it exceeded `timeoutMs` (Bugfix #1685) — the caller logs a WARN and
|
|
260
|
+
* proceeds; the next startup retries the sweep.
|
|
251
261
|
*/
|
|
252
|
-
killOrphanedShellpers(): Promise<number>;
|
|
262
|
+
killOrphanedShellpers(timeoutMs?: number): Promise<number>;
|
|
263
|
+
/**
|
|
264
|
+
* Await `p`, but give up after `ms` and report `{ ok: false }` rather than
|
|
265
|
+
* block indefinitely (Bugfix #1685). A rejection from `p` is propagated so the
|
|
266
|
+
* caller can tell "failed" from "timed out". `p` may still settle later — the
|
|
267
|
+
* caller must ensure abandoning it is safe.
|
|
268
|
+
*/
|
|
269
|
+
private withDeadline;
|
|
253
270
|
/**
|
|
254
271
|
* Find shellper-main.js processes belonging to THIS Tower instance.
|
|
255
272
|
*
|
|
@@ -259,6 +276,10 @@ export declare class SessionManager extends EventEmitter {
|
|
|
259
276
|
*
|
|
260
277
|
* The socketPath is used by killOrphanedShellpers() to probe the socket
|
|
261
278
|
* before killing — if the socket is responsive, the process is spared.
|
|
279
|
+
*
|
|
280
|
+
* Bugfix #1685: `ps` can hang on a flooded/wedged process table, so it is
|
|
281
|
+
* bounded by `timeoutMs` (execFile kills the child on overrun); a timed-out or
|
|
282
|
+
* failed scan resolves to `[]` and is non-fatal.
|
|
262
283
|
*/
|
|
263
284
|
private findShellperProcesses;
|
|
264
285
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-manager.d.ts","sourceRoot":"","sources":["../../src/terminal/session-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"session-manager.d.ts","sourceRoot":"","sources":["../../src/terminal/session-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAK3C,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAG5E,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,sFAAsF;IACtF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM;QAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;CACtF;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EA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