@puddle-code/cli 0.4.7 → 0.4.9

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 (103) hide show
  1. package/CHANGELOG.md +60 -2
  2. package/README.md +19 -4
  3. package/dist/host-control.mjs +75 -17
  4. package/dist/index.js +641 -143
  5. package/dist/install.sh +28 -0
  6. package/dist/public/assets/App-UQXXCAJF.js +65 -0
  7. package/dist/public/assets/{CompilationCommandForm-ByQ3n2Av.js → CompilationCommandForm-CipGdjjH.js} +1 -1
  8. package/dist/public/assets/Dashboard-6pSi_1fH.js +1 -0
  9. package/dist/public/assets/EditorTabClose-TixDVxvl.js +1 -0
  10. package/dist/public/assets/LazyTerminal-B88WIvyh.js +2 -0
  11. package/dist/public/assets/{ModelRefcount-CrRz4dBj.js → ModelRefcount-BeuZdwWp.js} +1 -1
  12. package/dist/public/assets/NewProjectDialog-C1TVzOvJ.js +1 -0
  13. package/dist/public/assets/{NotebookWidget-D_cBVZys.js → NotebookWidget-Bcavj7Lb.js} +2 -2
  14. package/dist/public/assets/PaneEditorBody-DRA4WG0A.js +284 -0
  15. package/dist/public/assets/{PdfViewer-CvbL21Y7.js → PdfViewer-Cr5306nr.js} +1 -1
  16. package/dist/public/assets/{ReleaseNotesDialog-WjdHjwjo.js → ReleaseNotesDialog-CbFYKoYM.js} +1 -1
  17. package/dist/public/assets/SettingsDialog-BvaE3Ue8.js +8 -0
  18. package/dist/public/assets/Terminal-Bo8hyZj7.js +67 -0
  19. package/dist/public/assets/Workspace-Bf0VMnaa.css +1 -0
  20. package/dist/public/assets/Workspace-Bf2zQC6v.js +20 -0
  21. package/dist/public/assets/{api-BOuyloUi.js → api-B90WKMKj.js} +1 -1
  22. package/dist/public/assets/{auth-olLlgxc3.js → auth-CdosKReE.js} +1 -1
  23. package/dist/public/assets/{buffer-store-BvfE0iGv.js → buffer-store-Bh2IilxW.js} +3 -3
  24. package/dist/public/assets/button-C_Rvtcwg.js +1 -0
  25. package/dist/public/assets/{chevron-right-nSpC9bNN.js → chevron-right-BEy-IXEZ.js} +1 -1
  26. package/dist/public/assets/{command-CrnEVrrI.js → command-BV8ZEhQz.js} +1 -1
  27. package/dist/public/assets/{context-CSOKgBuW.js → context-CG70lLa4.js} +1 -1
  28. package/dist/public/assets/context-menu-D3ZhKA9s.js +1 -0
  29. package/dist/public/assets/control-tray-CG26TqqQ.css +1 -0
  30. package/dist/public/assets/control-tray-c9uXOo-i.js +1 -0
  31. package/dist/public/assets/{cssMode-CSjHtANE.js → cssMode-C63oO3vc.js} +1 -1
  32. package/dist/public/assets/dialog-BX0tebJL.css +1 -0
  33. package/dist/public/assets/{dialog-BIriom7c.js → dialog-D-Axqpzg.js} +1 -1
  34. package/dist/public/assets/dist-BmSuHjIq.js +1 -0
  35. package/dist/public/assets/{dist-gLwIpKj2.js → dist-Cq-O0n8n.js} +1 -1
  36. package/dist/public/assets/{dist-DsLo0ckR.js → dist-Dge3wHdO.js} +1 -1
  37. package/dist/public/assets/{editor.api2-4X9Vh9Zw.js → editor.api2-DTL_SiN1.js} +2 -2
  38. package/dist/public/assets/errors-tuvbq1a_.js +1 -0
  39. package/dist/public/assets/forward-link-BspnTVuc.js +1 -0
  40. package/dist/public/assets/{freemarker2-DsOTa0Uq.js → freemarker2-DKWtaCtp.js} +1 -1
  41. package/dist/public/assets/{handlebars-DGS-lUwt.js → handlebars-uU1ujPOt.js} +1 -1
  42. package/dist/public/assets/{html-eVYoRhea.js → html-CrP_wDJ5.js} +1 -1
  43. package/dist/public/assets/{htmlMode-CIHMS93l.js → htmlMode-lNJ18wA0.js} +1 -1
  44. package/dist/public/assets/index-4XrK4Fes.css +2 -0
  45. package/dist/public/assets/index-Doe7MhnI.js +10 -0
  46. package/dist/public/assets/{javascript-Cq9FwqGi.js → javascript-WHxEzdgn.js} +1 -1
  47. package/dist/public/assets/{jsonMode-BijgXT6I.js → jsonMode-xHnT5kRj.js} +1 -1
  48. package/dist/public/assets/{liquid-BcLxSFu3.js → liquid-B1ddyofJ.js} +1 -1
  49. package/dist/public/assets/{lspLanguageFeatures-x2nWJpem.js → lspLanguageFeatures-CCO_e4_t.js} +1 -1
  50. package/dist/public/assets/markdown-mermaid-TizVRNLQ.js +2 -0
  51. package/dist/public/assets/{mdx-BDgbCiou.js → mdx-m1X3FtyX.js} +1 -1
  52. package/dist/public/assets/media-refresh-store-CiyvSvEu.js +1 -0
  53. package/dist/public/assets/{monaco.contribution-C0TYpF88.js → monaco.contribution-BXkMDWX9.js} +2 -2
  54. package/dist/public/assets/notification-delivery-BZzMYzIP.css +1 -0
  55. package/dist/public/assets/notification-delivery-CegOQxcZ.js +1 -0
  56. package/dist/public/assets/popover-D-jcaKGN.js +1 -0
  57. package/dist/public/assets/{protocol-support-BApsXw77.js → protocol-support-TSI4Ig6W.js} +1 -1
  58. package/dist/public/assets/{python-D5mUty3a.js → python-CRTN4ovU.js} +1 -1
  59. package/dist/public/assets/{razor-DAAn8j2s.js → razor-Cj7Cr6Fr.js} +1 -1
  60. package/dist/public/assets/{scroll-restoration-CwXbvZvT.js → scroll-restoration-6GVbekSz.js} +1 -1
  61. package/dist/public/assets/select-p5KTVHbg.js +1 -0
  62. package/dist/public/assets/{selection-actions-2STnRxD9.js → selection-actions-CvYaucrm.js} +1 -1
  63. package/dist/public/assets/{session-order-2oedrwDu.js → session-order-CiDVvIU5.js} +1 -1
  64. package/dist/public/assets/{switch-B1LYyDZA.js → switch-oBD5uCTu.js} +1 -1
  65. package/dist/public/assets/theme-swfNLod9.js +1 -0
  66. package/dist/public/assets/{tsMode-B7q3gz7a.js → tsMode-D0nEO9DL.js} +1 -1
  67. package/dist/public/assets/{typescript-DvKdOnR-.js → typescript-CQjjq4UE.js} +1 -1
  68. package/dist/public/assets/use-ui-state-D4FsRK2R.js +1 -0
  69. package/dist/public/assets/{view-state-store-Cy9sQJoZ.js → view-state-store-DbQ7YOPe.js} +1 -1
  70. package/dist/public/assets/{workers-Ck67TJT4.js → workers-m2qsiPbB.js} +1 -1
  71. package/dist/public/assets/ws-Cp1eCJaM.js +1 -0
  72. package/dist/public/assets/{xml-DDMTG7kD.js → xml-Ci2P6_gm.js} +1 -1
  73. package/dist/public/assets/{yaml-hCGJvPOb.js → yaml-76T3bIWj.js} +1 -1
  74. package/dist/public/index.html +4 -3
  75. package/dist/pudl.js +118 -75
  76. package/package.json +1 -1
  77. package/dist/public/assets/App-CiC_hRBz.js +0 -7
  78. package/dist/public/assets/Dashboard-DXufaZFW.js +0 -1
  79. package/dist/public/assets/EditorTabClose-dEi1apPb.js +0 -1
  80. package/dist/public/assets/LazyTerminal-CQNsHnn5.js +0 -2
  81. package/dist/public/assets/NewProjectDialog-CRoDFgh9.js +0 -1
  82. package/dist/public/assets/PaneEditorBody-_H5u21rG.js +0 -284
  83. package/dist/public/assets/SettingsDialog-CiDPg9PP.js +0 -8
  84. package/dist/public/assets/Terminal-kGAX-Lcx.js +0 -66
  85. package/dist/public/assets/Workspace-D8fTPYJv.js +0 -20
  86. package/dist/public/assets/Workspace-fmUH5XvW.css +0 -1
  87. package/dist/public/assets/button-q0ardkfx.js +0 -1
  88. package/dist/public/assets/context-menu-BaamZoTk.js +0 -1
  89. package/dist/public/assets/control-tray-CHewYBoS.css +0 -1
  90. package/dist/public/assets/control-tray-D6zVSZF4.js +0 -1
  91. package/dist/public/assets/dialog-BYIi-VQq.css +0 -1
  92. package/dist/public/assets/dist-t7ZlsY9S.js +0 -1
  93. package/dist/public/assets/forward-link-DMvLf0Xw.js +0 -1
  94. package/dist/public/assets/hotkeys-Cu0t6sbz.js +0 -1
  95. package/dist/public/assets/index-DAZZvnBz.css +0 -2
  96. package/dist/public/assets/index-Nd31gVbt.js +0 -10
  97. package/dist/public/assets/markdown-mermaid-ByeNUiyP.js +0 -2
  98. package/dist/public/assets/media-refresh-store-1wdl12UC.js +0 -1
  99. package/dist/public/assets/notification-delivery-BrgeSks8.js +0 -1
  100. package/dist/public/assets/popover-ChiZqTsE.js +0 -1
  101. package/dist/public/assets/select-4yfFmU4K.js +0 -1
  102. package/dist/public/assets/use-ui-state-Bi73JKcr.js +0 -1
  103. package/dist/public/assets/ws-Dgc69_w8.js +0 -1
