@sepveneto/dnde-agent 0.2.0-beta.3 → 0.2.0-beta.4
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 +30 -3
- package/dist/{agent-B2u2g_gS.js → agent--M87gUL-.js} +1 -1
- package/dist/agents.d.ts.map +1 -1
- package/dist/editorContext.d.ts +26 -0
- package/dist/editorContext.d.ts.map +1 -0
- package/dist/element.js +621 -569
- package/dist/{index-Cz-N1hlP.js → index-BozWbCey.js} +559 -507
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -14
- package/dist/runtime.d.ts.map +1 -1
- package/dist/tool.d.ts +3 -1
- package/dist/tool.d.ts.map +1 -1
- package/dist/types.d.ts +14 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/element.js
CHANGED
|
@@ -2722,7 +2722,7 @@ function w5(e, t) {
|
|
|
2722
2722
|
te,
|
|
2723
2723
|
de,
|
|
2724
2724
|
le
|
|
2725
|
-
) :
|
|
2725
|
+
) : z(M, D, le);
|
|
2726
2726
|
}, N = (M, D, G, X, Y, te, de) => {
|
|
2727
2727
|
const ae = M.component = R5(
|
|
2728
2728
|
M,
|
|
@@ -2744,7 +2744,7 @@ function w5(e, t) {
|
|
|
2744
2744
|
te,
|
|
2745
2745
|
de
|
|
2746
2746
|
);
|
|
2747
|
-
},
|
|
2747
|
+
}, z = (M, D, G) => {
|
|
2748
2748
|
const X = D.component = M.component;
|
|
2749
2749
|
if (l5(M, D, G))
|
|
2750
2750
|
if (X.asyncDep && !X.asyncResolved) {
|
|
@@ -5251,22 +5251,22 @@ function WL() {
|
|
|
5251
5251
|
const ve = n.createElement("template");
|
|
5252
5252
|
ve.content && ve.content.ownerDocument && (n = ve.content.ownerDocument);
|
|
5253
5253
|
}
|
|
5254
|
-
let j, C = "", q, N = !1,
|
|
5254
|
+
let j, C = "", q, N = !1, z = 0;
|
|
5255
5255
|
const F = function() {
|
|
5256
|
-
if (
|
|
5256
|
+
if (z > 0) throw Fi('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
|
|
5257
5257
|
}, V = function($) {
|
|
5258
|
-
F(),
|
|
5258
|
+
F(), z++;
|
|
5259
5259
|
try {
|
|
5260
5260
|
return j.createHTML($);
|
|
5261
5261
|
} finally {
|
|
5262
|
-
|
|
5262
|
+
z--;
|
|
5263
5263
|
}
|
|
5264
5264
|
}, K = function($) {
|
|
5265
|
-
F(),
|
|
5265
|
+
F(), z++;
|
|
5266
5266
|
try {
|
|
5267
5267
|
return j.createScriptURL($);
|
|
5268
5268
|
} finally {
|
|
5269
|
-
|
|
5269
|
+
z--;
|
|
5270
5270
|
}
|
|
5271
5271
|
}, U = function() {
|
|
5272
5272
|
return N || (q = ZJ(l, o), N = !0), q;
|
|
@@ -7417,22 +7417,22 @@ const tV = ["innerHTML"], Q0 = /* @__PURE__ */ jg({
|
|
|
7417
7417
|
const n = e, r = t, o = cl(() => n.runtime.config);
|
|
7418
7418
|
function s() {
|
|
7419
7419
|
try {
|
|
7420
|
-
const
|
|
7420
|
+
const z = localStorage.getItem(
|
|
7421
7421
|
`${n.storageNamespace}:${n.mode}:${n.sessionId}`
|
|
7422
7422
|
);
|
|
7423
|
-
if (!
|
|
7423
|
+
if (!z)
|
|
7424
7424
|
return [];
|
|
7425
|
-
const F = JSON.parse(
|
|
7425
|
+
const F = JSON.parse(z);
|
|
7426
7426
|
return Array.isArray(F) ? F : [];
|
|
7427
|
-
} catch (
|
|
7427
|
+
} catch (z) {
|
|
7428
7428
|
return [];
|
|
7429
7429
|
}
|
|
7430
7430
|
}
|
|
7431
|
-
function i(
|
|
7431
|
+
function i(z) {
|
|
7432
7432
|
try {
|
|
7433
7433
|
localStorage.setItem(
|
|
7434
7434
|
`${n.storageNamespace}:${n.mode}:${n.sessionId}`,
|
|
7435
|
-
JSON.stringify(
|
|
7435
|
+
JSON.stringify(z)
|
|
7436
7436
|
);
|
|
7437
7437
|
} catch (F) {
|
|
7438
7438
|
}
|
|
@@ -7451,9 +7451,9 @@ const tV = ["innerHTML"], Q0 = /* @__PURE__ */ jg({
|
|
|
7451
7451
|
let S = 0, I = 0, A;
|
|
7452
7452
|
qh(
|
|
7453
7453
|
a,
|
|
7454
|
-
(
|
|
7454
|
+
(z) => i(z),
|
|
7455
7455
|
{ deep: !0 }
|
|
7456
|
-
), qh(u, (
|
|
7456
|
+
), qh(u, (z) => r("running", z));
|
|
7457
7457
|
function R() {
|
|
7458
7458
|
cancelAnimationFrame(I), I = requestAnimationFrame(() => {
|
|
7459
7459
|
f.value && (f.value.scrollTop = f.value.scrollHeight);
|
|
@@ -7462,13 +7462,13 @@ const tV = ["innerHTML"], Q0 = /* @__PURE__ */ jg({
|
|
|
7462
7462
|
function P() {
|
|
7463
7463
|
A == null || A.abort(), S += 1, u.value = !1;
|
|
7464
7464
|
}
|
|
7465
|
-
function j(
|
|
7466
|
-
T.value || (c.value =
|
|
7465
|
+
function j(z) {
|
|
7466
|
+
T.value || (c.value = z);
|
|
7467
7467
|
}
|
|
7468
7468
|
async function C() {
|
|
7469
7469
|
var Oe;
|
|
7470
|
-
const
|
|
7471
|
-
if (!
|
|
7470
|
+
const z = c.value.trim(), F = y.value[0];
|
|
7471
|
+
if (!z && !F || T.value)
|
|
7472
7472
|
return;
|
|
7473
7473
|
l.value = !0, d.value = "";
|
|
7474
7474
|
let V;
|
|
@@ -7489,7 +7489,7 @@ const tV = ["innerHTML"], Q0 = /* @__PURE__ */ jg({
|
|
|
7489
7489
|
}
|
|
7490
7490
|
const K = [
|
|
7491
7491
|
V ? zL(V) : "",
|
|
7492
|
-
|
|
7492
|
+
z
|
|
7493
7493
|
].filter(Boolean).join(`
|
|
7494
7494
|
|
|
7495
7495
|
`);
|
|
@@ -7504,7 +7504,7 @@ const tV = ["innerHTML"], Q0 = /* @__PURE__ */ jg({
|
|
|
7504
7504
|
role: "user",
|
|
7505
7505
|
parts: [
|
|
7506
7506
|
...V ? [V] : [],
|
|
7507
|
-
...
|
|
7507
|
+
...z ? [{ type: "text", text: z }] : []
|
|
7508
7508
|
]
|
|
7509
7509
|
};
|
|
7510
7510
|
a.value.push(ye);
|
|
@@ -7532,15 +7532,15 @@ const tV = ["innerHTML"], Q0 = /* @__PURE__ */ jg({
|
|
|
7532
7532
|
U === S && (u.value = !1, A = void 0, R());
|
|
7533
7533
|
}
|
|
7534
7534
|
}
|
|
7535
|
-
function q(
|
|
7536
|
-
|
|
7535
|
+
function q(z) {
|
|
7536
|
+
z.key === "Enter" && !z.shiftKey && !T.value && (z.preventDefault(), C());
|
|
7537
7537
|
}
|
|
7538
|
-
function N(
|
|
7539
|
-
return
|
|
7538
|
+
function N(z) {
|
|
7539
|
+
return z === void 0 ? "" : z < 1024 ? `${z} B` : z < 1024 * 1024 ? `${(z / 1024).toFixed(1)} KB` : `${(z / 1024 / 1024).toFixed(1)} MB`;
|
|
7540
7540
|
}
|
|
7541
7541
|
return cL(() => {
|
|
7542
7542
|
A == null || A.abort(), S += 1, cancelAnimationFrame(I);
|
|
7543
|
-
}), (
|
|
7543
|
+
}), (z, F) => (xt(), Mt("main", {
|
|
7544
7544
|
class: _l(["chat-view", [{ embedded: e.embedded }]])
|
|
7545
7545
|
}, [
|
|
7546
7546
|
Re("header", hV, [
|
|
@@ -9726,14 +9726,14 @@ const bX = /* @__PURE__ */ ue("$ZodObject", (e, t) => {
|
|
|
9726
9726
|
continue;
|
|
9727
9727
|
const A = w[I], R = typeof I == "symbol" ? `syms[${y.indexOf(I)}]` : QV(I), P = `${R} in input`, j = p[I], C = (T = j == null ? void 0 : j._zod) == null ? void 0 : T.optin, q = C !== void 0, N = ((S = j == null ? void 0 : j._zod) == null ? void 0 : S.optout) === "optional";
|
|
9728
9728
|
if (g.write(`const ${A} = ${_(R)};`), q && N) {
|
|
9729
|
-
const
|
|
9729
|
+
const z = C === "optional" ? `${A}_present` : `${A}.value !== undefined || ${A}_present`;
|
|
9730
9730
|
g.write(`
|
|
9731
9731
|
const ${A}_present = ${P};
|
|
9732
9732
|
if (!${A}.issues.length || ${A}_present) {
|
|
9733
9733
|
if (${A}.issues.length) {${m(A, R)}
|
|
9734
9734
|
}
|
|
9735
9735
|
|
|
9736
|
-
if (${
|
|
9736
|
+
if (${z}) {
|
|
9737
9737
|
newResult[${R}] = ${A}.value;
|
|
9738
9738
|
}
|
|
9739
9739
|
}
|
|
@@ -18459,11 +18459,11 @@ function bE(e, t, n, r = /* @__PURE__ */ new Set()) {
|
|
|
18459
18459
|
const N = c[C];
|
|
18460
18460
|
if (N === void 0)
|
|
18461
18461
|
return l();
|
|
18462
|
-
const
|
|
18463
|
-
vA(
|
|
18464
|
-
schema:
|
|
18465
|
-
sourcePath:
|
|
18466
|
-
}) : tse(
|
|
18462
|
+
const z = N.schema;
|
|
18463
|
+
vA(z) ? d.push({
|
|
18464
|
+
schema: z,
|
|
18465
|
+
sourcePath: z === q ? [...t, "allOf", String(C)] : void 0
|
|
18466
|
+
}) : tse(z) || l();
|
|
18467
18467
|
}
|
|
18468
18468
|
const f = {};
|
|
18469
18469
|
for (const C of ["$defs", "definitions"])
|
|
@@ -18487,10 +18487,10 @@ function bE(e, t, n, r = /* @__PURE__ */ new Set()) {
|
|
|
18487
18487
|
N === "allOf" && C === e || (N === "$defs" || N === "definitions") && lt(C[N]) || C === e && t.length === 0 && fl.has(N) || m$.has(N) || l();
|
|
18488
18488
|
if (C.type !== void 0 && (YK(C.type) || l(), C.type === "object" ? w = !0 : b = !0), C.properties !== void 0) {
|
|
18489
18489
|
lt(C.properties) || l(), _ = !0;
|
|
18490
|
-
for (const [N,
|
|
18490
|
+
for (const [N, z] of Object.entries(C.properties))
|
|
18491
18491
|
g.push({
|
|
18492
18492
|
key: N,
|
|
18493
|
-
propertySchema:
|
|
18493
|
+
propertySchema: z,
|
|
18494
18494
|
sourcePath: q === void 0 ? void 0 : [...q, "properties", N]
|
|
18495
18495
|
});
|
|
18496
18496
|
}
|
|
@@ -20801,9 +20801,9 @@ function Ls(e) {
|
|
|
20801
20801
|
});
|
|
20802
20802
|
throw U.redacted || ne.dontLogToolData ? (Vn(U), ne.debug(`Invalid JSON input for tool ${t}`)) : ne.debug(`Invalid JSON input for tool ${t}: ${P}`), U.error;
|
|
20803
20803
|
}
|
|
20804
|
-
const
|
|
20805
|
-
ne.dontLogToolData ? ne.debug(`Invoking tool ${t}`) : ne.debug(`Invoking tool ${t} with input ${P}`), (K = j == null ? void 0 : j[Nq]) == null || K.call(j,
|
|
20806
|
-
const F = h(await e.execute(
|
|
20804
|
+
const z = N.value;
|
|
20805
|
+
ne.dontLogToolData ? ne.debug(`Invoking tool ${t}`) : ne.debug(`Invoking tool ${t} with input ${P}`), (K = j == null ? void 0 : j[Nq]) == null || K.call(j, z);
|
|
20806
|
+
const F = h(await e.execute(z, R, j), R, j), V = Ti(F);
|
|
20807
20807
|
return ne.dontLogToolData ? ne.debug(`Tool ${t} completed`) : ne.debug(`Tool ${t} returned: ${V}`), F;
|
|
20808
20808
|
}
|
|
20809
20809
|
async function _(R, P, j) {
|
|
@@ -20819,7 +20819,7 @@ function Ls(e) {
|
|
|
20819
20819
|
const C = Oc(P);
|
|
20820
20820
|
if (C && ((ie = j == null ? void 0 : j[vb]) == null || ie.call(j, C)), !o)
|
|
20821
20821
|
throw C && Yi(C) ? C.error : P;
|
|
20822
|
-
const q = I$(P), N = q ? Vn(q) : kE(P),
|
|
20822
|
+
const q = I$(P), N = q ? Vn(q) : kE(P), z = C ? Yi(C) : Rq(P), F = N || z, V = (ge = (ye = q == null ? void 0 : q.error) != null ? ye : C == null ? void 0 : C.error) != null ? ge : P, K = F ? void 0 : j, U = jm(), B = o !== k$ && !F && oie(j);
|
|
20823
20823
|
U == null || U.setError({
|
|
20824
20824
|
message: "Error running tool (non-fatal)",
|
|
20825
20825
|
data: {
|
|
@@ -20831,12 +20831,12 @@ function Ls(e) {
|
|
|
20831
20831
|
const Oe = await o(R, V, K);
|
|
20832
20832
|
if (q && !N && Vn(q))
|
|
20833
20833
|
throw q.error;
|
|
20834
|
-
if (C && !
|
|
20834
|
+
if (C && !z && Yi(C))
|
|
20835
20835
|
throw C.error;
|
|
20836
20836
|
const oe = h(Oe, R, K);
|
|
20837
20837
|
if (q && !N && Vn(q))
|
|
20838
20838
|
throw q.error;
|
|
20839
|
-
if (C && !
|
|
20839
|
+
if (C && !z && Yi(C))
|
|
20840
20840
|
throw C.error;
|
|
20841
20841
|
return oe;
|
|
20842
20842
|
} catch (Oe) {
|
|
@@ -21416,10 +21416,10 @@ function Vie(e, t, n, r = {}) {
|
|
|
21416
21416
|
N && (N.spanData.mcp_data = {
|
|
21417
21417
|
server: zo(t.name)
|
|
21418
21418
|
});
|
|
21419
|
-
const
|
|
21419
|
+
const z = j ? await Jie(t, j, o, q) : void 0, F = C != null && C.signal ? { signal: C.signal } : void 0, V = (t.useStructuredContent === !0 || t.customDataExtractor !== void 0) && t.callToolResult !== void 0;
|
|
21420
21420
|
let K;
|
|
21421
|
-
V ? K = F ? await t.callToolResult(o, q,
|
|
21422
|
-
content: F ? await t.callTool(o, q,
|
|
21421
|
+
V ? K = F ? await t.callToolResult(o, q, z, F) : z === void 0 ? await t.callToolResult(o, q) : await t.callToolResult(o, q, z) : K = {
|
|
21422
|
+
content: F ? await t.callTool(o, q, z, F) : z === void 0 ? await t.callTool(o, q) : await t.callTool(o, q, z)
|
|
21423
21423
|
};
|
|
21424
21424
|
const U = K.content, B = (Oe = K._meta) != null ? Oe : U._meta, ie = (oe = K.structuredContent) != null ? oe : U.structuredContent, ye = (Ce = K.isError) != null ? Ce : U.isError, ge = t.useStructuredContent === !0 && ye !== !0 && ie !== void 0 ? JSON.stringify(ie) : U.length === 1 ? U[0] : U;
|
|
21425
21425
|
if (j && ((Ee = C == null ? void 0 : C.toolCall) != null && Ee.callId) && t.customDataExtractor) {
|
|
@@ -28521,7 +28521,7 @@ function Yle(e, t) {
|
|
|
28521
28521
|
return n;
|
|
28522
28522
|
}
|
|
28523
28523
|
function XE(e) {
|
|
28524
|
-
var c, u, l, d, f, p, h, y, g, _, m, w, b, T, S, I, A, R, P, j, C, q, N,
|
|
28524
|
+
var c, u, l, d, f, p, h, y, g, _, m, w, b, T, S, I, A, R, P, j, C, q, N, z, F, V, K;
|
|
28525
28525
|
const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
|
|
28526
28526
|
for (const U of e) {
|
|
28527
28527
|
if (U instanceof _t) {
|
|
@@ -28612,7 +28612,7 @@ function XE(e) {
|
|
|
28612
28612
|
if (!B)
|
|
28613
28613
|
throw new x("RunState contains a local tool output without a non-empty call ID.");
|
|
28614
28614
|
const ie = (q = n.get(U.agent)) == null ? void 0 : q.get(B);
|
|
28615
|
-
(!ie || !ie.identityResolved || !Kb(ie.toolCall, U.rawItem)) && (Tu(i, U.agent).add(B), (N = o.get(U.agent)) == null || N.delete(B)), (
|
|
28615
|
+
(!ie || !ie.identityResolved || !Kb(ie.toolCall, U.rawItem)) && (Tu(i, U.agent).add(B), (N = o.get(U.agent)) == null || N.delete(B)), (z = n.get(U.agent)) == null || z.delete(B);
|
|
28616
28616
|
const ye = B ? (F = o.get(U.agent)) == null ? void 0 : F.get(B) : void 0;
|
|
28617
28617
|
B && ye !== void 0 && !((V = i.get(U.agent)) != null && V.has(B)) && (Gn(s, U.agent).set(B, ye), Gn(a, U.agent).set(B, [
|
|
28618
28618
|
...(K = ie == null ? void 0 : ie.evidence) != null ? K : [],
|
|
@@ -30767,7 +30767,7 @@ function afe(e, t, n) {
|
|
|
30767
30767
|
}) : n;
|
|
30768
30768
|
}
|
|
30769
30769
|
async function cfe(e, t, n = {}) {
|
|
30770
|
-
var I, A, R, P, j, C, q, N,
|
|
30770
|
+
var I, A, R, P, j, C, q, N, z, F, V, K, U, B, ie, ye, ge, ee, Oe, oe, Ce, Ee, me, Pe, ke, M, D, G, X, Y, te, de, ae, le, fe, Me, Ie, Ae, Te, je, Le, Fe, rt, xe, Ke, Ve, At, St, We, gt;
|
|
30771
30771
|
const r = t.$schemaVersion, o = t.context.approvals;
|
|
30772
30772
|
if (on(r) && (t.context.approvalInvocations === void 0 || t.completedToolInvocations === void 0 || t.completedToolInvocationEvidence === void 0 || t.ambiguousToolInvocationCallIds === void 0))
|
|
30773
30773
|
throw new x(`RunState schema ${r} requires explicit approval, completed, completion-evidence, and ambiguous invocation records.`);
|
|
@@ -30775,7 +30775,7 @@ async function cfe(e, t, n = {}) {
|
|
|
30775
30775
|
const s = kde(r) ? Td(e).byIdentity : lfe(e), i = t.generatedItems.map(($e) => ny($e, s)), a = n.contextOverride, c = (I = n.contextStrategy) != null ? I : "merge";
|
|
30776
30776
|
let u;
|
|
30777
30777
|
const l = a ? a._cloneForRunStateDeserialization() : new Fr(t.context.context);
|
|
30778
|
-
l._validateFunctionApprovalOwners((A = t.context.functionApprovals) != null ? A : [], s), on(r) && l._validateApprovalInvocations((R = t.context.approvalInvocations) != null ? R : [], s), a ? c === "merge" && (yi(r) ? (l._mergeApprovals(o), on(r) && l._mergeHostedMcpApprovals((P = t.context.hostedMcpApprovals) != null ? P : {}), l._mergeFunctionApprovals((j = t.context.functionApprovals) != null ? j : [], s), l._mergeLegacyFunctionApprovals((C = t.context.legacyFunctionApprovals) != null ? C : {}), on(r) && l._mergeApprovalInvocations((q = t.context.approvalInvocations) != null ? q : [], s)) : (u = new Fr(t.context.context), u._rebuildApprovals(o), u._rebuildLegacyFunctionApprovals(o))) : (l._rebuildApprovals(o), l._rebuildHostedMcpApprovals(on(r) ? (N = t.context.hostedMcpApprovals) != null ? N : {} : {}), l._rebuildFunctionApprovals((
|
|
30778
|
+
l._validateFunctionApprovalOwners((A = t.context.functionApprovals) != null ? A : [], s), on(r) && l._validateApprovalInvocations((R = t.context.approvalInvocations) != null ? R : [], s), a ? c === "merge" && (yi(r) ? (l._mergeApprovals(o), on(r) && l._mergeHostedMcpApprovals((P = t.context.hostedMcpApprovals) != null ? P : {}), l._mergeFunctionApprovals((j = t.context.functionApprovals) != null ? j : [], s), l._mergeLegacyFunctionApprovals((C = t.context.legacyFunctionApprovals) != null ? C : {}), on(r) && l._mergeApprovalInvocations((q = t.context.approvalInvocations) != null ? q : [], s)) : (u = new Fr(t.context.context), u._rebuildApprovals(o), u._rebuildLegacyFunctionApprovals(o))) : (l._rebuildApprovals(o), l._rebuildHostedMcpApprovals(on(r) ? (N = t.context.hostedMcpApprovals) != null ? N : {} : {}), l._rebuildFunctionApprovals((z = t.context.functionApprovals) != null ? z : [], s), l._rebuildLegacyFunctionApprovals(yi(r) ? (F = t.context.legacyFunctionApprovals) != null ? F : {} : o), l._rebuildApprovalInvocations(on(r) ? (V = t.context.approvalInvocations) != null ? V : [] : [], s));
|
|
30779
30779
|
const d = !a || c === "merge";
|
|
30780
30780
|
d && typeof t.context.toolInput != "undefined" && typeof l.toolInput == "undefined" && (l.toolInput = t.context.toolInput), a || (l.usage = new On(t.context.usage));
|
|
30781
30781
|
const f = Tn(t.currentAgent, s), p = new fn(l, "", e, t.maxTurns);
|
|
@@ -31314,13 +31314,13 @@ async function tH(e, t, n, r = {}) {
|
|
|
31314
31314
|
};
|
|
31315
31315
|
}),
|
|
31316
31316
|
functions: await Promise.all(n.functions.map(async (S) => {
|
|
31317
|
-
var j, C, q, N,
|
|
31317
|
+
var j, C, q, N, z, F, V, K;
|
|
31318
31318
|
const I = (j = lie(S.toolCall)) != null ? j : S.tool.name, A = (C = r.executionFunctionToolsByCallId) == null ? void 0 : C.get(S.toolCall.callId);
|
|
31319
31319
|
A && !bv(S.toolCall, A) && co(o, S.toolCall.callId, [
|
|
31320
31320
|
(q = Xn(A)) != null ? q : A.name,
|
|
31321
31321
|
(N = kn(S.toolCall)) != null ? N : S.tool.name
|
|
31322
31322
|
]);
|
|
31323
|
-
const R = S.mcpToolBinding === void 0 ? "unknown" : S.mcpToolBinding, P = (V = (
|
|
31323
|
+
const R = S.mcpToolBinding === void 0 ? "unknown" : S.mcpToolBinding, P = (V = (z = A != null ? A : Jg(S.toolCall, c)) != null ? z : iue({
|
|
31324
31324
|
agent: o,
|
|
31325
31325
|
baseAgentTools: i,
|
|
31326
31326
|
serializedTool: S.tool,
|
|
@@ -36939,7 +36939,7 @@ function GH(e) {
|
|
|
36939
36939
|
return typeof t != "string" ? !1 : dP(t);
|
|
36940
36940
|
}
|
|
36941
36941
|
function rme(e, t, n, r, o = [], s = "raise_error", i = {}) {
|
|
36942
|
-
var C, q, N,
|
|
36942
|
+
var C, q, N, z, F, V;
|
|
36943
36943
|
Ws(e.output);
|
|
36944
36944
|
const a = [], c = [], u = [], l = [], d = [], f = [];
|
|
36945
36945
|
let p = !1;
|
|
@@ -37054,7 +37054,7 @@ function rme(e, t, n, r, o = [], s = "raise_error", i = {}) {
|
|
|
37054
37054
|
else if (U.type === "handoff")
|
|
37055
37055
|
uo(K, void 0, U.handoff.toolName, t), zH(K, U.handoff, t, a, g, c);
|
|
37056
37056
|
else {
|
|
37057
|
-
if (uo(K, U.tool.allowedCallers, (
|
|
37057
|
+
if (uo(K, U.tool.allowedCallers, (z = En(U.tool)) != null ? z : U.tool.name, t), !HH(K, U.tool, R.loadedToolNames, t, s)) {
|
|
37058
37058
|
Qb(Xb(K, U.tool), (F = En(U.tool)) != null ? F : U.tool.name, t, a, g, l, "not_loaded");
|
|
37059
37059
|
continue;
|
|
37060
37060
|
}
|
|
@@ -37106,7 +37106,7 @@ async function DN(e, t, n, r, o, s = [], i = "raise_error", a = {}) {
|
|
|
37106
37106
|
runContext: o._context,
|
|
37107
37107
|
tools: n
|
|
37108
37108
|
});
|
|
37109
|
-
let
|
|
37109
|
+
let z = !1;
|
|
37110
37110
|
const F = [...n];
|
|
37111
37111
|
for (const ee of e.output) {
|
|
37112
37112
|
if (ee.type === "message")
|
|
@@ -37127,7 +37127,7 @@ async function DN(e, t, n, r, o, s = [], i = "raise_error", a = {}) {
|
|
|
37127
37127
|
replacedRuntimeTools: Ce,
|
|
37128
37128
|
runtimeTools: oe.runtimeTools
|
|
37129
37129
|
});
|
|
37130
|
-
o.recordToolSearchRuntimeTools(t, oe.output, Ee),
|
|
37130
|
+
o.recordToolSearchRuntimeTools(t, oe.output, Ee), z = !0;
|
|
37131
37131
|
}
|
|
37132
37132
|
} else if (ee.type === "tool_search_output")
|
|
37133
37133
|
d.push(new po(qm(ee, a.toolSearchAgentName), t)), eS(q, ee), kf(ee, P, {
|
|
@@ -37243,7 +37243,7 @@ async function DN(e, t, n, r, o, s = [], i = "raise_error", a = {}) {
|
|
|
37243
37243
|
mcpApprovalRequests: w,
|
|
37244
37244
|
toolsUsed: b,
|
|
37245
37245
|
hasToolsOrApprovalsToRun() {
|
|
37246
|
-
return f.length > 0 || p.length > 0 || h.length > 0 || w.length > 0 || y.length > 0 || g.length > 0 || _ || m.length > 0 ||
|
|
37246
|
+
return f.length > 0 || p.length > 0 || h.length > 0 || w.length > 0 || y.length > 0 || g.length > 0 || _ || m.length > 0 || z;
|
|
37247
37247
|
}
|
|
37248
37248
|
};
|
|
37249
37249
|
}
|
|
@@ -37807,70 +37807,70 @@ function gme(e, t) {
|
|
|
37807
37807
|
}
|
|
37808
37808
|
function BO(e, t, n, r = {}) {
|
|
37809
37809
|
var S, I, A, R, P, j, C, q;
|
|
37810
|
-
const o = new Map(n.map(({ preparedIndex: N, ownerIndex:
|
|
37810
|
+
const o = new Map(n.map(({ preparedIndex: N, ownerIndex: z }) => [
|
|
37811
37811
|
N,
|
|
37812
|
-
|
|
37812
|
+
z
|
|
37813
37813
|
])), s = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
37814
|
-
for (const [N,
|
|
37815
|
-
const F = (S = s.get(
|
|
37816
|
-
F.push(N), s.set(
|
|
37817
|
-
const V = Jn(
|
|
37814
|
+
for (const [N, z] of e.entries()) {
|
|
37815
|
+
const F = (S = s.get(z)) != null ? S : [];
|
|
37816
|
+
F.push(N), s.set(z, F);
|
|
37817
|
+
const V = Jn(z), K = (I = i.get(V)) != null ? I : [];
|
|
37818
37818
|
K.push(N), i.set(V, K);
|
|
37819
37819
|
}
|
|
37820
|
-
const a = new Array(t.length), c = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set(), d = (N,
|
|
37820
|
+
const a = new Array(t.length), c = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set(), d = (N, z) => {
|
|
37821
37821
|
var F;
|
|
37822
37822
|
for (const [V, K] of N) {
|
|
37823
|
-
const U = ((F =
|
|
37823
|
+
const U = ((F = z.get(V)) != null ? F : []).filter((ie) => !c.has(ie)), B = K.filter((ie) => a[ie] === void 0);
|
|
37824
37824
|
for (let ie = 0; ie < Math.min(B.length, U.length); ie++) {
|
|
37825
37825
|
const ye = B[ie], ge = U[ie];
|
|
37826
37826
|
ye === void 0 || ge === void 0 || (a[ye] = ge, c.add(ge));
|
|
37827
37827
|
}
|
|
37828
37828
|
}
|
|
37829
37829
|
}, f = /* @__PURE__ */ new Map();
|
|
37830
|
-
for (const [N,
|
|
37831
|
-
const F = (A = f.get(
|
|
37832
|
-
F.push(N), f.set(
|
|
37830
|
+
for (const [N, z] of t.entries()) {
|
|
37831
|
+
const F = (A = f.get(z)) != null ? A : [];
|
|
37832
|
+
F.push(N), f.set(z, F);
|
|
37833
37833
|
}
|
|
37834
37834
|
d(f, s);
|
|
37835
37835
|
const p = new Set(c);
|
|
37836
|
-
for (const [N,
|
|
37836
|
+
for (const [N, z] of f) {
|
|
37837
37837
|
const F = s.get(N);
|
|
37838
37838
|
if (F === void 0)
|
|
37839
37839
|
continue;
|
|
37840
37840
|
const V = F.length;
|
|
37841
|
-
for (const K of
|
|
37841
|
+
for (const K of z.slice(V))
|
|
37842
37842
|
u.add(Jn(N)), l.add(K);
|
|
37843
37843
|
}
|
|
37844
37844
|
const h = /* @__PURE__ */ new Map();
|
|
37845
|
-
for (const [N,
|
|
37845
|
+
for (const [N, z] of t.entries()) {
|
|
37846
37846
|
if (a[N] !== void 0 || l.has(N))
|
|
37847
37847
|
continue;
|
|
37848
|
-
const F = Jn(
|
|
37848
|
+
const F = Jn(z), V = (R = h.get(F)) != null ? R : [];
|
|
37849
37849
|
V.push(N), h.set(F, V);
|
|
37850
37850
|
}
|
|
37851
37851
|
const y = /* @__PURE__ */ new Map();
|
|
37852
|
-
for (const [N,
|
|
37853
|
-
y.set(N,
|
|
37854
|
-
for (const [N,
|
|
37852
|
+
for (const [N, z] of i)
|
|
37853
|
+
y.set(N, z.filter((F) => !c.has(F)).length);
|
|
37854
|
+
for (const [N, z] of h) {
|
|
37855
37855
|
const F = (P = y.get(N)) != null ? P : 0;
|
|
37856
|
-
i.has(N) &&
|
|
37856
|
+
i.has(N) && z.length > F && (u.add(N), z.forEach((V) => l.add(V)));
|
|
37857
37857
|
}
|
|
37858
|
-
for (const [N,
|
|
37859
|
-
const F = e[N], V = Jn(
|
|
37858
|
+
for (const [N, z] of t.entries()) {
|
|
37859
|
+
const F = e[N], V = Jn(z);
|
|
37860
37860
|
a[N] !== void 0 || l.has(N) || F === void 0 || c.has(N) || V !== Jn(F) || ((C = (j = h.get(V)) == null ? void 0 : j.length) != null ? C : 0) >= ((q = y.get(V)) != null ? q : 0) || (a[N] = N, c.add(N));
|
|
37861
37861
|
}
|
|
37862
|
-
const g = new Map([...h].filter(([, N]) => N.every((
|
|
37862
|
+
const g = new Map([...h].filter(([, N]) => N.every((z) => !l.has(z))));
|
|
37863
37863
|
d(g, i);
|
|
37864
|
-
const _ = t.map((N,
|
|
37864
|
+
const _ = t.map((N, z) => z).filter((N) => a[N] === void 0 && !l.has(N)), m = e.map((N, z) => z).filter((N) => !c.has(N) && !u.has(Jn(e[N])));
|
|
37865
37865
|
if (r.validateReplacements !== !1 && e.length === 1 && t.length === 1 && _.length === 1 && m.length === 1) {
|
|
37866
|
-
const N = _[0],
|
|
37867
|
-
N !== void 0 &&
|
|
37866
|
+
const N = _[0], z = m[0];
|
|
37867
|
+
N !== void 0 && z !== void 0 && (a[N] = z, c.add(z));
|
|
37868
37868
|
}
|
|
37869
|
-
const w = _.some((N) => a[N] === void 0), b = m.some((N) => !c.has(N) && o.has(N)), T = [...i.values()].some((N) => N.some((
|
|
37869
|
+
const w = _.some((N) => a[N] === void 0), b = m.some((N) => !c.has(N) && o.has(N)), T = [...i.values()].some((N) => N.some((z) => o.has(z)) && N.some((z) => !o.has(z)) && N.some((z) => o.has(z) && c.has(z) && !p.has(z)) && N.some((z) => !c.has(z)));
|
|
37870
37870
|
if (r.validateReplacements !== !1 && w && (b || T))
|
|
37871
37871
|
throw new x("Capability.processContext() cannot replace Session-owned input without preserving its identity. Use callModelInputFilter for persistence-aware input replacement.");
|
|
37872
|
-
return t.flatMap((N,
|
|
37873
|
-
const F = a[
|
|
37872
|
+
return t.flatMap((N, z) => {
|
|
37873
|
+
const F = a[z], V = F === void 0 ? void 0 : o.get(F);
|
|
37874
37874
|
return V === void 0 ? [] : [{ item: N, ownerIndex: V }];
|
|
37875
37875
|
});
|
|
37876
37876
|
}
|
|
@@ -38054,7 +38054,7 @@ async function Sme(e, t, n, r, o, s) {
|
|
|
38054
38054
|
const C = d.map((N) => hP(t, N, u));
|
|
38055
38055
|
return {
|
|
38056
38056
|
preparedInput: a ? bx([...C, ...i], {
|
|
38057
|
-
pruningIndexes: new Set(d.map((N,
|
|
38057
|
+
pruningIndexes: new Set(d.map((N, z) => z))
|
|
38058
38058
|
}) : i,
|
|
38059
38059
|
sessionItems: i
|
|
38060
38060
|
};
|
|
@@ -38069,13 +38069,13 @@ async function Sme(e, t, n, r, o, s) {
|
|
|
38069
38069
|
reasoningItemIdPolicy: u
|
|
38070
38070
|
}), _ = KN(p), m = _x(f), w = _x(p), b = /* @__PURE__ */ new Set(), T = [];
|
|
38071
38071
|
for (const [C, q] of y.entries()) {
|
|
38072
|
-
const N = r4(t, q, u),
|
|
38072
|
+
const N = r4(t, q, u), z = Jn(q);
|
|
38073
38073
|
if (h.has(q)) {
|
|
38074
|
-
Id(m, q) && n_(g, N), Id(w, q) && n_(_,
|
|
38074
|
+
Id(m, q) && n_(g, N), Id(w, q) && n_(_, z), b.add(C);
|
|
38075
38075
|
continue;
|
|
38076
38076
|
}
|
|
38077
38077
|
if (Id(w, q)) {
|
|
38078
|
-
n_(_,
|
|
38078
|
+
n_(_, z), T.push(q);
|
|
38079
38079
|
continue;
|
|
38080
38080
|
}
|
|
38081
38081
|
if (Id(m, q)) {
|
|
@@ -38087,9 +38087,9 @@ async function Sme(e, t, n, r, o, s) {
|
|
|
38087
38087
|
g.set(N, F - 1), b.add(C);
|
|
38088
38088
|
continue;
|
|
38089
38089
|
}
|
|
38090
|
-
const V = (j = _.get(
|
|
38090
|
+
const V = (j = _.get(z)) != null ? j : 0;
|
|
38091
38091
|
if (V > 0) {
|
|
38092
|
-
_.set(
|
|
38092
|
+
_.set(z, V - 1), T.push(q);
|
|
38093
38093
|
continue;
|
|
38094
38094
|
}
|
|
38095
38095
|
T.push(q);
|
|
@@ -38167,8 +38167,8 @@ async function mP(e) {
|
|
|
38167
38167
|
if (a) {
|
|
38168
38168
|
if (!Bl(t) || c === void 0 || n._currentTurnSessionHistoryTransactionSessionId === void 0 || n._currentTurnSessionReasoningItemIdPolicy === void 0)
|
|
38169
38169
|
throw new x("Session history transaction capability was lost while persisting run items.");
|
|
38170
|
-
const N = qo(u),
|
|
38171
|
-
if (
|
|
38170
|
+
const N = qo(u), z = n._currentTurnSessionHistoryTransactionInputItems;
|
|
38171
|
+
if (z === void 0 || z.length !== N.length || !ka(N, z, 0))
|
|
38172
38172
|
throw new x("Session history transaction input no longer matches the pre-execution snapshot.");
|
|
38173
38173
|
const F = d + s;
|
|
38174
38174
|
(j = n._currentTurnSessionHistoryTransactionCanReplaceAcceptedOutput) != null || (n._currentTurnSessionHistoryTransactionCanReplaceAcceptedOutput = n._serializedCurrentStep === void 0 || n._currentStep !== n._serializedCurrentStep);
|
|
@@ -38980,9 +38980,9 @@ async function l4(e, t, n, r, o, s, i, a) {
|
|
|
38980
38980
|
const P = Zf(m.tool);
|
|
38981
38981
|
if (!A.success) {
|
|
38982
38982
|
if (A.preparedInput) {
|
|
38983
|
-
const
|
|
38984
|
-
if (
|
|
38985
|
-
return
|
|
38983
|
+
const z = await ZA(b, m, A, !1, R);
|
|
38984
|
+
if (z !== "approved")
|
|
38985
|
+
return z;
|
|
38986
38986
|
if (w != null && w.aborted)
|
|
38987
38987
|
return Do(b, m);
|
|
38988
38988
|
try {
|
|
@@ -38993,9 +38993,9 @@ async function l4(e, t, n, r, o, s, i, a) {
|
|
|
38993
38993
|
throw F;
|
|
38994
38994
|
}
|
|
38995
38995
|
} else if (P) {
|
|
38996
|
-
const
|
|
38997
|
-
if (
|
|
38998
|
-
return
|
|
38996
|
+
const z = await ZA(b, m, A, !0, R);
|
|
38997
|
+
if (z !== "approved")
|
|
38998
|
+
return z;
|
|
38999
38999
|
if (w != null && w.aborted)
|
|
39000
39000
|
return Do(b, m);
|
|
39001
39001
|
}
|
|
@@ -39008,10 +39008,10 @@ async function l4(e, t, n, r, o, s, i, a) {
|
|
|
39008
39008
|
return Do(b, m);
|
|
39009
39009
|
try {
|
|
39010
39010
|
return await HN(b, m, A.approvalArgs, A.preparedInput, void 0, l);
|
|
39011
|
-
} catch (
|
|
39012
|
-
if (d(
|
|
39011
|
+
} catch (z) {
|
|
39012
|
+
if (d(z), w != null && w.aborted && (z === w.reason || Mm(z)))
|
|
39013
39013
|
return Do(b, m);
|
|
39014
|
-
throw
|
|
39014
|
+
throw z;
|
|
39015
39015
|
}
|
|
39016
39016
|
}, h = async (m, w = i) => {
|
|
39017
39017
|
var T;
|
|
@@ -39351,11 +39351,11 @@ async function HN(e, t, n, r, o, s) {
|
|
|
39351
39351
|
return Do(e, t);
|
|
39352
39352
|
if (C)
|
|
39353
39353
|
throw !R && N && o ? o.error : q;
|
|
39354
|
-
const
|
|
39354
|
+
const z = g();
|
|
39355
39355
|
try {
|
|
39356
39356
|
ige(a, c._context, i, t.tool, t.toolCall, g);
|
|
39357
39357
|
} catch (ke) {
|
|
39358
|
-
throw !
|
|
39358
|
+
throw !z && g() && o ? o.error : ke;
|
|
39359
39359
|
}
|
|
39360
39360
|
g(), m = !0;
|
|
39361
39361
|
let F, V = n, K = { toolCall: t.toolCall }, U = !1, B;
|
|
@@ -39989,7 +39989,7 @@ async function h4(e, t, n, r, o = void 0, s, i, a) {
|
|
|
39989
39989
|
R && R.length > 0 && (C.providerData = {
|
|
39990
39990
|
acknowledgedSafetyChecks: R
|
|
39991
39991
|
});
|
|
39992
|
-
let q, N = !1,
|
|
39992
|
+
let q, N = !1, z;
|
|
39993
39993
|
try {
|
|
39994
39994
|
q = await Iv(f.customDataExtractor, {
|
|
39995
39995
|
runContext: r,
|
|
@@ -39999,12 +39999,12 @@ async function h4(e, t, n, r, o = void 0, s, i, a) {
|
|
|
39999
39999
|
rawItem: la(C)
|
|
40000
40000
|
});
|
|
40001
40001
|
} catch (F) {
|
|
40002
|
-
N = !0,
|
|
40002
|
+
N = !0, z = F;
|
|
40003
40003
|
}
|
|
40004
40004
|
if (ir(i))
|
|
40005
40005
|
return A();
|
|
40006
40006
|
if (N)
|
|
40007
|
-
throw
|
|
40007
|
+
throw z;
|
|
40008
40008
|
return lm(n, r, e, f, P, d), S && n.config.traceIncludeSensitiveData && (S.spanData.output = j), new ct(C, e, j, q, "executed");
|
|
40009
40009
|
});
|
|
40010
40010
|
u.push(...Array.isArray(T) ? T : [T]);
|
|
@@ -40769,7 +40769,7 @@ async function Tge(e, t, n, r, o, s, i, a, c, u, l, d) {
|
|
|
40769
40769
|
signal: u
|
|
40770
40770
|
}) : [], C = s_(((Ce = o.functionToolsNotFound) != null ? Ce : []).filter((me) => !f.has(me.toolCall)), {
|
|
40771
40771
|
completedCallIds: y
|
|
40772
|
-
}), q = await A4(e, i, C, a), N = [],
|
|
40772
|
+
}), q = await A4(e, i, C, a), N = [], z = EP(n), F = (me) => PP(me, N, z);
|
|
40773
40773
|
for (const me of R)
|
|
40774
40774
|
me.type === "function_output" && Array.isArray(me.interruptions) && me.interruptions.length > 0 || F(me.runItem);
|
|
40775
40775
|
for (const me of q)
|
|
@@ -40910,7 +40910,7 @@ async function VO(e, t, n, r, o, s, i, a, c, u, l, d, f, p) {
|
|
|
40910
40910
|
return q;
|
|
40911
40911
|
if (o.hasToolsOrApprovalsToRun())
|
|
40912
40912
|
return new io(t, r, y, g, { type: "next_step_run_again" });
|
|
40913
|
-
const N = g.filter((B) => B instanceof Ec),
|
|
40913
|
+
const N = g.filter((B) => B instanceof Ec), z = N.length > 0 ? KO(N[N.length - 1].rawItem) : void 0, F = typeof z == "undefined" ? void 0 : i4(r) || z, V = I.some((B) => B.runItem instanceof _t) || j.length > 0;
|
|
40914
40914
|
if (!V && N.length > 0) {
|
|
40915
40915
|
const B = Tme(N[N.length - 1].rawItem);
|
|
40916
40916
|
if (B && typeof F == "undefined") {
|
|
@@ -41398,7 +41398,7 @@ function yj(e, t, n) {
|
|
|
41398
41398
|
if (!(e._pendingInput.length === 0 || !r || Mv(t, n)))
|
|
41399
41399
|
throw new x("Pending RunState input requires exactly one server-managed conversation owner", e);
|
|
41400
41400
|
}
|
|
41401
|
-
async function
|
|
41401
|
+
async function Jxe(e, t, n) {
|
|
41402
41402
|
const r = Fge();
|
|
41403
41403
|
return n != null && n.stream ? await r.run(e, t, n) : await r.run(e, t, n);
|
|
41404
41404
|
}
|
|
@@ -41471,7 +41471,7 @@ class MP extends wre {
|
|
|
41471
41471
|
toolNotFoundBehavior: _,
|
|
41472
41472
|
toolNameCollisionPolicy: m,
|
|
41473
41473
|
tracing: b
|
|
41474
|
-
}, A = !this.config.tracingDisabled && Ny(b), R = r instanceof fn, P = R && (r._currentTurnInProgress === !0 || r._currentTurnPersistedItemCount > 0), j = R ? r._conversationId : void 0, C = R ? r._previousResponseId : void 0, q = !!((ke = I.conversationId) != null ? ke : j) || !!((M = I.previousResponseId) != null ? M : C), N = I.session,
|
|
41474
|
+
}, A = !this.config.tracingDisabled && Ny(b), R = r instanceof fn, P = R && (r._currentTurnInProgress === !0 || r._currentTurnPersistedItemCount > 0), j = R ? r._conversationId : void 0, C = R ? r._previousResponseId : void 0, q = !!((ke = I.conversationId) != null ? ke : j) || !!((M = I.previousResponseId) != null ? M : C), N = I.session, z = Pl(N, r instanceof fn ? r : void 0), F = R ? r : void 0;
|
|
41475
41475
|
if (F != null && F._resumedSessionWriteInProgress)
|
|
41476
41476
|
throw new x("The same RunState cannot resume or reconcile a Session write concurrently.");
|
|
41477
41477
|
const V = F !== void 0 && nm(F);
|
|
@@ -41497,7 +41497,7 @@ class MP extends wre {
|
|
|
41497
41497
|
const ae = hme({
|
|
41498
41498
|
session: N,
|
|
41499
41499
|
runContext: T,
|
|
41500
|
-
compactionState:
|
|
41500
|
+
compactionState: z,
|
|
41501
41501
|
hasCallModelInputFilter: w,
|
|
41502
41502
|
persistInput: n4,
|
|
41503
41503
|
resumingFromState: R,
|
|
@@ -41511,7 +41511,7 @@ class MP extends wre {
|
|
|
41511
41511
|
includeHistoryInPreparedInput: !q,
|
|
41512
41512
|
preserveDroppedNewItems: q,
|
|
41513
41513
|
reasoningItemIdPolicy: y
|
|
41514
|
-
}, T,
|
|
41514
|
+
}, T, z);
|
|
41515
41515
|
if (q && N) {
|
|
41516
41516
|
const Te = Ae.sessionItems;
|
|
41517
41517
|
Te && Te.length > 0 ? le = Te : le = Ae.preparedInput;
|
|
@@ -41524,7 +41524,7 @@ class MP extends wre {
|
|
|
41524
41524
|
const je = await W(this, Ge, $4).call(this, n, le, s, I, fe, ae == null ? void 0 : ae.setPreparedTurnItems, ae == null ? void 0 : ae.recordTurnItems, ae == null ? void 0 : ae.getItemsForPersistence, P, Y, te, {
|
|
41525
41525
|
sdkSessionId: async () => await (N == null ? void 0 : N.getSessionId()),
|
|
41526
41526
|
inputOverride: () => N ? ae == null ? void 0 : ae.getItemsForPersistence() : void 0
|
|
41527
|
-
}, Ae, de,
|
|
41527
|
+
}, Ae, de, z);
|
|
41528
41528
|
return K && (U = !1, je.completed.then(K, K)), je;
|
|
41529
41529
|
}
|
|
41530
41530
|
return await W(this, Ge, C4).call(this, n, le, I, s, ae == null ? void 0 : ae.setPreparedTurnItems, ae == null ? void 0 : ae.recordTurnItems, ae == null ? void 0 : ae.getItemsForPersistence, P, Y, te, {
|
|
@@ -41532,7 +41532,7 @@ class MP extends wre {
|
|
|
41532
41532
|
inputOverride: () => N ? ae == null ? void 0 : ae.getItemsForPersistence() : void 0
|
|
41533
41533
|
}, Ae, N && ae && !q ? async (je, Le) => {
|
|
41534
41534
|
await UO(N, ae.getItemsForPersistence(), je, Le);
|
|
41535
|
-
} : void 0, de,
|
|
41535
|
+
} : void 0, de, z);
|
|
41536
41536
|
};
|
|
41537
41537
|
if (this.config.tracingDisabled) {
|
|
41538
41538
|
const Ae = new Qh();
|
|
@@ -41626,7 +41626,7 @@ P4 = function(n) {
|
|
|
41626
41626
|
restoredAgentSpan: _ ? m._currentAgentSpan : void 0,
|
|
41627
41627
|
resumeInterruptedTurn: q,
|
|
41628
41628
|
parent: p
|
|
41629
|
-
}) : void 0,
|
|
41629
|
+
}) : void 0, z = N == null ? void 0 : N.taskSpan, F = q && !C ? fD({
|
|
41630
41630
|
agent: m._currentAgent,
|
|
41631
41631
|
restoredAgentSpan: _ ? m._currentAgentSpan : void 0,
|
|
41632
41632
|
parent: (je = p != null ? p : Fs()) != null ? je : void 0
|
|
@@ -41636,7 +41636,7 @@ P4 = function(n) {
|
|
|
41636
41636
|
const U = /* @__PURE__ */ new WeakSet();
|
|
41637
41637
|
let B, ie, ye = Ly();
|
|
41638
41638
|
const ge = xN(this), ee = (Be) => {
|
|
41639
|
-
By(
|
|
41639
|
+
By(z, Be), By(B, Be), ge == null || ge(Be);
|
|
41640
41640
|
};
|
|
41641
41641
|
ON(m, ee);
|
|
41642
41642
|
let Oe, oe;
|
|
@@ -41671,7 +41671,7 @@ P4 = function(n) {
|
|
|
41671
41671
|
data: {
|
|
41672
41672
|
error: sO(Be, this.config.traceIncludeSensitiveData)
|
|
41673
41673
|
}
|
|
41674
|
-
}), Xc(B, Be, this.config.traceIncludeSensitiveData), Xc(
|
|
41674
|
+
}), Xc(B, Be, this.config.traceIncludeSensitiveData), Xc(z, Be, this.config.traceIncludeSensitiveData), K = Be;
|
|
41675
41675
|
}, de = async (Be) => {
|
|
41676
41676
|
const De = m._currentStep;
|
|
41677
41677
|
if ((De == null ? void 0 : De.type) !== "next_step_final_output")
|
|
@@ -41815,7 +41815,7 @@ P4 = function(n) {
|
|
|
41815
41815
|
onAgentSpanReady: C ? (Mn, vo) => {
|
|
41816
41816
|
B = Uy(B, Mn, vo, m._currentAgentSpan), Zo(m, B.span);
|
|
41817
41817
|
} : void 0,
|
|
41818
|
-
agentSpanParent: (Ke =
|
|
41818
|
+
agentSpanParent: (Ke = z == null ? void 0 : z.span) != null ? Ke : p
|
|
41819
41819
|
});
|
|
41820
41820
|
u && m._currentTurn > Rt && _n <= wn && (m._currentTurnPersistedItemCount = _n);
|
|
41821
41821
|
const Kn = [...tn], wo = await w.prepareAgent({
|
|
@@ -41961,25 +41961,25 @@ P4 = function(n) {
|
|
|
41961
41961
|
state: m,
|
|
41962
41962
|
sandboxRuntime: w,
|
|
41963
41963
|
preserveSessionsForInterruption: Be,
|
|
41964
|
-
finishAgentSpanForInterruption: !!
|
|
41964
|
+
finishAgentSpanForInterruption: !!z || K !== void 0,
|
|
41965
41965
|
runError: K,
|
|
41966
41966
|
groupId: this.config.groupId,
|
|
41967
41967
|
memoryContext: f,
|
|
41968
41968
|
runAgent: async (Rt, _n, wn) => await this.run(Rt, _n, wn),
|
|
41969
|
-
tracingParent: (Go = (Zr =
|
|
41969
|
+
tracingParent: (Go = (Zr = z == null ? void 0 : z.span) != null ? Zr : m._currentAgentSpan) != null ? Go : p
|
|
41970
41970
|
});
|
|
41971
41971
|
} catch (Rt) {
|
|
41972
|
-
Xc(
|
|
41972
|
+
Xc(z, Rt, this.config.traceIncludeSensitiveData), await Promise.reject(Rt);
|
|
41973
41973
|
}
|
|
41974
41974
|
const De = Oe != null ? Oe : oe;
|
|
41975
41975
|
if (De && !D)
|
|
41976
41976
|
try {
|
|
41977
41977
|
await X(De);
|
|
41978
41978
|
} catch (Rt) {
|
|
41979
|
-
Xc(
|
|
41979
|
+
Xc(z, Rt, this.config.traceIncludeSensitiveData), await Promise.reject(Rt);
|
|
41980
41980
|
}
|
|
41981
41981
|
} finally {
|
|
41982
|
-
ti(
|
|
41982
|
+
ti(z);
|
|
41983
41983
|
}
|
|
41984
41984
|
}
|
|
41985
41985
|
});
|
|
@@ -42007,7 +42007,7 @@ P4 = function(n) {
|
|
|
42007
42007
|
generatedItems: n.state._generatedItems,
|
|
42008
42008
|
modelResponses: n.state._modelResponses
|
|
42009
42009
|
}), n.state.setConversationContext(S.conversationId, S.previousResponseId));
|
|
42010
|
-
const C = (ae = s.toolErrorFormatter) != null ? ae : this.config.toolErrorFormatter, q = s.outputGuardrailBlockedMessage === void 0 ? this.config.outputGuardrailBlockedMessage : s.outputGuardrailBlockedMessage, N = W(this, Ge, XO).call(this, s),
|
|
42010
|
+
const C = (ae = s.toolErrorFormatter) != null ? ae : this.config.toolErrorFormatter, q = s.outputGuardrailBlockedMessage === void 0 ? this.config.outputGuardrailBlockedMessage : s.outputGuardrailBlockedMessage, N = W(this, Ge, XO).call(this, s), z = !this.config.tracingDisabled && Ny(s.tracing);
|
|
42011
42011
|
let F = !1, V;
|
|
42012
42012
|
const K = /* @__PURE__ */ new WeakSet();
|
|
42013
42013
|
let U = !1;
|
|
@@ -42133,7 +42133,7 @@ P4 = function(n) {
|
|
|
42133
42133
|
runConfigModel: await W(this, Ge, Ih).call(this, n.state._currentAgent),
|
|
42134
42134
|
toolNameCollisionPolicy: s.toolNameCollisionPolicy,
|
|
42135
42135
|
tracingParent: (Ie = um(n.state)) != null ? Ie : n.state._currentAgentSpan
|
|
42136
|
-
}),
|
|
42136
|
+
}), z && (oe = Uy(oe, n.state._currentTurn, n.state._currentAgent.name, n.state._currentAgentSpan), Zo(n.state, oe.span));
|
|
42137
42137
|
const Ve = await (async () => {
|
|
42138
42138
|
let We;
|
|
42139
42139
|
Jl(n.state, !1);
|
|
@@ -42205,7 +42205,7 @@ P4 = function(n) {
|
|
|
42205
42205
|
emitAgentStart: (yt, Kt, wt) => {
|
|
42206
42206
|
this.emit("agent_start", yt, Kt, wt);
|
|
42207
42207
|
},
|
|
42208
|
-
onAgentSpanReady:
|
|
42208
|
+
onAgentSpanReady: z ? (yt, Kt) => {
|
|
42209
42209
|
oe = Uy(oe, yt, Kt, n.state._currentAgentSpan), Zo(n.state, oe.span);
|
|
42210
42210
|
} : void 0,
|
|
42211
42211
|
agentSpanParent: (Ae = y == null ? void 0 : y.span) != null ? Ae : g
|
|
@@ -42448,10 +42448,10 @@ P4 = function(n) {
|
|
|
42448
42448
|
}
|
|
42449
42449
|
}, $4 = async function(n, r, o, s, i, a, c, u, l, d, f, p, h, y = !1, g) {
|
|
42450
42450
|
return s = s != null ? s : {}, vx(async () => {
|
|
42451
|
-
var
|
|
42451
|
+
var z, F, V, K, U, B, ie;
|
|
42452
42452
|
const _ = r instanceof fn, m = _ ? r : new fn(s.context instanceof Fr ? s.context : new Fr(s.context), r, n, s.maxTurns === void 0 ? ZD : s.maxTurns);
|
|
42453
42453
|
NN(m, g), W(this, Ge, fr).call(this, m._currentAgent), _ && (m._agentToolInvocation = void 0, s.maxTurns !== void 0 && (m._maxTurns = s.maxTurns));
|
|
42454
|
-
const w = (F = (
|
|
42454
|
+
const w = (F = (z = s.reasoningItemIdPolicy) != null ? z : _ ? m._reasoningItemIdPolicy : void 0) != null ? F : this.config.reasoningItemIdPolicy;
|
|
42455
42455
|
m.setReasoningItemIdPolicy(w);
|
|
42456
42456
|
const b = (V = s.conversationId) != null ? V : _ ? m._conversationId : void 0, T = (K = s.previousResponseId) != null ? K : _ ? m._previousResponseId : void 0;
|
|
42457
42457
|
_ || await oc(s.session, m, {
|
|
@@ -42501,11 +42501,11 @@ fr = function(n) {
|
|
|
42501
42501
|
const r = n.hasExplicitModelSettings() ? n.modelSettings : void 0;
|
|
42502
42502
|
Zb(rw(this.config.modelSettings, r));
|
|
42503
42503
|
}, eR = async function(n, r, o, s, i, a, c) {
|
|
42504
|
-
var q, N,
|
|
42504
|
+
var q, N, z, F, V, K;
|
|
42505
42505
|
const { model: u, explicitlyModelSet: l, resolvedModelName: d } = await W(this, Ge, QO).call(this, r), f = r.hasExplicitModelSettings(), p = f ? r.modelSettings : Object.prototype.hasOwnProperty.call(r.modelSettings, "store") ? { store: r.modelSettings.store } : void 0, h = u.supportsPromptModelSelection === !0 && r.prompt !== void 0 && !l, y = f || h ? void 0 : Nge(l, d), g = {
|
|
42506
42506
|
reasoningEffortImplicit: ((q = y == null ? void 0 : y.reasoning) == null ? void 0 : q.effort) !== void 0 && !_j(this.config.modelSettings) && !_j(p),
|
|
42507
42507
|
tracingParent: (N = um(n)) != null ? N : n._currentAgentSpan,
|
|
42508
|
-
toolNameCollisionPolicy: (
|
|
42508
|
+
toolNameCollisionPolicy: (z = o.toolNameCollisionPolicy) != null ? z : "warn"
|
|
42509
42509
|
};
|
|
42510
42510
|
let _ = rw(y, this.config.modelSettings);
|
|
42511
42511
|
_ = rw(_, p), _ = Afe(l, (F = p != null ? p : y) != null ? F : {}, _, d), _ = Ife(n._currentAgent, n._toolUseTracker, _), Zb(_), n._lastModelSettings = _;
|
|
@@ -43072,7 +43072,7 @@ const Pu = class Pu extends _re {
|
|
|
43072
43072
|
isEnabled: p,
|
|
43073
43073
|
execute: async (P, j, C) => {
|
|
43074
43074
|
var M, D, G, X, Y, te, de, ae, le, fe, Me, Ie, Ae;
|
|
43075
|
-
const q = P, N = (d == null ? void 0 : d.context) instanceof Fr ? d.context : typeof (d == null ? void 0 : d.context) != "undefined" ? new Fr(d.context) : j instanceof Fr ? j : typeof j != "undefined" ? new Fr(j) : new Fr(),
|
|
43075
|
+
const q = P, N = (d == null ? void 0 : d.context) instanceof Fr ? d.context : typeof (d == null ? void 0 : d.context) != "undefined" ? new Fr(d.context) : j instanceof Fr ? j : typeof j != "undefined" ? new Fr(j) : new Fr(), z = {
|
|
43076
43076
|
toolName: (D = (M = C == null ? void 0 : C.toolCall) == null ? void 0 : M.name) != null ? D : A.name,
|
|
43077
43077
|
toolCallId: (G = C == null ? void 0 : C.toolCall) == null ? void 0 : G.callId,
|
|
43078
43078
|
toolArguments: (X = C == null ? void 0 : C.toolCall) == null ? void 0 : X.arguments
|
|
@@ -43120,7 +43120,7 @@ const Pu = class Pu extends _re {
|
|
|
43120
43120
|
}
|
|
43121
43121
|
}
|
|
43122
43122
|
const Le = Te;
|
|
43123
|
-
Le.state instanceof fn && (Le.state._agentToolInvocation =
|
|
43123
|
+
Le.state instanceof fn && (Le.state._agentToolInvocation = z);
|
|
43124
43124
|
const Fe = Le, rt = typeof this.toolUseBehavior == "object" && this.toolUseBehavior !== null && "stopAtToolNames" in this.toolUseBehavior;
|
|
43125
43125
|
typeof s != "function" && rt && ne.debug(`You're passing the agent (name: ${this.name}) with toolUseBehavior.stopAtToolNames configured as a tool to a different agent; this may not work as you expect. You may want to have a wrapper function tool to consistently return the final output.`);
|
|
43126
43126
|
let xe;
|
|
@@ -46004,7 +46004,7 @@ ${i}
|
|
|
46004
46004
|
${h}`);
|
|
46005
46005
|
}
|
|
46006
46006
|
return i;
|
|
46007
|
-
},
|
|
46007
|
+
}, L = /* @__PURE__ */ q_e(mG);
|
|
46008
46008
|
function W_e(e, t) {
|
|
46009
46009
|
return Promise.resolve(e).then(t);
|
|
46010
46010
|
}
|
|
@@ -46044,7 +46044,7 @@ function H_e(e, t, n) {
|
|
|
46044
46044
|
let gG = class extends pe {
|
|
46045
46045
|
list(t, n = {}, r) {
|
|
46046
46046
|
const o = H_e(n, ["after", "limit", "order"], r);
|
|
46047
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
46047
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/chat/completions/${t}/messages`, dt, W_e(r, (s) => ({
|
|
46048
46048
|
query: n,
|
|
46049
46049
|
...s,
|
|
46050
46050
|
__security: { bearerAuth: !0 }
|
|
@@ -46898,9 +46898,9 @@ class zP {
|
|
|
46898
46898
|
}
|
|
46899
46899
|
if (typeof A == "object" && A !== null && aT.has(A)) {
|
|
46900
46900
|
const N = A;
|
|
46901
|
-
for (let
|
|
46902
|
-
const F = N[
|
|
46903
|
-
typeof F == "string" && (N[
|
|
46901
|
+
for (let z = 0; z < N.length; z += 1) {
|
|
46902
|
+
const F = N[z];
|
|
46903
|
+
typeof F == "string" && (N[z] = J_e(Z_e(F)));
|
|
46904
46904
|
}
|
|
46905
46905
|
}
|
|
46906
46906
|
const C = { retention: j, active: !0, check: void 0 };
|
|
@@ -47206,18 +47206,18 @@ class LP extends zP {
|
|
|
47206
47206
|
return { message: void 0, functionCalled: !1 };
|
|
47207
47207
|
const R = I.id, { name: P, arguments: j } = I.function, C = g[P];
|
|
47208
47208
|
if (!C) {
|
|
47209
|
-
const
|
|
47210
|
-
return { message: { role: s, tool_call_id: R, content:
|
|
47209
|
+
const z = `Invalid tool_call: ${JSON.stringify(P)}. Available options are: ${Object.keys(g).map((F) => JSON.stringify(F)).join(", ")}. Please try again`;
|
|
47210
|
+
return { message: { role: s, tool_call_id: R, content: z }, functionCalled: !1 };
|
|
47211
47211
|
}
|
|
47212
47212
|
if (d && d !== P) {
|
|
47213
|
-
const
|
|
47214
|
-
return { message: { role: s, tool_call_id: R, content:
|
|
47213
|
+
const z = `Invalid tool_call: ${JSON.stringify(P)}. ${JSON.stringify(d)} requested. Please try again`;
|
|
47214
|
+
return { message: { role: s, tool_call_id: R, content: z }, functionCalled: !1 };
|
|
47215
47215
|
}
|
|
47216
47216
|
let q;
|
|
47217
47217
|
if (Rwe(C)) {
|
|
47218
|
-
let
|
|
47218
|
+
let z;
|
|
47219
47219
|
try {
|
|
47220
|
-
|
|
47220
|
+
z = await C.parse(j);
|
|
47221
47221
|
} catch (F) {
|
|
47222
47222
|
if (this.controller.signal.aborted)
|
|
47223
47223
|
throw this._userAbortError();
|
|
@@ -47227,7 +47227,7 @@ class LP extends zP {
|
|
|
47227
47227
|
if (this.controller.signal.aborted)
|
|
47228
47228
|
throw this._userAbortError();
|
|
47229
47229
|
try {
|
|
47230
|
-
q = await C.function(
|
|
47230
|
+
q = await C.function(z, r, l);
|
|
47231
47231
|
} catch (F) {
|
|
47232
47232
|
throw this.controller.signal.aborted && Object.is(F, this.controller.signal.reason) ? this._userAbortError() : F;
|
|
47233
47233
|
}
|
|
@@ -47236,8 +47236,8 @@ class LP extends zP {
|
|
|
47236
47236
|
throw this._userAbortError();
|
|
47237
47237
|
try {
|
|
47238
47238
|
q = await C.function(j, r, l);
|
|
47239
|
-
} catch (
|
|
47240
|
-
throw this.controller.signal.aborted && Object.is(
|
|
47239
|
+
} catch (z) {
|
|
47240
|
+
throw this.controller.signal.aborted && Object.is(z, this.controller.signal.reason) ? this._userAbortError() : z;
|
|
47241
47241
|
}
|
|
47242
47242
|
}
|
|
47243
47243
|
const N = v(wu, wu, "m", xG).call(wu, q);
|
|
@@ -48066,9 +48066,9 @@ class rg extends LP {
|
|
|
48066
48066
|
const N = (g = A.tool_calls) == null ? void 0 : g[q.index];
|
|
48067
48067
|
if (N != null && N.type)
|
|
48068
48068
|
if (N.type === "function") {
|
|
48069
|
-
const
|
|
48069
|
+
const z = C.tool_call_identities.get(q.index);
|
|
48070
48070
|
let F;
|
|
48071
|
-
if (
|
|
48071
|
+
if (z != null && z.parseable) {
|
|
48072
48072
|
const V = Vo(N.function, "arguments");
|
|
48073
48073
|
if (typeof V != "string")
|
|
48074
48074
|
throw new H("Chat completion stream contains an unsafe structured JSON snapshot");
|
|
@@ -48200,7 +48200,7 @@ class rg extends LP {
|
|
|
48200
48200
|
const r = v(this, Ht, "m", ed).call(this, n), o = v(this, Wa, "f");
|
|
48201
48201
|
return ce(this, Wa, /* @__PURE__ */ new Set()), ce(this, Tr, void 0), ce(this, ou, []), Zwe(n, v(this, vn, "f"), o, r);
|
|
48202
48202
|
}, Zj = function(n, r) {
|
|
48203
|
-
var y, g, _, m, w, b, T, S, I, A, R, P, j, C, q, N,
|
|
48203
|
+
var y, g, _, m, w, b, T, S, I, A, R, P, j, C, q, N, z;
|
|
48204
48204
|
var o, s, i, a, c;
|
|
48205
48205
|
let u = v(this, Tr, "f");
|
|
48206
48206
|
const { choices: l, obfuscation: d, ...f } = n;
|
|
@@ -48269,7 +48269,7 @@ class rg extends LP {
|
|
|
48269
48269
|
if (de) {
|
|
48270
48270
|
const je = (q = Me.function) != null ? q : Me.function = { name: Ie != null ? Ie : "", arguments: "" };
|
|
48271
48271
|
if (Ie && (je.name = Ie), Ae && !Te) {
|
|
48272
|
-
const Fe = bS(Me), rt = Fe && ((
|
|
48272
|
+
const Fe = bS(Me), rt = Fe && ((z = (N = v(this, vn, "f")) == null ? void 0 : N.tools) == null ? void 0 : z.find((xe) => ca(xe) && xe.function.name === Fe.name));
|
|
48273
48273
|
if (Fe && (Te = {
|
|
48274
48274
|
...Fe,
|
|
48275
48275
|
parseable: rt !== void 0 && xx(v(this, vn, "f"), {
|
|
@@ -48320,12 +48320,12 @@ function Zwe(e, t, n, r) {
|
|
|
48320
48320
|
if (!f)
|
|
48321
48321
|
throw new H("Chat completion stream contains an unsafe structured JSON snapshot");
|
|
48322
48322
|
const p = new Proxy(d, {
|
|
48323
|
-
get(
|
|
48324
|
-
return F === "message" ? f.message : Reflect.get(
|
|
48323
|
+
get(z, F, V) {
|
|
48324
|
+
return F === "message" ? f.message : Reflect.get(z, F, V);
|
|
48325
48325
|
}
|
|
48326
48326
|
}), { message: h, finish_reason: y, index: g, logprobs: _, ...m } = p, w = new Proxy(h, {
|
|
48327
|
-
get(
|
|
48328
|
-
return F === "content" ? f.content : F === "refusal" ? f.refusal : F === "tool_calls" ? f.toolCallCollection : Reflect.get(
|
|
48327
|
+
get(z, F, V) {
|
|
48328
|
+
return F === "content" ? f.content : F === "refusal" ? f.refusal : F === "tool_calls" ? f.toolCallCollection : Reflect.get(z, F, V);
|
|
48329
48329
|
}
|
|
48330
48330
|
}), { content: b = null, function_call: T, tool_calls: S, audio: I, ...A } = w, R = y != null ? y : n.has(g) && Jwe(I) ? "stop" : null;
|
|
48331
48331
|
if (!R)
|
|
@@ -48334,8 +48334,8 @@ function Zwe(e, t, n, r) {
|
|
|
48334
48334
|
if (!j)
|
|
48335
48335
|
throw new H(`missing role for choice ${g}`);
|
|
48336
48336
|
if (T) {
|
|
48337
|
-
const { arguments:
|
|
48338
|
-
if (
|
|
48337
|
+
const { arguments: z, name: F } = T;
|
|
48338
|
+
if (z == null)
|
|
48339
48339
|
throw new H(`missing function_call.arguments for choice ${g}`);
|
|
48340
48340
|
if (!F)
|
|
48341
48341
|
throw new H(`missing function_call.name for choice ${g}`);
|
|
@@ -48344,7 +48344,7 @@ function Zwe(e, t, n, r) {
|
|
|
48344
48344
|
message: {
|
|
48345
48345
|
...P,
|
|
48346
48346
|
content: b,
|
|
48347
|
-
function_call: { arguments:
|
|
48347
|
+
function_call: { arguments: z, name: F },
|
|
48348
48348
|
role: j,
|
|
48349
48349
|
refusal: (C = w.refusal) != null ? C : null
|
|
48350
48350
|
},
|
|
@@ -48364,27 +48364,27 @@ function Zwe(e, t, n, r) {
|
|
|
48364
48364
|
role: j,
|
|
48365
48365
|
content: b,
|
|
48366
48366
|
refusal: (q = w.refusal) != null ? q : null,
|
|
48367
|
-
tool_calls: Qj(S, wc, "tool-call", (
|
|
48367
|
+
tool_calls: Qj(S, wc, "tool-call", (z, F) => {
|
|
48368
48368
|
const V = f.toolCalls.get(F);
|
|
48369
48369
|
if (!V) {
|
|
48370
|
-
const Ce = bS(
|
|
48370
|
+
const Ce = bS(z);
|
|
48371
48371
|
if (Ce && xx(t, {
|
|
48372
48372
|
type: Ce.type,
|
|
48373
48373
|
function: { name: Ce.name }
|
|
48374
48374
|
}))
|
|
48375
48375
|
throw new H("Chat completion stream contains an unsafe structured JSON snapshot");
|
|
48376
48376
|
}
|
|
48377
|
-
if (V && V.tool !==
|
|
48377
|
+
if (V && V.tool !== z)
|
|
48378
48378
|
throw new H("Chat completion stream contains a changed tool call identity");
|
|
48379
48379
|
const K = V && new Proxy(V.function, {
|
|
48380
48380
|
get(Ce, Ee, me) {
|
|
48381
48381
|
return Ee === "arguments" ? V.arguments : Ee === "name" ? V.name : Reflect.get(Ce, Ee, me);
|
|
48382
48382
|
}
|
|
48383
|
-
}), U = V && K ? new Proxy(
|
|
48383
|
+
}), U = V && K ? new Proxy(z, {
|
|
48384
48384
|
get(Ce, Ee, me) {
|
|
48385
48385
|
return Ee === "type" ? V.type : Ee === "function" ? K : Reflect.get(Ce, Ee, me);
|
|
48386
48386
|
}
|
|
48387
|
-
}) :
|
|
48387
|
+
}) : z;
|
|
48388
48388
|
if (U.type == null)
|
|
48389
48389
|
throw new H(`missing choices[${g}].tool_calls[${F}].type`);
|
|
48390
48390
|
if (U.type === "custom") {
|
|
@@ -48534,7 +48534,7 @@ let qP = class extends pe {
|
|
|
48534
48534
|
* ```
|
|
48535
48535
|
*/
|
|
48536
48536
|
retrieve(t, n) {
|
|
48537
|
-
return this._client.get(
|
|
48537
|
+
return this._client.get(L`/chat/completions/${t}`, Ap(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
48538
48538
|
}
|
|
48539
48539
|
/**
|
|
48540
48540
|
* Modify a stored chat completion. Only Chat Completions that have been created
|
|
@@ -48550,7 +48550,7 @@ let qP = class extends pe {
|
|
|
48550
48550
|
* ```
|
|
48551
48551
|
*/
|
|
48552
48552
|
update(t, n, r) {
|
|
48553
|
-
return this._client.post(
|
|
48553
|
+
return this._client.post(L`/chat/completions/${t}`, Ap(r, (o) => ({
|
|
48554
48554
|
body: n,
|
|
48555
48555
|
...o,
|
|
48556
48556
|
__security: { bearerAuth: !0 }
|
|
@@ -48575,7 +48575,7 @@ let qP = class extends pe {
|
|
|
48575
48575
|
* ```
|
|
48576
48576
|
*/
|
|
48577
48577
|
delete(t, n) {
|
|
48578
|
-
return this._client.delete(
|
|
48578
|
+
return this._client.delete(L`/chat/completions/${t}`, Ap(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
48579
48579
|
}
|
|
48580
48580
|
parse(t, n) {
|
|
48581
48581
|
return Tre(t.tools), this._client.chat.completions.create(t, {
|
|
@@ -48667,7 +48667,7 @@ class KG extends pe {
|
|
|
48667
48667
|
* ```
|
|
48668
48668
|
*/
|
|
48669
48669
|
retrieve(t, n) {
|
|
48670
|
-
return this._client.get(
|
|
48670
|
+
return this._client.get(L`/organization/admin_api_keys/${t}`, g_(n, (r) => ({
|
|
48671
48671
|
...r,
|
|
48672
48672
|
__security: { adminAPIKeyAuth: !0 }
|
|
48673
48673
|
})));
|
|
@@ -48692,7 +48692,7 @@ class KG extends pe {
|
|
|
48692
48692
|
* ```
|
|
48693
48693
|
*/
|
|
48694
48694
|
delete(t, n) {
|
|
48695
|
-
return this._client.delete(
|
|
48695
|
+
return this._client.delete(L`/organization/admin_api_keys/${t}`, g_(n, (r) => ({
|
|
48696
48696
|
...r,
|
|
48697
48697
|
__security: { adminAPIKeyAuth: !0 }
|
|
48698
48698
|
})));
|
|
@@ -48815,7 +48815,7 @@ let WG = class extends pe {
|
|
|
48815
48815
|
}
|
|
48816
48816
|
retrieve(t, n = {}, r) {
|
|
48817
48817
|
const o = s1(n, ["include"], r);
|
|
48818
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.get(
|
|
48818
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.get(L`/organization/certificates/${t}`, iu(r, (s) => ({
|
|
48819
48819
|
query: n,
|
|
48820
48820
|
...s,
|
|
48821
48821
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -48833,7 +48833,7 @@ let WG = class extends pe {
|
|
|
48833
48833
|
* ```
|
|
48834
48834
|
*/
|
|
48835
48835
|
update(t, n, r) {
|
|
48836
|
-
return this._client.post(
|
|
48836
|
+
return this._client.post(L`/organization/certificates/${t}`, iu(r, (o) => ({
|
|
48837
48837
|
body: n,
|
|
48838
48838
|
...o,
|
|
48839
48839
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -48861,7 +48861,7 @@ let WG = class extends pe {
|
|
|
48861
48861
|
* ```
|
|
48862
48862
|
*/
|
|
48863
48863
|
delete(t, n) {
|
|
48864
|
-
return this._client.delete(
|
|
48864
|
+
return this._client.delete(L`/organization/certificates/${t}`, iu(n, (r) => ({
|
|
48865
48865
|
...r,
|
|
48866
48866
|
__security: { adminAPIKeyAuth: !0 }
|
|
48867
48867
|
})));
|
|
@@ -49023,7 +49023,7 @@ class GG extends pe {
|
|
|
49023
49023
|
* ```
|
|
49024
49024
|
*/
|
|
49025
49025
|
retrieve(t, n) {
|
|
49026
|
-
return this._client.get(
|
|
49026
|
+
return this._client.get(L`/organization/external_storage/${t}`, Tp(n, (r) => ({
|
|
49027
49027
|
...r,
|
|
49028
49028
|
__security: { adminAPIKeyAuth: !0 }
|
|
49029
49029
|
})));
|
|
@@ -49051,7 +49051,7 @@ class GG extends pe {
|
|
|
49051
49051
|
* ```
|
|
49052
49052
|
*/
|
|
49053
49053
|
delete(t, n) {
|
|
49054
|
-
return this._client.delete(
|
|
49054
|
+
return this._client.delete(L`/organization/external_storage/${t}`, Tp(n, (r) => ({
|
|
49055
49055
|
...r,
|
|
49056
49056
|
__security: { adminAPIKeyAuth: !0 }
|
|
49057
49057
|
})));
|
|
@@ -49068,7 +49068,7 @@ class GG extends pe {
|
|
|
49068
49068
|
* ```
|
|
49069
49069
|
*/
|
|
49070
49070
|
validate(t, n) {
|
|
49071
|
-
return this._client.post(
|
|
49071
|
+
return this._client.post(L`/organization/external_storage/${t}/validate`, Tp(n, (r) => ({
|
|
49072
49072
|
...r,
|
|
49073
49073
|
__security: { adminAPIKeyAuth: !0 }
|
|
49074
49074
|
})));
|
|
@@ -49143,7 +49143,7 @@ class ZG extends pe {
|
|
|
49143
49143
|
* ```
|
|
49144
49144
|
*/
|
|
49145
49145
|
retrieve(t, n) {
|
|
49146
|
-
return this._client.get(
|
|
49146
|
+
return this._client.get(L`/organization/invites/${t}`, y_(n, (r) => ({
|
|
49147
49147
|
...r,
|
|
49148
49148
|
__security: { adminAPIKeyAuth: !0 }
|
|
49149
49149
|
})));
|
|
@@ -49168,7 +49168,7 @@ class ZG extends pe {
|
|
|
49168
49168
|
* ```
|
|
49169
49169
|
*/
|
|
49170
49170
|
delete(t, n) {
|
|
49171
|
-
return this._client.delete(
|
|
49171
|
+
return this._client.delete(L`/organization/invites/${t}`, y_(n, (r) => ({
|
|
49172
49172
|
...r,
|
|
49173
49173
|
__security: { adminAPIKeyAuth: !0 }
|
|
49174
49174
|
})));
|
|
@@ -49240,7 +49240,7 @@ let JG = class extends pe {
|
|
|
49240
49240
|
* ```
|
|
49241
49241
|
*/
|
|
49242
49242
|
retrieve(t, n) {
|
|
49243
|
-
return this._client.get(
|
|
49243
|
+
return this._client.get(L`/organization/roles/${t}`, xp(n, (r) => ({
|
|
49244
49244
|
...r,
|
|
49245
49245
|
__security: { adminAPIKeyAuth: !0 }
|
|
49246
49246
|
})));
|
|
@@ -49256,7 +49256,7 @@ let JG = class extends pe {
|
|
|
49256
49256
|
* ```
|
|
49257
49257
|
*/
|
|
49258
49258
|
update(t, n, r) {
|
|
49259
|
-
return this._client.post(
|
|
49259
|
+
return this._client.post(L`/organization/roles/${t}`, xp(r, (o) => ({
|
|
49260
49260
|
body: n,
|
|
49261
49261
|
...o,
|
|
49262
49262
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -49281,7 +49281,7 @@ let JG = class extends pe {
|
|
|
49281
49281
|
* ```
|
|
49282
49282
|
*/
|
|
49283
49283
|
delete(t, n) {
|
|
49284
|
-
return this._client.delete(
|
|
49284
|
+
return this._client.delete(L`/organization/roles/${t}`, xp(n, (r) => ({
|
|
49285
49285
|
...r,
|
|
49286
49286
|
__security: { adminAPIKeyAuth: !0 }
|
|
49287
49287
|
})));
|
|
@@ -49360,7 +49360,7 @@ let VG = class extends pe {
|
|
|
49360
49360
|
* ```
|
|
49361
49361
|
*/
|
|
49362
49362
|
retrieve(t, n) {
|
|
49363
|
-
return this._client.get(
|
|
49363
|
+
return this._client.get(L`/organization/spend_alerts/${t}`, Op(n, (r) => ({
|
|
49364
49364
|
...r,
|
|
49365
49365
|
__security: { adminAPIKeyAuth: !0 }
|
|
49366
49366
|
})));
|
|
@@ -49386,7 +49386,7 @@ let VG = class extends pe {
|
|
|
49386
49386
|
* ```
|
|
49387
49387
|
*/
|
|
49388
49388
|
update(t, n, r) {
|
|
49389
|
-
return this._client.post(
|
|
49389
|
+
return this._client.post(L`/organization/spend_alerts/${t}`, Op(r, (o) => ({
|
|
49390
49390
|
body: n,
|
|
49391
49391
|
...o,
|
|
49392
49392
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -49412,7 +49412,7 @@ let VG = class extends pe {
|
|
|
49412
49412
|
* ```
|
|
49413
49413
|
*/
|
|
49414
49414
|
delete(t, n) {
|
|
49415
|
-
return this._client.delete(
|
|
49415
|
+
return this._client.delete(L`/organization/spend_alerts/${t}`, Op(n, (r) => ({
|
|
49416
49416
|
...r,
|
|
49417
49417
|
__security: { adminAPIKeyAuth: !0 }
|
|
49418
49418
|
})));
|
|
@@ -49726,7 +49726,7 @@ let XG = class extends pe {
|
|
|
49726
49726
|
* ```
|
|
49727
49727
|
*/
|
|
49728
49728
|
create(t, n, r) {
|
|
49729
|
-
return this._client.post(
|
|
49729
|
+
return this._client.post(L`/organization/groups/${t}/roles`, __(r, (o) => ({
|
|
49730
49730
|
body: n,
|
|
49731
49731
|
...o,
|
|
49732
49732
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -49746,14 +49746,14 @@ let XG = class extends pe {
|
|
|
49746
49746
|
*/
|
|
49747
49747
|
retrieve(t, n, r) {
|
|
49748
49748
|
const { group_id: o } = n;
|
|
49749
|
-
return this._client.get(
|
|
49749
|
+
return this._client.get(L`/organization/groups/${o}/roles/${t}`, __(r, (s) => ({
|
|
49750
49750
|
...s,
|
|
49751
49751
|
__security: { adminAPIKeyAuth: !0 }
|
|
49752
49752
|
})));
|
|
49753
49753
|
}
|
|
49754
49754
|
list(t, n = {}, r) {
|
|
49755
49755
|
const o = obe(n, ["after", "limit", "order"], r);
|
|
49756
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
49756
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/groups/${t}/roles`, Ci, __(r, (s) => ({
|
|
49757
49757
|
query: n,
|
|
49758
49758
|
...s,
|
|
49759
49759
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -49773,7 +49773,7 @@ let XG = class extends pe {
|
|
|
49773
49773
|
*/
|
|
49774
49774
|
delete(t, n, r) {
|
|
49775
49775
|
const { group_id: o } = n;
|
|
49776
|
-
return this._client.delete(
|
|
49776
|
+
return this._client.delete(L`/organization/groups/${o}/roles/${t}`, __(r, (s) => ({
|
|
49777
49777
|
...s,
|
|
49778
49778
|
__security: { adminAPIKeyAuth: !0 }
|
|
49779
49779
|
})));
|
|
@@ -49829,7 +49829,7 @@ let e3 = class extends pe {
|
|
|
49829
49829
|
* ```
|
|
49830
49830
|
*/
|
|
49831
49831
|
create(t, n, r) {
|
|
49832
|
-
return this._client.post(
|
|
49832
|
+
return this._client.post(L`/organization/groups/${t}/users`, w_(r, (o) => ({
|
|
49833
49833
|
body: n,
|
|
49834
49834
|
...o,
|
|
49835
49835
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -49849,14 +49849,14 @@ let e3 = class extends pe {
|
|
|
49849
49849
|
*/
|
|
49850
49850
|
retrieve(t, n, r) {
|
|
49851
49851
|
const { group_id: o } = n;
|
|
49852
|
-
return this._client.get(
|
|
49852
|
+
return this._client.get(L`/organization/groups/${o}/users/${t}`, w_(r, (s) => ({
|
|
49853
49853
|
...s,
|
|
49854
49854
|
__security: { adminAPIKeyAuth: !0 }
|
|
49855
49855
|
})));
|
|
49856
49856
|
}
|
|
49857
49857
|
list(t, n = {}, r) {
|
|
49858
49858
|
const o = sbe(n, ["after", "limit", "order"], r);
|
|
49859
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
49859
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/groups/${t}/users`, Ci, w_(r, (s) => ({
|
|
49860
49860
|
query: n,
|
|
49861
49861
|
...s,
|
|
49862
49862
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -49876,7 +49876,7 @@ let e3 = class extends pe {
|
|
|
49876
49876
|
*/
|
|
49877
49877
|
delete(t, n, r) {
|
|
49878
49878
|
const { group_id: o } = n;
|
|
49879
|
-
return this._client.delete(
|
|
49879
|
+
return this._client.delete(L`/organization/groups/${o}/users/${t}`, w_(r, (s) => ({
|
|
49880
49880
|
...s,
|
|
49881
49881
|
__security: { adminAPIKeyAuth: !0 }
|
|
49882
49882
|
})));
|
|
@@ -49951,7 +49951,7 @@ let pI = class extends pe {
|
|
|
49951
49951
|
* ```
|
|
49952
49952
|
*/
|
|
49953
49953
|
retrieve(t, n) {
|
|
49954
|
-
return this._client.get(
|
|
49954
|
+
return this._client.get(L`/organization/groups/${t}`, Rp(n, (r) => ({
|
|
49955
49955
|
...r,
|
|
49956
49956
|
__security: { adminAPIKeyAuth: !0 }
|
|
49957
49957
|
})));
|
|
@@ -49968,7 +49968,7 @@ let pI = class extends pe {
|
|
|
49968
49968
|
* ```
|
|
49969
49969
|
*/
|
|
49970
49970
|
update(t, n, r) {
|
|
49971
|
-
return this._client.post(
|
|
49971
|
+
return this._client.post(L`/organization/groups/${t}`, Rp(r, (o) => ({
|
|
49972
49972
|
body: n,
|
|
49973
49973
|
...o,
|
|
49974
49974
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -49993,7 +49993,7 @@ let pI = class extends pe {
|
|
|
49993
49993
|
* ```
|
|
49994
49994
|
*/
|
|
49995
49995
|
delete(t, n) {
|
|
49996
|
-
return this._client.delete(
|
|
49996
|
+
return this._client.delete(L`/organization/groups/${t}`, Rp(n, (r) => ({
|
|
49997
49997
|
...r,
|
|
49998
49998
|
__security: { adminAPIKeyAuth: !0 }
|
|
49999
49999
|
})));
|
|
@@ -50052,14 +50052,14 @@ let t3 = class extends pe {
|
|
|
50052
50052
|
*/
|
|
50053
50053
|
retrieve(t, n, r) {
|
|
50054
50054
|
const { project_id: o } = n;
|
|
50055
|
-
return this._client.get(
|
|
50055
|
+
return this._client.get(L`/organization/projects/${o}/api_keys/${t}`, OT(r, (s) => ({
|
|
50056
50056
|
...s,
|
|
50057
50057
|
__security: { adminAPIKeyAuth: !0 }
|
|
50058
50058
|
})));
|
|
50059
50059
|
}
|
|
50060
50060
|
list(t, n = {}, r) {
|
|
50061
50061
|
const o = abe(n, ["after", "limit", "owner_project_access"], r);
|
|
50062
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
50062
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/projects/${t}/api_keys`, er, OT(r, (s) => ({
|
|
50063
50063
|
query: n,
|
|
50064
50064
|
...s,
|
|
50065
50065
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50082,7 +50082,7 @@ let t3 = class extends pe {
|
|
|
50082
50082
|
*/
|
|
50083
50083
|
delete(t, n, r) {
|
|
50084
50084
|
const { project_id: o } = n;
|
|
50085
|
-
return this._client.delete(
|
|
50085
|
+
return this._client.delete(L`/organization/projects/${o}/api_keys/${t}`, OT(r, (s) => ({
|
|
50086
50086
|
...s,
|
|
50087
50087
|
__security: { adminAPIKeyAuth: !0 }
|
|
50088
50088
|
})));
|
|
@@ -50127,7 +50127,7 @@ function cbe(e, t, n) {
|
|
|
50127
50127
|
class n3 extends pe {
|
|
50128
50128
|
list(t, n = {}, r) {
|
|
50129
50129
|
const o = cbe(n, ["after", "limit", "order"], r);
|
|
50130
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
50130
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/projects/${t}/certificates`, er, RT(r, (s) => ({
|
|
50131
50131
|
query: n,
|
|
50132
50132
|
...s,
|
|
50133
50133
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50150,7 +50150,7 @@ class n3 extends pe {
|
|
|
50150
50150
|
* ```
|
|
50151
50151
|
*/
|
|
50152
50152
|
activate(t, n, r) {
|
|
50153
|
-
return this._client.getAPIList(
|
|
50153
|
+
return this._client.getAPIList(L`/organization/projects/${t}/certificates/activate`, Ma, RT(r, (o) => ({
|
|
50154
50154
|
body: n,
|
|
50155
50155
|
method: "post",
|
|
50156
50156
|
...o,
|
|
@@ -50173,7 +50173,7 @@ class n3 extends pe {
|
|
|
50173
50173
|
* ```
|
|
50174
50174
|
*/
|
|
50175
50175
|
deactivate(t, n, r) {
|
|
50176
|
-
return this._client.getAPIList(
|
|
50176
|
+
return this._client.getAPIList(L`/organization/projects/${t}/certificates/deactivate`, Ma, RT(r, (o) => ({
|
|
50177
50177
|
body: n,
|
|
50178
50178
|
method: "post",
|
|
50179
50179
|
...o,
|
|
@@ -50197,7 +50197,7 @@ class r3 extends pe {
|
|
|
50197
50197
|
* ```
|
|
50198
50198
|
*/
|
|
50199
50199
|
retrieve(t, n) {
|
|
50200
|
-
return this._client.get(
|
|
50200
|
+
return this._client.get(L`/organization/projects/${t}/data_retention`, g1(n, (r) => ({
|
|
50201
50201
|
...r,
|
|
50202
50202
|
__security: { adminAPIKeyAuth: !0 }
|
|
50203
50203
|
})));
|
|
@@ -50215,7 +50215,7 @@ class r3 extends pe {
|
|
|
50215
50215
|
* ```
|
|
50216
50216
|
*/
|
|
50217
50217
|
update(t, n, r) {
|
|
50218
|
-
return this._client.post(
|
|
50218
|
+
return this._client.post(L`/organization/projects/${t}/data_retention`, g1(r, (o) => ({
|
|
50219
50219
|
body: n,
|
|
50220
50220
|
...o,
|
|
50221
50221
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50238,7 +50238,7 @@ class o3 extends pe {
|
|
|
50238
50238
|
* ```
|
|
50239
50239
|
*/
|
|
50240
50240
|
retrieve(t, n) {
|
|
50241
|
-
return this._client.get(
|
|
50241
|
+
return this._client.get(L`/organization/projects/${t}/hosted_tool_permissions`, y1(n, (r) => ({
|
|
50242
50242
|
...r,
|
|
50243
50243
|
__security: { adminAPIKeyAuth: !0 }
|
|
50244
50244
|
})));
|
|
@@ -50255,7 +50255,7 @@ class o3 extends pe {
|
|
|
50255
50255
|
* ```
|
|
50256
50256
|
*/
|
|
50257
50257
|
update(t, n, r) {
|
|
50258
|
-
return this._client.post(
|
|
50258
|
+
return this._client.post(L`/organization/projects/${t}/hosted_tool_permissions`, y1(r, (o) => ({
|
|
50259
50259
|
body: n,
|
|
50260
50260
|
...o,
|
|
50261
50261
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50278,7 +50278,7 @@ class s3 extends pe {
|
|
|
50278
50278
|
* ```
|
|
50279
50279
|
*/
|
|
50280
50280
|
retrieve(t, n) {
|
|
50281
|
-
return this._client.get(
|
|
50281
|
+
return this._client.get(L`/organization/projects/${t}/model_permissions`, kT(n, (r) => ({
|
|
50282
50282
|
...r,
|
|
50283
50283
|
__security: { adminAPIKeyAuth: !0 }
|
|
50284
50284
|
})));
|
|
@@ -50296,7 +50296,7 @@ class s3 extends pe {
|
|
|
50296
50296
|
* ```
|
|
50297
50297
|
*/
|
|
50298
50298
|
update(t, n, r) {
|
|
50299
|
-
return this._client.post(
|
|
50299
|
+
return this._client.post(L`/organization/projects/${t}/model_permissions`, kT(r, (o) => ({
|
|
50300
50300
|
body: n,
|
|
50301
50301
|
...o,
|
|
50302
50302
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50314,7 +50314,7 @@ class s3 extends pe {
|
|
|
50314
50314
|
* ```
|
|
50315
50315
|
*/
|
|
50316
50316
|
delete(t, n) {
|
|
50317
|
-
return this._client.delete(
|
|
50317
|
+
return this._client.delete(L`/organization/projects/${t}/model_permissions`, kT(n, (r) => ({
|
|
50318
50318
|
...r,
|
|
50319
50319
|
__security: { adminAPIKeyAuth: !0 }
|
|
50320
50320
|
})));
|
|
@@ -50359,7 +50359,7 @@ function ube(e, t, n) {
|
|
|
50359
50359
|
class i3 extends pe {
|
|
50360
50360
|
listRateLimits(t, n = {}, r) {
|
|
50361
50361
|
const o = ube(n, ["after", "before", "limit"], r);
|
|
50362
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
50362
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/projects/${t}/rate_limits`, er, _1(r, (s) => ({
|
|
50363
50363
|
query: n,
|
|
50364
50364
|
...s,
|
|
50365
50365
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50379,7 +50379,7 @@ class i3 extends pe {
|
|
|
50379
50379
|
*/
|
|
50380
50380
|
updateRateLimit(t, n, r) {
|
|
50381
50381
|
const { project_id: o, ...s } = n;
|
|
50382
|
-
return this._client.post(
|
|
50382
|
+
return this._client.post(L`/organization/projects/${o}/rate_limits/${t}`, _1(r, (i) => ({
|
|
50383
50383
|
body: s,
|
|
50384
50384
|
...i,
|
|
50385
50385
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50436,7 +50436,7 @@ let a3 = class extends pe {
|
|
|
50436
50436
|
* ```
|
|
50437
50437
|
*/
|
|
50438
50438
|
create(t, n, r) {
|
|
50439
|
-
return this._client.post(
|
|
50439
|
+
return this._client.post(L`/projects/${t}/roles`, kp(r, (o) => ({
|
|
50440
50440
|
body: n,
|
|
50441
50441
|
...o,
|
|
50442
50442
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50456,7 +50456,7 @@ let a3 = class extends pe {
|
|
|
50456
50456
|
*/
|
|
50457
50457
|
retrieve(t, n, r) {
|
|
50458
50458
|
const { project_id: o } = n;
|
|
50459
|
-
return this._client.get(
|
|
50459
|
+
return this._client.get(L`/projects/${o}/roles/${t}`, kp(r, (s) => ({
|
|
50460
50460
|
...s,
|
|
50461
50461
|
__security: { adminAPIKeyAuth: !0 }
|
|
50462
50462
|
})));
|
|
@@ -50475,7 +50475,7 @@ let a3 = class extends pe {
|
|
|
50475
50475
|
*/
|
|
50476
50476
|
update(t, n, r) {
|
|
50477
50477
|
const { project_id: o, ...s } = n;
|
|
50478
|
-
return this._client.post(
|
|
50478
|
+
return this._client.post(L`/projects/${o}/roles/${t}`, kp(r, (i) => ({
|
|
50479
50479
|
body: s,
|
|
50480
50480
|
...i,
|
|
50481
50481
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50483,7 +50483,7 @@ let a3 = class extends pe {
|
|
|
50483
50483
|
}
|
|
50484
50484
|
list(t, n = {}, r) {
|
|
50485
50485
|
const o = lbe(n, ["after", "limit", "order"], r);
|
|
50486
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
50486
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/projects/${t}/roles`, Ci, kp(r, (s) => ({
|
|
50487
50487
|
query: n,
|
|
50488
50488
|
...s,
|
|
50489
50489
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50503,7 +50503,7 @@ let a3 = class extends pe {
|
|
|
50503
50503
|
*/
|
|
50504
50504
|
delete(t, n, r) {
|
|
50505
50505
|
const { project_id: o } = n;
|
|
50506
|
-
return this._client.delete(
|
|
50506
|
+
return this._client.delete(L`/projects/${o}/roles/${t}`, kp(r, (s) => ({
|
|
50507
50507
|
...s,
|
|
50508
50508
|
__security: { adminAPIKeyAuth: !0 }
|
|
50509
50509
|
})));
|
|
@@ -50567,7 +50567,7 @@ class c3 extends pe {
|
|
|
50567
50567
|
* ```
|
|
50568
50568
|
*/
|
|
50569
50569
|
create(t, n, r) {
|
|
50570
|
-
return this._client.post(
|
|
50570
|
+
return this._client.post(L`/organization/projects/${t}/spend_alerts`, Ep(r, (o) => ({
|
|
50571
50571
|
body: n,
|
|
50572
50572
|
...o,
|
|
50573
50573
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50587,7 +50587,7 @@ class c3 extends pe {
|
|
|
50587
50587
|
*/
|
|
50588
50588
|
retrieve(t, n, r) {
|
|
50589
50589
|
const { project_id: o } = n;
|
|
50590
|
-
return this._client.get(
|
|
50590
|
+
return this._client.get(L`/organization/projects/${o}/spend_alerts/${t}`, Ep(r, (s) => ({
|
|
50591
50591
|
...s,
|
|
50592
50592
|
__security: { adminAPIKeyAuth: !0 }
|
|
50593
50593
|
})));
|
|
@@ -50615,7 +50615,7 @@ class c3 extends pe {
|
|
|
50615
50615
|
*/
|
|
50616
50616
|
update(t, n, r) {
|
|
50617
50617
|
const { project_id: o, ...s } = n;
|
|
50618
|
-
return this._client.post(
|
|
50618
|
+
return this._client.post(L`/organization/projects/${o}/spend_alerts/${t}`, Ep(r, (i) => ({
|
|
50619
50619
|
body: s,
|
|
50620
50620
|
...i,
|
|
50621
50621
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50623,7 +50623,7 @@ class c3 extends pe {
|
|
|
50623
50623
|
}
|
|
50624
50624
|
list(t, n = {}, r) {
|
|
50625
50625
|
const o = dbe(n, ["after", "before", "limit", "order"], r);
|
|
50626
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
50626
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/projects/${t}/spend_alerts`, er, Ep(r, (s) => ({
|
|
50627
50627
|
query: n,
|
|
50628
50628
|
...s,
|
|
50629
50629
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50643,7 +50643,7 @@ class c3 extends pe {
|
|
|
50643
50643
|
*/
|
|
50644
50644
|
delete(t, n, r) {
|
|
50645
50645
|
const { project_id: o } = n;
|
|
50646
|
-
return this._client.delete(
|
|
50646
|
+
return this._client.delete(L`/organization/projects/${o}/spend_alerts/${t}`, Ep(r, (s) => ({
|
|
50647
50647
|
...s,
|
|
50648
50648
|
__security: { adminAPIKeyAuth: !0 }
|
|
50649
50649
|
})));
|
|
@@ -50665,7 +50665,7 @@ class u3 extends pe {
|
|
|
50665
50665
|
* ```
|
|
50666
50666
|
*/
|
|
50667
50667
|
retrieve(t, n) {
|
|
50668
|
-
return this._client.get(
|
|
50668
|
+
return this._client.get(L`/organization/projects/${t}/spend_limit`, ET(n, (r) => ({
|
|
50669
50669
|
...r,
|
|
50670
50670
|
__security: { adminAPIKeyAuth: !0 }
|
|
50671
50671
|
})));
|
|
@@ -50687,7 +50687,7 @@ class u3 extends pe {
|
|
|
50687
50687
|
* ```
|
|
50688
50688
|
*/
|
|
50689
50689
|
update(t, n, r) {
|
|
50690
|
-
return this._client.post(
|
|
50690
|
+
return this._client.post(L`/organization/projects/${t}/spend_limit`, ET(r, (o) => ({
|
|
50691
50691
|
body: n,
|
|
50692
50692
|
...o,
|
|
50693
50693
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50705,7 +50705,7 @@ class u3 extends pe {
|
|
|
50705
50705
|
* ```
|
|
50706
50706
|
*/
|
|
50707
50707
|
delete(t, n) {
|
|
50708
|
-
return this._client.delete(
|
|
50708
|
+
return this._client.delete(L`/organization/projects/${t}/spend_limit`, ET(n, (r) => ({
|
|
50709
50709
|
...r,
|
|
50710
50710
|
__security: { adminAPIKeyAuth: !0 }
|
|
50711
50711
|
})));
|
|
@@ -50729,7 +50729,7 @@ let l3 = class extends pe {
|
|
|
50729
50729
|
*/
|
|
50730
50730
|
create(t, n, r) {
|
|
50731
50731
|
const { project_id: o, ...s } = n;
|
|
50732
|
-
return this._client.post(
|
|
50732
|
+
return this._client.post(L`/projects/${o}/groups/${t}/roles`, b_(r, (i) => ({
|
|
50733
50733
|
body: s,
|
|
50734
50734
|
...i,
|
|
50735
50735
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50749,7 +50749,7 @@ let l3 = class extends pe {
|
|
|
50749
50749
|
*/
|
|
50750
50750
|
retrieve(t, n, r) {
|
|
50751
50751
|
const { project_id: o, group_id: s } = n;
|
|
50752
|
-
return this._client.get(
|
|
50752
|
+
return this._client.get(L`/projects/${o}/groups/${s}/roles/${t}`, b_(r, (i) => ({
|
|
50753
50753
|
...i,
|
|
50754
50754
|
__security: { adminAPIKeyAuth: !0 }
|
|
50755
50755
|
})));
|
|
@@ -50770,7 +50770,7 @@ let l3 = class extends pe {
|
|
|
50770
50770
|
*/
|
|
50771
50771
|
list(t, n, r) {
|
|
50772
50772
|
const { project_id: o, ...s } = n;
|
|
50773
|
-
return this._client.getAPIList(
|
|
50773
|
+
return this._client.getAPIList(L`/projects/${o}/groups/${t}/roles`, Ci, b_(r, (i) => ({
|
|
50774
50774
|
query: s,
|
|
50775
50775
|
...i,
|
|
50776
50776
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50790,7 +50790,7 @@ let l3 = class extends pe {
|
|
|
50790
50790
|
*/
|
|
50791
50791
|
delete(t, n, r) {
|
|
50792
50792
|
const { project_id: o, group_id: s } = n;
|
|
50793
|
-
return this._client.delete(
|
|
50793
|
+
return this._client.delete(L`/projects/${o}/groups/${s}/roles/${t}`, b_(r, (i) => ({
|
|
50794
50794
|
...i,
|
|
50795
50795
|
__security: { adminAPIKeyAuth: !0 }
|
|
50796
50796
|
})));
|
|
@@ -50849,7 +50849,7 @@ class HP extends pe {
|
|
|
50849
50849
|
* ```
|
|
50850
50850
|
*/
|
|
50851
50851
|
create(t, n, r) {
|
|
50852
|
-
return this._client.post(
|
|
50852
|
+
return this._client.post(L`/organization/projects/${t}/groups`, S_(r, (o) => ({
|
|
50853
50853
|
body: n,
|
|
50854
50854
|
...o,
|
|
50855
50855
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50869,7 +50869,7 @@ class HP extends pe {
|
|
|
50869
50869
|
*/
|
|
50870
50870
|
retrieve(t, n, r) {
|
|
50871
50871
|
const { project_id: o, ...s } = n;
|
|
50872
|
-
return this._client.get(
|
|
50872
|
+
return this._client.get(L`/organization/projects/${o}/groups/${t}`, S_(r, (i) => ({
|
|
50873
50873
|
query: s,
|
|
50874
50874
|
...i,
|
|
50875
50875
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50877,7 +50877,7 @@ class HP extends pe {
|
|
|
50877
50877
|
}
|
|
50878
50878
|
list(t, n = {}, r) {
|
|
50879
50879
|
const o = fbe(n, ["after", "limit", "order"], r);
|
|
50880
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
50880
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/projects/${t}/groups`, Ci, S_(r, (s) => ({
|
|
50881
50881
|
query: n,
|
|
50882
50882
|
...s,
|
|
50883
50883
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50897,7 +50897,7 @@ class HP extends pe {
|
|
|
50897
50897
|
*/
|
|
50898
50898
|
delete(t, n, r) {
|
|
50899
50899
|
const { project_id: o } = n;
|
|
50900
|
-
return this._client.delete(
|
|
50900
|
+
return this._client.delete(L`/organization/projects/${o}/groups/${t}`, S_(r, (s) => ({
|
|
50901
50901
|
...s,
|
|
50902
50902
|
__security: { adminAPIKeyAuth: !0 }
|
|
50903
50903
|
})));
|
|
@@ -50922,7 +50922,7 @@ class d3 extends pe {
|
|
|
50922
50922
|
*/
|
|
50923
50923
|
create(t, n, r) {
|
|
50924
50924
|
const { project_id: o, ...s } = n;
|
|
50925
|
-
return this._client.post(
|
|
50925
|
+
return this._client.post(L`/organization/projects/${o}/service_accounts/${t}/api_keys`, pbe(r, (i) => ({
|
|
50926
50926
|
body: s,
|
|
50927
50927
|
...i,
|
|
50928
50928
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -50983,7 +50983,7 @@ class GP extends pe {
|
|
|
50983
50983
|
* ```
|
|
50984
50984
|
*/
|
|
50985
50985
|
create(t, n, r) {
|
|
50986
|
-
return this._client.post(
|
|
50986
|
+
return this._client.post(L`/organization/projects/${t}/service_accounts`, Pp(r, (o) => ({
|
|
50987
50987
|
body: n,
|
|
50988
50988
|
...o,
|
|
50989
50989
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -51003,7 +51003,7 @@ class GP extends pe {
|
|
|
51003
51003
|
*/
|
|
51004
51004
|
retrieve(t, n, r) {
|
|
51005
51005
|
const { project_id: o } = n;
|
|
51006
|
-
return this._client.get(
|
|
51006
|
+
return this._client.get(L`/organization/projects/${o}/service_accounts/${t}`, Pp(r, (s) => ({
|
|
51007
51007
|
...s,
|
|
51008
51008
|
__security: { adminAPIKeyAuth: !0 }
|
|
51009
51009
|
})));
|
|
@@ -51022,7 +51022,7 @@ class GP extends pe {
|
|
|
51022
51022
|
*/
|
|
51023
51023
|
update(t, n, r) {
|
|
51024
51024
|
const { project_id: o, ...s } = n;
|
|
51025
|
-
return this._client.post(
|
|
51025
|
+
return this._client.post(L`/organization/projects/${o}/service_accounts/${t}`, Pp(r, (i) => ({
|
|
51026
51026
|
body: s,
|
|
51027
51027
|
...i,
|
|
51028
51028
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -51030,7 +51030,7 @@ class GP extends pe {
|
|
|
51030
51030
|
}
|
|
51031
51031
|
list(t, n = {}, r) {
|
|
51032
51032
|
const o = hbe(n, ["after", "limit"], r);
|
|
51033
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
51033
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/projects/${t}/service_accounts`, er, Pp(r, (s) => ({
|
|
51034
51034
|
query: n,
|
|
51035
51035
|
...s,
|
|
51036
51036
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -51053,7 +51053,7 @@ class GP extends pe {
|
|
|
51053
51053
|
*/
|
|
51054
51054
|
delete(t, n, r) {
|
|
51055
51055
|
const { project_id: o } = n;
|
|
51056
|
-
return this._client.delete(
|
|
51056
|
+
return this._client.delete(L`/organization/projects/${o}/service_accounts/${t}`, Pp(r, (s) => ({
|
|
51057
51057
|
...s,
|
|
51058
51058
|
__security: { adminAPIKeyAuth: !0 }
|
|
51059
51059
|
})));
|
|
@@ -51078,7 +51078,7 @@ let f3 = class extends pe {
|
|
|
51078
51078
|
*/
|
|
51079
51079
|
create(t, n, r) {
|
|
51080
51080
|
const { project_id: o, ...s } = n;
|
|
51081
|
-
return this._client.post(
|
|
51081
|
+
return this._client.post(L`/projects/${o}/users/${t}/roles`, v_(r, (i) => ({
|
|
51082
51082
|
body: s,
|
|
51083
51083
|
...i,
|
|
51084
51084
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -51098,7 +51098,7 @@ let f3 = class extends pe {
|
|
|
51098
51098
|
*/
|
|
51099
51099
|
retrieve(t, n, r) {
|
|
51100
51100
|
const { project_id: o, user_id: s } = n;
|
|
51101
|
-
return this._client.get(
|
|
51101
|
+
return this._client.get(L`/projects/${o}/users/${s}/roles/${t}`, v_(r, (i) => ({
|
|
51102
51102
|
...i,
|
|
51103
51103
|
__security: { adminAPIKeyAuth: !0 }
|
|
51104
51104
|
})));
|
|
@@ -51119,7 +51119,7 @@ let f3 = class extends pe {
|
|
|
51119
51119
|
*/
|
|
51120
51120
|
list(t, n, r) {
|
|
51121
51121
|
const { project_id: o, ...s } = n;
|
|
51122
|
-
return this._client.getAPIList(
|
|
51122
|
+
return this._client.getAPIList(L`/projects/${o}/users/${t}/roles`, Ci, v_(r, (i) => ({
|
|
51123
51123
|
query: s,
|
|
51124
51124
|
...i,
|
|
51125
51125
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -51139,7 +51139,7 @@ let f3 = class extends pe {
|
|
|
51139
51139
|
*/
|
|
51140
51140
|
delete(t, n, r) {
|
|
51141
51141
|
const { project_id: o, user_id: s } = n;
|
|
51142
|
-
return this._client.delete(
|
|
51142
|
+
return this._client.delete(L`/projects/${o}/users/${s}/roles/${t}`, v_(r, (i) => ({
|
|
51143
51143
|
...i,
|
|
51144
51144
|
__security: { adminAPIKeyAuth: !0 }
|
|
51145
51145
|
})));
|
|
@@ -51199,7 +51199,7 @@ let ZP = class extends pe {
|
|
|
51199
51199
|
* ```
|
|
51200
51200
|
*/
|
|
51201
51201
|
create(t, n, r) {
|
|
51202
|
-
return this._client.post(
|
|
51202
|
+
return this._client.post(L`/organization/projects/${t}/users`, Cp(r, (o) => ({
|
|
51203
51203
|
body: n,
|
|
51204
51204
|
...o,
|
|
51205
51205
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -51219,7 +51219,7 @@ let ZP = class extends pe {
|
|
|
51219
51219
|
*/
|
|
51220
51220
|
retrieve(t, n, r) {
|
|
51221
51221
|
const { project_id: o } = n;
|
|
51222
|
-
return this._client.get(
|
|
51222
|
+
return this._client.get(L`/organization/projects/${o}/users/${t}`, Cp(r, (s) => ({
|
|
51223
51223
|
...s,
|
|
51224
51224
|
__security: { adminAPIKeyAuth: !0 }
|
|
51225
51225
|
})));
|
|
@@ -51238,7 +51238,7 @@ let ZP = class extends pe {
|
|
|
51238
51238
|
*/
|
|
51239
51239
|
update(t, n, r) {
|
|
51240
51240
|
const { project_id: o, ...s } = n;
|
|
51241
|
-
return this._client.post(
|
|
51241
|
+
return this._client.post(L`/organization/projects/${o}/users/${t}`, Cp(r, (i) => ({
|
|
51242
51242
|
body: s,
|
|
51243
51243
|
...i,
|
|
51244
51244
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -51246,7 +51246,7 @@ let ZP = class extends pe {
|
|
|
51246
51246
|
}
|
|
51247
51247
|
list(t, n = {}, r) {
|
|
51248
51248
|
const o = mbe(n, ["after", "limit"], r);
|
|
51249
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
51249
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/projects/${t}/users`, er, Cp(r, (s) => ({
|
|
51250
51250
|
query: n,
|
|
51251
51251
|
...s,
|
|
51252
51252
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -51269,7 +51269,7 @@ let ZP = class extends pe {
|
|
|
51269
51269
|
*/
|
|
51270
51270
|
delete(t, n, r) {
|
|
51271
51271
|
const { project_id: o } = n;
|
|
51272
|
-
return this._client.delete(
|
|
51272
|
+
return this._client.delete(L`/organization/projects/${o}/users/${t}`, Cp(r, (s) => ({
|
|
51273
51273
|
...s,
|
|
51274
51274
|
__security: { adminAPIKeyAuth: !0 }
|
|
51275
51275
|
})));
|
|
@@ -51347,7 +51347,7 @@ class _o extends pe {
|
|
|
51347
51347
|
* ```
|
|
51348
51348
|
*/
|
|
51349
51349
|
retrieve(t, n) {
|
|
51350
|
-
return this._client.get(
|
|
51350
|
+
return this._client.get(L`/organization/projects/${t}`, Mp(n, (r) => ({
|
|
51351
51351
|
...r,
|
|
51352
51352
|
__security: { adminAPIKeyAuth: !0 }
|
|
51353
51353
|
})));
|
|
@@ -51364,7 +51364,7 @@ class _o extends pe {
|
|
|
51364
51364
|
* ```
|
|
51365
51365
|
*/
|
|
51366
51366
|
update(t, n, r) {
|
|
51367
|
-
return this._client.post(
|
|
51367
|
+
return this._client.post(L`/organization/projects/${t}`, Mp(r, (o) => ({
|
|
51368
51368
|
body: n,
|
|
51369
51369
|
...o,
|
|
51370
51370
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -51391,7 +51391,7 @@ class _o extends pe {
|
|
|
51391
51391
|
* ```
|
|
51392
51392
|
*/
|
|
51393
51393
|
archive(t, n) {
|
|
51394
|
-
return this._client.post(
|
|
51394
|
+
return this._client.post(L`/organization/projects/${t}/archive`, Mp(n, (r) => ({
|
|
51395
51395
|
...r,
|
|
51396
51396
|
__security: { adminAPIKeyAuth: !0 }
|
|
51397
51397
|
})));
|
|
@@ -51459,7 +51459,7 @@ class p3 extends pe {
|
|
|
51459
51459
|
* ```
|
|
51460
51460
|
*/
|
|
51461
51461
|
create(t, n, r) {
|
|
51462
|
-
return this._client.post(
|
|
51462
|
+
return this._client.post(L`/organization/users/${t}/roles`, I_(r, (o) => ({
|
|
51463
51463
|
body: n,
|
|
51464
51464
|
...o,
|
|
51465
51465
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -51479,14 +51479,14 @@ class p3 extends pe {
|
|
|
51479
51479
|
*/
|
|
51480
51480
|
retrieve(t, n, r) {
|
|
51481
51481
|
const { user_id: o } = n;
|
|
51482
|
-
return this._client.get(
|
|
51482
|
+
return this._client.get(L`/organization/users/${o}/roles/${t}`, I_(r, (s) => ({
|
|
51483
51483
|
...s,
|
|
51484
51484
|
__security: { adminAPIKeyAuth: !0 }
|
|
51485
51485
|
})));
|
|
51486
51486
|
}
|
|
51487
51487
|
list(t, n = {}, r) {
|
|
51488
51488
|
const o = ybe(n, ["after", "limit", "order"], r);
|
|
51489
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
51489
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/organization/users/${t}/roles`, Ci, I_(r, (s) => ({
|
|
51490
51490
|
query: n,
|
|
51491
51491
|
...s,
|
|
51492
51492
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -51506,7 +51506,7 @@ class p3 extends pe {
|
|
|
51506
51506
|
*/
|
|
51507
51507
|
delete(t, n, r) {
|
|
51508
51508
|
const { user_id: o } = n;
|
|
51509
|
-
return this._client.delete(
|
|
51509
|
+
return this._client.delete(L`/organization/users/${o}/roles/${t}`, I_(r, (s) => ({
|
|
51510
51510
|
...s,
|
|
51511
51511
|
__security: { adminAPIKeyAuth: !0 }
|
|
51512
51512
|
})));
|
|
@@ -51562,7 +51562,7 @@ class JP extends pe {
|
|
|
51562
51562
|
* ```
|
|
51563
51563
|
*/
|
|
51564
51564
|
retrieve(t, n) {
|
|
51565
|
-
return this._client.get(
|
|
51565
|
+
return this._client.get(L`/organization/users/${t}`, A_(n, (r) => ({
|
|
51566
51566
|
...r,
|
|
51567
51567
|
__security: { adminAPIKeyAuth: !0 }
|
|
51568
51568
|
})));
|
|
@@ -51577,7 +51577,7 @@ class JP extends pe {
|
|
|
51577
51577
|
* ```
|
|
51578
51578
|
*/
|
|
51579
51579
|
update(t, n, r) {
|
|
51580
|
-
return this._client.post(
|
|
51580
|
+
return this._client.post(L`/organization/users/${t}`, A_(r, (o) => ({
|
|
51581
51581
|
body: n,
|
|
51582
51582
|
...o,
|
|
51583
51583
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -51602,7 +51602,7 @@ class JP extends pe {
|
|
|
51602
51602
|
* ```
|
|
51603
51603
|
*/
|
|
51604
51604
|
delete(t, n) {
|
|
51605
|
-
return this._client.delete(
|
|
51605
|
+
return this._client.delete(L`/organization/users/${t}`, A_(n, (r) => ({
|
|
51606
51606
|
...r,
|
|
51607
51607
|
__security: { adminAPIKeyAuth: !0 }
|
|
51608
51608
|
})));
|
|
@@ -51748,7 +51748,7 @@ class y3 extends pe {
|
|
|
51748
51748
|
* Retrieves a batch.
|
|
51749
51749
|
*/
|
|
51750
51750
|
retrieve(t, n) {
|
|
51751
|
-
return this._client.get(
|
|
51751
|
+
return this._client.get(L`/batches/${t}`, T_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
51752
51752
|
}
|
|
51753
51753
|
list(t = {}, n) {
|
|
51754
51754
|
const r = vbe(t, ["after", "limit"], n);
|
|
@@ -51764,7 +51764,7 @@ class y3 extends pe {
|
|
|
51764
51764
|
* (if any) available in the output file.
|
|
51765
51765
|
*/
|
|
51766
51766
|
cancel(t, n) {
|
|
51767
|
-
return this._client.post(
|
|
51767
|
+
return this._client.post(L`/batches/${t}/cancel`, T_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
51768
51768
|
}
|
|
51769
51769
|
}
|
|
51770
51770
|
function $p(e, t) {
|
|
@@ -51823,7 +51823,7 @@ class _3 extends pe {
|
|
|
51823
51823
|
* @deprecated
|
|
51824
51824
|
*/
|
|
51825
51825
|
retrieve(t, n) {
|
|
51826
|
-
return this._client.get(
|
|
51826
|
+
return this._client.get(L`/assistants/${t}`, $p(n, (r) => ({
|
|
51827
51827
|
...r,
|
|
51828
51828
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, r == null ? void 0 : r.headers]),
|
|
51829
51829
|
__security: { bearerAuth: !0 }
|
|
@@ -51835,7 +51835,7 @@ class _3 extends pe {
|
|
|
51835
51835
|
* @deprecated
|
|
51836
51836
|
*/
|
|
51837
51837
|
update(t, n, r) {
|
|
51838
|
-
return this._client.post(
|
|
51838
|
+
return this._client.post(L`/assistants/${t}`, $p(r, (o) => ({
|
|
51839
51839
|
body: n,
|
|
51840
51840
|
...o,
|
|
51841
51841
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, o == null ? void 0 : o.headers]),
|
|
@@ -51857,7 +51857,7 @@ class _3 extends pe {
|
|
|
51857
51857
|
* @deprecated
|
|
51858
51858
|
*/
|
|
51859
51859
|
delete(t, n) {
|
|
51860
|
-
return this._client.delete(
|
|
51860
|
+
return this._client.delete(L`/assistants/${t}`, $p(n, (r) => ({
|
|
51861
51861
|
...r,
|
|
51862
51862
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, r == null ? void 0 : r.headers]),
|
|
51863
51863
|
__security: { bearerAuth: !0 }
|
|
@@ -51944,7 +51944,7 @@ let S3 = class extends pe {
|
|
|
51944
51944
|
* ```
|
|
51945
51945
|
*/
|
|
51946
51946
|
create(t, n, r) {
|
|
51947
|
-
return this._client.post(
|
|
51947
|
+
return this._client.post(L`/agents/environments/${t}/files`, E1(r, (o) => ({
|
|
51948
51948
|
body: n,
|
|
51949
51949
|
...o,
|
|
51950
51950
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, o == null ? void 0 : o.headers]),
|
|
@@ -51967,7 +51967,7 @@ let S3 = class extends pe {
|
|
|
51967
51967
|
* ```
|
|
51968
51968
|
*/
|
|
51969
51969
|
list(t, n = {}, r) {
|
|
51970
|
-
return this._client.getAPIList(
|
|
51970
|
+
return this._client.getAPIList(L`/agents/environments/${t}/files`, q4, E1(r, (o) => ({
|
|
51971
51971
|
query: n,
|
|
51972
51972
|
...o,
|
|
51973
51973
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, o == null ? void 0 : o.headers]),
|
|
@@ -52045,7 +52045,7 @@ class v3 extends pe {
|
|
|
52045
52045
|
* ```
|
|
52046
52046
|
*/
|
|
52047
52047
|
retrieve(t, n) {
|
|
52048
|
-
return this._client.get(
|
|
52048
|
+
return this._client.get(L`/agents/environments/templates/${t}`, Dp(n, (r) => ({
|
|
52049
52049
|
...r,
|
|
52050
52050
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, r == null ? void 0 : r.headers]),
|
|
52051
52051
|
__security: { bearerAuth: !0 }
|
|
@@ -52065,7 +52065,7 @@ class v3 extends pe {
|
|
|
52065
52065
|
* ```
|
|
52066
52066
|
*/
|
|
52067
52067
|
update(t, n = {}, r) {
|
|
52068
|
-
return this._client.post(
|
|
52068
|
+
return this._client.post(L`/agents/environments/templates/${t}`, Dp(r, (o) => ({
|
|
52069
52069
|
body: n,
|
|
52070
52070
|
...o,
|
|
52071
52071
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, o == null ? void 0 : o.headers]),
|
|
@@ -52095,7 +52095,7 @@ class v3 extends pe {
|
|
|
52095
52095
|
* ```
|
|
52096
52096
|
*/
|
|
52097
52097
|
delete(t, n) {
|
|
52098
|
-
return this._client.delete(
|
|
52098
|
+
return this._client.delete(L`/agents/environments/templates/${t}`, Dp(n, (r) => ({
|
|
52099
52099
|
...r,
|
|
52100
52100
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, r == null ? void 0 : r.headers]),
|
|
52101
52101
|
__security: { bearerAuth: !0 }
|
|
@@ -52123,7 +52123,7 @@ class mI extends pe {
|
|
|
52123
52123
|
* ```
|
|
52124
52124
|
*/
|
|
52125
52125
|
retrieve(t, n) {
|
|
52126
|
-
return this._client.get(
|
|
52126
|
+
return this._client.get(L`/agents/environments/${t}`, Tbe(n, (r) => ({
|
|
52127
52127
|
...r,
|
|
52128
52128
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, r == null ? void 0 : r.headers]),
|
|
52129
52129
|
__security: { bearerAuth: !0 }
|
|
@@ -52370,7 +52370,7 @@ class A3 extends pe {
|
|
|
52370
52370
|
*/
|
|
52371
52371
|
retrieve(t, n, r) {
|
|
52372
52372
|
const { session_id: o } = n;
|
|
52373
|
-
return this._client.get(
|
|
52373
|
+
return this._client.get(L`/agents/sessions/${o}/artifacts/${t}`, O_(r, (s) => ({
|
|
52374
52374
|
...s,
|
|
52375
52375
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
|
|
52376
52376
|
__security: { bearerAuth: !0 }
|
|
@@ -52378,7 +52378,7 @@ class A3 extends pe {
|
|
|
52378
52378
|
}
|
|
52379
52379
|
list(t, n = {}, r) {
|
|
52380
52380
|
const o = Cbe(n, ["after", "environment_id", "limit", "order"], r);
|
|
52381
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
52381
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/agents/sessions/${t}/artifacts`, dt, O_(r, (s) => ({
|
|
52382
52382
|
query: n,
|
|
52383
52383
|
...s,
|
|
52384
52384
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
|
|
@@ -52401,7 +52401,7 @@ class A3 extends pe {
|
|
|
52401
52401
|
*/
|
|
52402
52402
|
delete(t, n, r) {
|
|
52403
52403
|
const { session_id: o } = n;
|
|
52404
|
-
return this._client.delete(
|
|
52404
|
+
return this._client.delete(L`/agents/sessions/${o}/artifacts/${t}`, O_(r, (s) => ({
|
|
52405
52405
|
...s,
|
|
52406
52406
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
|
|
52407
52407
|
__security: { bearerAuth: !0 }
|
|
@@ -52426,7 +52426,7 @@ class A3 extends pe {
|
|
|
52426
52426
|
*/
|
|
52427
52427
|
content(t, n, r) {
|
|
52428
52428
|
const { session_id: o } = n;
|
|
52429
|
-
return this._client.get(
|
|
52429
|
+
return this._client.get(L`/agents/sessions/${o}/artifacts/${t}/content`, O_(r, (s) => ({
|
|
52430
52430
|
...s,
|
|
52431
52431
|
headers: se([
|
|
52432
52432
|
{ "OpenAI-Beta": "agents=v1", Accept: "application/octet-stream" },
|
|
@@ -52474,7 +52474,7 @@ class T3 extends pe {
|
|
|
52474
52474
|
*/
|
|
52475
52475
|
create(t, n, r) {
|
|
52476
52476
|
const { "Idempotency-Key": o, ...s } = n;
|
|
52477
|
-
return this._client.post(
|
|
52477
|
+
return this._client.post(L`/agents/sessions/${t}/events`, D1(r, (i) => ({
|
|
52478
52478
|
body: s,
|
|
52479
52479
|
...i,
|
|
52480
52480
|
headers: se([
|
|
@@ -52501,7 +52501,7 @@ class T3 extends pe {
|
|
|
52501
52501
|
* ```
|
|
52502
52502
|
*/
|
|
52503
52503
|
stream(t, n) {
|
|
52504
|
-
return this._client.get(
|
|
52504
|
+
return this._client.get(L`/agents/sessions/${t}/events`, D1(n, (r) => ({
|
|
52505
52505
|
...r,
|
|
52506
52506
|
headers: se([
|
|
52507
52507
|
{ "OpenAI-Beta": "agents=v1", Accept: "text/event-stream" },
|
|
@@ -52551,7 +52551,7 @@ function $be(e, t, n) {
|
|
|
52551
52551
|
let x3 = class extends pe {
|
|
52552
52552
|
list(t, n = {}, r) {
|
|
52553
52553
|
const o = $be(n, ["after", "limit", "order"], r);
|
|
52554
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
52554
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/agents/sessions/${t}/items`, dt, Mbe(r, (s) => ({
|
|
52555
52555
|
query: n,
|
|
52556
52556
|
...s,
|
|
52557
52557
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
|
|
@@ -52612,7 +52612,7 @@ let O3 = class extends pe {
|
|
|
52612
52612
|
*/
|
|
52613
52613
|
retrieve(t, n, r) {
|
|
52614
52614
|
const { session_id: o } = n;
|
|
52615
|
-
return this._client.get(
|
|
52615
|
+
return this._client.get(L`/agents/sessions/${o}/turns/${t}`, j1(r, (s) => ({
|
|
52616
52616
|
...s,
|
|
52617
52617
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
|
|
52618
52618
|
__security: { bearerAuth: !0 }
|
|
@@ -52620,7 +52620,7 @@ let O3 = class extends pe {
|
|
|
52620
52620
|
}
|
|
52621
52621
|
list(t, n = {}, r) {
|
|
52622
52622
|
const o = Dbe(n, ["after", "limit", "order"], r);
|
|
52623
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
52623
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/agents/sessions/${t}/turns`, dt, j1(r, (s) => ({
|
|
52624
52624
|
query: n,
|
|
52625
52625
|
...s,
|
|
52626
52626
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
|
|
@@ -52649,7 +52649,7 @@ let R3 = class extends pe {
|
|
|
52649
52649
|
*/
|
|
52650
52650
|
list(t, n, r) {
|
|
52651
52651
|
const { session_id: o, ...s } = n;
|
|
52652
|
-
return this._client.getAPIList(
|
|
52652
|
+
return this._client.getAPIList(L`/agents/sessions/${o}/subagents/${t}/items`, dt, Nbe(r, (i) => ({
|
|
52653
52653
|
query: s,
|
|
52654
52654
|
...i,
|
|
52655
52655
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, i == null ? void 0 : i.headers]),
|
|
@@ -52678,7 +52678,7 @@ let k3 = class extends pe {
|
|
|
52678
52678
|
*/
|
|
52679
52679
|
list(t, n, r) {
|
|
52680
52680
|
const { session_id: o, subagent_id: s, ...i } = n;
|
|
52681
|
-
return this._client.getAPIList(
|
|
52681
|
+
return this._client.getAPIList(L`/agents/sessions/${o}/subagents/${s}/turns/${t}/items`, dt, jbe(r, (a) => ({
|
|
52682
52682
|
query: i,
|
|
52683
52683
|
...a,
|
|
52684
52684
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, a == null ? void 0 : a.headers]),
|
|
@@ -52711,7 +52711,7 @@ class YP extends pe {
|
|
|
52711
52711
|
*/
|
|
52712
52712
|
retrieve(t, n, r) {
|
|
52713
52713
|
const { session_id: o, subagent_id: s } = n;
|
|
52714
|
-
return this._client.get(
|
|
52714
|
+
return this._client.get(L`/agents/sessions/${o}/subagents/${s}/turns/${t}`, z1(r, (i) => ({
|
|
52715
52715
|
...i,
|
|
52716
52716
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, i == null ? void 0 : i.headers]),
|
|
52717
52717
|
__security: { bearerAuth: !0 }
|
|
@@ -52734,7 +52734,7 @@ class YP extends pe {
|
|
|
52734
52734
|
*/
|
|
52735
52735
|
list(t, n, r) {
|
|
52736
52736
|
const { session_id: o, ...s } = n;
|
|
52737
|
-
return this._client.getAPIList(
|
|
52737
|
+
return this._client.getAPIList(L`/agents/sessions/${o}/subagents/${t}/turns`, dt, z1(r, (i) => ({
|
|
52738
52738
|
query: s,
|
|
52739
52739
|
...i,
|
|
52740
52740
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, i == null ? void 0 : i.headers]),
|
|
@@ -52798,7 +52798,7 @@ class gI extends pe {
|
|
|
52798
52798
|
*/
|
|
52799
52799
|
retrieve(t, n, r) {
|
|
52800
52800
|
const { session_id: o } = n;
|
|
52801
|
-
return this._client.get(
|
|
52801
|
+
return this._client.get(L`/agents/sessions/${o}/subagents/${t}`, L1(r, (s) => ({
|
|
52802
52802
|
...s,
|
|
52803
52803
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
|
|
52804
52804
|
__security: { bearerAuth: !0 }
|
|
@@ -52806,7 +52806,7 @@ class gI extends pe {
|
|
|
52806
52806
|
}
|
|
52807
52807
|
list(t, n = {}, r) {
|
|
52808
52808
|
const o = Fbe(n, ["after", "limit", "order"], r);
|
|
52809
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
52809
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/agents/sessions/${t}/subagents`, dt, L1(r, (s) => ({
|
|
52810
52810
|
query: n,
|
|
52811
52811
|
...s,
|
|
52812
52812
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
|
|
@@ -52883,7 +52883,7 @@ let Ul = class extends pe {
|
|
|
52883
52883
|
* ```
|
|
52884
52884
|
*/
|
|
52885
52885
|
retrieve(t, n) {
|
|
52886
|
-
return this._client.get(
|
|
52886
|
+
return this._client.get(L`/agents/sessions/${t}`, Np(n, (r) => ({
|
|
52887
52887
|
...r,
|
|
52888
52888
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, r == null ? void 0 : r.headers]),
|
|
52889
52889
|
__security: { bearerAuth: !0 }
|
|
@@ -52901,7 +52901,7 @@ let Ul = class extends pe {
|
|
|
52901
52901
|
* ```
|
|
52902
52902
|
*/
|
|
52903
52903
|
update(t, n = {}, r) {
|
|
52904
|
-
return this._client.post(
|
|
52904
|
+
return this._client.post(L`/agents/sessions/${t}`, Np(r, (o) => ({
|
|
52905
52905
|
body: n,
|
|
52906
52906
|
...o,
|
|
52907
52907
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, o == null ? void 0 : o.headers]),
|
|
@@ -52931,7 +52931,7 @@ let Ul = class extends pe {
|
|
|
52931
52931
|
* ```
|
|
52932
52932
|
*/
|
|
52933
52933
|
delete(t, n) {
|
|
52934
|
-
return this._client.delete(
|
|
52934
|
+
return this._client.delete(L`/agents/sessions/${t}`, Np(n, (r) => ({
|
|
52935
52935
|
...r,
|
|
52936
52936
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, r == null ? void 0 : r.headers]),
|
|
52937
52937
|
__security: { bearerAuth: !0 }
|
|
@@ -53002,7 +53002,7 @@ class E3 extends pe {
|
|
|
53002
53002
|
* ```
|
|
53003
53003
|
*/
|
|
53004
53004
|
create(t, n, r) {
|
|
53005
|
-
return this._client.post(
|
|
53005
|
+
return this._client.post(L`/vaults/${t}/credentials`, jp(r, (o) => ({
|
|
53006
53006
|
body: n,
|
|
53007
53007
|
...o,
|
|
53008
53008
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, o == null ? void 0 : o.headers]),
|
|
@@ -53024,7 +53024,7 @@ class E3 extends pe {
|
|
|
53024
53024
|
*/
|
|
53025
53025
|
retrieve(t, n, r) {
|
|
53026
53026
|
const { vault_id: o } = n;
|
|
53027
|
-
return this._client.get(
|
|
53027
|
+
return this._client.get(L`/vaults/${o}/credentials/${t}`, jp(r, (s) => ({
|
|
53028
53028
|
...s,
|
|
53029
53029
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
|
|
53030
53030
|
__security: { bearerAuth: !0 }
|
|
@@ -53045,7 +53045,7 @@ class E3 extends pe {
|
|
|
53045
53045
|
*/
|
|
53046
53046
|
update(t, n, r) {
|
|
53047
53047
|
const { vault_id: o, ...s } = n;
|
|
53048
|
-
return this._client.post(
|
|
53048
|
+
return this._client.post(L`/vaults/${o}/credentials/${t}`, jp(r, (i) => ({
|
|
53049
53049
|
body: s,
|
|
53050
53050
|
...i,
|
|
53051
53051
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, i == null ? void 0 : i.headers]),
|
|
@@ -53054,7 +53054,7 @@ class E3 extends pe {
|
|
|
53054
53054
|
}
|
|
53055
53055
|
list(t, n = {}, r) {
|
|
53056
53056
|
const o = Lbe(n, ["after", "limit", "order", "status"], r);
|
|
53057
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
53057
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/vaults/${t}/credentials`, dt, jp(r, (s) => ({
|
|
53058
53058
|
query: n,
|
|
53059
53059
|
...s,
|
|
53060
53060
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
|
|
@@ -53076,7 +53076,7 @@ class E3 extends pe {
|
|
|
53076
53076
|
*/
|
|
53077
53077
|
delete(t, n, r) {
|
|
53078
53078
|
const { vault_id: o } = n;
|
|
53079
|
-
return this._client.delete(
|
|
53079
|
+
return this._client.delete(L`/vaults/${o}/credentials/${t}`, jp(r, (s) => ({
|
|
53080
53080
|
...s,
|
|
53081
53081
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, s == null ? void 0 : s.headers]),
|
|
53082
53082
|
__security: { bearerAuth: !0 }
|
|
@@ -53152,7 +53152,7 @@ class QP extends pe {
|
|
|
53152
53152
|
* ```
|
|
53153
53153
|
*/
|
|
53154
53154
|
retrieve(t, n) {
|
|
53155
|
-
return this._client.get(
|
|
53155
|
+
return this._client.get(L`/vaults/${t}`, R_(n, (r) => ({
|
|
53156
53156
|
...r,
|
|
53157
53157
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, r == null ? void 0 : r.headers]),
|
|
53158
53158
|
__security: { bearerAuth: !0 }
|
|
@@ -53179,7 +53179,7 @@ class QP extends pe {
|
|
|
53179
53179
|
* ```
|
|
53180
53180
|
*/
|
|
53181
53181
|
delete(t, n) {
|
|
53182
|
-
return this._client.delete(
|
|
53182
|
+
return this._client.delete(L`/vaults/${t}`, R_(n, (r) => ({
|
|
53183
53183
|
...r,
|
|
53184
53184
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, r == null ? void 0 : r.headers]),
|
|
53185
53185
|
__security: { bearerAuth: !0 }
|
|
@@ -53256,7 +53256,7 @@ class dy extends pe {
|
|
|
53256
53256
|
* ```
|
|
53257
53257
|
*/
|
|
53258
53258
|
retrieve(t, n) {
|
|
53259
|
-
return this._client.get(
|
|
53259
|
+
return this._client.get(L`/agents/${t}`, Fp(n, (r) => ({
|
|
53260
53260
|
...r,
|
|
53261
53261
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, r == null ? void 0 : r.headers]),
|
|
53262
53262
|
__security: { bearerAuth: !0 }
|
|
@@ -53272,7 +53272,7 @@ class dy extends pe {
|
|
|
53272
53272
|
* ```
|
|
53273
53273
|
*/
|
|
53274
53274
|
update(t, n = {}, r) {
|
|
53275
|
-
return this._client.post(
|
|
53275
|
+
return this._client.post(L`/agents/${t}`, Fp(r, (o) => ({
|
|
53276
53276
|
body: n,
|
|
53277
53277
|
...o,
|
|
53278
53278
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, o == null ? void 0 : o.headers]),
|
|
@@ -53300,7 +53300,7 @@ class dy extends pe {
|
|
|
53300
53300
|
* ```
|
|
53301
53301
|
*/
|
|
53302
53302
|
delete(t, n) {
|
|
53303
|
-
return this._client.delete(
|
|
53303
|
+
return this._client.delete(L`/agents/${t}`, Fp(n, (r) => ({
|
|
53304
53304
|
...r,
|
|
53305
53305
|
headers: se([{ "OpenAI-Beta": "agents=v1" }, r == null ? void 0 : r.headers]),
|
|
53306
53306
|
__security: { bearerAuth: !0 }
|
|
@@ -53346,7 +53346,7 @@ let P3 = class extends pe {
|
|
|
53346
53346
|
* ```
|
|
53347
53347
|
*/
|
|
53348
53348
|
cancel(t, n) {
|
|
53349
|
-
return this._client.post(
|
|
53349
|
+
return this._client.post(L`/chatkit/sessions/${t}/cancel`, H1(n, (r) => ({
|
|
53350
53350
|
...r,
|
|
53351
53351
|
headers: se([{ "OpenAI-Beta": "chatkit_beta=v1" }, r == null ? void 0 : r.headers]),
|
|
53352
53352
|
__security: { bearerAuth: !0 }
|
|
@@ -53400,7 +53400,7 @@ let C3 = class extends pe {
|
|
|
53400
53400
|
* ```
|
|
53401
53401
|
*/
|
|
53402
53402
|
retrieve(t, n) {
|
|
53403
|
-
return this._client.get(
|
|
53403
|
+
return this._client.get(L`/chatkit/threads/${t}`, k_(n, (r) => ({
|
|
53404
53404
|
...r,
|
|
53405
53405
|
headers: se([{ "OpenAI-Beta": "chatkit_beta=v1" }, r == null ? void 0 : r.headers]),
|
|
53406
53406
|
__security: { bearerAuth: !0 }
|
|
@@ -53426,7 +53426,7 @@ let C3 = class extends pe {
|
|
|
53426
53426
|
* ```
|
|
53427
53427
|
*/
|
|
53428
53428
|
delete(t, n) {
|
|
53429
|
-
return this._client.delete(
|
|
53429
|
+
return this._client.delete(L`/chatkit/threads/${t}`, k_(n, (r) => ({
|
|
53430
53430
|
...r,
|
|
53431
53431
|
headers: se([{ "OpenAI-Beta": "chatkit_beta=v1" }, r == null ? void 0 : r.headers]),
|
|
53432
53432
|
__security: { bearerAuth: !0 }
|
|
@@ -53434,7 +53434,7 @@ let C3 = class extends pe {
|
|
|
53434
53434
|
}
|
|
53435
53435
|
listItems(t, n = {}, r) {
|
|
53436
53436
|
const o = Z1(n, ["after", "before", "limit", "order"], r);
|
|
53437
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
53437
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/chatkit/threads/${t}/items`, er, k_(r, (s) => ({
|
|
53438
53438
|
query: n,
|
|
53439
53439
|
...s,
|
|
53440
53440
|
headers: se([{ "OpenAI-Beta": "chatkit_beta=v1" }, s == null ? void 0 : s.headers]),
|
|
@@ -53490,7 +53490,7 @@ let M3 = class extends pe {
|
|
|
53490
53490
|
const o = qbe(n, ["after", "betas", "include", "limit", "order"], r);
|
|
53491
53491
|
o !== void 0 && (r = o, n = {}), n = n;
|
|
53492
53492
|
const { betas: s, ...i } = n != null ? n : {};
|
|
53493
|
-
return this._client.getAPIList(
|
|
53493
|
+
return this._client.getAPIList(L`/responses/${t}/input_items?beta=true`, dt, Kbe(r, (a) => ({
|
|
53494
53494
|
query: i,
|
|
53495
53495
|
...a,
|
|
53496
53496
|
headers: se([
|
|
@@ -53590,7 +53590,7 @@ let _I = class extends pe {
|
|
|
53590
53590
|
const o = Hbe(n, ["betas", "include", "include_obfuscation", "starting_after", "stream"], r);
|
|
53591
53591
|
o !== void 0 && (r = o, n = {}), n = n;
|
|
53592
53592
|
const { betas: s, ...i } = n != null ? n : {};
|
|
53593
|
-
return this._client.get(
|
|
53593
|
+
return this._client.get(L`/responses/${t}?beta=true`, zp(r, (a) => {
|
|
53594
53594
|
var c;
|
|
53595
53595
|
return {
|
|
53596
53596
|
query: i,
|
|
@@ -53616,7 +53616,7 @@ let _I = class extends pe {
|
|
|
53616
53616
|
*/
|
|
53617
53617
|
delete(t, n = {}, r) {
|
|
53618
53618
|
const { betas: o } = n != null ? n : {};
|
|
53619
|
-
return this._client.delete(
|
|
53619
|
+
return this._client.delete(L`/responses/${t}?beta=true`, zp(r, (s) => ({
|
|
53620
53620
|
...s,
|
|
53621
53621
|
headers: se([
|
|
53622
53622
|
{
|
|
@@ -53642,7 +53642,7 @@ let _I = class extends pe {
|
|
|
53642
53642
|
*/
|
|
53643
53643
|
cancel(t, n = {}, r) {
|
|
53644
53644
|
const { betas: o } = n != null ? n : {};
|
|
53645
|
-
return this._client.post(
|
|
53645
|
+
return this._client.post(L`/responses/${t}/cancel?beta=true`, zp(r, (s) => ({
|
|
53646
53646
|
...s,
|
|
53647
53647
|
headers: se([
|
|
53648
53648
|
{ ...(o == null ? void 0 : o.toString()) != null ? { "openai-beta": o == null ? void 0 : o.toString() } : void 0 },
|
|
@@ -53725,7 +53725,7 @@ class D3 extends pe {
|
|
|
53725
53725
|
* @deprecated The Assistants API is deprecated in favor of the Responses API
|
|
53726
53726
|
*/
|
|
53727
53727
|
create(t, n, r) {
|
|
53728
|
-
return this._client.post(
|
|
53728
|
+
return this._client.post(L`/threads/${t}/messages`, Lp(r, (o) => ({
|
|
53729
53729
|
body: n,
|
|
53730
53730
|
...o,
|
|
53731
53731
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, o == null ? void 0 : o.headers]),
|
|
@@ -53739,7 +53739,7 @@ class D3 extends pe {
|
|
|
53739
53739
|
*/
|
|
53740
53740
|
retrieve(t, n, r) {
|
|
53741
53741
|
const { thread_id: o } = n;
|
|
53742
|
-
return this._client.get(
|
|
53742
|
+
return this._client.get(L`/threads/${o}/messages/${t}`, Lp(r, (s) => ({
|
|
53743
53743
|
...s,
|
|
53744
53744
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
|
|
53745
53745
|
__security: { bearerAuth: !0 }
|
|
@@ -53752,7 +53752,7 @@ class D3 extends pe {
|
|
|
53752
53752
|
*/
|
|
53753
53753
|
update(t, n, r) {
|
|
53754
53754
|
const { thread_id: o, ...s } = n;
|
|
53755
|
-
return this._client.post(
|
|
53755
|
+
return this._client.post(L`/threads/${o}/messages/${t}`, Lp(r, (i) => ({
|
|
53756
53756
|
body: s,
|
|
53757
53757
|
...i,
|
|
53758
53758
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, i == null ? void 0 : i.headers]),
|
|
@@ -53761,7 +53761,7 @@ class D3 extends pe {
|
|
|
53761
53761
|
}
|
|
53762
53762
|
list(t, n = {}, r) {
|
|
53763
53763
|
const o = Gbe(n, ["after", "before", "limit", "order", "run_id"], r);
|
|
53764
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
53764
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/threads/${t}/messages`, dt, Lp(r, (s) => ({
|
|
53765
53765
|
query: n,
|
|
53766
53766
|
...s,
|
|
53767
53767
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
|
|
@@ -53775,7 +53775,7 @@ class D3 extends pe {
|
|
|
53775
53775
|
*/
|
|
53776
53776
|
delete(t, n, r) {
|
|
53777
53777
|
const { thread_id: o } = n;
|
|
53778
|
-
return this._client.delete(
|
|
53778
|
+
return this._client.delete(L`/threads/${o}/messages/${t}`, Lp(r, (s) => ({
|
|
53779
53779
|
...s,
|
|
53780
53780
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
|
|
53781
53781
|
__security: { bearerAuth: !0 }
|
|
@@ -53793,7 +53793,7 @@ class N3 extends pe {
|
|
|
53793
53793
|
*/
|
|
53794
53794
|
retrieve(t, n, r) {
|
|
53795
53795
|
const { thread_id: o, run_id: s, ...i } = n;
|
|
53796
|
-
return this._client.get(
|
|
53796
|
+
return this._client.get(L`/threads/${o}/runs/${s}/steps/${t}`, Q1(r, (a) => ({
|
|
53797
53797
|
query: i,
|
|
53798
53798
|
...a,
|
|
53799
53799
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, a == null ? void 0 : a.headers]),
|
|
@@ -53807,7 +53807,7 @@ class N3 extends pe {
|
|
|
53807
53807
|
*/
|
|
53808
53808
|
list(t, n, r) {
|
|
53809
53809
|
const { thread_id: o, ...s } = n;
|
|
53810
|
-
return this._client.getAPIList(
|
|
53810
|
+
return this._client.getAPIList(L`/threads/${o}/runs/${t}/steps`, dt, Q1(r, (i) => ({
|
|
53811
53811
|
query: s,
|
|
53812
53812
|
...i,
|
|
53813
53813
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, i == null ? void 0 : i.headers]),
|
|
@@ -54601,7 +54601,7 @@ let tC = class extends pe {
|
|
|
54601
54601
|
}
|
|
54602
54602
|
create(t, n, r) {
|
|
54603
54603
|
const { include: o, ...s } = n;
|
|
54604
|
-
return this._client.post(
|
|
54604
|
+
return this._client.post(L`/threads/${t}/runs`, nd(r, (i) => {
|
|
54605
54605
|
var a;
|
|
54606
54606
|
return {
|
|
54607
54607
|
query: { include: o },
|
|
@@ -54621,7 +54621,7 @@ let tC = class extends pe {
|
|
|
54621
54621
|
*/
|
|
54622
54622
|
retrieve(t, n, r) {
|
|
54623
54623
|
const { thread_id: o } = n;
|
|
54624
|
-
return this._client.get(
|
|
54624
|
+
return this._client.get(L`/threads/${o}/runs/${t}`, nd(r, (s) => ({
|
|
54625
54625
|
...s,
|
|
54626
54626
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
|
|
54627
54627
|
__security: { bearerAuth: !0 }
|
|
@@ -54634,7 +54634,7 @@ let tC = class extends pe {
|
|
|
54634
54634
|
*/
|
|
54635
54635
|
update(t, n, r) {
|
|
54636
54636
|
const { thread_id: o, ...s } = n;
|
|
54637
|
-
return this._client.post(
|
|
54637
|
+
return this._client.post(L`/threads/${o}/runs/${t}`, nd(r, (i) => ({
|
|
54638
54638
|
body: s,
|
|
54639
54639
|
...i,
|
|
54640
54640
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, i == null ? void 0 : i.headers]),
|
|
@@ -54643,7 +54643,7 @@ let tC = class extends pe {
|
|
|
54643
54643
|
}
|
|
54644
54644
|
list(t, n = {}, r) {
|
|
54645
54645
|
const o = sSe(n, ["after", "before", "limit", "order"], r);
|
|
54646
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
54646
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/threads/${t}/runs`, dt, nd(r, (s) => ({
|
|
54647
54647
|
query: n,
|
|
54648
54648
|
...s,
|
|
54649
54649
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
|
|
@@ -54657,7 +54657,7 @@ let tC = class extends pe {
|
|
|
54657
54657
|
*/
|
|
54658
54658
|
cancel(t, n, r) {
|
|
54659
54659
|
const { thread_id: o } = n;
|
|
54660
|
-
return this._client.post(
|
|
54660
|
+
return this._client.post(L`/threads/${o}/runs/${t}/cancel`, nd(r, (s) => ({
|
|
54661
54661
|
...s,
|
|
54662
54662
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
|
|
54663
54663
|
__security: { bearerAuth: !0 }
|
|
@@ -54696,7 +54696,7 @@ let tC = class extends pe {
|
|
|
54696
54696
|
}
|
|
54697
54697
|
submitToolOutputs(t, n, r) {
|
|
54698
54698
|
const { thread_id: o, ...s } = n;
|
|
54699
|
-
return this._client.post(
|
|
54699
|
+
return this._client.post(L`/threads/${o}/runs/${t}/submit_tool_outputs`, nd(r, (i) => {
|
|
54700
54700
|
var a;
|
|
54701
54701
|
return {
|
|
54702
54702
|
body: s,
|
|
@@ -54753,7 +54753,7 @@ class bI extends pe {
|
|
|
54753
54753
|
* @deprecated The Assistants API is deprecated in favor of the Responses API
|
|
54754
54754
|
*/
|
|
54755
54755
|
retrieve(t, n) {
|
|
54756
|
-
return this._client.get(
|
|
54756
|
+
return this._client.get(L`/threads/${t}`, Up(n, (r) => ({
|
|
54757
54757
|
...r,
|
|
54758
54758
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, r == null ? void 0 : r.headers]),
|
|
54759
54759
|
__security: { bearerAuth: !0 }
|
|
@@ -54765,7 +54765,7 @@ class bI extends pe {
|
|
|
54765
54765
|
* @deprecated The Assistants API is deprecated in favor of the Responses API
|
|
54766
54766
|
*/
|
|
54767
54767
|
update(t, n, r) {
|
|
54768
|
-
return this._client.post(
|
|
54768
|
+
return this._client.post(L`/threads/${t}`, Up(r, (o) => ({
|
|
54769
54769
|
body: n,
|
|
54770
54770
|
...o,
|
|
54771
54771
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, o == null ? void 0 : o.headers]),
|
|
@@ -54778,7 +54778,7 @@ class bI extends pe {
|
|
|
54778
54778
|
* @deprecated The Assistants API is deprecated in favor of the Responses API
|
|
54779
54779
|
*/
|
|
54780
54780
|
delete(t, n) {
|
|
54781
|
-
return this._client.delete(
|
|
54781
|
+
return this._client.delete(L`/threads/${t}`, Up(n, (r) => ({
|
|
54782
54782
|
...r,
|
|
54783
54783
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, r == null ? void 0 : r.headers]),
|
|
54784
54784
|
__security: { bearerAuth: !0 }
|
|
@@ -54851,7 +54851,7 @@ let q3 = class extends pe {
|
|
|
54851
54851
|
*/
|
|
54852
54852
|
retrieve(t, n, r) {
|
|
54853
54853
|
const { container_id: o } = n;
|
|
54854
|
-
return this._client.get(
|
|
54854
|
+
return this._client.get(L`/containers/${o}/files/${t}/content`, aSe(r, (s) => ({
|
|
54855
54855
|
...s,
|
|
54856
54856
|
headers: se([{ Accept: "application/binary" }, s == null ? void 0 : s.headers]),
|
|
54857
54857
|
__security: { bearerAuth: !0 },
|
|
@@ -54906,18 +54906,18 @@ let nC = class extends pe {
|
|
|
54906
54906
|
* a JSON request with a file ID.
|
|
54907
54907
|
*/
|
|
54908
54908
|
create(t, n, r) {
|
|
54909
|
-
return this._client.post(
|
|
54909
|
+
return this._client.post(L`/containers/${t}/files`, E_(r, (o) => aI({ body: n, ...o, __security: { bearerAuth: !0 } }, this._client)));
|
|
54910
54910
|
}
|
|
54911
54911
|
/**
|
|
54912
54912
|
* Retrieve Container File
|
|
54913
54913
|
*/
|
|
54914
54914
|
retrieve(t, n, r) {
|
|
54915
54915
|
const { container_id: o } = n;
|
|
54916
|
-
return this._client.get(
|
|
54916
|
+
return this._client.get(L`/containers/${o}/files/${t}`, E_(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
|
|
54917
54917
|
}
|
|
54918
54918
|
list(t, n = {}, r) {
|
|
54919
54919
|
const o = cSe(n, ["after", "limit", "order"], r);
|
|
54920
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
54920
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/containers/${t}/files`, dt, E_(r, (s) => ({
|
|
54921
54921
|
query: n,
|
|
54922
54922
|
...s,
|
|
54923
54923
|
__security: { bearerAuth: !0 }
|
|
@@ -54928,7 +54928,7 @@ let nC = class extends pe {
|
|
|
54928
54928
|
*/
|
|
54929
54929
|
delete(t, n, r) {
|
|
54930
54930
|
const { container_id: o } = n;
|
|
54931
|
-
return this._client.delete(
|
|
54931
|
+
return this._client.delete(L`/containers/${o}/files/${t}`, E_(r, (s) => ({
|
|
54932
54932
|
...s,
|
|
54933
54933
|
headers: se([{ Accept: "*/*" }, s == null ? void 0 : s.headers]),
|
|
54934
54934
|
__security: { bearerAuth: !0 }
|
|
@@ -54990,7 +54990,7 @@ class rC extends pe {
|
|
|
54990
54990
|
* Retrieve Container
|
|
54991
54991
|
*/
|
|
54992
54992
|
retrieve(t, n) {
|
|
54993
|
-
return this._client.get(
|
|
54993
|
+
return this._client.get(L`/containers/${t}`, P_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
54994
54994
|
}
|
|
54995
54995
|
list(t = {}, n) {
|
|
54996
54996
|
const r = uSe(t, ["after", "limit", "name", "order"], n);
|
|
@@ -55004,7 +55004,7 @@ class rC extends pe {
|
|
|
55004
55004
|
* Delete Container
|
|
55005
55005
|
*/
|
|
55006
55006
|
delete(t, n) {
|
|
55007
|
-
return this._client.delete(
|
|
55007
|
+
return this._client.delete(L`/containers/${t}`, P_(n, (r) => ({
|
|
55008
55008
|
...r,
|
|
55009
55009
|
headers: se([{ Accept: "*/*" }, r == null ? void 0 : r.headers]),
|
|
55010
55010
|
__security: { bearerAuth: !0 }
|
|
@@ -55073,7 +55073,7 @@ class H3 extends pe {
|
|
|
55073
55073
|
*/
|
|
55074
55074
|
create(t, n, r) {
|
|
55075
55075
|
const { include: o, ...s } = n;
|
|
55076
|
-
return this._client.post(
|
|
55076
|
+
return this._client.post(L`/conversations/${t}/items`, C_(r, (i) => ({
|
|
55077
55077
|
query: { include: o },
|
|
55078
55078
|
body: s,
|
|
55079
55079
|
...i,
|
|
@@ -55085,7 +55085,7 @@ class H3 extends pe {
|
|
|
55085
55085
|
*/
|
|
55086
55086
|
retrieve(t, n, r) {
|
|
55087
55087
|
const { conversation_id: o, ...s } = n;
|
|
55088
|
-
return this._client.get(
|
|
55088
|
+
return this._client.get(L`/conversations/${o}/items/${t}`, C_(r, (i) => ({
|
|
55089
55089
|
query: s,
|
|
55090
55090
|
...i,
|
|
55091
55091
|
__security: { bearerAuth: !0 }
|
|
@@ -55093,7 +55093,7 @@ class H3 extends pe {
|
|
|
55093
55093
|
}
|
|
55094
55094
|
list(t, n = {}, r) {
|
|
55095
55095
|
const o = dSe(n, ["after", "include", "limit", "order"], r);
|
|
55096
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
55096
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/conversations/${t}/items`, er, C_(r, (s) => ({
|
|
55097
55097
|
query: n,
|
|
55098
55098
|
...s,
|
|
55099
55099
|
__security: { bearerAuth: !0 }
|
|
@@ -55104,7 +55104,7 @@ class H3 extends pe {
|
|
|
55104
55104
|
*/
|
|
55105
55105
|
delete(t, n, r) {
|
|
55106
55106
|
const { conversation_id: o } = n;
|
|
55107
|
-
return this._client.delete(
|
|
55107
|
+
return this._client.delete(L`/conversations/${o}/items/${t}`, C_(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
|
|
55108
55108
|
}
|
|
55109
55109
|
}
|
|
55110
55110
|
function M_(e, t) {
|
|
@@ -55128,13 +55128,13 @@ class oC extends pe {
|
|
|
55128
55128
|
* Get a conversation
|
|
55129
55129
|
*/
|
|
55130
55130
|
retrieve(t, n) {
|
|
55131
|
-
return this._client.get(
|
|
55131
|
+
return this._client.get(L`/conversations/${t}`, M_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
55132
55132
|
}
|
|
55133
55133
|
/**
|
|
55134
55134
|
* Update a conversation
|
|
55135
55135
|
*/
|
|
55136
55136
|
update(t, n, r) {
|
|
55137
|
-
return this._client.post(
|
|
55137
|
+
return this._client.post(L`/conversations/${t}`, M_(r, (o) => ({
|
|
55138
55138
|
body: n,
|
|
55139
55139
|
...o,
|
|
55140
55140
|
__security: { bearerAuth: !0 }
|
|
@@ -55144,7 +55144,7 @@ class oC extends pe {
|
|
|
55144
55144
|
* Delete a conversation. Items in the conversation will not be deleted.
|
|
55145
55145
|
*/
|
|
55146
55146
|
delete(t, n) {
|
|
55147
|
-
return this._client.delete(
|
|
55147
|
+
return this._client.delete(L`/conversations/${t}`, M_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
55148
55148
|
}
|
|
55149
55149
|
}
|
|
55150
55150
|
oC.Items = H3;
|
|
@@ -55187,14 +55187,14 @@ class Z3 extends pe {
|
|
|
55187
55187
|
*/
|
|
55188
55188
|
retrieve(t, n, r) {
|
|
55189
55189
|
const { eval_id: o, run_id: s } = n;
|
|
55190
|
-
return this._client.get(
|
|
55190
|
+
return this._client.get(L`/evals/${o}/runs/${s}/output_items/${t}`, pF(r, (i) => ({ ...i, __security: { bearerAuth: !0 } })));
|
|
55191
55191
|
}
|
|
55192
55192
|
/**
|
|
55193
55193
|
* Get a list of output items for an evaluation run.
|
|
55194
55194
|
*/
|
|
55195
55195
|
list(t, n, r) {
|
|
55196
55196
|
const { eval_id: o, ...s } = n;
|
|
55197
|
-
return this._client.getAPIList(
|
|
55197
|
+
return this._client.getAPIList(L`/evals/${o}/runs/${t}/output_items`, dt, pF(r, (i) => ({
|
|
55198
55198
|
query: s,
|
|
55199
55199
|
...i,
|
|
55200
55200
|
__security: { bearerAuth: !0 }
|
|
@@ -55247,7 +55247,7 @@ class sC extends pe {
|
|
|
55247
55247
|
* schema specified in the config of the evaluation.
|
|
55248
55248
|
*/
|
|
55249
55249
|
create(t, n, r) {
|
|
55250
|
-
return this._client.post(
|
|
55250
|
+
return this._client.post(L`/evals/${t}/runs`, Kp(r, (o) => ({
|
|
55251
55251
|
body: n,
|
|
55252
55252
|
...o,
|
|
55253
55253
|
__security: { bearerAuth: !0 }
|
|
@@ -55258,11 +55258,11 @@ class sC extends pe {
|
|
|
55258
55258
|
*/
|
|
55259
55259
|
retrieve(t, n, r) {
|
|
55260
55260
|
const { eval_id: o } = n;
|
|
55261
|
-
return this._client.get(
|
|
55261
|
+
return this._client.get(L`/evals/${o}/runs/${t}`, Kp(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
|
|
55262
55262
|
}
|
|
55263
55263
|
list(t, n = {}, r) {
|
|
55264
55264
|
const o = pSe(n, ["after", "limit", "order", "status"], r);
|
|
55265
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
55265
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/evals/${t}/runs`, dt, Kp(r, (s) => ({
|
|
55266
55266
|
query: n,
|
|
55267
55267
|
...s,
|
|
55268
55268
|
__security: { bearerAuth: !0 }
|
|
@@ -55273,14 +55273,14 @@ class sC extends pe {
|
|
|
55273
55273
|
*/
|
|
55274
55274
|
delete(t, n, r) {
|
|
55275
55275
|
const { eval_id: o } = n;
|
|
55276
|
-
return this._client.delete(
|
|
55276
|
+
return this._client.delete(L`/evals/${o}/runs/${t}`, Kp(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
|
|
55277
55277
|
}
|
|
55278
55278
|
/**
|
|
55279
55279
|
* Cancel an ongoing evaluation run.
|
|
55280
55280
|
*/
|
|
55281
55281
|
cancel(t, n, r) {
|
|
55282
55282
|
const { eval_id: o } = n;
|
|
55283
|
-
return this._client.post(
|
|
55283
|
+
return this._client.post(L`/evals/${o}/runs/${t}`, Kp(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
|
|
55284
55284
|
}
|
|
55285
55285
|
}
|
|
55286
55286
|
sC.OutputItems = Z3;
|
|
@@ -55343,13 +55343,13 @@ class iC extends pe {
|
|
|
55343
55343
|
* Get an evaluation by ID.
|
|
55344
55344
|
*/
|
|
55345
55345
|
retrieve(t, n) {
|
|
55346
|
-
return this._client.get(
|
|
55346
|
+
return this._client.get(L`/evals/${t}`, qp(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
55347
55347
|
}
|
|
55348
55348
|
/**
|
|
55349
55349
|
* Update certain properties of an evaluation.
|
|
55350
55350
|
*/
|
|
55351
55351
|
update(t, n, r) {
|
|
55352
|
-
return this._client.post(
|
|
55352
|
+
return this._client.post(L`/evals/${t}`, qp(r, (o) => ({
|
|
55353
55353
|
body: n,
|
|
55354
55354
|
...o,
|
|
55355
55355
|
__security: { bearerAuth: !0 }
|
|
@@ -55367,7 +55367,7 @@ class iC extends pe {
|
|
|
55367
55367
|
* Delete an evaluation.
|
|
55368
55368
|
*/
|
|
55369
55369
|
delete(t, n) {
|
|
55370
|
-
return this._client.delete(
|
|
55370
|
+
return this._client.delete(L`/evals/${t}`, qp(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
55371
55371
|
}
|
|
55372
55372
|
}
|
|
55373
55373
|
iC.Runs = sC;
|
|
@@ -55454,7 +55454,7 @@ let J3 = class extends pe {
|
|
|
55454
55454
|
* Returns information about a specific file.
|
|
55455
55455
|
*/
|
|
55456
55456
|
retrieve(t, n) {
|
|
55457
|
-
return this._client.get(
|
|
55457
|
+
return this._client.get(L`/files/${t}`, Wp(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
55458
55458
|
}
|
|
55459
55459
|
list(t = {}, n) {
|
|
55460
55460
|
const r = gSe(t, ["after", "limit", "order", "purpose"], n);
|
|
@@ -55468,13 +55468,13 @@ let J3 = class extends pe {
|
|
|
55468
55468
|
* Delete a file and remove it from all vector stores.
|
|
55469
55469
|
*/
|
|
55470
55470
|
delete(t, n) {
|
|
55471
|
-
return this._client.delete(
|
|
55471
|
+
return this._client.delete(L`/files/${t}`, Wp(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
55472
55472
|
}
|
|
55473
55473
|
/**
|
|
55474
55474
|
* Returns a response containing the contents of the specified file.
|
|
55475
55475
|
*/
|
|
55476
55476
|
content(t, n) {
|
|
55477
|
-
return this._client.get(
|
|
55477
|
+
return this._client.get(L`/files/${t}/content`, Wp(n, (r) => ({
|
|
55478
55478
|
...r,
|
|
55479
55479
|
headers: se([{ Accept: "application/binary" }, r == null ? void 0 : r.headers]),
|
|
55480
55480
|
__security: { bearerAuth: !0 },
|
|
@@ -55605,7 +55605,7 @@ class Q3 extends pe {
|
|
|
55605
55605
|
* ```
|
|
55606
55606
|
*/
|
|
55607
55607
|
create(t, n, r) {
|
|
55608
|
-
return this._client.getAPIList(
|
|
55608
|
+
return this._client.getAPIList(L`/fine_tuning/checkpoints/${t}/permissions`, Ma, $_(r, (o) => ({
|
|
55609
55609
|
body: n,
|
|
55610
55610
|
method: "post",
|
|
55611
55611
|
...o,
|
|
@@ -55614,7 +55614,7 @@ class Q3 extends pe {
|
|
|
55614
55614
|
}
|
|
55615
55615
|
retrieve(t, n = {}, r) {
|
|
55616
55616
|
const o = wF(n, ["after", "limit", "order", "project_id"], r);
|
|
55617
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.get(
|
|
55617
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.get(L`/fine_tuning/checkpoints/${t}/permissions`, $_(r, (s) => ({
|
|
55618
55618
|
query: n,
|
|
55619
55619
|
...s,
|
|
55620
55620
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -55622,7 +55622,7 @@ class Q3 extends pe {
|
|
|
55622
55622
|
}
|
|
55623
55623
|
list(t, n = {}, r) {
|
|
55624
55624
|
const o = wF(n, ["after", "limit", "order", "project_id"], r);
|
|
55625
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
55625
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/fine_tuning/checkpoints/${t}/permissions`, er, $_(r, (s) => ({
|
|
55626
55626
|
query: n,
|
|
55627
55627
|
...s,
|
|
55628
55628
|
__security: { adminAPIKeyAuth: !0 }
|
|
@@ -55649,7 +55649,7 @@ class Q3 extends pe {
|
|
|
55649
55649
|
*/
|
|
55650
55650
|
delete(t, n, r) {
|
|
55651
55651
|
const { fine_tuned_model_checkpoint: o } = n;
|
|
55652
|
-
return this._client.delete(
|
|
55652
|
+
return this._client.delete(L`/fine_tuning/checkpoints/${o}/permissions/${t}`, $_(r, (s) => ({
|
|
55653
55653
|
...s,
|
|
55654
55654
|
__security: { adminAPIKeyAuth: !0 }
|
|
55655
55655
|
})));
|
|
@@ -55700,7 +55700,7 @@ function _Se(e, t, n) {
|
|
|
55700
55700
|
class X3 extends pe {
|
|
55701
55701
|
list(t, n = {}, r) {
|
|
55702
55702
|
const o = _Se(n, ["after", "limit"], r);
|
|
55703
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
55703
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/fine_tuning/jobs/${t}/checkpoints`, dt, ySe(r, (s) => ({
|
|
55704
55704
|
query: n,
|
|
55705
55705
|
...s,
|
|
55706
55706
|
__security: { bearerAuth: !0 }
|
|
@@ -55784,7 +55784,7 @@ class uC extends pe {
|
|
|
55784
55784
|
* ```
|
|
55785
55785
|
*/
|
|
55786
55786
|
retrieve(t, n) {
|
|
55787
|
-
return this._client.get(
|
|
55787
|
+
return this._client.get(L`/fine_tuning/jobs/${t}`, au(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
55788
55788
|
}
|
|
55789
55789
|
list(t = {}, n) {
|
|
55790
55790
|
const r = vF(t, ["after", "limit", "metadata"], n);
|
|
@@ -55805,11 +55805,11 @@ class uC extends pe {
|
|
|
55805
55805
|
* ```
|
|
55806
55806
|
*/
|
|
55807
55807
|
cancel(t, n) {
|
|
55808
|
-
return this._client.post(
|
|
55808
|
+
return this._client.post(L`/fine_tuning/jobs/${t}/cancel`, au(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
55809
55809
|
}
|
|
55810
55810
|
listEvents(t, n = {}, r) {
|
|
55811
55811
|
const o = vF(n, ["after", "limit"], r);
|
|
55812
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
55812
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/fine_tuning/jobs/${t}/events`, dt, au(r, (s) => ({
|
|
55813
55813
|
query: n,
|
|
55814
55814
|
...s,
|
|
55815
55815
|
__security: { bearerAuth: !0 }
|
|
@@ -55826,7 +55826,7 @@ class uC extends pe {
|
|
|
55826
55826
|
* ```
|
|
55827
55827
|
*/
|
|
55828
55828
|
pause(t, n) {
|
|
55829
|
-
return this._client.post(
|
|
55829
|
+
return this._client.post(L`/fine_tuning/jobs/${t}/pause`, au(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
55830
55830
|
}
|
|
55831
55831
|
/**
|
|
55832
55832
|
* Resume a fine-tune job.
|
|
@@ -55839,7 +55839,7 @@ class uC extends pe {
|
|
|
55839
55839
|
* ```
|
|
55840
55840
|
*/
|
|
55841
55841
|
resume(t, n) {
|
|
55842
|
-
return this._client.post(
|
|
55842
|
+
return this._client.post(L`/fine_tuning/jobs/${t}/resume`, au(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
55843
55843
|
}
|
|
55844
55844
|
}
|
|
55845
55845
|
uC.Checkpoints = X3;
|
|
@@ -55920,7 +55920,7 @@ class nZ extends pe {
|
|
|
55920
55920
|
* ```
|
|
55921
55921
|
*/
|
|
55922
55922
|
accept(t, n, r) {
|
|
55923
|
-
return this._client.post(
|
|
55923
|
+
return this._client.post(L`/live/sessions/${t}/accept`, rd(r, (o) => ({
|
|
55924
55924
|
body: n,
|
|
55925
55925
|
...o,
|
|
55926
55926
|
headers: se([{ Accept: "*/*" }, o == null ? void 0 : o.headers]),
|
|
@@ -55940,7 +55940,7 @@ class nZ extends pe {
|
|
|
55940
55940
|
* ```
|
|
55941
55941
|
*/
|
|
55942
55942
|
downloadRecording(t, n) {
|
|
55943
|
-
return this._client.get(
|
|
55943
|
+
return this._client.get(L`/live/sessions/${t}/content`, rd(n, (r) => ({
|
|
55944
55944
|
...r,
|
|
55945
55945
|
headers: se([{ Accept: "application/binary" }, r == null ? void 0 : r.headers]),
|
|
55946
55946
|
__security: { bearerAuth: !0 },
|
|
@@ -55959,7 +55959,7 @@ class nZ extends pe {
|
|
|
55959
55959
|
* ```
|
|
55960
55960
|
*/
|
|
55961
55961
|
fork(t, n, r) {
|
|
55962
|
-
return this._client.post(
|
|
55962
|
+
return this._client.post(L`/live/sessions/${t}/fork`, rd(r, (o) => ({
|
|
55963
55963
|
body: n,
|
|
55964
55964
|
...o,
|
|
55965
55965
|
__security: { bearerAuth: !0 }
|
|
@@ -55974,7 +55974,7 @@ class nZ extends pe {
|
|
|
55974
55974
|
* ```
|
|
55975
55975
|
*/
|
|
55976
55976
|
hangup(t, n) {
|
|
55977
|
-
return this._client.post(
|
|
55977
|
+
return this._client.post(L`/live/sessions/${t}/hangup`, rd(n, (r) => ({
|
|
55978
55978
|
...r,
|
|
55979
55979
|
headers: se([{ Accept: "*/*" }, r == null ? void 0 : r.headers]),
|
|
55980
55980
|
__security: { bearerAuth: !0 }
|
|
@@ -55992,7 +55992,7 @@ class nZ extends pe {
|
|
|
55992
55992
|
* ```
|
|
55993
55993
|
*/
|
|
55994
55994
|
refer(t, n, r) {
|
|
55995
|
-
return this._client.post(
|
|
55995
|
+
return this._client.post(L`/live/sessions/${t}/refer`, rd(r, (o) => ({
|
|
55996
55996
|
body: n,
|
|
55997
55997
|
...o,
|
|
55998
55998
|
headers: se([{ Accept: "*/*" }, o == null ? void 0 : o.headers]),
|
|
@@ -56011,7 +56011,7 @@ class nZ extends pe {
|
|
|
56011
56011
|
* ```
|
|
56012
56012
|
*/
|
|
56013
56013
|
reject(t, n, r) {
|
|
56014
|
-
return this._client.post(
|
|
56014
|
+
return this._client.post(L`/live/sessions/${t}/reject`, rd(r, (o) => ({
|
|
56015
56015
|
body: n,
|
|
56016
56016
|
...o,
|
|
56017
56017
|
headers: se([{ Accept: "*/*" }, o == null ? void 0 : o.headers]),
|
|
@@ -56062,7 +56062,7 @@ class sZ extends pe {
|
|
|
56062
56062
|
* the owner and permissioning.
|
|
56063
56063
|
*/
|
|
56064
56064
|
retrieve(t, n) {
|
|
56065
|
-
return this._client.get(
|
|
56065
|
+
return this._client.get(L`/models/${t}`, $T(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
56066
56066
|
}
|
|
56067
56067
|
/**
|
|
56068
56068
|
* Lists the currently available models, and provides basic information about each
|
|
@@ -56076,7 +56076,7 @@ class sZ extends pe {
|
|
|
56076
56076
|
* delete a model.
|
|
56077
56077
|
*/
|
|
56078
56078
|
delete(t, n) {
|
|
56079
|
-
return this._client.delete(
|
|
56079
|
+
return this._client.delete(L`/models/${t}`, $T(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
56080
56080
|
}
|
|
56081
56081
|
}
|
|
56082
56082
|
function bSe(e, t) {
|
|
@@ -56169,7 +56169,7 @@ class aZ extends pe {
|
|
|
56169
56169
|
* ```
|
|
56170
56170
|
*/
|
|
56171
56171
|
accept(t, n, r) {
|
|
56172
|
-
return this._client.post(
|
|
56172
|
+
return this._client.post(L`/realtime/calls/${t}/accept`, Hp(r, (o) => ({
|
|
56173
56173
|
body: n,
|
|
56174
56174
|
...o,
|
|
56175
56175
|
headers: se([{ Accept: "*/*" }, o == null ? void 0 : o.headers]),
|
|
@@ -56185,7 +56185,7 @@ class aZ extends pe {
|
|
|
56185
56185
|
* ```
|
|
56186
56186
|
*/
|
|
56187
56187
|
hangup(t, n) {
|
|
56188
|
-
return this._client.post(
|
|
56188
|
+
return this._client.post(L`/realtime/calls/${t}/hangup`, Hp(n, (r) => ({
|
|
56189
56189
|
...r,
|
|
56190
56190
|
headers: se([{ Accept: "*/*" }, r == null ? void 0 : r.headers]),
|
|
56191
56191
|
__security: { bearerAuth: !0 }
|
|
@@ -56202,7 +56202,7 @@ class aZ extends pe {
|
|
|
56202
56202
|
* ```
|
|
56203
56203
|
*/
|
|
56204
56204
|
refer(t, n, r) {
|
|
56205
|
-
return this._client.post(
|
|
56205
|
+
return this._client.post(L`/realtime/calls/${t}/refer`, Hp(r, (o) => ({
|
|
56206
56206
|
body: n,
|
|
56207
56207
|
...o,
|
|
56208
56208
|
headers: se([{ Accept: "*/*" }, o == null ? void 0 : o.headers]),
|
|
@@ -56218,7 +56218,7 @@ class aZ extends pe {
|
|
|
56218
56218
|
* ```
|
|
56219
56219
|
*/
|
|
56220
56220
|
reject(t, n = {}, r) {
|
|
56221
|
-
return this._client.post(
|
|
56221
|
+
return this._client.post(L`/realtime/calls/${t}/reject`, Hp(r, (o) => ({
|
|
56222
56222
|
body: n,
|
|
56223
56223
|
...o,
|
|
56224
56224
|
headers: se([{ Accept: "*/*" }, o == null ? void 0 : o.headers]),
|
|
@@ -57274,7 +57274,7 @@ function YSe(e, t, n) {
|
|
|
57274
57274
|
class hZ extends pe {
|
|
57275
57275
|
list(t, n = {}, r) {
|
|
57276
57276
|
const o = YSe(n, ["after", "include", "limit", "order"], r);
|
|
57277
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
57277
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/responses/${t}/input_items`, dt, VSe(r, (s) => ({
|
|
57278
57278
|
query: n,
|
|
57279
57279
|
...s,
|
|
57280
57280
|
__security: { bearerAuth: !0 }
|
|
@@ -57357,7 +57357,7 @@ class SI extends pe {
|
|
|
57357
57357
|
}
|
|
57358
57358
|
retrieve(t, n = {}, r) {
|
|
57359
57359
|
const o = XSe(n, ["include", "include_obfuscation", "starting_after", "stream"], r);
|
|
57360
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.get(
|
|
57360
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.get(L`/responses/${t}`, Zp(r, (s) => {
|
|
57361
57361
|
var i;
|
|
57362
57362
|
return {
|
|
57363
57363
|
query: n,
|
|
@@ -57378,7 +57378,7 @@ class SI extends pe {
|
|
|
57378
57378
|
* ```
|
|
57379
57379
|
*/
|
|
57380
57380
|
delete(t, n) {
|
|
57381
|
-
return this._client.delete(
|
|
57381
|
+
return this._client.delete(L`/responses/${t}`, Zp(n, (r) => ({
|
|
57382
57382
|
...r,
|
|
57383
57383
|
headers: se([{ Accept: "*/*" }, r == null ? void 0 : r.headers]),
|
|
57384
57384
|
__security: { bearerAuth: !0 }
|
|
@@ -57406,7 +57406,7 @@ class SI extends pe {
|
|
|
57406
57406
|
* ```
|
|
57407
57407
|
*/
|
|
57408
57408
|
cancel(t, n) {
|
|
57409
|
-
return this._client.post(
|
|
57409
|
+
return this._client.post(L`/responses/${t}/cancel`, Zp(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
57410
57410
|
}
|
|
57411
57411
|
/**
|
|
57412
57412
|
* Compact a conversation. Returns a compacted response object.
|
|
@@ -57441,7 +57441,7 @@ class gZ extends pe {
|
|
|
57441
57441
|
* Get a safety alert belonging to the authenticated API project.
|
|
57442
57442
|
*/
|
|
57443
57443
|
retrieve(t, n) {
|
|
57444
|
-
return this._client.get(
|
|
57444
|
+
return this._client.get(L`/safety/alerts/${t}`, eve(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
57445
57445
|
}
|
|
57446
57446
|
}
|
|
57447
57447
|
function tve(e, t) {
|
|
@@ -57452,7 +57452,7 @@ class yZ extends pe {
|
|
|
57452
57452
|
* Get a safety case by ID.
|
|
57453
57453
|
*/
|
|
57454
57454
|
retrieve(t, n) {
|
|
57455
|
-
return this._client.get(
|
|
57455
|
+
return this._client.get(L`/safety/cases/${t}`, tve(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
57456
57456
|
}
|
|
57457
57457
|
}
|
|
57458
57458
|
class vI extends pe {
|
|
@@ -57470,7 +57470,7 @@ let _Z = class extends pe {
|
|
|
57470
57470
|
* Download a skill zip bundle by its ID.
|
|
57471
57471
|
*/
|
|
57472
57472
|
retrieve(t, n) {
|
|
57473
|
-
return this._client.get(
|
|
57473
|
+
return this._client.get(L`/skills/${t}/content`, nve(n, (r) => ({
|
|
57474
57474
|
...r,
|
|
57475
57475
|
headers: se([{ Accept: "application/binary" }, r == null ? void 0 : r.headers]),
|
|
57476
57476
|
__security: { bearerAuth: !0 },
|
|
@@ -57487,7 +57487,7 @@ class wZ extends pe {
|
|
|
57487
57487
|
*/
|
|
57488
57488
|
retrieve(t, n, r) {
|
|
57489
57489
|
const { skill_id: o } = n;
|
|
57490
|
-
return this._client.get(
|
|
57490
|
+
return this._client.get(L`/skills/${o}/versions/${t}/content`, rve(r, (s) => ({
|
|
57491
57491
|
...s,
|
|
57492
57492
|
headers: se([{ Accept: "application/binary" }, s == null ? void 0 : s.headers]),
|
|
57493
57493
|
__security: { bearerAuth: !0 },
|
|
@@ -57539,7 +57539,7 @@ class hC extends pe {
|
|
|
57539
57539
|
* Create a new immutable skill version.
|
|
57540
57540
|
*/
|
|
57541
57541
|
create(t, n = {}, r) {
|
|
57542
|
-
return this._client.post(
|
|
57542
|
+
return this._client.post(L`/skills/${t}/versions`, aI({ body: n, ...r, __security: { bearerAuth: !0 } }, this._client, {
|
|
57543
57543
|
stripFilenames: !1
|
|
57544
57544
|
}));
|
|
57545
57545
|
}
|
|
@@ -57548,11 +57548,11 @@ class hC extends pe {
|
|
|
57548
57548
|
*/
|
|
57549
57549
|
retrieve(t, n, r) {
|
|
57550
57550
|
const { skill_id: o } = n;
|
|
57551
|
-
return this._client.get(
|
|
57551
|
+
return this._client.get(L`/skills/${o}/versions/${t}`, zT(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
|
|
57552
57552
|
}
|
|
57553
57553
|
list(t, n = {}, r) {
|
|
57554
57554
|
const o = ove(n, ["after", "limit", "order"], r);
|
|
57555
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
57555
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/skills/${t}/versions`, dt, zT(r, (s) => ({
|
|
57556
57556
|
query: n,
|
|
57557
57557
|
...s,
|
|
57558
57558
|
__security: { bearerAuth: !0 }
|
|
@@ -57563,7 +57563,7 @@ class hC extends pe {
|
|
|
57563
57563
|
*/
|
|
57564
57564
|
delete(t, n, r) {
|
|
57565
57565
|
const { skill_id: o } = n;
|
|
57566
|
-
return this._client.delete(
|
|
57566
|
+
return this._client.delete(L`/skills/${o}/versions/${t}`, zT(r, (s) => ({ ...s, __security: { bearerAuth: !0 } })));
|
|
57567
57567
|
}
|
|
57568
57568
|
}
|
|
57569
57569
|
hC.Content = wZ;
|
|
@@ -57619,13 +57619,13 @@ class II extends pe {
|
|
|
57619
57619
|
* Get a skill by its ID.
|
|
57620
57620
|
*/
|
|
57621
57621
|
retrieve(t, n) {
|
|
57622
|
-
return this._client.get(
|
|
57622
|
+
return this._client.get(L`/skills/${t}`, j_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
57623
57623
|
}
|
|
57624
57624
|
/**
|
|
57625
57625
|
* Update the default version pointer for a skill.
|
|
57626
57626
|
*/
|
|
57627
57627
|
update(t, n, r) {
|
|
57628
|
-
return this._client.post(
|
|
57628
|
+
return this._client.post(L`/skills/${t}`, j_(r, (o) => ({
|
|
57629
57629
|
body: n,
|
|
57630
57630
|
...o,
|
|
57631
57631
|
__security: { bearerAuth: !0 }
|
|
@@ -57643,7 +57643,7 @@ class II extends pe {
|
|
|
57643
57643
|
* Delete a skill by its ID.
|
|
57644
57644
|
*/
|
|
57645
57645
|
delete(t, n) {
|
|
57646
|
-
return this._client.delete(
|
|
57646
|
+
return this._client.delete(L`/skills/${t}`, j_(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
57647
57647
|
}
|
|
57648
57648
|
}
|
|
57649
57649
|
II.Content = _Z;
|
|
@@ -57667,7 +57667,7 @@ class bZ extends pe {
|
|
|
57667
57667
|
* [complete the Upload](https://developers.openai.com/api/reference/resources/uploads/methods/complete).
|
|
57668
57668
|
*/
|
|
57669
57669
|
create(t, n, r) {
|
|
57670
|
-
return this._client.post(
|
|
57670
|
+
return this._client.post(L`/uploads/${t}/parts`, ive(r, (o) => ls({ body: n, ...o, __security: { bearerAuth: !0 } }, this._client)));
|
|
57671
57671
|
}
|
|
57672
57672
|
}
|
|
57673
57673
|
function LT(e, t) {
|
|
@@ -57713,7 +57713,7 @@ class mC extends pe {
|
|
|
57713
57713
|
* Returns the Upload object with status `cancelled`.
|
|
57714
57714
|
*/
|
|
57715
57715
|
cancel(t, n) {
|
|
57716
|
-
return this._client.post(
|
|
57716
|
+
return this._client.post(L`/uploads/${t}/cancel`, LT(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
57717
57717
|
}
|
|
57718
57718
|
/**
|
|
57719
57719
|
* Completes the
|
|
@@ -57733,7 +57733,7 @@ class mC extends pe {
|
|
|
57733
57733
|
* object.
|
|
57734
57734
|
*/
|
|
57735
57735
|
complete(t, n, r) {
|
|
57736
|
-
return this._client.post(
|
|
57736
|
+
return this._client.post(L`/uploads/${t}/complete`, LT(r, (o) => ({
|
|
57737
57737
|
body: n,
|
|
57738
57738
|
...o,
|
|
57739
57739
|
__security: { bearerAuth: !0 }
|
|
@@ -57788,7 +57788,7 @@ class SZ extends pe {
|
|
|
57788
57788
|
* Create a vector store file batch.
|
|
57789
57789
|
*/
|
|
57790
57790
|
create(t, n, r) {
|
|
57791
|
-
return this._client.post(
|
|
57791
|
+
return this._client.post(L`/vector_stores/${t}/file_batches`, F_(r, (o) => ({
|
|
57792
57792
|
body: n,
|
|
57793
57793
|
...o,
|
|
57794
57794
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, o == null ? void 0 : o.headers]),
|
|
@@ -57800,7 +57800,7 @@ class SZ extends pe {
|
|
|
57800
57800
|
*/
|
|
57801
57801
|
retrieve(t, n, r) {
|
|
57802
57802
|
const { vector_store_id: o } = n;
|
|
57803
|
-
return this._client.get(
|
|
57803
|
+
return this._client.get(L`/vector_stores/${o}/file_batches/${t}`, F_(r, (s) => ({
|
|
57804
57804
|
...s,
|
|
57805
57805
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
|
|
57806
57806
|
__security: { bearerAuth: !0 }
|
|
@@ -57812,7 +57812,7 @@ class SZ extends pe {
|
|
|
57812
57812
|
*/
|
|
57813
57813
|
cancel(t, n, r) {
|
|
57814
57814
|
const { vector_store_id: o } = n;
|
|
57815
|
-
return this._client.post(
|
|
57815
|
+
return this._client.post(L`/vector_stores/${o}/file_batches/${t}/cancel`, F_(r, (s) => ({
|
|
57816
57816
|
...s,
|
|
57817
57817
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
|
|
57818
57818
|
__security: { bearerAuth: !0 }
|
|
@@ -57830,7 +57830,7 @@ class SZ extends pe {
|
|
|
57830
57830
|
*/
|
|
57831
57831
|
listFiles(t, n, r) {
|
|
57832
57832
|
const { vector_store_id: o, ...s } = n;
|
|
57833
|
-
return this._client.getAPIList(
|
|
57833
|
+
return this._client.getAPIList(L`/vector_stores/${o}/file_batches/${t}/files`, dt, F_(r, (i) => ({
|
|
57834
57834
|
query: s,
|
|
57835
57835
|
...i,
|
|
57836
57836
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, i == null ? void 0 : i.headers]),
|
|
@@ -57898,7 +57898,7 @@ class vZ extends pe {
|
|
|
57898
57898
|
* [vector store](https://developers.openai.com/api/reference/resources/vector_stores).
|
|
57899
57899
|
*/
|
|
57900
57900
|
create(t, n, r) {
|
|
57901
|
-
return this._client.post(
|
|
57901
|
+
return this._client.post(L`/vector_stores/${t}/files`, od(r, (o) => ({
|
|
57902
57902
|
body: n,
|
|
57903
57903
|
...o,
|
|
57904
57904
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, o == null ? void 0 : o.headers]),
|
|
@@ -57910,7 +57910,7 @@ class vZ extends pe {
|
|
|
57910
57910
|
*/
|
|
57911
57911
|
retrieve(t, n, r) {
|
|
57912
57912
|
const { vector_store_id: o } = n;
|
|
57913
|
-
return this._client.get(
|
|
57913
|
+
return this._client.get(L`/vector_stores/${o}/files/${t}`, od(r, (s) => ({
|
|
57914
57914
|
...s,
|
|
57915
57915
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
|
|
57916
57916
|
__security: { bearerAuth: !0 }
|
|
@@ -57921,7 +57921,7 @@ class vZ extends pe {
|
|
|
57921
57921
|
*/
|
|
57922
57922
|
update(t, n, r) {
|
|
57923
57923
|
const { vector_store_id: o, ...s } = n;
|
|
57924
|
-
return this._client.post(
|
|
57924
|
+
return this._client.post(L`/vector_stores/${o}/files/${t}`, od(r, (i) => ({
|
|
57925
57925
|
body: s,
|
|
57926
57926
|
...i,
|
|
57927
57927
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, i == null ? void 0 : i.headers]),
|
|
@@ -57930,7 +57930,7 @@ class vZ extends pe {
|
|
|
57930
57930
|
}
|
|
57931
57931
|
list(t, n = {}, r) {
|
|
57932
57932
|
const o = dve(n, ["after", "before", "filter", "limit", "order"], r);
|
|
57933
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(
|
|
57933
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.getAPIList(L`/vector_stores/${t}/files`, dt, od(r, (s) => ({
|
|
57934
57934
|
query: n,
|
|
57935
57935
|
...s,
|
|
57936
57936
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
|
|
@@ -57945,7 +57945,7 @@ class vZ extends pe {
|
|
|
57945
57945
|
*/
|
|
57946
57946
|
delete(t, n, r) {
|
|
57947
57947
|
const { vector_store_id: o } = n;
|
|
57948
|
-
return this._client.delete(
|
|
57948
|
+
return this._client.delete(L`/vector_stores/${o}/files/${t}`, od(r, (s) => ({
|
|
57949
57949
|
...s,
|
|
57950
57950
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
|
|
57951
57951
|
__security: { bearerAuth: !0 }
|
|
@@ -57989,7 +57989,7 @@ class vZ extends pe {
|
|
|
57989
57989
|
*/
|
|
57990
57990
|
content(t, n, r) {
|
|
57991
57991
|
const { vector_store_id: o } = n;
|
|
57992
|
-
return this._client.getAPIList(
|
|
57992
|
+
return this._client.getAPIList(L`/vector_stores/${o}/files/${t}/content`, Ma, od(r, (s) => ({
|
|
57993
57993
|
...s,
|
|
57994
57994
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, s == null ? void 0 : s.headers]),
|
|
57995
57995
|
__security: { bearerAuth: !0 }
|
|
@@ -58051,7 +58051,7 @@ class AI extends pe {
|
|
|
58051
58051
|
* Retrieves a vector store.
|
|
58052
58052
|
*/
|
|
58053
58053
|
retrieve(t, n) {
|
|
58054
|
-
return this._client.get(
|
|
58054
|
+
return this._client.get(L`/vector_stores/${t}`, sd(n, (r) => ({
|
|
58055
58055
|
...r,
|
|
58056
58056
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, r == null ? void 0 : r.headers]),
|
|
58057
58057
|
__security: { bearerAuth: !0 }
|
|
@@ -58061,7 +58061,7 @@ class AI extends pe {
|
|
|
58061
58061
|
* Modifies a vector store.
|
|
58062
58062
|
*/
|
|
58063
58063
|
update(t, n, r) {
|
|
58064
|
-
return this._client.post(
|
|
58064
|
+
return this._client.post(L`/vector_stores/${t}`, sd(r, (o) => ({
|
|
58065
58065
|
body: n,
|
|
58066
58066
|
...o,
|
|
58067
58067
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, o == null ? void 0 : o.headers]),
|
|
@@ -58081,7 +58081,7 @@ class AI extends pe {
|
|
|
58081
58081
|
* Delete a vector store.
|
|
58082
58082
|
*/
|
|
58083
58083
|
delete(t, n) {
|
|
58084
|
-
return this._client.delete(
|
|
58084
|
+
return this._client.delete(L`/vector_stores/${t}`, sd(n, (r) => ({
|
|
58085
58085
|
...r,
|
|
58086
58086
|
headers: se([{ "OpenAI-Beta": "assistants=v2" }, r == null ? void 0 : r.headers]),
|
|
58087
58087
|
__security: { bearerAuth: !0 }
|
|
@@ -58092,7 +58092,7 @@ class AI extends pe {
|
|
|
58092
58092
|
* filter.
|
|
58093
58093
|
*/
|
|
58094
58094
|
search(t, n, r) {
|
|
58095
|
-
return this._client.getAPIList(
|
|
58095
|
+
return this._client.getAPIList(L`/vector_stores/${t}/search`, Ma, sd(r, (o) => ({
|
|
58096
58096
|
body: n,
|
|
58097
58097
|
method: "post",
|
|
58098
58098
|
...o,
|
|
@@ -58154,7 +58154,7 @@ class IZ extends pe {
|
|
|
58154
58154
|
* @deprecated The Sora API is scheduled to permanently shut down on September 24, 2026.
|
|
58155
58155
|
*/
|
|
58156
58156
|
retrieve(t, n) {
|
|
58157
|
-
return this._client.get(
|
|
58157
|
+
return this._client.get(L`/videos/${t}`, ri(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
58158
58158
|
}
|
|
58159
58159
|
list(t = {}, n) {
|
|
58160
58160
|
const r = DF(t, ["after", "limit", "order"], n);
|
|
@@ -58170,7 +58170,7 @@ class IZ extends pe {
|
|
|
58170
58170
|
* @deprecated The Sora API is scheduled to permanently shut down on September 24, 2026.
|
|
58171
58171
|
*/
|
|
58172
58172
|
delete(t, n) {
|
|
58173
|
-
return this._client.delete(
|
|
58173
|
+
return this._client.delete(L`/videos/${t}`, ri(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
58174
58174
|
}
|
|
58175
58175
|
/**
|
|
58176
58176
|
* Create a character from an uploaded video.
|
|
@@ -58182,7 +58182,7 @@ class IZ extends pe {
|
|
|
58182
58182
|
}
|
|
58183
58183
|
downloadContent(t, n = {}, r) {
|
|
58184
58184
|
const o = DF(n, ["variant"], r);
|
|
58185
|
-
return o !== void 0 && (r = o, n = {}), n = n, this._client.get(
|
|
58185
|
+
return o !== void 0 && (r = o, n = {}), n = n, this._client.get(L`/videos/${t}/content`, ri(r, (s) => ({
|
|
58186
58186
|
query: n,
|
|
58187
58187
|
...s,
|
|
58188
58188
|
headers: se([{ Accept: "application/binary" }, s == null ? void 0 : s.headers]),
|
|
@@ -58213,7 +58213,7 @@ class IZ extends pe {
|
|
|
58213
58213
|
* @deprecated The Sora API is scheduled to permanently shut down on September 24, 2026.
|
|
58214
58214
|
*/
|
|
58215
58215
|
getCharacter(t, n) {
|
|
58216
|
-
return this._client.get(
|
|
58216
|
+
return this._client.get(L`/videos/characters/${t}`, ri(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
58217
58217
|
}
|
|
58218
58218
|
/**
|
|
58219
58219
|
* Create a remix of a completed video using a refreshed prompt.
|
|
@@ -58221,7 +58221,7 @@ class IZ extends pe {
|
|
|
58221
58221
|
* @deprecated The Sora API is scheduled to permanently shut down on September 24, 2026.
|
|
58222
58222
|
*/
|
|
58223
58223
|
remix(t, n, r) {
|
|
58224
|
-
return this._client.post(
|
|
58224
|
+
return this._client.post(L`/videos/${t}/remix`, ri(r, (o) => aI({ body: n, ...o, __security: { bearerAuth: !0 } }, this._client)));
|
|
58225
58225
|
}
|
|
58226
58226
|
}
|
|
58227
58227
|
const NF = 32, pve = 32;
|
|
@@ -58386,7 +58386,7 @@ class yC extends pe {
|
|
|
58386
58386
|
* ```
|
|
58387
58387
|
*/
|
|
58388
58388
|
retrieve(t, n) {
|
|
58389
|
-
return this._client.get(
|
|
58389
|
+
return this._client.get(L`/webhook_endpoints/${t}`, uu(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
58390
58390
|
}
|
|
58391
58391
|
/**
|
|
58392
58392
|
* Updates a webhook endpoint for the authenticated project.
|
|
@@ -58397,7 +58397,7 @@ class yC extends pe {
|
|
|
58397
58397
|
* ```
|
|
58398
58398
|
*/
|
|
58399
58399
|
update(t, n = {}, r) {
|
|
58400
|
-
return this._client.post(
|
|
58400
|
+
return this._client.post(L`/webhook_endpoints/${t}`, uu(r, (o) => ({
|
|
58401
58401
|
body: n,
|
|
58402
58402
|
...o,
|
|
58403
58403
|
__security: { bearerAuth: !0 }
|
|
@@ -58422,7 +58422,7 @@ class yC extends pe {
|
|
|
58422
58422
|
* ```
|
|
58423
58423
|
*/
|
|
58424
58424
|
delete(t, n) {
|
|
58425
|
-
return this._client.delete(
|
|
58425
|
+
return this._client.delete(L`/webhook_endpoints/${t}`, uu(n, (r) => ({ ...r, __security: { bearerAuth: !0 } })));
|
|
58426
58426
|
}
|
|
58427
58427
|
/**
|
|
58428
58428
|
* Rotates the signing secret for a webhook endpoint in the authenticated project.
|
|
@@ -58434,7 +58434,7 @@ class yC extends pe {
|
|
|
58434
58434
|
* ```
|
|
58435
58435
|
*/
|
|
58436
58436
|
rotateSecret(t, n = {}, r) {
|
|
58437
|
-
return this._client.post(
|
|
58437
|
+
return this._client.post(L`/webhook_endpoints/${t}/rotate_secret`, uu(r, (o) => ({
|
|
58438
58438
|
body: n,
|
|
58439
58439
|
...o,
|
|
58440
58440
|
__security: { bearerAuth: !0 }
|
|
@@ -58452,7 +58452,7 @@ class yC extends pe {
|
|
|
58452
58452
|
* ```
|
|
58453
58453
|
*/
|
|
58454
58454
|
test(t, n, r) {
|
|
58455
|
-
return this._client.post(
|
|
58455
|
+
return this._client.post(L`/webhook_endpoints/${t}/test`, uu(r, (o) => ({
|
|
58456
58456
|
body: n,
|
|
58457
58457
|
...o,
|
|
58458
58458
|
__security: { bearerAuth: !0 }
|
|
@@ -58541,7 +58541,7 @@ class Ue {
|
|
|
58541
58541
|
* @param {boolean} [opts.dangerouslyAllowBrowser=false] - By default, client-side use of this library is not allowed, as it risks exposing your secret API credentials to attackers.
|
|
58542
58542
|
*/
|
|
58543
58543
|
constructor(t = {}) {
|
|
58544
|
-
var R, P, j, C, q, N,
|
|
58544
|
+
var R, P, j, C, q, N, z, F, V, K, U, B;
|
|
58545
58545
|
Dr.add(this), Nh.set(this, void 0), Zt.set(this, void 0), Fw.set(this, void 0), Ui.set(this, void 0), _m.set(this, !1), jh.set(this, /* @__PURE__ */ new WeakMap()), this.completions = new K3(this), this.chat = new WP(this), this.embeddings = new G3(this), this.files = new J3(this), this.images = new tZ(this), this.contentProvenanceChecks = new W3(this), this.audio = new ly(this), this.moderations = new iZ(this), this.models = new sZ(this), this.fineTuning = new tp(this), this.graders = new lC(this), this.vectorStores = new AI(this), this.safety = new vI(this), this.webhooks = new yC(this), this.beta = new Hc(this), this.batches = new y3(this), this.uploads = new mC(this), this.admin = new VP(this), this.responses = new SI(this), this.live = new fy(this), this.realtime = new py(this), this.conversations = new oC(this), this.evals = new iC(this), this.containers = new rC(this), this.skills = new II(this), this.videos = new IZ(this);
|
|
58546
58546
|
const { credential: n, options: r } = O_e(t);
|
|
58547
58547
|
t = r;
|
|
@@ -58561,7 +58561,7 @@ class Ue {
|
|
|
58561
58561
|
x509Transport: y,
|
|
58562
58562
|
provider: s,
|
|
58563
58563
|
..._,
|
|
58564
|
-
baseURL: (
|
|
58564
|
+
baseURL: (z = (N = T == null ? void 0 : T.baseURL) != null ? N : o) != null ? z : i || (b ? Qye : "https://api.openai.com/v1")
|
|
58565
58565
|
};
|
|
58566
58566
|
if (y && !b)
|
|
58567
58567
|
throw new H("An X.509 transport requires an X.509 workload identity.");
|
|
@@ -58893,7 +58893,7 @@ https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety
|
|
|
58893
58893
|
}
|
|
58894
58894
|
}
|
|
58895
58895
|
async makeRequest(t, n, r) {
|
|
58896
|
-
var R, P, j, C, q, N,
|
|
58896
|
+
var R, P, j, C, q, N, z, F, V, K, U, B, ie, ye, ge, ee, Oe, oe, Ce, Ee, me;
|
|
58897
58897
|
const o = await t, s = v(this, Dr, "m", Fh).call(this, (R = o.maxRetries) != null ? R : this.maxRetries);
|
|
58898
58898
|
n == null ? n = s : n = Math.min(v(this, Dr, "m", Fh).call(this, n), s);
|
|
58899
58899
|
const i = v(this, Zt, "f");
|
|
@@ -58910,7 +58910,7 @@ https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety
|
|
|
58910
58910
|
throw this._makeUserAbortError(ke != null && ke.aborted ? ke : a.req.signal);
|
|
58911
58911
|
i.setEffectiveSignal(a.req.signal || ke ? BF((q = a.req.signal) != null ? q : ke, ke).signal : void 0), i.beginRequestNetwork();
|
|
58912
58912
|
const M = (N = o.__security) != null ? N : { bearerAuth: !0 }, D = await this.authHeaders(o, M), G = i.headerSnapshots(), X = se([G.defaultHeaders, G.requestHeaders]);
|
|
58913
|
-
for (const [Y, te] of (
|
|
58913
|
+
for (const [Y, te] of (z = D == null ? void 0 : D.values) != null ? z : [])
|
|
58914
58914
|
!X.nulls.has(Y) && !a.req.headers.has(Y) && a.req.headers.set(Y, te);
|
|
58915
58915
|
this.validateHeaders(se([X, a.req.headers]), M);
|
|
58916
58916
|
}
|
|
@@ -59347,8 +59347,8 @@ $r = Ue, Nh = /* @__PURE__ */ new WeakMap(), Zt = /* @__PURE__ */ new WeakMap(),
|
|
|
59347
59347
|
A[C] = "[REDACTED]";
|
|
59348
59348
|
continue;
|
|
59349
59349
|
}
|
|
59350
|
-
f(N.value, y + 1, (
|
|
59351
|
-
A[C] =
|
|
59350
|
+
f(N.value, y + 1, (z) => {
|
|
59351
|
+
A[C] = z;
|
|
59352
59352
|
});
|
|
59353
59353
|
}
|
|
59354
59354
|
}
|
|
@@ -60468,7 +60468,7 @@ function pIe(e) {
|
|
|
60468
60468
|
content: e
|
|
60469
60469
|
}
|
|
60470
60470
|
] : e.map((n) => {
|
|
60471
|
-
var o, s, i, a, c, u, l, d, f, p, h, y, g, _, m, w, b, T, S, I, A, R, P, j, C, q, N,
|
|
60471
|
+
var o, s, i, a, c, u, l, d, f, p, h, y, g, _, m, w, b, T, S, I, A, R, P, j, C, q, N, z, F, V, K, U, B, ie, ye, ge, ee, Oe, oe, Ce, Ee, me, Pe, ke;
|
|
60472
60472
|
if (lIe(n))
|
|
60473
60473
|
return uIe(n);
|
|
60474
60474
|
if (n.type === "tool_search_call") {
|
|
@@ -60743,7 +60743,7 @@ function pIe(e) {
|
|
|
60743
60743
|
code: (C = (j = n.providerData) == null ? void 0 : j.code) != null ? C : "",
|
|
60744
60744
|
// This property used to be results, so keeping both for backward compatibility
|
|
60745
60745
|
// That said, this property cannot be passed from a user, so it's just API's internal data.
|
|
60746
|
-
outputs: (F = (
|
|
60746
|
+
outputs: (F = (z = (q = n.providerData) == null ? void 0 : q.outputs) != null ? z : (N = n.providerData) == null ? void 0 : N.results) != null ? F : [],
|
|
60747
60747
|
status: eIe.parse((V = n.status) != null ? V : "failed"),
|
|
60748
60748
|
container_id: (K = n.providerData) == null ? void 0 : K.container_id,
|
|
60749
60749
|
...M ? { caller: Os(M) } : {}
|
|
@@ -62352,9 +62352,9 @@ async function* oAe(e, t, n = {}) {
|
|
|
62352
62352
|
n.preserveRawUsage === !0 && (o = Xm(U)), r = o != null ? o : U;
|
|
62353
62353
|
}
|
|
62354
62354
|
N.id && (e.id === Rd || !e.id) && (e.id = N.id);
|
|
62355
|
-
const
|
|
62356
|
-
if (
|
|
62357
|
-
const U =
|
|
62355
|
+
const z = (h = (p = N.choices) == null ? void 0 : p.find((U) => U.index === 0)) == null ? void 0 : h.delta;
|
|
62356
|
+
if (z && Object.prototype.hasOwnProperty.call(z, "audio")) {
|
|
62357
|
+
const U = z.audio;
|
|
62358
62358
|
if (U != null) {
|
|
62359
62359
|
let B;
|
|
62360
62360
|
try {
|
|
@@ -62440,13 +62440,13 @@ async function* oAe(e, t, n = {}) {
|
|
|
62440
62440
|
});
|
|
62441
62441
|
let u = null;
|
|
62442
62442
|
if (s.audio) {
|
|
62443
|
-
const { data: N, ...
|
|
62443
|
+
const { data: N, ...z } = s.audio;
|
|
62444
62444
|
if (typeof N != "string")
|
|
62445
62445
|
throw new tt("Chat Completions stream ended with audio output but no audio data.");
|
|
62446
62446
|
u = {
|
|
62447
62447
|
type: "audio",
|
|
62448
62448
|
audio: N,
|
|
62449
|
-
providerData:
|
|
62449
|
+
providerData: z
|
|
62450
62450
|
};
|
|
62451
62451
|
}
|
|
62452
62452
|
if (s.text_content || s.refusal_content) {
|
|
@@ -62713,7 +62713,7 @@ function pAe(e, t = {}) {
|
|
|
62713
62713
|
])
|
|
62714
62714
|
};
|
|
62715
62715
|
if (Array.isArray(I)) {
|
|
62716
|
-
const N = I.find((
|
|
62716
|
+
const N = I.find((z) => z.type === "audio");
|
|
62717
62717
|
N && (q.audio = {
|
|
62718
62718
|
id: "",
|
|
62719
62719
|
// setting this to empty ID and expecting that the user sets providerData.id
|
|
@@ -64306,14 +64306,42 @@ Cn("type", [
|
|
|
64306
64306
|
]);
|
|
64307
64307
|
Iae(new _6({ cacheResponsesWebSocketModels: !1 }));
|
|
64308
64308
|
DAe();
|
|
64309
|
-
|
|
64310
|
-
|
|
64309
|
+
function $Te(e = {}) {
|
|
64310
|
+
return {
|
|
64311
|
+
...e,
|
|
64312
|
+
pendingItems: []
|
|
64313
|
+
};
|
|
64314
|
+
}
|
|
64315
|
+
function DTe(e, t) {
|
|
64316
|
+
const n = e && typeof e == "object" ? e : {}, { items: r, ...o } = n, s = o;
|
|
64317
|
+
if (s.action !== "add")
|
|
64318
|
+
return { operation: s };
|
|
64319
|
+
const i = t.pendingItems;
|
|
64320
|
+
return !Array.isArray(i) || i.length === 0 ? {
|
|
64321
|
+
operation: s,
|
|
64322
|
+
error: "缺少待添加的业务数据,请先调用业务工具准备 items"
|
|
64323
|
+
} : {
|
|
64324
|
+
operation: {
|
|
64325
|
+
...s,
|
|
64326
|
+
items: i.slice()
|
|
64327
|
+
},
|
|
64328
|
+
pendingItems: i
|
|
64329
|
+
};
|
|
64330
|
+
}
|
|
64331
|
+
function NTe(e) {
|
|
64332
|
+
return !(e && typeof e == "object" && (e.ok === !1 || "error" in e));
|
|
64333
|
+
}
|
|
64334
|
+
function jTe(e, t, n) {
|
|
64335
|
+
t.pendingItems && NTe(n) && (e.pendingItems = []);
|
|
64336
|
+
}
|
|
64337
|
+
const v6 = "qwen3.6-flash", FTe = "http://localhost:4000/v1";
|
|
64338
|
+
async function zTe(e, t) {
|
|
64311
64339
|
var r, o, s;
|
|
64312
64340
|
return (typeof e.needsApproval == "function" ? await e.needsApproval(t) : e.needsApproval) ? typeof window == "undefined" || typeof window.confirm != "function" ? !1 : window.confirm(
|
|
64313
64341
|
(s = (o = (r = e.approval) == null ? void 0 : r.message) == null ? void 0 : o.call(r, t)) != null ? s : `是否执行工具 ${e.name}?`
|
|
64314
64342
|
) : !0;
|
|
64315
64343
|
}
|
|
64316
|
-
function
|
|
64344
|
+
function LTe(e, t, n) {
|
|
64317
64345
|
var i, a;
|
|
64318
64346
|
const r = (a = (i = e.parameters) != null ? i : e.inputSchema) != null ? a : J({ input: k().optional() }), { $schema: o, ...s } = yU(
|
|
64319
64347
|
r,
|
|
@@ -64326,8 +64354,9 @@ function NTe(e, t, n) {
|
|
|
64326
64354
|
// Host tools may legitimately use optional fields. Non-strict mode accepts
|
|
64327
64355
|
// their JSON schema without requiring every property to be nullable.
|
|
64328
64356
|
strict: !1,
|
|
64329
|
-
async execute(c) {
|
|
64330
|
-
|
|
64357
|
+
async execute(c, u) {
|
|
64358
|
+
var l;
|
|
64359
|
+
if (!await zTe(e, c))
|
|
64331
64360
|
return {
|
|
64332
64361
|
ok: !1,
|
|
64333
64362
|
rejected: !0,
|
|
@@ -64336,18 +64365,19 @@ function NTe(e, t, n) {
|
|
|
64336
64365
|
try {
|
|
64337
64366
|
return await e.execute(c, {
|
|
64338
64367
|
api: t,
|
|
64339
|
-
getContext: n
|
|
64368
|
+
getContext: n,
|
|
64369
|
+
context: (l = u == null ? void 0 : u.context) != null ? l : n()
|
|
64340
64370
|
});
|
|
64341
|
-
} catch (
|
|
64371
|
+
} catch (d) {
|
|
64342
64372
|
return {
|
|
64343
64373
|
ok: !1,
|
|
64344
|
-
error:
|
|
64374
|
+
error: d instanceof Error ? d.message : String(d)
|
|
64345
64375
|
};
|
|
64346
64376
|
}
|
|
64347
64377
|
}
|
|
64348
64378
|
});
|
|
64349
64379
|
}
|
|
64350
|
-
function
|
|
64380
|
+
function BTe(e) {
|
|
64351
64381
|
const t = {
|
|
64352
64382
|
type: "object",
|
|
64353
64383
|
properties: {},
|
|
@@ -64376,7 +64406,10 @@ function jTe(e) {
|
|
|
64376
64406
|
}
|
|
64377
64407
|
}), o = Ls({
|
|
64378
64408
|
name: "editor_operator",
|
|
64379
|
-
description:
|
|
64409
|
+
description: [
|
|
64410
|
+
"通过节点 UUID 添加、编辑、删除或移动编辑器组件。",
|
|
64411
|
+
"add 的 items 由业务工具写入本次 Run 的 Context 后自动注入,禁止在参数中生成 items。"
|
|
64412
|
+
].join(""),
|
|
64380
64413
|
parameters: {
|
|
64381
64414
|
type: "object",
|
|
64382
64415
|
properties: {
|
|
@@ -64391,12 +64424,7 @@ function jTe(e) {
|
|
|
64391
64424
|
},
|
|
64392
64425
|
widget: {
|
|
64393
64426
|
type: "string",
|
|
64394
|
-
description: "add 时使用的组件类型 ID"
|
|
64395
|
-
},
|
|
64396
|
-
items: {
|
|
64397
|
-
type: "array",
|
|
64398
|
-
description: "add 时写入业务组件的数据",
|
|
64399
|
-
items: {}
|
|
64427
|
+
description: "add 时使用的组件类型 ID;必须来自 get_widgets"
|
|
64400
64428
|
},
|
|
64401
64429
|
changes: {
|
|
64402
64430
|
type: "object",
|
|
@@ -64421,21 +64449,37 @@ function jTe(e) {
|
|
|
64421
64449
|
additionalProperties: !1
|
|
64422
64450
|
},
|
|
64423
64451
|
strict: !1,
|
|
64424
|
-
async execute(s) {
|
|
64425
|
-
var
|
|
64426
|
-
if (!((
|
|
64452
|
+
async execute(s, i) {
|
|
64453
|
+
var u;
|
|
64454
|
+
if (!((u = e.editor) != null && u.operateEditor))
|
|
64427
64455
|
throw new Error("宿主未提供 operateEditor API");
|
|
64428
|
-
|
|
64456
|
+
const a = i == null ? void 0 : i.context;
|
|
64457
|
+
if (!a)
|
|
64458
|
+
throw new Error("缺少当前 Agent Run 的 Context");
|
|
64459
|
+
const c = DTe(s, a);
|
|
64460
|
+
if (c.error)
|
|
64461
|
+
return { ok: !1, error: c.error };
|
|
64462
|
+
try {
|
|
64463
|
+
const l = await e.editor.operateEditor(
|
|
64464
|
+
c.operation
|
|
64465
|
+
);
|
|
64466
|
+
return jTe(a, c, l), l;
|
|
64467
|
+
} catch (l) {
|
|
64468
|
+
return {
|
|
64469
|
+
ok: !1,
|
|
64470
|
+
error: l instanceof Error ? l.message : String(l)
|
|
64471
|
+
};
|
|
64472
|
+
}
|
|
64429
64473
|
}
|
|
64430
64474
|
});
|
|
64431
64475
|
return [n, r, o];
|
|
64432
64476
|
}
|
|
64433
|
-
function
|
|
64477
|
+
function UTe(e) {
|
|
64434
64478
|
var o, s;
|
|
64435
64479
|
const t = (o = e.getContext) != null ? o : () => ({}), n = [
|
|
64436
|
-
...
|
|
64480
|
+
...BTe(e.api),
|
|
64437
64481
|
...((s = e.tools) != null ? s : []).map(
|
|
64438
|
-
(i) =>
|
|
64482
|
+
(i) => LTe(i, e.api, t)
|
|
64439
64483
|
)
|
|
64440
64484
|
];
|
|
64441
64485
|
return { agent: new Ho({
|
|
@@ -64449,6 +64493,9 @@ function FTe(e) {
|
|
|
64449
64493
|
"你是一个 DIY 页面设计助手,负责通过宿主提供的 API 和业务工具帮助用户完成页面设计。",
|
|
64450
64494
|
"修改页面时先调用 get_current_editor 和 get_widgets,确认节点 UUID、组件类型和数据结构。",
|
|
64451
64495
|
"只通过 editor_operator 修改编辑器,不要臆造节点 UUID 或组件类型。",
|
|
64496
|
+
"添加业务组件时,必须先调用能准备组件数据的业务工具;完整 items 会写入本次 Run 的 Context 并由 editor_operator 自动注入。",
|
|
64497
|
+
"不要在 editor_operator 参数中生成 items,也不要自行伪造商品、场景等业务数据。",
|
|
64498
|
+
"业务工具准备好的 items 会被一次添加操作消费;若要再次添加,必须重新调用业务工具。",
|
|
64452
64499
|
"业务数据只能通过已注册的业务工具获取或写入,不要伪造接口结果。",
|
|
64453
64500
|
"写入或不可逆操作需要用户明确同意;完成后用简洁的中文总结实际发生的变化。"
|
|
64454
64501
|
].join(`
|
|
@@ -64456,11 +64503,11 @@ function FTe(e) {
|
|
|
64456
64503
|
tools: n
|
|
64457
64504
|
}) };
|
|
64458
64505
|
}
|
|
64459
|
-
const
|
|
64460
|
-
function
|
|
64461
|
-
return (e == null ? void 0 : e.trim().replace(/\/+$/, "")) ||
|
|
64506
|
+
const KTe = "browser-proxy";
|
|
64507
|
+
function qTe(e) {
|
|
64508
|
+
return (e == null ? void 0 : e.trim().replace(/\/+$/, "")) || FTe;
|
|
64462
64509
|
}
|
|
64463
|
-
function
|
|
64510
|
+
function WTe(e) {
|
|
64464
64511
|
return e === "chat_completions" ? "chat_completions" : "responses";
|
|
64465
64512
|
}
|
|
64466
64513
|
function Xd(e, t) {
|
|
@@ -64473,7 +64520,7 @@ function Ki(e, t) {
|
|
|
64473
64520
|
const n = e[t];
|
|
64474
64521
|
return typeof n == "string" ? n : void 0;
|
|
64475
64522
|
}
|
|
64476
|
-
function
|
|
64523
|
+
function HTe(e) {
|
|
64477
64524
|
if (typeof e != "string")
|
|
64478
64525
|
return e;
|
|
64479
64526
|
try {
|
|
@@ -64482,7 +64529,7 @@ function UTe(e) {
|
|
|
64482
64529
|
return e;
|
|
64483
64530
|
}
|
|
64484
64531
|
}
|
|
64485
|
-
function
|
|
64532
|
+
function GTe(e) {
|
|
64486
64533
|
const t = kd(e.rawItem);
|
|
64487
64534
|
return (Array.isArray(t.content) ? t.content : []).map((r) => Ki(kd(r), "text")).filter((r) => !!r).join(`
|
|
64488
64535
|
`);
|
|
@@ -64492,10 +64539,10 @@ function uz(e, t) {
|
|
|
64492
64539
|
(n) => n.type === "tool" && n.toolCallId === t
|
|
64493
64540
|
);
|
|
64494
64541
|
}
|
|
64495
|
-
function
|
|
64542
|
+
function ZTe(e, t, n, r) {
|
|
64496
64543
|
var o, s, i, a, c, u, l, d;
|
|
64497
64544
|
if (e.name === "reasoning_item_created" && n === "data") {
|
|
64498
|
-
const f =
|
|
64545
|
+
const f = GTe(e.item);
|
|
64499
64546
|
f && (Xd(t, { type: "reasoning", text: f }), r());
|
|
64500
64547
|
return;
|
|
64501
64548
|
}
|
|
@@ -64503,7 +64550,7 @@ function qTe(e, t, n, r) {
|
|
|
64503
64550
|
const f = kd(e.item.rawItem), p = (i = (s = (o = Ki(f, "callId")) != null ? o : Ki(f, "call_id")) != null ? s : Ki(f, "id")) != null ? i : globalThis.crypto.randomUUID();
|
|
64504
64551
|
if (uz(t, p))
|
|
64505
64552
|
return;
|
|
64506
|
-
const h = (c = (a = Ki(f, "name")) != null ? a : Ki(kd(e.item), "toolName")) != null ? c : e.name === "handoff_requested" ? "transfer_to_agent" : "tool", y =
|
|
64553
|
+
const h = (c = (a = Ki(f, "name")) != null ? a : Ki(kd(e.item), "toolName")) != null ? c : e.name === "handoff_requested" ? "transfer_to_agent" : "tool", y = HTe((u = f.arguments) != null ? u : f.input), g = f.output;
|
|
64507
64554
|
Xd(t, {
|
|
64508
64555
|
type: "tool",
|
|
64509
64556
|
toolCallId: p,
|
|
@@ -64534,20 +64581,20 @@ function qTe(e, t, n, r) {
|
|
|
64534
64581
|
}), r());
|
|
64535
64582
|
}
|
|
64536
64583
|
}
|
|
64537
|
-
function
|
|
64584
|
+
function JTe(e) {
|
|
64538
64585
|
return e.parts.map((t) => t.type === "text" ? t.text : t.type === "file" ? zL(t) : "").filter(Boolean).join(`
|
|
64539
64586
|
|
|
64540
64587
|
`);
|
|
64541
64588
|
}
|
|
64542
|
-
function
|
|
64589
|
+
function VTe(e) {
|
|
64543
64590
|
const t = [];
|
|
64544
64591
|
for (const n of e) {
|
|
64545
|
-
const r =
|
|
64592
|
+
const r = JTe(n).trim();
|
|
64546
64593
|
r && (n.role === "assistant" ? t.push(nS(r)) : n.role === "system" ? t.push(kme(r)) : t.push(Rme(r)));
|
|
64547
64594
|
}
|
|
64548
64595
|
return t;
|
|
64549
64596
|
}
|
|
64550
|
-
function
|
|
64597
|
+
function YTe(e) {
|
|
64551
64598
|
var t;
|
|
64552
64599
|
try {
|
|
64553
64600
|
return (t = localStorage.getItem(e)) != null ? t : void 0;
|
|
@@ -64555,19 +64602,19 @@ function GTe(e) {
|
|
|
64555
64602
|
return;
|
|
64556
64603
|
}
|
|
64557
64604
|
}
|
|
64558
|
-
function
|
|
64605
|
+
function QTe(e, t) {
|
|
64559
64606
|
try {
|
|
64560
64607
|
localStorage.setItem(e, t);
|
|
64561
64608
|
} catch (n) {
|
|
64562
64609
|
}
|
|
64563
64610
|
}
|
|
64564
|
-
function
|
|
64611
|
+
function XTe(e = {}) {
|
|
64565
64612
|
var p, h;
|
|
64566
64613
|
const t = {
|
|
64567
|
-
baseURL:
|
|
64614
|
+
baseURL: qTe(e.baseURL),
|
|
64568
64615
|
model: ((p = e.model) == null ? void 0 : p.trim()) || v6,
|
|
64569
|
-
apiMode:
|
|
64570
|
-
}, { agent: n } =
|
|
64616
|
+
apiMode: WTe(e.apiMode)
|
|
64617
|
+
}, { agent: n } = UTe({
|
|
64571
64618
|
model: t.model,
|
|
64572
64619
|
api: (h = e.api) != null ? h : {},
|
|
64573
64620
|
tools: e.tools,
|
|
@@ -64583,7 +64630,7 @@ function JTe(e = {}) {
|
|
|
64583
64630
|
function a() {
|
|
64584
64631
|
if (!i) {
|
|
64585
64632
|
const y = new Ue({
|
|
64586
|
-
apiKey:
|
|
64633
|
+
apiKey: KTe,
|
|
64587
64634
|
baseURL: t.baseURL,
|
|
64588
64635
|
dangerouslyAllowBrowser: !0
|
|
64589
64636
|
});
|
|
@@ -64602,15 +64649,15 @@ function JTe(e = {}) {
|
|
|
64602
64649
|
return `${s}:agent:${y}`;
|
|
64603
64650
|
}
|
|
64604
64651
|
function u(y, g) {
|
|
64605
|
-
|
|
64652
|
+
QTe(c(y), g);
|
|
64606
64653
|
}
|
|
64607
64654
|
function l(y, g) {
|
|
64608
|
-
const _ =
|
|
64655
|
+
const _ = YTe(c(y));
|
|
64609
64656
|
return {
|
|
64610
64657
|
activeAgentName: _ && r.has(_) ? _ : n.name,
|
|
64611
64658
|
session: new mye({
|
|
64612
64659
|
sessionId: y,
|
|
64613
|
-
initialItems:
|
|
64660
|
+
initialItems: VTe(g)
|
|
64614
64661
|
})
|
|
64615
64662
|
};
|
|
64616
64663
|
}
|
|
@@ -64627,50 +64674,51 @@ function JTe(e = {}) {
|
|
|
64627
64674
|
signal: b,
|
|
64628
64675
|
onUpdate: T
|
|
64629
64676
|
}) {
|
|
64630
|
-
var
|
|
64677
|
+
var j, C, q, N;
|
|
64631
64678
|
const S = await d(y, w);
|
|
64632
64679
|
if (b.aborted)
|
|
64633
64680
|
return;
|
|
64634
|
-
const I = (
|
|
64681
|
+
const I = (j = r.get(S.activeAgentName)) != null ? j : n, A = $Te((C = e.getContext) == null ? void 0 : C.call(e)), R = await a().run(I, g, {
|
|
64635
64682
|
stream: !0,
|
|
64636
64683
|
session: S.session,
|
|
64637
|
-
signal: b
|
|
64684
|
+
signal: b,
|
|
64685
|
+
context: A
|
|
64638
64686
|
});
|
|
64639
|
-
let
|
|
64640
|
-
for await (const
|
|
64687
|
+
let P;
|
|
64688
|
+
for await (const z of R) {
|
|
64641
64689
|
if (b.aborted)
|
|
64642
64690
|
break;
|
|
64643
|
-
if (
|
|
64644
|
-
|
|
64691
|
+
if (z.type === "raw_model_stream_event") {
|
|
64692
|
+
z.data.type === "response_started" ? P = void 0 : z.data.type === "output_text_delta" && (P || (P = Xd(m, { type: "text", text: "" })), P.text += z.data.delta, T());
|
|
64645
64693
|
continue;
|
|
64646
64694
|
}
|
|
64647
|
-
if (
|
|
64648
|
-
if (
|
|
64649
|
-
const
|
|
64650
|
-
|
|
64695
|
+
if (z.type === "run_item_stream_event") {
|
|
64696
|
+
if (z.name === "message_output_created" && z.item.type === "message_output_item" && (!P || !P.text)) {
|
|
64697
|
+
const F = z.item.content;
|
|
64698
|
+
F && (P = Xd(m, { type: "text", text: F }), T());
|
|
64651
64699
|
continue;
|
|
64652
64700
|
}
|
|
64653
|
-
|
|
64701
|
+
ZTe(z, m, _, T);
|
|
64654
64702
|
continue;
|
|
64655
64703
|
}
|
|
64656
|
-
S.activeAgentName =
|
|
64704
|
+
S.activeAgentName = z.agent.name, u(y, S.activeAgentName), _ === "data" && (Xd(m, {
|
|
64657
64705
|
type: "data",
|
|
64658
64706
|
name: "active_agent",
|
|
64659
|
-
data: { name:
|
|
64707
|
+
data: { name: z.agent.name }
|
|
64660
64708
|
}), T());
|
|
64661
64709
|
}
|
|
64662
|
-
await
|
|
64710
|
+
await R.completed, S.activeAgentName = (N = (q = R.currentAgent) == null ? void 0 : q.name) != null ? N : S.activeAgentName, u(y, S.activeAgentName);
|
|
64663
64711
|
}
|
|
64664
64712
|
return {
|
|
64665
64713
|
config: t,
|
|
64666
64714
|
runTurn: f
|
|
64667
64715
|
};
|
|
64668
64716
|
}
|
|
64669
|
-
const
|
|
64717
|
+
const exe = { class: "assistant-root" }, txe = {
|
|
64670
64718
|
key: 0,
|
|
64671
64719
|
class: "assistant-panel",
|
|
64672
64720
|
"aria-label": "DIY Copilot"
|
|
64673
|
-
},
|
|
64721
|
+
}, nxe = ["aria-expanded", "aria-label"], rxe = /* @__PURE__ */ jg({
|
|
64674
64722
|
__name: "Copilot",
|
|
64675
64723
|
props: {
|
|
64676
64724
|
api: { default: () => ({}), type: Object },
|
|
@@ -64688,7 +64736,7 @@ const VTe = { class: "assistant-root" }, YTe = {
|
|
|
64688
64736
|
return ((u = t.api.model) == null ? void 0 : u.model) || "qwen3.6-flash";
|
|
64689
64737
|
}), s = cl(() => {
|
|
64690
64738
|
var u, l, d;
|
|
64691
|
-
return
|
|
64739
|
+
return XTe({
|
|
64692
64740
|
baseURL: (u = t.api.model) == null ? void 0 : u.baseURL,
|
|
64693
64741
|
model: (l = t.api.model) == null ? void 0 : l.model,
|
|
64694
64742
|
apiMode: (d = t.api.model) == null ? void 0 : d.apiMode,
|
|
@@ -64701,8 +64749,8 @@ const VTe = { class: "assistant-root" }, YTe = {
|
|
|
64701
64749
|
"这个页面如何优化布局?",
|
|
64702
64750
|
"查询一下当前场景的开通状态"
|
|
64703
64751
|
], a = /* @__PURE__ */ fi(!1), c = /* @__PURE__ */ fi(!1);
|
|
64704
|
-
return (u, l) => (xt(), Mt("div",
|
|
64705
|
-
a.value ? (xt(), Mt("section",
|
|
64752
|
+
return (u, l) => (xt(), Mt("div", exe, [
|
|
64753
|
+
a.value ? (xt(), Mt("section", txe, [
|
|
64706
64754
|
(xt(), GS(BV, {
|
|
64707
64755
|
key: `${r.value}-${o.value}`,
|
|
64708
64756
|
mode: "data",
|
|
@@ -64728,44 +64776,44 @@ const VTe = { class: "assistant-root" }, YTe = {
|
|
|
64728
64776
|
Re("span", {
|
|
64729
64777
|
class: _l(["dot", { ok: c.value }])
|
|
64730
64778
|
}, null, 2)
|
|
64731
|
-
], 8,
|
|
64779
|
+
], 8, nxe)
|
|
64732
64780
|
]));
|
|
64733
64781
|
}
|
|
64734
|
-
}), exe = ':host{--page-bg: #0b0c10;--surface: #14161c;--surface-raised: #1a1d24;--surface-code: #0f1116;--border: #292e38;--border-soft: #242830;--text: #f5f6f7;--text-muted: #aab2be;--text-subtle: #7e8794;--accent: #5271ff;--accent-hover: #6a84ff;--accent-soft: rgba(82, 113, 255, .14);--danger: #f7bfbf;display:block;position:fixed;z-index:2147483000;inset:0;color:var(--text);font-family:Space Grotesk,IBM Plex Sans,Segoe UI,sans-serif;color-scheme:dark;isolation:isolate;pointer-events:none}:host([hidden]){display:none}*{box-sizing:border-box}button,textarea{font:inherit}button{color:inherit}button:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent-hover);outline-offset:2px}svg{display:block;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.chat-view{width:100%;color:var(--text)}.chat-header{margin:0 0 18px}.chat-meta{display:flex;align-items:center;gap:10px;margin-bottom:12px;color:var(--text-subtle);font-size:11px;letter-spacing:.02em}.live-badge{display:inline-flex;align-items:center;gap:7px;color:#b8c3d0}.live-dot{width:6px;height:6px;border-radius:50%;background:#6ee7a0;box-shadow:0 0 0 4px #6ee7a017}.meta-divider{width:1px;height:12px;background:#343946}.chat-header h1{margin:0;color:var(--text);font-size:clamp(28px,4vw,38px);font-weight:570;line-height:1.08;letter-spacing:-.045em}.chat-header p{max-width:720px;margin:9px 0 0;color:var(--text-muted);font-size:13px;line-height:1.6}.chat-panel{display:flex;overflow:hidden;min-height:0;flex-direction:column;border:1px solid var(--border-soft);border-radius:18px;background:#14161cfa;box-shadow:0 24px 80px #0003,inset 0 1px #ffffff06}.message-list{display:flex;overflow-y:auto;min-height:0;flex:1;flex-direction:column;gap:24px;padding:28px;scrollbar-color:#343945 transparent;scrollbar-width:thin}.empty-state{display:flex;width:100%;min-height:370px;flex:none;flex-direction:column;align-items:center;justify-content:center;align-self:center;margin-block:auto;padding:16px;text-align:center}.empty-orbit{position:relative;display:grid;width:62px;height:62px;margin-bottom:21px;place-items:center;border:1px solid rgba(99,123,255,.24);border-radius:50%;color:#aab9ff;background:radial-gradient(circle,rgba(87,113,255,.22),transparent 68%),#171b25}.empty-orbit svg{width:27px}.orbit-ring{position:absolute;inset:-8px;border:1px solid rgba(96,122,255,.11);border-radius:50%}.orbit-ring:after{position:absolute;top:4px;right:7px;width:5px;height:5px;border-radius:50%;background:#7e97ff;box-shadow:0 0 12px #7e97ffe6;content:""}.empty-state h2{margin:0;color:var(--text);font-size:20px;font-weight:580;letter-spacing:-.02em}.empty-state>p{max-width:500px;margin:9px 0 22px;color:var(--text-subtle);font-size:13px;line-height:1.65}.example-list{display:grid;width:min(100%,450px);gap:8px}.example-prompt{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 13px;border:1px solid var(--border-soft);border-radius:10px;color:#c8ced7;background:#1012188c;font-size:13px;text-align:left;cursor:pointer;transition:border-color .16s ease,color .16s ease,background .16s ease}.example-prompt:hover{border-color:#3c4350;color:var(--text);background:#191c23}.example-prompt svg{width:15px;flex:0 0 auto}.message-row{display:flex;align-items:flex-start;gap:12px;animation:message-in .22s ease-out both}.message-row.user{justify-content:flex-end}.avatar{display:grid;width:30px;height:30px;flex:0 0 30px;margin-top:22px;place-items:center;border:1px solid #343c4b;border-radius:9px;color:#aebcff;background:#1b1f29}.assistant-avatar svg{width:16px}.message-content{max-width:min(80%,680px);min-width:0}.message-row.user .message-content{display:flex;flex-direction:column;align-items:flex-end}.message-label{display:flex;align-items:center;gap:8px;margin:0 2px 7px;color:var(--text-subtle);font-size:11px;font-weight:570;letter-spacing:.055em;text-transform:uppercase}.streaming-label{color:#95a7f9;letter-spacing:.03em;text-transform:none}.streaming-label:before{display:inline-block;width:5px;height:5px;margin-right:5px;border-radius:50%;background:currentColor;content:"";animation:pulse 1.2s ease-in-out infinite}.message-bubble{display:grid;min-width:80px;gap:10px;padding:13px 15px;border:1px solid var(--border-soft);border-radius:4px 14px 14px;color:#e8ebef;background:#1b1e26;font-size:14px;line-height:1.65}.message-row.user .message-bubble{border-color:#6882ffb8;border-radius:14px 4px 14px 14px;color:#fbfcff;background:#3453e8}.message-row.user .markdown-content{white-space:pre-wrap}.message-file{display:flex;align-items:center;gap:9px;min-width:0;padding:8px 10px;border:1px solid #353b47;border-radius:9px;background:#0a0c1159}.message-row.user .message-file{border-color:#ffffff38;background:#09123638}.message-file-icon{display:grid;width:29px;height:29px;flex:0 0 29px;place-items:center;border-radius:7px;color:#b9c5ff;background:#5271ff26}.message-file-icon svg{width:16px}.message-file>span:last-child{display:grid;min-width:0;gap:1px}.message-file strong{overflow:hidden;color:#f3f5ff;font-size:12.5px;font-weight:570;text-overflow:ellipsis;white-space:nowrap}.message-file small{color:#f0f3ff9e;font-size:10.5px}.markdown-content{min-width:0;overflow-wrap:anywhere}.markdown-content>:first-child{margin-top:0}.markdown-content>:last-child{margin-bottom:0}.markdown-content p{margin:0 0 10px}.markdown-content ul,.markdown-content ol{margin:8px 0 10px;padding-left:21px}.markdown-content li+li{margin-top:4px}.markdown-content strong{color:#fff;font-weight:650}.markdown-content a{color:#9cb0ff;text-underline-offset:2px}.markdown-content code{padding:2px 5px;border:1px solid #2c313c;border-radius:5px;background:var(--surface-code);font-family:SFMono-Regular,Consolas,monospace;font-size:.9em}.markdown-content pre{overflow-x:auto;margin:12px 0;padding:12px;border:1px solid #292e38;border-radius:9px;background:var(--surface-code)}.markdown-content pre code{padding:0;border:0;background:transparent}.markdown-content blockquote{margin:12px 0;padding-left:13px;border-left:2px solid var(--accent);color:var(--text-muted)}.part-card{min-width:0;padding:12px;border:1px solid #2b303a;border-radius:10px;color:#cbd1da;background:#12141a;font-size:12.5px}.reasoning summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer}.reasoning summary::-webkit-details-marker{display:none}.reasoning summary strong,.tool-heading strong{display:block;color:#eef1f5;font-size:12.5px;font-weight:580}.reasoning summary small,.tool-heading small{display:block;margin-top:2px;color:var(--text-subtle);font-size:10.5px;line-height:1.4}.part-icon{display:grid;width:27px;height:27px;flex:0 0 27px;place-items:center;border:1px solid #303641;border-radius:7px;color:#99a8da;background:#1a1d25}.part-icon svg{width:15px}.reasoning .chevron{width:15px;margin-left:auto;transition:transform .16s ease}.reasoning[open] .chevron{transform:rotate(90deg)}.part-body{margin:12px 0 1px 36px;padding-top:11px;border-top:1px solid #282d36;color:#aeb6c1}.tool-heading{display:flex;align-items:center;gap:9px}.tool summary.tool-heading{list-style:none;cursor:pointer}.tool summary.tool-heading::-webkit-details-marker{display:none}.status-pill{margin-left:auto;padding:3px 7px;border-radius:999px;font-size:10px;line-height:1.4}.status-pill.running{color:#c7d0fd;background:#5271ff29}.status-pill.complete{color:#9ce5b7;background:#4dc17521}.tool-chevron{width:15px;flex:0 0 15px;transition:transform .16s ease}.tool[open] .tool-chevron{transform:rotate(90deg)}.tool-body{margin-top:11px;padding-top:1px;border-top:1px solid #282d36}.tool-section{display:grid;gap:5px;margin-top:11px}.tool-label{color:var(--text-subtle);font-size:10px;font-weight:650;letter-spacing:.06em;text-transform:uppercase}.part-card pre{overflow-x:auto;margin:0;padding:9px 10px;border:1px solid #252a33;border-radius:7px;color:#c4ccda;background:#0c0e13;font-family:SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.55}.tool-error{margin:10px 0 0;color:var(--danger)}.thinking{display:flex;align-items:center;gap:4px;min-height:21px}.thinking i{width:5px;height:5px;border-radius:50%;background:#8793a4;animation:thinking 1.2s ease-in-out infinite}.thinking i:nth-child(2){animation-delay:.12s}.thinking i:nth-child(3){animation-delay:.24s}.error-banner{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #51252a;border-radius:9px;color:var(--danger);background:#2a161a;font-size:12px}.error-banner svg{width:17px;flex:0 0 auto}.composer-area{padding:15px 18px 13px;border-top:1px solid var(--border-soft);background:#111319b8}.composer{display:flex;align-items:flex-end;gap:10px;padding:8px 8px 8px 14px;border:1px solid #313744;border-radius:12px;background:#0f1116;transition:border-color .16s ease,box-shadow .16s ease}.composer-main{display:grid;min-width:0;flex:1;gap:7px}.composer-input{display:flex;min-width:0;align-items:flex-end;gap:8px}.composer:focus-within{border-color:#5369bd;box-shadow:0 0 0 3px #5271ff1a}.composer textarea{width:100%;min-height:37px;max-height:140px;padding:8px 0;resize:none;border:0;outline:0;color:var(--text);background:transparent;font-size:14px;line-height:1.45}.composer textarea::placeholder{color:#747d8a}.composer textarea:disabled{cursor:not-allowed;opacity:.7}.attach-button{display:grid;width:32px;height:32px;flex:0 0 32px;margin-bottom:2px;place-items:center;border:1px solid #2c323d;border-radius:8px;color:#9ca6b5;background:#171a21;cursor:pointer;transition:border-color .16s ease,color .16s ease,background .16s ease}.attach-button:hover:not(:disabled){border-color:#465064;color:#cbd4e5;background:#1c2028}.attach-button:disabled{cursor:not-allowed;opacity:.4}.attach-button svg{width:17px}.pending-files{display:flex;flex-wrap:wrap;gap:6px}.pending-file{display:flex;max-width:100%;align-items:center;gap:7px;padding:6px 7px;border:1px solid #303745;border-radius:8px;color:#bac3d1;background:#171a21;font-size:11.5px}.pending-file.uploading{color:#9ca8ba}.pending-file svg{width:15px;flex:0 0 15px;color:#9bafff}.pending-file-name{overflow:hidden;max-width:220px;text-overflow:ellipsis;white-space:nowrap}.pending-file-size{color:#717b8a;font-size:10.5px}.remove-file{display:grid;width:18px;height:18px;padding:0;place-items:center;border:0;border-radius:4px;color:#8993a2;background:transparent;font-size:15px;line-height:1;cursor:pointer}.remove-file:hover:not(:disabled){color:#fff;background:#303642}.remove-file:disabled{cursor:not-allowed;opacity:.4}.file-spinner{width:12px;height:12px;flex:0 0 12px;border:1.5px solid #4a5364;border-top-color:#a4b5ff;border-radius:50%;animation:spin .7s linear infinite}.file-error{margin:0;color:var(--danger);font-size:11.5px;line-height:1.5}.file-input{display:none}.send-button{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border:0;border-radius:9px;color:#fff;background:var(--accent);cursor:pointer;transition:background .16s ease,opacity .16s ease}.send-button:hover:not(:disabled){background:var(--accent-hover)}.send-button:disabled{cursor:not-allowed;opacity:.38}.send-button.stop{color:#d8dde6;background:#303540}.send-button svg{width:18px}.composer-hint{display:flex;justify-content:space-between;gap:20px;padding:9px 4px 0;color:#6f7885;font-size:10.5px}.demo-note{margin:15px 4px 0;color:#69717d;font-size:11.5px;line-height:1.55;text-align:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;padding:0;border:0;margin:-1px;clip:rect(0,0,0,0);white-space:nowrap}@keyframes message-in{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes thinking{0%,70%,to{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}@keyframes pulse{0%,to{opacity:.45}50%{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 560px){.message-list{padding:18px 14px}.message-content{max-width:calc(100% - 42px)}.composer-area{padding:12px}.composer-hint span:first-child{display:none}.pending-file-name{max-width:150px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}', txe = ".assistant-root[data-v-d2e83636]{position:fixed;z-index:2147483000;right:10px;bottom:24px;display:flex;align-items:stretch;gap:12px;justify-content:flex-end;pointer-events:auto}.assistant-button[data-v-d2e83636]{display:inline-flex;flex-shrink:0;align-self:flex-end;align-items:center;gap:8px;padding:10px 18px;border:0;border-radius:999px;color:#fff;background:#1677ff;box-shadow:0 8px 20px #1677ff59;cursor:pointer}.assistant-button .dot[data-v-d2e83636]{width:8px;height:8px;border-radius:50%;background:#ffccc7}.assistant-button .dot.ok[data-v-d2e83636]{background:#b7eb8f}.assistant-panel[data-v-d2e83636]{display:flex;overflow:hidden;width:min(440px,calc(100vw - 24px));height:min(700px,calc(100vh - 104px));min-height:min(420px,calc(100vh - 104px));flex-direction:column;padding:18px;border:1px solid #242830;border-radius:18px;background:radial-gradient(700px 320px at 8% -8%,#304c8961,#0b0c1000 64%),#0b0c10;box-shadow:0 16px 40px #00000047}.assistant-panel[data-v-d2e83636] .chat-view{display:flex;min-height:0;flex:1;flex-direction:column}.assistant-panel[data-v-d2e83636] .chat-panel,.assistant-panel[data-v-d2e83636] .message-list{min-height:0;flex:1}.assistant-panel[data-v-d2e83636] .empty-state{margin-block:auto}@media (max-width: 560px){.assistant-root[data-v-d2e83636]{right:8px;bottom:16px;gap:8px}.assistant-panel[data-v-d2e83636]{position:fixed;right:8px;bottom:76px;width:calc(100vw - 16px);height:calc(100vh - 96px);min-height:0;padding:12px}.assistant-button[data-v-d2e83636]{padding:10px 14px}}", nxe = (e, t) => {
|
|
64782
|
+
}), oxe = ':host{--page-bg: #0b0c10;--surface: #14161c;--surface-raised: #1a1d24;--surface-code: #0f1116;--border: #292e38;--border-soft: #242830;--text: #f5f6f7;--text-muted: #aab2be;--text-subtle: #7e8794;--accent: #5271ff;--accent-hover: #6a84ff;--accent-soft: rgba(82, 113, 255, .14);--danger: #f7bfbf;display:block;position:fixed;z-index:2147483000;inset:0;color:var(--text);font-family:Space Grotesk,IBM Plex Sans,Segoe UI,sans-serif;color-scheme:dark;isolation:isolate;pointer-events:none}:host([hidden]){display:none}*{box-sizing:border-box}button,textarea{font:inherit}button{color:inherit}button:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid var(--accent-hover);outline-offset:2px}svg{display:block;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.chat-view{width:100%;color:var(--text)}.chat-header{margin:0 0 18px}.chat-meta{display:flex;align-items:center;gap:10px;margin-bottom:12px;color:var(--text-subtle);font-size:11px;letter-spacing:.02em}.live-badge{display:inline-flex;align-items:center;gap:7px;color:#b8c3d0}.live-dot{width:6px;height:6px;border-radius:50%;background:#6ee7a0;box-shadow:0 0 0 4px #6ee7a017}.meta-divider{width:1px;height:12px;background:#343946}.chat-header h1{margin:0;color:var(--text);font-size:clamp(28px,4vw,38px);font-weight:570;line-height:1.08;letter-spacing:-.045em}.chat-header p{max-width:720px;margin:9px 0 0;color:var(--text-muted);font-size:13px;line-height:1.6}.chat-panel{display:flex;overflow:hidden;min-height:0;flex-direction:column;border:1px solid var(--border-soft);border-radius:18px;background:#14161cfa;box-shadow:0 24px 80px #0003,inset 0 1px #ffffff06}.message-list{display:flex;overflow-y:auto;min-height:0;flex:1;flex-direction:column;gap:24px;padding:28px;scrollbar-color:#343945 transparent;scrollbar-width:thin}.empty-state{display:flex;width:100%;min-height:370px;flex:none;flex-direction:column;align-items:center;justify-content:center;align-self:center;margin-block:auto;padding:16px;text-align:center}.empty-orbit{position:relative;display:grid;width:62px;height:62px;margin-bottom:21px;place-items:center;border:1px solid rgba(99,123,255,.24);border-radius:50%;color:#aab9ff;background:radial-gradient(circle,rgba(87,113,255,.22),transparent 68%),#171b25}.empty-orbit svg{width:27px}.orbit-ring{position:absolute;inset:-8px;border:1px solid rgba(96,122,255,.11);border-radius:50%}.orbit-ring:after{position:absolute;top:4px;right:7px;width:5px;height:5px;border-radius:50%;background:#7e97ff;box-shadow:0 0 12px #7e97ffe6;content:""}.empty-state h2{margin:0;color:var(--text);font-size:20px;font-weight:580;letter-spacing:-.02em}.empty-state>p{max-width:500px;margin:9px 0 22px;color:var(--text-subtle);font-size:13px;line-height:1.65}.example-list{display:grid;width:min(100%,450px);gap:8px}.example-prompt{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 13px;border:1px solid var(--border-soft);border-radius:10px;color:#c8ced7;background:#1012188c;font-size:13px;text-align:left;cursor:pointer;transition:border-color .16s ease,color .16s ease,background .16s ease}.example-prompt:hover{border-color:#3c4350;color:var(--text);background:#191c23}.example-prompt svg{width:15px;flex:0 0 auto}.message-row{display:flex;align-items:flex-start;gap:12px;animation:message-in .22s ease-out both}.message-row.user{justify-content:flex-end}.avatar{display:grid;width:30px;height:30px;flex:0 0 30px;margin-top:22px;place-items:center;border:1px solid #343c4b;border-radius:9px;color:#aebcff;background:#1b1f29}.assistant-avatar svg{width:16px}.message-content{max-width:min(80%,680px);min-width:0}.message-row.user .message-content{display:flex;flex-direction:column;align-items:flex-end}.message-label{display:flex;align-items:center;gap:8px;margin:0 2px 7px;color:var(--text-subtle);font-size:11px;font-weight:570;letter-spacing:.055em;text-transform:uppercase}.streaming-label{color:#95a7f9;letter-spacing:.03em;text-transform:none}.streaming-label:before{display:inline-block;width:5px;height:5px;margin-right:5px;border-radius:50%;background:currentColor;content:"";animation:pulse 1.2s ease-in-out infinite}.message-bubble{display:grid;min-width:80px;gap:10px;padding:13px 15px;border:1px solid var(--border-soft);border-radius:4px 14px 14px;color:#e8ebef;background:#1b1e26;font-size:14px;line-height:1.65}.message-row.user .message-bubble{border-color:#6882ffb8;border-radius:14px 4px 14px 14px;color:#fbfcff;background:#3453e8}.message-row.user .markdown-content{white-space:pre-wrap}.message-file{display:flex;align-items:center;gap:9px;min-width:0;padding:8px 10px;border:1px solid #353b47;border-radius:9px;background:#0a0c1159}.message-row.user .message-file{border-color:#ffffff38;background:#09123638}.message-file-icon{display:grid;width:29px;height:29px;flex:0 0 29px;place-items:center;border-radius:7px;color:#b9c5ff;background:#5271ff26}.message-file-icon svg{width:16px}.message-file>span:last-child{display:grid;min-width:0;gap:1px}.message-file strong{overflow:hidden;color:#f3f5ff;font-size:12.5px;font-weight:570;text-overflow:ellipsis;white-space:nowrap}.message-file small{color:#f0f3ff9e;font-size:10.5px}.markdown-content{min-width:0;overflow-wrap:anywhere}.markdown-content>:first-child{margin-top:0}.markdown-content>:last-child{margin-bottom:0}.markdown-content p{margin:0 0 10px}.markdown-content ul,.markdown-content ol{margin:8px 0 10px;padding-left:21px}.markdown-content li+li{margin-top:4px}.markdown-content strong{color:#fff;font-weight:650}.markdown-content a{color:#9cb0ff;text-underline-offset:2px}.markdown-content code{padding:2px 5px;border:1px solid #2c313c;border-radius:5px;background:var(--surface-code);font-family:SFMono-Regular,Consolas,monospace;font-size:.9em}.markdown-content pre{overflow-x:auto;margin:12px 0;padding:12px;border:1px solid #292e38;border-radius:9px;background:var(--surface-code)}.markdown-content pre code{padding:0;border:0;background:transparent}.markdown-content blockquote{margin:12px 0;padding-left:13px;border-left:2px solid var(--accent);color:var(--text-muted)}.part-card{min-width:0;padding:12px;border:1px solid #2b303a;border-radius:10px;color:#cbd1da;background:#12141a;font-size:12.5px}.reasoning summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer}.reasoning summary::-webkit-details-marker{display:none}.reasoning summary strong,.tool-heading strong{display:block;color:#eef1f5;font-size:12.5px;font-weight:580}.reasoning summary small,.tool-heading small{display:block;margin-top:2px;color:var(--text-subtle);font-size:10.5px;line-height:1.4}.part-icon{display:grid;width:27px;height:27px;flex:0 0 27px;place-items:center;border:1px solid #303641;border-radius:7px;color:#99a8da;background:#1a1d25}.part-icon svg{width:15px}.reasoning .chevron{width:15px;margin-left:auto;transition:transform .16s ease}.reasoning[open] .chevron{transform:rotate(90deg)}.part-body{margin:12px 0 1px 36px;padding-top:11px;border-top:1px solid #282d36;color:#aeb6c1}.tool-heading{display:flex;align-items:center;gap:9px}.tool summary.tool-heading{list-style:none;cursor:pointer}.tool summary.tool-heading::-webkit-details-marker{display:none}.status-pill{margin-left:auto;padding:3px 7px;border-radius:999px;font-size:10px;line-height:1.4}.status-pill.running{color:#c7d0fd;background:#5271ff29}.status-pill.complete{color:#9ce5b7;background:#4dc17521}.tool-chevron{width:15px;flex:0 0 15px;transition:transform .16s ease}.tool[open] .tool-chevron{transform:rotate(90deg)}.tool-body{margin-top:11px;padding-top:1px;border-top:1px solid #282d36}.tool-section{display:grid;gap:5px;margin-top:11px}.tool-label{color:var(--text-subtle);font-size:10px;font-weight:650;letter-spacing:.06em;text-transform:uppercase}.part-card pre{overflow-x:auto;margin:0;padding:9px 10px;border:1px solid #252a33;border-radius:7px;color:#c4ccda;background:#0c0e13;font-family:SFMono-Regular,Consolas,monospace;font-size:11px;line-height:1.55}.tool-error{margin:10px 0 0;color:var(--danger)}.thinking{display:flex;align-items:center;gap:4px;min-height:21px}.thinking i{width:5px;height:5px;border-radius:50%;background:#8793a4;animation:thinking 1.2s ease-in-out infinite}.thinking i:nth-child(2){animation-delay:.12s}.thinking i:nth-child(3){animation-delay:.24s}.error-banner{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid #51252a;border-radius:9px;color:var(--danger);background:#2a161a;font-size:12px}.error-banner svg{width:17px;flex:0 0 auto}.composer-area{padding:15px 18px 13px;border-top:1px solid var(--border-soft);background:#111319b8}.composer{display:flex;align-items:flex-end;gap:10px;padding:8px 8px 8px 14px;border:1px solid #313744;border-radius:12px;background:#0f1116;transition:border-color .16s ease,box-shadow .16s ease}.composer-main{display:grid;min-width:0;flex:1;gap:7px}.composer-input{display:flex;min-width:0;align-items:flex-end;gap:8px}.composer:focus-within{border-color:#5369bd;box-shadow:0 0 0 3px #5271ff1a}.composer textarea{width:100%;min-height:37px;max-height:140px;padding:8px 0;resize:none;border:0;outline:0;color:var(--text);background:transparent;font-size:14px;line-height:1.45}.composer textarea::placeholder{color:#747d8a}.composer textarea:disabled{cursor:not-allowed;opacity:.7}.attach-button{display:grid;width:32px;height:32px;flex:0 0 32px;margin-bottom:2px;place-items:center;border:1px solid #2c323d;border-radius:8px;color:#9ca6b5;background:#171a21;cursor:pointer;transition:border-color .16s ease,color .16s ease,background .16s ease}.attach-button:hover:not(:disabled){border-color:#465064;color:#cbd4e5;background:#1c2028}.attach-button:disabled{cursor:not-allowed;opacity:.4}.attach-button svg{width:17px}.pending-files{display:flex;flex-wrap:wrap;gap:6px}.pending-file{display:flex;max-width:100%;align-items:center;gap:7px;padding:6px 7px;border:1px solid #303745;border-radius:8px;color:#bac3d1;background:#171a21;font-size:11.5px}.pending-file.uploading{color:#9ca8ba}.pending-file svg{width:15px;flex:0 0 15px;color:#9bafff}.pending-file-name{overflow:hidden;max-width:220px;text-overflow:ellipsis;white-space:nowrap}.pending-file-size{color:#717b8a;font-size:10.5px}.remove-file{display:grid;width:18px;height:18px;padding:0;place-items:center;border:0;border-radius:4px;color:#8993a2;background:transparent;font-size:15px;line-height:1;cursor:pointer}.remove-file:hover:not(:disabled){color:#fff;background:#303642}.remove-file:disabled{cursor:not-allowed;opacity:.4}.file-spinner{width:12px;height:12px;flex:0 0 12px;border:1.5px solid #4a5364;border-top-color:#a4b5ff;border-radius:50%;animation:spin .7s linear infinite}.file-error{margin:0;color:var(--danger);font-size:11.5px;line-height:1.5}.file-input{display:none}.send-button{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border:0;border-radius:9px;color:#fff;background:var(--accent);cursor:pointer;transition:background .16s ease,opacity .16s ease}.send-button:hover:not(:disabled){background:var(--accent-hover)}.send-button:disabled{cursor:not-allowed;opacity:.38}.send-button.stop{color:#d8dde6;background:#303540}.send-button svg{width:18px}.composer-hint{display:flex;justify-content:space-between;gap:20px;padding:9px 4px 0;color:#6f7885;font-size:10.5px}.demo-note{margin:15px 4px 0;color:#69717d;font-size:11.5px;line-height:1.55;text-align:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;padding:0;border:0;margin:-1px;clip:rect(0,0,0,0);white-space:nowrap}@keyframes message-in{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes thinking{0%,70%,to{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}@keyframes pulse{0%,to{opacity:.45}50%{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 560px){.message-list{padding:18px 14px}.message-content{max-width:calc(100% - 42px)}.composer-area{padding:12px}.composer-hint span:first-child{display:none}.pending-file-name{max-width:150px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}', sxe = ".assistant-root[data-v-d2e83636]{position:fixed;z-index:2147483000;right:10px;bottom:24px;display:flex;align-items:stretch;gap:12px;justify-content:flex-end;pointer-events:auto}.assistant-button[data-v-d2e83636]{display:inline-flex;flex-shrink:0;align-self:flex-end;align-items:center;gap:8px;padding:10px 18px;border:0;border-radius:999px;color:#fff;background:#1677ff;box-shadow:0 8px 20px #1677ff59;cursor:pointer}.assistant-button .dot[data-v-d2e83636]{width:8px;height:8px;border-radius:50%;background:#ffccc7}.assistant-button .dot.ok[data-v-d2e83636]{background:#b7eb8f}.assistant-panel[data-v-d2e83636]{display:flex;overflow:hidden;width:min(440px,calc(100vw - 24px));height:min(700px,calc(100vh - 104px));min-height:min(420px,calc(100vh - 104px));flex-direction:column;padding:18px;border:1px solid #242830;border-radius:18px;background:radial-gradient(700px 320px at 8% -8%,#304c8961,#0b0c1000 64%),#0b0c10;box-shadow:0 16px 40px #00000047}.assistant-panel[data-v-d2e83636] .chat-view{display:flex;min-height:0;flex:1;flex-direction:column}.assistant-panel[data-v-d2e83636] .chat-panel,.assistant-panel[data-v-d2e83636] .message-list{min-height:0;flex:1}.assistant-panel[data-v-d2e83636] .empty-state{margin-block:auto}@media (max-width: 560px){.assistant-root[data-v-d2e83636]{right:8px;bottom:16px;gap:8px}.assistant-panel[data-v-d2e83636]{position:fixed;right:8px;bottom:76px;width:calc(100vw - 16px);height:calc(100vh - 96px);min-height:0;padding:12px}.assistant-button[data-v-d2e83636]{padding:10px 14px}}", ixe = (e, t) => {
|
|
64735
64783
|
const n = e.__vccOpts || e;
|
|
64736
64784
|
for (const [r, o] of t)
|
|
64737
64785
|
n[r] = o;
|
|
64738
64786
|
return n;
|
|
64739
|
-
},
|
|
64740
|
-
function
|
|
64787
|
+
}, axe = /* @__PURE__ */ ixe(rxe, [["styles", [oxe, sxe]], ["__scopeId", "data-v-d2e83636"]]);
|
|
64788
|
+
function cxe(e) {
|
|
64741
64789
|
return { ...e, kind: "agent-tool" };
|
|
64742
64790
|
}
|
|
64743
|
-
const
|
|
64744
|
-
function
|
|
64745
|
-
return /* @__PURE__ */ rJ(
|
|
64791
|
+
const MOe = cxe, uxe = axe;
|
|
64792
|
+
function lxe() {
|
|
64793
|
+
return /* @__PURE__ */ rJ(uxe);
|
|
64746
64794
|
}
|
|
64747
|
-
const
|
|
64795
|
+
const dxe = "dnd-agent";
|
|
64748
64796
|
let UT;
|
|
64749
|
-
function
|
|
64750
|
-
return UT || (UT =
|
|
64797
|
+
function fxe() {
|
|
64798
|
+
return UT || (UT = lxe()), UT;
|
|
64751
64799
|
}
|
|
64752
|
-
function
|
|
64800
|
+
function pxe(e = dxe) {
|
|
64753
64801
|
if (!(typeof window == "undefined" || !window.customElements))
|
|
64754
|
-
return window.customElements.get(e) || window.customElements.define(e,
|
|
64802
|
+
return window.customElements.get(e) || window.customElements.define(e, fxe()), e;
|
|
64755
64803
|
}
|
|
64756
|
-
|
|
64757
|
-
function
|
|
64804
|
+
pxe();
|
|
64805
|
+
function hxe(e) {
|
|
64758
64806
|
return e ? !(typeof e == "object" && e && "constructor" in e && typeof e.constructor == "function" ? e.constructor.name : "").includes("ChatCompletions") : !0;
|
|
64759
64807
|
}
|
|
64760
|
-
function
|
|
64808
|
+
function mxe(e) {
|
|
64761
64809
|
return I6(e);
|
|
64762
64810
|
}
|
|
64763
64811
|
function I6(e) {
|
|
64764
64812
|
return e ? !(typeof e == "object" && e && "constructor" in e && typeof e.constructor == "function" ? e.constructor.name : "").includes("ChatCompletions") : !1;
|
|
64765
64813
|
}
|
|
64766
|
-
class
|
|
64814
|
+
class gxe {
|
|
64767
64815
|
}
|
|
64768
|
-
class
|
|
64816
|
+
class yxe extends gxe {
|
|
64769
64817
|
constructor(n = 0.9, r = 24e4) {
|
|
64770
64818
|
super();
|
|
64771
64819
|
E(this, "thresholdRatio");
|
|
@@ -64787,27 +64835,27 @@ class Ed {
|
|
|
64787
64835
|
this.contextWindow = t;
|
|
64788
64836
|
}
|
|
64789
64837
|
static forModel(t) {
|
|
64790
|
-
for (const n of
|
|
64791
|
-
if (
|
|
64838
|
+
for (const n of bxe(t)) {
|
|
64839
|
+
if (Sxe.has(n))
|
|
64792
64840
|
return new Ed(1047576);
|
|
64793
|
-
if (
|
|
64841
|
+
if (vxe.has(n))
|
|
64794
64842
|
return new Ed(4e5);
|
|
64795
|
-
if (
|
|
64843
|
+
if (Ixe.has(n))
|
|
64796
64844
|
return new Ed(2e5);
|
|
64797
|
-
if (
|
|
64845
|
+
if (Axe.has(n))
|
|
64798
64846
|
return new Ed(128e3);
|
|
64799
64847
|
}
|
|
64800
64848
|
}
|
|
64801
64849
|
}
|
|
64802
|
-
class
|
|
64803
|
-
constructor(n = new
|
|
64850
|
+
class _xe extends Jv {
|
|
64851
|
+
constructor(n = new yxe()) {
|
|
64804
64852
|
super();
|
|
64805
64853
|
E(this, "type", "compaction");
|
|
64806
64854
|
E(this, "policy");
|
|
64807
64855
|
this.policy = n;
|
|
64808
64856
|
}
|
|
64809
64857
|
samplingParams(n) {
|
|
64810
|
-
if (n.modelInstance && !
|
|
64858
|
+
if (n.modelInstance && !hxe(n.modelInstance))
|
|
64811
64859
|
return {};
|
|
64812
64860
|
const r = typeof n.model == "string" ? n.model : void 0;
|
|
64813
64861
|
return {
|
|
@@ -64826,17 +64874,17 @@ class hxe extends Jv {
|
|
|
64826
64874
|
return r === -1 ? n : n.slice(r);
|
|
64827
64875
|
}
|
|
64828
64876
|
}
|
|
64829
|
-
function
|
|
64830
|
-
return new
|
|
64877
|
+
function wxe(e = {}) {
|
|
64878
|
+
return new _xe(e.policy);
|
|
64831
64879
|
}
|
|
64832
|
-
function
|
|
64880
|
+
function bxe(e) {
|
|
64833
64881
|
const t = e.trim();
|
|
64834
64882
|
if (!t)
|
|
64835
64883
|
return [];
|
|
64836
64884
|
const r = (t.includes("/") ? t.slice(t.lastIndexOf("/") + 1) : t).toLowerCase(), o = r.replace(/-\d{4}-\d{2}-\d{2}$/u, "");
|
|
64837
64885
|
return [.../* @__PURE__ */ new Set([r, o])];
|
|
64838
64886
|
}
|
|
64839
|
-
const
|
|
64887
|
+
const Sxe = /* @__PURE__ */ new Set([
|
|
64840
64888
|
"gpt-5.6",
|
|
64841
64889
|
"gpt-5.6-sol",
|
|
64842
64890
|
"gpt-5.6-terra",
|
|
@@ -64851,7 +64899,7 @@ const yxe = /* @__PURE__ */ new Set([
|
|
|
64851
64899
|
"gpt-4.1-mini-2025-04-14",
|
|
64852
64900
|
"gpt-4.1-nano",
|
|
64853
64901
|
"gpt-4.1-nano-2025-04-14"
|
|
64854
|
-
]),
|
|
64902
|
+
]), vxe = /* @__PURE__ */ new Set([
|
|
64855
64903
|
"gpt-5",
|
|
64856
64904
|
"gpt-5-codex",
|
|
64857
64905
|
"gpt-5-mini",
|
|
@@ -64869,7 +64917,7 @@ const yxe = /* @__PURE__ */ new Set([
|
|
|
64869
64917
|
"gpt-5.3-codex-spark",
|
|
64870
64918
|
"gpt-5.4-mini",
|
|
64871
64919
|
"gpt-5.4-nano"
|
|
64872
|
-
]),
|
|
64920
|
+
]), Ixe = /* @__PURE__ */ new Set([
|
|
64873
64921
|
"codex-mini-latest",
|
|
64874
64922
|
"o1",
|
|
64875
64923
|
"o1-2024-12-17",
|
|
@@ -64882,7 +64930,7 @@ const yxe = /* @__PURE__ */ new Set([
|
|
|
64882
64930
|
"o4-mini",
|
|
64883
64931
|
"o4-mini-2025-04-16",
|
|
64884
64932
|
"o4-mini-deep-research"
|
|
64885
|
-
]),
|
|
64933
|
+
]), Axe = /* @__PURE__ */ new Set([
|
|
64886
64934
|
"gpt-4o",
|
|
64887
64935
|
"gpt-4o-2024-08-06",
|
|
64888
64936
|
"gpt-4o-mini",
|
|
@@ -64891,7 +64939,7 @@ const yxe = /* @__PURE__ */ new Set([
|
|
|
64891
64939
|
"gpt-5.1-chat-latest",
|
|
64892
64940
|
"gpt-5.2-chat-latest",
|
|
64893
64941
|
"gpt-5.3-chat-latest"
|
|
64894
|
-
]),
|
|
64942
|
+
]), Txe = {
|
|
64895
64943
|
type: "object",
|
|
64896
64944
|
properties: {
|
|
64897
64945
|
patch: {
|
|
@@ -64941,7 +64989,7 @@ function xC(e) {
|
|
|
64941
64989
|
return String(e);
|
|
64942
64990
|
}
|
|
64943
64991
|
}
|
|
64944
|
-
function
|
|
64992
|
+
function xxe(e) {
|
|
64945
64993
|
if (typeof e == "string")
|
|
64946
64994
|
return e;
|
|
64947
64995
|
const t = e.image;
|
|
@@ -64952,7 +65000,7 @@ function vxe(e) {
|
|
|
64952
65000
|
const n = t;
|
|
64953
65001
|
return typeof n.url == "string" ? n.url : typeof n.fileId == "string" ? `OpenAI file reference: ${n.fileId}` : typeof n.data == "string" ? `data:${typeof n.mediaType == "string" ? n.mediaType : "application/octet-stream"};base64,${n.data}` : n.data instanceof Uint8Array ? `data:${typeof n.mediaType == "string" ? n.mediaType : "application/octet-stream"};base64,${Ns(n.data)}` : "No image data was returned by the sandbox session.";
|
|
64954
65002
|
}
|
|
64955
|
-
function
|
|
65003
|
+
function Oxe(e, t) {
|
|
64956
65004
|
const n = xC(t);
|
|
64957
65005
|
if (/not found/iu.test(n))
|
|
64958
65006
|
return `image path \`${e}\` was not found`;
|
|
@@ -64965,7 +65013,7 @@ function Ixe(e, t) {
|
|
|
64965
65013
|
const r = t instanceof Error ? t.name : typeof t;
|
|
64966
65014
|
return `unable to read image at \`${e}\`: ${r}`;
|
|
64967
65015
|
}
|
|
64968
|
-
function
|
|
65016
|
+
function Rxe(e) {
|
|
64969
65017
|
const t = e.trimStart();
|
|
64970
65018
|
if (t.startsWith(ZR))
|
|
64971
65019
|
return Uw(t);
|
|
@@ -64978,9 +65026,9 @@ function Axe(e) {
|
|
|
64978
65026
|
error: `Invalid apply_patch JSON: ${xC(r)}`
|
|
64979
65027
|
};
|
|
64980
65028
|
}
|
|
64981
|
-
return
|
|
65029
|
+
return kxe(n);
|
|
64982
65030
|
}
|
|
64983
|
-
function
|
|
65031
|
+
function kxe(e) {
|
|
64984
65032
|
if (typeof e == "string")
|
|
64985
65033
|
return Uw(e);
|
|
64986
65034
|
if (Array.isArray(e))
|
|
@@ -65030,11 +65078,11 @@ function Uw(e) {
|
|
|
65030
65078
|
const o = t[r];
|
|
65031
65079
|
let s;
|
|
65032
65080
|
if (o.startsWith(IC))
|
|
65033
|
-
s =
|
|
65081
|
+
s = Exe(t, r);
|
|
65034
65082
|
else if (o.startsWith(AC))
|
|
65035
|
-
s =
|
|
65083
|
+
s = Pxe(t, r);
|
|
65036
65084
|
else if (o.startsWith(TC))
|
|
65037
|
-
s =
|
|
65085
|
+
s = Cxe(t, r);
|
|
65038
65086
|
else
|
|
65039
65087
|
return {
|
|
65040
65088
|
ok: !1,
|
|
@@ -65049,7 +65097,7 @@ function Uw(e) {
|
|
|
65049
65097
|
error: "apply_patch input must include at least one file operation."
|
|
65050
65098
|
} : { ok: !0, operations: n };
|
|
65051
65099
|
}
|
|
65052
|
-
function
|
|
65100
|
+
function Exe(e, t) {
|
|
65053
65101
|
const n = PS(e[t], IC);
|
|
65054
65102
|
if (!n)
|
|
65055
65103
|
return { error: `Missing path in apply_patch header: ${e[t]}` };
|
|
@@ -65072,7 +65120,7 @@ function xxe(e, t) {
|
|
|
65072
65120
|
nextIndex: t
|
|
65073
65121
|
};
|
|
65074
65122
|
}
|
|
65075
|
-
function
|
|
65123
|
+
function Pxe(e, t) {
|
|
65076
65124
|
const n = PS(e[t], AC);
|
|
65077
65125
|
return n ? (t += 1, t < e.length - 1 && !OC(e[t]) ? { error: `Delete File patch for ${n} must not include a diff.` } : {
|
|
65078
65126
|
operation: {
|
|
@@ -65082,7 +65130,7 @@ function Oxe(e, t) {
|
|
|
65082
65130
|
nextIndex: t
|
|
65083
65131
|
}) : { error: `Missing path in apply_patch header: ${e[t]}` };
|
|
65084
65132
|
}
|
|
65085
|
-
function
|
|
65133
|
+
function Cxe(e, t) {
|
|
65086
65134
|
const n = PS(e[t], TC);
|
|
65087
65135
|
if (!n)
|
|
65088
65136
|
return { error: `Missing path in apply_patch header: ${e[t]}` };
|
|
@@ -65119,7 +65167,7 @@ function A6(e) {
|
|
|
65119
65167
|
`)}
|
|
65120
65168
|
`;
|
|
65121
65169
|
}
|
|
65122
|
-
async function
|
|
65170
|
+
async function Mxe(e, t, n) {
|
|
65123
65171
|
var o;
|
|
65124
65172
|
let r;
|
|
65125
65173
|
try {
|
|
@@ -65141,32 +65189,32 @@ async function kxe(e, t, n) {
|
|
|
65141
65189
|
}
|
|
65142
65190
|
return (r == null ? void 0 : r.status) === "failed" ? r.output ? `Patch failed: ${r.output}` : "Patch failed." : (o = r == null ? void 0 : r.output) != null ? o : "Patch applied.";
|
|
65143
65191
|
}
|
|
65144
|
-
async function
|
|
65192
|
+
async function $xe(e, t, n) {
|
|
65145
65193
|
const r = [];
|
|
65146
65194
|
for (const o of t) {
|
|
65147
|
-
const s = await
|
|
65195
|
+
const s = await Mxe(e, o, n);
|
|
65148
65196
|
s && r.push(s);
|
|
65149
65197
|
}
|
|
65150
65198
|
return r.join(`
|
|
65151
65199
|
`) || "Patch applied.";
|
|
65152
65200
|
}
|
|
65153
|
-
function
|
|
65201
|
+
function Dxe(e) {
|
|
65154
65202
|
return {
|
|
65155
65203
|
type: "function",
|
|
65156
65204
|
name: "apply_patch",
|
|
65157
65205
|
description: "Applies a create, update, move, or delete file patch in the sandbox workspace. Accepts a freeform patch string or structured apply_patch operations.",
|
|
65158
|
-
parameters:
|
|
65206
|
+
parameters: Txe,
|
|
65159
65207
|
strict: !1,
|
|
65160
65208
|
deferLoading: !1,
|
|
65161
65209
|
needsApproval: async () => !1,
|
|
65162
65210
|
isEnabled: async () => !0,
|
|
65163
65211
|
invoke: async (n, r) => {
|
|
65164
|
-
const o =
|
|
65165
|
-
return o.ok ? await
|
|
65212
|
+
const o = Rxe(r);
|
|
65213
|
+
return o.ok ? await $xe(e, o.operations, n) : o.error;
|
|
65166
65214
|
}
|
|
65167
65215
|
};
|
|
65168
65216
|
}
|
|
65169
|
-
class
|
|
65217
|
+
class Nxe extends Jv {
|
|
65170
65218
|
constructor(n = {}) {
|
|
65171
65219
|
super();
|
|
65172
65220
|
E(this, "type", "filesystem");
|
|
@@ -65178,7 +65226,7 @@ class Cxe extends Jv {
|
|
|
65178
65226
|
const n = oP(this.type, this._session), r = (a = n.createEditor) == null ? void 0 : a.call(n, this._runAs);
|
|
65179
65227
|
if (!r)
|
|
65180
65228
|
throw new x("Filesystem sandbox sessions must provide createEditor().");
|
|
65181
|
-
const o = (c = this._workspaceScope) != null && c.cwd ?
|
|
65229
|
+
const o = (c = this._workspaceScope) != null && c.cwd ? jxe(r, this._workspaceScope) : r, s = [], i = async (u, l) => {
|
|
65182
65230
|
var f, p;
|
|
65183
65231
|
if (!n.viewImage)
|
|
65184
65232
|
throw new x("Filesystem sandbox sessions must provide viewImage().");
|
|
@@ -65192,7 +65240,7 @@ class Cxe extends Jv {
|
|
|
65192
65240
|
runAs: this._runAs
|
|
65193
65241
|
}), this.tracingParent(l));
|
|
65194
65242
|
} catch (h) {
|
|
65195
|
-
return
|
|
65243
|
+
return Oxe(u, h);
|
|
65196
65244
|
}
|
|
65197
65245
|
};
|
|
65198
65246
|
return I6(this._modelInstance) ? s.push(Ls({
|
|
@@ -65208,14 +65256,14 @@ class Cxe extends Jv {
|
|
|
65208
65256
|
parameters: J({
|
|
65209
65257
|
path: k().describe("Path to an image file in the sandbox workspace or an explicitly granted sandbox path")
|
|
65210
65258
|
}),
|
|
65211
|
-
execute: async ({ path: u }, l, d) =>
|
|
65212
|
-
})),
|
|
65259
|
+
execute: async ({ path: u }, l, d) => xxe(await i(u, d))
|
|
65260
|
+
})), mxe(this._modelInstance) ? s.push(vie({
|
|
65213
65261
|
name: "apply_patch",
|
|
65214
65262
|
editor: o
|
|
65215
|
-
})) : s.push(
|
|
65263
|
+
})) : s.push(Dxe(o)), this.configureTools ? this.configureTools([...s]) : s;
|
|
65216
65264
|
}
|
|
65217
65265
|
}
|
|
65218
|
-
function
|
|
65266
|
+
function jxe(e, t) {
|
|
65219
65267
|
return {
|
|
65220
65268
|
createFile: async (n, r) => await e.createFile({ ...n, path: t.anchor(n.path) }, r),
|
|
65221
65269
|
updateFile: async (n, r) => await e.updateFile({
|
|
@@ -65226,10 +65274,10 @@ function Mxe(e, t) {
|
|
|
65226
65274
|
deleteFile: async (n, r) => await e.deleteFile({ ...n, path: t.anchor(n.path) }, r)
|
|
65227
65275
|
};
|
|
65228
65276
|
}
|
|
65229
|
-
function
|
|
65230
|
-
return new
|
|
65277
|
+
function Fxe(e = {}) {
|
|
65278
|
+
return new Nxe(e);
|
|
65231
65279
|
}
|
|
65232
|
-
const
|
|
65280
|
+
const zxe = 1e4, Lxe = 250, Bxe = [
|
|
65233
65281
|
"When using the shell:",
|
|
65234
65282
|
"- Use `exec_command` for shell execution.",
|
|
65235
65283
|
"- If available, use `write_stdin` to interact with or poll running sessions.",
|
|
@@ -65238,7 +65286,7 @@ const Dxe = 1e4, Nxe = 250, jxe = [
|
|
|
65238
65286
|
"- Avoid using Python scripts just to print large file chunks."
|
|
65239
65287
|
].join(`
|
|
65240
65288
|
`);
|
|
65241
|
-
class
|
|
65289
|
+
class Uxe extends Jv {
|
|
65242
65290
|
constructor(n = {}) {
|
|
65243
65291
|
super();
|
|
65244
65292
|
E(this, "type", "shell");
|
|
@@ -65260,7 +65308,7 @@ class Fxe extends Jv {
|
|
|
65260
65308
|
shell: k().optional().describe("Shell binary to launch. Defaults to the user's default shell."),
|
|
65261
65309
|
login: Br().default(!0).describe("Whether to run the shell with -l/-i semantics. Defaults to true."),
|
|
65262
65310
|
tty: Br().default(!1).describe("Whether to allocate a TTY for the command. Defaults to false (plain pipes); set to true to open a PTY and access TTY process."),
|
|
65263
|
-
yield_time_ms: Se().int().min(0).default(
|
|
65311
|
+
yield_time_ms: Se().int().min(0).default(zxe).describe("How long to wait (in milliseconds) for output before yielding."),
|
|
65264
65312
|
max_output_tokens: Se().int().min(1).optional().describe("Maximum number of tokens to return. Excess output will be truncated.")
|
|
65265
65313
|
}),
|
|
65266
65314
|
execute: async ({ cmd: s, workdir: i, shell: a, login: c, tty: u, yield_time_ms: l, max_output_tokens: d }, f, p) => {
|
|
@@ -65292,7 +65340,7 @@ class Fxe extends Jv {
|
|
|
65292
65340
|
parameters: J({
|
|
65293
65341
|
session_id: Se().int().describe("Identifier of the running unified exec session."),
|
|
65294
65342
|
chars: k().default("").describe("Bytes to write to stdin (may be empty to poll)."),
|
|
65295
|
-
yield_time_ms: Se().int().min(0).default(
|
|
65343
|
+
yield_time_ms: Se().int().min(0).default(Lxe).describe("How long to wait (in milliseconds) for output before yielding."),
|
|
65296
65344
|
max_output_tokens: Se().int().min(1).optional().describe("Maximum number of tokens to return. Excess output will be truncated.")
|
|
65297
65345
|
}),
|
|
65298
65346
|
execute: async ({ session_id: s, chars: i, yield_time_ms: a, max_output_tokens: c }, u, l) => await mn("sandbox.write_stdin", {
|
|
@@ -65306,11 +65354,11 @@ class Fxe extends Jv {
|
|
|
65306
65354
|
})), this.configureTools ? this.configureTools([...r]) : r;
|
|
65307
65355
|
}
|
|
65308
65356
|
instructions() {
|
|
65309
|
-
return
|
|
65357
|
+
return Bxe;
|
|
65310
65358
|
}
|
|
65311
65359
|
}
|
|
65312
|
-
function
|
|
65313
|
-
return new
|
|
65360
|
+
function Kxe(e = {}) {
|
|
65361
|
+
return new Uxe(e);
|
|
65314
65362
|
}
|
|
65315
65363
|
El`
|
|
65316
65364
|
A skill is a set of local instructions to follow that is stored in a \`SKILL.md\` file. Below is the list of skills that can be used. Each entry includes a name, description, and file path so you can open the source for full instructions when using a specific skill.
|
|
@@ -65353,11 +65401,11 @@ El`
|
|
|
65353
65401
|
- When variants exist (frameworks, providers, domains), pick only the relevant reference file(s) and note that choice.
|
|
65354
65402
|
- Safety and fallback: If a skill can't be applied cleanly (missing files, unclear instructions), state the issue, pick the next-best approach, and continue.
|
|
65355
65403
|
`;
|
|
65356
|
-
function
|
|
65357
|
-
return [
|
|
65404
|
+
function qxe() {
|
|
65405
|
+
return [Fxe(), Kxe(), wxe()];
|
|
65358
65406
|
}
|
|
65359
|
-
const
|
|
65360
|
-
default:
|
|
65407
|
+
const Wxe = {
|
|
65408
|
+
default: qxe
|
|
65361
65409
|
};
|
|
65362
65410
|
var Iz, Az;
|
|
65363
65411
|
class RC extends (Az = Ho, Iz = uO, Az) {
|
|
@@ -65372,7 +65420,7 @@ class RC extends (Az = Ho, Iz = uO, Az) {
|
|
|
65372
65420
|
E(this, "runtimeManifest");
|
|
65373
65421
|
if (n.baseInstructions !== void 0 && typeof n.baseInstructions != "string" && typeof n.baseInstructions != "function")
|
|
65374
65422
|
throw new TypeError("SandboxAgent baseInstructions must be a string or function.");
|
|
65375
|
-
this.defaultManifest = n.defaultManifest ? Wo(n.defaultManifest) : void 0, this.baseInstructions = n.baseInstructions, this.capabilities = (r = n.capabilities) != null ? r :
|
|
65423
|
+
this.defaultManifest = n.defaultManifest ? Wo(n.defaultManifest) : void 0, this.baseInstructions = n.baseInstructions, this.capabilities = (r = n.capabilities) != null ? r : Wxe.default(), this.runAs = Hxe(n.runAs), this.runtimeManifest = (o = this.defaultManifest) != null ? o : new Kr();
|
|
65376
65424
|
}
|
|
65377
65425
|
clone(n) {
|
|
65378
65426
|
var r, o, s, i, a, c, u, l, d, f, p, h, y, g, _, m, w, b, T;
|
|
@@ -65399,7 +65447,7 @@ class RC extends (Az = Ho, Iz = uO, Az) {
|
|
|
65399
65447
|
});
|
|
65400
65448
|
}
|
|
65401
65449
|
}
|
|
65402
|
-
function
|
|
65450
|
+
function Hxe(e) {
|
|
65403
65451
|
if (e !== void 0) {
|
|
65404
65452
|
if (typeof e == "string") {
|
|
65405
65453
|
const t = e.trim();
|
|
@@ -65416,19 +65464,23 @@ const fz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
65416
65464
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
65417
65465
|
export {
|
|
65418
65466
|
Ho as Agent,
|
|
65419
|
-
|
|
65467
|
+
FTe as DEFAULT_AGENT_BFF_URL,
|
|
65420
65468
|
v6 as DEFAULT_AGENT_MODEL,
|
|
65421
65469
|
mye as MemorySession,
|
|
65422
|
-
|
|
65470
|
+
uxe as MpdAgent,
|
|
65423
65471
|
MP as Runner,
|
|
65424
|
-
|
|
65425
|
-
|
|
65426
|
-
|
|
65427
|
-
|
|
65428
|
-
|
|
65429
|
-
cxe as
|
|
65430
|
-
|
|
65472
|
+
jTe as completeEditorOperation,
|
|
65473
|
+
lxe as createAgentElement,
|
|
65474
|
+
XTe as createAgentRuntime,
|
|
65475
|
+
UTe as createAgents,
|
|
65476
|
+
$Te as createEditorAgentContext,
|
|
65477
|
+
cxe as defineAgentTool,
|
|
65478
|
+
MOe as defineCapability,
|
|
65479
|
+
NTe as editorOperationSucceeded,
|
|
65480
|
+
fxe as getAgentElement,
|
|
65481
|
+
DTe as prepareEditorOperation,
|
|
65482
|
+
pxe as registerAgentElement,
|
|
65431
65483
|
jL as resolveAgentServiceURL,
|
|
65432
|
-
|
|
65484
|
+
Jxe as run,
|
|
65433
65485
|
Ls as tool
|
|
65434
65486
|
};
|