@puddle-code/cli 0.4.8 → 0.4.10
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/CHANGELOG.md +58 -8
- package/README.md +19 -4
- package/dist/host-control.mjs +86 -21
- package/dist/index.js +652 -147
- package/dist/install.sh +28 -0
- package/dist/public/assets/App-DZPlytdY.js +63 -0
- package/dist/public/assets/{CompilationCommandForm-Csg3VkC6.js → CompilationCommandForm-B-CEimt-.js} +1 -1
- package/dist/public/assets/Dashboard-D0qSbNc_.js +1 -0
- package/dist/public/assets/EditorTabClose-DoclvCbs.js +1 -0
- package/dist/public/assets/FindWidget-CNxi2b9L.js +1 -0
- package/dist/public/assets/LazyTerminal-BffV6rzu.js +2 -0
- package/dist/public/assets/{ModelRefcount-CHKuXiJY.js → ModelRefcount-BeuZdwWp.js} +1 -1
- package/dist/public/assets/{NotebookWidget-CCRsiBIE.js → NotebookWidget-CpzrWj4z.js} +2 -2
- package/dist/public/assets/PaneEditorBody-C5SVOXKv.js +284 -0
- package/dist/public/assets/{PdfViewer-BX025YLW.js → PdfViewer-BH-FXEVV.js} +1 -1
- package/dist/public/assets/{ReleaseNotesDialog-CbFYKoYM.js → ReleaseNotesDialog-CN7W2Evg.js} +1 -1
- package/dist/public/assets/SettingsDialog-D5CH5-vH.js +8 -0
- package/dist/public/assets/Terminal-D7rw4Zu8.js +67 -0
- package/dist/public/assets/{Workspace-Bf0VMnaa.css → Workspace-CuAYZ1-B.css} +1 -1
- package/dist/public/assets/Workspace-Cvhx3oi9.js +20 -0
- package/dist/public/assets/{api-BOuyloUi.js → api-CULxlzTe.js} +1 -1
- package/dist/public/assets/archive-i9DnVa-v.js +1 -0
- package/dist/public/assets/{auth-olLlgxc3.js → auth-C3ruG3fE.js} +1 -1
- package/dist/public/assets/{buffer-store-DIOiWz9q.js → buffer-store-Bh2IilxW.js} +3 -3
- package/dist/public/assets/button-C-dovHYo.js +1 -0
- package/dist/public/assets/client-settings-Cy225e3b.js +1 -0
- package/dist/public/assets/command-klU_3huY.js +1 -0
- package/dist/public/assets/{context-CSOKgBuW.js → context-D1MuDP6X.js} +1 -1
- package/dist/public/assets/control-tray-CG26TqqQ.css +1 -0
- package/dist/public/assets/control-tray-c9uXOo-i.js +1 -0
- package/dist/public/assets/{cssMode-CSjHtANE.js → cssMode-C63oO3vc.js} +1 -1
- package/dist/public/assets/dialog-B0poBDCr.js +41 -0
- package/dist/public/assets/dist-C4YjL9GW.js +1 -0
- package/dist/public/assets/{dist-Dge3wHdO.js → dist-DDTfSNTu.js} +1 -1
- package/dist/public/assets/dist-Duc5nm48.js +1 -0
- package/dist/public/assets/{editor.api2-4X9Vh9Zw.js → editor.api2-DTL_SiN1.js} +2 -2
- package/dist/public/assets/errors-efDAjyqa.js +1 -0
- package/dist/public/assets/expanding-content-Bens1wCS.js +1 -0
- package/dist/public/assets/forward-link-DWN_hZ7A.js +1 -0
- package/dist/public/assets/{freemarker2-DsOTa0Uq.js → freemarker2-DKWtaCtp.js} +1 -1
- package/dist/public/assets/{handlebars-DGS-lUwt.js → handlebars-uU1ujPOt.js} +1 -1
- package/dist/public/assets/{html-eVYoRhea.js → html-CrP_wDJ5.js} +1 -1
- package/dist/public/assets/{htmlMode-CIHMS93l.js → htmlMode-lNJ18wA0.js} +1 -1
- package/dist/public/assets/index-CHGSBAX2.css +2 -0
- package/dist/public/assets/index-OKzoyhKK.js +10 -0
- package/dist/public/assets/{javascript-Cq9FwqGi.js → javascript-WHxEzdgn.js} +1 -1
- package/dist/public/assets/{jsonMode-BijgXT6I.js → jsonMode-xHnT5kRj.js} +1 -1
- package/dist/public/assets/{liquid-BcLxSFu3.js → liquid-B1ddyofJ.js} +1 -1
- package/dist/public/assets/{lspLanguageFeatures-x2nWJpem.js → lspLanguageFeatures-CCO_e4_t.js} +1 -1
- package/dist/public/assets/markdown-mermaid-TizVRNLQ.js +2 -0
- package/dist/public/assets/{mdx-BDgbCiou.js → mdx-m1X3FtyX.js} +1 -1
- package/dist/public/assets/media-refresh-store-odkzJbkh.js +1 -0
- package/dist/public/assets/{monaco.contribution-C0TYpF88.js → monaco.contribution-BXkMDWX9.js} +2 -2
- package/dist/public/assets/motion-CxPWS8Fa.js +1 -0
- package/dist/public/assets/notification-delivery-BHHCcyI1.js +1 -0
- package/dist/public/assets/notification-delivery-BZzMYzIP.css +1 -0
- package/dist/public/assets/popover-Cv4S_Eut.js +1 -0
- package/dist/public/assets/{protocol-support-BApsXw77.js → protocol-support-BwRR1kRO.js} +1 -1
- package/dist/public/assets/{python-D5mUty3a.js → python-CRTN4ovU.js} +1 -1
- package/dist/public/assets/{razor-DAAn8j2s.js → razor-Cj7Cr6Fr.js} +1 -1
- package/dist/public/assets/{scroll-restoration-CwXbvZvT.js → scroll-restoration-wdDB8mmu.js} +1 -1
- package/dist/public/assets/select-C0AnT3e9.js +1 -0
- package/dist/public/assets/{selection-actions-Cm0Oytya.js → selection-actions-gU_r-7v_.js} +1 -1
- package/dist/public/assets/session-order-rnLHD6HV.js +1 -0
- package/dist/public/assets/switch-DllF_QQT.js +1 -0
- package/dist/public/assets/theme-swfNLod9.js +1 -0
- package/dist/public/assets/{tsMode-B7q3gz7a.js → tsMode-D0nEO9DL.js} +1 -1
- package/dist/public/assets/{typescript-DvKdOnR-.js → typescript-CQjjq4UE.js} +1 -1
- package/dist/public/assets/use-ui-state-2r7YwqCy.js +1 -0
- package/dist/public/assets/{view-state-store-Cy9sQJoZ.js → view-state-store-DVvLMbeY.js} +1 -1
- package/dist/public/assets/whole-word-BJjKpISQ.js +1 -0
- package/dist/public/assets/{workers-Ck67TJT4.js → workers-m2qsiPbB.js} +1 -1
- package/dist/public/assets/ws-B_QsPbsD.js +1 -0
- package/dist/public/assets/{xml-DDMTG7kD.js → xml-Ci2P6_gm.js} +1 -1
- package/dist/public/assets/{yaml-hCGJvPOb.js → yaml-76T3bIWj.js} +1 -1
- package/dist/public/index.html +5 -4
- package/dist/pudl.js +129 -79
- package/package.json +1 -1
- package/dist/public/assets/App-D-hMqX7b.js +0 -13
- package/dist/public/assets/Dashboard-C0AvtM5m.js +0 -1
- package/dist/public/assets/EditorTabClose-QgdaqA1X.js +0 -1
- package/dist/public/assets/FindWidget-DG1YP6Zx.js +0 -1
- package/dist/public/assets/LazyTerminal-Dp2CN0Y8.js +0 -2
- package/dist/public/assets/NewProjectDialog-DMixZDC_.js +0 -1
- package/dist/public/assets/PaneEditorBody-DD8UshBi.js +0 -284
- package/dist/public/assets/SettingsDialog-DgMm212x.js +0 -8
- package/dist/public/assets/Terminal-CYeh8_uU.js +0 -66
- package/dist/public/assets/Workspace-CrZkK55U.js +0 -20
- package/dist/public/assets/button-C_Rvtcwg.js +0 -1
- package/dist/public/assets/chevron-right-BEy-IXEZ.js +0 -1
- package/dist/public/assets/client-settings-DhfHheKR.js +0 -1
- package/dist/public/assets/command-BV8ZEhQz.js +0 -1
- package/dist/public/assets/context-menu-D3ZhKA9s.js +0 -1
- package/dist/public/assets/control-tray-CdoVaVhT.js +0 -1
- package/dist/public/assets/control-tray-DE2RhHP3.css +0 -1
- package/dist/public/assets/dialog-D-Axqpzg.js +0 -41
- package/dist/public/assets/dist-BmSuHjIq.js +0 -1
- package/dist/public/assets/dist-Cq-O0n8n.js +0 -1
- package/dist/public/assets/forward-link-DMvLf0Xw.js +0 -1
- package/dist/public/assets/hotkeys-Cu0t6sbz.js +0 -1
- package/dist/public/assets/index-BqOVeoIr.js +0 -10
- package/dist/public/assets/index-LpAqnBR3.css +0 -2
- package/dist/public/assets/markdown-mermaid-SyDYdSZz.js +0 -2
- package/dist/public/assets/media-refresh-store-NSkvkBxN.js +0 -1
- package/dist/public/assets/motion-OSLfKoC0.js +0 -1
- package/dist/public/assets/notification-delivery-BBt_CJ19.js +0 -1
- package/dist/public/assets/popover-D-jcaKGN.js +0 -1
- package/dist/public/assets/select-p5KTVHbg.js +0 -1
- package/dist/public/assets/session-order-2oedrwDu.js +0 -1
- package/dist/public/assets/switch-OMx-_DY7.js +0 -1
- package/dist/public/assets/use-ui-state-DdnTFosh.js +0 -1
- package/dist/public/assets/ws-Dgc69_w8.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,14 +4,64 @@ Archived release changelog. Governance lives in CLAUDE.md §"Changelog disciplin
|
|
|
4
4
|
|
|
5
5
|
# Changelog
|
|
6
6
|
|
|
7
|
-
## [0.4.
|
|
7
|
+
## [0.4.10] — 2026-11-06
|
|
8
8
|
|
|
9
9
|
### Cockpit
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
11
|
+
#### Added
|
|
12
|
+
|
|
13
|
+
- Add header host/profile context menus for renaming and colours, plus a Host updates shortcut.
|
|
14
|
+
- Fade the dashboard terminal and full-screen profile picker when opening and closing.
|
|
15
|
+
|
|
16
|
+
- Add custom project colours alongside the shared host/profile preset palette, with a stable grey default swatch.
|
|
17
|
+
- Animate sidebar accordions, workspace changes, new tabs, drag placement and inline Scratchpad/Layout forms while respecting reduced motion.
|
|
18
|
+
|
|
19
|
+
- Add an Appearance toggle to briefly show the host icon and name when returning to a cockpit window or browser tab.
|
|
20
|
+
|
|
21
|
+
- Show saved host names, colours and icons in the desktop New Puddle Window picker, including offline hosts.
|
|
22
|
+
|
|
23
|
+
- Choose custom profile colours and host accents with a colour picker seeded from the current selection.
|
|
24
|
+
|
|
25
|
+
- Restore individual files from Changes using a return-arrow action, with confirmation before discarding edits or deleting untracked files.
|
|
26
|
+
|
|
27
|
+
#### Fixed
|
|
28
|
+
|
|
29
|
+
- Dismiss the host identity overlay on any shortcut-key release and show opted-in focus reminders through native Mac window activation. Mac focus reminders appear instantly and fade out after 0.4 seconds without flashing back; debounce rapid activation signals. The reminder and held shortcut share smaller icon and text styling. Motion options sit at the bottom of Appearance.
|
|
30
|
+
|
|
31
|
+
- Keep tab fills and controls inside rounded pane edges. Increase pane-frame contrast against active tabs and editor content in both themes by adjusting accent lightness while retaining its hue and saturation.
|
|
32
|
+
- Forward native Mac Command key releases so letting go of `/` dismisses the host overlay while Command and Option remain held.
|
|
33
|
+
- Preview files with file-tree Up/Down and pin with Enter; keep repeated preview-slot browsing free of fades.
|
|
34
|
+
|
|
35
|
+
- Remove the border around the large host identity overlay shown with ⌘⌥/.
|
|
36
|
+
|
|
37
|
+
- Use one shared font size for collapsed project abbreviations, matching the smallest size needed to fit the rail.
|
|
38
|
+
|
|
39
|
+
- Align file and folder staging buttons with the Changes heading.
|
|
40
|
+
|
|
41
|
+
### Daemon
|
|
42
|
+
|
|
43
|
+
#### Changed
|
|
44
|
+
|
|
45
|
+
- Protocol 26.6: accept custom six-digit hex project colours alongside preset colours.
|
|
46
|
+
|
|
47
|
+
- Protocol 26.5: accept custom six-digit hex host accents alongside preset colours.
|
|
48
|
+
|
|
49
|
+
- Protocol 26.4: add per-file Git restore with explicit untracked-file deletion consent and preservation of staged changes.
|
|
50
|
+
|
|
51
|
+
#### Fixed
|
|
52
|
+
|
|
53
|
+
- Attach supported Claude-owned background forks in separate terminal tabs while keeping the original active. Route copied hooks to their own runtime, recover viewers without duplicating workers, and distinguish detachment from an explicit stop.
|
|
54
|
+
- Preserve native catalogue refreshes requested after a running scan has already published metadata.
|
|
55
|
+
- Synchronise OpenCode 2.2.5+ native terminal selection, new/fork conversations and exact automated replies; discover both V1 and V2 SQLite histories without waiting on native database locks.
|
|
56
|
+
|
|
57
|
+
### Runtime
|
|
58
|
+
|
|
59
|
+
#### Changed
|
|
60
|
+
|
|
61
|
+
- Runtime protocol 1.1 advertises native background attachment; refuse those launches on older selected runtimes while preserving existing-owner adoption.
|
|
62
|
+
|
|
63
|
+
#### Fixed
|
|
64
|
+
|
|
65
|
+
- Recheck preparing owners promptly during launch while retaining recovery backoff for real failures and maintenance admission.
|
|
66
|
+
- Reuse bounded Claude and Gemini version observations across runtime launches, invalidating them when the executable or launch environment changes.
|
|
67
|
+
- Observe Codex app-server readiness sooner and fail promptly when its process cannot start or exits under a signal.
|
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
|
|
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
|
|
181
|
-
|
|
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
|
-
|
|
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
|
|
package/dist/host-control.mjs
CHANGED
|
@@ -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:
|
|
11
|
+
var PROTOCOL_VERSION = { major: 26, minor: 6 };
|
|
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"
|
|
@@ -15000,7 +15006,7 @@ var profileSchema = external_exports.object({
|
|
|
15000
15006
|
branch_prefix: external_exports.string(),
|
|
15001
15007
|
/** Lucide icon name (kebab-case, e.g. `rocket`); null → the default person glyph. */
|
|
15002
15008
|
icon: external_exports.string().nullable().default(null),
|
|
15003
|
-
/** A `PROFILE_ICON_COLOURS` key; null → the default
|
|
15009
|
+
/** A `PROFILE_ICON_COLOURS` key or six-digit hex colour; null → the default colour. */
|
|
15004
15010
|
icon_colour: external_exports.string().nullable().default(null),
|
|
15005
15011
|
created_at: isoTimestamp
|
|
15006
15012
|
});
|
|
@@ -15013,7 +15019,7 @@ var patchProfileRequestSchema = external_exports.object({
|
|
|
15013
15019
|
branch_prefix: external_exports.string().max(64).optional(),
|
|
15014
15020
|
/** Set/clear the profile's lucide icon (kebab-case name); null clears it. */
|
|
15015
15021
|
icon: external_exports.string().max(64).nullable().optional(),
|
|
15016
|
-
/** Set/clear the icon colour (a
|
|
15022
|
+
/** Set/clear the icon colour (a palette key or six-digit hex); null clears it. */
|
|
15017
15023
|
icon_colour: external_exports.string().max(32).nullable().optional()
|
|
15018
15024
|
});
|
|
15019
15025
|
var sessionSeedSchema = external_exports.looseObject({
|
|
@@ -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.union([external_exports.enum(PROFILE_ICON_COLOURS), external_exports.string().regex(/^#[0-9a-fA-F]{6}$/)]).nullable().optional(),
|
|
15029
15038
|
allowSkipPermissions: external_exports.boolean().default(false),
|
|
15030
15039
|
/**
|
|
15031
15040
|
* Captured session environment (SPEC §4): whether this profile's session
|
|
@@ -15418,7 +15427,10 @@ var archiveRequestSchema = external_exports.object({
|
|
|
15418
15427
|
|
|
15419
15428
|
// ../shared/src/api/workspace/projects.ts
|
|
15420
15429
|
var projectAbbrev2 = external_exports.string().min(1).max(5);
|
|
15421
|
-
var projectColourSchema = external_exports.
|
|
15430
|
+
var projectColourSchema = external_exports.union([
|
|
15431
|
+
external_exports.enum(PROFILE_ICON_COLOURS),
|
|
15432
|
+
external_exports.string().regex(/^#[0-9a-f]{6}$/i)
|
|
15433
|
+
]);
|
|
15422
15434
|
var projectSchema = external_exports.object({
|
|
15423
15435
|
id: projectId,
|
|
15424
15436
|
profile_id: profileId,
|
|
@@ -16025,6 +16037,10 @@ var gitRepositoryRequestSchema = external_exports.object({ repository: external_
|
|
|
16025
16037
|
var gitPathsRequestSchema = gitRepositoryRequestSchema.extend({
|
|
16026
16038
|
paths: external_exports.array(external_exports.string().min(1)).min(1)
|
|
16027
16039
|
});
|
|
16040
|
+
var gitRestoreRequestSchema = gitRepositoryRequestSchema.extend({
|
|
16041
|
+
path: external_exports.string().min(1),
|
|
16042
|
+
delete_untracked: external_exports.boolean().optional()
|
|
16043
|
+
});
|
|
16028
16044
|
var gitCommitRequestSchema = gitRepositoryRequestSchema.extend({
|
|
16029
16045
|
message: external_exports.string().trim().min(1),
|
|
16030
16046
|
/** Stage every change immediately before committing, under the same repo lock. */
|
|
@@ -16153,7 +16169,7 @@ var cockpitHostUpdateRequestSchema = external_exports.discriminatedUnion("action
|
|
|
16153
16169
|
...onlineHostUpdateRequestSchema.options,
|
|
16154
16170
|
external_exports.object({ action: external_exports.literal("continue-offline"), reference: hostUpdateReferenceSchema }).strict()
|
|
16155
16171
|
]);
|
|
16156
|
-
var cockpitHostUpdateQuerySchema = external_exports.object({ id: external_exports.uuid().optional() }).strict();
|
|
16172
|
+
var cockpitHostUpdateQuerySchema = external_exports.object({ id: external_exports.uuid().optional(), components: external_exports.literal("1").optional() }).strict();
|
|
16157
16173
|
var operation = hostUpdateOperationSchema.shape;
|
|
16158
16174
|
var cockpitHostUpdateOperationSchema = external_exports.object({
|
|
16159
16175
|
id: operation.id,
|
|
@@ -16199,7 +16215,11 @@ var cockpitHostUpdateStatusSchema = external_exports.object({
|
|
|
16199
16215
|
|
|
16200
16216
|
// ../shared/src/api/connection/host-maintenance.ts
|
|
16201
16217
|
var hostMaintenanceCommandSchema = external_exports.discriminatedUnion("action", [
|
|
16202
|
-
external_exports.object({
|
|
16218
|
+
external_exports.object({
|
|
16219
|
+
action: external_exports.literal("status"),
|
|
16220
|
+
id: external_exports.uuid().optional(),
|
|
16221
|
+
include_component_releases: external_exports.literal(true).optional()
|
|
16222
|
+
}).strict(),
|
|
16203
16223
|
...onlineHostUpdateRequestSchema.options
|
|
16204
16224
|
]);
|
|
16205
16225
|
var hostMaintenanceReplySchema = external_exports.discriminatedUnion("kind", [
|
|
@@ -16941,10 +16961,22 @@ var notebookExecutionSchema = external_exports.object({
|
|
|
16941
16961
|
input: notebookInputSchema.optional(),
|
|
16942
16962
|
error: external_exports.string().max(32768).optional()
|
|
16943
16963
|
});
|
|
16944
|
-
var
|
|
16964
|
+
var notebookRevisionSchema = external_exports.object({
|
|
16965
|
+
id: external_exports.string().uuid(),
|
|
16966
|
+
revision: external_exports.number().int().nonnegative()
|
|
16967
|
+
}).nullable();
|
|
16968
|
+
var notebookExecutionRequestSchema = external_exports.object({
|
|
16969
|
+
source: compilationFileTargetSchema,
|
|
16970
|
+
/** Opt in to an unchanged reply; omission always asks for a full snapshot. */
|
|
16971
|
+
known: notebookRevisionSchema.optional()
|
|
16972
|
+
});
|
|
16945
16973
|
var notebookExecutionResponseSchema = external_exports.object({
|
|
16946
16974
|
execution: notebookExecutionSchema.nullable()
|
|
16947
16975
|
});
|
|
16976
|
+
var notebookObservationResponseSchema = external_exports.union([
|
|
16977
|
+
notebookExecutionResponseSchema,
|
|
16978
|
+
external_exports.object({ unchanged: external_exports.literal(true) })
|
|
16979
|
+
]);
|
|
16948
16980
|
var notebookInputReplySchema = external_exports.object({
|
|
16949
16981
|
source: compilationFileTargetSchema,
|
|
16950
16982
|
run_id: external_exports.string().uuid(),
|
|
@@ -17040,7 +17072,7 @@ var storageStatusSchema = external_exports.object({
|
|
|
17040
17072
|
});
|
|
17041
17073
|
|
|
17042
17074
|
// ../shared/src/runtime/protocol.ts
|
|
17043
|
-
var RUNTIME_PROTOCOL_VERSION = { major: 1, minor:
|
|
17075
|
+
var RUNTIME_PROTOCOL_VERSION = { major: 1, minor: 1 };
|
|
17044
17076
|
var RUNTIME_LIMITS = {
|
|
17045
17077
|
frameBytes: 8 * 1024 * 1024,
|
|
17046
17078
|
inputBytes: 64 * 1024,
|
|
@@ -17849,6 +17881,39 @@ var hostReleaseCapabilitiesSchema = external_exports.object({
|
|
|
17849
17881
|
database_schema_version: external_exports.number().int().nonnegative().max(2 ** 31 - 1).optional()
|
|
17850
17882
|
}).strict();
|
|
17851
17883
|
|
|
17884
|
+
// ../shared/src/installation/release-manifest.ts
|
|
17885
|
+
var releaseVersionSchema = external_exports.string().max(64).regex(/^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$/);
|
|
17886
|
+
var releaseComponentSchema = external_exports.enum(["cockpit", "daemon", "runtime"]);
|
|
17887
|
+
var releaseManifestSchema = external_exports.object({
|
|
17888
|
+
format: external_exports.literal(1),
|
|
17889
|
+
version: releaseVersionSchema,
|
|
17890
|
+
components: external_exports.object({
|
|
17891
|
+
cockpit: releaseVersionSchema,
|
|
17892
|
+
daemon: releaseVersionSchema,
|
|
17893
|
+
runtime: releaseVersionSchema
|
|
17894
|
+
}).strict()
|
|
17895
|
+
}).strict().superRefine((manifest, context) => {
|
|
17896
|
+
if (![manifest.version, ...Object.values(manifest.components)].every(
|
|
17897
|
+
(version2) => releaseVersionSchema.safeParse(version2).success
|
|
17898
|
+
))
|
|
17899
|
+
return;
|
|
17900
|
+
for (const [component2, version2] of Object.entries(manifest.components)) {
|
|
17901
|
+
if (compareReleaseVersions(version2, manifest.version) > 0)
|
|
17902
|
+
context.addIssue({ code: "custom", message: `${component2} points beyond its release` });
|
|
17903
|
+
}
|
|
17904
|
+
if (manifest.components.cockpit !== manifest.version)
|
|
17905
|
+
context.addIssue({ code: "custom", message: "Every release publishes its cockpit" });
|
|
17906
|
+
});
|
|
17907
|
+
function compareReleaseVersions(a, b) {
|
|
17908
|
+
const left = a.split(".").map(BigInt);
|
|
17909
|
+
const right = b.split(".").map(BigInt);
|
|
17910
|
+
for (let i = 0; i < 3; i++) {
|
|
17911
|
+
if (left[i] < right[i]) return -1;
|
|
17912
|
+
if (left[i] > right[i]) return 1;
|
|
17913
|
+
}
|
|
17914
|
+
return 0;
|
|
17915
|
+
}
|
|
17916
|
+
|
|
17852
17917
|
// ../shared/src/installation/removal/services.ts
|
|
17853
17918
|
var service = hostServiceReplacementSchema.shape;
|
|
17854
17919
|
var target = external_exports.object({ kind: service.kind, name: service.name, domain: service.domain }).strict();
|
|
@@ -18301,6 +18366,18 @@ async function inspectHostLocally(home) {
|
|
|
18301
18366
|
}
|
|
18302
18367
|
}
|
|
18303
18368
|
|
|
18369
|
+
// ../shared/src/node/releases/github.ts
|
|
18370
|
+
var assetSchema = external_exports.object({
|
|
18371
|
+
name: external_exports.string().min(1).max(256),
|
|
18372
|
+
browser_download_url: external_exports.string().max(2048).url().refine((value) => value.startsWith("https://"))
|
|
18373
|
+
});
|
|
18374
|
+
var releaseSchema = external_exports.object({
|
|
18375
|
+
tag_name: external_exports.string().max(129).regex(/^v?[0-9]+\.[0-9]+\.[0-9]+$/),
|
|
18376
|
+
draft: external_exports.literal(false).optional(),
|
|
18377
|
+
prerelease: external_exports.literal(false).optional(),
|
|
18378
|
+
assets: external_exports.array(assetSchema).max(1024).default([])
|
|
18379
|
+
});
|
|
18380
|
+
|
|
18304
18381
|
// ../shared/src/node/installation/capabilities.ts
|
|
18305
18382
|
import { constants as constants2 } from "node:fs";
|
|
18306
18383
|
import { open, realpath } from "node:fs/promises";
|
|
@@ -18355,18 +18432,6 @@ import { execFile } from "node:child_process";
|
|
|
18355
18432
|
import { promisify } from "node:util";
|
|
18356
18433
|
var execute = promisify(execFile);
|
|
18357
18434
|
|
|
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
18435
|
// ../shared/src/node/installation/workers.ts
|
|
18371
18436
|
import { accessSync, constants as constants3, realpathSync as realpathSync2, statSync } from "node:fs";
|
|
18372
18437
|
import { dirname as dirname3, isAbsolute, join as join5 } from "node:path";
|