package/CHANGELOG.md CHANGED
@@ -4,8 +4,66 @@ Archived release changelog. Governance lives in CLAUDE.md §"Changelog disciplin
4
4
 
5
5
  # Changelog
6
6
 
7
- ## [0.4.7] — 2026-11-05
7
+ ## [0.4.9] — 2026-11-05
8
+
9
+ ### Cockpit
10
+
11
+ #### Added
12
+
13
+ - Hold ⌘⌥/ (Ctrl+Alt+/ on Windows/Linux) to blur the workspace and glance at the host icon and name; release to return immediately.
14
+ - Customise each host’s icon and accent per profile, independently of Settings Sync; choose from 63 host-specific icons and the shared colour palette, with a coherent accent palette across text, controls, surfaces, borders and selections.
15
+
16
+ #### Changed
17
+
18
+ - Coalesce custom cursor movement per frame and reuse hover-role/style checks while preserving theme, font and target changes.
19
+ - Reduce memory held by long-inactive terminals while preserving their local transcripts, scroll position and offline copy; keep recent switches and unsupported terminal states warm.
20
+ - Share session lifecycle eligibility across mobile and desktop; explain unavailable resumes on mobile while keeping live sessions stoppable.
21
+ - Support selective component releases and manifest-pinned bootstrap; notify only for newly published host components, and reject explicitly requested skipped versions.
22
+ - Skip unchanged terminal rich-output projections, resolve tab sessions once, and share delayed blob-download cleanup for worktree downloads.
23
+ - Bound memory retained while streaming local or SSH logs, preserving complete output delivery and normal command capture.
24
+
25
+ #### Fixed
26
+
27
+ - Keep the original and new terminal tabs open after native `/fork`, `/new` and `/clear`; resume the saved original in its own runtime without replaying a prompt.
28
+ - Give active sessions a deeper background than hover in both expanded and collapsed right sidebars.
29
+
30
+ - Describe supported coordinated data purge, its protocol requirement, runtime-stop consent and reboot continuation in CLI help and removal guidance.
31
+ - Keep explorer gestures, confirmations and late file-create replies scoped to their directory; recheck read-only state before committing edits or deletions.
32
+ - Avoid refreshing explorer header controls for selection and drag-state changes.
33
+ - Preserve draft text and original layout ownership when file renames, draft saves or archive replies finish after switching projects; discard stale path and draft-open completions.
34
+
35
+ - Handle cancelled word highlighting and diff replies for disposed editor models during workspace transitions.
36
+
37
+ - Fit collapsed project abbreviations to the rail at the largest readable size, without ellipses.
38
+ - Avoid full-screen terminal redraws for cursor-only synchronised updates while preserving buffered output and the terminal's refresh timeout.
39
+ - Improve compact project-rail label sizing and vertical spacing; align selection and hover fills during dialogue scaling, and dismiss tab actions after pointer exit without losing keyboard access.
40
+ - Keep PDF zoom controls over the visible document instead of below its viewport; allow overlay trays to override their default positioning.
8
41
 
