@w6w/embed 0.2.1 → 0.2.11

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.
Files changed (119) hide show
  1. package/dist/{ConfirmModal-RLbZT5_k.js → ConfirmModal-BE-SdX-O.js} +53 -49
  2. package/dist/{ConfirmModal-RLbZT5_k.js.map → ConfirmModal-BE-SdX-O.js.map} +1 -1
  3. package/dist/{CreateFunctionModal-DRsFx-FB.js → CreateFunctionModal-D6CQLpa_.js} +25 -25
  4. package/dist/{CreateFunctionModal-DRsFx-FB.js.map → CreateFunctionModal-D6CQLpa_.js.map} +1 -1
  5. package/dist/{DocumentFormModal-BExK1V-B.js → DocumentFormModal-YauVdolr.js} +5 -5
  6. package/dist/{DocumentFormModal-BExK1V-B.js.map → DocumentFormModal-YauVdolr.js.map} +1 -1
  7. package/dist/{ImportSpecModal-BDQIf6rg.js → ImportSpecModal-B7qd1Km2.js} +3 -3
  8. package/dist/{ImportSpecModal-BDQIf6rg.js.map → ImportSpecModal-B7qd1Km2.js.map} +1 -1
  9. package/dist/ModelRoutesManager-BGESQahw.js +345 -0
  10. package/dist/ModelRoutesManager-BGESQahw.js.map +1 -0
  11. package/dist/WorkflowEditor-CwvmAGp2.js +925 -0
  12. package/dist/WorkflowEditor-CwvmAGp2.js.map +1 -0
  13. package/dist/{apps-1FNUwbGv.js → apps-CboASBKr.js} +14 -14
  14. package/dist/{apps-1FNUwbGv.js.map → apps-CboASBKr.js.map} +1 -1
  15. package/dist/{callables-3mFrMVG_.js → callables-tOlflvbl.js} +11 -11
  16. package/dist/{callables-3mFrMVG_.js.map → callables-tOlflvbl.js.map} +1 -1
  17. package/dist/chrome/ConfirmModal.d.ts +4 -1
  18. package/dist/chrome/workspace.d.ts +4 -0
  19. package/dist/{coerce-input-BicYr7nc.js → coerce-input-DttlcSdO.js} +70 -58
  20. package/dist/coerce-input-DttlcSdO.js.map +1 -0
  21. package/dist/connections-D7cgXhDS.js +119 -0
  22. package/dist/connections-D7cgXhDS.js.map +1 -0
  23. package/dist/credentials-DaQU3Ca_.js +171 -0
  24. package/dist/credentials-DaQU3Ca_.js.map +1 -0
  25. package/dist/document-sources-UCwe8x77.js +91 -0
  26. package/dist/document-sources-UCwe8x77.js.map +1 -0
  27. package/dist/draft.mjs +1 -1
  28. package/dist/editor/BindingBanner.d.ts +13 -0
  29. package/dist/editor/CallableEditorFrame.d.ts +7 -0
  30. package/dist/editor/EndpointCards.d.ts +4 -1
  31. package/dist/editor/PublishControl.d.ts +19 -0
  32. package/dist/editor/TargetSelector.d.ts +15 -0
  33. package/dist/editor/TargetSelector.types.d.ts +2 -0
  34. package/dist/editor/definition.d.ts +2 -0
  35. package/dist/{editor-apps-BdenSV1o.js → editor-apps-BUZWld-m.js} +5 -5
  36. package/dist/{editor-apps-BdenSV1o.js.map → editor-apps-BUZWld-m.js.map} +1 -1
  37. package/dist/{editor-tools-RxmY5iyi.js → editor-tools-B_Lfx3kw.js} +11 -11
  38. package/dist/editor-tools-B_Lfx3kw.js.map +1 -0
  39. package/dist/editor.mjs +1 -1
  40. package/dist/editors.mjs +768 -621
  41. package/dist/editors.mjs.map +1 -1
  42. package/dist/{endpoints-B2ynbZo-.js → endpoints-DSRo1Lc5.js} +113 -107
  43. package/dist/endpoints-DSRo1Lc5.js.map +1 -0
  44. package/dist/fields-DvS8XZFc.js +21 -0
  45. package/dist/fields-DvS8XZFc.js.map +1 -0
  46. package/dist/forms/ModelBudgetsManager.d.ts +9 -0
  47. package/dist/forms/ModelRoutesManager.d.ts +14 -0
  48. package/dist/forms.d.ts +4 -0
  49. package/dist/forms.mjs +611 -212
  50. package/dist/forms.mjs.map +1 -1
  51. package/dist/index.mjs +119 -112
  52. package/dist/index.mjs.map +1 -1
  53. package/dist/lib/binding-problems.d.ts +38 -0
  54. package/dist/lib/code-rail.d.ts +4 -2
  55. package/dist/lib/index.d.ts +1 -0
  56. package/dist/lib/invoke-error.d.ts +1 -0
  57. package/dist/lib/sdk-snippets.d.ts +1 -1
  58. package/dist/lib/target-fields.d.ts +8 -0
  59. package/dist/lib/trigger-preview.d.ts +1 -0
  60. package/dist/lib/workflow-live-run.d.ts +9 -2
  61. package/dist/lib/workflow-nodes.d.ts +5 -0
  62. package/dist/lib/workflow-validity.d.ts +1 -0
  63. package/dist/lib.mjs +72 -70
  64. package/dist/lists/ConnectionDependents.d.ts +31 -0
  65. package/dist/lists/ConnectionDetail.d.ts +4 -1
  66. package/dist/lists/ConnectionList.d.ts +4 -1
  67. package/dist/lists/CredentialDetail.d.ts +15 -0
  68. package/dist/lists/CredentialList.d.ts +14 -0
  69. package/dist/lists/ModelCatalog.d.ts +12 -0
  70. package/dist/lists/ModelUsage.d.ts +12 -0
  71. package/dist/lists.d.ts +8 -0
  72. package/dist/lists.mjs +1322 -604
  73. package/dist/lists.mjs.map +1 -1
  74. package/dist/models-bAayQPJ_.js +270 -0
  75. package/dist/models-bAayQPJ_.js.map +1 -0
  76. package/dist/{project-context-BiCjv_E3.js → project-context-Tvp-La7A.js} +3 -3
  77. package/dist/{project-context-BiCjv_E3.js.map → project-context-Tvp-La7A.js.map} +1 -1
  78. package/dist/rail.mjs +4 -4
  79. package/dist/repos/agents-studio-agents.d.ts +52 -0
  80. package/dist/repos/agents-studio-assets.d.ts +68 -0
  81. package/dist/repos/connections.d.ts +30 -12
  82. package/dist/repos/credentials.d.ts +83 -0
  83. package/dist/repos/endpoints.d.ts +9 -3
  84. package/dist/repos/fields.d.ts +34 -0
  85. package/dist/repos/functions.d.ts +7 -5
  86. package/dist/repos/index.d.ts +5 -0
  87. package/dist/repos/models.d.ts +289 -0
  88. package/dist/repos.mjs +613 -176
  89. package/dist/repos.mjs.map +1 -1
  90. package/dist/{slug-C4ktDPdy.js → slug-BVdgiP_L.js} +64 -60
  91. package/dist/slug-BVdgiP_L.js.map +1 -0
  92. package/dist/{spec-export-Cf3VQSQS.js → spec-export-CBbloO_n.js} +7 -7
  93. package/dist/{spec-export-Cf3VQSQS.js.map → spec-export-CBbloO_n.js.map} +1 -1
  94. package/dist/{spec-import-CjmxyZDR.js → spec-import-CW6R_Wk1.js} +160 -156
  95. package/dist/spec-import-CW6R_Wk1.js.map +1 -0
  96. package/dist/theme-context-E2ZhlXDX.js +6 -0
  97. package/dist/theme-context-E2ZhlXDX.js.map +1 -0
  98. package/dist/theme-context.d.ts +2 -0
  99. package/dist/trigger-preview-DKxfjzUY.js +145 -0
  100. package/dist/trigger-preview-DKxfjzUY.js.map +1 -0
  101. package/dist/{use-callable-draft-zHLpcr-b.js → use-callable-draft-DsALnSfF.js} +22 -22
  102. package/dist/{use-callable-draft-zHLpcr-b.js.map → use-callable-draft-DsALnSfF.js.map} +1 -1
  103. package/dist/{workflow-blank-DyL3_RUA.js → workflow-blank-DFpGObrn.js} +6 -6
  104. package/dist/{workflow-blank-DyL3_RUA.js.map → workflow-blank-DFpGObrn.js.map} +1 -1
  105. package/package.json +1 -1
  106. package/src/styles.css +2 -6
  107. package/dist/WorkflowEditor-DlbVv6Fs.js +0 -854
  108. package/dist/WorkflowEditor-DlbVv6Fs.js.map +0 -1
  109. package/dist/coerce-input-BicYr7nc.js.map +0 -1
  110. package/dist/connections-CjjYeRqb.js +0 -78
  111. package/dist/connections-CjjYeRqb.js.map +0 -1
  112. package/dist/document-sources-C0grrtdq.js +0 -86
  113. package/dist/document-sources-C0grrtdq.js.map +0 -1
  114. package/dist/editor-tools-RxmY5iyi.js.map +0 -1
  115. package/dist/endpoints-B2ynbZo-.js.map +0 -1
  116. package/dist/slug-C4ktDPdy.js.map +0 -1
  117. package/dist/spec-import-CjmxyZDR.js.map +0 -1
  118. package/dist/trigger-preview-VPkrryDl.js +0 -120
  119. package/dist/trigger-preview-VPkrryDl.js.map +0 -1
