@xopcai/xopc 0.0.114 → 0.0.115
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/browser-ext/manifest.json +1 -1
- package/dist/extensions/feishu/src/outbound/media-load.js +1 -1
- package/dist/extensions/feishu/src/workflow-progress.js +1 -1
- package/dist/extensions/telegram/src/adapters/streaming-adapter.js +1 -1
- package/dist/extensions/telegram/src/inbound-processor.js +1 -1
- package/dist/extensions/telegram/src/plugin.js +1 -1
- package/dist/extensions/telegram/src/routing-integration.js +2 -2
- package/dist/extensions/telegram/src/update-offset-store.js +1 -1
- package/dist/extensions/telegram/src/workflow-progress.js +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/api/api.js +2 -2
- package/dist/extensions/weixin/src/auth/accounts.js +1 -1
- package/dist/extensions/weixin/src/cdn/upload.js +1 -1
- package/dist/extensions/weixin/src/media/data-url.js +1 -1
- package/dist/extensions/weixin/src/messaging/debug-mode.js +1 -1
- package/dist/extensions/weixin/src/messaging/inbound.js +1 -1
- package/dist/extensions/weixin/src/messaging/process-message.js +1 -1
- package/dist/extensions/weixin/src/plugin.js +1 -1
- package/dist/extensions/weixin/src/storage/sync-buf.js +1 -1
- package/dist/extensions/weixin/src/workflow-progress.js +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-Fp-p7bP1.js → agent-avatar-dicebear-DVnBfANm.js} +1 -1
- package/dist/gateway/static/root/assets/agent-browser-settings-page-DPXc4hz8.js +6 -0
- package/dist/gateway/static/root/assets/agent-defaults-tabbed-page-CTJ0YnRQ.js +1 -0
- package/dist/gateway/static/root/assets/agents-zJXQfJ_W.js +71 -0
- package/dist/gateway/static/root/assets/{app-management-settings-panel-v24i25Oj.js → app-management-settings-panel-DzGbdr04.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-ycbdJRuZ.js → appearance-settings-BQpPSTHD.js} +1 -1
- package/dist/gateway/static/root/assets/apps-page-CPjfyzSD.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-CJzSADJo.js → archive-plugin-CXu-Csep.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-BTAB4zGS.js → attachment-load-BAjgOoGY.js} +1 -1
- package/dist/gateway/static/root/assets/{binary-plugins-DXR1-mct.js → binary-plugins-BSBgB2hO.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-CzQri9h2.js → block-editor-BpXw9TTR.js} +44 -44
- package/dist/gateway/static/root/assets/channels-settings-BbPUpzWB.js +1 -0
- package/dist/gateway/static/root/assets/{config-api-DRqjEvAx.js → config-api-NOoPiIYz.js} +1 -1
- package/dist/gateway/static/root/assets/connectors-settings-CAXYMOdp.js +2 -0
- package/dist/gateway/static/root/assets/{cron-api-BXaZXv1o.js → cron-api-C9BOqAXd.js} +1 -1
- package/dist/gateway/static/root/assets/cron-page-DuUbBeKI.js +3 -0
- package/dist/gateway/static/root/assets/dreaming-settings-DQ4DtiK1.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-DSkqMYo7.js → extension-debug-page-D9kgUHCc.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-h2dGDbMN.js → extension-page-CGyhXqzR.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-hN99RhOi.js → extension-settings-page-DL8Xquqd.js} +1 -1
- package/dist/gateway/static/root/assets/{fetch-D9QqUtzZ.js → fetch-D0VXA932.js} +1 -1
- package/dist/gateway/static/root/assets/{format-interval-label-D6E687rG.js → format-interval-label-Be8SmgUw.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-api-CLt_SKTC.js → gateway-config-api-C-xjn__h.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-1PDi4lI0.js → gateway-settings-BMPwIjKI.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-N7Z_sz7p.js → gateway-startup-retry-DERUH61L.js} +1 -1
- package/dist/gateway/static/root/assets/goal-detail-page-BJsyjJnF.js +1 -0
- package/dist/gateway/static/root/assets/goals-config-api-BPmqWk90.js +1 -0
- package/dist/gateway/static/root/assets/goals-page-BerDgIhw.js +2 -0
- package/dist/gateway/static/root/assets/goals-settings-ByTjeAto.js +1 -0
- package/dist/gateway/static/root/assets/{heartbeat-config-api-DGPadTw-.js → heartbeat-config-api-Bfdzr8oV.js} +1 -1
- package/dist/gateway/static/root/assets/{heartbeat-settings-BHHAs8ZX.js → heartbeat-settings-TbHgcjTn.js} +1 -1
- package/dist/gateway/static/root/assets/{index-DefIdW9q.js → index-AkTrf6Pb.js} +56 -56
- package/dist/gateway/static/root/assets/index-fh5sXTj9.css +1 -0
- package/dist/gateway/static/root/assets/{interval-presets-CEklPQ_r.js → interval-presets-utKbuCRY.js} +1 -1
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-Ce_aQ8Iv.js → keyboard-shortcuts-settings-CjqS6c6V.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-DGXuPf5B.js +2 -0
- package/dist/gateway/static/root/assets/{markdown-split-BMz3xPXO.js → markdown-split-DW8C47iB.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-BalOSoz9.js → media-plugins-D6HwDhDT.js} +1 -1
- package/dist/gateway/static/root/assets/messages-upgxw6Ub.js +3 -0
- package/dist/gateway/static/root/assets/models-hub-panel-Bot16nn7.js +2 -0
- package/dist/gateway/static/root/assets/note-detail-page-Brlyou8M.js +2 -0
- package/dist/gateway/static/root/assets/{note-image-lightbox-C5D1Q5mY.js → note-image-lightbox-pJM35Pz5.js} +1 -1
- package/dist/gateway/static/root/assets/notes-page-DvZ4pwc-.js +1 -0
- package/dist/gateway/static/root/assets/{preview-open-alternatives-CYFR5U9l.js → preview-open-alternatives-CVwHuyN6.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-BZEDmxbZ.js +1 -0
- package/dist/gateway/static/root/assets/{save-bar-controls-BQ79Z5IP.js → save-bar-controls-Ba-UEk7x.js} +1 -1
- package/dist/gateway/static/root/assets/{schedule-field-Bgk6Emue.js → schedule-field-CNN9595U.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-DzS36TMa.js → schema-form-DnNMmtD5.js} +1 -1
- package/dist/gateway/static/root/assets/sessions-page-DdGGlsfn.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-DlkEkPf9.js +1 -0
- package/dist/gateway/static/root/assets/{settings-collapsible-section-CdjFnSAy.js → settings-collapsible-section-CmOz80i5.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-form-section-DZLy_exu.js → settings-form-section-BmK7JJOV.js} +1 -1
- package/dist/gateway/static/root/assets/settings-page-DFPTrsPF.js +1 -0
- package/dist/gateway/static/root/assets/setup-status-panel-CYCCfgh4.js +1 -0
- package/dist/gateway/static/root/assets/{share-preview-page-_qRDr4g_.js → share-preview-page-Dp2qGrHC.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-Bff1pGd0.js +1 -0
- package/dist/gateway/static/root/assets/skill-reload-api-CJGKpBur.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-C6ocduTD.js +2 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-hqaBF5aG.js → system-settings-panel-5jrIEr5b.js} +1 -1
- package/dist/gateway/static/root/assets/{use-agent-defaults-form-zbVIQLOA.js → use-agent-defaults-form-BuiXLIs5.js} +1 -1
- package/dist/gateway/static/root/assets/{use-channel-catalog-CbXq97rT.js → use-channel-catalog-CHlO8J9G.js} +1 -1
- package/dist/gateway/static/root/assets/{use-settings-tab-guard-DwS3drWK.js → use-settings-tab-guard-CW5JORnl.js} +1 -1
- package/dist/gateway/static/root/assets/voice-api-key-field-DDoQyghO.js +1 -0
- package/dist/gateway/static/root/assets/{voice-player-store-DSuOd9zy.js → voice-player-store-DDDWYHvg.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-page.utils-C0Uq3xyq.js → workflow-page.utils-CKjeEGqx.js} +1 -1
- package/dist/gateway/static/root/assets/workflows-page-B604ehHG.js +18 -0
- package/dist/gateway/static/root/index.html +5 -5
- package/dist/gateway/static/root/logo.svg +4 -3
- package/dist/package.js +1 -1
- package/dist/src/agent/agent-manager.js +6 -6
- package/dist/src/agent/agent-scope.js +1 -1
- package/dist/src/agent/bootstrap/load-bootstrap-files.js +1 -1
- package/dist/src/agent/bootstrap/project-agents-context.js +1 -1
- package/dist/src/agent/context/workspace-seed.js +2 -2
- package/dist/src/agent/context/workspace-state.js +1 -1
- package/dist/src/agent/context/workspace.js +1 -1
- package/dist/src/agent/embedded/session-tool-result-guard.js +8 -1
- package/dist/src/agent/embedded/session-tool-result-guard.js.map +1 -1
- package/dist/src/agent/goals/checklist-judge.d.ts +1 -0
- package/dist/src/agent/goals/checklist-judge.js +3 -2
- package/dist/src/agent/goals/checklist-judge.js.map +1 -1
- package/dist/src/agent/goals/evaluate-turn.d.ts +1 -1
- package/dist/src/agent/goals/evaluate-turn.js +1 -0
- package/dist/src/agent/goals/evaluate-turn.js.map +1 -1
- package/dist/src/agent/goals/goal-locale.js +2 -2
- package/dist/src/agent/goals/post-turn.d.ts +6 -1
- package/dist/src/agent/goals/post-turn.js +15 -6
- package/dist/src/agent/goals/post-turn.js.map +1 -1
- package/dist/src/agent/image/load-image-media.js +2 -2
- package/dist/src/agent/ipc/inbox.js +3 -3
- package/dist/src/agent/ipc/socket.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-materialize.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-runtime.js +1 -1
- package/dist/src/agent/mcp/mcp-transport-config.js +1 -1
- package/dist/src/agent/mcp/mcp-transport.js +1 -1
- package/dist/src/agent/memory/builtin-memory-store.js +1 -1
- package/dist/src/agent/memory/dreaming/deep-promotion.js +1 -1
- package/dist/src/agent/memory/dreaming/events.js +1 -1
- package/dist/src/agent/memory/dreaming/last-run.js +1 -1
- package/dist/src/agent/memory/dreaming/light-sweep.js +1 -1
- package/dist/src/agent/memory/dreaming/preview.js +1 -1
- package/dist/src/agent/memory/dreaming/rem-patterns.js +1 -1
- package/dist/src/agent/memory/dreaming/short-term-store.js +1 -1
- package/dist/src/agent/memory/dreaming/utils.js +1 -1
- package/dist/src/agent/memory/memory-flush.js +1 -1
- package/dist/src/agent/memory/plugin-discovery.js +1 -1
- package/dist/src/agent/models/manager.js +1 -1
- package/dist/src/agent/prompt/memory/index.js +1 -1
- package/dist/src/agent/prompt/service-prompt-builder.js +2 -2
- package/dist/src/agent/reply/post-compaction-context.js +1 -1
- package/dist/src/agent/reply/workspace-boundary-read.js +1 -1
- package/dist/src/agent/sandbox/path-policy.js +2 -2
- package/dist/src/agent/service.js +4 -4
- package/dist/src/agent/session/session-inspector.js +1 -1
- package/dist/src/agent/skills/config.js +2 -2
- package/dist/src/agent/skills/filesystem-watcher.js +1 -1
- package/dist/src/agent/skills/hub-hash.js +2 -2
- package/dist/src/agent/skills/hub-lock.js +1 -1
- package/dist/src/agent/skills/hub-pull.js +2 -2
- package/dist/src/agent/skills/index.js +2 -2
- package/dist/src/agent/skills/installer.js +2 -2
- package/dist/src/agent/skills/managed-store.js +1 -1
- package/dist/src/agent/skills/skill-manage-ops.js +1 -1
- package/dist/src/agent/skills/skill-manager.js +1 -1
- package/dist/src/agent/skills/skill-view-path.js +1 -1
- package/dist/src/agent/skills/test-framework.js +1 -1
- package/dist/src/agent/starter-agents.js +1 -1
- package/dist/src/agent/tools/dreaming-tool.js +1 -1
- package/dist/src/agent/tools/find.js +1 -1
- package/dist/src/agent/tools/grep.js +1 -1
- package/dist/src/agent/tools/image-generate-tool.js +1 -1
- package/dist/src/agent/tools/skill-manage-tool.js +1 -1
- package/dist/src/agent/tools/workflow-tool.js +1 -1
- package/dist/src/agent/workflow/catalog.js +1 -1
- package/dist/src/agent/workflow/snapshot.d.ts +10 -0
- package/dist/src/agent/workflow/snapshot.js +136 -1
- package/dist/src/agent/workflow/snapshot.js.map +1 -1
- package/dist/src/ai-assist/text-assist.js +1 -1
- package/dist/src/auth/credentials.js +2 -2
- package/dist/src/auth/profiles/store.js +2 -2
- package/dist/src/auth/sync-provider-auth.js +1 -1
- package/dist/src/browser/cache-dir-policy.js +1 -1
- package/dist/src/browser/cdp-local-launcher.js +2 -2
- package/dist/src/browser/pipeline/source.js +1 -1
- package/dist/src/browser/providers/browser-ext-install.js +4 -4
- package/dist/src/browser/providers/cloakbrowser.js +5 -5
- package/dist/src/browser/providers/playwright-doctor.js +1 -1
- package/dist/src/browser/stealth.js +1 -1
- package/dist/src/channels/catalog/channel-catalog-service.d.ts +2 -1
- package/dist/src/channels/catalog/channel-catalog-service.js +133 -16
- package/dist/src/channels/catalog/channel-catalog-service.js.map +1 -1
- package/dist/src/channels/catalog/channel-catalog-types.d.ts +13 -0
- package/dist/src/channels/outbound/persist-store.js +1 -1
- package/dist/src/channels/pairing/allow-from-file.js +1 -1
- package/dist/src/channels/pairing/pairing-store.js +2 -2
- package/dist/src/chat-commands/agent-edit.js +2 -2
- package/dist/src/chat-commands/builtins/config.js +2 -2
- package/dist/src/cli/commands/config.js +1 -1
- package/dist/src/cli/commands/doctor/checks/channel-config.js +14 -1
- package/dist/src/cli/commands/doctor/checks/channel-config.js.map +1 -1
- package/dist/src/cli/commands/doctor/checks/config-health.js +1 -1
- package/dist/src/cli/commands/doctor/checks/provider-auth.js +1 -1
- package/dist/src/cli/commands/doctor/checks/state-integrity.js +1 -1
- package/dist/src/cli/commands/doctor/checks/workspace-status.js +1 -1
- package/dist/src/cli/commands/extension-create.js +1 -1
- package/dist/src/cli/commands/extension-dev.js +2 -2
- package/dist/src/cli/commands/extension-marketplace.js +2 -2
- package/dist/src/cli/commands/extension-pack.js +2 -2
- package/dist/src/cli/commands/extension.js +3 -3
- package/dist/src/cli/commands/gateway/logs.js +1 -1
- package/dist/src/cli/commands/image.js +1 -1
- package/dist/src/cli/commands/init.js +2 -2
- package/dist/src/cli/commands/models.js +1 -1
- package/dist/src/cli/commands/skills-test.js +1 -1
- package/dist/src/cli/templates.js +1 -1
- package/dist/src/cli/utils/gateway-client.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +2 -2
- package/dist/src/config/agent-profile.js +1 -1
- package/dist/src/config/agent-typed-models.js +1 -1
- package/dist/src/config/gateway-bind.js +1 -1
- package/dist/src/config/index.js +7 -7
- package/dist/src/config/loader.js +4 -4
- package/dist/src/config/models-json.js +2 -2
- package/dist/src/config/paths-state.js +1 -1
- package/dist/src/config/paths.js +1 -1
- package/dist/src/config/profile.js +1 -1
- package/dist/src/config/reload.js +1 -1
- package/dist/src/config/schema.d.ts +8 -0
- package/dist/src/config/schema.js +7 -0
- package/dist/src/config/schema.js.map +1 -1
- package/dist/src/config/web-patch.d.ts +1 -0
- package/dist/src/config/web-patch.js +1 -0
- package/dist/src/config/web-patch.js.map +1 -1
- package/dist/src/config/workspace-path.js +1 -1
- package/dist/src/cron/executor.js +1 -1
- package/dist/src/cron/service.js +1 -1
- package/dist/src/daemon/constants.js +1 -1
- package/dist/src/daemon/install-plan.js +2 -2
- package/dist/src/daemon/launchd.js +2 -2
- package/dist/src/daemon/schtasks.js +2 -2
- package/dist/src/daemon/systemd.js +2 -2
- package/dist/src/extensions/bundle-mcp.js +1 -1
- package/dist/src/extensions/discover-extensions.js +2 -2
- package/dist/src/extensions/health.js +1 -1
- package/dist/src/extensions/install.js +2 -2
- package/dist/src/extensions/loader.js +2 -2
- package/dist/src/extensions/lockfile.js +3 -3
- package/dist/src/extensions/security.js +1 -1
- package/dist/src/extensions/update.js +2 -2
- package/dist/src/gateway/agents-admin.js +2 -2
- package/dist/src/gateway/file-path-classifier.js +2 -2
- package/dist/src/gateway/hono/app.js +5 -1
- package/dist/src/gateway/hono/app.js.map +1 -1
- package/dist/src/gateway/hono/lib/config-payload.d.ts +3 -1
- package/dist/src/gateway/hono/lib/config-payload.js +7 -4
- package/dist/src/gateway/hono/lib/config-payload.js.map +1 -1
- package/dist/src/gateway/hono/lib/extension-store.js +2 -2
- package/dist/src/gateway/hono/lib/static-ui.js +2 -2
- package/dist/src/gateway/hono/middleware/strict-rate-limit.d.ts +4 -0
- package/dist/src/gateway/hono/middleware/strict-rate-limit.js +19 -5
- package/dist/src/gateway/hono/middleware/strict-rate-limit.js.map +1 -1
- package/dist/src/gateway/hono/routes/agents.js +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
- package/dist/src/gateway/hono/routes/channels.js +18 -14
- package/dist/src/gateway/hono/routes/channels.js.map +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +1 -1
- package/dist/src/gateway/hono/routes/deps.d.ts +1 -0
- package/dist/src/gateway/hono/routes/dreaming.js +1 -1
- package/dist/src/gateway/hono/routes/host-fs.js +2 -2
- package/dist/src/gateway/hono/routes/models.js +1 -1
- package/dist/src/gateway/hono/routes/shares.js +1 -1
- package/dist/src/gateway/hono/routes/workflows.js +1 -1
- package/dist/src/gateway/hono/routes/workspace.js +2 -2
- package/dist/src/gateway/lock.js +3 -3
- package/dist/src/gateway/ports.js +1 -1
- package/dist/src/gateway/rate-limit/buckets.d.ts +3 -0
- package/dist/src/gateway/rate-limit/buckets.js +12 -0
- package/dist/src/gateway/rate-limit/buckets.js.map +1 -1
- package/dist/src/gateway/service/config-coordinator.js +1 -1
- package/dist/src/gateway/service/marketplace-service.js +2 -2
- package/dist/src/gateway/service.js +4 -4
- package/dist/src/gateway/workspace-fs-file-list.js +1 -1
- package/dist/src/goals/goal-workflow-judge.js +2 -2
- package/dist/src/i18n/goals-bundle.js +1 -1
- package/dist/src/i18n/index.js +1 -1
- package/dist/src/i18n/share-tool-bundle.js +2 -2
- package/dist/src/infra/brew.js +1 -1
- package/dist/src/infra/package-json.js +1 -1
- package/dist/src/infra/package-update-steps.js +1 -1
- package/dist/src/infra/path-env.js +2 -2
- package/dist/src/infra/restart.js +1 -1
- package/dist/src/infra/stable-node-path.js +1 -1
- package/dist/src/infra/update-check.js +1 -1
- package/dist/src/infra/update-global.js +1 -1
- package/dist/src/infra/update-lock.js +2 -2
- package/dist/src/infra/update-restart.js +1 -1
- package/dist/src/infra/update-runner.js +1 -1
- package/dist/src/infra/update-startup.js +1 -1
- package/dist/src/infra/write-file-atomic.js +2 -2
- package/dist/src/media/store.js +1 -1
- package/dist/src/notes/agent-context.js +1 -1
- package/dist/src/notes/service.js +1 -1
- package/dist/src/notes/store.js +2 -2
- package/dist/src/project-trust/trust-store.js +2 -2
- package/dist/src/providers/auth-runtime/auth-profile-store.js +1 -1
- package/dist/src/providers/index.js +1 -1
- package/dist/src/providers/model-registry.js +4 -4
- package/dist/src/session/init-session-turn.js +1 -1
- package/dist/src/session/resolve-session.js +1 -1
- package/dist/src/session/session-title.js +2 -2
- package/dist/src/session/store.js +1 -1
- package/dist/src/share/share-auto.js +2 -2
- package/dist/src/share/share-store.js +3 -3
- package/dist/src/share/share-thumbnail.js +2 -2
- package/dist/src/share/share-zip.js +1 -1
- package/dist/src/share/site-share-store.js +3 -3
- package/dist/src/share/site-static-serve.js +1 -1
- package/dist/src/storage/sqlite/connection.js +1 -1
- package/dist/src/storage/sqlite/memory-index-repository.js +2 -2
- package/dist/src/storage/sqlite/migrations/discover.js +1 -1
- package/dist/src/storage/sqlite/migrations/runner.js +1 -1
- package/dist/src/storage/sqlite/schema.js +1 -1
- package/dist/src/tui/backends/embedded-backend.d.ts +8 -1
- package/dist/src/tui/backends/embedded-backend.js +73 -0
- package/dist/src/tui/backends/embedded-backend.js.map +1 -1
- package/dist/src/tui/backends/gateway-sse-backend.d.ts +2 -1
- package/dist/src/tui/backends/gateway-sse-backend.js +24 -0
- package/dist/src/tui/backends/gateway-sse-backend.js.map +1 -1
- package/dist/src/tui/clipboard-image.js +3 -3
- package/dist/src/tui/components/chat-log.d.ts +2 -0
- package/dist/src/tui/components/chat-log.js +19 -0
- package/dist/src/tui/components/chat-log.js.map +1 -1
- package/dist/src/tui/extension-host/autocomplete.d.ts +3 -2
- package/dist/src/tui/extension-host/autocomplete.js +17 -3
- package/dist/src/tui/extension-host/autocomplete.js.map +1 -1
- package/dist/src/tui/extension-host/load-extensions.js +1 -1
- package/dist/src/tui/extension-host/runtime.d.ts +5 -0
- package/dist/src/tui/extension-host/runtime.js +1 -1
- package/dist/src/tui/extension-host/runtime.js.map +1 -1
- package/dist/src/tui/theme-manager.js +1 -1
- package/dist/src/tui/tui-backend.d.ts +14 -0
- package/dist/src/tui/tui-command-formatters.js +4 -4
- package/dist/src/tui/tui-commands.d.ts +16 -3
- package/dist/src/tui/tui-commands.js +49 -21
- package/dist/src/tui/tui-commands.js.map +1 -1
- package/dist/src/tui/tui-keybindings-file.js +1 -1
- package/dist/src/tui/tui-scoped-models.js +2 -2
- package/dist/src/tui/tui-settings.js +1 -1
- package/dist/src/tui/tui-startup-resources.js +1 -1
- package/dist/src/tui/tui-startup-text.js +1 -1
- package/dist/src/tui/tui-startup-text.js.map +1 -1
- package/dist/src/tui/tui.js +78 -7
- package/dist/src/tui/tui.js.map +1 -1
- package/dist/src/tunnel/frpc-binary.js +4 -4
- package/dist/src/tunnel/frpc-config.js +1 -1
- package/dist/src/tunnel/frpc-extract.js +1 -1
- package/dist/src/tunnel/tunnel-state.js +1 -1
- package/dist/src/utils/logger/audit.js +1 -1
- package/dist/src/utils/logger/log-store.js +1 -1
- package/dist/src/utils/logger/rotation.js +1 -1
- package/dist/src/utils/logger/streams.js +1 -1
- package/dist/src/voice/tts/audio.js +1 -1
- package/dist/src/voice/tts/providers/edge-speech.js +2 -2
- package/dist/src/workflows/draft/workflow-draft-service.js +1 -1
- package/dist/src/workflows/service/workflow-run-service.js +1 -1
- package/dist/src/workflows/store/event-store.js +1 -1
- package/dist/src/workflows/store/run-store.js +1 -1
- package/package.json +1 -1
- package/dist/gateway/static/root/assets/agent-browser-settings-page-CWh7trjd.js +0 -6
- package/dist/gateway/static/root/assets/agent-defaults-tabbed-page-kC8OuLoj.js +0 -1
- package/dist/gateway/static/root/assets/agents-DJWG26Si.js +0 -71
- package/dist/gateway/static/root/assets/apps-page-0V3DXZ7J.js +0 -1
- package/dist/gateway/static/root/assets/channels-settings-CIKOkYdO.js +0 -1
- package/dist/gateway/static/root/assets/connectors-settings-ClrDS5jH.js +0 -2
- package/dist/gateway/static/root/assets/cron-page-Chi_4u4P.js +0 -3
- package/dist/gateway/static/root/assets/dreaming-settings-B0_rs2tj.js +0 -1
- package/dist/gateway/static/root/assets/goal-detail-page-D_wwXL-t.js +0 -1
- package/dist/gateway/static/root/assets/goals-page-DZ2toZ8y.js +0 -2
- package/dist/gateway/static/root/assets/goals-settings-LFlwtIKE.js +0 -1
- package/dist/gateway/static/root/assets/index-DzmWBkq-.css +0 -1
- package/dist/gateway/static/root/assets/logs-page-j_D2QTuQ.js +0 -2
- package/dist/gateway/static/root/assets/messages-BN_WiUg0.js +0 -3
- package/dist/gateway/static/root/assets/models-hub-panel-CMH_TmZz.js +0 -2
- package/dist/gateway/static/root/assets/note-detail-page-O18BrQPq.js +0 -2
- package/dist/gateway/static/root/assets/notes-page-B_ZYCmY9.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-CwKgWixY.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-C4fcD-7B.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-Ad2OJ86w.js +0 -1
- package/dist/gateway/static/root/assets/settings-page-D2BMY5wo.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-aWwxl_E1.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-DUE83uIf.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-mWKJcrog.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-0Sx1Q58n.js +0 -2
- package/dist/gateway/static/root/assets/voice-api-key-field-D6HR0hR2.js +0 -1
- package/dist/gateway/static/root/assets/workflows-page-DW0fmWhQ.js +0 -18
|
@@ -4,8 +4,8 @@ import { MEMORY_MD_FILENAME } from "./constants.js";
|
|
|
4
4
|
import { clamp01, compareCandidatesByScore, computeCandidateScore, extractPromotionMarkers, isContaminatedSnippet, isExpiredEntry, isoDay, readFileLines, resolveDeepDefaults, sliceRange, snippetHash } from "./utils.js";
|
|
5
5
|
import { loadDreamingStore, saveDreamingStore, withDreamingPromotionLock } from "./short-term-store.js";
|
|
6
6
|
import { emptyDeepPhaseSkipped, writeDreamingDeepLastRun } from "./last-run.js";
|
|
7
|
-
import fs from "node:fs/promises";
|
|
8
7
|
import path from "node:path";
|
|
8
|
+
import fs from "node:fs/promises";
|
|
9
9
|
//#region src/agent/memory/dreaming/deep-promotion.ts
|
|
10
10
|
init_logger();
|
|
11
11
|
const log = createLogger("Dreaming:Deep");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DREAMING_DIR_RELATIVE, DREAMING_EVENTS_LOG_RELATIVE } from "./constants.js";
|
|
2
|
-
import fs from "node:fs/promises";
|
|
3
2
|
import path from "node:path";
|
|
3
|
+
import fs from "node:fs/promises";
|
|
4
4
|
//#region src/agent/memory/dreaming/events.ts
|
|
5
5
|
/**
|
|
6
6
|
* Append a single event line to `memory/.dreams/events.jsonl`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DREAMING_LAST_RUN_RELATIVE } from "./constants.js";
|
|
2
|
-
import fs from "node:fs/promises";
|
|
3
2
|
import path from "node:path";
|
|
3
|
+
import fs from "node:fs/promises";
|
|
4
4
|
//#region src/agent/memory/dreaming/last-run.ts
|
|
5
5
|
const DREAMING_LAST_RUN_FORMAT_VERSION = 2;
|
|
6
6
|
function isRecord(v) {
|
|
@@ -4,8 +4,8 @@ import { DREAMING_DIR_RELATIVE } from "./constants.js";
|
|
|
4
4
|
import { buildEntryKey, isoDay, normalizeMemoryPath, normalizeSnippetForHash, snippetHash } from "./utils.js";
|
|
5
5
|
import { bumpEntryPhaseSignal, loadDreamingStore, saveDreamingStore } from "./short-term-store.js";
|
|
6
6
|
import "./last-run.js";
|
|
7
|
-
import fs from "node:fs/promises";
|
|
8
7
|
import path from "node:path";
|
|
8
|
+
import fs from "node:fs/promises";
|
|
9
9
|
//#region src/agent/memory/dreaming/light-sweep.ts
|
|
10
10
|
init_logger();
|
|
11
11
|
const log = createLogger("Dreaming:Light");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MEMORY_MD_FILENAME } from "./constants.js";
|
|
2
2
|
import { clamp01, compareCandidatesByScore, computeCandidateScore, extractPromotionMarkers, isContaminatedSnippet, isExpiredEntry, readFileLines, resolveDeepDefaults, sliceRange, snippetHash } from "./utils.js";
|
|
3
3
|
import { loadDreamingStore } from "./short-term-store.js";
|
|
4
|
-
import fs from "node:fs/promises";
|
|
5
4
|
import path from "node:path";
|
|
5
|
+
import fs from "node:fs/promises";
|
|
6
6
|
//#region src/agent/memory/dreaming/preview.ts
|
|
7
7
|
async function previewDreamingDeepPromotion(params) {
|
|
8
8
|
const cfg = resolveDeepDefaults(params.config);
|
|
@@ -4,8 +4,8 @@ import { DREAMING_DIR_RELATIVE, DREAMS_MD_FILENAME, MS_PER_DAY } from "./constan
|
|
|
4
4
|
import { isoDay } from "./utils.js";
|
|
5
5
|
import { bumpEntryPhaseSignal, loadDreamingStore, saveDreamingStore } from "./short-term-store.js";
|
|
6
6
|
import "./last-run.js";
|
|
7
|
-
import fs from "node:fs/promises";
|
|
8
7
|
import path from "node:path";
|
|
8
|
+
import fs from "node:fs/promises";
|
|
9
9
|
//#region src/agent/memory/dreaming/rem-patterns.ts
|
|
10
10
|
init_logger();
|
|
11
11
|
const log = createLogger("Dreaming:REM");
|
|
@@ -2,9 +2,9 @@ import { createLogger } from "../../../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../../../utils/logger.js";
|
|
3
3
|
import { SHORT_TERM_PROMOTION_LOCK_RELATIVE, SHORT_TERM_RECALL_STORE_RELATIVE } from "./constants.js";
|
|
4
4
|
import { buildEntryKey, clamp01, isoDay, normalizeMemoryPath } from "./utils.js";
|
|
5
|
+
import path from "node:path";
|
|
5
6
|
import { createHash, randomUUID } from "node:crypto";
|
|
6
7
|
import fs from "node:fs/promises";
|
|
7
|
-
import path from "node:path";
|
|
8
8
|
//#region src/agent/memory/dreaming/short-term-store.ts
|
|
9
9
|
init_logger();
|
|
10
10
|
const log = createLogger("Dreaming:Store");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DEFAULT_DEEP_CRON, DIVERSITY_WEIGHT, MS_PER_DAY, REINFORCEMENT_WEIGHT } from "./constants.js";
|
|
2
|
+
import path from "node:path";
|
|
2
3
|
import { createHash } from "node:crypto";
|
|
3
4
|
import fs from "node:fs/promises";
|
|
4
|
-
import path from "node:path";
|
|
5
5
|
//#region src/agent/memory/dreaming/utils.ts
|
|
6
6
|
/** Normalize a workspace-relative memory path: forward slashes, no odd ../ escapes at start. */
|
|
7
7
|
function normalizeMemoryPath(rel) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
+
import { join } from "node:path";
|
|
3
4
|
import { existsSync } from "node:fs";
|
|
4
5
|
import { appendFile, mkdir, readFile, writeFile } from "node:fs/promises";
|
|
5
|
-
import { join } from "node:path";
|
|
6
6
|
//#region src/agent/memory/memory-flush.ts
|
|
7
7
|
init_logger();
|
|
8
8
|
const log = createLogger("MemoryFlush");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { readdir, stat } from "node:fs/promises";
|
|
2
1
|
import { dirname, join } from "node:path";
|
|
2
|
+
import { readdir, stat } from "node:fs/promises";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
//#region src/agent/memory/plugin-discovery.ts
|
|
5
5
|
async function discoverMemoryPlugins() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { getAgentDefaultModelRef, init_schema } from "../../config/schema.js";
|
|
1
2
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
3
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
-
import { getAgentDefaultModelRef, init_schema } from "../../config/schema.js";
|
|
4
4
|
import { getAllModels, getDefaultModelSync, init_providers, resolveModel } from "../../providers/index.js";
|
|
5
5
|
import { resolveAgentTurnTimeoutMs, runAgentTurnWithTimeout } from "../orchestration/run-agent-turn-with-timeout.js";
|
|
6
6
|
import { isAssistantTurnAborted, isAssistantTurnFailed, maybeRetryTurnAfterTransientLlmFailure } from "../orchestration/llm-turn-retry.js";
|
|
@@ -3,8 +3,8 @@ import { init_logger } from "../../../utils/logger.js";
|
|
|
3
3
|
import { requireXopcDatabase } from "../../../storage/sqlite/connection.js";
|
|
4
4
|
import { resolveAgentIdFromMemoriesDir, searchMemoryIndex, syncMemoryIndex } from "../../../storage/sqlite/memory-index-repository.js";
|
|
5
5
|
import "../../../storage/sqlite/index.js";
|
|
6
|
-
import { existsSync, readFileSync } from "fs";
|
|
7
6
|
import { join, relative } from "path";
|
|
7
|
+
import { existsSync, readFileSync } from "fs";
|
|
8
8
|
//#region src/agent/prompt/memory/index.ts
|
|
9
9
|
init_logger();
|
|
10
10
|
const log = createLogger("MemorySearch");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveStateDir } from "../../config/paths-state.js";
|
|
2
|
-
import { init_paths } from "../../config/paths.js";
|
|
3
2
|
import { createLogger } from "../../utils/logger/index.js";
|
|
4
3
|
import { init_logger } from "../../utils/logger.js";
|
|
4
|
+
import { init_paths } from "../../config/paths.js";
|
|
5
5
|
import { DEFAULT_USER_FILENAME } from "../context/workspace.js";
|
|
6
6
|
import { resolveSystemPromptBuildParams } from "./system-prompt-params.js";
|
|
7
7
|
import { buildSystemPrompt } from "./system-prompt.js";
|
|
@@ -9,8 +9,8 @@ import { createSkillConfigManager } from "../skills/config.js";
|
|
|
9
9
|
import { buildTtsSystemPromptHint } from "../../voice/tts/directives.js";
|
|
10
10
|
import { mergeTtsConfigFromAppConfig } from "../../voice/tts/merge-config.js";
|
|
11
11
|
import { selectSkillsVisibleInPrompt } from "../skills/format-skills-prompt.js";
|
|
12
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
13
12
|
import { join } from "node:path";
|
|
13
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
14
14
|
//#region src/agent/prompt/service-prompt-builder.ts
|
|
15
15
|
/**
|
|
16
16
|
* System Prompt Builder - Builds the complete system prompt
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { init_agent_scope, resolveAgentProfileDir } from "../agent-scope.js";
|
|
2
2
|
import { resolveEffectiveAgentProfileForSession } from "../../config/agent-profile.js";
|
|
3
|
-
import { readFileSync } from "node:fs";
|
|
4
3
|
import { join, resolve } from "node:path";
|
|
4
|
+
import { readFileSync } from "node:fs";
|
|
5
5
|
//#region src/agent/reply/post-compaction-context.ts
|
|
6
6
|
init_agent_scope();
|
|
7
7
|
const MAX_CONTEXT_CHARS = 1800;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { realpathSync } from "node:fs";
|
|
2
|
-
import { isAbsolute, normalize, resolve, sep } from "node:path";
|
|
3
1
|
import { homedir } from "node:os";
|
|
2
|
+
import { isAbsolute, normalize, resolve, sep } from "node:path";
|
|
3
|
+
import { realpathSync } from "node:fs";
|
|
4
4
|
//#region src/agent/sandbox/path-policy.ts
|
|
5
5
|
/**
|
|
6
6
|
* Path safety validation for sandbox isolation.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { init_agent_scope, resolveAgentHomeDir, resolveAgentProfileDir, resolveDefaultAgentId } from "./agent-scope.js";
|
|
2
|
-
import { createLogger } from "../utils/logger/index.js";
|
|
3
|
-
import { init_logger } from "../utils/logger.js";
|
|
4
1
|
import { getAgentDefaultModelRef, init_schema } from "../config/schema.js";
|
|
5
2
|
import { applyConfigOverrides } from "../config/runtime-overrides.js";
|
|
3
|
+
import { init_agent_scope, resolveAgentHomeDir, resolveAgentProfileDir, resolveDefaultAgentId } from "./agent-scope.js";
|
|
6
4
|
import { extractProfileAgentId, resolveEffectiveAgentProfileForSession } from "../config/agent-profile.js";
|
|
5
|
+
import { createLogger } from "../utils/logger/index.js";
|
|
6
|
+
import { init_logger } from "../utils/logger.js";
|
|
7
7
|
import { extractTextContent } from "./context/workspace.js";
|
|
8
8
|
import { parseNoteAttachmentTarget } from "../notes/attachment-ref.js";
|
|
9
9
|
import { getWorkflowProgressBroker } from "./workflow/progress-broker.js";
|
|
@@ -60,9 +60,9 @@ import { reconcileManagedDreamingCronJobs } from "./service/reconcile-dreaming-c
|
|
|
60
60
|
import { cleanTrailingErrors } from "./memory/message-sanitizer.js";
|
|
61
61
|
import { MemoryFlushService } from "./memory/memory-flush.js";
|
|
62
62
|
import { tryApplySessionTranscriptHygiene } from "./transcript/transcript-hygiene.js";
|
|
63
|
+
import { join } from "node:path";
|
|
63
64
|
import { existsSync, readFileSync } from "node:fs";
|
|
64
65
|
import { readFile } from "node:fs/promises";
|
|
65
|
-
import { join } from "node:path";
|
|
66
66
|
//#region src/agent/service.ts
|
|
67
67
|
init_schema();
|
|
68
68
|
init_logger();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { resolveEffectiveAgentProfileForSession } from "../../config/agent-profile.js";
|
|
1
2
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
3
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
-
import { resolveEffectiveAgentProfileForSession } from "../../config/agent-profile.js";
|
|
4
4
|
import { resolveVerboseLevel } from "../../session/config-store.js";
|
|
5
5
|
import { resolveEffectiveReasoningLevel, resolveEffectiveThinkingLevel } from "../../session/thinking-resolve.js";
|
|
6
6
|
import { effectiveWorkspacePathForSession } from "../../session/session-workspace.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { init_write_file_atomic, writeTextAtomicSync } from "../../infra/write-file-atomic.js";
|
|
2
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
3
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
+
import { init_write_file_atomic, writeTextAtomicSync } from "../../infra/write-file-atomic.js";
|
|
4
4
|
import { hasBinary } from "./installer.js";
|
|
5
|
-
import { existsSync, readFileSync } from "fs";
|
|
6
5
|
import { join } from "path";
|
|
6
|
+
import { existsSync, readFileSync } from "fs";
|
|
7
7
|
//#region src/agent/skills/config.ts
|
|
8
8
|
/**
|
|
9
9
|
* Skill Configuration Manager
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveStateDir } from "../../config/paths-state.js";
|
|
2
|
-
import { init_paths, resolveSkillsDir } from "../../config/paths.js";
|
|
3
2
|
import { createLogger } from "../../utils/logger/index.js";
|
|
4
3
|
import { init_logger } from "../../utils/logger.js";
|
|
4
|
+
import { init_paths, resolveSkillsDir } from "../../config/paths.js";
|
|
5
5
|
import { createSkillConfigManager } from "./config.js";
|
|
6
6
|
import { resolveWorkspaceSkillsDir } from "./workspace-skills-dir.js";
|
|
7
7
|
import { isManagedSkillTransientDirName } from "./managed-store.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createHash } from "node:crypto";
|
|
2
|
-
import { createReadStream, existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
3
1
|
import { join, relative } from "node:path";
|
|
2
|
+
import { createReadStream, existsSync, readFileSync, readdirSync, statSync } from "node:fs";
|
|
3
|
+
import { createHash } from "node:crypto";
|
|
4
4
|
//#region src/agent/skills/hub-hash.ts
|
|
5
5
|
/**
|
|
6
6
|
* Deterministic content hash for a skill directory (for hub lock / drift detection).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { init_write_file_atomic, writeTextAtomicSync } from "../../infra/write-file-atomic.js";
|
|
2
1
|
import { init_paths, resolveSkillsLockPath } from "../../config/paths.js";
|
|
2
|
+
import { init_write_file_atomic, writeTextAtomicSync } from "../../infra/write-file-atomic.js";
|
|
3
3
|
import { existsSync, readFileSync } from "node:fs";
|
|
4
4
|
//#region src/agent/skills/hub-lock.ts
|
|
5
5
|
/**
|
|
@@ -3,9 +3,9 @@ import { formatScanSummary, scanSkillDirectory } from "./scanner.js";
|
|
|
3
3
|
import { getSkillsLockEntry, recordSkillsHubInstall } from "./hub-lock.js";
|
|
4
4
|
import { installSkillFromZip, isValidSkillId, prepareManagedSkillTempDir, promoteManagedSkillTempDir } from "./managed-store.js";
|
|
5
5
|
import { computeSkillTreeHashSync } from "./hub-hash.js";
|
|
6
|
-
import { cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
7
|
-
import { basename, join, normalize, resolve } from "node:path";
|
|
8
6
|
import { tmpdir } from "node:os";
|
|
7
|
+
import { basename, join, normalize, resolve } from "node:path";
|
|
8
|
+
import { cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
9
9
|
import { fileURLToPath } from "node:url";
|
|
10
10
|
import { execFileSync } from "node:child_process";
|
|
11
11
|
import { fetch } from "undici";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveStateDir } from "../../config/paths-state.js";
|
|
2
|
-
import { init_paths } from "../../config/paths.js";
|
|
3
2
|
import { createLogger } from "../../utils/logger/index.js";
|
|
4
3
|
import { init_logger } from "../../utils/logger.js";
|
|
4
|
+
import { init_paths } from "../../config/paths.js";
|
|
5
5
|
import { parseFrontmatter } from "../../markdown/frontmatter.js";
|
|
6
6
|
import { findInstallSpec, getDefaultInstallerPreferences, hasBinary, installSkill } from "./installer.js";
|
|
7
7
|
import { applySkillEnvOverrides, createSkillConfigManager, getSkillEnvironment, isSkillEnabled, resolveSkillConfig, validateSkillConfig } from "./config.js";
|
|
@@ -12,8 +12,8 @@ import { parseRequiredEnvVarNames } from "./required-env-vars.js";
|
|
|
12
12
|
import { formatSkillsForPrompt } from "./format-skills-prompt.js";
|
|
13
13
|
import { parseSkillMetadata } from "./parse-skill-metadata.js";
|
|
14
14
|
import { SkillTestFramework, SkillTestRunner, formatTestResults, formatTestResultsJson, formatTestResultsTap } from "./test-framework.js";
|
|
15
|
-
import { existsSync, readFileSync, readdirSync } from "fs";
|
|
16
15
|
import { basename, dirname, join, relative, sep } from "path";
|
|
16
|
+
import { existsSync, readFileSync, readdirSync } from "fs";
|
|
17
17
|
//#region src/agent/skills/index.ts
|
|
18
18
|
init_paths();
|
|
19
19
|
init_logger();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
-
import { accessSync, constants, existsSync } from "fs";
|
|
4
|
-
import { exec } from "child_process";
|
|
5
3
|
import { delimiter, join } from "path";
|
|
4
|
+
import { accessSync, constants, existsSync } from "fs";
|
|
6
5
|
import { promisify } from "util";
|
|
6
|
+
import { exec } from "child_process";
|
|
7
7
|
//#region src/agent/skills/installer.ts
|
|
8
8
|
/**
|
|
9
9
|
* Skill Installer
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { init_paths, resolveSkillsDir } from "../../config/paths.js";
|
|
2
2
|
import { parseFrontmatter } from "../../markdown/frontmatter.js";
|
|
3
3
|
import { loadSkillsLock } from "./hub-lock.js";
|
|
4
|
-
import { existsSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
5
4
|
import { dirname, join, resolve, sep } from "node:path";
|
|
5
|
+
import { existsSync, mkdirSync, readFileSync, readdirSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
6
6
|
import AdmZip from "adm-zip";
|
|
7
7
|
//#region src/agent/skills/managed-store.ts
|
|
8
8
|
/**
|
|
@@ -3,8 +3,8 @@ import { parseFrontmatter } from "../../markdown/frontmatter.js";
|
|
|
3
3
|
import { fuzzyFindText, normalizeForFuzzyMatch, normalizeToLF, restoreLineEndings } from "../tools/edit-diff.js";
|
|
4
4
|
import { formatScanSummary, scanSkillDirectory } from "./scanner.js";
|
|
5
5
|
import { resolveWorkspaceSkillsDir } from "./workspace-skills-dir.js";
|
|
6
|
-
import { existsSync, realpathSync } from "fs";
|
|
7
6
|
import { join, resolve, sep } from "path";
|
|
7
|
+
import { existsSync, realpathSync } from "fs";
|
|
8
8
|
import { mkdir, writeFile } from "fs/promises";
|
|
9
9
|
//#region src/agent/skills/skill-manage-ops.ts
|
|
10
10
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveStateDir } from "../../config/paths-state.js";
|
|
2
|
-
import { init_paths, resolveBundledSkillsDir } from "../../config/paths.js";
|
|
3
2
|
import { createLogger } from "../../utils/logger/index.js";
|
|
4
3
|
import { init_logger } from "../../utils/logger.js";
|
|
4
|
+
import { init_paths, resolveBundledSkillsDir } from "../../config/paths.js";
|
|
5
5
|
import { createSkillConfigManager, isSkillEnabled } from "./config.js";
|
|
6
6
|
import { formatSkillsForPrompt, selectSkillsVisibleInPrompt } from "./format-skills-prompt.js";
|
|
7
7
|
import { createSkillLoader } from "./index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { existsSync, realpathSync } from "fs";
|
|
2
1
|
import { resolve, sep } from "path";
|
|
2
|
+
import { existsSync, realpathSync } from "fs";
|
|
3
3
|
//#region src/agent/skills/skill-view-path.ts
|
|
4
4
|
/**
|
|
5
5
|
* Resolve safe paths for skill_view: only SKILL.md (default) or files under allowlisted subdirs.
|
|
@@ -4,8 +4,8 @@ import { parseFrontmatter } from "../../markdown/frontmatter.js";
|
|
|
4
4
|
import { hasBinary } from "./installer.js";
|
|
5
5
|
import { scanSkillDirectory } from "./scanner.js";
|
|
6
6
|
import { parseSkillMetadata } from "./parse-skill-metadata.js";
|
|
7
|
-
import { existsSync, readFileSync, readdirSync } from "fs";
|
|
8
7
|
import { basename, join, relative } from "path";
|
|
8
|
+
import { existsSync, readFileSync, readdirSync } from "fs";
|
|
9
9
|
//#region src/agent/skills/test-framework.ts
|
|
10
10
|
/**
|
|
11
11
|
* Skill Test Framework
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { init_agent_scope, listAgentEntries, normalizeAgentId, resolveAgentProfileDir, resolveAgentWorkspaceDir } from "./agent-scope.js";
|
|
2
2
|
import { WORKSPACE_FILES, init_paths } from "../config/paths.js";
|
|
3
3
|
import { applyAgentConfig } from "../commands/agents.config.js";
|
|
4
|
-
import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
5
4
|
import { join } from "node:path";
|
|
5
|
+
import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
6
6
|
//#region src/agent/starter-agents.ts
|
|
7
7
|
init_paths();
|
|
8
8
|
init_agent_scope();
|
|
@@ -3,8 +3,8 @@ import { init_logger } from "../../utils/logger.js";
|
|
|
3
3
|
import { SHORT_TERM_PROMOTION_LOCK_RELATIVE, SHORT_TERM_RECALL_STORE_RELATIVE } from "../memory/dreaming/constants.js";
|
|
4
4
|
import { loadDreamingStore, saveDreamingStore } from "../memory/dreaming/short-term-store.js";
|
|
5
5
|
import { resolveDreamingConfig } from "../memory/dreaming/config.js";
|
|
6
|
-
import fs from "node:fs/promises";
|
|
7
6
|
import path from "node:path";
|
|
7
|
+
import fs from "node:fs/promises";
|
|
8
8
|
import { Type } from "@sinclair/typebox";
|
|
9
9
|
//#region src/agent/tools/dreaming-tool.ts
|
|
10
10
|
init_logger();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DEFAULT_MAX_BYTES, formatSize, truncateHead } from "./truncate.js";
|
|
2
2
|
import { resolveToCwd } from "../../utils/helpers.js";
|
|
3
|
-
import { existsSync } from "fs";
|
|
4
3
|
import path from "path";
|
|
4
|
+
import { existsSync } from "fs";
|
|
5
5
|
import { Type } from "@sinclair/typebox";
|
|
6
6
|
import { globSync } from "glob";
|
|
7
7
|
//#region src/agent/tools/find.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DEFAULT_MAX_BYTES, formatSize, truncateHead, truncateLine } from "./truncate.js";
|
|
2
2
|
import { resolveToCwd } from "../../utils/helpers.js";
|
|
3
|
-
import { existsSync, readFileSync, statSync } from "fs";
|
|
4
3
|
import path from "path";
|
|
4
|
+
import { existsSync, readFileSync, statSync } from "fs";
|
|
5
5
|
import { Type } from "@sinclair/typebox";
|
|
6
6
|
import { globSync } from "glob";
|
|
7
7
|
//#region src/agent/tools/grep.ts
|
|
@@ -4,9 +4,9 @@ import { isFailoverError } from "../failover-error.js";
|
|
|
4
4
|
import { imageAssetFromDataUrl, imageFileExtensionForMimeType, mimeTypeFromFileName, parseImageDataUrl, sniffImageMimeType } from "../image/generation/image-assets.js";
|
|
5
5
|
import { getImageGenerationProvider } from "../image/generation/provider-registry.js";
|
|
6
6
|
import { generateImage, listImageGenerationProvidersSummary } from "../image/generation/runtime.js";
|
|
7
|
+
import path from "node:path";
|
|
7
8
|
import { randomBytes } from "node:crypto";
|
|
8
9
|
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
|
9
|
-
import path from "node:path";
|
|
10
10
|
import { Type } from "@sinclair/typebox";
|
|
11
11
|
//#region src/agent/tools/image-generate-tool.ts
|
|
12
12
|
const DEFAULT_COUNT = 1;
|
|
@@ -2,8 +2,8 @@ import { resolveStateDir } from "../../config/paths-state.js";
|
|
|
2
2
|
import { init_paths } from "../../config/paths.js";
|
|
3
3
|
import { createSkillConfigManager } from "../skills/config.js";
|
|
4
4
|
import { applyPatchToContent, atomicWriteUtf8, effectiveAgentWritePolicy, ensureCategorySegment, isPathInsideDir, maxSkillMdChars, maxSupportFileBytes, mutatableSkillOrNull, resolveCreateSkillDir, scanSkillDirOrError, validateSkillMdContent, validateSkillNameSegment, validateSupportingRelativePath } from "../skills/skill-manage-ops.js";
|
|
5
|
-
import { existsSync, rmSync } from "fs";
|
|
6
5
|
import { join } from "path";
|
|
6
|
+
import { existsSync, rmSync } from "fs";
|
|
7
7
|
import { readFile, rm } from "fs/promises";
|
|
8
8
|
import { Type } from "@sinclair/typebox";
|
|
9
9
|
//#region src/agent/tools/skill-manage-tool.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { extractProfileAgentId } from "../../config/agent-profile.js";
|
|
1
2
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
3
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
-
import { extractProfileAgentId } from "../../config/agent-profile.js";
|
|
4
4
|
import { parseWorkflowScript } from "../workflow/parser.js";
|
|
5
5
|
import "../workflow/index.js";
|
|
6
6
|
import { Type } from "@sinclair/typebox";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { init_paths_state, resolveStateDir } from "../../config/paths-state.js";
|
|
2
2
|
import { BUILTIN_WORKFLOWS } from "./builtins/index.js";
|
|
3
3
|
import { parseWorkflowScript } from "./parser.js";
|
|
4
|
-
import { existsSync, mkdirSync, readFileSync, readdirSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
5
4
|
import { join } from "node:path";
|
|
5
|
+
import { existsSync, mkdirSync, readFileSync, readdirSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
6
6
|
//#region src/agent/workflow/catalog.ts
|
|
7
7
|
/**
|
|
8
8
|
* Catalog for named workflows.
|
|
@@ -14,5 +14,15 @@ export interface RenderOptions {
|
|
|
14
14
|
maxLogs?: number;
|
|
15
15
|
showResultPreviews?: boolean;
|
|
16
16
|
}
|
|
17
|
+
export type WorkflowPanelStatus = 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled' | 'timeout' | string;
|
|
18
|
+
export interface WorkflowPanelOptions {
|
|
19
|
+
status?: WorkflowPanelStatus;
|
|
20
|
+
maxActiveAgents?: number;
|
|
21
|
+
maxRecentAgents?: number;
|
|
22
|
+
maxErrors?: number;
|
|
23
|
+
nowMs?: number;
|
|
24
|
+
}
|
|
17
25
|
export declare function renderWorkflowText(snapshot: WorkflowSnapshot, completed?: boolean, options?: RenderOptions): string;
|
|
18
26
|
export declare function previewValue(value: unknown, max?: number): string;
|
|
27
|
+
export declare function renderWorkflowPanel(snapshot: WorkflowSnapshot, options?: WorkflowPanelOptions): string;
|
|
28
|
+
export declare function renderWorkflowFinalSummary(snapshot: WorkflowSnapshot, options?: WorkflowPanelOptions): string;
|
|
@@ -77,6 +77,58 @@ function previewValue(value, max = 80) {
|
|
|
77
77
|
if (!text) return "";
|
|
78
78
|
return text.length > max ? `${text.slice(0, max - 1)}…` : text;
|
|
79
79
|
}
|
|
80
|
+
function renderWorkflowPanel(snapshot, options = {}) {
|
|
81
|
+
const status = options.status ?? inferPanelStatus(snapshot);
|
|
82
|
+
const activeAgents = snapshot.agents.filter((agent) => agent.status === "running");
|
|
83
|
+
const queuedAgents = snapshot.agents.filter((agent) => agent.status === "queued");
|
|
84
|
+
const activeLimit = options.maxActiveAgents ?? 4;
|
|
85
|
+
const recentLimit = options.maxRecentAgents ?? 4;
|
|
86
|
+
const durationText = formatDuration(resolveElapsedMs(snapshot, options.nowMs));
|
|
87
|
+
const counts = formatRunCounts(snapshot);
|
|
88
|
+
const lines = [`◆ ${snapshot.name} ${statusText(status)} ${counts}${durationText ? ` ${durationText}` : ""}`];
|
|
89
|
+
const phaseLines = renderPanelPhaseLines(snapshot);
|
|
90
|
+
if (phaseLines.length > 0) lines.push("", "Phase", ...phaseLines);
|
|
91
|
+
const visibleActive = activeAgents.length > 0 ? activeAgents : queuedAgents;
|
|
92
|
+
if (visibleActive.length > 0) {
|
|
93
|
+
lines.push("", activeAgents.length > 0 ? "Active" : "Queued");
|
|
94
|
+
for (const agent of visibleActive.slice(0, activeLimit)) lines.push(...renderActiveAgentLines(agent));
|
|
95
|
+
if (visibleActive.length > activeLimit) lines.push(` … ${visibleActive.length - activeLimit} more`);
|
|
96
|
+
}
|
|
97
|
+
const recent = recentCompletedAgents(snapshot).slice(0, recentLimit);
|
|
98
|
+
if (recent.length > 0) {
|
|
99
|
+
lines.push("", "Recent");
|
|
100
|
+
for (const agent of recent) lines.push(renderRecentAgentLine(agent));
|
|
101
|
+
}
|
|
102
|
+
const errors = snapshot.agents.filter((agent) => agent.status === "error" || agent.error);
|
|
103
|
+
if (errors.length > 0) {
|
|
104
|
+
lines.push("", "Errors");
|
|
105
|
+
for (const agent of errors.slice(0, options.maxErrors ?? 3)) lines.push(` ✗ #${agent.id} ${shorten(agent.label, 28)}${agent.error ? `: ${shorten(agent.error, 96)}` : ""}`);
|
|
106
|
+
if (errors.length > (options.maxErrors ?? 3)) lines.push(` … ${errors.length - (options.maxErrors ?? 3)} more`);
|
|
107
|
+
}
|
|
108
|
+
return lines.join("\n");
|
|
109
|
+
}
|
|
110
|
+
function renderWorkflowFinalSummary(snapshot, options = {}) {
|
|
111
|
+
const status = options.status ?? inferPanelStatus(snapshot);
|
|
112
|
+
const durationText = formatDuration(resolveElapsedMs(snapshot, options.nowMs));
|
|
113
|
+
const lines = [`◆ ${snapshot.name} ${statusText(status)} ${formatRunCounts(snapshot)}${durationText ? ` ${durationText}` : ""}`];
|
|
114
|
+
const result = previewValue(snapshot.result, 280);
|
|
115
|
+
if (result) lines.push("", "Result", ` ${result}`);
|
|
116
|
+
else {
|
|
117
|
+
const fallback = recentCompletedAgents(snapshot).map((agent) => agent.resultPreview).find((value) => Boolean(value));
|
|
118
|
+
if (fallback) lines.push("", "Result", ` ${shorten(fallback, 280)}`);
|
|
119
|
+
}
|
|
120
|
+
const errors = snapshot.agents.filter((agent) => agent.status === "error" || agent.error);
|
|
121
|
+
if (errors.length > 0) {
|
|
122
|
+
lines.push("", "Errors");
|
|
123
|
+
for (const agent of errors.slice(0, options.maxErrors ?? 5)) lines.push(` ✗ #${agent.id} ${shorten(agent.label, 32)}${agent.error ? `: ${shorten(agent.error, 120)}` : ""}`);
|
|
124
|
+
}
|
|
125
|
+
const recent = recentCompletedAgents(snapshot).slice(0, options.maxRecentAgents ?? 5);
|
|
126
|
+
if (recent.length > 0) {
|
|
127
|
+
lines.push("", "Completed");
|
|
128
|
+
for (const agent of recent) lines.push(renderRecentAgentLine(agent));
|
|
129
|
+
}
|
|
130
|
+
return lines.join("\n");
|
|
131
|
+
}
|
|
80
132
|
function countAgents(agents) {
|
|
81
133
|
let done = 0;
|
|
82
134
|
let running = 0;
|
|
@@ -102,6 +154,89 @@ function statusIcon(status) {
|
|
|
102
154
|
case "skipped": return "-";
|
|
103
155
|
}
|
|
104
156
|
}
|
|
157
|
+
function statusText(status) {
|
|
158
|
+
switch (status) {
|
|
159
|
+
case "queued": return "queued";
|
|
160
|
+
case "running": return "running";
|
|
161
|
+
case "succeeded": return "✓ completed";
|
|
162
|
+
case "failed": return "✗ failed";
|
|
163
|
+
case "cancelled": return "cancelled";
|
|
164
|
+
case "timeout": return "timeout";
|
|
165
|
+
default: return String(status || "running");
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
function inferPanelStatus(snapshot) {
|
|
169
|
+
if (snapshot.errorCount > 0) return "failed";
|
|
170
|
+
if (snapshot.runningCount > 0) return "running";
|
|
171
|
+
if (snapshot.doneCount + snapshot.skippedCount >= snapshot.agentCount && snapshot.agentCount > 0) return "succeeded";
|
|
172
|
+
return "queued";
|
|
173
|
+
}
|
|
174
|
+
function formatRunCounts(snapshot) {
|
|
175
|
+
const parts = [`${snapshot.doneCount}/${snapshot.agentCount} done`];
|
|
176
|
+
if (snapshot.runningCount > 0) parts.push(`${snapshot.runningCount} running`);
|
|
177
|
+
if (snapshot.errorCount > 0) parts.push(`${snapshot.errorCount} errors`);
|
|
178
|
+
if (snapshot.skippedCount > 0) parts.push(`${snapshot.skippedCount} skipped`);
|
|
179
|
+
return parts.join(" · ");
|
|
180
|
+
}
|
|
181
|
+
function resolveElapsedMs(snapshot, nowMs = Date.now()) {
|
|
182
|
+
if (snapshot.durationMs != null) return snapshot.durationMs;
|
|
183
|
+
const starts = snapshot.agents.map((agent) => agent.startedAtMs).filter((value) => typeof value === "number" && Number.isFinite(value));
|
|
184
|
+
if (starts.length === 0) return void 0;
|
|
185
|
+
return Math.max(0, nowMs - Math.min(...starts));
|
|
186
|
+
}
|
|
187
|
+
function formatDuration(ms) {
|
|
188
|
+
if (ms == null || !Number.isFinite(ms)) return "";
|
|
189
|
+
const totalSeconds = Math.max(0, Math.floor(ms / 1e3));
|
|
190
|
+
const minutes = Math.floor(totalSeconds / 60);
|
|
191
|
+
const seconds = totalSeconds % 60;
|
|
192
|
+
if (minutes < 60) return `${minutes}:${String(seconds).padStart(2, "0")}`;
|
|
193
|
+
const hours = Math.floor(minutes / 60);
|
|
194
|
+
const restMinutes = minutes % 60;
|
|
195
|
+
return `${hours}:${String(restMinutes).padStart(2, "0")}:${String(seconds).padStart(2, "0")}`;
|
|
196
|
+
}
|
|
197
|
+
function renderPanelPhaseLines(snapshot) {
|
|
198
|
+
const phaseNames = uniqueOrdered([
|
|
199
|
+
...snapshot.phases,
|
|
200
|
+
...snapshot.currentPhase ? [snapshot.currentPhase] : [],
|
|
201
|
+
...snapshot.agents.map((a) => a.phase).filter((p) => Boolean(p))
|
|
202
|
+
]);
|
|
203
|
+
const out = [];
|
|
204
|
+
for (const phase of phaseNames) {
|
|
205
|
+
const agents = snapshot.agents.filter((agent) => agent.phase === phase);
|
|
206
|
+
const counts = countAgents(agents);
|
|
207
|
+
const complete = agents.length > 0 && counts.done + counts.error + counts.skipped === agents.length;
|
|
208
|
+
const marker = counts.running > 0 || !complete && snapshot.currentPhase === phase ? "▶" : complete ? "✓" : "○";
|
|
209
|
+
const tail = [
|
|
210
|
+
counts.running > 0 ? `${counts.running} running` : "",
|
|
211
|
+
counts.error > 0 ? `${counts.error} errors` : "",
|
|
212
|
+
counts.skipped > 0 ? `${counts.skipped} skipped` : ""
|
|
213
|
+
].filter(Boolean).join(" · ");
|
|
214
|
+
out.push(` ${marker} ${phase} ${counts.done}/${agents.length}${tail ? ` · ${tail}` : ""}`);
|
|
215
|
+
}
|
|
216
|
+
return out;
|
|
217
|
+
}
|
|
218
|
+
function renderActiveAgentLines(agent) {
|
|
219
|
+
const step = agent.currentStep || latestStepSummary(agent);
|
|
220
|
+
const iteration = agent.iteration != null && agent.maxIterations != null ? ` [${agent.iteration}/${agent.maxIterations}]` : "";
|
|
221
|
+
const head = ` ${agent.status === "running" ? "●" : "○"} #${agent.id} ${shorten(agent.label, 32)}${iteration}`;
|
|
222
|
+
return step ? [head, ` ${shorten(step, 96)}`] : [head];
|
|
223
|
+
}
|
|
224
|
+
function renderRecentAgentLine(agent) {
|
|
225
|
+
const preview = agent.error || agent.resultPreview || latestStepResult(agent);
|
|
226
|
+
return ` ${statusIcon(agent.status)} #${agent.id} ${shorten(agent.label, 32)}${preview ? ` — ${shorten(preview, 96)}` : ""}`;
|
|
227
|
+
}
|
|
228
|
+
function recentCompletedAgents(snapshot) {
|
|
229
|
+
return [...snapshot.agents].filter((agent) => agent.status === "done" || agent.status === "error" || agent.status === "skipped").reverse();
|
|
230
|
+
}
|
|
231
|
+
function latestStepSummary(agent) {
|
|
232
|
+
const step = [...agent.steps ?? []].reverse().find((entry) => entry.status === "running") ?? agent.steps?.[agent.steps.length - 1];
|
|
233
|
+
if (!step) return "";
|
|
234
|
+
return step.detail ? `${step.label}: ${step.detail}` : step.label;
|
|
235
|
+
}
|
|
236
|
+
function latestStepResult(agent) {
|
|
237
|
+
const step = [...agent.steps ?? []].reverse().find((entry) => entry.resultPreview || entry.error);
|
|
238
|
+
return step?.error || step?.resultPreview || "";
|
|
239
|
+
}
|
|
105
240
|
function stateSuffix(snapshot) {
|
|
106
241
|
if (snapshot.errorCount > 0) return `, ${snapshot.errorCount} errors`;
|
|
107
242
|
if (snapshot.skippedCount > 0) return `, ${snapshot.skippedCount} skipped`;
|
|
@@ -129,6 +264,6 @@ function safeStringify(value) {
|
|
|
129
264
|
}
|
|
130
265
|
}
|
|
131
266
|
//#endregion
|
|
132
|
-
export { createWorkflowSnapshot, previewValue, recomputeCounts, renderWorkflowText };
|
|
267
|
+
export { createWorkflowSnapshot, previewValue, recomputeCounts, renderWorkflowFinalSummary, renderWorkflowPanel, renderWorkflowText };
|
|
133
268
|
|
|
134
269
|
//# sourceMappingURL=snapshot.js.map
|