9
42
  ### Daemon
10
43
 
11
- - Publish native conversation title changes before slower placement discovery and reuse worktree mappings within each catalogue scan.
44
+ #### Changed
45
+
46
+ - Share eager compilation dependency watches and bounded asynchronous stats across targets; verify missed events less often with healthy watches and retire unobserved targets sooner.
47
+
48
+ - Protocol 26.3: acknowledge unchanged notebook execution revisions without resending outputs; back off idle and unfocused observation while preserving cross-window discovery and full reconnect snapshots.
49
+ - Stream uploads through bounded private staging with actual-byte limits, enumerate file trees asynchronously, and stop bounded directory downloads on cancellation.
50
+ - Bound Claude reference discovery to transcript prefixes and stream asynchronous usage reads, preserving totals across file replacement, truncation and partial writes.
51
+ - Share pending terminal snapshots at the same input boundary, preserving per-reader memory admission, fresh replay and durable checkpoint behaviour.
52
+ - Batch native conversation ingestion, avoid rewriting unchanged metadata, and read Codex file timestamps asynchronously while retaining complete discovery and missing-file confirmation.
53
+ - Resolve daemon and runtime updates independently from a release manifest, preserving existing pins and legacy catalogue readers.
54
+ - Publish changed notebook cells without repeatedly serialising every completed cell; preserve shared display updates, output clearing and cancellation.
55
+
56
+ #### Fixed
57
+
58
+ - Avoid native Codex database lock waits blocking other agents, and connect new runtimes directly instead of waiting for unrelated unavailable owners.
59
+ - Share bounded CLI version observations across capability checks and refresh them after CLI upgrades.
60
+ - Ignore delayed end hooks from previous conversations and Claude subagent status hooks; bound hook input while preserving Gemini's JSON response contract.
61
+ - Keep OpenCode metadata updates and late replies from switching or completing another conversation; report OpenCode 2's unsupported V1 synchronisation bridge as fallback.
62
+ - Avoid writing conversation presence twice during one catalogue scan, preserving newer lifecycle observations and two-scan deletion confirmation.
63
+ - Avoid scanning the owning Git repository twice during repository discovery.
64
+
65
+ ### Runtime
66
+
67
+ #### Fixed
68
+
69
+ - Release idle Codex 0.166+ thread ownership promptly after native conversation switches so the original can run independently of its fork.
package/README.md CHANGED
@@ -174,14 +174,29 @@ kill "$(cat ~/.puddle/puddled.pid)" # nohup fallback (no supervi
174
174
 