package/dist/repos.mjs CHANGED
@@ -1,180 +1,617 @@
1
1
  "use client";
2
- import { E as a, H as t, R as u, S as o, c as n, a as r, d as i, b as l, e as c, f as y, g as p, h as S, i as d, j as M, k as f, l as v, m as C, n as E, o as R, p as Q, q as b, r as T, s as A, t as m, u as K, v as F, w as I, x as k, y as D, z as g, A as h, B as w, C as _, D as x, F as L, G as N, I as W, J as O, K as P, L as H, M as V, N as U, O as j, P as B, Q as G, T as Y, U as q, V as z, W as Z, X as J, Y as X, Z as $, _ as ee } from "./spec-import-CjmxyZDR.js";
3
- import { u as ae, a as te, b as ue, c as oe, d as ne, e as re, f as ie, v as le, g as ce } from "./spec-export-Cf3VQSQS.js";
4
- import { l as pe, r as Se, s as de, a as Me } from "./step-tests-CivICmTq.js";
5
- import { a as ve, b as Ce, g as Ee, c as Re, u as Qe, d as be, e as Te, f as Ae, h as me, i as Ke } from "./apps-1FNUwbGv.js";
6
- import { l as Ie, s as ke, a as De, u as ge, b as he, c as we, d as _e, e as xe, f as Le, g as Ne, h as We, i as Oe, v as Pe } from "./vault-BSEWhMYC.js";
7
- import { a as Ve, c as Ue, b as je, d as Be, e as Ge, f as Ye, g as qe, h as ze, i as Ze, j as Je, l as Xe, s as $e, u as es, k as ss, m as as, n as ts, o as us } from "./callables-3mFrMVG_.js";
8
- import { C as ns, E as rs, F as is, I as ls, d as cs, e as ys, a as ps, f as Ss, b as ds, g as Ms, c as fs, i as vs, h as Cs, j as Es, l as Rs, n as Qs, k as bs, u as Ts, m as As, o as ms, p as Ks, q as Fs, r as Is, s as ks, t as Ds, v as gs, w as hs, x as ws, y as _s, z as xs, A as Ls } from "./endpoints-B2ynbZo-.js";
9
- import { c as Ws, a as Os, b as Ps, d as Hs, g as Vs, l as Us, e as js, u as Bs, f as Gs, h as Ys, i as qs, j as zs, k as Zs, m as Js } from "./connections-CjjYeRqb.js";
10
- import { c as $s, d as ea, l as sa, a as aa, r as ta, s as ua, t as oa, u as na, b as ra, e as ia, f as la, g as ca, h as ya, i as pa } from "./api-calls--JHyif6a.js";
11
- import { SECRET_MASK as da } from "@w6w/sdk/console";
2
+ var C = Object.defineProperty;
3
+ var M = (e, t, s) => t in e ? C(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
4
+ var l = (e, t, s) => M(e, typeof t != "symbol" ? t + "" : t, s);
5
+ import { E as he, H as De, R as Te, S as we, c as Ie, d as Ue, e as _e, f as Pe, g as Be, h as Le, i as Ne, j as Ve, k as We, l as Oe, m as He, n as je, o as ze, p as Ge, q as Ye, r as Ze, s as Je, t as Xe, v as $e, w as et, x as tt, y as st, z as nt, A as at, B as ot, C as ut, D as it, F as rt, G as lt, I as ct, J as yt, K as dt, u as ft, L as gt, M as pt, N as Ct, O as Mt, P as Kt, b as St, Q as Qt, T as mt, U as vt, V as Ft, W as qt, X as At, a as xt, Y as Et, Z as bt, _ as kt, $ as Rt } from "./spec-import-CW6R_Wk1.js";
6
+ import { u as Dt, a as Tt, b as wt, c as It, d as Ut, e as _t, f as Pt, v as Bt, g as Lt } from "./spec-export-CBbloO_n.js";
7
+ import { l as Vt, r as Wt, s as Ot, a as Ht } from "./step-tests-CivICmTq.js";
8
+ import { c as zt, d as Gt, g as Yt, e as Zt, f as Jt, h as Xt, b as $t, i as es, u as ts, a as ss } from "./apps-CboASBKr.js";
9
+ import { l as as, s as os, a as us, u as is, b as rs, c as ls, d as cs, e as ys, f as ds, g as fs, h as gs, i as ps, v as Cs } from "./vault-BSEWhMYC.js";
10
+ import { b as Ks, d as Ss, e as Qs, a as ms, c as vs, f as Fs, g as qs, h as As, j as xs, i as Es, l as bs, s as ks, k as Rs, m as hs, u as Ds, n as Ts, o as ws } from "./callables-tOlflvbl.js";
11
+ import { C as Us, E as _s, F as Ps, I as Bs, d as Ls, e as Ns, f as Vs, g as Ws, h as Os, i as Hs, j as js, k as zs, l as Gs, m as Ys, o as Zs, n as Js, p as Xs, q as $s, r as en, s as tn, t as sn, v as nn, u as an, w as on, b as un, x as rn, y as ln, z as cn, A as yn, a as dn, c as fn } from "./endpoints-DSRo1Lc5.js";
12
+ import { b as pn, d as Cn, e as Mn, c as Kn, f as Sn, g as Qn, h as mn, i as vn, l as Fn, j as qn, a as An, k as xn, m as En, n as bn, u as kn, o as Rn, p as hn, q as Dn } from "./connections-D7cgXhDS.js";
13
+ import { c as wn, a as In, b as Un, d as _n, e as Pn, f as Bn, g as Ln, h as Nn, i as Vn, l as Wn, r as On, s as Hn, t as jn, u as zn, j as Gn, k as Yn, m as Zn, n as Jn, o as Xn, p as $n, q as ea, v as ta, x as sa, w as na } from "./credentials-DaQU3Ca_.js";
14
+ import { c as oa, d as ua, l as ia, a as ra, r as la, s as ca, t as ya, u as da, b as fa, e as ga, f as pa, g as Ca, h as Ma, i as Ka } from "./api-calls--JHyif6a.js";
15
+ import { l as K } from "./models-bAayQPJ_.js";
16
+ import { g as Qa, d as ma, h as va, i as Fa, j as qa, k as Aa, m as xa, n as Ea, o as ba, p as ka, q as Ra, r as ha, s as Da, t as Ta, v as wa, w as Ia, x as Ua, y as _a, z as Pa, A as Ba, B as La, b as Na, C as Va, e as Wa, D as Oa, a as Ha, E as ja, F as za, G as Ga, c as Ya, u as Za, H as Ja, I as Xa, f as $a } from "./models-bAayQPJ_.js";
17
+ import { useQuery as a, useQueryClient as i, useMutation as u } from "@tanstack/react-query";
18
+ import { ApiError as S } from "@w6w/sdk";
19
+ import { u as n } from "./client-context-CX61Bgw-.js";
20
+ import { r as to } from "./fields-DvS8XZFc.js";
21
+ import { SECRET_MASK as no } from "@w6w/sdk/console";
22
+ class d extends Error {
23
+ constructor(s) {
24
+ super("This agent changed elsewhere — reload to see the latest version.");
25
+ l(this, "kind", "conflict");
26
+ /** The server's current revision, when the error body carried one. */
27
+ l(this, "currentRevision");
28
+ l(this, "cause");
29
+ this.name = "AgentConflictError", this.cause = s, this.currentRevision = Q(s.raw);
30
+ }
31
+ }
32
+ function Q(e) {
33
+ var o, r, y;
34
+ const t = e, s = (t == null ? void 0 : t.revision) ?? ((o = t == null ? void 0 : t.error) == null ? void 0 : o.revision) ?? ((y = (r = t == null ? void 0 : t.error) == null ? void 0 : r.details) == null ? void 0 : y.revision);
35
+ return typeof s == "number" ? s : null;
36
+ }
37
+ function W(e) {
38
+ return e instanceof d;
39
+ }
40
+ const m = (e = !1) => ["agents", { includeArchived: e }], f = (e) => ["agents", "detail", e], v = (e) => ["agents", "skill-versions", e], F = () => ["agents", "skills"], q = () => ["agents", "context"], A = (e) => ["agents", "context-entries", e], x = () => ["agents", "context-entries-all"], E = (e) => ["agents", "model-routes", e], g = () => ["agent-settings"], b = () => ["agent-settings", "storage-bindings"];
41
+ async function k(e, t, s, o) {
42
+ try {
43
+ return await e.agents.update(
44
+ t,
45
+ { ...s, revision: o.revision },
46
+ { ifUnmodifiedSince: o.updatedAt }
47
+ );
48
+ } catch (r) {
49
+ throw r instanceof S && r.status === 409 ? new d(r) : r;
50
+ }
51
+ }
52
+ function O(e, t) {
53
+ return t != null && t.some((s) => s.id === e.skillVersionId && s.skillId === e.skillId) ? "ready" : "unavailable";
54
+ }
55
+ function H(e, t) {
56
+ return t != null && t.some((s) => s.assetVersionId === e.assetVersionId && s.archivedAt == null) ? "ready" : "unavailable";
57
+ }
58
+ function j(e) {
59
+ return e.filter((t) => t.archivedAt == null);
60
+ }
61
+ function z(e = !1) {
62
+ const t = n();
63
+ return a({
64
+ queryKey: m(e),
65
+ queryFn: () => t.agents.list({ includeArchived: e })
66
+ });
67
+ }
68
+ function G(e) {
69
+ const t = n();
70
+ return a({
71
+ queryKey: f(e ?? ""),
72
+ enabled: !!e,
73
+ queryFn: () => t.agents.get(e)
74
+ });
75
+ }
76
+ function Y() {
77
+ const e = n(), t = i();
78
+ return u({
79
+ mutationFn: (s) => e.agents.create(s),
80
+ onSuccess: () => t.invalidateQueries({ queryKey: ["agents"] })
81
+ });
82
+ }
83
+ function Z(e) {
84
+ const t = n(), s = i();
85
+ return u({
86
+ mutationFn: (o) => k(t, e, o.patch, o.loaded),
87
+ onSuccess: (o) => (s.setQueryData(f(e), o), s.invalidateQueries({ queryKey: ["agents"] }))
88
+ });
89
+ }
90
+ function J() {
91
+ const e = n(), t = i();
92
+ return u({
93
+ mutationFn: (s) => e.agents.archive(s),
94
+ onSuccess: () => t.invalidateQueries({ queryKey: ["agents"] })
95
+ });
96
+ }
97
+ function X() {
98
+ const e = n();
99
+ return a({ queryKey: F(), queryFn: () => e.skills.list() });
100
+ }
101
+ function $(e) {
102
+ const t = n();
103
+ return a({
104
+ queryKey: v(e ?? ""),
105
+ enabled: !!e,
106
+ queryFn: () => t.skills.versions(e)
107
+ });
108
+ }
109
+ function ee() {
110
+ const e = n();
111
+ return a({ queryKey: q(), queryFn: () => e.context.list() });
112
+ }
113
+ function te(e) {
114
+ const t = n();
115
+ return a({
116
+ queryKey: A(e ?? ""),
117
+ enabled: !!e,
118
+ queryFn: () => t.context.entries.list(e)
119
+ });
120
+ }
121
+ function se() {
122
+ const e = n();
123
+ return a({
124
+ queryKey: x(),
125
+ queryFn: () => e.contextEntries.list({})
126
+ });
127
+ }
128
+ function ne(e) {
129
+ const t = n();
130
+ return a({
131
+ queryKey: E(e),
132
+ enabled: e != null,
133
+ queryFn: () => K(t, e)
134
+ });
135
+ }
136
+ function ae() {
137
+ const e = n();
138
+ return a({
139
+ queryKey: g(),
140
+ queryFn: () => e.console.storage.settings.get()
141
+ });
142
+ }
143
+ function oe() {
144
+ const e = n(), t = i();
145
+ return u({
146
+ mutationFn: (s) => e.console.storage.settings.patch(s),
147
+ onSuccess: (s) => {
148
+ t.setQueryData(g(), s);
149
+ }
150
+ });
151
+ }
152
+ function ue() {
153
+ const e = n();
154
+ return a({
155
+ queryKey: b(),
156
+ queryFn: () => e.console.storage.bindings.list()
157
+ });
158
+ }
159
+ const R = (e = !1) => ["skills", { includeArchived: e }], h = (e) => ["skills", e], D = (e) => ["skills", e, "versions"], T = (e = !1) => ["context-collections", { includeArchived: e }], w = (e) => ["context-collections", e], p = (e, t = !1) => ["context-collections", e, "entries", { includeArchived: t }], I = (e = !1) => ["context-entries", { includeArchived: e }], U = (e) => ["assets", e, "versions"], _ = (e, t) => ["assets", e, "versions", t, "files"];
160
+ function ie(e = !1) {
161
+ const t = n();
162
+ return a({
163
+ queryKey: R(e),
164
+ queryFn: () => t.skills.list({ includeArchived: e })
165
+ });
166
+ }
167
+ function re(e) {
168
+ const t = n();
169
+ return a({
170
+ queryKey: h(e ?? ""),
171
+ enabled: e != null,
172
+ queryFn: () => t.skills.get(e)
173
+ });
174
+ }
175
+ function le(e) {
176
+ const t = n();
177
+ return a({
178
+ queryKey: D(e ?? ""),
179
+ enabled: e != null,
180
+ queryFn: () => t.skills.versions(e)
181
+ });
182
+ }
183
+ function ce() {
184
+ const e = n(), t = i();
185
+ return u({
186
+ mutationFn: (s) => e.skills.archive(s),
187
+ onSuccess: () => t.invalidateQueries({ queryKey: ["skills"] })
188
+ });
189
+ }
190
+ function ye(e = !1) {
191
+ const t = n();
192
+ return a({
193
+ queryKey: T(e),
194
+ queryFn: () => t.context.list({ includeArchived: e })
195
+ });
196
+ }
197
+ function de(e) {
198
+ const t = n();
199
+ return a({
200
+ queryKey: w(e ?? ""),
201
+ enabled: e != null,
202
+ queryFn: () => t.context.get(e)
203
+ });
204
+ }
205
+ function fe() {
206
+ const e = n(), t = i();
207
+ return u({
208
+ mutationFn: (s) => e.context.create(s),
209
+ onSuccess: () => t.invalidateQueries({ queryKey: ["context-collections"] })
210
+ });
211
+ }
212
+ function ge(e, t = !1) {
213
+ const s = n();
214
+ return a({
215
+ queryKey: p(e ?? "", t),
216
+ enabled: e != null,
217
+ queryFn: () => s.context.entries.list(e, { includeArchived: t })
218
+ });
219
+ }
220
+ function pe() {
221
+ const e = n(), t = i();
222
+ return u({
223
+ mutationFn: (s) => e.context.entries.update(s.collectionId, s.entryId, s.input, {
224
+ ifUnmodifiedSince: s.ifUnmodifiedSince
225
+ }),
226
+ onSuccess: (s, o) => {
227
+ t.invalidateQueries({ queryKey: ["context-collections", o.collectionId] }), t.invalidateQueries({ queryKey: ["assets"] });
228
+ }
229
+ });
230
+ }
231
+ function Ce(e = !1) {
232
+ const t = n();
233
+ return a({
234
+ queryKey: I(e),
235
+ queryFn: () => t.contextEntries.list({ includeArchived: e })
236
+ });
237
+ }
238
+ function c(e, t = []) {
239
+ e.invalidateQueries({ queryKey: ["context-entries"] });
240
+ for (const s of t) e.invalidateQueries({ queryKey: p(s) });
241
+ }
242
+ function Me() {
243
+ const e = n(), t = i();
244
+ return u({
245
+ mutationFn: (s) => e.contextEntries.create(s),
246
+ onSuccess: (s, o) => c(t, o.collectionIds)
247
+ });
248
+ }
249
+ function Ke() {
250
+ const e = n(), t = i();
251
+ return u({
252
+ mutationFn: (s) => e.contextEntries.addToCollection(s.entryId, s.collectionId),
253
+ onSuccess: (s, o) => c(t, [o.collectionId])
254
+ });
255
+ }
256
+ function Se() {
257
+ const e = n(), t = i();
258
+ return u({
259
+ mutationFn: (s) => e.contextEntries.removeFromCollection(s.entryId, s.collectionId),
260
+ onSuccess: (s, o) => c(t, [o.collectionId])
261
+ });
262
+ }
263
+ function Qe(e) {
264
+ const t = n();
265
+ return a({
266
+ queryKey: U(e ?? ""),
267
+ enabled: e != null,
268
+ queryFn: () => t.assets.versions(e)
269
+ });
270
+ }
271
+ function me(e, t) {
272
+ const s = n();
273
+ return a({
274
+ queryKey: _(e ?? "", t ?? ""),
275
+ enabled: e != null && t != null,
276
+ queryFn: () => s.assets.files(e, t)
277
+ });
278
+ }
279
+ function ve() {
280
+ const e = n();
281
+ return u({
282
+ mutationFn: (t) => e.assets.content(t.assetId, t.versionId, t.fileId)
283
+ });
284
+ }
285
+ function Fe() {
286
+ const e = n();
287
+ return u({
288
+ mutationFn: (t) => e.assets.archiveDownload(t.assetId, t.versionId)
289
+ });
290
+ }
291
+ function qe() {
292
+ const e = n(), t = i();
293
+ return u({
294
+ mutationFn: (s) => e.assets.archive(s),
295
+ onSuccess: () => t.invalidateQueries({ queryKey: ["assets"] })
296
+ });
297
+ }
298
+ function Ae() {
299
+ const e = n();
300
+ return u({
301
+ mutationFn: (t) => e.assets.uploads.create(t)
302
+ });
303
+ }
304
+ function xe() {
305
+ const e = n();
306
+ return u({
307
+ mutationFn: (t) => e.assets.uploads.putEntry(t.uploadId, t.index, t.bytes)
308
+ });
309
+ }
310
+ function Ee() {
311
+ const e = n(), t = i();
312
+ return u({
313
+ mutationFn: (s) => e.assets.uploads.finalize(s),
314
+ onSuccess: () => {
315
+ t.invalidateQueries({ queryKey: ["skills"] }), t.invalidateQueries({ queryKey: ["context-collections"] }), t.invalidateQueries({ queryKey: ["assets"] });
316
+ }
317
+ });
318
+ }
319
+ function be() {
320
+ const e = n();
321
+ return u({ mutationFn: (t) => e.assets.uploads.abort(t) });
322
+ }
12
323
  export {
13
- ns as CALLABLE_DESCRIPTORS,
14
- a as EMPTY_HISTORY_FILTERS,
15
- rs as ENDPOINT_MANIFEST_VERSION,
16
- is as FUNCTION_MANIFEST_VERSION,
17
- t as HISTORY_PAGE_SIZE,
18
- ls as ID_ALPHABET,
19
- u as RUN_FAILED_NO_REASON,
20
- da as SECRET_MASK,
21
- o as STEP_FAILED_NO_REASON,
22
- ve as appActionsKey,
23
- Ce as appKey,
24
- Ve as archiveCallable,
25
- Ue as callableCollection,
26
- je as callableHistoryRoute,
27
- Be as callableKey,
28
- Ge as callableListKey,
29
- Ye as callablePath,
30
- qe as callableRoute,
31
- n as cancelWorkflowRun,
32
- r as classifyCancelError,
33
- Ws as connectionKey,
34
- Os as connectionsForAppKey,
35
- Ps as connectionsKey,
36
- Hs as createConnection,
37
- $s as createSavedTest,
38
- ze as deleteCallable,
39
- ea as deleteSavedTest,
40
- cs as descriptorFor,
41
- i as documentKey,
42
- l as documentProvenanceState,
43
- c as documentsKey,
44
- ys as endpointKey,
45
- ps as endpointsKey,
46
- y as filtersFromSearch,
47
- p as filtersToSearch,
48
- Ss as functionKey,
49
- ds as functionsKey,
50
- Ee as getApp,
51
- Re as getAppActions,
52
- Ze as getCallable,
53
- Vs as getConnection,
54
- Ms as getEndpoint,
55
- S as getExecutionDetail,
56
- fs as getFunction,
57
- d as getHistory,
58
- M as getHistoryStats,
59
- f as getRunState,
60
- v as getWorkflow,
61
- C as historyKeys,
62
- E as historyRequestQuery,
63
- Je as invalidateSavedCallable,
64
- vs as invokeEndpoint,
65
- Cs as invokeFunction,
66
- Es as isEndpointDraft,
67
- R as isRunInFlight,
68
- Q as latestFixtureInput,
69
- Xe as listCallables,
70
- Us as listConnections,
71
- js as listConnectionsForApp,
72
- Rs as listFunctions,
73
- sa as listSavedTests,
74
- Ie as listSecrets,
75
- pe as listStepTests,
76
- aa as listTestRuns,
77
- b as listWorkflows,
78
- T as mapRunStateToLogSteps,
79
- Qs as newCallableId,
80
- bs as newId,
81
- A as pollRunToTerminal,
82
- Se as recordStepTestRun,
83
- ta as recordTestRun,
84
- m as resolveHeaderRunInput,
85
- K as runButtonLabel,
86
- F as runLevelErrors,
87
- I as runStateKey,
88
- k as runWorkflow,
89
- D as runWorkflowSync,
90
- g as runsKey,
91
- $e as saveCallable,
92
- de as saveStepTest,
93
- ua as savedTestsKey,
94
- ke as sealSecret,
95
- De as secretsKey,
96
- h as shouldContinuePolling,
97
- w as startWorkflowRun,
98
- Me as stepTestsKey,
99
- oa as testRunsKey,
100
- _ as toLogError,
101
- Bs as updateConnection,
102
- na as updateSavedTest,
103
- ra as useApiCallsQuery,
104
- Qe as useAppActionsQuery,
105
- be as useAppQuery,
106
- es as useArchiveCallableMutation,
107
- Ts as useArchiveEndpointMutation,
108
- As as useArchiveFunctionMutation,
109
- x as useArchiveWorkflowMutation,
110
- ss as useCallableListQuery,
111
- as as useCallableQuery,
112
- L as useCancelRunMutation,
113
- Gs as useConnectionQuery,
114
- Ys as useConnectionsForAppQuery,
115
- qs as useConnectionsQuery,
116
- N as useCreateDocumentMutation,
117
- ge as useCreateSecretMutation,
118
- he as useCreateVarMutation,
119
- W as useCreateWorkflowMutation,
120
- ia as useDashboardStatsQuery,
121
- ts as useDeleteCallableMutation,
122
- zs as useDeleteConnectionMutation,
123
- O as useDeleteDocumentMutation,
124
- ms as useDeleteEndpointMutation,
125
- Ks as useDeleteFunctionMutation,
126
- we as useDeleteSecretMutation,
127
- _e as useDeleteVarMutation,
128
- P as useDeleteWorkflowMutation,
129
- H as useDocumentQuery,
130
- V as useDocumentsQuery,
131
- Fs as useEndpointQuery,
132
- Is as useEndpointsQuery,
133
- Te as useExecutionDetailQuery,
134
- ks as useFunctionQuery,
135
- Ds as useFunctionsQuery,
136
- gs as useGuardedSaveEndpointMutation,
137
- hs as useGuardedSaveFunctionMutation,
138
- Ae as useHasExecutedQuery,
139
- me as useHistoryQuery,
140
- Ke as useHistoryStatsQuery,
141
- U as useImportSpecMutation,
142
- ws as useInvokeEndpointMutation,
143
- _s as useInvokeFunctionMutation,
144
- ae as useInvokeVersionMutation,
145
- j as useLiveRunQuery,
146
- la as useProjectReliabilityQuery,
147
- te as usePublishMutation,
148
- ca as useReliabilityQuery,
149
- ue as useRevertMutation,
150
- B as useRunWorkflowMutation,
151
- G as useRunsQuery,
152
- us as useSaveCallableMutation,
153
- xs as useSaveEndpointMutation,
154
- Ls as useSaveFunctionMutation,
155
- Y as useSaveWorkflowMutation,
156
- ya as useSavedTestsQuery,
157
- xe as useSealSecret,
158
- Le as useSecretsQuery,
159
- oe as useSetEnabledMutation,
160
- ne as useSpecQuery,
161
- q as useStartRunMutation,
162
- z as useSyncDocumentMutation,
163
- Zs as useTestConnectionMutation,
164
- pa as useTestRunsQuery,
165
- Js as useUpdateConnectionMutation,
166
- Z as useUpdateDocumentMutation,
167
- Ne as useUpdateSecretMutation,
168
- We as useUpdateVarMutation,
169
- Oe as useVarsQuery,
170
- re as useVersionQuery,
171
- ie as useVersionsQuery,
172
- J as useWorkflowQuery,
173
- X as useWorkflowsQuery,
174
- Pe as varsKey,
175
- le as versionKey,
176
- ce as versionsKey,
177
- $ as workflowKey,
178
- ee as workflowsKey
324
+ d as AgentConflictError,
325
+ Us as CALLABLE_DESCRIPTORS,
326
+ he as EMPTY_HISTORY_FILTERS,
327
+ _s as ENDPOINT_MANIFEST_VERSION,
328
+ Ps as FUNCTION_MANIFEST_VERSION,
329
+ De as HISTORY_PAGE_SIZE,
330
+ Bs as ID_ALPHABET,
331
+ Te as RUN_FAILED_NO_REASON,
332
+ no as SECRET_MASK,
333
+ we as STEP_FAILED_NO_REASON,
334
+ x as agentAllContextEntriesKey,
335
+ A as agentContextEntriesKey,
336
+ q as agentContextKey,
337
+ f as agentKey,
338
+ E as agentModelRoutesKey,
339
+ g as agentSettingsKey,
340
+ v as agentSkillVersionsKey,
341
+ F as agentSkillsKey,
342
+ m as agentsKey,
343
+ I as allContextEntriesKey,
344
+ zt as appActionsKey,
345
+ Gt as appKey,
346
+ Ks as archiveCallable,
347
+ _ as assetFilesKey,
348
+ U as assetVersionsKey,
349
+ Ss as callableCollection,
350
+ Qs as callableHistoryRoute,
351
+ ms as callableKey,
352
+ vs as callableListKey,
353
+ Fs as callablePath,
354
+ qs as callableRoute,
355
+ Ie as cancelWorkflowRun,
356
+ Ue as classifyCancelError,
357
+ Qa as completeSupport,
358
+ ma as connectionChoices,
359
+ pn as connectionDependentsKey,
360
+ Cn as connectionKey,
361
+ Mn as connectionsForAppKey,
362
+ Kn as connectionsKey,
363
+ w as contextCollectionKey,
364
+ T as contextCollectionsKey,
365
+ p as contextEntriesKey,
366
+ H as contextPinState,
367
+ Sn as createConnection,
368
+ wn as createCredential,
369
+ va as createModelBudget,
370
+ Fa as createModelRoute,
371
+ oa as createSavedTest,
372
+ In as credentialDependentsKey,
373
+ Un as credentialKey,
374
+ _n as credentialUiMethods,
375
+ Pn as credentialsKey,
376
+ As as deleteCallable,
377
+ Qn as deleteConnection,
378
+ Bn as deleteCredential,
379
+ qa as deleteModelBudget,
380
+ Aa as deleteModelRoute,
381
+ ua as deleteSavedTest,
382
+ Ls as descriptorFor,
383
+ _e as documentKey,
384
+ Pe as documentProvenanceState,
385
+ Be as documentsKey,
386
+ Ns as endpointKey,
387
+ Vs as endpointsKey,
388
+ Le as filtersFromSearch,
389
+ Ne as filtersToSearch,
390
+ Ws as functionKey,
391
+ Os as functionsKey,
392
+ Yt as getApp,
393
+ Zt as getAppActions,
394
+ xs as getCallable,
395
+ mn as getConnection,
396
+ vn as getConnectionDependents,
397
+ Ln as getCredential,
398
+ Nn as getCredentialDependents,
399
+ Hs as getEndpoint,
400
+ Ve as getExecutionDetail,
401
+ js as getFunction,
402
+ We as getHistory,
403
+ Oe as getHistoryStats,
404
+ xa as getModelBudgetUsage,
405
+ Ea as getModelUsage,
406
+ He as getRunState,
407
+ je as getWorkflow,
408
+ ze as historyKeys,
409
+ Ge as historyRequestQuery,
410
+ Vn as invalidateAfterCredentialWrite,
411
+ Es as invalidateSavedCallable,
412
+ zs as invokeEndpoint,
413
+ Gs as invokeFunction,
414
+ W as isAgentConflict,
415
+ Ys as isEndpointDraft,
416
+ Ye as isRunInFlight,
417
+ Ze as latestFixtureInput,
418
+ bs as listCallables,
419
+ Fn as listConnections,
420
+ qn as listConnectionsForApp,
421
+ Wn as listCredentials,
422
+ Zs as listFunctions,
423
+ ba as listModelBudgets,
424
+ ka as listModelCatalog,
425
+ Ra as listModelProviders,
426
+ K as listModelRoutes,
427
+ ia as listSavedTests,
428
+ as as listSecrets,
429
+ Vt as listStepTests,
430
+ ra as listTestRuns,
431
+ Je as listWorkflows,
432
+ ha as loadAllModelCatalogPages,
433
+ Xe as mapRunStateToLogSteps,
434
+ Da as modelBudgetUsageKey,
435
+ Ta as modelBudgetsKey,
436
+ wa as modelCatalogKey,
437
+ Ia as modelProvidersKey,
438
+ Ua as modelRoutesKey,
439
+ _a as modelUsageKey,
440
+ Js as newCallableId,
441
+ Xs as newId,
442
+ Pa as normaliseRoute,
443
+ $e as pollRunToTerminal,
444
+ j as readyContextEntries,
445
+ Wt as recordStepTestRun,
446
+ la as recordTestRun,
447
+ to as resolveActionFields,
448
+ et as resolveHeaderRunInput,
449
+ On as rotateCredential,
450
+ tt as runButtonLabel,
451
+ st as runLevelErrors,
452
+ nt as runNodeMap,
453
+ at as runStateKey,
454
+ ot as runWorkflow,
455
+ ut as runWorkflowSync,
456
+ it as runsKey,
457
+ ks as saveCallable,
458
+ Ot as saveStepTest,
459
+ ca as savedTestsKey,
460
+ os as sealSecret,
461
+ us as secretsKey,
462
+ Hn as setCredentialStatus,
463
+ rt as shouldContinuePolling,
464
+ h as skillKey,
465
+ O as skillPinState,
466
+ D as skillVersionsKey,
467
+ R as skillsKey,
468
+ lt as startWorkflowRun,
469
+ Ht as stepTestsKey,
470
+ b as storageBindingsKey,
471
+ jn as testCredential,
472
+ ya as testRunsKey,
473
+ ct as toLogError,
474
+ k as updateAgent,
475
+ An as updateConnection,
476
+ zn as updateCredential,
477
+ Ba as updateModelBudget,
478
+ La as updateModelRoute,
479
+ da as updateSavedTest,
480
+ be as useAbortAssetUploadMutation,
481
+ Ke as useAddEntryToCollectionMutation,
482
+ se as useAgentAllContextEntriesQuery,
483
+ ee as useAgentContextCollectionsQuery,
484
+ te as useAgentContextEntriesQuery,
485
+ ne as useAgentModelRoutesQuery,
486
+ G as useAgentQuery,
487
+ ae as useAgentSettingsQuery,
488
+ $ as useAgentSkillVersionsQuery,
489
+ X as useAgentSkillsQuery,
490
+ z as useAgentsQuery,
491
+ Ce as useAllContextEntriesQuery,
492
+ Na as useAllModelCatalogQuery,
493
+ fa as useApiCallsQuery,
494
+ Jt as useAppActionsQuery,
495
+ Xt as useAppQuery,
496
+ J as useArchiveAgent,
497
+ qe as useArchiveAssetMutation,
498
+ Rs as useArchiveCallableMutation,
499
+ $s as useArchiveEndpointMutation,
500
+ en as useArchiveFunctionMutation,
501
+ ce as useArchiveSkillMutation,
502
+ yt as useArchiveWorkflowMutation,
503
+ me as useAssetFilesQuery,
504
+ Qe as useAssetVersionsQuery,
505
+ hs as useCallableListQuery,
506
+ Ds as useCallableQuery,
507
+ dt as useCancelRunMutation,
508
+ xn as useConnectionDependentsQuery,
509
+ En as useConnectionQuery,
510
+ bn as useConnectionsForAppQuery,
511
+ kn as useConnectionsQuery,
512
+ de as useContextCollectionQuery,
513
+ ye as useContextCollectionsQuery,
514
+ ge as useContextEntriesQuery,
515
+ Y as useCreateAgent,
516
+ Ae as useCreateAssetUploadMutation,
517
+ fe as useCreateContextCollectionMutation,
518
+ Me as useCreateContextEntryMutation,
519
+ Gn as useCreateCredentialMutation,
520
+ ft as useCreateDocumentMutation,
521
+ Va as useCreateModelBudgetMutation,
522
+ Wa as useCreateModelRouteMutation,
523
+ is as useCreateSecretMutation,
524
+ rs as useCreateVarMutation,
525
+ gt as useCreateWorkflowMutation,
526
+ Yn as useCredentialDependentsQuery,
527
+ Zn as useCredentialQuery,
528
+ Jn as useCredentialsQuery,
529
+ ga as useDashboardStatsQuery,
530
+ Ts as useDeleteCallableMutation,
531
+ Rn as useDeleteConnectionMutation,
532
+ Xn as useDeleteCredentialMutation,
533
+ pt as useDeleteDocumentMutation,
534
+ tn as useDeleteEndpointMutation,
535
+ sn as useDeleteFunctionMutation,
536
+ Oa as useDeleteModelBudgetMutation,
537
+ Ha as useDeleteModelRouteMutation,
538
+ ls as useDeleteSecretMutation,
539
+ cs as useDeleteVarMutation,
540
+ Ct as useDeleteWorkflowMutation,
541
+ Mt as useDocumentQuery,
542
+ Kt as useDocumentsQuery,
543
+ Fe as useDownloadAssetArchiveMutation,
544
+ ve as useDownloadAssetFileMutation,
545
+ nn as useEndpointQuery,
546
+ an as useEndpointsQuery,
547
+ $t as useExecutionDetailQuery,
548
+ Ee as useFinalizeAssetUploadMutation,
549
+ on as useFunctionQuery,
550
+ un as useFunctionsQuery,
551
+ rn as useGuardedSaveEndpointMutation,
552
+ ln as useGuardedSaveFunctionMutation,
553
+ es as useHasExecutedQuery,
554
+ ts as useHistoryQuery,
555
+ ss as useHistoryStatsQuery,
556
+ St as useImportSpecMutation,
557
+ cn as useInvokeEndpointMutation,
558
+ yn as useInvokeFunctionMutation,
559
+ Dt as useInvokeVersionMutation,
560
+ Qt as useLiveRunQuery,
561
+ ja as useModelBudgetUsageQuery,
562
+ za as useModelBudgetsQuery,
563
+ Ga as useModelCatalogQuery,
564
+ Ya as useModelProvidersQuery,
565
+ Za as useModelRoutesQuery,
566
+ Ja as useModelUsageQuery,
567
+ oe as usePatchAgentSettings,
568
+ pa as useProjectReliabilityQuery,
569
+ Tt as usePublishMutation,
570
+ xe as usePutAssetUploadEntryMutation,
571
+ Ca as useReliabilityQuery,
572
+ Se as useRemoveEntryFromCollectionMutation,
573
+ wt as useRevertMutation,
574
+ $n as useRotateCredentialMutation,
575
+ mt as useRunWorkflowMutation,
576
+ vt as useRunsQuery,
577
+ ws as useSaveCallableMutation,
578
+ dn as useSaveEndpointMutation,
579
+ fn as useSaveFunctionMutation,
580
+ Ft as useSaveWorkflowMutation,
581
+ Ma as useSavedTestsQuery,
582
+ ys as useSealSecret,
583
+ ds as useSecretsQuery,
584
+ ea as useSetCredentialStatusMutation,
585
+ It as useSetEnabledMutation,
586
+ re as useSkillQuery,
587
+ le as useSkillVersionsQuery,
588
+ ie as useSkillsQuery,
589
+ Ut as useSpecQuery,
590
+ qt as useStartRunMutation,
591
+ ue as useStorageBindingsQuery,
592
+ At as useSyncDocumentMutation,
593
+ hn as useTestConnectionMutation,
594
+ ta as useTestCredentialMutation,
595
+ Ka as useTestRunsQuery,
596
+ Z as useUpdateAgent,
597
+ Dn as useUpdateConnectionMutation,
598
+ pe as useUpdateContextEntryMutation,
599
+ sa as useUpdateCredentialMutation,
600
+ xt as useUpdateDocumentMutation,
601
+ Xa as useUpdateModelBudgetMutation,
602
+ $a as useUpdateModelRouteMutation,
603
+ fs as useUpdateSecretMutation,
604
+ gs as useUpdateVarMutation,
605
+ ps as useVarsQuery,
606
+ _t as useVersionQuery,
607
+ Pt as useVersionsQuery,
608
+ Et as useWorkflowQuery,
609
+ bt as useWorkflowsQuery,
610
+ Cs as varsKey,
611
+ Bt as versionKey,
612
+ Lt as versionsKey,
613
+ na as withCredentialMethods,
614
+ kt as workflowKey,
615
+ Rt as workflowsKey
179
616
  };
180
617
  //# sourceMappingURL=repos.mjs.map