@powerhousedao/shared 6.2.3-dev.50 → 6.2.3-dev.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/clis/args/common-BXabdhiO.mjs.map +1 -1
- package/dist/clis/{build-config-CR5lvv_A.mjs → build-config-HbYUSZS1.mjs} +26 -5
- package/dist/clis/build-config-HbYUSZS1.mjs.map +1 -0
- package/dist/clis/build-config.d.mts +6 -0
- package/dist/clis/build-config.d.mts.map +1 -1
- package/dist/clis/build-config.mjs +1 -1
- package/dist/clis/build-pieces.d.mts +62 -2
- package/dist/clis/build-pieces.d.mts.map +1 -1
- package/dist/clis/build-pieces.mjs +189 -11
- package/dist/clis/build-pieces.mjs.map +1 -1
- package/dist/clis/constants.d.mts +2 -2
- package/dist/clis/constants.mjs +13 -2
- package/dist/clis/constants.mjs.map +1 -1
- package/dist/clis/index.d.mts +20 -1
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +355 -288
- package/dist/clis/index.mjs.map +1 -1
- package/dist/clis/{types-Cc_rB0Yx.d.mts → types-BZBiwi6I.d.mts} +17 -3
- package/dist/clis/types-BZBiwi6I.d.mts.map +1 -0
- package/dist/{config-loader-CXhzL512.js → config-loader-DpeoExZO.js} +3 -2
- package/dist/config-loader-DpeoExZO.js.map +1 -0
- package/dist/connect/config-loader.d.ts +1 -1
- package/dist/connect/config-loader.js +1 -1
- package/dist/connect/index.d.ts +6 -1
- package/dist/connect/index.d.ts.map +1 -1
- package/dist/connect/index.js +6 -1
- package/dist/connect/index.js.map +1 -1
- package/dist/{constants-C2K-m7pp.d.ts → constants-C6ket9Bn.d.ts} +2 -2
- package/dist/constants-C6ket9Bn.d.ts.map +1 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -0
- package/dist/constants.js.map +1 -1
- package/dist/document-drive/index.d.ts +3 -3
- package/dist/document-model/errors.d.ts +1 -1
- package/dist/document-model/index.d.ts +1 -1
- package/dist/document-model/index.js +1 -0
- package/dist/document-model/index.js.map +1 -1
- package/dist/{index-BhqNGLu9.d.ts → index-C3fD6cad.d.ts} +2 -2
- package/dist/{index-BhqNGLu9.d.ts.map → index-C3fD6cad.d.ts.map} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/processors/index.d.ts +1 -1
- package/dist/registry/index.d.ts +2 -2
- package/dist/registry/index.js.map +1 -1
- package/dist/registry/manifest-slim.d.ts +2 -2
- package/dist/{types-BTfv_ZzS.d.ts → types-CywupGpk.d.ts} +2 -2
- package/dist/{types-BTfv_ZzS.d.ts.map → types-CywupGpk.d.ts.map} +1 -1
- package/dist/{types-BRJfX8ck.d.ts → types-DDH6v2BE.d.ts} +8 -1
- package/dist/{types-BRJfX8ck.d.ts.map → types-DDH6v2BE.d.ts.map} +1 -1
- package/package.json +1 -1
- package/dist/clis/build-config-CR5lvv_A.mjs.map +0 -1
- package/dist/clis/types-Cc_rB0Yx.d.mts.map +0 -1
- package/dist/config-loader-CXhzL512.js.map +0 -1
- package/dist/constants-C2K-m7pp.d.ts.map +0 -1
package/dist/clis/index.mjs
CHANGED
|
@@ -74,6 +74,18 @@ const PROJECT_PORT_BAND_SIZE = 1e3;
|
|
|
74
74
|
const PROJECT_PORT_BAND_SWITCHBOARD = 7e3;
|
|
75
75
|
const PROJECT_PORT_BAND_STUDIO = 6e3;
|
|
76
76
|
const PROJECT_PORT_BAND_VETRA_CONNECT = 2e3;
|
|
77
|
+
/**
|
|
78
|
+
* Icon for the drives switchboard creates by default, inlined as a data URI.
|
|
79
|
+
*
|
|
80
|
+
* A remote URL is the wrong shape for this: the value is baked into the drive
|
|
81
|
+
* document and rendered by every Connect that opens it, so the icon only
|
|
82
|
+
* appears when that client can reach that host. A desktop or air-gapped install
|
|
83
|
+
* cannot, and the ipfs.io gateway this previously pointed at now answers 403
|
|
84
|
+
* regardless.
|
|
85
|
+
*
|
|
86
|
+
* The mark is drawn dark-on-light so it stays legible against either theme.
|
|
87
|
+
*/
|
|
88
|
+
const DEFAULT_DRIVE_ICON = "data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3E%3Crect%20width='16'%20height='16'%20rx='3'%20fill='%23F3F5F7'/%3E%3Cpath%20fill='%23343839'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.0059%200L3.41636%205.45646C2.44979%206.25682%202.3795%207.71452%203.26456%208.60418L5.54425%2010.8957C6.21311%2011.568%206.35783%2012.6012%205.89944%2013.4314L4.48126%2016H2.13333C0.955126%2016%200%2015.0449%200%2013.8667V2.13333C0%200.955126%200.955126%200%202.13333%200H10.0059ZM11.2436%200L10.0128%202.24221C9.55899%203.06891%209.70183%204.09549%2010.3641%204.7669L12.7825%207.21868C13.6656%208.11402%2013.5866%209.57512%2012.612%2010.37L5.70922%2016H13.8667C15.0449%2016%2016%2015.0449%2016%2013.8667V2.13333C16%200.955126%2015.0449%200%2013.8667%200H11.2436Z'/%3E%3C/svg%3E";
|
|
77
89
|
const DEFAULT_VETRA_DRIVE_ID = "vetra";
|
|
78
90
|
const MINIMUM_NODE_VERSION = "24.0.0";
|
|
79
91
|
const PH_BIN = "ph-cli-legacy";
|
|
@@ -178,7 +190,6 @@ const packageJsonExports = {
|
|
|
178
190
|
},
|
|
179
191
|
"./subgraphs": {
|
|
180
192
|
types: "./dist/types/subgraphs/index.d.ts",
|
|
181
|
-
browser: "./dist/browser/subgraphs/index.js",
|
|
182
193
|
node: "./dist/node/subgraphs/index.mjs"
|
|
183
194
|
},
|
|
184
195
|
"./processors": {
|
|
@@ -1600,7 +1611,7 @@ var require_js_tokens = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1600
1611
|
};
|
|
1601
1612
|
}));
|
|
1602
1613
|
//#endregion
|
|
1603
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
1614
|
+
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/identifier.js
|
|
1604
1615
|
var require_identifier = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1605
1616
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1606
1617
|
exports.isIdentifierChar = isIdentifierChar;
|
|
@@ -2608,7 +2619,7 @@ var require_identifier = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2608
2619
|
}
|
|
2609
2620
|
}));
|
|
2610
2621
|
//#endregion
|
|
2611
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
2622
|
+
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/keyword.js
|
|
2612
2623
|
var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2613
2624
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2614
2625
|
exports.isKeyword = isKeyword;
|
|
@@ -2687,7 +2698,7 @@ var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2687
2698
|
}
|
|
2688
2699
|
}));
|
|
2689
2700
|
//#endregion
|
|
2690
|
-
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.
|
|
2701
|
+
//#region ../../node_modules/.pnpm/@babel+helper-validator-identifier@7.29.7/node_modules/@babel/helper-validator-identifier/lib/index.js
|
|
2691
2702
|
var require_lib$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2692
2703
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2693
2704
|
Object.defineProperty(exports, "isIdentifierChar", {
|
|
@@ -4304,58 +4315,47 @@ var require_validate_npm_package_license = /* @__PURE__ */ __commonJSMin(((expor
|
|
|
4304
4315
|
};
|
|
4305
4316
|
}));
|
|
4306
4317
|
//#endregion
|
|
4307
|
-
//#region ../../node_modules/.pnpm/lru-cache@11.
|
|
4318
|
+
//#region ../../node_modules/.pnpm/lru-cache@11.5.0/node_modules/lru-cache/dist/commonjs/node/index.min.js
|
|
4308
4319
|
var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4320
|
+
var j = (c, t) => () => (t || c((t = { exports: {} }).exports, t), t.exports);
|
|
4321
|
+
var I = j((O) => {
|
|
4322
|
+
"use strict";
|
|
4323
|
+
Object.defineProperty(O, "__esModule", { value: !0 });
|
|
4324
|
+
O.tracing = O.metrics = void 0;
|
|
4325
|
+
var U = __require("node:diagnostics_channel");
|
|
4326
|
+
O.metrics = (0, U.channel)("lru-cache:metrics");
|
|
4327
|
+
O.tracing = (0, U.tracingChannel)("lru-cache");
|
|
4328
|
+
});
|
|
4329
|
+
var P = j((D) => {
|
|
4330
|
+
"use strict";
|
|
4331
|
+
Object.defineProperty(D, "__esModule", { value: !0 });
|
|
4332
|
+
D.defaultPerf = void 0;
|
|
4333
|
+
D.defaultPerf = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date;
|
|
4334
|
+
});
|
|
4309
4335
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
4310
4336
|
exports.LRUCache = void 0;
|
|
4311
|
-
var
|
|
4312
|
-
var
|
|
4313
|
-
var
|
|
4314
|
-
var
|
|
4315
|
-
|
|
4337
|
+
var g = I();
|
|
4338
|
+
var N = P();
|
|
4339
|
+
var C = () => g.metrics.hasSubscribers || g.tracing.hasSubscribers;
|
|
4340
|
+
var k = /* @__PURE__ */ new Set();
|
|
4341
|
+
var G = typeof process == "object" && process ? process : {};
|
|
4342
|
+
var V = (c, t, e, i) => {
|
|
4343
|
+
typeof G.emitWarning == "function" ? G.emitWarning(c, t, e, i) : console.error(`[${e}] ${t}: ${c}`);
|
|
4316
4344
|
};
|
|
4317
|
-
var
|
|
4318
|
-
var
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
onabort;
|
|
4322
|
-
_onabort = [];
|
|
4323
|
-
reason;
|
|
4324
|
-
aborted = !1;
|
|
4325
|
-
addEventListener(i, s) {
|
|
4326
|
-
this._onabort.push(s);
|
|
4327
|
-
}
|
|
4328
|
-
}, C = class {
|
|
4329
|
-
constructor() {
|
|
4330
|
-
t();
|
|
4331
|
-
}
|
|
4332
|
-
signal = new L();
|
|
4333
|
-
abort(i) {
|
|
4334
|
-
if (!this.signal.aborted) {
|
|
4335
|
-
this.signal.reason = i, this.signal.aborted = !0;
|
|
4336
|
-
for (let s of this.signal._onabort) s(i);
|
|
4337
|
-
this.signal.onabort?.(i);
|
|
4338
|
-
}
|
|
4339
|
-
}
|
|
4340
|
-
};
|
|
4341
|
-
let c = R.env?.LRU_CACHE_IGNORE_AC_WARNING !== "1", t = () => {
|
|
4342
|
-
c && (c = !1, I("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.", "NO_ABORT_CONTROLLER", "ENOTSUP", t));
|
|
4343
|
-
};
|
|
4344
|
-
}
|
|
4345
|
-
var x = (c) => !U.has(c);
|
|
4346
|
-
var y = (c) => c && c === Math.floor(c) && c > 0 && isFinite(c);
|
|
4347
|
-
var M = (c) => y(c) ? c <= Math.pow(2, 8) ? Uint8Array : c <= Math.pow(2, 16) ? Uint16Array : c <= Math.pow(2, 32) ? Uint32Array : c <= Number.MAX_SAFE_INTEGER ? z : null : null;
|
|
4348
|
-
var z = class extends Array {
|
|
4345
|
+
var q = (c) => !k.has(c);
|
|
4346
|
+
var T = (c) => !!c && c === Math.floor(c) && c > 0 && isFinite(c);
|
|
4347
|
+
var H = (c) => T(c) ? c <= Math.pow(2, 8) ? Uint8Array : c <= Math.pow(2, 16) ? Uint16Array : c <= Math.pow(2, 32) ? Uint32Array : c <= Number.MAX_SAFE_INTEGER ? W : null : null;
|
|
4348
|
+
var W = class extends Array {
|
|
4349
4349
|
constructor(t) {
|
|
4350
4350
|
super(t), this.fill(0);
|
|
4351
4351
|
}
|
|
4352
4352
|
};
|
|
4353
|
-
var
|
|
4353
|
+
var x = class c {
|
|
4354
4354
|
heap;
|
|
4355
4355
|
length;
|
|
4356
4356
|
static #o = !1;
|
|
4357
4357
|
static create(t) {
|
|
4358
|
-
let e =
|
|
4358
|
+
let e = H(t);
|
|
4359
4359
|
if (!e) return [];
|
|
4360
4360
|
c.#o = !0;
|
|
4361
4361
|
let i = new c(t, e);
|
|
@@ -4375,14 +4375,14 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4375
4375
|
exports.LRUCache = class c {
|
|
4376
4376
|
#o;
|
|
4377
4377
|
#c;
|
|
4378
|
-
#w;
|
|
4379
|
-
#C;
|
|
4380
|
-
#S;
|
|
4381
|
-
#L;
|
|
4382
|
-
#U;
|
|
4383
4378
|
#m;
|
|
4379
|
+
#W;
|
|
4380
|
+
#S;
|
|
4381
|
+
#M;
|
|
4382
|
+
#j;
|
|
4383
|
+
#w;
|
|
4384
4384
|
get perf() {
|
|
4385
|
-
return this.#
|
|
4385
|
+
return this.#w;
|
|
4386
4386
|
}
|
|
4387
4387
|
ttl;
|
|
4388
4388
|
ttlResolution;
|
|
@@ -4399,48 +4399,49 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4399
4399
|
allowStaleOnFetchAbort;
|
|
4400
4400
|
allowStaleOnFetchRejection;
|
|
4401
4401
|
ignoreFetchAbort;
|
|
4402
|
+
backgroundFetchSize;
|
|
4402
4403
|
#n;
|
|
4403
|
-
#
|
|
4404
|
+
#b;
|
|
4404
4405
|
#s;
|
|
4405
4406
|
#i;
|
|
4406
4407
|
#t;
|
|
4407
|
-
#a;
|
|
4408
|
-
#u;
|
|
4409
4408
|
#l;
|
|
4409
|
+
#u;
|
|
4410
|
+
#a;
|
|
4410
4411
|
#h;
|
|
4411
|
-
#
|
|
4412
|
+
#_;
|
|
4412
4413
|
#r;
|
|
4413
4414
|
#y;
|
|
4414
|
-
#
|
|
4415
|
+
#F;
|
|
4415
4416
|
#d;
|
|
4416
4417
|
#g;
|
|
4417
4418
|
#T;
|
|
4418
|
-
#
|
|
4419
|
+
#U;
|
|
4419
4420
|
#f;
|
|
4420
|
-
#
|
|
4421
|
+
#D;
|
|
4421
4422
|
static unsafeExposeInternals(t) {
|
|
4422
4423
|
return {
|
|
4423
|
-
starts: t.#
|
|
4424
|
+
starts: t.#F,
|
|
4424
4425
|
ttls: t.#d,
|
|
4425
4426
|
autopurgeTimers: t.#g,
|
|
4426
4427
|
sizes: t.#y,
|
|
4427
4428
|
keyMap: t.#s,
|
|
4428
4429
|
keyList: t.#i,
|
|
4429
4430
|
valList: t.#t,
|
|
4430
|
-
next: t.#
|
|
4431
|
+
next: t.#l,
|
|
4431
4432
|
prev: t.#u,
|
|
4432
4433
|
get head() {
|
|
4433
|
-
return t.#
|
|
4434
|
+
return t.#a;
|
|
4434
4435
|
},
|
|
4435
4436
|
get tail() {
|
|
4436
4437
|
return t.#h;
|
|
4437
4438
|
},
|
|
4438
|
-
free: t.#
|
|
4439
|
+
free: t.#_,
|
|
4439
4440
|
isBackgroundFetch: (e) => t.#e(e),
|
|
4440
|
-
backgroundFetch: (e, i, s, n) => t.#
|
|
4441
|
-
moveToTail: (e) => t.#
|
|
4442
|
-
indexes: (e) => t.#
|
|
4443
|
-
rindexes: (e) => t.#
|
|
4441
|
+
backgroundFetch: (e, i, s, n) => t.#G(e, i, s, n),
|
|
4442
|
+
moveToTail: (e) => t.#L(e),
|
|
4443
|
+
indexes: (e) => t.#A(e),
|
|
4444
|
+
rindexes: (e) => t.#z(e),
|
|
4444
4445
|
isStale: (e) => t.#p(e)
|
|
4445
4446
|
};
|
|
4446
4447
|
}
|
|
@@ -4451,188 +4452,190 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4451
4452
|
return this.#c;
|
|
4452
4453
|
}
|
|
4453
4454
|
get calculatedSize() {
|
|
4454
|
-
return this.#
|
|
4455
|
+
return this.#b;
|
|
4455
4456
|
}
|
|
4456
4457
|
get size() {
|
|
4457
4458
|
return this.#n;
|
|
4458
4459
|
}
|
|
4459
4460
|
get fetchMethod() {
|
|
4460
|
-
return this.#
|
|
4461
|
+
return this.#M;
|
|
4461
4462
|
}
|
|
4462
4463
|
get memoMethod() {
|
|
4463
|
-
return this.#
|
|
4464
|
+
return this.#j;
|
|
4464
4465
|
}
|
|
4465
4466
|
get dispose() {
|
|
4466
|
-
return this.#
|
|
4467
|
+
return this.#m;
|
|
4467
4468
|
}
|
|
4468
4469
|
get onInsert() {
|
|
4469
|
-
return this.#
|
|
4470
|
+
return this.#W;
|
|
4470
4471
|
}
|
|
4471
4472
|
get disposeAfter() {
|
|
4472
4473
|
return this.#S;
|
|
4473
4474
|
}
|
|
4474
4475
|
constructor(t) {
|
|
4475
|
-
let { max: e = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet:
|
|
4476
|
-
if (v !== void 0 && typeof v?.now != "function") throw new TypeError("perf option must have a now() method if specified");
|
|
4477
|
-
if (this.#
|
|
4478
|
-
let
|
|
4479
|
-
if (!
|
|
4480
|
-
if (this.#o = e, this.#c =
|
|
4476
|
+
let { max: e = 0, ttl: i, ttlResolution: s = 1, ttlAutopurge: n, updateAgeOnGet: r, updateAgeOnHas: h, allowStale: a, dispose: o, onInsert: d, disposeAfter: _, noDisposeOnSet: y, noUpdateTTL: u, maxSize: p = 0, maxEntrySize: f = 0, sizeCalculation: b, fetchMethod: l, memoMethod: S, noDeleteOnFetchRejection: F, noDeleteOnStaleGet: w, allowStaleOnFetchRejection: m, allowStaleOnFetchAbort: A, ignoreFetchAbort: z, backgroundFetchSize: M = 1, perf: v } = t;
|
|
4477
|
+
if (this.backgroundFetchSize = M, v !== void 0 && typeof v?.now != "function") throw new TypeError("perf option must have a now() method if specified");
|
|
4478
|
+
if (this.#w = v ?? N.defaultPerf, e !== 0 && !T(e)) throw new TypeError("max option must be a nonnegative integer");
|
|
4479
|
+
let E = e ? H(e) : Array;
|
|
4480
|
+
if (!E) throw new Error("invalid max value: " + e);
|
|
4481
|
+
if (this.#o = e, this.#c = p, this.maxEntrySize = f || this.#c, this.sizeCalculation = b, this.sizeCalculation) {
|
|
4481
4482
|
if (!this.#c && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
|
|
4482
4483
|
if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function");
|
|
4483
4484
|
}
|
|
4484
4485
|
if (S !== void 0 && typeof S != "function") throw new TypeError("memoMethod must be a function if defined");
|
|
4485
|
-
if (this.#
|
|
4486
|
-
if (this.#
|
|
4487
|
-
if (this.#c !== 0 && !
|
|
4488
|
-
if (!
|
|
4489
|
-
this.#
|
|
4486
|
+
if (this.#j = S, l !== void 0 && typeof l != "function") throw new TypeError("fetchMethod must be a function if specified");
|
|
4487
|
+
if (this.#M = l, this.#U = !!l, this.#s = /* @__PURE__ */ new Map(), this.#i = Array.from({ length: e }).fill(void 0), this.#t = Array.from({ length: e }).fill(void 0), this.#l = new E(e), this.#u = new E(e), this.#a = 0, this.#h = 0, this.#_ = x.create(e), this.#n = 0, this.#b = 0, typeof o == "function" && (this.#m = o), typeof d == "function" && (this.#W = d), typeof _ == "function" ? (this.#S = _, this.#r = []) : (this.#S = void 0, this.#r = void 0), this.#T = !!this.#m, this.#D = !!this.#W, this.#f = !!this.#S, this.noDisposeOnSet = !!y, this.noUpdateTTL = !!u, this.noDeleteOnFetchRejection = !!F, this.allowStaleOnFetchRejection = !!m, this.allowStaleOnFetchAbort = !!A, this.ignoreFetchAbort = !!z, this.maxEntrySize !== 0) {
|
|
4488
|
+
if (this.#c !== 0 && !T(this.#c)) throw new TypeError("maxSize must be a positive integer if specified");
|
|
4489
|
+
if (!T(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
|
|
4490
|
+
this.#X();
|
|
4490
4491
|
}
|
|
4491
|
-
if (this.allowStale = !!
|
|
4492
|
-
if (!
|
|
4493
|
-
this.#
|
|
4492
|
+
if (this.allowStale = !!a, this.noDeleteOnStaleGet = !!w, this.updateAgeOnGet = !!r, this.updateAgeOnHas = !!h, this.ttlResolution = T(s) || s === 0 ? s : 1, this.ttlAutopurge = !!n, this.ttl = i || 0, this.ttl) {
|
|
4493
|
+
if (!T(this.ttl)) throw new TypeError("ttl must be a positive integer if specified");
|
|
4494
|
+
this.#k();
|
|
4494
4495
|
}
|
|
4495
4496
|
if (this.#o === 0 && this.ttl === 0 && this.#c === 0) throw new TypeError("At least one of max, maxSize, or ttl is required");
|
|
4496
4497
|
if (!this.ttlAutopurge && !this.#o && !this.#c) {
|
|
4497
|
-
let
|
|
4498
|
-
|
|
4498
|
+
let R = "LRU_CACHE_UNBOUNDED";
|
|
4499
|
+
q(R) && (k.add(R), V("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.", "UnboundedCacheWarning", R, c));
|
|
4499
4500
|
}
|
|
4500
4501
|
}
|
|
4501
4502
|
getRemainingTTL(t) {
|
|
4502
4503
|
return this.#s.has(t) ? 1 / 0 : 0;
|
|
4503
4504
|
}
|
|
4504
|
-
#
|
|
4505
|
-
let t = new
|
|
4506
|
-
this.#d = t, this.#
|
|
4507
|
-
let i = this.ttlAutopurge ?
|
|
4508
|
-
this.#g = i, this.#
|
|
4509
|
-
e[h] =
|
|
4505
|
+
#k() {
|
|
4506
|
+
let t = new W(this.#o), e = new W(this.#o);
|
|
4507
|
+
this.#d = t, this.#F = e;
|
|
4508
|
+
let i = this.ttlAutopurge ? Array.from({ length: this.#o }) : void 0;
|
|
4509
|
+
this.#g = i, this.#H = (h, a, o = this.#w.now()) => {
|
|
4510
|
+
e[h] = a !== 0 ? o : 0, t[h] = a, s(h, a);
|
|
4510
4511
|
}, this.#R = (h) => {
|
|
4511
|
-
e[h] = t[h] !== 0 ? this.#
|
|
4512
|
+
e[h] = t[h] !== 0 ? this.#w.now() : 0, s(h, t[h]);
|
|
4512
4513
|
};
|
|
4513
|
-
let s = this.ttlAutopurge ? (h,
|
|
4514
|
-
if (i?.[h] && (clearTimeout(i[h]), i[h] = void 0),
|
|
4515
|
-
let
|
|
4516
|
-
this.#p(h) && this.#
|
|
4517
|
-
},
|
|
4518
|
-
|
|
4514
|
+
let s = this.ttlAutopurge ? (h, a) => {
|
|
4515
|
+
if (i?.[h] && (clearTimeout(i[h]), i[h] = void 0), a && a !== 0 && i) {
|
|
4516
|
+
let o = setTimeout(() => {
|
|
4517
|
+
this.#p(h) && this.#v(this.#i[h], "expire");
|
|
4518
|
+
}, a + 1);
|
|
4519
|
+
o.unref && o.unref(), i[h] = o;
|
|
4519
4520
|
}
|
|
4520
4521
|
} : () => {};
|
|
4521
|
-
this.#
|
|
4522
|
-
if (t[
|
|
4523
|
-
let
|
|
4524
|
-
if (!
|
|
4525
|
-
h.ttl =
|
|
4526
|
-
h.remainingTTL =
|
|
4522
|
+
this.#E = (h, a) => {
|
|
4523
|
+
if (t[a]) {
|
|
4524
|
+
let o = t[a], d = e[a];
|
|
4525
|
+
if (!o || !d) return;
|
|
4526
|
+
h.ttl = o, h.start = d, h.now = n || r();
|
|
4527
|
+
h.remainingTTL = o - (h.now - d);
|
|
4527
4528
|
}
|
|
4528
4529
|
};
|
|
4529
|
-
let n = 0,
|
|
4530
|
-
let h = this.#
|
|
4530
|
+
let n = 0, r = () => {
|
|
4531
|
+
let h = this.#w.now();
|
|
4531
4532
|
if (this.ttlResolution > 0) {
|
|
4532
4533
|
n = h;
|
|
4533
|
-
let
|
|
4534
|
-
|
|
4534
|
+
let a = setTimeout(() => n = 0, this.ttlResolution);
|
|
4535
|
+
a.unref && a.unref();
|
|
4535
4536
|
}
|
|
4536
4537
|
return h;
|
|
4537
4538
|
};
|
|
4538
4539
|
this.getRemainingTTL = (h) => {
|
|
4539
|
-
let
|
|
4540
|
-
if (
|
|
4541
|
-
let
|
|
4542
|
-
if (!
|
|
4543
|
-
return
|
|
4540
|
+
let a = this.#s.get(h);
|
|
4541
|
+
if (a === void 0) return 0;
|
|
4542
|
+
let o = t[a], d = e[a];
|
|
4543
|
+
if (!o || !d) return 1 / 0;
|
|
4544
|
+
return o - ((n || r()) - d);
|
|
4544
4545
|
}, this.#p = (h) => {
|
|
4545
|
-
let
|
|
4546
|
-
return !!
|
|
4546
|
+
let a = e[h], o = t[h];
|
|
4547
|
+
return !!o && !!a && (n || r()) - a > o;
|
|
4547
4548
|
};
|
|
4548
4549
|
}
|
|
4549
4550
|
#R = () => {};
|
|
4550
|
-
#
|
|
4551
|
-
#
|
|
4551
|
+
#E = () => {};
|
|
4552
|
+
#H = () => {};
|
|
4552
4553
|
#p = () => !1;
|
|
4553
|
-
#
|
|
4554
|
-
let t = new
|
|
4555
|
-
this.#
|
|
4556
|
-
this.#
|
|
4557
|
-
}, this.#
|
|
4558
|
-
if (
|
|
4559
|
-
|
|
4560
|
-
if (
|
|
4561
|
-
|
|
4562
|
-
|
|
4554
|
+
#X() {
|
|
4555
|
+
let t = new W(this.#o);
|
|
4556
|
+
this.#b = 0, this.#y = t, this.#C = (e) => {
|
|
4557
|
+
this.#b -= t[e], t[e] = 0;
|
|
4558
|
+
}, this.#N = (e, i, s, n) => {
|
|
4559
|
+
if (!T(s)) {
|
|
4560
|
+
if (this.#e(i)) return this.backgroundFetchSize;
|
|
4561
|
+
if (n) {
|
|
4562
|
+
if (typeof n != "function") throw new TypeError("sizeCalculation must be a function");
|
|
4563
|
+
if (s = n(i, e), !T(s)) throw new TypeError("sizeCalculation return invalid (expect positive integer)");
|
|
4564
|
+
} else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");
|
|
4565
|
+
}
|
|
4563
4566
|
return s;
|
|
4564
|
-
}, this.#
|
|
4567
|
+
}, this.#I = (e, i, s) => {
|
|
4565
4568
|
if (t[e] = i, this.#c) {
|
|
4566
4569
|
let n = this.#c - t[e];
|
|
4567
|
-
for (; this.#
|
|
4570
|
+
for (; this.#b > n;) this.#P(!0);
|
|
4568
4571
|
}
|
|
4569
|
-
this.#
|
|
4572
|
+
this.#b += t[e], s && (s.entrySize = i, s.totalCalculatedSize = this.#b);
|
|
4570
4573
|
};
|
|
4571
4574
|
}
|
|
4572
|
-
#
|
|
4573
|
-
#
|
|
4574
|
-
#
|
|
4575
|
+
#C = (t) => {};
|
|
4576
|
+
#I = (t, e, i) => {};
|
|
4577
|
+
#N = (t, e, i, s) => {
|
|
4575
4578
|
if (i || s) throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");
|
|
4576
4579
|
return 0;
|
|
4577
4580
|
};
|
|
4578
|
-
*#
|
|
4579
|
-
if (this.#n) for (let e = this.#h;
|
|
4581
|
+
*#A({ allowStale: t = this.allowStale } = {}) {
|
|
4582
|
+
if (this.#n) for (let e = this.#h; this.#V(e) && ((t || !this.#p(e)) && (yield e), e !== this.#a);) e = this.#u[e];
|
|
4580
4583
|
}
|
|
4581
|
-
*#
|
|
4582
|
-
if (this.#n) for (let e = this.#
|
|
4584
|
+
*#z({ allowStale: t = this.allowStale } = {}) {
|
|
4585
|
+
if (this.#n) for (let e = this.#a; this.#V(e) && ((t || !this.#p(e)) && (yield e), e !== this.#h);) e = this.#l[e];
|
|
4583
4586
|
}
|
|
4584
|
-
#
|
|
4587
|
+
#V(t) {
|
|
4585
4588
|
return t !== void 0 && this.#s.get(this.#i[t]) === t;
|
|
4586
4589
|
}
|
|
4587
4590
|
*entries() {
|
|
4588
|
-
for (let t of this.#
|
|
4591
|
+
for (let t of this.#A()) this.#t[t] !== void 0 && this.#i[t] !== void 0 && !this.#e(this.#t[t]) && (yield [this.#i[t], this.#t[t]]);
|
|
4589
4592
|
}
|
|
4590
4593
|
*rentries() {
|
|
4591
|
-
for (let t of this.#
|
|
4594
|
+
for (let t of this.#z()) this.#t[t] !== void 0 && this.#i[t] !== void 0 && !this.#e(this.#t[t]) && (yield [this.#i[t], this.#t[t]]);
|
|
4592
4595
|
}
|
|
4593
4596
|
*keys() {
|
|
4594
|
-
for (let t of this.#
|
|
4597
|
+
for (let t of this.#A()) {
|
|
4595
4598
|
let e = this.#i[t];
|
|
4596
4599
|
e !== void 0 && !this.#e(this.#t[t]) && (yield e);
|
|
4597
4600
|
}
|
|
4598
4601
|
}
|
|
4599
4602
|
*rkeys() {
|
|
4600
|
-
for (let t of this.#
|
|
4603
|
+
for (let t of this.#z()) {
|
|
4601
4604
|
let e = this.#i[t];
|
|
4602
4605
|
e !== void 0 && !this.#e(this.#t[t]) && (yield e);
|
|
4603
4606
|
}
|
|
4604
4607
|
}
|
|
4605
4608
|
*values() {
|
|
4606
|
-
for (let t of this.#
|
|
4609
|
+
for (let t of this.#A()) this.#t[t] !== void 0 && !this.#e(this.#t[t]) && (yield this.#t[t]);
|
|
4607
4610
|
}
|
|
4608
4611
|
*rvalues() {
|
|
4609
|
-
for (let t of this.#
|
|
4612
|
+
for (let t of this.#z()) this.#t[t] !== void 0 && !this.#e(this.#t[t]) && (yield this.#t[t]);
|
|
4610
4613
|
}
|
|
4611
4614
|
[Symbol.iterator]() {
|
|
4612
4615
|
return this.entries();
|
|
4613
4616
|
}
|
|
4614
4617
|
[Symbol.toStringTag] = "LRUCache";
|
|
4615
4618
|
find(t, e = {}) {
|
|
4616
|
-
for (let i of this.#
|
|
4619
|
+
for (let i of this.#A()) {
|
|
4617
4620
|
let s = this.#t[i], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
4618
|
-
if (n !== void 0 && t(n, this.#i[i], this)) return this
|
|
4621
|
+
if (n !== void 0 && t(n, this.#i[i], this)) return this.#x(this.#i[i], e);
|
|
4619
4622
|
}
|
|
4620
4623
|
}
|
|
4621
4624
|
forEach(t, e = this) {
|
|
4622
|
-
for (let i of this.#
|
|
4625
|
+
for (let i of this.#A()) {
|
|
4623
4626
|
let s = this.#t[i], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
4624
4627
|
n !== void 0 && t.call(e, n, this.#i[i], this);
|
|
4625
4628
|
}
|
|
4626
4629
|
}
|
|
4627
4630
|
rforEach(t, e = this) {
|
|
4628
|
-
for (let i of this.#
|
|
4631
|
+
for (let i of this.#z()) {
|
|
4629
4632
|
let s = this.#t[i], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
4630
4633
|
n !== void 0 && t.call(e, n, this.#i[i], this);
|
|
4631
4634
|
}
|
|
4632
4635
|
}
|
|
4633
4636
|
purgeStale() {
|
|
4634
4637
|
let t = !1;
|
|
4635
|
-
for (let e of this.#
|
|
4638
|
+
for (let e of this.#z({ allowStale: !0 })) this.#p(e) && (this.#v(this.#i[e], "expire"), t = !0);
|
|
4636
4639
|
return t;
|
|
4637
4640
|
}
|
|
4638
4641
|
info(t) {
|
|
@@ -4641,24 +4644,24 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4641
4644
|
let i = this.#t[e], s = this.#e(i) ? i.__staleWhileFetching : i;
|
|
4642
4645
|
if (s === void 0) return;
|
|
4643
4646
|
let n = { value: s };
|
|
4644
|
-
if (this.#d && this.#
|
|
4645
|
-
let
|
|
4646
|
-
if (
|
|
4647
|
+
if (this.#d && this.#F) {
|
|
4648
|
+
let r = this.#d[e], h = this.#F[e];
|
|
4649
|
+
if (r && h) n.ttl = r - (this.#w.now() - h), n.start = Date.now();
|
|
4647
4650
|
}
|
|
4648
4651
|
return this.#y && (n.size = this.#y[e]), n;
|
|
4649
4652
|
}
|
|
4650
4653
|
dump() {
|
|
4651
4654
|
let t = [];
|
|
4652
|
-
for (let e of this.#
|
|
4655
|
+
for (let e of this.#A({ allowStale: !0 })) {
|
|
4653
4656
|
let i = this.#i[e], s = this.#t[e], n = this.#e(s) ? s.__staleWhileFetching : s;
|
|
4654
4657
|
if (n === void 0 || i === void 0) continue;
|
|
4655
|
-
let
|
|
4656
|
-
if (this.#d && this.#
|
|
4657
|
-
|
|
4658
|
-
let h = this.#
|
|
4659
|
-
|
|
4658
|
+
let r = { value: n };
|
|
4659
|
+
if (this.#d && this.#F) {
|
|
4660
|
+
r.ttl = this.#d[e];
|
|
4661
|
+
let h = this.#w.now() - this.#F[e];
|
|
4662
|
+
r.start = Math.floor(Date.now() - h);
|
|
4660
4663
|
}
|
|
4661
|
-
this.#y && (
|
|
4664
|
+
this.#y && (r.size = this.#y[e]), t.unshift([i, r]);
|
|
4662
4665
|
}
|
|
4663
4666
|
return t;
|
|
4664
4667
|
}
|
|
@@ -4667,53 +4670,60 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4667
4670
|
for (let [e, i] of t) {
|
|
4668
4671
|
if (i.start) {
|
|
4669
4672
|
let s = Date.now() - i.start;
|
|
4670
|
-
i.start = this.#
|
|
4673
|
+
i.start = this.#w.now() - s;
|
|
4671
4674
|
}
|
|
4672
|
-
this
|
|
4675
|
+
this.#O(e, i.value, i);
|
|
4673
4676
|
}
|
|
4674
4677
|
}
|
|
4675
4678
|
set(t, e, i = {}) {
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4679
|
+
let { status: s = g.metrics.hasSubscribers ? {} : void 0 } = i;
|
|
4680
|
+
i.status = s, s && (s.op = "set", s.key = t, e !== void 0 && (s.value = e), s.cache = this);
|
|
4681
|
+
let n = this.#O(t, e, i);
|
|
4682
|
+
return s && g.metrics.hasSubscribers && g.metrics.publish(s), n;
|
|
4683
|
+
}
|
|
4684
|
+
#O(t, e, i, s) {
|
|
4685
|
+
let { ttl: n = this.ttl, start: r, noDisposeOnSet: h = this.noDisposeOnSet, sizeCalculation: a = this.sizeCalculation, status: o } = i, d = this.#e(e);
|
|
4686
|
+
if (e === void 0) return o && (o.set = "deleted"), this.delete(t), this;
|
|
4687
|
+
let { noUpdateTTL: _ = this.noUpdateTTL } = i;
|
|
4688
|
+
o && !d && (o.value = e);
|
|
4689
|
+
let y = this.#N(t, e, i.size || 0, a, o);
|
|
4690
|
+
if (this.maxEntrySize && y > this.maxEntrySize) return this.#v(t, "set"), o && (o.set = "miss", o.maxEntrySizeExceeded = !0), this;
|
|
4691
|
+
let u = this.#n === 0 ? void 0 : this.#s.get(t);
|
|
4692
|
+
if (u === void 0) u = this.#n === 0 ? this.#h : this.#_.length !== 0 ? this.#_.pop() : this.#n === this.#o ? this.#P(!1) : this.#n, this.#i[u] = t, this.#t[u] = e, this.#s.set(t, u), this.#l[this.#h] = u, this.#u[u] = this.#h, this.#h = u, this.#n++, this.#I(u, y, o), o && (o.set = "add"), _ = !1, this.#D && !d && this.#W?.(e, t, "add");
|
|
4681
4693
|
else {
|
|
4682
|
-
this.#
|
|
4683
|
-
let
|
|
4684
|
-
if (e !==
|
|
4685
|
-
if (
|
|
4686
|
-
|
|
4687
|
-
let { __staleWhileFetching:
|
|
4688
|
-
|
|
4689
|
-
|
|
4694
|
+
this.#L(u);
|
|
4695
|
+
let p = this.#t[u];
|
|
4696
|
+
if (e !== p) {
|
|
4697
|
+
if (!h) if (this.#e(p)) {
|
|
4698
|
+
p !== s && p.__abortController.abort(/* @__PURE__ */ new Error("replaced"));
|
|
4699
|
+
let { __staleWhileFetching: f } = p;
|
|
4700
|
+
f !== void 0 && f !== e && (this.#T && this.#m?.(f, t, "set"), this.#f && this.#r?.push([
|
|
4701
|
+
f,
|
|
4690
4702
|
t,
|
|
4691
4703
|
"set"
|
|
4692
4704
|
]));
|
|
4693
|
-
} else
|
|
4694
|
-
|
|
4705
|
+
} else this.#T && this.#m?.(p, t, "set"), this.#f && this.#r?.push([
|
|
4706
|
+
p,
|
|
4695
4707
|
t,
|
|
4696
4708
|
"set"
|
|
4697
|
-
])
|
|
4698
|
-
if (this.#
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
g !== void 0 && (r.oldValue = g);
|
|
4709
|
+
]);
|
|
4710
|
+
if (this.#C(u), this.#I(u, y, o), this.#t[u] = e, !d) {
|
|
4711
|
+
let f = p && this.#e(p) ? p.__staleWhileFetching : p, b = f === void 0 ? "add" : e !== f ? "replace" : "update";
|
|
4712
|
+
o && (o.set = b, f !== void 0 && (o.oldValue = f)), this.#D && this.onInsert?.(e, t, b);
|
|
4702
4713
|
}
|
|
4703
|
-
} else
|
|
4704
|
-
this.#I && this.onInsert?.(e, t, e === d ? "update" : "replace");
|
|
4714
|
+
} else d || (o && (o.set = "update"), this.#D && this.onInsert?.(e, t, "update"));
|
|
4705
4715
|
}
|
|
4706
|
-
if (
|
|
4707
|
-
let
|
|
4708
|
-
for (;
|
|
4716
|
+
if (n !== 0 && !this.#d && this.#k(), this.#d && (_ || this.#H(u, n, r), o && this.#E(o, u)), !h && this.#f && this.#r) {
|
|
4717
|
+
let p = this.#r, f;
|
|
4718
|
+
for (; f = p?.shift();) this.#S?.(...f);
|
|
4709
4719
|
}
|
|
4710
4720
|
return this;
|
|
4711
4721
|
}
|
|
4712
4722
|
pop() {
|
|
4713
4723
|
try {
|
|
4714
4724
|
for (; this.#n;) {
|
|
4715
|
-
let t = this.#t[this.#
|
|
4716
|
-
if (this.#
|
|
4725
|
+
let t = this.#t[this.#a];
|
|
4726
|
+
if (this.#P(!0), this.#e(t)) {
|
|
4717
4727
|
if (t.__staleWhileFetching) return t.__staleWhileFetching;
|
|
4718
4728
|
} else if (t !== void 0) return t;
|
|
4719
4729
|
}
|
|
@@ -4724,163 +4734,214 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4724
4734
|
}
|
|
4725
4735
|
}
|
|
4726
4736
|
}
|
|
4727
|
-
#
|
|
4728
|
-
let e = this.#
|
|
4729
|
-
|
|
4730
|
-
|
|
4737
|
+
#P(t) {
|
|
4738
|
+
let e = this.#a, i = this.#i[e], s = this.#t[e], n = this.#e(s);
|
|
4739
|
+
n && s.__abortController.abort(/* @__PURE__ */ new Error("evicted"));
|
|
4740
|
+
let r = n ? s.__staleWhileFetching : s;
|
|
4741
|
+
return (this.#T || this.#f) && r !== void 0 && (this.#T && this.#m?.(r, i, "evict"), this.#f && this.#r?.push([
|
|
4742
|
+
r,
|
|
4731
4743
|
i,
|
|
4732
4744
|
"evict"
|
|
4733
|
-
])), this.#
|
|
4745
|
+
])), this.#C(e), this.#g?.[e] && (clearTimeout(this.#g[e]), this.#g[e] = void 0), t && (this.#i[e] = void 0, this.#t[e] = void 0, this.#_.push(e)), this.#n === 1 ? (this.#a = this.#h = 0, this.#_.length = 0) : this.#a = this.#l[e], this.#s.delete(i), this.#n--, e;
|
|
4734
4746
|
}
|
|
4735
4747
|
has(t, e = {}) {
|
|
4748
|
+
let { status: i = g.metrics.hasSubscribers ? {} : void 0 } = e;
|
|
4749
|
+
e.status = i, i && (i.op = "has", i.key = t, i.cache = this);
|
|
4750
|
+
let s = this.#Y(t, e);
|
|
4751
|
+
return g.metrics.hasSubscribers && g.metrics.publish(i), s;
|
|
4752
|
+
}
|
|
4753
|
+
#Y(t, e = {}) {
|
|
4736
4754
|
let { updateAgeOnHas: i = this.updateAgeOnHas, status: s } = e, n = this.#s.get(t);
|
|
4737
4755
|
if (n !== void 0) {
|
|
4738
|
-
let
|
|
4739
|
-
if (this.#e(
|
|
4740
|
-
if (this.#p(n)) s && (s.has = "stale", this.#
|
|
4741
|
-
else return i && this.#R(n), s && (s.has = "hit", this.#
|
|
4756
|
+
let r = this.#t[n];
|
|
4757
|
+
if (this.#e(r) && r.__staleWhileFetching === void 0) return !1;
|
|
4758
|
+
if (this.#p(n)) s && (s.has = "stale", this.#E(s, n));
|
|
4759
|
+
else return i && this.#R(n), s && (s.has = "hit", this.#E(s, n)), !0;
|
|
4742
4760
|
} else s && (s.has = "miss");
|
|
4743
4761
|
return !1;
|
|
4744
4762
|
}
|
|
4745
4763
|
peek(t, e = {}) {
|
|
4746
|
-
let {
|
|
4747
|
-
|
|
4748
|
-
let
|
|
4749
|
-
return
|
|
4764
|
+
let { status: i = C() ? {} : void 0 } = e;
|
|
4765
|
+
i && (i.op = "peek", i.key = t, i.cache = this), e.status = i;
|
|
4766
|
+
let s = this.#J(t, e);
|
|
4767
|
+
return g.metrics.hasSubscribers && g.metrics.publish(i), s;
|
|
4768
|
+
}
|
|
4769
|
+
#J(t, e) {
|
|
4770
|
+
let { status: i, allowStale: s = this.allowStale } = e, n = this.#s.get(t);
|
|
4771
|
+
if (n === void 0 || !s && this.#p(n)) {
|
|
4772
|
+
i && (i.peek = n === void 0 ? "miss" : "stale");
|
|
4773
|
+
return;
|
|
4774
|
+
}
|
|
4775
|
+
let r = this.#t[n], h = this.#e(r) ? r.__staleWhileFetching : r;
|
|
4776
|
+
return i && (h !== void 0 ? (i.peek = "hit", i.value = h) : i.peek = "miss"), h;
|
|
4750
4777
|
}
|
|
4751
|
-
#
|
|
4778
|
+
#G(t, e, i, s) {
|
|
4752
4779
|
let n = e === void 0 ? void 0 : this.#t[e];
|
|
4753
4780
|
if (this.#e(n)) return n;
|
|
4754
|
-
let
|
|
4755
|
-
h?.addEventListener("abort", () =>
|
|
4756
|
-
let
|
|
4757
|
-
signal:
|
|
4781
|
+
let r = new AbortController(), { signal: h } = i;
|
|
4782
|
+
h?.addEventListener("abort", () => r.abort(h.reason), { signal: r.signal });
|
|
4783
|
+
let a = {
|
|
4784
|
+
signal: r.signal,
|
|
4758
4785
|
options: i,
|
|
4759
4786
|
context: s
|
|
4760
|
-
},
|
|
4761
|
-
let { aborted: l } =
|
|
4762
|
-
if (i.status && (l && !
|
|
4763
|
-
let
|
|
4764
|
-
return (
|
|
4765
|
-
},
|
|
4766
|
-
let { aborted: l } =
|
|
4767
|
-
if (this.#t[e] ===
|
|
4768
|
-
if (
|
|
4769
|
-
},
|
|
4770
|
-
let l = this.#
|
|
4771
|
-
|
|
4772
|
-
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (
|
|
4773
|
-
});
|
|
4787
|
+
}, o = (f, b = !1) => {
|
|
4788
|
+
let { aborted: l } = r.signal, S = i.ignoreFetchAbort && f !== void 0, F = i.ignoreFetchAbort || !!(i.allowStaleOnFetchAbort && f !== void 0);
|
|
4789
|
+
if (i.status && (l && !b ? (i.status.fetchAborted = !0, i.status.fetchError = r.signal.reason, S && (i.status.fetchAbortIgnored = !0)) : i.status.fetchResolved = !0), l && !S && !b) return _(r.signal.reason, F);
|
|
4790
|
+
let w = u, m = this.#t[e];
|
|
4791
|
+
return (m === u || m === void 0 && S && b) && (f === void 0 ? w.__staleWhileFetching !== void 0 ? this.#t[e] = w.__staleWhileFetching : this.#v(t, "fetch") : (i.status && (i.status.fetchUpdated = !0), this.#O(t, f, a.options, w))), f;
|
|
4792
|
+
}, d = (f) => (i.status && (i.status.fetchRejected = !0, i.status.fetchError = f), _(f, !1)), _ = (f, b) => {
|
|
4793
|
+
let { aborted: l } = r.signal, S = l && i.allowStaleOnFetchAbort, F = S || i.allowStaleOnFetchRejection, w = F || i.noDeleteOnFetchRejection, m = u;
|
|
4794
|
+
if (this.#t[e] === u && (!w || !b && m.__staleWhileFetching === void 0 ? this.#v(t, "fetch") : S || (this.#t[e] = m.__staleWhileFetching)), F) return i.status && m.__staleWhileFetching !== void 0 && (i.status.returnedStale = !0), m.__staleWhileFetching;
|
|
4795
|
+
if (m.__returned === m) throw f;
|
|
4796
|
+
}, y = (f, b) => {
|
|
4797
|
+
let l = this.#M?.(t, n, a);
|
|
4798
|
+
r.signal.addEventListener("abort", () => {
|
|
4799
|
+
(!i.ignoreFetchAbort || i.allowStaleOnFetchAbort) && (f(void 0), i.allowStaleOnFetchAbort && (f = (S) => o(S, !0)));
|
|
4800
|
+
}), l && l instanceof Promise ? l.then((S) => f(S === void 0 ? void 0 : S), b) : l !== void 0 && f(l);
|
|
4774
4801
|
};
|
|
4775
4802
|
i.status && (i.status.fetchDispatched = !0);
|
|
4776
|
-
let
|
|
4777
|
-
__abortController:
|
|
4803
|
+
let u = new Promise(y).then(o, d), p = Object.assign(u, {
|
|
4804
|
+
__abortController: r,
|
|
4778
4805
|
__staleWhileFetching: n,
|
|
4779
4806
|
__returned: void 0
|
|
4780
4807
|
});
|
|
4781
|
-
return e === void 0 ? (this
|
|
4782
|
-
...
|
|
4808
|
+
return e === void 0 ? (this.#O(t, p, {
|
|
4809
|
+
...a.options,
|
|
4783
4810
|
status: void 0
|
|
4784
|
-
}), e = this.#s.get(t)) : this.#t[e] =
|
|
4811
|
+
}), e = this.#s.get(t)) : this.#t[e] = p, p;
|
|
4785
4812
|
}
|
|
4786
4813
|
#e(t) {
|
|
4787
|
-
if (!this.#
|
|
4814
|
+
if (!this.#U) return !1;
|
|
4788
4815
|
let e = t;
|
|
4789
|
-
return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof
|
|
4816
|
+
return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof AbortController;
|
|
4817
|
+
}
|
|
4818
|
+
fetch(t, e = {}) {
|
|
4819
|
+
let i = g.tracing.hasSubscribers, { status: s = C() ? {} : void 0 } = e;
|
|
4820
|
+
e.status = s, s && e.context && (s.context = e.context);
|
|
4821
|
+
let n = this.#q(t, e);
|
|
4822
|
+
return s && i && (s.trace = !0, g.tracing.tracePromise(() => n, s).catch(() => {})), n;
|
|
4790
4823
|
}
|
|
4791
|
-
async
|
|
4792
|
-
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl:
|
|
4793
|
-
if (!this.#
|
|
4824
|
+
async #q(t, e = {}) {
|
|
4825
|
+
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, ttl: r = this.ttl, noDisposeOnSet: h = this.noDisposeOnSet, size: a = 0, sizeCalculation: o = this.sizeCalculation, noUpdateTTL: d = this.noUpdateTTL, noDeleteOnFetchRejection: _ = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: y = this.allowStaleOnFetchRejection, ignoreFetchAbort: u = this.ignoreFetchAbort, allowStaleOnFetchAbort: p = this.allowStaleOnFetchAbort, context: f, forceRefresh: b = !1, status: l, signal: S } = e;
|
|
4826
|
+
if (l && (l.op = "fetch", l.key = t, b && (l.forceRefresh = !0), l.cache = this), !this.#U) return l && (l.fetch = "get"), this.#x(t, {
|
|
4794
4827
|
allowStale: i,
|
|
4795
4828
|
updateAgeOnGet: s,
|
|
4796
4829
|
noDeleteOnStaleGet: n,
|
|
4797
4830
|
status: l
|
|
4798
4831
|
});
|
|
4799
|
-
let
|
|
4832
|
+
let F = {
|
|
4800
4833
|
allowStale: i,
|
|
4801
4834
|
updateAgeOnGet: s,
|
|
4802
4835
|
noDeleteOnStaleGet: n,
|
|
4803
|
-
ttl:
|
|
4836
|
+
ttl: r,
|
|
4804
4837
|
noDisposeOnSet: h,
|
|
4805
|
-
size:
|
|
4806
|
-
sizeCalculation:
|
|
4807
|
-
noUpdateTTL:
|
|
4808
|
-
noDeleteOnFetchRejection:
|
|
4809
|
-
allowStaleOnFetchRejection:
|
|
4810
|
-
allowStaleOnFetchAbort:
|
|
4811
|
-
ignoreFetchAbort:
|
|
4838
|
+
size: a,
|
|
4839
|
+
sizeCalculation: o,
|
|
4840
|
+
noUpdateTTL: d,
|
|
4841
|
+
noDeleteOnFetchRejection: _,
|
|
4842
|
+
allowStaleOnFetchRejection: y,
|
|
4843
|
+
allowStaleOnFetchAbort: p,
|
|
4844
|
+
ignoreFetchAbort: u,
|
|
4812
4845
|
status: l,
|
|
4813
4846
|
signal: S
|
|
4814
|
-
},
|
|
4815
|
-
if (
|
|
4847
|
+
}, w = this.#s.get(t);
|
|
4848
|
+
if (w === void 0) {
|
|
4816
4849
|
l && (l.fetch = "miss");
|
|
4817
|
-
let
|
|
4818
|
-
return
|
|
4850
|
+
let m = this.#G(t, w, F, f);
|
|
4851
|
+
return m.__returned = m;
|
|
4819
4852
|
} else {
|
|
4820
|
-
let
|
|
4821
|
-
if (this.#e(
|
|
4822
|
-
let E = i &&
|
|
4823
|
-
return l && (l.fetch = "inflight", E && (l.returnedStale = !0)), E ?
|
|
4853
|
+
let m = this.#t[w];
|
|
4854
|
+
if (this.#e(m)) {
|
|
4855
|
+
let E = i && m.__staleWhileFetching !== void 0;
|
|
4856
|
+
return l && (l.fetch = "inflight", E && (l.returnedStale = !0)), E ? m.__staleWhileFetching : m.__returned = m;
|
|
4824
4857
|
}
|
|
4825
|
-
let
|
|
4826
|
-
if (!
|
|
4827
|
-
let
|
|
4828
|
-
return l && (l.fetch =
|
|
4858
|
+
let A = this.#p(w);
|
|
4859
|
+
if (!b && !A) return l && (l.fetch = "hit"), this.#L(w), s && this.#R(w), l && this.#E(l, w), m;
|
|
4860
|
+
let z = this.#G(t, w, F, f), v = z.__staleWhileFetching !== void 0 && i;
|
|
4861
|
+
return l && (l.fetch = A ? "stale" : "refresh", v && A && (l.returnedStale = !0)), v ? z.__staleWhileFetching : z.__returned = z;
|
|
4829
4862
|
}
|
|
4830
4863
|
}
|
|
4831
|
-
|
|
4832
|
-
let i =
|
|
4864
|
+
forceFetch(t, e = {}) {
|
|
4865
|
+
let i = g.tracing.hasSubscribers, { status: s = C() ? {} : void 0 } = e;
|
|
4866
|
+
e.status = s, s && e.context && (s.context = e.context);
|
|
4867
|
+
let n = this.#K(t, e);
|
|
4868
|
+
return s && i && (s.trace = !0, g.tracing.tracePromise(() => n, s).catch(() => {})), n;
|
|
4869
|
+
}
|
|
4870
|
+
async #K(t, e = {}) {
|
|
4871
|
+
let i = await this.#q(t, e);
|
|
4833
4872
|
if (i === void 0) throw new Error("fetch() returned undefined");
|
|
4834
4873
|
return i;
|
|
4835
4874
|
}
|
|
4836
4875
|
memo(t, e = {}) {
|
|
4837
|
-
let i =
|
|
4876
|
+
let { status: i = g.metrics.hasSubscribers ? {} : void 0 } = e;
|
|
4877
|
+
e.status = i, i && (i.op = "memo", i.key = t, e.context && (i.context = e.context), i.cache = this);
|
|
4878
|
+
let s = this.#Q(t, e);
|
|
4879
|
+
return i && (i.value = s), g.metrics.hasSubscribers && g.metrics.publish(i), s;
|
|
4880
|
+
}
|
|
4881
|
+
#Q(t, e = {}) {
|
|
4882
|
+
let i = this.#j;
|
|
4838
4883
|
if (!i) throw new Error("no memoMethod provided to constructor");
|
|
4839
|
-
let { context: s,
|
|
4840
|
-
|
|
4841
|
-
let
|
|
4842
|
-
|
|
4884
|
+
let { context: s, status: n, forceRefresh: r, ...h } = e;
|
|
4885
|
+
n && r && (n.forceRefresh = !0);
|
|
4886
|
+
let a = this.#x(t, h), o = r || a === void 0;
|
|
4887
|
+
if (n && (n.memo = o ? "miss" : "hit", o || (n.value = a)), !o) return a;
|
|
4888
|
+
let d = i(t, a, {
|
|
4889
|
+
options: h,
|
|
4843
4890
|
context: s
|
|
4844
4891
|
});
|
|
4845
|
-
return this
|
|
4892
|
+
return n && (n.value = d), this.#O(t, d, h), d;
|
|
4846
4893
|
}
|
|
4847
4894
|
get(t, e = {}) {
|
|
4848
|
-
let {
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4895
|
+
let { status: i = g.metrics.hasSubscribers ? {} : void 0 } = e;
|
|
4896
|
+
e.status = i, i && (i.op = "get", i.key = t, i.cache = this);
|
|
4897
|
+
let s = this.#x(t, e);
|
|
4898
|
+
return i && (s !== void 0 && (i.value = s), g.metrics.hasSubscribers && g.metrics.publish(i)), s;
|
|
4899
|
+
}
|
|
4900
|
+
#x(t, e = {}) {
|
|
4901
|
+
let { allowStale: i = this.allowStale, updateAgeOnGet: s = this.updateAgeOnGet, noDeleteOnStaleGet: n = this.noDeleteOnStaleGet, status: r } = e, h = this.#s.get(t);
|
|
4902
|
+
if (h === void 0) {
|
|
4903
|
+
r && (r.get = "miss");
|
|
4904
|
+
return;
|
|
4905
|
+
}
|
|
4906
|
+
let a = this.#t[h], o = this.#e(a);
|
|
4907
|
+
return r && this.#E(r, h), this.#p(h) ? o ? (r && (r.get = "stale-fetching"), i && a.__staleWhileFetching !== void 0 ? (r && (r.returnedStale = !0), a.__staleWhileFetching) : void 0) : (n || this.#v(t, "expire"), r && (r.get = "stale"), i ? (r && (r.returnedStale = !0), a) : void 0) : (r && (r.get = o ? "fetching" : "hit"), this.#L(h), s && this.#R(h), o ? a.__staleWhileFetching : a);
|
|
4853
4908
|
}
|
|
4854
|
-
#
|
|
4855
|
-
this.#u[e] = t, this.#
|
|
4909
|
+
#B(t, e) {
|
|
4910
|
+
this.#u[e] = t, this.#l[t] = e;
|
|
4856
4911
|
}
|
|
4857
|
-
#
|
|
4858
|
-
t !== this.#h && (t === this.#
|
|
4912
|
+
#L(t) {
|
|
4913
|
+
t !== this.#h && (t === this.#a ? this.#a = this.#l[t] : this.#B(this.#u[t], this.#l[t]), this.#B(this.#h, t), this.#h = t);
|
|
4859
4914
|
}
|
|
4860
4915
|
delete(t) {
|
|
4861
|
-
return this.#
|
|
4862
|
-
}
|
|
4863
|
-
#
|
|
4916
|
+
return this.#v(t, "delete");
|
|
4917
|
+
}
|
|
4918
|
+
#v(t, e) {
|
|
4919
|
+
g.metrics.hasSubscribers && g.metrics.publish({
|
|
4920
|
+
op: "delete",
|
|
4921
|
+
delete: e,
|
|
4922
|
+
key: t,
|
|
4923
|
+
cache: this
|
|
4924
|
+
});
|
|
4864
4925
|
let i = !1;
|
|
4865
4926
|
if (this.#n !== 0) {
|
|
4866
4927
|
let s = this.#s.get(t);
|
|
4867
|
-
if (s !== void 0) if (this.#g?.[s] && (clearTimeout(this.#g?.[s]), this.#g[s] = void 0), i = !0, this.#n === 1) this
|
|
4928
|
+
if (s !== void 0) if (this.#g?.[s] && (clearTimeout(this.#g?.[s]), this.#g[s] = void 0), i = !0, this.#n === 1) this.#$(e);
|
|
4868
4929
|
else {
|
|
4869
|
-
this.#
|
|
4930
|
+
this.#C(s);
|
|
4870
4931
|
let n = this.#t[s];
|
|
4871
|
-
if (this.#e(n) ? n.__abortController.abort(/* @__PURE__ */ new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#
|
|
4932
|
+
if (this.#e(n) ? n.__abortController.abort(/* @__PURE__ */ new Error("deleted")) : (this.#T || this.#f) && (this.#T && this.#m?.(n, t, e), this.#f && this.#r?.push([
|
|
4872
4933
|
n,
|
|
4873
4934
|
t,
|
|
4874
4935
|
e
|
|
4875
4936
|
])), this.#s.delete(t), this.#i[s] = void 0, this.#t[s] = void 0, s === this.#h) this.#h = this.#u[s];
|
|
4876
|
-
else if (s === this.#
|
|
4937
|
+
else if (s === this.#a) this.#a = this.#l[s];
|
|
4877
4938
|
else {
|
|
4878
|
-
let
|
|
4879
|
-
this.#
|
|
4880
|
-
let h = this.#
|
|
4939
|
+
let r = this.#u[s];
|
|
4940
|
+
this.#l[r] = this.#l[s];
|
|
4941
|
+
let h = this.#l[s];
|
|
4881
4942
|
this.#u[h] = this.#u[s];
|
|
4882
4943
|
}
|
|
4883
|
-
this.#n--, this.#
|
|
4944
|
+
this.#n--, this.#_.push(s);
|
|
4884
4945
|
}
|
|
4885
4946
|
}
|
|
4886
4947
|
if (this.#f && this.#r?.length) {
|
|
@@ -4890,27 +4951,27 @@ var require_index_min = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4890
4951
|
return i;
|
|
4891
4952
|
}
|
|
4892
4953
|
clear() {
|
|
4893
|
-
return this
|
|
4954
|
+
return this.#$("delete");
|
|
4894
4955
|
}
|
|
4895
|
-
|
|
4896
|
-
for (let e of this.#
|
|
4956
|
+
#$(t) {
|
|
4957
|
+
for (let e of this.#z({ allowStale: !0 })) {
|
|
4897
4958
|
let i = this.#t[e];
|
|
4898
4959
|
if (this.#e(i)) i.__abortController.abort(/* @__PURE__ */ new Error("deleted"));
|
|
4899
4960
|
else {
|
|
4900
4961
|
let s = this.#i[e];
|
|
4901
|
-
this.#T && this.#
|
|
4962
|
+
this.#T && this.#m?.(i, s, t), this.#f && this.#r?.push([
|
|
4902
4963
|
i,
|
|
4903
4964
|
s,
|
|
4904
4965
|
t
|
|
4905
4966
|
]);
|
|
4906
4967
|
}
|
|
4907
4968
|
}
|
|
4908
|
-
if (this.#s.clear(), this.#t.fill(void 0), this.#i.fill(void 0), this.#d && this.#
|
|
4909
|
-
this.#d.fill(0), this.#
|
|
4969
|
+
if (this.#s.clear(), this.#t.fill(void 0), this.#i.fill(void 0), this.#d && this.#F) {
|
|
4970
|
+
this.#d.fill(0), this.#F.fill(0);
|
|
4910
4971
|
for (let e of this.#g ?? []) e !== void 0 && clearTimeout(e);
|
|
4911
4972
|
this.#g?.fill(void 0);
|
|
4912
4973
|
}
|
|
4913
|
-
if (this.#y && this.#y.fill(0), this.#
|
|
4974
|
+
if (this.#y && this.#y.fill(0), this.#a = 0, this.#h = 0, this.#_.length = 0, this.#b = 0, this.#n = 0, this.#f && this.#r) {
|
|
4914
4975
|
let e = this.#r, i;
|
|
4915
4976
|
for (; i = e?.shift();) this.#S?.(...i);
|
|
4916
4977
|
}
|
|
@@ -6384,6 +6445,7 @@ const PACKAGES_DEPENDENCIES = [
|
|
|
6384
6445
|
"@powerhousedao/reactor-hypercore",
|
|
6385
6446
|
"@powerhousedao/reactor-mcp",
|
|
6386
6447
|
"@powerhousedao/reactor-privacy",
|
|
6448
|
+
"@powerhousedao/reactor-router",
|
|
6387
6449
|
"@powerhousedao/reactor-workflow",
|
|
6388
6450
|
"@powerhousedao/registry",
|
|
6389
6451
|
"@powerhousedao/switchboard-gui",
|
|
@@ -6858,6 +6920,11 @@ const phConnectRuntimeConfigSchema = {
|
|
|
6858
6920
|
type: "boolean",
|
|
6859
6921
|
description: "Host the reactor in a shared worker instead of on the main thread. Off by default; the main-thread reactor stays the proven path until cutover is verified. Packaged deployments load the worker from the prebuilt bundle `ph connect build` emits under __reactor_worker__/ (the dev server builds it lazily at the same path); when that bundle is absent the feature reports itself unavailable instead of starting a worker that cannot load.",
|
|
6860
6922
|
default: false
|
|
6923
|
+
},
|
|
6924
|
+
multiReactor: {
|
|
6925
|
+
type: "boolean",
|
|
6926
|
+
description: "Opt-in multi-reactor routing. When on, Connect routes through the in-browser reactor plus remote backends instead of the single in-browser reactor. Off by default; the single-reactor path is unchanged.",
|
|
6927
|
+
default: false
|
|
6861
6928
|
}
|
|
6862
6929
|
}
|
|
6863
6930
|
},
|
|
@@ -7329,6 +7396,6 @@ function assertNodeVersion(nodeVersion = process.versions.node) {
|
|
|
7329
7396
|
if (lt(nodeVersion, "24.0.0")) throw new NodeVersionError(nodeVersion, MINIMUM_NODE_VERSION);
|
|
7330
7397
|
}
|
|
7331
7398
|
//#endregion
|
|
7332
|
-
export { AGENTS, ANALYTICS_ENGINE_CORE_PACKAGE, BOILERPLATE_ALLOWED_BUILDS, BOILERPLATE_DEPENDENCY_OVERRIDES, DEFAULT_CONFIG, DEFAULT_CONNECT_OUTDIR, DEFAULT_CONNECT_PREVIEW_PORT, DEFAULT_CONNECT_STUDIO_PORT, DEFAULT_EXPIRY_DAYS, DEFAULT_EXPIRY_SECONDS, DEFAULT_REGISTRY_LOGIN_EXPIRY, DEFAULT_REGISTRY_URL, DEFAULT_RENOWN_URL, DEFAULT_SWITCHBOARD_PORT, DEFAULT_TIMEOUT, DEFAULT_VETRA_CONNECT_PORT, DEFAULT_VETRA_DRIVE_ID, DRIVES_PRESERVE_STRATEGIES, FEATURE_DEPENDENCIES, GRAPHQL_PACKAGE, GRAPHQL_TAG_PACKAGE, HOME_DIR, LEGACY_LINT_FORMAT_DEPENDENCIES, LEGACY_LINT_FORMAT_FILES, LOG_LEVELS, MINIMUM_NODE_VERSION, NodeVersionError, PEER_EXTERNAL_DEPENDENCIES, PH_BIN, PH_GLOBAL_DIR_NAME, PH_GLOBAL_PROJECT_NAME, PIECES_FRAMEWORK_PACKAGE, POWERHOUSE_CONFIG_FILE, POWERHOUSE_GLOBAL_DIR, PROJECT_PORT_BAND_SIZE, PROJECT_PORT_BAND_STUDIO, PROJECT_PORT_BAND_SWITCHBOARD, PROJECT_PORT_BAND_VETRA_CONNECT, REACTOR_API_PACKAGE, SECONDS_IN_DAY, SERVICE_ACTIONS, SOURCE_CONFIG_SCHEMA_ID, VERSIONED_DEPENDENCIES, VERSIONED_DEV_DEPENDENCIES, VERSIONED_PEER_DEPENDENCIES, accessTokenArgs, assertNodeVersion, buildArgs, buildPnpmLink, commonArgs, commonServerArgs, connectArgs, connectBasePath, connectBuildArgs, connectConfigArgs, connectPreviewArgs, connectStudioArgs, debugArgs, defaultDrivesUrl, defaultManifest, directoryExists, directoryExistsSync, disableLocalPackages, drivesPreserveStrategy, externalDependencies, externalDevDependencies, fetchNpmVersionFromRegistryForTag, fetchPackageVersionFromNpmRegistry, fileExists, fileExistsSync, force, generateArgs, getConfig, getGlobalPowerhouseProjectDirPath, getLocalPowerhouseProjectDirPath, getPackageManagerAtPowerhouseProjectDirPath, getPackageManagerCommand, getPackageNameFromPackageJson, getPackageVersionFromPackageJson, getPhCliVersionInfo, getPhCmdVersionInfo, getPowerhouseProjectInfo, getPowerhouseProjectInstallCommand, getPowerhouseProjectUninstallCommand, getTagFromVersion, getTelemetryStatus, handleMutuallyExclusiveOptions, https, httpsCertFile, httpsKeyFile, initArgs, initCliTelemetry, injectPnpmAllowBuilds, inspectArgs, installArgs, isDirectory, isFile, isPowerhouseProject, listArgs, localPackage, logLevel, logVersionUpdate, loginArgs, lowestVersion, makeDependenciesWithVersions, makeVersionedDependencies, makeVersionedDependenciesMap, migrateArgs, packageJsonExports, packageManagerArgs, packageScripts, packages, parsePackageManager, parsePackageVersion, parseTag, phCliCommandNames, phCliHelpCommands, publishArgs, registryLoginArgs, renownNamespace, renownSwitchboardUrl, resolveConnectPortDefault, resolveSwitchboardPortDefault, resolveTelemetryConsent, runCmd, runUseLocal, serviceArgs, setTelemetryConsent, sourceConfigSchema, spawnAsync, switchboardArgs, uninstallArgs, unpublishArgs, vetraArgs, vetraSwitchboardArgs, writeFileEnsuringDir };
|
|
7399
|
+
export { AGENTS, ANALYTICS_ENGINE_CORE_PACKAGE, BOILERPLATE_ALLOWED_BUILDS, BOILERPLATE_DEPENDENCY_OVERRIDES, DEFAULT_CONFIG, DEFAULT_CONNECT_OUTDIR, DEFAULT_CONNECT_PREVIEW_PORT, DEFAULT_CONNECT_STUDIO_PORT, DEFAULT_DRIVE_ICON, DEFAULT_EXPIRY_DAYS, DEFAULT_EXPIRY_SECONDS, DEFAULT_REGISTRY_LOGIN_EXPIRY, DEFAULT_REGISTRY_URL, DEFAULT_RENOWN_URL, DEFAULT_SWITCHBOARD_PORT, DEFAULT_TIMEOUT, DEFAULT_VETRA_CONNECT_PORT, DEFAULT_VETRA_DRIVE_ID, DRIVES_PRESERVE_STRATEGIES, FEATURE_DEPENDENCIES, GRAPHQL_PACKAGE, GRAPHQL_TAG_PACKAGE, HOME_DIR, LEGACY_LINT_FORMAT_DEPENDENCIES, LEGACY_LINT_FORMAT_FILES, LOG_LEVELS, MINIMUM_NODE_VERSION, NodeVersionError, PEER_EXTERNAL_DEPENDENCIES, PH_BIN, PH_GLOBAL_DIR_NAME, PH_GLOBAL_PROJECT_NAME, PIECES_FRAMEWORK_PACKAGE, POWERHOUSE_CONFIG_FILE, POWERHOUSE_GLOBAL_DIR, PROJECT_PORT_BAND_SIZE, PROJECT_PORT_BAND_STUDIO, PROJECT_PORT_BAND_SWITCHBOARD, PROJECT_PORT_BAND_VETRA_CONNECT, REACTOR_API_PACKAGE, SECONDS_IN_DAY, SERVICE_ACTIONS, SOURCE_CONFIG_SCHEMA_ID, VERSIONED_DEPENDENCIES, VERSIONED_DEV_DEPENDENCIES, VERSIONED_PEER_DEPENDENCIES, accessTokenArgs, assertNodeVersion, buildArgs, buildPnpmLink, commonArgs, commonServerArgs, connectArgs, connectBasePath, connectBuildArgs, connectConfigArgs, connectPreviewArgs, connectStudioArgs, debugArgs, defaultDrivesUrl, defaultManifest, directoryExists, directoryExistsSync, disableLocalPackages, drivesPreserveStrategy, externalDependencies, externalDevDependencies, fetchNpmVersionFromRegistryForTag, fetchPackageVersionFromNpmRegistry, fileExists, fileExistsSync, force, generateArgs, getConfig, getGlobalPowerhouseProjectDirPath, getLocalPowerhouseProjectDirPath, getPackageManagerAtPowerhouseProjectDirPath, getPackageManagerCommand, getPackageNameFromPackageJson, getPackageVersionFromPackageJson, getPhCliVersionInfo, getPhCmdVersionInfo, getPowerhouseProjectInfo, getPowerhouseProjectInstallCommand, getPowerhouseProjectUninstallCommand, getTagFromVersion, getTelemetryStatus, handleMutuallyExclusiveOptions, https, httpsCertFile, httpsKeyFile, initArgs, initCliTelemetry, injectPnpmAllowBuilds, inspectArgs, installArgs, isDirectory, isFile, isPowerhouseProject, listArgs, localPackage, logLevel, logVersionUpdate, loginArgs, lowestVersion, makeDependenciesWithVersions, makeVersionedDependencies, makeVersionedDependenciesMap, migrateArgs, packageJsonExports, packageManagerArgs, packageScripts, packages, parsePackageManager, parsePackageVersion, parseTag, phCliCommandNames, phCliHelpCommands, publishArgs, registryLoginArgs, renownNamespace, renownSwitchboardUrl, resolveConnectPortDefault, resolveSwitchboardPortDefault, resolveTelemetryConsent, runCmd, runUseLocal, serviceArgs, setTelemetryConsent, sourceConfigSchema, spawnAsync, switchboardArgs, uninstallArgs, unpublishArgs, vetraArgs, vetraSwitchboardArgs, writeFileEnsuringDir };
|
|
7333
7400
|
|
|
7334
7401
|
//# sourceMappingURL=index.mjs.map
|