175
175
  **Restore published software.** Use a compatible CLI to explicitly upgrade to a chosen compatible published version: `puddle upgrade daemon@X.Y.Z` (and `puddle upgrade runtime@X.Y.Z` for future runtimes). Replace `X.Y.Z` with that release; compatibility and recovery checks still apply. Removing and reinstalling a modern daemon can restore its retained service and selected generation, so it is not a way to force a download. Existing runtime processes keep their pinned build until explicitly restarted.
176
176
 
177
- **Uninstall.** Removing the CLI alone leaves the daemon installed and running — a full teardown is:
177
+ **Uninstall.** Removing the CLI alone leaves the daemon installed and running.
178
+ Ordinary `puddle remove daemon` keeps host data and offers to retain or stop
179
+ independent runtimes. To delete managed host data on a persistent-runtime host
180
+ (feature introduced in application 25.20, requiring a daemon with the same
181
+ application major as the CLI), use:
178
182
 
179
183
  ```sh
180
- puddle remove daemon --purge # stops the daemon, unregisters its service, deletes ~/.puddle
181
- puddle remove cli # standalone or npm removal, using its installation channel
184
+ puddle remove daemon --purge --stop-runtimes
185
+ # Reboot the target machine when instructed, then repeat:
186
+ puddle remove daemon --purge --stop-runtimes
187
+ puddle remove cli # after purge completes; uses the CLI's installation channel
182
188
  ```
