@wjarka/cezarion 0.17.0 → 0.18.0-dev.5799
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/bin.js +2 -0
- package/cez.js +2 -0
- package/cezarion.js +2 -0
- package/dist/cez.js +2 -0
- package/dist/cezarion.js +2 -0
- package/dist/hsq.js +2 -0
- package/dist/index.js +1 -835
- package/dist/server/app-type.d.ts +1 -6
- package/dist/server/app-type.js +1 -2
- package/hsq.js +2 -0
- package/package.json +20 -59
- package/web/dist/assets/activity-motion-0wHCeUs7.css +1 -0
- package/web/dist/assets/activity-motion-2nE59DAT.js +2 -0
- package/web/dist/assets/activity-route-R9lPc2jy.js +1 -0
- package/web/dist/assets/agent-accounts-f1cxwgfz.js +18 -0
- package/web/dist/assets/alert-dialog-Dj464rjk.js +1 -0
- package/web/dist/assets/arrow-right-Dh_Lx3um.js +1 -0
- package/web/dist/assets/button-CHUAMTHK.js +3 -0
- package/web/dist/assets/centered-state-DGyy0SuA.js +1 -0
- package/web/dist/assets/cez-idle-EVoUsgU3.js +1 -0
- package/web/dist/assets/commit-diff-panel-BJyNYmCY.js +1 -0
- package/web/dist/assets/control-locations-C9II3kPz.js +1 -0
- package/web/dist/assets/design-icons-DmYTv2r1.js +1 -0
- package/web/dist/assets/diff-D_9MtICR.js +3 -0
- package/web/dist/assets/diff-controls-BR2uqhwG.js +1 -0
- package/web/dist/assets/diff-view-xRPxXHXl.js +11 -0
- package/web/dist/assets/dropdown-menu-DhrBcVgr.js +1 -0
- package/web/dist/assets/es2015-D345RR4o.js +41 -0
- package/web/dist/assets/file-preview-D08Kq15E.js +2 -0
- package/web/dist/assets/git-toolbar-D9taioU5.js +1 -0
- package/web/dist/assets/github-bv_pBGc5.js +1 -0
- package/web/dist/assets/github-sidebar-model-B0Ufci5S.js +1 -0
- package/web/dist/assets/global-activity-route-QxTPDyx-.js +1 -0
- package/web/dist/assets/hourglass-B0lPAJvT.js +1 -0
- package/web/dist/assets/{image-preview-C_t9q45f.js → image-preview-Cq1vDiEo.js} +1 -1
- package/web/dist/assets/index-B18AqW0Z.css +1 -0
- package/web/dist/assets/index-DgU3yYUl.js +14 -0
- package/web/dist/assets/index.global-D3Ga_D3Y.js +1 -0
- package/web/dist/assets/live-protocol-BVn0UA_g.js +64 -0
- package/web/dist/assets/live-refetch-BdnmTJ_8.js +1 -0
- package/web/dist/assets/{live-worker-BizfZSoh.ts → live-worker-BWdeGzQX.ts} +2 -1
- package/web/dist/assets/loader-circle-CZkGEdoI.js +1 -0
- package/web/dist/assets/markdown-D7DUNWcJ.js +6 -0
- package/web/dist/assets/mermaid.min-3O9YjB2l.js +1 -0
- package/web/dist/assets/message-square-B-MD-8rD.js +1 -0
- package/web/dist/assets/{nav-row-styles-AoIhhIwf.js → nav-row-styles-BZUUavOF.js} +1 -1
- package/web/dist/assets/popover-DRcRI46x.js +1 -0
- package/web/dist/assets/preview-pane-connected-cD-MTiVN.js +3 -0
- package/web/dist/assets/project-router-MMOk9VbW.js +1 -0
- package/web/dist/assets/project-scope-context-B3M-u8R0.js +4 -0
- package/web/dist/assets/queries-DORTKwyN.js +1 -0
- package/web/dist/assets/repo-git-E_4Ighvg.js +1 -0
- package/web/dist/assets/report-reader-XVNQsXB4.js +1 -0
- package/web/dist/assets/report-title-D4Mbu2Er.js +1 -0
- package/web/dist/assets/reports-B7QAzibP.css +1 -0
- package/web/dist/assets/reports-B_PVTBzP.js +1 -0
- package/web/dist/assets/run-header-wm0gSs6X.js +2 -0
- package/web/dist/assets/skill-empty-hint-YDmkqgo-.js +1 -0
- package/web/dist/assets/skills-D2RLxUIc.js +1 -0
- package/web/dist/assets/skills-DFBiAuJG.js +1 -0
- package/web/dist/assets/skills-workflows-C21NystW.css +1 -0
- package/web/dist/assets/sortable.esm-zp_qkYGV.js +5 -0
- package/web/dist/assets/tab-link-BvoGfK8S.js +1 -0
- package/web/dist/assets/task-changes-DNtkfFzQ.js +1 -0
- package/web/dist/assets/task-commits-CivO-OrN.js +1 -0
- package/web/dist/assets/task-files-dczkxV_G.js +1 -0
- package/web/dist/assets/task-github-item-DKV4yrcf.js +1 -0
- package/web/dist/assets/task-thread-DIaTTGEF.js +9 -0
- package/web/dist/assets/textarea-DlVUfdWG.js +1 -0
- package/web/dist/assets/thread-state-DIozHuHb.js +4 -0
- package/web/dist/assets/toaster-B1MyeHiE.js +1 -0
- package/web/dist/assets/use-hand-to-agent-state-D58ayxI4.js +1 -0
- package/web/dist/assets/useInfiniteQuery-BbYMWe23.js +1 -0
- package/web/dist/assets/useQuery-CqqnAJvu.js +1 -0
- package/web/dist/assets/workflows-YMEsGXeB.js +7 -0
- package/web/dist/assets/ws-BtSVmivO.js +1 -0
- package/web/dist/assets/zoomable-image-5pOUaPEg.js +1 -0
- package/web/dist/index.html +31 -15
- package/web/dist/live-worker.js +2 -2
- package/LICENSE +0 -22
- package/README.md +0 -1725
- package/dist/agent-config/account-identity.d.ts +0 -28
- package/dist/agent-config/account-identity.js +0 -131
- package/dist/agent-config/account-identity.js.map +0 -1
- package/dist/agent-config/catalog.d.ts +0 -70
- package/dist/agent-config/catalog.js +0 -383
- package/dist/agent-config/catalog.js.map +0 -1
- package/dist/agent-config/files.d.ts +0 -42
- package/dist/agent-config/files.js +0 -115
- package/dist/agent-config/files.js.map +0 -1
- package/dist/agent-config/model-settings/claude.d.ts +0 -2
- package/dist/agent-config/model-settings/claude.js +0 -11
- package/dist/agent-config/model-settings/claude.js.map +0 -1
- package/dist/agent-config/model-settings/codex.d.ts +0 -2
- package/dist/agent-config/model-settings/codex.js +0 -16
- package/dist/agent-config/model-settings/codex.js.map +0 -1
- package/dist/agent-config/model-settings/opencode.d.ts +0 -2
- package/dist/agent-config/model-settings/opencode.js +0 -8
- package/dist/agent-config/model-settings/opencode.js.map +0 -1
- package/dist/agent-config/model-settings/pi.d.ts +0 -2
- package/dist/agent-config/model-settings/pi.js +0 -38
- package/dist/agent-config/model-settings/pi.js.map +0 -1
- package/dist/agent-config/model-settings/shared.d.ts +0 -12
- package/dist/agent-config/model-settings/shared.js +0 -100
- package/dist/agent-config/model-settings/shared.js.map +0 -1
- package/dist/agent-config/model-settings/types.d.ts +0 -9
- package/dist/agent-config/model-settings/types.js +0 -2
- package/dist/agent-config/model-settings/types.js.map +0 -1
- package/dist/agent-config/models.d.ts +0 -9
- package/dist/agent-config/models.js +0 -40
- package/dist/agent-config/models.js.map +0 -1
- package/dist/agent-config/seed.d.ts +0 -15
- package/dist/agent-config/seed.js +0 -94
- package/dist/agent-config/seed.js.map +0 -1
- package/dist/agent-config/service.d.ts +0 -44
- package/dist/agent-config/service.js +0 -72
- package/dist/agent-config/service.js.map +0 -1
- package/dist/agent-config/validate.d.ts +0 -18
- package/dist/agent-config/validate.js +0 -82
- package/dist/agent-config/validate.js.map +0 -1
- package/dist/application-update/bin-recovery.d.ts +0 -5
- package/dist/application-update/bin-recovery.js +0 -96
- package/dist/application-update/bin-recovery.js.map +0 -1
- package/dist/application-update/discovery.d.ts +0 -22
- package/dist/application-update/discovery.js +0 -91
- package/dist/application-update/discovery.js.map +0 -1
- package/dist/application-update/helper.d.ts +0 -57
- package/dist/application-update/helper.js +0 -369
- package/dist/application-update/helper.js.map +0 -1
- package/dist/application-update/launcher.d.ts +0 -12
- package/dist/application-update/launcher.js +0 -59
- package/dist/application-update/launcher.js.map +0 -1
- package/dist/application-update/lock.d.ts +0 -4
- package/dist/application-update/lock.js +0 -70
- package/dist/application-update/lock.js.map +0 -1
- package/dist/application-update/npm-process.d.ts +0 -17
- package/dist/application-update/npm-process.js +0 -133
- package/dist/application-update/npm-process.js.map +0 -1
- package/dist/application-update/service.d.ts +0 -69
- package/dist/application-update/service.js +0 -456
- package/dist/application-update/service.js.map +0 -1
- package/dist/archive-on-merge-setting.d.ts +0 -15
- package/dist/archive-on-merge-setting.js +0 -14
- package/dist/archive-on-merge-setting.js.map +0 -1
- package/dist/artifacts/cli.d.ts +0 -9
- package/dist/artifacts/cli.js +0 -59
- package/dist/artifacts/cli.js.map +0 -1
- package/dist/artifacts/lifecycle.d.ts +0 -4
- package/dist/artifacts/lifecycle.js +0 -42
- package/dist/artifacts/lifecycle.js.map +0 -1
- package/dist/artifacts/resolve.d.ts +0 -18
- package/dist/artifacts/resolve.js +0 -103
- package/dist/artifacts/resolve.js.map +0 -1
- package/dist/artifacts/store.d.ts +0 -8
- package/dist/artifacts/store.js +0 -323
- package/dist/artifacts/store.js.map +0 -1
- package/dist/automations/automation-cli.d.ts +0 -59
- package/dist/automations/automation-cli.js +0 -509
- package/dist/automations/automation-cli.js.map +0 -1
- package/dist/automations/builtin-skill.d.ts +0 -7
- package/dist/automations/builtin-skill.js +0 -14
- package/dist/automations/builtin-skill.js.map +0 -1
- package/dist/automations/coordinator.d.ts +0 -33
- package/dist/automations/coordinator.js +0 -86
- package/dist/automations/coordinator.js.map +0 -1
- package/dist/automations/github-baseline.d.ts +0 -3
- package/dist/automations/github-baseline.js +0 -17
- package/dist/automations/github-baseline.js.map +0 -1
- package/dist/automations/github-poller.d.ts +0 -93
- package/dist/automations/github-poller.js +0 -303
- package/dist/automations/github-poller.js.map +0 -1
- package/dist/automations/prompts.d.ts +0 -12
- package/dist/automations/prompts.js +0 -160
- package/dist/automations/prompts.js.map +0 -1
- package/dist/automations/schedule-runner.d.ts +0 -149
- package/dist/automations/schedule-runner.js +0 -513
- package/dist/automations/schedule-runner.js.map +0 -1
- package/dist/automations/scheduler.d.ts +0 -87
- package/dist/automations/scheduler.js +0 -434
- package/dist/automations/scheduler.js.map +0 -1
- package/dist/automations/service.d.ts +0 -777
- package/dist/automations/service.js +0 -444
- package/dist/automations/service.js.map +0 -1
- package/dist/automations/store.d.ts +0 -160
- package/dist/automations/store.js +0 -738
- package/dist/automations/store.js.map +0 -1
- package/dist/automations/task-template.d.ts +0 -59
- package/dist/automations/task-template.js +0 -273
- package/dist/automations/task-template.js.map +0 -1
- package/dist/automations/tool-adapter.d.ts +0 -6
- package/dist/automations/tool-adapter.js +0 -108
- package/dist/automations/tool-adapter.js.map +0 -1
- package/dist/automations/types.d.ts +0 -1
- package/dist/automations/types.js +0 -2
- package/dist/automations/types.js.map +0 -1
- package/dist/autosave-cleanup.d.ts +0 -26
- package/dist/autosave-cleanup.js +0 -87
- package/dist/autosave-cleanup.js.map +0 -1
- package/dist/autosave-git.d.ts +0 -21
- package/dist/autosave-git.js +0 -204
- package/dist/autosave-git.js.map +0 -1
- package/dist/autosave-group.d.ts +0 -8
- package/dist/autosave-group.js +0 -61
- package/dist/autosave-group.js.map +0 -1
- package/dist/autosave-holders.d.ts +0 -34
- package/dist/autosave-holders.js +0 -204
- package/dist/autosave-holders.js.map +0 -1
- package/dist/autosave-windows.d.ts +0 -25
- package/dist/autosave-windows.js +0 -156
- package/dist/autosave-windows.js.map +0 -1
- package/dist/ci-wait/client.d.ts +0 -28
- package/dist/ci-wait/client.js +0 -105
- package/dist/ci-wait/client.js.map +0 -1
- package/dist/ci-wait/controller.d.ts +0 -756
- package/dist/ci-wait/controller.js +0 -334
- package/dist/ci-wait/controller.js.map +0 -1
- package/dist/ci-wait/errors.d.ts +0 -27
- package/dist/ci-wait/errors.js +0 -252
- package/dist/ci-wait/errors.js.map +0 -1
- package/dist/ci-wait/github.d.ts +0 -87
- package/dist/ci-wait/github.js +0 -278
- package/dist/ci-wait/github.js.map +0 -1
- package/dist/ci-wait/injection.d.ts +0 -3
- package/dist/ci-wait/injection.js +0 -26
- package/dist/ci-wait/injection.js.map +0 -1
- package/dist/ci-wait/mcp.d.ts +0 -3
- package/dist/ci-wait/mcp.js +0 -30
- package/dist/ci-wait/mcp.js.map +0 -1
- package/dist/ci-wait/resources.d.ts +0 -7
- package/dist/ci-wait/resources.js +0 -32
- package/dist/ci-wait/resources.js.map +0 -1
- package/dist/ci-wait/supervisor.d.ts +0 -29
- package/dist/ci-wait/supervisor.js +0 -260
- package/dist/ci-wait/supervisor.js.map +0 -1
- package/dist/ci-wait/tools.d.ts +0 -827
- package/dist/ci-wait/tools.js +0 -208
- package/dist/ci-wait/tools.js.map +0 -1
- package/dist/config.d.ts +0 -68
- package/dist/config.js +0 -209
- package/dist/config.js.map +0 -1
- package/dist/contract/active-provider.d.ts +0 -12
- package/dist/contract/agent-config.d.ts +0 -160
- package/dist/contract/agent-profiles.d.ts +0 -369
- package/dist/contract/application-update.d.ts +0 -32
- package/dist/contract/artifacts.d.ts +0 -83
- package/dist/contract/ask-schema.d.ts +0 -50
- package/dist/contract/ask.d.ts +0 -9
- package/dist/contract/attachments.d.ts +0 -35
- package/dist/contract/attention.d.ts +0 -90
- package/dist/contract/automation-requests.d.ts +0 -308
- package/dist/contract/automation-schedule.d.ts +0 -89
- package/dist/contract/automation-storage.d.ts +0 -512
- package/dist/contract/automations.d.ts +0 -1542
- package/dist/contract/ci-wait.d.ts +0 -222
- package/dist/contract/config-requests.d.ts +0 -36
- package/dist/contract/conversations.d.ts +0 -351
- package/dist/contract/defined.d.ts +0 -8
- package/dist/contract/delegation.d.ts +0 -1882
- package/dist/contract/discovery.d.ts +0 -141
- package/dist/contract/effort.d.ts +0 -18
- package/dist/contract/events.d.ts +0 -292
- package/dist/contract/github-requests.d.ts +0 -26
- package/dist/contract/github.d.ts +0 -732
- package/dist/contract/handoff.d.ts +0 -43
- package/dist/contract/health.d.ts +0 -124
- package/dist/contract/image-path.d.ts +0 -6
- package/dist/contract/index.d.ts +0 -59
- package/dist/contract/index.js +0 -5887
- package/dist/contract/live-coordination.d.ts +0 -158
- package/dist/contract/live-limits.d.ts +0 -8
- package/dist/contract/live.d.ts +0 -123
- package/dist/contract/pending-ask.d.ts +0 -58
- package/dist/contract/permissions.d.ts +0 -54
- package/dist/contract/preview.d.ts +0 -541
- package/dist/contract/project-limits.d.ts +0 -33
- package/dist/contract/projects.d.ts +0 -716
- package/dist/contract/provider-requests.d.ts +0 -77
- package/dist/contract/query-requests.d.ts +0 -52
- package/dist/contract/repo-requests.d.ts +0 -12
- package/dist/contract/repo.d.ts +0 -496
- package/dist/contract/run-labels.d.ts +0 -8
- package/dist/contract/run-limits.d.ts +0 -8
- package/dist/contract/run-predicates.d.ts +0 -32
- package/dist/contract/run-requests.d.ts +0 -33
- package/dist/contract/run-search.d.ts +0 -193
- package/dist/contract/runs.d.ts +0 -5340
- package/dist/contract/scheduled-tasks.d.ts +0 -187
- package/dist/contract/skills.d.ts +0 -56
- package/dist/contract/team-skill-ref.d.ts +0 -10
- package/dist/contract/tool-display.d.ts +0 -25
- package/dist/contract/ui-state-requests.d.ts +0 -60
- package/dist/contract/version.d.ts +0 -3
- package/dist/contract/voice.d.ts +0 -213
- package/dist/contract/waits.d.ts +0 -1204
- package/dist/contract/workflow-file.d.ts +0 -37
- package/dist/contract/workflow-requests.d.ts +0 -7
- package/dist/contract/workflows.d.ts +0 -250
- package/dist/contract/workspace.d.ts +0 -631
- package/dist/contract/zoned-time.d.ts +0 -26
- package/dist/core/agent-env.d.ts +0 -30
- package/dist/core/agent-env.js +0 -400
- package/dist/core/agent-env.js.map +0 -1
- package/dist/core/agent-model-policy.d.ts +0 -10
- package/dist/core/agent-model-policy.js +0 -36
- package/dist/core/agent-model-policy.js.map +0 -1
- package/dist/core/agent-profiles.d.ts +0 -50
- package/dist/core/agent-profiles.js +0 -105
- package/dist/core/agent-profiles.js.map +0 -1
- package/dist/core/agent-runner.d.ts +0 -394
- package/dist/core/agent-runner.js +0 -96
- package/dist/core/agent-runner.js.map +0 -1
- package/dist/core/ask.d.ts +0 -79
- package/dist/core/ask.js +0 -232
- package/dist/core/ask.js.map +0 -1
- package/dist/core/backend-detect.d.ts +0 -17
- package/dist/core/backend-detect.js +0 -209
- package/dist/core/backend-detect.js.map +0 -1
- package/dist/core/claude-cli-runner.d.ts +0 -72
- package/dist/core/claude-cli-runner.js +0 -910
- package/dist/core/claude-cli-runner.js.map +0 -1
- package/dist/core/claude-model-catalog.d.ts +0 -16
- package/dist/core/claude-model-catalog.js +0 -198
- package/dist/core/claude-model-catalog.js.map +0 -1
- package/dist/core/claude-ui-mapper.d.ts +0 -80
- package/dist/core/claude-ui-mapper.js +0 -696
- package/dist/core/claude-ui-mapper.js.map +0 -1
- package/dist/core/codex-app-server-runner.d.ts +0 -61
- package/dist/core/codex-app-server-runner.js +0 -1278
- package/dist/core/codex-app-server-runner.js.map +0 -1
- package/dist/core/codex-app-server-transport.d.ts +0 -52
- package/dist/core/codex-app-server-transport.js +0 -199
- package/dist/core/codex-app-server-transport.js.map +0 -1
- package/dist/core/codex-approvals.d.ts +0 -12
- package/dist/core/codex-approvals.js +0 -161
- package/dist/core/codex-approvals.js.map +0 -1
- package/dist/core/codex-model-catalog.d.ts +0 -10
- package/dist/core/codex-model-catalog.js +0 -110
- package/dist/core/codex-model-catalog.js.map +0 -1
- package/dist/core/codex-permissions.d.ts +0 -6
- package/dist/core/codex-permissions.js +0 -27
- package/dist/core/codex-permissions.js.map +0 -1
- package/dist/core/codex-stream-error.d.ts +0 -2
- package/dist/core/codex-stream-error.js +0 -12
- package/dist/core/codex-stream-error.js.map +0 -1
- package/dist/core/codex-turn-outcome.d.ts +0 -8
- package/dist/core/codex-turn-outcome.js +0 -30
- package/dist/core/codex-turn-outcome.js.map +0 -1
- package/dist/core/codex-ui-mapper.d.ts +0 -112
- package/dist/core/codex-ui-mapper.js +0 -808
- package/dist/core/codex-ui-mapper.js.map +0 -1
- package/dist/core/cursor-acp-runner.d.ts +0 -34
- package/dist/core/cursor-acp-runner.js +0 -777
- package/dist/core/cursor-acp-runner.js.map +0 -1
- package/dist/core/cursor-cli-flags.d.ts +0 -19
- package/dist/core/cursor-cli-flags.js +0 -47
- package/dist/core/cursor-cli-flags.js.map +0 -1
- package/dist/core/cursor-config-options.d.ts +0 -18
- package/dist/core/cursor-config-options.js +0 -31
- package/dist/core/cursor-config-options.js.map +0 -1
- package/dist/core/cursor-model-catalog.d.ts +0 -45
- package/dist/core/cursor-model-catalog.js +0 -300
- package/dist/core/cursor-model-catalog.js.map +0 -1
- package/dist/core/cursor-print-capabilities.d.ts +0 -16
- package/dist/core/cursor-print-capabilities.js +0 -141
- package/dist/core/cursor-print-capabilities.js.map +0 -1
- package/dist/core/cursor-print-process.d.ts +0 -31
- package/dist/core/cursor-print-process.js +0 -117
- package/dist/core/cursor-print-process.js.map +0 -1
- package/dist/core/cursor-print-runner.d.ts +0 -31
- package/dist/core/cursor-print-runner.js +0 -555
- package/dist/core/cursor-print-runner.js.map +0 -1
- package/dist/core/cursor-print-tool-catalog.d.ts +0 -10
- package/dist/core/cursor-print-tool-catalog.js +0 -91
- package/dist/core/cursor-print-tool-catalog.js.map +0 -1
- package/dist/core/cursor-print-ui-mapper.d.ts +0 -47
- package/dist/core/cursor-print-ui-mapper.js +0 -553
- package/dist/core/cursor-print-ui-mapper.js.map +0 -1
- package/dist/core/cursor-provider-error.d.ts +0 -33
- package/dist/core/cursor-provider-error.js +0 -68
- package/dist/core/cursor-provider-error.js.map +0 -1
- package/dist/core/cursor-runner.d.ts +0 -24
- package/dist/core/cursor-runner.js +0 -149
- package/dist/core/cursor-runner.js.map +0 -1
- package/dist/core/cursor-ui-mapper.d.ts +0 -29
- package/dist/core/cursor-ui-mapper.js +0 -275
- package/dist/core/cursor-ui-mapper.js.map +0 -1
- package/dist/core/defined.d.ts +0 -1
- package/dist/core/defined.js +0 -2
- package/dist/core/defined.js.map +0 -1
- package/dist/core/hook-items.d.ts +0 -14
- package/dist/core/hook-items.js +0 -13
- package/dist/core/hook-items.js.map +0 -1
- package/dist/core/host-model-catalog.d.ts +0 -7
- package/dist/core/host-model-catalog.js +0 -21
- package/dist/core/host-model-catalog.js.map +0 -1
- package/dist/core/input-submissions.d.ts +0 -14
- package/dist/core/input-submissions.js +0 -26
- package/dist/core/input-submissions.js.map +0 -1
- package/dist/core/managed-session.d.ts +0 -6
- package/dist/core/managed-session.js +0 -116
- package/dist/core/managed-session.js.map +0 -1
- package/dist/core/model-identity.d.ts +0 -108
- package/dist/core/model-identity.js +0 -137
- package/dist/core/model-identity.js.map +0 -1
- package/dist/core/model-presets.d.ts +0 -10
- package/dist/core/model-presets.js +0 -77
- package/dist/core/model-presets.js.map +0 -1
- package/dist/core/ndjson.d.ts +0 -6
- package/dist/core/ndjson.js +0 -23
- package/dist/core/ndjson.js.map +0 -1
- package/dist/core/omp-model-catalog.d.ts +0 -43
- package/dist/core/omp-model-catalog.js +0 -205
- package/dist/core/omp-model-catalog.js.map +0 -1
- package/dist/core/omp-runner.d.ts +0 -72
- package/dist/core/omp-runner.js +0 -1049
- package/dist/core/omp-runner.js.map +0 -1
- package/dist/core/omp-ui-mapper.d.ts +0 -106
- package/dist/core/omp-ui-mapper.js +0 -882
- package/dist/core/omp-ui-mapper.js.map +0 -1
- package/dist/core/opencode-model-catalog.d.ts +0 -32
- package/dist/core/opencode-model-catalog.js +0 -215
- package/dist/core/opencode-model-catalog.js.map +0 -1
- package/dist/core/opencode-permissions.d.ts +0 -52
- package/dist/core/opencode-permissions.js +0 -101
- package/dist/core/opencode-permissions.js.map +0 -1
- package/dist/core/opencode-server-runner.d.ts +0 -61
- package/dist/core/opencode-server-runner.js +0 -1692
- package/dist/core/opencode-server-runner.js.map +0 -1
- package/dist/core/opencode-session-error.d.ts +0 -19
- package/dist/core/opencode-session-error.js +0 -42
- package/dist/core/opencode-session-error.js.map +0 -1
- package/dist/core/opencode-ui-mapper.d.ts +0 -137
- package/dist/core/opencode-ui-mapper.js +0 -768
- package/dist/core/opencode-ui-mapper.js.map +0 -1
- package/dist/core/pi-model-catalog.d.ts +0 -38
- package/dist/core/pi-model-catalog.js +0 -249
- package/dist/core/pi-model-catalog.js.map +0 -1
- package/dist/core/pi-runner.d.ts +0 -43
- package/dist/core/pi-runner.js +0 -827
- package/dist/core/pi-runner.js.map +0 -1
- package/dist/core/pi-ui-mapper.d.ts +0 -52
- package/dist/core/pi-ui-mapper.js +0 -395
- package/dist/core/pi-ui-mapper.js.map +0 -1
- package/dist/core/process-usage.d.ts +0 -74
- package/dist/core/process-usage.js +0 -218
- package/dist/core/process-usage.js.map +0 -1
- package/dist/core/provider-auth.d.ts +0 -168
- package/dist/core/provider-auth.js +0 -660
- package/dist/core/provider-auth.js.map +0 -1
- package/dist/core/provider-availability.d.ts +0 -3
- package/dist/core/provider-availability.js +0 -14
- package/dist/core/provider-availability.js.map +0 -1
- package/dist/core/runner-factory.d.ts +0 -11
- package/dist/core/runner-factory.js +0 -31
- package/dist/core/runner-factory.js.map +0 -1
- package/dist/core/runner-model-catalog.d.ts +0 -34
- package/dist/core/runner-model-catalog.js +0 -109
- package/dist/core/runner-model-catalog.js.map +0 -1
- package/dist/core/runner-runtime.d.ts +0 -40
- package/dist/core/runner-runtime.js +0 -88
- package/dist/core/runner-runtime.js.map +0 -1
- package/dist/core/runner-stderr.d.ts +0 -2
- package/dist/core/runner-stderr.js +0 -20
- package/dist/core/runner-stderr.js.map +0 -1
- package/dist/core/runner-tool-grants.d.ts +0 -21
- package/dist/core/runner-tool-grants.js +0 -64
- package/dist/core/runner-tool-grants.js.map +0 -1
- package/dist/core/secret-redaction.d.ts +0 -20
- package/dist/core/secret-redaction.js +0 -98
- package/dist/core/secret-redaction.js.map +0 -1
- package/dist/core/session-process.d.ts +0 -42
- package/dist/core/session-process.js +0 -360
- package/dist/core/session-process.js.map +0 -1
- package/dist/core/shell-env.d.ts +0 -17
- package/dist/core/shell-env.js +0 -51
- package/dist/core/shell-env.js.map +0 -1
- package/dist/core/ui-events.d.ts +0 -348
- package/dist/core/ui-events.js +0 -2
- package/dist/core/ui-events.js.map +0 -1
- package/dist/core/usage-limit.d.ts +0 -42
- package/dist/core/usage-limit.js +0 -152
- package/dist/core/usage-limit.js.map +0 -1
- package/dist/core/usage.d.ts +0 -11
- package/dist/core/usage.js +0 -15
- package/dist/core/usage.js.map +0 -1
- package/dist/core/v1-text-coalescer.d.ts +0 -36
- package/dist/core/v1-text-coalescer.js +0 -72
- package/dist/core/v1-text-coalescer.js.map +0 -1
- package/dist/data-gitignore.d.ts +0 -6
- package/dist/data-gitignore.js +0 -59
- package/dist/data-gitignore.js.map +0 -1
- package/dist/delegation/capacity.d.ts +0 -15
- package/dist/delegation/capacity.js +0 -30
- package/dist/delegation/capacity.js.map +0 -1
- package/dist/delegation/cli.d.ts +0 -4
- package/dist/delegation/cli.js +0 -481
- package/dist/delegation/cli.js.map +0 -1
- package/dist/delegation/context.d.ts +0 -40
- package/dist/delegation/context.js +0 -378
- package/dist/delegation/context.js.map +0 -1
- package/dist/delegation/conversations.d.ts +0 -9
- package/dist/delegation/conversations.js +0 -66
- package/dist/delegation/conversations.js.map +0 -1
- package/dist/delegation/credentials.d.ts +0 -21
- package/dist/delegation/credentials.js +0 -66
- package/dist/delegation/credentials.js.map +0 -1
- package/dist/delegation/destroy-observation.d.ts +0 -42
- package/dist/delegation/destroy-observation.js +0 -115
- package/dist/delegation/destroy-observation.js.map +0 -1
- package/dist/delegation/effort.d.ts +0 -1
- package/dist/delegation/effort.js +0 -11
- package/dist/delegation/effort.js.map +0 -1
- package/dist/delegation/execution-identity.d.ts +0 -180
- package/dist/delegation/execution-identity.js +0 -154
- package/dist/delegation/execution-identity.js.map +0 -1
- package/dist/delegation/idle-test-app.d.ts +0 -4
- package/dist/delegation/idle-test-app.js +0 -174
- package/dist/delegation/idle-test-app.js.map +0 -1
- package/dist/delegation/input.d.ts +0 -12
- package/dist/delegation/input.js +0 -50
- package/dist/delegation/input.js.map +0 -1
- package/dist/delegation/park-notice.d.ts +0 -42
- package/dist/delegation/park-notice.js +0 -71
- package/dist/delegation/park-notice.js.map +0 -1
- package/dist/delegation/policy.d.ts +0 -22
- package/dist/delegation/policy.js +0 -95
- package/dist/delegation/policy.js.map +0 -1
- package/dist/delegation/process-liveness.d.ts +0 -98
- package/dist/delegation/process-liveness.js +0 -213
- package/dist/delegation/process-liveness.js.map +0 -1
- package/dist/delegation/provision.d.ts +0 -32
- package/dist/delegation/provision.js +0 -177
- package/dist/delegation/provision.js.map +0 -1
- package/dist/delegation/questions.d.ts +0 -21
- package/dist/delegation/questions.js +0 -50
- package/dist/delegation/questions.js.map +0 -1
- package/dist/delegation/readiness.d.ts +0 -13
- package/dist/delegation/readiness.js +0 -19
- package/dist/delegation/readiness.js.map +0 -1
- package/dist/delegation/results.d.ts +0 -13
- package/dist/delegation/results.js +0 -154
- package/dist/delegation/results.js.map +0 -1
- package/dist/delegation/retry-backoff.d.ts +0 -31
- package/dist/delegation/retry-backoff.js +0 -26
- package/dist/delegation/retry-backoff.js.map +0 -1
- package/dist/delegation/routes.d.ts +0 -953
- package/dist/delegation/routes.js +0 -74
- package/dist/delegation/routes.js.map +0 -1
- package/dist/delegation/scratch-cleanup.d.ts +0 -28
- package/dist/delegation/scratch-cleanup.js +0 -145
- package/dist/delegation/scratch-cleanup.js.map +0 -1
- package/dist/delegation/service.d.ts +0 -211
- package/dist/delegation/service.js +0 -946
- package/dist/delegation/service.js.map +0 -1
- package/dist/delegation/transport.d.ts +0 -931
- package/dist/delegation/transport.js +0 -22
- package/dist/delegation/transport.js.map +0 -1
- package/dist/delegation/wait.d.ts +0 -14
- package/dist/delegation/wait.js +0 -72
- package/dist/delegation/wait.js.map +0 -1
- package/dist/delegation/windows-test-app.d.ts +0 -5
- package/dist/delegation/windows-test-app.js +0 -63
- package/dist/delegation/windows-test-app.js.map +0 -1
- package/dist/delegation/windows-workspace-identity.d.ts +0 -3
- package/dist/delegation/windows-workspace-identity.js +0 -22
- package/dist/delegation/windows-workspace-identity.js.map +0 -1
- package/dist/delegation/workspace.d.ts +0 -33
- package/dist/delegation/workspace.js +0 -556
- package/dist/delegation/workspace.js.map +0 -1
- package/dist/detached-process.d.ts +0 -103
- package/dist/detached-process.js +0 -301
- package/dist/detached-process.js.map +0 -1
- package/dist/discovery/catalog.d.ts +0 -15
- package/dist/discovery/catalog.js +0 -31
- package/dist/discovery/catalog.js.map +0 -1
- package/dist/discovery/cli.d.ts +0 -8
- package/dist/discovery/cli.js +0 -106
- package/dist/discovery/cli.js.map +0 -1
- package/dist/git-diff-base.d.ts +0 -41
- package/dist/git-diff-base.js +0 -116
- package/dist/git-diff-base.js.map +0 -1
- package/dist/git-index-copy.d.ts +0 -4
- package/dist/git-index-copy.js +0 -10
- package/dist/git-index-copy.js.map +0 -1
- package/dist/git-refs.d.ts +0 -11
- package/dist/git-refs.js +0 -14
- package/dist/git-refs.js.map +0 -1
- package/dist/git-worktree-lock-helper.d.ts +0 -7
- package/dist/git-worktree-lock-helper.js +0 -158
- package/dist/git-worktree-lock-helper.js.map +0 -1
- package/dist/git-worktree-lock.d.ts +0 -17
- package/dist/git-worktree-lock.js +0 -90
- package/dist/git-worktree-lock.js.map +0 -1
- package/dist/git-worktree-release.d.ts +0 -20
- package/dist/git-worktree-release.js +0 -27
- package/dist/git-worktree-release.js.map +0 -1
- package/dist/git-worktree.d.ts +0 -154
- package/dist/git-worktree.js +0 -858
- package/dist/git-worktree.js.map +0 -1
- package/dist/handoff.d.ts +0 -72
- package/dist/handoff.js +0 -206
- package/dist/handoff.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js.map +0 -1
- package/dist/install-as-command.d.ts +0 -40
- package/dist/install-as-command.js +0 -52
- package/dist/install-as-command.js.map +0 -1
- package/dist/merge-observations.d.ts +0 -13
- package/dist/merge-observations.js +0 -55
- package/dist/merge-observations.js.map +0 -1
- package/dist/open-url.d.ts +0 -2
- package/dist/open-url.js +0 -10
- package/dist/open-url.js.map +0 -1
- package/dist/pack-check.d.ts +0 -17
- package/dist/pack-check.js +0 -27
- package/dist/pack-check.js.map +0 -1
- package/dist/paths.d.ts +0 -138
- package/dist/paths.js +0 -220
- package/dist/paths.js.map +0 -1
- package/dist/planner.d.ts +0 -28
- package/dist/planner.js +0 -271
- package/dist/planner.js.map +0 -1
- package/dist/preview/agent-address.d.ts +0 -34
- package/dist/preview/agent-address.js +0 -51
- package/dist/preview/agent-address.js.map +0 -1
- package/dist/preview/agent-marker.d.ts +0 -17
- package/dist/preview/agent-marker.js +0 -71
- package/dist/preview/agent-marker.js.map +0 -1
- package/dist/preview/cdp-proxy.d.ts +0 -54
- package/dist/preview/cdp-proxy.js +0 -151
- package/dist/preview/cdp-proxy.js.map +0 -1
- package/dist/preview/cdp.d.ts +0 -49
- package/dist/preview/cdp.js +0 -167
- package/dist/preview/cdp.js.map +0 -1
- package/dist/preview/chromium.d.ts +0 -87
- package/dist/preview/chromium.js +0 -481
- package/dist/preview/chromium.js.map +0 -1
- package/dist/preview/dev-server.d.ts +0 -68
- package/dist/preview/dev-server.js +0 -317
- package/dist/preview/dev-server.js.map +0 -1
- package/dist/preview/host.d.ts +0 -221
- package/dist/preview/host.js +0 -967
- package/dist/preview/host.js.map +0 -1
- package/dist/preview/registration.d.ts +0 -68
- package/dist/preview/registration.js +0 -111
- package/dist/preview/registration.js.map +0 -1
- package/dist/preview/session.d.ts +0 -75
- package/dist/preview/session.js +0 -357
- package/dist/preview/session.js.map +0 -1
- package/dist/preview/url.d.ts +0 -6
- package/dist/preview/url.js +0 -17
- package/dist/preview/url.js.map +0 -1
- package/dist/process-wait/exit-file.d.ts +0 -29
- package/dist/process-wait/exit-file.js +0 -67
- package/dist/process-wait/exit-file.js.map +0 -1
- package/dist/process-wait/supervisor.d.ts +0 -30
- package/dist/process-wait/supervisor.js +0 -71
- package/dist/process-wait/supervisor.js.map +0 -1
- package/dist/release/manifests.d.ts +0 -103
- package/dist/release/manifests.js +0 -90
- package/dist/release/manifests.js.map +0 -1
- package/dist/release/snapshot.d.ts +0 -67
- package/dist/release/snapshot.js +0 -97
- package/dist/release/snapshot.js.map +0 -1
- package/dist/release/stable.d.ts +0 -38
- package/dist/release/stable.js +0 -55
- package/dist/release/stable.js.map +0 -1
- package/dist/runs/agent-tmpdir-removal.d.ts +0 -15
- package/dist/runs/agent-tmpdir-removal.js +0 -60
- package/dist/runs/agent-tmpdir-removal.js.map +0 -1
- package/dist/runs/agent-tmpdir.d.ts +0 -119
- package/dist/runs/agent-tmpdir.js +0 -829
- package/dist/runs/agent-tmpdir.js.map +0 -1
- package/dist/runs/arm-repo-handle.d.ts +0 -9
- package/dist/runs/arm-repo-handle.js +0 -45
- package/dist/runs/arm-repo-handle.js.map +0 -1
- package/dist/runs/auto-name.d.ts +0 -75
- package/dist/runs/auto-name.js +0 -179
- package/dist/runs/auto-name.js.map +0 -1
- package/dist/runs/client-request.d.ts +0 -11
- package/dist/runs/client-request.js +0 -26
- package/dist/runs/client-request.js.map +0 -1
- package/dist/runs/delegation-state.d.ts +0 -400
- package/dist/runs/delegation-state.js +0 -22
- package/dist/runs/delegation-state.js.map +0 -1
- package/dist/runs/event-history-agent-context.d.ts +0 -14
- package/dist/runs/event-history-agent-context.js +0 -105
- package/dist/runs/event-history-agent-context.js.map +0 -1
- package/dist/runs/event-history-context.d.ts +0 -15
- package/dist/runs/event-history-context.js +0 -109
- package/dist/runs/event-history-context.js.map +0 -1
- package/dist/runs/event-history.d.ts +0 -53
- package/dist/runs/event-history.js +0 -535
- package/dist/runs/event-history.js.map +0 -1
- package/dist/runs/history-compressor.d.ts +0 -29
- package/dist/runs/history-compressor.js +0 -116
- package/dist/runs/history-compressor.js.map +0 -1
- package/dist/runs/history-file.d.ts +0 -36
- package/dist/runs/history-file.js +0 -463
- package/dist/runs/history-file.js.map +0 -1
- package/dist/runs/history-stream.d.ts +0 -2
- package/dist/runs/history-stream.js +0 -62
- package/dist/runs/history-stream.js.map +0 -1
- package/dist/runs/legacy-index.d.ts +0 -49
- package/dist/runs/legacy-index.js +0 -155
- package/dist/runs/legacy-index.js.map +0 -1
- package/dist/runs/live-item-snapshots.d.ts +0 -13
- package/dist/runs/live-item-snapshots.js +0 -79
- package/dist/runs/live-item-snapshots.js.map +0 -1
- package/dist/runs/loaded-run-healing.d.ts +0 -3
- package/dist/runs/loaded-run-healing.js +0 -17
- package/dist/runs/loaded-run-healing.js.map +0 -1
- package/dist/runs/outcome-commit.d.ts +0 -98
- package/dist/runs/outcome-commit.js +0 -132
- package/dist/runs/outcome-commit.js.map +0 -1
- package/dist/runs/pull-requests.d.ts +0 -14
- package/dist/runs/pull-requests.js +0 -96
- package/dist/runs/pull-requests.js.map +0 -1
- package/dist/runs/raw-record.d.ts +0 -40
- package/dist/runs/raw-record.js +0 -133
- package/dist/runs/raw-record.js.map +0 -1
- package/dist/runs/retention.d.ts +0 -91
- package/dist/runs/retention.js +0 -182
- package/dist/runs/retention.js.map +0 -1
- package/dist/runs/review-gate.d.ts +0 -18
- package/dist/runs/review-gate.js +0 -21
- package/dist/runs/review-gate.js.map +0 -1
- package/dist/runs/run-claims.d.ts +0 -16
- package/dist/runs/run-claims.js +0 -24
- package/dist/runs/run-claims.js.map +0 -1
- package/dist/runs/run-database.d.ts +0 -380
- package/dist/runs/run-database.js +0 -1008
- package/dist/runs/run-database.js.map +0 -1
- package/dist/runs/run-index.d.ts +0 -26
- package/dist/runs/run-index.js +0 -212
- package/dist/runs/run-index.js.map +0 -1
- package/dist/runs/run-row.d.ts +0 -15
- package/dist/runs/run-row.js +0 -59
- package/dist/runs/run-row.js.map +0 -1
- package/dist/runs/store-open-error.d.ts +0 -24
- package/dist/runs/store-open-error.js +0 -61
- package/dist/runs/store-open-error.js.map +0 -1
- package/dist/runs/store.d.ts +0 -3090
- package/dist/runs/store.js +0 -4693
- package/dist/runs/store.js.map +0 -1
- package/dist/runs/task-markers.d.ts +0 -29
- package/dist/runs/task-markers.js +0 -78
- package/dist/runs/task-markers.js.map +0 -1
- package/dist/runs/task-refs.d.ts +0 -25
- package/dist/runs/task-refs.js +0 -74
- package/dist/runs/task-refs.js.map +0 -1
- package/dist/runs/transcript-facts-fold.d.ts +0 -64
- package/dist/runs/transcript-facts-fold.js +0 -109
- package/dist/runs/transcript-facts-fold.js.map +0 -1
- package/dist/runs/transcript-facts-load.d.ts +0 -11
- package/dist/runs/transcript-facts-load.js +0 -66
- package/dist/runs/transcript-facts-load.js.map +0 -1
- package/dist/runs/transcript-facts-queue.d.ts +0 -30
- package/dist/runs/transcript-facts-queue.js +0 -227
- package/dist/runs/transcript-facts-queue.js.map +0 -1
- package/dist/runs/transcript-facts-worker.d.ts +0 -15
- package/dist/runs/transcript-facts-worker.js +0 -26
- package/dist/runs/transcript-facts-worker.js.map +0 -1
- package/dist/runs/transcript-facts.d.ts +0 -39
- package/dist/runs/transcript-facts.js +0 -186
- package/dist/runs/transcript-facts.js.map +0 -1
- package/dist/runs/ui-event-sink.d.ts +0 -56
- package/dist/runs/ui-event-sink.js +0 -188
- package/dist/runs/ui-event-sink.js.map +0 -1
- package/dist/runs/webhook.d.ts +0 -191
- package/dist/runs/webhook.js +0 -360
- package/dist/runs/webhook.js.map +0 -1
- package/dist/runs/worker-execution.d.ts +0 -22
- package/dist/runs/worker-execution.js +0 -30
- package/dist/runs/worker-execution.js.map +0 -1
- package/dist/server/app-type.js.map +0 -1
- package/dist/server/archive-on-merge.d.ts +0 -35
- package/dist/server/archive-on-merge.js +0 -202
- package/dist/server/archive-on-merge.js.map +0 -1
- package/dist/server/capabilities.d.ts +0 -59
- package/dist/server/capabilities.js +0 -141
- package/dist/server/capabilities.js.map +0 -1
- package/dist/server/checkout-progress.d.ts +0 -10
- package/dist/server/checkout-progress.js +0 -27
- package/dist/server/checkout-progress.js.map +0 -1
- package/dist/server/checkout.d.ts +0 -129
- package/dist/server/checkout.js +0 -304
- package/dist/server/checkout.js.map +0 -1
- package/dist/server/cockpit-ownership.d.ts +0 -31
- package/dist/server/cockpit-ownership.js +0 -191
- package/dist/server/cockpit-ownership.js.map +0 -1
- package/dist/server/cold-repo-handles.d.ts +0 -14
- package/dist/server/cold-repo-handles.js +0 -78
- package/dist/server/cold-repo-handles.js.map +0 -1
- package/dist/server/completion-actions.d.ts +0 -30
- package/dist/server/completion-actions.js +0 -204
- package/dist/server/completion-actions.js.map +0 -1
- package/dist/server/create-project.d.ts +0 -71
- package/dist/server/create-project.js +0 -448
- package/dist/server/create-project.js.map +0 -1
- package/dist/server/forge/github-filters.d.ts +0 -22
- package/dist/server/forge/github-filters.js +0 -127
- package/dist/server/forge/github-filters.js.map +0 -1
- package/dist/server/forge/github-merge-requirements.d.ts +0 -18
- package/dist/server/forge/github-merge-requirements.js +0 -137
- package/dist/server/forge/github-merge-requirements.js.map +0 -1
- package/dist/server/forge/github.d.ts +0 -535
- package/dist/server/forge/github.js +0 -3200
- package/dist/server/forge/github.js.map +0 -1
- package/dist/server/forge/index.d.ts +0 -40
- package/dist/server/forge/index.js +0 -72
- package/dist/server/forge/index.js.map +0 -1
- package/dist/server/forge/types.d.ts +0 -244
- package/dist/server/forge/types.js +0 -2
- package/dist/server/forge/types.js.map +0 -1
- package/dist/server/fs-browse.d.ts +0 -80
- package/dist/server/fs-browse.js +0 -182
- package/dist/server/fs-browse.js.map +0 -1
- package/dist/server/git-changes.d.ts +0 -203
- package/dist/server/git-changes.js +0 -508
- package/dist/server/git-changes.js.map +0 -1
- package/dist/server/git.d.ts +0 -52
- package/dist/server/git.js +0 -170
- package/dist/server/git.js.map +0 -1
- package/dist/server/github.d.ts +0 -9
- package/dist/server/github.js +0 -8
- package/dist/server/github.js.map +0 -1
- package/dist/server/launch-key.d.ts +0 -5
- package/dist/server/launch-key.js +0 -31
- package/dist/server/launch-key.js.map +0 -1
- package/dist/server/live-routes.d.ts +0 -68
- package/dist/server/live-routes.js +0 -147
- package/dist/server/live-routes.js.map +0 -1
- package/dist/server/open-in-app.d.ts +0 -57
- package/dist/server/open-in-app.js +0 -177
- package/dist/server/open-in-app.js.map +0 -1
- package/dist/server/open-in-targets.d.ts +0 -42
- package/dist/server/open-in-targets.js +0 -110
- package/dist/server/open-in-targets.js.map +0 -1
- package/dist/server/open-in-terminal.d.ts +0 -73
- package/dist/server/open-in-terminal.js +0 -159
- package/dist/server/open-in-terminal.js.map +0 -1
- package/dist/server/pr.d.ts +0 -7
- package/dist/server/pr.js +0 -7
- package/dist/server/pr.js.map +0 -1
- package/dist/server/preview-cdp-socket.d.ts +0 -21
- package/dist/server/preview-cdp-socket.js +0 -112
- package/dist/server/preview-cdp-socket.js.map +0 -1
- package/dist/server/preview-socket.d.ts +0 -36
- package/dist/server/preview-socket.js +0 -126
- package/dist/server/preview-socket.js.map +0 -1
- package/dist/server/preview-sockets.d.ts +0 -14
- package/dist/server/preview-sockets.js +0 -18
- package/dist/server/preview-sockets.js.map +0 -1
- package/dist/server/project-context.d.ts +0 -192
- package/dist/server/project-context.js +0 -444
- package/dist/server/project-context.js.map +0 -1
- package/dist/server/provider-action-gate.d.ts +0 -5
- package/dist/server/provider-action-gate.js +0 -27
- package/dist/server/provider-action-gate.js.map +0 -1
- package/dist/server/provider-auth-runtime.d.ts +0 -32
- package/dist/server/provider-auth-runtime.js +0 -116
- package/dist/server/provider-auth-runtime.js.map +0 -1
- package/dist/server/repo-branches.d.ts +0 -99
- package/dist/server/repo-branches.js +0 -620
- package/dist/server/repo-branches.js.map +0 -1
- package/dist/server/repo-pull.d.ts +0 -18
- package/dist/server/repo-pull.js +0 -96
- package/dist/server/repo-pull.js.map +0 -1
- package/dist/server/run-event-feed.d.ts +0 -20
- package/dist/server/run-event-feed.js +0 -190
- package/dist/server/run-event-feed.js.map +0 -1
- package/dist/server/server-deps.d.ts +0 -37
- package/dist/server/server-deps.js +0 -114
- package/dist/server/server-deps.js.map +0 -1
- package/dist/server/server.d.ts +0 -28587
- package/dist/server/server.js +0 -5466
- package/dist/server/server.js.map +0 -1
- package/dist/server/start-run-options.d.ts +0 -82
- package/dist/server/start-run-options.js +0 -111
- package/dist/server/start-run-options.js.map +0 -1
- package/dist/server/static-ui.d.ts +0 -49
- package/dist/server/static-ui.js +0 -98
- package/dist/server/static-ui.js.map +0 -1
- package/dist/server/upgrade-router.d.ts +0 -23
- package/dist/server/upgrade-router.js +0 -53
- package/dist/server/upgrade-router.js.map +0 -1
- package/dist/server/validators.d.ts +0 -80
- package/dist/server/validators.js +0 -85
- package/dist/server/validators.js.map +0 -1
- package/dist/server/ws.d.ts +0 -65
- package/dist/server/ws.js +0 -200
- package/dist/server/ws.js.map +0 -1
- package/dist/server/wsl.d.ts +0 -25
- package/dist/server/wsl.js +0 -92
- package/dist/server/wsl.js.map +0 -1
- package/dist/server-install/engine.d.ts +0 -47
- package/dist/server-install/engine.js +0 -317
- package/dist/server-install/engine.js.map +0 -1
- package/dist/server-install/npx-cache.d.ts +0 -36
- package/dist/server-install/npx-cache.js +0 -104
- package/dist/server-install/npx-cache.js.map +0 -1
- package/dist/server-install/platforms/macosx-ngrok.d.ts +0 -6
- package/dist/server-install/platforms/macosx-ngrok.js +0 -371
- package/dist/server-install/platforms/macosx-ngrok.js.map +0 -1
- package/dist/server-install/platforms/ubuntu-vps.d.ts +0 -54
- package/dist/server-install/platforms/ubuntu-vps.js +0 -1066
- package/dist/server-install/platforms/ubuntu-vps.js.map +0 -1
- package/dist/server-install/state.d.ts +0 -50
- package/dist/server-install/state.js +0 -180
- package/dist/server-install/state.js.map +0 -1
- package/dist/server-install/steps.d.ts +0 -108
- package/dist/server-install/steps.js +0 -332
- package/dist/server-install/steps.js.map +0 -1
- package/dist/server-install/strategies.d.ts +0 -4
- package/dist/server-install/strategies.js +0 -20
- package/dist/server-install/strategies.js.map +0 -1
- package/dist/server-install/types.d.ts +0 -284
- package/dist/server-install/types.js +0 -118
- package/dist/server-install/types.js.map +0 -1
- package/dist/server-install/ui.d.ts +0 -36
- package/dist/server-install/ui.js +0 -130
- package/dist/server-install/ui.js.map +0 -1
- package/dist/session-context.d.ts +0 -64
- package/dist/session-context.js +0 -264
- package/dist/session-context.js.map +0 -1
- package/dist/skills-provision.d.ts +0 -62
- package/dist/skills-provision.js +0 -325
- package/dist/skills-provision.js.map +0 -1
- package/dist/skills-remote.d.ts +0 -129
- package/dist/skills-remote.js +0 -782
- package/dist/skills-remote.js.map +0 -1
- package/dist/skills.d.ts +0 -71
- package/dist/skills.js +0 -249
- package/dist/skills.js.map +0 -1
- package/dist/subcommands.d.ts +0 -11
- package/dist/subcommands.js +0 -24
- package/dist/subcommands.js.map +0 -1
- package/dist/task-cli/cli.d.ts +0 -38
- package/dist/task-cli/cli.js +0 -710
- package/dist/task-cli/cli.js.map +0 -1
- package/dist/task-cli/discovery.d.ts +0 -25
- package/dist/task-cli/discovery.js +0 -98
- package/dist/task-cli/discovery.js.map +0 -1
- package/dist/task-cli/hint.d.ts +0 -20
- package/dist/task-cli/hint.js +0 -14
- package/dist/task-cli/hint.js.map +0 -1
- package/dist/task-cli/http.d.ts +0 -49
- package/dist/task-cli/http.js +0 -109
- package/dist/task-cli/http.js.map +0 -1
- package/dist/task-cli/projections.d.ts +0 -68
- package/dist/task-cli/projections.js +0 -76
- package/dist/task-cli/projections.js.map +0 -1
- package/dist/task-cli/watch.d.ts +0 -119
- package/dist/task-cli/watch.js +0 -475
- package/dist/task-cli/watch.js.map +0 -1
- package/dist/ui-state.d.ts +0 -41
- package/dist/ui-state.js +0 -90
- package/dist/ui-state.js.map +0 -1
- package/dist/update-check.d.ts +0 -2
- package/dist/update-check.js +0 -26
- package/dist/update-check.js.map +0 -1
- package/dist/voice/decide.d.ts +0 -32
- package/dist/voice/decide.js +0 -297
- package/dist/voice/decide.js.map +0 -1
- package/dist/voice/decision-log.d.ts +0 -52
- package/dist/voice/decision-log.js +0 -107
- package/dist/voice/decision-log.js.map +0 -1
- package/dist/voice/engine.d.ts +0 -119
- package/dist/voice/engine.js +0 -60
- package/dist/voice/engine.js.map +0 -1
- package/dist/voice/fake-engine.d.ts +0 -10
- package/dist/voice/fake-engine.js +0 -192
- package/dist/voice/fake-engine.js.map +0 -1
- package/dist/voice/jev-engine.d.ts +0 -17
- package/dist/voice/jev-engine.js +0 -110
- package/dist/voice/jev-engine.js.map +0 -1
- package/dist/voice/pending-ask.d.ts +0 -17
- package/dist/voice/pending-ask.js +0 -50
- package/dist/voice/pending-ask.js.map +0 -1
- package/dist/voice/routes.d.ts +0 -115
- package/dist/voice/routes.js +0 -91
- package/dist/voice/routes.js.map +0 -1
- package/dist/voice/sentence.d.ts +0 -21
- package/dist/voice/sentence.js +0 -61
- package/dist/voice/sentence.js.map +0 -1
- package/dist/voice/thresholds.d.ts +0 -28
- package/dist/voice/thresholds.js +0 -29
- package/dist/voice/thresholds.js.map +0 -1
- package/dist/webhooks/cli.d.ts +0 -18
- package/dist/webhooks/cli.js +0 -145
- package/dist/webhooks/cli.js.map +0 -1
- package/dist/webhooks/prompt.d.ts +0 -5
- package/dist/webhooks/prompt.js +0 -26
- package/dist/webhooks/prompt.js.map +0 -1
- package/dist/workflows/active-run.d.ts +0 -167
- package/dist/workflows/active-run.js +0 -21
- package/dist/workflows/active-run.js.map +0 -1
- package/dist/workflows/attachment-path.d.ts +0 -6
- package/dist/workflows/attachment-path.js +0 -40
- package/dist/workflows/attachment-path.js.map +0 -1
- package/dist/workflows/continuation-admission.d.ts +0 -913
- package/dist/workflows/continuation-admission.js +0 -265
- package/dist/workflows/continuation-admission.js.map +0 -1
- package/dist/workflows/execution-account.d.ts +0 -13
- package/dist/workflows/execution-account.js +0 -18
- package/dist/workflows/execution-account.js.map +0 -1
- package/dist/workflows/grouped-command.d.ts +0 -31
- package/dist/workflows/grouped-command.js +0 -143
- package/dist/workflows/grouped-command.js.map +0 -1
- package/dist/workflows/input-acknowledgement.d.ts +0 -152
- package/dist/workflows/input-acknowledgement.js +0 -38
- package/dist/workflows/input-acknowledgement.js.map +0 -1
- package/dist/workflows/line-order.d.ts +0 -5
- package/dist/workflows/line-order.js +0 -25
- package/dist/workflows/line-order.js.map +0 -1
- package/dist/workflows/load.d.ts +0 -17
- package/dist/workflows/load.js +0 -61
- package/dist/workflows/load.js.map +0 -1
- package/dist/workflows/outcome-batches.d.ts +0 -20
- package/dist/workflows/outcome-batches.js +0 -25
- package/dist/workflows/outcome-batches.js.map +0 -1
- package/dist/workflows/question-routing.d.ts +0 -8
- package/dist/workflows/question-routing.js +0 -18
- package/dist/workflows/question-routing.js.map +0 -1
- package/dist/workflows/run-scheduling.d.ts +0 -35
- package/dist/workflows/run-scheduling.js +0 -61
- package/dist/workflows/run-scheduling.js.map +0 -1
- package/dist/workflows/run-states.d.ts +0 -190
- package/dist/workflows/run-states.js +0 -295
- package/dist/workflows/run-states.js.map +0 -1
- package/dist/workflows/run.d.ts +0 -2405
- package/dist/workflows/run.js +0 -10745
- package/dist/workflows/run.js.map +0 -1
- package/dist/workflows/turn-end.d.ts +0 -116
- package/dist/workflows/turn-end.js +0 -68
- package/dist/workflows/turn-end.js.map +0 -1
- package/dist/workflows/types.d.ts +0 -83
- package/dist/workflows/types.js +0 -192
- package/dist/workflows/types.js.map +0 -1
- package/dist/workflows/waits.d.ts +0 -74
- package/dist/workflows/waits.js +0 -197
- package/dist/workflows/waits.js.map +0 -1
- package/dist/workspace/agent-accounts.d.ts +0 -128
- package/dist/workspace/agent-accounts.js +0 -280
- package/dist/workspace/agent-accounts.js.map +0 -1
- package/dist/workspace/agent-profiles.d.ts +0 -124
- package/dist/workspace/agent-profiles.js +0 -190
- package/dist/workspace/agent-profiles.js.map +0 -1
- package/dist/workspace/config.d.ts +0 -181
- package/dist/workspace/config.js +0 -389
- package/dist/workspace/config.js.map +0 -1
- package/dist/workspace/migrations.d.ts +0 -35
- package/dist/workspace/migrations.js +0 -147
- package/dist/workspace/migrations.js.map +0 -1
- package/dist/workspace/projects-cli.d.ts +0 -25
- package/dist/workspace/projects-cli.js +0 -172
- package/dist/workspace/projects-cli.js.map +0 -1
- package/dist/workspace/projects.d.ts +0 -129
- package/dist/workspace/projects.js +0 -267
- package/dist/workspace/projects.js.map +0 -1
- package/dist/workspace/semaphore.d.ts +0 -145
- package/dist/workspace/semaphore.js +0 -196
- package/dist/workspace/semaphore.js.map +0 -1
- package/dist/workspace/ui-state.d.ts +0 -36
- package/dist/workspace/ui-state.js +0 -55
- package/dist/workspace/ui-state.js.map +0 -1
- package/dist/workspace/webhooks.d.ts +0 -40
- package/dist/workspace/webhooks.js +0 -146
- package/dist/workspace/webhooks.js.map +0 -1
- package/dist/worktree-manifest.d.ts +0 -165
- package/dist/worktree-manifest.js +0 -530
- package/dist/worktree-manifest.js.map +0 -1
- package/dist/worktree-setup.d.ts +0 -85
- package/dist/worktree-setup.js +0 -164
- package/dist/worktree-setup.js.map +0 -1
- package/scripts/benchmark-run-store-fixture.ts +0 -432
- package/scripts/benchmark-run-store.ts +0 -743
- package/scripts/benchmark-stuck-destroys.ts +0 -143
- package/scripts/check-pack.mjs +0 -48
- package/scripts/inline-contract.mjs +0 -165
- package/scripts/install-as-command.mjs +0 -122
- package/scripts/measure-transcript-facts-health.mjs +0 -87
- package/scripts/measure-transcript-facts-lag.mjs +0 -68
- package/scripts/mock-autonomous.mjs +0 -11
- package/scripts/mock-ci-tool.mjs +0 -111
- package/scripts/mock-claude-model-refusal.mjs +0 -42
- package/scripts/mock-claude.mjs +0 -1065
- package/scripts/mock-codex-app-server.mjs +0 -905
- package/scripts/mock-codex-coalesce-steer.mjs +0 -59
- package/scripts/mock-codex-reverse-steer.mjs +0 -130
- package/scripts/mock-cursor-acp.mjs +0 -423
- package/scripts/mock-cursor-hang-stdin-late.mjs +0 -35
- package/scripts/mock-cursor-hang-stdin.mjs +0 -30
- package/scripts/mock-cursor-print.mjs +0 -256
- package/scripts/mock-deferred-turn-start.mjs +0 -16
- package/scripts/mock-delivery-control.d.mts +0 -23
- package/scripts/mock-delivery-control.mjs +0 -80
- package/scripts/mock-env-record.mjs +0 -11
- package/scripts/mock-failure-control.d.mts +0 -13
- package/scripts/mock-failure-control.mjs +0 -68
- package/scripts/mock-multi-pr.mjs +0 -7
- package/scripts/mock-nudge.mjs +0 -45
- package/scripts/mock-omp-rpc.mjs +0 -779
- package/scripts/mock-opencode-serve.mjs +0 -1230
- package/scripts/mock-pi-rpc.mjs +0 -698
- package/scripts/mock-runner-crash.mjs +0 -58
- package/scripts/mock-session-context.d.mts +0 -5
- package/scripts/mock-session-context.mjs +0 -56
- package/scripts/mock-silent-tail.mjs +0 -85
- package/scripts/mock-turn-messages.mjs +0 -5
- package/scripts/omp-ci-wait.mjs +0 -29
- package/scripts/omp-restrict-delegation.yml +0 -4
- package/scripts/pi-ci-wait.mjs +0 -17
- package/scripts/pi-default-tools.mjs +0 -22
- package/scripts/pi-project-skills.mjs +0 -59
- package/scripts/pi-retry-degraded-service.mjs +0 -16
- package/scripts/probe-cursor-print.mjs +0 -627
- package/scripts/seed-archive-profile.ts +0 -53
- package/scripts/sync-readme.mjs +0 -20
- package/scripts/test-process-usage.mjs +0 -47
- package/scripts/transcript-facts-fixture.mjs +0 -53
- package/scripts/voice-replay.ts +0 -50
- package/scripts/windows-workspace-identity.cs +0 -208
- package/scripts/windows-workspace-identity.ps1 +0 -10
- package/web/dist/assets/alert-dialog-DfctKUMw.js +0 -1
- package/web/dist/assets/button-CeupvoKG.js +0 -41
- package/web/dist/assets/centered-state-hDsyXrnH.js +0 -1
- package/web/dist/assets/cez-idle-D3aj_9lp.js +0 -1
- package/web/dist/assets/diff-BnIXZK3i2.js +0 -3
- package/web/dist/assets/diff-controls-GewpW9aF.js +0 -1
- package/web/dist/assets/diff-view-Byo7gpvW.js +0 -11
- package/web/dist/assets/dropdown-menu-COj_J5wd.js +0 -6
- package/web/dist/assets/git-toolbar-DY0z0n4S.js +0 -1
- package/web/dist/assets/github-DwU6ALRK.js +0 -1
- package/web/dist/assets/index-BOfE8pyD.js +0 -34
- package/web/dist/assets/index-D9HpsmdW.css +0 -1
- package/web/dist/assets/lib-BQXq3kEf.js +0 -1
- package/web/dist/assets/live-protocol-Uce2NwEX.js +0 -64
- package/web/dist/assets/play-CmVAj_fu.js +0 -1
- package/web/dist/assets/popover-D56fhiXj.js +0 -1
- package/web/dist/assets/preview-pane-connected-BmVqfSU5.js +0 -3
- package/web/dist/assets/reference-chip-gQNk-4jc.js +0 -1
- package/web/dist/assets/repo-git-B5ECDUuv.js +0 -1
- package/web/dist/assets/run-header-C0Y1NvEM.js +0 -2
- package/web/dist/assets/skill-empty-hint-oOtzR3v0.js +0 -1
- package/web/dist/assets/skills-DUeTkZ9z.js +0 -1
- package/web/dist/assets/status-dot-1PR0i69P.js +0 -1
- package/web/dist/assets/tab-link-DmWk4l5O.js +0 -1
- package/web/dist/assets/task-changes-DKZXuW89.js +0 -1
- package/web/dist/assets/task-commits-BZ6KxWdF.js +0 -1
- package/web/dist/assets/task-files-DlF7Apcn.js +0 -2
- package/web/dist/assets/task-github-item-CVPo3geZ.js +0 -1
- package/web/dist/assets/task-thread-mm4-ECyo.js +0 -9
- package/web/dist/assets/thread-state-CIw2BlhT.js +0 -4
- package/web/dist/assets/use-hand-to-agent-state-BCDjzHnG.js +0 -1
- package/web/dist/assets/workflows-D8vYD-ql.js +0 -7
- package/web/dist/assets/zoomable-image-CxQSsfcn.js +0 -1
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared turn-end decision for initial sessions, Continue and late input ACKs. Owed input
|
|
3
|
-
* defers; done and waits take precedence. Every agent step completes only on a done
|
|
4
|
-
* (hearsay-tools/cezarion#1620): a no-wait turn gets bounded nudges, then a human wait; never
|
|
5
|
-
* classify prose.
|
|
6
|
-
*
|
|
7
|
-
* A nudge has a cause. No wait: the turn named neither a wait nor a done. Completion: the agent's
|
|
8
|
-
* done was refused by the completion gate (hearsay-tools/cezarion#1301). Each cause keeps its own
|
|
9
|
-
* order: the completion cause takes its second step before it checks the budget, the no-wait cause
|
|
10
|
-
* checks the budget first, and a nudge the wire refuses ends differently for each (`ifRefused`).
|
|
11
|
-
*/
|
|
12
|
-
/** What a turn end knows when it decides. */
|
|
13
|
-
export type TurnEndFacts = {
|
|
14
|
-
/** The session is still open. A closed one settles elsewhere. */
|
|
15
|
-
sessionOpen: boolean;
|
|
16
|
-
/** `cezar_done` was accepted this turn, or the done line. */
|
|
17
|
-
done: boolean;
|
|
18
|
-
/** The completion gate refused that done. `liveWorkers`: live workers block it. */
|
|
19
|
-
doneRefused?: {
|
|
20
|
-
liveWorkers: boolean;
|
|
21
|
-
};
|
|
22
|
-
/** A submission still awaits its acknowledgement. */
|
|
23
|
-
inputInFlight: boolean;
|
|
24
|
-
/** Input the harness has not taken, beside any flight: queued, or delivered and still unread. */
|
|
25
|
-
inputQueued: boolean;
|
|
26
|
-
/** The result of delivering owed input at this turn end. Undefined: not tried yet, and the rule
|
|
27
|
-
* answers `take-input` when it needs it. False when the entry delivers nothing of its own. */
|
|
28
|
-
inputTaken?: boolean | undefined;
|
|
29
|
-
/** An autonomous nudge the wire refused waits for input readiness at this boundary. */
|
|
30
|
-
nudgePending: boolean;
|
|
31
|
-
/** This turn's ask: an ask line, or the card of a human wait it registered. Owed input waits
|
|
32
|
-
* behind it. */
|
|
33
|
-
turnAsk: boolean;
|
|
34
|
-
/** A native ask still pending in the live session. A done waits behind it. */
|
|
35
|
-
nativeAsk: boolean;
|
|
36
|
-
/** Any question: this turn's ask or human gate, a pending ask, an open human wait. */
|
|
37
|
-
question: boolean;
|
|
38
|
-
/** The agent's own waits: every wait but Cezar's human waits. */
|
|
39
|
-
agentWaits: boolean;
|
|
40
|
-
/** Cezar's own human wait is open (`no-wait`, `budget`, `completion`). */
|
|
41
|
-
cezarHumanWait: boolean;
|
|
42
|
-
/** The session's done completes a workflow step that is not the last, not the task
|
|
43
|
-
* (hearsay-tools/cezarion#1620). Only the nudge wording reads it. */
|
|
44
|
-
stepScope: boolean;
|
|
45
|
-
/** The turn that just ended answered Cezar's no-wait nudge. */
|
|
46
|
-
noWaitNudgedLastTurn: boolean;
|
|
47
|
-
/** The turn that just ended answered Cezar's completion nudge. */
|
|
48
|
-
completionNudgedLastTurn: boolean;
|
|
49
|
-
autonomous: boolean;
|
|
50
|
-
/** `automaticWakes` reached `MAX_AUTO_CONTINUES`. */
|
|
51
|
-
budgetSpent: boolean;
|
|
52
|
-
/** The session has cezar tools; without them the nudge names the lifecycle markers. */
|
|
53
|
-
tools: boolean;
|
|
54
|
-
};
|
|
55
|
-
export type NudgeCause = 'no-wait' | 'completion';
|
|
56
|
-
/** `refused`: the decision follows a refused done, whose refusal the turn end records as a note. */
|
|
57
|
-
export type TurnEndDecision = {
|
|
58
|
-
kind: 'closed';
|
|
59
|
-
} | {
|
|
60
|
-
kind: 'take-input';
|
|
61
|
-
refused?: true;
|
|
62
|
-
} | {
|
|
63
|
-
kind: 'input';
|
|
64
|
-
refused?: true;
|
|
65
|
-
} | {
|
|
66
|
-
kind: 'defer';
|
|
67
|
-
keepDone?: true;
|
|
68
|
-
refused?: true;
|
|
69
|
-
} | {
|
|
70
|
-
kind: 'done';
|
|
71
|
-
} | {
|
|
72
|
-
kind: 'park';
|
|
73
|
-
refused?: true;
|
|
74
|
-
} | {
|
|
75
|
-
kind: 'completion-wait';
|
|
76
|
-
}
|
|
77
|
-
/** `text` is absent for the completion cause: the refusal message is the nudge. A refused
|
|
78
|
-
* submission waits for input readiness (autonomous), opens Cezar's no-wait human wait, or parks
|
|
79
|
-
* for the user (completion). */
|
|
80
|
-
| {
|
|
81
|
-
kind: 'nudge';
|
|
82
|
-
cause: NudgeCause;
|
|
83
|
-
text?: string;
|
|
84
|
-
ifRefused: 'readiness' | 'human-wait' | 'park-for-user';
|
|
85
|
-
refused?: true;
|
|
86
|
-
} | {
|
|
87
|
-
kind: 'human-wait';
|
|
88
|
-
via: 'no-wait' | 'budget' | 'completion';
|
|
89
|
-
refused?: true;
|
|
90
|
-
};
|
|
91
|
-
export declare const AUTONOMOUS_NUDGE = "Continue working autonomously until the task is fully complete. Do not ask me for confirmation or clarification \u2014 make reasonable assumptions and proceed. When everything is done, end the session with your done signal.";
|
|
92
|
-
/** The no-wait nudge. It names the wait kinds `cezar_wait` takes. */
|
|
93
|
-
export declare const NO_WAIT_NUDGE = "Your turn ended without a wait or done. Call cezar_ask if you need the user, cezar_wait (pr, worker, timer or process) if you are waiting on something, or cezar_done if the task is complete. If you owe the user a reply, write it in the same turn.";
|
|
94
|
-
/** The no-wait nudge for a session without cezar tools, which was taught the markers. */
|
|
95
|
-
export declare const NO_WAIT_NUDGE_MARKERS = "Your turn ended without a wait or done. End your message with a CEZ:ASK line if you need the user, a CEZ:MONITORING line if you are waiting on something, or a CEZ:DONE line if the task is complete. If you owe the user a reply, write it in the same turn.";
|
|
96
|
-
/** Appended to a nudge in a session whose done completes a workflow step, not the task
|
|
97
|
-
* (hearsay-tools/cezarion#1620). Appended, so the nudge keeps its opening words. */
|
|
98
|
-
/** A nudge as an earlier workflow step receives it: with the step suffix when `stepScope` holds. */
|
|
99
|
-
export declare function stepScopedNudge(text: string, stepScope: boolean): string;
|
|
100
|
-
export declare const STEP_NUDGE_SUFFIX = "In this workflow step, the done signal completes this step's own work, and Cezar then starts the next step.";
|
|
101
|
-
export declare function decideTurnEnd(facts: TurnEndFacts): TurnEndDecision;
|
|
102
|
-
/** How a settled turn end left the run. */
|
|
103
|
-
export type TurnEndOutcome = {
|
|
104
|
-
kind: 'nudge';
|
|
105
|
-
cause: NudgeCause;
|
|
106
|
-
autonomous: boolean;
|
|
107
|
-
} | {
|
|
108
|
-
kind: 'readiness';
|
|
109
|
-
} | {
|
|
110
|
-
kind: 'running';
|
|
111
|
-
} | {
|
|
112
|
-
kind: 'park';
|
|
113
|
-
keepsSlot: boolean;
|
|
114
|
-
} | {
|
|
115
|
-
kind: 'done';
|
|
116
|
-
};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared turn-end decision for initial sessions, Continue and late input ACKs. Owed input
|
|
3
|
-
* defers; done and waits take precedence. Every agent step completes only on a done
|
|
4
|
-
* (hearsay-tools/cezarion#1620): a no-wait turn gets bounded nudges, then a human wait; never
|
|
5
|
-
* classify prose.
|
|
6
|
-
*
|
|
7
|
-
* A nudge has a cause. No wait: the turn named neither a wait nor a done. Completion: the agent's
|
|
8
|
-
* done was refused by the completion gate (hearsay-tools/cezarion#1301). Each cause keeps its own
|
|
9
|
-
* order: the completion cause takes its second step before it checks the budget, the no-wait cause
|
|
10
|
-
* checks the budget first, and a nudge the wire refuses ends differently for each (`ifRefused`).
|
|
11
|
-
*/
|
|
12
|
-
export const AUTONOMOUS_NUDGE = 'Continue working autonomously until the task is fully complete. Do not ask me for confirmation or clarification — make reasonable assumptions and proceed. When everything is done, end the session with your done signal.';
|
|
13
|
-
/** The no-wait nudge. It names the wait kinds `cezar_wait` takes. */
|
|
14
|
-
export const NO_WAIT_NUDGE = 'Your turn ended without a wait or done. Call cezar_ask if you need the user, cezar_wait (pr, worker, timer or process) if you are waiting on something, or cezar_done if the task is complete. If you owe the user a reply, write it in the same turn.';
|
|
15
|
-
/** The no-wait nudge for a session without cezar tools, which was taught the markers. */
|
|
16
|
-
export const NO_WAIT_NUDGE_MARKERS = 'Your turn ended without a wait or done. End your message with a CEZ:ASK line if you need the user, a CEZ:MONITORING line if you are waiting on something, or a CEZ:DONE line if the task is complete. If you owe the user a reply, write it in the same turn.';
|
|
17
|
-
/** Appended to a nudge in a session whose done completes a workflow step, not the task
|
|
18
|
-
* (hearsay-tools/cezarion#1620). Appended, so the nudge keeps its opening words. */
|
|
19
|
-
/** A nudge as an earlier workflow step receives it: with the step suffix when `stepScope` holds. */
|
|
20
|
-
export function stepScopedNudge(text, stepScope) {
|
|
21
|
-
return stepScope ? `${text} ${STEP_NUDGE_SUFFIX}` : text;
|
|
22
|
-
}
|
|
23
|
-
export const STEP_NUDGE_SUFFIX = 'In this workflow step, the done signal completes this step\'s own work, and Cezar then starts the next step.';
|
|
24
|
-
export function decideTurnEnd(facts) {
|
|
25
|
-
if (!facts.sessionOpen)
|
|
26
|
-
return { kind: 'closed' };
|
|
27
|
-
if (facts.doneRefused) {
|
|
28
|
-
// An input still in flight may be the one this turn answered, acknowledged after the turn end
|
|
29
|
-
// (OpenCode HTTP/SSE): the done stays at the boundary, and the acknowledgement decides it.
|
|
30
|
-
if (facts.inputInFlight && !facts.inputQueued && !facts.agentWaits)
|
|
31
|
-
return { kind: 'defer', keepDone: true };
|
|
32
|
-
// The agent's open waits and owed input come first: the refusal is a note, and the turn end
|
|
33
|
-
// goes on as one without a done.
|
|
34
|
-
if (facts.agentWaits || facts.inputInFlight || facts.inputQueued)
|
|
35
|
-
return { ...decideWithoutDone({ ...facts, done: false }), refused: true };
|
|
36
|
-
// One nudge per cycle: the turn that answered it ended on a refused done again. Cezar waits on
|
|
37
|
-
// the live workers, else on the user; an autonomous run is nudged again instead.
|
|
38
|
-
if (facts.completionNudgedLastTurn && !facts.autonomous) {
|
|
39
|
-
return facts.doneRefused.liveWorkers ? { kind: 'completion-wait' } : { kind: 'human-wait', via: 'completion' };
|
|
40
|
-
}
|
|
41
|
-
if (facts.budgetSpent)
|
|
42
|
-
return { kind: 'human-wait', via: 'budget' };
|
|
43
|
-
return { kind: 'nudge', cause: 'completion', ifRefused: 'park-for-user' };
|
|
44
|
-
}
|
|
45
|
-
return decideWithoutDone(facts);
|
|
46
|
-
}
|
|
47
|
-
function decideWithoutDone(facts) {
|
|
48
|
-
if (!facts.turnAsk && facts.inputTaken === undefined)
|
|
49
|
-
return { kind: 'take-input' };
|
|
50
|
-
if (facts.inputTaken)
|
|
51
|
-
return { kind: 'input' };
|
|
52
|
-
if (facts.done && !facts.nativeAsk && !facts.inputInFlight && !facts.inputQueued)
|
|
53
|
-
return { kind: 'done' };
|
|
54
|
-
if (facts.nudgePending)
|
|
55
|
-
return { kind: 'defer' };
|
|
56
|
-
if (facts.question || facts.agentWaits || facts.cezarHumanWait)
|
|
57
|
-
return { kind: 'park' };
|
|
58
|
-
if (facts.budgetSpent)
|
|
59
|
-
return { kind: 'human-wait', via: 'budget' };
|
|
60
|
-
// An autonomous run is nudged on every such turn end until the budget is spent.
|
|
61
|
-
const scoped = (text) => stepScopedNudge(text, facts.stepScope);
|
|
62
|
-
if (facts.autonomous)
|
|
63
|
-
return { kind: 'nudge', cause: 'no-wait', text: scoped(AUTONOMOUS_NUDGE), ifRefused: 'readiness' };
|
|
64
|
-
if (facts.noWaitNudgedLastTurn)
|
|
65
|
-
return { kind: 'human-wait', via: 'no-wait' };
|
|
66
|
-
return { kind: 'nudge', cause: 'no-wait', text: scoped(facts.tools ? NO_WAIT_NUDGE : NO_WAIT_NUDGE_MARKERS), ifRefused: 'human-wait' };
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=turn-end.js.map
|
|
@@ -1 +0,0 @@
|
|
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AAE,CAAC,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACxE,IAAI,KAAK,CAAC,UAAU;QAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;IACzH,IAAI,KAAK,CAAC,oBAAoB;QAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;IAC9E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,qBAAqB,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AACzI,CAAC"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { type AgentBackend, type RunnerId, type ToolGrant } from '../core/agent-runner.ts';
|
|
3
|
-
import { workflowStepDefSchema as workflowStepSchema, workflowDefSchema } from '../contract/index.js';
|
|
4
|
-
import { workflowFileSchema } from '../contract/index.js';
|
|
5
|
-
export { workflowStepSchema, workflowDefSchema, workflowFileSchema };
|
|
6
|
-
export type WorkflowStepDef = z.infer<typeof workflowStepSchema>;
|
|
7
|
-
export type WorkflowDoc = z.infer<typeof workflowFileSchema>;
|
|
8
|
-
export type WorkflowDef = z.infer<typeof workflowDefSchema>;
|
|
9
|
-
/** `skills: [a, b]` → agent steps, one per skill, each running `{{task}}`. */
|
|
10
|
-
export declare function skillsToSteps(skills: string[]): WorkflowStepDef[];
|
|
11
|
-
/** Resolve the steps/skills XOR into plain steps. */
|
|
12
|
-
export declare function normalizeWorkflowDoc(doc: WorkflowDoc): {
|
|
13
|
-
name: string;
|
|
14
|
-
description?: string;
|
|
15
|
-
steps: WorkflowStepDef[];
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* The inverse of `skillsToSteps`: when every step is a plain "apply this
|
|
19
|
-
* skill to the task" agent step, return the skill list — the workflow can be
|
|
20
|
-
* written in the portable compact form. Anything richer (checks, custom
|
|
21
|
-
* prompts, per-step models/accounts/tools, loops) returns null — the compact
|
|
22
|
-
* form carries skill names only, so any other field would be dropped on save.
|
|
23
|
-
*/
|
|
24
|
-
export declare function skillStackOf(steps: WorkflowStepDef[]): string[] | null;
|
|
25
|
-
export declare function stepKind(step: WorkflowStepDef): 'agent' | 'check';
|
|
26
|
-
/**
|
|
27
|
-
* Tell each chained agent step to complete its own goal before CEZ:DONE. An earlier step’s done
|
|
28
|
-
* report does not complete a later step’s work. Steps share the task and handoff journal.
|
|
29
|
-
*/
|
|
30
|
-
export declare function chainStepNote(steps: WorkflowStepDef[], index: number): string | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* Structural checks beyond the per-step schema: ids must be unique and every
|
|
33
|
-
* `onFail.retry` must reference an *earlier* step (loops only go backwards).
|
|
34
|
-
* Returns a human-readable problem, or null when the list is sound. Shared by
|
|
35
|
-
* the file loader and the inline-steps / save-workflow API routes (spec 008).
|
|
36
|
-
*/
|
|
37
|
-
export declare function stepsIssue(steps: WorkflowStepDef[]): string | null;
|
|
38
|
-
/** Tools an agent step gets when the workflow doesn't say otherwise. */
|
|
39
|
-
export declare const DEFAULT_ALLOWED_TOOLS: string[];
|
|
40
|
-
/** Extra tools unioned onto the default when a step does not set allowedTools. */
|
|
41
|
-
export declare const HARNESS_EXTRA_TOOLS: {
|
|
42
|
-
readonly [K in RunnerId]: readonly string[];
|
|
43
|
-
};
|
|
44
|
-
export declare function allowedToolsForStep(step: {
|
|
45
|
-
allowedTools?: string[] | undefined;
|
|
46
|
-
} | undefined, backend: AgentBackend | undefined): string[];
|
|
47
|
-
/** Tool lists as a workflow step and a worker identity store them. */
|
|
48
|
-
export type ToolGrantLists = {
|
|
49
|
-
allowedTools?: string[] | undefined;
|
|
50
|
-
bashAllowlist?: string[] | undefined;
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* The `ToolGrant` one step's session runs with, resolved once before the runner
|
|
54
|
-
* (hearsay-tools/cezarion#1810). An owned worker's pinned grants come from its parent at
|
|
55
|
-
* spawn and win over its step; otherwise the step's own list, or this runner's default
|
|
56
|
-
* when it sets none. Lists stay lists on disk; only the runner sees the kind.
|
|
57
|
-
*/
|
|
58
|
-
export declare function stepToolGrant(pinned: ToolGrantLists | undefined, step: ToolGrantLists | undefined, backend: AgentBackend | undefined): ToolGrant;
|
|
59
|
-
/** A grant's lists, for the settings the session's workers inherit (`narrowGrants`). */
|
|
60
|
-
export declare function toolGrantLists(grant: ToolGrant): ToolGrantLists;
|
|
61
|
-
/** One task step applying the selected skill to the user's task. */
|
|
62
|
-
export declare function skillTaskSteps(name: string): WorkflowStepDef[];
|
|
63
|
-
/** Wrap an inline chain as an ad-hoc workflow. */
|
|
64
|
-
export declare function plannedWorkflow(steps: WorkflowStepDef[]): WorkflowDef;
|
|
65
|
-
/** Validate the mutually exclusive skill/workflow flags before discovery. */
|
|
66
|
-
export declare function skillFlagIssue(flags: {
|
|
67
|
-
skill?: string | undefined;
|
|
68
|
-
workflow?: string | undefined;
|
|
69
|
-
}): string | undefined;
|
|
70
|
-
/**
|
|
71
|
-
* `--runner` and its permanent alias `--backend` (hearsay-tools/cezarion#632). Both may be given
|
|
72
|
-
* with one value; two different values are a usage error. The caller maps the result onto its
|
|
73
|
-
* own wire field (`runner` on the run API, `backend` on a worker spawn).
|
|
74
|
-
*/
|
|
75
|
-
export declare function runnerFlag(flags: {
|
|
76
|
-
runner?: string | undefined;
|
|
77
|
-
backend?: string | undefined;
|
|
78
|
-
}): {
|
|
79
|
-
runner?: string;
|
|
80
|
-
issue?: string;
|
|
81
|
-
};
|
|
82
|
-
/** The zero-config workflow: one agent step that just does the task. */
|
|
83
|
-
export declare const QUICK_TASK_WORKFLOW: WorkflowDef;
|
package/dist/workflows/types.js
DELETED
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import { workflowStepDefSchema as workflowStepSchema, workflowDefSchema } from '../contract/index.js';
|
|
2
|
-
import { workflowFileSchema } from '../contract/index.js';
|
|
3
|
-
export { workflowStepSchema, workflowDefSchema, workflowFileSchema };
|
|
4
|
-
/** `skills: [a, b]` → agent steps, one per skill, each running `{{task}}`. */
|
|
5
|
-
export function skillsToSteps(skills) {
|
|
6
|
-
const used = new Set();
|
|
7
|
-
return skills.map((skill) => {
|
|
8
|
-
let id = skill;
|
|
9
|
-
for (let n = 2; used.has(id); n++)
|
|
10
|
-
id = `${skill}-${n}`;
|
|
11
|
-
used.add(id);
|
|
12
|
-
return { id, name: skill, skill, prompt: '{{task}}' };
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
/** Resolve the steps/skills XOR into plain steps. */
|
|
16
|
-
export function normalizeWorkflowDoc(doc) {
|
|
17
|
-
return {
|
|
18
|
-
name: doc.name,
|
|
19
|
-
...(doc.description ? { description: doc.description } : {}),
|
|
20
|
-
steps: doc.steps ?? skillsToSteps(doc.skills ?? []),
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* The inverse of `skillsToSteps`: when every step is a plain "apply this
|
|
25
|
-
* skill to the task" agent step, return the skill list — the workflow can be
|
|
26
|
-
* written in the portable compact form. Anything richer (checks, custom
|
|
27
|
-
* prompts, per-step models/accounts/tools, loops) returns null — the compact
|
|
28
|
-
* form carries skill names only, so any other field would be dropped on save.
|
|
29
|
-
*/
|
|
30
|
-
export function skillStackOf(steps) {
|
|
31
|
-
const skills = [];
|
|
32
|
-
for (const s of steps) {
|
|
33
|
-
if (stepKind(s) !== 'agent' || !s.skill)
|
|
34
|
-
return null;
|
|
35
|
-
if (s.prompt !== undefined && s.prompt !== '{{task}}')
|
|
36
|
-
return null;
|
|
37
|
-
if (s.name !== undefined && s.name !== s.skill)
|
|
38
|
-
return null;
|
|
39
|
-
if (s.timeoutMs !== undefined || s.model || s.effort !== undefined || s.runner || s.agentProfile || s.allowedTools || s.bashAllowlist || s.onFail)
|
|
40
|
-
return null;
|
|
41
|
-
skills.push(s.skill);
|
|
42
|
-
}
|
|
43
|
-
return skills.length ? skills : null;
|
|
44
|
-
}
|
|
45
|
-
export function stepKind(step) {
|
|
46
|
-
return step.command ? 'check' : 'agent';
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Tell each chained agent step to complete its own goal before CEZ:DONE. An earlier step’s done
|
|
50
|
-
* report does not complete a later step’s work. Steps share the task and handoff journal.
|
|
51
|
-
*/
|
|
52
|
-
export function chainStepNote(steps, index) {
|
|
53
|
-
const step = steps[index];
|
|
54
|
-
if (!step || stepKind(step) !== 'agent')
|
|
55
|
-
return undefined;
|
|
56
|
-
const total = steps.filter((s) => stepKind(s) === 'agent').length;
|
|
57
|
-
if (total <= 1)
|
|
58
|
-
return undefined;
|
|
59
|
-
const position = steps.slice(0, index).filter((s) => stepKind(s) === 'agent').length + 1;
|
|
60
|
-
// `name` first: it is what the author called the step and what the GUI rail
|
|
61
|
-
// shows. A `skill` is only ever a support for the step's goal, so naming it
|
|
62
|
-
// as the goal would displace the task text the note sits above.
|
|
63
|
-
const label = step.name ? `"${step.name}"` : step.skill ? `the "${step.skill}" skill` : 'this step';
|
|
64
|
-
const sentences = [
|
|
65
|
-
`This run is a chain of ${total} agent steps; you are running step ${position} of ${total}.`,
|
|
66
|
-
`Your job in THIS step is ${label} — do its work in full.`,
|
|
67
|
-
];
|
|
68
|
-
// Only steps that HAVE a predecessor; on step 1 the premise would be false.
|
|
69
|
-
if (position > 1) {
|
|
70
|
-
sentences.push(`An earlier step in this same run may already have reported its own work done (in its ` +
|
|
71
|
-
`report, or in this run's handoff file); that does not mean step ${position}'s work is done.`);
|
|
72
|
-
}
|
|
73
|
-
sentences.push(`Signal done (call cezar_done, or end your message with a CEZ:DONE line when you have no cezar tools) only once step ${position}'s own goal is achieved, not just the run's overall task.`);
|
|
74
|
-
// hearsay-tools/cezarion#1620: the step completes only on that signal.
|
|
75
|
-
if (position < total)
|
|
76
|
-
sentences.push(`Cezar starts step ${position + 1} only after that signal; a turn that ends without it keeps step ${position} open.`);
|
|
77
|
-
return sentences.join(' ');
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Structural checks beyond the per-step schema: ids must be unique and every
|
|
81
|
-
* `onFail.retry` must reference an *earlier* step (loops only go backwards).
|
|
82
|
-
* Returns a human-readable problem, or null when the list is sound. Shared by
|
|
83
|
-
* the file loader and the inline-steps / save-workflow API routes (spec 008).
|
|
84
|
-
*/
|
|
85
|
-
export function stepsIssue(steps) {
|
|
86
|
-
const ids = steps.map((s) => s.id);
|
|
87
|
-
const dup = ids.find((id, i) => ids.indexOf(id) !== i);
|
|
88
|
-
if (dup)
|
|
89
|
-
return `duplicate step id "${dup}"`;
|
|
90
|
-
for (const [i, s] of steps.entries()) {
|
|
91
|
-
if (!s.onFail)
|
|
92
|
-
continue;
|
|
93
|
-
const target = ids.indexOf(s.onFail.retry);
|
|
94
|
-
if (target < 0 || target >= i) {
|
|
95
|
-
return `step "${s.id}": onFail.retry must reference an earlier step (got "${s.onFail.retry}")`;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
return null;
|
|
99
|
-
}
|
|
100
|
-
/** Tools an agent step gets when the workflow doesn't say otherwise. */
|
|
101
|
-
export const DEFAULT_ALLOWED_TOOLS = ['Read', 'Edit', 'Write', 'Grep', 'Glob', 'Bash'];
|
|
102
|
-
/** Extra tools unioned onto the default when a step does not set allowedTools. */
|
|
103
|
-
export const HARNESS_EXTRA_TOOLS = {
|
|
104
|
-
claude: [],
|
|
105
|
-
codex: [],
|
|
106
|
-
opencode: [],
|
|
107
|
-
// The trio still marks the default list (hearsay-tools/cezarion#75). pi itself gets no --tools
|
|
108
|
-
// allowlist for it (hearsay-tools/cezarion#1305): the default-tools extension activates these
|
|
109
|
-
// names with the built-ins, so MCP and other extension tools stay callable.
|
|
110
|
-
pi: ['Subagent', 'SubagentSupervisor', 'SubagentWait'],
|
|
111
|
-
cursor: [],
|
|
112
|
-
// R1 (rulings): find and ast_grep are gated behind settings that default off, and a --tools
|
|
113
|
-
// list naming an unavailable built-in exits 2, so they cannot be in the zero-config default.
|
|
114
|
-
omp: ['todo', 'lsp', 'ast_edit', 'task', 'wait'],
|
|
115
|
-
};
|
|
116
|
-
export function allowedToolsForStep(step, backend) {
|
|
117
|
-
if (step?.allowedTools)
|
|
118
|
-
return [...step.allowedTools];
|
|
119
|
-
const extras = extrasFor(backend);
|
|
120
|
-
return extras.length === 0 ? [...DEFAULT_ALLOWED_TOOLS] : [...DEFAULT_ALLOWED_TOOLS, ...extras];
|
|
121
|
-
}
|
|
122
|
-
function extrasFor(backend) {
|
|
123
|
-
if (backend === undefined || backend === 'claude-cli')
|
|
124
|
-
return HARNESS_EXTRA_TOOLS.claude;
|
|
125
|
-
return HARNESS_EXTRA_TOOLS[backend];
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* The `ToolGrant` one step's session runs with, resolved once before the runner
|
|
129
|
-
* (hearsay-tools/cezarion#1810). An owned worker's pinned grants come from its parent at
|
|
130
|
-
* spawn and win over its step; otherwise the step's own list, or this runner's default
|
|
131
|
-
* when it sets none. Lists stay lists on disk; only the runner sees the kind.
|
|
132
|
-
*/
|
|
133
|
-
export function stepToolGrant(pinned, step, backend) {
|
|
134
|
-
const source = pinned ?? step;
|
|
135
|
-
const bash = source?.bashAllowlist === undefined ? {} : { bashAllowlist: [...source.bashAllowlist] };
|
|
136
|
-
if (pinned)
|
|
137
|
-
return pinned.allowedTools === undefined ? { kind: 'unset', ...bash } : { kind: 'inherited', tools: [...pinned.allowedTools], ...bash };
|
|
138
|
-
if (step?.allowedTools)
|
|
139
|
-
return { kind: 'explicit', tools: [...step.allowedTools], ...bash };
|
|
140
|
-
return { kind: 'step-default', tools: allowedToolsForStep(undefined, backend), ...bash };
|
|
141
|
-
}
|
|
142
|
-
/** A grant's lists, for the settings the session's workers inherit (`narrowGrants`). */
|
|
143
|
-
export function toolGrantLists(grant) {
|
|
144
|
-
return {
|
|
145
|
-
...(grant.kind === 'unset' ? {} : { allowedTools: [...grant.tools] }),
|
|
146
|
-
...(grant.bashAllowlist === undefined ? {} : { bashAllowlist: [...grant.bashAllowlist] }),
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
/** One task step applying the selected skill to the user's task. */
|
|
150
|
-
export function skillTaskSteps(name) {
|
|
151
|
-
return [{ id: 'task', name, skill: name, prompt: '{{task}}' }];
|
|
152
|
-
}
|
|
153
|
-
/** Wrap an inline chain as an ad-hoc workflow. */
|
|
154
|
-
export function plannedWorkflow(steps) {
|
|
155
|
-
return { name: '(planned)', source: 'built-in', steps };
|
|
156
|
-
}
|
|
157
|
-
/** Validate the mutually exclusive skill/workflow flags before discovery. */
|
|
158
|
-
export function skillFlagIssue(flags) {
|
|
159
|
-
if (flags.skill !== undefined && flags.workflow !== undefined) {
|
|
160
|
-
return '--skill and --workflow cannot be used together';
|
|
161
|
-
}
|
|
162
|
-
if (flags.skill !== undefined && !flags.skill.trim())
|
|
163
|
-
return '--skill must name a skill';
|
|
164
|
-
return undefined;
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* `--runner` and its permanent alias `--backend` (hearsay-tools/cezarion#632). Both may be given
|
|
168
|
-
* with one value; two different values are a usage error. The caller maps the result onto its
|
|
169
|
-
* own wire field (`runner` on the run API, `backend` on a worker spawn).
|
|
170
|
-
*/
|
|
171
|
-
export function runnerFlag(flags) {
|
|
172
|
-
const { runner, backend } = flags;
|
|
173
|
-
if (runner !== undefined && backend !== undefined && runner !== backend) {
|
|
174
|
-
return { issue: `--runner ${runner} and --backend ${backend} name different runners; pass one --runner` };
|
|
175
|
-
}
|
|
176
|
-
const selected = runner ?? backend;
|
|
177
|
-
return selected === undefined ? {} : { runner: selected };
|
|
178
|
-
}
|
|
179
|
-
/** The zero-config workflow: one agent step that just does the task. */
|
|
180
|
-
export const QUICK_TASK_WORKFLOW = {
|
|
181
|
-
name: 'quick-task',
|
|
182
|
-
description: 'One agent run on your task — no ceremony.',
|
|
183
|
-
source: 'built-in',
|
|
184
|
-
steps: [
|
|
185
|
-
{
|
|
186
|
-
id: 'task',
|
|
187
|
-
name: 'Do the task',
|
|
188
|
-
prompt: '{{task}}',
|
|
189
|
-
},
|
|
190
|
-
],
|
|
191
|
-
};
|
|
192
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/workflows/types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,IAAI,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AACxH,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,CAAC;AAKrE,8EAA8E;AAC9E,MAAM,UAAU,aAAa,CAAC,MAAgB;IAC5C,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QAC1B,IAAI,EAAE,GAAG,KAAK,CAAC;QACf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;YAAE,EAAE,GAAG,GAAG,KAAK,IAAI,CAAC,EAAE,CAAC;QACxD,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACb,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;IACxD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,qDAAqD;AACrD,MAAM,UAAU,oBAAoB,CAAC,GAAgB;IAKnD,OAAO;QACL,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,GAA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AAS,IAAI,KAAK,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC9D,OAAO,gDAAgD,CAAC;IAC1D,CAAC;IACD,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE;QAAE,OAAO,2BAA2B,CAAC;IACzF,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,UAAU,CAAC,KAAoE;IAC7F,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAClC,IAAI,MAAM,KAAK,SAAS,IAAI,OAAO,KAAK,SAAS,IAAI,MAAM,KAAK,OAAO,EAAE,CAAC;QACxE,OAAO,EAAE,KAAK,EAAE,YAAY,MAAM,kBAAkB,OAAO,4CAA4C,EAAE,CAAC;IAC5G,CAAC;IACD,MAAM,QAAQ,GAAG,MAAM,IAAI,OAAO,CAAC;IACnC,OAAO,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;AAC5D,CAAC;AAED,wEAAwE;AACxE,MAAM,CAAC,MAAM,mBAAmB,GAAgB;IAC9C,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,2CAA2C;IACxD,MAAM,EAAE,UAAU;IAClB,KAAK,EAAE;QACL;YACE,EAAE,EAAE,MAAM;YACV,IAAI,EAAE,aAAa;YACnB,MAAM,EAAE,UAAU;SACnB;KACF;CACF,CAAC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import type { CezarWaitRequestInput, CiWait, OpenWait, PrWaitEntry, ProcessWaitEntry, RunRecord, TimerWaitEntry, Wait, WorkerWaitEntry } from '../contract/index.js';
|
|
2
|
-
/**
|
|
3
|
-
* Pure wait-list readers and agent-facing text. RunManager owns registration, resolution and
|
|
4
|
-
* delivery.
|
|
5
|
-
*/
|
|
6
|
-
/** What a monitoring timer (the monitoring line or Claude's `ScheduleWakeup`) says when it fires. */
|
|
7
|
-
export declare const MONITORING_WAKE_NUDGE = "Re-check the downstream work you were monitoring. Continue toward the task goal. When the goal is complete and verified, call cezar_done. If the watched work is still pending, call cezar_wait again. If you need the user, call cezar_ask.";
|
|
8
|
-
/** hearsay-tools/cezarion#1234: the same wake for a session without cezar tools, whose prompt
|
|
9
|
-
* taught the lifecycle markers. */
|
|
10
|
-
export declare const MONITORING_WAKE_NUDGE_MARKERS = "Re-check the downstream work you were monitoring. Continue toward the task goal. When the watched work is finished and the task goal is complete, end your final message with CEZ:DONE. If the watched work is still pending, end with CEZ:MONITORING. Never yield markerless for a monitoring wrap-up. If you genuinely need user input, follow the normal question path instead.";
|
|
11
|
-
/** Waits still waiting for their event, in list order. */
|
|
12
|
-
export declare function openWaits(run: Pick<RunRecord, 'waits'>): Wait[];
|
|
13
|
-
/** Waits whose event fired and whose result is not delivered yet, oldest `resolvedAt` first:
|
|
14
|
-
* the order a wake delivers them in. */
|
|
15
|
-
export declare function resolvedWaits(run: Pick<RunRecord, 'waits'>): Wait[];
|
|
16
|
-
/** Monitoring timers: the timers Cezar opens for the monitoring line and `ScheduleWakeup`. */
|
|
17
|
-
export declare function isMonitoringTimer(wait: Wait): boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Timer and process waits count against the automatic-wake budget, including a process used as a
|
|
20
|
-
* delayed timer.
|
|
21
|
-
*/
|
|
22
|
-
export declare function chargesBudget(wait: Wait): boolean;
|
|
23
|
-
/** Cezar's own human wait (`no-wait`, `budget`): it stands in for a wait the agent never registered
|
|
24
|
-
* and is replaced by the agent's own (hearsay-tools/cezarion#1234), so the agent is never told of
|
|
25
|
-
* it as one of its waits. */
|
|
26
|
-
export declare function isCezarHumanWait(wait: Wait): boolean;
|
|
27
|
-
/** One PR, however the agent spelled it: case-insensitive, trailing slash ignored. */
|
|
28
|
-
export declare function normalizePrUrl(url: string): string;
|
|
29
|
-
/** The open waits as both tools list them back to the agent. A human wait has no deadline, and
|
|
30
|
-
* Cezar's own deadline-less worker wait is not the agent's to list (hearsay-tools/cezarion#1301). */
|
|
31
|
-
export declare function openWaitList(waits: readonly Wait[]): OpenWait[];
|
|
32
|
-
/**
|
|
33
|
-
* The open wait a registration repeats, if any. PR: the same PR, target and conflict switch, whatever
|
|
34
|
-
* its timeout (hearsay-tools/cezarion#1425). Timer: the
|
|
35
|
-
* same seconds and note, registered in the same turn (a later turn asking again means a new check).
|
|
36
|
-
* Process: the same PID, start token and resolved exit file in `context`, whatever its timeout or
|
|
37
|
-
* note (hearsay-tools/cezarion#1446).
|
|
38
|
-
*/
|
|
39
|
-
export declare function identicalWait(waits: readonly Wait[], request: CezarWaitRequestInput, turnId: string, context?: {
|
|
40
|
-
startToken?: string;
|
|
41
|
-
exitFile?: string;
|
|
42
|
-
}): PrWaitEntry | TimerWaitEntry | ProcessWaitEntry | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* The open worker wait a registration repeats (hearsay-tools/cezarion#1235): the same target kind,
|
|
45
|
-
* the same ids in any order and the same mode (`any` when omitted), whatever its timeout.
|
|
46
|
-
*/
|
|
47
|
-
export declare function identicalWorkerWait(waits: readonly Wait[], target: {
|
|
48
|
-
workerIds?: readonly string[];
|
|
49
|
-
requestIds?: readonly string[] | undefined;
|
|
50
|
-
mode?: string | undefined;
|
|
51
|
-
}): WorkerWaitEntry | undefined;
|
|
52
|
-
/** The agent input that delivers a resolved wait's result: the wait's own id, or for an upgraded
|
|
53
|
-
* worker wait whose wake was already queued, that input (`wakeInputId`). */
|
|
54
|
-
export declare function waitInputId(wait: Wait): string;
|
|
55
|
-
/** The CI watcher still speaks the schema-3 `CiWait`; an open entry is a parked one to it. */
|
|
56
|
-
export declare function ciWatchRequest(wait: PrWaitEntry): CiWait;
|
|
57
|
-
/** The lifecycle input a resolved wait delivers. Its id is the wait's, so duplicates keep it.
|
|
58
|
-
* `workerStatus` names a worker's current status for a worker wait's text. */
|
|
59
|
-
export declare function waitResultText(wait: Wait, { tools, workerStatus }?: {
|
|
60
|
-
tools: boolean;
|
|
61
|
-
workerStatus?: (workerId: string) => string;
|
|
62
|
-
}): string;
|
|
63
|
-
/** One wait as the footer names it. A worker's park notice names its waits the same way
|
|
64
|
-
* (hearsay-tools/cezarion#1327). */
|
|
65
|
-
export declare function describeWait(wait: Wait): string;
|
|
66
|
-
/** The footer a delivered turn ends with: every wait still open, or undefined when none is. The
|
|
67
|
-
* user's reply settles a question and a question the user saw cannot be cancelled, so cancel is
|
|
68
|
-
* offered only for CI, worker and process waits and timers (hearsay-tools/cezarion#1234), and only
|
|
69
|
-
* when the session has cezar tools (hearsay-tools/cezarion#1270). */
|
|
70
|
-
export declare function openWaitsFooter(waits: readonly Wait[], { tools }?: {
|
|
71
|
-
tools: boolean;
|
|
72
|
-
}): string | undefined;
|
|
73
|
-
/** An open or resolved PR wait: it holds conversation input for its own wake (#476). */
|
|
74
|
-
export declare function hasPrWait(run: Pick<RunRecord, 'waits'>): boolean;
|