@repo-os/repoos 0.5.76 → 0.5.78

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.
Files changed (188) hide show
  1. package/dist/.build-info.json +2 -2
  2. package/dist/.build-stamp.json +1 -1
  3. package/dist/cli/api-route-parity.js +3 -0
  4. package/dist/cli/help.js +10 -4
  5. package/dist/cli/index.js +7 -1
  6. package/dist/commands/control-api.d.ts +65 -2
  7. package/dist/commands/control-api.js +201 -50
  8. package/dist/commands/message-input.test.d.ts +1 -0
  9. package/dist/commands/message-input.test.js +61 -0
  10. package/dist/core/active-task-card.d.ts +5 -0
  11. package/dist/core/active-task-card.js +9 -0
  12. package/dist/core/agent-compatibility.json +22 -0
  13. package/dist/core/agent-contract.d.ts +61 -0
  14. package/dist/core/agent-contract.js +144 -2
  15. package/dist/core/agents-md-size.test.d.ts +1 -0
  16. package/dist/core/agents-md-size.test.js +13 -0
  17. package/dist/core/config.d.ts +1 -1
  18. package/dist/core/config.js +15 -0
  19. package/dist/core/db.d.ts +5 -1
  20. package/dist/core/db.js +7 -3
  21. package/dist/core/detect.js +14 -0
  22. package/dist/core/doctor.js +4 -2
  23. package/dist/core/frontmatter.js +7 -1
  24. package/dist/core/git-maintenance-lsof.test.d.ts +1 -0
  25. package/dist/core/git-maintenance-lsof.test.js +32 -0
  26. package/dist/core/git-maintenance.d.ts +2 -0
  27. package/dist/core/git-maintenance.js +10 -5
  28. package/dist/core/indexer.js +7 -8
  29. package/dist/core/model-routing/facts.js +1 -0
  30. package/dist/core/model-routing/harness.js +4 -0
  31. package/dist/core/models.d.ts +7 -0
  32. package/dist/core/models.js +17 -0
  33. package/dist/core/providers/spend.d.ts +36 -5
  34. package/dist/core/providers/spend.js +130 -4
  35. package/dist/core/repo-log.js +18 -8
  36. package/dist/core/shot-fixtures.d.ts +1 -1
  37. package/dist/core/shot-fixtures.js +11 -0
  38. package/dist/core/shot-targets.d.ts +1 -1
  39. package/dist/core/shot-targets.js +1 -0
  40. package/dist/core/task-body-normalize.test.js +10 -0
  41. package/dist/core/task-dependencies.js +22 -8
  42. package/dist/core/task-dependencies.test.js +46 -0
  43. package/dist/core/task-summary.d.ts +149 -0
  44. package/dist/core/task-summary.js +269 -0
  45. package/dist/core/task-summary.test.d.ts +1 -0
  46. package/dist/core/task-summary.test.js +247 -0
  47. package/dist/core/task.d.ts +6 -0
  48. package/dist/core/task.js +14 -1
  49. package/dist/core/types.d.ts +1 -0
  50. package/dist/server/agents.d.ts +117 -2
  51. package/dist/server/agents.js +655 -7
  52. package/dist/server/handoff-status.d.ts +16 -0
  53. package/dist/server/handoff-status.js +14 -0
  54. package/dist/server/handoff.d.ts +2 -0
  55. package/dist/server/handoff.js +38 -2
  56. package/dist/server/integration-orchestrator.d.ts +1 -0
  57. package/dist/server/integration-orchestrator.js +56 -40
  58. package/dist/server/live-index.js +13 -6
  59. package/dist/server/model-test.js +1 -0
  60. package/dist/server/remote-validation.d.ts +96 -10
  61. package/dist/server/remote-validation.js +463 -55
  62. package/dist/server/routes/agents.js +1 -1
  63. package/dist/server/routes/model-providers.js +21 -7
  64. package/dist/server/routes/tasks.d.ts +12 -0
  65. package/dist/server/routes/tasks.js +60 -0
  66. package/dist/server/server.js +3 -1
  67. package/dist/server/task-summary.d.ts +131 -0
  68. package/dist/server/task-summary.js +754 -0
  69. package/dist/server/write.js +4 -6
  70. package/dist/ui/assets/{ActivityIndicator-meIh-6Qi.js → ActivityIndicator-BXn8FXaH.js} +1 -1
  71. package/dist/ui/assets/{AgentModelControl-CUkgcahC.js → AgentModelControl-B7Nx53jN.js} +1 -1
  72. package/dist/ui/assets/{AgentModelModal-et6vEhsU.js → AgentModelModal-BexSFFvC.js} +1 -1
  73. package/dist/ui/assets/AgentsView-BDSUKKjx.js +2 -0
  74. package/dist/ui/assets/AgentsView-fw80jZzb.css +1 -0
  75. package/dist/ui/assets/{ChatAgentModelChip-BzJzDKcR.js → ChatAgentModelChip-BH10OXwQ.js} +1 -1
  76. package/dist/ui/assets/ChecksView-7XjxxvM3.js +0 -0
  77. package/dist/ui/assets/{ChecksView-CfIhwy6Z.css → ChecksView-bW4060TJ.css} +1 -1
  78. package/dist/ui/assets/ClientBoardView-BtvaFmwp.js +1 -0
  79. package/dist/ui/assets/ClientBoardView-CMI5835W.css +1 -0
  80. package/dist/ui/assets/ContextView-BfO-Io9R.js +4 -0
  81. package/dist/ui/assets/DashboardView-CAu2hv1W.js +1 -0
  82. package/dist/ui/assets/{DeploymentsView-BvFWskO3.js → DeploymentsView-DB-oQnih.js} +1 -1
  83. package/dist/ui/assets/{DevView-DKXpK5Qm.js → DevView-DK0NFETd.js} +2 -2
  84. package/dist/ui/assets/DiffView-DLg3DKTC.css +1 -0
  85. package/dist/ui/assets/DiffView-Doamf-Ib.js +6 -0
  86. package/dist/ui/assets/{FailedTestsList-DoNaF-o9.js → FailedTestsList-dqUj2Jdc.js} +1 -1
  87. package/dist/ui/assets/{InputsView-KeayUEJY.js → InputsView-CIi6y1tW.js} +1 -1
  88. package/dist/ui/assets/{LoginView-CvXpXpGP.js → LoginView-DHoT2wvS.js} +1 -1
  89. package/dist/ui/assets/{PageSkeleton-DJRKj5JK.js → PageSkeleton-BYwhPs40.js} +1 -1
  90. package/dist/ui/assets/{ReleasesView-9CdkP52G.js → ReleasesView-DMoT64oC.js} +1 -1
  91. package/dist/ui/assets/SecretsView-DHitDUwx.js +1 -0
  92. package/dist/ui/assets/SettingsView-Doem5tZO.js +4 -0
  93. package/dist/ui/assets/StoriesView-C092wbH4.js +1 -0
  94. package/dist/ui/assets/{VoiceDictate-CaVNQ8T-.js → VoiceDictate-BpAHW05d.js} +1 -1
  95. package/dist/ui/assets/WorkView-6a0gN2l-.css +1 -0
  96. package/dist/ui/assets/WorkView-DUltG-o6.js +2 -0
  97. package/dist/ui/assets/{abnfDiagram-VCTEODGH-BI749mHF.js → abnfDiagram-VCTEODGH-Ck6r7miV.js} +1 -1
  98. package/dist/ui/assets/{architectureDiagram-5GKGNRK7-CtGA7LVO.js → architectureDiagram-5GKGNRK7-Cc0fxIsa.js} +1 -1
  99. package/dist/ui/assets/{blockDiagram-I7D4REHJ-puRAhxem.js → blockDiagram-I7D4REHJ-0UOj4eU8.js} +1 -1
  100. package/dist/ui/assets/{c4Diagram-7LVT6UL2-C4CGYisP.js → c4Diagram-7LVT6UL2-DFVZRqEB.js} +1 -1
  101. package/dist/ui/assets/channel-Cvd9RE10.js +1 -0
  102. package/dist/ui/assets/check-setup-C5eaJYZG.js +2 -0
  103. package/dist/ui/assets/{chunk-2E4U76K2-DjnKVsYi.js → chunk-2E4U76K2-Bx7GZJ_K.js} +1 -1
  104. package/dist/ui/assets/{chunk-4HAMMTFA-CDnKKfj8.js → chunk-4HAMMTFA-CcFh7yhX.js} +1 -1
  105. package/dist/ui/assets/{chunk-75Z2AOVW-CKQ7DeM6.js → chunk-75Z2AOVW-Ch_fDxwg.js} +1 -1
  106. package/dist/ui/assets/{chunk-CLGD4ZFX-C4wu0WZN.js → chunk-CLGD4ZFX-C3H0Sy2V.js} +1 -1
  107. package/dist/ui/assets/{chunk-DU6HZSFF-DrJ5bmzy.js → chunk-DU6HZSFF-Ip5LXuND.js} +1 -1
  108. package/dist/ui/assets/{chunk-F27PBJKO-CzXjmHDd.js → chunk-F27PBJKO-BC2HCExR.js} +1 -1
  109. package/dist/ui/assets/{chunk-GMAD6QVW-CcWcSwCd.js → chunk-GMAD6QVW-D9vexk6P.js} +1 -1
  110. package/dist/ui/assets/{chunk-GVQU2GXP-BaenLrCK.js → chunk-GVQU2GXP-DlFChOLd.js} +1 -1
  111. package/dist/ui/assets/{chunk-IMKFNOWR-JyaOH2dq.js → chunk-IMKFNOWR-BwF7XF8L.js} +1 -1
  112. package/dist/ui/assets/{chunk-L3NEJ4N5-D-Soe8Pq.js → chunk-L3NEJ4N5-8JuimrXI.js} +1 -1
  113. package/dist/ui/assets/{chunk-OSK3NFVY-DyEqccWY.js → chunk-OSK3NFVY-CEk1_jZZ.js} +1 -1
  114. package/dist/ui/assets/{chunk-P2QGCYS3-PZxLXffD.js → chunk-P2QGCYS3-BFEJ9oIY.js} +1 -1
  115. package/dist/ui/assets/{chunk-POPQ4Y6H-CLOE0hWn.js → chunk-POPQ4Y6H-ls4xuYo0.js} +1 -1
  116. package/dist/ui/assets/{chunk-PWAF6VOD-092-eJK8.js → chunk-PWAF6VOD-DAVLljYp.js} +1 -1
  117. package/dist/ui/assets/{chunk-SHT3W25Y-CSc5sy8R.js → chunk-SHT3W25Y-59nxdP_9.js} +1 -1
  118. package/dist/ui/assets/{chunk-SVP7TREG-BLTmX5VJ.js → chunk-SVP7TREG-BexCXvFB.js} +1 -1
  119. package/dist/ui/assets/{chunk-TICWLB2K-SzItQUhb.js → chunk-TICWLB2K-BOEpbfJI.js} +1 -1
  120. package/dist/ui/assets/{chunk-TLUHSLCS-DMnSH-ft.js → chunk-TLUHSLCS-BE4liAeZ.js} +2 -2
  121. package/dist/ui/assets/classDiagram-ZZMXUADV-0Lpgi9vA.js +1 -0
  122. package/dist/ui/assets/classDiagram-v2-VYDZK3BY-0Lpgi9vA.js +1 -0
  123. package/dist/ui/assets/{cynefinDiagram-5FMLGOSQ-1ilx8mKu.js → cynefinDiagram-5FMLGOSQ-BEuH8cqK.js} +1 -1
  124. package/dist/ui/assets/{dagre-GXQ25YYZ-C3A59Q6w.js → dagre-GXQ25YYZ-DJHX7JRM.js} +1 -1
  125. package/dist/ui/assets/{diagram-S7CK7UJ4-B-6B9kWN.js → diagram-S7CK7UJ4-CeD3KxHQ.js} +1 -1
  126. package/dist/ui/assets/{diagram-UQ7AKVKN-BqxmQJR8.js → diagram-UQ7AKVKN-B_Ur_853.js} +1 -1
  127. package/dist/ui/assets/{diagram-VSXAHHWV-Ck9wWlUm.js → diagram-VSXAHHWV-k1B3tbTY.js} +1 -1
  128. package/dist/ui/assets/{diagram-VX7I27RA-BQe2g3vh.js → diagram-VX7I27RA-CaI3Gi6a.js} +1 -1
  129. package/dist/ui/assets/{diagram-Z3DM3KII-DD8365dG.js → diagram-Z3DM3KII-AaNCy6XD.js} +1 -1
  130. package/dist/ui/assets/{docs-itn09t2R.js → docs-Clr18AxL.js} +1 -1
  131. package/dist/ui/assets/{ebnfDiagram-PWID7BFC-Bz8cpJNy.js → ebnfDiagram-PWID7BFC-CWdQLfbF.js} +1 -1
  132. package/dist/ui/assets/{erDiagram-RLTQ6QDP-Bc6u3S9N.js → erDiagram-RLTQ6QDP-vPkf6OX1.js} +1 -1
  133. package/dist/ui/assets/flowDiagram-HODETNUW-DzaFBPZM.js +1 -0
  134. package/dist/ui/assets/{ganttDiagram-EL5Y4UJY-DVDVRjA0.js → ganttDiagram-EL5Y4UJY-Dfc5nDxI.js} +1 -1
  135. package/dist/ui/assets/{gitGraphDiagram-WWUBYQGX-CFUXHZWf.js → gitGraphDiagram-WWUBYQGX-Bq9a64PC.js} +1 -1
  136. package/dist/ui/assets/index-CqzMM_H1.css +1 -0
  137. package/dist/ui/assets/index-CrnbCa_P.js +92 -0
  138. package/dist/ui/assets/{infoDiagram-27XIBGKW-C-7l9NCQ.js → infoDiagram-27XIBGKW-CW8gtkIj.js} +1 -1
  139. package/dist/ui/assets/{ishikawaDiagram-5VMMS53U-Bjq-LdEc.js → ishikawaDiagram-5VMMS53U-Bc1Rh_cU.js} +1 -1
  140. package/dist/ui/assets/{journeyDiagram-3NMN7TZE-o4M0lP2i.js → journeyDiagram-3NMN7TZE-BjWhklZZ.js} +1 -1
  141. package/dist/ui/assets/{kanban-definition-UXKFOSKX-BYqVEzsr.js → kanban-definition-UXKFOSKX-EJjRtvtc.js} +1 -1
  142. package/dist/ui/assets/{line-4TL08MsA.js → line-DsEqHdtk.js} +1 -1
  143. package/dist/ui/assets/{mermaid-parser.core-DrM_vPwv.js → mermaid-parser.core-BN01g6kH.js} +1 -1
  144. package/dist/ui/assets/{mermaid.core-Dzz_-qU1.js → mermaid.core-BZVMMw-7.js} +3 -3
  145. package/dist/ui/assets/{mindmap-definition-YA3MSWOX-CaKNZzR5.js → mindmap-definition-YA3MSWOX-C4KW0x2p.js} +1 -1
  146. package/dist/ui/assets/{pegDiagram-XKGWAZYB-DbKJ-jrI.js → pegDiagram-XKGWAZYB-CWCksxEq.js} +1 -1
  147. package/dist/ui/assets/{pieDiagram-E7YTZNPT-CPiwJysC.js → pieDiagram-E7YTZNPT-DIa72Gin.js} +1 -1
  148. package/dist/ui/assets/{quadrantDiagram-AXDQQJYC-q32X56Gx.js → quadrantDiagram-AXDQQJYC-Cr3_KoMM.js} +1 -1
  149. package/dist/ui/assets/{railroadDiagram-O6MQD6OU-DNMhXeke.js → railroadDiagram-O6MQD6OU-BblfxqzT.js} +1 -1
  150. package/dist/ui/assets/repo-W2udocGJ.js +61 -0
  151. package/dist/ui/assets/{requirementDiagram-BXWQKSXE-BW09ERRd.js → requirementDiagram-BXWQKSXE-DiDG9q-4.js} +1 -1
  152. package/dist/ui/assets/{sankeyDiagram-P5KCCOFB-BM5y8xIj.js → sankeyDiagram-P5KCCOFB-6DsHJ6Jh.js} +1 -1
  153. package/dist/ui/assets/{sequenceDiagram-WJ2MYXX4-QCl8JI9d.js → sequenceDiagram-WJ2MYXX4-CnA-wuKZ.js} +1 -1
  154. package/dist/ui/assets/{stateDiagram-D77RDMKH-CURAhx8F.js → stateDiagram-D77RDMKH-B1qC_HH_.js} +1 -1
  155. package/dist/ui/assets/stateDiagram-v2-MP3YSRHH-D7Wr-Zwf.js +1 -0
  156. package/dist/ui/assets/{swimlanes-42K2YHIH-CxCV3G9b.js → swimlanes-42K2YHIH-CqZkLtRu.js} +1 -1
  157. package/dist/ui/assets/swimlanesDiagram-VR7AAH4N-CJtYP160.js +8 -0
  158. package/dist/ui/assets/time-8KGOT2-i.js +1 -0
  159. package/dist/ui/assets/{timeline-definition-24CTP7MA-_hEyz10W.js → timeline-definition-24CTP7MA-Be1h9Gq-.js} +1 -1
  160. package/dist/ui/assets/{vennDiagram-4TSXK5OY-CdB16vQ8.js → vennDiagram-4TSXK5OY-BE5YDpBV.js} +1 -1
  161. package/dist/ui/assets/{wardleyDiagram-VM6X3IG4-Bl7UPuNA.js → wardleyDiagram-VM6X3IG4-D_s2lGsn.js} +1 -1
  162. package/dist/ui/assets/{xychartDiagram-S5SC5T6Z-BN1ho0Vx.js → xychartDiagram-S5SC5T6Z-BgsF5rLo.js} +1 -1
  163. package/dist/ui/index.html +12 -12
  164. package/dist/ui/sw.js +2 -2
  165. package/package.json +1 -1
  166. package/dist/ui/assets/AgentsView-DBPauK5u.css +0 -1
  167. package/dist/ui/assets/AgentsView-DF4JpOuL.js +0 -2
  168. package/dist/ui/assets/ChecksView-C7N3Ypeq.js +0 -0
  169. package/dist/ui/assets/ContextView-BZdavSqS.js +0 -4
  170. package/dist/ui/assets/DashboardView-OFLi1McO.js +0 -1
  171. package/dist/ui/assets/DiffView-Br-vTJ0v.js +0 -4
  172. package/dist/ui/assets/DiffView-CcApcT6t.css +0 -1
  173. package/dist/ui/assets/SecretsView-BwDra-GT.js +0 -1
  174. package/dist/ui/assets/SettingsView-DNCRJx13.js +0 -4
  175. package/dist/ui/assets/StoriesView-to9fS2F0.js +0 -1
  176. package/dist/ui/assets/WorkView-C7qnLKcz.css +0 -1
  177. package/dist/ui/assets/WorkView-D9GE8twS.js +0 -2
  178. package/dist/ui/assets/channel-D_S1ZUW_.js +0 -1
  179. package/dist/ui/assets/check-setup-DSNmeJ0T.js +0 -2
  180. package/dist/ui/assets/classDiagram-ZZMXUADV-B7QHFk-U.js +0 -1
  181. package/dist/ui/assets/classDiagram-v2-VYDZK3BY-B7QHFk-U.js +0 -1
  182. package/dist/ui/assets/flowDiagram-HODETNUW-Ba7ylFp4.js +0 -1
  183. package/dist/ui/assets/index-DITWgaOj.css +0 -1
  184. package/dist/ui/assets/index-DqJOYNud.js +0 -68
  185. package/dist/ui/assets/repo-BuEVC7d2.js +0 -59
  186. package/dist/ui/assets/stateDiagram-v2-MP3YSRHH-CnyC3tkF.js +0 -1
  187. package/dist/ui/assets/swimlanesDiagram-VR7AAH4N-R6ULRXhK.js +0 -8
  188. package/dist/ui/assets/time-CKklpdEK.js +0 -1
