@songsid/agend 2.4.0-beta.6 → 2.4.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-cli-instructions.md +2 -0
- package/dist/app-message-origin.d.ts +2 -0
- package/dist/app-message-origin.js +3 -0
- package/dist/app-message-origin.js.map +1 -0
- package/dist/auth-api.js +3 -0
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/antigravity.d.ts +9 -2
- package/dist/backend/antigravity.js +24 -6
- package/dist/backend/antigravity.js.map +1 -1
- package/dist/backend/cli-env-probe.js +1 -1
- package/dist/backend/cli-env-probe.js.map +1 -1
- package/dist/backend-availability.d.ts +22 -0
- package/dist/backend-availability.js +71 -2
- package/dist/backend-availability.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/channel/adapters/telegram.d.ts +2 -0
- package/dist/channel/adapters/telegram.js +3 -0
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/cli-capability.d.ts +3 -0
- package/dist/cli-capability.js.map +1 -1
- package/dist/cli-registry-check.js +1 -1
- package/dist/cli-registry-check.js.map +1 -1
- package/dist/cli-registry.d.ts +1 -0
- package/dist/cli-spec-antigravity.d.ts +1 -0
- package/dist/cli-spec-antigravity.js +3 -1
- package/dist/cli-spec-antigravity.js.map +1 -1
- package/dist/cli.js +8 -0
- package/dist/cli.js.map +1 -1
- package/dist/connect/control.d.ts +20 -0
- package/dist/connect/control.js +236 -0
- package/dist/connect/control.js.map +1 -0
- package/dist/connect/install.d.ts +13 -0
- package/dist/connect/install.js +12 -0
- package/dist/connect/install.js.map +1 -0
- package/dist/connect/protocol.d.ts +38 -0
- package/dist/connect/protocol.js +36 -0
- package/dist/connect/protocol.js.map +1 -0
- package/dist/connect/service.d.ts +19 -0
- package/dist/connect/service.js +79 -0
- package/dist/connect/service.js.map +1 -0
- package/dist/connect/stdio-entry.d.ts +1 -0
- package/dist/connect/stdio-entry.js +6 -0
- package/dist/connect/stdio-entry.js.map +1 -0
- package/dist/connect/stdio.d.ts +5 -0
- package/dist/connect/stdio.js +39 -0
- package/dist/connect/stdio.js.map +1 -0
- package/dist/daemon.d.ts +13 -0
- package/dist/daemon.js +66 -1
- package/dist/daemon.js.map +1 -1
- package/dist/dispatcher-liveness.d.ts +51 -1
- package/dist/dispatcher-liveness.js +92 -2
- package/dist/dispatcher-liveness.js.map +1 -1
- package/dist/fleet-manager.d.ts +67 -1
- package/dist/fleet-manager.js +307 -27
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-windows-runtime.js +4 -2
- package/dist/fleet-windows-runtime.js.map +1 -1
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +2 -0
- package/dist/general-knowledge/skills/hub/SKILL.md +6 -0
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +15 -1
- package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +2 -0
- package/dist/hub/catalog.d.ts +6 -4
- package/dist/hub/catalog.js +14 -7
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/group-policy/admin-impact.d.ts +32 -3
- package/dist/hub/group-policy/admin-impact.js +14 -2
- package/dist/hub/group-policy/admin-impact.js.map +1 -1
- package/dist/hub/group-policy/impact-inventory.d.ts +1 -1
- package/dist/hub/group-policy/impact-inventory.js.map +1 -1
- package/dist/hub/group-policy/model.d.ts +23 -0
- package/dist/hub/group-policy/model.js +3 -3
- package/dist/hub/group-policy/model.js.map +1 -1
- package/dist/hub/group-policy/store.js +3 -3
- package/dist/hub/group-policy/store.js.map +1 -1
- package/dist/hub/group-policy/team-subjects.d.ts +1 -1
- package/dist/hub/group-policy/team-subjects.js +1 -1
- package/dist/hub/group-policy/team-subjects.js.map +1 -1
- package/dist/hub/http/compose.js +73 -6
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/core.js +3 -0
- package/dist/hub/http/core.js.map +1 -1
- package/dist/hub/http/deps.d.ts +1 -0
- package/dist/hub/join/service.d.ts +1 -1
- package/dist/hub/join/service.js.map +1 -1
- package/dist/hub/mcp/auth-schema.d.ts +7 -0
- package/dist/hub/mcp/auth-schema.js +31 -0
- package/dist/hub/mcp/auth-schema.js.map +1 -0
- package/dist/hub/mcp/auth.d.ts +86 -0
- package/dist/hub/mcp/auth.js +364 -0
- package/dist/hub/mcp/auth.js.map +1 -0
- package/dist/hub/personal/owner-host.d.ts +64 -0
- package/dist/hub/personal/owner-host.js +190 -0
- package/dist/hub/personal/owner-host.js.map +1 -0
- package/dist/hub/personal/schema.d.ts +2 -0
- package/dist/hub/personal/schema.js +48 -0
- package/dist/hub/personal/schema.js.map +1 -0
- package/dist/hub/personal/types.d.ts +42 -0
- package/dist/hub/personal/types.js +2 -0
- package/dist/hub/personal/types.js.map +1 -0
- package/dist/hub/policy.js +2 -0
- package/dist/hub/policy.js.map +1 -1
- package/dist/hub/quota.js +3 -1
- package/dist/hub/quota.js.map +1 -1
- package/dist/hub/roles/admin-control.d.ts +29 -0
- package/dist/hub/roles/admin-control.js +134 -0
- package/dist/hub/roles/admin-control.js.map +1 -0
- package/dist/hub/roles/admin-types.d.ts +49 -0
- package/dist/hub/roles/admin-types.js +2 -0
- package/dist/hub/roles/admin-types.js.map +1 -0
- package/dist/hub/roles/change.js +4 -0
- package/dist/hub/roles/change.js.map +1 -1
- package/dist/hub/roles/convert.js +1 -1
- package/dist/hub/roles/convert.js.map +1 -1
- package/dist/hub/roles/delegation.js +4 -0
- package/dist/hub/roles/delegation.js.map +1 -1
- package/dist/hub/roles/evaluate.d.ts +2 -1
- package/dist/hub/roles/evaluate.js +14 -0
- package/dist/hub/roles/evaluate.js.map +1 -1
- package/dist/hub/roles/model.d.ts +23 -0
- package/dist/hub/roles/model.js +7 -2
- package/dist/hub/roles/model.js.map +1 -1
- package/dist/hub/roles/resource-effects.d.ts +16 -0
- package/dist/hub/roles/resource-effects.js +62 -0
- package/dist/hub/roles/resource-effects.js.map +1 -0
- package/dist/hub/roles/writer.d.ts +6 -1
- package/dist/hub/roles/writer.js +10 -2
- package/dist/hub/roles/writer.js.map +1 -1
- package/dist/hub/rooms/agents.js +5 -2
- package/dist/hub/rooms/agents.js.map +1 -1
- package/dist/hub/rooms.d.ts +1 -1
- package/dist/hub/rooms.js +12 -8
- package/dist/hub/rooms.js.map +1 -1
- package/dist/hub/sessions.js +20 -2
- package/dist/hub/sessions.js.map +1 -1
- package/dist/hub/sharing.js +2 -2
- package/dist/hub/sharing.js.map +1 -1
- package/dist/hub/types.d.ts +15 -3
- package/dist/human-delivery-receipts.js +8 -0
- package/dist/human-delivery-receipts.js.map +1 -1
- package/dist/instructions.js +3 -0
- package/dist/instructions.js.map +1 -1
- package/dist/locale.js +53 -0
- package/dist/locale.js.map +1 -1
- package/dist/native-model-catalog.d.ts +15 -0
- package/dist/native-model-catalog.js +43 -3
- package/dist/native-model-catalog.js.map +1 -1
- package/dist/runtime-build-info.js +1 -0
- package/dist/runtime-build-info.js.map +1 -1
- package/dist/runtime-cli.js +31 -5
- package/dist/runtime-cli.js.map +1 -1
- package/dist/runtime-client-store.d.ts +5 -0
- package/dist/runtime-client-store.js +28 -0
- package/dist/runtime-client-store.js.map +1 -1
- package/dist/runtime-client.d.ts +4 -0
- package/dist/runtime-client.js +33 -10
- package/dist/runtime-client.js.map +1 -1
- package/dist/runtime-coordinator.d.ts +4 -2
- package/dist/runtime-coordinator.js +28 -6
- package/dist/runtime-coordinator.js.map +1 -1
- package/dist/runtime-install.d.ts +3 -0
- package/dist/runtime-install.js +7 -1
- package/dist/runtime-install.js.map +1 -1
- package/dist/runtime-personal-answer.d.ts +26 -0
- package/dist/runtime-personal-answer.js +116 -0
- package/dist/runtime-personal-answer.js.map +1 -0
- package/dist/runtime-personal-preflight.d.ts +5 -0
- package/dist/runtime-personal-preflight.js +57 -0
- package/dist/runtime-personal-preflight.js.map +1 -0
- package/dist/runtime-personal-profile.d.ts +36 -0
- package/dist/runtime-personal-profile.js +70 -0
- package/dist/runtime-personal-profile.js.map +1 -0
- package/dist/runtime-personal-protocol.d.ts +7 -0
- package/dist/runtime-personal-protocol.js +11 -0
- package/dist/runtime-personal-protocol.js.map +1 -0
- package/dist/runtime-personal-stage.d.ts +36 -0
- package/dist/runtime-personal-stage.js +163 -0
- package/dist/runtime-personal-stage.js.map +1 -0
- package/dist/runtime-protocol.d.ts +2 -0
- package/dist/settings-api.js +5 -0
- package/dist/settings-api.js.map +1 -1
- package/dist/tool-progress.d.ts +9 -0
- package/dist/tool-progress.js +141 -32
- package/dist/tool-progress.js.map +1 -1
- package/dist/turn-reply-guard.d.ts +2 -2
- package/dist/turn-reply-guard.js +3 -3
- package/dist/turn-reply-guard.js.map +1 -1
- package/dist/ui/chat-store.js +39 -2
- package/dist/ui/fleet-office-skin.js +1 -1
- package/dist/ui/hub-client.js +14 -0
- package/dist/ui/hub-quick-pairing.js +7 -2
- package/dist/ui/hub-roles-strings.js +15 -0
- package/dist/ui/hub-roles.js +48 -0
- package/dist/ui/hub-switcher.js +2 -2
- package/dist/ui/hub-this-hub.js +2 -2
- package/dist/ui/model-picker.js +4 -1
- package/dist/ui/panel-hub.js +15 -9
- package/dist/ui/panel-settings.js +4 -4
- package/dist/ui/settings-catalog.js +22 -0
- package/dist/ui/settings-connector-strings.js +23 -0
- package/dist/ui/settings-connector.js +39 -0
- package/dist/ui/settings-hub-setup.js +2 -1
- package/dist/ui/settings-strings.js +2 -0
- package/dist/ui/shared/app-shell.js +24 -10
- package/dist/ui/shared/app-stream.js +3 -1
- package/dist/ui/shared/app-themes.js +2 -2
- package/dist/ui/shared/app.css +223 -145
- package/dist/ui/shared/chat-thread.js +3 -3
- package/dist/ui/shared/chat-work-bar.css +9 -1
- package/dist/ui/shared/connector-prompt.d.ts +2 -0
- package/dist/ui/shared/connector-prompt.js +10 -0
- package/dist/ui/shared/hub-chat.css +1 -1
- package/dist/ui/shared/hub-owner.css +1 -1
- package/dist/ui/shared/hub-roles.css +27 -0
- package/dist/ui/shared/hub.css +16 -3
- package/dist/ui/shared/image-lightbox.js +35 -10
- package/dist/ui/shared/image-zoom.js +61 -9
- package/dist/ui/shared/instance-nav.js +35 -6
- package/dist/ui/shared/settings-connector.css +7 -0
- package/dist/ui/shared/theme.js +52 -0
- package/dist/ui/shared/tokens.css +27 -10
- package/dist/ui/shared/usage-dialog.js +67 -12
- package/dist/ui/shared/view-strings.js +14 -0
- package/dist/web-api.d.ts +4 -0
- package/dist/web-api.js +39 -23
- package/dist/web-api.js.map +1 -1
- package/dist/web-icons.js +3 -3
- package/dist/web-icons.js.map +1 -1
- package/dist/web-theme.js +2 -2
- package/dist/windows-cli-worker.d.ts +7 -0
- package/dist/windows-cli-worker.js +80 -14
- package/dist/windows-cli-worker.js.map +1 -1
- package/dist/windows-cli.d.ts +9 -1
- package/dist/windows-cli.js +43 -13
- package/dist/windows-cli.js.map +1 -1
- package/package.json +1 -1
package/dist/daemon.js
CHANGED
|
@@ -17,6 +17,7 @@ import { join, dirname, basename, resolve } from "node:path";
|
|
|
17
17
|
import { checkoutTarget, readCheckouts, releaseCandidate, reposRoot, verifyWorktree, writeCheckouts } from "./repo-worktree-guard.js";
|
|
18
18
|
import { mkdirSync, writeFileSync, readFileSync, readdirSync, existsSync, unlinkSync, rmSync, appendFileSync, statSync, renameSync } from "node:fs";
|
|
19
19
|
import { COMPACT_WATCH_TIMEOUT_MS, launchIdentity } from "./compact-watch.js";
|
|
20
|
+
import { TurnWatch } from "./dispatcher-liveness.js";
|
|
20
21
|
import { KIRO_COMPACT_PANE_LINES, KiroCompactPaneFollower } from "./kiro-compact-pane.js";
|
|
21
22
|
import { clearKiroSessionProof, proveKiroSessionId, recordKiroSessionProof } from "./kiro-session-proof.js";
|
|
22
23
|
import { fileURLToPath } from "node:url";
|
|
@@ -159,6 +160,10 @@ export const DEFAULT_STATE_IDLE_DEBOUNCE_MS = 2_000;
|
|
|
159
160
|
export const DEFAULT_STATE_SAFETY_SWEEP_MS = 60_000;
|
|
160
161
|
/** Coalesce one cosmetic-redraw burst before comparing the visible pane. */
|
|
161
162
|
export const PERIODIC_REDRAW_PROBE_MS = 25;
|
|
163
|
+
/** M-3239: a turn's progress reaches the fleet at most this often while it runs. */
|
|
164
|
+
const TURN_ACTIVITY_REPORT_MS = 30_000;
|
|
165
|
+
/** M-3239: after the idle edge, the transcript's last lines (the final answer) are read within this. */
|
|
166
|
+
const TURN_END_SETTLE_MS = 5_000;
|
|
162
167
|
/** Board 907c7899: how often a kiro /compact's pane is read (TUI V2's "too short" shows for about ten seconds). */
|
|
163
168
|
const KIRO_COMPACT_PANE_POLL_MS = 1_000;
|
|
164
169
|
/** Do not turn a streaming Codex turn into one capture-pane per burst. */
|
|
@@ -687,6 +692,8 @@ const INPUT_RESIDUE_POLL_MS = 100;
|
|
|
687
692
|
const RECENT_PASTES_KEPT = 8;
|
|
688
693
|
/** Build a status holder from channel metadata, keeping chat and thread apart. */
|
|
689
694
|
export function channelStatus(meta) {
|
|
695
|
+
if (meta.source === "app")
|
|
696
|
+
return undefined; // no platform post exists to react to
|
|
690
697
|
const chatId = meta.chat_id;
|
|
691
698
|
const messageId = meta.message_id;
|
|
692
699
|
// A web chat message has no platform chat when the fleet has no channel, and still gets its reports:
|
|
@@ -6687,7 +6694,9 @@ export class Daemon extends EventEmitter {
|
|
|
6687
6694
|
this.logStateEdge(previous, snapshot);
|
|
6688
6695
|
this.publishWorkingState("execution");
|
|
6689
6696
|
this.emit("instance_state", { name: this.name, ...snapshot });
|
|
6690
|
-
this.broadcastFleetMessage({ type: "instance_state", instanceName: this.name, ...snapshot
|
|
6697
|
+
this.broadcastFleetMessage({ type: "instance_state", instanceName: this.name, ...snapshot,
|
|
6698
|
+
turnEvidence: this.turnEvidence(), turnActivityAt: this.turnWatch.activityAt });
|
|
6699
|
+
this.noteTurnEdge(snapshot.state);
|
|
6691
6700
|
if (snapshot.state === "stuck" && pane && this.instanceStateReadyPattern) {
|
|
6692
6701
|
this.handleStuckTransition(pane, snapshot, this.instanceStateReadyPattern);
|
|
6693
6702
|
}
|
|
@@ -7128,6 +7137,48 @@ export class Daemon extends EventEmitter {
|
|
|
7128
7137
|
* This launch's transcript monitor. #1510: its turn boundaries feed the reply guard's ledger, which starts empty
|
|
7129
7138
|
* with it — a new monitor re-baselines at the transcript's end, so nothing the old one read can be attributed.
|
|
7130
7139
|
*/
|
|
7140
|
+
/** M-3239: this launch's turn as its transcript tells it (dispatcher-liveness.ts). */
|
|
7141
|
+
turnWatch = new TurnWatch();
|
|
7142
|
+
turnActivitySentAt = 0;
|
|
7143
|
+
turnEndTimer = null;
|
|
7144
|
+
/** M-3239: Claude's and Codex's transcripts tell each tool call and answer; their pane's spinner alone is not a turn. */
|
|
7145
|
+
turnEvidence() {
|
|
7146
|
+
const bin = this.backend?.binaryName;
|
|
7147
|
+
return (bin === "claude" || bin === "codex") && this.transcriptMonitor?.following() === true;
|
|
7148
|
+
}
|
|
7149
|
+
/** M-3239: progress for the board's quiet clock, at most every 30 s while a turn runs (the idle edge carries the last). */
|
|
7150
|
+
reportTurnActivity() {
|
|
7151
|
+
const now = Date.now();
|
|
7152
|
+
if (now - this.turnActivitySentAt < TURN_ACTIVITY_REPORT_MS)
|
|
7153
|
+
return;
|
|
7154
|
+
this.turnActivitySentAt = now;
|
|
7155
|
+
this.broadcastFleetMessage({ type: "turn_activity", instanceName: this.name, at: now });
|
|
7156
|
+
}
|
|
7157
|
+
/**
|
|
7158
|
+
* M-3239: on the pane's idle edge, after a moment for the transcript's last lines: the turn's final text, when it
|
|
7159
|
+
* messaged no one — the fleet tells the dispatcher of a claimed card if that text asks a question.
|
|
7160
|
+
*/
|
|
7161
|
+
noteTurnEdge(state) {
|
|
7162
|
+
if (state !== "idle") {
|
|
7163
|
+
if (this.turnEndTimer) {
|
|
7164
|
+
clearTimeout(this.turnEndTimer);
|
|
7165
|
+
this.turnEndTimer = null;
|
|
7166
|
+
}
|
|
7167
|
+
if (state === "working")
|
|
7168
|
+
this.turnWatch.begin(Date.now());
|
|
7169
|
+
return;
|
|
7170
|
+
}
|
|
7171
|
+
if (this.turnEndTimer)
|
|
7172
|
+
return;
|
|
7173
|
+
this.turnEndTimer = setTimeout(() => {
|
|
7174
|
+
this.turnEndTimer = null; // a working edge before this cancels it: the turn went on
|
|
7175
|
+
const turn = this.turnWatch.end();
|
|
7176
|
+
if (!turn || turn.messaged || !turn.text.trim() || !this.turnEvidence())
|
|
7177
|
+
return;
|
|
7178
|
+
this.broadcastFleetMessage({ type: "turn_ended", instanceName: this.name, startedAt: turn.startedAt, text: turn.text.slice(-4000) });
|
|
7179
|
+
}, TURN_END_SETTLE_MS);
|
|
7180
|
+
this.turnEndTimer.unref?.();
|
|
7181
|
+
}
|
|
7131
7182
|
buildTranscriptMonitor(source) {
|
|
7132
7183
|
this.followLog.reset();
|
|
7133
7184
|
const modelLaunch = this.backend?.modelObservationLaunch?.();
|
|
@@ -7210,6 +7261,20 @@ export class Daemon extends EventEmitter {
|
|
|
7210
7261
|
});
|
|
7211
7262
|
for (const event of ["tool_use", "tool_result", "assistant_text"])
|
|
7212
7263
|
monitor.on(event, touch);
|
|
7264
|
+
// M-3239: the turn as the transcript tells it — progress for the board's quiet clock, and the question a turn ends on.
|
|
7265
|
+
const mine = () => this.transcriptMonitor === monitor;
|
|
7266
|
+
monitor.on("tool_use", (name, input) => { if (mine()) {
|
|
7267
|
+
this.turnWatch.tool(name, input, Date.now());
|
|
7268
|
+
this.reportTurnActivity();
|
|
7269
|
+
} });
|
|
7270
|
+
monitor.on("tool_result", () => { if (mine()) {
|
|
7271
|
+
this.turnWatch.result(Date.now());
|
|
7272
|
+
this.reportTurnActivity();
|
|
7273
|
+
} });
|
|
7274
|
+
monitor.on("assistant_text", (text) => { if (mine()) {
|
|
7275
|
+
this.turnWatch.text(text, Date.now());
|
|
7276
|
+
this.reportTurnActivity();
|
|
7277
|
+
} });
|
|
7213
7278
|
return monitor;
|
|
7214
7279
|
}
|
|
7215
7280
|
/**
|