@redocly/replay 0.28.0-next.7 → 0.28.0-next.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{replay-AiChatProvider-Dib77evR.js → replay-AiChatProvider-B_f9Wn8a.js} +1 -1
- package/dist/{replay-AiChatProvider-CL61KEj-.js → replay-AiChatProvider-DuTK5g1N.js} +41 -41
- package/dist/{replay-AiChatSqliteDBStorage-CAB-uQ_2.js → replay-AiChatSqliteDBStorage-CHfMo6M6.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-BmHRaty6.js → replay-AiChatSqliteDBStorage-cXsRIQfJ.js} +6 -6
- package/dist/{replay-AiPanel-CKf0GTch.js → replay-AiPanel-CGbGwIMX.js} +35 -35
- package/dist/{replay-AiPanel-Co-SG9hy.js → replay-AiPanel-C_C52r20.js} +1 -1
- package/dist/replay-FileWatcher-DEOB0_DG.js +1 -0
- package/dist/{replay-FileWatcher-BpncVTHg.js → replay-FileWatcher-Z6eygcBI.js} +4 -5
- package/dist/{replay-HistorySqliteDBStorage-CtF6-vY8.js → replay-HistorySqliteDBStorage-Bi5vBQ2T.js} +2 -2
- package/dist/{replay-SemanticSearchService-B_97hbQZ.js → replay-SemanticSearchService-BLF1oOOu.js} +8 -12
- package/dist/replay-SemanticSearchService-DTc0oxN4.js +1 -0
- package/dist/{replay-SqliteDBStorage-BYAD4Hdr.js → replay-SqliteDBStorage-B_kyJ0a3.js} +1 -1
- package/dist/{replay-SqliteDBStorage-C4jv_awl.js → replay-SqliteDBStorage-DF9kKplR.js} +49 -49
- package/dist/{replay-StepContextSqliteDBStorage-BfAAKDwA.js → replay-StepContextSqliteDBStorage-BkB2NM27.js} +2 -2
- package/dist/{replay-TauriFileSystemAdapter-DNp7rTwA.js → replay-TauriFileSystemAdapter-CwSMakdJ.js} +1 -1
- package/dist/{replay-TauriFileSystemAdapter-dRydQRfd.js → replay-TauriFileSystemAdapter-DcFBYSUW.js} +8 -8
- package/dist/{replay-TauriRootStorage-TvtzeQ9x.js → replay-TauriRootStorage-DEGEIJrz.js} +1 -1
- package/dist/{replay-TauriRootStorage-BUSjQzb0.js → replay-TauriRootStorage-Den8gI4S.js} +85 -85
- package/dist/{replay-agent-loop-Bv3OEM5Y.js → replay-agent-loop-B8Mjb8DU.js} +9 -9
- package/dist/{replay-agent-loop-FONgy9Lo.js → replay-agent-loop-Z_nrrmg_.js} +1 -1
- package/dist/{replay-ai-chat-mappers-Kj9YEXwF.js → replay-ai-chat-mappers-D7e8buTk.js} +3 -3
- package/dist/{replay-ai-chat-mappers-CknwkJ22.js → replay-ai-chat-mappers-aJ_VMb6Z.js} +1 -1
- package/dist/{replay-ai-message-parts.schema-E9u9-nqr.js → replay-ai-message-parts.schema-DKLf0SiG.js} +1 -1
- package/dist/{replay-create-model-DgfhU1ps.js → replay-create-model-Be3vPVDb.js} +3 -3
- package/dist/{replay-create-model-Bq8Fl5Ai.js → replay-create-model-Bw20x80b.js} +3 -3
- package/dist/{replay-db-DjHsvWMQ.js → replay-db-BQXljNM0.js} +1 -1
- package/dist/{replay-db-D3MZ3YVw.js → replay-db-BmZNrdZM.js} +5 -5
- package/dist/{replay-external-resolver-DgcgzfRI.js → replay-external-resolver-BLzbbtnT.js} +1 -1
- package/dist/{replay-external-resolver-SsE1pZoq.js → replay-external-resolver-BQvSDNfH.js} +7 -7
- package/dist/{replay-history.schema-5ce6X0R1.js → replay-history.schema-B0lLwmdG.js} +3 -3
- package/dist/{replay-index-l3GM4sbc.js → replay-index-B-uZhXHj.js} +1 -1
- package/dist/{replay-index-B-Z3hRlH.js → replay-index-BCz452N6.js} +16025 -15956
- package/dist/{replay-index-DzrZDRUX.js → replay-index-C0kvTxxm.js} +38 -38
- package/dist/{replay-index-eABpOyfi.js → replay-index-C7y4K4Cr.js} +1 -1
- package/dist/replay-index-DAIwC3ls.js +1 -0
- package/dist/{replay-index-AEsPADo_.js → replay-index-DYtXcqDk.js} +1014 -1010
- package/dist/replay-index-gM6vL6iT.js +4 -0
- package/dist/{replay-index-BJ5jmb2F.js → replay-index-wBHsAQEV.js} +1 -1
- package/dist/{replay-indexes-CfsvVMi_.js → replay-indexes-B3PJtgeh.js} +43 -43
- package/dist/replay-lint-BzkTeXqI.js +177 -0
- package/dist/{replay-lint-BHwuW5sm.js → replay-lint-CqDMOMQt.js} +11038 -10749
- package/dist/{replay-lint-graphql-taKxgtqM.js → replay-lint-graphql-BDBGJSir.js} +1 -1
- package/dist/{replay-lint-graphql-CcbpryHy.js → replay-lint-graphql-BZF2eLiZ.js} +1 -1
- package/dist/replay-periodic-revalidation-C7SkB1vs.js +1 -0
- package/dist/{replay-periodic-revalidation-CEMQo8s1.js → replay-periodic-revalidation-orCv_JoF.js} +4 -5
- package/dist/{replay-resolve-DJdvx14A.js → replay-resolve-0e5f8I7b.js} +18 -18
- package/dist/{replay-resolve-CSzH6SDp.js → replay-resolve-DZMWoig2.js} +176 -176
- package/dist/replay-respect-run-CLW3wGhx.js +8392 -0
- package/dist/replay-respect-run-ChP63WzG.js +82 -0
- package/dist/replay-step-context.schema-BOprzd6Z.js +21 -0
- package/dist/{replay-tauri-path-D_hXMLdc.js → replay-tauri-path-DBt1dqkG.js} +1 -1
- package/dist/replay-tauri-path-DvLF4Z8f.js +22 -0
- package/dist/{replay-useAiChatQueries-DVCG23XB.js → replay-useAiChatQueries-Bypgnkwa.js} +2 -2
- package/dist/{replay-useAiChatQueries-DFd8ZJQG.js → replay-useAiChatQueries-S6v5duiJ.js} +131 -137
- package/dist/{replay-validate-key-fIEjvAUc.js → replay-validate-key-CMJODIH6.js} +2 -2
- package/dist/{replay-validate-key-qqV8ZWzl.js → replay-validate-key-CNl7BV_v.js} +1 -1
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +10 -10
- package/package.json +4 -4
- package/dist/replay-FileWatcher-BpsHu7xD.js +0 -1
- package/dist/replay-SemanticSearchService-B9YYS_s4.js +0 -1
- package/dist/replay-index-B3h5Szid.js +0 -25
- package/dist/replay-index-C04sCExL.js +0 -1
- package/dist/replay-lint-7nMI-JAv.js +0 -177
- package/dist/replay-periodic-revalidation-Cg2y1tgz.js +0 -1
- package/dist/replay-respect-run-DTUpcIOb.js +0 -78
- package/dist/replay-respect-run-gVY8_9EV.js +0 -8200
- package/dist/replay-step-context.schema-DBk4jufr.js +0 -21
- package/dist/replay-tauri-path-C-oZvov6.js +0 -22
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { useContext as
|
|
2
|
-
import {
|
|
3
|
-
import { b as C, f as kt, a as St, c as Tt, d as pe, e as Ct, i as
|
|
4
|
-
import { b as vo, o as go, d as bo, e as p, u as fe, f as i, h as R, j as E, n as A, k as
|
|
5
|
-
import { g as Oo,
|
|
1
|
+
import { useContext as Bt, createContext as Yt } from "react";
|
|
2
|
+
import { R as zt, A as ge, aH as ne, aI as Ht, aJ as Gt, aK as Vt, a1 as x, a as le, ax as Y, aL as pt, aM as Ce, aw as Ae, aN as ft, aO as de, aP as Z, c as b, aQ as Kt, ac as G, aa as V, aR as mt, aS as ue, ab as Ee, aT as Jt, aU as Qt, aV as Xt, aW as Zt, aX as eo, aY as to, aZ as oo, a4 as K, a_ as no, a5 as ee, $ as ro, a$ as so, b0 as ht, b1 as wt, b2 as ao, b3 as It, b4 as $e, b5 as Oe, a7 as J, b6 as io, a0 as yt, b7 as xe, aq as vt, b8 as co, b9 as lo, S as k, ba as Fe, bb as uo, bc as je, bd as po, be as fo, bf as mo, _ as gt, Z as bt } from "./replay-index-BCz452N6.js";
|
|
3
|
+
import { b as C, f as kt, a as St, c as Tt, d as pe, e as Ct, i as Be, h as _e, R as z, j as ho, k as wo, p as Io, s as Ye, l as yo } from "./replay-db-BmZNrdZM.js";
|
|
4
|
+
import { b as vo, o as go, d as bo, e as p, u as fe, f as i, h as R, j as E, n as A, k as B, m as w, q as T, r as Re, t as te, v as me, Z as H, w as ko, x as ze, c as So, s as To, y as Co } from "./replay-create-model-Be3vPVDb.js";
|
|
5
|
+
import { g as Oo, e as He, a as Ao, b as Eo, c as Ge, d as $o, f as xo } from "./replay-SemanticSearchService-BLF1oOOu.js";
|
|
6
6
|
import { useInfiniteQuery as _o, useQuery as Ro } from "@tanstack/react-query";
|
|
7
7
|
const re = {
|
|
8
8
|
path: "pathParameters",
|
|
@@ -114,7 +114,7 @@ function Mo(e, t) {
|
|
|
114
114
|
|
|
115
115
|
`);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Fo(e, t) {
|
|
118
118
|
return C(
|
|
119
119
|
[
|
|
120
120
|
e.collectionId ? `Collection ID: ${e.collectionId}` : null,
|
|
@@ -125,7 +125,7 @@ function jo(e, t) {
|
|
|
125
125
|
`
|
|
126
126
|
);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function jo(e, t) {
|
|
129
129
|
return C(
|
|
130
130
|
[
|
|
131
131
|
t.includes("title") ? e.title : null,
|
|
@@ -144,7 +144,7 @@ function Bo(e, t) {
|
|
|
144
144
|
`
|
|
145
145
|
);
|
|
146
146
|
}
|
|
147
|
-
const
|
|
147
|
+
const Bo = [
|
|
148
148
|
"info",
|
|
149
149
|
"inputs",
|
|
150
150
|
"parameters",
|
|
@@ -176,9 +176,9 @@ function Go(e) {
|
|
|
176
176
|
return e.steps?.length ? `Step wiring (security + outputs per step):
|
|
177
177
|
${e.steps.map((o) => {
|
|
178
178
|
const n = [` stepId=${o.stepId}${Ot(o)}`], r = pe(o.security);
|
|
179
|
-
r && n.push(
|
|
179
|
+
r && n.push(Be(r, " "));
|
|
180
180
|
const s = _e(o.outputs);
|
|
181
|
-
return s && n.push(
|
|
181
|
+
return s && n.push(Be(s, " ")), n.join(`
|
|
182
182
|
`);
|
|
183
183
|
}).join(`
|
|
184
184
|
`)}` : null;
|
|
@@ -373,7 +373,7 @@ function ln(e, t) {
|
|
|
373
373
|
);
|
|
374
374
|
}
|
|
375
375
|
function dn(e, t) {
|
|
376
|
-
return e.type === "collection" ?
|
|
376
|
+
return e.type === "collection" ? Fo(e, t) : e.type === "workflow" ? Qo(e, t) : e.type === "step" ? ln(e, t) : jo(e, t);
|
|
377
377
|
}
|
|
378
378
|
function un(e, t) {
|
|
379
379
|
return e.map((o) => dn(o, t));
|
|
@@ -481,25 +481,25 @@ function kn(e, t = ["info"], o) {
|
|
|
481
481
|
if (!e)
|
|
482
482
|
return null;
|
|
483
483
|
switch (e.type) {
|
|
484
|
-
case
|
|
484
|
+
case x.Step:
|
|
485
485
|
return sn(e, t);
|
|
486
|
-
case
|
|
486
|
+
case x.Workflow:
|
|
487
487
|
return Jo(e, t);
|
|
488
|
-
case
|
|
488
|
+
case x.Collection:
|
|
489
489
|
return Mo(e, t);
|
|
490
|
-
case
|
|
490
|
+
case x.WorkflowRun:
|
|
491
491
|
return bn(e, t, o);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
function Sn(e) {
|
|
495
495
|
switch (e.type) {
|
|
496
|
-
case
|
|
496
|
+
case x.Collection:
|
|
497
497
|
return Uo;
|
|
498
|
-
case
|
|
499
|
-
return
|
|
500
|
-
case
|
|
498
|
+
case x.Workflow:
|
|
499
|
+
return Bo;
|
|
500
|
+
case x.Step:
|
|
501
501
|
return Xo;
|
|
502
|
-
case
|
|
502
|
+
case x.WorkflowRun:
|
|
503
503
|
return pn;
|
|
504
504
|
}
|
|
505
505
|
}
|
|
@@ -576,16 +576,16 @@ function En(e, t, o, n) {
|
|
|
576
576
|
if (c.blocked)
|
|
577
577
|
return { isError: !1, blocked: !0, note: c.notes.join(" ") };
|
|
578
578
|
const d = await o(r, s);
|
|
579
|
-
return c.notes.length === 0 ||
|
|
579
|
+
return c.notes.length === 0 || !$n(d) ? d : {
|
|
580
580
|
...d,
|
|
581
581
|
note: [d.note, ...c.notes].filter(Boolean).join(" ")
|
|
582
582
|
};
|
|
583
583
|
};
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function $n(e) {
|
|
586
586
|
return e !== null && typeof e == "object" && e.isError === !1;
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function xn(e, t) {
|
|
589
589
|
return {
|
|
590
590
|
name: e.name,
|
|
591
591
|
definition: e.definition,
|
|
@@ -614,18 +614,12 @@ const _n = {
|
|
|
614
614
|
_n
|
|
615
615
|
);
|
|
616
616
|
function ac() {
|
|
617
|
-
return
|
|
617
|
+
return Bt(Rn);
|
|
618
618
|
}
|
|
619
619
|
const qn = p({
|
|
620
620
|
message: i(),
|
|
621
621
|
details: fe().optional()
|
|
622
|
-
})
|
|
623
|
-
p({
|
|
624
|
-
collectionId: i().min(1).describe("Target collection id."),
|
|
625
|
-
workflowId: i().min(1).describe("Target workflow id."),
|
|
626
|
-
stepId: i().min(1).describe("Target step id.")
|
|
627
|
-
});
|
|
628
|
-
const qe = p({
|
|
622
|
+
}), qe = p({
|
|
629
623
|
action: E(["add", "update", "remove"]).describe('Action to perform: "add", "update" or "remove".'),
|
|
630
624
|
approved: R().default(!0)
|
|
631
625
|
}), L = qe.extend({
|
|
@@ -636,23 +630,23 @@ const qe = p({
|
|
|
636
630
|
isError: w(!1),
|
|
637
631
|
blocked: w(!0),
|
|
638
632
|
note: i(),
|
|
639
|
-
data:
|
|
640
|
-
error:
|
|
633
|
+
data: B().optional(),
|
|
634
|
+
error: B().optional()
|
|
641
635
|
});
|
|
642
636
|
function q(e) {
|
|
643
637
|
return Re([
|
|
644
638
|
p({
|
|
645
639
|
isError: w(!0),
|
|
646
640
|
error: qn,
|
|
647
|
-
data:
|
|
648
|
-
blocked:
|
|
641
|
+
data: B().optional(),
|
|
642
|
+
blocked: B().optional()
|
|
649
643
|
}),
|
|
650
644
|
p({
|
|
651
645
|
isError: w(!1),
|
|
652
646
|
data: e,
|
|
653
|
-
error:
|
|
647
|
+
error: B().optional(),
|
|
654
648
|
note: i().optional(),
|
|
655
|
-
blocked:
|
|
649
|
+
blocked: B().optional()
|
|
656
650
|
}),
|
|
657
651
|
Nn
|
|
658
652
|
]);
|
|
@@ -665,7 +659,7 @@ const Un = p({
|
|
|
665
659
|
approvedChanges: A().int().min(0),
|
|
666
660
|
applied: T(Un),
|
|
667
661
|
resultingState: i().optional().describe("Resulting state of the mutated fields after all changes were applied.")
|
|
668
|
-
}),
|
|
662
|
+
}), $t = q(Dn), Wn = "Read structured state from the **active** Replay tab.\n\n**What it does**\n- Returns structured data for the active tab.\n- Read-only: does not open/switch tabs and does not mutate saved or unsaved content.\n- Returns UI-facing tab data (editable fields, configured values, responses/results), not a full OpenAPI schema dump.\n\n**Use when**\n- You need to verify UI state in the active tab after an action (edit, save, execute, rerun, tab switch).\n- You need to inspect request/response/result content as rendered in Replay UI.\n\n**Never use when**\n- You are gathering **initial schema/context** for a request from project assets (OpenAPI/Arazzo); use project-asset lookup with exact ids/coordinates.\n- You need IDs or operation/workflow coordinates from project assets; resolve them via project-asset lookup, not active-tab UI reads.\n- You need a different tab; this tool never changes focus.\n- You need to run a request or change any saved/unsaved tab content; this tool is strictly read-only.\n\n**Input guidance**\n- Treat IDs from `info` as canonical for follow-up actions.\n- Request only needed sections and combine them in one call.\n- Prefer including `info` unless you need only one slice.\n- Sections by tab type:\n - Collection tab: `info`, `workflows`, `sourceDescriptions`.\n - Workflow tab: `info`, `inputs`, `parameters`, `security`, `outputs`, `steps`, `wiring` (every step's security bindings + outputs in one call - inspect or verify multi-step wiring without opening step tabs).\n - Step tab: `info`, `parameters`, `requestBody`, `security`, `outputs`, `successCriteria`, `response`.\n - Workflow run tab: `info`, `result` (status, per-step outcomes, masked bodies; `stepIds` fetches full ones), `severity`.\n- Invalid sections are skipped; if none apply, response falls back to `info`.\n\n**Loop/budget guidance**\n- Read each needed section once per turn.\n- Re-read only after mutation/save, or when you need to inspect new output.\n- If `result` is RUNNING, re-read until the run finishes.", Ln = E([
|
|
669
663
|
"info",
|
|
670
664
|
"workflows",
|
|
671
665
|
"sourceDescriptions",
|
|
@@ -687,12 +681,12 @@ const Un = p({
|
|
|
687
681
|
stepIds: T(i()).min(1).optional().describe(
|
|
688
682
|
"Workflow run tabs only, together with the `result` section: executed step ids to return the full (secret-masked) response body for. Use after the per-step preview proves insufficient."
|
|
689
683
|
)
|
|
690
|
-
}),
|
|
684
|
+
}), Fn = p({
|
|
691
685
|
message: i()
|
|
692
|
-
}),
|
|
686
|
+
}), jn = q(Fn), Bn = {
|
|
693
687
|
description: Wn,
|
|
694
688
|
inputSchema: Mn,
|
|
695
|
-
outputSchema:
|
|
689
|
+
outputSchema: jn,
|
|
696
690
|
needsApproval: !1
|
|
697
691
|
};
|
|
698
692
|
function h(e, t) {
|
|
@@ -716,7 +710,7 @@ function zn(e) {
|
|
|
716
710
|
let c = kn(n, a, { stepIds: t.stepIds }) ?? "Unable to build a summary for the active tab.";
|
|
717
711
|
return s.length > 0 && (c += `
|
|
718
712
|
|
|
719
|
-
(Sections not applicable for this tab type were omitted: ${s.join(", ")}.)`), r.length === 0 && t.sections.length > 0 && (c += "\n\n(No requested sections applied to this tab type; showing `info` instead.)"), t.stepIds?.length && (n.type !==
|
|
713
|
+
(Sections not applicable for this tab type were omitted: ${s.join(", ")}.)`), r.length === 0 && t.sections.length > 0 && (c += "\n\n(No requested sections applied to this tab type; showing `info` instead.)"), t.stepIds?.length && (n.type !== x.WorkflowRun ? c += `
|
|
720
714
|
|
|
721
715
|
(stepIds applies only to workflow run tabs.)` : a.includes("result") || (c += "\n\n(stepIds requires the `result` section.)")), {
|
|
722
716
|
isError: !1,
|
|
@@ -726,7 +720,7 @@ function zn(e) {
|
|
|
726
720
|
}
|
|
727
721
|
const Hn = {
|
|
728
722
|
name: "get_current_tab",
|
|
729
|
-
definition:
|
|
723
|
+
definition: Bn,
|
|
730
724
|
createExecutor: (e) => zn(e.getActiveTabDetailedData)
|
|
731
725
|
}, Gn = `Read top-level metadata of a loaded OpenAPI document in the current Replay project.
|
|
732
726
|
|
|
@@ -783,7 +777,7 @@ const Hn = {
|
|
|
783
777
|
definitions: "Use the search tool to read reusable schemas.",
|
|
784
778
|
parameters: "Use the search tool to read reusable parameters.",
|
|
785
779
|
responses: "Use the search tool to read reusable responses."
|
|
786
|
-
},
|
|
780
|
+
}, xt = ["id", "srcType", "fileDependencies"], he = [
|
|
787
781
|
{
|
|
788
782
|
name: "securitySchemes",
|
|
789
783
|
sources: ["components.securitySchemes", "securityDefinitions"]
|
|
@@ -815,7 +809,7 @@ function Ze(e) {
|
|
|
815
809
|
o.push({ name: n, hint: se[n] });
|
|
816
810
|
continue;
|
|
817
811
|
}
|
|
818
|
-
|
|
812
|
+
xt.includes(n) || sr.has(n) || t.push(et(n, r));
|
|
819
813
|
}
|
|
820
814
|
for (const n of he) {
|
|
821
815
|
const r = _t(e, n);
|
|
@@ -901,7 +895,7 @@ function ur(e, t, o) {
|
|
|
901
895
|
`"${t}" is not available from this tool. ${se[t]}`,
|
|
902
896
|
{ field: t }
|
|
903
897
|
);
|
|
904
|
-
if (
|
|
898
|
+
if (xt.includes(t))
|
|
905
899
|
return h(`"${t}" is not an OpenAPI metadata field.`, { field: t });
|
|
906
900
|
const r = dr.get(t);
|
|
907
901
|
if (r !== void 0)
|
|
@@ -1050,10 +1044,10 @@ const fr = {
|
|
|
1050
1044
|
collectionId: i().optional(),
|
|
1051
1045
|
workflowId: i().optional(),
|
|
1052
1046
|
stepId: i().optional()
|
|
1053
|
-
}),
|
|
1047
|
+
}), $r = q(Er), xr = {
|
|
1054
1048
|
description: mr,
|
|
1055
1049
|
inputSchema: Ar,
|
|
1056
|
-
outputSchema:
|
|
1050
|
+
outputSchema: $r,
|
|
1057
1051
|
needsApproval: (e) => e.payload.action === "delete_collection" || e.payload.action === "delete_workflow" || e.payload.action === "delete_step" || e.payload.action === "save_tab_to_collection"
|
|
1058
1052
|
};
|
|
1059
1053
|
function rt(e, t, o) {
|
|
@@ -1144,9 +1138,9 @@ function qr(e) {
|
|
|
1144
1138
|
case "delete_step":
|
|
1145
1139
|
return Mr(t.payload, e);
|
|
1146
1140
|
case "move_step":
|
|
1147
|
-
return
|
|
1141
|
+
return Fr(t.payload, e);
|
|
1148
1142
|
case "save_tab_to_collection":
|
|
1149
|
-
return
|
|
1143
|
+
return jr(t.payload, e);
|
|
1150
1144
|
}
|
|
1151
1145
|
};
|
|
1152
1146
|
}
|
|
@@ -1320,7 +1314,7 @@ function Mr(e, { store: t, handleCloseByDataId: o }) {
|
|
|
1320
1314
|
stepId: e.stepId
|
|
1321
1315
|
});
|
|
1322
1316
|
}
|
|
1323
|
-
function
|
|
1317
|
+
function Fr(e, { store: t }) {
|
|
1324
1318
|
const o = {
|
|
1325
1319
|
collectionId: e.collectionId,
|
|
1326
1320
|
workflowId: e.workflowId
|
|
@@ -1354,7 +1348,7 @@ function jr(e, { store: t }) {
|
|
|
1354
1348
|
}
|
|
1355
1349
|
};
|
|
1356
1350
|
}
|
|
1357
|
-
async function
|
|
1351
|
+
async function jr(e, { store: t, attachApiToCollection: o }) {
|
|
1358
1352
|
const n = de(t);
|
|
1359
1353
|
if (!n)
|
|
1360
1354
|
return h("No active tab.");
|
|
@@ -1433,9 +1427,9 @@ function ie(e, t, o) {
|
|
|
1433
1427
|
stepId: e.stepId
|
|
1434
1428
|
});
|
|
1435
1429
|
}
|
|
1436
|
-
const
|
|
1430
|
+
const Br = {
|
|
1437
1431
|
name: "manage_collection",
|
|
1438
|
-
definition:
|
|
1432
|
+
definition: xr,
|
|
1439
1433
|
createExecutor: (e) => qr(e)
|
|
1440
1434
|
}, Yr = `Read, add, or change Replay environments (inputs and server mappings).
|
|
1441
1435
|
|
|
@@ -1647,7 +1641,7 @@ function us(e) {
|
|
|
1647
1641
|
});
|
|
1648
1642
|
}
|
|
1649
1643
|
function ps(e, t) {
|
|
1650
|
-
const o =
|
|
1644
|
+
const o = F(e, t.environment);
|
|
1651
1645
|
if (!o.ok)
|
|
1652
1646
|
return o.result;
|
|
1653
1647
|
const { name: n, env: r } = o, s = bs(r);
|
|
@@ -1661,7 +1655,7 @@ function ps(e, t) {
|
|
|
1661
1655
|
};
|
|
1662
1656
|
}
|
|
1663
1657
|
function fs(e, t) {
|
|
1664
|
-
const o =
|
|
1658
|
+
const o = F(e, t.environment);
|
|
1665
1659
|
if (!o.ok)
|
|
1666
1660
|
return o.result;
|
|
1667
1661
|
const { name: n, env: r } = o, s = ks(r);
|
|
@@ -1675,7 +1669,7 @@ function fs(e, t) {
|
|
|
1675
1669
|
};
|
|
1676
1670
|
}
|
|
1677
1671
|
function ms(e, t) {
|
|
1678
|
-
const o =
|
|
1672
|
+
const o = F(e, t.environment);
|
|
1679
1673
|
if (!o.ok)
|
|
1680
1674
|
return o.result;
|
|
1681
1675
|
const { name: n, env: r } = o, s = r.inputs.find((d) => d.name === t.inputName);
|
|
@@ -1699,7 +1693,7 @@ function ms(e, t) {
|
|
|
1699
1693
|
};
|
|
1700
1694
|
}
|
|
1701
1695
|
function hs(e, t) {
|
|
1702
|
-
const o =
|
|
1696
|
+
const o = F(e, t.environment);
|
|
1703
1697
|
if (!o.ok)
|
|
1704
1698
|
return o.result;
|
|
1705
1699
|
const { name: n, env: r } = o, s = r.inputs.find((l) => l.name === t.name), a = s ? s.isSecret : t.isSecret ?? !1;
|
|
@@ -1718,7 +1712,7 @@ function hs(e, t) {
|
|
|
1718
1712
|
};
|
|
1719
1713
|
}
|
|
1720
1714
|
function ws(e, t) {
|
|
1721
|
-
const o =
|
|
1715
|
+
const o = F(e, t.environment);
|
|
1722
1716
|
if (!o.ok)
|
|
1723
1717
|
return o.result;
|
|
1724
1718
|
const { name: n, env: r } = o;
|
|
@@ -1737,7 +1731,7 @@ function ws(e, t) {
|
|
|
1737
1731
|
});
|
|
1738
1732
|
}
|
|
1739
1733
|
function Is(e, t) {
|
|
1740
|
-
const o =
|
|
1734
|
+
const o = F(e, t.environment);
|
|
1741
1735
|
if (!o.ok)
|
|
1742
1736
|
return o.result;
|
|
1743
1737
|
const { name: n } = o;
|
|
@@ -1761,7 +1755,7 @@ function Is(e, t) {
|
|
|
1761
1755
|
};
|
|
1762
1756
|
}
|
|
1763
1757
|
function ys(e, t) {
|
|
1764
|
-
const o =
|
|
1758
|
+
const o = F(e, t.environment);
|
|
1765
1759
|
if (!o.ok)
|
|
1766
1760
|
return o.result;
|
|
1767
1761
|
const { name: n, env: r } = o;
|
|
@@ -1791,7 +1785,7 @@ function vs(e, t) {
|
|
|
1791
1785
|
function gs(e, t) {
|
|
1792
1786
|
return t ?? e.get(K);
|
|
1793
1787
|
}
|
|
1794
|
-
function
|
|
1788
|
+
function F(e, t) {
|
|
1795
1789
|
const o = gs(e, t), n = we(e, o);
|
|
1796
1790
|
return n ? { ok: !0, name: o, env: n } : {
|
|
1797
1791
|
ok: !1,
|
|
@@ -1868,11 +1862,11 @@ const Ss = {
|
|
|
1868
1862
|
outcome: E(["focused", "opened"]),
|
|
1869
1863
|
activeTabIndex: A().int().nonnegative(),
|
|
1870
1864
|
tabId: i(),
|
|
1871
|
-
tabType: ko(
|
|
1872
|
-
}),
|
|
1865
|
+
tabType: ko(x)
|
|
1866
|
+
}), $s = q(Es), xs = {
|
|
1873
1867
|
description: Cs,
|
|
1874
1868
|
inputSchema: As,
|
|
1875
|
-
outputSchema:
|
|
1869
|
+
outputSchema: $s,
|
|
1876
1870
|
needsApproval: !1
|
|
1877
1871
|
};
|
|
1878
1872
|
function ye({
|
|
@@ -2069,7 +2063,7 @@ function Ut(e, t, o, n) {
|
|
|
2069
2063
|
}
|
|
2070
2064
|
};
|
|
2071
2065
|
}
|
|
2072
|
-
const l =
|
|
2066
|
+
const l = $e(e);
|
|
2073
2067
|
return {
|
|
2074
2068
|
ok: !0,
|
|
2075
2069
|
value: {
|
|
@@ -2120,7 +2114,7 @@ function Us(e, t) {
|
|
|
2120
2114
|
o.workflowId
|
|
2121
2115
|
);
|
|
2122
2116
|
case "open_step":
|
|
2123
|
-
return
|
|
2117
|
+
return Fs(
|
|
2124
2118
|
e,
|
|
2125
2119
|
e.get(b),
|
|
2126
2120
|
t,
|
|
@@ -2129,14 +2123,14 @@ function Us(e, t) {
|
|
|
2129
2123
|
o.stepId
|
|
2130
2124
|
);
|
|
2131
2125
|
case "open_new_request":
|
|
2132
|
-
return
|
|
2126
|
+
return js(e, t, o.requestUrl, o.requestMethod);
|
|
2133
2127
|
default: {
|
|
2134
2128
|
const r = o.action;
|
|
2135
|
-
return
|
|
2129
|
+
return $("Unsupported open_tab action.", { action: r });
|
|
2136
2130
|
}
|
|
2137
2131
|
}
|
|
2138
2132
|
} catch (r) {
|
|
2139
|
-
return
|
|
2133
|
+
return $("Failed to open or focus tab.", {
|
|
2140
2134
|
cause: r instanceof Error ? r.message : String(r)
|
|
2141
2135
|
});
|
|
2142
2136
|
}
|
|
@@ -2144,9 +2138,9 @@ function Us(e, t) {
|
|
|
2144
2138
|
}
|
|
2145
2139
|
function Ds(e, t, o) {
|
|
2146
2140
|
if (o === void 0)
|
|
2147
|
-
return
|
|
2141
|
+
return $("tabIndex is required when action is focus_tab");
|
|
2148
2142
|
const n = e.get(J);
|
|
2149
|
-
return o < 0 || o >= n.length ?
|
|
2143
|
+
return o < 0 || o >= n.length ? $("Invalid tab index.", {
|
|
2150
2144
|
tabIndex: o,
|
|
2151
2145
|
tabCount: n.length
|
|
2152
2146
|
}) : (t.handleTabChange(o), X(e, "focused"));
|
|
@@ -2154,10 +2148,10 @@ function Ds(e, t, o) {
|
|
|
2154
2148
|
function Ws(e, t, o) {
|
|
2155
2149
|
const n = o?.trim();
|
|
2156
2150
|
if (!n)
|
|
2157
|
-
return
|
|
2151
|
+
return $("operationId is required when action is open_operation");
|
|
2158
2152
|
const r = _s(e.get(le), n);
|
|
2159
2153
|
if (!r.ok)
|
|
2160
|
-
return
|
|
2154
|
+
return $(r.message, r.details);
|
|
2161
2155
|
const s = Ns(
|
|
2162
2156
|
Ps(r.value),
|
|
2163
2157
|
t
|
|
@@ -2167,13 +2161,13 @@ function Ws(e, t, o) {
|
|
|
2167
2161
|
function Ls(e, t, o, n) {
|
|
2168
2162
|
const r = n?.trim();
|
|
2169
2163
|
if (!r)
|
|
2170
|
-
return
|
|
2164
|
+
return $("collectionId is required when action is open_collection");
|
|
2171
2165
|
const s = Pt(t, r);
|
|
2172
2166
|
if (!s.ok)
|
|
2173
|
-
return
|
|
2167
|
+
return $(s.message, s.details);
|
|
2174
2168
|
const { collectionId: a } = s.value, l = e.get(J).findIndex((c) => {
|
|
2175
2169
|
const d = c.data;
|
|
2176
|
-
return
|
|
2170
|
+
return xe(d, x.Collection) && d.collectionId === a;
|
|
2177
2171
|
}) !== -1;
|
|
2178
2172
|
return o.openCollectionTab({
|
|
2179
2173
|
collectionId: a,
|
|
@@ -2183,15 +2177,15 @@ function Ls(e, t, o, n) {
|
|
|
2183
2177
|
function Ms(e, t, o, n, r) {
|
|
2184
2178
|
const s = n?.trim(), a = r?.trim();
|
|
2185
2179
|
if (!s)
|
|
2186
|
-
return
|
|
2180
|
+
return $("collectionId is required when action is open_workflow");
|
|
2187
2181
|
if (!a)
|
|
2188
|
-
return
|
|
2182
|
+
return $("workflowId is required when action is open_workflow");
|
|
2189
2183
|
const l = Ne(t, s, a);
|
|
2190
2184
|
if (!l.ok)
|
|
2191
|
-
return
|
|
2185
|
+
return $(l.message, l.details);
|
|
2192
2186
|
const { collectionId: c, workflowId: d } = l.value, u = e.get(J).findIndex((f) => {
|
|
2193
2187
|
const m = f.data;
|
|
2194
|
-
return
|
|
2188
|
+
return xe(m, x.Workflow) && m.workflowId === d && m.collectionId === c;
|
|
2195
2189
|
}) !== -1;
|
|
2196
2190
|
return o.openWorkflowTab({
|
|
2197
2191
|
collectionId: c,
|
|
@@ -2199,14 +2193,14 @@ function Ms(e, t, o, n, r) {
|
|
|
2199
2193
|
activeTabName: vt.WORKFLOW_SETTINGS
|
|
2200
2194
|
}), X(e, u ? "focused" : "opened");
|
|
2201
2195
|
}
|
|
2202
|
-
function
|
|
2196
|
+
function Fs(e, t, o, n, r, s) {
|
|
2203
2197
|
const a = n?.trim(), l = r?.trim(), c = s?.trim();
|
|
2204
2198
|
if (!a)
|
|
2205
|
-
return
|
|
2199
|
+
return $("collectionId is required when action is open_step");
|
|
2206
2200
|
if (!l)
|
|
2207
|
-
return
|
|
2201
|
+
return $("workflowId is required when action is open_step");
|
|
2208
2202
|
if (!c)
|
|
2209
|
-
return
|
|
2203
|
+
return $("stepId is required when action is open_step");
|
|
2210
2204
|
const d = Nt(
|
|
2211
2205
|
t,
|
|
2212
2206
|
a,
|
|
@@ -2214,12 +2208,12 @@ function js(e, t, o, n, r, s) {
|
|
|
2214
2208
|
c
|
|
2215
2209
|
);
|
|
2216
2210
|
if (!d.ok)
|
|
2217
|
-
return
|
|
2211
|
+
return $(d.message, d.details);
|
|
2218
2212
|
const {
|
|
2219
2213
|
collectionId: u,
|
|
2220
2214
|
workflowId: f,
|
|
2221
2215
|
stepId: m
|
|
2222
|
-
} = d.value, g = e.get(J).find(({ data: v }) =>
|
|
2216
|
+
} = d.value, g = e.get(J).find(({ data: v }) => xe(v, x.Step) && v.collectionId === u && v.workflowId === f && v.stepId === m && v.historyId === null) !== void 0;
|
|
2223
2217
|
return o.openStepTabFromCollection({
|
|
2224
2218
|
collectionId: u,
|
|
2225
2219
|
workflowId: f,
|
|
@@ -2227,28 +2221,28 @@ function js(e, t, o, n, r, s) {
|
|
|
2227
2221
|
state: yt.Normal
|
|
2228
2222
|
}), X(e, g ? "focused" : "opened");
|
|
2229
2223
|
}
|
|
2230
|
-
function
|
|
2224
|
+
function js(e, t, o, n) {
|
|
2231
2225
|
return o ? t.openStepTabFromXOperation({
|
|
2232
2226
|
method: n ?? "GET",
|
|
2233
2227
|
url: o
|
|
2234
2228
|
}) : t.handleNewTabOpen(), X(e, "opened");
|
|
2235
2229
|
}
|
|
2236
2230
|
function X(e, t) {
|
|
2237
|
-
const o =
|
|
2238
|
-
return n ?
|
|
2231
|
+
const o = $e(e), n = de(e);
|
|
2232
|
+
return n ? Bs(t, o, n.id, n.data.type) : $("No active tab after navigation.", { activeTabIndex: o });
|
|
2239
2233
|
}
|
|
2240
|
-
function
|
|
2234
|
+
function $(e, t) {
|
|
2241
2235
|
return {
|
|
2242
2236
|
isError: !0,
|
|
2243
2237
|
error: { message: e, ...t !== void 0 ? { details: t } : {} }
|
|
2244
2238
|
};
|
|
2245
2239
|
}
|
|
2246
|
-
function
|
|
2240
|
+
function Bs(e, t, o, n) {
|
|
2247
2241
|
return { isError: !1, data: { outcome: e, activeTabIndex: t, tabId: o, tabType: n } };
|
|
2248
2242
|
}
|
|
2249
2243
|
const Ys = {
|
|
2250
2244
|
name: "open_tab",
|
|
2251
|
-
definition:
|
|
2245
|
+
definition: xs,
|
|
2252
2246
|
createExecutor: (e) => Us(e.store, e.context)
|
|
2253
2247
|
}, zs = `Report a short milestone status for the current task. UI-only: shows a one-line status above the next action; performs no workflow action and returns only acknowledgment.
|
|
2254
2248
|
|
|
@@ -2359,7 +2353,7 @@ const ea = [
|
|
|
2359
2353
|
};
|
|
2360
2354
|
function ia(e, t) {
|
|
2361
2355
|
return async (n, r) => {
|
|
2362
|
-
const s =
|
|
2356
|
+
const s = $e(t), a = de(t);
|
|
2363
2357
|
if (!a || !Z(a))
|
|
2364
2358
|
return h("Active tab is not a step tab", {
|
|
2365
2359
|
tabType: a?.data?.type
|
|
@@ -2687,7 +2681,7 @@ function Ea(e, t) {
|
|
|
2687
2681
|
}
|
|
2688
2682
|
return null;
|
|
2689
2683
|
}
|
|
2690
|
-
function
|
|
2684
|
+
function $a(e, t) {
|
|
2691
2685
|
const { type: o, apiId: n, operationId: r, path: s, method: a } = t;
|
|
2692
2686
|
if (!n) return [];
|
|
2693
2687
|
const l = e.find((g) => g.id === n);
|
|
@@ -2709,7 +2703,7 @@ function xa(e, t) {
|
|
|
2709
2703
|
apiSecurity: l.security
|
|
2710
2704
|
}).payload, score: 1 }] : [];
|
|
2711
2705
|
}
|
|
2712
|
-
function
|
|
2706
|
+
function xa(e, t) {
|
|
2713
2707
|
const { type: o, collectionId: n, workflowId: r, stepId: s } = t;
|
|
2714
2708
|
if (!n) return [];
|
|
2715
2709
|
const a = e.find((u) => u.id === n);
|
|
@@ -2724,7 +2718,7 @@ function $a(e, t) {
|
|
|
2724
2718
|
const f = u.steps?.find((m) => (m.stepId ?? "") === s);
|
|
2725
2719
|
return f ? [
|
|
2726
2720
|
{
|
|
2727
|
-
|
|
2721
|
+
...$o({
|
|
2728
2722
|
collectionId: n,
|
|
2729
2723
|
collectionTitle: l,
|
|
2730
2724
|
workflowId: r,
|
|
@@ -2739,7 +2733,7 @@ function $a(e, t) {
|
|
|
2739
2733
|
const u = a.workflows?.find((f) => (f.workflowId ?? "") === r);
|
|
2740
2734
|
return u ? [
|
|
2741
2735
|
{
|
|
2742
|
-
|
|
2736
|
+
...xo({ collectionId: n, collectionTitle: l, workflow: u }).payload,
|
|
2743
2737
|
score: 1
|
|
2744
2738
|
}
|
|
2745
2739
|
] : [];
|
|
@@ -2748,7 +2742,7 @@ function $a(e, t) {
|
|
|
2748
2742
|
}
|
|
2749
2743
|
function _a(e, t) {
|
|
2750
2744
|
const o = e.get(le), n = e.get(b), { type: r } = t;
|
|
2751
|
-
return r === "api" || r === "api_operation" ?
|
|
2745
|
+
return r === "api" || r === "api_operation" ? $a(o, t) : r === "collection" || r === "workflow" || r === "step" ? xa(n, t) : [];
|
|
2752
2746
|
}
|
|
2753
2747
|
function Ra(e, t) {
|
|
2754
2748
|
return [
|
|
@@ -2796,15 +2790,15 @@ const Wa = [
|
|
|
2796
2790
|
definition: Sa,
|
|
2797
2791
|
guards: Wa,
|
|
2798
2792
|
createExecutor: (e) => Oa(e.store)
|
|
2799
|
-
}, Ma = "Update security (x-security) for one or more Replay steps.\n\n**What it does**\n- Applies atomic add/update/remove changes to step security entries.\n- `add` UPSERTS by scheme identity: an existing entry with the same `schemeId` (or same `type` when `schemeId` is omitted) - including the auto-seeded entry created when the step was linked to its operation - is updated in place, never duplicated. Repeated identical wiring converges.\n- The result echoes each affected step's resulting security in `resultingState`; confirm from it, do NOT re-read tabs after mutation.\n- Empty security list falls back to No Auth.\n\n**Targeting**\n- Saved step: `collectionId` + `workflowId` + `stepId`.\n- Multi-step batch: set `changes[].stepId` per change (top-level `stepId` is the default and may be empty); wire a whole chain in ONE call.\n- Unsaved draft tab on focus: all three ids empty strings, no per-change stepId.\n\n**Choosing the type (match the OpenAPI scheme)**\n- http bearer -> `JWT` (`data.token`). A plain bearer token is NOT OAuth 2.0.\n- http basic -> `Basic Auth`, http digest -> `Digest Auth` (`data.username`, `data.password`).\n- apiKey -> `API key` (`data.name`, `data.key`, `data.location`); keep `data.key`'s `$inputs.<name>` segment identical to `data.name`.\n- oauth2 (grant-based flows only) -> `OAuth 2.0`; `data.grantType` is REQUIRED with flow values (`accessToken`, `clientId`, ...): `clientCredentials`, `clientCredentialsWithJwtAssertion`, `authorizationCode`, `authorizationCodeWithPkce`, `implicit`, `password`.\n- openIdConnect -> `OpenID Connect` (`data.openIdConnectUrl` plus OAuth2 fields).\n- `add` with a `schemeId` existing under a different type is rejected; use `update` at that index only to intentionally change a type.\n\n**Change shapes**\n- add/update: `{ action, stepId?, index?, type, schemeId?, data? }`; pass `schemeId` whenever known (it is the upsert identity), `index` is required for update.\n- remove: `{ action: \"remove\", stepId?, index }`.",
|
|
2793
|
+
}, Ma = "Update security (x-security) for one or more Replay steps.\n\n**What it does**\n- Applies atomic add/update/remove changes to step security entries.\n- `add` UPSERTS by scheme identity: an existing entry with the same `schemeId` (or same `type` when `schemeId` is omitted) - including the auto-seeded entry created when the step was linked to its operation - is updated in place, never duplicated. Repeated identical wiring converges.\n- The result echoes each affected step's resulting security in `resultingState`; confirm from it, do NOT re-read tabs after mutation.\n- Empty security list falls back to No Auth.\n\n**Targeting**\n- Saved step: `collectionId` + `workflowId` + `stepId`.\n- Multi-step batch: set `changes[].stepId` per change (top-level `stepId` is the default and may be empty); wire a whole chain in ONE call.\n- Unsaved draft tab on focus: all three ids empty strings, no per-change stepId.\n\n**Choosing the type (match the OpenAPI scheme)**\n- http bearer -> `JWT` (`data.token`). A plain bearer token is NOT OAuth 2.0.\n- http basic -> `Basic Auth`, http digest -> `Digest Auth` (`data.username`, `data.password`).\n- apiKey -> `API key` (`data.name`, `data.key`, `data.location`); keep `data.key`'s `$inputs.<name>` segment identical to `data.name`.\n- oauth2 (grant-based flows only) -> `OAuth 2.0`; `data.grantType` is REQUIRED with flow values (`accessToken`, `clientId`, ...): `clientCredentials`, `clientCredentialsWithJwtAssertion`, `authorizationCode`, `authorizationCodeWithPkce`, `implicit`, `password`.\n- openIdConnect -> `OpenID Connect` (`data.openIdConnectUrl` plus OAuth2 fields).\n- `add` with a `schemeId` existing under a different type is rejected; use `update` at that index only to intentionally change a type.\n\n**Change shapes**\n- add/update: `{ action, stepId?, index?, type, schemeId?, data? }`; pass `schemeId` whenever known (it is the upsert identity), `index` is required for update.\n- remove: `{ action: \"remove\", stepId?, index }`.", Fa = [
|
|
2800
2794
|
"clientCredentials",
|
|
2801
2795
|
"clientCredentialsWithJwtAssertion",
|
|
2802
2796
|
"authorizationCode",
|
|
2803
2797
|
"authorizationCodeWithPkce",
|
|
2804
2798
|
"implicit",
|
|
2805
2799
|
"password"
|
|
2806
|
-
],
|
|
2807
|
-
grantType: E(
|
|
2800
|
+
], ja = {
|
|
2801
|
+
grantType: E(Fa).optional().describe("OAuth2 grant type."),
|
|
2808
2802
|
clientId: i().optional(),
|
|
2809
2803
|
clientSecret: i().optional(),
|
|
2810
2804
|
tokenUrl: i().optional(),
|
|
@@ -2813,7 +2807,7 @@ const Wa = [
|
|
|
2813
2807
|
accessToken: i().optional(),
|
|
2814
2808
|
username: i().optional().describe("For password grant type."),
|
|
2815
2809
|
password: i().optional().describe("For password grant type.")
|
|
2816
|
-
},
|
|
2810
|
+
}, Ba = p({
|
|
2817
2811
|
username: i().optional(),
|
|
2818
2812
|
password: i().optional()
|
|
2819
2813
|
}).strict(), Ya = p({
|
|
@@ -2830,38 +2824,38 @@ const Wa = [
|
|
|
2830
2824
|
"Secret value or `$inputs.<name>` / `{$inputs.<name>}`. The `<name>` segment must be identical to `data.name` (OpenAPI apiKey `name`, e.g. accessToken). Wrong example: `data.name` accessToken but key `$inputs.UserCookie` (UserCookie is the securitySchemes ref, not the cookie name)."
|
|
2831
2825
|
)
|
|
2832
2826
|
}).strict(), Dt = p({
|
|
2833
|
-
...
|
|
2827
|
+
...ja
|
|
2834
2828
|
}).strict(), Ga = Dt.extend({
|
|
2835
2829
|
openIdConnectUrl: i().optional(),
|
|
2836
2830
|
userInfoUrl: i().optional()
|
|
2837
2831
|
}).strict(), Wt = i().optional().describe(
|
|
2838
2832
|
"Target step id for this change. Overrides the top-level stepId; use to batch changes for several steps of the same workflow in one call."
|
|
2839
|
-
),
|
|
2833
|
+
), j = Pn.extend({
|
|
2840
2834
|
action: E(["add", "update"]),
|
|
2841
2835
|
schemeId: i().optional(),
|
|
2842
2836
|
stepId: Wt
|
|
2843
2837
|
}), Va = me("type", [
|
|
2844
|
-
|
|
2838
|
+
j.extend({
|
|
2845
2839
|
type: w(k.BasicAuth),
|
|
2846
|
-
data:
|
|
2840
|
+
data: Ba.optional()
|
|
2847
2841
|
}).strict(),
|
|
2848
|
-
|
|
2842
|
+
j.extend({
|
|
2849
2843
|
type: w(k.DigestAuth),
|
|
2850
2844
|
data: Ya.optional()
|
|
2851
2845
|
}).strict(),
|
|
2852
|
-
|
|
2846
|
+
j.extend({
|
|
2853
2847
|
type: w(k.JWT),
|
|
2854
2848
|
data: za.optional()
|
|
2855
2849
|
}).strict(),
|
|
2856
|
-
|
|
2850
|
+
j.extend({
|
|
2857
2851
|
type: w(k.APIKey),
|
|
2858
2852
|
data: Ha.optional()
|
|
2859
2853
|
}).strict(),
|
|
2860
|
-
|
|
2854
|
+
j.extend({
|
|
2861
2855
|
type: w(k.OAuth2),
|
|
2862
2856
|
data: Dt.optional()
|
|
2863
2857
|
}).strict(),
|
|
2864
|
-
|
|
2858
|
+
j.extend({
|
|
2865
2859
|
type: w(k.OpenIDConnect),
|
|
2866
2860
|
data: Ga.optional()
|
|
2867
2861
|
}).strict()
|
|
@@ -2889,7 +2883,7 @@ const Wa = [
|
|
|
2889
2883
|
message: "Provide collectionId and workflowId plus a stepId for every change (top-level or per-change), or all empty ids for the focused unsaved request tab.",
|
|
2890
2884
|
path: ["collectionId"]
|
|
2891
2885
|
});
|
|
2892
|
-
}), Xa =
|
|
2886
|
+
}), Xa = $t, Za = {
|
|
2893
2887
|
description: Ma,
|
|
2894
2888
|
inputSchema: Qa,
|
|
2895
2889
|
outputSchema: Xa,
|
|
@@ -2932,7 +2926,7 @@ function at(e, t) {
|
|
|
2932
2926
|
function it(e, t) {
|
|
2933
2927
|
const o = Object.entries(t);
|
|
2934
2928
|
for (const [s, a] of o)
|
|
2935
|
-
s === "grantType" && typeof a == "string" &&
|
|
2929
|
+
s === "grantType" && typeof a == "string" && je[a] && (e.grantType = je[a]);
|
|
2936
2930
|
const n = e[e.grantType], r = new Set(Object.keys(po[e.grantType]));
|
|
2937
2931
|
for (const [s, a] of o)
|
|
2938
2932
|
s !== "grantType" && a !== void 0 && r.has(s) && (n[s] = a);
|
|
@@ -3025,7 +3019,7 @@ function ii(e, t, o) {
|
|
|
3025
3019
|
ok: !1,
|
|
3026
3020
|
message: `grantType is required when adding ${c.type} security with flow values${o}. For a plain http/bearer token use type "${k.JWT}" with data.token instead.`
|
|
3027
3021
|
};
|
|
3028
|
-
const g = be(
|
|
3022
|
+
const g = be(Fe(), c);
|
|
3029
3023
|
n = f ? [g] : [...n, g], r.push(
|
|
3030
3024
|
y(
|
|
3031
3025
|
"applied",
|
|
@@ -3061,7 +3055,7 @@ function ii(e, t, o) {
|
|
|
3061
3055
|
for (let u = 0; u < d; u++)
|
|
3062
3056
|
r.push(y("applied"));
|
|
3063
3057
|
}
|
|
3064
|
-
return n.length === 0 && (n = [
|
|
3058
|
+
return n.length === 0 && (n = [Fe()]), { ok: !0, security: n, applied: r };
|
|
3065
3059
|
}
|
|
3066
3060
|
function ci(e) {
|
|
3067
3061
|
return async (t) => {
|
|
@@ -3203,7 +3197,7 @@ const li = {
|
|
|
3203
3197
|
message: "Provide all three ids for a saved step, or three empty strings for the focused unsaved request tab.",
|
|
3204
3198
|
path: ["collectionId"]
|
|
3205
3199
|
});
|
|
3206
|
-
}), Ti =
|
|
3200
|
+
}), Ti = $t, Ci = {
|
|
3207
3201
|
description: di,
|
|
3208
3202
|
inputSchema: Si,
|
|
3209
3203
|
outputSchema: Ti,
|
|
@@ -3318,7 +3312,7 @@ function Ei(e, { readStep: t, updateOutputs: o }) {
|
|
|
3318
3312
|
return e.id ? De(o, e.id, Se) ? y("applied") : y("failed", `Output with id '${e.id}' not found.`) : y("failed", "Failed output remove because id is missing.");
|
|
3319
3313
|
}
|
|
3320
3314
|
}
|
|
3321
|
-
function
|
|
3315
|
+
function $i(e, { updateSuccessCriteria: t }) {
|
|
3322
3316
|
switch (e.action) {
|
|
3323
3317
|
case _.ADD: {
|
|
3324
3318
|
if (!e.data)
|
|
@@ -3375,7 +3369,7 @@ function xi(e, { updateSuccessCriteria: t }) {
|
|
|
3375
3369
|
}
|
|
3376
3370
|
}
|
|
3377
3371
|
const ut = { method: "GET", url: "" };
|
|
3378
|
-
function
|
|
3372
|
+
function xi(e) {
|
|
3379
3373
|
return async (t) => {
|
|
3380
3374
|
const { changes: o, collectionId: n, workflowId: r, stepId: s } = t, a = Lt(t), l = Ut(e, n, r, s);
|
|
3381
3375
|
if (!l.ok)
|
|
@@ -3450,7 +3444,7 @@ function $i(e) {
|
|
|
3450
3444
|
g.push(Ei(I, f));
|
|
3451
3445
|
break;
|
|
3452
3446
|
case "successCriteria":
|
|
3453
|
-
g.push(
|
|
3447
|
+
g.push($i(I, f));
|
|
3454
3448
|
break;
|
|
3455
3449
|
}
|
|
3456
3450
|
const v = o.some((I) => I.field === "outputs");
|
|
@@ -3470,7 +3464,7 @@ function $i(e) {
|
|
|
3470
3464
|
const _i = {
|
|
3471
3465
|
name: "update_step",
|
|
3472
3466
|
definition: Ci,
|
|
3473
|
-
createExecutor: (e) =>
|
|
3467
|
+
createExecutor: (e) => xi(e.store)
|
|
3474
3468
|
}, Ri = `Search the public web via a nested agent and return a consolidated summary.
|
|
3475
3469
|
|
|
3476
3470
|
**What it does**
|
|
@@ -3529,7 +3523,7 @@ function Mi(e) {
|
|
|
3529
3523
|
message: await To({
|
|
3530
3524
|
model: o,
|
|
3531
3525
|
system: Li(),
|
|
3532
|
-
prompt:
|
|
3526
|
+
prompt: Fi(n),
|
|
3533
3527
|
tools: t,
|
|
3534
3528
|
toolChoice: "required",
|
|
3535
3529
|
stopWhen: Co("web_search"),
|
|
@@ -3546,7 +3540,7 @@ function Mi(e) {
|
|
|
3546
3540
|
}
|
|
3547
3541
|
};
|
|
3548
3542
|
}
|
|
3549
|
-
function
|
|
3543
|
+
function Fi(e) {
|
|
3550
3544
|
return C([
|
|
3551
3545
|
//
|
|
3552
3546
|
"[URL]",
|
|
@@ -3556,11 +3550,11 @@ function ji(e) {
|
|
|
3556
3550
|
e.task
|
|
3557
3551
|
]);
|
|
3558
3552
|
}
|
|
3559
|
-
const
|
|
3553
|
+
const ji = {
|
|
3560
3554
|
name: "web_search",
|
|
3561
3555
|
definition: Ni,
|
|
3562
3556
|
createExecutor: (e) => Mi(e.model)
|
|
3563
|
-
},
|
|
3557
|
+
}, Ft = [
|
|
3564
3558
|
Ys,
|
|
3565
3559
|
ta,
|
|
3566
3560
|
da,
|
|
@@ -3569,18 +3563,18 @@ const Bi = {
|
|
|
3569
3563
|
li,
|
|
3570
3564
|
_i,
|
|
3571
3565
|
Hn,
|
|
3572
|
-
|
|
3566
|
+
Br,
|
|
3573
3567
|
Ss,
|
|
3574
|
-
|
|
3568
|
+
ji,
|
|
3575
3569
|
fr
|
|
3576
3570
|
];
|
|
3577
|
-
function
|
|
3578
|
-
return
|
|
3571
|
+
function Bi(e) {
|
|
3572
|
+
return Ft.some((t) => t.name === e);
|
|
3579
3573
|
}
|
|
3580
3574
|
function ic(e, t) {
|
|
3581
|
-
for (const o of
|
|
3575
|
+
for (const o of Ft)
|
|
3582
3576
|
e.register(
|
|
3583
|
-
|
|
3577
|
+
xn(
|
|
3584
3578
|
o,
|
|
3585
3579
|
t[o.name]
|
|
3586
3580
|
)
|
|
@@ -3588,7 +3582,7 @@ function ic(e, t) {
|
|
|
3588
3582
|
}
|
|
3589
3583
|
function Yi(e) {
|
|
3590
3584
|
const t = e.startsWith("tool-") ? e.slice(5) : e;
|
|
3591
|
-
return
|
|
3585
|
+
return Bi(t) ? t : void 0;
|
|
3592
3586
|
}
|
|
3593
3587
|
function zi(e, t) {
|
|
3594
3588
|
return `${e}::${t}`;
|
|
@@ -3602,15 +3596,15 @@ function Le(e) {
|
|
|
3602
3596
|
function Hi(e) {
|
|
3603
3597
|
return e.state === "output-denied" ? !0 : e.state === "output-available" && e.approval != null;
|
|
3604
3598
|
}
|
|
3605
|
-
function
|
|
3599
|
+
function jt(e) {
|
|
3606
3600
|
return e.parts.some((t) => We(t) && Le(t));
|
|
3607
3601
|
}
|
|
3608
3602
|
function cc(e) {
|
|
3609
|
-
return e.some(
|
|
3603
|
+
return e.some(jt);
|
|
3610
3604
|
}
|
|
3611
3605
|
function lc(e) {
|
|
3612
3606
|
return e.map(
|
|
3613
|
-
(t) =>
|
|
3607
|
+
(t) => jt(t) ? { ...t, parts: t.parts.map(Gi) } : t
|
|
3614
3608
|
);
|
|
3615
3609
|
}
|
|
3616
3610
|
function Gi(e) {
|
|
@@ -3731,7 +3725,7 @@ export {
|
|
|
3731
3725
|
re as L,
|
|
3732
3726
|
rc as T,
|
|
3733
3727
|
Hn as a,
|
|
3734
|
-
|
|
3728
|
+
Br as b,
|
|
3735
3729
|
li as c,
|
|
3736
3730
|
ya as d,
|
|
3737
3731
|
da as e,
|
|
@@ -3752,7 +3746,7 @@ export {
|
|
|
3752
3746
|
nc as t,
|
|
3753
3747
|
_i as u,
|
|
3754
3748
|
We as v,
|
|
3755
|
-
|
|
3749
|
+
ji as w,
|
|
3756
3750
|
Le as x,
|
|
3757
3751
|
ei as y,
|
|
3758
3752
|
Rs as z
|