@xopcai/xopc 0.0.276 → 0.0.278
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/adapters/cli-login.js +3 -3
- package/dist/extensions/feishu/src/outbound/media-load.js +2 -2
- package/dist/extensions/telegram/src/inbound-processor.js +2 -2
- package/dist/extensions/telegram/src/outbound-sender.js +1 -1
- package/dist/extensions/telegram/src/plugin.js +2 -2
- 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 +12 -12
- package/dist/extensions/weixin/src/messaging/debug-mode.js +5 -5
- package/dist/extensions/weixin/src/messaging/inbound.js +11 -11
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-sj_1IC5H.js → agent-avatar-dicebear-lRVOwbrK.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-DAqn5DdL.js +1 -0
- package/dist/gateway/static/root/assets/{agents-CIzev0Qj.js → agents-DNQNTDkU.js} +1 -1
- package/dist/gateway/static/root/assets/app-management-settings-panel-oHTY5PDs.js +1 -0
- package/dist/gateway/static/root/assets/{appearance-settings-BeXvF-dZ.js → appearance-settings-B0YnZ3ig.js} +1 -1
- package/dist/gateway/static/root/assets/apps-page-Bh0etSmL.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-BSgaIIGE.js → archive-plugin-D4x142le.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-CGNt02hP.js → attachment-load-zibD2Hod.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-DoafJiVA.js → automations-page-Dkp7gp_S.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-w4McwueN.js +6 -0
- package/dist/gateway/static/root/assets/{binary-plugins-BsAL26Aq.js → binary-plugins-CfUzu1Hc.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-BxB7m8aI.js → block-editor-r5nCBBan.js} +3 -3
- package/dist/gateway/static/root/assets/{browser-automation-inputs-DGCqIPXT.js → browser-automation-inputs-DcVLoIzc.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-BNsO-Ip2.js → browser-automations-page-BnL4JnTM.js} +2 -2
- package/dist/gateway/static/root/assets/browser-settings-page-DxX-t0EJ.js +8 -0
- package/dist/gateway/static/root/assets/{button-B11EPpor.js → button-BA45yciM.js} +1 -1
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CvacBQAI.js +8 -0
- package/dist/gateway/static/root/assets/channels-settings-CJzSNo-L.js +1 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-ZCFwco1W.js → chat-terminal-dock-CWVnJtBp.js} +2 -2
- package/dist/gateway/static/root/assets/connectors-page-DNBhBT0b.js +2 -0
- package/dist/gateway/static/root/assets/{cron-expression-C26e13YU.js → cron-expression-CjrWuy2m.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-CpxFfgpg.js → date-picker-XjPSlgq_.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-eCIGAfHa.js → dependency-picker-CkyfEP88.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-_MSZvIDO.js → desktop-pet-BAE_NVx5.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-feBnJWkV.js → desktop-pet-settings-BUw6V2R9.js} +1 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-DsR5NQEC.js +1 -0
- package/dist/gateway/static/root/assets/{dist-CpzYSoz7.js → dist-BGTk37IG.js} +1 -1
- package/dist/gateway/static/root/assets/{dist-DBS3OB8K.js → dist-CI_fqRk-.js} +1 -1
- package/dist/gateway/static/root/assets/{dist-DLmwHyAh.js → dist-Che_jiQF.js} +1 -1
- package/dist/gateway/static/root/assets/es2015-DBLcMg5B.js +41 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-CotBlxJ-.js → extension-debug-page-giBeIVUT.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-CFBmQ7U3.js → extension-page-Bqo9bNtx.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-Cd1lfh8z.js → extension-settings-page-BX-6AA3k.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-settings-Dil7vuyU.js +1 -0
- package/dist/gateway/static/root/assets/{heartbeat-settings-DRG0u1ON.js → heartbeat-settings-DWFAopk_.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-Dpeuvazg.js +1 -0
- package/dist/gateway/static/root/assets/index-B03HGpzt.js +74 -0
- package/dist/gateway/static/root/assets/index-CXF9-BpI.css +2 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-BLHsdFIQ.js → keyboard-shortcuts-settings-BKGPpBnV.js} +1 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-CBtemxFc.js +2 -0
- package/dist/gateway/static/root/assets/{local-apps-page-BjAj1xhq.js → local-apps-page-B06ToOxB.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-DibI1GsP.js +2 -0
- package/dist/gateway/static/root/assets/{management-settings-CPHxDaOw.js → management-settings-DJ6yMZCd.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-B2IR4E2r.js → markdown-view-DF3aJP_5.js} +4 -4
- package/dist/gateway/static/root/assets/{media-plugins-BUOzcXCL.js → media-plugins-CdrLNAks.js} +1 -1
- package/dist/gateway/static/root/assets/note-detail-panel-GOxomxOK.js +5 -0
- package/dist/gateway/static/root/assets/notes-page-CQBgk3_x.js +8 -0
- package/dist/gateway/static/root/assets/{page-tabs-BgEYFhqS.js → page-tabs-B7LA4z-x.js} +1 -1
- package/dist/gateway/static/root/assets/popover-select-DGmMQt4t.js +1 -0
- package/dist/gateway/static/root/assets/{preview-open-alternatives-C-pQIx6W.js → preview-open-alternatives-DTQRN7WR.js} +1 -1
- package/dist/gateway/static/root/assets/proactive-card-BF3741px.js +1 -0
- package/dist/gateway/static/root/assets/proactive-page-1EM217v0.js +1 -0
- package/dist/gateway/static/root/assets/product-open-page-BazdmFYo.js +1 -0
- package/dist/gateway/static/root/assets/project-detail-page-B1Pm-fQd.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-DUrxyNR9.js +1 -0
- package/dist/gateway/static/root/assets/remote-access-hub-C6VzHUwx.js +1 -0
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DkAjFJ-9.js → runtime-tools-settings-panel-D-DZf4I1.js} +2 -2
- package/dist/gateway/static/root/assets/{schema-form-BpDcuSsl.js → schema-form-B-Yj9DVW.js} +1 -1
- package/dist/gateway/static/root/assets/sessions-page-DtemHfkv.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-ByEVQe0c.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-RElRijJw.js → settings-form-section-BxPUqwY6.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-CaixunoA.js → settings-page-zLn8lIrs.js} +1 -1
- package/dist/gateway/static/root/assets/setup-status-panel-BwIrk3Jx.js +1 -0
- package/dist/gateway/static/root/assets/{share-preview-page-CC-bFOTf.js → share-preview-page-DAc_FkVc.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-Dwdv6QyS.js +1 -0
- package/dist/gateway/static/root/assets/{skill-reload-api-CcOtxf53.js → skill-reload-api-CDzQWN60.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-DmRvRxtY.js → skills-page-CO5XVkbY.js} +1 -1
- package/dist/gateway/static/root/assets/skills-page.utils-BR5bk2vT.js +1 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-DRIJ5mXq.js → system-settings-panel-C0ptJutB.js} +1 -1
- package/dist/gateway/static/root/assets/task-detail-page-DOjcKOzQ.js +1 -0
- package/dist/gateway/static/root/assets/tunnel-api-BABuQvGD.js +1 -0
- package/dist/gateway/static/root/assets/{use-autosave-Cq4--C1i.js → use-autosave-Dc5aN2px.js} +1 -1
- package/dist/gateway/static/root/assets/user-model-page-UhsSP_pC.js +2 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-CbJ6tKGI.js → voice-api-key-field-CY0DpJui.js} +1 -1
- package/dist/gateway/static/root/assets/work-discovery-overlay-Brg9yJBr.js +1 -0
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-vw1229Fh.js → workflow-run-setup-panel-D3fq7boB.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-S7XXNBWa.js +6 -0
- package/dist/gateway/static/root/index.html +9 -9
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/tasks.js +6 -1
- package/dist/src/agent/agent-manager.js +17 -17
- package/dist/src/agent/agent-scope.js +2 -2
- package/dist/src/agent/background-review/run-background-review.js +4 -4
- package/dist/src/agent/commands/command-isolation.d.ts +1 -0
- package/dist/src/agent/commands/command-isolation.js +17 -1
- package/dist/src/agent/commands/commandMounts.d.ts +2 -0
- package/dist/src/agent/commands/commandMounts.js +32 -0
- package/dist/src/agent/context/coordinator.js +3 -3
- package/dist/src/agent/context/execution-context.js +4 -4
- package/dist/src/agent/context/execution-scope.js +2 -2
- package/dist/src/agent/context/project-context.js +4 -4
- package/dist/src/agent/embedded/index.js +2 -2
- package/dist/src/agent/embedded/model-runtime.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +5 -5
- package/dist/src/agent/embedded/run-turn.js +2 -2
- package/dist/src/agent/embedded/session-tool-result-guard.js +3 -3
- package/dist/src/agent/external-tools/composio-provider.js +1 -1
- package/dist/src/agent/external-tools/gateway-tools.js +1 -1
- package/dist/src/agent/external-tools/mcp-provider.js +2 -2
- package/dist/src/agent/image/generation/openai-images-provider.js +1 -1
- package/dist/src/agent/image/generation/providers/dashscope.js +1 -1
- package/dist/src/agent/image/generation/providers/fal.js +1 -1
- package/dist/src/agent/image/generation/providers/google.js +1 -1
- package/dist/src/agent/image/generation/runtime.js +1 -1
- package/dist/src/agent/image/index.js +1 -1
- package/dist/src/agent/image/load-image-media.js +1 -1
- package/dist/src/agent/image/tool-model-config.js +1 -1
- package/dist/src/agent/inbound/attachment-pipeline.js +1 -1
- package/dist/src/agent/inbound/inbound-loop.js +2 -2
- package/dist/src/agent/index.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-gateway.js +1 -1
- package/dist/src/agent/mcp/bundle-mcp-runtime.js +2 -2
- package/dist/src/agent/mcp/index.js +2 -2
- package/dist/src/agent/mcp/mcp-transport.js +1 -1
- package/dist/src/agent/mcp/oauth/mcp-oauth-manager.js +1 -1
- package/dist/src/agent/mcp/oauth/mcp-oauth-store.js +1 -1
- package/dist/src/agent/memory/index.js +2 -2
- package/dist/src/agent/messaging/outbound-coordinator.js +1 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js +5 -5
- package/dist/src/agent/prompt/service-prompt-builder.js +2 -2
- package/dist/src/agent/sandbox/command-validator.js +0 -20
- package/dist/src/agent/sandbox/exec-policy.d.ts +1 -0
- package/dist/src/agent/sandbox/exec-policy.js +3 -3
- package/dist/src/agent/sandbox/fileAccess.d.ts +7 -0
- package/dist/src/agent/sandbox/fileAccess.js +100 -0
- package/dist/src/agent/sandbox/path-policy.d.ts +2 -0
- package/dist/src/agent/sandbox/path-policy.js +54 -17
- package/dist/src/agent/sandbox/sanitize-env-vars.js +10 -9
- package/dist/src/agent/service/direct-turn-helpers.js +6 -6
- package/dist/src/agent/service/process-direct-one-shot.js +1 -1
- package/dist/src/agent/service/process-direct-streaming.js +5 -5
- package/dist/src/agent/service/webchat-tts.js +2 -2
- package/dist/src/agent/service.js +19 -19
- package/dist/src/agent/session/session-inspector.js +1 -1
- package/dist/src/agent/skills/filesystem-watcher.js +1 -1
- package/dist/src/agent/skills/hub-lock.js +1 -1
- package/dist/src/agent/skills/hub-pull.js +3 -3
- package/dist/src/agent/skills/marketplace/adapters/store/adapter.js +1 -1
- package/dist/src/agent/skills/marketplace/adapters/store/store-api-client.js +1 -1
- package/dist/src/agent/tasks/task-judge-service.js +5 -5
- package/dist/src/agent/tools/apply-patch.js +25 -38
- package/dist/src/agent/tools/create-share-tool.js +13 -5
- package/dist/src/agent/tools/delegate-tool.js +3 -3
- package/dist/src/agent/tools/exec-command.js +2 -1
- package/dist/src/agent/tools/executor.js +1 -1
- package/dist/src/agent/tools/factory.js +13 -13
- package/dist/src/agent/tools/find.js +5 -3
- package/dist/src/agent/tools/grep.js +21 -4
- package/dist/src/agent/tools/image-generate-tool.js +5 -6
- package/dist/src/agent/tools/index.js +5 -5
- package/dist/src/agent/tools/list-dir.js +2 -1
- package/dist/src/agent/tools/managed-job-tool.js +1 -0
- package/dist/src/agent/tools/publish-artifacts.js +4 -3
- package/dist/src/agent/tools/read.js +9 -6
- package/dist/src/agent/tools/repository-search.d.ts +2 -0
- package/dist/src/agent/tools/repository-search.js +51 -7
- package/dist/src/agent/tools/review-workspace.js +76 -10
- package/dist/src/agent/tools/send-media.js +5 -4
- package/dist/src/agent/tools/skills-tools.js +1 -1
- package/dist/src/agent/tools/tool-paths.js +3 -1
- package/dist/src/agent/tools/tts-tool.js +1 -1
- package/dist/src/agent/tools/user-context-tool.js +1 -1
- package/dist/src/agent/tools/write.js +6 -19
- package/dist/src/agent/tools/xopc-use-tool.js +6 -6
- package/dist/src/agent/workflow/subagent-runner.js +1 -1
- package/dist/src/agent-config/schema.d.ts +24 -0
- package/dist/src/agent-config/schema.js +2 -1
- package/dist/src/ai-assist/text-assist.js +1 -1
- package/dist/src/auth/credentials.js +2 -2
- package/dist/src/auth/oauth/xopc-cloud.js +1 -1
- package/dist/src/auth/profiles/store.js +1 -1
- package/dist/src/auth/sync-provider-auth.js +2 -2
- package/dist/src/browser/providers/browser-ext-install.js +1 -1
- package/dist/src/capabilities/store-connector.js +1 -1
- package/dist/src/channels/attachments/voice-stt-webchat.js +2 -2
- package/dist/src/channels/index.js +2 -2
- package/dist/src/channels/outbound-sender.js +1 -1
- package/dist/src/channels/pairing/allow-from-file.js +9 -9
- package/dist/src/channels/pairing/pairing-store.js +6 -6
- package/dist/src/chat-commands/builtins/config.js +2 -2
- package/dist/src/chat-commands/builtins/review.js +1 -1
- package/dist/src/chat-commands/builtins/session.js +1 -1
- package/dist/src/chat-commands/builtins/thinking.js +1 -1
- package/dist/src/chat-commands/builtins/tts.js +1 -1
- package/dist/src/chat-commands/builtins/understanding.js +1 -1
- package/dist/src/chat-commands/builtins/workflow.js +2 -2
- package/dist/src/chat-commands/context.js +2 -2
- package/dist/src/chat-commands/index.js +3 -3
- package/dist/src/cli/commands/agent.js +6 -6
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/channels.js +1 -1
- package/dist/src/cli/commands/config.js +1 -1
- package/dist/src/cli/commands/connectors.js +1 -1
- package/dist/src/cli/commands/doctor/checks/provider-auth.js +21 -20
- package/dist/src/cli/commands/extension-dev.js +1 -1
- package/dist/src/cli/commands/extension-marketplace.js +2 -2
- package/dist/src/cli/commands/extension.js +1 -1
- package/dist/src/cli/commands/gateway/shared.js +1 -1
- package/dist/src/cli/commands/gateway/token.js +1 -1
- package/dist/src/cli/commands/image.js +1 -1
- package/dist/src/cli/commands/init.js +1 -1
- package/dist/src/cli/commands/models.js +2 -2
- package/dist/src/cli/commands/onboard.js +2 -2
- package/dist/src/cli/commands/project.js +2 -2
- package/dist/src/cli/commands/runtime.js +1 -1
- package/dist/src/cli/commands/skills.js +2 -2
- package/dist/src/cli/commands/tui.js +1 -1
- package/dist/src/cli/commands/tunnel.js +3 -3
- package/dist/src/cli/extension-cli-register.js +4 -4
- package/dist/src/cli/utils/gateway-client.js +1 -1
- package/dist/src/config/index.js +5 -5
- package/dist/src/config/loader.js +2 -2
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/config/schema.d.ts +16 -0
- package/dist/src/connectors/connected-source-understanding.js +2 -2
- package/dist/src/connectors/connection-recovery-service.js +3 -3
- package/dist/src/discussions/live-worker.js +1 -1
- package/dist/src/discussions/sealer.js +1 -1
- package/dist/src/extensions/api.js +3 -3
- package/dist/src/extensions/bundled-extension-activation.js +1 -1
- package/dist/src/extensions/index.js +1 -1
- package/dist/src/extensions/loader.js +1 -1
- package/dist/src/extensions/lockfile.js +1 -1
- package/dist/src/extensions/sdk/index.js +1 -1
- package/dist/src/extensions/update.js +1 -1
- package/dist/src/gateway/agents-admin.js +4 -4
- package/dist/src/gateway/device-routes.js +2 -2
- package/dist/src/gateway/file-path-classifier.js +2 -2
- package/dist/src/gateway/hono/app.js +3 -3
- package/dist/src/gateway/hono/lib/config-payload.d.ts +1 -0
- package/dist/src/gateway/hono/lib/config-payload.js +3 -3
- package/dist/src/gateway/hono/routes/agents.js +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +2 -2
- package/dist/src/gateway/hono/routes/browser.js +1 -1
- package/dist/src/gateway/hono/routes/commands-skills.js +3 -3
- package/dist/src/gateway/hono/routes/config-patch/gateway.js +1 -1
- package/dist/src/gateway/hono/routes/mcp.js +2 -2
- package/dist/src/gateway/hono/routes/media.js +1 -1
- package/dist/src/gateway/hono/routes/models.js +5 -5
- package/dist/src/gateway/hono/routes/notes.js +1 -1
- package/dist/src/gateway/hono/routes/proactive-control.js +4 -4
- package/dist/src/gateway/hono/routes/projects.js +2 -2
- package/dist/src/gateway/hono/routes/sessions.js +1 -1
- package/dist/src/gateway/hono/routes/shares.js +25 -4
- package/dist/src/gateway/hono/routes/site-shares.js +1 -1
- package/dist/src/gateway/hono/routes/status.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +10 -3
- package/dist/src/gateway/hono/routes/user-model.js +4 -4
- package/dist/src/gateway/hono/routes/voice.js +3 -3
- package/dist/src/gateway/hono/routes/workflows.js +2 -2
- package/dist/src/gateway/image-generation-setup.js +1 -1
- package/dist/src/gateway/lock.js +10 -10
- package/dist/src/gateway/media-access.js +2 -2
- package/dist/src/gateway/ports.js +6 -6
- package/dist/src/gateway/server.js +1 -1
- package/dist/src/gateway/service/config-coordinator.js +4 -4
- package/dist/src/gateway/service/marketplace-service.js +3 -3
- package/dist/src/gateway/service/run-gateway-agent.js +3 -3
- package/dist/src/gateway/service.js +31 -31
- package/dist/src/gateway/session-context-summary.js +2 -2
- package/dist/src/gateway/workspace-editor-path.js +2 -2
- package/dist/src/infra/gateway-processes.js +2 -2
- package/dist/src/infra/path-env.js +3 -3
- package/dist/src/infra/update-global.js +10 -10
- package/dist/src/infra/update-runner.js +1 -1
- package/dist/src/local-apps/service.js +1 -1
- package/dist/src/media-shared/http/ssrf-guard.js +1 -1
- package/dist/src/notes/agent-context.js +3 -3
- package/dist/src/notes/service.js +3 -2
- package/dist/src/proactive/actions/service.js +1 -1
- package/dist/src/proactive/execution/agent-executor.js +1 -1
- package/dist/src/proactive/execution/context.js +1 -1
- package/dist/src/proactive/execution/worker.js +1 -1
- package/dist/src/proactive/experience.js +7 -2
- package/dist/src/proactive/follow-ups.js +1 -1
- package/dist/src/proactive/inbox/cards.js +2 -2
- package/dist/src/proactive/inbox/delivery.js +2 -2
- package/dist/src/proactive/inbox/digest.js +2 -2
- package/dist/src/proactive/inbox/notification-policy.js +1 -1
- package/dist/src/proactive/inbox/repository.js +1 -1
- package/dist/src/proactive/inbox/service.js +1 -1
- package/dist/src/proactive/index.js +1 -1
- package/dist/src/proactive/temporal/worker.js +1 -1
- package/dist/src/projects/project-skill-service.js +2 -2
- package/dist/src/providers/auth-runtime/resolve-auth.js +1 -1
- package/dist/src/providers/index.js +2 -2
- package/dist/src/providers/model-reference-auditor.js +1 -1
- package/dist/src/providers/model-registry.js +1 -1
- package/dist/src/providers/register-runtime-providers.js +1 -1
- package/dist/src/remote-access/exposure-manager.js +1 -1
- package/dist/src/session/index.js +2 -2
- package/dist/src/session/session-title.js +1 -1
- package/dist/src/session/store.js +3 -3
- package/dist/src/session/thinking-resolve.js +1 -1
- package/dist/src/share/share-store.js +6 -2
- package/dist/src/share/share-thumbnail.js +1 -1
- package/dist/src/share/site-share-store.js +1 -1
- package/dist/src/storage/sqlite/connection.js +9 -9
- package/dist/src/tasks/execution-context.js +1 -1
- package/dist/src/tasks/home-query-service.js +4 -3
- package/dist/src/tasks/index.js +3 -3
- package/dist/src/tasks/project-operating-view-service.js +7 -4
- package/dist/src/tasks/task-application-service.js +109 -5
- package/dist/src/tasks/task-context-assembler.js +8 -4
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-read-model-projector.js +7 -5
- package/dist/src/tasks/task-run-coordinator.js +3 -1
- package/dist/src/tasks/task-run-repository.js +4 -1
- package/dist/src/tui/backends/embedded-backend.js +9 -9
- package/dist/src/tui/backends/gateway-realtime-backend.js +2 -2
- package/dist/src/tui/extension-host/load-extensions.js +1 -1
- package/dist/src/tui/tui-command-formatters.js +1 -1
- package/dist/src/tui/tui-commands.js +5 -5
- package/dist/src/tui/tui-picker-overlay.js +1 -1
- package/dist/src/tui/tui-skills-autocomplete.js +1 -1
- package/dist/src/tui/tui-startup-resources.js +5 -5
- package/dist/src/tui/tui.js +3 -3
- package/dist/src/tunnel/gateway-lifecycle.js +1 -1
- package/dist/src/voice/local/runtime-worker.js +1 -1
- package/dist/src/voice/realtime/memory-context.js +3 -3
- package/dist/src/voice/stt/index.js +2 -2
- package/dist/src/voice/stt/preflight.js +1 -1
- package/dist/src/voice/stt/providers/local-transcription.js +1 -1
- package/dist/src/voice/stt/transcribe-core.js +1 -1
- package/dist/src/voice/tts/index.js +3 -3
- package/dist/src/voice/tts/merge-config.js +1 -1
- package/dist/src/voice/tts/payload.js +1 -1
- package/dist/src/voice/tts/speak-core.js +1 -1
- package/dist/src/work-discovery/service.js +3 -3
- package/dist/src/workflows/context/workflow-context.js +1 -1
- package/dist/src/workflows/service/workflow-run-service.js +6 -6
- package/dist/src/workflows/service/workflow-session-bridge.js +1 -1
- package/package.json +3 -3
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-B5MRLEy8.js +0 -1
- package/dist/gateway/static/root/assets/app-management-settings-panel-DY3Vwxjq.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-Ch_9Ffgk.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-MACr99IO.js +0 -6
- package/dist/gateway/static/root/assets/browser-settings-page-Nvdoi0B1.js +0 -8
- package/dist/gateway/static/root/assets/capabilities-settings-panel-BluLJq5I.js +0 -8
- package/dist/gateway/static/root/assets/channels-settings-DYxxhcjb.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-Bpcp8UyE.js +0 -2
- package/dist/gateway/static/root/assets/device-pairing-wizard-D_fB0fml.js +0 -1
- package/dist/gateway/static/root/assets/es2015-BvLh9GaE.js +0 -41
- package/dist/gateway/static/root/assets/gateway-settings-BH35C8RI.js +0 -1
- package/dist/gateway/static/root/assets/home-page-BlZk-aD4.js +0 -1
- package/dist/gateway/static/root/assets/index-CfQor-TM.js +0 -74
- package/dist/gateway/static/root/assets/index-DKy1Qn1_.css +0 -2
- package/dist/gateway/static/root/assets/local-app-workbench-page-DJd71FlC.js +0 -2
- package/dist/gateway/static/root/assets/logs-page-5MWeZ6Ae.js +0 -2
- package/dist/gateway/static/root/assets/note-detail-panel-Bch98ut3.js +0 -5
- package/dist/gateway/static/root/assets/notes-page-CWO5dQKN.js +0 -8
- package/dist/gateway/static/root/assets/popover-select-Dz_Qis2R.js +0 -1
- package/dist/gateway/static/root/assets/proactive-card-DfjMVJUW.js +0 -1
- package/dist/gateway/static/root/assets/proactive-page-BGVcVsbd.js +0 -1
- package/dist/gateway/static/root/assets/product-open-page-DsQcgZkI.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-DZFVirjV.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-B2g6inq-.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-CbkUOkQY.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page--7-w-0WS.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-BvZrH_sp.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-Ul06Y5YX.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-DwV2Wh7S.js +0 -1
- package/dist/gateway/static/root/assets/skills-page.utils-CT0-daZD.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-BQjLHqSk.js +0 -1
- package/dist/gateway/static/root/assets/tunnel-api-IvWcgZdD.js +0 -1
- package/dist/gateway/static/root/assets/user-model-page-hwc5-nqV.js +0 -2
- package/dist/gateway/static/root/assets/work-discovery-overlay-BG2pmXL3.js +0 -1
- package/dist/gateway/static/root/assets/workflows-page-DZWpJHDr.js +0 -6
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { prepareSafeToolEnv } from "../sandbox/sanitize-env-vars.js";
|
|
1
2
|
import { readWorkspaceRevision } from "../coding/workspace-revision.js";
|
|
3
|
+
import { evaluateFilePolicy } from "../sandbox/exec-policy.js";
|
|
4
|
+
import { checkedFilePath, readWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
2
5
|
import { resolve } from "node:path";
|
|
3
6
|
import { execFile } from "node:child_process";
|
|
4
|
-
import { lstat,
|
|
7
|
+
import { lstat, readlink, realpath } from "node:fs/promises";
|
|
5
8
|
import { promisify } from "node:util";
|
|
6
9
|
import { Type } from "@sinclair/typebox";
|
|
7
10
|
//#region src/agent/tools/review-workspace.ts
|
|
@@ -15,62 +18,125 @@ function createReviewWorkspaceTool(workspace) {
|
|
|
15
18
|
supportsParallel: true,
|
|
16
19
|
idempotent: true,
|
|
17
20
|
async execute(_id, _args, signal) {
|
|
18
|
-
let cwd = workspace;
|
|
21
|
+
let cwd = checkedFilePath(workspace, workspace, "read");
|
|
19
22
|
const git = async (args) => (await exec("git", [
|
|
20
23
|
"-c",
|
|
21
24
|
"core.fsmonitor=false",
|
|
22
25
|
...args
|
|
23
26
|
], {
|
|
24
27
|
cwd,
|
|
28
|
+
env: prepareSafeToolEnv(process.env),
|
|
25
29
|
signal,
|
|
26
30
|
timeout: 1e4,
|
|
27
31
|
maxBuffer: 8 * 1024 * 1024
|
|
28
32
|
})).stdout;
|
|
29
|
-
cwd = await realpath((await git(["rev-parse", "--show-toplevel"])).trim());
|
|
33
|
+
cwd = checkedFilePath(workspace, await realpath((await git(["rev-parse", "--show-toplevel"])).trim()), "read");
|
|
30
34
|
const startRevision = await readWorkspaceRevision(cwd);
|
|
31
35
|
const head = await git([
|
|
32
36
|
"rev-parse",
|
|
33
37
|
"--verify",
|
|
34
38
|
"HEAD"
|
|
35
39
|
]).catch(() => "");
|
|
36
|
-
const
|
|
40
|
+
const changedNames = head ? await git([
|
|
37
41
|
"diff",
|
|
42
|
+
"--no-renames",
|
|
43
|
+
"--name-only",
|
|
44
|
+
"-z",
|
|
45
|
+
"HEAD",
|
|
46
|
+
"--"
|
|
47
|
+
]) : (await Promise.all([git([
|
|
48
|
+
"diff",
|
|
49
|
+
"--name-only",
|
|
50
|
+
"-z",
|
|
51
|
+
"--cached",
|
|
52
|
+
"--"
|
|
53
|
+
]), git([
|
|
54
|
+
"diff",
|
|
55
|
+
"--name-only",
|
|
56
|
+
"-z",
|
|
57
|
+
"--"
|
|
58
|
+
])])).join("");
|
|
59
|
+
const safePaths = [];
|
|
60
|
+
let complete = true;
|
|
61
|
+
for (const path of new Set(changedNames.split("\0").filter(Boolean))) {
|
|
62
|
+
const file = resolve(cwd, path);
|
|
63
|
+
if (!evaluateFilePolicy({
|
|
64
|
+
workspaceRoot: workspace,
|
|
65
|
+
path: file,
|
|
66
|
+
operation: "read"
|
|
67
|
+
}).allowed) {
|
|
68
|
+
complete = false;
|
|
69
|
+
continue;
|
|
70
|
+
}
|
|
71
|
+
const info = await lstat(file).catch((error) => {
|
|
72
|
+
if (error.code === "ENOENT") return null;
|
|
73
|
+
throw error;
|
|
74
|
+
});
|
|
75
|
+
if (info && (!info.isFile() || info.nlink !== 1)) {
|
|
76
|
+
complete = false;
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
safePaths.push(`:(literal)${path}`);
|
|
80
|
+
}
|
|
81
|
+
if (safePaths.length > 1e3) throw new Error("Too many changed files for a bounded workspace review");
|
|
82
|
+
const [diff, names] = await Promise.all([safePaths.length === 0 ? Promise.resolve("") : head ? git([
|
|
83
|
+
"diff",
|
|
84
|
+
"--no-renames",
|
|
38
85
|
"--no-ext-diff",
|
|
39
86
|
"--no-textconv",
|
|
40
87
|
"--binary",
|
|
41
88
|
"HEAD",
|
|
42
|
-
"--"
|
|
89
|
+
"--",
|
|
90
|
+
...safePaths
|
|
43
91
|
]) : Promise.all([git([
|
|
44
92
|
"diff",
|
|
93
|
+
"--no-renames",
|
|
45
94
|
"--no-ext-diff",
|
|
46
95
|
"--no-textconv",
|
|
47
96
|
"--binary",
|
|
48
97
|
"--cached",
|
|
49
|
-
"--"
|
|
98
|
+
"--",
|
|
99
|
+
...safePaths
|
|
50
100
|
]), git([
|
|
51
101
|
"diff",
|
|
102
|
+
"--no-renames",
|
|
52
103
|
"--no-ext-diff",
|
|
53
104
|
"--no-textconv",
|
|
54
105
|
"--binary",
|
|
55
|
-
"--"
|
|
106
|
+
"--",
|
|
107
|
+
...safePaths
|
|
56
108
|
])]).then((parts) => parts.join("\n")), git([
|
|
57
109
|
"ls-files",
|
|
58
110
|
"--others",
|
|
59
111
|
"--exclude-standard",
|
|
60
112
|
"-z"
|
|
61
113
|
])]);
|
|
62
|
-
let text = diff.slice(0, 2e5)
|
|
114
|
+
let text = diff.slice(0, 2e5);
|
|
115
|
+
complete &&= diff.length <= 2e5;
|
|
63
116
|
for (const path of names.split("\0").filter(Boolean)) {
|
|
64
117
|
signal?.throwIfAborted();
|
|
65
118
|
if (text.length >= 2e5) {
|
|
66
119
|
complete = false;
|
|
67
120
|
break;
|
|
68
121
|
}
|
|
69
|
-
const file = resolve(cwd, path)
|
|
122
|
+
const file = resolve(cwd, path);
|
|
123
|
+
if (!evaluateFilePolicy({
|
|
124
|
+
workspaceRoot: workspace,
|
|
125
|
+
path: file,
|
|
126
|
+
operation: "read"
|
|
127
|
+
}).allowed) {
|
|
128
|
+
complete = false;
|
|
129
|
+
continue;
|
|
130
|
+
}
|
|
131
|
+
const info = await lstat(file);
|
|
132
|
+
if (info.isFile() && info.nlink !== 1) {
|
|
133
|
+
complete = false;
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
70
136
|
text += `\nUntracked file: ${path}\n`;
|
|
71
137
|
if (info.isSymbolicLink()) text += `Symlink to ${await readlink(file)}\n`;
|
|
72
138
|
else if (info.isFile() && info.size <= 5e4) {
|
|
73
|
-
const content =
|
|
139
|
+
const content = readWorkspaceFile(workspace, file, 5e4);
|
|
74
140
|
if (content.includes(0)) {
|
|
75
141
|
text += "(binary file; inspect separately)\n";
|
|
76
142
|
complete = false;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { turnOutcomeKindFromFileName } from "../../../packages/gateway-contract/src/turn-outcome.js";
|
|
2
|
-
import { checkFileSafety } from "../prompt/safety.js";
|
|
3
2
|
import { resolvePathUnderWorkspace } from "./tool-paths.js";
|
|
3
|
+
import { MEDIA_MAX_BYTES } from "../../media/store.js";
|
|
4
|
+
import { readWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
5
|
+
import { checkFileSafety } from "../prompt/safety.js";
|
|
4
6
|
import { persistToolMedia } from "./tool-media.js";
|
|
5
7
|
import { basename } from "node:path";
|
|
6
|
-
import { readFile } from "fs/promises";
|
|
7
8
|
import { Type } from "@sinclair/typebox";
|
|
8
9
|
//#region src/agent/tools/send-media.ts
|
|
9
10
|
const SendMediaSchema = Type.Object({
|
|
10
|
-
filePath: Type.String({ description: "File to send. Relative paths are under the current agent workspace; absolute paths
|
|
11
|
+
filePath: Type.String({ description: "File to send. Relative paths are under the current agent workspace; absolute paths must remain inside the workspace." }),
|
|
11
12
|
mediaType: Type.Optional(Type.Enum({
|
|
12
13
|
photo: "photo",
|
|
13
14
|
video: "video",
|
|
@@ -42,7 +43,7 @@ function createSendMediaTool(workspace, bus, getContext) {
|
|
|
42
43
|
details: {}
|
|
43
44
|
};
|
|
44
45
|
try {
|
|
45
|
-
const fileBuffer =
|
|
46
|
+
const fileBuffer = readWorkspaceFile(workspace, resolved, MEDIA_MAX_BYTES);
|
|
46
47
|
const media = await persistToolMedia({
|
|
47
48
|
buffer: fileBuffer,
|
|
48
49
|
filePath: resolved,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveStateDir } from "../../config/paths-state.js";
|
|
2
2
|
import { init_paths } from "../../config/paths.js";
|
|
3
|
-
import { DEFAULT_MAX_BYTES, formatSize, truncateHead } from "./truncate.js";
|
|
4
3
|
import { createSkillConfigManager, isSkillEnabled, resolveSkillConfig } from "../skills/config.js";
|
|
4
|
+
import { DEFAULT_MAX_BYTES, formatSize, truncateHead } from "./truncate.js";
|
|
5
5
|
import { resolveSkillReadablePath } from "../skills/skill-view-path.js";
|
|
6
6
|
import { readFileSync, statSync } from "fs";
|
|
7
7
|
import { Type } from "@sinclair/typebox";
|
|
@@ -16,7 +16,9 @@ function resolvePathUnderWorkspace(userPath, workspaceRoot) {
|
|
|
16
16
|
}
|
|
17
17
|
/** True if `userPath` is only a profile-system filename, e.g. `SOUL.md` or `.\SOUL.md` (basename matches). */
|
|
18
18
|
function isBareProfileMarkdownFileName(userPath) {
|
|
19
|
-
const
|
|
19
|
+
const normalized = userPath.replace(/\\/g, "/").replace(/^\.\//, "");
|
|
20
|
+
if (normalized.includes("/")) return false;
|
|
21
|
+
const b = basename(normalized);
|
|
20
22
|
if (!b || b === "." || b === "..") return false;
|
|
21
23
|
return PROFILE_SYSTEM_MARKDOWN_NAME_LOWER.has(b.toLowerCase());
|
|
22
24
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
-
import { speak } from "../../voice/tts/speak-core.js";
|
|
4
3
|
import { mergeTtsConfigFromAppConfig } from "../../voice/tts/merge-config.js";
|
|
5
4
|
import { getChannelOutputFormat } from "../../voice/tts/service.js";
|
|
5
|
+
import { speak } from "../../voice/tts/speak-core.js";
|
|
6
6
|
import { compressAudio } from "../../voice/tts/audio.js";
|
|
7
7
|
import { persistOutboundTtsAudio } from "../../channels/attachments/outbound-tts-persist.js";
|
|
8
8
|
import { Type } from "@sinclair/typebox";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { retrievalLexicalSimilarity } from "../../retrieval/textFeatures.js";
|
|
2
1
|
import { getAssertionSlot, getUserAssertion, listUserAssertions, reconcileAssertion, setAssertionStatus } from "../../user-model/repository.js";
|
|
3
2
|
import { isWorkingAssumption } from "../../user-model/usage-policy.js";
|
|
4
3
|
import "../../user-model/index.js";
|
|
4
|
+
import { retrievalLexicalSimilarity } from "../../retrieval/textFeatures.js";
|
|
5
5
|
import { Type } from "@sinclair/typebox";
|
|
6
6
|
//#region src/agent/tools/user-context-tool.ts
|
|
7
7
|
const SearchSchema = Type.Object({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { appendProductDeliveryText } from "../../../packages/gateway-contract/src/product-delivery.js";
|
|
2
|
-
import { checkFileSafety } from "../prompt/safety.js";
|
|
3
|
-
import { isBareProfileMarkdownFileName, resolvePathUnderWorkspace, resolveProfileMarkdownPathIfBareName } from "./tool-paths.js";
|
|
4
2
|
import { fileResourceId, fileSpaceId } from "../../files/file-service.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { isBareProfileMarkdownFileName, resolvePathUnderWorkspace, resolveProfileMarkdownPathIfBareName } from "./tool-paths.js";
|
|
4
|
+
import { writeWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
5
|
+
import { checkFileSafety } from "../prompt/safety.js";
|
|
6
|
+
import { basename, relative, sep } from "path";
|
|
7
|
+
import { realpath } from "fs/promises";
|
|
8
8
|
import { Type } from "@sinclair/typebox";
|
|
9
9
|
//#region src/agent/tools/write.ts
|
|
10
10
|
const MAX_FILE_SIZE = 10 * 1024 * 1024;
|
|
@@ -37,18 +37,6 @@ function createWriteFileTool(workspace, options) {
|
|
|
37
37
|
};
|
|
38
38
|
const writesProfileFile = Boolean(options?.profileMarkdownRoot && isBareProfileMarkdownFileName(p.path));
|
|
39
39
|
const workspaceRoot = writesProfileFile ? options.profileMarkdownRoot : workspace;
|
|
40
|
-
const pathPolicy = evaluateFilePolicy({
|
|
41
|
-
operation: "write",
|
|
42
|
-
path: p.path,
|
|
43
|
-
workspaceRoot
|
|
44
|
-
});
|
|
45
|
-
if (!pathPolicy.allowed) return {
|
|
46
|
-
content: [{
|
|
47
|
-
type: "text",
|
|
48
|
-
text: `🚫 Sandbox: ${pathPolicy.reason}`
|
|
49
|
-
}],
|
|
50
|
-
details: { status: "failed" }
|
|
51
|
-
};
|
|
52
40
|
const contentBytes = Buffer.byteLength(p.content, "utf-8");
|
|
53
41
|
if (contentBytes > MAX_FILE_SIZE) return {
|
|
54
42
|
content: [{
|
|
@@ -58,8 +46,7 @@ function createWriteFileTool(workspace, options) {
|
|
|
58
46
|
details: { status: "failed" }
|
|
59
47
|
};
|
|
60
48
|
const target = writesProfileFile ? resolveProfileMarkdownPathIfBareName(p.path, options.profileMarkdownRoot) : resolvePathUnderWorkspace(p.path, workspace);
|
|
61
|
-
|
|
62
|
-
await writeFile(target, p.content, "utf-8");
|
|
49
|
+
writeWorkspaceFile(workspaceRoot, target, p.content);
|
|
63
50
|
const delivery = writesProfileFile ? void 0 : await Promise.all([realpath(workspace), realpath(target)]).then(([root, canonicalTarget]) => ({
|
|
64
51
|
version: 1,
|
|
65
52
|
operation: "updated",
|
|
@@ -9,19 +9,19 @@ import "../../storage/sqlite/index.js";
|
|
|
9
9
|
import { ObjectLinkService } from "../../activity/service.js";
|
|
10
10
|
import "../../activity/index.js";
|
|
11
11
|
import { getDefaultAgentId, init_resolve_route } from "../../routing/resolve-route.js";
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
12
|
+
import { CreateAutomationSchema, UpdateAutomationSchema } from "../../automations/domain/validation.js";
|
|
13
|
+
import "../../automations/index.js";
|
|
14
14
|
import { isValidProjectAgentId, normalizeProjectAgentId, resolveProjectAgentId } from "../../projects/project-agent.js";
|
|
15
15
|
import "../../projects/index.js";
|
|
16
|
-
import { updateControlledSubscription } from "../../proactive/scenarios/control.js";
|
|
17
|
-
import { continueMailFollowUp, mailFollowUpSources, startMailFollowUp, updateMailFollowUp } from "../../proactive/follow-ups.js";
|
|
18
16
|
import { TaskContextRepository } from "../../tasks/task-context-repository.js";
|
|
17
|
+
import { TaskRepository } from "../../tasks/task-repository.js";
|
|
18
|
+
import { TaskReadModelProjector } from "../../tasks/task-read-model-projector.js";
|
|
19
19
|
import { TaskDependencyError, TaskDependencyService } from "../../tasks/task-dependency-service.js";
|
|
20
20
|
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
21
|
+
import { updateControlledSubscription } from "../../proactive/scenarios/control.js";
|
|
21
22
|
import { getCard } from "../../proactive/inbox/cards.js";
|
|
23
|
+
import { continueMailFollowUp, mailFollowUpSources, startMailFollowUp, updateMailFollowUp } from "../../proactive/follow-ups.js";
|
|
22
24
|
import { checkDelegation, delegationOverview, startDelegation } from "../../proactive/experience.js";
|
|
23
|
-
import { CreateAutomationSchema, UpdateAutomationSchema } from "../../automations/domain/validation.js";
|
|
24
|
-
import "../../automations/index.js";
|
|
25
25
|
import { defineTaskContract } from "../../tasks/task-contract-definition.js";
|
|
26
26
|
import { TaskDeletionService } from "../../tasks/task-deletion-service.js";
|
|
27
27
|
import "../../tasks/index.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { createSqliteTranscriptRuntime } from "../embedded/transcript-runtime.js";
|
|
4
|
+
import { STRUCTURED_OUTPUT_TOOL_NAME, createStructuredOutputTool } from "./structured-output-tool.js";
|
|
4
5
|
import { createDelegateChildHandle } from "../child-agent-factory.js";
|
|
5
6
|
import { DEFAULT_DELEGATE_TOOLS, DELEGATE_BLOCKED_TOOLS } from "../tools/delegate-tool.js";
|
|
6
|
-
import { STRUCTURED_OUTPUT_TOOL_NAME, createStructuredOutputTool } from "./structured-output-tool.js";
|
|
7
7
|
//#region src/agent/workflow/subagent-runner.ts
|
|
8
8
|
init_logger();
|
|
9
9
|
const log = createLogger("Agent:WorkflowSubagent");
|
|
@@ -122,6 +122,10 @@ export declare const RuntimePolicySchema: z.ZodObject<{
|
|
|
122
122
|
mode: z.ZodLiteral<"docker">;
|
|
123
123
|
image: z.ZodString;
|
|
124
124
|
network: z.ZodDefault<z.ZodBoolean>;
|
|
125
|
+
workspaceAccess: z.ZodDefault<z.ZodEnum<{
|
|
126
|
+
"read-only": "read-only";
|
|
127
|
+
"read-write": "read-write";
|
|
128
|
+
}>>;
|
|
125
129
|
}, z.core.$strict>], "mode">>;
|
|
126
130
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
127
131
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -192,6 +196,10 @@ export declare const AgentDefaultsSchema: z.ZodObject<{
|
|
|
192
196
|
mode: z.ZodLiteral<"docker">;
|
|
193
197
|
image: z.ZodString;
|
|
194
198
|
network: z.ZodDefault<z.ZodBoolean>;
|
|
199
|
+
workspaceAccess: z.ZodDefault<z.ZodEnum<{
|
|
200
|
+
"read-only": "read-only";
|
|
201
|
+
"read-write": "read-write";
|
|
202
|
+
}>>;
|
|
195
203
|
}, z.core.$strict>], "mode">>;
|
|
196
204
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
197
205
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -275,6 +283,10 @@ export declare const AgentEntrySchema: z.ZodObject<{
|
|
|
275
283
|
mode: z.ZodLiteral<"docker">;
|
|
276
284
|
image: z.ZodString;
|
|
277
285
|
network: z.ZodDefault<z.ZodBoolean>;
|
|
286
|
+
workspaceAccess: z.ZodDefault<z.ZodEnum<{
|
|
287
|
+
"read-only": "read-only";
|
|
288
|
+
"read-write": "read-write";
|
|
289
|
+
}>>;
|
|
278
290
|
}, z.core.$strict>], "mode">>;
|
|
279
291
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
280
292
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -348,6 +360,10 @@ export declare const AgentsConfigSchema: z.ZodObject<{
|
|
|
348
360
|
mode: z.ZodLiteral<"docker">;
|
|
349
361
|
image: z.ZodString;
|
|
350
362
|
network: z.ZodDefault<z.ZodBoolean>;
|
|
363
|
+
workspaceAccess: z.ZodDefault<z.ZodEnum<{
|
|
364
|
+
"read-only": "read-only";
|
|
365
|
+
"read-write": "read-write";
|
|
366
|
+
}>>;
|
|
351
367
|
}, z.core.$strict>], "mode">>;
|
|
352
368
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
353
369
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -427,6 +443,10 @@ export declare const AgentsConfigSchema: z.ZodObject<{
|
|
|
427
443
|
mode: z.ZodLiteral<"docker">;
|
|
428
444
|
image: z.ZodString;
|
|
429
445
|
network: z.ZodDefault<z.ZodBoolean>;
|
|
446
|
+
workspaceAccess: z.ZodDefault<z.ZodEnum<{
|
|
447
|
+
"read-only": "read-only";
|
|
448
|
+
"read-write": "read-write";
|
|
449
|
+
}>>;
|
|
430
450
|
}, z.core.$strict>], "mode">>;
|
|
431
451
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
432
452
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -506,6 +526,10 @@ export declare const EffectiveAgentConfigSchema: z.ZodObject<{
|
|
|
506
526
|
mode: z.ZodLiteral<"docker">;
|
|
507
527
|
image: z.ZodString;
|
|
508
528
|
network: z.ZodDefault<z.ZodBoolean>;
|
|
529
|
+
workspaceAccess: z.ZodDefault<z.ZodEnum<{
|
|
530
|
+
"read-only": "read-only";
|
|
531
|
+
"read-write": "read-write";
|
|
532
|
+
}>>;
|
|
509
533
|
}, z.core.$strict>], "mode">>;
|
|
510
534
|
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
511
535
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -80,7 +80,8 @@ var init_schema = __esmMin((() => {
|
|
|
80
80
|
commandIsolation: z.discriminatedUnion("mode", [z.object({ mode: z.literal("host") }).strict(), z.object({
|
|
81
81
|
mode: z.literal("docker"),
|
|
82
82
|
image: z.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9./:_-]*@sha256:[a-f0-9]{64}$/),
|
|
83
|
-
network: z.boolean().default(false)
|
|
83
|
+
network: z.boolean().default(false),
|
|
84
|
+
workspaceAccess: z.enum(["read-only", "read-write"]).default("read-only")
|
|
84
85
|
}).strict()]).optional(),
|
|
85
86
|
maxTurns: z.number().int().positive().optional(),
|
|
86
87
|
timeoutMs: z.number().int().positive().optional(),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
+
import { getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
3
4
|
import { getDefaultModelSync, init_providers, resolveModel } from "../providers/index.js";
|
|
4
5
|
import { createExtensionAwareStreamFn } from "../providers/extension-stream-bridge.js";
|
|
5
6
|
import { isLocalModelBaseUrl, resolveModelCallApiKey, resolveModelCallOptions } from "../providers/model-call.js";
|
|
6
|
-
import { getAssistantMessageErrorReason, stripCodeFences } from "../providers/model-response.js";
|
|
7
7
|
//#region src/ai-assist/text-assist.ts
|
|
8
8
|
init_providers();
|
|
9
9
|
init_logger();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { createLogger } from "../utils/logger/index.js";
|
|
3
3
|
import { init_logger } from "../utils/logger.js";
|
|
4
|
-
import { init_paths, resolveAgentAuthProfilesPath, resolveAuthProfilesPath, resolveCredentialsDir, resolveOAuthPath } from "../config/paths.js";
|
|
5
4
|
import { init_write_file_atomic, writeTextAtomic } from "../infra/write-file-atomic.js";
|
|
6
|
-
import {
|
|
5
|
+
import { init_paths, resolveAgentAuthProfilesPath, resolveAuthProfilesPath, resolveCredentialsDir, resolveOAuthPath } from "../config/paths.js";
|
|
7
6
|
import { getApiKeyFromEnv, init_env_keys } from "../providers/env-keys.js";
|
|
7
|
+
import { getOAuthProviderDefinition, init_registry } from "./oauth/registry.js";
|
|
8
8
|
import { init_oauth_provider_lock, withOAuthProviderLock } from "./oauth-provider-lock.js";
|
|
9
9
|
import { dirname, join } from "path";
|
|
10
10
|
import { mkdir, readFile, readdir, rm } from "fs/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __esmMin } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { init_resolution, resolveConnectedPlatformEndpoint } from "../../platform/resolution.js";
|
|
3
2
|
import { generatePKCE, init_pkce } from "./pkce.js";
|
|
3
|
+
import { init_resolution, resolveConnectedPlatformEndpoint } from "../../platform/resolution.js";
|
|
4
4
|
import { hostname } from "node:os";
|
|
5
5
|
import { randomBytes } from "node:crypto";
|
|
6
6
|
import http from "node:http";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { init_paths, resolveCredentialsDir } from "../../config/paths.js";
|
|
2
1
|
import { init_write_file_atomic, writeTextAtomicSync } from "../../infra/write-file-atomic.js";
|
|
2
|
+
import { init_paths, resolveCredentialsDir } from "../../config/paths.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { chmodSync, existsSync, mkdirSync, readFileSync } from "node:fs";
|
|
5
5
|
//#region src/auth/profiles/store.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
|
|
3
2
|
import { init_paths, resolveAgentAuthProfilesPath, resolveAuthProfilesPath, resolveOAuthPath } from "../config/paths.js";
|
|
4
|
-
import { init_loader, loadConfig } from "../config/loader.js";
|
|
5
3
|
import { init_registry, isOAuthOnlyProvider } from "./oauth/registry.js";
|
|
4
|
+
import { init_loader, loadConfig } from "../config/loader.js";
|
|
5
|
+
import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
|
|
6
6
|
import { existsSync, readFileSync } from "node:fs";
|
|
7
7
|
//#region src/auth/sync-provider-auth.ts
|
|
8
8
|
/**
|
|
@@ -2,8 +2,8 @@ import { PACKAGE_VERSION, init_package_version } from "../../package-version.js"
|
|
|
2
2
|
import { resolveStateDir } from "../../config/paths-state.js";
|
|
3
3
|
import { createLogger } from "../../utils/logger/index.js";
|
|
4
4
|
import { init_logger } from "../../utils/logger.js";
|
|
5
|
-
import { init_paths, resolveBinDir, resolveConfigPath } from "../../config/paths.js";
|
|
6
5
|
import { init_write_file_atomic, writeTextAtomic } from "../../infra/write-file-atomic.js";
|
|
6
|
+
import { init_paths, resolveBinDir, resolveConfigPath } from "../../config/paths.js";
|
|
7
7
|
import { assertCacheDir } from "../cache-dir-policy.js";
|
|
8
8
|
import { BROWSER_EXTENSION_ID, BROWSER_NATIVE_HOST_NAME } from "../extension-identity.js";
|
|
9
9
|
import "../native-messaging-host.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { downloadConnectorStoreZipBuffer, fetchStoreConnectorPackageDetail, listConnectorPackages, resolveSkillsStoreBaseUrl } from "../agent/skills/marketplace/adapters/store/store-api-client.js";
|
|
2
1
|
import { installConnectorDefinition } from "../connectors/install.js";
|
|
2
|
+
import { downloadConnectorStoreZipBuffer, fetchStoreConnectorPackageDetail, listConnectorPackages, resolveSkillsStoreBaseUrl } from "../agent/skills/marketplace/adapters/store/store-api-client.js";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { isIP } from "node:net";
|
|
5
5
|
import AdmZip from "adm-zip";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
|
-
import { decodeInboundAttachmentBase64, readInboundAttachmentBuffer } from "./inbound-persist.js";
|
|
4
|
-
import { transcribe } from "../../voice/stt/transcribe-core.js";
|
|
5
3
|
import { isSTTAvailable } from "../../voice/stt/availability.js";
|
|
4
|
+
import { transcribe } from "../../voice/stt/transcribe-core.js";
|
|
6
5
|
import "../../voice/stt/index.js";
|
|
6
|
+
import { decodeInboundAttachmentBase64, readInboundAttachmentBuffer } from "./inbound-persist.js";
|
|
7
7
|
//#region src/channels/attachments/voice-stt-webchat.ts
|
|
8
8
|
init_logger();
|
|
9
9
|
const STT_MAX_BYTES = 25 * 1024 * 1024;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { parseFrontmatterBlock } from "../markdown/frontmatter.js";
|
|
2
|
-
import { getChannelPlugin, getChannelRegistryVersion, listChannelPlugins, syncChannelPluginsFromManager } from "./plugins/registry.js";
|
|
3
|
-
import { compileAllowlist, evaluateAccess, hasBotMention, removeBotMention, resolveAllowlistMatch, resolveAllowlistMatchSimple, resolveDmPolicy, resolveGroupPolicy } from "./security.js";
|
|
4
2
|
import { findFenceSpanAt, isSafeFenceBreak, parseFenceSpans } from "../markdown/fences.js";
|
|
5
3
|
import { chunkText } from "../markdown/chunk.js";
|
|
6
4
|
import { chunkMarkdownIR, markdownToIR, markdownToIRWithMeta } from "../markdown/ir.js";
|
|
@@ -8,7 +6,9 @@ import { renderMarkdownWithMarkers } from "../markdown/render.js";
|
|
|
8
6
|
import { convertMarkdownTables } from "../markdown/tables.js";
|
|
9
7
|
import { buildCodeSpanIndex, createInlineCodeState } from "../markdown/code-spans.js";
|
|
10
8
|
import "./format.js";
|
|
9
|
+
import { compileAllowlist, evaluateAccess, hasBotMention, removeBotMention, resolveAllowlistMatch, resolveAllowlistMatchSimple, resolveDmPolicy, resolveGroupPolicy } from "./security.js";
|
|
11
10
|
import { MessagePipeline, createEnvelopeTimestampHandler, createFilterCommandsHandler, createFilterEmptyHandler, createFilterSelfHandler, createPipeline, standardPreflightHandlers, standardProcessHandlers } from "./pipeline.js";
|
|
11
|
+
import { getChannelPlugin, getChannelRegistryVersion, listChannelPlugins, syncChannelPluginsFromManager } from "./plugins/registry.js";
|
|
12
12
|
import { ChannelManager, createChannelManager } from "./manager.js";
|
|
13
13
|
import { collectSetupWizardChannels } from "./setup-wizard-discovery.js";
|
|
14
14
|
export { ChannelManager, MessagePipeline, buildCodeSpanIndex, chunkMarkdownIR, chunkText, collectSetupWizardChannels, compileAllowlist, convertMarkdownTables, createChannelManager, createEnvelopeTimestampHandler, createFilterCommandsHandler, createFilterEmptyHandler, createFilterSelfHandler, createInlineCodeState, createPipeline, evaluateAccess, findFenceSpanAt, getChannelPlugin, getChannelRegistryVersion, hasBotMention, isSafeFenceBreak, listChannelPlugins, markdownToIR, markdownToIRWithMeta, parseFenceSpans, parseFrontmatterBlock, removeBotMention, renderMarkdownWithMarkers, resolveAllowlistMatch, resolveAllowlistMatchSimple, resolveDmPolicy, resolveGroupPolicy, standardPreflightHandlers, standardProcessHandlers, syncChannelPluginsFromManager };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
+
import "./internal-outbound.js";
|
|
3
4
|
import { mergeTtsConfigFromAppConfig } from "../voice/tts/merge-config.js";
|
|
4
5
|
import { maybeApplyTtsToPayload } from "../voice/tts/payload.js";
|
|
5
|
-
import "./internal-outbound.js";
|
|
6
6
|
import { deliverOutboundMessage } from "./outbound/deliver.js";
|
|
7
7
|
import { OutboundPersistStore } from "./outbound/persist-store.js";
|
|
8
8
|
//#region src/channels/outbound-sender.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
-
import
|
|
2
|
+
import fsSync from "node:fs";
|
|
3
3
|
//#region src/channels/pairing/allow-from-file.ts
|
|
4
4
|
function readAllowFromFile(filePath) {
|
|
5
5
|
try {
|
|
6
|
-
if (!
|
|
6
|
+
if (!fsSync.existsSync(filePath)) return {
|
|
7
7
|
version: 1,
|
|
8
8
|
allowFrom: []
|
|
9
9
|
};
|
|
10
|
-
const raw =
|
|
10
|
+
const raw = fsSync.readFileSync(filePath, "utf-8");
|
|
11
11
|
const parsed = JSON.parse(raw);
|
|
12
12
|
if (Array.isArray(parsed.allowFrom)) return {
|
|
13
13
|
version: 1,
|
|
@@ -26,13 +26,13 @@ function appendAllowFromIdSync(filePath, userId) {
|
|
|
26
26
|
const trimmed = userId.trim();
|
|
27
27
|
if (!trimmed) return { changed: false };
|
|
28
28
|
const dir = path.dirname(filePath);
|
|
29
|
-
|
|
29
|
+
fsSync.mkdirSync(dir, { recursive: true });
|
|
30
30
|
const content = readAllowFromFile(filePath);
|
|
31
31
|
if (content.allowFrom.includes(trimmed)) return { changed: false };
|
|
32
32
|
content.allowFrom.push(trimmed);
|
|
33
|
-
|
|
33
|
+
fsSync.writeFileSync(filePath, JSON.stringify(content, null, 2), "utf-8");
|
|
34
34
|
try {
|
|
35
|
-
|
|
35
|
+
fsSync.chmodSync(filePath, 384);
|
|
36
36
|
} catch {}
|
|
37
37
|
return { changed: true };
|
|
38
38
|
}
|
|
@@ -43,13 +43,13 @@ function removeAllowFromIdSync(filePath, userId) {
|
|
|
43
43
|
const next = content.allowFrom.filter((id) => id !== trimmed);
|
|
44
44
|
if (next.length === content.allowFrom.length) return { changed: false };
|
|
45
45
|
const dir = path.dirname(filePath);
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
fsSync.mkdirSync(dir, { recursive: true });
|
|
47
|
+
fsSync.writeFileSync(filePath, JSON.stringify({
|
|
48
48
|
version: 1,
|
|
49
49
|
allowFrom: next
|
|
50
50
|
}, null, 2), "utf-8");
|
|
51
51
|
try {
|
|
52
|
-
|
|
52
|
+
fsSync.chmodSync(filePath, 384);
|
|
53
53
|
} catch {}
|
|
54
54
|
return { changed: true };
|
|
55
55
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { appendAllowFromIdSync } from "./allow-from-file.js";
|
|
2
2
|
import "./pairing-constants.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
import
|
|
4
|
+
import fsSync from "node:fs";
|
|
5
5
|
import crypto from "node:crypto";
|
|
6
6
|
//#region src/channels/pairing/pairing-store.ts
|
|
7
7
|
const PAIRING_CODE_LENGTH = 8;
|
|
@@ -36,11 +36,11 @@ function requestAccountId(entry) {
|
|
|
36
36
|
}
|
|
37
37
|
function readStore(filePath) {
|
|
38
38
|
try {
|
|
39
|
-
if (!
|
|
39
|
+
if (!fsSync.existsSync(filePath)) return {
|
|
40
40
|
version: 1,
|
|
41
41
|
requests: []
|
|
42
42
|
};
|
|
43
|
-
const raw =
|
|
43
|
+
const raw = fsSync.readFileSync(filePath, "utf-8");
|
|
44
44
|
const parsed = JSON.parse(raw);
|
|
45
45
|
if (parsed && Array.isArray(parsed.requests)) return {
|
|
46
46
|
version: 1,
|
|
@@ -54,10 +54,10 @@ function readStore(filePath) {
|
|
|
54
54
|
}
|
|
55
55
|
function writeStore(filePath, store) {
|
|
56
56
|
const dir = path.dirname(filePath);
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
fsSync.mkdirSync(dir, { recursive: true });
|
|
58
|
+
fsSync.writeFileSync(filePath, JSON.stringify(store, null, 2), "utf-8");
|
|
59
59
|
try {
|
|
60
|
-
|
|
60
|
+
fsSync.chmodSync(filePath, 384);
|
|
61
61
|
} catch {}
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
@@ -3,10 +3,10 @@ import { init_logger } from "../../utils/logger.js";
|
|
|
3
3
|
import { ConfigSchema, init_schema } from "../../config/schema.js";
|
|
4
4
|
import { init_paths, resolveConfigPath } from "../../config/paths.js";
|
|
5
5
|
import { init_loader, loadConfig, saveConfig } from "../../config/loader.js";
|
|
6
|
+
import { resolveAllowlistMatchSimple } from "../../channels/security.js";
|
|
6
7
|
import { commandRegistry } from "../registry.js";
|
|
7
|
-
import { parseConfigValue } from "../config-value.js";
|
|
8
8
|
import { getConfigValueAtPath, parseConfigPath, setConfigValueAtPath, unsetConfigValueAtPath } from "../config-paths.js";
|
|
9
|
-
import {
|
|
9
|
+
import { parseConfigValue } from "../config-value.js";
|
|
10
10
|
//#region src/chat-commands/builtins/config.ts
|
|
11
11
|
init_schema();
|
|
12
12
|
init_loader();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { commandRegistry } from "../registry.js";
|
|
1
2
|
import { resolveEffectiveAgentProfileForSession } from "../../config/agent-profile.js";
|
|
2
3
|
import { effectiveWorkspacePathForSession } from "../../session/session-workspace.js";
|
|
3
4
|
import { getProjectForSession } from "../../projects/workspace.js";
|
|
4
|
-
import { commandRegistry } from "../registry.js";
|
|
5
5
|
import { buildReviewDiffBundle, parseReviewTargetArgs, resolveGitRoot } from "../../review/review-git.js";
|
|
6
6
|
import { formatReviewMarkdown } from "../../review/review-types.js";
|
|
7
7
|
import { randomUUID } from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { formatThinkingLevels, normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel } from "../../agent/transcript/thinking-types.js";
|
|
2
1
|
import { commandRegistry } from "../registry.js";
|
|
2
|
+
import { formatThinkingLevels, normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel } from "../../agent/transcript/thinking-types.js";
|
|
3
3
|
//#region src/chat-commands/builtins/thinking.ts
|
|
4
4
|
async function setSessionAgentField(store, sessionKey, field, value) {
|
|
5
5
|
if (!store) return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isTTSAvailable } from "../../voice/tts/factory.js";
|
|
2
2
|
import { appendTtsReadinessNote, formatTtsSetupHint, mergeTtsConfigFromAppConfig } from "../../voice/tts/merge-config.js";
|
|
3
|
-
import { commandRegistry } from "../registry.js";
|
|
4
3
|
import { ttsStatusTracker } from "../../voice/tts/status-tracker.js";
|
|
4
|
+
import { commandRegistry } from "../registry.js";
|
|
5
5
|
import "../../voice/tts/index.js";
|
|
6
6
|
//#region src/chat-commands/builtins/tts.ts
|
|
7
7
|
function defaultTtsVoiceForProvider(provider) {
|