@songsid/agend 2.4.0-beta.7 → 2.4.0-beta.9
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/auth-api.js +4 -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/cli-runtime-switch.js +1 -26
- package/dist/backend/cli-runtime-switch.js.map +1 -1
- package/dist/build-provenance.json +1 -1
- package/dist/connect/mcp.d.ts +9 -0
- package/dist/connect/mcp.js +10 -0
- package/dist/connect/mcp.js.map +1 -0
- package/dist/connect/stdio.d.ts +1 -1
- package/dist/connect/stdio.js +22 -28
- package/dist/connect/stdio.js.map +1 -1
- package/dist/daemon.d.ts +13 -0
- package/dist/daemon.js +64 -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 +56 -1
- package/dist/fleet-manager.js +243 -32
- package/dist/fleet-manager.js.map +1 -1
- package/dist/general-knowledge/skills/hub/SKILL.md +83 -3
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +10 -2
- package/dist/hub/admin-dashboard.js +17 -1
- package/dist/hub/admin-dashboard.js.map +1 -1
- package/dist/hub/audit/index.d.ts +2 -0
- package/dist/hub/audit/index.js +8 -0
- package/dist/hub/audit/index.js.map +1 -1
- package/dist/hub/buttons.js +3 -1
- package/dist/hub/buttons.js.map +1 -1
- package/dist/hub/catalog.d.ts +7 -4
- package/dist/hub/catalog.js +19 -10
- package/dist/hub/catalog.js.map +1 -1
- package/dist/hub/client.d.ts +3 -0
- package/dist/hub/client.js +14 -2
- package/dist/hub/client.js.map +1 -1
- package/dist/hub/compose/member.js +28 -11
- package/dist/hub/compose/member.js.map +1 -1
- package/dist/hub/compose/server.d.ts +5 -0
- package/dist/hub/compose/server.js +91 -10
- package/dist/hub/compose/server.js.map +1 -1
- package/dist/hub/group-policy/admin-api.d.ts +1 -0
- package/dist/hub/group-policy/admin-api.js +1 -1
- package/dist/hub/group-policy/admin-api.js.map +1 -1
- package/dist/hub/group-policy/admin-dto.d.ts +2 -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/admin-inventory.d.ts +2 -0
- package/dist/hub/group-policy/admin-inventory.js +13 -4
- package/dist/hub/group-policy/admin-inventory.js.map +1 -1
- package/dist/hub/group-policy/authorization.d.ts +2 -0
- package/dist/hub/group-policy/authorization.js +7 -2
- package/dist/hub/group-policy/authorization.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/resources.d.ts +2 -0
- package/dist/hub/group-policy/resources.js +12 -1
- package/dist/hub/group-policy/resources.js.map +1 -1
- package/dist/hub/http/compose.js +164 -23
- package/dist/hub/http/compose.js.map +1 -1
- package/dist/hub/http/core.js +27 -0
- package/dist/hub/http/core.js.map +1 -1
- package/dist/hub/http/deps.d.ts +12 -0
- package/dist/hub/http/schema.js +6 -0
- package/dist/hub/http/schema.js.map +1 -1
- 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 +89 -0
- package/dist/hub/mcp/auth.js +374 -0
- package/dist/hub/mcp/auth.js.map +1 -0
- package/dist/hub/mcp/catalog.d.ts +44 -0
- package/dist/hub/mcp/catalog.js +31 -0
- package/dist/hub/mcp/catalog.js.map +1 -0
- package/dist/hub/mcp/door-schema.d.ts +7 -0
- package/dist/hub/mcp/door-schema.js +20 -0
- package/dist/hub/mcp/door-schema.js.map +1 -0
- package/dist/hub/mcp/http.d.ts +25 -0
- package/dist/hub/mcp/http.js +259 -0
- package/dist/hub/mcp/http.js.map +1 -0
- package/dist/hub/mcp/policy.d.ts +65 -0
- package/dist/hub/mcp/policy.js +153 -0
- package/dist/hub/mcp/policy.js.map +1 -0
- package/dist/hub/mcp/server.d.ts +3 -0
- package/dist/hub/mcp/server.js +32 -0
- package/dist/hub/mcp/server.js.map +1 -0
- package/dist/hub/mcp/tools.d.ts +31 -0
- package/dist/hub/mcp/tools.js +176 -0
- package/dist/hub/mcp/tools.js.map +1 -0
- package/dist/hub/member/room-ask.d.ts +4 -4
- package/dist/hub/member/room-ask.js +12 -0
- package/dist/hub/member/room-ask.js.map +1 -1
- package/dist/hub/member/room-mention-feedback.d.ts +44 -0
- package/dist/hub/member/room-mention-feedback.js +121 -0
- package/dist/hub/member/room-mention-feedback.js.map +1 -0
- package/dist/hub/member/room-notification.d.ts +9 -0
- package/dist/hub/member/room-notification.js +2 -0
- package/dist/hub/member/room-notification.js.map +1 -0
- package/dist/hub/member/room-post-answers.d.ts +1 -7
- package/dist/hub/member/room-post-answers.js.map +1 -1
- package/dist/hub/member/room-post.d.ts +3 -0
- package/dist/hub/member/room-post.js +9 -1
- package/dist/hub/member/room-post.js.map +1 -1
- package/dist/hub/pairing.d.ts +15 -1
- package/dist/hub/pairing.js +33 -2
- package/dist/hub/pairing.js.map +1 -1
- package/dist/hub/personal/owner-host.d.ts +140 -0
- package/dist/hub/personal/owner-host.js +287 -0
- package/dist/hub/personal/owner-host.js.map +1 -0
- package/dist/hub/personal/refusals.d.ts +11 -0
- package/dist/hub/personal/refusals.js +33 -0
- package/dist/hub/personal/refusals.js.map +1 -0
- package/dist/hub/personal/runtime-host.d.ts +26 -0
- package/dist/hub/personal/runtime-host.js +51 -0
- package/dist/hub/personal/runtime-host.js.map +1 -0
- package/dist/hub/personal/schema.d.ts +4 -0
- package/dist/hub/personal/schema.js +54 -0
- package/dist/hub/personal/schema.js.map +1 -0
- package/dist/hub/personal/turns.d.ts +39 -0
- package/dist/hub/personal/turns.js +221 -0
- package/dist/hub/personal/turns.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.d.ts +1 -1
- package/dist/hub/policy.js +2 -0
- package/dist/hub/policy.js.map +1 -1
- package/dist/hub/protocol.d.ts +43 -0
- package/dist/hub/protocol.js +16 -4
- package/dist/hub/protocol.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 +187 -0
- package/dist/hub/roles/admin-control.js.map +1 -0
- package/dist/hub/roles/admin-types.d.ts +72 -0
- package/dist/hub/roles/admin-types.js +2 -0
- package/dist/hub/roles/admin-types.js.map +1 -0
- package/dist/hub/roles/allowed-list-control.d.ts +34 -0
- package/dist/hub/roles/allowed-list-control.js +179 -0
- package/dist/hub/roles/allowed-list-control.js.map +1 -0
- package/dist/hub/roles/allowed-list.d.ts +8 -0
- package/dist/hub/roles/allowed-list.js +49 -0
- package/dist/hub/roles/allowed-list.js.map +1 -0
- package/dist/hub/roles/audit-details.d.ts +144 -0
- package/dist/hub/roles/audit-details.js +26 -0
- package/dist/hub/roles/audit-details.js.map +1 -0
- package/dist/hub/roles/authority.d.ts +12 -0
- package/dist/hub/roles/authority.js +39 -3
- package/dist/hub/roles/authority.js.map +1 -1
- package/dist/hub/roles/change.d.ts +3 -1
- package/dist/hub/roles/change.js +4 -3
- package/dist/hub/roles/change.js.map +1 -1
- package/dist/hub/roles/clock.d.ts +3 -0
- package/dist/hub/roles/clock.js +1 -1
- package/dist/hub/roles/clock.js.map +1 -1
- package/dist/hub/roles/cutover-inventory.d.ts +2 -0
- package/dist/hub/roles/cutover-inventory.js +8 -1
- package/dist/hub/roles/cutover-inventory.js.map +1 -1
- package/dist/hub/roles/cutover.d.ts +2 -2
- package/dist/hub/roles/cutover.js +3 -4
- package/dist/hub/roles/cutover.js.map +1 -1
- package/dist/hub/roles/delegation.d.ts +4 -1
- package/dist/hub/roles/delegation.js +3 -2
- package/dist/hub/roles/delegation.js.map +1 -1
- package/dist/hub/roles/expiry-effects.d.ts +8 -0
- package/dist/hub/roles/expiry-effects.js +50 -0
- package/dist/hub/roles/expiry-effects.js.map +1 -0
- package/dist/hub/roles/migrations.d.ts +7 -0
- package/dist/hub/roles/migrations.js +44 -0
- package/dist/hub/roles/migrations.js.map +1 -0
- package/dist/hub/roles/model.d.ts +2 -0
- package/dist/hub/roles/model.js +2 -1
- package/dist/hub/roles/model.js.map +1 -1
- package/dist/hub/roles/overview.d.ts +8 -0
- package/dist/hub/roles/overview.js +15 -0
- package/dist/hub/roles/overview.js.map +1 -0
- package/dist/hub/roles/resource-effects.d.ts +17 -0
- package/dist/hub/roles/resource-effects.js +62 -0
- package/dist/hub/roles/resource-effects.js.map +1 -0
- package/dist/hub/roles/review.d.ts +16 -0
- package/dist/hub/roles/review.js +42 -0
- package/dist/hub/roles/review.js.map +1 -0
- package/dist/hub/roles/writer.d.ts +14 -3
- package/dist/hub/roles/writer.js +64 -16
- package/dist/hub/roles/writer.js.map +1 -1
- package/dist/hub/room-mention-feedback-model.d.ts +12 -0
- package/dist/hub/room-mention-feedback-model.js +12 -0
- package/dist/hub/room-mention-feedback-model.js.map +1 -0
- package/dist/hub/rooms/agents.d.ts +3 -1
- package/dist/hub/rooms/agents.js +96 -11
- package/dist/hub/rooms/agents.js.map +1 -1
- package/dist/hub/rooms/direct-view.d.ts +6 -2
- package/dist/hub/rooms/direct-view.js +3 -3
- package/dist/hub/rooms/direct-view.js.map +1 -1
- package/dist/hub/rooms/service.d.ts +27 -3
- package/dist/hub/rooms/service.js +74 -13
- package/dist/hub/rooms/service.js.map +1 -1
- package/dist/hub/rooms/types.d.ts +3 -1
- package/dist/hub/rooms.d.ts +12 -2
- package/dist/hub/rooms.js +87 -17
- package/dist/hub/rooms.js.map +1 -1
- package/dist/hub/runtime.js +1 -1
- package/dist/hub/runtime.js.map +1 -1
- package/dist/hub/server.d.ts +2 -0
- package/dist/hub/server.js +19 -3
- package/dist/hub/server.js.map +1 -1
- package/dist/hub/session-directory-transition.d.ts +2 -1
- package/dist/hub/session-directory-transition.js +10 -3
- package/dist/hub/session-directory-transition.js.map +1 -1
- package/dist/hub/sessions.d.ts +1 -1
- package/dist/hub/sessions.js +26 -4
- package/dist/hub/sessions.js.map +1 -1
- package/dist/hub/settings-commit.d.ts +32 -1
- package/dist/hub/settings-commit.js +11 -4
- package/dist/hub/settings-commit.js.map +1 -1
- package/dist/hub/settings-directory-ca.js +1 -1
- package/dist/hub/settings-directory-ca.js.map +1 -1
- package/dist/hub/settings-directory-control.js +7 -7
- package/dist/hub/settings-directory-control.js.map +1 -1
- package/dist/hub/settings-directory-http.d.ts +2 -0
- package/dist/hub/settings-directory-http.js +21 -6
- package/dist/hub/settings-directory-http.js.map +1 -1
- package/dist/hub/settings-directory-proof.d.ts +5 -1
- package/dist/hub/settings-directory-proof.js +27 -9
- package/dist/hub/settings-directory-proof.js.map +1 -1
- package/dist/hub/settings-directory-recovery.js +2 -1
- package/dist/hub/settings-directory-recovery.js.map +1 -1
- package/dist/hub/settings-directory-save.d.ts +2 -0
- package/dist/hub/settings-directory-save.js +9 -6
- package/dist/hub/settings-directory-save.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 +26 -3
- package/dist/locale.js +13 -10
- package/dist/locale.js.map +1 -1
- package/dist/login-controller.d.ts +19 -2
- package/dist/login-controller.js +26 -8
- package/dist/login-controller.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 +33 -6
- package/dist/runtime-coordinator.js.map +1 -1
- package/dist/runtime-install.d.ts +6 -1
- package/dist/runtime-install.js +12 -4
- package/dist/runtime-install.js.map +1 -1
- package/dist/runtime-personal-answer-only-probe.d.ts +3 -0
- package/dist/runtime-personal-answer-only-probe.js +134 -0
- package/dist/runtime-personal-answer-only-probe.js.map +1 -0
- package/dist/runtime-personal-answer-only.d.ts +16 -0
- package/dist/runtime-personal-answer-only.js +54 -0
- package/dist/runtime-personal-answer-only.js.map +1 -0
- package/dist/runtime-personal-answer.d.ts +7 -2
- package/dist/runtime-personal-answer.js +12 -3
- package/dist/runtime-personal-answer.js.map +1 -1
- package/dist/runtime-personal-preflight.d.ts +8 -0
- package/dist/runtime-personal-preflight.js +103 -0
- package/dist/runtime-personal-preflight.js.map +1 -0
- package/dist/runtime-personal-profile.d.ts +7 -1
- package/dist/runtime-personal-profile.js +24 -4
- package/dist/runtime-personal-profile.js.map +1 -1
- package/dist/runtime-personal-protocol.d.ts +10 -0
- package/dist/runtime-personal-protocol.js +15 -0
- package/dist/runtime-personal-protocol.js.map +1 -0
- package/dist/runtime-personal-stage.d.ts +37 -0
- package/dist/runtime-personal-stage.js +167 -0
- package/dist/runtime-personal-stage.js.map +1 -0
- package/dist/runtime-protocol.d.ts +2 -0
- package/dist/setup-form.js +10 -0
- package/dist/setup-form.js.map +1 -1
- package/dist/tunnel/lease.d.ts +14 -0
- package/dist/tunnel/lease.js +23 -0
- package/dist/tunnel/lease.js.map +1 -1
- package/dist/ui/backend-signin.js +86 -20
- package/dist/ui/chat-activity-groups.js +41 -8
- package/dist/ui/chat-activity.js +3 -1
- package/dist/ui/chat-store.js +39 -2
- package/dist/ui/chat-tour.js +1 -1
- package/dist/ui/fleet-canvas.js +10 -5
- package/dist/ui/fleet-office.js +73 -7
- package/dist/ui/hub-ai-apps-strings.js +6 -0
- package/dist/ui/hub-ai-apps.js +83 -0
- package/dist/ui/hub-client.js +32 -1
- package/dist/ui/hub-directory-editor-strings.js +2 -2
- package/dist/ui/hub-directory-editor.js +1 -0
- package/dist/ui/hub-group-policy.js +4 -3
- package/dist/ui/hub-group-strings.js +2 -2
- package/dist/ui/hub-personal-agent-strings.js +160 -0
- package/dist/ui/hub-personal-agent.js +94 -0
- package/dist/ui/hub-role-audit.js +39 -0
- package/dist/ui/hub-role-forms.js +99 -0
- package/dist/ui/hub-role-notices.js +11 -0
- package/dist/ui/hub-role-view.js +86 -0
- package/dist/ui/hub-roles-strings.js +439 -0
- package/dist/ui/hub-roles.js +83 -0
- package/dist/ui/hub-room-composer.js +3 -2
- package/dist/ui/hub-room-list.js +4 -3
- package/dist/ui/hub-room-members.js +4 -2
- package/dist/ui/hub-room-settings.js +6 -0
- package/dist/ui/hub-room-source-strings.js +17 -0
- package/dist/ui/hub-room-source.js +34 -0
- package/dist/ui/hub-room-thread.js +10 -4
- 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-chat.js +4 -4
- package/dist/ui/panel-fleet.js +3 -3
- package/dist/ui/panel-hub.js +51 -31
- package/dist/ui/panel-settings.js +2 -3
- package/dist/ui/runtime-commands.d.ts +2 -2
- package/dist/ui/runtime-commands.js +7 -4
- package/dist/ui/settings-build-version.js +2 -2
- package/dist/ui/settings-catalog.js +22 -0
- package/dist/ui/settings-hub-setup.js +2 -1
- package/dist/ui/settings-strings.js +2 -0
- package/dist/ui/shared/access-overview.css +1 -1
- package/dist/ui/shared/accounts-keepalive.css +1 -1
- package/dist/ui/shared/accounts.css +1 -1
- package/dist/ui/shared/agent-sheet.js +2 -2
- package/dist/ui/shared/app-prefs.js +5 -2
- package/dist/ui/shared/app-shell.js +20 -8
- package/dist/ui/shared/app-stream.js +3 -1
- package/dist/ui/shared/app-swipe.js +3 -1
- package/dist/ui/shared/app.css +142 -48
- package/dist/ui/shared/app.js +1 -1
- package/dist/ui/shared/chat-thread.js +5 -1
- package/dist/ui/shared/chat-work-bar.css +5 -5
- package/dist/ui/shared/connector-prompt.d.ts +1 -0
- package/dist/ui/shared/connector-prompt.js +10 -0
- package/dist/ui/shared/hub-ai-apps.css +12 -0
- package/dist/ui/shared/hub-chat.css +9 -2
- package/dist/ui/shared/hub-groups.css +1 -1
- package/dist/ui/shared/hub-owner.css +5 -5
- package/dist/ui/shared/hub-roles.css +99 -0
- package/dist/ui/shared/hub-rooms-u2.css +14 -0
- package/dist/ui/shared/hub.css +13 -5
- package/dist/ui/shared/instance-nav.js +24 -9
- package/dist/ui/shared/loading.css +1 -1
- package/dist/ui/shared/model-picker.css +2 -2
- package/dist/ui/shared/preview-panel-actions.js +1 -1
- package/dist/ui/shared/preview-panel.js +2 -2
- package/dist/ui/shared/signin.js +27 -12
- package/dist/ui/shared/task-board.css +2 -2
- package/dist/ui/shared/tokens.css +1 -1
- package/dist/ui/shared/ui-toast.js +4 -4
- package/dist/ui/shared/usage-dialog.js +110 -16
- package/dist/ui/shared/view-strings.js +8 -0
- package/dist/ui/signin.html +4 -2
- package/dist/ui/structured-signin.js +64 -12
- package/dist/ui/web-terminal/terminal.css +1 -1
- 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-backend-login.d.ts +5 -1
- package/dist/web-backend-login.js +8 -2
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-prefs.js +2 -0
- package/dist/web-prefs.js.map +1 -1
- package/dist/windows-cli-worker.d.ts +10 -0
- package/dist/windows-cli-worker.js +109 -14
- package/dist/windows-cli-worker.js.map +1 -1
- package/dist/windows-cli.d.ts +10 -1
- package/dist/windows-cli.js +47 -13
- package/dist/windows-cli.js.map +1 -1
- package/package.json +1 -1
- package/templates/runtime-install/install.ps1 +24 -4
package/dist/connect/stdio.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Stdio transport only; listing never asks the Fleet, a Hub, a CLI or the network. */
|
|
2
|
-
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
2
|
+
import type { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
3
3
|
import { type OwnerAppOperation } from "./protocol.js";
|
|
4
4
|
export declare function ownerAppMcp(call: (operation: OwnerAppOperation, input: unknown) => Promise<unknown>): Server;
|
|
5
5
|
export declare function serveOwnerApp(call: (operation: OwnerAppOperation, input: unknown) => Promise<unknown>): Promise<Server>;
|
package/dist/connect/stdio.js
CHANGED
|
@@ -1,35 +1,29 @@
|
|
|
1
|
-
/** Stdio transport only; listing never asks the Fleet, a Hub, a CLI or the network. */
|
|
2
|
-
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
3
1
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
4
|
-
import {
|
|
2
|
+
import { staticPersonMcp } from "./mcp.js";
|
|
5
3
|
import { OWNER_APP_TOOLS, ownerAppSchemas } from "./protocol.js";
|
|
6
4
|
export function ownerAppMcp(call) {
|
|
7
|
-
|
|
8
|
-
instructions: "Talk to your own Fleet agents and read their answers and task board. This local connector does not provide administrative tools or approval authority. Messages are app-originated, not proof of a human approval."
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
|
|
5
|
+
return staticPersonMcp({ name: "agend-connect", tools: OWNER_APP_TOOLS,
|
|
6
|
+
instructions: "Talk to your own Fleet agents and read their answers and task board. This local connector does not provide administrative tools or approval authority. Messages are app-originated, not proof of a human approval.", call: async (name, args) => {
|
|
7
|
+
let operationId;
|
|
8
|
+
try {
|
|
9
|
+
if (!Object.hasOwn(ownerAppSchemas, name))
|
|
10
|
+
throw new Error("This connector does not offer that operation.");
|
|
11
|
+
const input = ownerAppSchemas[name].parse(args);
|
|
12
|
+
if (name === "send_message") {
|
|
13
|
+
const send = input;
|
|
14
|
+
operationId = send.operation_id;
|
|
15
|
+
}
|
|
16
|
+
const result = await call(name, input);
|
|
17
|
+
return { content: [{ type: "text", text: JSON.stringify(result) }] };
|
|
20
18
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...(operationId ? { operation_id: operationId } : {}) }) }] };
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
return server;
|
|
19
|
+
catch (error) {
|
|
20
|
+
const message = error instanceof Error ? error.message : "The Fleet call failed.";
|
|
21
|
+
return { isError: true, content: [{ type: "text", text: JSON.stringify({ ok: false,
|
|
22
|
+
code: name === "send_message" ? "uncertain" : "unavailable", message,
|
|
23
|
+
...(name === "send_message" ? { next: "Read answers before sending again; do not automatically repeat a possibly handed-off message." } : {}),
|
|
24
|
+
...(operationId ? { operation_id: operationId } : {}) }) }] };
|
|
25
|
+
}
|
|
26
|
+
} });
|
|
33
27
|
}
|
|
34
28
|
export async function serveOwnerApp(call) {
|
|
35
29
|
const server = ownerAppMcp(call);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stdio.js","sourceRoot":"","sources":["../../src/connect/stdio.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stdio.js","sourceRoot":"","sources":["../../src/connect/stdio.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,eAAe,EAA0B,MAAM,eAAe,CAAC;AAEzF,MAAM,UAAU,WAAW,CAAC,IAAwE;IAClG,OAAO,eAAe,CAAC,EAAC,IAAI,EAAC,eAAe,EAAC,KAAK,EAAC,eAAe;QAChE,YAAY,EAAE,oNAAoN,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,EAAC,IAAI,EAAC,EAAE;YAC1P,IAAI,WAA+B,CAAC;YACpC,IAAI,CAAC;gBACH,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE,IAAI,CAAC;oBAAE,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;gBAC5G,MAAM,KAAK,GAAG,eAAe,CAAC,IAAyB,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBACrE,IAAI,IAAI,KAAK,cAAc,EAAE,CAAC;oBAC5B,MAAM,IAAI,GAAG,KAAkC,CAAC;oBAChD,WAAW,GAAG,IAAI,CAAC,YAAY,CAAC;gBAClC,CAAC;gBACD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAyB,EAAE,KAAK,CAAC,CAAC;gBAC5D,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;YACvE,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,wBAAwB,CAAC;gBAClF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,KAAK;gCAChF,IAAI,EAAE,IAAI,KAAK,cAAc,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,aAAa,EAAE,OAAO;gCACpE,GAAG,CAAC,IAAI,KAAK,cAAc,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,+FAA+F,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gCAC7I,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;YAClE,CAAC;QACH,CAAC,EAAC,CAAC,CAAC;AACN,CAAC;AACD,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,IAAwE;IAC1G,MAAM,MAAM,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;IACjC,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,oBAAoB,EAAE,CAAC,CAAC;IACjD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/dist/daemon.d.ts
CHANGED
|
@@ -1702,6 +1702,19 @@ export declare class Daemon extends EventEmitter {
|
|
|
1702
1702
|
* This launch's transcript monitor. #1510: its turn boundaries feed the reply guard's ledger, which starts empty
|
|
1703
1703
|
* with it — a new monitor re-baselines at the transcript's end, so nothing the old one read can be attributed.
|
|
1704
1704
|
*/
|
|
1705
|
+
/** M-3239: this launch's turn as its transcript tells it (dispatcher-liveness.ts). */
|
|
1706
|
+
private readonly turnWatch;
|
|
1707
|
+
private turnActivitySentAt;
|
|
1708
|
+
private turnEndTimer;
|
|
1709
|
+
/** M-3239: Claude's and Codex's transcripts tell each tool call and answer; their pane's spinner alone is not a turn. */
|
|
1710
|
+
private turnEvidence;
|
|
1711
|
+
/** M-3239: progress for the board's quiet clock, at most every 30 s while a turn runs (the idle edge carries the last). */
|
|
1712
|
+
private reportTurnActivity;
|
|
1713
|
+
/**
|
|
1714
|
+
* M-3239: on the pane's idle edge, after a moment for the transcript's last lines: the turn's final text, when it
|
|
1715
|
+
* messaged no one — the fleet tells the dispatcher of a claimed card if that text asks a question.
|
|
1716
|
+
*/
|
|
1717
|
+
private noteTurnEdge;
|
|
1705
1718
|
private buildTranscriptMonitor;
|
|
1706
1719
|
/**
|
|
1707
1720
|
* #1641: what the CLI's own transcript (codex's rollout) says about its turn. `open`: a turn started and has not ended,
|
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. */
|
|
@@ -6689,7 +6694,9 @@ export class Daemon extends EventEmitter {
|
|
|
6689
6694
|
this.logStateEdge(previous, snapshot);
|
|
6690
6695
|
this.publishWorkingState("execution");
|
|
6691
6696
|
this.emit("instance_state", { name: this.name, ...snapshot });
|
|
6692
|
-
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);
|
|
6693
6700
|
if (snapshot.state === "stuck" && pane && this.instanceStateReadyPattern) {
|
|
6694
6701
|
this.handleStuckTransition(pane, snapshot, this.instanceStateReadyPattern);
|
|
6695
6702
|
}
|
|
@@ -7130,6 +7137,48 @@ export class Daemon extends EventEmitter {
|
|
|
7130
7137
|
* This launch's transcript monitor. #1510: its turn boundaries feed the reply guard's ledger, which starts empty
|
|
7131
7138
|
* with it — a new monitor re-baselines at the transcript's end, so nothing the old one read can be attributed.
|
|
7132
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
|
+
}
|
|
7133
7182
|
buildTranscriptMonitor(source) {
|
|
7134
7183
|
this.followLog.reset();
|
|
7135
7184
|
const modelLaunch = this.backend?.modelObservationLaunch?.();
|
|
@@ -7212,6 +7261,20 @@ export class Daemon extends EventEmitter {
|
|
|
7212
7261
|
});
|
|
7213
7262
|
for (const event of ["tool_use", "tool_result", "assistant_text"])
|
|
7214
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
|
+
} });
|
|
7215
7278
|
return monitor;
|
|
7216
7279
|
}
|
|
7217
7280
|
/**
|