183
189
 
184
- > ⚠️ `~/.puddle` **is** your local state — the SQLite database with every profile, account, and session (plus conversation history), the daemon's worktree tracking, and the auth token. `--purge` deletes it irreversibly (the command lists dirty or unpushed worktrees and asks first); without it, `puddle remove daemon` keeps the data for a later reinstall.
190
+ Purge requires separate runtime-stop and data-deletion consent. Add `--yes` for
191
+ non-interactive use only when both are intended. Puddle reviews uncommitted or
192
+ unpushed work before deleting managed worktrees, profiles, agent configuration
193
+ and session history in resumable batches. Installation locks, private recovery
194
+ records and retained releases remain. After an interrupted reply, inspect the
195
+ reported result and rerun the explicit purge command to continue. Unsupported persistent
196
+ hosts refuse purge before mutation; upgrade first or use a compatible removal
197
+ client to retain data.
198
+ Legacy removal keeps data unless purge is separately confirmed. Ordinary removal
199
+ and upgrades do not require a reboot.
185
200
 
186
201
  ## Licence
187
202
 
@@ -8,7 +8,7 @@ var __export = (target2, all) => {
8
8
  import { connect as connect2 } from "node:net";
9
9
 
10
10
  // ../shared/src/protocol.ts
11
- var PROTOCOL_VERSION = { major: 26, minor: 1 };
11
+ var PROTOCOL_VERSION = { major: 26, minor: 3 };
12
12
  function supportsApplicationFeature(peer, introduced, client = PROTOCOL_VERSION) {
13
13
  return peer?.major === client.major && (peer.major > introduced.major || peer.major === introduced.major && peer.minor >= introduced.minor);
14
14
  }
@@ -14753,10 +14753,15 @@ function hostUpdateTerminal(phase) {
14753
14753
 
14754
14754
  // ../shared/src/installation/catalogue.ts
14755
14755
  var releaseRepositorySchema = external_exports.string().max(201).regex(/^[A-Za-z0-9][A-Za-z0-9_.-]*\/[A-Za-z0-9_.-]+$/).refine((value) => ![".", ".."].includes(value.split("/")[1]));
14756
+ var availableRelease = external_exports.object({
14757
+ version: external_exports.string().max(64).regex(/^[0-9]+\.[0-9]+\.[0-9]+$/),
14758
+ host_asset: external_exports.boolean()
14759
+ }).strict();
14756
14760
  var timestamp2 = external_exports.number().int().nonnegative().safe();
14757
14761
  var hostReleaseCheckSchema = external_exports.object({
14758
14762
  repository: releaseRepositorySchema.nullable(),
14759
14763
  state: external_exports.enum(["unconfigured", "checking", "ready", "failed"]),
14764
+ components: external_exports.object({ daemon: availableRelease, runtime: availableRelease }).strict().optional(),
14760
14765
  checked_at: timestamp2.nullable(),
14761
14766
  succeeded_at: timestamp2.nullable(),
14762
14767
  latest: external_exports.object({
@@ -14797,7 +14802,8 @@ var hostUpdateCommandSchema = external_exports.discriminatedUnion("action", [
14797
14802
  /** Recorded continuation metadata, capability-detected from application 25.12. */
14798
14803
  include_recovery: external_exports.literal(true).optional(),
14799
14804
  /** Host-wide versions and coalesced release discovery (25.14), never admission evidence. */
14800
- include_catalogue: external_exports.literal(true).optional()
14805
+ include_catalogue: external_exports.literal(true).optional(),
14806
+ include_component_releases: external_exports.literal(true).optional()
14801
14807
  }).strict().refine(
14802
14808
  (command) => !command.adoption_nonce || command.id !== void 0,
14803
14809
  "Adoption inspection requires an exact operation"
@@ -15026,6 +15032,9 @@ var sessionDefaultsSchema = external_exports.looseObject({
15026
15032
  terminal: sessionSeedSchema.optional()
15027
15033
  });
15028
15034
  var profileSettingsSchema = external_exports.looseObject({
15035
+ /** Host identity for this profile on this daemon; deliberately excluded from sync. */
15036
+ hostIcon: external_exports.string().max(64).nullable().optional(),
15037
+ hostColour: external_exports.enum(PROFILE_ICON_COLOURS).nullable().optional(),
15029
15038
  allowSkipPermissions: external_exports.boolean().default(false),
15030
15039
  /**
15031
15040
  * Captured session environment (SPEC §4): whether this profile's session
@@ -16153,7 +16162,7 @@ var cockpitHostUpdateRequestSchema = external_exports.discriminatedUnion("action
16153
16162
  ...onlineHostUpdateRequestSchema.options,
16154
16163
  external_exports.object({ action: external_exports.literal("continue-offline"), reference: hostUpdateReferenceSchema }).strict()
16155
16164
  ]);
16156
- var cockpitHostUpdateQuerySchema = external_exports.object({ id: external_exports.uuid().optional() }).strict();
16165
+ var cockpitHostUpdateQuerySchema = external_exports.object({ id: external_exports.uuid().optional(), components: external_exports.literal("1").optional() }).strict();
16157
16166
  var operation = hostUpdateOperationSchema.shape;
16158
16167
  var cockpitHostUpdateOperationSchema = external_exports.object({
16159
16168
  id: operation.id,
@@ -16199,7 +16208,11 @@ var cockpitHostUpdateStatusSchema = external_exports.object({
16199
16208
 
16200
16209
  // ../shared/src/api/connection/host-maintenance.ts
16201
16210
  var hostMaintenanceCommandSchema = external_exports.discriminatedUnion("action", [
16202
- external_exports.object({ action: external_exports.literal("status"), id: external_exports.uuid().optional() }).strict(),
16211
+ external_exports.object({
16212
+ action: external_exports.literal("status"),
16213
+ id: external_exports.uuid().optional(),
16214
+ include_component_releases: external_exports.literal(true).optional()
16215
+ }).strict(),
16203
16216
  ...onlineHostUpdateRequestSchema.options
16204
16217
  ]);
16205
16218
  var hostMaintenanceReplySchema = external_exports.discriminatedUnion("kind", [
@@ -16941,10 +16954,22 @@ var notebookExecutionSchema = external_exports.object({
16941
16954
  input: notebookInputSchema.optional(),
16942
16955
  error: external_exports.string().max(32768).optional()
16943
16956
  });
16944
- var notebookExecutionRequestSchema = external_exports.object({ source: compilationFileTargetSchema });
16957
+ var notebookRevisionSchema = external_exports.object({
16958
+ id: external_exports.string().uuid(),
16959
+ revision: external_exports.number().int().nonnegative()
16960
+ }).nullable();
16961
+ var notebookExecutionRequestSchema = external_exports.object({
16962
+ source: compilationFileTargetSchema,
16963
+ /** Opt in to an unchanged reply; omission always asks for a full snapshot. */
16964
+ known: notebookRevisionSchema.optional()
16965
+ });
16945
16966
  var notebookExecutionResponseSchema = external_exports.object({
16946
16967
  execution: notebookExecutionSchema.nullable()
16947
16968
  });
16969
+ var notebookObservationResponseSchema = external_exports.union([
16970
+ notebookExecutionResponseSchema,
16971
+ external_exports.object({ unchanged: external_exports.literal(true) })
16972
+ ]);
16948
16973
  var notebookInputReplySchema = external_exports.object({
16949
16974
  source: compilationFileTargetSchema,
16950
16975
  run_id: external_exports.string().uuid(),
@@ -17849,6 +17874,39 @@ var hostReleaseCapabilitiesSchema = external_exports.object({
17849
17874
  database_schema_version: external_exports.number().int().nonnegative().max(2 ** 31 - 1).optional()
17850
17875
  }).strict();
17851
17876
 
17877
+ // ../shared/src/installation/release-manifest.ts
17878
+ var releaseVersionSchema = external_exports.string().max(64).regex(/^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$/);
17879
+ var releaseComponentSchema = external_exports.enum(["cockpit", "daemon", "runtime"]);
17880
+ var releaseManifestSchema = external_exports.object({
17881
+ format: external_exports.literal(1),
17882
+ version: releaseVersionSchema,
17883
+ components: external_exports.object({
17884
+ cockpit: releaseVersionSchema,
17885
+ daemon: releaseVersionSchema,
17886
+ runtime: releaseVersionSchema
17887
+ }).strict()
17888
+ }).strict().superRefine((manifest, context) => {
17889
+ if (![manifest.version, ...Object.values(manifest.components)].every(
17890
+ (version2) => releaseVersionSchema.safeParse(version2).success
17891
+ ))
17892
+ return;
17893
+ for (const [component2, version2] of Object.entries(manifest.components)) {
17894
+ if (compareReleaseVersions(version2, manifest.version) > 0)
17895
+ context.addIssue({ code: "custom", message: `${component2} points beyond its release` });
17896
+ }
17897
+ if (manifest.components.cockpit !== manifest.version)
17898
+ context.addIssue({ code: "custom", message: "Every release publishes its cockpit" });
17899
+ });
17900
+ function compareReleaseVersions(a, b) {
17901
+ const left = a.split(".").map(BigInt);
17902
+ const right = b.split(".").map(BigInt);
17903
+ for (let i = 0; i < 3; i++) {
17904
+ if (left[i] < right[i]) return -1;
17905
+ if (left[i] > right[i]) return 1;
17906
+ }
17907
+ return 0;
17908
+ }
17909
+
17852
17910
  // ../shared/src/installation/removal/services.ts
17853
17911
  var service = hostServiceReplacementSchema.shape;
17854
17912
  var target = external_exports.object({ kind: service.kind, name: service.name, domain: service.domain }).strict();
@@ -18301,6 +18359,18 @@ async function inspectHostLocally(home) {
18301
18359
  }
18302
18360
  }
18303
18361
 
18362
+ // ../shared/src/node/releases/github.ts
18363
+ var assetSchema = external_exports.object({
18364
+ name: external_exports.string().min(1).max(256),
18365
+ browser_download_url: external_exports.string().max(2048).url().refine((value) => value.startsWith("https://"))
18366
+ });
18367
+ var releaseSchema = external_exports.object({
18368
+ tag_name: external_exports.string().max(129).regex(/^v?[0-9]+\.[0-9]+\.[0-9]+$/),
18369
+ draft: external_exports.literal(false).optional(),
18370
+ prerelease: external_exports.literal(false).optional(),
18371
+ assets: external_exports.array(assetSchema).max(1024).default([])
18372
+ });
18373
+
18304
18374
  // ../shared/src/node/installation/capabilities.ts
18305
18375
  import { constants as constants2 } from "node:fs";
18306
18376
  import { open, realpath } from "node:fs/promises";
@@ -18355,18 +18425,6 @@ import { execFile } from "node:child_process";
18355
18425
  import { promisify } from "node:util";
18356
18426
  var execute = promisify(execFile);
18357
18427
 
18358
- // ../shared/src/node/releases/github.ts
18359
- var assetSchema = external_exports.object({
18360
- name: external_exports.string().min(1).max(256),
18361
- browser_download_url: external_exports.string().max(2048).url().refine((value) => value.startsWith("https://"))
18362
- });
18363
- var releaseSchema = external_exports.object({
18364
- tag_name: external_exports.string().max(129).regex(/^v?[0-9]+\.[0-9]+\.[0-9]+$/),
18365
- draft: external_exports.literal(false).optional(),
18366
- prerelease: external_exports.literal(false).optional(),
18367
- assets: external_exports.array(assetSchema).max(1024).default([])
18368
- });
18369
-
18370
18428
  // ../shared/src/node/installation/workers.ts
18371
18429
  import { accessSync, constants as constants3, realpathSync as realpathSync2, statSync } from "node:fs";
18372
18430
  import { dirname as dirname3, isAbsolute, join as join5 } from "node:path";