repo-harness 0.26.2 → 0.26.4
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/README.md +1 -1
- package/assets/reference-configs/herdr-notify.md +2 -0
- package/assets/skill-version.json +2 -2
- package/assets/skills/repo-harness-issue-flow/references/board.md +6 -0
- package/dist/hook-entry.js +13 -12
- package/dist/oar-review-host.js +12 -2
- package/dist/operator-ui/assets/ArchitectureWorkspace-BV2r2IDJ.js +12 -0
- package/dist/operator-ui/assets/{DocsPage-BDG6g9Tk.js → DocsPage-ChBcA4ei.js} +3 -3
- package/dist/operator-ui/assets/{abnfDiagram-VCTEODGH-CTW4SofD.js → abnfDiagram-VCTEODGH-BjabAXLU.js} +1 -1
- package/dist/operator-ui/assets/architecture-7GRP2DOG-C3-dzieP.js +1 -0
- package/dist/operator-ui/assets/{architectureDiagram-5GKGNRK7-CIuVWzPN.js → architectureDiagram-5GKGNRK7-DXh5951E.js} +1 -1
- package/dist/operator-ui/assets/{blockDiagram-I7D4REHJ-BEWSXQH7.js → blockDiagram-I7D4REHJ-CA9cDJV-.js} +1 -1
- package/dist/operator-ui/assets/{c4Diagram-7LVT6UL2-BooQ-yS3.js → c4Diagram-7LVT6UL2-DOvRiXAl.js} +1 -1
- package/dist/operator-ui/assets/channel-VAagQT6R.js +1 -0
- package/dist/operator-ui/assets/{chunk-4HAMMTFA-DcXZNPis.js → chunk-4HAMMTFA-C_U2aLu7.js} +1 -1
- package/dist/operator-ui/assets/{chunk-75Z2AOVW-DFzOELLp.js → chunk-75Z2AOVW-BzYIkDpw.js} +1 -1
- package/dist/operator-ui/assets/{chunk-DU6HZSFF-CdO5WG3z.js → chunk-DU6HZSFF-CMRhpuf_.js} +1 -1
- package/dist/operator-ui/assets/{chunk-F27PBJKO-Cvv_6Wsb.js → chunk-F27PBJKO-CZqPEhT-.js} +1 -1
- package/dist/operator-ui/assets/{chunk-GMAD6QVW-CSOTPo5X.js → chunk-GMAD6QVW-C29OKcg2.js} +1 -1
- package/dist/operator-ui/assets/{chunk-GVQU2GXP-B24mULtm.js → chunk-GVQU2GXP-Y3VKl77B.js} +1 -1
- package/dist/operator-ui/assets/{chunk-IMKFNOWR-D-UYD13r.js → chunk-IMKFNOWR-DUQELGHv.js} +1 -1
- package/dist/operator-ui/assets/{chunk-L3NEJ4N5-DUOz-D3K.js → chunk-L3NEJ4N5-b7C5n4Ks.js} +1 -1
- package/dist/operator-ui/assets/{chunk-OSK3NFVY-BoCS-DnY.js → chunk-OSK3NFVY-Dm69v7to.js} +1 -1
- package/dist/operator-ui/assets/{chunk-P2QGCYS3-6eSrjGVj.js → chunk-P2QGCYS3-DouiSrgQ.js} +1 -1
- package/dist/operator-ui/assets/{chunk-POPQ4Y6H-CgYqgw_b.js → chunk-POPQ4Y6H-BCR8dMgQ.js} +1 -1
- package/dist/operator-ui/assets/{chunk-PWAF6VOD-BPZ7cTJV.js → chunk-PWAF6VOD-goaT9QIX.js} +1 -1
- package/dist/operator-ui/assets/{chunk-SHT3W25Y-wuJ7I2Ry.js → chunk-SHT3W25Y-DCT-IXfR.js} +1 -1
- package/dist/operator-ui/assets/{chunk-SVP7TREG-DR_5fXJa.js → chunk-SVP7TREG-DT66T7wW.js} +1 -1
- package/dist/operator-ui/assets/{chunk-TICWLB2K-CmY4PErW.js → chunk-TICWLB2K-BlCzls02.js} +1 -1
- package/dist/operator-ui/assets/classDiagram-ZZMXUADV-BNHmUR-f.js +1 -0
- package/dist/operator-ui/assets/classDiagram-v2-VYDZK3BY-BNHmUR-f.js +1 -0
- package/dist/operator-ui/assets/{cynefin-OW5HDTMX-ByG14VwL.js → cynefin-OW5HDTMX-mEmbKYaq.js} +1 -1
- package/dist/operator-ui/assets/{cynefinDiagram-5FMLGOSQ-asUlnEuC.js → cynefinDiagram-5FMLGOSQ-DnekAcNr.js} +1 -1
- package/dist/operator-ui/assets/{dagre-GXQ25YYZ-C3BmEPRW.js → dagre-GXQ25YYZ-BiFe5ZVH.js} +1 -1
- package/dist/operator-ui/assets/{diagram-S7CK7UJ4-BuXbo8WA.js → diagram-S7CK7UJ4-CksHMlVm.js} +1 -1
- package/dist/operator-ui/assets/{diagram-UQ7AKVKN-DW_CdW7h.js → diagram-UQ7AKVKN-DmzatPqn.js} +1 -1
- package/dist/operator-ui/assets/{diagram-VSXAHHWV-D3HjQQpT.js → diagram-VSXAHHWV-Bgyat970.js} +1 -1
- package/dist/operator-ui/assets/{diagram-VX7I27RA-Dyz9A55Q.js → diagram-VX7I27RA-c3nuOFuP.js} +1 -1
- package/dist/operator-ui/assets/{diagram-Z3DM3KII-C9mCDDMt.js → diagram-Z3DM3KII-BaXhTqi9.js} +1 -1
- package/dist/operator-ui/assets/{ebnfDiagram-PWID7BFC-llEhYlrg.js → ebnfDiagram-PWID7BFC-DkEYZuxL.js} +1 -1
- package/dist/operator-ui/assets/{erDiagram-RLTQ6QDP-DdUN6nd1.js → erDiagram-RLTQ6QDP-k9CGc0Qd.js} +1 -1
- package/dist/operator-ui/assets/eventmodeling-NTZA5JFV-DBJglxYN.js +1 -0
- package/dist/operator-ui/assets/flowDiagram-HODETNUW-mBiUg7be.js +1 -0
- package/dist/operator-ui/assets/{ganttDiagram-EL5Y4UJY-Dc56GD-v.js → ganttDiagram-EL5Y4UJY-BoKfeyH_.js} +1 -1
- package/dist/operator-ui/assets/{gitGraph-4MIJSDKK-BKliZVJY.js → gitGraph-4MIJSDKK-Dn1afQIS.js} +1 -1
- package/dist/operator-ui/assets/{gitGraphDiagram-WWUBYQGX-CzhhG5fn.js → gitGraphDiagram-WWUBYQGX-DHSXEA08.js} +1 -1
- package/dist/operator-ui/assets/index-BG15tO-2.js +32 -0
- package/dist/operator-ui/assets/index-DMe4MpLH.css +1 -0
- package/dist/operator-ui/assets/{info-A6RAGUB7-DTsT0u6O.js → info-A6RAGUB7-ClRo4-dN.js} +1 -1
- package/dist/operator-ui/assets/{infoDiagram-27XIBGKW-DkKLOvy_.js → infoDiagram-27XIBGKW-NhETHwUE.js} +1 -1
- package/dist/operator-ui/assets/{ishikawaDiagram-5VMMS53U-nR7ANYtl.js → ishikawaDiagram-5VMMS53U-DoRxcerW.js} +1 -1
- package/dist/operator-ui/assets/{journeyDiagram-3NMN7TZE-Btimbc2w.js → journeyDiagram-3NMN7TZE-B6LHp-qn.js} +1 -1
- package/dist/operator-ui/assets/{kanban-definition-UXKFOSKX-DJ1b_CRl.js → kanban-definition-UXKFOSKX-DPCJW6mB.js} +1 -1
- package/dist/operator-ui/assets/{line-Ch8Ei-t5.js → line-Bri_Dj_w.js} +1 -1
- package/dist/operator-ui/assets/{mermaid-parser.core-igM3wvlC.js → mermaid-parser.core-CKTxgV1R.js} +3 -3
- package/dist/operator-ui/assets/{mermaid.core-DxIJGsL1.js → mermaid.core-QwdG5zG8.js} +4 -4
- package/dist/operator-ui/assets/{mindmap-definition-YA3MSWOX-DacyIHCM.js → mindmap-definition-YA3MSWOX-DpSLUQKY.js} +1 -1
- package/dist/operator-ui/assets/{packet-AYTQ26CC-BYAs0reH.js → packet-AYTQ26CC-CysQQzht.js} +1 -1
- package/dist/operator-ui/assets/{pegDiagram-XKGWAZYB-BEVe-2_q.js → pegDiagram-XKGWAZYB-BbWTVFSr.js} +1 -1
- package/dist/operator-ui/assets/{pie-WAS4IAKB-BlqCTx0O.js → pie-WAS4IAKB-DxxG5c2X.js} +1 -1
- package/dist/operator-ui/assets/{pieDiagram-E7YTZNPT-o7PmLRJM.js → pieDiagram-E7YTZNPT-hrDDxEeN.js} +1 -1
- package/dist/operator-ui/assets/{quadrantDiagram-AXDQQJYC-DSb7ywO8.js → quadrantDiagram-AXDQQJYC-B636Y4D8.js} +1 -1
- package/dist/operator-ui/assets/{radar-RG4KPBEZ-jG4-YsNe.js → radar-RG4KPBEZ-DlCqXl_Z.js} +1 -1
- package/dist/operator-ui/assets/{railroad-74A4TZTK-r-qwUcER.js → railroad-74A4TZTK-Cdcqdtfh.js} +1 -1
- package/dist/operator-ui/assets/railroad-abnf-HS5TGJTU-CVMqYuCA.js +1 -0
- package/dist/operator-ui/assets/railroad-ebnf-LZEXJU2U-peNw10FQ.js +1 -0
- package/dist/operator-ui/assets/railroad-peg-WCYAUIDC-BOPKzI_N.js +1 -0
- package/dist/operator-ui/assets/{railroadDiagram-O6MQD6OU-WouykGNz.js → railroadDiagram-O6MQD6OU-o18tSv7S.js} +1 -1
- package/dist/operator-ui/assets/{requirementDiagram-BXWQKSXE-BOULZ4H3.js → requirementDiagram-BXWQKSXE-BCL-3yAf.js} +1 -1
- package/dist/operator-ui/assets/{sankeyDiagram-P5KCCOFB-DzWtAj1R.js → sankeyDiagram-P5KCCOFB-DWvwNYCt.js} +1 -1
- package/dist/operator-ui/assets/{sequenceDiagram-WJ2MYXX4-V2YChoPl.js → sequenceDiagram-WJ2MYXX4-Buu2v73Z.js} +1 -1
- package/dist/operator-ui/assets/{stateDiagram-D77RDMKH-DHUAj3AI.js → stateDiagram-D77RDMKH-LKVb36hR.js} +1 -1
- package/dist/operator-ui/assets/stateDiagram-v2-MP3YSRHH-Bg61-LYM.js +1 -0
- package/dist/operator-ui/assets/{swimlanes-42K2YHIH-CUU1PL8O.js → swimlanes-42K2YHIH-BYLgVzWT.js} +1 -1
- package/dist/operator-ui/assets/swimlanesDiagram-VR7AAH4N-B8JpT1nz.js +8 -0
- package/dist/operator-ui/assets/{timeline-definition-24CTP7MA-CvS0zzYG.js → timeline-definition-24CTP7MA-BrHpuHKd.js} +1 -1
- package/dist/operator-ui/assets/{treeView-Q6P3EWNA-Co-HIYo1.js → treeView-Q6P3EWNA-iA_cG2uM.js} +1 -1
- package/dist/operator-ui/assets/{treemap-WGGIJYW6-ZSv_OvpD.js → treemap-WGGIJYW6-DTyH2l-M.js} +1 -1
- package/dist/operator-ui/assets/{vennDiagram-4TSXK5OY-BJnPER6v.js → vennDiagram-4TSXK5OY-CT7xCBgv.js} +1 -1
- package/dist/operator-ui/assets/{wardley-WFR3VGLG-DRggP8bt.js → wardley-WFR3VGLG-CtDBl8BG.js} +1 -1
- package/dist/operator-ui/assets/{wardleyDiagram-VM6X3IG4-DKngknWb.js → wardleyDiagram-VM6X3IG4-7cFf5iA8.js} +1 -1
- package/dist/operator-ui/assets/{xychartDiagram-S5SC5T6Z-CHAuHS77.js → xychartDiagram-S5SC5T6Z-ViiHJcVg.js} +1 -1
- package/dist/operator-ui/index.html +2 -2
- package/package.json +3 -3
- package/scripts/check-agent-tooling.sh +2 -1
- package/scripts/merge-gate.ts +11 -4
- package/src/cli/commands/board.ts +28 -0
- package/src/cli/commands/global-runtime.ts +3 -3
- package/src/cli/commands/operator.ts +13 -2
- package/src/cli/commands/quota.ts +3 -5
- package/src/cli/commands/seats.ts +3 -2
- package/src/cli/commands/strategy-actions.ts +42 -0
- package/src/cli/commands/strategy.ts +9 -26
- package/src/cli/index.ts +15 -15
- package/src/cli/installer/architecture-selection.ts +14 -14
- package/src/cli/installer/install-profile.ts +2 -2
- package/src/cli/mcp/reader-tools.ts +34 -36
- package/src/cli/mcp/redaction.ts +19 -2
- package/src/core/board/advisor-seat.ts +411 -0
- package/src/core/board/attention.ts +2 -8
- package/src/core/board/board.ts +66 -17
- package/src/core/board/desk.ts +76 -0
- package/src/core/board/parents.ts +18 -7
- package/src/core/board/pull-requests.ts +12 -0
- package/src/core/board/summary.ts +157 -0
- package/src/core/operator/agent-config.ts +3 -1
- package/src/core/operator/doc-session-events.ts +1 -15
- package/src/core/operator/herdr-pin.ts +3 -1
- package/src/core/operator/quota.ts +41 -0
- package/src/core/operator/seat-launch.ts +6 -2
- package/src/core/operator/seats-settings.ts +16 -1
- package/src/core/operator/worktree-cleanup-observation.ts +2 -0
- package/src/core/operator/worktree-cleanup-plan.ts +141 -5
- package/src/core/review/operator-console-port.ts +1 -0
- package/src/core/review/runner-port.ts +2 -0
- package/src/core/security/secret-patterns.ts +58 -7
- package/src/effects/board/attention-watch.ts +19 -10
- package/src/effects/board/collect.ts +54 -20
- package/src/effects/board/parents.ts +7 -5
- package/src/effects/operator/advisor-seat-route.ts +229 -0
- package/src/effects/operator/board-read.ts +51 -10
- package/src/effects/operator/board-summary.ts +51 -0
- package/src/effects/operator/quota.ts +8 -0
- package/src/effects/operator/seats-configuration.ts +6 -2
- package/src/effects/operator/seats-settings-route.ts +1 -0
- package/src/effects/operator/server.ts +147 -22
- package/src/effects/operator/worktree-cleanup-archive.ts +5 -7
- package/src/effects/operator/worktree-cleanup-investigation.ts +334 -0
- package/src/effects/operator/worktree-cleanup-observation.ts +22 -6
- package/src/effects/operator/worktree-cleanup-plan.ts +14 -9
- package/src/effects/operator/worktree-cleanup-publish.ts +11 -1
- package/src/effects/operator/worktree-cleanup-route.ts +345 -0
- package/src/effects/operator/worktree-cleanup-store.ts +137 -0
- package/src/effects/operator/write-audit.ts +15 -7
- package/src/effects/operator/write-run.ts +5 -4
- package/src/effects/process-group-registry.ts +5 -1
- package/src/effects/review/generic-review.ts +4 -2
- package/src/effects/review/review-isolation.ts +59 -6
- package/src/effects/terminal/herdr-core.ts +29 -20
- package/src/operator-web/App.tsx +52 -18
- package/src/operator-web/ArchitectureLayers.tsx +241 -0
- package/src/operator-web/ArchitectureMap.tsx +60 -227
- package/src/operator-web/ArchitectureModules.tsx +302 -0
- package/src/operator-web/ArchitectureTopology.tsx +167 -48
- package/src/operator-web/ArchitectureWorkspace.tsx +16 -10
- package/src/operator-web/BoardOffice.tsx +668 -0
- package/src/operator-web/BoardPage.tsx +190 -38
- package/src/operator-web/BotsPage.tsx +7 -2
- package/src/operator-web/CleanupPlanReview.tsx +124 -24
- package/src/operator-web/NavRail.tsx +2 -3
- package/src/operator-web/OfficeAdvisorDialog.tsx +184 -0
- package/src/operator-web/OfficeSetupChecklist.tsx +248 -0
- package/src/operator-web/RuntimeBadges.tsx +5 -1
- package/src/operator-web/SeatsPage.tsx +1 -1
- package/src/operator-web/SettingsPage.tsx +2 -0
- package/src/operator-web/SetupPages.tsx +106 -4
- package/src/operator-web/TaskDrawer.tsx +2 -1
- package/src/operator-web/WorktreesPage.tsx +29 -12
- package/src/operator-web/app.css +61 -4
- package/src/operator-web/architecture-layers-layout.ts +173 -0
- package/src/operator-web/architecture-map-layers.ts +109 -0
- package/src/operator-web/architecture-map-layout.ts +1 -1
- package/src/operator-web/architecture-map-parts.tsx +72 -33
- package/src/operator-web/architecture-modules-layout.ts +144 -0
- package/src/operator-web/architecture-topology-layout.ts +227 -81
- package/src/operator-web/board-office.css +214 -0
- package/src/operator-web/board-office.ts +357 -0
- package/src/operator-web/board-view.ts +1 -11
- package/src/operator-web/bots.ts +1 -1
- package/src/operator-web/fixtures/board-1474.json +10 -1
- package/src/operator-web/fixtures/board-parents.json +51 -1
- package/src/operator-web/fixtures/bots.ts +1 -1
- package/src/operator-web/fixtures/index.ts +23 -2
- package/src/operator-web/fixtures/office.ts +312 -0
- package/src/operator-web/fixtures/quota.ts +51 -0
- package/src/operator-web/fixtures/worktrees.ts +8 -2
- package/src/operator-web/i18n/architecture.ts +116 -16
- package/src/operator-web/i18n/board.ts +524 -2
- package/src/operator-web/i18n/bots.ts +4 -4
- package/src/operator-web/i18n/runtime.ts +2 -2
- package/src/operator-web/i18n/settings.ts +0 -4
- package/src/operator-web/i18n/setup.ts +64 -0
- package/src/operator-web/i18n/shell.ts +6 -0
- package/src/operator-web/i18n/worktrees.ts +66 -6
- package/src/operator-web/office-boss.ts +63 -0
- package/src/operator-web/office-scene.ts +929 -0
- package/src/operator-web/office-sprites.ts +300 -0
- package/src/operator-web/operator-write.tsx +47 -0
- package/src/operator-web/quota.ts +54 -0
- package/src/operator-web/settings.ts +8 -31
- package/src/operator-web/workspace-location.ts +55 -17
- package/src/operator-web/worktrees.ts +46 -17
- package/dist/operator-ui/assets/ArchitectureWorkspace-BXPaJdD2.js +0 -8
- package/dist/operator-ui/assets/architecture-7GRP2DOG-BvrzhGPL.js +0 -1
- package/dist/operator-ui/assets/channel-CNheEEUK.js +0 -1
- package/dist/operator-ui/assets/classDiagram-ZZMXUADV-CfmCrALg.js +0 -1
- package/dist/operator-ui/assets/classDiagram-v2-VYDZK3BY-CfmCrALg.js +0 -1
- package/dist/operator-ui/assets/eventmodeling-NTZA5JFV-kkq5h8G_.js +0 -1
- package/dist/operator-ui/assets/flowDiagram-HODETNUW-vpu-6HL_.js +0 -1
- package/dist/operator-ui/assets/index-DVIk8Nzz.css +0 -2
- package/dist/operator-ui/assets/index-nmgCC4ab.js +0 -29
- package/dist/operator-ui/assets/railroad-abnf-HS5TGJTU-D0ebcfCT.js +0 -1
- package/dist/operator-ui/assets/railroad-ebnf-LZEXJU2U-CK6K3iXh.js +0 -1
- package/dist/operator-ui/assets/railroad-peg-WCYAUIDC-DIJxyNE-.js +0 -1
- package/dist/operator-ui/assets/stateDiagram-v2-MP3YSRHH-C9Ayi4Vn.js +0 -1
- package/dist/operator-ui/assets/swimlanesDiagram-VR7AAH4N-UzK_8O5h.js +0 -8
package/README.md
CHANGED
|
@@ -330,6 +330,6 @@ None of these are bundled dependencies; see
|
|
|
330
330
|
|
|
331
331
|
## Release & license
|
|
332
332
|
|
|
333
|
-
- npm: `repo-harness@0.26.
|
|
333
|
+
- npm: `repo-harness@0.26.4` · workflow stamp `repo-harness@0.26.4+template@0.26.4`
|
|
334
334
|
- History: [`docs/CHANGELOG.md`](docs/CHANGELOG.md)
|
|
335
335
|
- License: MIT — see [`LICENSE`](LICENSE)
|
|
@@ -37,6 +37,8 @@ Commands for the topology steps:
|
|
|
37
37
|
| Wait for a worker | `hc wait <t>` |
|
|
38
38
|
| Close a worker pane | `herdr-app do pane.close --pane <pane>` |
|
|
39
39
|
|
|
40
|
+
A Codex worker seat in a linked contract worktree edits files and runs checks only. It runs no `git fetch`, `git commit` or `git push`. Its last message gives the commit subject and body, the PR title and body, and the check results. The orchestrator commits the worktree diff with that message and explicit paths only, pushes the branch and opens the PR. The orchestrator is the head owner of record and pushes each fix round; no other agent pushes to that PR. The Codex seat remains the content author and answers review threads through the orchestrator. The seat runs with sandbox network off (#1770): it runs no `gh` or `hc`, and the orchestrator reads its last message.
|
|
41
|
+
|
|
40
42
|
`repo-harness seats argv <seat>` prints the argv of the seat from the `seats` section of `~/.repo-harness/config.json`, or from the seat defaults when the section is absent. The argv holds the model, the effort, the tool limits and the seat brief. Its stderr names the source and each limit. A limit marked `instructions_only` is written into the launch instructions only; the host does not enforce it. Without `--argv`, the pane opens a shell.
|
|
41
43
|
|
|
42
44
|
With `--repository-id`, the argv labels its own terminal before the agent starts: it runs `repo-harness seats label`, which sets the seat labels on `HC_TERMINAL_ID`, and then starts the agent. The board finds seats only by these labels; a terminal without them leaves the execution axis `unavailable` (`no_seat_terminals`). When the label fails, the agent does not start and the terminal shows the error. Each start prints the new `terminal`. `<repository-id>` is the GitHub numeric repository id (`gh api repos/<owner>/<repo> --jq .id`). Leave out `--issue` and `--pr` for the orchestrator and the advisor.
|
|
@@ -26,6 +26,12 @@ Rules that keep the topology safe:
|
|
|
26
26
|
agent that needs a change in it (a reviewer's fix, a main sync, a repair)
|
|
27
27
|
either asks the head owner on the board, or takes the head-owner role
|
|
28
28
|
through a handoff comment first. Two pushers on one branch lose work.
|
|
29
|
+
Exception: for a Codex worker seat in a linked contract worktree, the
|
|
30
|
+
orchestrator is the head owner of record. It commits the worker's diff
|
|
31
|
+
with the worker's message and explicit paths only, pushes the branch,
|
|
32
|
+
opens the PR and pushes each fix round. No other agent pushes to that
|
|
33
|
+
PR. The Codex seat remains the content author and answers review threads
|
|
34
|
+
through the orchestrator.
|
|
29
35
|
- **Acceptor ≠ writer.** The acceptor of a round did not write the subject
|
|
30
36
|
SHA. For the High tier, prefer an acceptor from a different model family.
|
|
31
37
|
When no other family is available, use a fresh same-family context and
|
package/dist/hook-entry.js
CHANGED
|
@@ -2555,13 +2555,13 @@ function createFileExclusiveDurably(path, content, mode = 384) {
|
|
|
2555
2555
|
var init_atomic_append = () => {};
|
|
2556
2556
|
|
|
2557
2557
|
// package.json
|
|
2558
|
-
var version = "0.26.
|
|
2558
|
+
var version = "0.26.4", dependencies;
|
|
2559
2559
|
var init_package = __esm(() => {
|
|
2560
2560
|
dependencies = {
|
|
2561
2561
|
"@botiverse/oar": "0.80.1",
|
|
2562
2562
|
"@modelcontextprotocol/sdk": "^1.31.0",
|
|
2563
|
-
archctx: "0.11.
|
|
2564
|
-
"archctx-contracts": "0.11.
|
|
2563
|
+
archctx: "0.11.3",
|
|
2564
|
+
"archctx-contracts": "0.11.3",
|
|
2565
2565
|
commander: "^15.0.0"
|
|
2566
2566
|
};
|
|
2567
2567
|
});
|
|
@@ -7728,6 +7728,7 @@ function runClaudeStatusLine(rateLimits, env = process.env, now = new Date) {
|
|
|
7728
7728
|
}
|
|
7729
7729
|
var STATUS_LINE_LABELS;
|
|
7730
7730
|
var init_quota2 = __esm(() => {
|
|
7731
|
+
init_package();
|
|
7731
7732
|
init_quota();
|
|
7732
7733
|
STATUS_LINE_LABELS = { five_hour: "5h", seven_day: "7d" };
|
|
7733
7734
|
});
|
|
@@ -10656,21 +10657,21 @@ function readRecordedSelection(env = process.env) {
|
|
|
10656
10657
|
throw error;
|
|
10657
10658
|
}
|
|
10658
10659
|
}
|
|
10659
|
-
function
|
|
10660
|
-
return selection.status === "recorded" && selection.plugins.includes(
|
|
10660
|
+
function pluginSelected(selection, id) {
|
|
10661
|
+
return selection.status === "recorded" && selection.plugins.includes(id);
|
|
10661
10662
|
}
|
|
10662
|
-
function
|
|
10663
|
-
return plugins === null ? installSelectionCommand("all") : installSelectionCommand(PLUGIN_IDS.filter((id) => plugins.includes(id) || id ===
|
|
10663
|
+
function pluginRepair(added, plugins) {
|
|
10664
|
+
return plugins === null ? installSelectionCommand("all") : installSelectionCommand(PLUGIN_IDS.filter((id) => plugins.includes(id) || id === added));
|
|
10664
10665
|
}
|
|
10665
|
-
function notSelectedMessage(selection) {
|
|
10666
|
-
return `the
|
|
10666
|
+
function notSelectedMessage(selection, id) {
|
|
10667
|
+
return `the ${id} plugin is not selected; run: ${pluginRepair(id, selection.status === "recorded" ? selection.plugins : null)}`;
|
|
10667
10668
|
}
|
|
10668
10669
|
function architectureSelectionReport(selection) {
|
|
10669
|
-
if (
|
|
10670
|
+
if (pluginSelected(selection, "architecture"))
|
|
10670
10671
|
return { status: "selected", message: "" };
|
|
10671
10672
|
if (selection.status === "unreadable")
|
|
10672
10673
|
return { status: "unreadable", message: `the install selection cannot be read: ${selection.error.message}` };
|
|
10673
|
-
return { status: "not-selected", message: notSelectedMessage(selection) };
|
|
10674
|
+
return { status: "not-selected", message: notSelectedMessage(selection, "architecture") };
|
|
10674
10675
|
}
|
|
10675
10676
|
function declareArchitectureSelection(selection) {
|
|
10676
10677
|
const report = architectureSelectionReport(selection);
|
|
@@ -10679,7 +10680,7 @@ function declareArchitectureSelection(selection) {
|
|
|
10679
10680
|
declareArchitectureAbsent(report.status === "unreadable" ? "ARCHITECTURE_PROVIDER_UNAVAILABLE" : "ARCHITECTURE_PLUGIN_NOT_SELECTED", report.message);
|
|
10680
10681
|
}
|
|
10681
10682
|
async function registerSelectedArchitecturePorts(selection, load) {
|
|
10682
|
-
if (
|
|
10683
|
+
if (pluginSelected(selection, "architecture"))
|
|
10683
10684
|
registerArchitecturePorts(await load());
|
|
10684
10685
|
else
|
|
10685
10686
|
declareArchitectureSelection(selection);
|
package/dist/oar-review-host.js
CHANGED
|
@@ -1149,7 +1149,8 @@ function reviewIsolationPolicy(paths, platform = process.platform) {
|
|
|
1149
1149
|
piPolicy = `(deny file-write* (literal ${JSON.stringify(join5(directory, "models.json"))}))
|
|
1150
1150
|
`;
|
|
1151
1151
|
}
|
|
1152
|
-
const
|
|
1152
|
+
const readDenied = paths.cleanup?.readDenied ?? [];
|
|
1153
|
+
const protectedEntries = [paths.primary, paths.ownerRecord, paths.journal, paths.gitCommonDir, ...readDenied];
|
|
1153
1154
|
for (const path of [paths.subject, ...protectedEntries]) {
|
|
1154
1155
|
if (!isAbsolute5(path))
|
|
1155
1156
|
throw new Error("OAR_REVIEW_PROTECTED_PATH_UNSAFE");
|
|
@@ -1158,6 +1159,15 @@ function reviewIsolationPolicy(paths, platform = process.platform) {
|
|
|
1158
1159
|
throw new Error("OAR_REVIEW_OUTPUT_OVERLAPS_AUTHORITY");
|
|
1159
1160
|
}
|
|
1160
1161
|
}
|
|
1162
|
+
if (readDenied.some((path) => realpathSync5(path) !== path))
|
|
1163
|
+
throw new Error("OAR_REVIEW_PROTECTED_PATH_UNSAFE");
|
|
1164
|
+
const networkPolicy = `(deny network-outbound (remote tcp4 "localhost:*"))
|
|
1165
|
+
(deny network-outbound (remote tcp6 "*:*"))
|
|
1166
|
+
`;
|
|
1167
|
+
const modelPortPolicy = (paths.piLoopbackPorts ?? []).map((port) => `(allow network-outbound (remote tcp "localhost:${port}"))
|
|
1168
|
+
`).join("");
|
|
1169
|
+
const readPolicy = readDenied.map((path) => `(deny file-read* (subpath ${JSON.stringify(path)}))
|
|
1170
|
+
`).join("");
|
|
1161
1171
|
if (platform !== "darwin")
|
|
1162
1172
|
throw new Error("OAR_REVIEW_ISOLATION_UNSUPPORTED_PLATFORM");
|
|
1163
1173
|
const forbiddenFiles = "/(CLAUDE\\.md|AGENTS\\.md|settings[^/]*\\.json|\\.claude\\.json|config\\.toml|auth\\.json|\\.?credentials\\.json|secrets\\.json|token\\.json)$";
|
|
@@ -1171,7 +1181,7 @@ function reviewIsolationPolicy(paths, platform = process.platform) {
|
|
|
1171
1181
|
(deny file-write* (regex #"${forbiddenDirectories}"))
|
|
1172
1182
|
(deny signal)
|
|
1173
1183
|
(deny network-outbound ${unixSockets})
|
|
1174
|
-
${piPolicy}`;
|
|
1184
|
+
${piPolicy}${networkPolicy}${modelPortPolicy}${readPolicy}`;
|
|
1175
1185
|
}
|
|
1176
1186
|
function reviewHostTemporaryDirectory(output) {
|
|
1177
1187
|
if (!isAbsolute5(output) || lstatSync4(output).isSymbolicLink() || !lstatSync4(output).isDirectory())
|