poe-code 3.0.115 → 3.0.116-beta.1
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/README.md +13 -13
- package/dist/cli/command-not-found.js +3 -1
- package/dist/cli/command-not-found.js.map +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/commands/version.js.map +1 -1
- package/dist/index.js +559 -523
- package/dist/index.js.map +4 -4
- package/dist/providers/claude-code.js +24 -24
- package/dist/providers/claude-code.js.map +1 -1
- package/dist/providers/codex.js +28 -28
- package/dist/providers/codex.js.map +2 -2
- package/dist/providers/kimi.js +24 -24
- package/dist/providers/kimi.js.map +1 -1
- package/dist/providers/opencode.js +28 -28
- package/dist/providers/opencode.js.map +2 -2
- package/dist/providers/poe-agent.js.map +1 -1
- package/dist/tools/label-generator.js +1 -1
- package/dist/utils/command-checks.d.ts +1 -1
- package/dist/utils/command-checks.js +1 -1
- package/dist/utils/execution-context.js +5 -5
- package/dist/utils/execution-context.js.map +1 -1
- package/package.json +41 -41
package/dist/index.js
CHANGED
|
@@ -3196,36 +3196,36 @@ var init_colors = __esm({
|
|
|
3196
3196
|
"packages/design-system/src/tokens/colors.ts"() {
|
|
3197
3197
|
"use strict";
|
|
3198
3198
|
dark = {
|
|
3199
|
-
header: (
|
|
3200
|
-
divider: (
|
|
3201
|
-
prompt: (
|
|
3202
|
-
number: (
|
|
3203
|
-
intro: (
|
|
3199
|
+
header: (text3) => chalk2.magentaBright.bold(text3),
|
|
3200
|
+
divider: (text3) => chalk2.dim(text3),
|
|
3201
|
+
prompt: (text3) => chalk2.cyan(text3),
|
|
3202
|
+
number: (text3) => chalk2.cyanBright(text3),
|
|
3203
|
+
intro: (text3) => chalk2.bgMagenta.white(` Poe - ${text3} `),
|
|
3204
3204
|
resolvedSymbol: chalk2.magenta("\u25C7"),
|
|
3205
3205
|
errorSymbol: chalk2.red("\u25A0"),
|
|
3206
|
-
accent: (
|
|
3207
|
-
muted: (
|
|
3208
|
-
success: (
|
|
3209
|
-
warning: (
|
|
3210
|
-
error: (
|
|
3211
|
-
info: (
|
|
3212
|
-
badge: (
|
|
3206
|
+
accent: (text3) => chalk2.cyan(text3),
|
|
3207
|
+
muted: (text3) => chalk2.dim(text3),
|
|
3208
|
+
success: (text3) => chalk2.green(text3),
|
|
3209
|
+
warning: (text3) => chalk2.yellow(text3),
|
|
3210
|
+
error: (text3) => chalk2.red(text3),
|
|
3211
|
+
info: (text3) => chalk2.magenta(text3),
|
|
3212
|
+
badge: (text3) => chalk2.bgYellow.black(` ${text3} `)
|
|
3213
3213
|
};
|
|
3214
3214
|
light = {
|
|
3215
|
-
header: (
|
|
3216
|
-
divider: (
|
|
3217
|
-
prompt: (
|
|
3218
|
-
number: (
|
|
3219
|
-
intro: (
|
|
3215
|
+
header: (text3) => chalk2.hex("#a200ff").bold(text3),
|
|
3216
|
+
divider: (text3) => chalk2.hex("#666666")(text3),
|
|
3217
|
+
prompt: (text3) => chalk2.hex("#006699").bold(text3),
|
|
3218
|
+
number: (text3) => chalk2.hex("#0077cc").bold(text3),
|
|
3219
|
+
intro: (text3) => chalk2.bgHex("#a200ff").white(` Poe - ${text3} `),
|
|
3220
3220
|
resolvedSymbol: chalk2.hex("#a200ff")("\u25C7"),
|
|
3221
3221
|
errorSymbol: chalk2.hex("#cc0000")("\u25A0"),
|
|
3222
|
-
accent: (
|
|
3223
|
-
muted: (
|
|
3224
|
-
success: (
|
|
3225
|
-
warning: (
|
|
3226
|
-
error: (
|
|
3227
|
-
info: (
|
|
3228
|
-
badge: (
|
|
3222
|
+
accent: (text3) => chalk2.hex("#006699").bold(text3),
|
|
3223
|
+
muted: (text3) => chalk2.hex("#666666")(text3),
|
|
3224
|
+
success: (text3) => chalk2.hex("#008800")(text3),
|
|
3225
|
+
warning: (text3) => chalk2.hex("#cc6600")(text3),
|
|
3226
|
+
error: (text3) => chalk2.hex("#cc0000")(text3),
|
|
3227
|
+
info: (text3) => chalk2.hex("#a200ff")(text3),
|
|
3228
|
+
badge: (text3) => chalk2.bgHex("#cc6600").white(` ${text3} `)
|
|
3229
3229
|
};
|
|
3230
3230
|
}
|
|
3231
3231
|
});
|
|
@@ -3244,11 +3244,11 @@ var init_typography = __esm({
|
|
|
3244
3244
|
"packages/design-system/src/tokens/typography.ts"() {
|
|
3245
3245
|
"use strict";
|
|
3246
3246
|
typography = {
|
|
3247
|
-
bold: (
|
|
3248
|
-
dim: (
|
|
3249
|
-
italic: (
|
|
3250
|
-
underline: (
|
|
3251
|
-
strikethrough: (
|
|
3247
|
+
bold: (text3) => chalk3.bold(text3),
|
|
3248
|
+
dim: (text3) => chalk3.dim(text3),
|
|
3249
|
+
italic: (text3) => chalk3.italic(text3),
|
|
3250
|
+
underline: (text3) => chalk3.underline(text3),
|
|
3251
|
+
strikethrough: (text3) => chalk3.strikethrough(text3)
|
|
3252
3252
|
};
|
|
3253
3253
|
}
|
|
3254
3254
|
});
|
|
@@ -3637,20 +3637,20 @@ var init_table = __esm({
|
|
|
3637
3637
|
|
|
3638
3638
|
// packages/design-system/src/acp/components.ts
|
|
3639
3639
|
import chalk7 from "chalk";
|
|
3640
|
-
function truncate(
|
|
3641
|
-
if (
|
|
3642
|
-
if (maxLength <= 3) return
|
|
3643
|
-
return `${
|
|
3640
|
+
function truncate(text3, maxLength) {
|
|
3641
|
+
if (text3.length <= maxLength) return text3;
|
|
3642
|
+
if (maxLength <= 3) return text3.slice(0, maxLength);
|
|
3643
|
+
return `${text3.slice(0, maxLength - 3)}...`;
|
|
3644
3644
|
}
|
|
3645
3645
|
function colorForKind(kind) {
|
|
3646
|
-
return KIND_COLORS[kind] ?? ((
|
|
3646
|
+
return KIND_COLORS[kind] ?? ((text3) => chalk7.dim(text3));
|
|
3647
3647
|
}
|
|
3648
3648
|
function writeLine(line) {
|
|
3649
3649
|
process.stdout.write(`${line}
|
|
3650
3650
|
`);
|
|
3651
3651
|
}
|
|
3652
|
-
function renderAgentMessage(
|
|
3653
|
-
writeLine(`${AGENT_PREFIX}${
|
|
3652
|
+
function renderAgentMessage(text3) {
|
|
3653
|
+
writeLine(`${AGENT_PREFIX}${text3}`);
|
|
3654
3654
|
}
|
|
3655
3655
|
function renderToolStart(kind, title) {
|
|
3656
3656
|
const color = colorForKind(kind);
|
|
@@ -3660,8 +3660,8 @@ function renderToolComplete(kind) {
|
|
|
3660
3660
|
const color = colorForKind(kind);
|
|
3661
3661
|
writeLine(color(` \u2713 ${kind}`));
|
|
3662
3662
|
}
|
|
3663
|
-
function renderReasoning(
|
|
3664
|
-
writeLine(chalk7.dim(` \u2713 ${truncate(
|
|
3663
|
+
function renderReasoning(text3) {
|
|
3664
|
+
writeLine(chalk7.dim(` \u2713 ${truncate(text3, 80)}`));
|
|
3665
3665
|
}
|
|
3666
3666
|
function renderUsage(tokens) {
|
|
3667
3667
|
const cached3 = typeof tokens.cached === "number" && tokens.cached > 0 ? ` (${tokens.cached} cached)` : "";
|
|
@@ -3689,12 +3689,12 @@ var init_components = __esm({
|
|
|
3689
3689
|
"packages/design-system/src/acp/components.ts"() {
|
|
3690
3690
|
"use strict";
|
|
3691
3691
|
KIND_COLORS = {
|
|
3692
|
-
exec: (
|
|
3693
|
-
edit: (
|
|
3694
|
-
read: (
|
|
3695
|
-
search: (
|
|
3696
|
-
think: (
|
|
3697
|
-
other: (
|
|
3692
|
+
exec: (text3) => chalk7.yellow(text3),
|
|
3693
|
+
edit: (text3) => chalk7.magenta(text3),
|
|
3694
|
+
read: (text3) => chalk7.cyan(text3),
|
|
3695
|
+
search: (text3) => chalk7.blue(text3),
|
|
3696
|
+
think: (text3) => chalk7.dim(text3),
|
|
3697
|
+
other: (text3) => chalk7.dim(text3)
|
|
3698
3698
|
};
|
|
3699
3699
|
AGENT_PREFIX = `${chalk7.green.bold("\u2713")} agent: `;
|
|
3700
3700
|
}
|
|
@@ -3764,7 +3764,7 @@ function note2(message, title) {
|
|
|
3764
3764
|
async function select2(opts) {
|
|
3765
3765
|
return clack.select(opts);
|
|
3766
3766
|
}
|
|
3767
|
-
async function
|
|
3767
|
+
async function promptText(opts) {
|
|
3768
3768
|
return clack.text(opts);
|
|
3769
3769
|
}
|
|
3770
3770
|
async function confirm2(opts) {
|
|
@@ -3952,7 +3952,9 @@ ${stack}` : message;
|
|
|
3952
3952
|
);
|
|
3953
3953
|
return;
|
|
3954
3954
|
default:
|
|
3955
|
-
writeLine2(
|
|
3955
|
+
writeLine2(
|
|
3956
|
+
typeof text.muted === "function" ? text.muted(event.event) : event.event
|
|
3957
|
+
);
|
|
3956
3958
|
return;
|
|
3957
3959
|
}
|
|
3958
3960
|
}
|
|
@@ -3982,10 +3984,10 @@ var init_renderer = __esm({
|
|
|
3982
3984
|
});
|
|
3983
3985
|
|
|
3984
3986
|
// packages/agent-spawn/src/adapters/utils.ts
|
|
3985
|
-
function truncate2(
|
|
3986
|
-
if (
|
|
3987
|
-
if (maxLength <= 3) return
|
|
3988
|
-
return `${
|
|
3987
|
+
function truncate2(text3, maxLength) {
|
|
3988
|
+
if (text3.length <= maxLength) return text3;
|
|
3989
|
+
if (maxLength <= 3) return text3.slice(0, maxLength);
|
|
3990
|
+
return `${text3.slice(0, maxLength - 3)}...`;
|
|
3989
3991
|
}
|
|
3990
3992
|
function isNonEmptyString(value) {
|
|
3991
3993
|
return typeof value === "string" && value.length > 0;
|
|
@@ -4215,9 +4217,9 @@ async function* adaptCodex(lines) {
|
|
|
4215
4217
|
continue;
|
|
4216
4218
|
}
|
|
4217
4219
|
if (itemType === "reasoning") {
|
|
4218
|
-
const
|
|
4219
|
-
if (!
|
|
4220
|
-
yield { event: "reasoning", text:
|
|
4220
|
+
const text3 = isNonEmptyString(item.text) ? item.text : isNonEmptyString(item.content) ? item.content : isNonEmptyString(item.summary) ? item.summary : void 0;
|
|
4221
|
+
if (!text3) continue;
|
|
4222
|
+
yield { event: "reasoning", text: text3 };
|
|
4221
4223
|
continue;
|
|
4222
4224
|
}
|
|
4223
4225
|
if (!isNonEmptyString(item.id)) continue;
|
|
@@ -4471,13 +4473,21 @@ function chunkToString(chunk) {
|
|
|
4471
4473
|
}
|
|
4472
4474
|
async function* readLines(stream) {
|
|
4473
4475
|
let buffer = "";
|
|
4474
|
-
|
|
4476
|
+
const pushChunk = (chunk) => {
|
|
4475
4477
|
buffer += chunkToString(chunk);
|
|
4476
4478
|
while (true) {
|
|
4477
4479
|
const newlineIndex = buffer.indexOf("\n");
|
|
4478
4480
|
if (newlineIndex === -1) break;
|
|
4479
|
-
|
|
4481
|
+
const line = buffer.slice(0, newlineIndex);
|
|
4480
4482
|
buffer = buffer.slice(newlineIndex + 1);
|
|
4483
|
+
lines.push(line);
|
|
4484
|
+
}
|
|
4485
|
+
};
|
|
4486
|
+
const lines = [];
|
|
4487
|
+
for await (const chunk of stream) {
|
|
4488
|
+
pushChunk(chunk);
|
|
4489
|
+
while (lines.length > 0) {
|
|
4490
|
+
yield lines.shift();
|
|
4481
4491
|
}
|
|
4482
4492
|
}
|
|
4483
4493
|
if (buffer.length > 0) {
|
|
@@ -4541,7 +4551,8 @@ function spawnStreaming(options) {
|
|
|
4541
4551
|
if (options.args && options.args.length > 0) {
|
|
4542
4552
|
args.push(...options.args);
|
|
4543
4553
|
}
|
|
4544
|
-
const
|
|
4554
|
+
const spawnImpl = options.spawnImpl ?? spawnChildProcess3;
|
|
4555
|
+
const child = spawnImpl(binaryName, args, {
|
|
4545
4556
|
cwd: options.cwd,
|
|
4546
4557
|
stdio: ["pipe", "pipe", "pipe"]
|
|
4547
4558
|
});
|
|
@@ -4552,6 +4563,45 @@ function spawnStreaming(options) {
|
|
|
4552
4563
|
};
|
|
4553
4564
|
options.signal?.addEventListener("abort", onAbort, { once: true });
|
|
4554
4565
|
const result = { stdout: "", stderr: "", exitCode: 1 };
|
|
4566
|
+
const done = new Promise((resolve, reject) => {
|
|
4567
|
+
let settled = false;
|
|
4568
|
+
const settleRejected = (error2) => {
|
|
4569
|
+
if (settled) return;
|
|
4570
|
+
settled = true;
|
|
4571
|
+
options.signal?.removeEventListener("abort", onAbort);
|
|
4572
|
+
reject(error2);
|
|
4573
|
+
};
|
|
4574
|
+
const settleResolved = (code) => {
|
|
4575
|
+
if (settled) return;
|
|
4576
|
+
settled = true;
|
|
4577
|
+
options.signal?.removeEventListener("abort", onAbort);
|
|
4578
|
+
result.exitCode = code ?? 1;
|
|
4579
|
+
resolve(result);
|
|
4580
|
+
};
|
|
4581
|
+
child.once("error", (error2) => {
|
|
4582
|
+
if (aborted2) {
|
|
4583
|
+
settleRejected(createAbortError2());
|
|
4584
|
+
return;
|
|
4585
|
+
}
|
|
4586
|
+
settleRejected(error2);
|
|
4587
|
+
});
|
|
4588
|
+
child.once("close", (code) => {
|
|
4589
|
+
if (aborted2) {
|
|
4590
|
+
settleRejected(createAbortError2());
|
|
4591
|
+
return;
|
|
4592
|
+
}
|
|
4593
|
+
settleResolved(code);
|
|
4594
|
+
});
|
|
4595
|
+
if (typeof child.exitCode === "number") {
|
|
4596
|
+
queueMicrotask(() => {
|
|
4597
|
+
if (aborted2) {
|
|
4598
|
+
settleRejected(createAbortError2());
|
|
4599
|
+
return;
|
|
4600
|
+
}
|
|
4601
|
+
settleResolved(child.exitCode);
|
|
4602
|
+
});
|
|
4603
|
+
}
|
|
4604
|
+
});
|
|
4555
4605
|
child.stderr.setEncoding("utf8");
|
|
4556
4606
|
child.stderr.on("data", (chunk) => {
|
|
4557
4607
|
result.stderr += chunk;
|
|
@@ -4567,25 +4617,6 @@ function spawnStreaming(options) {
|
|
|
4567
4617
|
yield output;
|
|
4568
4618
|
}
|
|
4569
4619
|
})();
|
|
4570
|
-
const done = new Promise((resolve, reject) => {
|
|
4571
|
-
child.on("error", (error2) => {
|
|
4572
|
-
options.signal?.removeEventListener("abort", onAbort);
|
|
4573
|
-
if (aborted2) {
|
|
4574
|
-
reject(createAbortError2());
|
|
4575
|
-
return;
|
|
4576
|
-
}
|
|
4577
|
-
reject(error2);
|
|
4578
|
-
});
|
|
4579
|
-
child.on("close", (code) => {
|
|
4580
|
-
options.signal?.removeEventListener("abort", onAbort);
|
|
4581
|
-
if (aborted2) {
|
|
4582
|
-
reject(createAbortError2());
|
|
4583
|
-
return;
|
|
4584
|
-
}
|
|
4585
|
-
result.exitCode = code ?? 1;
|
|
4586
|
-
resolve(result);
|
|
4587
|
-
});
|
|
4588
|
-
});
|
|
4589
4620
|
return { events, done };
|
|
4590
4621
|
}
|
|
4591
4622
|
var init_spawn2 = __esm({
|
|
@@ -4641,11 +4672,11 @@ function updateSessionFromEvent(ctx, event, toolCallsById) {
|
|
|
4641
4672
|
return;
|
|
4642
4673
|
}
|
|
4643
4674
|
if (event.event === "agent_message") {
|
|
4644
|
-
const
|
|
4645
|
-
if (!
|
|
4675
|
+
const text3 = readString(event.text);
|
|
4676
|
+
if (!text3 || !ctx.sessionResult) {
|
|
4646
4677
|
return;
|
|
4647
4678
|
}
|
|
4648
|
-
ctx.sessionResult.messages.push(
|
|
4679
|
+
ctx.sessionResult.messages.push(text3);
|
|
4649
4680
|
ctx.sessionResult.output = ctx.sessionResult.messages.join("\n");
|
|
4650
4681
|
return;
|
|
4651
4682
|
}
|
|
@@ -5651,9 +5682,9 @@ async function exchangeCodeForApiKey(params) {
|
|
|
5651
5682
|
body: body.toString()
|
|
5652
5683
|
});
|
|
5653
5684
|
if (!response.ok) {
|
|
5654
|
-
const
|
|
5655
|
-
const description = parseErrorDescription(
|
|
5656
|
-
throw new Error(description ?? `Token exchange failed (${response.status}): ${
|
|
5685
|
+
const text3 = await response.text();
|
|
5686
|
+
const description = parseErrorDescription(text3);
|
|
5687
|
+
throw new Error(description ?? `Token exchange failed (${response.status}): ${text3}`);
|
|
5657
5688
|
}
|
|
5658
5689
|
const data = await response.json();
|
|
5659
5690
|
if (typeof data.api_key !== "string" || data.api_key.length === 0) {
|
|
@@ -5664,9 +5695,9 @@ async function exchangeCodeForApiKey(params) {
|
|
|
5664
5695
|
expiresIn: typeof data.api_key_expires_in === "number" ? data.api_key_expires_in : null
|
|
5665
5696
|
};
|
|
5666
5697
|
}
|
|
5667
|
-
function parseErrorDescription(
|
|
5698
|
+
function parseErrorDescription(text3) {
|
|
5668
5699
|
try {
|
|
5669
|
-
const data = JSON.parse(
|
|
5700
|
+
const data = JSON.parse(text3);
|
|
5670
5701
|
if (typeof data.error_description === "string") {
|
|
5671
5702
|
return data.error_description;
|
|
5672
5703
|
}
|
|
@@ -5677,8 +5708,8 @@ function parseErrorDescription(text4) {
|
|
|
5677
5708
|
}
|
|
5678
5709
|
return null;
|
|
5679
5710
|
}
|
|
5680
|
-
function escapeHtml(
|
|
5681
|
-
return
|
|
5711
|
+
function escapeHtml(text3) {
|
|
5712
|
+
return text3.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
5682
5713
|
}
|
|
5683
5714
|
function buildSuccessPage(landingPage) {
|
|
5684
5715
|
const title = landingPage?.title ?? "Connected to Poe";
|
|
@@ -5939,8 +5970,8 @@ var init_errors = __esm({
|
|
|
5939
5970
|
|
|
5940
5971
|
// src/cli/logger.ts
|
|
5941
5972
|
import chalk11 from "chalk";
|
|
5942
|
-
function wrapText(
|
|
5943
|
-
const words =
|
|
5973
|
+
function wrapText(text3, maxWidth) {
|
|
5974
|
+
const words = text3.split(" ");
|
|
5944
5975
|
const lines = [];
|
|
5945
5976
|
let currentLine = "";
|
|
5946
5977
|
for (const word of words) {
|
|
@@ -8349,8 +8380,8 @@ async function readErrorBody(response) {
|
|
|
8349
8380
|
return void 0;
|
|
8350
8381
|
}
|
|
8351
8382
|
try {
|
|
8352
|
-
const
|
|
8353
|
-
return
|
|
8383
|
+
const text3 = await response.text();
|
|
8384
|
+
return text3?.trim() || void 0;
|
|
8354
8385
|
} catch {
|
|
8355
8386
|
return void 0;
|
|
8356
8387
|
}
|
|
@@ -9737,9 +9768,9 @@ function collectErrors(toolCalls, additionalErrors) {
|
|
|
9737
9768
|
}
|
|
9738
9769
|
if (additionalErrors) {
|
|
9739
9770
|
for (const message of additionalErrors) {
|
|
9740
|
-
const
|
|
9741
|
-
if (
|
|
9742
|
-
errors.push({ message:
|
|
9771
|
+
const text3 = toNonEmptyString(message);
|
|
9772
|
+
if (text3) {
|
|
9773
|
+
errors.push({ message: text3 });
|
|
9743
9774
|
}
|
|
9744
9775
|
}
|
|
9745
9776
|
}
|
|
@@ -10873,10 +10904,10 @@ async function fileExists(fs3, filePath) {
|
|
|
10873
10904
|
return false;
|
|
10874
10905
|
}
|
|
10875
10906
|
}
|
|
10876
|
-
function countOccurrences(
|
|
10907
|
+
function countOccurrences(text3, search) {
|
|
10877
10908
|
let count = 0;
|
|
10878
10909
|
let index = 0;
|
|
10879
|
-
while ((index =
|
|
10910
|
+
while ((index = text3.indexOf(search, index)) !== -1) {
|
|
10880
10911
|
count += 1;
|
|
10881
10912
|
index += search.length;
|
|
10882
10913
|
}
|
|
@@ -14084,8 +14115,8 @@ function createInMemoryAcpTransport2(options) {
|
|
|
14084
14115
|
if (!session) {
|
|
14085
14116
|
throw new Error(`Unknown session "${request.sessionId}".`);
|
|
14086
14117
|
}
|
|
14087
|
-
const
|
|
14088
|
-
await session.sendMessage(
|
|
14118
|
+
const promptText2 = toPromptText2(request.prompt);
|
|
14119
|
+
await session.sendMessage(promptText2, {
|
|
14089
14120
|
onSessionUpdate: (legacyUpdate) => {
|
|
14090
14121
|
const normalizedUpdate = normalizeSessionUpdate(legacyUpdate);
|
|
14091
14122
|
const handlers2 = notificationHandlers.get("session/update");
|
|
@@ -14842,19 +14873,19 @@ function registerSpawnCommand(program, container, options = {}) {
|
|
|
14842
14873
|
const extraServices = options.extraServices ?? [];
|
|
14843
14874
|
const serviceList = [...spawnServices, ...extraServices];
|
|
14844
14875
|
const serviceDescription = `Agent to spawn${formatServiceList(serviceList)}`;
|
|
14845
|
-
program.command("spawn").description("Run a single prompt through a configured agent CLI.").option("--model <model>", "Model identifier override passed to the agent CLI").option("-C, --cwd <path>", "Working directory for the agent CLI").option("--stdin", "Read the prompt from stdin").option("-i, --interactive", "Launch the agent in interactive TUI mode").option("--mode <mode>", "Permission mode: yolo | edit | read (default: yolo)").option("--mcp-config <json>", "MCP server config JSON: {name: {command, args?, env?}}").argument("<agent>", serviceDescription).argument("[prompt]", "Prompt text to send (or '-' / stdin)").argument("[agentArgs...]", "Additional arguments forwarded to the agent CLI").action(async function(service,
|
|
14876
|
+
program.command("spawn").description("Run a single prompt through a configured agent CLI.").option("--model <model>", "Model identifier override passed to the agent CLI").option("-C, --cwd <path>", "Working directory for the agent CLI").option("--stdin", "Read the prompt from stdin").option("-i, --interactive", "Launch the agent in interactive TUI mode").option("--mode <mode>", "Permission mode: yolo | edit | read (default: yolo)").option("--mcp-config <json>", "MCP server config JSON: {name: {command, args?, env?}}").argument("<agent>", serviceDescription).argument("[prompt]", "Prompt text to send (or '-' / stdin)").argument("[agentArgs...]", "Additional arguments forwarded to the agent CLI").action(async function(service, promptText2, agentArgs = []) {
|
|
14846
14877
|
const flags = resolveCommandFlags(program);
|
|
14847
14878
|
const commandOptions = this.opts();
|
|
14848
14879
|
const mcpServers = parseMcpSpawnConfig2(commandOptions.mcpConfig);
|
|
14849
14880
|
const cwdOverride = resolveSpawnWorkingDirectory2(container.env.cwd, commandOptions.cwd);
|
|
14850
14881
|
const wantsStdinFlag = commandOptions.stdin === true;
|
|
14851
|
-
const shouldReadFromStdin = wantsStdinFlag ||
|
|
14852
|
-
const forwardedArgs = wantsStdinFlag ? [...
|
|
14882
|
+
const shouldReadFromStdin = wantsStdinFlag || promptText2 === "-" || !promptText2 && !process.stdin.isTTY;
|
|
14883
|
+
const forwardedArgs = wantsStdinFlag ? [...promptText2 ? [promptText2] : [], ...agentArgs] : agentArgs;
|
|
14853
14884
|
if (wantsStdinFlag) {
|
|
14854
|
-
|
|
14885
|
+
promptText2 = void 0;
|
|
14855
14886
|
}
|
|
14856
|
-
if (
|
|
14857
|
-
|
|
14887
|
+
if (promptText2 === "-") {
|
|
14888
|
+
promptText2 = void 0;
|
|
14858
14889
|
}
|
|
14859
14890
|
if (commandOptions.interactive) {
|
|
14860
14891
|
const adapter2 = resolveServiceAdapter(container, service);
|
|
@@ -14875,7 +14906,7 @@ function registerSpawnCommand(program, container, options = {}) {
|
|
|
14875
14906
|
commandOptions.model
|
|
14876
14907
|
);
|
|
14877
14908
|
const result = await spawnInteractive(canonicalService2, {
|
|
14878
|
-
prompt:
|
|
14909
|
+
prompt: promptText2 ?? "",
|
|
14879
14910
|
args: forwardedArgs,
|
|
14880
14911
|
model: model2,
|
|
14881
14912
|
mode: commandOptions.mode,
|
|
@@ -14885,18 +14916,18 @@ function registerSpawnCommand(program, container, options = {}) {
|
|
|
14885
14916
|
process.exitCode = result.exitCode;
|
|
14886
14917
|
return;
|
|
14887
14918
|
}
|
|
14888
|
-
if (!
|
|
14919
|
+
if (!promptText2 && shouldReadFromStdin) {
|
|
14889
14920
|
const chunks = [];
|
|
14890
14921
|
for await (const chunk of process.stdin) {
|
|
14891
14922
|
chunks.push(chunk);
|
|
14892
14923
|
}
|
|
14893
|
-
|
|
14924
|
+
promptText2 = Buffer.concat(chunks).toString("utf8").trim();
|
|
14894
14925
|
}
|
|
14895
|
-
if (!
|
|
14926
|
+
if (!promptText2) {
|
|
14896
14927
|
throw new Error("No prompt provided via argument or stdin");
|
|
14897
14928
|
}
|
|
14898
14929
|
const directSpawnOptions = {
|
|
14899
|
-
prompt:
|
|
14930
|
+
prompt: promptText2,
|
|
14900
14931
|
args: forwardedArgs,
|
|
14901
14932
|
model: commandOptions.model,
|
|
14902
14933
|
mode: commandOptions.mode,
|
|
@@ -15515,26 +15546,26 @@ var init_research = __esm({
|
|
|
15515
15546
|
function registerResearchCommand(program, container) {
|
|
15516
15547
|
const spawnServices = container.registry.list().filter((service) => typeof service.spawn === "function" || getSpawnConfig(service.name)).map((service) => service.name);
|
|
15517
15548
|
const serviceDescription = `Agent to research with${formatServiceList(spawnServices)}`;
|
|
15518
|
-
program.command("research").description("Research a codebase using a coding agent.").option("--agent <agent>", serviceDescription).option("--model <model>", "Model identifier override passed to the agent CLI").option("--mode <mode>", "Permission mode: yolo | edit | read (default: read)").option("-C, --cwd <path>", "Working directory override").option("--path <path>", "Local directory to research").option("--github <repo>", "Clone and research a GitHub repo").option("--stdin", "Read the prompt from stdin").option("--keep", "Keep the cloned repo when using --github").argument("[prompt]", "Prompt text to send (or '-' / stdin)").argument("[agentArgs...]", "Additional arguments forwarded to the agent CLI").action(async function(
|
|
15549
|
+
program.command("research").description("Research a codebase using a coding agent.").option("--agent <agent>", serviceDescription).option("--model <model>", "Model identifier override passed to the agent CLI").option("--mode <mode>", "Permission mode: yolo | edit | read (default: read)").option("-C, --cwd <path>", "Working directory override").option("--path <path>", "Local directory to research").option("--github <repo>", "Clone and research a GitHub repo").option("--stdin", "Read the prompt from stdin").option("--keep", "Keep the cloned repo when using --github").argument("[prompt]", "Prompt text to send (or '-' / stdin)").argument("[agentArgs...]", "Additional arguments forwarded to the agent CLI").action(async function(promptText2, agentArgs = []) {
|
|
15519
15550
|
const flags = resolveCommandFlags(program);
|
|
15520
15551
|
const commandOptions = this.opts();
|
|
15521
15552
|
const wantsStdinFlag = commandOptions.stdin === true;
|
|
15522
|
-
const shouldReadFromStdin = wantsStdinFlag ||
|
|
15523
|
-
const forwardedArgs = wantsStdinFlag ? [...
|
|
15553
|
+
const shouldReadFromStdin = wantsStdinFlag || promptText2 === "-" || !promptText2 && !process.stdin.isTTY;
|
|
15554
|
+
const forwardedArgs = wantsStdinFlag ? [...promptText2 ? [promptText2] : [], ...agentArgs] : agentArgs;
|
|
15524
15555
|
if (wantsStdinFlag) {
|
|
15525
|
-
|
|
15556
|
+
promptText2 = void 0;
|
|
15526
15557
|
}
|
|
15527
|
-
if (
|
|
15528
|
-
|
|
15558
|
+
if (promptText2 === "-") {
|
|
15559
|
+
promptText2 = void 0;
|
|
15529
15560
|
}
|
|
15530
|
-
if (!
|
|
15561
|
+
if (!promptText2 && shouldReadFromStdin) {
|
|
15531
15562
|
const chunks = [];
|
|
15532
15563
|
for await (const chunk of process.stdin) {
|
|
15533
15564
|
chunks.push(chunk);
|
|
15534
15565
|
}
|
|
15535
|
-
|
|
15566
|
+
promptText2 = Buffer.concat(chunks).toString("utf8").trim();
|
|
15536
15567
|
}
|
|
15537
|
-
if (!
|
|
15568
|
+
if (!promptText2) {
|
|
15538
15569
|
throw new Error("No prompt provided via argument or stdin");
|
|
15539
15570
|
}
|
|
15540
15571
|
const resolvedAgent = await resolveResearchAgent({
|
|
@@ -15554,7 +15585,7 @@ function registerResearchCommand(program, container) {
|
|
|
15554
15585
|
});
|
|
15555
15586
|
try {
|
|
15556
15587
|
const { events, result } = await research(container, {
|
|
15557
|
-
prompt:
|
|
15588
|
+
prompt: promptText2,
|
|
15558
15589
|
agent: canonicalService,
|
|
15559
15590
|
agentLabel: adapter.label,
|
|
15560
15591
|
model,
|
|
@@ -17135,8 +17166,8 @@ var init_file = __esm({
|
|
|
17135
17166
|
const isText = isTextMimeType(mimeType);
|
|
17136
17167
|
return new _File(data, mimeType, isText);
|
|
17137
17168
|
}
|
|
17138
|
-
static fromText(
|
|
17139
|
-
return new _File(
|
|
17169
|
+
static fromText(text3, mimeType = "text/plain") {
|
|
17170
|
+
return new _File(text3, mimeType, true);
|
|
17140
17171
|
}
|
|
17141
17172
|
static fromBase64(base643, mimeType) {
|
|
17142
17173
|
const data = Buffer.from(base643, "base64");
|
|
@@ -17146,18 +17177,18 @@ var init_file = __esm({
|
|
|
17146
17177
|
toContentBlock() {
|
|
17147
17178
|
const uri = this.name ? `file:///${this.name}` : "file:///data";
|
|
17148
17179
|
if (this.isText) {
|
|
17149
|
-
let
|
|
17180
|
+
let text3;
|
|
17150
17181
|
if (typeof this.data === "string") {
|
|
17151
|
-
|
|
17182
|
+
text3 = this.data;
|
|
17152
17183
|
} else {
|
|
17153
|
-
|
|
17184
|
+
text3 = new TextDecoder("utf-8").decode(this.data);
|
|
17154
17185
|
}
|
|
17155
17186
|
return {
|
|
17156
17187
|
type: "resource",
|
|
17157
17188
|
resource: {
|
|
17158
17189
|
uri,
|
|
17159
17190
|
mimeType: this.mimeType,
|
|
17160
|
-
text:
|
|
17191
|
+
text: text3
|
|
17161
17192
|
}
|
|
17162
17193
|
};
|
|
17163
17194
|
} else {
|
|
@@ -30726,212 +30757,9 @@ var init_protocol = __esm({
|
|
|
30726
30757
|
}
|
|
30727
30758
|
});
|
|
30728
30759
|
|
|
30729
|
-
// node_modules/ajv
|
|
30730
|
-
var require_formats = __commonJS({
|
|
30731
|
-
"node_modules/ajv-formats/dist/formats.js"(exports) {
|
|
30732
|
-
"use strict";
|
|
30733
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30734
|
-
exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
|
|
30735
|
-
function fmtDef(validate, compare) {
|
|
30736
|
-
return { validate, compare };
|
|
30737
|
-
}
|
|
30738
|
-
exports.fullFormats = {
|
|
30739
|
-
// date: http://tools.ietf.org/html/rfc3339#section-5.6
|
|
30740
|
-
date: fmtDef(date4, compareDate),
|
|
30741
|
-
// date-time: http://tools.ietf.org/html/rfc3339#section-5.6
|
|
30742
|
-
time: fmtDef(getTime(true), compareTime),
|
|
30743
|
-
"date-time": fmtDef(getDateTime(true), compareDateTime),
|
|
30744
|
-
"iso-time": fmtDef(getTime(), compareIsoTime),
|
|
30745
|
-
"iso-date-time": fmtDef(getDateTime(), compareIsoDateTime),
|
|
30746
|
-
// duration: https://tools.ietf.org/html/rfc3339#appendix-A
|
|
30747
|
-
duration: /^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,
|
|
30748
|
-
uri,
|
|
30749
|
-
"uri-reference": /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,
|
|
30750
|
-
// uri-template: https://tools.ietf.org/html/rfc6570
|
|
30751
|
-
"uri-template": /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,
|
|
30752
|
-
// For the source: https://gist.github.com/dperini/729294
|
|
30753
|
-
// For test cases: https://mathiasbynens.be/demo/url-regex
|
|
30754
|
-
url: /^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,
|
|
30755
|
-
email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,
|
|
30756
|
-
hostname: /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,
|
|
30757
|
-
// optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html
|
|
30758
|
-
ipv4: /^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,
|
|
30759
|
-
ipv6: /^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,
|
|
30760
|
-
regex,
|
|
30761
|
-
// uuid: http://tools.ietf.org/html/rfc4122
|
|
30762
|
-
uuid: /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,
|
|
30763
|
-
// JSON-pointer: https://tools.ietf.org/html/rfc6901
|
|
30764
|
-
// uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A
|
|
30765
|
-
"json-pointer": /^(?:\/(?:[^~/]|~0|~1)*)*$/,
|
|
30766
|
-
"json-pointer-uri-fragment": /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,
|
|
30767
|
-
// relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00
|
|
30768
|
-
"relative-json-pointer": /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,
|
|
30769
|
-
// the following formats are used by the openapi specification: https://spec.openapis.org/oas/v3.0.0#data-types
|
|
30770
|
-
// byte: https://github.com/miguelmota/is-base64
|
|
30771
|
-
byte,
|
|
30772
|
-
// signed 32 bit integer
|
|
30773
|
-
int32: { type: "number", validate: validateInt32 },
|
|
30774
|
-
// signed 64 bit integer
|
|
30775
|
-
int64: { type: "number", validate: validateInt64 },
|
|
30776
|
-
// C-type float
|
|
30777
|
-
float: { type: "number", validate: validateNumber },
|
|
30778
|
-
// C-type double
|
|
30779
|
-
double: { type: "number", validate: validateNumber },
|
|
30780
|
-
// hint to the UI to hide input strings
|
|
30781
|
-
password: true,
|
|
30782
|
-
// unchecked string payload
|
|
30783
|
-
binary: true
|
|
30784
|
-
};
|
|
30785
|
-
exports.fastFormats = {
|
|
30786
|
-
...exports.fullFormats,
|
|
30787
|
-
date: fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, compareDate),
|
|
30788
|
-
time: fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareTime),
|
|
30789
|
-
"date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareDateTime),
|
|
30790
|
-
"iso-time": fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, compareIsoTime),
|
|
30791
|
-
"iso-date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, compareIsoDateTime),
|
|
30792
|
-
// uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js
|
|
30793
|
-
uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,
|
|
30794
|
-
"uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,
|
|
30795
|
-
// email (sources from jsen validator):
|
|
30796
|
-
// http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363
|
|
30797
|
-
// http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')
|
|
30798
|
-
email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i
|
|
30799
|
-
};
|
|
30800
|
-
exports.formatNames = Object.keys(exports.fullFormats);
|
|
30801
|
-
function isLeapYear(year) {
|
|
30802
|
-
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
30803
|
-
}
|
|
30804
|
-
var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
|
|
30805
|
-
var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
30806
|
-
function date4(str) {
|
|
30807
|
-
const matches = DATE.exec(str);
|
|
30808
|
-
if (!matches)
|
|
30809
|
-
return false;
|
|
30810
|
-
const year = +matches[1];
|
|
30811
|
-
const month = +matches[2];
|
|
30812
|
-
const day = +matches[3];
|
|
30813
|
-
return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && isLeapYear(year) ? 29 : DAYS[month]);
|
|
30814
|
-
}
|
|
30815
|
-
function compareDate(d1, d2) {
|
|
30816
|
-
if (!(d1 && d2))
|
|
30817
|
-
return void 0;
|
|
30818
|
-
if (d1 > d2)
|
|
30819
|
-
return 1;
|
|
30820
|
-
if (d1 < d2)
|
|
30821
|
-
return -1;
|
|
30822
|
-
return 0;
|
|
30823
|
-
}
|
|
30824
|
-
var TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;
|
|
30825
|
-
function getTime(strictTimeZone) {
|
|
30826
|
-
return function time3(str) {
|
|
30827
|
-
const matches = TIME.exec(str);
|
|
30828
|
-
if (!matches)
|
|
30829
|
-
return false;
|
|
30830
|
-
const hr = +matches[1];
|
|
30831
|
-
const min = +matches[2];
|
|
30832
|
-
const sec = +matches[3];
|
|
30833
|
-
const tz = matches[4];
|
|
30834
|
-
const tzSign = matches[5] === "-" ? -1 : 1;
|
|
30835
|
-
const tzH = +(matches[6] || 0);
|
|
30836
|
-
const tzM = +(matches[7] || 0);
|
|
30837
|
-
if (tzH > 23 || tzM > 59 || strictTimeZone && !tz)
|
|
30838
|
-
return false;
|
|
30839
|
-
if (hr <= 23 && min <= 59 && sec < 60)
|
|
30840
|
-
return true;
|
|
30841
|
-
const utcMin = min - tzM * tzSign;
|
|
30842
|
-
const utcHr = hr - tzH * tzSign - (utcMin < 0 ? 1 : 0);
|
|
30843
|
-
return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61;
|
|
30844
|
-
};
|
|
30845
|
-
}
|
|
30846
|
-
function compareTime(s1, s2) {
|
|
30847
|
-
if (!(s1 && s2))
|
|
30848
|
-
return void 0;
|
|
30849
|
-
const t1 = (/* @__PURE__ */ new Date("2020-01-01T" + s1)).valueOf();
|
|
30850
|
-
const t2 = (/* @__PURE__ */ new Date("2020-01-01T" + s2)).valueOf();
|
|
30851
|
-
if (!(t1 && t2))
|
|
30852
|
-
return void 0;
|
|
30853
|
-
return t1 - t2;
|
|
30854
|
-
}
|
|
30855
|
-
function compareIsoTime(t1, t2) {
|
|
30856
|
-
if (!(t1 && t2))
|
|
30857
|
-
return void 0;
|
|
30858
|
-
const a1 = TIME.exec(t1);
|
|
30859
|
-
const a2 = TIME.exec(t2);
|
|
30860
|
-
if (!(a1 && a2))
|
|
30861
|
-
return void 0;
|
|
30862
|
-
t1 = a1[1] + a1[2] + a1[3];
|
|
30863
|
-
t2 = a2[1] + a2[2] + a2[3];
|
|
30864
|
-
if (t1 > t2)
|
|
30865
|
-
return 1;
|
|
30866
|
-
if (t1 < t2)
|
|
30867
|
-
return -1;
|
|
30868
|
-
return 0;
|
|
30869
|
-
}
|
|
30870
|
-
var DATE_TIME_SEPARATOR = /t|\s/i;
|
|
30871
|
-
function getDateTime(strictTimeZone) {
|
|
30872
|
-
const time3 = getTime(strictTimeZone);
|
|
30873
|
-
return function date_time(str) {
|
|
30874
|
-
const dateTime = str.split(DATE_TIME_SEPARATOR);
|
|
30875
|
-
return dateTime.length === 2 && date4(dateTime[0]) && time3(dateTime[1]);
|
|
30876
|
-
};
|
|
30877
|
-
}
|
|
30878
|
-
function compareDateTime(dt1, dt2) {
|
|
30879
|
-
if (!(dt1 && dt2))
|
|
30880
|
-
return void 0;
|
|
30881
|
-
const d1 = new Date(dt1).valueOf();
|
|
30882
|
-
const d2 = new Date(dt2).valueOf();
|
|
30883
|
-
if (!(d1 && d2))
|
|
30884
|
-
return void 0;
|
|
30885
|
-
return d1 - d2;
|
|
30886
|
-
}
|
|
30887
|
-
function compareIsoDateTime(dt1, dt2) {
|
|
30888
|
-
if (!(dt1 && dt2))
|
|
30889
|
-
return void 0;
|
|
30890
|
-
const [d1, t1] = dt1.split(DATE_TIME_SEPARATOR);
|
|
30891
|
-
const [d2, t2] = dt2.split(DATE_TIME_SEPARATOR);
|
|
30892
|
-
const res = compareDate(d1, d2);
|
|
30893
|
-
if (res === void 0)
|
|
30894
|
-
return void 0;
|
|
30895
|
-
return res || compareTime(t1, t2);
|
|
30896
|
-
}
|
|
30897
|
-
var NOT_URI_FRAGMENT = /\/|:/;
|
|
30898
|
-
var URI = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
|
|
30899
|
-
function uri(str) {
|
|
30900
|
-
return NOT_URI_FRAGMENT.test(str) && URI.test(str);
|
|
30901
|
-
}
|
|
30902
|
-
var BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;
|
|
30903
|
-
function byte(str) {
|
|
30904
|
-
BYTE.lastIndex = 0;
|
|
30905
|
-
return BYTE.test(str);
|
|
30906
|
-
}
|
|
30907
|
-
var MIN_INT32 = -(2 ** 31);
|
|
30908
|
-
var MAX_INT32 = 2 ** 31 - 1;
|
|
30909
|
-
function validateInt32(value) {
|
|
30910
|
-
return Number.isInteger(value) && value <= MAX_INT32 && value >= MIN_INT32;
|
|
30911
|
-
}
|
|
30912
|
-
function validateInt64(value) {
|
|
30913
|
-
return Number.isInteger(value);
|
|
30914
|
-
}
|
|
30915
|
-
function validateNumber() {
|
|
30916
|
-
return true;
|
|
30917
|
-
}
|
|
30918
|
-
var Z_ANCHOR = /[^\\]\\Z/;
|
|
30919
|
-
function regex(str) {
|
|
30920
|
-
if (Z_ANCHOR.test(str))
|
|
30921
|
-
return false;
|
|
30922
|
-
try {
|
|
30923
|
-
new RegExp(str);
|
|
30924
|
-
return true;
|
|
30925
|
-
} catch (e) {
|
|
30926
|
-
return false;
|
|
30927
|
-
}
|
|
30928
|
-
}
|
|
30929
|
-
}
|
|
30930
|
-
});
|
|
30931
|
-
|
|
30932
|
-
// node_modules/ajv-formats/node_modules/ajv/dist/compile/codegen/code.js
|
|
30760
|
+
// node_modules/ajv/dist/compile/codegen/code.js
|
|
30933
30761
|
var require_code = __commonJS({
|
|
30934
|
-
"node_modules/ajv
|
|
30762
|
+
"node_modules/ajv/dist/compile/codegen/code.js"(exports) {
|
|
30935
30763
|
"use strict";
|
|
30936
30764
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30937
30765
|
exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
|
|
@@ -31083,9 +30911,9 @@ var require_code = __commonJS({
|
|
|
31083
30911
|
}
|
|
31084
30912
|
});
|
|
31085
30913
|
|
|
31086
|
-
// node_modules/ajv
|
|
30914
|
+
// node_modules/ajv/dist/compile/codegen/scope.js
|
|
31087
30915
|
var require_scope = __commonJS({
|
|
31088
|
-
"node_modules/ajv
|
|
30916
|
+
"node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
|
|
31089
30917
|
"use strict";
|
|
31090
30918
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31091
30919
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
|
|
@@ -31228,9 +31056,9 @@ var require_scope = __commonJS({
|
|
|
31228
31056
|
}
|
|
31229
31057
|
});
|
|
31230
31058
|
|
|
31231
|
-
// node_modules/ajv
|
|
31059
|
+
// node_modules/ajv/dist/compile/codegen/index.js
|
|
31232
31060
|
var require_codegen = __commonJS({
|
|
31233
|
-
"node_modules/ajv
|
|
31061
|
+
"node_modules/ajv/dist/compile/codegen/index.js"(exports) {
|
|
31234
31062
|
"use strict";
|
|
31235
31063
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31236
31064
|
exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0;
|
|
@@ -31948,9 +31776,9 @@ var require_codegen = __commonJS({
|
|
|
31948
31776
|
}
|
|
31949
31777
|
});
|
|
31950
31778
|
|
|
31951
|
-
// node_modules/ajv
|
|
31779
|
+
// node_modules/ajv/dist/compile/util.js
|
|
31952
31780
|
var require_util = __commonJS({
|
|
31953
|
-
"node_modules/ajv
|
|
31781
|
+
"node_modules/ajv/dist/compile/util.js"(exports) {
|
|
31954
31782
|
"use strict";
|
|
31955
31783
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31956
31784
|
exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0;
|
|
@@ -32115,9 +31943,9 @@ var require_util = __commonJS({
|
|
|
32115
31943
|
}
|
|
32116
31944
|
});
|
|
32117
31945
|
|
|
32118
|
-
// node_modules/ajv
|
|
31946
|
+
// node_modules/ajv/dist/compile/names.js
|
|
32119
31947
|
var require_names = __commonJS({
|
|
32120
|
-
"node_modules/ajv
|
|
31948
|
+
"node_modules/ajv/dist/compile/names.js"(exports) {
|
|
32121
31949
|
"use strict";
|
|
32122
31950
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32123
31951
|
var codegen_1 = require_codegen();
|
|
@@ -32154,9 +31982,9 @@ var require_names = __commonJS({
|
|
|
32154
31982
|
}
|
|
32155
31983
|
});
|
|
32156
31984
|
|
|
32157
|
-
// node_modules/ajv
|
|
31985
|
+
// node_modules/ajv/dist/compile/errors.js
|
|
32158
31986
|
var require_errors = __commonJS({
|
|
32159
|
-
"node_modules/ajv
|
|
31987
|
+
"node_modules/ajv/dist/compile/errors.js"(exports) {
|
|
32160
31988
|
"use strict";
|
|
32161
31989
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32162
31990
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
|
|
@@ -32276,9 +32104,9 @@ var require_errors = __commonJS({
|
|
|
32276
32104
|
}
|
|
32277
32105
|
});
|
|
32278
32106
|
|
|
32279
|
-
// node_modules/ajv
|
|
32107
|
+
// node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
32280
32108
|
var require_boolSchema = __commonJS({
|
|
32281
|
-
"node_modules/ajv
|
|
32109
|
+
"node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
|
|
32282
32110
|
"use strict";
|
|
32283
32111
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32284
32112
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
|
|
@@ -32327,9 +32155,9 @@ var require_boolSchema = __commonJS({
|
|
|
32327
32155
|
}
|
|
32328
32156
|
});
|
|
32329
32157
|
|
|
32330
|
-
// node_modules/ajv
|
|
32158
|
+
// node_modules/ajv/dist/compile/rules.js
|
|
32331
32159
|
var require_rules = __commonJS({
|
|
32332
|
-
"node_modules/ajv
|
|
32160
|
+
"node_modules/ajv/dist/compile/rules.js"(exports) {
|
|
32333
32161
|
"use strict";
|
|
32334
32162
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32335
32163
|
exports.getRules = exports.isJSONType = void 0;
|
|
@@ -32358,9 +32186,9 @@ var require_rules = __commonJS({
|
|
|
32358
32186
|
}
|
|
32359
32187
|
});
|
|
32360
32188
|
|
|
32361
|
-
// node_modules/ajv
|
|
32189
|
+
// node_modules/ajv/dist/compile/validate/applicability.js
|
|
32362
32190
|
var require_applicability = __commonJS({
|
|
32363
|
-
"node_modules/ajv
|
|
32191
|
+
"node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
|
|
32364
32192
|
"use strict";
|
|
32365
32193
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32366
32194
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
|
|
@@ -32381,9 +32209,9 @@ var require_applicability = __commonJS({
|
|
|
32381
32209
|
}
|
|
32382
32210
|
});
|
|
32383
32211
|
|
|
32384
|
-
// node_modules/ajv
|
|
32212
|
+
// node_modules/ajv/dist/compile/validate/dataType.js
|
|
32385
32213
|
var require_dataType = __commonJS({
|
|
32386
|
-
"node_modules/ajv
|
|
32214
|
+
"node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
|
|
32387
32215
|
"use strict";
|
|
32388
32216
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32389
32217
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
|
|
@@ -32565,9 +32393,9 @@ var require_dataType = __commonJS({
|
|
|
32565
32393
|
}
|
|
32566
32394
|
});
|
|
32567
32395
|
|
|
32568
|
-
// node_modules/ajv
|
|
32396
|
+
// node_modules/ajv/dist/compile/validate/defaults.js
|
|
32569
32397
|
var require_defaults = __commonJS({
|
|
32570
|
-
"node_modules/ajv
|
|
32398
|
+
"node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
|
|
32571
32399
|
"use strict";
|
|
32572
32400
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32573
32401
|
exports.assignDefaults = void 0;
|
|
@@ -32602,9 +32430,9 @@ var require_defaults = __commonJS({
|
|
|
32602
32430
|
}
|
|
32603
32431
|
});
|
|
32604
32432
|
|
|
32605
|
-
// node_modules/ajv
|
|
32433
|
+
// node_modules/ajv/dist/vocabularies/code.js
|
|
32606
32434
|
var require_code2 = __commonJS({
|
|
32607
|
-
"node_modules/ajv
|
|
32435
|
+
"node_modules/ajv/dist/vocabularies/code.js"(exports) {
|
|
32608
32436
|
"use strict";
|
|
32609
32437
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32610
32438
|
exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = void 0;
|
|
@@ -32735,9 +32563,9 @@ var require_code2 = __commonJS({
|
|
|
32735
32563
|
}
|
|
32736
32564
|
});
|
|
32737
32565
|
|
|
32738
|
-
// node_modules/ajv
|
|
32566
|
+
// node_modules/ajv/dist/compile/validate/keyword.js
|
|
32739
32567
|
var require_keyword = __commonJS({
|
|
32740
|
-
"node_modules/ajv
|
|
32568
|
+
"node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
|
|
32741
32569
|
"use strict";
|
|
32742
32570
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32743
32571
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
|
|
@@ -32853,9 +32681,9 @@ var require_keyword = __commonJS({
|
|
|
32853
32681
|
}
|
|
32854
32682
|
});
|
|
32855
32683
|
|
|
32856
|
-
// node_modules/ajv
|
|
32684
|
+
// node_modules/ajv/dist/compile/validate/subschema.js
|
|
32857
32685
|
var require_subschema = __commonJS({
|
|
32858
|
-
"node_modules/ajv
|
|
32686
|
+
"node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
|
|
32859
32687
|
"use strict";
|
|
32860
32688
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32861
32689
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
|
|
@@ -32971,9 +32799,9 @@ var require_fast_deep_equal = __commonJS({
|
|
|
32971
32799
|
}
|
|
32972
32800
|
});
|
|
32973
32801
|
|
|
32974
|
-
// node_modules/
|
|
32802
|
+
// node_modules/json-schema-traverse/index.js
|
|
32975
32803
|
var require_json_schema_traverse = __commonJS({
|
|
32976
|
-
"node_modules/
|
|
32804
|
+
"node_modules/json-schema-traverse/index.js"(exports, module) {
|
|
32977
32805
|
"use strict";
|
|
32978
32806
|
var traverse = module.exports = function(schema, opts, cb) {
|
|
32979
32807
|
if (typeof opts == "function") {
|
|
@@ -33059,9 +32887,9 @@ var require_json_schema_traverse = __commonJS({
|
|
|
33059
32887
|
}
|
|
33060
32888
|
});
|
|
33061
32889
|
|
|
33062
|
-
// node_modules/ajv
|
|
32890
|
+
// node_modules/ajv/dist/compile/resolve.js
|
|
33063
32891
|
var require_resolve = __commonJS({
|
|
33064
|
-
"node_modules/ajv
|
|
32892
|
+
"node_modules/ajv/dist/compile/resolve.js"(exports) {
|
|
33065
32893
|
"use strict";
|
|
33066
32894
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33067
32895
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
|
|
@@ -33215,9 +33043,9 @@ var require_resolve = __commonJS({
|
|
|
33215
33043
|
}
|
|
33216
33044
|
});
|
|
33217
33045
|
|
|
33218
|
-
// node_modules/ajv
|
|
33046
|
+
// node_modules/ajv/dist/compile/validate/index.js
|
|
33219
33047
|
var require_validate = __commonJS({
|
|
33220
|
-
"node_modules/ajv
|
|
33048
|
+
"node_modules/ajv/dist/compile/validate/index.js"(exports) {
|
|
33221
33049
|
"use strict";
|
|
33222
33050
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33223
33051
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
|
|
@@ -33723,9 +33551,9 @@ var require_validate = __commonJS({
|
|
|
33723
33551
|
}
|
|
33724
33552
|
});
|
|
33725
33553
|
|
|
33726
|
-
// node_modules/ajv
|
|
33554
|
+
// node_modules/ajv/dist/runtime/validation_error.js
|
|
33727
33555
|
var require_validation_error = __commonJS({
|
|
33728
|
-
"node_modules/ajv
|
|
33556
|
+
"node_modules/ajv/dist/runtime/validation_error.js"(exports) {
|
|
33729
33557
|
"use strict";
|
|
33730
33558
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33731
33559
|
var ValidationError2 = class extends Error {
|
|
@@ -33739,9 +33567,9 @@ var require_validation_error = __commonJS({
|
|
|
33739
33567
|
}
|
|
33740
33568
|
});
|
|
33741
33569
|
|
|
33742
|
-
// node_modules/ajv
|
|
33570
|
+
// node_modules/ajv/dist/compile/ref_error.js
|
|
33743
33571
|
var require_ref_error = __commonJS({
|
|
33744
|
-
"node_modules/ajv
|
|
33572
|
+
"node_modules/ajv/dist/compile/ref_error.js"(exports) {
|
|
33745
33573
|
"use strict";
|
|
33746
33574
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33747
33575
|
var resolve_1 = require_resolve();
|
|
@@ -33756,9 +33584,9 @@ var require_ref_error = __commonJS({
|
|
|
33756
33584
|
}
|
|
33757
33585
|
});
|
|
33758
33586
|
|
|
33759
|
-
// node_modules/ajv
|
|
33587
|
+
// node_modules/ajv/dist/compile/index.js
|
|
33760
33588
|
var require_compile = __commonJS({
|
|
33761
|
-
"node_modules/ajv
|
|
33589
|
+
"node_modules/ajv/dist/compile/index.js"(exports) {
|
|
33762
33590
|
"use strict";
|
|
33763
33591
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33764
33592
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
|
|
@@ -33980,9 +33808,9 @@ var require_compile = __commonJS({
|
|
|
33980
33808
|
}
|
|
33981
33809
|
});
|
|
33982
33810
|
|
|
33983
|
-
// node_modules/ajv
|
|
33811
|
+
// node_modules/ajv/dist/refs/data.json
|
|
33984
33812
|
var require_data = __commonJS({
|
|
33985
|
-
"node_modules/ajv
|
|
33813
|
+
"node_modules/ajv/dist/refs/data.json"(exports, module) {
|
|
33986
33814
|
module.exports = {
|
|
33987
33815
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
33988
33816
|
description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
|
|
@@ -34721,9 +34549,9 @@ var require_fast_uri = __commonJS({
|
|
|
34721
34549
|
}
|
|
34722
34550
|
});
|
|
34723
34551
|
|
|
34724
|
-
// node_modules/ajv
|
|
34552
|
+
// node_modules/ajv/dist/runtime/uri.js
|
|
34725
34553
|
var require_uri = __commonJS({
|
|
34726
|
-
"node_modules/ajv
|
|
34554
|
+
"node_modules/ajv/dist/runtime/uri.js"(exports) {
|
|
34727
34555
|
"use strict";
|
|
34728
34556
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34729
34557
|
var uri = require_fast_uri();
|
|
@@ -34732,9 +34560,9 @@ var require_uri = __commonJS({
|
|
|
34732
34560
|
}
|
|
34733
34561
|
});
|
|
34734
34562
|
|
|
34735
|
-
// node_modules/ajv
|
|
34563
|
+
// node_modules/ajv/dist/core.js
|
|
34736
34564
|
var require_core = __commonJS({
|
|
34737
|
-
"node_modules/ajv
|
|
34565
|
+
"node_modules/ajv/dist/core.js"(exports) {
|
|
34738
34566
|
"use strict";
|
|
34739
34567
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34740
34568
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
@@ -35124,7 +34952,7 @@ var require_core = __commonJS({
|
|
|
35124
34952
|
errorsText(errors = this.errors, { separator = ", ", dataVar = "data" } = {}) {
|
|
35125
34953
|
if (!errors || errors.length === 0)
|
|
35126
34954
|
return "No errors";
|
|
35127
|
-
return errors.map((e) => `${dataVar}${e.instancePath} ${e.message}`).reduce((
|
|
34955
|
+
return errors.map((e) => `${dataVar}${e.instancePath} ${e.message}`).reduce((text3, msg) => text3 + separator + msg);
|
|
35128
34956
|
}
|
|
35129
34957
|
$dataMetaSchema(metaSchema, keywordsJsonPointers) {
|
|
35130
34958
|
const rules = this.RULES.all;
|
|
@@ -35343,9 +35171,9 @@ var require_core = __commonJS({
|
|
|
35343
35171
|
}
|
|
35344
35172
|
});
|
|
35345
35173
|
|
|
35346
|
-
// node_modules/ajv
|
|
35174
|
+
// node_modules/ajv/dist/vocabularies/core/id.js
|
|
35347
35175
|
var require_id = __commonJS({
|
|
35348
|
-
"node_modules/ajv
|
|
35176
|
+
"node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
|
|
35349
35177
|
"use strict";
|
|
35350
35178
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35351
35179
|
var def = {
|
|
@@ -35358,9 +35186,9 @@ var require_id = __commonJS({
|
|
|
35358
35186
|
}
|
|
35359
35187
|
});
|
|
35360
35188
|
|
|
35361
|
-
// node_modules/ajv
|
|
35189
|
+
// node_modules/ajv/dist/vocabularies/core/ref.js
|
|
35362
35190
|
var require_ref = __commonJS({
|
|
35363
|
-
"node_modules/ajv
|
|
35191
|
+
"node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
|
|
35364
35192
|
"use strict";
|
|
35365
35193
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35366
35194
|
exports.callRef = exports.getValidate = void 0;
|
|
@@ -35480,9 +35308,9 @@ var require_ref = __commonJS({
|
|
|
35480
35308
|
}
|
|
35481
35309
|
});
|
|
35482
35310
|
|
|
35483
|
-
// node_modules/ajv
|
|
35311
|
+
// node_modules/ajv/dist/vocabularies/core/index.js
|
|
35484
35312
|
var require_core2 = __commonJS({
|
|
35485
|
-
"node_modules/ajv
|
|
35313
|
+
"node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
|
|
35486
35314
|
"use strict";
|
|
35487
35315
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35488
35316
|
var id_1 = require_id();
|
|
@@ -35501,9 +35329,9 @@ var require_core2 = __commonJS({
|
|
|
35501
35329
|
}
|
|
35502
35330
|
});
|
|
35503
35331
|
|
|
35504
|
-
// node_modules/ajv
|
|
35332
|
+
// node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
35505
35333
|
var require_limitNumber = __commonJS({
|
|
35506
|
-
"node_modules/ajv
|
|
35334
|
+
"node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
|
|
35507
35335
|
"use strict";
|
|
35508
35336
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35509
35337
|
var codegen_1 = require_codegen();
|
|
@@ -35533,9 +35361,9 @@ var require_limitNumber = __commonJS({
|
|
|
35533
35361
|
}
|
|
35534
35362
|
});
|
|
35535
35363
|
|
|
35536
|
-
// node_modules/ajv
|
|
35364
|
+
// node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
35537
35365
|
var require_multipleOf = __commonJS({
|
|
35538
|
-
"node_modules/ajv
|
|
35366
|
+
"node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
|
|
35539
35367
|
"use strict";
|
|
35540
35368
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35541
35369
|
var codegen_1 = require_codegen();
|
|
@@ -35561,9 +35389,9 @@ var require_multipleOf = __commonJS({
|
|
|
35561
35389
|
}
|
|
35562
35390
|
});
|
|
35563
35391
|
|
|
35564
|
-
// node_modules/ajv
|
|
35392
|
+
// node_modules/ajv/dist/runtime/ucs2length.js
|
|
35565
35393
|
var require_ucs2length = __commonJS({
|
|
35566
|
-
"node_modules/ajv
|
|
35394
|
+
"node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
|
|
35567
35395
|
"use strict";
|
|
35568
35396
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35569
35397
|
function ucs2length(str) {
|
|
@@ -35587,9 +35415,9 @@ var require_ucs2length = __commonJS({
|
|
|
35587
35415
|
}
|
|
35588
35416
|
});
|
|
35589
35417
|
|
|
35590
|
-
// node_modules/ajv
|
|
35418
|
+
// node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
35591
35419
|
var require_limitLength = __commonJS({
|
|
35592
|
-
"node_modules/ajv
|
|
35420
|
+
"node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
|
|
35593
35421
|
"use strict";
|
|
35594
35422
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35595
35423
|
var codegen_1 = require_codegen();
|
|
@@ -35619,9 +35447,9 @@ var require_limitLength = __commonJS({
|
|
|
35619
35447
|
}
|
|
35620
35448
|
});
|
|
35621
35449
|
|
|
35622
|
-
// node_modules/ajv
|
|
35450
|
+
// node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
35623
35451
|
var require_pattern = __commonJS({
|
|
35624
|
-
"node_modules/ajv
|
|
35452
|
+
"node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
|
|
35625
35453
|
"use strict";
|
|
35626
35454
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35627
35455
|
var code_1 = require_code2();
|
|
@@ -35656,9 +35484,9 @@ var require_pattern = __commonJS({
|
|
|
35656
35484
|
}
|
|
35657
35485
|
});
|
|
35658
35486
|
|
|
35659
|
-
// node_modules/ajv
|
|
35487
|
+
// node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
35660
35488
|
var require_limitProperties = __commonJS({
|
|
35661
|
-
"node_modules/ajv
|
|
35489
|
+
"node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
|
|
35662
35490
|
"use strict";
|
|
35663
35491
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35664
35492
|
var codegen_1 = require_codegen();
|
|
@@ -35685,9 +35513,9 @@ var require_limitProperties = __commonJS({
|
|
|
35685
35513
|
}
|
|
35686
35514
|
});
|
|
35687
35515
|
|
|
35688
|
-
// node_modules/ajv
|
|
35516
|
+
// node_modules/ajv/dist/vocabularies/validation/required.js
|
|
35689
35517
|
var require_required = __commonJS({
|
|
35690
|
-
"node_modules/ajv
|
|
35518
|
+
"node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
|
|
35691
35519
|
"use strict";
|
|
35692
35520
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35693
35521
|
var code_1 = require_code2();
|
|
@@ -35767,9 +35595,9 @@ var require_required = __commonJS({
|
|
|
35767
35595
|
}
|
|
35768
35596
|
});
|
|
35769
35597
|
|
|
35770
|
-
// node_modules/ajv
|
|
35598
|
+
// node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
35771
35599
|
var require_limitItems = __commonJS({
|
|
35772
|
-
"node_modules/ajv
|
|
35600
|
+
"node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
|
|
35773
35601
|
"use strict";
|
|
35774
35602
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35775
35603
|
var codegen_1 = require_codegen();
|
|
@@ -35796,9 +35624,9 @@ var require_limitItems = __commonJS({
|
|
|
35796
35624
|
}
|
|
35797
35625
|
});
|
|
35798
35626
|
|
|
35799
|
-
// node_modules/ajv
|
|
35627
|
+
// node_modules/ajv/dist/runtime/equal.js
|
|
35800
35628
|
var require_equal = __commonJS({
|
|
35801
|
-
"node_modules/ajv
|
|
35629
|
+
"node_modules/ajv/dist/runtime/equal.js"(exports) {
|
|
35802
35630
|
"use strict";
|
|
35803
35631
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35804
35632
|
var equal = require_fast_deep_equal();
|
|
@@ -35807,9 +35635,9 @@ var require_equal = __commonJS({
|
|
|
35807
35635
|
}
|
|
35808
35636
|
});
|
|
35809
35637
|
|
|
35810
|
-
// node_modules/ajv
|
|
35638
|
+
// node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
35811
35639
|
var require_uniqueItems = __commonJS({
|
|
35812
|
-
"node_modules/ajv
|
|
35640
|
+
"node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
|
|
35813
35641
|
"use strict";
|
|
35814
35642
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35815
35643
|
var dataType_1 = require_dataType();
|
|
@@ -35874,9 +35702,9 @@ var require_uniqueItems = __commonJS({
|
|
|
35874
35702
|
}
|
|
35875
35703
|
});
|
|
35876
35704
|
|
|
35877
|
-
// node_modules/ajv
|
|
35705
|
+
// node_modules/ajv/dist/vocabularies/validation/const.js
|
|
35878
35706
|
var require_const = __commonJS({
|
|
35879
|
-
"node_modules/ajv
|
|
35707
|
+
"node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
|
|
35880
35708
|
"use strict";
|
|
35881
35709
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35882
35710
|
var codegen_1 = require_codegen();
|
|
@@ -35903,9 +35731,9 @@ var require_const = __commonJS({
|
|
|
35903
35731
|
}
|
|
35904
35732
|
});
|
|
35905
35733
|
|
|
35906
|
-
// node_modules/ajv
|
|
35734
|
+
// node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
35907
35735
|
var require_enum = __commonJS({
|
|
35908
|
-
"node_modules/ajv
|
|
35736
|
+
"node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
|
|
35909
35737
|
"use strict";
|
|
35910
35738
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35911
35739
|
var codegen_1 = require_codegen();
|
|
@@ -35952,9 +35780,9 @@ var require_enum = __commonJS({
|
|
|
35952
35780
|
}
|
|
35953
35781
|
});
|
|
35954
35782
|
|
|
35955
|
-
// node_modules/ajv
|
|
35783
|
+
// node_modules/ajv/dist/vocabularies/validation/index.js
|
|
35956
35784
|
var require_validation = __commonJS({
|
|
35957
|
-
"node_modules/ajv
|
|
35785
|
+
"node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
|
|
35958
35786
|
"use strict";
|
|
35959
35787
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35960
35788
|
var limitNumber_1 = require_limitNumber();
|
|
@@ -35990,9 +35818,9 @@ var require_validation = __commonJS({
|
|
|
35990
35818
|
}
|
|
35991
35819
|
});
|
|
35992
35820
|
|
|
35993
|
-
// node_modules/ajv
|
|
35821
|
+
// node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
35994
35822
|
var require_additionalItems = __commonJS({
|
|
35995
|
-
"node_modules/ajv
|
|
35823
|
+
"node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
|
|
35996
35824
|
"use strict";
|
|
35997
35825
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35998
35826
|
exports.validateAdditionalItems = void 0;
|
|
@@ -36043,9 +35871,9 @@ var require_additionalItems = __commonJS({
|
|
|
36043
35871
|
}
|
|
36044
35872
|
});
|
|
36045
35873
|
|
|
36046
|
-
// node_modules/ajv
|
|
35874
|
+
// node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
36047
35875
|
var require_items = __commonJS({
|
|
36048
|
-
"node_modules/ajv
|
|
35876
|
+
"node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
|
|
36049
35877
|
"use strict";
|
|
36050
35878
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36051
35879
|
exports.validateTuple = void 0;
|
|
@@ -36100,9 +35928,9 @@ var require_items = __commonJS({
|
|
|
36100
35928
|
}
|
|
36101
35929
|
});
|
|
36102
35930
|
|
|
36103
|
-
// node_modules/ajv
|
|
35931
|
+
// node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
36104
35932
|
var require_prefixItems = __commonJS({
|
|
36105
|
-
"node_modules/ajv
|
|
35933
|
+
"node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
|
|
36106
35934
|
"use strict";
|
|
36107
35935
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36108
35936
|
var items_1 = require_items();
|
|
@@ -36117,9 +35945,9 @@ var require_prefixItems = __commonJS({
|
|
|
36117
35945
|
}
|
|
36118
35946
|
});
|
|
36119
35947
|
|
|
36120
|
-
// node_modules/ajv
|
|
35948
|
+
// node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
36121
35949
|
var require_items2020 = __commonJS({
|
|
36122
|
-
"node_modules/ajv
|
|
35950
|
+
"node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
|
|
36123
35951
|
"use strict";
|
|
36124
35952
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36125
35953
|
var codegen_1 = require_codegen();
|
|
@@ -36152,9 +35980,9 @@ var require_items2020 = __commonJS({
|
|
|
36152
35980
|
}
|
|
36153
35981
|
});
|
|
36154
35982
|
|
|
36155
|
-
// node_modules/ajv
|
|
35983
|
+
// node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
36156
35984
|
var require_contains = __commonJS({
|
|
36157
|
-
"node_modules/ajv
|
|
35985
|
+
"node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
|
|
36158
35986
|
"use strict";
|
|
36159
35987
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36160
35988
|
var codegen_1 = require_codegen();
|
|
@@ -36246,9 +36074,9 @@ var require_contains = __commonJS({
|
|
|
36246
36074
|
}
|
|
36247
36075
|
});
|
|
36248
36076
|
|
|
36249
|
-
// node_modules/ajv
|
|
36077
|
+
// node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
36250
36078
|
var require_dependencies = __commonJS({
|
|
36251
|
-
"node_modules/ajv
|
|
36079
|
+
"node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
|
|
36252
36080
|
"use strict";
|
|
36253
36081
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36254
36082
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
|
|
@@ -36340,9 +36168,9 @@ var require_dependencies = __commonJS({
|
|
|
36340
36168
|
}
|
|
36341
36169
|
});
|
|
36342
36170
|
|
|
36343
|
-
// node_modules/ajv
|
|
36171
|
+
// node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
36344
36172
|
var require_propertyNames = __commonJS({
|
|
36345
|
-
"node_modules/ajv
|
|
36173
|
+
"node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
|
|
36346
36174
|
"use strict";
|
|
36347
36175
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36348
36176
|
var codegen_1 = require_codegen();
|
|
@@ -36383,9 +36211,9 @@ var require_propertyNames = __commonJS({
|
|
|
36383
36211
|
}
|
|
36384
36212
|
});
|
|
36385
36213
|
|
|
36386
|
-
// node_modules/ajv
|
|
36214
|
+
// node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
36387
36215
|
var require_additionalProperties = __commonJS({
|
|
36388
|
-
"node_modules/ajv
|
|
36216
|
+
"node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
|
|
36389
36217
|
"use strict";
|
|
36390
36218
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36391
36219
|
var code_1 = require_code2();
|
|
@@ -36489,9 +36317,9 @@ var require_additionalProperties = __commonJS({
|
|
|
36489
36317
|
}
|
|
36490
36318
|
});
|
|
36491
36319
|
|
|
36492
|
-
// node_modules/ajv
|
|
36320
|
+
// node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
36493
36321
|
var require_properties = __commonJS({
|
|
36494
|
-
"node_modules/ajv
|
|
36322
|
+
"node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
|
|
36495
36323
|
"use strict";
|
|
36496
36324
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36497
36325
|
var validate_1 = require_validate();
|
|
@@ -36547,9 +36375,9 @@ var require_properties = __commonJS({
|
|
|
36547
36375
|
}
|
|
36548
36376
|
});
|
|
36549
36377
|
|
|
36550
|
-
// node_modules/ajv
|
|
36378
|
+
// node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
36551
36379
|
var require_patternProperties = __commonJS({
|
|
36552
|
-
"node_modules/ajv
|
|
36380
|
+
"node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
|
|
36553
36381
|
"use strict";
|
|
36554
36382
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36555
36383
|
var code_1 = require_code2();
|
|
@@ -36621,9 +36449,9 @@ var require_patternProperties = __commonJS({
|
|
|
36621
36449
|
}
|
|
36622
36450
|
});
|
|
36623
36451
|
|
|
36624
|
-
// node_modules/ajv
|
|
36452
|
+
// node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
36625
36453
|
var require_not = __commonJS({
|
|
36626
|
-
"node_modules/ajv
|
|
36454
|
+
"node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
|
|
36627
36455
|
"use strict";
|
|
36628
36456
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36629
36457
|
var util_1 = require_util();
|
|
@@ -36652,9 +36480,9 @@ var require_not = __commonJS({
|
|
|
36652
36480
|
}
|
|
36653
36481
|
});
|
|
36654
36482
|
|
|
36655
|
-
// node_modules/ajv
|
|
36483
|
+
// node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
36656
36484
|
var require_anyOf = __commonJS({
|
|
36657
|
-
"node_modules/ajv
|
|
36485
|
+
"node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
|
|
36658
36486
|
"use strict";
|
|
36659
36487
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36660
36488
|
var code_1 = require_code2();
|
|
@@ -36669,9 +36497,9 @@ var require_anyOf = __commonJS({
|
|
|
36669
36497
|
}
|
|
36670
36498
|
});
|
|
36671
36499
|
|
|
36672
|
-
// node_modules/ajv
|
|
36500
|
+
// node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
36673
36501
|
var require_oneOf = __commonJS({
|
|
36674
|
-
"node_modules/ajv
|
|
36502
|
+
"node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
|
|
36675
36503
|
"use strict";
|
|
36676
36504
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36677
36505
|
var codegen_1 = require_codegen();
|
|
@@ -36727,9 +36555,9 @@ var require_oneOf = __commonJS({
|
|
|
36727
36555
|
}
|
|
36728
36556
|
});
|
|
36729
36557
|
|
|
36730
|
-
// node_modules/ajv
|
|
36558
|
+
// node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
36731
36559
|
var require_allOf = __commonJS({
|
|
36732
|
-
"node_modules/ajv
|
|
36560
|
+
"node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
|
|
36733
36561
|
"use strict";
|
|
36734
36562
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36735
36563
|
var util_1 = require_util();
|
|
@@ -36754,9 +36582,9 @@ var require_allOf = __commonJS({
|
|
|
36754
36582
|
}
|
|
36755
36583
|
});
|
|
36756
36584
|
|
|
36757
|
-
// node_modules/ajv
|
|
36585
|
+
// node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
36758
36586
|
var require_if = __commonJS({
|
|
36759
|
-
"node_modules/ajv
|
|
36587
|
+
"node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
|
|
36760
36588
|
"use strict";
|
|
36761
36589
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36762
36590
|
var codegen_1 = require_codegen();
|
|
@@ -36823,9 +36651,9 @@ var require_if = __commonJS({
|
|
|
36823
36651
|
}
|
|
36824
36652
|
});
|
|
36825
36653
|
|
|
36826
|
-
// node_modules/ajv
|
|
36654
|
+
// node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
36827
36655
|
var require_thenElse = __commonJS({
|
|
36828
|
-
"node_modules/ajv
|
|
36656
|
+
"node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
|
|
36829
36657
|
"use strict";
|
|
36830
36658
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36831
36659
|
var util_1 = require_util();
|
|
@@ -36841,9 +36669,9 @@ var require_thenElse = __commonJS({
|
|
|
36841
36669
|
}
|
|
36842
36670
|
});
|
|
36843
36671
|
|
|
36844
|
-
// node_modules/ajv
|
|
36672
|
+
// node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
36845
36673
|
var require_applicator = __commonJS({
|
|
36846
|
-
"node_modules/ajv
|
|
36674
|
+
"node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
|
|
36847
36675
|
"use strict";
|
|
36848
36676
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36849
36677
|
var additionalItems_1 = require_additionalItems();
|
|
@@ -36889,9 +36717,9 @@ var require_applicator = __commonJS({
|
|
|
36889
36717
|
}
|
|
36890
36718
|
});
|
|
36891
36719
|
|
|
36892
|
-
// node_modules/ajv
|
|
36720
|
+
// node_modules/ajv/dist/vocabularies/format/format.js
|
|
36893
36721
|
var require_format = __commonJS({
|
|
36894
|
-
"node_modules/ajv
|
|
36722
|
+
"node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
|
|
36895
36723
|
"use strict";
|
|
36896
36724
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36897
36725
|
var codegen_1 = require_codegen();
|
|
@@ -36979,9 +36807,9 @@ var require_format = __commonJS({
|
|
|
36979
36807
|
}
|
|
36980
36808
|
});
|
|
36981
36809
|
|
|
36982
|
-
// node_modules/ajv
|
|
36810
|
+
// node_modules/ajv/dist/vocabularies/format/index.js
|
|
36983
36811
|
var require_format2 = __commonJS({
|
|
36984
|
-
"node_modules/ajv
|
|
36812
|
+
"node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
|
|
36985
36813
|
"use strict";
|
|
36986
36814
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36987
36815
|
var format_1 = require_format();
|
|
@@ -36990,9 +36818,9 @@ var require_format2 = __commonJS({
|
|
|
36990
36818
|
}
|
|
36991
36819
|
});
|
|
36992
36820
|
|
|
36993
|
-
// node_modules/ajv
|
|
36821
|
+
// node_modules/ajv/dist/vocabularies/metadata.js
|
|
36994
36822
|
var require_metadata = __commonJS({
|
|
36995
|
-
"node_modules/ajv
|
|
36823
|
+
"node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
|
|
36996
36824
|
"use strict";
|
|
36997
36825
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36998
36826
|
exports.contentVocabulary = exports.metadataVocabulary = void 0;
|
|
@@ -37013,9 +36841,9 @@ var require_metadata = __commonJS({
|
|
|
37013
36841
|
}
|
|
37014
36842
|
});
|
|
37015
36843
|
|
|
37016
|
-
// node_modules/ajv
|
|
36844
|
+
// node_modules/ajv/dist/vocabularies/draft7.js
|
|
37017
36845
|
var require_draft7 = __commonJS({
|
|
37018
|
-
"node_modules/ajv
|
|
36846
|
+
"node_modules/ajv/dist/vocabularies/draft7.js"(exports) {
|
|
37019
36847
|
"use strict";
|
|
37020
36848
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37021
36849
|
var core_1 = require_core2();
|
|
@@ -37035,9 +36863,9 @@ var require_draft7 = __commonJS({
|
|
|
37035
36863
|
}
|
|
37036
36864
|
});
|
|
37037
36865
|
|
|
37038
|
-
// node_modules/ajv
|
|
36866
|
+
// node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
37039
36867
|
var require_types = __commonJS({
|
|
37040
|
-
"node_modules/ajv
|
|
36868
|
+
"node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
|
|
37041
36869
|
"use strict";
|
|
37042
36870
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37043
36871
|
exports.DiscrError = void 0;
|
|
@@ -37049,9 +36877,9 @@ var require_types = __commonJS({
|
|
|
37049
36877
|
}
|
|
37050
36878
|
});
|
|
37051
36879
|
|
|
37052
|
-
// node_modules/ajv
|
|
36880
|
+
// node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
37053
36881
|
var require_discriminator = __commonJS({
|
|
37054
|
-
"node_modules/ajv
|
|
36882
|
+
"node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
|
|
37055
36883
|
"use strict";
|
|
37056
36884
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37057
36885
|
var codegen_1 = require_codegen();
|
|
@@ -37154,9 +36982,9 @@ var require_discriminator = __commonJS({
|
|
|
37154
36982
|
}
|
|
37155
36983
|
});
|
|
37156
36984
|
|
|
37157
|
-
// node_modules/ajv
|
|
36985
|
+
// node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
37158
36986
|
var require_json_schema_draft_07 = __commonJS({
|
|
37159
|
-
"node_modules/ajv
|
|
36987
|
+
"node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) {
|
|
37160
36988
|
module.exports = {
|
|
37161
36989
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
37162
36990
|
$id: "http://json-schema.org/draft-07/schema#",
|
|
@@ -37311,9 +37139,9 @@ var require_json_schema_draft_07 = __commonJS({
|
|
|
37311
37139
|
}
|
|
37312
37140
|
});
|
|
37313
37141
|
|
|
37314
|
-
// node_modules/ajv
|
|
37142
|
+
// node_modules/ajv/dist/ajv.js
|
|
37315
37143
|
var require_ajv = __commonJS({
|
|
37316
|
-
"node_modules/ajv
|
|
37144
|
+
"node_modules/ajv/dist/ajv.js"(exports, module) {
|
|
37317
37145
|
"use strict";
|
|
37318
37146
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37319
37147
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
|
|
@@ -37381,6 +37209,209 @@ var require_ajv = __commonJS({
|
|
|
37381
37209
|
}
|
|
37382
37210
|
});
|
|
37383
37211
|
|
|
37212
|
+
// node_modules/ajv-formats/dist/formats.js
|
|
37213
|
+
var require_formats = __commonJS({
|
|
37214
|
+
"node_modules/ajv-formats/dist/formats.js"(exports) {
|
|
37215
|
+
"use strict";
|
|
37216
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37217
|
+
exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
|
|
37218
|
+
function fmtDef(validate, compare) {
|
|
37219
|
+
return { validate, compare };
|
|
37220
|
+
}
|
|
37221
|
+
exports.fullFormats = {
|
|
37222
|
+
// date: http://tools.ietf.org/html/rfc3339#section-5.6
|
|
37223
|
+
date: fmtDef(date4, compareDate),
|
|
37224
|
+
// date-time: http://tools.ietf.org/html/rfc3339#section-5.6
|
|
37225
|
+
time: fmtDef(getTime(true), compareTime),
|
|
37226
|
+
"date-time": fmtDef(getDateTime(true), compareDateTime),
|
|
37227
|
+
"iso-time": fmtDef(getTime(), compareIsoTime),
|
|
37228
|
+
"iso-date-time": fmtDef(getDateTime(), compareIsoDateTime),
|
|
37229
|
+
// duration: https://tools.ietf.org/html/rfc3339#appendix-A
|
|
37230
|
+
duration: /^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,
|
|
37231
|
+
uri,
|
|
37232
|
+
"uri-reference": /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,
|
|
37233
|
+
// uri-template: https://tools.ietf.org/html/rfc6570
|
|
37234
|
+
"uri-template": /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,
|
|
37235
|
+
// For the source: https://gist.github.com/dperini/729294
|
|
37236
|
+
// For test cases: https://mathiasbynens.be/demo/url-regex
|
|
37237
|
+
url: /^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,
|
|
37238
|
+
email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,
|
|
37239
|
+
hostname: /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,
|
|
37240
|
+
// optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html
|
|
37241
|
+
ipv4: /^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,
|
|
37242
|
+
ipv6: /^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,
|
|
37243
|
+
regex,
|
|
37244
|
+
// uuid: http://tools.ietf.org/html/rfc4122
|
|
37245
|
+
uuid: /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,
|
|
37246
|
+
// JSON-pointer: https://tools.ietf.org/html/rfc6901
|
|
37247
|
+
// uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A
|
|
37248
|
+
"json-pointer": /^(?:\/(?:[^~/]|~0|~1)*)*$/,
|
|
37249
|
+
"json-pointer-uri-fragment": /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,
|
|
37250
|
+
// relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00
|
|
37251
|
+
"relative-json-pointer": /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,
|
|
37252
|
+
// the following formats are used by the openapi specification: https://spec.openapis.org/oas/v3.0.0#data-types
|
|
37253
|
+
// byte: https://github.com/miguelmota/is-base64
|
|
37254
|
+
byte,
|
|
37255
|
+
// signed 32 bit integer
|
|
37256
|
+
int32: { type: "number", validate: validateInt32 },
|
|
37257
|
+
// signed 64 bit integer
|
|
37258
|
+
int64: { type: "number", validate: validateInt64 },
|
|
37259
|
+
// C-type float
|
|
37260
|
+
float: { type: "number", validate: validateNumber },
|
|
37261
|
+
// C-type double
|
|
37262
|
+
double: { type: "number", validate: validateNumber },
|
|
37263
|
+
// hint to the UI to hide input strings
|
|
37264
|
+
password: true,
|
|
37265
|
+
// unchecked string payload
|
|
37266
|
+
binary: true
|
|
37267
|
+
};
|
|
37268
|
+
exports.fastFormats = {
|
|
37269
|
+
...exports.fullFormats,
|
|
37270
|
+
date: fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, compareDate),
|
|
37271
|
+
time: fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareTime),
|
|
37272
|
+
"date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareDateTime),
|
|
37273
|
+
"iso-time": fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, compareIsoTime),
|
|
37274
|
+
"iso-date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, compareIsoDateTime),
|
|
37275
|
+
// uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js
|
|
37276
|
+
uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,
|
|
37277
|
+
"uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,
|
|
37278
|
+
// email (sources from jsen validator):
|
|
37279
|
+
// http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363
|
|
37280
|
+
// http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')
|
|
37281
|
+
email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i
|
|
37282
|
+
};
|
|
37283
|
+
exports.formatNames = Object.keys(exports.fullFormats);
|
|
37284
|
+
function isLeapYear(year) {
|
|
37285
|
+
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
37286
|
+
}
|
|
37287
|
+
var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
|
|
37288
|
+
var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
37289
|
+
function date4(str) {
|
|
37290
|
+
const matches = DATE.exec(str);
|
|
37291
|
+
if (!matches)
|
|
37292
|
+
return false;
|
|
37293
|
+
const year = +matches[1];
|
|
37294
|
+
const month = +matches[2];
|
|
37295
|
+
const day = +matches[3];
|
|
37296
|
+
return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && isLeapYear(year) ? 29 : DAYS[month]);
|
|
37297
|
+
}
|
|
37298
|
+
function compareDate(d1, d2) {
|
|
37299
|
+
if (!(d1 && d2))
|
|
37300
|
+
return void 0;
|
|
37301
|
+
if (d1 > d2)
|
|
37302
|
+
return 1;
|
|
37303
|
+
if (d1 < d2)
|
|
37304
|
+
return -1;
|
|
37305
|
+
return 0;
|
|
37306
|
+
}
|
|
37307
|
+
var TIME = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;
|
|
37308
|
+
function getTime(strictTimeZone) {
|
|
37309
|
+
return function time3(str) {
|
|
37310
|
+
const matches = TIME.exec(str);
|
|
37311
|
+
if (!matches)
|
|
37312
|
+
return false;
|
|
37313
|
+
const hr = +matches[1];
|
|
37314
|
+
const min = +matches[2];
|
|
37315
|
+
const sec = +matches[3];
|
|
37316
|
+
const tz = matches[4];
|
|
37317
|
+
const tzSign = matches[5] === "-" ? -1 : 1;
|
|
37318
|
+
const tzH = +(matches[6] || 0);
|
|
37319
|
+
const tzM = +(matches[7] || 0);
|
|
37320
|
+
if (tzH > 23 || tzM > 59 || strictTimeZone && !tz)
|
|
37321
|
+
return false;
|
|
37322
|
+
if (hr <= 23 && min <= 59 && sec < 60)
|
|
37323
|
+
return true;
|
|
37324
|
+
const utcMin = min - tzM * tzSign;
|
|
37325
|
+
const utcHr = hr - tzH * tzSign - (utcMin < 0 ? 1 : 0);
|
|
37326
|
+
return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61;
|
|
37327
|
+
};
|
|
37328
|
+
}
|
|
37329
|
+
function compareTime(s1, s2) {
|
|
37330
|
+
if (!(s1 && s2))
|
|
37331
|
+
return void 0;
|
|
37332
|
+
const t1 = (/* @__PURE__ */ new Date("2020-01-01T" + s1)).valueOf();
|
|
37333
|
+
const t2 = (/* @__PURE__ */ new Date("2020-01-01T" + s2)).valueOf();
|
|
37334
|
+
if (!(t1 && t2))
|
|
37335
|
+
return void 0;
|
|
37336
|
+
return t1 - t2;
|
|
37337
|
+
}
|
|
37338
|
+
function compareIsoTime(t1, t2) {
|
|
37339
|
+
if (!(t1 && t2))
|
|
37340
|
+
return void 0;
|
|
37341
|
+
const a1 = TIME.exec(t1);
|
|
37342
|
+
const a2 = TIME.exec(t2);
|
|
37343
|
+
if (!(a1 && a2))
|
|
37344
|
+
return void 0;
|
|
37345
|
+
t1 = a1[1] + a1[2] + a1[3];
|
|
37346
|
+
t2 = a2[1] + a2[2] + a2[3];
|
|
37347
|
+
if (t1 > t2)
|
|
37348
|
+
return 1;
|
|
37349
|
+
if (t1 < t2)
|
|
37350
|
+
return -1;
|
|
37351
|
+
return 0;
|
|
37352
|
+
}
|
|
37353
|
+
var DATE_TIME_SEPARATOR = /t|\s/i;
|
|
37354
|
+
function getDateTime(strictTimeZone) {
|
|
37355
|
+
const time3 = getTime(strictTimeZone);
|
|
37356
|
+
return function date_time(str) {
|
|
37357
|
+
const dateTime = str.split(DATE_TIME_SEPARATOR);
|
|
37358
|
+
return dateTime.length === 2 && date4(dateTime[0]) && time3(dateTime[1]);
|
|
37359
|
+
};
|
|
37360
|
+
}
|
|
37361
|
+
function compareDateTime(dt1, dt2) {
|
|
37362
|
+
if (!(dt1 && dt2))
|
|
37363
|
+
return void 0;
|
|
37364
|
+
const d1 = new Date(dt1).valueOf();
|
|
37365
|
+
const d2 = new Date(dt2).valueOf();
|
|
37366
|
+
if (!(d1 && d2))
|
|
37367
|
+
return void 0;
|
|
37368
|
+
return d1 - d2;
|
|
37369
|
+
}
|
|
37370
|
+
function compareIsoDateTime(dt1, dt2) {
|
|
37371
|
+
if (!(dt1 && dt2))
|
|
37372
|
+
return void 0;
|
|
37373
|
+
const [d1, t1] = dt1.split(DATE_TIME_SEPARATOR);
|
|
37374
|
+
const [d2, t2] = dt2.split(DATE_TIME_SEPARATOR);
|
|
37375
|
+
const res = compareDate(d1, d2);
|
|
37376
|
+
if (res === void 0)
|
|
37377
|
+
return void 0;
|
|
37378
|
+
return res || compareTime(t1, t2);
|
|
37379
|
+
}
|
|
37380
|
+
var NOT_URI_FRAGMENT = /\/|:/;
|
|
37381
|
+
var URI = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
|
|
37382
|
+
function uri(str) {
|
|
37383
|
+
return NOT_URI_FRAGMENT.test(str) && URI.test(str);
|
|
37384
|
+
}
|
|
37385
|
+
var BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;
|
|
37386
|
+
function byte(str) {
|
|
37387
|
+
BYTE.lastIndex = 0;
|
|
37388
|
+
return BYTE.test(str);
|
|
37389
|
+
}
|
|
37390
|
+
var MIN_INT32 = -(2 ** 31);
|
|
37391
|
+
var MAX_INT32 = 2 ** 31 - 1;
|
|
37392
|
+
function validateInt32(value) {
|
|
37393
|
+
return Number.isInteger(value) && value <= MAX_INT32 && value >= MIN_INT32;
|
|
37394
|
+
}
|
|
37395
|
+
function validateInt64(value) {
|
|
37396
|
+
return Number.isInteger(value);
|
|
37397
|
+
}
|
|
37398
|
+
function validateNumber() {
|
|
37399
|
+
return true;
|
|
37400
|
+
}
|
|
37401
|
+
var Z_ANCHOR = /[^\\]\\Z/;
|
|
37402
|
+
function regex(str) {
|
|
37403
|
+
if (Z_ANCHOR.test(str))
|
|
37404
|
+
return false;
|
|
37405
|
+
try {
|
|
37406
|
+
new RegExp(str);
|
|
37407
|
+
return true;
|
|
37408
|
+
} catch (e) {
|
|
37409
|
+
return false;
|
|
37410
|
+
}
|
|
37411
|
+
}
|
|
37412
|
+
}
|
|
37413
|
+
});
|
|
37414
|
+
|
|
37384
37415
|
// node_modules/ajv-formats/dist/limit.js
|
|
37385
37416
|
var require_limit = __commonJS({
|
|
37386
37417
|
"node_modules/ajv-formats/dist/limit.js"(exports) {
|
|
@@ -38027,8 +38058,8 @@ function createDevelopmentContext(moduleUrl) {
|
|
|
38027
38058
|
return {
|
|
38028
38059
|
mode: "development",
|
|
38029
38060
|
command: {
|
|
38030
|
-
command: "
|
|
38031
|
-
args: ["--
|
|
38061
|
+
command: "bun",
|
|
38062
|
+
args: ["--cwd", projectRoot, "run", "--silent", "dev", "--"]
|
|
38032
38063
|
}
|
|
38033
38064
|
};
|
|
38034
38065
|
}
|
|
@@ -38059,7 +38090,7 @@ function formatCliHelpCommand(context, args) {
|
|
|
38059
38090
|
function formatCliUsageCommand(context) {
|
|
38060
38091
|
switch (context.mode) {
|
|
38061
38092
|
case "development":
|
|
38062
|
-
return "
|
|
38093
|
+
return "bun run dev --";
|
|
38063
38094
|
case "npx":
|
|
38064
38095
|
return "npx poe-code";
|
|
38065
38096
|
case "npx-latest":
|
|
@@ -38112,7 +38143,9 @@ function throwCommandNotFound(input) {
|
|
|
38112
38143
|
logger2.error(`${panel.label}
|
|
38113
38144
|
${panel.footer}`);
|
|
38114
38145
|
}
|
|
38115
|
-
|
|
38146
|
+
if (container.dependencies.exitOverride === false) {
|
|
38147
|
+
process.exitCode = 1;
|
|
38148
|
+
}
|
|
38116
38149
|
throw new SilentError();
|
|
38117
38150
|
}
|
|
38118
38151
|
var init_command_not_found = __esm({
|
|
@@ -38593,19 +38626,21 @@ var init_configs3 = __esm({
|
|
|
38593
38626
|
}
|
|
38594
38627
|
});
|
|
38595
38628
|
|
|
38629
|
+
// packages/agent-skill-config/src/templates/poe-generate.md
|
|
38630
|
+
var poe_generate_default;
|
|
38631
|
+
var init_poe_generate = __esm({
|
|
38632
|
+
"packages/agent-skill-config/src/templates/poe-generate.md"() {
|
|
38633
|
+
poe_generate_default = '---\nname: poe-generate\ndescription: \'Poe code generation skill\'\n---\n\n# poe-code generate\n\nUse `poe-code generate` to create text, images, audio, or video via the Poe API.\n\n## Text generation\n\n```bash\npoe-code generate "Write a short function that parses a JSON string safely."\n```\n\nSpecify the model/bot:\n\n```bash\n# CLI option\npoe-code generate --model "gpt-4.1" "Summarize this codebase change."\n\n# Some agent runtimes call the model selector `--bot`\npoe-code generate --bot "gpt-4.1" "Summarize this codebase change."\n```\n\n## Media generation\n\nThe CLI supports media generation as subcommands:\n\n```bash\npoe-code generate image "A 3D render of a rubber duck wearing sunglasses" --model "gpt-image-1" -o duck.png\npoe-code generate video "A cinematic timelapse of a city at night" --model "veo" -o city.mp4\npoe-code generate audio "A calm 10 second lo-fi beat" --model "audio-model" -o beat.wav\n```\n\nSome agent runtimes expose the same media types as flags. If available, these are equivalent:\n\n```bash\npoe-code generate --image "A 3D render of a rubber duck wearing sunglasses" --bot "gpt-image-1" -o duck.png\npoe-code generate --video "A cinematic timelapse of a city at night" --bot "veo" -o city.mp4\npoe-code generate --audio "A calm 10 second lo-fi beat" --bot "audio-model" -o beat.wav\n```\n\n## Tips\n\n- Use `--param key=value` to pass provider/model parameters (repeatable).\n- Use `--output <path>` (or `-o`) for media outputs.\n';
|
|
38634
|
+
}
|
|
38635
|
+
});
|
|
38636
|
+
|
|
38596
38637
|
// packages/agent-skill-config/src/templates.ts
|
|
38597
|
-
import { readFile as readFile6 } from "node:fs/promises";
|
|
38598
38638
|
async function getTemplates() {
|
|
38599
38639
|
if (templatesCache) {
|
|
38600
38640
|
return templatesCache;
|
|
38601
38641
|
}
|
|
38602
|
-
const poeGenerateTemplateUrl = new URL(
|
|
38603
|
-
"./templates/poe-generate.md",
|
|
38604
|
-
import.meta.url
|
|
38605
|
-
);
|
|
38606
|
-
const poeGenerateTemplate = await readFile6(poeGenerateTemplateUrl, "utf8");
|
|
38607
38642
|
templatesCache = {
|
|
38608
|
-
"poe-generate.md":
|
|
38643
|
+
"poe-generate.md": poe_generate_default
|
|
38609
38644
|
};
|
|
38610
38645
|
return templatesCache;
|
|
38611
38646
|
}
|
|
@@ -38624,6 +38659,7 @@ var templatesCache;
|
|
|
38624
38659
|
var init_templates = __esm({
|
|
38625
38660
|
"packages/agent-skill-config/src/templates.ts"() {
|
|
38626
38661
|
"use strict";
|
|
38662
|
+
init_poe_generate();
|
|
38627
38663
|
templatesCache = null;
|
|
38628
38664
|
}
|
|
38629
38665
|
});
|
|
@@ -39059,7 +39095,7 @@ async function displayVersion(container, currentVersion) {
|
|
|
39059
39095
|
logger2.warn(
|
|
39060
39096
|
`Update available: ${result.currentVersion} -> ${result.latestVersion}`
|
|
39061
39097
|
);
|
|
39062
|
-
logger2.resolved("Update", `
|
|
39098
|
+
logger2.resolved("Update", `bun install --global poe-code@latest`);
|
|
39063
39099
|
}
|
|
39064
39100
|
}
|
|
39065
39101
|
var init_version2 = __esm({
|
|
@@ -39615,7 +39651,7 @@ var init_models2 = __esm({
|
|
|
39615
39651
|
|
|
39616
39652
|
// src/cli/commands/pipeline.ts
|
|
39617
39653
|
import path27 from "node:path";
|
|
39618
|
-
import { readFile as
|
|
39654
|
+
import { readFile as readFile6, stat as stat7 } from "node:fs/promises";
|
|
39619
39655
|
import { fileURLToPath as fileURLToPath4 } from "node:url";
|
|
39620
39656
|
async function resolvePipelinePlanDirectory(container) {
|
|
39621
39657
|
const configDoc = await readMergedDocument(
|
|
@@ -39683,8 +39719,8 @@ async function loadPipelineTemplates() {
|
|
|
39683
39719
|
continue;
|
|
39684
39720
|
}
|
|
39685
39721
|
const [skillPlan, steps] = await Promise.all([
|
|
39686
|
-
|
|
39687
|
-
|
|
39722
|
+
readFile6(path27.join(templateRoot, "SKILL_plan.md"), "utf8"),
|
|
39723
|
+
readFile6(path27.join(templateRoot, "steps.yaml.hbs"), "utf8")
|
|
39688
39724
|
]);
|
|
39689
39725
|
pipelineTemplatesCache = { skillPlan, steps };
|
|
39690
39726
|
return pipelineTemplatesCache;
|
|
@@ -39790,7 +39826,7 @@ function registerPipelineCommand(program, container) {
|
|
|
39790
39826
|
return typeof selected === "string" ? selected : null;
|
|
39791
39827
|
},
|
|
39792
39828
|
promptForPath: async (input) => {
|
|
39793
|
-
const value = await
|
|
39829
|
+
const value = await promptText(input);
|
|
39794
39830
|
if (isCancel2(value)) {
|
|
39795
39831
|
cancel2("Pipeline run cancelled.");
|
|
39796
39832
|
return null;
|
|
@@ -40223,7 +40259,7 @@ async function resolveRunIterations(options) {
|
|
|
40223
40259
|
if (flags.assumeYes) {
|
|
40224
40260
|
return DEFAULT_RALPH_ITERATIONS;
|
|
40225
40261
|
}
|
|
40226
|
-
const entered = await
|
|
40262
|
+
const entered = await promptText({
|
|
40227
40263
|
message: "How many Ralph iterations should run?"
|
|
40228
40264
|
});
|
|
40229
40265
|
if (isCancel2(entered)) {
|
|
@@ -40253,7 +40289,7 @@ async function resolveInitIterations(options) {
|
|
|
40253
40289
|
if (flags.assumeYes) {
|
|
40254
40290
|
return DEFAULT_RALPH_ITERATIONS;
|
|
40255
40291
|
}
|
|
40256
|
-
const entered = await
|
|
40292
|
+
const entered = await promptText({
|
|
40257
40293
|
message: "How many Ralph iterations should run?"
|
|
40258
40294
|
});
|
|
40259
40295
|
if (isCancel2(entered)) {
|
|
@@ -40445,7 +40481,7 @@ var init_package = __esm({
|
|
|
40445
40481
|
"package.json"() {
|
|
40446
40482
|
package_default = {
|
|
40447
40483
|
name: "poe-code",
|
|
40448
|
-
version: "3.0.
|
|
40484
|
+
version: "3.0.116-beta.1",
|
|
40449
40485
|
description: "CLI tool to configure Poe API for developer workflows.",
|
|
40450
40486
|
type: "module",
|
|
40451
40487
|
main: "./dist/index.js",
|
|
@@ -40454,48 +40490,48 @@ var init_package = __esm({
|
|
|
40454
40490
|
"packages/*"
|
|
40455
40491
|
],
|
|
40456
40492
|
scripts: {
|
|
40457
|
-
build: "turbo run build && tsc -p tsconfig.build.json &&
|
|
40458
|
-
"build:deps": "
|
|
40459
|
-
predev: "turbo run build --output-logs=none --log-prefix=none --verbosity=0 > /dev/null 2>&1",
|
|
40460
|
-
dev: "
|
|
40461
|
-
start: "
|
|
40462
|
-
"dev:bundle": "
|
|
40493
|
+
build: "turbo run build && tsc -p tsconfig.build.json && bun scripts/generate-bin-wrappers.mjs && bun scripts/bundle.mjs",
|
|
40494
|
+
"build:deps": "bun scripts/list-workspace-deps.mjs",
|
|
40495
|
+
predev: "bunx turbo run build --output-logs=none --log-prefix=none --verbosity=0 > /dev/null 2>&1",
|
|
40496
|
+
dev: "bun run src/index.ts",
|
|
40497
|
+
start: "bun dist/bin.cjs",
|
|
40498
|
+
"dev:bundle": "bun run build && bun dist/bin.cjs",
|
|
40463
40499
|
test: "turbo run test:unit",
|
|
40464
|
-
"test:unit": "
|
|
40465
|
-
typecheck: "
|
|
40466
|
-
"check:semver": `
|
|
40467
|
-
lint: "
|
|
40500
|
+
"test:unit": "bun test",
|
|
40501
|
+
typecheck: "bun run lint:types",
|
|
40502
|
+
"check:semver": `bun -e "const semver=require('semver'); const pkg=require('./package.json'); if(!semver.valid(pkg.version)){console.error('Invalid semver version in package.json:', pkg.version); process.exit(1);}"`,
|
|
40503
|
+
lint: "bun run lint:eslint && bun run lint:types && bun run lint:workflows",
|
|
40468
40504
|
"lint:workflows": "(command -v actionlint > /dev/null || bash scripts/setup-actionlint.sh) && (command -v actionlint > /dev/null && actionlint || ./actionlint)",
|
|
40469
40505
|
"lint:eslint": "eslint . --ext ts",
|
|
40470
40506
|
"lint:types": "tsc -p tsconfig.build.json --noEmit",
|
|
40471
|
-
"labels:generate": "
|
|
40472
|
-
screenshot: "
|
|
40473
|
-
"screenshot-poe-code": "
|
|
40507
|
+
"labels:generate": "bun run scripts/generate-labels.ts",
|
|
40508
|
+
screenshot: "bun run scripts/screenshot.ts",
|
|
40509
|
+
"screenshot-poe-code": "bun run scripts/screenshot.ts --poe-code",
|
|
40474
40510
|
"generate:design-docs": "turbo run generate:docs --filter=@poe-code/design-system",
|
|
40475
40511
|
format: "prettier --check .",
|
|
40476
40512
|
"format:write": "prettier --write .",
|
|
40477
|
-
"watch:diff": "
|
|
40478
|
-
"test:integration": "
|
|
40479
|
-
"test:record": "POE_SNAPSHOT_MODE=record
|
|
40480
|
-
"test-generate": "
|
|
40481
|
-
snapshots: "
|
|
40482
|
-
"snapshots:list": "
|
|
40483
|
-
"snapshots:refresh": "
|
|
40484
|
-
"snapshots:delete": "
|
|
40485
|
-
"snapshots:list:stale": "
|
|
40486
|
-
"snapshots:delete:stale": "
|
|
40487
|
-
e2e: "
|
|
40488
|
-
"e2e:verbose": "E2E_VERBOSE=1
|
|
40489
|
-
"e2e:cleanup": "
|
|
40490
|
-
"e2e:cleanup:aggressive": "
|
|
40491
|
-
"e2e:logs": "
|
|
40492
|
-
"e2e:logs:rotate": "
|
|
40513
|
+
"watch:diff": "bun run local_scripts/watch-diff.ts",
|
|
40514
|
+
"test:integration": "bun test tests/integration/",
|
|
40515
|
+
"test:record": "POE_SNAPSHOT_MODE=record bun run test:integration",
|
|
40516
|
+
"test-generate": "bun run scripts/test-generate.ts",
|
|
40517
|
+
snapshots: "bun run scripts/snapshots.ts",
|
|
40518
|
+
"snapshots:list": "bun run snapshots -- list",
|
|
40519
|
+
"snapshots:refresh": "bun run snapshots -- refresh",
|
|
40520
|
+
"snapshots:delete": "bun run snapshots -- delete",
|
|
40521
|
+
"snapshots:list:stale": "bun run snapshots -- list --stale",
|
|
40522
|
+
"snapshots:delete:stale": "bun run snapshots -- delete --stale",
|
|
40523
|
+
e2e: "bun test --cwd e2e --max-concurrency 1 --timeout 600000",
|
|
40524
|
+
"e2e:verbose": "E2E_VERBOSE=1 bun test --cwd e2e --max-concurrency 1 --timeout 600000 --verbose",
|
|
40525
|
+
"e2e:cleanup": "bun run packages/e2e-docker-test-runner/scripts/cleanup.ts",
|
|
40526
|
+
"e2e:cleanup:aggressive": "bun run packages/e2e-docker-test-runner/scripts/cleanup.ts --aggressive",
|
|
40527
|
+
"e2e:logs": "bun run packages/e2e-docker-test-runner/scripts/logs.ts",
|
|
40528
|
+
"e2e:logs:rotate": "bun run packages/e2e-docker-test-runner/scripts/logs.ts --rotate",
|
|
40493
40529
|
"e2e:cache:clear": "rm -rf ~/.cache/poe-e2e",
|
|
40494
|
-
prepack: "
|
|
40530
|
+
prepack: "bun run build",
|
|
40495
40531
|
prepare: "husky",
|
|
40496
|
-
"install-local-package": "
|
|
40497
|
-
smoke: "
|
|
40498
|
-
"smoke:verbose": "
|
|
40532
|
+
"install-local-package": "bun pm pack --destination /tmp --quiet && bun install --global /tmp/poe-code-*.tgz && rm /tmp/poe-code-*.tgz",
|
|
40533
|
+
smoke: "bun run scripts/smoke-test.ts",
|
|
40534
|
+
"smoke:verbose": "bun run scripts/smoke-test.ts --verbose"
|
|
40499
40535
|
},
|
|
40500
40536
|
bin: {
|
|
40501
40537
|
"poe-code": "dist/bin.cjs",
|
|
@@ -40510,9 +40546,9 @@ var init_package = __esm({
|
|
|
40510
40546
|
"dist"
|
|
40511
40547
|
],
|
|
40512
40548
|
engines: {
|
|
40513
|
-
|
|
40549
|
+
bun: ">=1.3.0"
|
|
40514
40550
|
},
|
|
40515
|
-
packageManager: "
|
|
40551
|
+
packageManager: "bun@1.3.11",
|
|
40516
40552
|
dependencies: {
|
|
40517
40553
|
"@clack/prompts": "^1.0.0",
|
|
40518
40554
|
chalk: "^5.6.2",
|
|
@@ -40529,8 +40565,6 @@ var init_package = __esm({
|
|
|
40529
40565
|
devDependencies: {
|
|
40530
40566
|
"@eslint/js": "^9.0.0",
|
|
40531
40567
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
40532
|
-
"auth-store": "*",
|
|
40533
|
-
"poe-oauth": "*",
|
|
40534
40568
|
"@poe-code/agent-spawn": "*",
|
|
40535
40569
|
"@poe-code/config-mutations": "*",
|
|
40536
40570
|
"@poe-code/design-system": "*",
|
|
@@ -40540,22 +40574,24 @@ var init_package = __esm({
|
|
|
40540
40574
|
"@poe-code/poe-acp-client": "*",
|
|
40541
40575
|
"@poe-code/poe-code-config": "*",
|
|
40542
40576
|
"@poe-code/ralph": "*",
|
|
40577
|
+
"@types/bun": "latest",
|
|
40543
40578
|
"@types/mustache": "^4.2.6",
|
|
40544
40579
|
"@types/node": "^25.2.2",
|
|
40545
40580
|
"@types/semver": "^7.7.1",
|
|
40581
|
+
"auth-store": "*",
|
|
40582
|
+
esbuild: "^0.27.4",
|
|
40546
40583
|
eslint: "^9.0.0",
|
|
40547
40584
|
"eslint-config-prettier": "^10.1.8",
|
|
40548
40585
|
globals: "^17.3.0",
|
|
40549
40586
|
husky: "^9.1.7",
|
|
40550
40587
|
memfs: "^4.56.10",
|
|
40588
|
+
"poe-oauth": "*",
|
|
40551
40589
|
prettier: "^3.8.1",
|
|
40552
40590
|
"tiny-stdio-mcp-server": "*",
|
|
40553
40591
|
"tiny-stdio-mcp-test-server": "*",
|
|
40554
|
-
tsx: ">=4.21.0",
|
|
40555
40592
|
turbo: "^2.8.3",
|
|
40556
40593
|
typescript: "^5.9.3",
|
|
40557
|
-
"typescript-eslint": "^8.54.0"
|
|
40558
|
-
vitest: "^4.0.18"
|
|
40594
|
+
"typescript-eslint": "^8.54.0"
|
|
40559
40595
|
},
|
|
40560
40596
|
repository: {
|
|
40561
40597
|
type: "git",
|
|
@@ -40935,7 +40971,7 @@ function resolveSelectInitial(descriptor) {
|
|
|
40935
40971
|
return descriptor.initial;
|
|
40936
40972
|
}
|
|
40937
40973
|
function createPromptRunner(adapter = {
|
|
40938
|
-
text:
|
|
40974
|
+
text: promptText,
|
|
40939
40975
|
password: password2,
|
|
40940
40976
|
select: select2,
|
|
40941
40977
|
isCancel: isCancel2,
|
|
@@ -41275,7 +41311,7 @@ function createPoeAgentProgram() {
|
|
|
41275
41311
|
program.name("poe-agent").description("Run a single prompt through the Poe agent runtime.").version("0.0.0").option("--model <model>", "Model identifier override").option("-C, --cwd <path>", "Working directory for the agent").option("--stdin", "Read the prompt from stdin").option(
|
|
41276
41312
|
"--mcp-config <json>",
|
|
41277
41313
|
"MCP server config JSON: {name: {command, args?, env?}}"
|
|
41278
|
-
).argument("[prompt]", "Prompt text to send (or '-' / stdin)").argument("[args...]", "Additional arguments forwarded to the agent").action(async function(
|
|
41314
|
+
).argument("[prompt]", "Prompt text to send (or '-' / stdin)").argument("[args...]", "Additional arguments forwarded to the agent").action(async function(promptText2, _args = []) {
|
|
41279
41315
|
const commandOptions = this.opts();
|
|
41280
41316
|
const mcpServers = parseMcpSpawnConfig(commandOptions.mcpConfig);
|
|
41281
41317
|
const cwdOverride = resolveWorkingDirectory(
|
|
@@ -41283,23 +41319,23 @@ function createPoeAgentProgram() {
|
|
|
41283
41319
|
commandOptions.cwd
|
|
41284
41320
|
);
|
|
41285
41321
|
const wantsStdinFlag = commandOptions.stdin === true;
|
|
41286
|
-
const shouldReadFromStdin = wantsStdinFlag ||
|
|
41287
|
-
if (wantsStdinFlag ||
|
|
41288
|
-
|
|
41322
|
+
const shouldReadFromStdin = wantsStdinFlag || promptText2 === "-" || !promptText2 && !process.stdin.isTTY;
|
|
41323
|
+
if (wantsStdinFlag || promptText2 === "-") {
|
|
41324
|
+
promptText2 = void 0;
|
|
41289
41325
|
}
|
|
41290
|
-
if (!
|
|
41326
|
+
if (!promptText2 && shouldReadFromStdin) {
|
|
41291
41327
|
const chunks = [];
|
|
41292
41328
|
for await (const chunk of process.stdin) {
|
|
41293
41329
|
chunks.push(chunk);
|
|
41294
41330
|
}
|
|
41295
|
-
|
|
41331
|
+
promptText2 = Buffer.concat(chunks).toString("utf8").trim();
|
|
41296
41332
|
}
|
|
41297
|
-
if (!
|
|
41333
|
+
if (!promptText2) {
|
|
41298
41334
|
throw new ValidationError("No prompt provided via argument or stdin");
|
|
41299
41335
|
}
|
|
41300
41336
|
const { spawnPoeAgentWithAcp: spawnPoeAgentWithAcp2 } = await Promise.resolve().then(() => (init_poe_agent(), poe_agent_exports));
|
|
41301
41337
|
const { events, done } = spawnPoeAgentWithAcp2({
|
|
41302
|
-
prompt:
|
|
41338
|
+
prompt: promptText2,
|
|
41303
41339
|
model: commandOptions.model ?? DEFAULT_FRONTIER_MODEL,
|
|
41304
41340
|
cwd: cwdOverride ?? process.cwd(),
|
|
41305
41341
|
mcpServers
|