@repo-os/repoos 0.5.88 → 0.5.89
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/api-route-parity.js +5 -0
- package/dist/commands/servers.d.ts +11 -2
- package/dist/commands/servers.js +18 -9
- package/dist/commands/status.d.ts +15 -0
- package/dist/commands/status.js +46 -1
- package/dist/commands/ui-contrast-audit.js +3 -3
- package/dist/commands/ui-smoke.js +3 -3
- package/dist/core/allowlist-group-sync.d.ts +1 -1
- package/dist/core/allowlist-group-sync.js +5 -12
- package/dist/core/attention.d.ts +4 -2
- package/dist/core/attention.js +27 -3
- package/dist/core/config.js +31 -0
- package/dist/core/hub-return.d.ts +76 -0
- package/dist/core/hub-return.js +141 -0
- package/dist/core/page-browser-gate.js +5 -0
- package/dist/core/server-registry.d.ts +37 -5
- package/dist/core/server-registry.js +27 -15
- package/dist/core/shot-fixtures.d.ts +1 -1
- package/dist/core/shot-fixtures.js +7 -0
- package/dist/core/tailnet-servers.d.ts +65 -3
- package/dist/core/tailnet-servers.js +261 -14
- package/dist/core/temp-dir.d.ts +1 -0
- package/dist/core/temp-dir.js +23 -0
- package/dist/core/types.d.ts +10 -0
- package/dist/server/attention-events.d.ts +1 -1
- package/dist/server/attention-events.js +2 -8
- package/dist/server/attention-notify.d.ts +10 -0
- package/dist/server/attention-notify.js +34 -0
- package/dist/server/notifications/dispatch.d.ts +22 -0
- package/dist/server/notifications/dispatch.js +51 -2
- package/dist/server/notifications/index.d.ts +2 -2
- package/dist/server/notifications/index.js +2 -2
- package/dist/server/notifications/ntfy-provider.js +3 -0
- package/dist/server/notifications/spec.d.ts +6 -0
- package/dist/server/notifications/spec.js +29 -0
- package/dist/server/notifications/telegram-provider.js +10 -1
- package/dist/server/notifications/types.d.ts +1 -1
- package/dist/server/release-auto-publish.d.ts +46 -0
- package/dist/server/release-auto-publish.js +99 -0
- package/dist/server/release.d.ts +8 -0
- package/dist/server/release.js +13 -0
- package/dist/server/routes/budget-allowlist-groups.js +1 -11
- package/dist/server/routes/release.d.ts +28 -1
- package/dist/server/routes/release.js +458 -25
- package/dist/server/routes/servers.d.ts +6 -0
- package/dist/server/routes/servers.js +1 -0
- package/dist/server/routes/ui.d.ts +8 -0
- package/dist/server/routes/ui.js +47 -0
- package/dist/server/schedule-automation.js +2 -1
- package/dist/server/serve-reaper.d.ts +10 -1
- package/dist/server/serve-reaper.js +2 -1
- package/dist/server/server.js +28 -6
- package/dist/ui/assets/ActivityIndicator-D3kaLo54.js +1 -0
- package/dist/ui/assets/AgentModelControl-BXndbOjd.js +1 -0
- package/dist/ui/assets/AgentModelModal-BZon9Xw-.js +1 -0
- package/dist/ui/assets/AgentsView-B9f2VxAB.js +2 -0
- package/dist/ui/assets/ChatAgentModelChip-CFf6DH-x.js +1 -0
- package/dist/ui/assets/ChecksView-BikrNX6o.js +0 -0
- package/dist/ui/assets/{ChecksView-u0VznGkb.css → ChecksView-DftvND4G.css} +1 -1
- package/dist/ui/assets/ClientBoardView-DJuKrnmC.js +1 -0
- package/dist/ui/assets/ConfirmDialog-DtTUkVd2.js +1 -0
- package/dist/ui/assets/ContextView-CSUEv8W2.js +4 -0
- package/dist/ui/assets/{DashboardView-BjqBhJ9_.css → DashboardView-6twQIuGs.css} +1 -1
- package/dist/ui/assets/DashboardView-BYuxnCWd.js +1 -0
- package/dist/ui/assets/DeleteConfirmDialog-QLp5rh6F.js +1 -0
- package/dist/ui/assets/DeploymentsView-CZHcw_RB.js +1 -0
- package/dist/ui/assets/DevView-C_o_mWmQ.js +2 -0
- package/dist/ui/assets/DiffView-C1x0YcRf.js +6 -0
- package/dist/ui/assets/DiffView-nIrAbr64.css +1 -0
- package/dist/ui/assets/FailedTestsList-DIkE11W-.js +1 -0
- package/dist/ui/assets/InputsView-D0M0_D-W.js +1 -0
- package/dist/ui/assets/LoginView-C5tfoTdU.js +1 -0
- package/dist/ui/assets/LoginView-DgYid8_T.css +1 -0
- package/dist/ui/assets/{PageSkeleton-BwagZ2oY.js → PageSkeleton-BkUizmiD.js} +1 -1
- package/dist/ui/assets/ReleasesView-CAIlRSH_.css +1 -0
- package/dist/ui/assets/ReleasesView-nDp30TpJ.js +7 -0
- package/dist/ui/assets/SecretsView-CWJrzLhZ.js +1 -0
- package/dist/ui/assets/SettingsView-D2harUCZ.js +4 -0
- package/dist/ui/assets/StoriesView-CeMml429.js +1 -0
- package/dist/ui/assets/StoriesView-CgQxAeKp.css +1 -0
- package/dist/ui/assets/{VoiceDictate-C1e2VOQl.js → VoiceDictate-eEL8mOQ6.js} +2 -2
- package/dist/ui/assets/WorkView-CqOjmAMH.js +2 -0
- package/dist/ui/assets/WorkView-T4sLeN-G.css +1 -0
- package/dist/ui/assets/{abnfDiagram-VCTEODGH-D5voX4j_.js → abnfDiagram-VCTEODGH-CJQbh9Y8.js} +1 -1
- package/dist/ui/assets/{activity-motion-BmUJdM2_.js → activity-motion-ZdL9OJaH.js} +1 -1
- package/dist/ui/assets/agent-failure-Bmoh7dgZ.js +1 -0
- package/dist/ui/assets/{architectureDiagram-5GKGNRK7-CwL3SpYW.js → architectureDiagram-5GKGNRK7-sZsdeKGF.js} +1 -1
- package/dist/ui/assets/{blockDiagram-I7D4REHJ-nzuO2yet.js → blockDiagram-I7D4REHJ-B2ZrksFF.js} +1 -1
- package/dist/ui/assets/{c4Diagram-7LVT6UL2-ne4MV4Ou.js → c4Diagram-7LVT6UL2-BmaZ6zn9.js} +1 -1
- package/dist/ui/assets/channel-DTyhDnV5.js +1 -0
- package/dist/ui/assets/{check-setup-zA74Kk8E.js → check-setup-CC3TsiUM.js} +1 -1
- package/dist/ui/assets/checkbox-E2VmX5cG.js +1 -0
- package/dist/ui/assets/{chunk-2E4U76K2-B9hEQFoW.js → chunk-2E4U76K2-CBdsovAD.js} +1 -1
- package/dist/ui/assets/{chunk-4HAMMTFA-DrQUXmOW.js → chunk-4HAMMTFA-C8S0dbJX.js} +1 -1
- package/dist/ui/assets/{chunk-75Z2AOVW-BLqVxOTb.js → chunk-75Z2AOVW-DZhJMnav.js} +1 -1
- package/dist/ui/assets/{chunk-CLGD4ZFX-_7tkGpz0.js → chunk-CLGD4ZFX-CbV5aAbV.js} +1 -1
- package/dist/ui/assets/{chunk-DU6HZSFF-CHsTh6bg.js → chunk-DU6HZSFF-BvZvehaf.js} +1 -1
- package/dist/ui/assets/{chunk-F27PBJKO-rbzBsNQQ.js → chunk-F27PBJKO-xu6ZrehS.js} +1 -1
- package/dist/ui/assets/{chunk-GMAD6QVW-DZpo6OXg.js → chunk-GMAD6QVW-CzsEFWQ4.js} +1 -1
- package/dist/ui/assets/{chunk-GVQU2GXP-BZSJvKfO.js → chunk-GVQU2GXP-BL-cKxCh.js} +1 -1
- package/dist/ui/assets/{chunk-IMKFNOWR-BS2e9-_3.js → chunk-IMKFNOWR-CT-dkpxG.js} +1 -1
- package/dist/ui/assets/{chunk-L3NEJ4N5-BMUc8OMC.js → chunk-L3NEJ4N5-fGoKWh-p.js} +1 -1
- package/dist/ui/assets/{chunk-OSK3NFVY-DuikC-Qx.js → chunk-OSK3NFVY-CKymLuc9.js} +1 -1
- package/dist/ui/assets/{chunk-P2QGCYS3-J-0O_8sq.js → chunk-P2QGCYS3-8wVktsZB.js} +1 -1
- package/dist/ui/assets/{chunk-POPQ4Y6H-DlL8f5TW.js → chunk-POPQ4Y6H-DBSXL1-m.js} +1 -1
- package/dist/ui/assets/{chunk-PWAF6VOD-Bhi6t-8D.js → chunk-PWAF6VOD-BQMqcIDA.js} +1 -1
- package/dist/ui/assets/{chunk-SHT3W25Y-DW7ujfMC.js → chunk-SHT3W25Y-BvhuqVhV.js} +1 -1
- package/dist/ui/assets/{chunk-SVP7TREG-DeWghlFr.js → chunk-SVP7TREG-sGDG6HEd.js} +1 -1
- package/dist/ui/assets/{chunk-TICWLB2K-De6sBWZU.js → chunk-TICWLB2K-DVS0G_1O.js} +1 -1
- package/dist/ui/assets/{chunk-TLUHSLCS-CraR_-xP.js → chunk-TLUHSLCS-BEiR6_Cd.js} +2 -2
- package/dist/ui/assets/classDiagram-ZZMXUADV-BiFSDfNF.js +1 -0
- package/dist/ui/assets/classDiagram-v2-VYDZK3BY-BiFSDfNF.js +1 -0
- package/dist/ui/assets/close-DEOXwz7c.js +1 -0
- package/dist/ui/assets/{cynefinDiagram-5FMLGOSQ-ZFpLELQo.js → cynefinDiagram-5FMLGOSQ-DugpXVI1.js} +1 -1
- package/dist/ui/assets/{dagre-GXQ25YYZ-DjZUlzhI.js → dagre-GXQ25YYZ-Dadsjkxy.js} +1 -1
- package/dist/ui/assets/{diagram-S7CK7UJ4-CPSNn7te.js → diagram-S7CK7UJ4-B2rv42rU.js} +1 -1
- package/dist/ui/assets/{diagram-UQ7AKVKN-B4foi7If.js → diagram-UQ7AKVKN-Deh5LDq7.js} +1 -1
- package/dist/ui/assets/{diagram-VSXAHHWV-D7w6JWqO.js → diagram-VSXAHHWV-B5ief5K-.js} +1 -1
- package/dist/ui/assets/{diagram-VX7I27RA-B_68SPM8.js → diagram-VX7I27RA-DMOOrVmC.js} +1 -1
- package/dist/ui/assets/{diagram-Z3DM3KII-DYCFjRd-.js → diagram-Z3DM3KII-D-u4Zzjo.js} +1 -1
- package/dist/ui/assets/{docs-1rAfchoG.js → docs-Bru9enkv.js} +1 -1
- package/dist/ui/assets/{ebnfDiagram-PWID7BFC-R-M9YvmS.js → ebnfDiagram-PWID7BFC-qrEkGeJN.js} +1 -1
- package/dist/ui/assets/{erDiagram-RLTQ6QDP-CAj_x-Ca.js → erDiagram-RLTQ6QDP-D3YAPFLv.js} +1 -1
- package/dist/ui/assets/flowDiagram-HODETNUW-BAFQ0lbU.js +1 -0
- package/dist/ui/assets/{ganttDiagram-EL5Y4UJY-BtaVmo1T.js → ganttDiagram-EL5Y4UJY-D87AcrkY.js} +1 -1
- package/dist/ui/assets/{gitGraphDiagram-WWUBYQGX-C0NNewkm.js → gitGraphDiagram-WWUBYQGX-BHCwj7xO.js} +1 -1
- package/dist/ui/assets/index-CqMm4or2.css +1 -0
- package/dist/ui/assets/index-DlcT4WYV.js +109 -0
- package/dist/ui/assets/{infoDiagram-27XIBGKW-0GQ_op9D.js → infoDiagram-27XIBGKW-CZtHbCPm.js} +1 -1
- package/dist/ui/assets/input-usKnLzob.js +1 -0
- package/dist/ui/assets/{ishikawaDiagram-5VMMS53U-D-LgjyOb.js → ishikawaDiagram-5VMMS53U-C4Ko2mjP.js} +1 -1
- package/dist/ui/assets/{journeyDiagram-3NMN7TZE-CoSoMXWG.js → journeyDiagram-3NMN7TZE-Coc0Ellm.js} +1 -1
- package/dist/ui/assets/{kanban-definition-UXKFOSKX-Dy-KsrRs.js → kanban-definition-UXKFOSKX-Dlgy_hEA.js} +1 -1
- package/dist/ui/assets/{layer-BvZDv12j.js → layer-DJtr131Z.js} +1 -1
- package/dist/ui/assets/{line-CXJ32qGe.js → line-CdlVA-Q3.js} +1 -1
- package/dist/ui/assets/{mermaid-parser.core-253ZJq4V.js → mermaid-parser.core-kZNhTLCA.js} +1 -1
- package/dist/ui/assets/{mermaid.core-BGlBzVVq.js → mermaid.core-9vSuqd5C.js} +3 -3
- package/dist/ui/assets/{mindmap-definition-YA3MSWOX-D2-O3nSF.js → mindmap-definition-YA3MSWOX-DUohcg5e.js} +1 -1
- package/dist/ui/assets/{pegDiagram-XKGWAZYB-9PJHyOZ-.js → pegDiagram-XKGWAZYB-BKXrOVd0.js} +1 -1
- package/dist/ui/assets/{pieDiagram-E7YTZNPT-CaA7p3fz.js → pieDiagram-E7YTZNPT-BVEAQvJF.js} +1 -1
- package/dist/ui/assets/{quadrantDiagram-AXDQQJYC-C8fn5H0Z.js → quadrantDiagram-AXDQQJYC-7uByTHux.js} +1 -1
- package/dist/ui/assets/{railroadDiagram-O6MQD6OU-BH2A16ON.js → railroadDiagram-O6MQD6OU-DWOl1GRi.js} +1 -1
- package/dist/ui/assets/repo-BX_-2THs.js +79 -0
- package/dist/ui/assets/{requirementDiagram-BXWQKSXE-FxTSHM30.js → requirementDiagram-BXWQKSXE-C6pt-TXk.js} +1 -1
- package/dist/ui/assets/{sankeyDiagram-P5KCCOFB-BYj7Cmpa.js → sankeyDiagram-P5KCCOFB-C74T196H.js} +1 -1
- package/dist/ui/assets/{sequenceDiagram-WJ2MYXX4-Bu9LRjik.js → sequenceDiagram-WJ2MYXX4-CEYBFs6A.js} +1 -1
- package/dist/ui/assets/{stateDiagram-D77RDMKH-C2MTKrKY.js → stateDiagram-D77RDMKH-CUh9rg93.js} +1 -1
- package/dist/ui/assets/stateDiagram-v2-MP3YSRHH-D0CaT-C2.js +1 -0
- package/dist/ui/assets/{swimlanes-42K2YHIH-B3F1gF7c.js → swimlanes-42K2YHIH-CsB1lCCx.js} +1 -1
- package/dist/ui/assets/swimlanesDiagram-VR7AAH4N-DXIUYdjM.js +8 -0
- package/dist/ui/assets/{switch-BHLgIQon.js → switch-CHw_LJLk.js} +1 -1
- package/dist/ui/assets/{timeline-definition-24CTP7MA-oCUhrKDo.js → timeline-definition-24CTP7MA-BlqdShIR.js} +1 -1
- package/dist/ui/assets/title-BtztnD4i.js +1 -0
- package/dist/ui/assets/useChatScroll--_KRDDa8.js +1 -0
- package/dist/ui/assets/{useResponsiveLayout-avkGtdev.js → useResponsiveLayout-CWHmiJKK.js} +1 -1
- package/dist/ui/assets/value-Cnv_lviy.js +1 -0
- package/dist/ui/assets/vendor-ui-DdxFTke2.js +3 -0
- package/dist/ui/assets/vendor-vue-BbjysADZ.js +1 -0
- package/dist/ui/assets/{vennDiagram-4TSXK5OY-BV9mQ8qJ.js → vennDiagram-4TSXK5OY-BGVhy2hm.js} +1 -1
- package/dist/ui/assets/viewport-T9GJSA28.js +1 -0
- package/dist/ui/assets/{wardleyDiagram-VM6X3IG4-Currs68h.js → wardleyDiagram-VM6X3IG4-CNAD8zdQ.js} +1 -1
- package/dist/ui/assets/{xychartDiagram-S5SC5T6Z-DBbEaa6v.js → xychartDiagram-S5SC5T6Z-D_qAaCpN.js} +1 -1
- package/dist/ui/index.html +24 -24
- package/dist/ui/sw.js +2 -2
- package/package.json +1 -1
- package/dist/commands/servers.test.d.ts +0 -1
- package/dist/commands/servers.test.js +0 -92
- package/dist/core/server-registry.test.d.ts +0 -1
- package/dist/core/server-registry.test.js +0 -138
- package/dist/server/__tests__/tailnet-servers.test.d.ts +0 -1
- package/dist/server/__tests__/tailnet-servers.test.js +0 -125
- package/dist/ui/assets/ActivityIndicator-7__6YXNw.js +0 -1
- package/dist/ui/assets/AgentModelControl-1mWbLFC2.js +0 -1
- package/dist/ui/assets/AgentModelModal-BK1n1yNL.js +0 -1
- package/dist/ui/assets/AgentsView-B6N8aWso.js +0 -2
- package/dist/ui/assets/ChatAgentModelChip-AtnobQNL.js +0 -1
- package/dist/ui/assets/ChecksView-D0jFkL1r.js +0 -0
- package/dist/ui/assets/ClientBoardView-B0J3ErvJ.js +0 -1
- package/dist/ui/assets/ConfirmDialog-DPnkOFol.js +0 -1
- package/dist/ui/assets/ContextView-B6dyeIEI.js +0 -4
- package/dist/ui/assets/DashboardView-VhivVcMU.js +0 -1
- package/dist/ui/assets/DeleteConfirmDialog-Da9Bacbx.js +0 -1
- package/dist/ui/assets/DeploymentsView-DnHM9vQM.js +0 -1
- package/dist/ui/assets/DevView-toBH7zm5.js +0 -2
- package/dist/ui/assets/DiffView-CYSHwBFT.js +0 -6
- package/dist/ui/assets/DiffView-DLg3DKTC.css +0 -1
- package/dist/ui/assets/FailedTestsList-DnyuYSHm.js +0 -1
- package/dist/ui/assets/InputsView-B066goW8.js +0 -1
- package/dist/ui/assets/LoginView-6QlGg6cx.css +0 -1
- package/dist/ui/assets/LoginView-gvjvNhkU.js +0 -1
- package/dist/ui/assets/ReleasesView-4IdvUDjT.css +0 -1
- package/dist/ui/assets/ReleasesView-BmmHaaDI.js +0 -7
- package/dist/ui/assets/SecretsView-CqSGGfFt.js +0 -1
- package/dist/ui/assets/SettingsView-DssE5_Z3.js +0 -4
- package/dist/ui/assets/StoriesView-DEihGJ88.css +0 -1
- package/dist/ui/assets/StoriesView-iSRLG1RG.js +0 -1
- package/dist/ui/assets/WorkView-BlU63gRF.css +0 -1
- package/dist/ui/assets/WorkView-Nvt8K4c7.js +0 -2
- package/dist/ui/assets/agent-failure-BlqPGDXZ.js +0 -1
- package/dist/ui/assets/channel-BLiixi7_.js +0 -1
- package/dist/ui/assets/checkbox-CppTZSHg.js +0 -1
- package/dist/ui/assets/classDiagram-ZZMXUADV-BQ6jZM6q.js +0 -1
- package/dist/ui/assets/classDiagram-v2-VYDZK3BY-BQ6jZM6q.js +0 -1
- package/dist/ui/assets/close-DGMDnjoO.js +0 -1
- package/dist/ui/assets/flowDiagram-HODETNUW-C6XSpvTz.js +0 -1
- package/dist/ui/assets/index-CL4eWGQM.js +0 -95
- package/dist/ui/assets/index-CZQoC0TZ.css +0 -1
- package/dist/ui/assets/input-Bc0aNTNs.js +0 -1
- package/dist/ui/assets/repo-BjI_UicM.js +0 -79
- package/dist/ui/assets/stateDiagram-v2-MP3YSRHH-CynK2s7Z.js +0 -1
- package/dist/ui/assets/swimlanesDiagram-VR7AAH4N-Cv3cVg9s.js +0 -8
- package/dist/ui/assets/title-BSEVo0iT.js +0 -1
- package/dist/ui/assets/useChatScroll-Cx8yub8t.js +0 -1
- package/dist/ui/assets/value-CIJASySy.js +0 -1
- package/dist/ui/assets/vendor-ui-BmzYkqZG.js +0 -3
- package/dist/ui/assets/vendor-vue-CQ0VGVRu.js +0 -1
- package/dist/ui/assets/viewport-B5Qy7nSx.js +0 -1
package/dist/.build-info.json
CHANGED
package/dist/.build-stamp.json
CHANGED
|
@@ -115,6 +115,11 @@ const UI_ONLY_MATCHERS = [
|
|
|
115
115
|
exact("GET", "/api/system/logs"),
|
|
116
116
|
under("/api/support/"),
|
|
117
117
|
under("/api/tunnel/"),
|
|
118
|
+
// The Releases page owns the cut and its AI draft (#0605, #1126). The CLI's
|
|
119
|
+
// `repoos release` only previews the release email: an auto-publish promise
|
|
120
|
+
// is bound to a live server-side draft run and is cancellable from the page,
|
|
121
|
+
// so exposing it as an HTTP-only UI action is deliberate rather than a
|
|
122
|
+
// missing command.
|
|
118
123
|
under("/api/release"),
|
|
119
124
|
under("/api/deployments"),
|
|
120
125
|
under("/api/chat"),
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { collectTailnetServers } from "../core/tailnet-servers.js";
|
|
2
|
+
export { collectTailnetServers, parseTailnetPeers, remoteFailureReason, remoteShellCommand, remoteShellScript, serversSshArgs, shellQuote, } from "../core/tailnet-servers.js";
|
|
2
3
|
export type { ListedServer, RemoteExec } from "../core/tailnet-servers.js";
|
|
3
|
-
|
|
4
|
+
/** Human-readable fallback line when the local Tailscale status is unavailable. */
|
|
5
|
+
export declare function tailnetFallbackNotice(configuredHosts: string[]): string;
|
|
6
|
+
export interface ServersCommandDeps {
|
|
7
|
+
/** Test seam: resolve config from this root instead of the current repo. */
|
|
8
|
+
root?: string;
|
|
9
|
+
/** Test seam: replace tailnet collection (the CLI path has no network seam). */
|
|
10
|
+
collect?: typeof collectTailnetServers;
|
|
11
|
+
}
|
|
12
|
+
export declare function cmdServers(argv: string[], deps?: ServersCommandDeps): Promise<void>;
|
package/dist/commands/servers.js
CHANGED
|
@@ -7,7 +7,7 @@ import { c } from "../cli/colors.js";
|
|
|
7
7
|
// Re-exported for callers (and tests) that used to import these from the CLI
|
|
8
8
|
// command before tailnet discovery moved into `src/core/tailnet-servers.ts` so
|
|
9
9
|
// the server endpoint can share it.
|
|
10
|
-
export { collectTailnetServers, parseTailnetPeers, serversSshArgs, } from "../core/tailnet-servers.js";
|
|
10
|
+
export { collectTailnetServers, parseTailnetPeers, remoteFailureReason, remoteShellCommand, remoteShellScript, serversSshArgs, shellQuote, } from "../core/tailnet-servers.js";
|
|
11
11
|
function localJsonRow(row) {
|
|
12
12
|
return {
|
|
13
13
|
port: row.entry.port,
|
|
@@ -52,7 +52,13 @@ function formatUptime(seconds) {
|
|
|
52
52
|
return `${m}m ${s}s`;
|
|
53
53
|
return `${Math.floor(m / 60)}h ${m % 60}m`;
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
/** Human-readable fallback line when the local Tailscale status is unavailable. */
|
|
56
|
+
export function tailnetFallbackNotice(configuredHosts) {
|
|
57
|
+
return configuredHosts.length
|
|
58
|
+
? ` Tailscale peer discovery unavailable; using configured hosts (${configuredHosts.join(", ")}) instead of the tailnet peer list.`
|
|
59
|
+
: " Tailscale peer discovery unavailable and no remoteValidation.tailscaleHosts configured; showing local servers only.";
|
|
60
|
+
}
|
|
61
|
+
export async function cmdServers(argv, deps = {}) {
|
|
56
62
|
const json = argv.includes("--json");
|
|
57
63
|
const prune = argv.includes("--prune");
|
|
58
64
|
const tailscale = argv.includes("--tailscale");
|
|
@@ -80,27 +86,29 @@ export async function cmdServers(argv) {
|
|
|
80
86
|
staleReason: row.staleReason,
|
|
81
87
|
healthRoot: row.healthRoot,
|
|
82
88
|
}));
|
|
83
|
-
const cfg = tailscale ? loadConfig(findRepoRoot()) : undefined;
|
|
89
|
+
const cfg = tailscale ? loadConfig(deps.root ?? findRepoRoot()) : undefined;
|
|
84
90
|
const remoteHosts = resolveRemoteHosts(cfg?.remoteValidation);
|
|
85
91
|
const result = tailscale
|
|
86
|
-
? await collectTailnetServers(local, {
|
|
92
|
+
? await (deps.collect ?? collectTailnetServers)(local, {
|
|
87
93
|
configuredHosts: remoteHosts.map((host) => host.host),
|
|
88
94
|
remoteHosts,
|
|
89
95
|
remoteValidation: cfg?.remoteValidation,
|
|
90
96
|
})
|
|
91
|
-
: { servers: local, tailscaleUnavailable: false };
|
|
97
|
+
: { servers: local, tailscaleUnavailable: false, source: "tailscale" };
|
|
92
98
|
if (json) {
|
|
93
99
|
console.log(JSON.stringify({
|
|
94
100
|
servers: tailscale ? result.servers : localRows.map(localJsonRow),
|
|
95
101
|
...(pruned !== undefined ? { pruned } : {}),
|
|
96
102
|
...(result.tailscaleUnavailable ? { tailscaleUnavailable: true } : {}),
|
|
103
|
+
...(tailscale && result.source ? { discoverySource: result.source } : {}),
|
|
97
104
|
}, null, 2));
|
|
98
105
|
return;
|
|
99
106
|
}
|
|
100
107
|
if (pruned)
|
|
101
108
|
console.log(c.dim(` Pruned ${pruned} stale local registry entr${pruned === 1 ? "y" : "ies"}.`));
|
|
102
|
-
if (result.tailscaleUnavailable)
|
|
103
|
-
console.log(c.yellow(
|
|
109
|
+
if (result.tailscaleUnavailable) {
|
|
110
|
+
console.log(c.yellow(tailnetFallbackNotice(remoteHosts.map((host) => host.host))));
|
|
111
|
+
}
|
|
104
112
|
if (!tailscale && !prune && pruned === undefined) {
|
|
105
113
|
if (localRows.length === 0) {
|
|
106
114
|
console.log(c.dim(" No registered RepoOS servers."));
|
|
@@ -123,14 +131,15 @@ export async function cmdServers(argv) {
|
|
|
123
131
|
return;
|
|
124
132
|
}
|
|
125
133
|
for (const row of result.servers) {
|
|
134
|
+
const display = row.displayName && row.displayName !== row.host ? ` ${c.dim(`(${row.displayName})`)}` : "";
|
|
126
135
|
if (row.unreachable) {
|
|
127
|
-
console.log(` ${c.cyan(row.host.padEnd(16))} ${c.yellow("unreachable")} ${row.reason ?? "unknown error"}`);
|
|
136
|
+
console.log(` ${c.cyan(row.host.padEnd(16))} ${c.yellow("unreachable")} ${row.reason ?? "unknown error"}${display}`);
|
|
128
137
|
continue;
|
|
129
138
|
}
|
|
130
139
|
const status = row.valid === false
|
|
131
140
|
? c.yellow(row.staleReason ? `stale (${row.staleReason})` : "stale")
|
|
132
141
|
: c.green("ok");
|
|
133
|
-
console.log(` ${c.cyan(row.host.padEnd(16))} ${String(row.port ?? "—").padStart(5)} ${status} ${c.bold(row.projectName ?? "RepoOS")} ${c.dim(formatUptime(row.uptimeSeconds ?? null))}`);
|
|
142
|
+
console.log(` ${c.cyan(row.host.padEnd(16))} ${String(row.port ?? "—").padStart(5)} ${status} ${c.bold(row.projectName ?? "RepoOS")} ${c.dim(formatUptime(row.uptimeSeconds ?? null))}${display}`);
|
|
134
143
|
if (row.root)
|
|
135
144
|
console.log(` ${c.dim(row.root)}`);
|
|
136
145
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ServerRegistrationState } from "../core/server-registry.js";
|
|
1
2
|
import { type RepoOSConfig, type Status } from "../core/types.js";
|
|
2
3
|
export interface StatusServer {
|
|
3
4
|
/** Whether the listener is covered by a serve lock, alive without one, or stopped. */
|
|
@@ -54,6 +55,15 @@ export interface StatusServer {
|
|
|
54
55
|
healthRoot: string | null;
|
|
55
56
|
/** Number of serve lockfiles present (a repo may run more than one port). */
|
|
56
57
|
locks: number;
|
|
58
|
+
/**
|
|
59
|
+
* Whether this server is discoverable in `~/.repoos/servers` (the source for
|
|
60
|
+
* `repoos servers`, Hub and tailnet discovery). `excluded` means the server
|
|
61
|
+
* deliberately skipped registration (preview, `REPOOS_NO_REGISTRY=1`, …);
|
|
62
|
+
* `unregistered` means it intended to register but no matching entry exists.
|
|
63
|
+
*/
|
|
64
|
+
registration: ServerRegistrationState | "not-running";
|
|
65
|
+
/** Plain-language reason for `excluded` / `unregistered`, when known. */
|
|
66
|
+
registrationReason: string | null;
|
|
57
67
|
}
|
|
58
68
|
export interface StatusBuild {
|
|
59
69
|
/** Same codes as core/build.ts checkBuildForRoot. */
|
|
@@ -177,6 +187,11 @@ interface ServeLockEntry {
|
|
|
177
187
|
startedAt: string | null;
|
|
178
188
|
serveFlags: string[];
|
|
179
189
|
alive: boolean;
|
|
190
|
+
/** Registry intent recorded by the serving process (#1140). */
|
|
191
|
+
registry: {
|
|
192
|
+
state: "registered" | "excluded";
|
|
193
|
+
reason?: string;
|
|
194
|
+
} | null;
|
|
180
195
|
}
|
|
181
196
|
/**
|
|
182
197
|
* Read every `.repoos/serve[-<port>].lock`. Locks are scoped per port (see
|
package/dist/commands/status.js
CHANGED
|
@@ -20,6 +20,7 @@ import { boardRoot, loadConfig, resolveServePort } from "../core/config.js";
|
|
|
20
20
|
import { buildIndex } from "../core/indexer.js";
|
|
21
21
|
import { checkBuildForRoot, readBuildMeta, readBuildStamp } from "../core/build.js";
|
|
22
22
|
import { isManagedService } from "../core/service-manager.js";
|
|
23
|
+
import { serverRegistrationState } from "../core/server-registry.js";
|
|
23
24
|
import { readTunnelConfig } from "../core/tunnel.js";
|
|
24
25
|
import { readRegistry, reconcileIdentity, syncFromRepo, unionApps, } from "../core/tunnel-registry.js";
|
|
25
26
|
import { currentBranch, isGitRepo, runGit } from "../core/git.js";
|
|
@@ -91,6 +92,16 @@ export function readServeLocks(root, cacheDir) {
|
|
|
91
92
|
const serveFlags = Array.isArray(raw.serveFlags)
|
|
92
93
|
? raw.serveFlags.filter((f) => typeof f === "string")
|
|
93
94
|
: [];
|
|
95
|
+
const rawRegistry = raw.registry && typeof raw.registry === "object"
|
|
96
|
+
? raw.registry
|
|
97
|
+
: null;
|
|
98
|
+
const registryState = rawRegistry?.state;
|
|
99
|
+
const registry = registryState === "registered" || registryState === "excluded"
|
|
100
|
+
? {
|
|
101
|
+
state: registryState,
|
|
102
|
+
...(typeof rawRegistry?.reason === "string" ? { reason: rawRegistry.reason } : {}),
|
|
103
|
+
}
|
|
104
|
+
: null;
|
|
94
105
|
out.push({
|
|
95
106
|
file,
|
|
96
107
|
pid,
|
|
@@ -99,6 +110,7 @@ export function readServeLocks(root, cacheDir) {
|
|
|
99
110
|
startedAt: typeof raw.startedAt === "string" ? raw.startedAt : null,
|
|
100
111
|
serveFlags,
|
|
101
112
|
alive,
|
|
113
|
+
registry,
|
|
102
114
|
});
|
|
103
115
|
}
|
|
104
116
|
catch {
|
|
@@ -235,10 +247,32 @@ export async function collectStatus(config, opts = {}) {
|
|
|
235
247
|
buildHash: cliMeta.hash,
|
|
236
248
|
buildAt: cliMeta.buildAt,
|
|
237
249
|
};
|
|
250
|
+
// A running server that is intentionally absent from the registry is the
|
|
251
|
+
// ThinkPad mismatch (#1140): status trusted the serve lock while
|
|
252
|
+
// `repoos servers`/tailnet discovery read `~/.repoos/servers` and saw
|
|
253
|
+
// nothing. Reconcile both and name the reason instead of hiding it.
|
|
254
|
+
const registration = running
|
|
255
|
+
? serverRegistrationState({
|
|
256
|
+
root,
|
|
257
|
+
// Probe port is the port health answered on (primary's port by
|
|
258
|
+
// default). Using it also covers a stale lock whose PID is dead while
|
|
259
|
+
// a healthy server answers on `opts.probePort`.
|
|
260
|
+
port: probePort,
|
|
261
|
+
pid: primaryAlive ? (primary?.pid ?? null) : null,
|
|
262
|
+
// A stale lock for a different endpoint must not label a healthy
|
|
263
|
+
// server discovered on another port. Same-port intent is kept even
|
|
264
|
+
// when `readServeLocks` cannot call the PID alive (in-process servers
|
|
265
|
+
// share the caller's PID).
|
|
266
|
+
lockRegistry: primary?.port === probePort ? (primary.registry ?? null) : null,
|
|
267
|
+
})
|
|
268
|
+
: { state: "not-running", reason: null };
|
|
238
269
|
const server = {
|
|
239
270
|
lifecycle,
|
|
240
271
|
running,
|
|
241
|
-
port
|
|
272
|
+
// Report the port the server actually answered on; a stale primary lock
|
|
273
|
+
// for another endpoint must not be printed as the running server's port
|
|
274
|
+
// (#1140 review). With no health answer, keep the lock's diagnostic port.
|
|
275
|
+
port: health.state === "ok" ? probePort : (primary?.port ?? probePort),
|
|
242
276
|
pid: primary?.pid ?? null,
|
|
243
277
|
host: primary?.host ?? null,
|
|
244
278
|
startedAt,
|
|
@@ -254,6 +288,8 @@ export async function collectStatus(config, opts = {}) {
|
|
|
254
288
|
health: health.state,
|
|
255
289
|
healthRoot: health.root,
|
|
256
290
|
locks: locks.length,
|
|
291
|
+
registration: registration.state,
|
|
292
|
+
registrationReason: registration.reason,
|
|
257
293
|
};
|
|
258
294
|
// Fill in the comparison now that both sides exist — the same pure function
|
|
259
295
|
// `renderStatus` warns with, exposed raw for `--json` scripts (#0701).
|
|
@@ -574,6 +610,15 @@ export function renderStatus(s, now = new Date()) {
|
|
|
574
610
|
else if (sv.pid === null) {
|
|
575
611
|
sub(c.dim("no serve lockfile — live via /api/health; restart `repoos serve` to restore it"));
|
|
576
612
|
}
|
|
613
|
+
if (sv.registration === "excluded") {
|
|
614
|
+
sub(c.yellow(`⚠ not in the running-server registry (${sv.registrationReason ?? "intentionally excluded"}) — ` +
|
|
615
|
+
"`repoos servers` and tailnet discovery will not list this server"));
|
|
616
|
+
}
|
|
617
|
+
else if (sv.registration === "unregistered") {
|
|
618
|
+
sub(c.yellow("⚠ running but missing from ~/.repoos/servers" +
|
|
619
|
+
(sv.registrationReason ? ` (${sv.registrationReason})` : "") +
|
|
620
|
+
" — `repoos servers` and tailnet discovery will not list it; restart `repoos serve` to republish"));
|
|
621
|
+
}
|
|
577
622
|
if (sv.locks > 1)
|
|
578
623
|
sub(c.dim(`+ ${sv.locks - 1} more serve lock(s) — check other ports`));
|
|
579
624
|
}
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
* Screens whose background is an image/gradient are reported as *unchecked*
|
|
27
27
|
* rather than judged — a ratio against an unknown pixel is a lie.
|
|
28
28
|
*/
|
|
29
|
-
import { mkdirSync,
|
|
29
|
+
import { mkdirSync, rmSync, writeFileSync } from "node:fs";
|
|
30
30
|
import { execFileSync } from "node:child_process";
|
|
31
|
-
import { tmpdir } from "node:os";
|
|
32
31
|
import { join } from "node:path";
|
|
33
32
|
import { c } from "../cli/colors.js";
|
|
34
33
|
import { findRepoRoot, loadConfig } from "../core/config.js";
|
|
34
|
+
import { makeTempDir } from "../core/temp-dir.js";
|
|
35
35
|
import { contrastRatio, luminance } from "./check.js";
|
|
36
36
|
import { localShotStore } from "../server/shots.js";
|
|
37
37
|
/** A 1x1 transparent PNG, base64-encoded — fixture shots the audit can caption. */
|
|
@@ -625,7 +625,7 @@ A second column's worth of content so the board is not a single card.
|
|
|
625
625
|
- 2026-09-02T00:00:00Z · created · human
|
|
626
626
|
`;
|
|
627
627
|
export function makeAuditFixture() {
|
|
628
|
-
const root =
|
|
628
|
+
const root = makeTempDir("repoos-contrast-");
|
|
629
629
|
mkdirSync(join(root, "work"), { recursive: true });
|
|
630
630
|
// A declared dev target so the `/dev` screen (#0802) renders a real card —
|
|
631
631
|
// its command, URL and chosen port are text the audit must gate in every
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
* Server startup + webkit launch share the harness in ui-harness.ts with the
|
|
11
11
|
* screenshot script (#0213).
|
|
12
12
|
*/
|
|
13
|
-
import { mkdirSync,
|
|
14
|
-
import { tmpdir } from "node:os";
|
|
13
|
+
import { mkdirSync, rmSync, writeFileSync } from "node:fs";
|
|
15
14
|
import { join } from "node:path";
|
|
16
15
|
import { c } from "../cli/colors.js";
|
|
17
16
|
import { findRepoRoot } from "../core/config.js";
|
|
17
|
+
import { makeTempDir } from "../core/temp-dir.js";
|
|
18
18
|
import { startPreviewServer, launchWebkit, isPlaywrightUnavailable, teardownUiHarness, combineHarnessErrors, } from "./ui-harness.js";
|
|
19
19
|
/**
|
|
20
20
|
* Build a throwaway, empty fixture repo to serve the built SPA against.
|
|
@@ -25,7 +25,7 @@ import { startPreviewServer, launchWebkit, isPlaywrightUnavailable, teardownUiHa
|
|
|
25
25
|
* recovery, no auto-launch — constant cost regardless of board size.
|
|
26
26
|
*/
|
|
27
27
|
export function makeSmokeFixture() {
|
|
28
|
-
const root =
|
|
28
|
+
const root = makeTempDir("repoos-smoke-");
|
|
29
29
|
mkdirSync(join(root, "work"), { recursive: true });
|
|
30
30
|
writeFileSync(join(root, "repoos.toml"), 'theme = "dark"\nuiTheme = "classic"\n\n');
|
|
31
31
|
// A review task with a stored report drives the send-to-engineer dialog
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AllowlistGroup } from "./allowlist-groups.js";
|
|
2
|
-
import type
|
|
2
|
+
import { type RemoteExec, type ListedServer } from "./tailnet-servers.js";
|
|
3
3
|
import type { RemoteValidationConfig, RemoteValidationHost } from "./types.js";
|
|
4
4
|
/** How one member answered a propagation attempt. */
|
|
5
5
|
export type GroupApplyStatus = "applied" | "unreachable" | "refused";
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* `~/.config/repoos/allowlist-groups/<name>.toml`.
|
|
15
15
|
*/
|
|
16
16
|
import { remoteHostUser } from "./remote-hosts.js";
|
|
17
|
+
import { classifyRemoteFailure, shellQuote, } from "./tailnet-servers.js";
|
|
17
18
|
/**
|
|
18
19
|
* Filter discovered servers down to members of `groupName`. Unreachable hosts
|
|
19
20
|
* carry no group declaration and are NOT members — we cannot know their group,
|
|
@@ -42,10 +43,6 @@ export function groupMembersFromServers(servers, groupName) {
|
|
|
42
43
|
export function encodeGroupApplyPayload(payload) {
|
|
43
44
|
return Buffer.from(JSON.stringify(payload), "utf8").toString("base64");
|
|
44
45
|
}
|
|
45
|
-
/** Single-quote a path for the remote shell. */
|
|
46
|
-
function shellQuote(value) {
|
|
47
|
-
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
48
|
-
}
|
|
49
46
|
/**
|
|
50
47
|
* The command a peer runs to apply a group payload. It `cd`s to the member's
|
|
51
48
|
* repo root so the receiver can verify that *this* project declares the group
|
|
@@ -90,11 +87,7 @@ export function parseGroupApplyOutput(stdout) {
|
|
|
90
87
|
}
|
|
91
88
|
/** Classify an SSH/exec failure: transport problems are unreachable, the rest refused. */
|
|
92
89
|
export function classifyGroupApplyFailure(error) {
|
|
93
|
-
|
|
94
|
-
if (/ssh:|connect|could not resolve|permission denied|no route|timed? ?out|timeout|network is unreachable|connection (?:refused|closed|reset)/i.test(message)) {
|
|
95
|
-
return "unreachable";
|
|
96
|
-
}
|
|
97
|
-
return "refused";
|
|
90
|
+
return classifyRemoteFailure(error).kind === "unknown" ? "refused" : "unreachable";
|
|
98
91
|
}
|
|
99
92
|
/** Run `fn` for every item with a hard per-item timeout. */
|
|
100
93
|
async function withTimeout(promise, ms, fallback) {
|
|
@@ -151,11 +144,11 @@ export async function propagateAllowlistGroup(group, members, originHost, option
|
|
|
151
144
|
};
|
|
152
145
|
}
|
|
153
146
|
catch (error) {
|
|
154
|
-
const
|
|
147
|
+
const failure = classifyRemoteFailure(error);
|
|
155
148
|
return {
|
|
156
149
|
...member,
|
|
157
|
-
status,
|
|
158
|
-
reason:
|
|
150
|
+
status: failure.kind === "unknown" ? "refused" : "unreachable",
|
|
151
|
+
reason: failure.reason,
|
|
159
152
|
};
|
|
160
153
|
}
|
|
161
154
|
}));
|
package/dist/core/attention.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface CloseOutOutcomeFeedEvent {
|
|
|
12
12
|
}
|
|
13
13
|
export type AttentionSeverity = "info" | "warning" | "error";
|
|
14
14
|
/** Every attention kind the bell and API expose. */
|
|
15
|
-
export type AttentionKind = "releaseNotesReady" | "releaseSucceeded" | "releaseFailed" | "closeOutSucceeded" | "closeOutFailed" | "closeOutTimedOut" | "taskReview" | "taskNeedsInput" | "taskNeedsMerge" | "taskAssigned" | "providerFailure" | "providerUsageLimit" | "silentRun" | "slowRun" | "slowRunsRecently" | "spendThreshold" | "awaitingVisualCheck" | "remoteFallback" | "remoteHostDegraded" | "ctoAction" | "gitLock" | "ctoSilent" | "engineerRecoveryFailed" | "releaseEmailFailed" | "serverCrash" | "processSignalFailure";
|
|
15
|
+
export type AttentionKind = "releaseNotesReady" | "releaseNotesFailed" | "releaseAutoPublishFailed" | "releaseSucceeded" | "releaseFailed" | "closeOutSucceeded" | "closeOutFailed" | "closeOutTimedOut" | "taskReview" | "taskNeedsInput" | "taskNeedsMerge" | "taskAssigned" | "providerFailure" | "providerUsageLimit" | "silentRun" | "slowRun" | "slowRunsRecently" | "spendThreshold" | "awaitingVisualCheck" | "remoteFallback" | "remoteHostDegraded" | "ctoAction" | "gitLock" | "ctoSilent" | "engineerRecoveryFailed" | "releaseEmailFailed" | "serverCrash" | "processSignalFailure";
|
|
16
16
|
export interface AttentionItem {
|
|
17
17
|
/** Stable per event — dedupe key for clients and dismiss markers. */
|
|
18
18
|
id: string;
|
|
@@ -31,9 +31,11 @@ export interface AttentionFeed {
|
|
|
31
31
|
items: AttentionItem[];
|
|
32
32
|
}
|
|
33
33
|
/** Durable attention events recorded on the server (provider failures, remote fallback). */
|
|
34
|
+
export type RecordedAttentionKind = "providerFailure" | "providerUsageLimit" | "remoteFallback" | "ctoAction" | "gitLock" | "engineerRecoveryFailed" | "releaseEmailFailed" | "releaseNotesFailed" | "releaseAutoPublishFailed" | "serverCrash" | "processSignalFailure";
|
|
35
|
+
export declare const RECORDED_ATTENTION_KINDS: ReadonlySet<RecordedAttentionKind>;
|
|
34
36
|
export interface RecordedAttentionEvent {
|
|
35
37
|
id: string;
|
|
36
|
-
kind:
|
|
38
|
+
kind: RecordedAttentionKind;
|
|
37
39
|
taskId: string | null;
|
|
38
40
|
message: string;
|
|
39
41
|
detail: string;
|
package/dist/core/attention.js
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
import { detectProviderUsageLimit } from "./provider-usage-limit.js";
|
|
2
2
|
import { classifyAgentFailure } from "./agent-failure.js";
|
|
3
3
|
import { parseTaskAreas } from "./areas.js";
|
|
4
|
+
/**
|
|
5
|
+
* The runtime allowlist for replaying recorded events after a restart, derived
|
|
6
|
+
* from a Record over the union so a new kind CANNOT be added without being
|
|
7
|
+
* persisted too (the #1126 review: half-registered kinds vanish from the bell
|
|
8
|
+
* after a restart).
|
|
9
|
+
*/
|
|
10
|
+
const RECORDED_ATTENTION_KIND_MAP = {
|
|
11
|
+
providerFailure: true,
|
|
12
|
+
providerUsageLimit: true,
|
|
13
|
+
remoteFallback: true,
|
|
14
|
+
ctoAction: true,
|
|
15
|
+
gitLock: true,
|
|
16
|
+
engineerRecoveryFailed: true,
|
|
17
|
+
releaseEmailFailed: true,
|
|
18
|
+
releaseNotesFailed: true,
|
|
19
|
+
releaseAutoPublishFailed: true,
|
|
20
|
+
serverCrash: true,
|
|
21
|
+
processSignalFailure: true,
|
|
22
|
+
};
|
|
23
|
+
export const RECORDED_ATTENTION_KINDS = new Set(Object.keys(RECORDED_ATTENTION_KIND_MAP));
|
|
4
24
|
const CLOSE_OUT_KIND = {
|
|
5
25
|
succeeded: "closeOutSucceeded",
|
|
6
26
|
failed: "closeOutFailed",
|
|
@@ -8,6 +28,8 @@ const CLOSE_OUT_KIND = {
|
|
|
8
28
|
};
|
|
9
29
|
const SEVERITY = {
|
|
10
30
|
releaseNotesReady: "info",
|
|
31
|
+
releaseNotesFailed: "warning",
|
|
32
|
+
releaseAutoPublishFailed: "error",
|
|
11
33
|
releaseSucceeded: "info",
|
|
12
34
|
closeOutSucceeded: "info",
|
|
13
35
|
taskReview: "info",
|
|
@@ -187,7 +209,7 @@ export function buildAttentionFeed(input) {
|
|
|
187
209
|
taskId: null,
|
|
188
210
|
message: "Release notes ready",
|
|
189
211
|
detail: "AI draft finished — review it on the Releases page.",
|
|
190
|
-
link: "/releases",
|
|
212
|
+
link: "/releases?drawer=cut",
|
|
191
213
|
at: notesRun.updatedAt ?? eventKey,
|
|
192
214
|
});
|
|
193
215
|
}
|
|
@@ -266,8 +288,10 @@ export function buildAttentionFeed(input) {
|
|
|
266
288
|
? `/work?task=${ev.taskId}`
|
|
267
289
|
: ev.id.startsWith("agentFailure:")
|
|
268
290
|
? "/agents"
|
|
269
|
-
: ev.kind === "releaseEmailFailed"
|
|
270
|
-
|
|
291
|
+
: ev.kind === "releaseEmailFailed" ||
|
|
292
|
+
ev.kind === "releaseNotesFailed" ||
|
|
293
|
+
ev.kind === "releaseAutoPublishFailed"
|
|
294
|
+
? "/releases?drawer=cut"
|
|
271
295
|
: null,
|
|
272
296
|
at: ev.at,
|
|
273
297
|
});
|
package/dist/core/config.js
CHANGED
|
@@ -1344,6 +1344,11 @@ export function loadConfig(rootArg, options = {}) {
|
|
|
1344
1344
|
// entrypoint.
|
|
1345
1345
|
loadDotEnv(root);
|
|
1346
1346
|
const cfg = { root, ...DEFAULT_CONFIG };
|
|
1347
|
+
// Remember the flag, not just the keys that happened to apply: a repo with
|
|
1348
|
+
// no overridable `[preview.*]` entries still counts as a preview runtime for
|
|
1349
|
+
// registry and automation exclusion (#1140 review).
|
|
1350
|
+
if (options.previewOverrides)
|
|
1351
|
+
cfg.previewOverridesRequested = true;
|
|
1347
1352
|
const tomlPath = options.tomlPath ?? join(root, "repoos.toml");
|
|
1348
1353
|
if (existsSync(tomlPath)) {
|
|
1349
1354
|
const parsed = parseFlatToml(readFileSync(tomlPath, "utf8"));
|
|
@@ -1446,6 +1451,18 @@ export function loadConfig(rootArg, options = {}) {
|
|
|
1446
1451
|
cfg.release[key] = value;
|
|
1447
1452
|
}
|
|
1448
1453
|
}
|
|
1454
|
+
// [release.notesWhenReady] (#1126): the remembered answer to "what happens
|
|
1455
|
+
// when the AI draft is ready". Read even without [release] enabled so a
|
|
1456
|
+
// Settings save round-trips; an unknown value keeps the safe default.
|
|
1457
|
+
const notesWhenReady = parsed["release.notesWhenReady"];
|
|
1458
|
+
if (notesWhenReady !== undefined) {
|
|
1459
|
+
if (notesWhenReady === "publish" || notesWhenReady === "notify") {
|
|
1460
|
+
cfg.release = { ...cfg.release, notesWhenReady };
|
|
1461
|
+
}
|
|
1462
|
+
else if (notesWhenReady !== "") {
|
|
1463
|
+
console.warn(`[release.notesWhenReady] ignoring ${JSON.stringify(notesWhenReady)} — expected "publish" or "notify"`);
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1449
1466
|
// [release.email] (#1071): read on its own, so the Settings toggle shows what
|
|
1450
1467
|
// the file says. Emails only go out from a cut, and a cut needs [release]
|
|
1451
1468
|
// enabled, so say so at load rather than leave the email silently unsent.
|
|
@@ -2672,6 +2689,19 @@ export function getConfigSchema() {
|
|
|
2672
2689
|
default: false,
|
|
2673
2690
|
description: "Also email beta, canary and rc releases. Off by default.",
|
|
2674
2691
|
},
|
|
2692
|
+
{
|
|
2693
|
+
key: "release.notesWhenReady",
|
|
2694
|
+
label: "When AI release notes are ready",
|
|
2695
|
+
type: "select",
|
|
2696
|
+
tier: "live",
|
|
2697
|
+
restartRequired: false,
|
|
2698
|
+
default: "notify",
|
|
2699
|
+
options: [
|
|
2700
|
+
{ value: "publish", label: "Publish the release automatically" },
|
|
2701
|
+
{ value: "notify", label: "Notify me to review and publish" },
|
|
2702
|
+
],
|
|
2703
|
+
description: "The default answer in the Generate notes dialog. Publish waits for the draft, then cuts the release through the same checks as the Publish button; a blocker cancels it and tells you why. Notify leaves the notes in the panel and sends you a notification. The release panel saves your choice here.",
|
|
2704
|
+
},
|
|
2675
2705
|
{
|
|
2676
2706
|
key: "stories.enabled",
|
|
2677
2707
|
label: "Stories",
|
|
@@ -4587,6 +4617,7 @@ export const SUPPORTED_TOML_KEYS = [
|
|
|
4587
4617
|
"release.remote",
|
|
4588
4618
|
"release.repository",
|
|
4589
4619
|
"release.workflow",
|
|
4620
|
+
"release.notesWhenReady",
|
|
4590
4621
|
"release.email.enabled",
|
|
4591
4622
|
"release.email.to",
|
|
4592
4623
|
"release.email.when",
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return-to-picker contract between the native RepoOS Hub shell and the
|
|
3
|
+
* server-served SPA running inside its isolated WebView (#1152).
|
|
4
|
+
*
|
|
5
|
+
* The connected server has no Capacitor bridge on purpose (see
|
|
6
|
+
* docs/mobile-architecture.md), so it cannot call a privileged native API.
|
|
7
|
+
* The only thing it may ask for is "dismiss this browser and show the server
|
|
8
|
+
* picker" — exactly the logo action on a phone.
|
|
9
|
+
*
|
|
10
|
+
* The handshake is deliberately narrow:
|
|
11
|
+
*
|
|
12
|
+
* 1. The shell generates a fresh random token for each open and adds it to the
|
|
13
|
+
* server URL as `?repoos_hub=<token>`.
|
|
14
|
+
* 2. The SPA reads that token, then navigates to
|
|
15
|
+
* `<origin>/__repoos_hub/return-to-picker#hub-return=<token>` on the logo
|
|
16
|
+
* action. The token travels in the fragment, so the server never receives
|
|
17
|
+
* it.
|
|
18
|
+
* 3. The shell's existing `browserPageNavigationCompleted` listener accepts the
|
|
19
|
+
* navigation only when the URL's origin is exactly the origin it opened, the
|
|
20
|
+
* path is exactly the return path, and the fragment carries this open's
|
|
21
|
+
* token. Then it closes the InAppBrowser. Anything else is ordinary
|
|
22
|
+
* navigation.
|
|
23
|
+
*
|
|
24
|
+
* A same-origin page can at most dismiss the browser; no native capability is
|
|
25
|
+
* reachable. Foreign origins never load in the isolated WebView (they open in
|
|
26
|
+
* the system browser), and a stale token from another app open never matches
|
|
27
|
+
* the shell's current in-memory token.
|
|
28
|
+
*/
|
|
29
|
+
/** Query parameter the native shell adds to the URL it opens. */
|
|
30
|
+
export declare const HUB_CONTEXT_PARAM = "repoos_hub";
|
|
31
|
+
/** The public landing path the shell watches for. */
|
|
32
|
+
export declare const HUB_RETURN_PATH = "/__repoos_hub/return-to-picker";
|
|
33
|
+
/** A native-app open: the server origin plus this open's random token. */
|
|
34
|
+
export interface HubReturnSession {
|
|
35
|
+
origin: string;
|
|
36
|
+
token: string;
|
|
37
|
+
}
|
|
38
|
+
/** Generate a 128-bit token for one server open. */
|
|
39
|
+
export declare function createHubReturnToken(): string;
|
|
40
|
+
export declare function isHubReturnToken(value: string | null | undefined): value is string;
|
|
41
|
+
/** Read the native-shell context from the URL the shell opened. */
|
|
42
|
+
export declare function readHubContext(href: string): HubReturnSession | null;
|
|
43
|
+
/** Add the native-shell context to a server URL, preserving path/query/hash. */
|
|
44
|
+
export declare function withHubContext(href: string, token: string): string;
|
|
45
|
+
/** Remove the context parameter from a URL after the SPA has claimed it. */
|
|
46
|
+
export declare function stripHubContext(href: string): string;
|
|
47
|
+
/** The one navigation the native shell treats as "return to the picker". */
|
|
48
|
+
export declare function hubReturnHref(session: HubReturnSession): string;
|
|
49
|
+
/**
|
|
50
|
+
* Offline fallback: a `blob:` document created by the SPA now. It needs no
|
|
51
|
+
* network, keeps the server origin, and carries the same per-open token in the
|
|
52
|
+
* fragment. The shell accepts it only when its origin matches the open and the
|
|
53
|
+
* token matches, so an unreachable server still leaves the browser.
|
|
54
|
+
*/
|
|
55
|
+
export declare function hubFallbackHref(session: HubReturnSession, blobUrl: string): string;
|
|
56
|
+
/**
|
|
57
|
+
* True only for this open's exact origin, return path and token. The shell
|
|
58
|
+
* calls this before dismissing the browser; normal navigation must never
|
|
59
|
+
* match. A blob URL from the same origin is the offline fallback.
|
|
60
|
+
*/
|
|
61
|
+
export declare function isHubReturnHref(href: string, session: HubReturnSession | null | undefined): boolean;
|
|
62
|
+
/** What the shell does with one completed WebView navigation. */
|
|
63
|
+
export type HubNavigationAction = "close-browser" | "continue";
|
|
64
|
+
/** Map one WebView navigation event to the shell's action. */
|
|
65
|
+
export declare function hubNavigationAction(href: string, session: HubReturnSession | null | undefined): HubNavigationAction;
|
|
66
|
+
/** Effects the shell applies to one completed navigation (unit-test seam). */
|
|
67
|
+
export interface HubNavigationHandlers {
|
|
68
|
+
closeBrowser: () => void;
|
|
69
|
+
navigated?: (url: string) => void;
|
|
70
|
+
returned?: () => void;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Apply one completed WebView navigation. Only an exact return match closes
|
|
74
|
+
* the browser; everything else is forwarded as normal navigation.
|
|
75
|
+
*/
|
|
76
|
+
export declare function applyHubNavigation(href: string | undefined, session: HubReturnSession | null | undefined, handlers: HubNavigationHandlers): HubNavigationAction;
|