@@ -34,6 +34,64 @@ export interface AdapterContractOptions {
34
34
  * model depends on ambient env/auth (pi). Ignored where no `modelArgs` exists. */
35
35
  model?: string;
36
36
  }
37
+ interface RunParseResult {
38
+ sessionId: string | null;
39
+ hasAnswer: boolean;
40
+ recognized: number;
41
+ total: number;
42
+ detail: string;
43
+ }
44
+ interface ContractCommandTemplates {
45
+ version: () => string[];
46
+ help: () => string[];
47
+ /** Returns args for model listing, or null when the CLI has no model-listing command. */
48
+ models: () => string[] | null;
49
+ run: (dir: string, prompt: string) => string[];
50
+ /** Args that select a model, inserted at the front of run/resume argv. */
51
+ modelArgs?: (model: string) => string[];
52
+ /**
53
+ * Insert `modelArgs` after the first argv token (the subcommand) instead of
54
+ * at the front. Needed where a root-level option makes the CLI read the
55
+ * subcommand as a prompt: `muse --model m exec …` runs the TUI with prompt
56
+ * "exec"; `muse exec --model m …` is correct.
57
+ */
58
+ modelAfterSubcommand?: boolean;
59
+ resume: (dir: string, sessionId: string, prompt: string) => string[];
60
+ /** Parse run stdout to extract session id and confirm the harness answered. Defaults to opencode parser. */
61
+ parseRun?: (stdout: string) => RunParseResult;
62
+ /**
63
+ * How this harness grants tool permission in a non-interactive run.
64
+ * Default `"flag"`: one of the known auto flags must be present in the run
65
+ * argv, and the seam fails when it is missing. `"mode"`: the harness
66
+ * auto-approves by virtue of being non-interactive and accepts no flag (e.g.
67
+ * crush) — the seam passes on a clean one-shot and says so.
68
+ */
69
+ autoPermissions?: "flag" | "mode";
70
+ /**
71
+ * Signal used to exercise the cancellation seam. Default `SIGTERM`; crush
72
+ * needs `SIGINT` (SIGTERM orphans its tool subprocesses).
73
+ */
74
+ cancelSignal?: NodeJS.Signals;
75
+ /**
76
+ * Seams to auto-pass with a note rather than probe. Use for a CLI that
77
+ * genuinely cannot satisfy a seam (e.g. kiro outputs no session ID during a
78
+ * run, so session-continuation is captured post-run via the sessions list).
79
+ */
80
+ skipSeams?: Partial<Record<ContractCapabilityId, string>>;
81
+ }
82
+ /**
83
+ * Cap on muse model steps per RepoOS turn. muse forgets options between
84
+ * processes, so the driver resends this on every invocation (fresh and
85
+ * resume). Generous enough for a real engineer turn; revisit at certification.
86
+ */
87
+ export declare const MUSE_MAX_MODEL_STEPS = 50;
88
+ /**
89
+ * Per-turn step cap for MANAGED ENGINEER turns. 50 is right for probes and
90
+ * advisory turns but far too small for real work: a live #1041 turn used
91
+ * exactly 50 model calls and stopped mid-feature (2026-11-06), which RepoOS
92
+ * read as "ended without a handoff". Muse is the only driver with a step cap.
93
+ */
94
+ export declare const MUSE_ENGINEER_MAX_MODEL_STEPS = 200;
37
95
  /**
38
96
  * Cheap model each harness is pinned to for live probes, so certifying all of
39
97
  * them doesn't run flagship models for "Reply with the single word OK."
@@ -42,6 +100,9 @@ export interface AdapterContractOptions {
42
100
  * `--model <id>` overrides.
43
101
  */
