@rockcarver/frodo-cli 5.0.0-17 → 5.0.0-18
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 +15 -0
- package/dist/{EntityPickers-BBaotoyf.cjs → EntityPickers-Bf6jtoEv.cjs} +70 -43
- package/dist/EntityPickers-Bf6jtoEv.cjs.map +1 -0
- package/dist/{EscapableSelectPrompt-7MN9qBZW.cjs → EscapableSelectPrompt-CUNQdpTZ.cjs} +7 -2
- package/dist/{EscapableSelectPrompt-7MN9qBZW.cjs.map → EscapableSelectPrompt-CUNQdpTZ.cjs.map} +1 -1
- package/dist/{FrodoCommand-CiPz4vNf.cjs → FrodoCommand-D6wEggWy.cjs} +6 -6
- package/dist/{FrodoCommand-CiPz4vNf.cjs.map → FrodoCommand-D6wEggWy.cjs.map} +1 -1
- package/dist/{RealmPickers-eE__OjpO.cjs → RealmPickers-BFkBQzs2.cjs} +4 -4
- package/dist/{RealmPickers-eE__OjpO.cjs.map → RealmPickers-BFkBQzs2.cjs.map} +1 -1
- package/dist/{ResolveInteractiveInputs-nHHYA9VO.cjs → ResolveInteractiveInputs-Dto6u7DS.cjs} +46 -12
- package/dist/{ResolveInteractiveInputs-nHHYA9VO.cjs.map → ResolveInteractiveInputs-Dto6u7DS.cjs.map} +1 -1
- package/dist/app.cjs +25 -95
- package/dist/app.cjs.map +1 -1
- package/package.json +1 -1
- package/dist/EntityPickers-BBaotoyf.cjs.map +0 -1
package/dist/app.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-Ctb5zv51.cjs");
|
|
2
2
|
const require_Console = require("./Console-CwDdIYJS.cjs");
|
|
3
|
-
const require_FrodoCommand = require("./FrodoCommand-
|
|
4
|
-
const require_EscapableSelectPrompt = require("./EscapableSelectPrompt-
|
|
5
|
-
const require_ResolveInteractiveInputs = require("./ResolveInteractiveInputs-
|
|
6
|
-
const require_EntityPickers = require("./EntityPickers-
|
|
3
|
+
const require_FrodoCommand = require("./FrodoCommand-D6wEggWy.cjs");
|
|
4
|
+
const require_EscapableSelectPrompt = require("./EscapableSelectPrompt-CUNQdpTZ.cjs");
|
|
5
|
+
const require_ResolveInteractiveInputs = require("./ResolveInteractiveInputs-Dto6u7DS.cjs");
|
|
6
|
+
const require_EntityPickers = require("./EntityPickers-Bf6jtoEv.cjs");
|
|
7
7
|
const require_DefaultsStore = require("./DefaultsStore-Cb7yMNHY.cjs");
|
|
8
|
-
const require_RealmPickers = require("./RealmPickers-
|
|
8
|
+
const require_RealmPickers = require("./RealmPickers-BFkBQzs2.cjs");
|
|
9
9
|
const require_RealmOps = require("./RealmOps-BZputvLv.cjs");
|
|
10
10
|
let util = require("util");
|
|
11
11
|
util = require_rolldown_runtime.__toESM(util, 1);
|
|
@@ -1809,7 +1809,8 @@ function setup$401() {
|
|
|
1809
1809
|
search: subjectMatches,
|
|
1810
1810
|
searchFirst: {
|
|
1811
1811
|
when: () => subjects.tooMany(),
|
|
1812
|
-
message:
|
|
1812
|
+
message: "Search users:",
|
|
1813
|
+
hint: `The realm has ${SUBJECT_LIST_LIMIT} or more users. Type part of a username, first or last name or email, or a whole id.`,
|
|
1813
1814
|
load: (text) => subjects.search(text)
|
|
1814
1815
|
}
|
|
1815
1816
|
})]);
|
|
@@ -20692,7 +20693,7 @@ function setup$101() {
|
|
|
20692
20693
|
}
|
|
20693
20694
|
//#endregion
|
|
20694
20695
|
//#region package.json
|
|
20695
|
-
var version$1 = "5.0.0-
|
|
20696
|
+
var version$1 = "5.0.0-18";
|
|
20696
20697
|
//#endregion
|
|
20697
20698
|
//#region node_modules/@modelcontextprotocol/server/dist/chunk-Br0eD_fh.mjs
|
|
20698
20699
|
var __create = Object.create;
|
|
@@ -45551,7 +45552,7 @@ const { getVersion, getBuildTimestamp, getAllVersions } = require_Console.frodo.
|
|
|
45551
45552
|
* rather than a tsup build, since no bundler ever substitutes the
|
|
45552
45553
|
* identifier there.
|
|
45553
45554
|
*/
|
|
45554
|
-
const getCliBuildTimestamp = () => "2026-10-
|
|
45555
|
+
const getCliBuildTimestamp = () => "2026-10-30T13:08:26.812Z";
|
|
45555
45556
|
const VERSION_CACHE_FILE = `${os.default.homedir()}/.frodo/Versions.json`;
|
|
45556
45557
|
const VERSION_CHECK_INTERVAL = 86400;
|
|
45557
45558
|
const ENDPOINTS = [{
|
|
@@ -57193,17 +57194,6 @@ var requestPrototype = {
|
|
|
57193
57194
|
return this[getRequestCache]()[k]();
|
|
57194
57195
|
} });
|
|
57195
57196
|
});
|
|
57196
|
-
Object.defineProperty(requestPrototype, Symbol.for("nodejs.util.inspect.custom"), { value: function(depth, options, inspectFn) {
|
|
57197
|
-
return `Request (lightweight) ${inspectFn({
|
|
57198
|
-
method: this.method,
|
|
57199
|
-
url: this.url,
|
|
57200
|
-
headers: this.headers,
|
|
57201
|
-
nativeRequest: this[requestCache]
|
|
57202
|
-
}, {
|
|
57203
|
-
...options,
|
|
57204
|
-
depth: depth == null ? null : depth - 1
|
|
57205
|
-
})}`;
|
|
57206
|
-
} });
|
|
57207
57197
|
Object.setPrototypeOf(requestPrototype, Request$1.prototype);
|
|
57208
57198
|
var newRequest = (incoming, defaultHostname) => {
|
|
57209
57199
|
const req = Object.create(requestPrototype);
|
|
@@ -57255,16 +57245,19 @@ var Response2 = class _Response {
|
|
|
57255
57245
|
headers = new Headers(init.#init.headers);
|
|
57256
57246
|
}
|
|
57257
57247
|
} else this.#init = init;
|
|
57258
|
-
if (typeof body === "string" || typeof body?.getReader !== "undefined" || body instanceof Blob || body instanceof Uint8Array)
|
|
57259
|
-
init?.
|
|
57260
|
-
|
|
57261
|
-
|
|
57262
|
-
|
|
57248
|
+
if (typeof body === "string" || typeof body?.getReader !== "undefined" || body instanceof Blob || body instanceof Uint8Array) {
|
|
57249
|
+
headers ||= init?.headers || { "content-type": "text/plain; charset=UTF-8" };
|
|
57250
|
+
this[cacheKey] = [
|
|
57251
|
+
init?.status || 200,
|
|
57252
|
+
body,
|
|
57253
|
+
headers
|
|
57254
|
+
];
|
|
57255
|
+
}
|
|
57263
57256
|
}
|
|
57264
57257
|
get headers() {
|
|
57265
57258
|
const cache = this[cacheKey];
|
|
57266
57259
|
if (cache) {
|
|
57267
|
-
if (!(cache[2] instanceof Headers)) cache[2] = new Headers(cache[2]
|
|
57260
|
+
if (!(cache[2] instanceof Headers)) cache[2] = new Headers(cache[2]);
|
|
57268
57261
|
return cache[2];
|
|
57269
57262
|
}
|
|
57270
57263
|
return this[getResponseCache]().headers;
|
|
@@ -57302,17 +57295,6 @@ var Response2 = class _Response {
|
|
|
57302
57295
|
return this[getResponseCache]()[k]();
|
|
57303
57296
|
} });
|
|
57304
57297
|
});
|
|
57305
|
-
Object.defineProperty(Response2.prototype, Symbol.for("nodejs.util.inspect.custom"), { value: function(depth, options, inspectFn) {
|
|
57306
|
-
return `Response (lightweight) ${inspectFn({
|
|
57307
|
-
status: this.status,
|
|
57308
|
-
headers: this.headers,
|
|
57309
|
-
ok: this.ok,
|
|
57310
|
-
nativeResponse: this[responseCache]
|
|
57311
|
-
}, {
|
|
57312
|
-
...options,
|
|
57313
|
-
depth: depth == null ? null : depth - 1
|
|
57314
|
-
})}`;
|
|
57315
|
-
} });
|
|
57316
57298
|
Object.setPrototypeOf(Response2, GlobalResponse);
|
|
57317
57299
|
Object.setPrototypeOf(Response2.prototype, GlobalResponse.prototype);
|
|
57318
57300
|
async function readWithoutBlocking(readPromise) {
|
|
@@ -57363,42 +57345,6 @@ var buildOutgoingHttpHeaders = (headers) => {
|
|
|
57363
57345
|
var X_ALREADY_SENT = "x-hono-already-sent";
|
|
57364
57346
|
if (typeof global.crypto === "undefined") global.crypto = crypto$1.default;
|
|
57365
57347
|
var outgoingEnded = Symbol("outgoingEnded");
|
|
57366
|
-
var incomingDraining = Symbol("incomingDraining");
|
|
57367
|
-
var DRAIN_TIMEOUT_MS = 500;
|
|
57368
|
-
var MAX_DRAIN_BYTES = 67108864;
|
|
57369
|
-
var drainIncoming = (incoming) => {
|
|
57370
|
-
const incomingWithDrainState = incoming;
|
|
57371
|
-
if (incoming.destroyed || incomingWithDrainState[incomingDraining]) return;
|
|
57372
|
-
incomingWithDrainState[incomingDraining] = true;
|
|
57373
|
-
if (incoming instanceof http2.Http2ServerRequest) {
|
|
57374
|
-
try {
|
|
57375
|
-
incoming.stream?.close?.(http2.constants.NGHTTP2_NO_ERROR);
|
|
57376
|
-
} catch {}
|
|
57377
|
-
return;
|
|
57378
|
-
}
|
|
57379
|
-
let bytesRead = 0;
|
|
57380
|
-
const cleanup = () => {
|
|
57381
|
-
clearTimeout(timer);
|
|
57382
|
-
incoming.off("data", onData);
|
|
57383
|
-
incoming.off("end", cleanup);
|
|
57384
|
-
incoming.off("error", cleanup);
|
|
57385
|
-
};
|
|
57386
|
-
const forceClose = () => {
|
|
57387
|
-
cleanup();
|
|
57388
|
-
const socket = incoming.socket;
|
|
57389
|
-
if (socket && !socket.destroyed) socket.destroySoon();
|
|
57390
|
-
};
|
|
57391
|
-
const timer = setTimeout(forceClose, DRAIN_TIMEOUT_MS);
|
|
57392
|
-
timer.unref?.();
|
|
57393
|
-
const onData = (chunk) => {
|
|
57394
|
-
bytesRead += chunk.length;
|
|
57395
|
-
if (bytesRead > MAX_DRAIN_BYTES) forceClose();
|
|
57396
|
-
};
|
|
57397
|
-
incoming.on("data", onData);
|
|
57398
|
-
incoming.on("end", cleanup);
|
|
57399
|
-
incoming.on("error", cleanup);
|
|
57400
|
-
incoming.resume();
|
|
57401
|
-
};
|
|
57402
57348
|
var handleRequestError = () => new Response(null, { status: 400 });
|
|
57403
57349
|
var handleFetchError = (e) => new Response(null, { status: e instanceof Error && (e.name === "TimeoutError" || e.constructor.name === "TimeoutError") ? 504 : 500 });
|
|
57404
57350
|
var handleResponseError = (e, outgoing) => {
|
|
@@ -57416,24 +57362,10 @@ var flushHeaders = (outgoing) => {
|
|
|
57416
57362
|
};
|
|
57417
57363
|
var responseViaCache = async (res, outgoing) => {
|
|
57418
57364
|
let [status, body, header] = res[cacheKey];
|
|
57419
|
-
|
|
57420
|
-
if (
|
|
57421
|
-
else if (
|
|
57422
|
-
|
|
57423
|
-
header = buildOutgoingHttpHeaders(header);
|
|
57424
|
-
} else if (Array.isArray(header)) {
|
|
57425
|
-
const headerObj = new Headers(header);
|
|
57426
|
-
hasContentLength = headerObj.has("content-length");
|
|
57427
|
-
header = buildOutgoingHttpHeaders(headerObj);
|
|
57428
|
-
} else for (const key in header) if (key.length === 14 && key.toLowerCase() === "content-length") {
|
|
57429
|
-
hasContentLength = true;
|
|
57430
|
-
break;
|
|
57431
|
-
}
|
|
57432
|
-
if (!hasContentLength) {
|
|
57433
|
-
if (typeof body === "string") header["Content-Length"] = Buffer.byteLength(body);
|
|
57434
|
-
else if (body instanceof Uint8Array) header["Content-Length"] = body.byteLength;
|
|
57435
|
-
else if (body instanceof Blob) header["Content-Length"] = body.size;
|
|
57436
|
-
}
|
|
57365
|
+
if (header instanceof Headers) header = buildOutgoingHttpHeaders(header);
|
|
57366
|
+
if (typeof body === "string") header["Content-Length"] = Buffer.byteLength(body);
|
|
57367
|
+
else if (body instanceof Uint8Array) header["Content-Length"] = body.byteLength;
|
|
57368
|
+
else if (body instanceof Blob) header["Content-Length"] = body.size;
|
|
57437
57369
|
outgoing.writeHead(status, header);
|
|
57438
57370
|
if (typeof body === "string" || body instanceof Uint8Array) outgoing.end(body);
|
|
57439
57371
|
else if (body instanceof Blob) outgoing.end(new Uint8Array(await body.arrayBuffer()));
|
|
@@ -57521,13 +57453,11 @@ var getRequestListener = (fetchCallback, options = {}) => {
|
|
|
57521
57453
|
if (incoming instanceof http2.Http2ServerRequest) outgoing[outgoingEnded] = () => {
|
|
57522
57454
|
if (!incomingEnded) setTimeout(() => {
|
|
57523
57455
|
if (!incomingEnded) setTimeout(() => {
|
|
57524
|
-
|
|
57456
|
+
incoming.destroy();
|
|
57457
|
+
outgoing.destroy();
|
|
57525
57458
|
});
|
|
57526
57459
|
});
|
|
57527
57460
|
};
|
|
57528
|
-
outgoing.on("finish", () => {
|
|
57529
|
-
if (!incomingEnded) drainIncoming(incoming);
|
|
57530
|
-
});
|
|
57531
57461
|
}
|
|
57532
57462
|
outgoing.on("close", () => {
|
|
57533
57463
|
if (req[abortControllerKey]) {
|
|
@@ -57536,7 +57466,7 @@ var getRequestListener = (fetchCallback, options = {}) => {
|
|
|
57536
57466
|
}
|
|
57537
57467
|
if (!incomingEnded) setTimeout(() => {
|
|
57538
57468
|
if (!incomingEnded) setTimeout(() => {
|
|
57539
|
-
|
|
57469
|
+
incoming.destroy();
|
|
57540
57470
|
});
|
|
57541
57471
|
});
|
|
57542
57472
|
});
|