@puddle-code/cli 0.4.8 → 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.
- package/CHANGELOG.md +60 -8
- package/README.md +19 -4
- package/dist/host-control.mjs +75 -17
- package/dist/index.js +640 -143
- package/dist/install.sh +28 -0
- package/dist/public/assets/App-UQXXCAJF.js +65 -0
- package/dist/public/assets/{CompilationCommandForm-Csg3VkC6.js → CompilationCommandForm-CipGdjjH.js} +1 -1
- package/dist/public/assets/Dashboard-6pSi_1fH.js +1 -0
- package/dist/public/assets/EditorTabClose-TixDVxvl.js +1 -0
- package/dist/public/assets/LazyTerminal-B88WIvyh.js +2 -0
- package/dist/public/assets/{ModelRefcount-CHKuXiJY.js → ModelRefcount-BeuZdwWp.js} +1 -1
- package/dist/public/assets/NewProjectDialog-C1TVzOvJ.js +1 -0
- package/dist/public/assets/{NotebookWidget-CCRsiBIE.js → NotebookWidget-Bcavj7Lb.js} +2 -2
- package/dist/public/assets/PaneEditorBody-DRA4WG0A.js +284 -0
- package/dist/public/assets/{PdfViewer-BX025YLW.js → PdfViewer-Cr5306nr.js} +1 -1
- package/dist/public/assets/SettingsDialog-BvaE3Ue8.js +8 -0
- package/dist/public/assets/Terminal-Bo8hyZj7.js +67 -0
- package/dist/public/assets/Workspace-Bf2zQC6v.js +20 -0
- package/dist/public/assets/{api-BOuyloUi.js → api-B90WKMKj.js} +1 -1
- package/dist/public/assets/{auth-olLlgxc3.js → auth-CdosKReE.js} +1 -1
- package/dist/public/assets/{buffer-store-DIOiWz9q.js → buffer-store-Bh2IilxW.js} +3 -3
- package/dist/public/assets/{context-CSOKgBuW.js → context-CG70lLa4.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/{editor.api2-4X9Vh9Zw.js → editor.api2-DTL_SiN1.js} +2 -2
- package/dist/public/assets/errors-tuvbq1a_.js +1 -0
- package/dist/public/assets/forward-link-BspnTVuc.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-4XrK4Fes.css +2 -0
- package/dist/public/assets/index-Doe7MhnI.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-CiyvSvEu.js +1 -0
- package/dist/public/assets/{monaco.contribution-C0TYpF88.js → monaco.contribution-BXkMDWX9.js} +2 -2
- package/dist/public/assets/notification-delivery-BZzMYzIP.css +1 -0
- package/dist/public/assets/notification-delivery-CegOQxcZ.js +1 -0
- package/dist/public/assets/{protocol-support-BApsXw77.js → protocol-support-TSI4Ig6W.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-6GVbekSz.js} +1 -1
- package/dist/public/assets/{selection-actions-Cm0Oytya.js → selection-actions-CvYaucrm.js} +1 -1
- package/dist/public/assets/{session-order-2oedrwDu.js → session-order-CiDVvIU5.js} +1 -1
- package/dist/public/assets/{switch-OMx-_DY7.js → switch-oBD5uCTu.js} +1 -1
- 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-D4FsRK2R.js +1 -0
- package/dist/public/assets/{view-state-store-Cy9sQJoZ.js → view-state-store-DbQ7YOPe.js} +1 -1
- package/dist/public/assets/{workers-Ck67TJT4.js → workers-m2qsiPbB.js} +1 -1
- package/dist/public/assets/ws-Cp1eCJaM.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 +4 -3
- package/dist/pudl.js +118 -75
- 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/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/control-tray-CdoVaVhT.js +0 -1
- package/dist/public/assets/control-tray-DE2RhHP3.css +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/notification-delivery-BBt_CJ19.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/dist/index.js
CHANGED
|
@@ -40,11 +40,20 @@ var __toESM = (mod, isNodeMode, target2) => (target2 = mod != null ? __create(__
|
|
|
40
40
|
mod
|
|
41
41
|
));
|
|
42
42
|
|
|
43
|
+
// <define:__PUDDLE_COMPONENT_VERSIONS__>
|
|
44
|
+
var define_PUDDLE_COMPONENT_VERSIONS_default;
|
|
45
|
+
var init_define_PUDDLE_COMPONENT_VERSIONS = __esm({
|
|
46
|
+
"<define:__PUDDLE_COMPONENT_VERSIONS__>"() {
|
|
47
|
+
define_PUDDLE_COMPONENT_VERSIONS_default = { cockpit: "0.4.9", daemon: "0.4.9", runtime: "0.4.9" };
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
|
|
43
51
|
// src/lib/types.ts
|
|
44
52
|
var silentLogger, CliError;
|
|
45
53
|
var init_types = __esm({
|
|
46
54
|
"src/lib/types.ts"() {
|
|
47
55
|
"use strict";
|
|
56
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
48
57
|
silentLogger = { info() {
|
|
49
58
|
}, warn() {
|
|
50
59
|
} };
|
|
@@ -63,6 +72,7 @@ var init_types = __esm({
|
|
|
63
72
|
var require_constants = __commonJS({
|
|
64
73
|
"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/constants.js"(exports, module) {
|
|
65
74
|
"use strict";
|
|
75
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
66
76
|
var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
|
|
67
77
|
var hasBlob = typeof Blob !== "undefined";
|
|
68
78
|
if (hasBlob) BINARY_TYPES.push("blob");
|
|
@@ -86,6 +96,7 @@ var require_constants = __commonJS({
|
|
|
86
96
|
var require_buffer_util = __commonJS({
|
|
87
97
|
"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/buffer-util.js"(exports, module) {
|
|
88
98
|
"use strict";
|
|
99
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
89
100
|
var { EMPTY_BUFFER } = require_constants();
|
|
90
101
|
var FastBuffer = Buffer[Symbol.species];
|
|
91
102
|
function concat(list, totalLength) {
|
|
@@ -161,6 +172,7 @@ var require_buffer_util = __commonJS({
|
|
|
161
172
|
var require_limiter = __commonJS({
|
|
162
173
|
"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/limiter.js"(exports, module) {
|
|
163
174
|
"use strict";
|
|
175
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
164
176
|
var kDone = Symbol("kDone");
|
|
165
177
|
var kRun = Symbol("kRun");
|
|
166
178
|
var Limiter = class {
|
|
@@ -211,6 +223,7 @@ var require_limiter = __commonJS({
|
|
|
211
223
|
var require_permessage_deflate = __commonJS({
|
|
212
224
|
"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/permessage-deflate.js"(exports, module) {
|
|
213
225
|
"use strict";
|
|
226
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
214
227
|
var zlib = __require("zlib");
|
|
215
228
|
var bufferUtil = require_buffer_util();
|
|
216
229
|
var Limiter = require_limiter();
|
|
@@ -594,6 +607,7 @@ var require_permessage_deflate = __commonJS({
|
|
|
594
607
|
var require_validation = __commonJS({
|
|
595
608
|
"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/validation.js"(exports, module) {
|
|
596
609
|
"use strict";
|
|
610
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
597
611
|
var { isUtf8 } = __require("buffer");
|
|
598
612
|
var { hasBlob } = require_constants();
|
|
599
613
|
var tokenChars = [
|
|
@@ -795,6 +809,7 @@ var require_validation = __commonJS({
|
|
|
795
809
|
var require_receiver = __commonJS({
|
|
796
810
|
"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/receiver.js"(exports, module) {
|
|
797
811
|
"use strict";
|
|
812
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
798
813
|
var { Writable: Writable2 } = __require("stream");
|
|
799
814
|
var PerMessageDeflate2 = require_permessage_deflate();
|
|
800
815
|
var {
|
|
@@ -1427,6 +1442,7 @@ var require_receiver = __commonJS({
|
|
|
1427
1442
|
var require_sender = __commonJS({
|
|
1428
1443
|
"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/sender.js"(exports, module) {
|
|
1429
1444
|
"use strict";
|
|
1445
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
1430
1446
|
var { Duplex: Duplex2 } = __require("stream");
|
|
1431
1447
|
var { randomFillSync } = __require("crypto");
|
|
1432
1448
|
var {
|
|
@@ -1920,6 +1936,7 @@ var require_sender = __commonJS({
|
|
|
1920
1936
|
var require_event_target = __commonJS({
|
|
1921
1937
|
"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/event-target.js"(exports, module) {
|
|
1922
1938
|
"use strict";
|
|
1939
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
1923
1940
|
var { kForOnEventAttribute, kListener } = require_constants();
|
|
1924
1941
|
var kCode = Symbol("kCode");
|
|
1925
1942
|
var kData = Symbol("kData");
|
|
@@ -2149,6 +2166,7 @@ var require_event_target = __commonJS({
|
|
|
2149
2166
|
var require_extension = __commonJS({
|
|
2150
2167
|
"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/extension.js"(exports, module) {
|
|
2151
2168
|
"use strict";
|
|
2169
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
2152
2170
|
var { tokenChars } = require_validation();
|
|
2153
2171
|
function push(dest, name, elem) {
|
|
2154
2172
|
if (dest[name] === void 0) dest[name] = [elem];
|
|
@@ -2302,6 +2320,7 @@ var require_extension = __commonJS({
|
|
|
2302
2320
|
var require_websocket = __commonJS({
|
|
2303
2321
|
"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket.js"(exports, module) {
|
|
2304
2322
|
"use strict";
|
|
2323
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
2305
2324
|
var EventEmitter = __require("events");
|
|
2306
2325
|
var https = __require("https");
|
|
2307
2326
|
var http = __require("http");
|
|
@@ -3198,6 +3217,7 @@ var require_websocket = __commonJS({
|
|
|
3198
3217
|
var require_stream = __commonJS({
|
|
3199
3218
|
"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/stream.js"(exports, module) {
|
|
3200
3219
|
"use strict";
|
|
3220
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
3201
3221
|
var WebSocket2 = require_websocket();
|
|
3202
3222
|
var { Duplex: Duplex2 } = __require("stream");
|
|
3203
3223
|
function emitClose(stream) {
|
|
@@ -3296,6 +3316,7 @@ var require_stream = __commonJS({
|
|
|
3296
3316
|
var require_subprotocol = __commonJS({
|
|
3297
3317
|
"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/subprotocol.js"(exports, module) {
|
|
3298
3318
|
"use strict";
|
|
3319
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
3299
3320
|
var { tokenChars } = require_validation();
|
|
3300
3321
|
function parse3(header) {
|
|
3301
3322
|
const protocols = /* @__PURE__ */ new Set();
|
|
@@ -3341,6 +3362,7 @@ var require_subprotocol = __commonJS({
|
|
|
3341
3362
|
var require_websocket_server = __commonJS({
|
|
3342
3363
|
"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/lib/websocket-server.js"(exports, module) {
|
|
3343
3364
|
"use strict";
|
|
3365
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
3344
3366
|
var EventEmitter = __require("events");
|
|
3345
3367
|
var http = __require("http");
|
|
3346
3368
|
var { Duplex: Duplex2 } = __require("stream");
|
|
@@ -3742,6 +3764,7 @@ var require_websocket_server = __commonJS({
|
|
|
3742
3764
|
var import_stream, import_extension, import_permessage_deflate, import_receiver, import_sender, import_subprotocol, import_websocket, import_websocket_server, wrapper_default;
|
|
3743
3765
|
var init_wrapper = __esm({
|
|
3744
3766
|
"../../node_modules/.pnpm/ws@8.21.0/node_modules/ws/wrapper.mjs"() {
|
|
3767
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
3745
3768
|
import_stream = __toESM(require_stream(), 1);
|
|
3746
3769
|
import_extension = __toESM(require_extension(), 1);
|
|
3747
3770
|
import_permessage_deflate = __toESM(require_permessage_deflate(), 1);
|
|
@@ -3812,6 +3835,7 @@ function connectGateway(port, authority) {
|
|
|
3812
3835
|
var init_ws_client = __esm({
|
|
3813
3836
|
"src/lib/transport/ws-client.ts"() {
|
|
3814
3837
|
"use strict";
|
|
3838
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
3815
3839
|
init_wrapper();
|
|
3816
3840
|
init_types();
|
|
3817
3841
|
}
|
|
@@ -3911,21 +3935,36 @@ var DETACH;
|
|
|
3911
3935
|
var init_attach = __esm({
|
|
3912
3936
|
"src/lib/connection/attach.ts"() {
|
|
3913
3937
|
"use strict";
|
|
3938
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
3914
3939
|
init_ws_client();
|
|
3915
3940
|
init_types();
|
|
3916
3941
|
DETACH = 29;
|
|
3917
3942
|
}
|
|
3918
3943
|
});
|
|
3919
3944
|
|
|
3945
|
+
// src/index.ts
|
|
3946
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
3947
|
+
|
|
3920
3948
|
// src/cli/args.ts
|
|
3949
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
3921
3950
|
init_types();
|
|
3922
3951
|
|
|
3952
|
+
// ../shared/src/index.ts
|
|
3953
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
3954
|
+
|
|
3923
3955
|
// ../shared/src/protocol.ts
|
|
3924
|
-
|
|
3956
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
3957
|
+
var PROTOCOL_VERSION = { major: 26, minor: 3 };
|
|
3925
3958
|
function supportsApplicationFeature(peer, introduced, client = PROTOCOL_VERSION) {
|
|
3926
3959
|
return peer?.major === client.major && (peer.major > introduced.major || peer.major === introduced.major && peer.minor >= introduced.minor);
|
|
3927
3960
|
}
|
|
3928
3961
|
|
|
3962
|
+
// ../shared/src/notifications.ts
|
|
3963
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
3964
|
+
|
|
3965
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/index.js
|
|
3966
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
3967
|
+
|
|
3929
3968
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
3930
3969
|
var external_exports = {};
|
|
3931
3970
|
__export(external_exports, {
|
|
@@ -4168,6 +4207,7 @@ __export(external_exports, {
|
|
|
4168
4207
|
xid: () => xid2,
|
|
4169
4208
|
xor: () => xor
|
|
4170
4209
|
});
|
|
4210
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
4171
4211
|
|
|
4172
4212
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/index.js
|
|
4173
4213
|
var core_exports2 = {};
|
|
@@ -4447,8 +4487,10 @@ __export(core_exports2, {
|
|
|
4447
4487
|
util: () => util_exports,
|
|
4448
4488
|
version: () => version
|
|
4449
4489
|
});
|
|
4490
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
4450
4491
|
|
|
4451
4492
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
4493
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
4452
4494
|
var _a;
|
|
4453
4495
|
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
4454
4496
|
status: "aborted"
|
|
@@ -4525,6 +4567,12 @@ function config(newConfig) {
|
|
|
4525
4567
|
return globalConfig;
|
|
4526
4568
|
}
|
|
4527
4569
|
|
|
4570
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
4571
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
4572
|
+
|
|
4573
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
4574
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
4575
|
+
|
|
4528
4576
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
4529
4577
|
var util_exports = {};
|
|
4530
4578
|
__export(util_exports, {
|
|
@@ -4592,6 +4640,7 @@ __export(util_exports, {
|
|
|
4592
4640
|
uint8ArrayToHex: () => uint8ArrayToHex,
|
|
4593
4641
|
unwrapMessage: () => unwrapMessage
|
|
4594
4642
|
});
|
|
4643
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
4595
4644
|
function assertEqual(val) {
|
|
4596
4645
|
return val;
|
|
4597
4646
|
}
|
|
@@ -5448,6 +5497,12 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
5448
5497
|
};
|
|
5449
5498
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
5450
5499
|
|
|
5500
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
5501
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
5502
|
+
|
|
5503
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
5504
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
5505
|
+
|
|
5451
5506
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
5452
5507
|
var regexes_exports = {};
|
|
5453
5508
|
__export(regexes_exports, {
|
|
@@ -5511,6 +5566,7 @@ __export(regexes_exports, {
|
|
|
5511
5566
|
uuid7: () => uuid7,
|
|
5512
5567
|
xid: () => xid
|
|
5513
5568
|
});
|
|
5569
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
5514
5570
|
var cuid = /^[cC][0-9a-z]{6,}$/;
|
|
5515
5571
|
var cuid2 = /^[0-9a-z]+$/;
|
|
5516
5572
|
var ulid = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
@@ -6156,6 +6212,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
6156
6212
|
});
|
|
6157
6213
|
|
|
6158
6214
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.js
|
|
6215
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
6159
6216
|
var Doc = class {
|
|
6160
6217
|
constructor(args = []) {
|
|
6161
6218
|
this.content = [];
|
|
@@ -6192,6 +6249,7 @@ var Doc = class {
|
|
|
6192
6249
|
};
|
|
6193
6250
|
|
|
6194
6251
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
6252
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
6195
6253
|
var version = {
|
|
6196
6254
|
major: 4,
|
|
6197
6255
|
minor: 4,
|
|
@@ -8347,8 +8405,10 @@ __export(locales_exports, {
|
|
|
8347
8405
|
zhCN: () => zh_CN_default,
|
|
8348
8406
|
zhTW: () => zh_TW_default
|
|
8349
8407
|
});
|
|
8408
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
8350
8409
|
|
|
8351
8410
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ar.js
|
|
8411
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
8352
8412
|
var error = () => {
|
|
8353
8413
|
const Sizable = {
|
|
8354
8414
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -8456,6 +8516,7 @@ function ar_default() {
|
|
|
8456
8516
|
}
|
|
8457
8517
|
|
|
8458
8518
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/az.js
|
|
8519
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
8459
8520
|
var error2 = () => {
|
|
8460
8521
|
const Sizable = {
|
|
8461
8522
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -8562,6 +8623,7 @@ function az_default() {
|
|
|
8562
8623
|
}
|
|
8563
8624
|
|
|
8564
8625
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/be.js
|
|
8626
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
8565
8627
|
function getBelarusianPlural(count2, one, few, many) {
|
|
8566
8628
|
const absCount = Math.abs(count2);
|
|
8567
8629
|
const lastDigit = absCount % 10;
|
|
@@ -8719,6 +8781,7 @@ function be_default() {
|
|
|
8719
8781
|
}
|
|
8720
8782
|
|
|
8721
8783
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/bg.js
|
|
8784
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
8722
8785
|
var error4 = () => {
|
|
8723
8786
|
const Sizable = {
|
|
8724
8787
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
|
@@ -8840,6 +8903,7 @@ function bg_default() {
|
|
|
8840
8903
|
}
|
|
8841
8904
|
|
|
8842
8905
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ca.js
|
|
8906
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
8843
8907
|
var error5 = () => {
|
|
8844
8908
|
const Sizable = {
|
|
8845
8909
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -8949,6 +9013,7 @@ function ca_default() {
|
|
|
8949
9013
|
}
|
|
8950
9014
|
|
|
8951
9015
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/cs.js
|
|
9016
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
8952
9017
|
var error6 = () => {
|
|
8953
9018
|
const Sizable = {
|
|
8954
9019
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -9061,6 +9126,7 @@ function cs_default() {
|
|
|
9061
9126
|
}
|
|
9062
9127
|
|
|
9063
9128
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/da.js
|
|
9129
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
9064
9130
|
var error7 = () => {
|
|
9065
9131
|
const Sizable = {
|
|
9066
9132
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -9177,6 +9243,7 @@ function da_default() {
|
|
|
9177
9243
|
}
|
|
9178
9244
|
|
|
9179
9245
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/de.js
|
|
9246
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
9180
9247
|
var error8 = () => {
|
|
9181
9248
|
const Sizable = {
|
|
9182
9249
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -9286,6 +9353,7 @@ function de_default() {
|
|
|
9286
9353
|
}
|
|
9287
9354
|
|
|
9288
9355
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/el.js
|
|
9356
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
9289
9357
|
var error9 = () => {
|
|
9290
9358
|
const Sizable = {
|
|
9291
9359
|
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
@@ -9396,6 +9464,7 @@ function el_default() {
|
|
|
9396
9464
|
}
|
|
9397
9465
|
|
|
9398
9466
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/en.js
|
|
9467
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
9399
9468
|
var error10 = () => {
|
|
9400
9469
|
const Sizable = {
|
|
9401
9470
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -9509,6 +9578,7 @@ function en_default() {
|
|
|
9509
9578
|
}
|
|
9510
9579
|
|
|
9511
9580
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/eo.js
|
|
9581
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
9512
9582
|
var error11 = () => {
|
|
9513
9583
|
const Sizable = {
|
|
9514
9584
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
@@ -9619,6 +9689,7 @@ function eo_default() {
|
|
|
9619
9689
|
}
|
|
9620
9690
|
|
|
9621
9691
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/es.js
|
|
9692
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
9622
9693
|
var error12 = () => {
|
|
9623
9694
|
const Sizable = {
|
|
9624
9695
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -9752,6 +9823,7 @@ function es_default() {
|
|
|
9752
9823
|
}
|
|
9753
9824
|
|
|
9754
9825
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fa.js
|
|
9826
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
9755
9827
|
var error13 = () => {
|
|
9756
9828
|
const Sizable = {
|
|
9757
9829
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -9867,6 +9939,7 @@ function fa_default() {
|
|
|
9867
9939
|
}
|
|
9868
9940
|
|
|
9869
9941
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fi.js
|
|
9942
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
9870
9943
|
var error14 = () => {
|
|
9871
9944
|
const Sizable = {
|
|
9872
9945
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
@@ -9980,6 +10053,7 @@ function fi_default() {
|
|
|
9980
10053
|
}
|
|
9981
10054
|
|
|
9982
10055
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr.js
|
|
10056
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
9983
10057
|
var error15 = () => {
|
|
9984
10058
|
const Sizable = {
|
|
9985
10059
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -10106,6 +10180,7 @@ function fr_default() {
|
|
|
10106
10180
|
}
|
|
10107
10181
|
|
|
10108
10182
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js
|
|
10183
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
10109
10184
|
var error16 = () => {
|
|
10110
10185
|
const Sizable = {
|
|
10111
10186
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -10214,6 +10289,7 @@ function fr_CA_default() {
|
|
|
10214
10289
|
}
|
|
10215
10290
|
|
|
10216
10291
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/he.js
|
|
10292
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
10217
10293
|
var error17 = () => {
|
|
10218
10294
|
const TypeNames = {
|
|
10219
10295
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
@@ -10409,6 +10485,7 @@ function he_default() {
|
|
|
10409
10485
|
}
|
|
10410
10486
|
|
|
10411
10487
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hr.js
|
|
10488
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
10412
10489
|
var error18 = () => {
|
|
10413
10490
|
const Sizable = {
|
|
10414
10491
|
string: { unit: "znakova", verb: "imati" },
|
|
@@ -10532,6 +10609,7 @@ function hr_default() {
|
|
|
10532
10609
|
}
|
|
10533
10610
|
|
|
10534
10611
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hu.js
|
|
10612
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
10535
10613
|
var error19 = () => {
|
|
10536
10614
|
const Sizable = {
|
|
10537
10615
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -10641,6 +10719,7 @@ function hu_default() {
|
|
|
10641
10719
|
}
|
|
10642
10720
|
|
|
10643
10721
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/hy.js
|
|
10722
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
10644
10723
|
function getArmenianPlural(count2, one, many) {
|
|
10645
10724
|
return Math.abs(count2) === 1 ? one : many;
|
|
10646
10725
|
}
|
|
@@ -10789,6 +10868,7 @@ function hy_default() {
|
|
|
10789
10868
|
}
|
|
10790
10869
|
|
|
10791
10870
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/id.js
|
|
10871
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
10792
10872
|
var error21 = () => {
|
|
10793
10873
|
const Sizable = {
|
|
10794
10874
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -10896,6 +10976,7 @@ function id_default() {
|
|
|
10896
10976
|
}
|
|
10897
10977
|
|
|
10898
10978
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/is.js
|
|
10979
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
10899
10980
|
var error22 = () => {
|
|
10900
10981
|
const Sizable = {
|
|
10901
10982
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
@@ -11006,6 +11087,7 @@ function is_default() {
|
|
|
11006
11087
|
}
|
|
11007
11088
|
|
|
11008
11089
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/it.js
|
|
11090
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
11009
11091
|
var error23 = () => {
|
|
11010
11092
|
const Sizable = {
|
|
11011
11093
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -11115,6 +11197,7 @@ function it_default() {
|
|
|
11115
11197
|
}
|
|
11116
11198
|
|
|
11117
11199
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ja.js
|
|
11200
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
11118
11201
|
var error24 = () => {
|
|
11119
11202
|
const Sizable = {
|
|
11120
11203
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
@@ -11223,6 +11306,7 @@ function ja_default() {
|
|
|
11223
11306
|
}
|
|
11224
11307
|
|
|
11225
11308
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ka.js
|
|
11309
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
11226
11310
|
var error25 = () => {
|
|
11227
11311
|
const Sizable = {
|
|
11228
11312
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -11335,7 +11419,11 @@ function ka_default() {
|
|
|
11335
11419
|
};
|
|
11336
11420
|
}
|
|
11337
11421
|
|
|
11422
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/kh.js
|
|
11423
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
11424
|
+
|
|
11338
11425
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/km.js
|
|
11426
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
11339
11427
|
var error26 = () => {
|
|
11340
11428
|
const Sizable = {
|
|
11341
11429
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -11452,6 +11540,7 @@ function kh_default() {
|
|
|
11452
11540
|
}
|
|
11453
11541
|
|
|
11454
11542
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ko.js
|
|
11543
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
11455
11544
|
var error27 = () => {
|
|
11456
11545
|
const Sizable = {
|
|
11457
11546
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
@@ -11564,6 +11653,7 @@ function ko_default() {
|
|
|
11564
11653
|
}
|
|
11565
11654
|
|
|
11566
11655
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/lt.js
|
|
11656
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
11567
11657
|
var capitalizeFirstCharacter = (text2) => {
|
|
11568
11658
|
return text2.charAt(0).toUpperCase() + text2.slice(1);
|
|
11569
11659
|
};
|
|
@@ -11768,6 +11858,7 @@ function lt_default() {
|
|
|
11768
11858
|
}
|
|
11769
11859
|
|
|
11770
11860
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/mk.js
|
|
11861
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
11771
11862
|
var error29 = () => {
|
|
11772
11863
|
const Sizable = {
|
|
11773
11864
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -11878,6 +11969,7 @@ function mk_default() {
|
|
|
11878
11969
|
}
|
|
11879
11970
|
|
|
11880
11971
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ms.js
|
|
11972
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
11881
11973
|
var error30 = () => {
|
|
11882
11974
|
const Sizable = {
|
|
11883
11975
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -11986,6 +12078,7 @@ function ms_default() {
|
|
|
11986
12078
|
}
|
|
11987
12079
|
|
|
11988
12080
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/nl.js
|
|
12081
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
11989
12082
|
var error31 = () => {
|
|
11990
12083
|
const Sizable = {
|
|
11991
12084
|
string: { unit: "tekens", verb: "heeft" },
|
|
@@ -12097,6 +12190,7 @@ function nl_default() {
|
|
|
12097
12190
|
}
|
|
12098
12191
|
|
|
12099
12192
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/no.js
|
|
12193
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
12100
12194
|
var error32 = () => {
|
|
12101
12195
|
const Sizable = {
|
|
12102
12196
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
@@ -12206,6 +12300,7 @@ function no_default() {
|
|
|
12206
12300
|
}
|
|
12207
12301
|
|
|
12208
12302
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ota.js
|
|
12303
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
12209
12304
|
var error33 = () => {
|
|
12210
12305
|
const Sizable = {
|
|
12211
12306
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
@@ -12316,6 +12411,7 @@ function ota_default() {
|
|
|
12316
12411
|
}
|
|
12317
12412
|
|
|
12318
12413
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ps.js
|
|
12414
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
12319
12415
|
var error34 = () => {
|
|
12320
12416
|
const Sizable = {
|
|
12321
12417
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -12431,6 +12527,7 @@ function ps_default() {
|
|
|
12431
12527
|
}
|
|
12432
12528
|
|
|
12433
12529
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pl.js
|
|
12530
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
12434
12531
|
var error35 = () => {
|
|
12435
12532
|
const Sizable = {
|
|
12436
12533
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
@@ -12541,6 +12638,7 @@ function pl_default() {
|
|
|
12541
12638
|
}
|
|
12542
12639
|
|
|
12543
12640
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/pt.js
|
|
12641
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
12544
12642
|
var error36 = () => {
|
|
12545
12643
|
const Sizable = {
|
|
12546
12644
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -12650,6 +12748,7 @@ function pt_default() {
|
|
|
12650
12748
|
}
|
|
12651
12749
|
|
|
12652
12750
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ro.js
|
|
12751
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
12653
12752
|
var error37 = () => {
|
|
12654
12753
|
const Sizable = {
|
|
12655
12754
|
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
@@ -12770,6 +12869,7 @@ function ro_default() {
|
|
|
12770
12869
|
}
|
|
12771
12870
|
|
|
12772
12871
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ru.js
|
|
12872
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
12773
12873
|
function getRussianPlural(count2, one, few, many) {
|
|
12774
12874
|
const absCount = Math.abs(count2);
|
|
12775
12875
|
const lastDigit = absCount % 10;
|
|
@@ -12927,6 +13027,7 @@ function ru_default() {
|
|
|
12927
13027
|
}
|
|
12928
13028
|
|
|
12929
13029
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sl.js
|
|
13030
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
12930
13031
|
var error39 = () => {
|
|
12931
13032
|
const Sizable = {
|
|
12932
13033
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -13037,6 +13138,7 @@ function sl_default() {
|
|
|
13037
13138
|
}
|
|
13038
13139
|
|
|
13039
13140
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/sv.js
|
|
13141
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
13040
13142
|
var error40 = () => {
|
|
13041
13143
|
const Sizable = {
|
|
13042
13144
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -13148,6 +13250,7 @@ function sv_default() {
|
|
|
13148
13250
|
}
|
|
13149
13251
|
|
|
13150
13252
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ta.js
|
|
13253
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
13151
13254
|
var error41 = () => {
|
|
13152
13255
|
const Sizable = {
|
|
13153
13256
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
@@ -13259,6 +13362,7 @@ function ta_default() {
|
|
|
13259
13362
|
}
|
|
13260
13363
|
|
|
13261
13364
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/th.js
|
|
13365
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
13262
13366
|
var error42 = () => {
|
|
13263
13367
|
const Sizable = {
|
|
13264
13368
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -13370,6 +13474,7 @@ function th_default() {
|
|
|
13370
13474
|
}
|
|
13371
13475
|
|
|
13372
13476
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/tr.js
|
|
13477
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
13373
13478
|
var error43 = () => {
|
|
13374
13479
|
const Sizable = {
|
|
13375
13480
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
@@ -13475,7 +13580,11 @@ function tr_default() {
|
|
|
13475
13580
|
};
|
|
13476
13581
|
}
|
|
13477
13582
|
|
|
13583
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ua.js
|
|
13584
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
13585
|
+
|
|
13478
13586
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uk.js
|
|
13587
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
13479
13588
|
var error44 = () => {
|
|
13480
13589
|
const Sizable = {
|
|
13481
13590
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -13590,6 +13699,7 @@ function ua_default() {
|
|
|
13590
13699
|
}
|
|
13591
13700
|
|
|
13592
13701
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/ur.js
|
|
13702
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
13593
13703
|
var error45 = () => {
|
|
13594
13704
|
const Sizable = {
|
|
13595
13705
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -13701,6 +13811,7 @@ function ur_default() {
|
|
|
13701
13811
|
}
|
|
13702
13812
|
|
|
13703
13813
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/uz.js
|
|
13814
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
13704
13815
|
var error46 = () => {
|
|
13705
13816
|
const Sizable = {
|
|
13706
13817
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
@@ -13812,6 +13923,7 @@ function uz_default() {
|
|
|
13812
13923
|
}
|
|
13813
13924
|
|
|
13814
13925
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/vi.js
|
|
13926
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
13815
13927
|
var error47 = () => {
|
|
13816
13928
|
const Sizable = {
|
|
13817
13929
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
@@ -13921,6 +14033,7 @@ function vi_default() {
|
|
|
13921
14033
|
}
|
|
13922
14034
|
|
|
13923
14035
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js
|
|
14036
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
13924
14037
|
var error48 = () => {
|
|
13925
14038
|
const Sizable = {
|
|
13926
14039
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
@@ -14031,6 +14144,7 @@ function zh_CN_default() {
|
|
|
14031
14144
|
}
|
|
14032
14145
|
|
|
14033
14146
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js
|
|
14147
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
14034
14148
|
var error49 = () => {
|
|
14035
14149
|
const Sizable = {
|
|
14036
14150
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
@@ -14139,6 +14253,7 @@ function zh_TW_default() {
|
|
|
14139
14253
|
}
|
|
14140
14254
|
|
|
14141
14255
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/locales/yo.js
|
|
14256
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
14142
14257
|
var error50 = () => {
|
|
14143
14258
|
const Sizable = {
|
|
14144
14259
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
@@ -14247,6 +14362,7 @@ function yo_default() {
|
|
|
14247
14362
|
}
|
|
14248
14363
|
|
|
14249
14364
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
14365
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
14250
14366
|
var _a2;
|
|
14251
14367
|
var $output = Symbol("ZodOutput");
|
|
14252
14368
|
var $input = Symbol("ZodInput");
|
|
@@ -14297,6 +14413,7 @@ function registry() {
|
|
|
14297
14413
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
14298
14414
|
|
|
14299
14415
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
14416
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
14300
14417
|
// @__NO_SIDE_EFFECTS__
|
|
14301
14418
|
function _string(Class2, params) {
|
|
14302
14419
|
return new Class2({
|
|
@@ -15336,6 +15453,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
15336
15453
|
}
|
|
15337
15454
|
|
|
15338
15455
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
15456
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
15339
15457
|
function initializeContext(params) {
|
|
15340
15458
|
let target2 = params?.target ?? "draft-2020-12";
|
|
15341
15459
|
if (target2 === "draft-4")
|
|
@@ -15695,6 +15813,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
15695
15813
|
};
|
|
15696
15814
|
|
|
15697
15815
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
15816
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
15698
15817
|
var formatMap = {
|
|
15699
15818
|
guid: "uuid",
|
|
15700
15819
|
url: "uri",
|
|
@@ -16239,6 +16358,7 @@ function toJSONSchema(input, params) {
|
|
|
16239
16358
|
}
|
|
16240
16359
|
|
|
16241
16360
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js
|
|
16361
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
16242
16362
|
var JSONSchemaGenerator = class {
|
|
16243
16363
|
/** @deprecated Access via ctx instead */
|
|
16244
16364
|
get metadataRegistry() {
|
|
@@ -16315,6 +16435,7 @@ var JSONSchemaGenerator = class {
|
|
|
16315
16435
|
|
|
16316
16436
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
|
|
16317
16437
|
var json_schema_exports = {};
|
|
16438
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
16318
16439
|
|
|
16319
16440
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
16320
16441
|
var schemas_exports2 = {};
|
|
@@ -16486,6 +16607,7 @@ __export(schemas_exports2, {
|
|
|
16486
16607
|
xid: () => xid2,
|
|
16487
16608
|
xor: () => xor
|
|
16488
16609
|
});
|
|
16610
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
16489
16611
|
|
|
16490
16612
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/checks.js
|
|
16491
16613
|
var checks_exports2 = {};
|
|
@@ -16520,6 +16642,7 @@ __export(checks_exports2, {
|
|
|
16520
16642
|
trim: () => _trim,
|
|
16521
16643
|
uppercase: () => _uppercase
|
|
16522
16644
|
});
|
|
16645
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
16523
16646
|
|
|
16524
16647
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
16525
16648
|
var iso_exports = {};
|
|
@@ -16533,6 +16656,7 @@ __export(iso_exports, {
|
|
|
16533
16656
|
duration: () => duration2,
|
|
16534
16657
|
time: () => time2
|
|
16535
16658
|
});
|
|
16659
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
16536
16660
|
var ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
|
|
16537
16661
|
$ZodISODateTime.init(inst, def);
|
|
16538
16662
|
ZodStringFormat.init(inst, def);
|
|
@@ -16562,7 +16686,11 @@ function duration2(params) {
|
|
|
16562
16686
|
return _isoDuration(ZodISODuration, params);
|
|
16563
16687
|
}
|
|
16564
16688
|
|
|
16689
|
+
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
16690
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
16691
|
+
|
|
16565
16692
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
16693
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
16566
16694
|
var initializer2 = (inst, issues) => {
|
|
16567
16695
|
$ZodError.init(inst, issues);
|
|
16568
16696
|
inst.name = "ZodError";
|
|
@@ -17907,6 +18035,7 @@ function preprocess(fn, schema) {
|
|
|
17907
18035
|
}
|
|
17908
18036
|
|
|
17909
18037
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/compat.js
|
|
18038
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
17910
18039
|
var ZodIssueCode = {
|
|
17911
18040
|
invalid_type: "invalid_type",
|
|
17912
18041
|
too_big: "too_big",
|
|
@@ -17933,6 +18062,7 @@ var ZodFirstPartyTypeKind;
|
|
|
17933
18062
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
17934
18063
|
|
|
17935
18064
|
// ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/from-json-schema.js
|
|
18065
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
17936
18066
|
var z = {
|
|
17937
18067
|
...schemas_exports2,
|
|
17938
18068
|
...checks_exports2,
|
|
@@ -18421,6 +18551,7 @@ __export(coerce_exports, {
|
|
|
18421
18551
|
number: () => number3,
|
|
18422
18552
|
string: () => string3
|
|
18423
18553
|
});
|
|
18554
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
18424
18555
|
function string3(params) {
|
|
18425
18556
|
return _coercedString(ZodString, params);
|
|
18426
18557
|
}
|
|
@@ -18441,6 +18572,7 @@ function date4(params) {
|
|
|
18441
18572
|
config(en_default());
|
|
18442
18573
|
|
|
18443
18574
|
// ../shared/src/api/common.ts
|
|
18575
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
18444
18576
|
var errorResponseSchema = external_exports.object({
|
|
18445
18577
|
error: external_exports.object({
|
|
18446
18578
|
code: external_exports.string(),
|
|
@@ -18492,7 +18624,14 @@ var agentNotificationSchema = external_exports.object({
|
|
|
18492
18624
|
content: notificationContentSchema.optional()
|
|
18493
18625
|
});
|
|
18494
18626
|
|
|
18627
|
+
// ../shared/src/notification-title.ts
|
|
18628
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
18629
|
+
|
|
18630
|
+
// ../shared/src/project-abbrev.ts
|
|
18631
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
18632
|
+
|
|
18495
18633
|
// ../shared/src/api/connection/version.ts
|
|
18634
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
18496
18635
|
var versionResponseSchema = external_exports.object({
|
|
18497
18636
|
version: external_exports.string(),
|
|
18498
18637
|
/** Added by the host connector; absent on direct daemon responses and older connectors. */
|
|
@@ -18508,6 +18647,7 @@ var versionResponseSchema = external_exports.object({
|
|
|
18508
18647
|
});
|
|
18509
18648
|
|
|
18510
18649
|
// ../shared/src/api/connection/release-notes.ts
|
|
18650
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
18511
18651
|
var RELEASE_NOTES_MAX_BYTES = 256 * 1024;
|
|
18512
18652
|
var releaseNotesSchema = external_exports.object({
|
|
18513
18653
|
releases: external_exports.array(
|
|
@@ -18519,7 +18659,17 @@ var releaseNotesSchema = external_exports.object({
|
|
|
18519
18659
|
).max(2).refine((entries) => new Set(entries.map((entry) => entry.component)).size === entries.length)
|
|
18520
18660
|
});
|
|
18521
18661
|
|
|
18662
|
+
// ../shared/src/api/connection/host-updates.ts
|
|
18663
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
18664
|
+
|
|
18665
|
+
// ../shared/src/installation/update.ts
|
|
18666
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
18667
|
+
|
|
18668
|
+
// ../shared/src/installation/stage.ts
|
|
18669
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
18670
|
+
|
|
18522
18671
|
// ../shared/src/installation/version.ts
|
|
18672
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
18523
18673
|
function isNewerVersion(candidate, current) {
|
|
18524
18674
|
const parse3 = (value) => {
|
|
18525
18675
|
if (value.length > 129) return null;
|
|
@@ -18689,11 +18839,17 @@ function hostUpdateTerminal(phase) {
|
|
|
18689
18839
|
}
|
|
18690
18840
|
|
|
18691
18841
|
// ../shared/src/installation/catalogue.ts
|
|
18842
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
18692
18843
|
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]));
|
|
18844
|
+
var availableRelease = external_exports.object({
|
|
18845
|
+
version: external_exports.string().max(64).regex(/^[0-9]+\.[0-9]+\.[0-9]+$/),
|
|
18846
|
+
host_asset: external_exports.boolean()
|
|
18847
|
+
}).strict();
|
|
18693
18848
|
var timestamp2 = external_exports.number().int().nonnegative().safe();
|
|
18694
18849
|
var hostReleaseCheckSchema = external_exports.object({
|
|
18695
18850
|
repository: releaseRepositorySchema.nullable(),
|
|
18696
18851
|
state: external_exports.enum(["unconfigured", "checking", "ready", "failed"]),
|
|
18852
|
+
components: external_exports.object({ daemon: availableRelease, runtime: availableRelease }).strict().optional(),
|
|
18697
18853
|
checked_at: timestamp2.nullable(),
|
|
18698
18854
|
succeeded_at: timestamp2.nullable(),
|
|
18699
18855
|
latest: external_exports.object({
|
|
@@ -18734,7 +18890,8 @@ var hostUpdateCommandSchema = external_exports.discriminatedUnion("action", [
|
|
|
18734
18890
|
/** Recorded continuation metadata, capability-detected from application 25.12. */
|
|
18735
18891
|
include_recovery: external_exports.literal(true).optional(),
|
|
18736
18892
|
/** Host-wide versions and coalesced release discovery (25.14), never admission evidence. */
|
|
18737
|
-
include_catalogue: external_exports.literal(true).optional()
|
|
18893
|
+
include_catalogue: external_exports.literal(true).optional(),
|
|
18894
|
+
include_component_releases: external_exports.literal(true).optional()
|
|
18738
18895
|
}).strict().refine(
|
|
18739
18896
|
(command) => !command.adoption_nonce || command.id !== void 0,
|
|
18740
18897
|
"Adoption inspection requires an exact operation"
|
|
@@ -18809,6 +18966,7 @@ var hostUpdateControlResponseSchema = external_exports.object({
|
|
|
18809
18966
|
}).strict();
|
|
18810
18967
|
|
|
18811
18968
|
// ../shared/src/api/connection/connector-inspection.ts
|
|
18969
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
18812
18970
|
var connectorInspectionRequestSchema = external_exports.object({ t: external_exports.literal("inspect"), nonce: external_exports.uuid() }).strict();
|
|
18813
18971
|
var connectorInspectionResponseSchema = external_exports.object({
|
|
18814
18972
|
t: external_exports.literal("inspection"),
|
|
@@ -18825,6 +18983,7 @@ var connectorInspectionResponseSchema = external_exports.object({
|
|
|
18825
18983
|
}).strip();
|
|
18826
18984
|
|
|
18827
18985
|
// ../shared/src/api/agents/agent-signal.ts
|
|
18986
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
18828
18987
|
var statusSignalSchema = external_exports.object({
|
|
18829
18988
|
nonce: external_exports.string().min(16),
|
|
18830
18989
|
state: external_exports.enum(["working", "waiting_input"])
|
|
@@ -18857,6 +19016,7 @@ var agentSignalRequestSchema = external_exports.union([
|
|
|
18857
19016
|
]);
|
|
18858
19017
|
|
|
18859
19018
|
// ../shared/src/api/config.ts
|
|
19019
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
18860
19020
|
var fields = {
|
|
18861
19021
|
port: external_exports.number().int().min(1).max(65535),
|
|
18862
19022
|
autoResume: external_exports.boolean(),
|
|
@@ -18895,6 +19055,7 @@ var daemonConfigSchema = external_exports.object({
|
|
|
18895
19055
|
var daemonConfigPatchSchema = external_exports.object(fields).partial();
|
|
18896
19056
|
|
|
18897
19057
|
// ../shared/src/api/fs.ts
|
|
19058
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
18898
19059
|
var fsDirEntrySchema = external_exports.object({
|
|
18899
19060
|
path: external_exports.string(),
|
|
18900
19061
|
name: external_exports.string(),
|
|
@@ -18905,6 +19066,7 @@ var fsDirsResponseSchema = external_exports.object({
|
|
|
18905
19066
|
});
|
|
18906
19067
|
|
|
18907
19068
|
// ../shared/src/api/connection/host.ts
|
|
19069
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
18908
19070
|
var hostInfoSchema = external_exports.object({
|
|
18909
19071
|
username: external_exports.string(),
|
|
18910
19072
|
hostname: external_exports.string(),
|
|
@@ -18919,6 +19081,7 @@ var hostInfoSchema = external_exports.object({
|
|
|
18919
19081
|
});
|
|
18920
19082
|
|
|
18921
19083
|
// ../shared/src/api/profiles.ts
|
|
19084
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
18922
19085
|
var fsSafeName = external_exports.string().min(1).max(64).regex(/^[A-Za-z0-9][A-Za-z0-9._-]*$/, "letters, digits, dot, underscore and hyphen only");
|
|
18923
19086
|
var RULES_TOKEN = "{{rules}}";
|
|
18924
19087
|
var DEFAULT_ONBOARDING_TEMPLATE = `This is a freshly created git worktree for this task. Before starting, set up the environment as appropriate by reading any setup rules (see below) and inspecting the codebase. If the user states a rule for all future worktrees, write the complete updated rules to \`.puddle/onboarding-notes.md\` in this worktree. Setup rules:${RULES_TOKEN}`;
|
|
@@ -18963,6 +19126,9 @@ var sessionDefaultsSchema = external_exports.looseObject({
|
|
|
18963
19126
|
terminal: sessionSeedSchema.optional()
|
|
18964
19127
|
});
|
|
18965
19128
|
var profileSettingsSchema = external_exports.looseObject({
|
|
19129
|
+
/** Host identity for this profile on this daemon; deliberately excluded from sync. */
|
|
19130
|
+
hostIcon: external_exports.string().max(64).nullable().optional(),
|
|
19131
|
+
hostColour: external_exports.enum(PROFILE_ICON_COLOURS).nullable().optional(),
|
|
18966
19132
|
allowSkipPermissions: external_exports.boolean().default(false),
|
|
18967
19133
|
/**
|
|
18968
19134
|
* Captured session environment (SPEC §4): whether this profile's session
|
|
@@ -19030,6 +19196,7 @@ var putUntitledRequestSchema = external_exports.object({ content: external_expor
|
|
|
19030
19196
|
var putUntitledResponseSchema = external_exports.object({ mtime_ms: external_exports.number() });
|
|
19031
19197
|
|
|
19032
19198
|
// ../shared/src/api/agents/accounts.ts
|
|
19199
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
19033
19200
|
var accountSchema = external_exports.object({
|
|
19034
19201
|
id: rowId,
|
|
19035
19202
|
profile_id: profileId,
|
|
@@ -19101,6 +19268,7 @@ var accountUsageSchema = external_exports.looseObject({
|
|
|
19101
19268
|
});
|
|
19102
19269
|
|
|
19103
19270
|
// ../shared/src/api/agents/agents.ts
|
|
19271
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
19104
19272
|
var agentTypeSchema = external_exports.object({
|
|
19105
19273
|
id: external_exports.string(),
|
|
19106
19274
|
display_name: external_exports.string(),
|
|
@@ -19124,6 +19292,7 @@ var agentTypeSchema = external_exports.object({
|
|
|
19124
19292
|
});
|
|
19125
19293
|
|
|
19126
19294
|
// ../shared/src/api/workspace/repos.ts
|
|
19295
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
19127
19296
|
var repoSchema = external_exports.object({
|
|
19128
19297
|
id: rowId,
|
|
19129
19298
|
path: external_exports.string(),
|
|
@@ -19187,6 +19356,7 @@ var patchRepoRequestSchema = external_exports.object({
|
|
|
19187
19356
|
});
|
|
19188
19357
|
|
|
19189
19358
|
// ../shared/src/api/agents/sessions.ts
|
|
19359
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
19190
19360
|
var sessionStatusSchema = external_exports.enum([
|
|
19191
19361
|
"starting",
|
|
19192
19362
|
"running",
|
|
@@ -19354,6 +19524,7 @@ var archiveRequestSchema = external_exports.object({
|
|
|
19354
19524
|
});
|
|
19355
19525
|
|
|
19356
19526
|
// ../shared/src/api/workspace/projects.ts
|
|
19527
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
19357
19528
|
var projectAbbrev2 = external_exports.string().min(1).max(5);
|
|
19358
19529
|
var projectColourSchema = external_exports.enum(PROFILE_ICON_COLOURS);
|
|
19359
19530
|
var projectSchema = external_exports.object({
|
|
@@ -19391,6 +19562,7 @@ var projectDetailSchema = external_exports.object({
|
|
|
19391
19562
|
});
|
|
19392
19563
|
|
|
19393
19564
|
// ../shared/src/api/workspace/scratchpad.ts
|
|
19565
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
19394
19566
|
var scratchpadScopeSchema = external_exports.enum(["project", "profile"]);
|
|
19395
19567
|
var scratchpadEntrySchema = external_exports.object({
|
|
19396
19568
|
id: rowId,
|
|
@@ -19425,7 +19597,14 @@ var patchScratchpadRequestSchema = external_exports.object({
|
|
|
19425
19597
|
position: external_exports.number().optional()
|
|
19426
19598
|
});
|
|
19427
19599
|
|
|
19600
|
+
// ../shared/src/api/workspace/layouts.ts
|
|
19601
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
19602
|
+
|
|
19603
|
+
// ../shared/src/api/workspace/ui-state.ts
|
|
19604
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
19605
|
+
|
|
19428
19606
|
// ../shared/src/api/compilation.ts
|
|
19607
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
19429
19608
|
var compilationModeSchema = external_exports.enum(["on_demand", "eager"]);
|
|
19430
19609
|
var compilationFileTargetSchema = external_exports.object({
|
|
19431
19610
|
session: sessionId,
|
|
@@ -19719,6 +19898,7 @@ var patchLayoutRequestSchema = external_exports.object({
|
|
|
19719
19898
|
});
|
|
19720
19899
|
|
|
19721
19900
|
// ../shared/src/api/notebooks/notebooks.ts
|
|
19901
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
19722
19902
|
var notebookKernelSpecSchema = external_exports.object({
|
|
19723
19903
|
name: external_exports.string().min(1),
|
|
19724
19904
|
display_name: external_exports.string().min(1),
|
|
@@ -19764,6 +19944,7 @@ var notebookKernelActionSchema = external_exports.discriminatedUnion("action", [
|
|
|
19764
19944
|
]);
|
|
19765
19945
|
|
|
19766
19946
|
// ../shared/src/api/latex.ts
|
|
19947
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
19767
19948
|
var latexSynctexRequestSchema = compilationFileTargetSchema.extend({
|
|
19768
19949
|
root: external_exports.string().min(1),
|
|
19769
19950
|
page: external_exports.number().int().positive(),
|
|
@@ -19778,6 +19959,7 @@ var latexSynctexResponseSchema = compilationFileTargetSchema.extend({
|
|
|
19778
19959
|
});
|
|
19779
19960
|
|
|
19780
19961
|
// ../shared/src/api/worktrees/worktrees.ts
|
|
19962
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
19781
19963
|
var pasteImageMimeSchema = external_exports.enum(["image/png", "image/jpeg", "image/gif", "image/webp"]);
|
|
19782
19964
|
var pasteImageRequestSchema = external_exports.object({
|
|
19783
19965
|
mime: pasteImageMimeSchema,
|
|
@@ -19813,6 +19995,7 @@ var resolvePathResponseSchema = external_exports.object({
|
|
|
19813
19995
|
});
|
|
19814
19996
|
|
|
19815
19997
|
// ../shared/src/api/worktrees/worktree-files.ts
|
|
19998
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
19816
19999
|
var treeEntrySchema = external_exports.object({
|
|
19817
20000
|
name: external_exports.string(),
|
|
19818
20001
|
/**
|
|
@@ -19865,6 +20048,7 @@ var uploadResponseSchema = external_exports.object({
|
|
|
19865
20048
|
});
|
|
19866
20049
|
|
|
19867
20050
|
// ../shared/src/api/worktrees/worktree-fs.ts
|
|
20051
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
19868
20052
|
var createEntryRequestSchema = external_exports.object({
|
|
19869
20053
|
path: external_exports.string().min(1),
|
|
19870
20054
|
kind: external_exports.enum(["file", "dir"])
|
|
@@ -19895,6 +20079,7 @@ var fsOpResponseSchema = external_exports.object({
|
|
|
19895
20079
|
});
|
|
19896
20080
|
|
|
19897
20081
|
// ../shared/src/api/worktrees/worktree-git.ts
|
|
20082
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
19898
20083
|
var diffStatusSchema = external_exports.enum(["added", "modified", "deleted", "renamed"]);
|
|
19899
20084
|
var gitAreaSchema = external_exports.enum(["staged", "unstaged"]);
|
|
19900
20085
|
var diffEntrySchema = external_exports.object({
|
|
@@ -20023,6 +20208,7 @@ var showCommitResponseSchema = external_exports.object({
|
|
|
20023
20208
|
});
|
|
20024
20209
|
|
|
20025
20210
|
// ../shared/src/api/worktrees/worktree-search.ts
|
|
20211
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20026
20212
|
var searchMatchSchema = external_exports.object({
|
|
20027
20213
|
line: external_exports.number().int().positive(),
|
|
20028
20214
|
text: external_exports.string()
|
|
@@ -20042,6 +20228,7 @@ var searchResponseSchema = external_exports.object({
|
|
|
20042
20228
|
});
|
|
20043
20229
|
|
|
20044
20230
|
// ../shared/src/api/ports.ts
|
|
20231
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20045
20232
|
var sessionPortSchema = external_exports.object({
|
|
20046
20233
|
port: external_exports.number().int().min(1).max(65535),
|
|
20047
20234
|
pid: external_exports.number().int(),
|
|
@@ -20056,6 +20243,7 @@ var sessionPortsResponseSchema = external_exports.object({
|
|
|
20056
20243
|
});
|
|
20057
20244
|
|
|
20058
20245
|
// ../shared/src/api/connection/cockpit.ts
|
|
20246
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20059
20247
|
var cockpitRefreshRequestSchema = external_exports.object({ refreshId: external_exports.string().uuid() }).strict();
|
|
20060
20248
|
var cockpitRefreshResponseSchema = external_exports.object({
|
|
20061
20249
|
status: external_exports.literal("refreshing"),
|
|
@@ -20070,6 +20258,7 @@ var cockpitRevealRequestSchema = external_exports.object({
|
|
|
20070
20258
|
}).strict();
|
|
20071
20259
|
|
|
20072
20260
|
// ../shared/src/api/connection/cockpit-updates.ts
|
|
20261
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20073
20262
|
var onlineHostUpdateRequestSchema = external_exports.discriminatedUnion("action", [
|
|
20074
20263
|
external_exports.object({ action: external_exports.literal("prepare"), targets: hostUpdateTargetsSchema }).strict(),
|
|
20075
20264
|
external_exports.object({ action: external_exports.literal("inspect"), reference: hostUpdateReferenceSchema }).strict(),
|
|
@@ -20090,7 +20279,7 @@ var cockpitHostUpdateRequestSchema = external_exports.discriminatedUnion("action
|
|
|
20090
20279
|
...onlineHostUpdateRequestSchema.options,
|
|
20091
20280
|
external_exports.object({ action: external_exports.literal("continue-offline"), reference: hostUpdateReferenceSchema }).strict()
|
|
20092
20281
|
]);
|
|
20093
|
-
var cockpitHostUpdateQuerySchema = external_exports.object({ id: external_exports.uuid().optional() }).strict();
|
|
20282
|
+
var cockpitHostUpdateQuerySchema = external_exports.object({ id: external_exports.uuid().optional(), components: external_exports.literal("1").optional() }).strict();
|
|
20094
20283
|
var operation = hostUpdateOperationSchema.shape;
|
|
20095
20284
|
var cockpitHostUpdateOperationSchema = external_exports.object({
|
|
20096
20285
|
id: operation.id,
|
|
@@ -20135,8 +20324,13 @@ var cockpitHostUpdateStatusSchema = external_exports.object({
|
|
|
20135
20324
|
}).strict();
|
|
20136
20325
|
|
|
20137
20326
|
// ../shared/src/api/connection/host-maintenance.ts
|
|
20327
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20138
20328
|
var hostMaintenanceCommandSchema = external_exports.discriminatedUnion("action", [
|
|
20139
|
-
external_exports.object({
|
|
20329
|
+
external_exports.object({
|
|
20330
|
+
action: external_exports.literal("status"),
|
|
20331
|
+
id: external_exports.uuid().optional(),
|
|
20332
|
+
include_component_releases: external_exports.literal(true).optional()
|
|
20333
|
+
}).strict(),
|
|
20140
20334
|
...onlineHostUpdateRequestSchema.options
|
|
20141
20335
|
]);
|
|
20142
20336
|
var hostMaintenanceReplySchema = external_exports.discriminatedUnion("kind", [
|
|
@@ -20155,6 +20349,7 @@ var hostMaintenanceControlResponseSchema = external_exports.object({
|
|
|
20155
20349
|
}).strict();
|
|
20156
20350
|
|
|
20157
20351
|
// ../shared/src/installation/presentation.ts
|
|
20352
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20158
20353
|
function presentHostUpdate(reply, options = {}) {
|
|
20159
20354
|
const source = reply.operation;
|
|
20160
20355
|
const operation2 = source ? {
|
|
@@ -20183,7 +20378,14 @@ function presentHostUpdate(reply, options = {}) {
|
|
|
20183
20378
|
);
|
|
20184
20379
|
}
|
|
20185
20380
|
|
|
20381
|
+
// ../shared/src/remote/maintenance.ts
|
|
20382
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20383
|
+
|
|
20384
|
+
// ../shared/src/remote/protocol.ts
|
|
20385
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20386
|
+
|
|
20186
20387
|
// ../shared/src/ws/messages.ts
|
|
20388
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20187
20389
|
var termId = external_exports.string().regex(/^(agent|shell-[0-9]+)$/);
|
|
20188
20390
|
var dims = {
|
|
20189
20391
|
cols: external_exports.number().int().min(2).max(1e3),
|
|
@@ -20400,7 +20602,11 @@ var remoteMaintenanceClaimSchema = external_exports.object({
|
|
|
20400
20602
|
grant: remoteIdSchema
|
|
20401
20603
|
}).strict();
|
|
20402
20604
|
|
|
20605
|
+
// ../shared/src/api/connection/cockpit-remote.ts
|
|
20606
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20607
|
+
|
|
20403
20608
|
// ../shared/src/remote/service.ts
|
|
20609
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20404
20610
|
var remoteHostSchema = external_exports.object({
|
|
20405
20611
|
id: remoteIdSchema,
|
|
20406
20612
|
label: remoteLabelSchema,
|
|
@@ -20495,6 +20701,7 @@ var connectorAdminSchema = external_exports.object({ profile: profileId, request
|
|
|
20495
20701
|
var connectorConfigureSchema = external_exports.object({ profile: profileId, setup: connectorSetupSchema }).strict();
|
|
20496
20702
|
|
|
20497
20703
|
// ../shared/src/api/connection/connection-auth.ts
|
|
20704
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20498
20705
|
var CONNECTION_POLICY = {
|
|
20499
20706
|
participationMs: 15e3,
|
|
20500
20707
|
leaseMs: 45e3,
|
|
@@ -20583,6 +20790,7 @@ var browserAuthorityStateSchema = external_exports.object({
|
|
|
20583
20790
|
});
|
|
20584
20791
|
|
|
20585
20792
|
// ../shared/src/remote/image-upload.ts
|
|
20793
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20586
20794
|
var IMAGE_UPLOAD_POLICY = {
|
|
20587
20795
|
imageBytes: 4 * 1024 * 1024,
|
|
20588
20796
|
chunkBytes: 64 * 1024,
|
|
@@ -20613,6 +20821,7 @@ var imageUploadProgressSchema = external_exports.object({
|
|
|
20613
20821
|
});
|
|
20614
20822
|
|
|
20615
20823
|
// ../shared/src/remote/notifications.ts
|
|
20824
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20616
20825
|
var notificationPreviewKeySchema = external_exports.object({ id: remoteIdSchema, secret: remoteSecretSchema }).strict();
|
|
20617
20826
|
var encryptedNotificationSchema = external_exports.object({
|
|
20618
20827
|
key: remoteIdSchema,
|
|
@@ -20662,6 +20871,7 @@ var pushDispatchResultSchema = external_exports.object({ accepted: external_expo
|
|
|
20662
20871
|
var pushPreferenceResultSchema = external_exports.object({ enabled: external_exports.boolean() }).strict();
|
|
20663
20872
|
|
|
20664
20873
|
// ../shared/src/api/agents/puddlang.ts
|
|
20874
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20665
20875
|
var PUDDLANG_MAX_SOURCE = 256 * 1024;
|
|
20666
20876
|
var sourceSchema = external_exports.string().min(1).max(PUDDLANG_MAX_SOURCE).refine(
|
|
20667
20877
|
(source) => new TextEncoder().encode(source).length <= PUDDLANG_MAX_SOURCE,
|
|
@@ -20756,6 +20966,7 @@ var puddlangContextSchema = external_exports.object({
|
|
|
20756
20966
|
});
|
|
20757
20967
|
|
|
20758
20968
|
// ../shared/src/api/agents/puddlang-outcomes.ts
|
|
20969
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20759
20970
|
var puddlangOutcomeOperationSchema = external_exports.number().int().safe();
|
|
20760
20971
|
var puddlangOutcomeActionSchema = external_exports.enum(["read", "discard"]);
|
|
20761
20972
|
var fingerprint3 = external_exports.string().regex(/^[a-f0-9]{64}$/);
|
|
@@ -20794,6 +21005,7 @@ var puddlangOutcomeResponseSchema = external_exports.object({
|
|
|
20794
21005
|
}).strict();
|
|
20795
21006
|
|
|
20796
21007
|
// ../shared/src/api/agents/puddlang-mcp.ts
|
|
21008
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20797
21009
|
var puddlangMcpRequestSchema = external_exports.object({
|
|
20798
21010
|
jsonrpc: external_exports.literal("2.0"),
|
|
20799
21011
|
id: external_exports.union([external_exports.string(), external_exports.number()]).optional(),
|
|
@@ -20874,6 +21086,7 @@ var puddlangMcpTools = definitions.map(([name, description, schema, readOnlyHint
|
|
|
20874
21086
|
}));
|
|
20875
21087
|
|
|
20876
21088
|
// ../shared/src/api/notebooks/notebook-execution.ts
|
|
21089
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20877
21090
|
var cellId = external_exports.string().min(1).max(128);
|
|
20878
21091
|
var cellSource = external_exports.object({ id: cellId, source: external_exports.string().max(1024 * 1024) });
|
|
20879
21092
|
var notebookExecuteSchema = external_exports.object({
|
|
@@ -20907,10 +21120,22 @@ var notebookExecutionSchema = external_exports.object({
|
|
|
20907
21120
|
input: notebookInputSchema.optional(),
|
|
20908
21121
|
error: external_exports.string().max(32768).optional()
|
|
20909
21122
|
});
|
|
20910
|
-
var
|
|
21123
|
+
var notebookRevisionSchema = external_exports.object({
|
|
21124
|
+
id: external_exports.string().uuid(),
|
|
21125
|
+
revision: external_exports.number().int().nonnegative()
|
|
21126
|
+
}).nullable();
|
|
21127
|
+
var notebookExecutionRequestSchema = external_exports.object({
|
|
21128
|
+
source: compilationFileTargetSchema,
|
|
21129
|
+
/** Opt in to an unchanged reply; omission always asks for a full snapshot. */
|
|
21130
|
+
known: notebookRevisionSchema.optional()
|
|
21131
|
+
});
|
|
20911
21132
|
var notebookExecutionResponseSchema = external_exports.object({
|
|
20912
21133
|
execution: notebookExecutionSchema.nullable()
|
|
20913
21134
|
});
|
|
21135
|
+
var notebookObservationResponseSchema = external_exports.union([
|
|
21136
|
+
notebookExecutionResponseSchema,
|
|
21137
|
+
external_exports.object({ unchanged: external_exports.literal(true) })
|
|
21138
|
+
]);
|
|
20914
21139
|
var notebookInputReplySchema = external_exports.object({
|
|
20915
21140
|
source: compilationFileTargetSchema,
|
|
20916
21141
|
run_id: external_exports.string().uuid(),
|
|
@@ -20919,6 +21144,7 @@ var notebookInputReplySchema = external_exports.object({
|
|
|
20919
21144
|
});
|
|
20920
21145
|
|
|
20921
21146
|
// ../shared/src/api/notebooks/notebook-intelligence.ts
|
|
21147
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20922
21148
|
var notebookIntelligenceRequestSchema = external_exports.object({
|
|
20923
21149
|
source: compilationFileTargetSchema,
|
|
20924
21150
|
kind: external_exports.enum(["complete", "inspect"]),
|
|
@@ -20934,6 +21160,7 @@ var notebookIntelligenceResponseSchema = external_exports.object({
|
|
|
20934
21160
|
});
|
|
20935
21161
|
|
|
20936
21162
|
// ../shared/src/api/notebooks/notebook-widgets.ts
|
|
21163
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20937
21164
|
var id = external_exports.string().min(1).max(128);
|
|
20938
21165
|
var json2 = external_exports.record(external_exports.string(), external_exports.unknown());
|
|
20939
21166
|
var binary = external_exports.string().max(2 * 1024 * 1024).regex(/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/);
|
|
@@ -20990,7 +21217,11 @@ var notebookWidgetCommSchema = external_exports.object({
|
|
|
20990
21217
|
})
|
|
20991
21218
|
});
|
|
20992
21219
|
|
|
21220
|
+
// ../shared/src/notebook-widget-state.ts
|
|
21221
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
21222
|
+
|
|
20993
21223
|
// ../shared/src/api/storage.ts
|
|
21224
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
20994
21225
|
var storageStatusSchema = external_exports.object({
|
|
20995
21226
|
checked_at: external_exports.string().nullable(),
|
|
20996
21227
|
volumes: external_exports.array(
|
|
@@ -21005,7 +21236,11 @@ var storageStatusSchema = external_exports.object({
|
|
|
21005
21236
|
database_degraded: external_exports.boolean()
|
|
21006
21237
|
});
|
|
21007
21238
|
|
|
21239
|
+
// ../shared/src/api/agents/runtime.ts
|
|
21240
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
21241
|
+
|
|
21008
21242
|
// ../shared/src/runtime/protocol.ts
|
|
21243
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
21009
21244
|
var RUNTIME_PROTOCOL_VERSION = { major: 1, minor: 0 };
|
|
21010
21245
|
var RUNTIME_LIMITS = {
|
|
21011
21246
|
frameBytes: 8 * 1024 * 1024,
|
|
@@ -21476,6 +21711,7 @@ var restartSessionRuntimeRequestSchema = external_exports.object({
|
|
|
21476
21711
|
}).strict();
|
|
21477
21712
|
|
|
21478
21713
|
// ../shared/src/runtime/storage.ts
|
|
21714
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
21479
21715
|
var runtimeAssetsSchema = external_exports.object({
|
|
21480
21716
|
format: external_exports.literal(1),
|
|
21481
21717
|
node_path: external_exports.string().max(4096).refine((value) => value.startsWith("/") && !value.includes("\0")),
|
|
@@ -21538,6 +21774,7 @@ var runtimeSupervisorSchema = external_exports.object({
|
|
|
21538
21774
|
});
|
|
21539
21775
|
|
|
21540
21776
|
// ../shared/src/installation/collection.ts
|
|
21777
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
21541
21778
|
var HOST_RELEASE_COLLECTION_LIMIT = 32;
|
|
21542
21779
|
var HOST_RELEASE_COLLECTION_BYTES = 64 * 1024;
|
|
21543
21780
|
var hostReleaseCollectionSchema = external_exports.object({
|
|
@@ -21575,7 +21812,11 @@ var hostReleaseCollectionSchema = external_exports.object({
|
|
|
21575
21812
|
}
|
|
21576
21813
|
});
|
|
21577
21814
|
|
|
21815
|
+
// ../shared/src/installation/worker.ts
|
|
21816
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
21817
|
+
|
|
21578
21818
|
// ../shared/src/installation/supervision.ts
|
|
21819
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
21579
21820
|
var hostServiceReplacementSchema = external_exports.object({
|
|
21580
21821
|
kind: external_exports.enum(["systemd", "launchd"]),
|
|
21581
21822
|
component: external_exports.enum(["daemon", "connector"]).optional(),
|
|
@@ -21592,6 +21833,7 @@ var hostServiceReplacementSchema = external_exports.object({
|
|
|
21592
21833
|
);
|
|
21593
21834
|
|
|
21594
21835
|
// ../shared/src/installation/connector.ts
|
|
21836
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
21595
21837
|
var hostConnectorReplacementSchema = external_exports.discriminatedUnion("state", [
|
|
21596
21838
|
external_exports.object({ state: external_exports.literal("absent") }).strict(),
|
|
21597
21839
|
external_exports.object({
|
|
@@ -21645,6 +21887,7 @@ var hostUpdateWorkerLifetimeSchema = external_exports.object({
|
|
|
21645
21887
|
}).strict();
|
|
21646
21888
|
|
|
21647
21889
|
// ../shared/src/installation/actions.ts
|
|
21890
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
21648
21891
|
var hostUpdateActionSchema = external_exports.enum([
|
|
21649
21892
|
"stop-connector",
|
|
21650
21893
|
"stop-daemon",
|
|
@@ -21677,7 +21920,11 @@ var hostUpdateActionsSchema = external_exports.object({
|
|
|
21677
21920
|
}
|
|
21678
21921
|
});
|
|
21679
21922
|
|
|
21923
|
+
// ../shared/src/installation/recovery.ts
|
|
21924
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
21925
|
+
|
|
21680
21926
|
// ../shared/src/installation/checkpoint.ts
|
|
21927
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
21681
21928
|
var HOST_UPDATE_CHECKPOINT_OWNERS = 4096;
|
|
21682
21929
|
var HOST_UPDATE_CHECKPOINT_BYTES = 8 * 1024 * 1024;
|
|
21683
21930
|
var hostUpdateCheckpointReferenceSchema = external_exports.object({
|
|
@@ -21776,6 +22023,7 @@ var hostUpdateRecoveryLedgerSchema = external_exports.object({
|
|
|
21776
22023
|
});
|
|
21777
22024
|
|
|
21778
22025
|
// ../shared/src/installation/adoption.ts
|
|
22026
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
21779
22027
|
var hostUpdateAdoptionSchema = hostUpdateCheckpointReferenceSchema.extend({
|
|
21780
22028
|
format: external_exports.literal(1),
|
|
21781
22029
|
nonce: external_exports.uuid(),
|
|
@@ -21803,6 +22051,7 @@ var hostUpdateAdoptionSchema = hostUpdateCheckpointReferenceSchema.extend({
|
|
|
21803
22051
|
);
|
|
21804
22052
|
|
|
21805
22053
|
// ../shared/src/installation/capabilities.ts
|
|
22054
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
21806
22055
|
var SUPPORTED_RUNTIME_MAJORS = [RUNTIME_PROTOCOL_VERSION.major];
|
|
21807
22056
|
var hostReleaseCapabilitiesSchema = external_exports.object({
|
|
21808
22057
|
format: external_exports.literal(1),
|
|
@@ -21815,7 +22064,42 @@ var hostReleaseCapabilitiesSchema = external_exports.object({
|
|
|
21815
22064
|
database_schema_version: external_exports.number().int().nonnegative().max(2 ** 31 - 1).optional()
|
|
21816
22065
|
}).strict();
|
|
21817
22066
|
|
|
22067
|
+
// ../shared/src/installation/release-manifest.ts
|
|
22068
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
22069
|
+
var releaseVersionSchema = external_exports.string().max(64).regex(/^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)$/);
|
|
22070
|
+
var releaseComponentSchema = external_exports.enum(["cockpit", "daemon", "runtime"]);
|
|
22071
|
+
var releaseManifestSchema = external_exports.object({
|
|
22072
|
+
format: external_exports.literal(1),
|
|
22073
|
+
version: releaseVersionSchema,
|
|
22074
|
+
components: external_exports.object({
|
|
22075
|
+
cockpit: releaseVersionSchema,
|
|
22076
|
+
daemon: releaseVersionSchema,
|
|
22077
|
+
runtime: releaseVersionSchema
|
|
22078
|
+
}).strict()
|
|
22079
|
+
}).strict().superRefine((manifest, context) => {
|
|
22080
|
+
if (![manifest.version, ...Object.values(manifest.components)].every(
|
|
22081
|
+
(version2) => releaseVersionSchema.safeParse(version2).success
|
|
22082
|
+
))
|
|
22083
|
+
return;
|
|
22084
|
+
for (const [component2, version2] of Object.entries(manifest.components)) {
|
|
22085
|
+
if (compareReleaseVersions(version2, manifest.version) > 0)
|
|
22086
|
+
context.addIssue({ code: "custom", message: `${component2} points beyond its release` });
|
|
22087
|
+
}
|
|
22088
|
+
if (manifest.components.cockpit !== manifest.version)
|
|
22089
|
+
context.addIssue({ code: "custom", message: "Every release publishes its cockpit" });
|
|
22090
|
+
});
|
|
22091
|
+
function compareReleaseVersions(a, b) {
|
|
22092
|
+
const left = a.split(".").map(BigInt);
|
|
22093
|
+
const right = b.split(".").map(BigInt);
|
|
22094
|
+
for (let i = 0; i < 3; i++) {
|
|
22095
|
+
if (left[i] < right[i]) return -1;
|
|
22096
|
+
if (left[i] > right[i]) return 1;
|
|
22097
|
+
}
|
|
22098
|
+
return 0;
|
|
22099
|
+
}
|
|
22100
|
+
|
|
21818
22101
|
// ../shared/src/installation/removal/services.ts
|
|
22102
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
21819
22103
|
var service = hostServiceReplacementSchema.shape;
|
|
21820
22104
|
var target = external_exports.object({ kind: service.kind, name: service.name, domain: service.domain }).strict();
|
|
21821
22105
|
var process3 = target.extend({
|
|
@@ -21906,6 +22190,7 @@ var hostRemovalServicesSchema = external_exports.object({
|
|
|
21906
22190
|
var HOST_REMOVAL_SERVICES_BYTES = 256 * 1024;
|
|
21907
22191
|
|
|
21908
22192
|
// ../shared/src/installation/removal/restore.ts
|
|
22193
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
21909
22194
|
var hostRemovalRestoreActionSchema = external_exports.enum([
|
|
21910
22195
|
"restore-connector",
|
|
21911
22196
|
"restore-daemon",
|
|
@@ -21946,6 +22231,7 @@ var hostRemovalRestoreSchema = external_exports.object({
|
|
|
21946
22231
|
});
|
|
21947
22232
|
|
|
21948
22233
|
// ../shared/src/installation/removal/status.ts
|
|
22234
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
21949
22235
|
var hostRemovalStatusSchema = external_exports.discriminatedUnion("state", [
|
|
21950
22236
|
external_exports.object({ state: external_exports.literal("none") }).strict(),
|
|
21951
22237
|
external_exports.object({
|
|
@@ -21955,6 +22241,7 @@ var hostRemovalStatusSchema = external_exports.discriminatedUnion("state", [
|
|
|
21955
22241
|
]);
|
|
21956
22242
|
|
|
21957
22243
|
// ../shared/src/installation/removal/runtime.ts
|
|
22244
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
21958
22245
|
var HOST_REMOVAL_RUNTIME_LIMIT = 1024;
|
|
21959
22246
|
var fingerprint5 = external_exports.string().regex(/^[0-9a-f]{64}$/);
|
|
21960
22247
|
var hostRemovalRuntimeReviewSchema = external_exports.object({
|
|
@@ -21978,6 +22265,7 @@ var hostRemovalFinishSchema = external_exports.object({
|
|
|
21978
22265
|
}).strict();
|
|
21979
22266
|
|
|
21980
22267
|
// ../shared/src/installation/removal/purge.ts
|
|
22268
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
21981
22269
|
var fingerprint6 = external_exports.string().regex(/^[a-f0-9]{64}$/);
|
|
21982
22270
|
var HOST_PURGE_RECORD_BYTES = 4 * 1024 * 1024;
|
|
21983
22271
|
var HOST_PURGE_ANCHORS = [
|
|
@@ -22030,15 +22318,18 @@ var hostPurgeApplySchema = external_exports.object({
|
|
|
22030
22318
|
}).strict();
|
|
22031
22319
|
|
|
22032
22320
|
// src/cli/remote.ts
|
|
22321
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
22033
22322
|
import { createInterface } from "node:readline";
|
|
22034
22323
|
import { Writable } from "node:stream";
|
|
22035
22324
|
|
|
22036
22325
|
// src/lib/transport/local.ts
|
|
22326
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
22037
22327
|
import { spawn } from "node:child_process";
|
|
22038
22328
|
import { copyFileSync, mkdirSync, readFileSync } from "node:fs";
|
|
22039
22329
|
import { dirname } from "node:path";
|
|
22040
22330
|
|
|
22041
22331
|
// src/lib/paths.ts
|
|
22332
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
22042
22333
|
import { homedir } from "node:os";
|
|
22043
22334
|
import { join } from "node:path";
|
|
22044
22335
|
function clientHome(env = process.env) {
|
|
@@ -22057,39 +22348,51 @@ var hostPaths = {
|
|
|
22057
22348
|
pid: `${HOST_HOME}/puddled.pid`
|
|
22058
22349
|
};
|
|
22059
22350
|
|
|
22351
|
+
// src/lib/transport/exec-output.ts
|
|
22352
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
22353
|
+
var STDERR_TAIL_LENGTH = 64 * 1024;
|
|
22354
|
+
function collectExecOutput(child, opts) {
|
|
22355
|
+
return new Promise((resolve6) => {
|
|
22356
|
+
let stdout = "";
|
|
22357
|
+
let stderr = "";
|
|
22358
|
+
const appendStderr = (text2) => {
|
|
22359
|
+
stderr += text2;
|
|
22360
|
+
if (opts.capture === "stream") stderr = stderr.slice(-STDERR_TAIL_LENGTH);
|
|
22361
|
+
};
|
|
22362
|
+
let timer;
|
|
22363
|
+
if (opts.timeoutMs !== void 0) {
|
|
22364
|
+
timer = setTimeout(() => child.kill("SIGKILL"), opts.timeoutMs);
|
|
22365
|
+
timer.unref();
|
|
22366
|
+
}
|
|
22367
|
+
child.stdout.setEncoding("utf8");
|
|
22368
|
+
child.stderr.setEncoding("utf8");
|
|
22369
|
+
child.stdout.on("data", (text2) => {
|
|
22370
|
+
if (opts.capture !== "stream") stdout += text2;
|
|
22371
|
+
opts.onStdout?.(text2);
|
|
22372
|
+
});
|
|
22373
|
+
child.stderr.on("data", appendStderr);
|
|
22374
|
+
child.on("error", (err) => {
|
|
22375
|
+
if (timer) clearTimeout(timer);
|
|
22376
|
+
appendStderr(String(err));
|
|
22377
|
+
resolve6({ code: -1, stdout, stderr });
|
|
22378
|
+
});
|
|
22379
|
+
child.on("close", (code) => {
|
|
22380
|
+
if (timer) clearTimeout(timer);
|
|
22381
|
+
resolve6({ code: code ?? -1, stdout, stderr });
|
|
22382
|
+
});
|
|
22383
|
+
child.stdin.on("error", () => {
|
|
22384
|
+
});
|
|
22385
|
+
child.stdin.end(opts.stdin);
|
|
22386
|
+
});
|
|
22387
|
+
}
|
|
22388
|
+
|
|
22060
22389
|
// src/lib/transport/local.ts
|
|
22061
22390
|
var LocalTransport = class {
|
|
22062
22391
|
kind = "local";
|
|
22063
22392
|
label = "this machine";
|
|
22064
22393
|
exec(command, opts = {}) {
|
|
22065
|
-
|
|
22066
|
-
|
|
22067
|
-
let stdout = "";
|
|
22068
|
-
let stderr = "";
|
|
22069
|
-
let timer;
|
|
22070
|
-
if (opts.timeoutMs !== void 0) {
|
|
22071
|
-
timer = setTimeout(() => child.kill("SIGKILL"), opts.timeoutMs);
|
|
22072
|
-
timer.unref();
|
|
22073
|
-
}
|
|
22074
|
-
child.stdout.on("data", (chunk) => {
|
|
22075
|
-
const text2 = chunk.toString();
|
|
22076
|
-
stdout += text2;
|
|
22077
|
-
opts.onStdout?.(text2);
|
|
22078
|
-
});
|
|
22079
|
-
child.stderr.on("data", (chunk) => stderr += chunk.toString());
|
|
22080
|
-
child.on("error", (err) => {
|
|
22081
|
-
if (timer) clearTimeout(timer);
|
|
22082
|
-
resolve6({ code: -1, stdout, stderr: stderr + String(err) });
|
|
22083
|
-
});
|
|
22084
|
-
child.on("close", (code) => {
|
|
22085
|
-
if (timer) clearTimeout(timer);
|
|
22086
|
-
resolve6({ code: code ?? -1, stdout, stderr });
|
|
22087
|
-
});
|
|
22088
|
-
child.stdin.on("error", () => {
|
|
22089
|
-
});
|
|
22090
|
-
if (opts.stdin !== void 0) child.stdin.end(opts.stdin);
|
|
22091
|
-
else child.stdin.end();
|
|
22092
|
-
});
|
|
22394
|
+
const child = spawn("sh", ["-c", command], { stdio: ["pipe", "pipe", "pipe"] });
|
|
22395
|
+
return collectExecOutput(child, opts);
|
|
22093
22396
|
}
|
|
22094
22397
|
readFile(path2) {
|
|
22095
22398
|
try {
|
|
@@ -22112,6 +22415,7 @@ function expandHome(path2) {
|
|
|
22112
22415
|
}
|
|
22113
22416
|
|
|
22114
22417
|
// src/lib/transport/ssh.ts
|
|
22418
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
22115
22419
|
import { Duplex } from "node:stream";
|
|
22116
22420
|
import { spawn as spawn2 } from "node:child_process";
|
|
22117
22421
|
import { mkdirSync as mkdirSync2 } from "node:fs";
|
|
@@ -22236,37 +22540,11 @@ var SshTransport = class {
|
|
|
22236
22540
|
});
|
|
22237
22541
|
}
|
|
22238
22542
|
exec(command, opts = {}) {
|
|
22239
|
-
|
|
22240
|
-
|
|
22241
|
-
|
|
22242
|
-
env: this.spawnEnv()
|
|
22243
|
-
});
|
|
22244
|
-
let stdout = "";
|
|
22245
|
-
let stderr = "";
|
|
22246
|
-
let timer;
|
|
22247
|
-
if (opts.timeoutMs !== void 0) {
|
|
22248
|
-
timer = setTimeout(() => child.kill("SIGKILL"), opts.timeoutMs);
|
|
22249
|
-
timer.unref();
|
|
22250
|
-
}
|
|
22251
|
-
child.stdout.on("data", (chunk) => {
|
|
22252
|
-
const text2 = chunk.toString();
|
|
22253
|
-
stdout += text2;
|
|
22254
|
-
opts.onStdout?.(text2);
|
|
22255
|
-
});
|
|
22256
|
-
child.stderr.on("data", (chunk) => stderr += chunk.toString());
|
|
22257
|
-
child.on("error", (err) => {
|
|
22258
|
-
if (timer) clearTimeout(timer);
|
|
22259
|
-
resolve6({ code: -1, stdout, stderr: stderr + String(err) });
|
|
22260
|
-
});
|
|
22261
|
-
child.on("close", (code) => {
|
|
22262
|
-
if (timer) clearTimeout(timer);
|
|
22263
|
-
resolve6({ code: code ?? -1, stdout, stderr });
|
|
22264
|
-
});
|
|
22265
|
-
child.stdin.on("error", () => {
|
|
22266
|
-
});
|
|
22267
|
-
if (opts.stdin !== void 0) child.stdin.end(opts.stdin);
|
|
22268
|
-
else child.stdin.end();
|
|
22543
|
+
const child = spawn2(this.ssh, this.args(this.host, "--", `sh -c ${shellQuote(command)}`), {
|
|
22544
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
22545
|
+
env: this.spawnEnv()
|
|
22269
22546
|
});
|
|
22547
|
+
return collectExecOutput(child, opts);
|
|
22270
22548
|
}
|
|
22271
22549
|
/**
|
|
22272
22550
|
* Run a command through a live SSH channel instead of waiting for a detached
|
|
@@ -22587,8 +22865,14 @@ uninstalls a component after confirmation. On persistent hosts, daemon removal
|
|
|
22587
22865
|
disables remote access and stops daemon-owned work, then retains independent
|
|
22588
22866
|
runtimes by default. --stop-runtimes explicitly stops the reviewed runtimes and
|
|
22589
22867
|
their shell jobs. Data and pinned releases remain for 'puddle install daemon'.
|
|
22590
|
-
Coordinated --purge
|
|
22591
|
-
|
|
22868
|
+
Coordinated --purge requires a compatible daemon (feature introduced in application
|
|
22869
|
+
25.20) and separate runtime-stop consent (--yes --purge --stop-runtimes for
|
|
22870
|
+
non-interactive use). After removal,
|
|
22871
|
+
reboot the target and rerun the explicit purge command to delete reviewed managed
|
|
22872
|
+
data. Installation locks, private recovery records and retained releases remain.
|
|
22873
|
+
Unsupported persistent hosts refuse purge before mutation; upgrade first or use a
|
|
22874
|
+
compatible removal client to retain data.
|
|
22875
|
+
Legacy removal keeps data unless you separately confirm --purge.`;
|
|
22592
22876
|
function parseArgs(argv) {
|
|
22593
22877
|
const [cmd, ...rest] = argv;
|
|
22594
22878
|
if (cmd === "remote") return parseRemoteArgs(rest);
|
|
@@ -22885,7 +23169,14 @@ function argvFor(command) {
|
|
|
22885
23169
|
return argv;
|
|
22886
23170
|
}
|
|
22887
23171
|
|
|
23172
|
+
// src/cli/run.ts
|
|
23173
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23174
|
+
|
|
23175
|
+
// src/cli/daemon-upgrade-prompt.ts
|
|
23176
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23177
|
+
|
|
22888
23178
|
// src/lib/installation/host/approval.ts
|
|
23179
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
22889
23180
|
function hostUpdateInterruptionMessage(host, { operation: operation2, review }) {
|
|
22890
23181
|
const { terminals, notebooks, compilation, programmes } = review.affected;
|
|
22891
23182
|
const targets = operation2.targets.map(({ component: component2, version: version2 }) => `${component2} ${version2}`);
|
|
@@ -22898,6 +23189,7 @@ Their shell jobs and in-memory state will be lost. Independently hosted runtimes
|
|
|
22898
23189
|
import { randomUUID } from "node:crypto";
|
|
22899
23190
|
|
|
22900
23191
|
// src/lib/connection/handshake.ts
|
|
23192
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
22901
23193
|
init_types();
|
|
22902
23194
|
var CLI_UPGRADE_COMMAND = "puddle upgrade cli";
|
|
22903
23195
|
function decideHandshake(cli, daemon) {
|
|
@@ -22979,6 +23271,7 @@ async function runHandshake(opts) {
|
|
|
22979
23271
|
}
|
|
22980
23272
|
|
|
22981
23273
|
// src/cli/prompt.ts
|
|
23274
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
22982
23275
|
init_types();
|
|
22983
23276
|
import { createInterface as createInterface2 } from "node:readline";
|
|
22984
23277
|
async function ask(question, def) {
|
|
@@ -23079,7 +23372,154 @@ function relayDaemonUpgradePrompt(child, ask2 = askToUpgrade) {
|
|
|
23079
23372
|
};
|
|
23080
23373
|
}
|
|
23081
23374
|
|
|
23375
|
+
// src/lib/auth/connection-authority.ts
|
|
23376
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23377
|
+
|
|
23378
|
+
// ../shared/src/node/host-control.ts
|
|
23379
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23380
|
+
|
|
23381
|
+
// ../shared/src/node/releases/components.ts
|
|
23382
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23383
|
+
|
|
23384
|
+
// ../shared/src/node/releases/github.ts
|
|
23385
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23386
|
+
var assetSchema = external_exports.object({
|
|
23387
|
+
name: external_exports.string().min(1).max(256),
|
|
23388
|
+
browser_download_url: external_exports.string().max(2048).url().refine((value) => value.startsWith("https://"))
|
|
23389
|
+
});
|
|
23390
|
+
var releaseSchema = external_exports.object({
|
|
23391
|
+
tag_name: external_exports.string().max(129).regex(/^v?[0-9]+\.[0-9]+\.[0-9]+$/),
|
|
23392
|
+
draft: external_exports.literal(false).optional(),
|
|
23393
|
+
prerelease: external_exports.literal(false).optional(),
|
|
23394
|
+
assets: external_exports.array(assetSchema).max(1024).default([])
|
|
23395
|
+
});
|
|
23396
|
+
async function latestGitHubRelease(repository, options = {}) {
|
|
23397
|
+
return githubRelease(repository, "latest", options);
|
|
23398
|
+
}
|
|
23399
|
+
async function githubRelease(repository, ref, options = {}) {
|
|
23400
|
+
releaseRepositorySchema.parse(repository);
|
|
23401
|
+
const timeout = AbortSignal.timeout(1e4);
|
|
23402
|
+
const signal = options.signal ? AbortSignal.any([timeout, options.signal]) : timeout;
|
|
23403
|
+
const response = await (options.fetchFn ?? fetch)(
|
|
23404
|
+
`https://api.github.com/repos/${repository}/releases/${ref}`,
|
|
23405
|
+
{
|
|
23406
|
+
headers: { accept: "application/vnd.github+json", "user-agent": "puddle" },
|
|
23407
|
+
signal
|
|
23408
|
+
}
|
|
23409
|
+
);
|
|
23410
|
+
if (!response.ok) {
|
|
23411
|
+
await response.body?.cancel().catch(() => {
|
|
23412
|
+
});
|
|
23413
|
+
throw new Error(`release lookup failed (HTTP ${response.status})`);
|
|
23414
|
+
}
|
|
23415
|
+
if (!response.body) throw new Error("Release lookup returned no body");
|
|
23416
|
+
const reader = response.body.getReader();
|
|
23417
|
+
const chunks = [];
|
|
23418
|
+
let size2 = 0;
|
|
23419
|
+
try {
|
|
23420
|
+
while (true) {
|
|
23421
|
+
signal.throwIfAborted();
|
|
23422
|
+
const { value, done } = await reader.read();
|
|
23423
|
+
if (done) break;
|
|
23424
|
+
size2 += value.byteLength;
|
|
23425
|
+
if (size2 > 1024 * 1024) throw new Error("Release metadata exceeds its limit");
|
|
23426
|
+
chunks.push(value);
|
|
23427
|
+
}
|
|
23428
|
+
const release = releaseSchema.parse(JSON.parse(Buffer.concat(chunks).toString("utf8")));
|
|
23429
|
+
return { version: release.tag_name.replace(/^v/, ""), assets: release.assets };
|
|
23430
|
+
} finally {
|
|
23431
|
+
await reader.cancel().catch(() => {
|
|
23432
|
+
});
|
|
23433
|
+
reader.releaseLock();
|
|
23434
|
+
}
|
|
23435
|
+
}
|
|
23436
|
+
|
|
23437
|
+
// ../shared/src/node/releases/components.ts
|
|
23438
|
+
var RELEASE_MANIFEST_ASSET = "release-manifest.json";
|
|
23439
|
+
async function releaseManifest(repository, release, options = {}) {
|
|
23440
|
+
releaseRepositorySchema.parse(repository);
|
|
23441
|
+
releaseVersionSchema.parse(release.version);
|
|
23442
|
+
const legacy = {
|
|
23443
|
+
format: 1,
|
|
23444
|
+
version: release.version,
|
|
23445
|
+
components: { cockpit: release.version, daemon: release.version, runtime: release.version }
|
|
23446
|
+
};
|
|
23447
|
+
if (!release.assets.some((asset) => asset.name === RELEASE_MANIFEST_ASSET))
|
|
23448
|
+
return releaseManifestSchema.parse(legacy);
|
|
23449
|
+
const response = await (options.fetchFn ?? fetch)(
|
|
23450
|
+
`https://github.com/${repository}/releases/download/v${release.version}/${RELEASE_MANIFEST_ASSET}`,
|
|
23451
|
+
{
|
|
23452
|
+
signal: options.signal ? AbortSignal.any([options.signal, AbortSignal.timeout(1e4)]) : AbortSignal.timeout(1e4)
|
|
23453
|
+
}
|
|
23454
|
+
);
|
|
23455
|
+
if (!response.ok || !response.body) {
|
|
23456
|
+
await response.body?.cancel().catch(() => {
|
|
23457
|
+
});
|
|
23458
|
+
throw new Error("Release manifest is unavailable");
|
|
23459
|
+
}
|
|
23460
|
+
const reader = response.body.getReader();
|
|
23461
|
+
const chunks = [];
|
|
23462
|
+
let size2 = 0;
|
|
23463
|
+
try {
|
|
23464
|
+
while (true) {
|
|
23465
|
+
const { done, value } = await reader.read();
|
|
23466
|
+
if (done) break;
|
|
23467
|
+
size2 += value.byteLength;
|
|
23468
|
+
if (size2 > 16 * 1024) throw new Error("Release manifest exceeds its limit");
|
|
23469
|
+
chunks.push(value);
|
|
23470
|
+
}
|
|
23471
|
+
const manifest = releaseManifestSchema.parse(
|
|
23472
|
+
JSON.parse(Buffer.concat(chunks).toString("utf8"))
|
|
23473
|
+
);
|
|
23474
|
+
if (manifest.version !== release.version) throw new Error("Release manifest tag mismatch");
|
|
23475
|
+
return manifest;
|
|
23476
|
+
} finally {
|
|
23477
|
+
await reader.cancel().catch(() => {
|
|
23478
|
+
});
|
|
23479
|
+
reader.releaseLock();
|
|
23480
|
+
}
|
|
23481
|
+
}
|
|
23482
|
+
async function latestComponentReleases(repository, options = {}) {
|
|
23483
|
+
const latest = await latestGitHubRelease(repository, options);
|
|
23484
|
+
const manifest = await releaseManifest(repository, latest, options);
|
|
23485
|
+
const versions = /* @__PURE__ */ new Map([[latest.version, latest]]);
|
|
23486
|
+
for (const version2 of new Set(Object.values(manifest.components))) {
|
|
23487
|
+
if (versions.has(version2)) continue;
|
|
23488
|
+
const release = await githubRelease(repository, `tags/v${version2}`, options);
|
|
23489
|
+
if (release.version !== version2) throw new Error("Component release tag mismatch");
|
|
23490
|
+
versions.set(version2, release);
|
|
23491
|
+
}
|
|
23492
|
+
for (const component2 of ["daemon", "runtime"]) {
|
|
23493
|
+
const version2 = manifest.components[component2];
|
|
23494
|
+
if (version2 === latest.version) continue;
|
|
23495
|
+
const target2 = versions.get(version2);
|
|
23496
|
+
const targetManifest = await releaseManifest(repository, target2, options);
|
|
23497
|
+
if (targetManifest.components[component2] !== version2)
|
|
23498
|
+
throw new Error(`Manifest refers to an unpublished ${component2}`);
|
|
23499
|
+
}
|
|
23500
|
+
return {
|
|
23501
|
+
version: latest.version,
|
|
23502
|
+
components: {
|
|
23503
|
+
cockpit: versions.get(manifest.components.cockpit),
|
|
23504
|
+
daemon: versions.get(manifest.components.daemon),
|
|
23505
|
+
runtime: versions.get(manifest.components.runtime)
|
|
23506
|
+
}
|
|
23507
|
+
};
|
|
23508
|
+
}
|
|
23509
|
+
async function componentReleaseAt(repository, component2, version2, options = {}) {
|
|
23510
|
+
releaseVersionSchema.parse(version2);
|
|
23511
|
+
const release = await githubRelease(repository, `tags/v${version2}`, options);
|
|
23512
|
+
if (release.version !== version2) throw new Error("Component release tag mismatch");
|
|
23513
|
+
const manifest = await releaseManifest(repository, release, options);
|
|
23514
|
+
if (manifest.components[component2] !== version2)
|
|
23515
|
+
throw new Error(
|
|
23516
|
+
`No ${component2} was published for v${version2}; this release uses v${manifest.components[component2]}`
|
|
23517
|
+
);
|
|
23518
|
+
return { ...release, manifest };
|
|
23519
|
+
}
|
|
23520
|
+
|
|
23082
23521
|
// ../shared/src/node/control/update-authority.ts
|
|
23522
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23083
23523
|
var HostUpdateOnlyScope = class {
|
|
23084
23524
|
outgoing;
|
|
23085
23525
|
targetVersion;
|
|
@@ -23148,11 +23588,13 @@ var HostUpdateOnlyScope = class {
|
|
|
23148
23588
|
};
|
|
23149
23589
|
|
|
23150
23590
|
// ../shared/src/node/installation/capabilities.ts
|
|
23591
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23151
23592
|
import { constants as constants2 } from "node:fs";
|
|
23152
23593
|
import { open, realpath } from "node:fs/promises";
|
|
23153
23594
|
import { dirname as dirname3, join as join3 } from "node:path";
|
|
23154
23595
|
|
|
23155
23596
|
// ../shared/src/node/security.ts
|
|
23597
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23156
23598
|
import { createHash, randomBytes } from "node:crypto";
|
|
23157
23599
|
import {
|
|
23158
23600
|
chmodSync,
|
|
@@ -23395,60 +23837,13 @@ async function readInstalledCapabilities(root2) {
|
|
|
23395
23837
|
}
|
|
23396
23838
|
|
|
23397
23839
|
// ../shared/src/node/installation/boot.ts
|
|
23840
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23398
23841
|
import { execFile } from "node:child_process";
|
|
23399
23842
|
import { promisify } from "node:util";
|
|
23400
23843
|
var execute = promisify(execFile);
|
|
23401
23844
|
|
|
23402
|
-
// ../shared/src/node/releases/github.ts
|
|
23403
|
-
var assetSchema = external_exports.object({
|
|
23404
|
-
name: external_exports.string().min(1).max(256),
|
|
23405
|
-
browser_download_url: external_exports.string().max(2048).url().refine((value) => value.startsWith("https://"))
|
|
23406
|
-
});
|
|
23407
|
-
var releaseSchema = external_exports.object({
|
|
23408
|
-
tag_name: external_exports.string().max(129).regex(/^v?[0-9]+\.[0-9]+\.[0-9]+$/),
|
|
23409
|
-
draft: external_exports.literal(false).optional(),
|
|
23410
|
-
prerelease: external_exports.literal(false).optional(),
|
|
23411
|
-
assets: external_exports.array(assetSchema).max(1024).default([])
|
|
23412
|
-
});
|
|
23413
|
-
async function latestGitHubRelease(repository, options = {}) {
|
|
23414
|
-
releaseRepositorySchema.parse(repository);
|
|
23415
|
-
const timeout = AbortSignal.timeout(1e4);
|
|
23416
|
-
const signal = options.signal ? AbortSignal.any([timeout, options.signal]) : timeout;
|
|
23417
|
-
const response = await (options.fetchFn ?? fetch)(
|
|
23418
|
-
`https://api.github.com/repos/${repository}/releases/latest`,
|
|
23419
|
-
{
|
|
23420
|
-
headers: { accept: "application/vnd.github+json", "user-agent": "puddle" },
|
|
23421
|
-
signal
|
|
23422
|
-
}
|
|
23423
|
-
);
|
|
23424
|
-
if (!response.ok) {
|
|
23425
|
-
await response.body?.cancel().catch(() => {
|
|
23426
|
-
});
|
|
23427
|
-
throw new Error(`release lookup failed (HTTP ${response.status})`);
|
|
23428
|
-
}
|
|
23429
|
-
if (!response.body) throw new Error("Release lookup returned no body");
|
|
23430
|
-
const reader = response.body.getReader();
|
|
23431
|
-
const chunks = [];
|
|
23432
|
-
let size2 = 0;
|
|
23433
|
-
try {
|
|
23434
|
-
while (true) {
|
|
23435
|
-
signal.throwIfAborted();
|
|
23436
|
-
const { value, done } = await reader.read();
|
|
23437
|
-
if (done) break;
|
|
23438
|
-
size2 += value.byteLength;
|
|
23439
|
-
if (size2 > 1024 * 1024) throw new Error("Release metadata exceeds its limit");
|
|
23440
|
-
chunks.push(value);
|
|
23441
|
-
}
|
|
23442
|
-
const release = releaseSchema.parse(JSON.parse(Buffer.concat(chunks).toString("utf8")));
|
|
23443
|
-
return { version: release.tag_name.replace(/^v/, ""), assets: release.assets };
|
|
23444
|
-
} finally {
|
|
23445
|
-
await reader.cancel().catch(() => {
|
|
23446
|
-
});
|
|
23447
|
-
reader.releaseLock();
|
|
23448
|
-
}
|
|
23449
|
-
}
|
|
23450
|
-
|
|
23451
23845
|
// ../shared/src/node/releases/source.ts
|
|
23846
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23452
23847
|
function releaseRepository(env = process.env) {
|
|
23453
23848
|
const value = env.PUDDLE_REPO || (false ? void 0 : "PerceptronV/puddle-code");
|
|
23454
23849
|
const parsed = releaseRepositorySchema.safeParse(value);
|
|
@@ -23456,6 +23851,7 @@ function releaseRepository(env = process.env) {
|
|
|
23456
23851
|
}
|
|
23457
23852
|
|
|
23458
23853
|
// ../shared/src/node/installation/workers.ts
|
|
23854
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23459
23855
|
import { accessSync, constants as constants3, realpathSync as realpathSync2, statSync } from "node:fs";
|
|
23460
23856
|
import { dirname as dirname4, isAbsolute, join as join4 } from "node:path";
|
|
23461
23857
|
function updateWorkerExecutables(home, release) {
|
|
@@ -23480,7 +23876,23 @@ function updateWorkerExecutables(home, release) {
|
|
|
23480
23876
|
};
|
|
23481
23877
|
}
|
|
23482
23878
|
|
|
23879
|
+
// ../shared/src/node/installation/removal.ts
|
|
23880
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23881
|
+
|
|
23882
|
+
// ../shared/src/node/installation/removal-records.ts
|
|
23883
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23884
|
+
|
|
23885
|
+
// ../shared/src/node/installation/purge.ts
|
|
23886
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23887
|
+
|
|
23888
|
+
// ../shared/src/node/installation/participation.ts
|
|
23889
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23890
|
+
|
|
23891
|
+
// ../shared/src/node/control/updates.ts
|
|
23892
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23893
|
+
|
|
23483
23894
|
// ../shared/src/node/control/requests.ts
|
|
23895
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23484
23896
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
23485
23897
|
var HOST_CONTROL_REQUEST_LIMITS = {
|
|
23486
23898
|
pending: 4,
|
|
@@ -23550,6 +23962,7 @@ var HostUpdateRequests = class extends HostControlRequests {
|
|
|
23550
23962
|
};
|
|
23551
23963
|
|
|
23552
23964
|
// ../shared/src/node/installation/preparation.ts
|
|
23965
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23553
23966
|
var HostUpdatePreparationError = class extends Error {
|
|
23554
23967
|
constructor(code, message) {
|
|
23555
23968
|
super(message);
|
|
@@ -23609,6 +24022,7 @@ async function prepareHostUpdateOperation(input, deps) {
|
|
|
23609
24022
|
}
|
|
23610
24023
|
|
|
23611
24024
|
// ../shared/src/node/installation/stage-receipt.ts
|
|
24025
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23612
24026
|
function validateHostStageReceipt(value) {
|
|
23613
24027
|
const receipt = hostStageReceiptSchema.parse(value);
|
|
23614
24028
|
if (digest(`${JSON.stringify(receipt.record)}
|
|
@@ -23628,6 +24042,7 @@ function parseHostStageOutput(output, component2, version2) {
|
|
|
23628
24042
|
}
|
|
23629
24043
|
|
|
23630
24044
|
// ../shared/src/node/installation/recovery.ts
|
|
24045
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23631
24046
|
import { join as join5 } from "node:path";
|
|
23632
24047
|
function updateRecoveryDirectory(home, operationId) {
|
|
23633
24048
|
hostUpdateOperationSchema.shape.id.parse(operationId);
|
|
@@ -23663,6 +24078,7 @@ function inspectRecordedRecovery(home, operation2) {
|
|
|
23663
24078
|
}
|
|
23664
24079
|
|
|
23665
24080
|
// ../shared/src/node/installation/updates.ts
|
|
24081
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23666
24082
|
import { lstatSync as lstatSync2 } from "node:fs";
|
|
23667
24083
|
import { join as join6 } from "node:path";
|
|
23668
24084
|
function validateHostUpdateLedger(value) {
|
|
@@ -23969,6 +24385,7 @@ var HostControlClient = class {
|
|
|
23969
24385
|
init_types();
|
|
23970
24386
|
|
|
23971
24387
|
// src/lib/auth/control-channel.ts
|
|
24388
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23972
24389
|
init_types();
|
|
23973
24390
|
import { randomUUID as randomUUID3 } from "node:crypto";
|
|
23974
24391
|
import { connect as connect3 } from "node:net";
|
|
@@ -23977,6 +24394,7 @@ import { dirname as dirname5, join as join9 } from "node:path";
|
|
|
23977
24394
|
import { fileURLToPath } from "node:url";
|
|
23978
24395
|
|
|
23979
24396
|
// src/lib/auth/host-inspection.ts
|
|
24397
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
23980
24398
|
import { connect as connect2 } from "node:net";
|
|
23981
24399
|
init_types();
|
|
23982
24400
|
import { readFile } from "node:fs/promises";
|
|
@@ -24073,6 +24491,7 @@ async function inspectHostLocally(home) {
|
|
|
24073
24491
|
}
|
|
24074
24492
|
|
|
24075
24493
|
// src/lib/host/updates/inspection.ts
|
|
24494
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
24076
24495
|
function inspectStoredHostUpdate(home, input) {
|
|
24077
24496
|
const command = hostUpdateCommandSchema.parse(input);
|
|
24078
24497
|
if (command.action !== "status" || command.adoption_nonce)
|
|
@@ -24091,6 +24510,7 @@ function inspectStoredHostUpdate(home, input) {
|
|
|
24091
24510
|
}
|
|
24092
24511
|
|
|
24093
24512
|
// src/lib/host/updates/continuation.ts
|
|
24513
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
24094
24514
|
import { execFile as execFile2 } from "node:child_process";
|
|
24095
24515
|
import { join as join8 } from "node:path";
|
|
24096
24516
|
function supportsParticipatingRecovery(protocol2) {
|
|
@@ -24164,6 +24584,7 @@ async function continueStoredHostUpdate(home, input, participation) {
|
|
|
24164
24584
|
}
|
|
24165
24585
|
|
|
24166
24586
|
// src/lib/host/updates/channel.ts
|
|
24587
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
24167
24588
|
async function requestParticipatingUpdate(channel, command, signal, authorised) {
|
|
24168
24589
|
const requests = new HostUpdateRequests(channel);
|
|
24169
24590
|
const close = () => {
|
|
@@ -24357,6 +24778,7 @@ import { dirname as dirname15, join as join22 } from "node:path";
|
|
|
24357
24778
|
import { fileURLToPath as fileURLToPath5 } from "node:url";
|
|
24358
24779
|
|
|
24359
24780
|
// src/lib/serve/browser.ts
|
|
24781
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
24360
24782
|
import { spawn as spawn3 } from "node:child_process";
|
|
24361
24783
|
function openBrowser(url2, platform = process.platform) {
|
|
24362
24784
|
const command = platform === "darwin" ? { bin: "open", args: [url2] } : platform === "win32" ? { bin: "cmd", args: ["/c", "start", "", url2] } : { bin: "xdg-open", args: [url2] };
|
|
@@ -24372,6 +24794,7 @@ function openBrowser(url2, platform = process.platform) {
|
|
|
24372
24794
|
}
|
|
24373
24795
|
|
|
24374
24796
|
// src/lib/installation/component-versions.ts
|
|
24797
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
24375
24798
|
import {
|
|
24376
24799
|
existsSync as existsSync2,
|
|
24377
24800
|
mkdirSync as mkdirSync4,
|
|
@@ -24383,6 +24806,7 @@ import {
|
|
|
24383
24806
|
import { dirname as dirname8, join as join12, resolve as resolve2 } from "node:path";
|
|
24384
24807
|
|
|
24385
24808
|
// src/lib/installation/desktop-update.ts
|
|
24809
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
24386
24810
|
import { createHash as createHash2 } from "node:crypto";
|
|
24387
24811
|
import { spawn as spawn4 } from "node:child_process";
|
|
24388
24812
|
import { constants as constants4, createReadStream, createWriteStream } from "node:fs";
|
|
@@ -24393,11 +24817,12 @@ import { pipeline } from "node:stream/promises";
|
|
|
24393
24817
|
init_types();
|
|
24394
24818
|
|
|
24395
24819
|
// src/lib/version.ts
|
|
24820
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
24396
24821
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
24397
24822
|
import { dirname as dirname6, join as join10 } from "node:path";
|
|
24398
24823
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
24399
24824
|
function cliVersion() {
|
|
24400
|
-
if (true) return "0.4.
|
|
24825
|
+
if (true) return "0.4.9";
|
|
24401
24826
|
const here = dirname6(fileURLToPath2(import.meta.url));
|
|
24402
24827
|
for (const candidate of [
|
|
24403
24828
|
join10(here, "..", "..", "package.json"),
|
|
@@ -24412,7 +24837,10 @@ function cliVersion() {
|
|
|
24412
24837
|
return "0.0.0";
|
|
24413
24838
|
}
|
|
24414
24839
|
function pinnedDaemonVersion() {
|
|
24415
|
-
return
|
|
24840
|
+
return pinnedHostVersion("daemon");
|
|
24841
|
+
}
|
|
24842
|
+
function pinnedHostVersion(component2) {
|
|
24843
|
+
return typeof define_PUDDLE_COMPONENT_VERSIONS_default === "undefined" ? cliVersion() : define_PUDDLE_COMPONENT_VERSIONS_default[component2];
|
|
24416
24844
|
}
|
|
24417
24845
|
|
|
24418
24846
|
// src/lib/installation/desktop-update.ts
|
|
@@ -24801,7 +25229,8 @@ var RELEASE_PROTOCOLS = {
|
|
|
24801
25229
|
"0.4.5": { major: 26, minor: 1 },
|
|
24802
25230
|
"0.4.6": { major: 26, minor: 1 },
|
|
24803
25231
|
"0.4.7": { major: 26, minor: 1 },
|
|
24804
|
-
"0.4.8": { major: 26, minor: 1 }
|
|
25232
|
+
"0.4.8": { major: 26, minor: 1 },
|
|
25233
|
+
"0.4.9": { major: 26, minor: 3 }
|
|
24805
25234
|
};
|
|
24806
25235
|
function validProtocol(value) {
|
|
24807
25236
|
if (typeof value !== "object" || value === null) return false;
|
|
@@ -24948,12 +25377,18 @@ function formatComponentVersions(components) {
|
|
|
24948
25377
|
}
|
|
24949
25378
|
|
|
24950
25379
|
// src/lib/connection/connect.ts
|
|
25380
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
24951
25381
|
import { join as join17 } from "node:path";
|
|
24952
25382
|
|
|
24953
25383
|
// src/lib/connection/attached-daemon.ts
|
|
25384
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
24954
25385
|
import { randomUUID as randomUUID4 } from "node:crypto";
|
|
24955
25386
|
|
|
25387
|
+
// src/lib/auth/readiness.ts
|
|
25388
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
25389
|
+
|
|
24956
25390
|
// src/lib/transport/net.ts
|
|
25391
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
24957
25392
|
import { connect as connect4, createServer as createServer2 } from "node:net";
|
|
24958
25393
|
function findFreePort() {
|
|
24959
25394
|
return new Promise((resolve6, reject) => {
|
|
@@ -25191,6 +25626,7 @@ var AttachedDaemon = class {
|
|
|
25191
25626
|
};
|
|
25192
25627
|
|
|
25193
25628
|
// src/lib/connection/daemon-client.ts
|
|
25629
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
25194
25630
|
init_types();
|
|
25195
25631
|
var LIVE = /* @__PURE__ */ new Set(["starting", "running", "waiting_input"]);
|
|
25196
25632
|
var DaemonClient = class {
|
|
@@ -25260,7 +25696,11 @@ async function readDaemonPort(transport) {
|
|
|
25260
25696
|
return 7434;
|
|
25261
25697
|
}
|
|
25262
25698
|
|
|
25699
|
+
// src/lib/connection/cockpit.ts
|
|
25700
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
25701
|
+
|
|
25263
25702
|
// src/lib/installation/bootstrap.ts
|
|
25703
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
25264
25704
|
import { existsSync as existsSync3, readFileSync as readFileSync6 } from "node:fs";
|
|
25265
25705
|
import { dirname as dirname9, join as join13, resolve as resolve3 } from "node:path";
|
|
25266
25706
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
@@ -25285,7 +25725,7 @@ async function installHostComponent(transport, component2, opts = {}) {
|
|
|
25285
25725
|
}
|
|
25286
25726
|
async function bootstrapHostComponent(transport, component2, opts = {}, action = "install") {
|
|
25287
25727
|
const logger = opts.logger ?? silentLogger;
|
|
25288
|
-
const version2 = opts.version ??
|
|
25728
|
+
const version2 = opts.version ?? pinnedHostVersion(component2);
|
|
25289
25729
|
const args = ["--version", version2, "--component", component2];
|
|
25290
25730
|
if (action === "stage") args.push("--stage-only");
|
|
25291
25731
|
if (opts.tarball !== void 0 && !/^https?:\/\//.test(opts.tarball)) {
|
|
@@ -25321,6 +25761,17 @@ async function bootstrapHostComponent(transport, component2, opts = {}, action =
|
|
|
25321
25761
|
"pass --tarball <path> (pnpm build:tarball produces one) or set PUDDLE_REPO=owner/repo"
|
|
25322
25762
|
);
|
|
25323
25763
|
}
|
|
25764
|
+
if (action === "install" && component2 === "daemon") {
|
|
25765
|
+
const release = await componentReleaseAt(slug2, "daemon", version2);
|
|
25766
|
+
const runtimeVersion = release.manifest.components.runtime;
|
|
25767
|
+
if (runtimeVersion !== version2 && await installedVersion(transport, "runtime") === null)
|
|
25768
|
+
await bootstrapHostComponent(
|
|
25769
|
+
transport,
|
|
25770
|
+
"runtime",
|
|
25771
|
+
{ ...opts, version: runtimeVersion, repository: slug2 },
|
|
25772
|
+
"install"
|
|
25773
|
+
);
|
|
25774
|
+
}
|
|
25324
25775
|
args.push("--repo", slug2);
|
|
25325
25776
|
}
|
|
25326
25777
|
logger.info(
|
|
@@ -25367,6 +25818,7 @@ function readInstallScript() {
|
|
|
25367
25818
|
init_types();
|
|
25368
25819
|
|
|
25369
25820
|
// src/lib/installation/host/presence.ts
|
|
25821
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
25370
25822
|
init_types();
|
|
25371
25823
|
async function hasPersistentHostInstallation(transport) {
|
|
25372
25824
|
const markers = [
|
|
@@ -25388,6 +25840,7 @@ async function hasPersistentHostInstallation(transport) {
|
|
|
25388
25840
|
}
|
|
25389
25841
|
|
|
25390
25842
|
// src/lib/installation/host/start.ts
|
|
25843
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
25391
25844
|
init_types();
|
|
25392
25845
|
function startInstalledDaemon(transport, timeoutMs = 2e4) {
|
|
25393
25846
|
return startSelectedDaemon(transport, () => waitForStartedDaemon(transport, timeoutMs));
|
|
@@ -25416,12 +25869,15 @@ async function startSelectedDaemon(transport, observe2) {
|
|
|
25416
25869
|
}
|
|
25417
25870
|
|
|
25418
25871
|
// src/lib/installation/upgrade.ts
|
|
25872
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
25419
25873
|
init_types();
|
|
25420
25874
|
|
|
25421
25875
|
// src/lib/installation/host/upgrade.ts
|
|
25876
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
25422
25877
|
init_types();
|
|
25423
25878
|
|
|
25424
25879
|
// src/lib/installation/host/apply.ts
|
|
25880
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
25425
25881
|
import { setTimeout as delay } from "node:timers/promises";
|
|
25426
25882
|
init_types();
|
|
25427
25883
|
var reference2 = ({ id: id3, revision: revision2 }) => ({ id: id3, revision: revision2 });
|
|
@@ -25536,14 +25992,16 @@ async function applyHostUpdate(authority, initial, onProgress = () => {
|
|
|
25536
25992
|
}
|
|
25537
25993
|
|
|
25538
25994
|
// src/lib/installation/host/updates.ts
|
|
25995
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
25539
25996
|
init_types();
|
|
25540
25997
|
|
|
25541
25998
|
// src/lib/installation/host/staging.ts
|
|
25999
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
25542
26000
|
init_types();
|
|
25543
26001
|
async function stageHostComponent(transport, component2, options = {}) {
|
|
25544
26002
|
const output = await bootstrapHostComponent(transport, component2, options, "stage");
|
|
25545
26003
|
try {
|
|
25546
|
-
return parseHostStageOutput(output, component2, options.version ??
|
|
26004
|
+
return parseHostStageOutput(output, component2, options.version ?? pinnedHostVersion(component2));
|
|
25547
26005
|
} catch (error51) {
|
|
25548
26006
|
throw new CliError(
|
|
25549
26007
|
"not_installed",
|
|
@@ -25730,10 +26188,12 @@ async function detachedNohupWasReaped(transport) {
|
|
|
25730
26188
|
}
|
|
25731
26189
|
|
|
25732
26190
|
// src/lib/serve/ui-server.ts
|
|
26191
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
25733
26192
|
import { randomUUID as randomUUID5 } from "node:crypto";
|
|
25734
26193
|
import { createServer as createServer3 } from "node:http";
|
|
25735
26194
|
|
|
25736
26195
|
// src/lib/auth/launcher.ts
|
|
26196
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
25737
26197
|
import { connect as connect5 } from "node:net";
|
|
25738
26198
|
import { join as join14 } from "node:path";
|
|
25739
26199
|
function secretFile(home, path2) {
|
|
@@ -25800,6 +26260,7 @@ async function requestInvitation(home, path2) {
|
|
|
25800
26260
|
init_types();
|
|
25801
26261
|
|
|
25802
26262
|
// src/lib/serve/browser-authority.ts
|
|
26263
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
25803
26264
|
import { join as join15 } from "node:path";
|
|
25804
26265
|
var BrowserAuthority = class {
|
|
25805
26266
|
constructor(home, origin, target2, now = Date.now) {
|
|
@@ -25957,6 +26418,7 @@ var BrowserAuthority = class {
|
|
|
25957
26418
|
};
|
|
25958
26419
|
|
|
25959
26420
|
// src/lib/serve/http-auth.ts
|
|
26421
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
25960
26422
|
function json3(res, status, body) {
|
|
25961
26423
|
res.writeHead(status, { "content-type": "application/json", "cache-control": "no-store" });
|
|
25962
26424
|
res.end(JSON.stringify(body));
|
|
@@ -25983,6 +26445,7 @@ function exactOrigin(req, origin, required2 = false) {
|
|
|
25983
26445
|
}
|
|
25984
26446
|
|
|
25985
26447
|
// src/lib/serve/local-sync.ts
|
|
26448
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
25986
26449
|
import { mkdirSync as mkdirSync5, readFileSync as readFileSync7, renameSync as renameSync3, writeFileSync as writeFileSync3 } from "node:fs";
|
|
25987
26450
|
import { dirname as dirname10 } from "node:path";
|
|
25988
26451
|
var MAX_BODY_BYTES = 5 * 1024 * 1024;
|
|
@@ -26052,6 +26515,7 @@ function handleLocalSync(req, res, opts, authorised) {
|
|
|
26052
26515
|
}
|
|
26053
26516
|
|
|
26054
26517
|
// src/lib/serve/static.ts
|
|
26518
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
26055
26519
|
import { createReadStream as createReadStream2, existsSync as existsSync4, statSync as statSync2 } from "node:fs";
|
|
26056
26520
|
import { extname, join as join16, normalize, resolve as resolve4, sep } from "node:path";
|
|
26057
26521
|
var MIME = {
|
|
@@ -26106,7 +26570,14 @@ function createStaticHandler(rootDir) {
|
|
|
26106
26570
|
};
|
|
26107
26571
|
}
|
|
26108
26572
|
|
|
26573
|
+
// src/lib/serve/proxy-gateway.ts
|
|
26574
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
26575
|
+
|
|
26576
|
+
// src/lib/serve/proxy-recovery.ts
|
|
26577
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
26578
|
+
|
|
26109
26579
|
// src/lib/serve/guard.ts
|
|
26580
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
26110
26581
|
var LOCAL_HOSTNAMES = /* @__PURE__ */ new Set(["localhost", "127.0.0.1", "::1", "[::1]"]);
|
|
26111
26582
|
function hostnameOf(hostHeader) {
|
|
26112
26583
|
if (hostHeader.startsWith("[")) return hostHeader.slice(0, hostHeader.indexOf("]") + 1);
|
|
@@ -26135,10 +26606,12 @@ function recoverProxiedPath(referer, requestUrl) {
|
|
|
26135
26606
|
}
|
|
26136
26607
|
|
|
26137
26608
|
// src/lib/serve/proxy.ts
|
|
26609
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
26138
26610
|
import { request as httpRequest } from "node:http";
|
|
26139
26611
|
import { Transform } from "node:stream";
|
|
26140
26612
|
|
|
26141
26613
|
// src/lib/serve/access.ts
|
|
26614
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
26142
26615
|
function openAccess(access2, close) {
|
|
26143
26616
|
const resource = access2.authority.resource(close);
|
|
26144
26617
|
const unbind = access2.browsers.bind(access2.browser, close);
|
|
@@ -26411,6 +26884,7 @@ fetch('./exchange', {method:'POST',headers:{'content-type':'application/json'},b
|
|
|
26411
26884
|
}
|
|
26412
26885
|
|
|
26413
26886
|
// src/lib/serve/ws-bridge.ts
|
|
26887
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
26414
26888
|
init_wrapper();
|
|
26415
26889
|
var WsBridge = class {
|
|
26416
26890
|
constructor(browsers, authority, target2) {
|
|
@@ -26531,6 +27005,7 @@ var WsBridge = class {
|
|
|
26531
27005
|
};
|
|
26532
27006
|
|
|
26533
27007
|
// src/lib/serve/remote-access.ts
|
|
27008
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
26534
27009
|
function remoteAccessHandler(control) {
|
|
26535
27010
|
let busy = false;
|
|
26536
27011
|
return async (req, res, authorised) => {
|
|
@@ -26564,6 +27039,7 @@ function remoteAccessHandler(control) {
|
|
|
26564
27039
|
}
|
|
26565
27040
|
|
|
26566
27041
|
// src/lib/serve/remote-registration.ts
|
|
27042
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
26567
27043
|
async function checkRemoteRegistration(req, res, authorised) {
|
|
26568
27044
|
if (req.method !== "POST") return fail(res, 405, "method_not_allowed");
|
|
26569
27045
|
const { service: service2, code } = cockpitRegistrationCheckSchema.parse(await readJson(req));
|
|
@@ -26599,6 +27075,7 @@ async function checkRemoteRegistration(req, res, authorised) {
|
|
|
26599
27075
|
}
|
|
26600
27076
|
|
|
26601
27077
|
// src/lib/serve/file-manager.ts
|
|
27078
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
26602
27079
|
function fileManagerHandler(manager) {
|
|
26603
27080
|
let busy = false;
|
|
26604
27081
|
return async (req, res, authorised) => {
|
|
@@ -26627,6 +27104,7 @@ function fileManagerHandler(manager) {
|
|
|
26627
27104
|
}
|
|
26628
27105
|
|
|
26629
27106
|
// src/lib/serve/host-updates.ts
|
|
27107
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
26630
27108
|
function hostUpdatesHandler(control) {
|
|
26631
27109
|
let mutating = false;
|
|
26632
27110
|
let readers = 0;
|
|
@@ -26635,7 +27113,7 @@ function hostUpdatesHandler(control) {
|
|
|
26635
27113
|
if (req.method !== "GET" && req.method !== "POST") return fail(res, 405, "method_not_allowed");
|
|
26636
27114
|
const url2 = new URL(req.url, "http://localhost");
|
|
26637
27115
|
const query = cockpitHostUpdateQuerySchema.parse(Object.fromEntries(url2.searchParams));
|
|
26638
|
-
if (url2.searchParams.getAll(
|
|
27116
|
+
if ([...url2.searchParams.keys()].some((key) => url2.searchParams.getAll(key).length > 1) || req.method === "POST" && url2.search)
|
|
26639
27117
|
return fail(res, 400, "bad_request");
|
|
26640
27118
|
const request = req.method === "POST" ? cockpitHostUpdateRequestSchema.parse(await readJson(req)) : null;
|
|
26641
27119
|
if (!authorised()) return fail(res, 401, "browser_rejected");
|
|
@@ -26646,7 +27124,7 @@ function hostUpdatesHandler(control) {
|
|
|
26646
27124
|
if (request) mutating = true;
|
|
26647
27125
|
else readers++;
|
|
26648
27126
|
try {
|
|
26649
|
-
const result = request ? await control.request(request, authorised, signal) : await control.status(query.id, authorised, signal);
|
|
27127
|
+
const result = request ? await control.request(request, authorised, signal) : await control.status(query.id, authorised, signal, query.components === "1");
|
|
26650
27128
|
if (!authorised()) return fail(res, 401, "browser_rejected");
|
|
26651
27129
|
json3(res, 200, result);
|
|
26652
27130
|
} catch {
|
|
@@ -26874,6 +27352,7 @@ async function listen(server, startPort, strict, avoidPort) {
|
|
|
26874
27352
|
}
|
|
26875
27353
|
|
|
26876
27354
|
// src/lib/host/remote-access.ts
|
|
27355
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
26877
27356
|
var binary2 = `${hostPaths.current}/bin/node ${hostPaths.current}/daemon/connector.mjs`;
|
|
26878
27357
|
var RemoteAccessControl = class {
|
|
26879
27358
|
constructor(transport) {
|
|
@@ -26946,6 +27425,7 @@ var RemoteAccessControl = class {
|
|
|
26946
27425
|
};
|
|
26947
27426
|
|
|
26948
27427
|
// src/lib/host/updates/cockpit.ts
|
|
27428
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
26949
27429
|
var CockpitHostUpdates = class {
|
|
26950
27430
|
constructor(transport, authority) {
|
|
26951
27431
|
this.transport = transport;
|
|
@@ -26971,7 +27451,7 @@ var CockpitHostUpdates = class {
|
|
|
26971
27451
|
}
|
|
26972
27452
|
};
|
|
26973
27453
|
}
|
|
26974
|
-
async status(id3, authorised, signal) {
|
|
27454
|
+
async status(id3, authorised, signal, components = false) {
|
|
26975
27455
|
if (!authorised() || signal.aborted) throw new Error("Browser authorisation expired");
|
|
26976
27456
|
const generation = this.authority.generation;
|
|
26977
27457
|
const availability = this.authority.state !== "ready" ? "unavailable" : this.supports(7) ? "ready" : "upgrade_required";
|
|
@@ -26987,7 +27467,8 @@ var CockpitHostUpdates = class {
|
|
|
26987
27467
|
action: "status",
|
|
26988
27468
|
...id3 ? { id: id3 } : {},
|
|
26989
27469
|
...capabilities.continue_recovery ? { include_recovery: true } : {},
|
|
26990
|
-
...this.supports(14) ? { include_catalogue: true } : {}
|
|
27470
|
+
...this.supports(14) ? { include_catalogue: true } : {},
|
|
27471
|
+
...components && supportsApplicationFeature(this.authority.version?.protocol, { major: 26, minor: 2 }) ? { include_component_releases: true } : {}
|
|
26991
27472
|
})
|
|
26992
27473
|
) : availability === "unavailable" ? await inspectHostUpdate(this.transport, id3, true) : null;
|
|
26993
27474
|
if (!authorised() || signal.aborted) throw new Error("Browser authorisation expired");
|
|
@@ -27083,6 +27564,7 @@ var CockpitHostUpdates = class {
|
|
|
27083
27564
|
};
|
|
27084
27565
|
|
|
27085
27566
|
// src/lib/transport/tunnel.ts
|
|
27567
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
27086
27568
|
import { spawn as spawn5 } from "node:child_process";
|
|
27087
27569
|
init_types();
|
|
27088
27570
|
var RECONNECT_INITIAL_MS = 500;
|
|
@@ -27423,6 +27905,7 @@ async function closeRemoteResources(ui, oauthForward, endpoint, tunnel, ssh) {
|
|
|
27423
27905
|
}
|
|
27424
27906
|
|
|
27425
27907
|
// src/lib/logs.ts
|
|
27908
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
27426
27909
|
init_types();
|
|
27427
27910
|
async function showLogs(transport, opts) {
|
|
27428
27911
|
if (opts.session !== void 0) {
|
|
@@ -27430,6 +27913,7 @@ async function showLogs(transport, opts) {
|
|
|
27430
27913
|
const command2 = opts.follow ? `tail -f -c 262144 ${file2}` : `tail -c 262144 ${file2}`;
|
|
27431
27914
|
const result = await transport.exec(command2, {
|
|
27432
27915
|
onStdout: opts.write,
|
|
27916
|
+
capture: "stream",
|
|
27433
27917
|
...opts.follow ? {} : { timeoutMs: 3e4 }
|
|
27434
27918
|
});
|
|
27435
27919
|
if (result.code !== 0 && !opts.follow) {
|
|
@@ -27442,10 +27926,11 @@ async function showLogs(transport, opts) {
|
|
|
27442
27926
|
return;
|
|
27443
27927
|
}
|
|
27444
27928
|
const command = `if command -v journalctl >/dev/null 2>&1 && journalctl --user -u puddled -n 1 >/dev/null 2>&1; then journalctl --user -u puddled -n 200 --no-pager${opts.follow ? " -f" : ""}; elif [ -f ${hostPaths.logs}/puddled.out.log ]; then tail ${opts.follow ? "-f " : ""}-n 200 ${hostPaths.logs}/puddled.out.log ${hostPaths.logs}/puddled.err.log 2>/dev/null; else echo 'no daemon logs found \u2014 the daemon logs to its supervisor (journalctl --user -u puddled / ~/.puddle/logs)'; fi`;
|
|
27445
|
-
await transport.exec(command, { onStdout: opts.write });
|
|
27929
|
+
await transport.exec(command, { onStdout: opts.write, capture: "stream" });
|
|
27446
27930
|
}
|
|
27447
27931
|
|
|
27448
27932
|
// src/lib/registry.ts
|
|
27933
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
27449
27934
|
import { readdirSync, readFileSync as readFileSync8, rmSync as rmSync2 } from "node:fs";
|
|
27450
27935
|
import { join as join18 } from "node:path";
|
|
27451
27936
|
function cockpitsDir(env) {
|
|
@@ -27551,10 +28036,12 @@ function sanitise(record2) {
|
|
|
27551
28036
|
}
|
|
27552
28037
|
|
|
27553
28038
|
// src/lib/connection/start.ts
|
|
28039
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
27554
28040
|
import { join as join19 } from "node:path";
|
|
27555
28041
|
init_types();
|
|
27556
28042
|
|
|
27557
28043
|
// src/lib/host/file-manager.ts
|
|
28044
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
27558
28045
|
import { execFile as execFile3, spawn as spawn6 } from "node:child_process";
|
|
27559
28046
|
import { lstat, stat } from "node:fs/promises";
|
|
27560
28047
|
import { dirname as dirname11, isAbsolute as isAbsolute2, win32 } from "node:path";
|
|
@@ -27682,6 +28169,7 @@ async function startLocal(opts) {
|
|
|
27682
28169
|
}
|
|
27683
28170
|
|
|
27684
28171
|
// src/lib/connection/status.ts
|
|
28172
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
27685
28173
|
var LIVE_FIRST = {
|
|
27686
28174
|
running: 0,
|
|
27687
28175
|
waiting_input: 1,
|
|
@@ -27705,12 +28193,17 @@ async function statusReport(client) {
|
|
|
27705
28193
|
// src/cli/run.ts
|
|
27706
28194
|
init_types();
|
|
27707
28195
|
|
|
28196
|
+
// src/cli/manage.ts
|
|
28197
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
28198
|
+
|
|
27708
28199
|
// src/cli/manage-cli.ts
|
|
28200
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
27709
28201
|
init_types();
|
|
27710
28202
|
import { spawn as spawn8 } from "node:child_process";
|
|
27711
28203
|
import { dirname as dirname13 } from "node:path";
|
|
27712
28204
|
|
|
27713
28205
|
// src/lib/installation/standalone-cli.ts
|
|
28206
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
27714
28207
|
init_types();
|
|
27715
28208
|
import { spawn as spawn7 } from "node:child_process";
|
|
27716
28209
|
import { existsSync as existsSync5, lstatSync as lstatSync3, readFileSync as readFileSync9, realpathSync as realpathSync4 } from "node:fs";
|
|
@@ -27885,6 +28378,7 @@ import { homedir as homedir2 } from "node:os";
|
|
|
27885
28378
|
import { join as join21 } from "node:path";
|
|
27886
28379
|
|
|
27887
28380
|
// src/lib/installation/releases.ts
|
|
28381
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
27888
28382
|
init_types();
|
|
27889
28383
|
async function latestReleaseVersion(opts = {}) {
|
|
27890
28384
|
const slug2 = releaseRepository();
|
|
@@ -27896,7 +28390,7 @@ async function latestReleaseVersion(opts = {}) {
|
|
|
27896
28390
|
);
|
|
27897
28391
|
}
|
|
27898
28392
|
try {
|
|
27899
|
-
return (await
|
|
28393
|
+
return (await latestComponentReleases(slug2, opts)).components[opts.component ?? "daemon"].version;
|
|
27900
28394
|
} catch (error51) {
|
|
27901
28395
|
throw new CliError(
|
|
27902
28396
|
"not_installed",
|
|
@@ -27907,6 +28401,7 @@ async function latestReleaseVersion(opts = {}) {
|
|
|
27907
28401
|
}
|
|
27908
28402
|
|
|
27909
28403
|
// src/lib/installation/remove-daemon.ts
|
|
28404
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
27910
28405
|
init_types();
|
|
27911
28406
|
async function sweepDirtyWorktrees(transport) {
|
|
27912
28407
|
const script = `
|
|
@@ -28002,6 +28497,7 @@ fi`;
|
|
|
28002
28497
|
}
|
|
28003
28498
|
|
|
28004
28499
|
// src/lib/transport/open.ts
|
|
28500
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
28005
28501
|
async function openHostTransport(host) {
|
|
28006
28502
|
const transport = host === void 0 || host === "local" ? new LocalTransport() : new SshTransport(host);
|
|
28007
28503
|
if (transport instanceof SshTransport) {
|
|
@@ -28019,9 +28515,11 @@ async function openHostTransport(host) {
|
|
|
28019
28515
|
init_types();
|
|
28020
28516
|
|
|
28021
28517
|
// src/lib/installation/host/restore.ts
|
|
28518
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
28022
28519
|
init_types();
|
|
28023
28520
|
|
|
28024
28521
|
// src/lib/installation/host/helper.ts
|
|
28522
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
28025
28523
|
init_types();
|
|
28026
28524
|
var selectedHostHelper = `${hostPaths.current}/bin/node ${hostPaths.current}/daemon/host-update.mjs --home ${hostPaths.home}`;
|
|
28027
28525
|
var removalFailure = () => new CliError(
|
|
@@ -28096,6 +28594,7 @@ async function restoreInstalledDaemon(transport) {
|
|
|
28096
28594
|
}
|
|
28097
28595
|
|
|
28098
28596
|
// src/cli/detach.ts
|
|
28597
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
28099
28598
|
import { spawn as spawn9 } from "node:child_process";
|
|
28100
28599
|
import { closeSync as closeSync2, mkdirSync as mkdirSync6, openSync as openSync2, readFileSync as readFileSync10 } from "node:fs";
|
|
28101
28600
|
import { dirname as dirname14 } from "node:path";
|
|
@@ -28247,9 +28746,11 @@ async function presentInvitation(record2, noBrowser, logger) {
|
|
|
28247
28746
|
}
|
|
28248
28747
|
|
|
28249
28748
|
// src/cli/manage-host-removal.ts
|
|
28749
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
28250
28750
|
init_types();
|
|
28251
28751
|
|
|
28252
28752
|
// src/lib/installation/host/remove.ts
|
|
28753
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
28253
28754
|
init_types();
|
|
28254
28755
|
import { randomUUID as randomUUID6 } from "node:crypto";
|
|
28255
28756
|
async function requireHostRemovalSupport(transport) {
|
|
@@ -28304,6 +28805,7 @@ async function finishHostRemoval(transport, input) {
|
|
|
28304
28805
|
}
|
|
28305
28806
|
|
|
28306
28807
|
// src/lib/installation/host/purge.ts
|
|
28808
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
28307
28809
|
import { randomUUID as randomUUID7 } from "node:crypto";
|
|
28308
28810
|
init_types();
|
|
28309
28811
|
function failure() {
|
|
@@ -28319,7 +28821,7 @@ async function requireHostPurgeSupport(transport) {
|
|
|
28319
28821
|
throw new CliError(
|
|
28320
28822
|
"upgrade_failed",
|
|
28321
28823
|
"This host does not support coordinated data purge",
|
|
28322
|
-
"Upgrade the daemon before purging
|
|
28824
|
+
"Coordinated purge was introduced in application 25.20 and requires a daemon compatible with this CLI. Upgrade the daemon before purging, or retain data with a compatible removal client."
|
|
28323
28825
|
);
|
|
28324
28826
|
}
|
|
28325
28827
|
async function inspectHostPurge(transport) {
|
|
@@ -28376,6 +28878,7 @@ async function applyHostPurge(transport, review, timeoutMs = 12e4) {
|
|
|
28376
28878
|
}
|
|
28377
28879
|
|
|
28378
28880
|
// src/cli/manage-host-purge.ts
|
|
28881
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
28379
28882
|
async function purgeRemovedHost(cmd, transport, logger, id3) {
|
|
28380
28883
|
const review = await prepareHostPurge(transport, id3);
|
|
28381
28884
|
if (review.phase === "reboot_required") {
|
|
@@ -28501,19 +29004,11 @@ function assertLocal(what, host, verb) {
|
|
|
28501
29004
|
`ssh into ${host} and run it there \u2014 user@host targets daemon and runtime components`
|
|
28502
29005
|
);
|
|
28503
29006
|
}
|
|
28504
|
-
async function resolveHostVersion(
|
|
28505
|
-
|
|
28506
|
-
return await latestReleaseVersion();
|
|
28507
|
-
} catch (e) {
|
|
28508
|
-
const pinned = pinnedDaemonVersion();
|
|
28509
|
-
logger.warn(
|
|
28510
|
-
`cannot resolve the newest release (${e instanceof Error ? e.message : String(e)}) \u2014 using this CLI's version train v${pinned}`
|
|
28511
|
-
);
|
|
28512
|
-
return pinned;
|
|
28513
|
-
}
|
|
29007
|
+
async function resolveHostVersion(component2 = "daemon") {
|
|
29008
|
+
return latestReleaseVersion({ component: component2 });
|
|
28514
29009
|
}
|
|
28515
29010
|
function pinWarning(logger, version2) {
|
|
28516
|
-
if (version2 ===
|
|
29011
|
+
if (version2 === pinnedDaemonVersion()) return;
|
|
28517
29012
|
logger.warn(
|
|
28518
29013
|
`pinning the daemon to v${version2} while this CLI is v${cliVersion()} \u2014 if the two speak different protocol majors, the next \`puddle launch\` will upgrade the daemon back (or refuse). Pin the CLI too (puddle upgrade cli@v${version2}) or launch with --no-upgrade.`
|
|
28519
29014
|
);
|
|
@@ -28550,7 +29045,7 @@ async function runInstall(cmd, logger) {
|
|
|
28550
29045
|
}
|
|
28551
29046
|
}
|
|
28552
29047
|
async function installDaemonAt(transport, explicit, tarball, logger, explicitPin = true) {
|
|
28553
|
-
const version2 = explicit ?? (tarball !== void 0 ? void 0 : await resolveHostVersion(
|
|
29048
|
+
const version2 = explicit ?? (tarball !== void 0 ? void 0 : await resolveHostVersion());
|
|
28554
29049
|
if (explicit !== void 0 && explicitPin) pinWarning(logger, explicit);
|
|
28555
29050
|
const result = await upgradeDaemon(transport, {
|
|
28556
29051
|
...version2 !== void 0 ? { version: version2 } : {},
|
|
@@ -28574,7 +29069,7 @@ Continue?`);
|
|
|
28574
29069
|
async function installRuntimeAt(transport, explicit, tarball, logger) {
|
|
28575
29070
|
if (tarball !== void 0 && explicit === void 0)
|
|
28576
29071
|
throw new CliError("bad_arguments", "A runtime --tarball requires an explicit @version");
|
|
28577
|
-
const version2 = explicit ?? await resolveHostVersion(
|
|
29072
|
+
const version2 = explicit ?? await resolveHostVersion("runtime");
|
|
28578
29073
|
const result = await upgradeHostComponent(transport, "runtime", { version: version2, tarball, logger });
|
|
28579
29074
|
logger.info(
|
|
28580
29075
|
`puddler default ${result.from ?? "(not installed)"} \u2192 ${result.to} on ${transport.label}; running runtimes keep their pinned build`
|
|
@@ -28615,9 +29110,9 @@ async function runUpgrade(cmd, logger) {
|
|
|
28615
29110
|
const runtimeInstalled2 = await installedVersion(transport2, "runtime") !== null;
|
|
28616
29111
|
if (runtimeInstalled2 && cmd.tarball !== void 0 && cmd.version === void 0)
|
|
28617
29112
|
throw new CliError("bad_arguments", "A runtime --tarball requires an explicit @version");
|
|
28618
|
-
const version2 = cmd.version ?? (cmd.tarball ? void 0 : await resolveHostVersion(
|
|
29113
|
+
const version2 = cmd.version ?? (cmd.tarball ? void 0 : await resolveHostVersion());
|
|
28619
29114
|
await installDaemonAt(transport2, version2, cmd.tarball, logger, cmd.version !== void 0);
|
|
28620
|
-
if (runtimeInstalled2) await installRuntimeAt(transport2,
|
|
29115
|
+
if (runtimeInstalled2) await installRuntimeAt(transport2, cmd.version, cmd.tarball, logger);
|
|
28621
29116
|
return 0;
|
|
28622
29117
|
} finally {
|
|
28623
29118
|
transport2.dispose();
|
|
@@ -28629,11 +29124,11 @@ async function runUpgrade(cmd, logger) {
|
|
|
28629
29124
|
if (runtimeInstalled && cmd.tarball !== void 0 && cmd.version === void 0)
|
|
28630
29125
|
throw new CliError("bad_arguments", "A runtime --tarball requires an explicit @version");
|
|
28631
29126
|
const desktopInstalled = process.platform === "darwin" && await findInstalledDesktopApp() !== null;
|
|
28632
|
-
const hostVersion2 = daemonInstalled || runtimeInstalled ? cmd.version ?? (cmd.tarball ? void 0 : await resolveHostVersion(
|
|
29127
|
+
const hostVersion2 = daemonInstalled || runtimeInstalled ? cmd.version ?? (cmd.tarball ? void 0 : await resolveHostVersion()) : cmd.version;
|
|
28633
29128
|
if (daemonInstalled)
|
|
28634
29129
|
await installDaemonAt(transport, hostVersion2, cmd.tarball, logger, cmd.version !== void 0);
|
|
28635
29130
|
else logger.info("no daemon installed on this machine \u2014 skipping (puddle install daemon)");
|
|
28636
|
-
if (runtimeInstalled) await installRuntimeAt(transport,
|
|
29131
|
+
if (runtimeInstalled) await installRuntimeAt(transport, cmd.version, cmd.tarball, logger);
|
|
28637
29132
|
if (desktopInstalled) await setDesktop({ version: cmd.version, verb: "upgrade" }, logger);
|
|
28638
29133
|
else if (process.platform === "darwin") logger.info("no desktop app installed \u2014 skipping");
|
|
28639
29134
|
return upgradeCli(cmd.version, logger);
|
|
@@ -28879,6 +29374,7 @@ async function removeDaemonCmd(cmd, logger) {
|
|
|
28879
29374
|
}
|
|
28880
29375
|
|
|
28881
29376
|
// src/cli/management/updates.ts
|
|
29377
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
28882
29378
|
init_types();
|
|
28883
29379
|
async function runUpdates(command, logger) {
|
|
28884
29380
|
const transport = await openHostTransport(command.host);
|
|
@@ -28969,6 +29465,7 @@ async function runUpdates(command, logger) {
|
|
|
28969
29465
|
}
|
|
28970
29466
|
|
|
28971
29467
|
// src/cli/output.ts
|
|
29468
|
+
init_define_PUDDLE_COMPONENT_VERSIONS();
|
|
28972
29469
|
function terminalLogger() {
|
|
28973
29470
|
return {
|
|
28974
29471
|
info(message) {
|