44
102
  export declare const DEFAULT_PROBE_MODELS: Record<string, string>;
103
+ /** Probe argv with model flags placed where the harness accepts them (see `modelAfterSubcommand`). */
104
+ export declare function withProbeModelArgs(templates: Pick<ContractCommandTemplates, "modelAfterSubcommand">, modelArgs: string[], argv: string[]): string[];
45
105
  /** The model a live probe of `cli` runs on: explicit, else the cheap pin, else harness default. */
46
106
  export declare function resolveProbeModel(cli: string, mode: "fixture" | "live", explicit?: string | null): string | null;
47
107
  export declare function runAdapterContract(opts: AdapterContractOptions): Promise<AdapterContractResult>;
108
+ export {};
@@ -635,6 +635,134 @@ const ANTIGRAVITY_CONTRACT = {
635
635
  ],
636
636
  parseRun: parseAgyRun,
637
637
  };
638
+ /**
639
+ * Muse Code (Meta) — `muse exec --json` streams one MSP-envelope JSON object
640
+ * per line (`{ stream: { kind, id }, payload_type, payload }`). The session id
641
+ * is the `stream.id` of `kind: "session"` records (the `--session-id` value
642
+ * when one was passed); the answer arrives incrementally as
643
+ * `run.output.delta` text and whole in the terminal `run.terminal.completed`
644
+ * record; per-turn tokens arrive in `run.usage` (`payload.models[]`).
645
+ * `--session-id` accepts only UUIDs (anything else exits 2), so RepoOS mints
646
+ * the id client-side. Verified live against muse 1.4.14 on 2026-11-05 — see
647
+ * docs/agent-compatibility.md.
648
+ */
649
+ function parseMuseRun(stdout) {
650
+ const KNOWN = new Set([
651
+ "runtime.command.accepted",
652
+ "session.run.linked",
653
+ "run.model.configured",
654
+ "session.workspace_branch.observed",
655
+ "turn.input.user",
656
+ "run.lifecycle.started",
657
+ "task.stream.linked",
658
+ "task.lifecycle.proposed",
659
+ "task.lifecycle.accepted",
660
+ "task.lifecycle.scheduled",
661
+ "task.lifecycle.side_effect_intent",
662
+ "task.lifecycle.started",
663
+ "task.lifecycle.status",
664
+ "task.lifecycle.output",
665
+ "task.lifecycle.completed",
666
+ "task.lifecycle.cancelled",
667
+ "run.output.delta",
668
+ "tool.result",
669
+ "run.usage",
670
+ "run.terminal.completed",
671
+ ]);
672
+ let sessionId = null;
673
+ let hasAnswer = false;
674
+ let recognized = 0;
675
+ let total = 0;
676
+ for (const line of stdout.split("\n")) {
677
+ const t = line.trim();
678
+ if (!t)
679
+ continue;
680
+ try {
681
+ const ev = JSON.parse(t);
682
+ total++;
683
+ const payloadType = typeof ev.payload_type === "string" ? ev.payload_type : "";
684
+ if (KNOWN.has(payloadType))
685
+ recognized++;
686
+ const stream = ev.stream;
687
+ if (stream && stream.kind === "session" && typeof stream.id === "string" && stream.id) {
688
+ sessionId = stream.id;
689
+ }
690
+ const payload = ev.payload;
691
+ if (payloadType === "run.output.delta") {
692
+ if (typeof payload?.text === "string" && /OK/i.test(payload.text))
693
+ hasAnswer = true;
694
+ }
695
+ if (payloadType === "run.terminal.completed") {
696
+ if (payload &&
697
+ typeof payload.text === "string" &&
698
+ (payload.terminal === "completed" || !payload.terminal) &&
699
+ /OK/i.test(payload.text)) {
700
+ hasAnswer = true;
701
+ }
702
+ }
703
+ }
704
+ catch {
705
+ /* skip malformed lines */
706
+ }
707
+ }
708
+ return {
709
+ sessionId,
710
+ hasAnswer,
711
+ recognized,
712
+ total,
713
+ detail: total === 0
714
+ ? "no JSON lines in output"
715
+ : `${recognized}/${total} recognized events; answer found: ${hasAnswer}`,
716
+ };
717
+ }
718
+ /**
719
+ * Cap on muse model steps per RepoOS turn. muse forgets options between
720
+ * processes, so the driver resends this on every invocation (fresh and
721
+ * resume). Generous enough for a real engineer turn; revisit at certification.
722
+ */
723
+ export const MUSE_MAX_MODEL_STEPS = 50;
724
+ /**
725
+ * Per-turn step cap for MANAGED ENGINEER turns. 50 is right for probes and
726
+ * advisory turns but far too small for real work: a live #1041 turn used
727
+ * exactly 50 model calls and stopped mid-feature (2026-11-06), which RepoOS
728
+ * read as "ended without a handoff". Muse is the only driver with a step cap.
729
+ */
730
+ export const MUSE_ENGINEER_MAX_MODEL_STEPS = 200;
731
+ /** Muse Code (Meta) — headless `exec --json`, UUID session resume. */
732
+ const MUSE_CONTRACT = {
733
+ version: () => ["--version"],
734
+ help: () => ["--help"],
735
+ // No model-listing subcommand exists (`muse models` is unknown); per-model
736
+ // validation is `muse model-profile show <model>`, so discovery passes with
737
+ // the claude-style note and the driver pins a fixed default list.
738
+ models: () => null,
739
+ modelArgs: (model) => ["--model", model],
740
+ // `muse --model m exec` treats "exec" as a prompt (live probe, 2026-11-05).
741
+ modelAfterSubcommand: true,
742
+ run: (_dir, prompt) => [
743
+ "exec",
744
+ "--json",
745
+ "--trust-workspace",
746
+ "--approval-mode",
747
+ "never",
748
+ "--max-model-steps",
749
+ String(MUSE_MAX_MODEL_STEPS),
750
+ prompt,
751
+ ],
752
+ resume: (_dir, sessionId, prompt) => [
753
+ "exec",
754
+ "--json",
755
+ "--trust-workspace",
756
+ "--approval-mode",
757
+ "never",
758
+ "--max-model-steps",
759
+ String(MUSE_MAX_MODEL_STEPS),
760
+ "--session-id",
761
+ sessionId,
762
+ prompt,
763
+ ],
764
+ parseRun: parseMuseRun,
765
+ };
638
766
  /** Templates keyed by canonical cli id; `--format json` parsers live here too. */
