@tangle-network/sandbox-cli 0.21.64 → 0.21.65
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 +31 -3
- package/SKILL.md +29 -1
- package/dist/graph-native-CS_TmaCK.mjs +1 -0
- package/dist/graph-viewer/Analytics-bWsqhurt.js +1001 -0
- package/dist/graph-viewer/{AnswerStrip-DhwqOyxI.js → AnswerStrip-COxV7gLW.js} +2 -2
- package/dist/graph-viewer/Checks-CQGmKcQ0.js +164 -0
- package/dist/graph-viewer/Conversations-DgCshBAf.js +627 -0
- package/dist/graph-viewer/{Files-DtZhf0ii.js → Files-CvIOGrAs.js} +81 -90
- package/dist/graph-viewer/LiveRun-DHmsr6F7.js +311 -0
- package/dist/graph-viewer/{Outputs-QET3nPPp.js → Outputs-rwBg_x36.js} +4 -4
- package/dist/graph-viewer/Overview-C150tkVa.js +194 -0
- package/dist/graph-viewer/{RunOverview-DJQDAMIx.js → RunOverview-CSqsunqf.js} +2 -2
- package/dist/graph-viewer/RunPage-F_prVwiV.js +286 -0
- package/dist/graph-viewer/Timeline-BFDywlmz.js +335 -0
- package/dist/graph-viewer/Today-BdDuqZGF.js +623 -0
- package/dist/graph-viewer/Topology-SAfGtd5u.js +238 -0
- package/dist/graph-viewer/Traces-BYqXaS_s.js +254 -0
- package/dist/graph-viewer/{WallPages-4d9QUZDq.js → WallPages-MM70VZrC.js} +48 -30
- package/dist/graph-viewer/agent-runtime.js +55 -55
- package/dist/graph-viewer/{data-BJmP7F1M.js → data-DTGmre1W.js} +31 -27
- package/dist/graph-viewer/harness-sessions.js +1 -1
- package/dist/graph-viewer/index.js +1357 -1392
- package/dist/graph-viewer/{lazy-pages-DM0cZM10.js → lazy-pages-BYuq_L_n.js} +9 -5
- package/dist/graph-viewer/{outputs-model-CGdvjkQh.js → outputs-model-CHTx8rMz.js} +2 -2
- package/dist/graph-viewer/{viewer/plain-words-CgvxtEOa.js → plain-words-BrMHl0On.js} +9 -4
- package/dist/graph-viewer/receipt.js +2 -2
- package/dist/graph-viewer/record-CsP_3NJS.js +612 -0
- package/dist/graph-viewer/record-part-CuT9Xw37.js +334 -0
- package/dist/graph-viewer/record.js +2 -336
- package/dist/graph-viewer/report-viewer.js +65 -65
- package/dist/graph-viewer/report.js +1 -1
- package/dist/graph-viewer/research-publication.js +1 -1
- package/dist/graph-viewer/{run-files-C1NgzM0l.js → run-files-BckQDdTD.js} +1 -1
- package/dist/graph-viewer/{run-receipt-Bvi4-KVM.js → run-receipt-Bt2iXJUy.js} +1 -0
- package/dist/graph-viewer/schemas/agent-workspace.play.v1.json +3 -0
- package/dist/graph-viewer/schemas/agent-workspace.plays.v1.json +2 -0
- package/dist/graph-viewer/schemas/agent-workspace.run.v1.json +1 -0
- package/dist/graph-viewer/styles.css +4559 -2385
- package/dist/graph-viewer/trace-spans.js +1 -1
- package/dist/graph-viewer/ui-xa5w5bEN.js +889 -0
- package/dist/graph-viewer/viewer/{AgentGraphCanvas-CMdOlSlh-4EervjeC.js → AgentGraphCanvas-B74GN1o6-BZEumF7-.js} +2610 -2707
- package/dist/graph-viewer/viewer/Analytics-E3XS570U.js +1002 -0
- package/dist/graph-viewer/viewer/{AnswerStrip-CGUyXuYH.js → AnswerStrip-B7xMU57A.js} +2 -2
- package/dist/graph-viewer/viewer/Checks-CJ5XSHbv.js +165 -0
- package/dist/graph-viewer/viewer/Conversations-AX8G7Qyl.js +904 -0
- package/dist/graph-viewer/viewer/Files-DxL1576V.js +630 -0
- package/dist/graph-viewer/viewer/LiveRun-B-BckyEj.js +820 -0
- package/dist/graph-viewer/viewer/{Outputs-CumGyjQo.js → Outputs-BoIpgfMv.js} +24 -23
- package/dist/graph-viewer/viewer/Overview-Dzg5XJgy.js +436 -0
- package/dist/graph-viewer/viewer/RunPage-NtevWXBs.js +285 -0
- package/dist/graph-viewer/viewer/{Scores-ZS16yk0n.js → Scores-Dgv4WePL.js} +3 -3
- package/dist/graph-viewer/viewer/Timeline-CzY3LVDu.js +335 -0
- package/dist/graph-viewer/viewer/Today-Bi9IIwuh.js +623 -0
- package/dist/graph-viewer/viewer/Topology-CzjqSFXH.js +239 -0
- package/dist/graph-viewer/viewer/Traces-CMX0H1VU.js +254 -0
- package/dist/graph-viewer/viewer/{WallPages-CzWpyIfp.js → WallPages-Clj4bORg.js} +50 -32
- package/dist/graph-viewer/viewer/addon-webgl-BSCscllv.js +4027 -0
- package/dist/graph-viewer/viewer/agent-record-BrP-ENHg.css +2 -0
- package/dist/graph-viewer/viewer/{bot-D6Nrej7Z.js → bot-BaQU59LG.js} +1 -1
- package/dist/graph-viewer/viewer/{chevron-right-D_5IKLxu.js → chevron-right-Xn05jYLT.js} +1 -1
- package/dist/graph-viewer/viewer/{createLucideIcon-yH0cxLMy.js → createLucideIcon-BSphcoOJ.js} +1 -1
- package/dist/graph-viewer/viewer/dashboard-D3JhmRhe-DSl0zhkw.js +371 -0
- package/dist/graph-viewer/viewer/{data-CkWfWr7i.js → data-CVHeKhrh.js} +144 -139
- package/dist/graph-viewer/viewer/dist-4_KJz8ZM.js +349 -0
- package/dist/graph-viewer/viewer/dist-Dy-wrdTt.js +1615 -0
- package/dist/graph-viewer/viewer/es2015-utW4DTOJ.js +3506 -0
- package/dist/graph-viewer/viewer/{final-output-kwY11u9X.js → final-output-BYT-g-9j.js} +1 -1
- package/dist/graph-viewer/viewer/flow-waterfall-model-DvrgPLGS-BdThSFH-.js +2696 -0
- package/dist/graph-viewer/viewer/git-branch-BzTbIcYL.js +28 -0
- package/dist/graph-viewer/viewer/{highlights-Btsi5OXl.js → highlights-DWeSCtiR.js} +4 -4
- package/dist/graph-viewer/viewer/jsx-runtime-DPT6sCLq.js +319 -0
- package/dist/graph-viewer/viewer/lazy-pages-ChiMJ8r_.js +803 -0
- package/dist/graph-viewer/viewer/{markdown-CX_sVrXB.js → markdown-lADwhD7y.js} +2324 -2608
- package/dist/graph-viewer/viewer/model-brand-bTcMjQtB-RSb7EbGB.js +476 -0
- package/dist/graph-viewer/viewer/{page-header-Brq611fd.js → page-header-QbUg8F8i.js} +12 -11
- package/dist/graph-viewer/{plain-words-CgvxtEOa.js → viewer/plain-words-BrMHl0On.js} +9 -4
- package/dist/graph-viewer/viewer/primitives-znfPK9NP-B6UO7uDr.js +346 -0
- package/dist/graph-viewer/viewer/react-DQ7E2Epi.js +4254 -0
- package/dist/graph-viewer/viewer/{react-dom-t1L4_-il.js → react-dom-BEusmvQH.js} +1 -1
- package/dist/graph-viewer/viewer/record-DZnT6SWN-H-ul3U3a.js +3523 -0
- package/dist/graph-viewer/viewer/record-W39D5MO-.js +1 -0
- package/dist/graph-viewer/viewer/record-part-CbweyYoV.js +335 -0
- package/dist/graph-viewer/viewer/{segmented-control-BaJmvTNd.js → segmented-control-Di1mbQlP.js} +27 -26
- package/dist/graph-viewer/viewer/{shiki-Qnby7Sh6.js → shiki-BfNNlmfZ.js} +15 -15
- package/dist/graph-viewer/viewer/status-meta-S0kV_RDp.js +273 -0
- package/dist/graph-viewer/viewer/{stream-tokenizer-CWtnjmRd.js → stream-tokenizer-B5wWaM3U.js} +12 -12
- package/dist/graph-viewer/viewer/{themes-1i1fzpRk.js → themes-DuRxHiga.js} +1 -1
- package/dist/graph-viewer/viewer/ui-Co03nZUX.js +889 -0
- package/dist/graph-viewer/viewer/utils-BuObIC0n.js +1815 -0
- package/dist/graph-viewer/viewer/workbench-E6_5q_oL.js +28351 -0
- package/dist/graph-viewer/viewer/workflows--mZpHYqo.js +3298 -0
- package/dist/graph-viewer/viewer/workspace-cKs9sGEO.js +2468 -0
- package/dist/graph-viewer/{workspace-model-Ewf17pTW.js → workspace-model-BkPl_J8E.js} +1 -1
- package/dist/graph-viewer/workspace-viewer.js +7452 -7489
- package/dist/graph-viewer/workspace.js +1 -1
- package/dist/index.mjs +27 -22
- package/package.json +9 -8
- package/dist/graph-viewer/Analytics-DFWW8Phh.js +0 -938
- package/dist/graph-viewer/Checks-qgqV4xgV.js +0 -155
- package/dist/graph-viewer/Conversations-CGB45kpj.js +0 -545
- package/dist/graph-viewer/LiveRun-C21wUKAY.js +0 -210
- package/dist/graph-viewer/Overview-BjeLsA2I.js +0 -506
- package/dist/graph-viewer/RunPage-CkkcBEUe.js +0 -258
- package/dist/graph-viewer/Timeline-C2Xolk0t.js +0 -293
- package/dist/graph-viewer/Today-BVVDtSVN.js +0 -660
- package/dist/graph-viewer/Topology-DO5XX8e4.js +0 -545
- package/dist/graph-viewer/Traces-BhMxjNgw.js +0 -259
- package/dist/graph-viewer/part-events-BrLrg_EV.js +0 -276
- package/dist/graph-viewer/record-part-CZal_IMH.js +0 -1408
- package/dist/graph-viewer/ui-D8QZRsC3.js +0 -938
- package/dist/graph-viewer/viewer/Analytics-DD__nbLm.js +0 -939
- package/dist/graph-viewer/viewer/Checks-Ds5M7eAW.js +0 -156
- package/dist/graph-viewer/viewer/Conversations-C1n0EBBd.js +0 -819
- package/dist/graph-viewer/viewer/Files-Cjr7NMU_.js +0 -448
- package/dist/graph-viewer/viewer/LiveRun-uPTkPSjo.js +0 -6772
- package/dist/graph-viewer/viewer/Overview-4Umk14_2.js +0 -507
- package/dist/graph-viewer/viewer/RunPage-DZlBW7Va.js +0 -257
- package/dist/graph-viewer/viewer/Timeline-BnK6-yBR.js +0 -294
- package/dist/graph-viewer/viewer/Today-a_-oNigi.js +0 -660
- package/dist/graph-viewer/viewer/Topology-CQPCLQT6.js +0 -546
- package/dist/graph-viewer/viewer/Traces-C0IGk0L4.js +0 -259
- package/dist/graph-viewer/viewer/WorkflowGraph-DZ3xejKE-jRXKeSrg.js +0 -1559
- package/dist/graph-viewer/viewer/agent-record-Dw772ROs.css +0 -2
- package/dist/graph-viewer/viewer/agent-timeline-Cs9Qbpvo.js +0 -1798
- package/dist/graph-viewer/viewer/dist-C1-7EfoW.js +0 -488
- package/dist/graph-viewer/viewer/file-text-m7a3piQF.js +0 -47
- package/dist/graph-viewer/viewer/jsx-runtime-DQWyJOhv.js +0 -2136
- package/dist/graph-viewer/viewer/lazy-pages-BowaGsg-.js +0 -20
- package/dist/graph-viewer/viewer/model-brand-bTcMjQtB-fagiBQam.js +0 -723
- package/dist/graph-viewer/viewer/popover-CvOAjlnk.js +0 -5329
- package/dist/graph-viewer/viewer/react-CY3IbSNO.js +0 -4262
- package/dist/graph-viewer/viewer/record-part-D3_Anfpe.js +0 -1329
- package/dist/graph-viewer/viewer/terminal-83J_I4Ne.js +0 -52
- package/dist/graph-viewer/viewer/ui-C9b1rIUH.js +0 -938
- package/dist/graph-viewer/viewer/workspace-CekmOBs3.js +0 -25100
- package/dist/graph-viewer/viewer/x-DOc2URqZ.js +0 -56
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as e } from "./rolldown-runtime-DArdT4gl.js";
|
|
2
|
-
import {
|
|
2
|
+
import { n as t } from "./jsx-runtime-DPT6sCLq.js";
|
|
3
3
|
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/util.js
|
|
4
4
|
function n(e) {
|
|
5
5
|
let t = Object.values(e).filter((e) => typeof e == "number");
|
|
@@ -2900,34 +2900,34 @@ function ma(e, t) {
|
|
|
2900
2900
|
});
|
|
2901
2901
|
}
|
|
2902
2902
|
// @__NO_SIDE_EFFECTS__
|
|
2903
|
-
function
|
|
2903
|
+
function ha(e) {
|
|
2904
2904
|
return new _n({
|
|
2905
2905
|
check: "overwrite",
|
|
2906
2906
|
tx: e
|
|
2907
2907
|
});
|
|
2908
2908
|
}
|
|
2909
2909
|
// @__NO_SIDE_EFFECTS__
|
|
2910
|
-
function
|
|
2911
|
-
return /* @__PURE__ */
|
|
2912
|
-
}
|
|
2913
|
-
// @__NO_SIDE_EFFECTS__
|
|
2914
|
-
function ga() {
|
|
2915
|
-
return /* @__PURE__ */ M((e) => e.trim());
|
|
2910
|
+
function ga(e) {
|
|
2911
|
+
return /* @__PURE__ */ ha((t) => t.normalize(e));
|
|
2916
2912
|
}
|
|
2917
2913
|
// @__NO_SIDE_EFFECTS__
|
|
2918
2914
|
function _a() {
|
|
2919
|
-
return /* @__PURE__ */
|
|
2915
|
+
return /* @__PURE__ */ ha((e) => e.trim());
|
|
2920
2916
|
}
|
|
2921
2917
|
// @__NO_SIDE_EFFECTS__
|
|
2922
2918
|
function va() {
|
|
2923
|
-
return /* @__PURE__ */
|
|
2919
|
+
return /* @__PURE__ */ ha((e) => e.toLowerCase());
|
|
2924
2920
|
}
|
|
2925
2921
|
// @__NO_SIDE_EFFECTS__
|
|
2926
2922
|
function ya() {
|
|
2927
|
-
return /* @__PURE__ */
|
|
2923
|
+
return /* @__PURE__ */ ha((e) => e.toUpperCase());
|
|
2924
|
+
}
|
|
2925
|
+
// @__NO_SIDE_EFFECTS__
|
|
2926
|
+
function ba() {
|
|
2927
|
+
return /* @__PURE__ */ ha((e) => ne(e));
|
|
2928
2928
|
}
|
|
2929
2929
|
// @__NO_SIDE_EFFECTS__
|
|
2930
|
-
function
|
|
2930
|
+
function xa(e, t, n) {
|
|
2931
2931
|
return new e({
|
|
2932
2932
|
type: "array",
|
|
2933
2933
|
element: t,
|
|
@@ -2935,7 +2935,7 @@ function ba(e, t, n) {
|
|
|
2935
2935
|
});
|
|
2936
2936
|
}
|
|
2937
2937
|
// @__NO_SIDE_EFFECTS__
|
|
2938
|
-
function
|
|
2938
|
+
function Sa(e, t, n) {
|
|
2939
2939
|
return new e({
|
|
2940
2940
|
type: "custom",
|
|
2941
2941
|
check: "custom",
|
|
@@ -2944,8 +2944,8 @@ function xa(e, t, n) {
|
|
|
2944
2944
|
});
|
|
2945
2945
|
}
|
|
2946
2946
|
// @__NO_SIDE_EFFECTS__
|
|
2947
|
-
function
|
|
2948
|
-
let n = /* @__PURE__ */
|
|
2947
|
+
function Ca(e, t) {
|
|
2948
|
+
let n = /* @__PURE__ */ wa((t) => (t.addIssue = (e) => {
|
|
2949
2949
|
if (typeof e == "string") t.issues.push(ke(e, t.value, n._zod.def));
|
|
2950
2950
|
else {
|
|
2951
2951
|
let r = e;
|
|
@@ -2955,7 +2955,7 @@ function Sa(e, t) {
|
|
|
2955
2955
|
return n;
|
|
2956
2956
|
}
|
|
2957
2957
|
// @__NO_SIDE_EFFECTS__
|
|
2958
|
-
function
|
|
2958
|
+
function wa(e, t) {
|
|
2959
2959
|
let n = new k({
|
|
2960
2960
|
check: "custom",
|
|
2961
2961
|
...y(t)
|
|
@@ -2964,11 +2964,11 @@ function Ca(e, t) {
|
|
|
2964
2964
|
}
|
|
2965
2965
|
//#endregion
|
|
2966
2966
|
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/to-json-schema.js
|
|
2967
|
-
function
|
|
2967
|
+
function Ta(e, ...t) {
|
|
2968
2968
|
for (let n of t) for (let t of Reflect.ownKeys(n)) Object.prototype.propertyIsEnumerable.call(n, t) && u(e, t, n[t]);
|
|
2969
2969
|
return e;
|
|
2970
2970
|
}
|
|
2971
|
-
function
|
|
2971
|
+
function Ea(e) {
|
|
2972
2972
|
let t = e?.target ?? "draft-2020-12";
|
|
2973
2973
|
return t === "draft-4" && (t = "draft-04"), t === "draft-7" && (t = "draft-07"), {
|
|
2974
2974
|
processors: e.processors ?? {},
|
|
@@ -2988,7 +2988,7 @@ function Ta(e) {
|
|
|
2988
2988
|
external: e?.external ?? void 0
|
|
2989
2989
|
};
|
|
2990
2990
|
}
|
|
2991
|
-
function
|
|
2991
|
+
function M(e, t, n, r, i) {
|
|
2992
2992
|
let a = typeof t.unrepresentable == "function" ? t.unrepresentable({
|
|
2993
2993
|
zodSchema: e,
|
|
2994
2994
|
path: r.path,
|
|
@@ -2998,7 +2998,7 @@ function N(e, t, n, r, i) {
|
|
|
2998
2998
|
if (a === void 0 || a === "throw") throw Error(i);
|
|
2999
2999
|
return Object.assign(n, a), !0;
|
|
3000
3000
|
}
|
|
3001
|
-
function
|
|
3001
|
+
function N(e, t, n = {
|
|
3002
3002
|
path: [],
|
|
3003
3003
|
schemaPath: []
|
|
3004
3004
|
}) {
|
|
@@ -3027,15 +3027,15 @@ function P(e, t, n = {
|
|
|
3027
3027
|
a(e, t, n, r);
|
|
3028
3028
|
}
|
|
3029
3029
|
let a = e._zod.parent;
|
|
3030
|
-
a && (o.ref ||= a,
|
|
3030
|
+
a && (o.ref ||= a, N(a, t, r), t.seen.get(a).isParent = !0);
|
|
3031
3031
|
}
|
|
3032
3032
|
let c = t.metadataRegistry.get(e);
|
|
3033
|
-
return c &&
|
|
3033
|
+
return c && Ta(o.schema, c), t.io === "input" && P(e) && (delete o.schema.examples, delete o.schema.default), t.io === "input" && "_prefault" in o.schema && ((r = o.schema).default ?? (r.default = o.schema._prefault)), delete o.schema._prefault, t.seen.get(e).schema;
|
|
3034
3034
|
}
|
|
3035
|
-
function
|
|
3035
|
+
function Da(e) {
|
|
3036
3036
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
3037
3037
|
}
|
|
3038
|
-
function
|
|
3038
|
+
function Oa(e, t) {
|
|
3039
3039
|
let n = e.seen.get(t);
|
|
3040
3040
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
3041
3041
|
if (e.external && e.sharedDefsExtractedFor === e.external) return;
|
|
@@ -3056,7 +3056,7 @@ function Da(e, t) {
|
|
|
3056
3056
|
let a = t[1].defId ?? t[1].schema.id ?? `schema${e.counter++}`;
|
|
3057
3057
|
return t[1].defId = a, {
|
|
3058
3058
|
defId: a,
|
|
3059
|
-
ref: `${i("__shared")}#/${r}/${
|
|
3059
|
+
ref: `${i("__shared")}#/${r}/${Da(a)}`
|
|
3060
3060
|
};
|
|
3061
3061
|
}
|
|
3062
3062
|
let i = `#/${r}/`;
|
|
@@ -3064,7 +3064,7 @@ function Da(e, t) {
|
|
|
3064
3064
|
let a = t[1].schema.id ?? `__schema${e.counter++}`;
|
|
3065
3065
|
return {
|
|
3066
3066
|
defId: a,
|
|
3067
|
-
ref: i +
|
|
3067
|
+
ref: i + Da(a)
|
|
3068
3068
|
};
|
|
3069
3069
|
}, a = (e) => {
|
|
3070
3070
|
if (e[1].schema.$ref) return;
|
|
@@ -3105,13 +3105,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
3105
3105
|
}
|
|
3106
3106
|
e.external && (e.sharedDefsExtractedFor = e.external);
|
|
3107
3107
|
}
|
|
3108
|
-
function
|
|
3108
|
+
function ka(e) {
|
|
3109
3109
|
let t = e.anyOf;
|
|
3110
3110
|
if (!Array.isArray(t) || t.length === 0 || e.type !== void 0) return;
|
|
3111
3111
|
let n = [];
|
|
3112
3112
|
for (let e of t) {
|
|
3113
3113
|
if (!e || typeof e != "object") return;
|
|
3114
|
-
|
|
3114
|
+
ka(e);
|
|
3115
3115
|
let t = Object.keys(e);
|
|
3116
3116
|
if (t.length !== 1 || t[0] !== "type") return;
|
|
3117
3117
|
let r = e.type;
|
|
@@ -3122,21 +3122,21 @@ function Oa(e) {
|
|
|
3122
3122
|
}
|
|
3123
3123
|
delete e.anyOf, e.type = n.length === 1 ? n[0] : n;
|
|
3124
3124
|
}
|
|
3125
|
-
var
|
|
3125
|
+
var Aa = /* @__PURE__ */ new Set([
|
|
3126
3126
|
"type",
|
|
3127
3127
|
"properties",
|
|
3128
3128
|
"required",
|
|
3129
3129
|
"additionalProperties"
|
|
3130
|
-
]),
|
|
3131
|
-
function
|
|
3130
|
+
]), ja = ["oneOf", "anyOf"];
|
|
3131
|
+
function Ma(e) {
|
|
3132
3132
|
let t = e.additionalProperties;
|
|
3133
3133
|
return t === void 0 || t === !1 || typeof t != "object" || !t ? null : Object.keys(t).length ? t : null;
|
|
3134
3134
|
}
|
|
3135
|
-
function
|
|
3135
|
+
function Na(e) {
|
|
3136
3136
|
let t = [];
|
|
3137
3137
|
for (let n of e) {
|
|
3138
3138
|
if (typeof n != "object" || n.type !== "object") return null;
|
|
3139
|
-
for (let e in n) if (!
|
|
3139
|
+
for (let e in n) if (!Aa.has(e)) return null;
|
|
3140
3140
|
t.push(n);
|
|
3141
3141
|
}
|
|
3142
3142
|
let n = {}, r = /* @__PURE__ */ new Set();
|
|
@@ -3145,10 +3145,10 @@ function Ma(e) {
|
|
|
3145
3145
|
if (Object.prototype.hasOwnProperty.call(n, r)) continue;
|
|
3146
3146
|
let e = [];
|
|
3147
3147
|
for (let n of t) {
|
|
3148
|
-
let t = n.properties?.[r] ??
|
|
3148
|
+
let t = n.properties?.[r] ?? Ma(n);
|
|
3149
3149
|
t != null && (e.some((e) => JSON.stringify(e) === JSON.stringify(t)) || e.push(t));
|
|
3150
3150
|
}
|
|
3151
|
-
u(n, r, e.length === 1 ? e[0] :
|
|
3151
|
+
u(n, r, e.length === 1 ? e[0] : Na(e) ?? { allOf: e });
|
|
3152
3152
|
}
|
|
3153
3153
|
for (let t of e.required ?? []) r.add(t);
|
|
3154
3154
|
}
|
|
@@ -3160,29 +3160,29 @@ function Ma(e) {
|
|
|
3160
3160
|
else {
|
|
3161
3161
|
let e = [];
|
|
3162
3162
|
for (let n of t) {
|
|
3163
|
-
let t =
|
|
3163
|
+
let t = Ma(n);
|
|
3164
3164
|
t && !e.some((e) => JSON.stringify(e) === JSON.stringify(t)) && e.push(t);
|
|
3165
3165
|
}
|
|
3166
3166
|
e.length === 1 ? i.additionalProperties = e[0] : e.length > 1 && (i.additionalProperties = { allOf: e });
|
|
3167
3167
|
}
|
|
3168
3168
|
return i;
|
|
3169
3169
|
}
|
|
3170
|
-
function
|
|
3170
|
+
function Pa(e) {
|
|
3171
3171
|
let t = e.allOf;
|
|
3172
3172
|
if (!Array.isArray(t) || t.length < 2) return;
|
|
3173
|
-
for (let t of
|
|
3174
|
-
let n = t.filter((e) =>
|
|
3175
|
-
if (!n.length) r =
|
|
3173
|
+
for (let t of Aa) if (t in e) return;
|
|
3174
|
+
let n = t.filter((e) => ja.some((t) => Array.isArray(e[t]))), r = null;
|
|
3175
|
+
if (!n.length) r = Na(t);
|
|
3176
3176
|
else {
|
|
3177
|
-
let e = n[0], i =
|
|
3177
|
+
let e = n[0], i = ja.find((t) => Array.isArray(e[t]));
|
|
3178
3178
|
if (Object.keys(e).length !== 1) return;
|
|
3179
|
-
let a = t.filter((t) => t !== e), o = e[i].map((e) =>
|
|
3179
|
+
let a = t.filter((t) => t !== e), o = e[i].map((e) => Na([...a, e]));
|
|
3180
3180
|
if (o.some((e) => !e)) return;
|
|
3181
3181
|
r = { [i]: o };
|
|
3182
3182
|
}
|
|
3183
|
-
r && (delete e.allOf,
|
|
3183
|
+
r && (delete e.allOf, Ta(e, r));
|
|
3184
3184
|
}
|
|
3185
|
-
function
|
|
3185
|
+
function Fa(e, t) {
|
|
3186
3186
|
let n = e.seen.get(t);
|
|
3187
3187
|
if (!n) throw Error("Unprocessed schema. This is a bug in Zod.");
|
|
3188
3188
|
let r = (t) => {
|
|
@@ -3192,7 +3192,7 @@ function Pa(e, t) {
|
|
|
3192
3192
|
if (n.ref = null, o) {
|
|
3193
3193
|
r(o);
|
|
3194
3194
|
let n = e.seen.get(o), s = n.schema;
|
|
3195
|
-
if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) :
|
|
3195
|
+
if (s.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (i.allOf = i.allOf ?? [], i.allOf.push(s)) : Ta(i, s), Ta(i, a), t._zod.parent === o) for (let e in i) e !== "$ref" && e !== "allOf" && (e in a || delete i[e]);
|
|
3196
3196
|
if (s.$ref && n.def) for (let e in i) e !== "$ref" && e !== "allOf" && e in n.def && JSON.stringify(i[e]) === JSON.stringify(n.def[e]) && delete i[e];
|
|
3197
3197
|
}
|
|
3198
3198
|
let s = t._zod.parent;
|
|
@@ -3209,7 +3209,7 @@ function Pa(e, t) {
|
|
|
3209
3209
|
};
|
|
3210
3210
|
if (!e.external || e.sharedEmitDoneFor !== e.external) {
|
|
3211
3211
|
for (let t of [...e.seen.entries()].reverse()) r(t[0]);
|
|
3212
|
-
if (e.target !== "openapi-3.0") for (let t of e.seen.entries())
|
|
3212
|
+
if (e.target !== "openapi-3.0") for (let t of e.seen.entries()) ka(t[1].def ?? t[1].schema);
|
|
3213
3213
|
for (let t of e.deferred) t();
|
|
3214
3214
|
if (e.intersections.length) {
|
|
3215
3215
|
let t = /* @__PURE__ */ new Map();
|
|
@@ -3219,7 +3219,7 @@ function Pa(e, t) {
|
|
|
3219
3219
|
let r = t.get(n);
|
|
3220
3220
|
r ? r.push(e) : t.set(n, [e]);
|
|
3221
3221
|
}
|
|
3222
|
-
for (let n of e.intersections) for (let e of t.get(n) ?? [])
|
|
3222
|
+
for (let n of e.intersections) for (let e of t.get(n) ?? []) Pa(e);
|
|
3223
3223
|
}
|
|
3224
3224
|
}
|
|
3225
3225
|
let i = {};
|
|
@@ -3228,7 +3228,7 @@ function Pa(e, t) {
|
|
|
3228
3228
|
if (!n) throw Error("Schema is missing an `id` property");
|
|
3229
3229
|
i.$id = e.external.uri(n);
|
|
3230
3230
|
}
|
|
3231
|
-
|
|
3231
|
+
Ta(i, n.defId ? n.schema : n.def ?? n.schema);
|
|
3232
3232
|
let a = e.metadataRegistry.get(t)?.id;
|
|
3233
3233
|
a !== void 0 && i.id === a && delete i.id;
|
|
3234
3234
|
let o = e.external?.defs ?? {};
|
|
@@ -3243,8 +3243,8 @@ function Pa(e, t) {
|
|
|
3243
3243
|
value: {
|
|
3244
3244
|
...t["~standard"],
|
|
3245
3245
|
jsonSchema: {
|
|
3246
|
-
input:
|
|
3247
|
-
output:
|
|
3246
|
+
input: La(t, "input", e.processors),
|
|
3247
|
+
output: La(t, "output", e.processors)
|
|
3248
3248
|
}
|
|
3249
3249
|
},
|
|
3250
3250
|
enumerable: !1,
|
|
@@ -3254,53 +3254,53 @@ function Pa(e, t) {
|
|
|
3254
3254
|
throw Error("Error converting schema to JSON.");
|
|
3255
3255
|
}
|
|
3256
3256
|
}
|
|
3257
|
-
function
|
|
3257
|
+
function P(e, t) {
|
|
3258
3258
|
let n = t ?? { seen: /* @__PURE__ */ new Set() };
|
|
3259
3259
|
if (n.seen.has(e)) return !1;
|
|
3260
3260
|
n.seen.add(e);
|
|
3261
3261
|
let r = e._zod.def;
|
|
3262
3262
|
if (r.type === "transform") return !0;
|
|
3263
|
-
if (r.type === "array") return
|
|
3264
|
-
if (r.type === "set") return
|
|
3265
|
-
if (r.type === "lazy") return
|
|
3266
|
-
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return
|
|
3267
|
-
if (r.type === "intersection") return
|
|
3268
|
-
if (r.type === "record" || r.type === "map") return
|
|
3269
|
-
if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 :
|
|
3263
|
+
if (r.type === "array") return P(r.element, n);
|
|
3264
|
+
if (r.type === "set") return P(r.valueType, n);
|
|
3265
|
+
if (r.type === "lazy") return P(r.getter(), n);
|
|
3266
|
+
if (r.type === "promise" || r.type === "optional" || r.type === "nonoptional" || r.type === "nullable" || r.type === "readonly" || r.type === "default" || r.type === "prefault" || r.type === "catch") return P(r.innerType, n);
|
|
3267
|
+
if (r.type === "intersection") return P(r.left, n) || P(r.right, n);
|
|
3268
|
+
if (r.type === "record" || r.type === "map") return P(r.keyType, n) || P(r.valueType, n);
|
|
3269
|
+
if (r.type === "pipe") return e._zod.traits.has("$ZodCodec") ? !0 : P(r.in, n) || P(r.out, n);
|
|
3270
3270
|
if (r.type === "object") {
|
|
3271
|
-
for (let e in r.shape) if (
|
|
3271
|
+
for (let e in r.shape) if (P(r.shape[e], n)) return !0;
|
|
3272
3272
|
return !1;
|
|
3273
3273
|
}
|
|
3274
3274
|
if (r.type === "union") {
|
|
3275
|
-
for (let e of r.options) if (
|
|
3275
|
+
for (let e of r.options) if (P(e, n)) return !0;
|
|
3276
3276
|
return !1;
|
|
3277
3277
|
}
|
|
3278
3278
|
if (r.type === "tuple") {
|
|
3279
|
-
for (let e of r.items) if (
|
|
3280
|
-
return !!(r.rest &&
|
|
3279
|
+
for (let e of r.items) if (P(e, n)) return !0;
|
|
3280
|
+
return !!(r.rest && P(r.rest, n));
|
|
3281
3281
|
}
|
|
3282
3282
|
return !1;
|
|
3283
3283
|
}
|
|
3284
|
-
var
|
|
3285
|
-
let r =
|
|
3284
|
+
var Ia = (e, t = {}) => (n) => {
|
|
3285
|
+
let r = Ea({
|
|
3286
3286
|
...n,
|
|
3287
3287
|
processors: t
|
|
3288
3288
|
});
|
|
3289
|
-
return
|
|
3290
|
-
},
|
|
3291
|
-
let { libraryOptions: i, target: a } = r ?? {}, o =
|
|
3289
|
+
return N(e, r), Oa(r, e), Fa(r, e);
|
|
3290
|
+
}, La = (e, t, n = {}) => (r) => {
|
|
3291
|
+
let { libraryOptions: i, target: a } = r ?? {}, o = Ea({
|
|
3292
3292
|
...i ?? {},
|
|
3293
3293
|
target: a,
|
|
3294
3294
|
io: t,
|
|
3295
3295
|
processors: n
|
|
3296
3296
|
});
|
|
3297
|
-
return
|
|
3298
|
-
},
|
|
3297
|
+
return N(e, o), Oa(o, e), Fa(o, e);
|
|
3298
|
+
}, F = (e, t, n) => {
|
|
3299
3299
|
(e[t] === void 0 || n > e[t]) && (e[t] = n);
|
|
3300
3300
|
}, Ra = (e, t, n) => {
|
|
3301
3301
|
(e[t] === void 0 || n < e[t]) && (e[t] = n);
|
|
3302
3302
|
}, za = (e, t) => {
|
|
3303
|
-
|
|
3303
|
+
F(e, "minimum", t), Ra(e, "maximum", t);
|
|
3304
3304
|
}, Ba = (e, t) => {
|
|
3305
3305
|
e.multipleOf ??= [], e.multipleOf.includes(t) || e.multipleOf.push(t);
|
|
3306
3306
|
}, Va = (e, t) => {
|
|
@@ -3309,12 +3309,12 @@ var Fa = (e, t = {}) => (n) => {
|
|
|
3309
3309
|
e.mime = e.mime ? e.mime.filter((e) => t.includes(e)) : [...t];
|
|
3310
3310
|
}, Ua = (e, t) => {
|
|
3311
3311
|
e.format = t, t.includes("int") && (e.isInt = !0);
|
|
3312
|
-
}, Wa = (e, t) =>
|
|
3312
|
+
}, Wa = (e, t) => F(e, "minimum", t.minimum), Ga = (e, t) => Ra(e, "maximum", t.maximum), Ka = (e) => (t, n) => {
|
|
3313
3313
|
Ua(t, n.format);
|
|
3314
3314
|
let [r, i] = e[n.format];
|
|
3315
|
-
|
|
3315
|
+
F(t, "minimum", r), Ra(t, "maximum", i);
|
|
3316
3316
|
}, qa = {
|
|
3317
|
-
greater_than: (e, t) =>
|
|
3317
|
+
greater_than: (e, t) => F(e, t.inclusive ? "minimum" : "exclusiveMinimum", t.value),
|
|
3318
3318
|
less_than: (e, t) => Ra(e, t.inclusive ? "maximum" : "exclusiveMaximum", t.value),
|
|
3319
3319
|
multiple_of: (e, t) => Ba(e, t.value),
|
|
3320
3320
|
number_format: Ka(de),
|
|
@@ -3334,7 +3334,7 @@ function I(e) {
|
|
|
3334
3334
|
let t = {}, n = e._zod.def, r = e._zod.traits.has("$ZodCheck") ? [e, ...n.checks ?? []] : n.checks ?? [];
|
|
3335
3335
|
for (let e of r) qa[e._zod.def.check]?.(t, e._zod.def);
|
|
3336
3336
|
let i = e._zod.bag;
|
|
3337
|
-
i.minimum !== void 0 &&
|
|
3337
|
+
i.minimum !== void 0 && F(t, "minimum", i.minimum), i.exclusiveMinimum !== void 0 && F(t, "exclusiveMinimum", i.exclusiveMinimum), i.maximum !== void 0 && Ra(t, "maximum", i.maximum), i.exclusiveMaximum !== void 0 && Ra(t, "exclusiveMaximum", i.exclusiveMaximum), i.multipleOf !== void 0 && Ba(t, i.multipleOf), i.format !== void 0 && (t.format ??= i.format, i.format.includes("int") && (t.isInt = !0)), i.mime && Ha(t, i.mime);
|
|
3338
3338
|
for (let e of i.patterns ?? []) Va(t, e);
|
|
3339
3339
|
return t;
|
|
3340
3340
|
}
|
|
@@ -3361,7 +3361,7 @@ var Ja = {
|
|
|
3361
3361
|
let d = typeof l == "number" && l >= (a ?? -Infinity), f = typeof c == "number" && c <= (o ?? Infinity), p = t.target === "draft-04" || t.target === "openapi-3.0";
|
|
3362
3362
|
if (d ? p ? (i.minimum = l, i.exclusiveMinimum = !0) : i.exclusiveMinimum = l : typeof a == "number" && (i.minimum = a), f ? p ? (i.maximum = c, i.exclusiveMaximum = !0) : i.exclusiveMaximum = c : typeof o == "number" && (i.maximum = o), s) {
|
|
3363
3363
|
let n = /* @__PURE__ */ new Set();
|
|
3364
|
-
for (let a of s) Number.isFinite(a) && a !== 0 ? n.add(Math.abs(a)) :
|
|
3364
|
+
for (let a of s) Number.isFinite(a) && a !== 0 ? n.add(Math.abs(a)) : M(e, t, i, r, `A multipleOf divisor of ${a} cannot be represented in JSON Schema`);
|
|
3365
3365
|
let [a, ...o] = n;
|
|
3366
3366
|
a !== void 0 && (i.multipleOf = a), o.length && (i.allOf = [...i.allOf ?? [], ...o.map((e) => ({ multipleOf: e }))]);
|
|
3367
3367
|
}
|
|
@@ -3384,9 +3384,9 @@ var Ja = {
|
|
|
3384
3384
|
}
|
|
3385
3385
|
let a = [];
|
|
3386
3386
|
for (let o of i.values) if (o === void 0) {
|
|
3387
|
-
if (
|
|
3387
|
+
if (M(e, t, n, r, "Literal `undefined` cannot be represented in JSON Schema")) return;
|
|
3388
3388
|
} else if (typeof o == "bigint") {
|
|
3389
|
-
if (
|
|
3389
|
+
if (M(e, t, n, r, "BigInt literals cannot be represented in JSON Schema")) return;
|
|
3390
3390
|
a.push(Number(o));
|
|
3391
3391
|
} else a.push(o);
|
|
3392
3392
|
if (a.length !== 0) {
|
|
@@ -3396,12 +3396,12 @@ var Ja = {
|
|
|
3396
3396
|
} else a.every((e) => typeof e == "number") && (n.type = "number"), a.every((e) => typeof e == "string") && (n.type = "string"), a.every((e) => typeof e == "boolean") && (n.type = "boolean"), a.every((e) => e === null) && (n.type = "null"), n.enum = a;
|
|
3397
3397
|
}
|
|
3398
3398
|
}, ro = (e, t, n, r) => {
|
|
3399
|
-
|
|
3399
|
+
M(e, t, n, r, "Custom types cannot be represented in JSON Schema");
|
|
3400
3400
|
}, io = (e, t, n, r) => {
|
|
3401
|
-
|
|
3401
|
+
M(e, t, n, r, "Transforms cannot be represented in JSON Schema");
|
|
3402
3402
|
}, ao = (e, t, n, r) => {
|
|
3403
3403
|
let i = n, a = e._zod.def, { minimum: o, maximum: s } = I(e);
|
|
3404
|
-
typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items =
|
|
3404
|
+
typeof o == "number" && (i.minItems = o), typeof s == "number" && (i.maxItems = s), i.type = "array", i.items = N(a.element, t, {
|
|
3405
3405
|
...r,
|
|
3406
3406
|
path: [...r.path, "items"]
|
|
3407
3407
|
});
|
|
@@ -3412,9 +3412,9 @@ function oo(e) {
|
|
|
3412
3412
|
}
|
|
3413
3413
|
var so = (e, t, n, r) => {
|
|
3414
3414
|
let i = n, a = e._zod.def, o = a.shape;
|
|
3415
|
-
if (Object.getOwnPropertySymbols(o).length &&
|
|
3415
|
+
if (Object.getOwnPropertySymbols(o).length && M(e, t, i, r, "Symbol keys cannot be represented in JSON Schema")) return;
|
|
3416
3416
|
i.type = "object", i.properties = {};
|
|
3417
|
-
for (let e in o) u(i.properties, e,
|
|
3417
|
+
for (let e in o) u(i.properties, e, N(o[e], t, {
|
|
3418
3418
|
...r,
|
|
3419
3419
|
path: [
|
|
3420
3420
|
...r.path,
|
|
@@ -3427,12 +3427,12 @@ var so = (e, t, n, r) => {
|
|
|
3427
3427
|
let n = a.shape[e];
|
|
3428
3428
|
(t.io === "input" ? oo(n) === void 0 : n._zod.optout === void 0) && s.push(e);
|
|
3429
3429
|
}
|
|
3430
|
-
s.length > 0 && (i.required = s), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties =
|
|
3430
|
+
s.length > 0 && (i.required = s), a.catchall?._zod.def.type === "never" ? i.additionalProperties = !1 : a.catchall ? a.catchall && (i.additionalProperties = N(a.catchall, t, {
|
|
3431
3431
|
...r,
|
|
3432
3432
|
path: [...r.path, "additionalProperties"]
|
|
3433
3433
|
})) : t.io === "output" && (i.additionalProperties = !1);
|
|
3434
3434
|
}, co = (e, t, n, r) => {
|
|
3435
|
-
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) =>
|
|
3435
|
+
let i = e._zod.def, a = i.inclusive === !1, o = i.options.map((e, n) => N(e, t, {
|
|
3436
3436
|
...r,
|
|
3437
3437
|
path: [
|
|
3438
3438
|
...r.path,
|
|
@@ -3442,14 +3442,14 @@ var so = (e, t, n, r) => {
|
|
|
3442
3442
|
}));
|
|
3443
3443
|
a ? n.oneOf = o : n.anyOf = o;
|
|
3444
3444
|
}, lo = (e, t, n, r) => {
|
|
3445
|
-
let i = e._zod.def, a =
|
|
3445
|
+
let i = e._zod.def, a = N(i.left, t, {
|
|
3446
3446
|
...r,
|
|
3447
3447
|
path: [
|
|
3448
3448
|
...r.path,
|
|
3449
3449
|
"allOf",
|
|
3450
3450
|
0
|
|
3451
3451
|
]
|
|
3452
|
-
}), o =
|
|
3452
|
+
}), o = N(i.right, t, {
|
|
3453
3453
|
...r,
|
|
3454
3454
|
path: [
|
|
3455
3455
|
...r.path,
|
|
@@ -3461,14 +3461,14 @@ var so = (e, t, n, r) => {
|
|
|
3461
3461
|
}, uo = (e, t, n, r) => {
|
|
3462
3462
|
let i = n, a = e._zod.def;
|
|
3463
3463
|
i.type = "array";
|
|
3464
|
-
let o = t.target === "draft-2020-12" ? "prefixItems" : "items", s = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", c = a.items.map((e, n) =>
|
|
3464
|
+
let o = t.target === "draft-2020-12" ? "prefixItems" : "items", s = t.target === "draft-2020-12" || t.target === "openapi-3.0" ? "items" : "additionalItems", c = a.items.map((e, n) => N(e, t, {
|
|
3465
3465
|
...r,
|
|
3466
3466
|
path: [
|
|
3467
3467
|
...r.path,
|
|
3468
3468
|
o,
|
|
3469
3469
|
n
|
|
3470
3470
|
]
|
|
3471
|
-
})), l = a.rest ?
|
|
3471
|
+
})), l = a.rest ? N(a.rest, t, {
|
|
3472
3472
|
...r,
|
|
3473
3473
|
path: [
|
|
3474
3474
|
...r.path,
|
|
@@ -3530,7 +3530,7 @@ var ho = (e, t, n, r) => {
|
|
|
3530
3530
|
i.type = "object";
|
|
3531
3531
|
let o = a.keyType, s = I(o).patterns;
|
|
3532
3532
|
if (a.mode === "loose" && s && s.size > 0) {
|
|
3533
|
-
let e =
|
|
3533
|
+
let e = N(a.valueType, t, {
|
|
3534
3534
|
...r,
|
|
3535
3535
|
path: [
|
|
3536
3536
|
...r.path,
|
|
@@ -3542,14 +3542,14 @@ var ho = (e, t, n, r) => {
|
|
|
3542
3542
|
for (let t of s) u(i.patternProperties, Xa(t).source, e);
|
|
3543
3543
|
} else {
|
|
3544
3544
|
if (t.target === "draft-07" || t.target === "draft-2020-12") {
|
|
3545
|
-
i.propertyNames =
|
|
3545
|
+
i.propertyNames = N(a.keyType, t, {
|
|
3546
3546
|
...r,
|
|
3547
3547
|
path: [...r.path, "propertyNames"]
|
|
3548
3548
|
});
|
|
3549
3549
|
let n = po.get(t);
|
|
3550
3550
|
n || (n = [], po.set(t, n), t.deferred.push(() => mo(t))), n.push(e);
|
|
3551
3551
|
}
|
|
3552
|
-
i.additionalProperties =
|
|
3552
|
+
i.additionalProperties = N(a.valueType, t, {
|
|
3553
3553
|
...r,
|
|
3554
3554
|
path: [...r.path, "additionalProperties"]
|
|
3555
3555
|
});
|
|
@@ -3560,58 +3560,58 @@ var ho = (e, t, n, r) => {
|
|
|
3560
3560
|
e.length > 0 && (i.required = e.map(String));
|
|
3561
3561
|
}
|
|
3562
3562
|
}, go = (e, t, n, r) => {
|
|
3563
|
-
let i = e._zod.def, a =
|
|
3563
|
+
let i = e._zod.def, a = N(i.innerType, t, r), o = t.seen.get(e);
|
|
3564
3564
|
t.target === "openapi-3.0" ? (o.ref = i.innerType, n.nullable = !0) : n.anyOf = [a, { type: "null" }];
|
|
3565
3565
|
}, _o = (e, t, n, r) => {
|
|
3566
3566
|
let i = e._zod.def;
|
|
3567
|
-
|
|
3567
|
+
N(i.innerType, t, r);
|
|
3568
3568
|
let a = t.seen.get(e);
|
|
3569
3569
|
a.ref = i.innerType;
|
|
3570
3570
|
}, vo = Symbol();
|
|
3571
3571
|
function yo(e, t, n, r, i) {
|
|
3572
3572
|
let a = !1, o = JSON.stringify(e, (e, t) => typeof t == "bigint" ? (a = !0, null) : t);
|
|
3573
|
-
return a ? (
|
|
3573
|
+
return a ? (M(t, n, r, i, "BigInt defaults cannot be represented in JSON Schema"), vo) : JSON.parse(o);
|
|
3574
3574
|
}
|
|
3575
3575
|
var bo = (e, t, n, r) => {
|
|
3576
3576
|
let i = e._zod.def;
|
|
3577
|
-
|
|
3577
|
+
N(i.innerType, t, r);
|
|
3578
3578
|
let a = t.seen.get(e);
|
|
3579
3579
|
a.ref = i.innerType;
|
|
3580
3580
|
let o = yo(i.defaultValue, e, t, n, r);
|
|
3581
3581
|
o !== vo && (n.default = o);
|
|
3582
3582
|
}, xo = (e, t, n, r) => {
|
|
3583
3583
|
let i = e._zod.def;
|
|
3584
|
-
|
|
3584
|
+
N(i.innerType, t, r);
|
|
3585
3585
|
let a = t.seen.get(e);
|
|
3586
3586
|
if (a.ref = i.innerType, t.io !== "input") return;
|
|
3587
3587
|
let o = yo(i.defaultValue, e, t, n, r);
|
|
3588
3588
|
o !== vo && (n._prefault = o);
|
|
3589
3589
|
}, So = (e, t, n, r) => {
|
|
3590
3590
|
let i = e._zod.def;
|
|
3591
|
-
|
|
3591
|
+
N(i.innerType, t, r);
|
|
3592
3592
|
let a = t.seen.get(e);
|
|
3593
3593
|
a.ref = i.innerType;
|
|
3594
3594
|
let o;
|
|
3595
3595
|
try {
|
|
3596
3596
|
o = i.catchValue(void 0);
|
|
3597
3597
|
} catch {
|
|
3598
|
-
|
|
3598
|
+
M(e, t, n, r, "Dynamic catch values are not supported in JSON Schema");
|
|
3599
3599
|
return;
|
|
3600
3600
|
}
|
|
3601
3601
|
n.default = o;
|
|
3602
3602
|
}, Co = (e, t, n, r) => {
|
|
3603
3603
|
let i = e._zod.def, a = i.in._zod.traits.has("$ZodTransform"), o = t.io === "input" ? a ? i.out : i.in : i.out;
|
|
3604
|
-
|
|
3604
|
+
N(o, t, r);
|
|
3605
3605
|
let s = t.seen.get(e);
|
|
3606
3606
|
s.ref = o;
|
|
3607
3607
|
}, wo = (e, t, n, r) => {
|
|
3608
3608
|
let i = e._zod.def;
|
|
3609
|
-
|
|
3609
|
+
N(i.innerType, t, r);
|
|
3610
3610
|
let a = t.seen.get(e);
|
|
3611
3611
|
a.ref = i.innerType, n.readOnly = !0;
|
|
3612
3612
|
}, To = (e, t, n, r) => {
|
|
3613
3613
|
let i = e._zod.def;
|
|
3614
|
-
|
|
3614
|
+
N(i.innerType, t, r);
|
|
3615
3615
|
let a = t.seen.get(e);
|
|
3616
3616
|
a.ref = i.innerType;
|
|
3617
3617
|
}, Eo = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
@@ -3687,7 +3687,7 @@ var R = /*@__PURE__*/ T("ZodType", (e, t) => (Bo(), A.init(e, t), e.def = t, e.t
|
|
|
3687
3687
|
return this.check(nc(e, t));
|
|
3688
3688
|
},
|
|
3689
3689
|
overwrite(e) {
|
|
3690
|
-
return this.check(/* @__PURE__ */
|
|
3690
|
+
return this.check(/* @__PURE__ */ ha(e));
|
|
3691
3691
|
},
|
|
3692
3692
|
optional() {
|
|
3693
3693
|
return Ls(this);
|
|
@@ -3753,8 +3753,8 @@ var R = /*@__PURE__*/ T("ZodType", (e, t) => (Bo(), A.init(e, t), e.def = t, e.t
|
|
|
3753
3753
|
return je(this, "~standard", {
|
|
3754
3754
|
...Sn(this),
|
|
3755
3755
|
jsonSchema: {
|
|
3756
|
-
input:
|
|
3757
|
-
output:
|
|
3756
|
+
input: La(this, "input"),
|
|
3757
|
+
output: La(this, "output")
|
|
3758
3758
|
}
|
|
3759
3759
|
});
|
|
3760
3760
|
},
|
|
@@ -3810,7 +3810,7 @@ var R = /*@__PURE__*/ T("ZodType", (e, t) => (Bo(), A.init(e, t), e.def = t, e.t
|
|
|
3810
3810
|
return zo(this, e, t);
|
|
3811
3811
|
},
|
|
3812
3812
|
toJSONSchema(e) {
|
|
3813
|
-
return
|
|
3813
|
+
return Ia(this, {})(e);
|
|
3814
3814
|
},
|
|
3815
3815
|
get description() {
|
|
3816
3816
|
return xi.get(this)?.description;
|
|
@@ -3856,19 +3856,19 @@ var R = /*@__PURE__*/ T("ZodType", (e, t) => (Bo(), A.init(e, t), e.def = t, e.t
|
|
|
3856
3856
|
return this.check(/* @__PURE__ */ da(e));
|
|
3857
3857
|
},
|
|
3858
3858
|
trim() {
|
|
3859
|
-
return this.check(/* @__PURE__ */
|
|
3859
|
+
return this.check(/* @__PURE__ */ _a());
|
|
3860
3860
|
},
|
|
3861
3861
|
normalize(...e) {
|
|
3862
|
-
return this.check(/* @__PURE__ */
|
|
3862
|
+
return this.check(/* @__PURE__ */ ga(...e));
|
|
3863
3863
|
},
|
|
3864
3864
|
toLowerCase() {
|
|
3865
|
-
return this.check(/* @__PURE__ */
|
|
3865
|
+
return this.check(/* @__PURE__ */ va());
|
|
3866
3866
|
},
|
|
3867
3867
|
toUpperCase() {
|
|
3868
|
-
return this.check(/* @__PURE__ */
|
|
3868
|
+
return this.check(/* @__PURE__ */ ya());
|
|
3869
3869
|
},
|
|
3870
3870
|
slugify() {
|
|
3871
|
-
return this.check(/* @__PURE__ */
|
|
3871
|
+
return this.check(/* @__PURE__ */ ba());
|
|
3872
3872
|
}
|
|
3873
3873
|
})), Uo = /*@__PURE__*/ T("ZodString", (e, t) => {
|
|
3874
3874
|
Cn.init(e, t), Ho.init(e, t);
|
|
@@ -4113,7 +4113,7 @@ var bs = /*@__PURE__*/ T("ZodArray", (e, t) => {
|
|
|
4113
4113
|
}
|
|
4114
4114
|
});
|
|
4115
4115
|
function W(e, t) {
|
|
4116
|
-
return /* @__PURE__ */
|
|
4116
|
+
return /* @__PURE__ */ xa(bs, e, t);
|
|
4117
4117
|
}
|
|
4118
4118
|
var xs = /*@__PURE__*/ T("ZodObject", (e, t) => {
|
|
4119
4119
|
Vo(), br.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => so(e, t, n, r), Re(e, "shape", (e) => e._zod.def.shape, !1);
|
|
@@ -4404,10 +4404,10 @@ var ec = /*@__PURE__*/ T("ZodCustom", (e, t) => {
|
|
|
4404
4404
|
Zr.init(e, t), R.init(e, t), e._zod.processJSONSchema = (t, n, r) => ro(e, t, n, r);
|
|
4405
4405
|
});
|
|
4406
4406
|
function tc(e, t = {}) {
|
|
4407
|
-
return /* @__PURE__ */
|
|
4407
|
+
return /* @__PURE__ */ Sa(ec, e, t);
|
|
4408
4408
|
}
|
|
4409
4409
|
function nc(e, t) {
|
|
4410
|
-
return /* @__PURE__ */
|
|
4410
|
+
return /* @__PURE__ */ Ca(e, t);
|
|
4411
4411
|
}
|
|
4412
4412
|
//#endregion
|
|
4413
4413
|
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/iso.js
|
|
@@ -4418,6 +4418,7 @@ function rc(e) {
|
|
|
4418
4418
|
//#region src/workspace/view.ts
|
|
4419
4419
|
var J = /* @__PURE__ */ e(t(), 1), ic = q([
|
|
4420
4420
|
"pass",
|
|
4421
|
+
"live",
|
|
4421
4422
|
"attention",
|
|
4422
4423
|
"fail",
|
|
4423
4424
|
"neutral"
|
|
@@ -5214,13 +5215,13 @@ function ol(e) {
|
|
|
5214
5215
|
//#endregion
|
|
5215
5216
|
//#region src/workspace/data.ts
|
|
5216
5217
|
var sl = 2500, cl = 6, ll = 4;
|
|
5217
|
-
function ul(e, t, n = !1) {
|
|
5218
|
-
let [
|
|
5218
|
+
function ul(e, t, n = !1, r = globalThis.fetch) {
|
|
5219
|
+
let [i, a] = (0, J.useState)({
|
|
5219
5220
|
url: e,
|
|
5220
5221
|
loading: !!e
|
|
5221
|
-
}),
|
|
5222
|
+
}), o = (0, J.useRef)(null), s = (0, J.useRef)(void 0);
|
|
5222
5223
|
return (0, J.useEffect)(() => {
|
|
5223
|
-
if (
|
|
5224
|
+
if (s.current !== e && (s.current = e, o.current = null, a((t) => n && e && t.data !== void 0 ? {
|
|
5224
5225
|
...t,
|
|
5225
5226
|
url: e,
|
|
5226
5227
|
loading: !0,
|
|
@@ -5229,21 +5230,21 @@ function ul(e, t, n = !1) {
|
|
|
5229
5230
|
url: e,
|
|
5230
5231
|
loading: !!e
|
|
5231
5232
|
})), !e) return;
|
|
5232
|
-
let
|
|
5233
|
-
|
|
5233
|
+
let i = !0, c = 0, l = !1, u = 0, d = 0, f = !1, p = new AbortController(), m = async () => {
|
|
5234
|
+
f = !1;
|
|
5234
5235
|
try {
|
|
5235
|
-
let t = await
|
|
5236
|
+
let t = await r(e, {
|
|
5236
5237
|
credentials: "same-origin",
|
|
5237
|
-
signal:
|
|
5238
|
-
headers:
|
|
5238
|
+
signal: p.signal,
|
|
5239
|
+
headers: o.current ? { "If-None-Match": o.current } : {}
|
|
5239
5240
|
});
|
|
5240
|
-
if (!
|
|
5241
|
-
|
|
5241
|
+
if (!i) return;
|
|
5242
|
+
d = 0, l = t.headers.get("X-Workspace-Stale") === "1";
|
|
5242
5243
|
let n = t.headers.get("X-Workspace-Compose-Error") ?? void 0;
|
|
5243
|
-
if (!
|
|
5244
|
-
|
|
5244
|
+
if (!l && (t.ok || t.status === 304) && (u = 0), t.status === 304) {
|
|
5245
|
+
a((e) => e.stale === l && e.failing === n ? e : {
|
|
5245
5246
|
...e,
|
|
5246
|
-
stale:
|
|
5247
|
+
stale: l,
|
|
5247
5248
|
failing: n
|
|
5248
5249
|
});
|
|
5249
5250
|
return;
|
|
@@ -5254,7 +5255,7 @@ function ul(e, t, n = !1) {
|
|
|
5254
5255
|
let n = await t.json();
|
|
5255
5256
|
n && typeof n == "object" && typeof n.reason == "string" && (e = n.reason);
|
|
5256
5257
|
} catch {}
|
|
5257
|
-
|
|
5258
|
+
a((n) => ({
|
|
5258
5259
|
...n,
|
|
5259
5260
|
loading: !1,
|
|
5260
5261
|
error: e,
|
|
@@ -5262,30 +5263,34 @@ function ul(e, t, n = !1) {
|
|
|
5262
5263
|
}));
|
|
5263
5264
|
return;
|
|
5264
5265
|
}
|
|
5265
|
-
|
|
5266
|
-
let
|
|
5267
|
-
|
|
5266
|
+
o.current = t.headers.get("ETag");
|
|
5267
|
+
let s = await t.json();
|
|
5268
|
+
i && a({
|
|
5268
5269
|
url: e,
|
|
5269
|
-
data:
|
|
5270
|
+
data: s,
|
|
5270
5271
|
loading: !1,
|
|
5271
5272
|
status: t.status,
|
|
5272
|
-
stale:
|
|
5273
|
+
stale: l,
|
|
5273
5274
|
failing: n
|
|
5274
5275
|
});
|
|
5275
5276
|
} catch (e) {
|
|
5276
|
-
|
|
5277
|
+
i && !p.signal.aborted && d < ll ? f = !0 : i && !p.signal.aborted && a((t) => ({
|
|
5277
5278
|
...t,
|
|
5278
5279
|
loading: !1,
|
|
5279
5280
|
error: e instanceof Error ? e.message : "Request failed"
|
|
5280
5281
|
}));
|
|
5281
5282
|
} finally {
|
|
5282
|
-
|
|
5283
|
+
i && f ? (c = window.setTimeout(m, 1e3 * 2 ** d), d += 1) : i && l && u < cl ? (c = window.setTimeout(m, sl * 1.5 ** u), u += 1) : i && t && (c = window.setTimeout(m, t));
|
|
5283
5284
|
}
|
|
5284
5285
|
};
|
|
5285
|
-
return
|
|
5286
|
-
|
|
5286
|
+
return m(), () => {
|
|
5287
|
+
i = !1, p.abort(), window.clearTimeout(c);
|
|
5287
5288
|
};
|
|
5288
|
-
}, [
|
|
5289
|
+
}, [
|
|
5290
|
+
e,
|
|
5291
|
+
t,
|
|
5292
|
+
r
|
|
5293
|
+
]), n || i.url === e ? i : {
|
|
5289
5294
|
url: e,
|
|
5290
5295
|
loading: !!e
|
|
5291
5296
|
};
|
|
@@ -5325,7 +5330,7 @@ function xl(e) {
|
|
|
5325
5330
|
switch (t) {
|
|
5326
5331
|
case "running":
|
|
5327
5332
|
case "building":
|
|
5328
|
-
case "live": return $("run", `Running${i != null && i > 0 ? ` ${ml(i)}` : ""}`, "
|
|
5333
|
+
case "live": return $("run", `Running${i != null && i > 0 ? ` ${ml(i)}` : ""}`, "live", Q.live);
|
|
5329
5334
|
case "winner":
|
|
5330
5335
|
case "solved": return $("result", "Passed", "pass", Q.solved);
|
|
5331
5336
|
case "stalled": return $("run", "Stopped by Lab (stall)", "neutral", Q.stalled);
|