@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,143 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Stuck-destroy benchmark (hearsay-tools/cezarion#879): what permanently stuck worker destroys
|
|
3
|
-
* cost an otherwise idle cezar. Run it unchanged before and after a change to the cleanup loops.
|
|
4
|
-
*
|
|
5
|
-
* npm run bench:stuck-destroys -w @wjarka/cezarion # 20 workers, 10 minutes
|
|
6
|
-
* node --import tsx packages/cezar/scripts/benchmark-stuck-destroys.ts --workers 0 --minutes 10
|
|
7
|
-
*
|
|
8
|
-
* Flags: --workers (20) --minutes (10) --out (a JSON file for the result row).
|
|
9
|
-
*
|
|
10
|
-
* Method:
|
|
11
|
-
* - One process builds what `serve` builds for a project: `RunStore` (keepLive), `RunManager` and
|
|
12
|
-
* `DelegationService`, on a temp Git repo, with `CEZ_DRY_RUN=1` and production cadence (no
|
|
13
|
-
* timer is overridden).
|
|
14
|
-
* - Each worker is settled the way a finished worker is: a complete execution checkpoint, status
|
|
15
|
-
* `review`, a real owned worktree and a local scratch dir. A `sleep` child holds each of the
|
|
16
|
-
* two, so neither can ever be removed: the destroy stays incomplete and the scratch is retained.
|
|
17
|
-
* - Every worker is destroyed once through the human route, as Clean up does. Only then does the
|
|
18
|
-
* window start, so the measurement is the retry and reprobe loops alone.
|
|
19
|
-
* - CPU is this process (`process.cpuUsage`, every thread) plus the children it reaped during the
|
|
20
|
-
* window (`/proc/self/stat` cutime/cstime: the git processes the loops spawn). The holders are
|
|
21
|
-
* reaped only after the window. Event-loop delay is what an HTTP request would wait.
|
|
22
|
-
* - Compare N workers against `--workers 0`; the difference is what the stuck workers add.
|
|
23
|
-
*/
|
|
24
|
-
import { execFileSync, spawn, type ChildProcess } from 'node:child_process';
|
|
25
|
-
import { randomUUID } from 'node:crypto';
|
|
26
|
-
import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
|
|
27
|
-
import { cpus, tmpdir } from 'node:os';
|
|
28
|
-
import { join } from 'node:path';
|
|
29
|
-
import { monitorEventLoopDelay, performance } from 'node:perf_hooks';
|
|
30
|
-
import { setTimeout as sleep } from 'node:timers/promises';
|
|
31
|
-
import { parseArgs } from 'node:util';
|
|
32
|
-
import type { RunStore as RunStoreInstance } from '../src/runs/store.ts';
|
|
33
|
-
import type { RunManager as RunManagerInstance } from '../src/workflows/run.ts';
|
|
34
|
-
|
|
35
|
-
process.env.CEZ_DRY_RUN = '1';
|
|
36
|
-
process.env.CEZ_DELEGATION = '1';
|
|
37
|
-
process.env.CEZ_AUTONAME = '0';
|
|
38
|
-
// The repo's own sandbox for ~/.cezar, so a benchmark never touches the user's registry; one this
|
|
39
|
-
// run creates is removed with the rest of its teardown.
|
|
40
|
-
const ownHome = process.env.CEZ_HOME ? undefined : mkdtempSync(join(tmpdir(), 'cez-bench-home-'));
|
|
41
|
-
if (ownHome) process.env.CEZ_HOME = ownHome;
|
|
42
|
-
|
|
43
|
-
const { values } = parseArgs({ options: {
|
|
44
|
-
workers: { type: 'string', default: '20' },
|
|
45
|
-
minutes: { type: 'string', default: '10' },
|
|
46
|
-
out: { type: 'string' },
|
|
47
|
-
} });
|
|
48
|
-
const workers = Number(values.workers), minutes = Number(values.minutes);
|
|
49
|
-
if (!Number.isInteger(workers) || workers < 0 || !(minutes > 0)) throw new Error('--workers must be a whole number >= 0 and --minutes > 0');
|
|
50
|
-
|
|
51
|
-
const { RunStore } = await import('../src/runs/store.ts');
|
|
52
|
-
const { RunManager } = await import('../src/workflows/run.ts');
|
|
53
|
-
const { DelegationService } = await import('../src/delegation/service.ts');
|
|
54
|
-
const { planOwnedWorkspace, ensureOwnedWorkspace } = await import('../src/delegation/workspace.ts');
|
|
55
|
-
const { WorkspaceSemaphore } = await import('../src/workspace/semaphore.ts');
|
|
56
|
-
const { agentTmpDir } = await import('../src/runs/agent-tmpdir.ts');
|
|
57
|
-
|
|
58
|
-
/** Clock ticks of this process's reaped children (`cutime + cstime`), in ms; 0 off Linux. */
|
|
59
|
-
function childrenCpuMs(): number {
|
|
60
|
-
if (process.platform !== 'linux') return 0;
|
|
61
|
-
const stat = readFileSync('/proc/self/stat', 'utf8');
|
|
62
|
-
const fields = stat.slice(stat.lastIndexOf(')') + 2).split(' ');
|
|
63
|
-
// After the comm field, cutime and cstime are fields 16 and 17 of stat(5), i.e. index 13 and 14 here.
|
|
64
|
-
const ticks = Number(fields[13]) + Number(fields[14]);
|
|
65
|
-
const hz = Number(execFileSync('getconf', ['CLK_TCK'], { encoding: 'utf8' }).trim()) || 100;
|
|
66
|
-
return ticks * 1000 / hz;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
const git = (cwd: string, ...args: string[]) => execFileSync('git', args, { cwd, encoding: 'utf8' }).trim();
|
|
70
|
-
const root = mkdtempSync(join(tmpdir(), 'cez-bench-stuck-'));
|
|
71
|
-
git(root, 'init', '-q', '-b', 'main');
|
|
72
|
-
git(root, 'config', 'gc.auto', '0');
|
|
73
|
-
git(root, 'config', 'maintenance.auto', 'false');
|
|
74
|
-
git(root, '-c', 'user.name=bench', '-c', 'user.email=bench@local', 'commit', '--allow-empty', '-qm', 'base');
|
|
75
|
-
const sha = git(root, 'rev-parse', 'HEAD');
|
|
76
|
-
const dataDir = join(root, '.ai/cezar');
|
|
77
|
-
|
|
78
|
-
// Teardown runs however the run ends, so a failed setup, destroy or measurement leaves no
|
|
79
|
-
// `sleep` holder and no temporary repository behind.
|
|
80
|
-
const holders: ChildProcess[] = [];
|
|
81
|
-
let store: RunStoreInstance | undefined, manager: RunManagerInstance | undefined, detach: (() => void) | undefined;
|
|
82
|
-
try {
|
|
83
|
-
store = RunStore.open(dataDir, { keepLive: true });
|
|
84
|
-
manager = new RunManager(store, root, { semaphore: new WorkspaceSemaphore({ initial: { maxParallel: 1 } }) });
|
|
85
|
-
const service = new DelegationService();
|
|
86
|
-
detach = service.registerProject({ id: 'bench', root, store, manager });
|
|
87
|
-
const parent = store.createRun({ title: 'parent', task: 'parent', workflow: 'quick-task', steps: [] });
|
|
88
|
-
store.updateRun(parent.id, { status: 'waiting', delegation: { role: 'root', permissions: ['spawn'], receipts: [] } });
|
|
89
|
-
|
|
90
|
-
const hold = (cwd: string) => { holders.push(spawn('sleep', ['86400'], { cwd, stdio: 'ignore' })); };
|
|
91
|
-
const ids: string[] = [];
|
|
92
|
-
for (let i = 0; i < workers; i++) {
|
|
93
|
-
const id = randomUUID();
|
|
94
|
-
const workspace = await planOwnedWorkspace(root, id, sha);
|
|
95
|
-
store.createOwnedRun({ title: `worker ${i}`, task: 'stuck', workflow: 'quick-task', runner: 'claude', steps: [{ id: 'task', name: 'Task', kind: 'agent' }] },
|
|
96
|
-
parent.id, randomUUID(), { role: 'worker', permissions: [], parentRunId: parent.id, workspace }, 'a'.repeat(64));
|
|
97
|
-
const generation = store.commitWorkerExecutionStart(id);
|
|
98
|
-
const created = await ensureOwnedWorkspace(root, store.getRun(id)!);
|
|
99
|
-
store.updateRun(id, { status: 'review', worktreePath: created.path, branch: created.branch });
|
|
100
|
-
if (!store.commitWorkerExecutionComplete(id, generation)) throw new Error(`worker ${id} did not complete`);
|
|
101
|
-
const scratch = agentTmpDir(dataDir, id);
|
|
102
|
-
mkdirSync(scratch, { recursive: true });
|
|
103
|
-
hold(created.path); hold(scratch);
|
|
104
|
-
ids.push(id);
|
|
105
|
-
}
|
|
106
|
-
// What boot does after recovery: arm pending destroys and the scratch reprobes.
|
|
107
|
-
service.armDestroyRetries('bench');
|
|
108
|
-
for (const id of ids) {
|
|
109
|
-
const result = await service.destroyForHuman('bench', id).catch((error: Error) => ({ state: 'error', error: error.message }));
|
|
110
|
-
if (result.state === 'complete') throw new Error(`worker ${id} was not held: its destroy completed`);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
const delay = monitorEventLoopDelay({ resolution: 10 });
|
|
114
|
-
delay.enable();
|
|
115
|
-
const cpu0 = process.cpuUsage(), children0 = childrenCpuMs(), wall0 = performance.now();
|
|
116
|
-
await sleep(minutes * 60_000);
|
|
117
|
-
const cpu = process.cpuUsage(cpu0), children = childrenCpuMs() - children0, wall = performance.now() - wall0;
|
|
118
|
-
delay.disable();
|
|
119
|
-
|
|
120
|
-
const opened = store;
|
|
121
|
-
const pending = ids.filter(id => { const run = opened.getRun(id); return run?.delegation?.role === 'worker' && run.delegation.destroy?.phase !== 'complete'; }).length;
|
|
122
|
-
const row = {
|
|
123
|
-
workers, minutes, pendingDestroys: pending,
|
|
124
|
-
userMs: Math.round(cpu.user / 1000), systemMs: Math.round(cpu.system / 1000), childrenMs: Math.round(children),
|
|
125
|
-
cpuPercent: Number(((cpu.user + cpu.system) / 1000 / wall * 100).toFixed(2)),
|
|
126
|
-
cpuWithChildrenPercent: Number((((cpu.user + cpu.system) / 1000 + children) / wall * 100).toFixed(2)),
|
|
127
|
-
loopDelayP99Ms: Number((delay.percentile(99) / 1e6).toFixed(1)), loopDelayMaxMs: Number((delay.max / 1e6).toFixed(1)),
|
|
128
|
-
cores: cpus().length, node: process.version,
|
|
129
|
-
};
|
|
130
|
-
console.log('| workers | minutes | pending | user ms | system ms | children ms | CPU % | CPU % incl. children | loop p99 ms | loop max ms |');
|
|
131
|
-
console.log('| ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |');
|
|
132
|
-
console.log(`| ${row.workers} | ${row.minutes} | ${row.pendingDestroys} | ${row.userMs} | ${row.systemMs} | ${row.childrenMs} | ${row.cpuPercent} | ${row.cpuWithChildrenPercent} | ${row.loopDelayP99Ms} | ${row.loopDelayMaxMs} |`);
|
|
133
|
-
if (values.out) writeFileSync(values.out, `${JSON.stringify(row, null, 2)}\n`);
|
|
134
|
-
|
|
135
|
-
} finally {
|
|
136
|
-
for (const child of holders) child.kill('SIGKILL');
|
|
137
|
-
detach?.();
|
|
138
|
-
manager?.dispose();
|
|
139
|
-
store?.close();
|
|
140
|
-
rmSync(root, { recursive: true, force: true });
|
|
141
|
-
if (ownHome) rmSync(ownHome, { recursive: true, force: true });
|
|
142
|
-
}
|
|
143
|
-
process.exit(0);
|
package/scripts/check-pack.mjs
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// Tarball bundle check (`npm run check:pack`, last leg of `npm run build`):
|
|
3
|
-
// fail loudly when the published package would ship without the built UI —
|
|
4
|
-
// phase R1 of the cockpit redesign once published a tarball with no cockpit
|
|
5
|
-
// in it, and this pins that bug class before every publish (prepublishOnly →
|
|
6
|
-
// build → check:pack).
|
|
7
|
-
//
|
|
8
|
-
// Asks npm itself what it would pack (`npm pack --dry-run --json`) and hands
|
|
9
|
-
// the file list to the pure, unit-tested decision in src/pack-check.ts.
|
|
10
|
-
// Imports from dist/, so it must run AFTER `tsc` — `npm run build` orders
|
|
11
|
-
// tsc → build:web → check:pack, which also guarantees web/dist exists in a
|
|
12
|
-
// fresh checkout by the time the check looks for it.
|
|
13
|
-
|
|
14
|
-
import { execFileSync } from 'node:child_process';
|
|
15
|
-
import path from 'node:path';
|
|
16
|
-
import { fileURLToPath } from 'node:url';
|
|
17
|
-
import { findPackGaps } from '../dist/pack-check.js';
|
|
18
|
-
|
|
19
|
-
const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
20
|
-
|
|
21
|
-
// Under `npm run`, npm_execpath is npm's own cli.js — running it through
|
|
22
|
-
// process.execPath works on every platform (no .cmd shim needed on Windows).
|
|
23
|
-
// pnpm 12 sets npm_execpath to a native executable; these operations need npm.
|
|
24
|
-
const npmExecpath = /(?:^|[\\/])npm-cli\.js$/.test(process.env.npm_execpath ?? '')
|
|
25
|
-
? process.env.npm_execpath : undefined;
|
|
26
|
-
const packArgs = ['pack', '--dry-run', '--json'];
|
|
27
|
-
const npmCli = process.platform === 'win32' ? 'npm.cmd' : 'npm';
|
|
28
|
-
const stdout = npmExecpath
|
|
29
|
-
? execFileSync(process.execPath, [npmExecpath, ...packArgs], { cwd: repoRoot, encoding: 'utf8', maxBuffer: 64 * 1024 * 1024 })
|
|
30
|
-
: execFileSync(npmCli, packArgs, { cwd: repoRoot, encoding: 'utf8', maxBuffer: 64 * 1024 * 1024, shell: process.platform === 'win32' });
|
|
31
|
-
|
|
32
|
-
/** @type {{ files?: { path: string }[] }[]} */
|
|
33
|
-
const reports = JSON.parse(stdout);
|
|
34
|
-
const files = (reports[0]?.files ?? []).map((f) => f.path);
|
|
35
|
-
if (files.length === 0) {
|
|
36
|
-
console.error('check:pack: `npm pack --dry-run --json` reported no files — refusing to publish an empty package');
|
|
37
|
-
process.exit(1);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const gaps = findPackGaps(files);
|
|
41
|
-
if (gaps.length > 0) {
|
|
42
|
-
console.error('check:pack: the npm tarball would ship a broken cockpit:');
|
|
43
|
-
for (const gap of gaps) console.error(` - ${gap}`);
|
|
44
|
-
process.exit(1);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const uiFiles = files.filter((f) => f.startsWith('web/dist/')).length;
|
|
48
|
-
console.log(`check:pack ok — ${files.length} files, ${uiFiles} under web/dist (shell + assets present)`);
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bundle private runtime contract code and declarations into the published service dist, then
|
|
3
|
-
* rewrite emitted root and subpath references. Keep source imports unchanged. Remove this step
|
|
4
|
-
* when private runtime resolution is no longer needed.
|
|
5
|
-
*
|
|
6
|
-
* Every subpath repoints to one bundle of `packages/contract/src/index.ts`, so it exports only
|
|
7
|
-
* the names that index re-exports. A module the index reaches through a named re-export (`ask.ts`
|
|
8
|
-
* names a few of `ask-schema.ts`'s) keeps only those names in the bundle. The build fails when an
|
|
9
|
-
* emitted import names a contract value the bundle lacks (hearsay-tools/cezarion#1431).
|
|
10
|
-
*/
|
|
11
|
-
import { execFileSync } from 'node:child_process';
|
|
12
|
-
import { createRequire } from 'node:module';
|
|
13
|
-
import { existsSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
|
|
14
|
-
import { basename, dirname, join, relative, resolve } from 'node:path';
|
|
15
|
-
import { fileURLToPath } from 'node:url';
|
|
16
|
-
import { build } from 'esbuild';
|
|
17
|
-
|
|
18
|
-
const here = dirname(fileURLToPath(import.meta.url));
|
|
19
|
-
const dist = process.argv[2] ? resolve(process.argv[2]) : join(here, '..', 'dist');
|
|
20
|
-
const contractRoot = join(here, '..', '..', 'contract');
|
|
21
|
-
const entry = join(contractRoot, 'src', 'index.ts');
|
|
22
|
-
const outdir = join(dist, 'contract');
|
|
23
|
-
// The bare name and every module subpath (`@open-mercato/cezar-contract/runs`, hearsay-tools/cezarion#1237).
|
|
24
|
-
const SPEC = /(['"])@open-mercato\/cezar-contract(?:\/[^'"]*)?\1/g;
|
|
25
|
-
const CONTRACT = /^@open-mercato\/cezar-contract(?:\/[^'"]*)?$/;
|
|
26
|
-
|
|
27
|
-
/** Emitted files that name the package — the copy happens only if it is really used. */
|
|
28
|
-
const referrers = [];
|
|
29
|
-
const scan = (dir) => {
|
|
30
|
-
for (const entry of readdirSync(dir, { withFileTypes: true })) {
|
|
31
|
-
const p = join(dir, entry.name);
|
|
32
|
-
if (entry.isDirectory()) {
|
|
33
|
-
if (p !== outdir) scan(p);
|
|
34
|
-
} else if (/\.(js|d\.ts|js\.map)$/.test(entry.name)) {
|
|
35
|
-
SPEC.lastIndex = 0;
|
|
36
|
-
if (SPEC.test(readFileSync(p, 'utf8'))) referrers.push(p);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
scan(dist);
|
|
41
|
-
|
|
42
|
-
rmSync(outdir, { recursive: true, force: true });
|
|
43
|
-
if (referrers.length === 0) {
|
|
44
|
-
console.log('inline-contract ok — nothing in dist references the contract, nothing bundled');
|
|
45
|
-
process.exit(0);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// `zod` stays external: it is a real dependency of this package, so npm resolves it normally and
|
|
49
|
-
// the tarball does not carry a second copy.
|
|
50
|
-
const bundled = await build({
|
|
51
|
-
metafile: true,
|
|
52
|
-
entryPoints: [entry],
|
|
53
|
-
outfile: join(outdir, 'index.js'),
|
|
54
|
-
bundle: true,
|
|
55
|
-
format: 'esm',
|
|
56
|
-
platform: 'neutral',
|
|
57
|
-
target: 'es2022',
|
|
58
|
-
external: ['zod'],
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
// A wildcard re-export has no named import for the linker below to validate. Check its
|
|
62
|
-
// runtime export set before rewriting it: otherwise a missing module silently becomes the
|
|
63
|
-
// root bundle's unrelated exports (hearsay-tools/cezarion#1813).
|
|
64
|
-
const rootExports = new Set(Object.values(bundled.metafile.outputs).flatMap((output) => output.exports));
|
|
65
|
-
for (const file of referrers.filter((name) => name.endsWith('.js'))) {
|
|
66
|
-
for (const match of readFileSync(file, 'utf8').matchAll(/export\s+\*\s+from\s+['"](@open-mercato\/cezar-contract\/([^'"]+))['"]/g)) {
|
|
67
|
-
const source = join(contractRoot, 'src', `${match[2]}.ts`);
|
|
68
|
-
const original = await build({
|
|
69
|
-
entryPoints: [source], bundle: true, write: false, metafile: true,
|
|
70
|
-
format: 'esm', platform: 'neutral', external: ['zod'],
|
|
71
|
-
});
|
|
72
|
-
const missing = Object.values(original.metafile.outputs).flatMap((output) => output.exports)
|
|
73
|
-
.filter((name) => !rootExports.has(name));
|
|
74
|
-
if (missing.length) {
|
|
75
|
-
console.error(`inline-contract: ${relative(dist, file)} wildcard re-export of "${match[1]}" loses root exports: ${missing.join(', ')}`);
|
|
76
|
-
process.exit(1);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// Link every emitted importer against the bundle, as Node does when the CLI starts, before
|
|
82
|
-
// anything is repointed. Each specifier loads as a module of its own that re-exports the bundle,
|
|
83
|
-
// so esbuild's message names the subpath. Every other import stays external: only contract
|
|
84
|
-
// names are checked. `import-is-undefined` covers a namespace member the bundle lacks.
|
|
85
|
-
const bundle = join(outdir, 'index.js');
|
|
86
|
-
const importers = referrers.filter((p) => p.endsWith('.js'));
|
|
87
|
-
const gaps = importers.length === 0 ? [] : await build({
|
|
88
|
-
entryPoints: importers,
|
|
89
|
-
absWorkingDir: dist,
|
|
90
|
-
outdir: join(dist, '.inline-contract-check'),
|
|
91
|
-
write: false,
|
|
92
|
-
bundle: true,
|
|
93
|
-
format: 'esm',
|
|
94
|
-
platform: 'neutral',
|
|
95
|
-
logLevel: 'silent',
|
|
96
|
-
logOverride: { 'import-is-undefined': 'error' },
|
|
97
|
-
plugins: [{
|
|
98
|
-
name: 'contract-exports',
|
|
99
|
-
setup(check) {
|
|
100
|
-
check.onResolve({ filter: /.*/ }, (args) => {
|
|
101
|
-
if (args.kind === 'entry-point') return undefined;
|
|
102
|
-
if (CONTRACT.test(args.path)) return { path: args.path, namespace: 'contract' };
|
|
103
|
-
if (args.namespace === 'contract') return { path: bundle };
|
|
104
|
-
return { external: true };
|
|
105
|
-
});
|
|
106
|
-
check.onLoad({ filter: /.*/, namespace: 'contract' }, () => ({ contents: `export * from ${JSON.stringify(bundle)};` }));
|
|
107
|
-
},
|
|
108
|
-
}],
|
|
109
|
-
}).then(() => [], (error) => {
|
|
110
|
-
if (!Array.isArray(error?.errors)) throw error;
|
|
111
|
-
return error.errors;
|
|
112
|
-
});
|
|
113
|
-
if (gaps.length > 0) {
|
|
114
|
-
for (const { text, location } of gaps) {
|
|
115
|
-
const where = location ? `${join(basename(dist), location.file)}:${location.line}` : basename(dist);
|
|
116
|
-
const name = /import "([^"]+)"/i.exec(text)?.[1];
|
|
117
|
-
const subpath = /"contract:([^"]+)"/.exec(text)?.[1];
|
|
118
|
-
console.error(name && subpath
|
|
119
|
-
? `inline-contract: ${where} imports "${name}" from "${subpath}", which dist/contract/index.js does not export`
|
|
120
|
-
: `inline-contract: ${where}: ${text}`);
|
|
121
|
-
}
|
|
122
|
-
console.error('inline-contract: the bundle holds only the names packages/contract/src/index.ts re-exports. '
|
|
123
|
-
+ 'Re-export each name there: an `export *` of its module, or the named re-export that reaches it.');
|
|
124
|
-
process.exit(1);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
// `tsc` is located through the module graph rather than a guessed `node_modules` path, because
|
|
128
|
-
// `typescript` is a devDependency of THIS package and may sit here or be hoisted to the workspace
|
|
129
|
-
// root. Via the manifest's own `bin` entry: TypeScript 7's `exports` map does not publish
|
|
130
|
-
// `./bin/tsc`, so resolving that subpath directly is ERR_PACKAGE_PATH_NOT_EXPORTED.
|
|
131
|
-
const require_ = createRequire(import.meta.url);
|
|
132
|
-
const tsManifest = require_.resolve('typescript/package.json');
|
|
133
|
-
const tscBin = join(dirname(tsManifest), require_(tsManifest).bin.tsc);
|
|
134
|
-
|
|
135
|
-
// The declarations for the bundle above. `tsc` mirrors `src/**` into `outdir`, so `index.d.ts`
|
|
136
|
-
// lands beside `index.js` and its relative siblings (`./health.js` → `./health.d.ts`) resolve as
|
|
137
|
-
// TypeScript expects. Those siblings have no runtime twin, which is correct: the bundle is
|
|
138
|
-
// self-contained and nothing imports those paths at runtime.
|
|
139
|
-
execFileSync(
|
|
140
|
-
process.execPath,
|
|
141
|
-
[
|
|
142
|
-
tscBin,
|
|
143
|
-
'--project',
|
|
144
|
-
join(contractRoot, 'tsconfig.json'),
|
|
145
|
-
'--emitDeclarationOnly',
|
|
146
|
-
'--declarationMap',
|
|
147
|
-
'false',
|
|
148
|
-
'--sourceMap',
|
|
149
|
-
'false',
|
|
150
|
-
'--outDir',
|
|
151
|
-
outdir,
|
|
152
|
-
],
|
|
153
|
-
{ stdio: 'inherit' },
|
|
154
|
-
);
|
|
155
|
-
if (!existsSync(join(outdir, 'index.d.ts'))) {
|
|
156
|
-
console.error('inline-contract: tsc emitted no index.d.ts — the bundled contract would ship untyped');
|
|
157
|
-
process.exit(1);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
for (const p of referrers) {
|
|
161
|
-
let rel = relative(dirname(p), join(outdir, 'index.js')).replaceAll('\\', '/');
|
|
162
|
-
if (!rel.startsWith('.')) rel = `./${rel}`;
|
|
163
|
-
writeFileSync(p, readFileSync(p, 'utf8').replace(SPEC, `'${rel}'`), 'utf8');
|
|
164
|
-
}
|
|
165
|
-
console.log(`inline-contract ok — contract bundled with declarations, ${referrers.length} file(s) repointed`);
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// `npm run install-as-command` (+ `:global` and the `uninstall-as-command`
|
|
3
|
-
// counterpart): build this checkout and put a global `cezarion`/`cez`
|
|
4
|
-
// command on PATH pointing at THIS working tree — the local-dev equivalent of
|
|
5
|
-
// `npx cezarion`, with no publish and no `npx` download. Spec 013.
|
|
6
|
-
//
|
|
7
|
-
// --mode link build → `npm link` (live; `npm run build` refreshes it)
|
|
8
|
-
// --mode global build → `npm install --global .` (self-contained snapshot)
|
|
9
|
-
// --mode uninstall `npm rm --global @wjarka/cezarion`
|
|
10
|
-
// --no-build skip the build (relink an already-built dist)
|
|
11
|
-
//
|
|
12
|
-
// The install decisions live in the unit-tested src/install-as-command.ts
|
|
13
|
-
// (compiled to dist by the build); this script owns spawning + exit codes.
|
|
14
|
-
// npm is invoked through process.execPath + npm_execpath — same cross-platform
|
|
15
|
-
// pattern as scripts/dev.mjs / scripts/check-pack.mjs (no .cmd shim assumptions).
|
|
16
|
-
|
|
17
|
-
import { spawnSync, execFileSync } from 'node:child_process';
|
|
18
|
-
import { existsSync } from 'node:fs';
|
|
19
|
-
import path from 'node:path';
|
|
20
|
-
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
21
|
-
|
|
22
|
-
const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
23
|
-
const argv = process.argv.slice(2);
|
|
24
|
-
|
|
25
|
-
const modeIdx = argv.indexOf('--mode');
|
|
26
|
-
const mode = modeIdx >= 0 ? argv[modeIdx + 1] : 'link';
|
|
27
|
-
const noBuild = argv.includes('--no-build');
|
|
28
|
-
if (!['link', 'global', 'uninstall'].includes(mode)) {
|
|
29
|
-
console.error(`install-as-command: unknown --mode "${mode}" (expected link | global | uninstall)`);
|
|
30
|
-
process.exit(1);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// npm invocation shim (identical to dev.mjs / check-pack.mjs).
|
|
34
|
-
// pnpm 12 sets npm_execpath to a native executable; these operations need npm.
|
|
35
|
-
const npmExecpath = /(?:^|[\\/])npm-cli\.js$/.test(process.env.npm_execpath ?? '')
|
|
36
|
-
? process.env.npm_execpath : undefined;
|
|
37
|
-
const npmCli = process.platform === 'win32' ? 'npm.cmd' : 'npm';
|
|
38
|
-
function npm(args, { capture = false } = {}) {
|
|
39
|
-
const viaNode = Boolean(npmExecpath);
|
|
40
|
-
const file = viaNode ? process.execPath : npmCli;
|
|
41
|
-
const full = viaNode ? [npmExecpath, ...args] : args;
|
|
42
|
-
const shell = !viaNode && process.platform === 'win32';
|
|
43
|
-
if (capture) {
|
|
44
|
-
return execFileSync(file, full, { cwd: repoRoot, encoding: 'utf8', maxBuffer: 16 * 1024 * 1024, shell });
|
|
45
|
-
}
|
|
46
|
-
const res = spawnSync(file, full, { cwd: repoRoot, stdio: 'inherit', shell });
|
|
47
|
-
return res.status ?? 1;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
const distDir = path.join(repoRoot, 'dist');
|
|
51
|
-
const build = mode !== 'uninstall' && !noBuild;
|
|
52
|
-
|
|
53
|
-
if (mode !== 'uninstall' && noBuild && !existsSync(path.join(distDir, 'index.js'))) {
|
|
54
|
-
console.error('install-as-command: --no-build was set but dist/ is missing — run once without --no-build first.');
|
|
55
|
-
process.exit(1);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
if (build) {
|
|
59
|
-
console.log('install-as-command: building (npm run build)…');
|
|
60
|
-
const code = npm(['run', 'build']);
|
|
61
|
-
if (code !== 0) {
|
|
62
|
-
console.error('install-as-command: build failed — nothing installed.');
|
|
63
|
-
process.exit(code);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// Load the tested planner from dist. Present after any build; for uninstall on a
|
|
68
|
-
// never-built checkout it may be absent, so fall back to the known command.
|
|
69
|
-
let planner = null;
|
|
70
|
-
const plannerPath = path.join(distDir, 'install-as-command.js');
|
|
71
|
-
if (existsSync(plannerPath)) {
|
|
72
|
-
planner = await import(pathToFileURL(plannerPath).href);
|
|
73
|
-
}
|
|
74
|
-
const PACKAGE_NAME = planner?.PACKAGE_NAME ?? '@wjarka/cezarion';
|
|
75
|
-
const steps = planner
|
|
76
|
-
? planner.planInstall({ mode, build }).steps
|
|
77
|
-
: [{ args: ['rm', '--global', PACKAGE_NAME], label: `remove global ${PACKAGE_NAME}` }];
|
|
78
|
-
|
|
79
|
-
for (const step of steps) {
|
|
80
|
-
console.log(`install-as-command: npm ${step.args.join(' ')} (${step.label})`);
|
|
81
|
-
const code = npm(step.args);
|
|
82
|
-
if (code !== 0) {
|
|
83
|
-
if (mode === 'uninstall') {
|
|
84
|
-
// Idempotent: `npm rm -g` of an absent package is a no-op success.
|
|
85
|
-
console.log('install-as-command: nothing to uninstall (already absent).');
|
|
86
|
-
break;
|
|
87
|
-
}
|
|
88
|
-
console.error(`install-as-command: \`npm ${step.args.join(' ')}\` failed (see npm output above).`);
|
|
89
|
-
console.error(
|
|
90
|
-
' If this is an EACCES on a root-owned global prefix, set a user-writable one\n' +
|
|
91
|
-
' (e.g. `npm config set prefix ~/.npm-global`) and retry — do NOT use sudo.',
|
|
92
|
-
);
|
|
93
|
-
process.exit(code);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if (mode === 'uninstall') {
|
|
98
|
-
console.log('install-as-command: global cezarion / cez removed.');
|
|
99
|
-
process.exit(0);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// Verify the shims and print a PATH hint.
|
|
103
|
-
let prefix = '';
|
|
104
|
-
try {
|
|
105
|
-
prefix = npm(['prefix', '--global'], { capture: true }).trim();
|
|
106
|
-
} catch {
|
|
107
|
-
// best-effort — the install already succeeded above
|
|
108
|
-
}
|
|
109
|
-
if (planner && prefix) {
|
|
110
|
-
const binDir = planner.globalBinDir(prefix, process.platform);
|
|
111
|
-
const present = planner.globalShimPaths(prefix, process.platform).filter((p) => existsSync(p));
|
|
112
|
-
const names = planner.BIN_NAMES.join(', ');
|
|
113
|
-
if (present.length === planner.BIN_NAMES.length) {
|
|
114
|
-
console.log(`\ninstall-as-command: installed ${names} → ${binDir}`);
|
|
115
|
-
} else {
|
|
116
|
-
console.log(`\ninstall-as-command: done, but only ${present.length}/${planner.BIN_NAMES.length} shims found in ${binDir}`);
|
|
117
|
-
}
|
|
118
|
-
console.log(` Ensure this is on your PATH:\n ${binDir}`);
|
|
119
|
-
console.log(' Then, from any repo: cez --help');
|
|
120
|
-
} else {
|
|
121
|
-
console.log('\ninstall-as-command: done. Ensure your npm global bin dir is on PATH, then run `cez --help`.');
|
|
122
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/** Integration-only: npm run build:server && node packages/cezar/scripts/measure-transcript-facts-health.mjs
|
|
2
|
-
* Boots the actual loopback server; deliberately never imported by the fast tests.
|
|
3
|
-
*/
|
|
4
|
-
import assert from 'node:assert/strict';
|
|
5
|
-
import { execFileSync } from 'node:child_process';
|
|
6
|
-
import { once } from 'node:events';
|
|
7
|
-
import { mkdtempSync, readdirSync, rmSync } from 'node:fs';
|
|
8
|
-
import { tmpdir } from 'node:os';
|
|
9
|
-
import { join } from 'node:path';
|
|
10
|
-
import { setTimeout as delay } from 'node:timers/promises';
|
|
11
|
-
import { seedColdHistories, verifyFacts } from './transcript-facts-fixture.mjs';
|
|
12
|
-
|
|
13
|
-
const root = mkdtempSync(join(process.platform === 'win32' ? tmpdir() : '/tmp', 'cez-facts-health-'));
|
|
14
|
-
// The experiment has no external peers, credentials, background updater, or real home.
|
|
15
|
-
for (const key of Object.keys(process.env)) if (key.startsWith('CEZ_')) delete process.env[key];
|
|
16
|
-
process.env.CEZ_HOME = join(root, 'home');
|
|
17
|
-
process.env.CEZ_DRY_RUN = '1';
|
|
18
|
-
const runtime = { url: new URL('../dist/', import.meta.url), ext: 'js' };
|
|
19
|
-
const dataDir = join(root, 'cold-project', '.ai/cezar');
|
|
20
|
-
let store;
|
|
21
|
-
let bootStore;
|
|
22
|
-
let server;
|
|
23
|
-
const watchdog = setTimeout(() => { console.error('health measurement exceeded 30s'); process.exitCode = 1; server?.closeAllConnections(); server?.close(); store?.close(); bootStore?.close(); }, 30_000);
|
|
24
|
-
try {
|
|
25
|
-
const { RunStore } = await import(new URL('runs/store.js', runtime.url));
|
|
26
|
-
const { startServer } = await import(new URL('server/server.js', runtime.url));
|
|
27
|
-
// Keep git discovery away from the user's parent repository, even if TMPDIR
|
|
28
|
-
// was set inside a cezar worktree. This repo contains only the experiment.
|
|
29
|
-
execFileSync('git', ['init', '--initial-branch=main'], { cwd: root, stdio: 'ignore' });
|
|
30
|
-
const fixtures = await seedColdHistories(dataDir, runtime);
|
|
31
|
-
global.gc?.();
|
|
32
|
-
// Project-open scenario: establish the real HTTP/client path before opening a
|
|
33
|
-
// second cold store on this same event loop. No transcript sidecar is primed.
|
|
34
|
-
bootStore = RunStore.open(join(root, '.ai/cezar'));
|
|
35
|
-
await bootStore.factsWarmIdle();
|
|
36
|
-
server = startServer({ repoRoot: root, store: bootStore, manager: {}, version: 'task4-measurement', bindHost: '127.0.0.1' }, 0);
|
|
37
|
-
if (!server.listening) await once(server, 'listening');
|
|
38
|
-
const address = server.address();
|
|
39
|
-
assert.ok(address && typeof address !== 'string');
|
|
40
|
-
const endpoint = `http://127.0.0.1:${address.port}/api/v1/health`;
|
|
41
|
-
const primingStart = performance.now();
|
|
42
|
-
const prime = await fetch(endpoint, { signal: AbortSignal.timeout(2_000) });
|
|
43
|
-
assert.equal(prime.status, 200);
|
|
44
|
-
assert.equal((await prime.json()).version, 'task4-measurement');
|
|
45
|
-
const primingLatencyMs = performance.now() - primingStart;
|
|
46
|
-
assert.equal(readdirSync(join(dataDir, 'runs')).filter(name => name.endsWith('.facts.json')).length, 0);
|
|
47
|
-
const start = performance.now();
|
|
48
|
-
store = RunStore.open(dataDir);
|
|
49
|
-
let end;
|
|
50
|
-
const warming = store.factsWarmIdle().then(() => { end = performance.now(); });
|
|
51
|
-
const samples = [];
|
|
52
|
-
while (end === undefined) {
|
|
53
|
-
const requestStart = performance.now();
|
|
54
|
-
const cpuStart = process.threadCpuUsage();
|
|
55
|
-
const response = await fetch(endpoint, { signal: AbortSignal.timeout(2_000) });
|
|
56
|
-
assert.equal(response.status, 200);
|
|
57
|
-
assert.equal((await response.json()).version, 'task4-measurement');
|
|
58
|
-
const requestEnd = performance.now();
|
|
59
|
-
// Include EVERY request begun while cold warm-up was active, even one ending after it.
|
|
60
|
-
const cpu = process.threadCpuUsage(cpuStart);
|
|
61
|
-
samples.push({ startMs: requestStart - start, endMs: requestEnd - start, latencyMs: requestEnd - requestStart,
|
|
62
|
-
mainThreadCpuMs: (cpu.user + cpu.system) / 1000 });
|
|
63
|
-
await delay(5);
|
|
64
|
-
}
|
|
65
|
-
await warming;
|
|
66
|
-
assert.ok(samples.length > 0, 'health requests must overlap cold warming');
|
|
67
|
-
assert.ok(samples.every(sample => sample.startMs < end - start && sample.endMs > 0));
|
|
68
|
-
const result = { kind: 'transcript-facts-http-health', runtime: runtime.url.href,
|
|
69
|
-
endpoint: '/api/v1/health', scenario: 'already-listening server during cold project open', primingLatencyMs,
|
|
70
|
-
...verifyFacts(dataDir, fixtures, store), durationMs: end - start,
|
|
71
|
-
sampleCount: samples.length, maxLatencyMs: Math.max(...samples.map(sample => sample.latencyMs)), samples };
|
|
72
|
-
console.log(JSON.stringify(result));
|
|
73
|
-
assert.ok(result.maxLatencyMs < 50, `max health latency ${result.maxLatencyMs.toFixed(3)}ms must be <50ms`);
|
|
74
|
-
} finally {
|
|
75
|
-
clearTimeout(watchdog);
|
|
76
|
-
let cleanupTimer;
|
|
77
|
-
try {
|
|
78
|
-
if (server) await Promise.race([server.shutdownForRestart(), new Promise((_, reject) => {
|
|
79
|
-
cleanupTimer = setTimeout(() => reject(new Error('server cleanup timed out')), 5_000);
|
|
80
|
-
})]);
|
|
81
|
-
} finally {
|
|
82
|
-
clearTimeout(cleanupTimer);
|
|
83
|
-
store?.close();
|
|
84
|
-
bootStore?.close();
|
|
85
|
-
rmSync(root, { recursive: true, force: true });
|
|
86
|
-
}
|
|
87
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/** Dedicated server-free regression (intentionally outside parallel Vitest discovery).
|
|
2
|
-
* node --expose-gc --import tsx packages/cezar/scripts/measure-transcript-facts-lag.mjs
|
|
3
|
-
* Built runtime: pass an absolute dist directory. Baseline source: pass its src directory and ts.
|
|
4
|
-
* A separate process removes test-runner loop work, NOT unrelated host CPU scheduling.
|
|
5
|
-
* Keep every sample and the strict wall-time ceiling; investigate load instead of retrying here.
|
|
6
|
-
*/
|
|
7
|
-
import assert from 'node:assert/strict';
|
|
8
|
-
import { mkdtempSync, rmSync } from 'node:fs';
|
|
9
|
-
import { tmpdir } from 'node:os';
|
|
10
|
-
import { join } from 'node:path';
|
|
11
|
-
import { pathToFileURL } from 'node:url';
|
|
12
|
-
import { setTimeout as delay } from 'node:timers/promises';
|
|
13
|
-
import { seedColdHistories, verifyFacts } from './transcript-facts-fixture.mjs';
|
|
14
|
-
|
|
15
|
-
const runtime = { url: process.argv[2] ? pathToFileURL(process.argv[2] + '/') : new URL('../src/', import.meta.url), ext: process.argv[3] ?? (process.argv[2] ? 'js' : 'ts') };
|
|
16
|
-
const { RunStore } = await import(new URL('runs/store.' + runtime.ext, runtime.url));
|
|
17
|
-
const dir = mkdtempSync(join(tmpdir(), 'cez-facts-lag-'));
|
|
18
|
-
let store;
|
|
19
|
-
let timer;
|
|
20
|
-
try {
|
|
21
|
-
const fixtures = await seedColdHistories(dir, runtime);
|
|
22
|
-
// Fixture allocation/collection belongs to setup, not the measured warm path.
|
|
23
|
-
global.gc?.();
|
|
24
|
-
const periodMs = 20;
|
|
25
|
-
const ticks = [];
|
|
26
|
-
let previous = performance.now();
|
|
27
|
-
let previousCpu = process.threadCpuUsage();
|
|
28
|
-
timer = setInterval(() => {
|
|
29
|
-
const at = performance.now();
|
|
30
|
-
const cpu = process.threadCpuUsage();
|
|
31
|
-
ticks.push({ at, lagMs: Math.max(0, at - previous - periodMs),
|
|
32
|
-
mainThreadCpuMs: (cpu.user + cpu.system - previousCpu.user - previousCpu.system) / 1000 });
|
|
33
|
-
previousCpu = cpu;
|
|
34
|
-
previous = at;
|
|
35
|
-
}, periodMs);
|
|
36
|
-
// Establish a real interval before starting; retain the first tick after completion too.
|
|
37
|
-
await delay(periodMs * 2);
|
|
38
|
-
const start = performance.now();
|
|
39
|
-
store = RunStore.open(dir);
|
|
40
|
-
await store.factsWarmIdle();
|
|
41
|
-
const end = performance.now();
|
|
42
|
-
while (!ticks.some(tick => tick.at > end)) await delay(periodMs);
|
|
43
|
-
clearInterval(timer);
|
|
44
|
-
const overlapping = ticks.filter(tick => tick.at >= start && tick.at <= end);
|
|
45
|
-
const result = { kind: 'transcript-facts-lag', runtime: runtime.url.href, periodMs,
|
|
46
|
-
...verifyFacts(dir, fixtures, store), durationMs: end - start, ticks: ticks.length,
|
|
47
|
-
beforeTicks: ticks.filter(tick => tick.at < start).length,
|
|
48
|
-
trailingTicks: ticks.filter(tick => tick.at > end).length,
|
|
49
|
-
overlappingTicks: overlapping.length, maxLagMs: Math.max(...ticks.map(tick => tick.lagMs)),
|
|
50
|
-
samples: ticks.map(tick => ({ offsetMs: tick.at - start, lagMs: tick.lagMs, mainThreadCpuMs: tick.mainThreadCpuMs })) };
|
|
51
|
-
console.log(JSON.stringify(result));
|
|
52
|
-
assert.equal(result.histories, 700);
|
|
53
|
-
assert.equal(result.sidecars, 700);
|
|
54
|
-
assert.equal(result.plain, 350);
|
|
55
|
-
assert.equal(result.brotli, 350);
|
|
56
|
-
assert.equal(result.events, 105_592);
|
|
57
|
-
assert.ok(result.largestBytes > 40_000_000);
|
|
58
|
-
assert.equal(result.coldSidecars, 0);
|
|
59
|
-
assert.ok(result.beforeTicks > 0, 'must establish the interval before warming');
|
|
60
|
-
assert.ok(result.trailingTicks > 0, 'must retain a trailing tick after warming');
|
|
61
|
-
assert.ok(overlapping.length > 0, 'must sample during cold warm-up');
|
|
62
|
-
assert.ok(result.durationMs > 0);
|
|
63
|
-
assert.ok(result.maxLagMs < 20, `max extra interval lag ${result.maxLagMs.toFixed(3)}ms must be <20ms`);
|
|
64
|
-
} finally {
|
|
65
|
-
clearInterval(timer);
|
|
66
|
-
store?.close();
|
|
67
|
-
rmSync(dir, { recursive: true, force: true });
|
|
68
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// Shared responses only; each caller encodes its own native runner wire (#426).
|
|
2
|
-
let cap = false;
|
|
3
|
-
export function autonomousReply(prompt) {
|
|
4
|
-
const askCap = prompt.includes('mock:autonomous-ask-cap') || prompt.includes('mock:autonomous-readiness-idle');
|
|
5
|
-
if (prompt.includes('mock:autonomous-cap') || askCap) cap = true;
|
|
6
|
-
if (askCap) return 'CEZ:ASK {"questions":[{"header":"Library","question":"Which test library?","options":[{"label":"Vitest"},{"label":"Node test"}]}]}';
|
|
7
|
-
if (prompt.startsWith('Continue working autonomously until the task is fully complete.')) {
|
|
8
|
-
return cap ? 'Still working.' : 'Autonomous work finished.\nCEZ:DONE';
|
|
9
|
-
}
|
|
10
|
-
return 'Still working.';
|
|
11
|
-
}
|