@repo-os/repoos 0.5.81 → 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/core/activity-animation.test.js +4 -0
- package/dist/core/config.js +18 -4
- package/dist/core/git.d.ts +39 -18
- package/dist/core/git.js +178 -59
- package/dist/core/landable.js +1 -1
- package/dist/core/shot-fixtures.d.ts +1 -1
- package/dist/core/shot-fixtures.js +5 -0
- package/dist/core/types.d.ts +2 -0
- package/dist/server/agents.d.ts +19 -0
- package/dist/server/agents.js +44 -3
- package/dist/server/handoff-live.d.ts +8 -0
- package/dist/server/handoff-live.js +4 -0
- package/dist/server/handoff-status.d.ts +28 -1
- package/dist/server/handoff-status.js +71 -2
- package/dist/server/handoff.js +12 -8
- 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.d.ts +34 -0
- package/dist/server/review.js +146 -23
- package/dist/server/routes/tasks.js +16 -4
- 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-rddIj4UM.js → AgentModelControl-BWq59rao.js} +1 -1
- package/dist/ui/assets/{AgentModelModal-X2BCT9-u.js → AgentModelModal-IzbvvuVP.js} +1 -1
- package/dist/ui/assets/{AgentsView-CX3N_jKt.js → AgentsView-CuNoPU29.js} +1 -1
- package/dist/ui/assets/{ChatAgentModelChip-9tc5FOK8.js → ChatAgentModelChip-D1TL9ug2.js} +1 -1
- package/dist/ui/assets/{ChecksView-BbrTCFAr.js → ChecksView-Btipa5hH.js} +0 -0
- package/dist/ui/assets/{ClientBoardView-f5JZkZHB.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-USQXnd85.js +1 -0
- package/dist/ui/assets/{DevView-D_6ive6Q.js → DevView-B-hsWoe9.js} +1 -1
- package/dist/ui/assets/{DiffView-YID6ReSi.js → DiffView-DKkUkWx2.js} +1 -1
- package/dist/ui/assets/{FailedTestsList-lRPgMVk6.js → FailedTestsList-CqogiNds.js} +1 -1
- package/dist/ui/assets/InputsView-UlJZtBmf.js +1 -0
- package/dist/ui/assets/{LoginView-ahrsIk5c.js → LoginView-Dd6ArYhd.js} +1 -1
- package/dist/ui/assets/{PageSkeleton-DhwoOs3z.js → PageSkeleton-B2yYxJ5C.js} +1 -1
- package/dist/ui/assets/{ReleasesView-xkXPKhX6.js → ReleasesView-CL3DwrG1.js} +1 -1
- 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-Dv1thwPa.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-Cq8vcaFs.js → abnfDiagram-VCTEODGH-Cx0tUBL_.js} +1 -1
- package/dist/ui/assets/activity-motion-B2lQWN0R.js +1 -0
- package/dist/ui/assets/{architectureDiagram-5GKGNRK7-CSpmSa1E.js → architectureDiagram-5GKGNRK7-2FvpbVyc.js} +1 -1
- package/dist/ui/assets/{blockDiagram-I7D4REHJ-DwxmE3mt.js → blockDiagram-I7D4REHJ-DJliOpU1.js} +1 -1
- package/dist/ui/assets/{c4Diagram-7LVT6UL2-D89vxQRS.js → c4Diagram-7LVT6UL2-CA0ys_Fp.js} +1 -1
- package/dist/ui/assets/channel-B9Xne7W5.js +1 -0
- package/dist/ui/assets/{check-setup-CbHDLRRo.js → check-setup-CeF8K0Ta.js} +1 -1
- package/dist/ui/assets/checkbox-DQJ1FrVo.js +1 -0
- package/dist/ui/assets/{chunk-2E4U76K2-DdhwTfam.js → chunk-2E4U76K2-HUmgu9l1.js} +1 -1
- package/dist/ui/assets/{chunk-4HAMMTFA-DmJvPn6W.js → chunk-4HAMMTFA-dee7B3F3.js} +1 -1
- package/dist/ui/assets/{chunk-75Z2AOVW-4QN5k5n3.js → chunk-75Z2AOVW-SXg8pQTv.js} +1 -1
- package/dist/ui/assets/{chunk-CLGD4ZFX-BR-A4icR.js → chunk-CLGD4ZFX-BvMUtFKF.js} +1 -1
- package/dist/ui/assets/{chunk-DU6HZSFF-9xlXhgs1.js → chunk-DU6HZSFF-7fLvQCfF.js} +1 -1
- package/dist/ui/assets/{chunk-F27PBJKO-BwDeV6YA.js → chunk-F27PBJKO-DWEDndTM.js} +1 -1
- package/dist/ui/assets/{chunk-GMAD6QVW-BWRBcS1R.js → chunk-GMAD6QVW-ld5iYzY0.js} +1 -1
- package/dist/ui/assets/{chunk-GVQU2GXP-COQ3z0bS.js → chunk-GVQU2GXP-Dx0BcPpQ.js} +1 -1
- package/dist/ui/assets/{chunk-IMKFNOWR-CR2co4I9.js → chunk-IMKFNOWR-yf4vgJjB.js} +1 -1
- package/dist/ui/assets/{chunk-L3NEJ4N5-BGrmTM3B.js → chunk-L3NEJ4N5-DhrHLAoc.js} +1 -1
- package/dist/ui/assets/{chunk-OSK3NFVY-C6Y95IFY.js → chunk-OSK3NFVY-DACWyehW.js} +1 -1
- package/dist/ui/assets/{chunk-P2QGCYS3-cFOeR0fs.js → chunk-P2QGCYS3-CchOA2fb.js} +1 -1
- package/dist/ui/assets/{chunk-POPQ4Y6H-DVCaMA3q.js → chunk-POPQ4Y6H-BVI8jxLA.js} +1 -1
- package/dist/ui/assets/{chunk-PWAF6VOD-BfP23CLu.js → chunk-PWAF6VOD-Bgu2Lavl.js} +1 -1
- package/dist/ui/assets/{chunk-SHT3W25Y-DsAut3fo.js → chunk-SHT3W25Y-B8UCZZn5.js} +1 -1
- package/dist/ui/assets/{chunk-SVP7TREG-C1IhncTC.js → chunk-SVP7TREG-CiOBZeQh.js} +1 -1
- package/dist/ui/assets/{chunk-TICWLB2K-BQg61-Ax.js → chunk-TICWLB2K-BWr2VCEi.js} +1 -1
- package/dist/ui/assets/{chunk-TLUHSLCS-iZWa-iEt.js → chunk-TLUHSLCS-DzgZCoye.js} +2 -2
- 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-BQMw9oCu.js → cynefinDiagram-5FMLGOSQ-CIEBGq9C.js} +1 -1
- package/dist/ui/assets/{dagre-GXQ25YYZ-Bwf0tGsh.js → dagre-GXQ25YYZ-DFUwGzpJ.js} +1 -1
- package/dist/ui/assets/{diagram-S7CK7UJ4--07nd2Km.js → diagram-S7CK7UJ4-B2z_8s6N.js} +1 -1
- package/dist/ui/assets/{diagram-UQ7AKVKN-BnppfD3n.js → diagram-UQ7AKVKN-RNi8mtBE.js} +1 -1
- package/dist/ui/assets/{diagram-VSXAHHWV-DavsZSZR.js → diagram-VSXAHHWV-DJOrHl2V.js} +1 -1
- package/dist/ui/assets/{diagram-VX7I27RA-vF99qObM.js → diagram-VX7I27RA-BoCk40Mp.js} +1 -1
- package/dist/ui/assets/{diagram-Z3DM3KII-ByMRp7Lj.js → diagram-Z3DM3KII-DZfOKrGn.js} +1 -1
- package/dist/ui/assets/{docs-Bib5O7zg.js → docs-DWeL13Ig.js} +1 -1
- package/dist/ui/assets/{ebnfDiagram-PWID7BFC-E3ksi-Se.js → ebnfDiagram-PWID7BFC-CtcfvBiY.js} +1 -1
- package/dist/ui/assets/{erDiagram-RLTQ6QDP-CWu35TiV.js → erDiagram-RLTQ6QDP-7Dg8Z-8A.js} +1 -1
- package/dist/ui/assets/flowDiagram-HODETNUW-CBeo5hrc.js +1 -0
- package/dist/ui/assets/{ganttDiagram-EL5Y4UJY-8sEpEebL.js → ganttDiagram-EL5Y4UJY-DeWvnrdp.js} +1 -1
- package/dist/ui/assets/{gitGraphDiagram-WWUBYQGX-DKy2-XDk.js → gitGraphDiagram-WWUBYQGX-CTkQ8UMs.js} +1 -1
- package/dist/ui/assets/index-Cc1wtbfr.css +1 -0
- package/dist/ui/assets/{index-CgvhPdup.js → index-DNFLwN9U.js} +17 -17
- package/dist/ui/assets/{infoDiagram-27XIBGKW-DTp08qxU.js → infoDiagram-27XIBGKW-M8JfF73h.js} +1 -1
- package/dist/ui/assets/input-BH2-2GgN.js +1 -0
- package/dist/ui/assets/{ishikawaDiagram-5VMMS53U-CTFdvXq3.js → ishikawaDiagram-5VMMS53U-DlQscBr6.js} +1 -1
- package/dist/ui/assets/{journeyDiagram-3NMN7TZE-B1R6Dq0O.js → journeyDiagram-3NMN7TZE-Dxn8RCyn.js} +1 -1
- package/dist/ui/assets/{kanban-definition-UXKFOSKX-CZ9kXxNu.js → kanban-definition-UXKFOSKX-BOaI3UrI.js} +1 -1
- package/dist/ui/assets/layer-B7s9BFq9.js +1 -0
- package/dist/ui/assets/{line-D9RfyImD.js → line-BBhPy-km.js} +1 -1
- package/dist/ui/assets/{mermaid-parser.core-CJbML1of.js → mermaid-parser.core-D7YyoGVd.js} +1 -1
- package/dist/ui/assets/{mermaid.core-Dp6f40i4.js → mermaid.core-VGOvN5S-.js} +3 -3
- package/dist/ui/assets/{mindmap-definition-YA3MSWOX-Drt3agXN.js → mindmap-definition-YA3MSWOX-C0jIoAix.js} +1 -1
- package/dist/ui/assets/{pegDiagram-XKGWAZYB-BL1-4rQl.js → pegDiagram-XKGWAZYB-XmYzMBnh.js} +1 -1
- package/dist/ui/assets/{pieDiagram-E7YTZNPT-SgLUnkSx.js → pieDiagram-E7YTZNPT-Bxx8YX7o.js} +1 -1
- package/dist/ui/assets/{quadrantDiagram-AXDQQJYC-DRceeGWZ.js → quadrantDiagram-AXDQQJYC-BAOco837.js} +1 -1
- package/dist/ui/assets/{railroadDiagram-O6MQD6OU-DRoUlx0K.js → railroadDiagram-O6MQD6OU-Cito0Bh9.js} +1 -1
- package/dist/ui/assets/repo-rbX__UAi.js +67 -0
- package/dist/ui/assets/{requirementDiagram-BXWQKSXE-C5udyCAl.js → requirementDiagram-BXWQKSXE-lNCF-Y5S.js} +1 -1
- package/dist/ui/assets/{sankeyDiagram-P5KCCOFB-BxDybL12.js → sankeyDiagram-P5KCCOFB-C7gdOOdB.js} +1 -1
- package/dist/ui/assets/{sequenceDiagram-WJ2MYXX4-Is4IwOMh.js → sequenceDiagram-WJ2MYXX4-D3SSyIft.js} +1 -1
- package/dist/ui/assets/{stateDiagram-D77RDMKH-DIvQUF30.js → stateDiagram-D77RDMKH-BPgKeDmA.js} +1 -1
- package/dist/ui/assets/stateDiagram-v2-MP3YSRHH-DXIeWyAw.js +1 -0
- package/dist/ui/assets/{swimlanes-42K2YHIH-DuHeh3aL.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-BOh7-kWv.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-DhM7B1MC.js → vennDiagram-4TSXK5OY-KyUB3d8i.js} +1 -1
- package/dist/ui/assets/viewport-B7a-WO5s.js +1 -0
- package/dist/ui/assets/{wardleyDiagram-VM6X3IG4-B5RTZ0aA.js → wardleyDiagram-VM6X3IG4-BIPtlsSg.js} +1 -1
- package/dist/ui/assets/{xychartDiagram-S5SC5T6Z-CgV-_HAk.js → xychartDiagram-S5SC5T6Z-B4S39RFg.js} +1 -1
- package/dist/ui/index.html +19 -19
- package/dist/ui/sw.js +2 -2
- package/package.json +1 -1
- package/dist/ui/assets/ActivityIndicator-RQG6hvTL.js +0 -1
- package/dist/ui/assets/ConfirmDialog-C-nDmuId.js +0 -1
- package/dist/ui/assets/ContextView-BDGKIDsx.js +0 -4
- package/dist/ui/assets/DashboardView-BYHeiXjK.js +0 -1
- package/dist/ui/assets/DeleteConfirmDialog-CZ-PtFd3.js +0 -1
- package/dist/ui/assets/DeploymentsView--ftmbC8t.js +0 -1
- package/dist/ui/assets/InputsView-DQaDQNvL.js +0 -1
- package/dist/ui/assets/SecretsView-Qrvy3TDZ.js +0 -1
- package/dist/ui/assets/SettingsView-BpHgh1-0.js +0 -4
- package/dist/ui/assets/StoriesView-DKng4ydw.js +0 -1
- package/dist/ui/assets/WorkView-B8AQuKG1.js +0 -2
- package/dist/ui/assets/WorkView-yjNryVHN.css +0 -1
- package/dist/ui/assets/activity-motion-TFy0O4bk.js +0 -1
- package/dist/ui/assets/button-II9J4IUe.js +0 -1
- package/dist/ui/assets/channel-CIRCgzQL.js +0 -1
- package/dist/ui/assets/checkbox-4IcB0C9m.js +0 -1
- package/dist/ui/assets/classDiagram-ZZMXUADV-DuCvGyds.js +0 -1
- package/dist/ui/assets/classDiagram-v2-VYDZK3BY-DuCvGyds.js +0 -1
- package/dist/ui/assets/close-DcpwMOTE.js +0 -1
- package/dist/ui/assets/flowDiagram-HODETNUW-yAw5OXM2.js +0 -1
- package/dist/ui/assets/index-DK2w5dcH.css +0 -1
- package/dist/ui/assets/input-DYSaV-Uv.js +0 -1
- package/dist/ui/assets/repo-BA_wQb3l.js +0 -66
- package/dist/ui/assets/stateDiagram-v2-MP3YSRHH-C2WyqlbN.js +0 -1
- package/dist/ui/assets/swimlanesDiagram-VR7AAH4N-U3yBzN3c.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"));
|
|
@@ -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
|
@@ -194,6 +194,7 @@ export const DEFAULT_CONFIG = {
|
|
|
194
194
|
theme: "system",
|
|
195
195
|
uiTheme: "classic",
|
|
196
196
|
defaultTaskMode: "freeform",
|
|
197
|
+
activityAnimationEnabled: true,
|
|
197
198
|
activityAnimationStyle: "orbital-pixel",
|
|
198
199
|
activityAnimationSize: DEFAULT_ACTIVITY_ANIMATION_SIZE,
|
|
199
200
|
activityAnimationConcurrency: 6,
|
|
@@ -1514,6 +1515,9 @@ export function loadConfig(rootArg, options = {}) {
|
|
|
1514
1515
|
const taskMode = get("defaultTaskMode");
|
|
1515
1516
|
if (taskMode === "freeform" || taskMode === "manual")
|
|
1516
1517
|
cfg.defaultTaskMode = taskMode;
|
|
1518
|
+
if (typeof get("activityAnimationEnabled") === "boolean") {
|
|
1519
|
+
cfg.activityAnimationEnabled = get("activityAnimationEnabled");
|
|
1520
|
+
}
|
|
1517
1521
|
const activityStyle = get("activityAnimationStyle");
|
|
1518
1522
|
if (typeof activityStyle === "string" &&
|
|
1519
1523
|
ACTIVITY_ANIMATION_STYLES.includes(activityStyle)) {
|
|
@@ -2580,8 +2584,17 @@ export function getConfigSchema() {
|
|
|
2580
2584
|
description: "Which flow the New task drawer opens with",
|
|
2581
2585
|
},
|
|
2582
2586
|
{
|
|
2583
|
-
key: "
|
|
2587
|
+
key: "activityAnimationEnabled",
|
|
2584
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",
|
|
2585
2598
|
type: "select",
|
|
2586
2599
|
tier: "live",
|
|
2587
2600
|
restartRequired: false,
|
|
@@ -2590,7 +2603,7 @@ export function getConfigSchema() {
|
|
|
2590
2603
|
value,
|
|
2591
2604
|
label: ACTIVITY_ANIMATION_STYLE_LABELS[value],
|
|
2592
2605
|
})),
|
|
2593
|
-
description: "
|
|
2606
|
+
description: "Compact motion style; Three dots keeps the legacy pulsing row.",
|
|
2594
2607
|
},
|
|
2595
2608
|
{
|
|
2596
2609
|
key: "activityAnimationSize",
|
|
@@ -2603,7 +2616,7 @@ export function getConfigSchema() {
|
|
|
2603
2616
|
value,
|
|
2604
2617
|
label: ACTIVITY_ANIMATION_SIZE_LABELS[value],
|
|
2605
2618
|
})),
|
|
2606
|
-
description: "
|
|
2619
|
+
description: "Fixed pixel width on task cards, Pipeline, Dev and the preview below.",
|
|
2607
2620
|
},
|
|
2608
2621
|
{
|
|
2609
2622
|
key: "activityAnimationConcurrency",
|
|
@@ -2615,7 +2628,7 @@ export function getConfigSchema() {
|
|
|
2615
2628
|
min: 0,
|
|
2616
2629
|
max: 24,
|
|
2617
2630
|
step: 1,
|
|
2618
|
-
description: "
|
|
2631
|
+
description: "Cap on simultaneously animated indicators that are on screen; off-screen cards do not count.",
|
|
2619
2632
|
},
|
|
2620
2633
|
{
|
|
2621
2634
|
key: "defaultAssignee",
|
|
@@ -4059,6 +4072,7 @@ export const SUPPORTED_TOML_KEYS = [
|
|
|
4059
4072
|
"defaultStatus",
|
|
4060
4073
|
"defaultAssignee",
|
|
4061
4074
|
"defaultTaskMode",
|
|
4075
|
+
"activityAnimationEnabled",
|
|
4062
4076
|
"activityAnimationStyle",
|
|
4063
4077
|
"activityAnimationSize",
|
|
4064
4078
|
"activityAnimationConcurrency",
|
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. */
|
|
@@ -791,27 +798,39 @@ export declare function stagedForeignBookkeepingPaths(worktree: string, filter:
|
|
|
791
798
|
taskId: string;
|
|
792
799
|
}): Promise<string[]>;
|
|
793
800
|
/**
|
|
794
|
-
*
|
|
795
|
-
*
|
|
796
|
-
*
|
|
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.
|
|
797
818
|
*
|
|
798
|
-
*
|
|
799
|
-
*
|
|
800
|
-
*
|
|
801
|
-
*
|
|
802
|
-
* bookkeeping commit the review tolerates — so a branch that already carries a
|
|
803
|
-
* sibling's file (from a self-check WIP checkpoint, a concurrent board write, or
|
|
804
|
-
* a partial merge of main) can be healed at handoff instead of failing landing.
|
|
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.
|
|
805
823
|
*
|
|
806
|
-
*
|
|
807
|
-
*
|
|
808
|
-
*
|
|
809
|
-
*
|
|
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).
|
|
810
829
|
*
|
|
811
|
-
*
|
|
812
|
-
*
|
|
813
|
-
*
|
|
814
|
-
*
|
|
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.
|
|
815
834
|
*/
|
|
816
835
|
export declare function restoreForeignTaskBookkeepingFromMain(opts: {
|
|
817
836
|
worktree: string;
|
|
@@ -820,6 +839,8 @@ export declare function restoreForeignTaskBookkeepingFromMain(opts: {
|
|
|
820
839
|
/** This task's own task file (repo-relative) — never restored or removed. */
|
|
821
840
|
ownTaskFile: string | null;
|
|
822
841
|
workDir?: string;
|
|
842
|
+
inputsDir?: string;
|
|
843
|
+
storiesDir?: string;
|
|
823
844
|
}): Promise<string[]>;
|
|
824
845
|
/**
|
|
825
846
|
* Drop the tracked `dist/` from a task worktree's branch, as one bookkeeping
|
package/dist/core/git.js
CHANGED
|
@@ -1765,6 +1765,36 @@ export async function branchChangedPaths(root, branch, baseBranch = "main", time
|
|
|
1765
1765
|
.map((s) => s.trim())
|
|
1766
1766
|
.filter(Boolean);
|
|
1767
1767
|
}
|
|
1768
|
+
/**
|
|
1769
|
+
* Drop foreign bookkeeping paths from a branch's changed-path list when the
|
|
1770
|
+
* branch tip already matches main (#1086). The merge-base..HEAD diff can still
|
|
1771
|
+
* name a path another task landed on main while this branch was open even though
|
|
1772
|
+
* HEAD's blob matches main — that must not fail the Task scope check.
|
|
1773
|
+
*/
|
|
1774
|
+
export async function dropForeignBookkeepingPathsMatchingMain(root, branch, baseBranch, paths, isForeign, timeout = 8_000) {
|
|
1775
|
+
if (paths.length === 0)
|
|
1776
|
+
return paths;
|
|
1777
|
+
const worktree = worktreePathForBranch(root, branch) ?? root;
|
|
1778
|
+
const baseSha = (await runGit(worktree, ["rev-parse", "--verify", `${baseBranch}^{commit}`], timeout)).stdout.trim();
|
|
1779
|
+
if (!baseSha)
|
|
1780
|
+
return paths;
|
|
1781
|
+
const kept = [];
|
|
1782
|
+
for (const p of paths) {
|
|
1783
|
+
if (p === "repoos.toml") {
|
|
1784
|
+
kept.push(p);
|
|
1785
|
+
continue;
|
|
1786
|
+
}
|
|
1787
|
+
if (!isForeign(p)) {
|
|
1788
|
+
kept.push(p);
|
|
1789
|
+
continue;
|
|
1790
|
+
}
|
|
1791
|
+
const same = await runGit(worktree, ["diff", "--quiet", baseSha, branch, "--", p], timeout);
|
|
1792
|
+
if (same.status === 0)
|
|
1793
|
+
continue;
|
|
1794
|
+
kept.push(p);
|
|
1795
|
+
}
|
|
1796
|
+
return kept;
|
|
1797
|
+
}
|
|
1768
1798
|
/** Whether git is installed at all (independent of being inside a repo). */
|
|
1769
1799
|
export function gitAvailable(root) {
|
|
1770
1800
|
return git(root, ["--version"]) !== null;
|
|
@@ -2314,92 +2344,181 @@ export async function stagedForeignBookkeepingPaths(worktree, filter) {
|
|
|
2314
2344
|
.filter(Boolean);
|
|
2315
2345
|
return foreignTaskBookkeepingPaths(staged, filter);
|
|
2316
2346
|
}
|
|
2347
|
+
const REPOOS_CONFIG_PATH = "repoos.toml";
|
|
2317
2348
|
/**
|
|
2318
|
-
*
|
|
2319
|
-
*
|
|
2320
|
-
*
|
|
2349
|
+
* Paths under managed bookkeeping dirs that a task branch must not carry — the
|
|
2350
|
+
* same set `isForbiddenTaskScopePath` flags for landing, except `repoos.toml`
|
|
2351
|
+
* (handled by `guardStrayRepoosTomlOnTaskBranch`). Covers `work/`, `inputs/`,
|
|
2352
|
+
* and `stories/` (#1086).
|
|
2353
|
+
*/
|
|
2354
|
+
export function foreignScopeDriftPaths(paths, opts) {
|
|
2355
|
+
const workDir = opts.workDir ?? "work";
|
|
2356
|
+
const inputsDir = opts.inputsDir ?? "inputs";
|
|
2357
|
+
const storiesDir = opts.storiesDir ?? "stories";
|
|
2358
|
+
const inputsPrefix = withTrailingSlash(inputsDir);
|
|
2359
|
+
const storiesPrefix = withTrailingSlash(storiesDir);
|
|
2360
|
+
const workPrefix = withTrailingSlash(workDir);
|
|
2361
|
+
const workForeign = new Set(foreignTaskBookkeepingPaths(paths.filter((p) => p.startsWith(workPrefix)), { workDir, taskId: opts.taskId }));
|
|
2362
|
+
return paths.filter((p) => {
|
|
2363
|
+
if (p === REPOOS_CONFIG_PATH || p === opts.ownTaskFile)
|
|
2364
|
+
return false;
|
|
2365
|
+
if (p.startsWith(workPrefix))
|
|
2366
|
+
return workForeign.has(p);
|
|
2367
|
+
if (p.startsWith(inputsPrefix) || p.startsWith(storiesPrefix))
|
|
2368
|
+
return true;
|
|
2369
|
+
return false;
|
|
2370
|
+
});
|
|
2371
|
+
}
|
|
2372
|
+
async function foreignBookkeepingHealCandidates(worktree, baseFull, dirPrefixes) {
|
|
2373
|
+
const paths = new Set();
|
|
2374
|
+
const addLines = (stdout) => {
|
|
2375
|
+
for (const p of stdout
|
|
2376
|
+
.split("\n")
|
|
2377
|
+
.map((s) => s.trim())
|
|
2378
|
+
.filter(Boolean)) {
|
|
2379
|
+
paths.add(p);
|
|
2380
|
+
}
|
|
2381
|
+
};
|
|
2382
|
+
const committed = await runGit(worktree, ["diff", "--name-only", `${baseFull}..HEAD`, "--", ...dirPrefixes], 15_000);
|
|
2383
|
+
if (committed.status !== 0)
|
|
2384
|
+
return null;
|
|
2385
|
+
addLines(committed.stdout);
|
|
2386
|
+
for (const args of [
|
|
2387
|
+
["diff", "--cached", "--name-only", "--", ...dirPrefixes],
|
|
2388
|
+
["diff", "--name-only", "--", ...dirPrefixes],
|
|
2389
|
+
["ls-files", "--others", "--exclude-standard", "--", ...dirPrefixes],
|
|
2390
|
+
]) {
|
|
2391
|
+
const run = await runGit(worktree, [...args], 15_000);
|
|
2392
|
+
if (run.status !== 0)
|
|
2393
|
+
return null;
|
|
2394
|
+
addLines(run.stdout);
|
|
2395
|
+
}
|
|
2396
|
+
return [...paths];
|
|
2397
|
+
}
|
|
2398
|
+
/**
|
|
2399
|
+
* Restore main's copy of foreign bookkeeping under `work/`, `inputs/`, and
|
|
2400
|
+
* `stories/` on a task branch (#1076, #1086). Candidates come from committed
|
|
2401
|
+
* drift, the index, the working tree, and untracked files so handoff does not
|
|
2402
|
+
* leave the reporter's "modified + untracked" siblings behind.
|
|
2321
2403
|
*
|
|
2322
|
-
*
|
|
2323
|
-
*
|
|
2324
|
-
*
|
|
2325
|
-
*
|
|
2326
|
-
* bookkeeping commit the review tolerates — so a branch that already carries a
|
|
2327
|
-
* sibling's file (from a self-check WIP checkpoint, a concurrent board write, or
|
|
2328
|
-
* a partial merge of main) can be healed at handoff instead of failing landing.
|
|
2404
|
+
* Same rule close-out applies (`resetForeignWorkFiles`), with one nuance (#1086):
|
|
2405
|
+
* siblings present at the merge-base get main's current tip; post-merge siblings
|
|
2406
|
+
* that only exist on main after the branch point are dropped from the branch
|
|
2407
|
+
* entirely rather than copied in.
|
|
2329
2408
|
*
|
|
2330
|
-
*
|
|
2331
|
-
*
|
|
2332
|
-
*
|
|
2333
|
-
*
|
|
2409
|
+
* Changed paths are still graded over `merge-base..HEAD`; restoring main's
|
|
2410
|
+
* bytes removes the foreign path from that diff (or matches main so scope can
|
|
2411
|
+
* pass). `baseBranch` is the integration branch (normally `main`), resolved by
|
|
2412
|
+
* the caller via `resolveDefaultBranch`, not the main checkout's
|
|
2413
|
+
* `currentBranch()` (#1076).
|
|
2334
2414
|
*
|
|
2335
|
-
*
|
|
2336
|
-
*
|
|
2337
|
-
*
|
|
2338
|
-
*
|
|
2415
|
+
* Returns the repo-relative foreign paths it touched, empty when there were
|
|
2416
|
+
* none. Fails soft (`[]`) when the branch point or base tip cannot be resolved.
|
|
2417
|
+
* Throws on git failures; handoff fails closed on those errors, while sync's
|
|
2418
|
+
* `healForeignBookkeepingAfterSync` swallows them as best-effort.
|
|
2339
2419
|
*/
|
|
2340
2420
|
export async function restoreForeignTaskBookkeepingFromMain(opts) {
|
|
2341
2421
|
const workDir = opts.workDir ?? "work";
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2422
|
+
const inputsDir = opts.inputsDir ?? "inputs";
|
|
2423
|
+
const storiesDir = opts.storiesDir ?? "stories";
|
|
2424
|
+
const dirPrefixes = [workDir, inputsDir, storiesDir].map(withTrailingSlash);
|
|
2425
|
+
const mainSha = (await runGit(opts.worktree, ["rev-parse", "--verify", `${opts.baseBranch}^{commit}`], 15_000)).stdout.trim();
|
|
2426
|
+
if (!mainSha)
|
|
2427
|
+
return [];
|
|
2346
2428
|
const baseFull = (await runGit(opts.worktree, ["merge-base", opts.baseBranch, "HEAD"], 15_000)).stdout.trim();
|
|
2347
2429
|
if (!baseFull)
|
|
2348
2430
|
return [];
|
|
2349
|
-
const
|
|
2350
|
-
if (
|
|
2431
|
+
const candidates = await foreignBookkeepingHealCandidates(opts.worktree, baseFull, dirPrefixes);
|
|
2432
|
+
if (candidates === null)
|
|
2351
2433
|
return [];
|
|
2352
|
-
const
|
|
2353
|
-
.
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2434
|
+
const foreign = foreignScopeDriftPaths(candidates, {
|
|
2435
|
+
taskId: opts.taskId,
|
|
2436
|
+
ownTaskFile: opts.ownTaskFile,
|
|
2437
|
+
workDir,
|
|
2438
|
+
inputsDir,
|
|
2439
|
+
storiesDir,
|
|
2440
|
+
});
|
|
2357
2441
|
if (foreign.length === 0)
|
|
2358
2442
|
return [];
|
|
2359
|
-
//
|
|
2360
|
-
//
|
|
2361
|
-
//
|
|
2362
|
-
//
|
|
2363
|
-
//
|
|
2364
|
-
//
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
const onMain = [];
|
|
2368
|
-
const addedByBranch = [];
|
|
2443
|
+
// Foreign bookkeeping the branch touched is healed in two classes (#1076, #1086):
|
|
2444
|
+
// - At the merge-base: take main's tip (not the stale merge-base bytes) so a
|
|
2445
|
+
// modified sibling matches what main legitimately has.
|
|
2446
|
+
// - Main gained the file only after the branch point: drop it from the branch
|
|
2447
|
+
// entirely — the branch must not carry another task's post-merge files.
|
|
2448
|
+
// - Not on main: drop the stray branch addition.
|
|
2449
|
+
const restoreFromMain = [];
|
|
2450
|
+
const dropFromBranch = [];
|
|
2369
2451
|
for (const p of foreign) {
|
|
2370
|
-
const
|
|
2371
|
-
(
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2452
|
+
const onMain = await runGit(opts.worktree, ["cat-file", "-e", `${mainSha}:${p}`], 5_000);
|
|
2453
|
+
if (onMain.status !== 0) {
|
|
2454
|
+
dropFromBranch.push(p);
|
|
2455
|
+
continue;
|
|
2456
|
+
}
|
|
2457
|
+
const atBase = await runGit(opts.worktree, ["cat-file", "-e", `${baseFull}:${p}`], 5_000);
|
|
2458
|
+
if (atBase.status === 0)
|
|
2459
|
+
restoreFromMain.push(p);
|
|
2460
|
+
else
|
|
2461
|
+
dropFromBranch.push(p);
|
|
2462
|
+
}
|
|
2463
|
+
if (restoreFromMain.length > 0) {
|
|
2464
|
+
const restore = await runGit(opts.worktree, ["checkout", mainSha, "--", ...restoreFromMain], 15_000);
|
|
2375
2465
|
if (restore.status !== 0) {
|
|
2376
|
-
throw new Error(`could not restore
|
|
2466
|
+
throw new Error(`could not restore main's copy of another task's bookkeeping: ${restore.stderr.trim()}`);
|
|
2467
|
+
}
|
|
2468
|
+
await runGit(opts.worktree, ["add", "--", ...restoreFromMain], 10_000);
|
|
2469
|
+
}
|
|
2470
|
+
if (dropFromBranch.length > 0) {
|
|
2471
|
+
const trackedDrop = [];
|
|
2472
|
+
const untrackedDrop = [];
|
|
2473
|
+
for (const p of dropFromBranch) {
|
|
2474
|
+
const listed = await runGit(opts.worktree, ["ls-files", "--", p], 5_000);
|
|
2475
|
+
if (listed.status === 0 && listed.stdout.trim())
|
|
2476
|
+
trackedDrop.push(p);
|
|
2477
|
+
else
|
|
2478
|
+
untrackedDrop.push(p);
|
|
2377
2479
|
}
|
|
2378
|
-
await runGit(opts.worktree, ["add", "--", ...onMain], 10_000);
|
|
2379
|
-
}
|
|
2380
|
-
if (addedByBranch.length > 0) {
|
|
2381
2480
|
// `-f`: a branch-added sibling can also have a dirty working-tree copy (a
|
|
2382
2481
|
// board write lands after the branch added it). Plain `git rm` refuses
|
|
2383
2482
|
// ("has local modifications") and would abort the handoff on the very drift
|
|
2384
2483
|
// this restores — force it, since a task never keeps another task's
|
|
2385
2484
|
// bookkeeping anyway.
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2485
|
+
if (trackedDrop.length > 0) {
|
|
2486
|
+
const removed = await runGit(opts.worktree, ["rm", "-qf", "--", ...trackedDrop], 10_000);
|
|
2487
|
+
if (removed.status !== 0) {
|
|
2488
|
+
throw new Error(`could not drop stray bookkeeping files: ${removed.stderr.trim()}`);
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
if (untrackedDrop.length > 0) {
|
|
2492
|
+
const cleaned = await runGit(opts.worktree, ["clean", "-f", "--", ...untrackedDrop], 10_000);
|
|
2493
|
+
if (cleaned.status !== 0) {
|
|
2494
|
+
throw new Error(`could not remove untracked bookkeeping: ${cleaned.stderr.trim()}`);
|
|
2495
|
+
}
|
|
2389
2496
|
}
|
|
2390
2497
|
}
|
|
2391
|
-
const
|
|
2392
|
-
if (
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2498
|
+
const stagedList = await runGit(opts.worktree, ["diff", "--cached", "--name-only", "--", ...foreign], 10_000);
|
|
2499
|
+
if (stagedList.status !== 0) {
|
|
2500
|
+
throw new Error(`could not list staged bookkeeping restore: ${stagedList.stderr.trim() || stagedList.stdout.trim()}`);
|
|
2501
|
+
}
|
|
2502
|
+
const toCommit = stagedList.stdout
|
|
2503
|
+
.split("\n")
|
|
2504
|
+
.map((s) => s.trim())
|
|
2505
|
+
.filter(Boolean);
|
|
2506
|
+
if (toCommit.length === 0)
|
|
2507
|
+
return foreign;
|
|
2508
|
+
const staged = await runGit(opts.worktree, ["diff", "--cached", "--quiet", "--", ...toCommit], 10_000);
|
|
2509
|
+
if (staged.status === 0)
|
|
2510
|
+
return foreign;
|
|
2511
|
+
if (staged.status !== 1) {
|
|
2512
|
+
throw new Error(`could not verify staged bookkeeping restore: ${staged.stderr.trim() || staged.stdout.trim()}`);
|
|
2513
|
+
}
|
|
2514
|
+
// Pathspec-scoped commit: only paths that are actually staged are committed,
|
|
2515
|
+
// so an index-only drop (staged sibling removed, never on HEAD) needs no commit.
|
|
2397
2516
|
const commit = await runGit(opts.worktree, [
|
|
2398
2517
|
"commit",
|
|
2399
2518
|
"-m",
|
|
2400
|
-
`chore(#${opts.taskId}): restore
|
|
2519
|
+
`chore(#${opts.taskId}): restore or drop ${toCommit.length} other task's bookkeeping file(s) from main`,
|
|
2401
2520
|
"--",
|
|
2402
|
-
...
|
|
2521
|
+
...toCommit,
|
|
2403
2522
|
], 20_000);
|
|
2404
2523
|
if (commit.status !== 0) {
|
|
2405
2524
|
throw new Error(`could not commit bookkeeping restore: ${commit.stderr.trim()}`);
|
package/dist/core/landable.js
CHANGED
|
@@ -286,7 +286,7 @@ export function evaluateTaskScopeCheck(facts) {
|
|
|
286
286
|
: `the diff changes another task's bookkeeping: ${quoteList(forbidden)}`,
|
|
287
287
|
nextStep: config
|
|
288
288
|
? "Remove repoos.toml from the branch and re-request review"
|
|
289
|
-
: `
|
|
289
|
+
: `Re-request review — handoff (or repoos sync) heals ${quoteList(forbidden)} from main; post-merge siblings are dropped from the branch, not copied in`,
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
292
|
return {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* path appends `?shotState=<id>` to the route; the UI applies the fixture only
|
|
4
4
|
* on preview builds (`isPreviewBuild`).
|
|
5
5
|
*/
|
|
6
|
-
export declare const SHOT_PREVIEW_FIXTURE_IDS: readonly ["system:worktreeGc", "closeOut:active", "closeOut:checkProgress", "closeOut:checkProgressUnknown", "checks:progress", "checks:timings", "checks:reuse", "pages:scroll", "repo:dirtyMain", "closeOut:stalled", "closeOut:uploading", "closeOut:remoteTests", "drawer:closeOutBuilding", "drawer:closeOutBuildingNarrow", "drawer:closeOutRemoteTests", "drawer:closeOutRemoteTestsNarrow", "runners:queued", "integration:median15", "card:doneError", "board:withReviewTask", "card:reviewChecksRunning", "board:pipeline", "drawer:reviewWithBranch", "drawer:reviewPasses", "drawer:engineeringReports", "drawer:postMergeSummary", "drawer:landable", "drawer:statusReviewFailed", "drawer:statusReviewFailedNarrow", "drawer:statusHandoffFailed", "drawer:statusChecksRunning", "drawer:statusChecksRunningNarrow", "drawer:statusConfirmingHandoff", "drawer:handoffWaiting", "drawer:statusConfirmingHandoffNarrow", "drawer:statusChecksFailed", "drawer:statusChecksFailedNarrow", "drawer:statusDetails", "drawer:landableNarrow", "drawer:tabExpandWarnings", "drawer:activeRequirements", "drawer:nativePreviewBuilding", "drawer:nativePreviewRunning", "drawer:nativePreviewFailed", "drawer:shotEvidence", "drawer:debugLogs", "card:agentFailed", "card:humanStep", "card:held", "drawer:held", "card:reviewRoundsExhausted", "card:checkWaitDetail", "drawer:checkWaitDetail", "card:handoffConflict", "card:checkpointRecovery", "card:checksProgress", "card:checksReuse", "drawer:checksProgress", "drawer:checksReuse", "pipeline:checksProgress", "board:cardChips", "card:noChanges", "board:activeCoding", "checks:waiting", "board:severalWorkingCards", "board:startWorkPending", "drawer:startWorkPending", "settings:birdQuickTrail", "settings:rgbKeystorm", "settings:wheelieCourier", "settings:booSwoop", "settings:pumpkinSpell", "drawer:queuedMessage", "dev:failed", "dev:loading", "dev:running", "secrets:populated", "secrets:removeDialog", "deployments:environmentBinding", "deployments:loading", "editor:unconfigured", "panel:newInputOutstandingUpload", "panel:freeformFailedScreenshot", "panel:defaultScreenshotPicker", "budget:paused", "schedule:newPanel", "agents:scheduledSeeded", "reminders:due", "release:updateAvailable"];
|
|
6
|
+
export declare const SHOT_PREVIEW_FIXTURE_IDS: readonly ["system:worktreeGc", "closeOut:active", "closeOut:checkProgress", "closeOut:checkProgressUnknown", "checks:progress", "checks:timings", "checks:reuse", "pages:scroll", "repo:dirtyMain", "closeOut:stalled", "closeOut:uploading", "closeOut:remoteTests", "drawer:closeOutBuilding", "drawer:closeOutBuildingNarrow", "drawer:closeOutRemoteTests", "drawer:closeOutRemoteTestsNarrow", "runners:queued", "integration:median15", "card:doneError", "board:withReviewTask", "card:reviewChecksRunning", "card:reviewLandableReady", "card:handoffStaleActive", "board:pipeline", "drawer:reviewWithBranch", "drawer:reviewPasses", "drawer:engineeringReports", "drawer:postMergeSummary", "drawer:landable", "drawer:statusReviewFailed", "drawer:statusReviewFailedNarrow", "drawer:statusHandoffFailed", "drawer:statusChecksRunning", "drawer:statusChecksRunningNarrow", "drawer:statusConfirmingHandoff", "drawer:handoffWaiting", "drawer:statusConfirmingHandoffNarrow", "drawer:statusChecksFailed", "drawer:statusChecksFailedNarrow", "drawer:statusDetails", "drawer:landableNarrow", "drawer:tabExpandWarnings", "drawer:activeRequirements", "drawer:nativePreviewBuilding", "drawer:nativePreviewRunning", "drawer:nativePreviewFailed", "drawer:shotEvidence", "drawer:debugLogs", "card:agentFailed", "card:humanStep", "card:held", "drawer:held", "card:reviewRoundsExhausted", "card:checkWaitDetail", "drawer:checkWaitDetail", "card:handoffConflict", "card:checkpointRecovery", "card:checksProgress", "card:checksReuse", "drawer:checksProgress", "drawer:checksReuse", "pipeline:checksProgress", "board:cardChips", "card:noChanges", "board:activeCoding", "checks:waiting", "board:severalWorkingCards", "board:startWorkPending", "drawer:startWorkPending", "settings:birdQuickTrail", "settings:rgbKeystorm", "settings:wheelieCourier", "settings:booSwoop", "settings:pumpkinSpell", "settings:motionOff", "drawer:queuedMessage", "dev:failed", "dev:loading", "dev:running", "secrets:populated", "secrets:removeDialog", "deployments:environmentBinding", "deployments:loading", "editor:unconfigured", "panel:newInputOutstandingUpload", "panel:freeformFailedScreenshot", "panel:defaultScreenshotPicker", "budget:paused", "schedule:newPanel", "agents:scheduledSeeded", "reminders:due", "release:updateAvailable"];
|
|
7
7
|
export type ShotPreviewFixtureId = (typeof SHOT_PREVIEW_FIXTURE_IDS)[number];
|
|
8
8
|
export declare const SHOT_PREVIEW_FIXTURE_QUERY = "shotState";
|
|
9
9
|
/** Task id used by card/board fixtures so selectors can target one stable card. */
|
|
@@ -42,6 +42,9 @@ export const SHOT_PREVIEW_FIXTURE_IDS = [
|
|
|
42
42
|
"card:doneError",
|
|
43
43
|
"board:withReviewTask",
|
|
44
44
|
"card:reviewChecksRunning",
|
|
45
|
+
"card:reviewLandableReady",
|
|
46
|
+
// #1085 — active task with a stale but live handoff record on the checks line.
|
|
47
|
+
"card:handoffStaleActive",
|
|
45
48
|
// #1035 — several tasks spread across every pipeline stage (plus stuck,
|
|
46
49
|
// held, sent-back and recently-merged lanes) for the Pipeline view capture.
|
|
47
50
|
"board:pipeline",
|
|
@@ -140,6 +143,8 @@ export const SHOT_PREVIEW_FIXTURE_IDS = [
|
|
|
140
143
|
"settings:wheelieCourier",
|
|
141
144
|
"settings:booSwoop",
|
|
142
145
|
"settings:pumpkinSpell",
|
|
146
|
+
// #1062 — Settings activity animation with Motion off (no preview PATCH).
|
|
147
|
+
"settings:motionOff",
|
|
143
148
|
// #0821 — a task with a running agent and a message queued for when the turn
|
|
144
149
|
// ends, so a capture can show the composer's "Queued — will be read when the
|
|
145
150
|
// current turn ends" notice (and a still-usable send control).
|
package/dist/core/types.d.ts
CHANGED
|
@@ -523,6 +523,8 @@ export interface RepoOSConfig {
|
|
|
523
523
|
* Inline animation beside agent-activity labels. Default `orbital-pixel` when
|
|
524
524
|
* omitted. Use `three-dots` for the legacy pulsing-dot row.
|
|
525
525
|
*/
|
|
526
|
+
/** When false, activity indicators render a still status dot with no motion. Default true. */
|
|
527
|
+
activityAnimationEnabled?: boolean;
|
|
526
528
|
activityAnimationStyle?: ActivityAnimationStyle;
|
|
527
529
|
/**
|
|
528
530
|
* Fixed pixel width of the inline activity animation, the same on every
|
package/dist/server/agents.d.ts
CHANGED
|
@@ -1444,6 +1444,25 @@ export declare class AgentRunner {
|
|
|
1444
1444
|
*/
|
|
1445
1445
|
validatePreview(request: AgentPreviewRequest): boolean;
|
|
1446
1446
|
isRunning(taskId: string): boolean;
|
|
1447
|
+
/**
|
|
1448
|
+
* Whether an entry is registered for the key, WITHOUT reconciling dead agents.
|
|
1449
|
+
* For read paths (board GET, watchdog ticks) that only need to know whether
|
|
1450
|
+
* anything could hold the key: reconciling reads the registry and probes pids
|
|
1451
|
+
* for every entry, which is wrong to do once per idle task (#1083).
|
|
1452
|
+
*/
|
|
1453
|
+
hasEntry(taskId: string): boolean;
|
|
1454
|
+
/**
|
|
1455
|
+
* Whether a review's reviewer process is still running (#1083). An entry that
|
|
1456
|
+
* is finalizing has already exited, so it does not count, even though its
|
|
1457
|
+
* finalize has not settled yet.
|
|
1458
|
+
*/
|
|
1459
|
+
reviewProcessLive(taskId: string): boolean;
|
|
1460
|
+
/**
|
|
1461
|
+
* Drop a review entry whose process is gone but whose finalize never settled
|
|
1462
|
+
* (#1083). The late finalize then leaves any newer entry for the same key
|
|
1463
|
+
* alone. Returns true when it dropped one.
|
|
1464
|
+
*/
|
|
1465
|
+
abandonFinalizing(taskId: string): boolean;
|
|
1447
1466
|
/** Drop dead or worktree-less engineer turns before they can fence a new run. */
|
|
1448
1467
|
reconcileDeadAgents(): string[];
|
|
1449
1468
|
/**
|