@repo-os/repoos 0.5.80 → 0.5.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.build-info.json +2 -2
- package/dist/.build-stamp.json +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/commands/control-api.js +5 -1
- package/dist/commands/ui-smoke.js +15 -2
- package/dist/commands/upgrade.d.ts +89 -0
- package/dist/commands/upgrade.js +102 -13
- package/dist/core/activity-animation.test.js +4 -0
- package/dist/core/config.js +38 -5
- package/dist/core/git.d.ts +110 -0
- package/dist/core/git.js +322 -8
- package/dist/core/landable.js +1 -1
- package/dist/core/lockfile-conflict.d.ts +5 -1
- package/dist/core/lockfile-conflict.js +34 -3
- package/dist/core/review-report-sections.js +2 -1
- package/dist/core/shot-fixtures.d.ts +1 -1
- package/dist/core/shot-fixtures.js +15 -2
- package/dist/core/types.d.ts +8 -0
- package/dist/server/agents.d.ts +19 -0
- package/dist/server/agents.js +44 -3
- package/dist/server/check-gate-lock.d.ts +47 -0
- package/dist/server/check-gate-lock.js +63 -3
- package/dist/server/done.js +5 -6
- package/dist/server/engineer-remote-self-check.js +34 -6
- package/dist/server/handoff-live.d.ts +8 -0
- package/dist/server/handoff-live.js +4 -0
- package/dist/server/handoff-status.d.ts +35 -1
- package/dist/server/handoff-status.js +84 -2
- package/dist/server/handoff.js +115 -14
- package/dist/server/integration-orchestrator.js +30 -3
- package/dist/server/landable.js +11 -3
- package/dist/server/post-handoff-checkpoint-recovery.d.ts +5 -0
- package/dist/server/post-handoff-checkpoint-recovery.js +98 -39
- package/dist/server/request-close-out.js +1 -0
- package/dist/server/review-guard.d.ts +15 -1
- package/dist/server/review-guard.js +95 -28
- package/dist/server/review-report-store.js +3 -1
- package/dist/server/review.d.ts +63 -0
- package/dist/server/review.js +263 -26
- package/dist/server/routes/release.d.ts +9 -0
- package/dist/server/routes/release.js +53 -27
- package/dist/server/routes/tasks.js +21 -5
- package/dist/server/server.js +10 -2
- package/dist/server/sync-bookkeeping-heal.d.ts +3 -0
- package/dist/server/sync-bookkeeping-heal.js +27 -0
- package/dist/server/task-watchdog.d.ts +6 -1
- package/dist/server/task-watchdog.js +25 -0
- package/dist/ui/assets/ActivityIndicator-Cdf1E0O7.js +1 -0
- package/dist/ui/assets/{AgentModelControl-CGjCdY-A.js → AgentModelControl-BWq59rao.js} +1 -1
- package/dist/ui/assets/{AgentModelModal-DEUsHqtN.js → AgentModelModal-IzbvvuVP.js} +1 -1
- package/dist/ui/assets/{AgentsView-w4jAuJuM.css → AgentsView-B2_-D1yF.css} +1 -1
- package/dist/ui/assets/AgentsView-CuNoPU29.js +2 -0
- package/dist/ui/assets/{ChatAgentModelChip-D-f5AGlh.js → ChatAgentModelChip-D1TL9ug2.js} +1 -1
- package/dist/ui/assets/ChecksView-Btipa5hH.js +0 -0
- package/dist/ui/assets/{ChecksView-bW4060TJ.css → ChecksView-u0VznGkb.css} +1 -1
- package/dist/ui/assets/{ClientBoardView-BtHAVc1M.js → ClientBoardView-CoRE6fKX.js} +1 -1
- package/dist/ui/assets/ConfirmDialog-BM-2_LrJ.js +1 -0
- package/dist/ui/assets/ContextView-mRVumAnW.js +4 -0
- package/dist/ui/assets/DashboardView-CfSZZz6I.js +1 -0
- package/dist/ui/assets/DeleteConfirmDialog-YUeTLI_Z.js +1 -0
- package/dist/ui/assets/DeploymentsView-CAxXPEHO.css +1 -0
- package/dist/ui/assets/DeploymentsView-USQXnd85.js +1 -0
- package/dist/ui/assets/DevView-B-hsWoe9.js +2 -0
- package/dist/ui/assets/DevView-BwdViVxh.css +1 -0
- package/dist/ui/assets/{DiffView-B_jjkijb.js → DiffView-DKkUkWx2.js} +1 -1
- package/dist/ui/assets/{FailedTestsList-Sd4Z_nNr.js → FailedTestsList-CqogiNds.js} +1 -1
- package/dist/ui/assets/InputsView-UlJZtBmf.js +1 -0
- package/dist/ui/assets/{LoginView-B8o5rVKh.js → LoginView-Dd6ArYhd.js} +1 -1
- package/dist/ui/assets/PageSkeleton-B2yYxJ5C.js +1 -0
- package/dist/ui/assets/PageSkeleton-DVEAY03M.css +1 -0
- package/dist/ui/assets/ReleasesView-BwqinG0s.css +1 -0
- package/dist/ui/assets/ReleasesView-CL3DwrG1.js +5 -0
- package/dist/ui/assets/SecretsView-BoAM5ZFz.js +1 -0
- package/dist/ui/assets/SettingsView-DhS0nsev.js +4 -0
- package/dist/ui/assets/StoriesView-CjOIyfTn.js +1 -0
- package/dist/ui/assets/{VoiceDictate-B2MSEMQv.js → VoiceDictate-Cc-5ddwN.js} +1 -1
- package/dist/ui/assets/WorkView-Bx_krrOw.css +1 -0
- package/dist/ui/assets/WorkView-DDZFg62r.js +2 -0
- package/dist/ui/assets/{abnfDiagram-VCTEODGH-DryGHWlE.js → abnfDiagram-VCTEODGH-Cx0tUBL_.js} +1 -1
- package/dist/ui/assets/activity-motion-B2lQWN0R.js +1 -0
- package/dist/ui/assets/{architectureDiagram-5GKGNRK7-Ueawnvag.js → architectureDiagram-5GKGNRK7-2FvpbVyc.js} +1 -1
- package/dist/ui/assets/{blockDiagram-I7D4REHJ-5Wq5ln5C.js → blockDiagram-I7D4REHJ-DJliOpU1.js} +1 -1
- package/dist/ui/assets/{c4Diagram-7LVT6UL2-ByHbNTwS.js → c4Diagram-7LVT6UL2-CA0ys_Fp.js} +1 -1
- package/dist/ui/assets/channel-B9Xne7W5.js +1 -0
- package/dist/ui/assets/{check-setup-DF3Qbm7Z.js → check-setup-CeF8K0Ta.js} +1 -1
- package/dist/ui/assets/checkbox-DQJ1FrVo.js +1 -0
- package/dist/ui/assets/{chunk-2E4U76K2-B4qH-3a6.js → chunk-2E4U76K2-HUmgu9l1.js} +1 -1
- package/dist/ui/assets/{chunk-4HAMMTFA-DuMIxuo8.js → chunk-4HAMMTFA-dee7B3F3.js} +1 -1
- package/dist/ui/assets/{chunk-75Z2AOVW-DvF5482n.js → chunk-75Z2AOVW-SXg8pQTv.js} +1 -1
- package/dist/ui/assets/{chunk-CLGD4ZFX-BY9jsZYy.js → chunk-CLGD4ZFX-BvMUtFKF.js} +1 -1
- package/dist/ui/assets/{chunk-DU6HZSFF-DWOIxL1_.js → chunk-DU6HZSFF-7fLvQCfF.js} +1 -1
- package/dist/ui/assets/{chunk-F27PBJKO-5e0atdG5.js → chunk-F27PBJKO-DWEDndTM.js} +1 -1
- package/dist/ui/assets/{chunk-GMAD6QVW-C6VTc2Vj.js → chunk-GMAD6QVW-ld5iYzY0.js} +1 -1
- package/dist/ui/assets/{chunk-GVQU2GXP-BIFStR5h.js → chunk-GVQU2GXP-Dx0BcPpQ.js} +1 -1
- package/dist/ui/assets/{chunk-IMKFNOWR-C6W81G7J.js → chunk-IMKFNOWR-yf4vgJjB.js} +1 -1
- package/dist/ui/assets/{chunk-L3NEJ4N5-BbSjn49W.js → chunk-L3NEJ4N5-DhrHLAoc.js} +1 -1
- package/dist/ui/assets/{chunk-OSK3NFVY-BdxwKs9t.js → chunk-OSK3NFVY-DACWyehW.js} +1 -1
- package/dist/ui/assets/{chunk-P2QGCYS3-CyEvHkhC.js → chunk-P2QGCYS3-CchOA2fb.js} +1 -1
- package/dist/ui/assets/{chunk-POPQ4Y6H-Dd9wuoOs.js → chunk-POPQ4Y6H-BVI8jxLA.js} +1 -1
- package/dist/ui/assets/{chunk-PWAF6VOD-DvTHa2mX.js → chunk-PWAF6VOD-Bgu2Lavl.js} +1 -1
- package/dist/ui/assets/{chunk-SHT3W25Y-BZHrMNWC.js → chunk-SHT3W25Y-B8UCZZn5.js} +1 -1
- package/dist/ui/assets/{chunk-SVP7TREG-C3uGkfzr.js → chunk-SVP7TREG-CiOBZeQh.js} +1 -1
- package/dist/ui/assets/{chunk-TICWLB2K-bEVmnsCW.js → chunk-TICWLB2K-BWr2VCEi.js} +1 -1
- package/dist/ui/assets/chunk-TLUHSLCS-DzgZCoye.js +2 -0
- package/dist/ui/assets/classDiagram-ZZMXUADV-Y5_878tj.js +1 -0
- package/dist/ui/assets/classDiagram-v2-VYDZK3BY-Y5_878tj.js +1 -0
- package/dist/ui/assets/close-yf0EeB2n.js +1 -0
- package/dist/ui/assets/{cynefinDiagram-5FMLGOSQ-C3mUaqhW.js → cynefinDiagram-5FMLGOSQ-CIEBGq9C.js} +1 -1
- package/dist/ui/assets/{dagre-GXQ25YYZ-B6Lo3YbE.js → dagre-GXQ25YYZ-DFUwGzpJ.js} +1 -1
- package/dist/ui/assets/{diagram-S7CK7UJ4-D_STpxl8.js → diagram-S7CK7UJ4-B2z_8s6N.js} +1 -1
- package/dist/ui/assets/{diagram-UQ7AKVKN-BGMweSF4.js → diagram-UQ7AKVKN-RNi8mtBE.js} +1 -1
- package/dist/ui/assets/{diagram-VSXAHHWV-DnZ7CL2l.js → diagram-VSXAHHWV-DJOrHl2V.js} +1 -1
- package/dist/ui/assets/{diagram-VX7I27RA-DA0SNLL2.js → diagram-VX7I27RA-BoCk40Mp.js} +1 -1
- package/dist/ui/assets/{diagram-Z3DM3KII-Bdpk9z1h.js → diagram-Z3DM3KII-DZfOKrGn.js} +1 -1
- package/dist/ui/assets/{docs-Cf58QoJi.js → docs-DWeL13Ig.js} +1 -1
- package/dist/ui/assets/{ebnfDiagram-PWID7BFC-BYPRBYPX.js → ebnfDiagram-PWID7BFC-CtcfvBiY.js} +1 -1
- package/dist/ui/assets/{erDiagram-RLTQ6QDP-tKjeyYH3.js → erDiagram-RLTQ6QDP-7Dg8Z-8A.js} +1 -1
- package/dist/ui/assets/flowDiagram-HODETNUW-CBeo5hrc.js +1 -0
- package/dist/ui/assets/{ganttDiagram-EL5Y4UJY-pZRckzDe.js → ganttDiagram-EL5Y4UJY-DeWvnrdp.js} +1 -1
- package/dist/ui/assets/{gitGraphDiagram-WWUBYQGX-D_EIT5uo.js → gitGraphDiagram-WWUBYQGX-CTkQ8UMs.js} +1 -1
- package/dist/ui/assets/index-Cc1wtbfr.css +1 -0
- package/dist/ui/assets/index-DNFLwN9U.js +92 -0
- package/dist/ui/assets/{infoDiagram-27XIBGKW-BiNQDfK8.js → infoDiagram-27XIBGKW-M8JfF73h.js} +1 -1
- package/dist/ui/assets/input-BH2-2GgN.js +1 -0
- package/dist/ui/assets/{ishikawaDiagram-5VMMS53U-Dz2bDVEo.js → ishikawaDiagram-5VMMS53U-DlQscBr6.js} +1 -1
- package/dist/ui/assets/{journeyDiagram-3NMN7TZE-C_wfOGre.js → journeyDiagram-3NMN7TZE-Dxn8RCyn.js} +1 -1
- package/dist/ui/assets/{kanban-definition-UXKFOSKX-JTOHk2mx.js → kanban-definition-UXKFOSKX-BOaI3UrI.js} +1 -1
- package/dist/ui/assets/layer-B7s9BFq9.js +1 -0
- package/dist/ui/assets/{line-BzLTvgmm.js → line-BBhPy-km.js} +1 -1
- package/dist/ui/assets/{mermaid-parser.core-CDNdUr1f.js → mermaid-parser.core-D7YyoGVd.js} +1 -1
- package/dist/ui/assets/mermaid.core-VGOvN5S-.js +11 -0
- package/dist/ui/assets/{mindmap-definition-YA3MSWOX-Bqitf_fH.js → mindmap-definition-YA3MSWOX-C0jIoAix.js} +1 -1
- package/dist/ui/assets/page-data-cache-D8m2QE6z.js +1 -0
- package/dist/ui/assets/{pegDiagram-XKGWAZYB-Dv2Okml_.js → pegDiagram-XKGWAZYB-XmYzMBnh.js} +1 -1
- package/dist/ui/assets/{pieDiagram-E7YTZNPT-DvdLMPaN.js → pieDiagram-E7YTZNPT-Bxx8YX7o.js} +1 -1
- package/dist/ui/assets/{quadrantDiagram-AXDQQJYC-CxP-D_4q.js → quadrantDiagram-AXDQQJYC-BAOco837.js} +1 -1
- package/dist/ui/assets/{railroadDiagram-O6MQD6OU-BiI8bRTu.js → railroadDiagram-O6MQD6OU-Cito0Bh9.js} +1 -1
- package/dist/ui/assets/repo-rbX__UAi.js +67 -0
- package/dist/ui/assets/{requirementDiagram-BXWQKSXE-BCnusy2h.js → requirementDiagram-BXWQKSXE-lNCF-Y5S.js} +1 -1
- package/dist/ui/assets/{sankeyDiagram-P5KCCOFB-DVA3ufrv.js → sankeyDiagram-P5KCCOFB-C7gdOOdB.js} +1 -1
- package/dist/ui/assets/{sequenceDiagram-WJ2MYXX4-BI_qh5Hm.js → sequenceDiagram-WJ2MYXX4-D3SSyIft.js} +1 -1
- package/dist/ui/assets/{stateDiagram-D77RDMKH-DyMRnVUJ.js → stateDiagram-D77RDMKH-BPgKeDmA.js} +1 -1
- package/dist/ui/assets/stateDiagram-v2-MP3YSRHH-DXIeWyAw.js +1 -0
- package/dist/ui/assets/{swimlanes-42K2YHIH-DPpIv9k5.js → swimlanes-42K2YHIH-DdhYVWvD.js} +1 -1
- package/dist/ui/assets/swimlanesDiagram-VR7AAH4N-BdYVYpWj.js +8 -0
- package/dist/ui/assets/switch-nW6XUdAS.js +1 -0
- package/dist/ui/assets/{timeline-definition-24CTP7MA-BYllwjwu.js → timeline-definition-24CTP7MA-CBPSn5O3.js} +1 -1
- package/dist/ui/assets/title-BbYxmtoR.js +1 -0
- package/dist/ui/assets/value--sTHtfns.js +1 -0
- package/dist/ui/assets/{vennDiagram-4TSXK5OY-CB0J350t.js → vennDiagram-4TSXK5OY-KyUB3d8i.js} +1 -1
- package/dist/ui/assets/viewport-B7a-WO5s.js +1 -0
- package/dist/ui/assets/{wardleyDiagram-VM6X3IG4-l6N8mMKY.js → wardleyDiagram-VM6X3IG4-BIPtlsSg.js} +1 -1
- package/dist/ui/assets/{xychartDiagram-S5SC5T6Z-BteZhzza.js → xychartDiagram-S5SC5T6Z-B4S39RFg.js} +1 -1
- package/dist/ui/index.html +20 -19
- package/dist/ui/sw.js +2 -2
- package/package.json +1 -1
- package/dist/ui/assets/ActivityIndicator-_ljevAYO.js +0 -1
- package/dist/ui/assets/AgentsView-CpQQsOvX.js +0 -2
- package/dist/ui/assets/ChecksView-NarAgPbO.js +0 -0
- package/dist/ui/assets/ConfirmDialog-C-nDmuId.js +0 -1
- package/dist/ui/assets/ContextView-Dvfmg2ZT.js +0 -4
- package/dist/ui/assets/DashboardView-B_hr_0z1.js +0 -1
- package/dist/ui/assets/DeleteConfirmDialog-CZ-PtFd3.js +0 -1
- package/dist/ui/assets/DeploymentsView-DNipdK1H.css +0 -1
- package/dist/ui/assets/DeploymentsView-TfaRsp51.js +0 -1
- package/dist/ui/assets/DevView-CI2657c-.css +0 -1
- package/dist/ui/assets/DevView-DeUxHwbS.js +0 -2
- package/dist/ui/assets/InputsView-CkQLbsxk.js +0 -1
- package/dist/ui/assets/PageSkeleton-Bt--aAPS.js +0 -1
- package/dist/ui/assets/PageSkeleton-CsTdMpw3.css +0 -1
- package/dist/ui/assets/ReleasesView-3yHTdc8L.css +0 -1
- package/dist/ui/assets/ReleasesView-BtdEfDWQ.js +0 -5
- package/dist/ui/assets/SecretsView-k9VXlh5N.js +0 -1
- package/dist/ui/assets/SettingsView-LN60oARW.js +0 -4
- package/dist/ui/assets/StoriesView-DOdBaLiI.js +0 -1
- package/dist/ui/assets/WorkView-CvRC1bUg.js +0 -2
- package/dist/ui/assets/WorkView-yjNryVHN.css +0 -1
- package/dist/ui/assets/button-II9J4IUe.js +0 -1
- package/dist/ui/assets/channel-xF0QFUVz.js +0 -1
- package/dist/ui/assets/checkbox-4IcB0C9m.js +0 -1
- package/dist/ui/assets/chunk-TLUHSLCS-HY9DRKeu.js +0 -2
- package/dist/ui/assets/classDiagram-ZZMXUADV-DUvPpnoK.js +0 -1
- package/dist/ui/assets/classDiagram-v2-VYDZK3BY-DUvPpnoK.js +0 -1
- package/dist/ui/assets/close-DcpwMOTE.js +0 -1
- package/dist/ui/assets/flowDiagram-HODETNUW-CmlN7AOV.js +0 -1
- package/dist/ui/assets/index-BIkCA9sP.js +0 -92
- package/dist/ui/assets/index-DmBFMTgK.css +0 -1
- package/dist/ui/assets/input-DYSaV-Uv.js +0 -1
- package/dist/ui/assets/mermaid.core-CWhihRvD.js +0 -11
- package/dist/ui/assets/page-data-cache-D5B-w9R_.js +0 -1
- package/dist/ui/assets/repo-DAKR6P_m.js +0 -63
- package/dist/ui/assets/stateDiagram-v2-MP3YSRHH-CJqx7lVE.js +0 -1
- package/dist/ui/assets/swimlanesDiagram-VR7AAH4N-RdmdivWJ.js +0 -8
- package/dist/ui/assets/switch-fubkLBfv.js +0 -1
- package/dist/ui/assets/title-DrjQrrPh.js +0 -1
- package/dist/ui/assets/value-UmIPBXR_.js +0 -1
- package/dist/ui/assets/viewport-vp1hmik7.js +0 -1
package/dist/.build-info.json
CHANGED
package/dist/.build-stamp.json
CHANGED
package/dist/cli/help.js
CHANGED
|
@@ -169,7 +169,7 @@ const GROUPS = [
|
|
|
169
169
|
{
|
|
170
170
|
name: "handoff-status",
|
|
171
171
|
usage: "handoff-status <id> [--json] [--port N]",
|
|
172
|
-
desc: "Non-blocking state of the latest handoff attempt: not requested, running, passed, failed or
|
|
172
|
+
desc: "Non-blocking state of the latest handoff attempt: not requested, running, passed, failed, deferred or superseded (GET /api/tasks/:id/handoff-status)",
|
|
173
173
|
flags: "--json · --port",
|
|
174
174
|
},
|
|
175
175
|
{
|
|
@@ -1580,7 +1580,9 @@ export async function cmdHandoffStatus(args) {
|
|
|
1580
1580
|
? c.yellow("running")
|
|
1581
1581
|
: status.state === "deferred"
|
|
1582
1582
|
? c.yellow("deferred")
|
|
1583
|
-
:
|
|
1583
|
+
: status.state === "superseded"
|
|
1584
|
+
? c.dim("superseded")
|
|
1585
|
+
: c.dim("not requested");
|
|
1584
1586
|
console.log(` ${c.bold(`#${id}`)} handoff: ${label}`);
|
|
1585
1587
|
if (status.step)
|
|
1586
1588
|
console.log(` step: ${status.step}`);
|
|
@@ -1588,6 +1590,8 @@ export async function cmdHandoffStatus(args) {
|
|
|
1588
1590
|
console.log(` reason: ${status.reason}`);
|
|
1589
1591
|
if (status.updatedAt)
|
|
1590
1592
|
console.log(` at: ${status.updatedAt}`);
|
|
1593
|
+
if (status.stale && status.state === "running")
|
|
1594
|
+
console.log(` stale: yes`);
|
|
1591
1595
|
if (status.state === "not_requested") {
|
|
1592
1596
|
console.log(c.dim(` no handoff has been requested for this task (request it with \`repoos mv ${id} review\`)`));
|
|
1593
1597
|
}
|
|
@@ -74,9 +74,22 @@ export function makeSmokeFixture() {
|
|
|
74
74
|
*/
|
|
75
75
|
/** Work view is lazy-loaded; under a loaded gate the board can appear after 500ms. */
|
|
76
76
|
async function waitForWorkBoard(page) {
|
|
77
|
-
await page.waitForFunction(() => document.querySelector(".
|
|
77
|
+
await page.waitForFunction(() => document.querySelector(".work-page") !== null, {
|
|
78
78
|
timeout: 10_000,
|
|
79
79
|
});
|
|
80
|
+
// Board and Pipeline both stay mounted (#1062 scroll preservation); ensure the
|
|
81
|
+
// board is the active pane before smoke clicks task cards on it.
|
|
82
|
+
await page.evaluate(() => {
|
|
83
|
+
for (const btn of Array.from(document.querySelectorAll(".view-toggle-btn"))) {
|
|
84
|
+
if (btn.textContent?.includes("Board") && !btn.classList.contains("active")) {
|
|
85
|
+
btn.click();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
await page.waitForFunction(() => {
|
|
90
|
+
const board = document.querySelector(".board");
|
|
91
|
+
return board instanceof HTMLElement && board.offsetParent !== null;
|
|
92
|
+
}, { timeout: 10_000 });
|
|
80
93
|
}
|
|
81
94
|
async function runUISmokeTest() {
|
|
82
95
|
const fixture = makeSmokeFixture();
|
|
@@ -319,7 +332,7 @@ async function runUISmokeTest() {
|
|
|
319
332
|
// seeds task 9001 (status review) with a stored report so the button is
|
|
320
333
|
// enabled; the flow stops before confirming, so nothing is spawned.
|
|
321
334
|
await goWork();
|
|
322
|
-
await page.click('[data-task-id="9001"]');
|
|
335
|
+
await page.click('.task-card[data-task-id="9001"]');
|
|
323
336
|
await page.waitForTimeout(600); // drawer opens on the Review tab
|
|
324
337
|
await page.waitForFunction(() => {
|
|
325
338
|
const btn = Array.from(document.querySelectorAll("button")).find((b) => (b.textContent ?? "").includes("Send engineer"));
|
|
@@ -1,14 +1,92 @@
|
|
|
1
1
|
export { launcherScript } from "../core/launcher-runtime.js";
|
|
2
|
+
/**
|
|
3
|
+
* The directory containing cli/, core/, server/, ui/, .build-info.json — dist/
|
|
4
|
+
* in a source checkout, or the whole install root for a standalone install.
|
|
5
|
+
* Exported so the server's install detection starts from the same root.
|
|
6
|
+
*/
|
|
7
|
+
export declare function installRoot(): string;
|
|
8
|
+
/**
|
|
9
|
+
* The version in the install's own `.build-info.json`, or null when there is
|
|
10
|
+
* none — the same read `cmdUpgrade` uses. Exported so the server's install
|
|
11
|
+
* detection passes identical input to `upgradeInstruction` and never disagrees
|
|
12
|
+
* with the CLI on the same checkout (#1073 review).
|
|
13
|
+
*/
|
|
14
|
+
export declare function readInstallVersion(root: string): string | null;
|
|
2
15
|
export interface PackageManagerUpgrade {
|
|
3
16
|
label: string;
|
|
4
17
|
command: string;
|
|
5
18
|
}
|
|
19
|
+
/** How this RepoOS was installed, as far as `repoos upgrade` can tell (#1073). */
|
|
20
|
+
export type InstallKind = "standalone" | "source" | "package-manager";
|
|
21
|
+
/** The upgrade instruction a user should run, and how we decided it. */
|
|
22
|
+
export interface UpgradeInstruction {
|
|
23
|
+
installKind: InstallKind;
|
|
24
|
+
/** Package-manager label (e.g. "Homebrew") — only set for `package-manager`. */
|
|
25
|
+
packageManager: string | null;
|
|
26
|
+
/** The exact command/instruction, ready to copy into a terminal. */
|
|
27
|
+
command: string;
|
|
28
|
+
}
|
|
29
|
+
/** The command shown for a source checkout — the same one `repoos upgrade` prints. */
|
|
30
|
+
export declare const SOURCE_UPGRADE_COMMAND = "git pull && bun install && bun run build";
|
|
31
|
+
/**
|
|
32
|
+
* Whether `root` is a source checkout's build output rather than a standalone
|
|
33
|
+
* install (#1073 review).
|
|
34
|
+
*
|
|
35
|
+
* The version alone cannot tell them apart: `scripts/copy-assets.mjs` writes
|
|
36
|
+
* `package.json`'s version into `dist/.build-info.json` on every source build,
|
|
37
|
+
* so a built checkout looks exactly like a curl install. The reliable signal is
|
|
38
|
+
* structure: a checkout's install root is `<repo>/dist` (or `<repo>/src` for a
|
|
39
|
+
* `bun src/...` run), and its parent holds `src/` + `package.json`, or a `.git`
|
|
40
|
+
* directory. A standalone install's parent holds neither.
|
|
41
|
+
*/
|
|
42
|
+
export declare function isSourceCheckout(root: string): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The prerelease channel a version belongs to (`0.6.0-beta.1` → `"beta"`), or
|
|
45
|
+
* null for a stable version. Release tags carry the channel as the prerelease
|
|
46
|
+
* identifier, so an installed channel build is how the update dialog knows to
|
|
47
|
+
* offer `repoos upgrade --channel <name>` (docs/releases.md).
|
|
48
|
+
*/
|
|
49
|
+
export declare function channelFromVersion(version: string | null): string | null;
|
|
50
|
+
/**
|
|
51
|
+
* The install instruction for a checkout, matching `cmdUpgrade`'s own
|
|
52
|
+
* detection so the dashboard dialog and the CLI never disagree (#1073).
|
|
53
|
+
* Pure and exported: the server calls it to fill `upgradeCommand` /
|
|
54
|
+
* `installKind` on `GET /api/release/available`, and #1072 reuses it.
|
|
55
|
+
*
|
|
56
|
+
* Detection order mirrors `cmdUpgrade`:
|
|
57
|
+
* 1. a recognized package-manager path → that manager's update command;
|
|
58
|
+
* 2. a source checkout (`isSourceCheckout`) or no `.build-info.json`
|
|
59
|
+
* (`version` is null) → the source-checkout command;
|
|
60
|
+
* 3. otherwise → standalone (curl) install, with the channel form when the
|
|
61
|
+
* installed version is a prerelease.
|
|
62
|
+
*
|
|
63
|
+
* `sourceCheckout` overrides the filesystem probe for tests; production callers
|
|
64
|
+
* omit it.
|
|
65
|
+
*/
|
|
66
|
+
export declare function upgradeInstruction(input: {
|
|
67
|
+
installRoot: string;
|
|
68
|
+
version: string | null;
|
|
69
|
+
channel?: string | null;
|
|
70
|
+
sourceCheckout?: boolean;
|
|
71
|
+
}): UpgradeInstruction;
|
|
6
72
|
/**
|
|
7
73
|
* Infer the package manager from the installed package path. `root` is the
|
|
8
74
|
* compiled dist/ directory, so it keeps enough of the global-install path to
|
|
9
75
|
* distinguish Homebrew, mise, Bun, pnpm, and npm.
|
|
10
76
|
*/
|
|
11
77
|
export declare function packageManagerUpgrade(root: string): PackageManagerUpgrade | null;
|
|
78
|
+
interface ReleaseAsset {
|
|
79
|
+
name: string;
|
|
80
|
+
browser_download_url: string;
|
|
81
|
+
}
|
|
82
|
+
export interface Release {
|
|
83
|
+
tag_name: string;
|
|
84
|
+
assets: ReleaseAsset[];
|
|
85
|
+
prerelease?: boolean;
|
|
86
|
+
html_url?: string;
|
|
87
|
+
/** GitHub release body — the notes authored in the "Cut a release" modal (#0361), when set. */
|
|
88
|
+
body?: string | null;
|
|
89
|
+
}
|
|
12
90
|
/**
|
|
13
91
|
* The release notes to print after an upgrade, or null when there's nothing
|
|
14
92
|
* to show — GitHub returns `body` as `null`/absent for a release cut with an
|
|
@@ -16,4 +94,15 @@ export declare function packageManagerUpgrade(root: string): PackageManagerUpgra
|
|
|
16
94
|
* stay silent then, not print an empty line or "no notes available" filler.
|
|
17
95
|
*/
|
|
18
96
|
export declare function releaseNotesToPrint(body: string | null | undefined): string | null;
|
|
97
|
+
/**
|
|
98
|
+
* `GET /releases/latest` always excludes prereleases (GitHub's own rule, not
|
|
99
|
+
* configurable) — release.yml marks any tag with a "-" (v0.6.0-beta.1,
|
|
100
|
+
* -canary.N, -rc.N) as a prerelease, exactly so stable users never get handed
|
|
101
|
+
* one from this endpoint. A channel opt-in has to use the list endpoint
|
|
102
|
+
* instead and find its own match.
|
|
103
|
+
*
|
|
104
|
+
* Exported so the update dialog's banner (#1073) compares against exactly the
|
|
105
|
+
* release `repoos upgrade --channel <name>` would install.
|
|
106
|
+
*/
|
|
107
|
+
export declare function fetchLatestRelease(channel: string | null, signal?: AbortSignal): Promise<Release>;
|
|
19
108
|
export declare function cmdUpgrade(args: string[]): Promise<void>;
|
package/dist/commands/upgrade.js
CHANGED
|
@@ -15,11 +15,21 @@ import { c } from "../cli/colors.js";
|
|
|
15
15
|
import { launcherScript } from "../core/launcher-runtime.js";
|
|
16
16
|
export { launcherScript } from "../core/launcher-runtime.js";
|
|
17
17
|
const REPO = "repo-os/repoos";
|
|
18
|
-
/**
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* The directory containing cli/, core/, server/, ui/, .build-info.json — dist/
|
|
20
|
+
* in a source checkout, or the whole install root for a standalone install.
|
|
21
|
+
* Exported so the server's install detection starts from the same root.
|
|
22
|
+
*/
|
|
23
|
+
export function installRoot() {
|
|
20
24
|
return dirname(dirname(fileURLToPath(import.meta.url)));
|
|
21
25
|
}
|
|
22
|
-
|
|
26
|
+
/**
|
|
27
|
+
* The version in the install's own `.build-info.json`, or null when there is
|
|
28
|
+
* none — the same read `cmdUpgrade` uses. Exported so the server's install
|
|
29
|
+
* detection passes identical input to `upgradeInstruction` and never disagrees
|
|
30
|
+
* with the CLI on the same checkout (#1073 review).
|
|
31
|
+
*/
|
|
32
|
+
export function readInstallVersion(root) {
|
|
23
33
|
try {
|
|
24
34
|
const info = JSON.parse(readFileSync(join(root, ".build-info.json"), "utf8"));
|
|
25
35
|
return info.version ?? null;
|
|
@@ -28,6 +38,78 @@ function readVersion(root) {
|
|
|
28
38
|
return null;
|
|
29
39
|
}
|
|
30
40
|
}
|
|
41
|
+
/** The command shown for a source checkout — the same one `repoos upgrade` prints. */
|
|
42
|
+
export const SOURCE_UPGRADE_COMMAND = "git pull && bun install && bun run build";
|
|
43
|
+
/**
|
|
44
|
+
* Whether `root` is a source checkout's build output rather than a standalone
|
|
45
|
+
* install (#1073 review).
|
|
46
|
+
*
|
|
47
|
+
* The version alone cannot tell them apart: `scripts/copy-assets.mjs` writes
|
|
48
|
+
* `package.json`'s version into `dist/.build-info.json` on every source build,
|
|
49
|
+
* so a built checkout looks exactly like a curl install. The reliable signal is
|
|
50
|
+
* structure: a checkout's install root is `<repo>/dist` (or `<repo>/src` for a
|
|
51
|
+
* `bun src/...` run), and its parent holds `src/` + `package.json`, or a `.git`
|
|
52
|
+
* directory. A standalone install's parent holds neither.
|
|
53
|
+
*/
|
|
54
|
+
export function isSourceCheckout(root) {
|
|
55
|
+
const parent = dirname(root);
|
|
56
|
+
try {
|
|
57
|
+
if (existsSync(join(parent, ".git")))
|
|
58
|
+
return true;
|
|
59
|
+
return existsSync(join(parent, "src")) && existsSync(join(parent, "package.json"));
|
|
60
|
+
}
|
|
61
|
+
catch {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The prerelease channel a version belongs to (`0.6.0-beta.1` → `"beta"`), or
|
|
67
|
+
* null for a stable version. Release tags carry the channel as the prerelease
|
|
68
|
+
* identifier, so an installed channel build is how the update dialog knows to
|
|
69
|
+
* offer `repoos upgrade --channel <name>` (docs/releases.md).
|
|
70
|
+
*/
|
|
71
|
+
export function channelFromVersion(version) {
|
|
72
|
+
if (!version)
|
|
73
|
+
return null;
|
|
74
|
+
const match = version.trim().match(/^\d+\.\d+\.\d+-([A-Za-z]+)\./);
|
|
75
|
+
return match ? match[1] : null;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The install instruction for a checkout, matching `cmdUpgrade`'s own
|
|
79
|
+
* detection so the dashboard dialog and the CLI never disagree (#1073).
|
|
80
|
+
* Pure and exported: the server calls it to fill `upgradeCommand` /
|
|
81
|
+
* `installKind` on `GET /api/release/available`, and #1072 reuses it.
|
|
82
|
+
*
|
|
83
|
+
* Detection order mirrors `cmdUpgrade`:
|
|
84
|
+
* 1. a recognized package-manager path → that manager's update command;
|
|
85
|
+
* 2. a source checkout (`isSourceCheckout`) or no `.build-info.json`
|
|
86
|
+
* (`version` is null) → the source-checkout command;
|
|
87
|
+
* 3. otherwise → standalone (curl) install, with the channel form when the
|
|
88
|
+
* installed version is a prerelease.
|
|
89
|
+
*
|
|
90
|
+
* `sourceCheckout` overrides the filesystem probe for tests; production callers
|
|
91
|
+
* omit it.
|
|
92
|
+
*/
|
|
93
|
+
export function upgradeInstruction(input) {
|
|
94
|
+
const packageManager = packageManagerUpgrade(input.installRoot);
|
|
95
|
+
if (packageManager) {
|
|
96
|
+
return {
|
|
97
|
+
installKind: "package-manager",
|
|
98
|
+
packageManager: packageManager.label,
|
|
99
|
+
command: packageManager.command,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
const source = input.sourceCheckout ?? isSourceCheckout(input.installRoot);
|
|
103
|
+
if (source || input.version === null) {
|
|
104
|
+
return { installKind: "source", packageManager: null, command: SOURCE_UPGRADE_COMMAND };
|
|
105
|
+
}
|
|
106
|
+
const channel = input.channel ?? null;
|
|
107
|
+
return {
|
|
108
|
+
installKind: "standalone",
|
|
109
|
+
packageManager: null,
|
|
110
|
+
command: channel ? `repoos upgrade --channel ${channel}` : "repoos upgrade",
|
|
111
|
+
};
|
|
112
|
+
}
|
|
31
113
|
/**
|
|
32
114
|
* Infer the package manager from the installed package path. `root` is the
|
|
33
115
|
* compiled dist/ directory, so it keeps enough of the global-install path to
|
|
@@ -77,16 +159,19 @@ function parseChannel(args) {
|
|
|
77
159
|
* -canary.N, -rc.N) as a prerelease, exactly so stable users never get handed
|
|
78
160
|
* one from this endpoint. A channel opt-in has to use the list endpoint
|
|
79
161
|
* instead and find its own match.
|
|
162
|
+
*
|
|
163
|
+
* Exported so the update dialog's banner (#1073) compares against exactly the
|
|
164
|
+
* release `repoos upgrade --channel <name>` would install.
|
|
80
165
|
*/
|
|
81
|
-
async function fetchLatestRelease(channel) {
|
|
166
|
+
export async function fetchLatestRelease(channel, signal) {
|
|
82
167
|
if (!channel) {
|
|
83
|
-
const res = await fetch(`https://api.github.com/repos/${REPO}/releases/latest
|
|
168
|
+
const res = await fetch(`https://api.github.com/repos/${REPO}/releases/latest`, { signal });
|
|
84
169
|
if (!res.ok)
|
|
85
170
|
throw new Error(`GitHub API returned ${res.status}`);
|
|
86
171
|
return (await res.json());
|
|
87
172
|
}
|
|
88
173
|
// Newest first by default; the first tag matching "-<channel>." wins.
|
|
89
|
-
const res = await fetch(`https://api.github.com/repos/${REPO}/releases?per_page=30
|
|
174
|
+
const res = await fetch(`https://api.github.com/repos/${REPO}/releases?per_page=30`, { signal });
|
|
90
175
|
if (!res.ok)
|
|
91
176
|
throw new Error(`GitHub API returned ${res.status}`);
|
|
92
177
|
const releases = (await res.json());
|
|
@@ -98,22 +183,26 @@ async function fetchLatestRelease(channel) {
|
|
|
98
183
|
export async function cmdUpgrade(args) {
|
|
99
184
|
const root = installRoot();
|
|
100
185
|
const channel = parseChannel(args);
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
|
|
186
|
+
const instruction = upgradeInstruction({
|
|
187
|
+
installRoot: root,
|
|
188
|
+
version: readInstallVersion(root),
|
|
189
|
+
channel,
|
|
190
|
+
});
|
|
191
|
+
if (instruction.installKind === "package-manager") {
|
|
192
|
+
console.log(c.yellow(` repoos was installed with ${instruction.packageManager}.`));
|
|
104
193
|
console.log(c.dim(" Update it with:"));
|
|
105
|
-
console.log(c.dim(` ${
|
|
194
|
+
console.log(c.dim(` ${instruction.command}`));
|
|
106
195
|
if (channel) {
|
|
107
196
|
console.log(c.dim(` --channel ${channel} only applies to standalone curl installs.`));
|
|
108
197
|
}
|
|
109
198
|
return;
|
|
110
199
|
}
|
|
111
|
-
|
|
112
|
-
if (!current) {
|
|
200
|
+
if (instruction.installKind === "source") {
|
|
113
201
|
console.log(c.yellow(" repoos appears to be running from a source checkout, not a standalone install."));
|
|
114
|
-
console.log(c.dim(
|
|
202
|
+
console.log(c.dim(` Update it with: ${instruction.command}`));
|
|
115
203
|
return;
|
|
116
204
|
}
|
|
205
|
+
const current = readInstallVersion(root);
|
|
117
206
|
console.log(c.dim(` Current version: v${current}`));
|
|
118
207
|
console.log(c.dim(channel ? ` Checking latest "${channel}" release…` : " Checking latest release…"));
|
|
119
208
|
let release;
|
|
@@ -37,10 +37,14 @@ describe("activity animation config (#0787)", () => {
|
|
|
37
37
|
expect(findConfigValueProblems({ activityAnimationStyle: "three-dots" })).toEqual([]);
|
|
38
38
|
});
|
|
39
39
|
it("exposes the setting in schema and supported keys", () => {
|
|
40
|
+
const enabled = getConfigSchema().find((f) => f.key === "activityAnimationEnabled");
|
|
41
|
+
expect(enabled?.type).toBe("boolean");
|
|
42
|
+
expect(enabled?.default).toBe(true);
|
|
40
43
|
const field = getConfigSchema().find((f) => f.key === "activityAnimationStyle");
|
|
41
44
|
expect(field?.type).toBe("select");
|
|
42
45
|
expect(field?.default).toBe("orbital-pixel");
|
|
43
46
|
expect(field?.options?.map((o) => o.value)).toEqual([...ACTIVITY_ANIMATION_STYLES]);
|
|
47
|
+
expect(SUPPORTED_TOML_KEYS).toContain("activityAnimationEnabled");
|
|
44
48
|
expect(SUPPORTED_TOML_KEYS).toContain("activityAnimationStyle");
|
|
45
49
|
});
|
|
46
50
|
it("adds arcade-hopper and puppy-tracks without moving the orbital default (#0807)", () => {
|
package/dist/core/config.js
CHANGED
|
@@ -79,7 +79,8 @@ export const DEFAULT_AGENTS = [
|
|
|
79
79
|
"`highlight` selector that exists on the page; then open the captured PNG and confirm it shows the change. " +
|
|
80
80
|
"Before handoff, re-read the newest review report and any message sent to you; fix EVERY item, and when a " +
|
|
81
81
|
"finding names a bug, find its whole class (grep sibling paths, callers, config/schema/docs/test " +
|
|
82
|
-
"registrations) and fix all instances with a table-driven test instead of patching one.
|
|
82
|
+
"registrations) and fix all instances with a table-driven test instead of patching one. " +
|
|
83
|
+
"A new config key " +
|
|
83
84
|
"needs a Settings control, a `getConfigSchema()` entry, an entry in the supported-keys list and docs. Run " +
|
|
84
85
|
"the scoped check once and hand off only when it passes; end the final message with the handoff signal " +
|
|
85
86
|
"alone on its own line. After a merge conflict with the base branch, merge it and take the base branch's " +
|
|
@@ -193,6 +194,7 @@ export const DEFAULT_CONFIG = {
|
|
|
193
194
|
theme: "system",
|
|
194
195
|
uiTheme: "classic",
|
|
195
196
|
defaultTaskMode: "freeform",
|
|
197
|
+
activityAnimationEnabled: true,
|
|
196
198
|
activityAnimationStyle: "orbital-pixel",
|
|
197
199
|
activityAnimationSize: DEFAULT_ACTIVITY_ANIMATION_SIZE,
|
|
198
200
|
activityAnimationConcurrency: 6,
|
|
@@ -281,6 +283,7 @@ export const DEFAULT_CONFIG = {
|
|
|
281
283
|
// is flagged for a human.
|
|
282
284
|
review: {
|
|
283
285
|
humanFlagAfterPasses: 5,
|
|
286
|
+
freezeAfterPasses: 4,
|
|
284
287
|
timeoutMinutes: 15,
|
|
285
288
|
},
|
|
286
289
|
// Check-gate defaults (#0655): how many times a failing test file is
|
|
@@ -1512,6 +1515,9 @@ export function loadConfig(rootArg, options = {}) {
|
|
|
1512
1515
|
const taskMode = get("defaultTaskMode");
|
|
1513
1516
|
if (taskMode === "freeform" || taskMode === "manual")
|
|
1514
1517
|
cfg.defaultTaskMode = taskMode;
|
|
1518
|
+
if (typeof get("activityAnimationEnabled") === "boolean") {
|
|
1519
|
+
cfg.activityAnimationEnabled = get("activityAnimationEnabled");
|
|
1520
|
+
}
|
|
1515
1521
|
const activityStyle = get("activityAnimationStyle");
|
|
1516
1522
|
if (typeof activityStyle === "string" &&
|
|
1517
1523
|
ACTIVITY_ANIMATION_STYLES.includes(activityStyle)) {
|
|
@@ -2379,6 +2385,7 @@ export function loadConfig(rootArg, options = {}) {
|
|
|
2379
2385
|
? Number(raw.trim())
|
|
2380
2386
|
: undefined;
|
|
2381
2387
|
const reviewHumanFlag = reviewNumber(parsed["review.humanFlagAfterPasses"]);
|
|
2388
|
+
const reviewFreeze = reviewNumber(parsed["review.freezeAfterPasses"]);
|
|
2382
2389
|
const reviewTimeout = reviewNumber(parsed["review.timeoutMinutes"]);
|
|
2383
2390
|
const review = { ...DEFAULT_CONFIG.review, ...cfg.review };
|
|
2384
2391
|
let reviewConfigured = false;
|
|
@@ -2386,6 +2393,10 @@ export function loadConfig(rootArg, options = {}) {
|
|
|
2386
2393
|
review.humanFlagAfterPasses = Math.min(50, Math.floor(reviewHumanFlag));
|
|
2387
2394
|
reviewConfigured = true;
|
|
2388
2395
|
}
|
|
2396
|
+
if (reviewFreeze !== undefined && Number.isFinite(reviewFreeze) && reviewFreeze >= 1) {
|
|
2397
|
+
review.freezeAfterPasses = Math.min(50, Math.floor(reviewFreeze));
|
|
2398
|
+
reviewConfigured = true;
|
|
2399
|
+
}
|
|
2389
2400
|
if (reviewTimeout !== undefined && Number.isFinite(reviewTimeout) && reviewTimeout >= 1) {
|
|
2390
2401
|
review.timeoutMinutes = Math.min(240, Math.floor(reviewTimeout));
|
|
2391
2402
|
reviewConfigured = true;
|
|
@@ -2573,8 +2584,17 @@ export function getConfigSchema() {
|
|
|
2573
2584
|
description: "Which flow the New task drawer opens with",
|
|
2574
2585
|
},
|
|
2575
2586
|
{
|
|
2576
|
-
key: "
|
|
2587
|
+
key: "activityAnimationEnabled",
|
|
2577
2588
|
label: "Activity animation",
|
|
2589
|
+
type: "boolean",
|
|
2590
|
+
tier: "live",
|
|
2591
|
+
restartRequired: false,
|
|
2592
|
+
default: DEFAULT_CONFIG.activityAnimationEnabled,
|
|
2593
|
+
description: "Show motion beside live agent work; off keeps a plain colored status dot.",
|
|
2594
|
+
},
|
|
2595
|
+
{
|
|
2596
|
+
key: "activityAnimationStyle",
|
|
2597
|
+
label: "Animation style",
|
|
2578
2598
|
type: "select",
|
|
2579
2599
|
tier: "live",
|
|
2580
2600
|
restartRequired: false,
|
|
@@ -2583,7 +2603,7 @@ export function getConfigSchema() {
|
|
|
2583
2603
|
value,
|
|
2584
2604
|
label: ACTIVITY_ANIMATION_STYLE_LABELS[value],
|
|
2585
2605
|
})),
|
|
2586
|
-
description: "
|
|
2606
|
+
description: "Compact motion style; Three dots keeps the legacy pulsing row.",
|
|
2587
2607
|
},
|
|
2588
2608
|
{
|
|
2589
2609
|
key: "activityAnimationSize",
|
|
@@ -2596,7 +2616,7 @@ export function getConfigSchema() {
|
|
|
2596
2616
|
value,
|
|
2597
2617
|
label: ACTIVITY_ANIMATION_SIZE_LABELS[value],
|
|
2598
2618
|
})),
|
|
2599
|
-
description: "
|
|
2619
|
+
description: "Fixed pixel width on task cards, Pipeline, Dev and the preview below.",
|
|
2600
2620
|
},
|
|
2601
2621
|
{
|
|
2602
2622
|
key: "activityAnimationConcurrency",
|
|
@@ -2608,7 +2628,7 @@ export function getConfigSchema() {
|
|
|
2608
2628
|
min: 0,
|
|
2609
2629
|
max: 24,
|
|
2610
2630
|
step: 1,
|
|
2611
|
-
description: "
|
|
2631
|
+
description: "Cap on simultaneously animated indicators that are on screen; off-screen cards do not count.",
|
|
2612
2632
|
},
|
|
2613
2633
|
{
|
|
2614
2634
|
key: "defaultAssignee",
|
|
@@ -3156,6 +3176,17 @@ export function getConfigSchema() {
|
|
|
3156
3176
|
"bug classes earlier passes kept finding and the task is flagged for a human. Default 5. The flag is " +
|
|
3157
3177
|
"separate from the auto-bounce review-rounds-exhausted backstop.",
|
|
3158
3178
|
},
|
|
3179
|
+
{
|
|
3180
|
+
key: "review.freezeAfterPasses",
|
|
3181
|
+
label: "Freeze the blocking bar after",
|
|
3182
|
+
type: "number",
|
|
3183
|
+
tier: "live",
|
|
3184
|
+
restartRequired: false,
|
|
3185
|
+
default: DEFAULT_CONFIG.review.freezeAfterPasses,
|
|
3186
|
+
description: "Completed review passes on one task before the blocking bar freezes. From the next pass on, only real " +
|
|
3187
|
+
"defects, regressions and landing blockers can block; further edge cases and hardening ideas become " +
|
|
3188
|
+
"non-blocking suggestions. Default 4. P3 tasks and Easter eggs bundles use the lighter bar from pass 1.",
|
|
3189
|
+
},
|
|
3159
3190
|
{
|
|
3160
3191
|
key: "review.timeoutMinutes",
|
|
3161
3192
|
label: "Review timeout",
|
|
@@ -4041,6 +4072,7 @@ export const SUPPORTED_TOML_KEYS = [
|
|
|
4041
4072
|
"defaultStatus",
|
|
4042
4073
|
"defaultAssignee",
|
|
4043
4074
|
"defaultTaskMode",
|
|
4075
|
+
"activityAnimationEnabled",
|
|
4044
4076
|
"activityAnimationStyle",
|
|
4045
4077
|
"activityAnimationSize",
|
|
4046
4078
|
"activityAnimationConcurrency",
|
|
@@ -4304,6 +4336,7 @@ export const SUPPORTED_TOML_KEYS = [
|
|
|
4304
4336
|
"reviewVerification.guardTestCheck",
|
|
4305
4337
|
"reviewVerification.testGlobs",
|
|
4306
4338
|
"review.humanFlagAfterPasses",
|
|
4339
|
+
"review.freezeAfterPasses",
|
|
4307
4340
|
"review.timeoutMinutes",
|
|
4308
4341
|
// Remote validation
|
|
4309
4342
|
"remoteValidation.enabled",
|
package/dist/core/git.d.ts
CHANGED
|
@@ -503,6 +503,13 @@ export declare function getChangedFilePaths(worktree: string, baseBranch: string
|
|
|
503
503
|
* worktree for `branch` is used when present, else the repo root.
|
|
504
504
|
*/
|
|
505
505
|
export declare function branchChangedPaths(root: string, branch: string, baseBranch?: string, timeout?: number): Promise<string[] | null>;
|
|
506
|
+
/**
|
|
507
|
+
* Drop foreign bookkeeping paths from a branch's changed-path list when the
|
|
508
|
+
* branch tip already matches main (#1086). The merge-base..HEAD diff can still
|
|
509
|
+
* name a path another task landed on main while this branch was open even though
|
|
510
|
+
* HEAD's blob matches main — that must not fail the Task scope check.
|
|
511
|
+
*/
|
|
512
|
+
export declare function dropForeignBookkeepingPathsMatchingMain(root: string, branch: string, baseBranch: string, paths: string[], isForeign: (path: string) => boolean, timeout?: number): Promise<string[]>;
|
|
506
513
|
/** Whether git is installed at all (independent of being inside a repo). */
|
|
507
514
|
export declare function gitAvailable(root: string): boolean;
|
|
508
515
|
/** `git config --get <key>` value, or null when unset or git is missing. */
|
|
@@ -760,6 +767,98 @@ export declare function isTaskMarkdownBookkeepingPath(path: string, workDir?: st
|
|
|
760
767
|
* report files under `<workDir>/reports/<task-id>/` (#1013).
|
|
761
768
|
*/
|
|
762
769
|
export declare function isTaskBookkeepingPath(path: string, filter?: WorkFileFilter): boolean;
|
|
770
|
+
/**
|
|
771
|
+
* The paths in `paths` that are ANOTHER task's board bookkeeping — a
|
|
772
|
+
* `work/<other-id>-*.md` task file, or a `work/reports/<other-id>/**` file
|
|
773
|
+
* (#1076). These are written into a task worktree by the server (activity/CTO
|
|
774
|
+
* notes, task sync, merges of main) and must never ride a commit made in that
|
|
775
|
+
* worktree: a bare `git commit` folds whatever is staged into the branch, so a
|
|
776
|
+
* checkpoint that only meant to capture the engineer's own work re-commits a
|
|
777
|
+
* sibling task's file, and the branch then fails the landing preflight
|
|
778
|
+
* ("the diff changes another task's bookkeeping").
|
|
779
|
+
*
|
|
780
|
+
* This task's own markdown (`work/<taskId>-*.md`) and its own report directory
|
|
781
|
+
* (`work/reports/<taskId>/**`) are NOT foreign and are never returned.
|
|
782
|
+
* `taskId` is required: without it the caller cannot tell its own file from a
|
|
783
|
+
* sibling's, and every `work/*.md` would look foreign.
|
|
784
|
+
*/
|
|
785
|
+
export declare function foreignTaskBookkeepingPaths(paths: string[], filter: WorkFileFilter & {
|
|
786
|
+
taskId: string;
|
|
787
|
+
}): string[];
|
|
788
|
+
/**
|
|
789
|
+
* Another task's bookkeeping paths already STAGED in `worktree`'s index (#1076).
|
|
790
|
+
*
|
|
791
|
+
* The dirty-file list (`uncommittedWorkFiles`) discounts every `work/` path as
|
|
792
|
+
* generated/runtime, so a foreign `work/<other-id>-*.md` left staged by an
|
|
793
|
+
* earlier `git add -A` is invisible there and survives into the next bare
|
|
794
|
+
* commit. This reads the index directly (`git diff --cached --name-only`), so a
|
|
795
|
+
* commit boundary can reset exactly the foreign paths the index holds.
|
|
796
|
+
*/
|
|
797
|
+
export declare function stagedForeignBookkeepingPaths(worktree: string, filter: WorkFileFilter & {
|
|
798
|
+
taskId: string;
|
|
799
|
+
}): Promise<string[]>;
|
|
800
|
+
/**
|
|
801
|
+
* Paths under managed bookkeeping dirs that a task branch must not carry — the
|
|
802
|
+
* same set `isForbiddenTaskScopePath` flags for landing, except `repoos.toml`
|
|
803
|
+
* (handled by `guardStrayRepoosTomlOnTaskBranch`). Covers `work/`, `inputs/`,
|
|
804
|
+
* and `stories/` (#1086).
|
|
805
|
+
*/
|
|
806
|
+
export declare function foreignScopeDriftPaths(paths: string[], opts: {
|
|
807
|
+
taskId: string;
|
|
808
|
+
ownTaskFile: string | null;
|
|
809
|
+
workDir?: string;
|
|
810
|
+
inputsDir?: string;
|
|
811
|
+
storiesDir?: string;
|
|
812
|
+
}): string[];
|
|
813
|
+
/**
|
|
814
|
+
* Restore main's copy of foreign bookkeeping under `work/`, `inputs/`, and
|
|
815
|
+
* `stories/` on a task branch (#1076, #1086). Candidates come from committed
|
|
816
|
+
* drift, the index, the working tree, and untracked files so handoff does not
|
|
817
|
+
* leave the reporter's "modified + untracked" siblings behind.
|
|
818
|
+
*
|
|
819
|
+
* Same rule close-out applies (`resetForeignWorkFiles`), with one nuance (#1086):
|
|
820
|
+
* siblings present at the merge-base get main's current tip; post-merge siblings
|
|
821
|
+
* that only exist on main after the branch point are dropped from the branch
|
|
822
|
+
* entirely rather than copied in.
|
|
823
|
+
*
|
|
824
|
+
* Changed paths are still graded over `merge-base..HEAD`; restoring main's
|
|
825
|
+
* bytes removes the foreign path from that diff (or matches main so scope can
|
|
826
|
+
* pass). `baseBranch` is the integration branch (normally `main`), resolved by
|
|
827
|
+
* the caller via `resolveDefaultBranch`, not the main checkout's
|
|
828
|
+
* `currentBranch()` (#1076).
|
|
829
|
+
*
|
|
830
|
+
* Returns the repo-relative foreign paths it touched, empty when there were
|
|
831
|
+
* none. Fails soft (`[]`) when the branch point or base tip cannot be resolved.
|
|
832
|
+
* Throws on git failures; handoff fails closed on those errors, while sync's
|
|
833
|
+
* `healForeignBookkeepingAfterSync` swallows them as best-effort.
|
|
834
|
+
*/
|
|
835
|
+
export declare function restoreForeignTaskBookkeepingFromMain(opts: {
|
|
836
|
+
worktree: string;
|
|
837
|
+
baseBranch: string;
|
|
838
|
+
taskId: string;
|
|
839
|
+
/** This task's own task file (repo-relative) — never restored or removed. */
|
|
840
|
+
ownTaskFile: string | null;
|
|
841
|
+
workDir?: string;
|
|
842
|
+
inputsDir?: string;
|
|
843
|
+
storiesDir?: string;
|
|
844
|
+
}): Promise<string[]>;
|
|
845
|
+
/**
|
|
846
|
+
* Drop the tracked `dist/` from a task worktree's branch, as one bookkeeping
|
|
847
|
+
* commit, without letting any OTHER task's `work/` bookkeeping ride along
|
|
848
|
+
* (#1076). `dist/` is regenerated from source on main right after the close-out
|
|
849
|
+
* merge, and leaving it tracked makes hashed Vite asset filenames conflict
|
|
850
|
+
* artificially.
|
|
851
|
+
*
|
|
852
|
+
* The commit must stay bare: after `git rm -r --cached -- dist/`, the deletion
|
|
853
|
+
* is untracked in the working tree, so a pathspec commit (`git commit -- dist/`)
|
|
854
|
+
* sees nothing to commit and leaves `dist/` tracked in HEAD (a silent no-op).
|
|
855
|
+
* A bare commit would otherwise fold in whatever the index holds — including a
|
|
856
|
+
* sibling's `work/<other-id>-*.md` staged by a concurrent board write — so the
|
|
857
|
+
* foreign paths are unstaged first. Returns true when a commit was made.
|
|
858
|
+
*/
|
|
859
|
+
export declare function dropDistBeforeMerge(worktree: string, filter: WorkFileFilter & {
|
|
860
|
+
taskId: string;
|
|
861
|
+
}): Promise<boolean>;
|
|
763
862
|
/**
|
|
764
863
|
* The dirty paths on `main` that must block close-out. Task markdown under the
|
|
765
864
|
* work dir is excluded: the publish step checkpoint-commits it when the merge
|
|
@@ -842,6 +941,17 @@ export declare function mergeBranch(root: string, branch: string, opts?: {
|
|
|
842
941
|
dryRun?: boolean;
|
|
843
942
|
/** When true, lockfile-only conflicts are resolved by regenerating the lockfile (#0679). */
|
|
844
943
|
regenerateLockfileConflicts?: boolean;
|
|
944
|
+
/**
|
|
945
|
+
* The task id whose branch is merging. When set, a lockfile-regeneration
|
|
946
|
+
* merge commit unstages any other task's `work/` bookkeeping the index may
|
|
947
|
+
* hold, so a sibling's file can never ride the merge commit (#1076).
|
|
948
|
+
*/
|
|
949
|
+
taskId?: string;
|
|
950
|
+
/** Work/cache dirs for the foreign-bookkeeping filter (#1076). */
|
|
951
|
+
workFileFilter?: {
|
|
952
|
+
workDir?: string;
|
|
953
|
+
cacheDir?: string;
|
|
954
|
+
};
|
|
845
955
|
}): Promise<MergeBranchResult>;
|
|
846
956
|
/**
|
|
847
957
|
* Marker RepoOS tags its own publish-time stash with, so `popPublishStash`
|