@songsid/agend 2.4.0-beta.12 → 2.4.0-beta.14
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-endpoint.js +28 -6
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/auth-api.js +5 -0
- package/dist/auth-api.js.map +1 -1
- package/dist/backend/claude-code.d.ts +9 -0
- package/dist/backend/claude-code.js +60 -4
- package/dist/backend/claude-code.js.map +1 -1
- package/dist/backend/codex.js +11 -0
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/grok.js +11 -0
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/types.d.ts +4 -1
- package/dist/backend/types.js.map +1 -1
- package/dist/backend-availability.d.ts +1 -16
- package/dist/backend-availability.js +2 -91
- package/dist/backend-availability.js.map +1 -1
- package/dist/backend-version-static.d.ts +15 -0
- package/dist/backend-version-static.js +95 -0
- package/dist/backend-version-static.js.map +1 -0
- package/dist/build-provenance.json +1 -1
- package/dist/channel/adapters/telegram.js +3 -1
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/mcp-server.js +18 -1
- package/dist/channel/mcp-server.js.map +1 -1
- package/dist/channel/tool-router.d.ts +4 -0
- package/dist/channel/tool-router.js +43 -19
- package/dist/channel/tool-router.js.map +1 -1
- package/dist/classic-channel-manager.d.ts +3 -0
- package/dist/classic-channel-manager.js +18 -0
- package/dist/classic-channel-manager.js.map +1 -1
- package/dist/classic-cli-guard.d.ts +66 -0
- package/dist/classic-cli-guard.js +209 -0
- package/dist/classic-cli-guard.js.map +1 -0
- package/dist/cli-audited.js +7 -5
- package/dist/cli-audited.js.map +1 -1
- package/dist/config-validator.js +3 -0
- package/dist/config-validator.js.map +1 -1
- package/dist/contact-auth-api.d.ts +16 -0
- package/dist/contact-auth-api.js +78 -0
- package/dist/contact-auth-api.js.map +1 -0
- package/dist/contact-auth-files.d.ts +6 -0
- package/dist/contact-auth-files.js +29 -0
- package/dist/contact-auth-files.js.map +1 -0
- package/dist/contact-auth-policy.d.ts +75 -0
- package/dist/contact-auth-policy.js +23 -0
- package/dist/contact-auth-policy.js.map +1 -0
- package/dist/contact-auth-service.d.ts +32 -0
- package/dist/contact-auth-service.js +99 -0
- package/dist/contact-auth-service.js.map +1 -0
- package/dist/contact-auth-store.d.ts +75 -0
- package/dist/contact-auth-store.js +295 -0
- package/dist/contact-auth-store.js.map +1 -0
- package/dist/contact-auth-types.d.ts +170 -0
- package/dist/contact-auth-types.js +7 -0
- package/dist/contact-auth-types.js.map +1 -0
- package/dist/daemon.d.ts +16 -1
- package/dist/daemon.js +127 -11
- package/dist/daemon.js.map +1 -1
- package/dist/delivery-outbox.d.ts +6 -0
- package/dist/delivery-outbox.js +19 -0
- package/dist/delivery-outbox.js.map +1 -1
- package/dist/dispatcher-liveness.js +2 -2
- package/dist/dispatcher-liveness.js.map +1 -1
- package/dist/fleet-manager.d.ts +45 -0
- package/dist/fleet-manager.js +450 -23
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +18 -0
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +12 -0
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +28 -0
- package/dist/general-knowledge/skills/hub/SKILL.md +6 -0
- package/dist/hub/audit/index.d.ts +3 -1
- package/dist/hub/audit/index.js +35 -3
- package/dist/hub/audit/index.js.map +1 -1
- package/dist/hub/catalog.d.ts +8 -0
- package/dist/hub/catalog.js +39 -4
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/compose/server.d.ts +2 -0
- package/dist/hub/compose/server.js +11 -1
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/directory/directory.js +5 -2
- package/dist/hub/directory/directory.js.map +1 -1
- package/dist/hub/directory/types.d.ts +5 -1
- package/dist/hub/directory/types.js.map +1 -1
- package/dist/hub/group-policy/resources.d.ts +1 -1
- package/dist/hub/http/compose.d.ts +2 -0
- package/dist/hub/http/compose.js +123 -6
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/deps.d.ts +2 -0
- package/dist/hub/http/schema.js +6 -1
- package/dist/hub/http/schema.js.map +1 -1
- package/dist/hub/invitations.js +15 -7
- package/dist/hub/invitations.js.map +1 -1
- package/dist/hub/roles/cutover-inventory.d.ts +3 -0
- package/dist/hub/roles/cutover-inventory.js +20 -4
- package/dist/hub/roles/cutover-inventory.js.map +1 -1
- package/dist/hub/roles/cutover-marker.d.ts +18 -2
- package/dist/hub/roles/cutover-marker.js +6 -2
- package/dist/hub/roles/cutover-marker.js.map +1 -1
- package/dist/hub/room-agent-discovery-model.d.ts +29 -0
- package/dist/hub/room-agent-discovery-model.js +33 -0
- package/dist/hub/room-agent-discovery-model.js.map +1 -0
- package/dist/hub/room-agent-discovery.d.ts +14 -0
- package/dist/hub/room-agent-discovery.js +65 -0
- package/dist/hub/room-agent-discovery.js.map +1 -0
- package/dist/hub/room-agent-requests.d.ts +71 -0
- package/dist/hub/room-agent-requests.js +377 -0
- package/dist/hub/room-agent-requests.js.map +1 -0
- package/dist/hub/rooms/directory.d.ts +13 -0
- package/dist/hub/rooms/directory.js +12 -3
- package/dist/hub/rooms/directory.js.map +1 -1
- package/dist/hub/rooms/schema.d.ts +5 -0
- package/dist/hub/rooms/schema.js +9 -0
- package/dist/hub/rooms/schema.js.map +1 -1
- package/dist/hub/rooms/service.d.ts +43 -19
- package/dist/hub/rooms/service.js +67 -11
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +1 -1
- package/dist/instance-lifecycle.d.ts +6 -1
- package/dist/instance-lifecycle.js +11 -4
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/locale.js +34 -4
- package/dist/locale.js.map +1 -1
- package/dist/needs-you-hub.d.ts +1 -0
- package/dist/needs-you-hub.js +6 -0
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +14 -2
- package/dist/needs-you.js +4 -0
- package/dist/needs-you.js.map +1 -1
- package/dist/office-share-page.js +1 -1
- package/dist/office-share-page.js.map +1 -1
- package/dist/outbound-handlers.d.ts +9 -0
- package/dist/outbound-handlers.js +48 -10
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/pause-marker.d.ts +1 -1
- package/dist/pause-marker.js +1 -1
- package/dist/pause-marker.js.map +1 -1
- package/dist/public-web-gateway.d.ts +20 -0
- package/dist/public-web-gateway.js +61 -4
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/runtime-cli-install.js +7 -7
- package/dist/runtime-cli-install.js.map +1 -1
- package/dist/topic-commands.d.ts +1 -1
- package/dist/topic-commands.js +4 -6
- package/dist/topic-commands.js.map +1 -1
- package/dist/ui/accounts-keepalive.js +2 -1
- package/dist/ui/accounts-view.js +2 -1
- package/dist/ui/agent-details-settings.js +7 -5
- package/dist/ui/contact-auth-client.js +48 -0
- package/dist/ui/contact-auth-strings.js +164 -0
- package/dist/ui/contact-authorizations.js +125 -0
- package/dist/ui/contact-needs.js +84 -0
- package/dist/ui/contact-permissions.js +193 -0
- package/dist/ui/contact-ticket-badge.js +54 -0
- package/dist/ui/fleet-canvas.js +3 -1
- package/dist/ui/fleet-office-skin.js +4 -3
- package/dist/ui/fleet-route.js +44 -6
- package/dist/ui/fleet-task-view.js +2 -1
- package/dist/ui/host-install.js +5 -2
- package/dist/ui/hub-ai-apps.js +2 -1
- package/dist/ui/hub-chat-strings.js +2 -1
- package/dist/ui/hub-client.js +30 -7
- package/dist/ui/hub-grant-picker.js +2 -1
- package/dist/ui/hub-group-strings.js +2 -1
- package/dist/ui/hub-invitations.js +5 -1
- package/dist/ui/hub-my-agents.js +2 -1
- package/dist/ui/hub-owner-strings.js +2 -1
- package/dist/ui/hub-personal-agent.js +2 -1
- package/dist/ui/hub-quota.js +2 -1
- package/dist/ui/hub-roles-strings.js +2 -1
- package/dist/ui/hub-room-new-strings.js +2 -1
- package/dist/ui/hub-room-new.js +10 -3
- package/dist/ui/hub-room-owner-requests-strings.js +114 -0
- package/dist/ui/hub-room-owner-requests.js +264 -0
- package/dist/ui/hub-room-pins.js +43 -0
- package/dist/ui/hub-room-settings.js +11 -2
- package/dist/ui/hub-room-source.js +2 -1
- package/dist/ui/hub-room-strings.js +3 -0
- package/dist/ui/hub-room-thread.js +47 -5
- package/dist/ui/hub-strings.js +2 -1
- package/dist/ui/hub-teams.js +2 -1
- package/dist/ui/model-picker.js +3 -2
- package/dist/ui/panel-chat.js +8 -2
- package/dist/ui/panel-details.js +2 -0
- package/dist/ui/panel-fleet.js +3 -2
- package/dist/ui/panel-hub.js +14 -4
- package/dist/ui/panel-needs.js +8 -3
- package/dist/ui/panel-runtimes.js +2 -1
- package/dist/ui/panel-settings.js +3 -0
- package/dist/ui/reply-file-preview.js +2 -1
- package/dist/ui/settings-access-overview.js +2 -1
- package/dist/ui/settings-connector.js +2 -1
- package/dist/ui/shared/agent-sheet.js +2 -1
- package/dist/ui/shared/app-i18n.js +2 -2
- package/dist/ui/shared/app-route.js +1 -1
- package/dist/ui/shared/app-shell.js +35 -9
- package/dist/ui/shared/app-stream.js +3 -1
- package/dist/ui/shared/app.css +42 -0
- package/dist/ui/shared/asset-url.d.ts +2 -0
- package/dist/ui/shared/asset-url.js +20 -0
- package/dist/ui/shared/chat-quote.js +26 -2
- package/dist/ui/shared/chat-table-select.js +175 -0
- package/dist/ui/shared/chat-thread.js +6 -2
- package/dist/ui/shared/hub-rooms-u2.css +22 -0
- package/dist/ui/shared/image-annotate.js +2 -1
- package/dist/ui/shared/text-undo.js +17 -3
- package/dist/ui/shared/ui-states.js +3 -2
- package/dist/ui/shared/view-history.js +2 -1
- package/dist/ui/subagent-row.js +3 -2
- package/dist/ui/usage-pool.js +2 -1
- package/dist/ui/workspace-panel.js +2 -1
- package/dist/wake-coordinator.js +3 -2
- package/dist/wake-coordinator.js.map +1 -1
- package/dist/web-api.d.ts +9 -0
- package/dist/web-api.js +56 -4
- package/dist/web-api.js.map +1 -1
- package/dist/web-chat-history.d.ts +5 -0
- package/dist/web-chat-history.js +26 -0
- package/dist/web-chat-history.js.map +1 -1
- package/dist/web-host-install.d.ts +1 -1
- package/dist/web-reply-files.d.ts +1 -0
- package/dist/web-reply-files.js +2 -0
- package/dist/web-reply-files.js.map +1 -1
- package/dist/web-shell-routes.d.ts +1 -1
- package/dist/web-shell-routes.js +2 -1
- package/dist/web-shell-routes.js.map +1 -1
- package/package.json +1 -1
|
@@ -993,6 +993,8 @@ export class InstanceLifecycle {
|
|
|
993
993
|
this.notifyIncident(name, "muse_relay_exhausted", t("inst.muse_relay_exhausted", name));
|
|
994
994
|
}, this.ctx.logger, `daemon.muse_relay_exhausted[${name}]`));
|
|
995
995
|
daemon.on("mcp_died", safeHandler(async (data) => {
|
|
996
|
+
if (daemon.staleAuthIssue?.())
|
|
997
|
+
return; // The instance-specific restart notice already covers this symptom.
|
|
996
998
|
const stormAtDetection = this.ctx.stormWindow?.isActive() === true;
|
|
997
999
|
const incident = this.mcpIncident(name);
|
|
998
1000
|
const generation = ++incident.gen;
|
|
@@ -1008,7 +1010,7 @@ export class InstanceLifecycle {
|
|
|
1008
1010
|
// ask the cached token-free probe. Only a CONFIRMED invalid swaps the
|
|
1009
1011
|
// message — valid or uncertain keeps the accurate MCP report below.
|
|
1010
1012
|
const verdict = data.authSuspected ? "invalid" : await this.verifyAuthError(name);
|
|
1011
|
-
if (incident.gen !== generation) {
|
|
1013
|
+
if (incident.gen !== generation || daemon.staleAuthIssue?.()) {
|
|
1012
1014
|
// The server recovered (or a newer death superseded this one) while the
|
|
1013
1015
|
// probe ran. Anything we would say now is stale — say nothing.
|
|
1014
1016
|
this.ctx.logger.info({ name, pid: data.pid }, "MCP death report superseded during the auth probe — nothing sent");
|
|
@@ -1208,6 +1210,8 @@ export class InstanceLifecycle {
|
|
|
1208
1210
|
this.ctx.retireRemoteCard?.(name, data.identity);
|
|
1209
1211
|
}, this.ctx.logger, `daemon.remote_card_gone[${name}]`));
|
|
1210
1212
|
daemon.on("pty_error", safeHandler(async (data) => {
|
|
1213
|
+
if (data.type === "stale_auth" && this.daemons.get(name) !== daemon)
|
|
1214
|
+
return;
|
|
1211
1215
|
this.ctx.eventLog?.insert(name, "pty_error", { type: data.type, action: data.action });
|
|
1212
1216
|
this.ctx.logger.warn({ name, errorType: data.type, action: data.action }, `PTY error: ${data.message}`);
|
|
1213
1217
|
if (daemon.usesNativePane?.()) {
|
|
@@ -1221,7 +1225,7 @@ export class InstanceLifecycle {
|
|
|
1221
1225
|
daemon.requestPauseWhenIdle({ reconfirmAuth: true, reason: "auth" });
|
|
1222
1226
|
}
|
|
1223
1227
|
else
|
|
1224
|
-
daemon.requestPauseWhenIdle({ reason: data.type === "quota" ? "quota" : "error" });
|
|
1228
|
+
daemon.requestPauseWhenIdle({ reason: data.type === "stale_auth" ? "stale_auth" : data.type === "quota" ? "quota" : "error" });
|
|
1225
1229
|
}
|
|
1226
1230
|
return;
|
|
1227
1231
|
}
|
|
@@ -1463,7 +1467,7 @@ export class InstanceLifecycle {
|
|
|
1463
1467
|
else {
|
|
1464
1468
|
// The marker must say auth (2b never auto-wakes a login failure); any
|
|
1465
1469
|
// other pause-action error is an error pause, not an operator one.
|
|
1466
|
-
const reason = data.type === "auth_error" ? "auth" : data.type === "quota" ? "quota" : "error";
|
|
1470
|
+
const reason = data.type === "stale_auth" ? "stale_auth" : data.type === "auth_error" ? "auth" : data.type === "quota" ? "quota" : "error";
|
|
1467
1471
|
void this.pause(name, reason)
|
|
1468
1472
|
.catch(err => this.ctx.logger.warn({ err, name }, "auth-error pause failed"))
|
|
1469
1473
|
.finally(() => { if (!this.isPaused(name))
|
|
@@ -1728,6 +1732,7 @@ export class InstanceLifecycle {
|
|
|
1728
1732
|
model: config.model ?? "default",
|
|
1729
1733
|
}, this.ctx.spawnGate, this.ctx.stormWindow, this.ctx.backendOutage);
|
|
1730
1734
|
launched = daemon;
|
|
1735
|
+
this.ctx.configureClassicRestriction?.(name, daemon);
|
|
1731
1736
|
if (native) {
|
|
1732
1737
|
daemon.setNativePaneLifecycle(native);
|
|
1733
1738
|
native.bindDaemon?.(daemon);
|
|
@@ -2353,7 +2358,7 @@ export class InstanceLifecycle {
|
|
|
2353
2358
|
return channels.length > 1 || adapterId !== first;
|
|
2354
2359
|
}
|
|
2355
2360
|
/** Handle create_instance tool call from a daemon. */
|
|
2356
|
-
async handleCreate(args, respond, adapterId, execution, toolSetCaller) {
|
|
2361
|
+
async handleCreate(args, respond, adapterId, execution, toolSetCaller, originCaller) {
|
|
2357
2362
|
const check = () => execution?.assert();
|
|
2358
2363
|
check();
|
|
2359
2364
|
if (args.runtime !== undefined && args.runtime !== "wsl" && args.runtime !== "windows") {
|
|
@@ -2704,6 +2709,8 @@ export class InstanceLifecycle {
|
|
|
2704
2709
|
execution.mutate(persist);
|
|
2705
2710
|
else
|
|
2706
2711
|
persist();
|
|
2712
|
+
if (originCaller)
|
|
2713
|
+
this.ctx.inheritContactOrigin?.(originCaller, newInstanceName);
|
|
2707
2714
|
if (execution)
|
|
2708
2715
|
await this.start(newInstanceName, instanceConfig, true, undefined, undefined, execution);
|
|
2709
2716
|
else
|