@songsid/agend 2.3.5-alpha.3 → 2.3.5-alpha.5
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/THIRD_PARTY_NOTICES.md +52 -0
- package/dist/accounts-view.d.ts +97 -0
- package/dist/accounts-view.js +116 -0
- package/dist/accounts-view.js.map +1 -0
- package/dist/agent-cli-instructions.md +1 -1
- package/dist/agent-credentials.d.ts +24 -0
- package/dist/agent-credentials.js +66 -0
- package/dist/agent-credentials.js.map +1 -0
- package/dist/agent-endpoint.d.ts +3 -1
- package/dist/agent-endpoint.js +13 -0
- package/dist/agent-endpoint.js.map +1 -1
- package/dist/agent-file-read.js +1 -1
- package/dist/agent-file-read.js.map +1 -1
- package/dist/agent-runtime-api.d.ts +4 -0
- package/dist/agent-runtime-api.js +59 -0
- package/dist/agent-runtime-api.js.map +1 -0
- package/dist/agent-runtime-change.d.ts +76 -0
- package/dist/agent-runtime-change.js +114 -0
- package/dist/agent-runtime-change.js.map +1 -0
- package/dist/agent-workspace.d.ts +93 -0
- package/dist/agent-workspace.js +353 -0
- package/dist/agent-workspace.js.map +1 -0
- package/dist/auth-api.d.ts +27 -0
- package/dist/auth-api.js +168 -3
- package/dist/auth-api.js.map +1 -1
- package/dist/authority/session-authorizations.d.ts +28 -4
- package/dist/authority/session-authorizations.js +63 -17
- package/dist/authority/session-authorizations.js.map +1 -1
- package/dist/backend/antigravity.js +3 -1
- package/dist/backend/antigravity.js.map +1 -1
- package/dist/backend/codex-footer-hints.d.ts +7 -0
- package/dist/backend/codex-footer-hints.js +41 -0
- package/dist/backend/codex-footer-hints.js.map +1 -0
- package/dist/backend/codex-metadata.d.ts +14 -0
- package/dist/backend/codex-metadata.js +45 -0
- package/dist/backend/codex-metadata.js.map +1 -1
- package/dist/backend/codex-quota-history.d.ts +7 -0
- package/dist/backend/codex-quota-history.js +57 -0
- package/dist/backend/codex-quota-history.js.map +1 -0
- package/dist/backend/codex-session-lookup.d.ts +6 -0
- package/dist/backend/codex-session-lookup.js +1 -1
- package/dist/backend/codex-session-lookup.js.map +1 -1
- package/dist/backend/codex-speed.d.ts +14 -0
- package/dist/backend/codex-speed.js +35 -0
- package/dist/backend/codex-speed.js.map +1 -0
- package/dist/backend/codex.d.ts +7 -0
- package/dist/backend/codex.js +85 -24
- package/dist/backend/codex.js.map +1 -1
- package/dist/backend/grok-weekly-reset.d.ts +24 -0
- package/dist/backend/grok-weekly-reset.js +95 -0
- package/dist/backend/grok-weekly-reset.js.map +1 -0
- package/dist/backend/grok.d.ts +30 -1
- package/dist/backend/grok.js +301 -54
- package/dist/backend/grok.js.map +1 -1
- package/dist/backend/kiro.d.ts +3 -0
- package/dist/backend/kiro.js +50 -2
- package/dist/backend/kiro.js.map +1 -1
- package/dist/backend/muse.js +5 -3
- package/dist/backend/muse.js.map +1 -1
- package/dist/backend/native-pane.d.ts +3 -1
- package/dist/backend/native-pane.js +2 -2
- package/dist/backend/native-pane.js.map +1 -1
- package/dist/backend/types.d.ts +13 -1
- package/dist/backend/types.js +3 -0
- package/dist/backend/types.js.map +1 -1
- package/dist/build-provenance-cli.d.ts +3 -0
- package/dist/build-provenance-cli.js +11 -0
- package/dist/build-provenance-cli.js.map +1 -0
- package/dist/build-provenance.d.ts +20 -0
- package/dist/build-provenance.js +67 -0
- package/dist/build-provenance.js.map +1 -0
- package/dist/build-provenance.json +1 -0
- package/dist/cache-ledger.d.ts +95 -0
- package/dist/cache-ledger.js +276 -4
- package/dist/cache-ledger.js.map +1 -1
- package/dist/cache-service.d.ts +5 -0
- package/dist/cache-service.js +16 -4
- package/dist/cache-service.js.map +1 -1
- package/dist/channel/adapters/discord.js +11 -3
- package/dist/channel/adapters/discord.js.map +1 -1
- package/dist/channel/adapters/telegram.d.ts +51 -0
- package/dist/channel/adapters/telegram.js +235 -17
- package/dist/channel/adapters/telegram.js.map +1 -1
- package/dist/channel/mcp-tools.js +3 -3
- package/dist/channel/mcp-tools.js.map +1 -1
- package/dist/channel/types.d.ts +2 -0
- package/dist/claude-auth-status.d.ts +48 -0
- package/dist/claude-auth-status.js +149 -0
- package/dist/claude-auth-status.js.map +1 -0
- package/dist/cli.js +138 -37
- package/dist/cli.js.map +1 -1
- package/dist/config-validator.js +21 -1
- package/dist/config-validator.js.map +1 -1
- package/dist/cross-instance-notice.d.ts +10 -0
- package/dist/cross-instance-notice.js +67 -5
- package/dist/cross-instance-notice.js.map +1 -1
- package/dist/daemon.d.ts +70 -1
- package/dist/daemon.js +547 -25
- package/dist/daemon.js.map +1 -1
- package/dist/dashboard-permissions.d.ts +8 -0
- package/dist/dashboard-permissions.js +16 -0
- package/dist/dashboard-permissions.js.map +1 -1
- package/dist/delivery-consumed-watch.d.ts +23 -1
- package/dist/delivery-consumed-watch.js +30 -3
- package/dist/delivery-consumed-watch.js.map +1 -1
- package/dist/delivery-reconciliation.d.ts +1 -1
- package/dist/delivery-reconciliation.js +1 -1
- package/dist/delivery-reconciliation.js.map +1 -1
- package/dist/doctor.js +20 -9
- package/dist/doctor.js.map +1 -1
- package/dist/export-import.d.ts +7 -0
- package/dist/export-import.js +44 -10
- package/dist/export-import.js.map +1 -1
- package/dist/fleet-context.d.ts +2 -0
- package/dist/fleet-manager.d.ts +362 -7
- package/dist/fleet-manager.js +1522 -91
- package/dist/fleet-manager.js.map +1 -1
- package/dist/fleet-windows-runtime.d.ts +8 -2
- package/dist/fleet-windows-runtime.js +93 -6
- package/dist/fleet-windows-runtime.js.map +1 -1
- package/dist/general-knowledge/skills/concepts/SKILL.md +425 -0
- package/dist/general-knowledge/skills/credential-profiles/SKILL.md +5 -2
- package/dist/general-knowledge/skills/cross-instance-messaging/SKILL.md +1 -0
- package/dist/general-knowledge/skills/fleet-health/SKILL.md +2 -2
- package/dist/general-knowledge/skills/instance-lifecycle/SKILL.md +3 -1
- package/dist/general-knowledge/skills/kiro-engine-migration/SKILL.md +41 -4
- package/dist/general-knowledge/skills/session-management/SKILL.md +1 -1
- package/dist/general-knowledge/skills/tui-effort/SKILL.md +10 -10
- package/dist/general-knowledge/skills/web-dashboard/SKILL.md +31 -15
- package/dist/general-knowledge/skills/worker-collaboration/SKILL.md +1 -1
- package/dist/general-role.d.ts +1 -1
- package/dist/general-role.js +1 -0
- package/dist/general-role.js.map +1 -1
- package/dist/hub/admission.d.ts +28 -0
- package/dist/hub/admission.js +62 -0
- package/dist/hub/admission.js.map +1 -0
- package/dist/hub/attachments/limits.d.ts +20 -0
- package/dist/hub/attachments/limits.js +48 -0
- package/dist/hub/attachments/limits.js.map +1 -0
- package/dist/hub/attachments/store.d.ts +116 -0
- package/dist/hub/attachments/store.js +246 -0
- package/dist/hub/attachments/store.js.map +1 -0
- package/dist/hub/audit/index.d.ts +62 -0
- package/dist/hub/audit/index.js +344 -0
- package/dist/hub/audit/index.js.map +1 -0
- package/dist/hub/browser-certificate.d.ts +38 -0
- package/dist/hub/browser-certificate.js +247 -0
- package/dist/hub/browser-certificate.js.map +1 -0
- package/dist/hub/buttons-model.d.ts +9 -0
- package/dist/hub/buttons-model.js +42 -0
- package/dist/hub/buttons-model.js.map +1 -0
- package/dist/hub/buttons.d.ts +54 -0
- package/dist/hub/buttons.js +346 -0
- package/dist/hub/buttons.js.map +1 -0
- package/dist/hub/catalog.d.ts +74 -0
- package/dist/hub/catalog.js +195 -0
- package/dist/hub/catalog.js.map +1 -0
- package/dist/hub/client.d.ts +69 -0
- package/dist/hub/client.js +300 -0
- package/dist/hub/client.js.map +1 -0
- package/dist/hub/compose/member.d.ts +139 -0
- package/dist/hub/compose/member.js +450 -0
- package/dist/hub/compose/member.js.map +1 -0
- package/dist/hub/compose/server.d.ts +77 -0
- package/dist/hub/compose/server.js +349 -0
- package/dist/hub/compose/server.js.map +1 -0
- package/dist/hub/compose/views.d.ts +12 -0
- package/dist/hub/compose/views.js +4 -0
- package/dist/hub/compose/views.js.map +1 -0
- package/dist/hub/db.d.ts +56 -0
- package/dist/hub/db.js +188 -0
- package/dist/hub/db.js.map +1 -0
- package/dist/hub/directory/config.d.ts +39 -0
- package/dist/hub/directory/config.js +108 -0
- package/dist/hub/directory/config.js.map +1 -0
- package/dist/hub/directory/directory.d.ts +18 -0
- package/dist/hub/directory/directory.js +320 -0
- package/dist/hub/directory/directory.js.map +1 -0
- package/dist/hub/directory/index.d.ts +7 -0
- package/dist/hub/directory/index.js +4 -0
- package/dist/hub/directory/index.js.map +1 -0
- package/dist/hub/directory/profiles.d.ts +41 -0
- package/dist/hub/directory/profiles.js +90 -0
- package/dist/hub/directory/profiles.js.map +1 -0
- package/dist/hub/directory/types.d.ts +71 -0
- package/dist/hub/directory/types.js +14 -0
- package/dist/hub/directory/types.js.map +1 -0
- package/dist/hub/execution/cli-provider.d.ts +23 -0
- package/dist/hub/execution/cli-provider.js +341 -0
- package/dist/hub/execution/cli-provider.js.map +1 -0
- package/dist/hub/execution/index.d.ts +13 -0
- package/dist/hub/execution/index.js +8 -0
- package/dist/hub/execution/index.js.map +1 -0
- package/dist/hub/execution/model-broker.d.ts +24 -0
- package/dist/hub/execution/model-broker.js +208 -0
- package/dist/hub/execution/model-broker.js.map +1 -0
- package/dist/hub/execution/provider-setup.d.ts +11 -0
- package/dist/hub/execution/provider-setup.js +21 -0
- package/dist/hub/execution/provider-setup.js.map +1 -0
- package/dist/hub/execution/sandbox-runner.d.ts +1 -0
- package/dist/hub/execution/sandbox-runner.js +221 -0
- package/dist/hub/execution/sandbox-runner.js.map +1 -0
- package/dist/hub/execution/service.d.ts +136 -0
- package/dist/hub/execution/service.js +459 -0
- package/dist/hub/execution/service.js.map +1 -0
- package/dist/hub/execution/store.d.ts +61 -0
- package/dist/hub/execution/store.js +182 -0
- package/dist/hub/execution/store.js.map +1 -0
- package/dist/hub/execution/views.d.ts +20 -0
- package/dist/hub/execution/views.js +48 -0
- package/dist/hub/execution/views.js.map +1 -0
- package/dist/hub/http/compose.d.ts +20 -0
- package/dist/hub/http/compose.js +518 -0
- package/dist/hub/http/compose.js.map +1 -0
- package/dist/hub/http/core.d.ts +49 -0
- package/dist/hub/http/core.js +124 -0
- package/dist/hub/http/core.js.map +1 -0
- package/dist/hub/http/deps.d.ts +61 -0
- package/dist/hub/http/deps.js +2 -0
- package/dist/hub/http/deps.js.map +1 -0
- package/dist/hub/http/schema.d.ts +14 -0
- package/dist/hub/http/schema.js +80 -0
- package/dist/hub/http/schema.js.map +1 -0
- package/dist/hub/identity.d.ts +32 -0
- package/dist/hub/identity.js +80 -0
- package/dist/hub/identity.js.map +1 -0
- package/dist/hub/init/browser-certificate.d.ts +9 -0
- package/dist/hub/init/browser-certificate.js +78 -0
- package/dist/hub/init/browser-certificate.js.map +1 -0
- package/dist/hub/init/browser-tls.d.ts +18 -0
- package/dist/hub/init/browser-tls.js +62 -0
- package/dist/hub/init/browser-tls.js.map +1 -0
- package/dist/hub/init/cli.d.ts +3 -0
- package/dist/hub/init/cli.js +83 -0
- package/dist/hub/init/cli.js.map +1 -0
- package/dist/hub/init/directory-certificate.d.ts +24 -0
- package/dist/hub/init/directory-certificate.js +222 -0
- package/dist/hub/init/directory-certificate.js.map +1 -0
- package/dist/hub/init/existing-fleet.d.ts +6 -0
- package/dist/hub/init/existing-fleet.js +58 -0
- package/dist/hub/init/existing-fleet.js.map +1 -0
- package/dist/hub/init/handoff.d.ts +8 -0
- package/dist/hub/init/handoff.js +36 -0
- package/dist/hub/init/handoff.js.map +1 -0
- package/dist/hub/init/identity.d.ts +5 -0
- package/dist/hub/init/identity.js +24 -0
- package/dist/hub/init/identity.js.map +1 -0
- package/dist/hub/init/initializer.d.ts +24 -0
- package/dist/hub/init/initializer.js +385 -0
- package/dist/hub/init/initializer.js.map +1 -0
- package/dist/hub/init/inventory.d.ts +17 -0
- package/dist/hub/init/inventory.js +33 -0
- package/dist/hub/init/inventory.js.map +1 -0
- package/dist/hub/init/layout.d.ts +32 -0
- package/dist/hub/init/layout.js +53 -0
- package/dist/hub/init/layout.js.map +1 -0
- package/dist/hub/init/network.d.ts +18 -0
- package/dist/hub/init/network.js +104 -0
- package/dist/hub/init/network.js.map +1 -0
- package/dist/hub/init/plan-digest.d.ts +5 -0
- package/dist/hub/init/plan-digest.js +47 -0
- package/dist/hub/init/plan-digest.js.map +1 -0
- package/dist/hub/init/prompt.d.ts +26 -0
- package/dist/hub/init/prompt.js +110 -0
- package/dist/hub/init/prompt.js.map +1 -0
- package/dist/hub/init/secret-file.d.ts +1 -0
- package/dist/hub/init/secret-file.js +59 -0
- package/dist/hub/init/secret-file.js.map +1 -0
- package/dist/hub/init/text.d.ts +127 -0
- package/dist/hub/init/text.js +247 -0
- package/dist/hub/init/text.js.map +1 -0
- package/dist/hub/init/types.d.ts +114 -0
- package/dist/hub/init/types.js +9 -0
- package/dist/hub/init/types.js.map +1 -0
- package/dist/hub/init/wizard.d.ts +34 -0
- package/dist/hub/init/wizard.js +554 -0
- package/dist/hub/init/wizard.js.map +1 -0
- package/dist/hub/initialization.d.ts +23 -0
- package/dist/hub/initialization.js +28 -0
- package/dist/hub/initialization.js.map +1 -0
- package/dist/hub/member/agent-mode.d.ts +6 -0
- package/dist/hub/member/agent-mode.js +23 -0
- package/dist/hub/member/agent-mode.js.map +1 -0
- package/dist/hub/member/attachments.d.ts +29 -0
- package/dist/hub/member/attachments.js +107 -0
- package/dist/hub/member/attachments.js.map +1 -0
- package/dist/hub/member/exposure-api.d.ts +87 -0
- package/dist/hub/member/exposure-api.js +64 -0
- package/dist/hub/member/exposure-api.js.map +1 -0
- package/dist/hub/member/exposures.d.ts +123 -0
- package/dist/hub/member/exposures.js +282 -0
- package/dist/hub/member/exposures.js.map +1 -0
- package/dist/hub/member/pairing-api.d.ts +85 -0
- package/dist/hub/member/pairing-api.js +385 -0
- package/dist/hub/member/pairing-api.js.map +1 -0
- package/dist/hub/member/quota.d.ts +20 -0
- package/dist/hub/member/quota.js +98 -0
- package/dist/hub/member/quota.js.map +1 -0
- package/dist/hub/member-journal.d.ts +104 -0
- package/dist/hub/member-journal.js +336 -0
- package/dist/hub/member-journal.js.map +1 -0
- package/dist/hub/member-reconciliation.d.ts +14 -0
- package/dist/hub/member-reconciliation.js +97 -0
- package/dist/hub/member-reconciliation.js.map +1 -0
- package/dist/hub/mount.d.ts +39 -0
- package/dist/hub/mount.js +123 -0
- package/dist/hub/mount.js.map +1 -0
- package/dist/hub/pairing-client.d.ts +17 -0
- package/dist/hub/pairing-client.js +108 -0
- package/dist/hub/pairing-client.js.map +1 -0
- package/dist/hub/pairing.d.ts +65 -0
- package/dist/hub/pairing.js +211 -0
- package/dist/hub/pairing.js.map +1 -0
- package/dist/hub/policy.d.ts +63 -0
- package/dist/hub/policy.js +147 -0
- package/dist/hub/policy.js.map +1 -0
- package/dist/hub/preview.d.ts +32 -0
- package/dist/hub/preview.js +64 -0
- package/dist/hub/preview.js.map +1 -0
- package/dist/hub/private-files.d.ts +5 -0
- package/dist/hub/private-files.js +44 -0
- package/dist/hub/private-files.js.map +1 -0
- package/dist/hub/profile.d.ts +59 -0
- package/dist/hub/profile.js +73 -0
- package/dist/hub/profile.js.map +1 -0
- package/dist/hub/protocol.d.ts +779 -0
- package/dist/hub/protocol.js +93 -0
- package/dist/hub/protocol.js.map +1 -0
- package/dist/hub/quota.d.ts +24 -0
- package/dist/hub/quota.js +112 -0
- package/dist/hub/quota.js.map +1 -0
- package/dist/hub/representative.d.ts +141 -0
- package/dist/hub/representative.js +528 -0
- package/dist/hub/representative.js.map +1 -0
- package/dist/hub/retention.d.ts +17 -0
- package/dist/hub/retention.js +45 -0
- package/dist/hub/retention.js.map +1 -0
- package/dist/hub/rooms.d.ts +120 -0
- package/dist/hub/rooms.js +535 -0
- package/dist/hub/rooms.js.map +1 -0
- package/dist/hub/runtime.d.ts +106 -0
- package/dist/hub/runtime.js +298 -0
- package/dist/hub/runtime.js.map +1 -0
- package/dist/hub/server.d.ts +56 -0
- package/dist/hub/server.js +202 -0
- package/dist/hub/server.js.map +1 -0
- package/dist/hub/service-start.d.ts +17 -0
- package/dist/hub/service-start.js +109 -0
- package/dist/hub/service-start.js.map +1 -0
- package/dist/hub/sessions.d.ts +53 -0
- package/dist/hub/sessions.js +196 -0
- package/dist/hub/sessions.js.map +1 -0
- package/dist/hub/socket.d.ts +24 -0
- package/dist/hub/socket.js +79 -0
- package/dist/hub/socket.js.map +1 -0
- package/dist/hub/store.d.ts +77 -0
- package/dist/hub/store.js +88 -0
- package/dist/hub/store.js.map +1 -0
- package/dist/hub/tls.d.ts +31 -0
- package/dist/hub/tls.js +135 -0
- package/dist/hub/tls.js.map +1 -0
- package/dist/hub/types.d.ts +401 -0
- package/dist/hub/types.js +2 -0
- package/dist/hub/types.js.map +1 -0
- package/dist/hub/validation.d.ts +33 -0
- package/dist/hub/validation.js +136 -0
- package/dist/hub/validation.js.map +1 -0
- package/dist/hub/version-floor.d.ts +10 -0
- package/dist/hub/version-floor.js +45 -0
- package/dist/hub/version-floor.js.map +1 -0
- package/dist/hub-browser-certificate-policy.d.ts +31 -0
- package/dist/hub-browser-certificate-policy.js +25 -0
- package/dist/hub-browser-certificate-policy.js.map +1 -0
- package/dist/hub-membership-settings.d.ts +6 -0
- package/dist/hub-membership-settings.js +21 -0
- package/dist/hub-membership-settings.js.map +1 -0
- package/dist/hub-mode.d.ts +15 -0
- package/dist/hub-mode.js +17 -0
- package/dist/hub-mode.js.map +1 -0
- package/dist/hub-pairing-summary.d.ts +48 -0
- package/dist/hub-pairing-summary.js +36 -0
- package/dist/hub-pairing-summary.js.map +1 -0
- package/dist/hub-report-target.d.ts +32 -0
- package/dist/hub-report-target.js +33 -0
- package/dist/hub-report-target.js.map +1 -0
- package/dist/hub-retention-policy.d.ts +14 -0
- package/dist/hub-retention-policy.js +15 -0
- package/dist/hub-retention-policy.js.map +1 -0
- package/dist/instance-config-impact.js +3 -0
- package/dist/instance-config-impact.js.map +1 -1
- package/dist/instance-lifecycle.d.ts +17 -2
- package/dist/instance-lifecycle.js +58 -8
- package/dist/instance-lifecycle.js.map +1 -1
- package/dist/instance-topic-delete.d.ts +77 -0
- package/dist/instance-topic-delete.js +123 -0
- package/dist/instance-topic-delete.js.map +1 -0
- package/dist/instructions.d.ts +1 -1
- package/dist/instructions.js +1 -1
- package/dist/instructions.js.map +1 -1
- package/dist/kiro-engine-status.d.ts +11 -0
- package/dist/kiro-engine-status.js +6 -0
- package/dist/kiro-engine-status.js.map +1 -1
- package/dist/launchd-service-domain.d.ts +5 -0
- package/dist/launchd-service-domain.js +21 -0
- package/dist/launchd-service-domain.js.map +1 -0
- package/dist/locale.js +125 -3
- package/dist/locale.js.map +1 -1
- package/dist/log-service.d.ts +28 -0
- package/dist/log-service.js +29 -0
- package/dist/log-service.js.map +1 -1
- package/dist/log-steps.d.ts +4 -3
- package/dist/log-steps.js +32 -7
- package/dist/log-steps.js.map +1 -1
- package/dist/logger.d.ts +16 -2
- package/dist/logger.js +346 -66
- package/dist/logger.js.map +1 -1
- package/dist/login-flows.d.ts +15 -7
- package/dist/login-flows.js +29 -3
- package/dist/login-flows.js.map +1 -1
- package/dist/login-manager.js +25 -4
- package/dist/login-manager.js.map +1 -1
- package/dist/ls-rows.js +3 -4
- package/dist/ls-rows.js.map +1 -1
- package/dist/missed-offline.d.ts +25 -0
- package/dist/missed-offline.js +79 -0
- package/dist/missed-offline.js.map +1 -0
- package/dist/native-instance-api.d.ts +0 -1
- package/dist/native-instance-api.js +15 -3
- package/dist/native-instance-api.js.map +1 -1
- package/dist/native-instance-input.d.ts +3 -0
- package/dist/native-instance-input.js +6 -1
- package/dist/native-instance-input.js.map +1 -1
- package/dist/native-instance-registry.d.ts +6 -0
- package/dist/native-instance-registry.js +24 -0
- package/dist/native-instance-registry.js.map +1 -1
- package/dist/native-mcp.d.ts +3 -0
- package/dist/native-mcp.js +15 -2
- package/dist/native-mcp.js.map +1 -1
- package/dist/native-pane-lifecycle.d.ts +8 -0
- package/dist/native-pane-lifecycle.js +13 -4
- package/dist/native-pane-lifecycle.js.map +1 -1
- package/dist/native-pane-manager.js +17 -9
- package/dist/native-pane-manager.js.map +1 -1
- package/dist/needs-you-hub.d.ts +9 -1
- package/dist/needs-you-hub.js +46 -8
- package/dist/needs-you-hub.js.map +1 -1
- package/dist/needs-you.d.ts +47 -2
- package/dist/needs-you.js +31 -3
- package/dist/needs-you.js.map +1 -1
- package/dist/office-share-page.js +3 -3
- package/dist/office-share-page.js.map +1 -1
- package/dist/office-share.d.ts +11 -0
- package/dist/office-share.js +14 -0
- package/dist/office-share.js.map +1 -1
- package/dist/office-talk.d.ts +26 -0
- package/dist/office-talk.js +50 -0
- package/dist/office-talk.js.map +1 -0
- package/dist/outbound-handlers.d.ts +14 -0
- package/dist/outbound-handlers.js +49 -6
- package/dist/outbound-handlers.js.map +1 -1
- package/dist/outbound-schemas.d.ts +33 -1
- package/dist/outbound-schemas.js +29 -16
- package/dist/outbound-schemas.js.map +1 -1
- package/dist/pane-quota-history.d.ts +9 -0
- package/dist/pane-quota-history.js +67 -0
- package/dist/pane-quota-history.js.map +1 -0
- 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/platform-general.d.ts +46 -0
- package/dist/platform-general.js +91 -0
- package/dist/platform-general.js.map +1 -0
- package/dist/public-web-gateway.js +7 -0
- package/dist/public-web-gateway.js.map +1 -1
- package/dist/public-web-link.d.ts +6 -0
- package/dist/public-web-link.js +9 -0
- package/dist/public-web-link.js.map +1 -1
- package/dist/queued-handoffs.d.ts +33 -0
- package/dist/queued-handoffs.js +75 -0
- package/dist/queued-handoffs.js.map +1 -0
- package/dist/quickstart.d.ts +13 -0
- package/dist/quickstart.js +81 -5
- package/dist/quickstart.js.map +1 -1
- package/dist/quota-notice.d.ts +7 -0
- package/dist/quota-notice.js +40 -0
- package/dist/quota-notice.js.map +1 -1
- package/dist/reply-buttons-controller.js +10 -6
- package/dist/reply-buttons-controller.js.map +1 -1
- package/dist/reply-polls.d.ts +2 -2
- package/dist/reply-polls.js +3 -3
- package/dist/reply-polls.js.map +1 -1
- package/dist/runtime-api.d.ts +2 -0
- package/dist/runtime-api.js +106 -13
- package/dist/runtime-api.js.map +1 -1
- package/dist/runtime-build-info.d.ts +9 -0
- package/dist/runtime-build-info.js +59 -0
- package/dist/runtime-build-info.js.map +1 -0
- package/dist/runtime-bundle.d.ts +6 -1
- package/dist/runtime-bundle.js +17 -9
- package/dist/runtime-bundle.js.map +1 -1
- package/dist/runtime-cli.d.ts +13 -1
- package/dist/runtime-cli.js +173 -19
- package/dist/runtime-cli.js.map +1 -1
- package/dist/runtime-client-store.d.ts +27 -1
- package/dist/runtime-client-store.js +86 -6
- package/dist/runtime-client-store.js.map +1 -1
- package/dist/runtime-client.d.ts +74 -0
- package/dist/runtime-client.js +336 -26
- package/dist/runtime-client.js.map +1 -1
- package/dist/runtime-connection.d.ts +22 -0
- package/dist/runtime-connection.js +93 -0
- package/dist/runtime-connection.js.map +1 -0
- package/dist/runtime-coordinator.d.ts +16 -0
- package/dist/runtime-coordinator.js +287 -62
- package/dist/runtime-coordinator.js.map +1 -1
- package/dist/runtime-credential-profiles.d.ts +78 -0
- package/dist/runtime-credential-profiles.js +280 -0
- package/dist/runtime-credential-profiles.js.map +1 -0
- package/dist/runtime-install.d.ts +50 -0
- package/dist/runtime-install.js +186 -0
- package/dist/runtime-install.js.map +1 -0
- package/dist/runtime-pane-assets.d.ts +1 -1
- package/dist/runtime-pane-assets.js +1 -1
- package/dist/runtime-pane-assets.js.map +1 -1
- package/dist/runtime-pane-boot.d.ts +7 -0
- package/dist/runtime-pane-boot.js +23 -0
- package/dist/runtime-pane-boot.js.map +1 -1
- package/dist/runtime-pane-codex-index.d.ts +10 -1
- package/dist/runtime-pane-codex-index.js +131 -27
- package/dist/runtime-pane-codex-index.js.map +1 -1
- package/dist/runtime-pane-host.d.ts +19 -0
- package/dist/runtime-pane-host.js +50 -7
- package/dist/runtime-pane-host.js.map +1 -1
- package/dist/runtime-pane-link.d.ts +7 -0
- package/dist/runtime-pane-link.js +93 -2
- package/dist/runtime-pane-link.js.map +1 -1
- package/dist/runtime-pane-mcp-relay.d.ts +1 -0
- package/dist/runtime-pane-mcp-relay.js +10 -0
- package/dist/runtime-pane-mcp-relay.js.map +1 -1
- package/dist/runtime-pane-mcp.d.ts +4 -0
- package/dist/runtime-pane-mcp.js +6 -3
- package/dist/runtime-pane-mcp.js.map +1 -1
- package/dist/runtime-pane-native.d.ts +32 -2
- package/dist/runtime-pane-native.js +55 -6
- package/dist/runtime-pane-native.js.map +1 -1
- package/dist/runtime-pane-port.d.ts +5 -0
- package/dist/runtime-pane-port.js +17 -1
- package/dist/runtime-pane-port.js.map +1 -1
- package/dist/runtime-pane-process.d.ts +1 -1
- package/dist/runtime-pane-process.js +11 -2
- package/dist/runtime-pane-process.js.map +1 -1
- package/dist/runtime-pane-protocol.d.ts +11 -1
- package/dist/runtime-pane-protocol.js +27 -5
- package/dist/runtime-pane-protocol.js.map +1 -1
- package/dist/runtime-pane-quota-history.d.ts +6 -0
- package/dist/runtime-pane-quota-history.js +44 -0
- package/dist/runtime-pane-quota-history.js.map +1 -0
- package/dist/runtime-pane-service.d.ts +5 -0
- package/dist/runtime-pane-service.js +47 -12
- package/dist/runtime-pane-service.js.map +1 -1
- package/dist/runtime-pane-transcript.d.ts +5 -0
- package/dist/runtime-pane-transcript.js +66 -5
- package/dist/runtime-pane-transcript.js.map +1 -1
- package/dist/runtime-pane-worker.js +19 -6
- package/dist/runtime-pane-worker.js.map +1 -1
- package/dist/runtime-protocol.d.ts +30 -2
- package/dist/runtime-protocol.js +30 -0
- package/dist/runtime-protocol.js.map +1 -1
- package/dist/runtime-update-activity.d.ts +21 -0
- package/dist/runtime-update-activity.js +51 -0
- package/dist/runtime-update-activity.js.map +1 -0
- package/dist/runtime-update-artifact.d.ts +31 -0
- package/dist/runtime-update-artifact.js +252 -0
- package/dist/runtime-update-artifact.js.map +1 -0
- package/dist/runtime-update-install.d.ts +31 -0
- package/dist/runtime-update-install.js +205 -0
- package/dist/runtime-update-install.js.map +1 -0
- package/dist/runtime-update-journal.d.ts +44 -0
- package/dist/runtime-update-journal.js +121 -0
- package/dist/runtime-update-journal.js.map +1 -0
- package/dist/runtime-update-lock.d.ts +48 -0
- package/dist/runtime-update-lock.js +217 -0
- package/dist/runtime-update-lock.js.map +1 -0
- package/dist/runtime-update-owners.d.ts +29 -0
- package/dist/runtime-update-owners.js +240 -0
- package/dist/runtime-update-owners.js.map +1 -0
- package/dist/runtime-update-protocol.d.ts +15 -0
- package/dist/runtime-update-protocol.js +13 -0
- package/dist/runtime-update-protocol.js.map +1 -0
- package/dist/runtime-windows-bridge.d.ts +2 -1
- package/dist/runtime-windows-bridge.js +11 -1
- package/dist/runtime-windows-bridge.js.map +1 -1
- package/dist/scheduler/db.d.ts +2 -1
- package/dist/scheduler/db.js +23 -9
- package/dist/scheduler/db.js.map +1 -1
- package/dist/scheduler/task-board-text.js +1 -1
- package/dist/scheduler/task-board-text.js.map +1 -1
- package/dist/scheduler/task-board.d.ts +13 -0
- package/dist/scheduler/task-board.js +28 -3
- package/dist/scheduler/task-board.js.map +1 -1
- package/dist/service-drain.d.ts +19 -0
- package/dist/service-drain.js +64 -0
- package/dist/service-drain.js.map +1 -0
- package/dist/service-installer.d.ts +7 -2
- package/dist/service-installer.js +13 -10
- package/dist/service-installer.js.map +1 -1
- package/dist/settings-api.d.ts +20 -0
- package/dist/settings-api.js +414 -4
- package/dist/settings-api.js.map +1 -1
- package/dist/settings-baseline.d.ts +6 -0
- package/dist/settings-baseline.js +3 -1
- package/dist/settings-baseline.js.map +1 -1
- package/dist/settings-change.js +29 -6
- package/dist/settings-change.js.map +1 -1
- package/dist/settings-effect.d.ts +13 -0
- package/dist/settings-effect.js +98 -1
- package/dist/settings-effect.js.map +1 -1
- package/dist/settings-http-confirmation.d.ts +3 -0
- package/dist/settings-http-confirmation.js +28 -1
- package/dist/settings-http-confirmation.js.map +1 -1
- package/dist/settings-instance-patch.js +27 -0
- package/dist/settings-instance-patch.js.map +1 -1
- package/dist/setup-wizard.js +6 -2
- package/dist/setup-wizard.js.map +1 -1
- package/dist/task-board-tool.d.ts +13 -1
- package/dist/task-board-tool.js +104 -4
- package/dist/task-board-tool.js.map +1 -1
- package/dist/task-board-waker.d.ts +6 -0
- package/dist/task-board-waker.js +4 -0
- package/dist/task-board-waker.js.map +1 -1
- package/dist/tmux-binary.d.ts +59 -0
- package/dist/tmux-binary.js +200 -0
- package/dist/tmux-binary.js.map +1 -0
- package/dist/tmux-control.js +4 -4
- package/dist/tmux-control.js.map +1 -1
- package/dist/tmux-exec-helper.js +32 -1
- package/dist/tmux-exec-helper.js.map +1 -1
- package/dist/tmux-manager.d.ts +1 -1
- package/dist/tmux-manager.js +45 -36
- package/dist/tmux-manager.js.map +1 -1
- package/dist/tmux-read.js +4 -3
- package/dist/tmux-read.js.map +1 -1
- package/dist/tool-permissions.d.ts +5 -2
- package/dist/tool-permissions.js +6 -5
- package/dist/tool-permissions.js.map +1 -1
- package/dist/tool-progress.d.ts +2 -0
- package/dist/tool-progress.js +19 -3
- package/dist/tool-progress.js.map +1 -1
- package/dist/topic-commands.js +10 -5
- package/dist/topic-commands.js.map +1 -1
- package/dist/transcript-monitor.d.ts +20 -0
- package/dist/transcript-monitor.js +47 -3
- package/dist/transcript-monitor.js.map +1 -1
- package/dist/transcript-needles.d.ts +7 -0
- package/dist/transcript-needles.js +9 -1
- package/dist/transcript-needles.js.map +1 -1
- package/dist/transcript-records.d.ts +1 -1
- package/dist/transcript-records.js +2 -1
- package/dist/transcript-records.js.map +1 -1
- package/dist/types.d.ts +6 -0
- package/dist/ui/account-identity.js +27 -0
- package/dist/ui/accounts-view.js +214 -0
- package/dist/ui/agent-runtime-settings.js +68 -0
- package/dist/ui/agent-runtime.js +20 -2
- package/dist/ui/backend-signin.js +39 -21
- package/dist/ui/chat-ambient.js +1 -1
- package/dist/ui/chat-md-strings.js +3 -0
- package/dist/ui/chat-render.js +3 -670
- package/dist/ui/chat-store.js +1 -1
- package/dist/ui/chat-strings.js +3 -333
- package/dist/ui/chat-thread.js +3 -919
- package/dist/ui/chat-time.js +3 -80
- package/dist/ui/chat-tour.js +1 -1
- package/dist/ui/credential-profile-select.js +54 -0
- package/dist/ui/fleet-office-dialogue.d.ts +30 -0
- package/dist/ui/fleet-office-dialogue.js +382 -0
- package/dist/ui/fleet-office-pack.d.ts +9 -0
- package/dist/ui/fleet-office-pack.js +76 -4
- package/dist/ui/fleet-office-skin.js +23 -5
- package/dist/ui/fleet-office-store.js +5 -0
- package/dist/ui/fleet-office.js +173 -6
- package/dist/ui/fleet-task-card.js +10 -6
- package/dist/ui/fleet-task-common.js +12 -2
- package/dist/ui/fleet-task-menu.js +188 -0
- package/dist/ui/fleet-task-stats.js +124 -0
- package/dist/ui/fleet-task-view.js +340 -0
- package/dist/ui/fleet-tasks.js +131 -43
- package/dist/ui/fleet-usage.js +90 -27
- package/dist/ui/html-attachment.js +3 -40
- package/dist/ui/hub-agent-copy.js +23 -0
- package/dist/ui/hub-button-actions.js +65 -0
- package/dist/ui/hub-chat-store.js +158 -0
- package/dist/ui/hub-chat-strings.js +77 -0
- package/dist/ui/hub-client.js +329 -0
- package/dist/ui/hub-owner-strings.js +51 -0
- package/dist/ui/hub-provider-guidance.js +31 -0
- package/dist/ui/hub-quota.js +85 -0
- package/dist/ui/hub-strings.js +162 -0
- package/dist/ui/hub-switcher.js +27 -0
- package/dist/ui/native-instance-settings.js +5 -8
- package/dist/ui/native-pane-recovery.js +1 -1
- package/dist/ui/office-share-page.js +4 -2
- package/dist/ui/panel-chat.js +36 -49
- package/dist/ui/panel-details.js +1 -1
- package/dist/ui/panel-fleet.js +82 -12
- package/dist/ui/panel-hub.js +619 -0
- package/dist/ui/panel-log.js +2 -2
- package/dist/ui/panel-needs.js +24 -8
- package/dist/ui/panel-runtimes.js +239 -45
- package/dist/ui/panel-settings.js +266 -192
- package/dist/ui/panel-windows-cli.js +88 -42
- package/dist/ui/preview-pages.js +1 -1
- package/dist/ui/preview-panel.js +92 -6
- package/dist/ui/preview-versions.js +1 -1
- package/dist/ui/preview.js +3 -476
- package/dist/ui/runtime-commands.d.ts +4 -0
- package/dist/ui/runtime-commands.js +59 -0
- package/dist/ui/search-dialog.js +2 -0
- package/dist/ui/settings-access-strings.js +42 -0
- package/dist/ui/settings-agent-filters.js +94 -0
- package/dist/ui/settings-appearance.js +122 -23
- package/dist/ui/settings-build-version.js +35 -0
- package/dist/ui/settings-codex-copy.js +19 -0
- package/dist/ui/settings-devices.js +253 -0
- package/dist/ui/settings-dialogs.js +33 -12
- package/dist/ui/settings-guests.js +25 -11
- package/dist/ui/settings-hub-browser-certificate.js +74 -0
- package/dist/ui/settings-hub-membership.js +72 -0
- package/dist/ui/settings-hub-retention.js +52 -0
- package/dist/ui/settings-hub.js +196 -0
- package/dist/ui/settings-layout.js +242 -0
- package/dist/ui/settings-model.js +24 -2
- package/dist/ui/settings-outside.js +104 -38
- package/dist/ui/settings-registry.js +9 -4
- package/dist/ui/settings-shared-strings.js +143 -0
- package/dist/ui/settings-shared.js +345 -0
- package/dist/ui/settings-shortcuts.js +65 -0
- package/dist/ui/settings-strings.js +89 -32
- package/dist/ui/settings-web-authority.js +17 -11
- package/dist/ui/shared/accounts.css +15 -0
- package/dist/ui/shared/app-i18n.js +2 -2
- package/dist/ui/shared/app-needs.js +1 -1
- package/dist/ui/shared/app-route.js +6 -1
- package/dist/ui/shared/app-session.js +6 -2
- package/dist/ui/shared/app-shell.js +81 -15
- package/dist/ui/shared/app.css +1114 -13
- package/dist/ui/shared/app.js +12 -3
- package/dist/ui/shared/chat-composer.js +68 -0
- package/dist/ui/shared/chat-md-strings.js +9 -0
- package/dist/ui/shared/chat-render.js +682 -0
- package/dist/ui/shared/chat-strings.js +333 -0
- package/dist/ui/shared/chat-thread.js +969 -0
- package/dist/ui/shared/chat-time.js +80 -0
- package/dist/ui/shared/header-tools.js +3 -5
- package/dist/ui/shared/html-attachment.js +42 -0
- package/dist/ui/shared/hub-chat.css +85 -0
- package/dist/ui/shared/hub-owner.css +33 -0
- package/dist/ui/shared/hub-quota.css +8 -0
- package/dist/ui/shared/hub.css +71 -0
- package/dist/ui/shared/instance-nav.js +3 -2
- package/dist/ui/shared/machine-name.js +13 -0
- package/dist/ui/shared/page-head.js +8 -0
- package/dist/ui/shared/panel-view.js +77 -4
- package/dist/ui/shared/preview.js +476 -0
- package/dist/ui/shared/runtime-install.css +26 -0
- package/dist/ui/shared/settings-width.js +31 -0
- package/dist/ui/shared/side-rail.js +15 -0
- package/dist/ui/shared/signin.js +172 -0
- package/dist/ui/shared/task-board.css +95 -0
- package/dist/ui/shared/tokens.css +1 -0
- package/dist/ui/shared/ui-dialog.js +2 -2
- package/dist/ui/shared/ui-menu.js +3 -3
- package/dist/ui/shared/usage-dialog.js +18 -1
- package/dist/ui/shared/view-history.css +17 -0
- package/dist/ui/shared/view-history.js +438 -0
- package/dist/ui/shared/view-strings.js +16 -0
- package/dist/ui/shared/workspace.css +20 -0
- package/dist/ui/signin.html +21 -0
- package/dist/ui/windows-cli-catalog.js +41 -12
- package/dist/ui/workspace-panel.js +189 -0
- package/dist/ui/workspace-strings.js +35 -0
- package/dist/unattended-install.d.ts +11 -2
- package/dist/unattended-install.js +41 -6
- package/dist/unattended-install.js.map +1 -1
- package/dist/usage/capacity.d.ts +69 -0
- package/dist/usage/capacity.js +119 -0
- package/dist/usage/capacity.js.map +1 -0
- package/dist/usage/i18n-keys.d.ts +1 -1
- package/dist/usage/i18n-keys.js +3 -0
- package/dist/usage/i18n-keys.js.map +1 -1
- package/dist/usage/profile-timeline.d.ts +16 -0
- package/dist/usage/profile-timeline.js +58 -0
- package/dist/usage/profile-timeline.js.map +1 -0
- package/dist/usage/providers.js +2 -1
- package/dist/usage/providers.js.map +1 -1
- package/dist/usage/quota-history.d.ts +43 -0
- package/dist/usage/quota-history.js +168 -0
- package/dist/usage/quota-history.js.map +1 -0
- package/dist/usage/usage-api.d.ts +31 -0
- package/dist/usage/usage-api.js +80 -1
- package/dist/usage/usage-api.js.map +1 -1
- package/dist/usage-report.d.ts +25 -1
- package/dist/usage-report.js +55 -4
- package/dist/usage-report.js.map +1 -1
- package/dist/usage-rollup.d.ts +6 -1
- package/dist/usage-rollup.js +16 -4
- package/dist/usage-rollup.js.map +1 -1
- package/dist/view-api.d.ts +16 -0
- package/dist/view-api.js +105 -23
- package/dist/view-api.js.map +1 -1
- package/dist/view-history.d.ts +84 -0
- package/dist/view-history.js +116 -0
- package/dist/view-history.js.map +1 -0
- package/dist/web-api.d.ts +49 -2
- package/dist/web-api.js +279 -8
- package/dist/web-api.js.map +1 -1
- package/dist/web-backend-login.d.ts +23 -1
- package/dist/web-backend-login.js +11 -17
- package/dist/web-backend-login.js.map +1 -1
- package/dist/web-device-login.d.ts +153 -0
- package/dist/web-device-login.js +278 -0
- package/dist/web-device-login.js.map +1 -0
- package/dist/web-office-skins.d.ts +9 -0
- package/dist/web-office-skins.js +16 -1
- package/dist/web-office-skins.js.map +1 -1
- package/dist/web-session-authorization.d.ts +13 -2
- package/dist/web-session-authorization.js +10 -3
- package/dist/web-session-authorization.js.map +1 -1
- package/dist/web-session.d.ts +35 -0
- package/dist/web-session.js +7 -0
- package/dist/web-session.js.map +1 -1
- package/dist/web-settings-patch.d.ts +3 -1
- package/dist/web-settings-patch.js +4 -1
- package/dist/web-settings-patch.js.map +1 -1
- package/dist/web-shell-routes.d.ts +6 -0
- package/dist/web-shell-routes.js +7 -0
- package/dist/web-shell-routes.js.map +1 -1
- package/dist/web-terminal.d.ts +4 -30
- package/dist/web-terminal.js +9 -6
- package/dist/web-terminal.js.map +1 -1
- package/dist/windows-agents.d.ts +4 -1
- package/dist/windows-agents.js +14 -10
- package/dist/windows-agents.js.map +1 -1
- package/dist/windows-cli-api.d.ts +12 -1
- package/dist/windows-cli-api.js +29 -2
- package/dist/windows-cli-api.js.map +1 -1
- package/dist/windows-cli-providers.d.ts +0 -9
- package/dist/windows-cli-providers.js +4 -9
- package/dist/windows-cli-providers.js.map +1 -1
- package/dist/windows-cli-worker.d.ts +25 -0
- package/dist/windows-cli-worker.js +98 -7
- package/dist/windows-cli-worker.js.map +1 -1
- package/dist/windows-cli.d.ts +11 -0
- package/dist/windows-cli.js +17 -3
- package/dist/windows-cli.js.map +1 -1
- package/dist/yaml-shared-nodes.js +8 -3
- package/dist/yaml-shared-nodes.js.map +1 -1
- package/launcher/agend-install.cjs +8 -1
- package/launcher/launchd-session-type.cjs +14 -0
- package/launcher/postinstall.cjs +27 -2
- package/launcher/private-home.cjs +1 -1
- package/launcher/tmux-bundle.cjs +247 -0
- package/package.json +3 -2
- package/templates/launchd.plist.ejs +3 -1
- package/templates/runtime-install/install.ps1 +270 -0
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
/** `agend hub init` wizard strings, English and Traditional Chinese (follows the process locale, like quickstart). */
|
|
2
|
+
import { getLocale } from "../../locale.js";
|
|
3
|
+
const en = {
|
|
4
|
+
build_info: "Installed build: {0} (package {1}). Run agend build-info --json for source details.",
|
|
5
|
+
build_source: "source", build_modified: "modified", build_unknown: "changes unknown",
|
|
6
|
+
title: "═══ AgEnD Hub setup (experimental) ═══",
|
|
7
|
+
intro: "A Hub lets colleagues sign in with your organisation's directory and ask agents that fleet owners choose to publish.\nThe Hub runs no agents and needs no AI CLI sign-in. Best placement: a dedicated, always-on machine or OS account with a stable intranet address.",
|
|
8
|
+
hub_exists: "A Hub is already set up under {0}. Initialization never replaces a Hub identity; nothing was changed.",
|
|
9
|
+
incomplete: "An earlier Hub setup (started {0}) stopped after step “{1}”. The Hub is off.",
|
|
10
|
+
resume_q: "Resume it with the answers saved then? You will be asked for the directory service password again. [y/N] ",
|
|
11
|
+
restart_how: "To start over instead, check {0} (nothing in it is in use while the Hub is off), remove it, and run agend hub init again.",
|
|
12
|
+
fleet_warn_title: "This OS account already runs an AgEnD fleet:",
|
|
13
|
+
fleet_warn_body: "A Hub in the same account shares its user with that fleet's agents. Those agents have full tools (shell, file reads), so they could read the Hub's keys, grants and audit records. Exposed-agent restrictions do not apply to the owner's own agents.\nRecommended: a dedicated OS account on this machine (for example, create a user “agend-hub”, sign in as it, install AgEnD and run agend hub init there), or a separate machine.",
|
|
14
|
+
fleet_confirm: "To set up the Hub in this account anyway (pilot or solo testing only), type “same account”: ",
|
|
15
|
+
fleet_confirm_word: "same account",
|
|
16
|
+
cancelled: "Cancelled. Nothing was changed.",
|
|
17
|
+
name_q: "Hub name (shown as “AgEnD Hub — <name>”): ",
|
|
18
|
+
web_origin_q: "Web address colleagues will open (https://host[:port]; a stable intranet IP or host name): ",
|
|
19
|
+
member_origin_q: "Member address fleets will connect to (https://host:port, different from the web address) [{0}]: ",
|
|
20
|
+
loopback_warn: "{0} only works on this computer; other people's fleets and browsers cannot reach it. Use it anyway? [y/N] ",
|
|
21
|
+
web_listen_q: "Web listener: the interface address and port to listen on [{0}]: ",
|
|
22
|
+
member_listen_q: "Member listener: the interface address and port to listen on [{0}]: ",
|
|
23
|
+
listen_need: "Enter host:port, for example 192.0.2.10:8443 (one interface; 0.0.0.0 is not accepted).",
|
|
24
|
+
network_check: "Checking the Hub's two local listeners…",
|
|
25
|
+
network_web: "Web listener", network_member: "Member listener", network_both: "Hub listeners",
|
|
26
|
+
network_invalid: "{0}: use a specific interface address and a port from 1 to 65535; wildcards are not accepted.",
|
|
27
|
+
network_unresolved: "{0}: the host name did not resolve within 2 seconds. Use an IP address assigned to this computer, or fix its DNS.",
|
|
28
|
+
network_interface: "{0}: this address is not available on this computer. Choose an IP assigned to its intended network interface.",
|
|
29
|
+
network_occupied: "{0}: the address and port are already in use, possibly by the other Hub listener. Choose a different port; no existing process was stopped.",
|
|
30
|
+
network_permission: "{0}: this account cannot bind that port. Choose an unprivileged port above 1024, or ask the host administrator to arrange it.",
|
|
31
|
+
network_reserved: "{0}: this endpoint is reserved for AgEnD's local dashboard or preview. Choose another Hub port.",
|
|
32
|
+
network_unavailable: "{0}: the local bind check could not complete. Check the interface and available sockets, then retry.",
|
|
33
|
+
network_ok: "Both Hub listeners can bind locally; the check sockets are now closed. This does not test DNS from other computers, firewall access or reverse-proxy routing. Test both advertised HTTPS addresses from a member computer after startup.",
|
|
34
|
+
network_unchanged: "No Hub settings were written by this check. Correct the listeners and retry; an interrupted setup must resume with its saved addresses.",
|
|
35
|
+
tls_title: "Browser HTTPS certificate",
|
|
36
|
+
tls_intro: "Import a trusted certificate covering {0}, or generate a 30-day self-signed certificate for this address. Browsers warn about self-signed certificates until the owner arranges trust. Generation does not change any trust store. The Hub never signs anyone in over plain HTTP.",
|
|
37
|
+
tls_cert_q: "Certificate file (PEM, full chain), or type generate for a 30-day self-signed certificate: ",
|
|
38
|
+
tls_key_q: "Its private key file (PEM, not encrypted): ",
|
|
39
|
+
tls_needed: "You need a certificate and its private key for {0}:\n • issued by a certificate authority colleagues' browsers trust (usually your IT department's),\n • naming the host {1} (subject alternative name),\n • as PEM files: the certificate (with its chain) and an unencrypted private key.\nNothing was changed. Run agend hub init again when you have them.",
|
|
40
|
+
tls_problem: "That certificate can't be used:",
|
|
41
|
+
tls_self_signed: "This certificate is self-signed: browsers will warn colleagues unless it is installed as trusted on their computers. Use it anyway? [y/N] ",
|
|
42
|
+
tls_ok: "Certificate for {0}, valid until {1}.",
|
|
43
|
+
tls_fingerprint: "Browser certificate SHA-256: {0}",
|
|
44
|
+
tls_generate_unavailable: "Certificate generation is unavailable in this build. Import a certificate and its private key instead.",
|
|
45
|
+
tls_generate_failed: "Could not generate the browser certificate. Check that OpenSSL is installed, or import a certificate and its private key.",
|
|
46
|
+
tls_stage_kept: "Private certificate staging remains at {0}. If setup is incomplete, resume with agend hub init. Otherwise inspect it before removing it manually.",
|
|
47
|
+
retry_q: "[r] try again [q] quit: ",
|
|
48
|
+
dir_title: "Directory (LDAP / Active Directory, LDAPS only)",
|
|
49
|
+
dir_realm_q: "Directory id: a short stable name for this directory, lowercase (for example “corp”): ",
|
|
50
|
+
dir_url_q: "Directory address (ldaps://host[:port]): ",
|
|
51
|
+
dir_ca_q: "Directory CA: PEM file, “fetch” to inspect and fetch from this directory, or Enter for system roots: ",
|
|
52
|
+
dir_profile_q: "Directory type: [1] Active Directory [2] OpenLDAP [1]: ",
|
|
53
|
+
dir_base_q: "Where people are (base DN, for example dc=example,dc=com): ",
|
|
54
|
+
dir_bind_q: "Read-only service account the Hub searches with (bind DN): ",
|
|
55
|
+
dir_bind_pw_q: "Service account password (not shown): ",
|
|
56
|
+
dir_bind_empty: "Enter a non-empty service account password, or import its private file.",
|
|
57
|
+
dir_bind_source_q: "Service password: [1] enter without echo [2] import a private file [1]: ",
|
|
58
|
+
dir_bind_source_invalid: "Choose 1 to enter the password, or 2 to import a private file.",
|
|
59
|
+
dir_bind_file_q: "Absolute path to your 0600 or 0400 UTF-8 secret file (1–1024 bytes). Bytes are used exactly, including trailing newlines; the source stays in place: ",
|
|
60
|
+
dir_bind_file_invalid: "That secret file could not be imported. Use your own regular file, mode 0600 or 0400, without symlinks; it must be unchanged, non-empty UTF-8, at most 1024 bytes, with no NUL. No secret was printed or saved.",
|
|
61
|
+
dir_invalid: "Those directory settings can't be used: {0}",
|
|
62
|
+
dir_ca_unreadable: "That CA file must contain only 1–4 currently valid PEM CA certificate blocks and whitespace (64 KiB maximum).",
|
|
63
|
+
dir_ca_compare: "Compare each CA fingerprint with a trusted copy from your directory administrator or certificate store.",
|
|
64
|
+
dir_ca_details: "Certificate: {0}\nSHA-256: {1}\nExpires: {2}",
|
|
65
|
+
dir_ca_confirm_q: "Trust these exact CA certificates for this Hub directory? [y/N] ",
|
|
66
|
+
dir_leaf_unverified: "The directory presented this certificate. Its issuer is not trusted yet. No login or password has been sent.",
|
|
67
|
+
dir_leaf_confirm_q: "Compare it using a trusted source. Type the full SHA-256 fingerprint to allow a one-time CA lookup, or Enter to cancel: ",
|
|
68
|
+
dir_leaf_refused: "The fingerprint did not match. No directory credential was sent and no CA was trusted.",
|
|
69
|
+
dir_ca_bind_needed: "Anonymous CA lookup was denied. The read-only service password will be used only on TLS authenticated to the exact certificate fingerprint you confirmed.",
|
|
70
|
+
dir_ca_fetch_failed: "Could not obtain and verify the directory CA. Check the address and certificate fingerprint, or import a CA PEM file from your directory administrator. Fetch supports the presented chain or a same-directory LDAP AIA cACertificate entry, and requires Node 22.9 or newer.",
|
|
71
|
+
signin_title: "Choose the first Hub administrator. The read-only service account looks up this directory login; the person signs in later in their own browser. No personal password is needed here.",
|
|
72
|
+
signin_login_q: "First administrator's directory login: ",
|
|
73
|
+
signin_ok: "Found {0} ({1}). This selects their immutable directory identity; it does not sign them in.",
|
|
74
|
+
signin_invalid: "No eligible account was found for that directory login.",
|
|
75
|
+
signin_not_eligible: "That account is disabled or expired in the directory.",
|
|
76
|
+
signin_unavailable: "Could not reach the directory, or its certificate could not be verified: {0}",
|
|
77
|
+
signin_bad_input: "Enter a directory login.",
|
|
78
|
+
signin_retry_q: "[r] try again [e] change directory settings [q] quit: ",
|
|
79
|
+
signin_too_many: "Too many attempts. Nothing was changed.",
|
|
80
|
+
admin_q: "Designate {0} ({1}) as the first Hub administrator? They claim administration on their first successful browser sign-in. [y/N] ",
|
|
81
|
+
admin_browser_next: "First administrator: open {0} and sign in as the designated directory identity to claim administration. No personal sign-in took place in this terminal.",
|
|
82
|
+
retention_title: "How long the Hub keeps records. Press Enter for the suggestion, or choose a different period; review both before initializing.",
|
|
83
|
+
retention_content_q: "Question and answer content, in days [{0}]: ",
|
|
84
|
+
retention_event_q: "Event records (who asked whom, when, the outcome), in days [{0}]: ",
|
|
85
|
+
retention_need: "Enter a whole number of days from 1 to 3650.",
|
|
86
|
+
summary_title: "Ready to set up:",
|
|
87
|
+
pilot_reminder: "Reminder: same account as an existing fleet; its agents can read the Hub's files.",
|
|
88
|
+
confirm_q: "Type “initialize” to write this setup (anything else cancels): ",
|
|
89
|
+
confirm_word: "initialize",
|
|
90
|
+
failed: "The Hub was not set up:",
|
|
91
|
+
stays_off: "The Hub stays off.",
|
|
92
|
+
done: "The Hub is set up (Hub id {0}).",
|
|
93
|
+
service_installed: "The AgEnD service is already installed for this account; it was not reinstalled. Restart it to start the Hub: agend restart",
|
|
94
|
+
service_q: "Install AgEnD as a service now (systemd / launchd; on Windows inside WSL), so the Hub starts at boot? Type “install” to install, anything else to skip: ",
|
|
95
|
+
service_word: "install",
|
|
96
|
+
service_ok: "Service installed; startup requested. The Hub opens after the previous process and listeners have closed.",
|
|
97
|
+
service_install_idle: "The previous Hub process or PID record is not confirmed stopped. Use agend stop, inspect any stale fleet.pid, then run agend install. No PID was signalled or removed by this check.",
|
|
98
|
+
service_drain_wait: "Waiting for the previous Hub process and listeners to close before startup…",
|
|
99
|
+
service_restart_requested: "Restart requested. The replacement waits for the old Hub process and listeners to close; check the Hub address and fleet.log for startup completion.",
|
|
100
|
+
service_drain_config: "Hub startup refused: its settings changed or could not be read. Check fleet.yaml and retry agend restart; no replacement fleet was constructed.",
|
|
101
|
+
service_drain_process: "Hub startup refused: the previous PID record or process identity could not be verified. Inspect the old service and fleet.pid before retrying; no process was signalled or PID file removed.",
|
|
102
|
+
service_drain_listeners: "Hub startup refused: its listener interfaces could not be checked. Check the configured addresses and permissions before retrying agend restart.",
|
|
103
|
+
service_drain_timeout: "Hub startup refused: the previous process or listeners did not close within the existing stop grace. Inspect the old service and occupied ports before retrying; no replacement fleet was constructed.",
|
|
104
|
+
service_failed: "The service could not be installed: {0}. The Hub setup is kept; install it later with: agend install",
|
|
105
|
+
service_skipped: "Service not installed. Start AgEnD with agend start, or install the service later with: agend install",
|
|
106
|
+
handoff_title: "Hub installation record ({0})",
|
|
107
|
+
handoff_snapshot: "These are setup values. Use Settings to check current addresses and status, or agend hub init to resume incomplete setup.",
|
|
108
|
+
handoff_record: "Private installation inventory: {0}",
|
|
109
|
+
handoff_config: "Shared configuration (Hub settings are under hub.*): {0}",
|
|
110
|
+
handoff_data: "Hub identity, TLS, secrets, database, audit and setup records: {0}",
|
|
111
|
+
handoff_log: "Shared fleet log: {0}",
|
|
112
|
+
handoff_service: "Current service definition: {0} ({1})",
|
|
113
|
+
handoff_scope: "These commands control the existing AgEnD service and every agent it runs, including any fleet sharing it.",
|
|
114
|
+
handoff_stop: "Stop: {0}",
|
|
115
|
+
handoff_restart: "Restart: {0}",
|
|
116
|
+
handoff_uninstall: "Remove the service (asks for confirmation): {0}",
|
|
117
|
+
handoff_preserve: "Service removal keeps the AgEnD package, fleet.yaml, and the Hub's identity, secrets, data and logs. Retention rules purge records while the Hub is running; stopping or uninstalling the service does not erase them. Keep a private backup before any separate manual data removal.",
|
|
118
|
+
handoff_repeat: "Show this handoff again: {0}",
|
|
119
|
+
handoff_unavailable: "The private Hub installation record is missing or unreadable. Setup from an older release may not have one. Check the selected AGEND_HOME and its private permissions; incomplete setup can be resumed with agend hub init. No lifecycle or data changes were made by the handoff display.",
|
|
120
|
+
pairing_title: "Connecting fleets to this Hub",
|
|
121
|
+
pairing_steps: " 1. As the administrator, sign in at {0}/web and create a pairing code for the fleet's owner (Administration → Paired fleets).\n 2. On the member's own computer, its owner opens Settings → Connect to a Hub, enters {1} and the code.\n 3. Both screens show the same fingerprint; compare it, then the owner confirms and you approve.\nMembers pin this Hub's certificate key: SHA-256 {2}",
|
|
122
|
+
};
|
|
123
|
+
const zhTW = {
|
|
124
|
+
build_info: "已安裝建置:{0}(套件 {1})。可執行 agend build-info --json 查看原始碼資訊。",
|
|
125
|
+
build_source: "原始碼建置", build_modified: "含未提交變更", build_unknown: "變更狀態不明",
|
|
126
|
+
title: "═══ AgEnD Hub 設定(實驗性)═══",
|
|
127
|
+
intro: "Hub 讓同事用組織的目錄登入,向各機群主人選擇公開的 agent 提問。\nHub 本身不跑 agent,也不需要登入任何 AI CLI。建議放在一台專用、常開、有固定內網位址的機器或 OS 帳號上。",
|
|
128
|
+
hub_exists: "{0} 下已經設定過 Hub。初始化不會取代既有的 Hub 身分;沒有做任何變更。",
|
|
129
|
+
incomplete: "先前的 Hub 設定(開始於 {0})停在「{1}」之後。Hub 目前是關閉的。",
|
|
130
|
+
resume_q: "要用當時存下的答案繼續嗎?會再請你輸入一次目錄服務帳號的密碼。[y/N] ",
|
|
131
|
+
restart_how: "若要重新開始:先檢查 {0}(Hub 關閉時裡面的東西都沒在使用),刪除後再執行 agend hub init。",
|
|
132
|
+
fleet_warn_title: "這個 OS 帳號已經在跑 AgEnD 機群:",
|
|
133
|
+
fleet_warn_body: "Hub 若和它在同一個帳號,就和那個機群的 agent 共用同一個使用者。那些 agent 有完整工具(shell、讀檔),讀得到 Hub 的金鑰、授權與稽核紀錄;公開 agent 的限制不適用於主人自己的 agent。\n建議:在這台機器上用專用的 OS 帳號(例如建立使用者「agend-hub」,用它登入、安裝 AgEnD 後在那裡執行 agend hub init),或用另一台機器。",
|
|
134
|
+
fleet_confirm: "若仍要在這個帳號設定 Hub(只限試點或個人測試),請輸入「same account」:",
|
|
135
|
+
fleet_confirm_word: "same account",
|
|
136
|
+
cancelled: "已取消,沒有做任何變更。",
|
|
137
|
+
name_q: "Hub 名稱(會顯示為「AgEnD Hub — <名稱>」):",
|
|
138
|
+
web_origin_q: "同事要開的網址(https://主機[:埠];固定的內網 IP 或主機名稱):",
|
|
139
|
+
member_origin_q: "機群連線用的成員位址(https://主機:埠,需與網址不同)[{0}]:",
|
|
140
|
+
loopback_warn: "{0} 只在這台電腦上有效,別人的機群和瀏覽器連不到。仍要使用嗎?[y/N] ",
|
|
141
|
+
web_listen_q: "網頁監聽:要監聽的網路介面位址與埠 [{0}]:",
|
|
142
|
+
member_listen_q: "成員監聽:要監聽的網路介面位址與埠 [{0}]:",
|
|
143
|
+
listen_need: "請輸入 主機:埠,例如 192.0.2.10:8443(單一介面;不接受 0.0.0.0)。",
|
|
144
|
+
network_check: "正在檢查 Hub 的兩個本機監聽端點…",
|
|
145
|
+
network_web: "網頁監聽", network_member: "成員監聽", network_both: "Hub 監聽端點",
|
|
146
|
+
network_invalid: "{0}:請使用特定網路介面的位址及 1 到 65535 的埠號,不接受萬用位址。",
|
|
147
|
+
network_unresolved: "{0}:主機名稱未在 2 秒內解析。請改用這台電腦已有的 IP 位址,或修正 DNS。",
|
|
148
|
+
network_interface: "{0}:這台電腦無法使用此位址。請選擇預定網路介面已有的 IP 位址。",
|
|
149
|
+
network_occupied: "{0}:位址與埠已被使用,也可能與另一個 Hub 監聽端點重複。請改用其他埠;沒有停止任何既有程序。",
|
|
150
|
+
network_permission: "{0}:這個帳號無權監聽該埠。請選擇大於 1024 的非特權埠,或請主機管理員安排。",
|
|
151
|
+
network_reserved: "{0}:此端點保留給 AgEnD 的本機儀表板或預覽。請替 Hub 選擇其他埠。",
|
|
152
|
+
network_unavailable: "{0}:無法完成本機綁定位址檢查。請檢查網路介面及可用的通訊端,再重試。",
|
|
153
|
+
network_ok: "兩個 Hub 端點皆可在本機監聽,檢查用通訊端已關閉。這不代表其他電腦的 DNS、防火牆或反向代理路由已可用。啟動後,請從成員電腦測試兩個對外公布的 HTTPS 位址。",
|
|
154
|
+
network_unchanged: "這次檢查沒有寫入 Hub 設定。請修正監聽端點後重試;中斷的設定流程必須使用已儲存的位址續作。",
|
|
155
|
+
tls_title: "瀏覽器用的 HTTPS 憑證",
|
|
156
|
+
tls_intro: "請匯入涵蓋 {0} 的受信任憑證,或為這個位址產生有效 30 天的自簽憑證。自行安排信任前,瀏覽器會對自簽憑證顯示警告。產生憑證不會變更任何信任存放區。Hub 絕不透過一般 HTTP 讓人登入。",
|
|
157
|
+
tls_cert_q: "憑證檔(PEM,含完整憑證鏈),或輸入 generate 產生有效 30 天的自簽憑證:",
|
|
158
|
+
tls_key_q: "對應的私鑰檔(PEM,未加密):",
|
|
159
|
+
tls_needed: "你需要 {0} 的憑證與私鑰:\n • 由同事瀏覽器信任的憑證機構簽發(通常是 IT 部門),\n • 名稱涵蓋主機 {1}(subject alternative name),\n • PEM 檔:憑證(含憑證鏈)與未加密的私鑰。\n沒有做任何變更。準備好後再執行 agend hub init。",
|
|
160
|
+
tls_problem: "這個憑證無法使用:",
|
|
161
|
+
tls_self_signed: "這是自簽憑證:除非在同事電腦上安裝為信任憑證,瀏覽器會跳出警告。仍要使用嗎?[y/N] ",
|
|
162
|
+
tls_ok: "{0} 的憑證,有效到 {1}。",
|
|
163
|
+
tls_fingerprint: "瀏覽器憑證 SHA-256:{0}",
|
|
164
|
+
tls_generate_unavailable: "這個版本無法產生憑證。請改用現有憑證與對應的私鑰檔。",
|
|
165
|
+
tls_generate_failed: "無法產生瀏覽器憑證。請確認已安裝 OpenSSL,或改用現有憑證與私鑰檔。",
|
|
166
|
+
tls_stage_kept: "私人憑證暫存仍保留於 {0}。初始化若尚未完成,請執行 agend hub init 繼續;已完成時,請先檢查再手動刪除。",
|
|
167
|
+
retry_q: "[r] 再試一次 [q] 離開:",
|
|
168
|
+
dir_title: "目錄(LDAP / Active Directory,只接受 LDAPS)",
|
|
169
|
+
dir_realm_q: "目錄代號:這個目錄的固定短名稱,小寫(例如「corp」):",
|
|
170
|
+
dir_url_q: "目錄位址(ldaps://主機[:埠]):",
|
|
171
|
+
dir_ca_q: "目錄 CA:輸入 PEM 檔案、輸入「fetch」檢查並從此目錄取得,或按 Enter 使用系統信任的根憑證:",
|
|
172
|
+
dir_profile_q: "目錄種類:[1] Active Directory [2] OpenLDAP [1]:",
|
|
173
|
+
dir_base_q: "人員所在位置(base DN,例如 dc=example,dc=com):",
|
|
174
|
+
dir_bind_q: "Hub 用來查詢的唯讀服務帳號(bind DN):",
|
|
175
|
+
dir_bind_pw_q: "服務帳號密碼(不會顯示):",
|
|
176
|
+
dir_bind_empty: "請輸入非空白的服務帳號密碼,或匯入其私有檔案。",
|
|
177
|
+
dir_bind_source_q: "服務帳號密碼:[1] 隱藏輸入 [2] 匯入私密檔案 [1]:",
|
|
178
|
+
dir_bind_source_invalid: "請選 1 輸入密碼,或選 2 匯入私密檔案。",
|
|
179
|
+
dir_bind_file_q: "你擁有的 0600 或 0400 UTF-8 密碼檔之絕對路徑(1–1024 位元組)。會原樣使用所有位元組,包含結尾換行;來源檔保留原處:",
|
|
180
|
+
dir_bind_file_invalid: "無法匯入密碼檔。請使用你擁有的普通檔案,權限為 0600 或 0400,且不可包含符號連結;內容須未變動、非空且為有效 UTF-8、最多 1024 位元組且不可含 NUL。未顯示或儲存任何密碼。",
|
|
181
|
+
dir_invalid: "這組目錄設定無法使用:{0}",
|
|
182
|
+
dir_ca_unreadable: "CA 檔案必須包含 1 到 4 張目前有效的 PEM 格式 CA 憑證;憑證區塊之外僅能有空白,且總計不超過 64 KiB。",
|
|
183
|
+
dir_ca_compare: "請將每張 CA 的指紋與目錄管理員或憑證存放區提供的可信副本核對。",
|
|
184
|
+
dir_ca_details: "憑證:{0}\nSHA-256:{1}\n到期時間:{2}",
|
|
185
|
+
dir_ca_confirm_q: "信任這些確切的 CA 憑證,供此 Hub 目錄使用嗎?[y/N] ",
|
|
186
|
+
dir_leaf_unverified: "這是目錄提供的憑證,目前尚未信任其簽發者;尚未傳送任何帳號或密碼。",
|
|
187
|
+
dir_leaf_confirm_q: "請透過可信來源核對。輸入完整 SHA-256 指紋以允許一次性的 CA 查詢,或按 Enter 取消:",
|
|
188
|
+
dir_leaf_refused: "指紋不符。未傳送目錄帳號或密碼,也未信任任何 CA。",
|
|
189
|
+
dir_ca_bind_needed: "匿名 CA 查詢遭拒。唯讀服務帳號密碼只會透過已驗證為你所確認之確切憑證指紋的 TLS 連線傳送。",
|
|
190
|
+
dir_ca_fetch_failed: "無法取得並驗證目錄 CA。請檢查位址與憑證指紋,或匯入目錄管理員提供的 CA PEM 檔。取得功能支援伺服器提供的憑證鏈,或同一目錄的 LDAP AIA cACertificate 項目,並需要 Node 22.9 以上版本。",
|
|
191
|
+
signin_title: "選擇第一位 Hub 管理員。唯讀服務帳號只會查詢這個目錄帳號;當事人稍後在自己的瀏覽器登入,此處不需要個人密碼。",
|
|
192
|
+
signin_login_q: "第一位管理員的目錄帳號:",
|
|
193
|
+
signin_ok: "已找到 {0}({1})。這只會選定不可變更的目錄身分,並未登入。",
|
|
194
|
+
signin_invalid: "找不到符合條件的目錄帳號。",
|
|
195
|
+
signin_not_eligible: "這個帳號在目錄中已停用或已過期。",
|
|
196
|
+
signin_unavailable: "連不到目錄,或無法驗證它的憑證:{0}",
|
|
197
|
+
signin_bad_input: "請輸入目錄帳號。",
|
|
198
|
+
signin_retry_q: "[r] 再試一次 [e] 修改目錄設定 [q] 離開:",
|
|
199
|
+
signin_too_many: "嘗試次數太多。沒有做任何變更。",
|
|
200
|
+
admin_q: "要指定 {0}({1})為第一位 Hub 管理員嗎?當事人首次成功在瀏覽器登入後,才會取得管理權限。[y/N] ",
|
|
201
|
+
admin_browser_next: "第一位管理員:請開啟 {0},以指定的目錄身分登入以取得管理權限。這個終端機並未進行個人登入。",
|
|
202
|
+
retention_title: "Hub 保留紀錄的天數。按 Enter 採用建議值,或選擇其他天數;初始化前會再次確認。",
|
|
203
|
+
retention_content_q: "提問與回答內容,天數 [{0}]:",
|
|
204
|
+
retention_event_q: "事件紀錄(誰問了誰、何時、結果),天數 [{0}]:",
|
|
205
|
+
retention_need: "請輸入 1 到 3650 的整數天數。",
|
|
206
|
+
summary_title: "即將設定:",
|
|
207
|
+
pilot_reminder: "提醒:與既有機群同一個帳號;它的 agent 讀得到 Hub 的檔案。",
|
|
208
|
+
confirm_q: "輸入「initialize」寫入這份設定(輸入其他內容即取消):",
|
|
209
|
+
confirm_word: "initialize",
|
|
210
|
+
failed: "Hub 沒有設定成功:",
|
|
211
|
+
stays_off: "Hub 維持關閉。",
|
|
212
|
+
done: "Hub 已設定完成(Hub id {0})。",
|
|
213
|
+
service_installed: "這個帳號已安裝 AgEnD 服務,沒有重新安裝。重新啟動它即可啟動 Hub:agend restart",
|
|
214
|
+
service_q: "現在要把 AgEnD 安裝成服務(systemd / launchd;Windows 透過 WSL),讓 Hub 開機自動啟動嗎?輸入「install」安裝,其他內容則略過:",
|
|
215
|
+
service_word: "install",
|
|
216
|
+
service_ok: "服務已安裝並要求啟動;Hub 會等候前一個程序與監聽端點關閉後才開放服務。",
|
|
217
|
+
service_install_idle: "尚未確認前一個 Hub 程序或 PID 紀錄已停止。請使用 agend stop,檢查可能過期的 fleet.pid,再執行 agend install。這次檢查沒有對 PID 傳送訊號,也沒有移除紀錄。",
|
|
218
|
+
service_drain_wait: "正在等待前一個 Hub 程序與監聽端點關閉,再啟動服務…",
|
|
219
|
+
service_restart_requested: "已要求重新啟動。替代程序會等候舊 Hub 程序與監聽端點關閉;請查看 Hub 網址與 fleet.log,確認啟動完成。",
|
|
220
|
+
service_drain_config: "Hub 拒絕啟動:設定已變更或無法讀取。請檢查 fleet.yaml 後重試 agend restart;尚未建立替代機群。",
|
|
221
|
+
service_drain_process: "Hub 拒絕啟動:無法驗證前一個 PID 紀錄或程序身分。請先檢查舊服務與 fleet.pid 再重試;沒有對程序傳送訊號,也沒有移除 PID 檔案。",
|
|
222
|
+
service_drain_listeners: "Hub 拒絕啟動:無法檢查監聽端點的網路介面。請確認設定位址與權限後,再重試 agend restart。",
|
|
223
|
+
service_drain_timeout: "Hub 拒絕啟動:前一個程序或監聽端點未在既有停止寬限時間內關閉。請檢查舊服務及已占用的埠,再重試;尚未建立替代機群。",
|
|
224
|
+
service_failed: "無法安裝服務:{0}。Hub 設定已保留;之後可用 agend install 安裝。",
|
|
225
|
+
service_skipped: "沒有安裝服務。可用 agend start 啟動 AgEnD,或之後用 agend install 安裝服務。",
|
|
226
|
+
handoff_title: "Hub 安裝紀錄({0})",
|
|
227
|
+
handoff_snapshot: "這是初始化時的設定值。請到設定頁查看目前的網址與狀態;若初始化尚未完成,可用 agend hub init 繼續。",
|
|
228
|
+
handoff_record: "私人安裝清單:{0}",
|
|
229
|
+
handoff_config: "共用設定檔(Hub 設定位於 hub.*):{0}",
|
|
230
|
+
handoff_data: "Hub 身分、TLS、密鑰、資料庫、稽核與初始化紀錄:{0}",
|
|
231
|
+
handoff_log: "共用機群日誌:{0}",
|
|
232
|
+
handoff_service: "目前的服務定義:{0}({1})",
|
|
233
|
+
handoff_scope: "以下指令會控制既有的 AgEnD 服務,以及它執行的所有 agent,包括共用此服務的既有機群。",
|
|
234
|
+
handoff_stop: "停止:{0}",
|
|
235
|
+
handoff_restart: "重新啟動:{0}",
|
|
236
|
+
handoff_uninstall: "移除服務(會要求確認):{0}",
|
|
237
|
+
handoff_preserve: "移除服務會保留 AgEnD 套件、fleet.yaml,以及 Hub 身分、密鑰、資料與日誌。Hub 執行時會依保留規則清除紀錄;停止或移除服務不會抹除資料。若另行手動移除資料,請先保留私人備份。",
|
|
238
|
+
handoff_repeat: "再次顯示交接資訊:{0}",
|
|
239
|
+
handoff_unavailable: "找不到私人 Hub 安裝紀錄,或無法讀取。較舊版本建立的 Hub 可能沒有這份紀錄。請確認 AGEND_HOME 與私人權限;未完成的初始化可用 agend hub init 繼續。顯示交接資訊沒有變更服務或資料。",
|
|
240
|
+
pairing_title: "讓機群連上這個 Hub",
|
|
241
|
+
pairing_steps: " 1. 以管理員身分登入 {0}/web,為機群主人建立配對碼(管理 → 已配對的機群)。\n 2. 成員主人在自己的電腦開啟 設定 → 連線到 Hub,輸入 {1} 與配對碼。\n 3. 兩邊畫面會顯示相同的指紋;核對後由主人確認、你核准。\n成員會釘選這個 Hub 的憑證金鑰:SHA-256 {2}",
|
|
242
|
+
};
|
|
243
|
+
export function ht(key, ...args) {
|
|
244
|
+
const template = (getLocale() === "zh-TW" ? zhTW : en)[key];
|
|
245
|
+
return template.replace(/\{(\d+)\}/g, (_, i) => String(args[Number(i)] ?? ""));
|
|
246
|
+
}
|
|
247
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../../src/hub/init/text.ts"],"names":[],"mappings":"AAAA,sHAAsH;AACtH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,EAAE,GAAG;IACT,UAAU,EAAE,qFAAqF;IACjG,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAE,iBAAiB;IACpF,KAAK,EAAE,wCAAwC;IAC/C,KAAK,EACH,wQAAwQ;IAC1Q,UAAU,EAAE,uGAAuG;IACnH,UAAU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EAAE,YAAY;IAC5B,cAAc,EAAE,2BAA2B;IAC3C,YAAY,EAAE,gCAAgC;IAC9C,WAAW,EAAE,YAAY;IACzB,eAAe,EAAE,kBAAkB;IACnC,aAAa,EAAE,kDAAkD;IACjE,YAAY,EAAE,QAAQ;IACtB,eAAe,EAAE,UAAU;IAC3B,iBAAiB,EAAE,iBAAiB;IACpC,gBAAgB,EAAE,oGAAoG;IACtH,cAAc,EAAE,cAAc;IAC9B,mBAAmB,EAAE,6GAA6G;IAClI,aAAa,EAAE,aAAa;IAC5B,aAAa,EACX,6JAA6J;CAChK,CAAC;AAEF,MAAM,UAAU,EAAE,CAAC,GAAQ,EAAE,GAAG,IAAyB;IACvD,MAAM,QAAQ,GAAG,CAAC,SAAS,EAAE,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;IAC5D,OAAO,QAAQ,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,CAAS,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AACzF,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hub initialization (S-48 / S5a, hub.md §5 "S5: audit, notifications, administration and init"). HubInitPlan and
|
|
3
|
+
* HubInitializer follow hub.md plus the S1 additions agreed with its author (hub-s48-init):
|
|
4
|
+
* - `memberListen` / `webListen`: explicit listener addresses (no implicit all-interface exposure);
|
|
5
|
+
* - `webTls`: the browser-facing HTTPS certificate the operator supplies (separate from the member certificate);
|
|
6
|
+
* - `prepareConfirmation`: creates the opaque, plan-bound `localOwnerConfirmation` that `commit` requires.
|
|
7
|
+
*/
|
|
8
|
+
import type { HubDirectoryConfig, PersonKey } from "../directory/index.js";
|
|
9
|
+
export type HubCoexistence = "dedicated" | "same-user-pilot";
|
|
10
|
+
export interface HubInitPlan {
|
|
11
|
+
name: string;
|
|
12
|
+
/** Browser origin (https://host[:port]) — distinct from memberOrigin. */
|
|
13
|
+
webOrigin: string;
|
|
14
|
+
/** Member transport origin; its host goes into the self-signed member certificate's SAN. */
|
|
15
|
+
memberOrigin: string;
|
|
16
|
+
directory: HubDirectoryConfig;
|
|
17
|
+
bindPasswordRef: string;
|
|
18
|
+
/** The immutable directory identity designated by the local owner; claimed on its first browser sign-in. */
|
|
19
|
+
administrator: PersonKey;
|
|
20
|
+
retention: {
|
|
21
|
+
contentDays: number;
|
|
22
|
+
eventDays: number;
|
|
23
|
+
};
|
|
24
|
+
coexistence: HubCoexistence;
|
|
25
|
+
/** Where the member transport listens (a specific interface address, never a wildcard). */
|
|
26
|
+
memberListen: HubListen;
|
|
27
|
+
/** Where the browser HTTPS listener listens. */
|
|
28
|
+
webListen: HubListen;
|
|
29
|
+
/** The operator's browser certificate chain and private key (PEM files); copied privately on commit. */
|
|
30
|
+
webTls: {
|
|
31
|
+
certFile: string;
|
|
32
|
+
keyFile: string;
|
|
33
|
+
/** Private staging owned by explicit wizard generation, for cleanup after resume. */
|
|
34
|
+
generated?: true;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export interface HubListen {
|
|
38
|
+
host: string;
|
|
39
|
+
port: number;
|
|
40
|
+
}
|
|
41
|
+
export interface HubInitInspection {
|
|
42
|
+
existingFleet: boolean;
|
|
43
|
+
existingHub: boolean;
|
|
44
|
+
/** Addition: what was found, for the wizard's warning. */
|
|
45
|
+
fleetEvidence: readonly string[];
|
|
46
|
+
/** Addition: an initialization that stopped part-way (a visible repair state), if any. */
|
|
47
|
+
incomplete?: {
|
|
48
|
+
startedAt: string;
|
|
49
|
+
stage: string;
|
|
50
|
+
plan: HubInitPlan;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export interface HubIdentitySummary {
|
|
54
|
+
hubId: string;
|
|
55
|
+
/** SHA-256 of the member certificate's SubjectPublicKeyInfo (what members pin), lowercase hex. */
|
|
56
|
+
spkiSha256: string;
|
|
57
|
+
issuerKeyId: string;
|
|
58
|
+
/** PEM public key of the Ed25519 issuer. */
|
|
59
|
+
issuerPublicKey: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* S1 owns Hub key material (hub.md §2): a TLS key + self-signed certificate with the member address in its SAN, a
|
|
63
|
+
* stable random hubId and the Ed25519 issuer key. Init calls it; it never generates keys itself.
|
|
64
|
+
*/
|
|
65
|
+
export interface HubIdentityProvider {
|
|
66
|
+
readonly available: boolean;
|
|
67
|
+
/** Create the identity privately under the AgEnD home. Must refuse to overwrite an existing identity. */
|
|
68
|
+
provision(args: {
|
|
69
|
+
home: string;
|
|
70
|
+
memberOrigin: string;
|
|
71
|
+
}): Promise<HubIdentitySummary>;
|
|
72
|
+
/** The identity already provisioned under the home, if any (to resume an interrupted initialization). */
|
|
73
|
+
read(home: string): Promise<HubIdentitySummary | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* S1 `sealHubInitialization` (read-only): the issuer key's Ed25519 signature over
|
|
76
|
+
* JSON.stringify(["agend-hub-init-v1", 1, hubId, planDigest, committedAt, confirmationId]). S5 writes the manifest.
|
|
77
|
+
* Called only after the local-owner confirmation was verified, before `hub.enabled` is published.
|
|
78
|
+
*/
|
|
79
|
+
seal(args: {
|
|
80
|
+
home: string;
|
|
81
|
+
planDigest: string;
|
|
82
|
+
confirmationId: string;
|
|
83
|
+
committedAt: string;
|
|
84
|
+
}): string | Promise<string>;
|
|
85
|
+
}
|
|
86
|
+
export interface HubInitSecrets {
|
|
87
|
+
/** The directory service account's password; written to the private file bindPasswordRef names, nowhere else. */
|
|
88
|
+
bindPassword: string;
|
|
89
|
+
}
|
|
90
|
+
export interface HubInitConfirmation {
|
|
91
|
+
/** Opaque, single-use, expires; bound to the plan digest and to the secrets given with it. */
|
|
92
|
+
reference: string;
|
|
93
|
+
/** Digest of the plan and its certificate files that this confirmation is bound to (not the sealed config digest). */
|
|
94
|
+
planDigest: string;
|
|
95
|
+
summary: string;
|
|
96
|
+
}
|
|
97
|
+
export interface HubInitResult {
|
|
98
|
+
hubId: string;
|
|
99
|
+
spkiSha256: string;
|
|
100
|
+
issuerKeyId: string;
|
|
101
|
+
configPath: string;
|
|
102
|
+
}
|
|
103
|
+
export interface HubInitializer {
|
|
104
|
+
inspect(): Promise<HubInitInspection>;
|
|
105
|
+
/** Throws HubInitError with every problem; nothing is written. */
|
|
106
|
+
validate(plan: HubInitPlan): Promise<void>;
|
|
107
|
+
/** Addition: validate, then hold the plan + secrets in memory under a fresh reference for commit. */
|
|
108
|
+
prepareConfirmation(plan: HubInitPlan, secrets: HubInitSecrets): Promise<HubInitConfirmation>;
|
|
109
|
+
commit(plan: HubInitPlan, localOwnerConfirmation: string): Promise<HubInitResult>;
|
|
110
|
+
}
|
|
111
|
+
export declare class HubInitError extends Error {
|
|
112
|
+
readonly problems: readonly string[];
|
|
113
|
+
constructor(message: string, problems?: readonly string[]);
|
|
114
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/hub/init/types.ts"],"names":[],"mappings":"AA0GA,MAAM,OAAO,YAAa,SAAQ,KAAK;IAG1B,QAAQ;IAFnB,YACE,OAAe,EACN,QAAQ,GAAsB,CAAC,OAAO,CAAC;QAEhD,KAAK,CAAC,OAAO,CAAC,CAAC;wBAFN,QAAQ;QAGjB,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;IAC7B,CAAC;CACF"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { createHubDirectory as CreateHubDirectory } from "../directory/index.js";
|
|
2
|
+
import { type WizardIO } from "./prompt.js";
|
|
3
|
+
import { type HubInitializer, type HubInitPlan } from "./types.js";
|
|
4
|
+
import { type DirectoryCertificateProbe, type DirectoryCaBundle } from "./directory-certificate.js";
|
|
5
|
+
import type { HubBrowserMaterial } from "./browser-certificate.js";
|
|
6
|
+
import { type HubNetworkCheck } from "./network.js";
|
|
7
|
+
export interface HubServiceControl {
|
|
8
|
+
installed(): boolean;
|
|
9
|
+
/** Install and start the existing AgEnD service wrapper; returns a short description. Throws on failure. */
|
|
10
|
+
install(): Promise<string>;
|
|
11
|
+
}
|
|
12
|
+
export interface HubWizardDeps {
|
|
13
|
+
io: WizardIO;
|
|
14
|
+
home: string;
|
|
15
|
+
initializer: HubInitializer;
|
|
16
|
+
createDirectory: typeof CreateHubDirectory;
|
|
17
|
+
readFile(path: string): string;
|
|
18
|
+
readSecretFile?(path: string): string;
|
|
19
|
+
service: HubServiceControl;
|
|
20
|
+
now?: () => number;
|
|
21
|
+
/** Default: real local TCP preflight. Isolated tests may supply an inert checker. */
|
|
22
|
+
checkNetwork?: HubNetworkCheck;
|
|
23
|
+
createBrowserCertificate?(origin: string): Promise<HubBrowserMaterial>;
|
|
24
|
+
recoverBrowserCertificate?(plan: HubInitPlan): HubBrowserMaterial | null;
|
|
25
|
+
directoryCertificates?: {
|
|
26
|
+
inspect(url: string): Promise<DirectoryCertificateProbe>;
|
|
27
|
+
fetch(probe: DirectoryCertificateProbe, pin: string, credentials?: {
|
|
28
|
+
bindDn: string;
|
|
29
|
+
password: string;
|
|
30
|
+
}): Promise<DirectoryCaBundle>;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export type HubWizardOutcome = "initialized" | "cancelled" | "refused";
|
|
34
|
+
export declare function runHubInitWizard(deps: HubWizardDeps): Promise<HubWizardOutcome>;
|