639
767
  const CONTRACT_TEMPLATES = {
640
768
  opencode: opencodeContract,
@@ -647,6 +775,7 @@ const CONTRACT_TEMPLATES = {
647
775
  "github copilot": () => COPILOT_CONTRACT,
648
776
  crush: () => CRUSH_CONTRACT,
649
777
  pi: () => PI_CONTRACT,
778
+ muse: () => MUSE_CONTRACT,
650
779
  };
651
780
  /**
652
781
  * Cheap model each harness is pinned to for live probes, so certifying all of
@@ -661,7 +790,17 @@ export const DEFAULT_PROBE_MODELS = {
661
790
  antigravity: "gemini-3.8-flash-low",
662
791
  "github copilot": "copilot-auto-efficiency",
663
792
  pi: "openrouter/z-ai/glm-5.3-flash",
793
+ muse: "muse-spark-1.3",
664
794
  };
795
+ /** Probe argv with model flags placed where the harness accepts them (see `modelAfterSubcommand`). */
796
+ export function withProbeModelArgs(templates, modelArgs, argv) {
797
+ if (modelArgs.length === 0)
798
+ return argv;
799
+ if (templates.modelAfterSubcommand && argv.length > 0) {
800
+ return [argv[0], ...modelArgs, ...argv.slice(1)];
801
+ }
802
+ return [...modelArgs, ...argv];
803
+ }
665
804
  /** The model a live probe of `cli` runs on: explicit, else the cheap pin, else harness default. */
666
805
  export function resolveProbeModel(cli, mode, explicit) {
667
806
  if (explicit)
@@ -962,7 +1101,7 @@ export async function runAdapterContract(opts) {
962
1101
  // ── headless one-shot (shared with structured-events + auto) ───────
963
1102
  const probeModel = resolveProbeModel(cli, mode, opts.model);
964
1103
  const modelArgs = probeModel && templates.modelArgs ? templates.modelArgs(probeModel) : [];
965
- const runArgs = [...modelArgs, ...templates.run(workDir, PROBE_PROMPT)];
1104
+ const runArgs = withProbeModelArgs(templates, modelArgs, templates.run(workDir, PROBE_PROMPT));
966
1105
  const oneShot = await spawnCapture(binary, runArgs, { timeoutMs, cwd: workDir });
967
1106
  // Use per-harness parser if provided, else fall back to opencode parser.
968
1107
  const parsedRun = templates.parseRun
@@ -999,6 +1138,9 @@ export async function runAdapterContract(opts) {
999
1138
  "--dangerously-skip-permissions",
1000
1139
  "--dangerously-bypass-approvals-and-sandbox",
1001
1140
  "--trust-all-tools",
1141
+ // muse sets its approval mode explicitly (`--approval-mode never`, with
1142
+ // the sandbox left on) instead of a blanket bypass flag.
1143
+ "--approval-mode",
1002
1144
  "--yolo",
1003
1145
  "-f",
1004
1146
  "--force",
@@ -1031,7 +1173,7 @@ export async function runAdapterContract(opts) {
1031
1173
  probe("session-continuation", "Session continuation", false, "no session id found in the one-shot output, so a follow-up could not be started");
1032
1174
  }
1033
1175
  else {
1034
- const resumeArgs = [...modelArgs, ...templates.resume(workDir, sessionId, PROBE_PROMPT)];
1176
+ const resumeArgs = withProbeModelArgs(templates, modelArgs, templates.resume(workDir, sessionId, PROBE_PROMPT));
1035
1177
  const resume = await spawnCapture(binary, resumeArgs, { timeoutMs, cwd: workDir });
1036
1178
  const resumeParsed = templates.parseRun
1037
1179
  ? templates.parseRun(resume.stdout)
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import { readFileSync } from "node:fs";
2
+ import { join } from "node:path";
3
+ import { describe, expect, it } from "vitest";
4
+ // AGENTS.md is truncated by several agents (Codex 32 KiB default, Muse Code
5
+ // 64 KiB; Claude Code warns near 40k chars). Keep it small: see
6
+ // docs/agents-md-size.md.
7
+ const LIMIT_BYTES = 30_000;
8
+ describe("AGENTS.md size budget", () => {
9
+ it("stays under the budget agents can read in full", () => {
10
+ const bytes = readFileSync(join(__dirname, "../../AGENTS.md")).byteLength;
11
+ expect(bytes, `AGENTS.md is ${bytes} bytes; move detail to docs/ (see docs/agents-md-size.md)`).toBeLessThan(LIMIT_BYTES);
12
+ });
13
+ });
@@ -3,7 +3,7 @@ export { parseDevTargets } from "./dev-targets.js";
3
3
  /** Default display labels for board columns, keyed by canonical status ID. */
4
4
  export declare const DEFAULT_COLUMN_LABELS: Record<string, string>;
5
5
  /** Coding agents an Agent can run under. */
6
- export declare const AGENT_CLIS: readonly ["opencode", "claude code", "qwen code", "kiro", "codex", "github copilot", "cursor", "antigravity", "crush", "pi"];
6
+ export declare const AGENT_CLIS: readonly ["opencode", "claude code", "qwen code", "kiro", "codex", "github copilot", "cursor", "antigravity", "crush", "pi", "muse"];
7
7
  /** Models an Agent can pin (or "default" for the coding agent's default). */
8
8
  export declare const AGENT_MODELS: readonly ["default", "big pickle", "deepseek v4"];
9
9
  /**
@@ -47,6 +47,7 @@ export const AGENT_CLIS = [
47
47
  "antigravity",
48
48
  "crush",
49
49
  "pi",
50
+ "muse",
50
51
  ];
51
52
  /** Models an Agent can pin (or "default" for the coding agent's default). */
52
53
  export const AGENT_MODELS = ["default", "big pickle", "deepseek v4"];
@@ -234,6 +235,7 @@ export const DEFAULT_CONFIG = {
234
235
  worktreeWarnThreshold: 20,
235
236
  board: {
236
237
  agentPopoverCloseSeconds: 15,
238
+ doneCollapsedByDefault: true,
237
239
  },
238
240
  whisper: {
239
241
  provider: "none",
@@ -1560,6 +1562,9 @@ export function loadConfig(rootArg, options = {}) {
1560
1562
  cfg.worktreeWarnThreshold = Math.floor(worktreeWarnThreshold);
1561
1563
  else if (typeof worktreeWarnThreshold === "string" && /^\d+$/.test(worktreeWarnThreshold))
1562
1564
  cfg.worktreeWarnThreshold = Number(worktreeWarnThreshold);
1565
+ const doneCollapsedByDefault = get("board.doneCollapsedByDefault");
1566
+ if (typeof doneCollapsedByDefault === "boolean")
1567
+ cfg.board = { ...cfg.board, doneCollapsedByDefault };
1563
1568
  const popoverClose = get("board.agentPopoverCloseSeconds");
1564
1569
  const popoverCloseNum = typeof popoverClose === "number"
1565
1570
  ? popoverClose
@@ -2900,6 +2905,15 @@ export function getConfigSchema() {
2900
2905
  ],
2901
2906
  description: "Advisory ceiling on registered git worktrees. Above it, the Control page's Codebase card turns amber and the server logs a `repoos gc` reminder. Never blocks a task.",
2902
2907
  },
2908
+ {
2909
+ key: "board.doneCollapsedByDefault",
2910
+ label: "Start Done collapsed",
2911
+ type: "boolean",
2912
+ tier: "live",
2913
+ restartRequired: false,
2914
+ default: true,
2915
+ description: "Collapse Done for browsers without a saved board preference.",
2916
+ },
2903
2917
  {
2904
2918
  key: "board.agentPopoverCloseSeconds",
2905
2919
  label: "Agent popover auto-close",
@@ -4026,6 +4040,7 @@ export const SUPPORTED_TOML_KEYS = [
4026
4040
  "cto.nudgeCooldownMs",
4027
4041
  "skillSuggestions",
4028
4042
  "worktreeWarnThreshold",
4043
+ "board.doneCollapsedByDefault",
4029
4044
  "board.agentPopoverCloseSeconds",
4030
4045
  "dev.inspector.enabled",
4031
4046
  "dev.inspector.editorCommand",
package/dist/core/db.d.ts CHANGED
@@ -198,7 +198,11 @@ export declare class RepoOSDb {
198
198
  * rounds for a candidate's completed work without a cross join.
199
199
  */
200
200
  getTaskSessionTypeCounts(taskIds: string[], sessionTypes: string[]): Map<string, number>;
201
- /** Retrieve all sessions for a task. */
201
+ /**
202
+ * Retrieve all sessions for a task. Returns [] when SQLite is unavailable
203
+ * (no DB). Throws on query/prepare failures so callers can distinguish
204
+ * "no rows" from a broken read (#1041).
205
+ */
202
206
  getTaskSessions(taskId: string): SessionRecord[];
203
207
  /** Aggregate stats for a task (all sessions and review rounds). */
204
208
  getTaskStats(taskId: string): TaskStats | null;
package/dist/core/db.js CHANGED
@@ -452,7 +452,11 @@ export class RepoOSDb {
452
452
  }
453
453
  return out;
454
454
  }
455
- /** Retrieve all sessions for a task. */
455
+ /**
456
+ * Retrieve all sessions for a task. Returns [] when SQLite is unavailable
457
+ * (no DB). Throws on query/prepare failures so callers can distinguish
458
+ * "no rows" from a broken read (#1041).
459
+ */
456
460
  getTaskSessions(taskId) {
457
461
  if (!this.available || !this.db)
458
462
  return [];
@@ -461,8 +465,8 @@ export class RepoOSDb {
461
465
  .prepare("SELECT * FROM sessions WHERE taskId = ? ORDER BY startedAt DESC")
462
466
  .all(taskId);
463
467
  }
464
- catch {
465
- return [];
468
+ catch (err) {
469
+ throw new Error(`getTaskSessions failed: ${err.message}`);
466
470
  }
467
471
  }
468
472
  /** Aggregate stats for a task (all sessions and review rounds). */
@@ -112,6 +112,20 @@ export const KNOWN_AGENTS = [
112
112
  authHint: "Run `crush` once to configure a provider interactively. With no provider configured, `crush run` exits with: no providers configured - please run 'crush' to set up a provider interactively.",
113
113
  capability: "Plain-text headless runs, unconditional auto-approval in run mode, and `crush models`",
114
114
  },
115
+ {
116
+ id: "muse",
117
+ name: "muse",
118
+ cli: "muse",
119
+ binary: "muse",
120
+ drivable: true,
121
+ // Meta's terminal coding agent. Like crush, authentication is interactive
122
+ // (`muse login` / `muse auth`); there is no verified machine-readable
123
+ // auth-status probe, so authentication is a plain hint rather than an
124
+ // `authCheckArgs` probe.
125
+ installHint: "curl -fsSL https://dev.meta.ai/install.sh | sh",
126
+ authHint: "Run `muse login` once to sign in; headless `muse exec` runs use the stored credentials.",
127
+ capability: "Headless JSONL stream (`muse exec --json`), UUID session resume, and read-only advisory turns",
128
+ },
115
129
  ];
116
130
  const WIN32_SCRIPT_RE = /\.(cmd|bat)$/i;
117
131
  /** A binary inside a macOS `.app` bundle: `Foo.app/Contents/MacOS/<bin>`. */
@@ -249,8 +249,10 @@ function walkTaskFiles(dir, exts, acc = []) {
249
249
  catch {
250
250
  continue;
251
251
  }
252
- if (st.isDirectory())
253
- walkTaskFiles(full, exts, acc);
252
+ if (st.isDirectory()) {
253
+ if (entry !== "reports" && entry !== "engineering-reports")
254
+ walkTaskFiles(full, exts, acc);
255
+ }
254
256
  else if (exts.includes(extname(entry)))
255
257
  acc.push(full);
256
258
  }
@@ -209,7 +209,13 @@ function serializeScalar(v) {
209
209
  return String(v);
210
210
  const s = String(v);
211
211
  // quote if it could be misread (leading zero ids, special chars, etc.)
212
- if (/^0\d/.test(s) || /[:#\[\]{}",]/.test(s) || s.trim() !== s || s === "") {
212
+ // Strings that look like YAML numbers must stay strings on a round trip.
213
+ // This includes task IDs such as "1047", which the scalar parser otherwise
214
+ // converts to a number and downstream ID parsers may discard.
215
+ if (/^[+-]?(?:\d+(?:\.\d+)?|\.\d+)$/.test(s) ||
216
+ /[:#\[\]{}",]/.test(s) ||
217
+ s.trim() !== s ||
218
+ s === "") {
213
219
  return `"${s.replace(/"/g, '\\"')}"`;
214
220
  }
215
221
  return s;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,32 @@
1
+ /**
2
+ * lsof holder probe behavior for index.lock maintenance (#1041).
3
+ */
4
+ import * as childProcess from "node:child_process";
5
+ import { afterEach, describe, expect, it, vi } from "vitest";
6
+ import { probeLsofIndexLockHolder } from "./git-maintenance.js";
7
+ afterEach(() => {
8
+ vi.restoreAllMocks();
9
+ });
10
+ describe("probeLsofIndexLockHolder", () => {
11
+ it("treats lsof exit 1 as no holder", () => {
12
+ const exec = vi.spyOn(childProcess, "execFileSync").mockImplementation(() => {
13
+ const err = new Error("lsof");
14
+ err.status = 1;
15
+ throw err;
16
+ });
17
+ expect(probeLsofIndexLockHolder("/tmp/.git/index.lock")).toBe(false);
18
+ exec.mockRestore();
19
+ });
20
+ it("treats missing lsof as live holder and logs", () => {
21
+ const warn = vi.spyOn(console, "warn").mockImplementation(() => { });
22
+ const exec = vi.spyOn(childProcess, "execFileSync").mockImplementation(() => {
23
+ const err = new Error("ENOENT");
24
+ err.status = 127;
25
+ throw err;
26
+ });
27
+ expect(probeLsofIndexLockHolder("/x/.git/index.lock")).toBe(true);
28
+ expect(warn).toHaveBeenCalledWith(expect.stringMatching(/index\.lock holder probe failed/));
29
+ warn.mockRestore();
30
+ exec.mockRestore();
31
+ });
32
+ });
@@ -9,6 +9,8 @@ export interface GitLockMaintenanceOptions {
9
9
  }) => void;
10
10
  }
11
11
  export declare function setGitMaintenanceLockSink(sink: GitLockMaintenanceOptions["onLock"]): void;
12
+ /** Exported for unit tests — whether any process holds an open fd to this path (lsof). */
13
+ export declare function probeLsofIndexLockHolder(path: string): boolean;
12
14
  /** Independent of both worker queues: a history timeout cannot cancel maintenance. */
13
15
  export declare class CommitGraphMaintenance {
14
16
  private readonly root;
@@ -12,7 +12,8 @@ let lockEventSink = undefined;
12
12
  export function setGitMaintenanceLockSink(sink) {
13
13
  lockEventSink = sink;
14
14
  }
15
- function processHasLockOpen(path) {
15
+ /** Exported for unit tests — whether any process holds an open fd to this path (lsof). */
16
+ export function probeLsofIndexLockHolder(path) {
16
17
  try {
17
18
  return (execFileSync("lsof", ["-t", path], {
18
19
  encoding: "utf8",
@@ -20,9 +21,13 @@ function processHasLockOpen(path) {
20
21
  }).trim().length > 0);
21
22
  }
22
23
  catch (error) {
23
- // lsof exits 1 when no process has the file open. If the probe itself is
24
- // unavailable, fail safe and leave the lock for a later maintenance tick.
25
- return error.status !== 1;
24
+ // lsof exits 1 when no process has the file open — safe to treat as no holder.
25
+ // Any other failure (missing binary, permission, etc.) cannot prove the lock
26
+ // is stale; keep it and log once per probe (#1041 review).
27
+ if (error.status === 1)
28
+ return false;
29
+ console.warn(`repoos: index.lock holder probe failed for ${path} — leaving lock: ${error.message}`);
30
+ return true;
26
31
  }
27
32
  }
28
33
  /** Independent of both worker queues: a history timeout cannot cancel maintenance. */
@@ -142,7 +147,7 @@ export class CommitGraphMaintenance {
142
147
  continue;
143
148
  let live = true;
144
149
  try {
145
- live = await (this.lockOptions.processHasLockOpen ?? processHasLockOpen)(path);
150
+ live = await (this.lockOptions.processHasLockOpen ?? probeLsofIndexLockHolder)(path);
146
151
  }
147
152
  catch {
148
153
  live = true;
@@ -10,9 +10,7 @@
10
10
  import { existsSync, mkdirSync, readdirSync, readFileSync, statSync, writeFileSync } from "node:fs";
11
11
  import { extname, join } from "node:path";
12
12
  import { STATUSES, PRIORITIES, } from "./types.js";
13
- import { parseTask } from "./task.js";
14
- import { parseDocument } from "./frontmatter.js";
15
- import { reportsRootRelPath } from "./report-paths.js";
13
+ import { isIndexableTaskFile, parseTask } from "./task.js";
16
14
  import { isGitRepo, localBranches, lastCommitsForDir, lastCommitsForDirAsync, worktreeStatus, worktreePaths, currentBranch, emptyGitInfo, resolveWorktreeStatuses, repoGitOverviewAsync, } from "./git.js";
17
15
  const INDEX_VERSION = 1;
18
16
  function walkFiles(dir, exts, acc = [], skipDirs = new Set()) {
@@ -40,7 +38,10 @@ function walkFiles(dir, exts, acc = [], skipDirs = new Set()) {
40
38
  * frontmatter, so indexing them would trip the "no `id`" warning on every run.
41
39
  */
42
40
  function nonTaskDirs(config) {
43
- return new Set([join(config.root, reportsRootRelPath(config))]);
41
+ return new Set([
42
+ join(config.root, config.workDir, "reports"),
43
+ join(config.root, config.workDir, "engineering-reports"),
44
+ ]);
44
45
  }
45
46
  function priorityRank(p) {
46
47
  const i = PRIORITIES.indexOf(p);
@@ -73,8 +74,7 @@ export function buildIndex(config, opts = {}) {
73
74
  // Reject files with no explicit `id` in frontmatter — the API always sets
74
75
  // it, so a missing id means a human or AI agent hand-wrote the file. These
75
76
  // get an opaque derived id and would silently pollute the task list.
76
- const { data } = parseDocument(content);
77
- if (!("id" in data)) {
77
+ if (!isIndexableTaskFile(config, absPath, content)) {
78
78
  skippedTaskFiles++;
79
79
  return [];
80
80
  }
@@ -145,8 +145,7 @@ export async function buildIndexDetailedAsync(config, opts = {}) {
145
145
  const tasks = [];
146
146
  for (const absPath of files) {
147
147
  const content = readFileSync(absPath, "utf8");
148
- const { data } = parseDocument(content);
149
- if (!("id" in data)) {
148
+ if (!isIndexableTaskFile(config, absPath, content)) {
150
149
  skippedTaskFiles++;
151
150
  continue;
152
151
  }
@@ -156,6 +156,7 @@ export const HARNESS_BILLING = {
156
156
  "qwen code": "payg",
157
157
  crush: "payg",
158
158
  pi: "payg",
159
+ muse: "subscription",
159
160
  };
160
161
  export function billingForCli(cli) {
161
162
  return HARNESS_BILLING[cli.trim().toLowerCase()] ?? null;
@@ -24,6 +24,10 @@ export const HARNESS_CAPABILITIES = {
24
24
  antigravity: { reasoning: ["low", "high"], maxContextTokens: 1_000_000 },
25
25
  crush: { reasoning: [], maxContextTokens: 200_000 },
26
26
  pi: { reasoning: [], maxContextTokens: 200_000 },
27
+ // Muse supports `--reasoning-effort` tiers in the CLI, but RepoOS has no
28
+ // per-task reasoning path to forward (same as opencode/claude/cursor/pi), so
29
+ // no levels are declared and runs use the CLI default (`high`).
30
+ muse: { reasoning: [], maxContextTokens: 200_000 },
27
31
  };
28
32
  /** Used for a drivable CLI with no explicit entry: no reasoning, modest window. */
29
33
  export const DEFAULT_HARNESS_CAPABILITY = {
@@ -66,6 +66,13 @@ export declare function parsePiModels(text: string): string[];
66
66
  * never become selectable models.
67
67
  */
68
68
  export declare function parseAntigravityModels(text: string): string[];
69
+ /**
70
+ * Muse Code has no model-listing command (`muse models` is unknown); its
71
+ * interactive picker offers exactly these ids (2026-11-05, Muse Code 1.4.14).
72
+ * `muse-spark-1.3` is first after `default`: it is the certified model. Update
73
+ * this list when Muse adds or retires models.
74
+ */
75
+ export declare const MUSE_MODELS: string[];
69
76
  /**
70
77
  * Cursor adapter: parses `cursor-agent --list-models` output. Each model row is
71
78
  * `<id> - <display name>` (e.g. `auto - Auto (current, default)`); the header
@@ -334,6 +334,21 @@ const codexAdapter = {
334
334
  };
335
335
  },
336
336
  };
337
+ /**
338
+ * Muse Code has no model-listing command (`muse models` is unknown); its
339
+ * interactive picker offers exactly these ids (2026-11-05, Muse Code 1.4.14).
340
+ * `muse-spark-1.3` is first after `default`: it is the certified model. Update
341
+ * this list when Muse adds or retires models.
342
+ */
343
+ export const MUSE_MODELS = ["default", "muse-spark-1.3", "muse-spark-1.2", "muse-wonder-1.0"];
344
+ const museAdapter = {
345
+ id: "muse",
346
+ cli: "muse",
347
+ supported: true,
348
+ async list() {
349
+ return { supported: true, models: [...MUSE_MODELS], refreshable: false };
350
+ },
351
+ };
337
352
  /**
338
353
  * Copilot's interactive picker has no stable machine-readable catalog, but
339
354
  * Auto tiers are stable CLI flags. The underlying model remains account- and
@@ -546,6 +561,7 @@ export const MODEL_SOURCES = {
546
561
  cursor: cursorAdapter,
547
562
  antigravity: antigravityAdapter,
548
563
  crush: crushAdapter,
564
+ muse: museAdapter,
549
565
  pi: piAdapter,
550
566
  };
551
567
  for (const known of KNOWN_AGENTS) {
@@ -556,6 +572,7 @@ for (const known of KNOWN_AGENTS) {
556
572
  known.id === "cursor" ||
557
573
  known.id === "antigravity" ||
558
574
  known.id === "crush" ||
575
+ known.id === "muse" ||
559
576
  known.id === "pi")
560
577
  continue;
561
578
  MODEL_SOURCES[known.name] = unsupported(known.id, known.name);