@inupedia/spotlight-vue 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,7 @@ export interface SpotlightCapabilityRuntimeV1 {
5
5
  readonly project: SpotlightProjectV1;
6
6
  connect(input: CapabilityConnectInputV1): Promise<CapabilityConnectResultV1>;
7
7
  disconnect(sessionId: string): void;
8
+ dispose(): void;
8
9
  pendingBuild(): Readonly<CapabilityBuildInfoV1> | undefined;
9
10
  notifyBuild(buildInfo: Readonly<CapabilityBuildInfoV1>): void;
10
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"createSpotlight.d.ts","sourceRoot":"","sources":["../src/createSpotlight.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAO,YAAY,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAGL,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAE7E,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACrC,OAAO,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAC7E,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,YAAY,IAAI,QAAQ,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAAC;IAC5D,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;CAC/D;AAED,eAAO,MAAM,gCAAgC,EAAE,YAAY,CAAC,4BAA4B,CAChD,CAAC;AAGzC,wBAAgB,6BAA6B,IAAI,4BAA4B,GAAG,SAAS,CAExF;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,kBAAkB,CAAC;IAC5B,YAAY,CAAC,EAAE;QACb,mBAAmB,EAAE,QAAQ,CAAC,qBAAqB,CAAC,CAAC;QACrD,gBAAgB,EAAE,WAAW,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,CAAC,CAAC;KAC7E,CAAC;IACF,mBAAmB,CAAC,EAAE,QAAQ,CAAC,qBAAqB,CAAC,CAAC;IACtD,gBAAgB,CAAC,EAAE,MAAM,OAAO,CAAC;QAC/B,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,kBAAkB,CAAC;QAChC,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;KACpC,CAAC,CAAC;IACH,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC;IAChC,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,SAAS,CAAC;CAC9C;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,4BAA4B,CAAC;AAEtE,wBAAgB,eAAe,CAAC,OAAO,EAAE,wBAAwB,GAAG,iBAAiB,CAoDpF"}
1
+ {"version":3,"file":"createSpotlight.d.ts","sourceRoot":"","sources":["../src/createSpotlight.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAO,YAAY,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,EAKL,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACxB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAE7E,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACrC,OAAO,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAC7E,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,OAAO,IAAI,IAAI,CAAC;IAChB,YAAY,IAAI,QAAQ,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAAC;IAC5D,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;CAC/D;AAED,eAAO,MAAM,gCAAgC,EAAE,YAAY,CAAC,4BAA4B,CAChD,CAAC;AAGzC,wBAAgB,6BAA6B,IAAI,4BAA4B,GAAG,SAAS,CAExF;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,kBAAkB,CAAC;IAC5B,YAAY,CAAC,EAAE;QACb,mBAAmB,EAAE,QAAQ,CAAC,qBAAqB,CAAC,CAAC;QACrD,gBAAgB,EAAE,WAAW,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,CAAC,CAAC;KAC7E,CAAC;IACF,mBAAmB,CAAC,EAAE,QAAQ,CAAC,qBAAqB,CAAC,CAAC;IACtD,gBAAgB,CAAC,EAAE,MAAM,OAAO,CAAC;QAC/B,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,kBAAkB,CAAC;QAChC,MAAM,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;KACpC,CAAC,CAAC;IACH,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAC;IAChC,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,SAAS,CAAC;CAC9C;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,4BAA4B,CAAC;AAEtE,wBAAgB,eAAe,CAAC,OAAO,EAAE,wBAAwB,GAAG,iBAAiB,CA2EpF"}
@@ -1,47 +1,69 @@
1
- import { createFrontendToolRegistry as u, createCapabilityClient as f } from "@inupedia/spotlight-client";
2
- const g = /* @__PURE__ */ Symbol("spotlight-capability-runtime");
3
- let p;
4
- function y() {
5
- return p;
1
+ import { createFrontendToolRegistry as j, subscribeCapabilityRuntimeV1 as B, createCapabilityClient as C, waitForCapabilityRuntimeV1 as S } from "@inupedia/spotlight-client";
2
+ const w = /* @__PURE__ */ Symbol("spotlight-capability-runtime");
3
+ let d;
4
+ function E() {
5
+ return d;
6
6
  }
7
- function S(e) {
8
- const s = u(e.project), i = /* @__PURE__ */ new Map();
9
- let c, n, l;
10
- const b = () => n ??= e.capabilities ? Promise.resolve(e.capabilities) : e.capabilityBuildInfo && e.openUploadStream ? Promise.resolve({ capabilityBuildInfo: e.capabilityBuildInfo, openUploadStream: e.openUploadStream }) : Promise.reject(new Error("Spotlight capabilities are missing. Pass the virtual:spotlight/capabilities module to createSpotlight().")), a = Object.assign(
7
+ function M(t) {
8
+ const m = j(t.project), r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
9
+ let u, a, b, l;
10
+ const I = (e) => a || (t.capabilities ? a = Promise.resolve(t.capabilities) : t.capabilityBuildInfo && t.openUploadStream ? a = Promise.resolve({ capabilityBuildInfo: t.capabilityBuildInfo, openUploadStream: t.openUploadStream }) : S(t.project.projectId, e)), i = Object.assign(
11
11
  {
12
- project: e.project,
13
- async connect(t) {
14
- const r = i.get(t.sessionId);
15
- if (r) return r;
16
- const o = await b();
17
- l ??= f({
18
- endpoint: e.endpoint,
19
- project: e.project,
20
- registry: s,
21
- buildInfo: o.capabilityBuildInfo,
22
- openUploadStream: o.openUploadStream,
23
- fetch: e.fetch,
24
- createWebSocket: e.createWebSocket
25
- });
26
- const d = await l.connect(t);
27
- return i.set(t.sessionId, d), d;
12
+ project: t.project,
13
+ async connect(e) {
14
+ const s = r.get(e.sessionId);
15
+ if (s) return s;
16
+ const g = n.get(e.sessionId);
17
+ if (g) return g.promise;
18
+ const o = new AbortController(), y = () => o.abort(e.signal?.reason);
19
+ e.signal?.aborted ? o.abort(e.signal.reason) : e.signal?.addEventListener("abort", y, { once: !0 });
20
+ const v = () => e.signal?.removeEventListener("abort", y), p = (async () => {
21
+ const c = await I(o.signal);
22
+ b ??= C({
23
+ endpoint: t.endpoint,
24
+ project: t.project,
25
+ registry: m,
26
+ buildInfo: c.capabilityBuildInfo,
27
+ openUploadStream: c.openUploadStream,
28
+ fetch: t.fetch,
29
+ createWebSocket: t.createWebSocket
30
+ });
31
+ const f = await b.connect({ ...e, signal: o.signal });
32
+ if (o.signal.aborted)
33
+ throw f.channel?.close(), new DOMException("Capability connect aborted.", "AbortError");
34
+ return r.set(e.sessionId, f), f;
35
+ })();
36
+ n.set(e.sessionId, { promise: p, controller: o, cleanup: v });
37
+ try {
38
+ return await p;
39
+ } finally {
40
+ const c = n.get(e.sessionId);
41
+ c?.promise === p && (c.cleanup(), n.delete(e.sessionId));
42
+ }
28
43
  },
29
- disconnect(t) {
30
- i.get(t)?.channel?.close(), i.delete(t);
44
+ disconnect(e) {
45
+ n.get(e)?.controller.abort(new DOMException("Capability connect disconnected.", "AbortError")), r.get(e)?.channel?.close(), r.delete(e);
31
46
  },
32
- pendingBuild: () => c,
33
- notifyBuild(t) {
34
- i.size > 0 || t.artifactDigest !== e.capabilityBuildInfo?.artifactDigest ? c = Object.freeze({ ...t }) : (n = void 0, l = void 0);
47
+ dispose() {
48
+ for (const e of r.values()) e.channel?.close();
49
+ r.clear();
50
+ for (const e of n.values())
51
+ e.controller.abort(new DOMException("Spotlight disposed.", "AbortError")), e.cleanup();
52
+ n.clear(), l?.(), l = void 0, d === i && (d = void 0);
35
53
  },
36
- install(t) {
37
- p = a, t.provide(g, a);
54
+ pendingBuild: () => u,
55
+ notifyBuild(e) {
56
+ r.size > 0 || e.artifactDigest !== t.capabilityBuildInfo?.artifactDigest ? u = Object.freeze({ ...e }) : (a = void 0, b = void 0);
57
+ },
58
+ install(e) {
59
+ d = i, l?.(), l = B(t.project.projectId, (s) => i.notifyBuild(s)), e.provide(w, i);
38
60
  }
39
61
  }
40
62
  );
41
- return Object.freeze(a), a;
63
+ return Object.freeze(i), i;
42
64
  }
43
65
  export {
44
- g as SPOTLIGHT_CAPABILITY_RUNTIME_KEY,
45
- S as createSpotlight,
46
- y as getSpotlightCapabilityRuntime
66
+ w as SPOTLIGHT_CAPABILITY_RUNTIME_KEY,
67
+ M as createSpotlight,
68
+ E as getSpotlightCapabilityRuntime
47
69
  };
@@ -1,6 +1,13 @@
1
1
  import type { HandlerApi } from "../store/pipeline/types.js";
2
2
  import type { SpotlightPipelineRunOutcome } from "./types.js";
3
3
  export declare function warmupSpotlightRemoteContext(signal?: AbortSignal): Promise<void>;
4
+ export declare function composeRunCapabilityPayload<T extends Record<string, unknown>>(legacyPayload: T, capability?: {
5
+ capabilitySnapshotId: string;
6
+ sessionBindingVersion: number;
7
+ }): Omit<T, "skills"> & {
8
+ capabilitySnapshotId?: string;
9
+ sessionBindingVersion?: number;
10
+ };
4
11
  export declare function runRemoteSpotlightPipeline(userQuestion: string, api: HandlerApi): Promise<SpotlightPipelineRunOutcome>;
5
12
  export declare function cancelRemoteSpotlightRun(runId: string): Promise<void>;
6
13
  export declare function cancelRemoteSpotlightRunForSignal(signal?: AbortSignal): void;
@@ -1 +1 @@
1
- {"version":3,"file":"runPipeline.d.ts","sourceRoot":"","sources":["../../src/remote/runPipeline.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAc7D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAob9D,wBAAsB,4BAA4B,CAChD,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,CAAC,CAKf;AA8DD,wBAAsB,0BAA0B,CAC9C,YAAY,EAAE,MAAM,EACpB,GAAG,EAAE,UAAU,GACd,OAAO,CAAC,2BAA2B,CAAC,CA+FtC;AAED,wBAAsB,wBAAwB,CAAC,KAAK,EAAE,MAAM,iBAQ3D;AAED,wBAAgB,iCAAiC,CAAC,MAAM,CAAC,EAAE,WAAW,QAMrE"}
1
+ {"version":3,"file":"runPipeline.d.ts","sourceRoot":"","sources":["../../src/remote/runPipeline.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAc7D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AAob9D,wBAAsB,4BAA4B,CAChD,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,CAAC,CAKf;AAED,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3E,aAAa,EAAE,CAAC,EAChB,UAAU,CAAC,EAAE;IAAE,oBAAoB,EAAE,MAAM,CAAC;IAAC,qBAAqB,EAAE,MAAM,CAAA;CAAE,GAC3E,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,GAAG;IAAE,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAAC,qBAAqB,CAAC,EAAE,MAAM,CAAA;CAAE,CAIvF;AA6DD,wBAAsB,0BAA0B,CAC9C,YAAY,EAAE,MAAM,EACpB,GAAG,EAAE,UAAU,GACd,OAAO,CAAC,2BAA2B,CAAC,CA+FtC;AAED,wBAAsB,wBAAwB,CAAC,KAAK,EAAE,MAAM,iBAQ3D;AAED,wBAAgB,iCAAiC,CAAC,MAAM,CAAC,EAAE,WAAW,QAMrE"}
@@ -17,8 +17,8 @@ function j(e) {
17
17
  function c(e, t, o) {
18
18
  const s = e.getSteps().find((n) => n.id === t);
19
19
  if (s) return s;
20
- const a = { id: t, label: o, status: "pending" };
21
- return e.setSteps([...e.getSteps(), a]), a;
20
+ const l = { id: t, label: o, status: "pending" };
21
+ return e.setSteps([...e.getSteps(), l]), l;
22
22
  }
23
23
  function B() {
24
24
  return new Promise((e) => {
@@ -92,7 +92,7 @@ function p(e, t) {
92
92
  const o = e.getSteps().find((s) => s.id === t);
93
93
  !o || o.status === "active" || o.status === "done" || e.setStep(t, "active", o.content);
94
94
  }
95
- function w(e, t) {
95
+ function k(e, t) {
96
96
  return t || (e === r.tool ? "执行工具与回答" : e);
97
97
  }
98
98
  async function X(e, t) {
@@ -113,19 +113,19 @@ async function X(e, t) {
113
113
  if (o === r.intent && O(s))
114
114
  o = r.tool;
115
115
  else if (o === r.intent && t.mode === "replace") {
116
- const { intent: a, misplacedPlanning: n } = H(s);
117
- s = a, n.trim() && (c(e, r.tool, "执行工具与回答"), e.appendChunkToStep(
116
+ const { intent: l, misplacedPlanning: n } = H(s);
117
+ s = l, n.trim() && (c(e, r.tool, "执行工具与回答"), e.appendChunkToStep(
118
118
  r.tool,
119
119
  n
120
120
  ));
121
121
  }
122
- c(e, o, w(o, t.label)), t.mode === "replace" ? e.setStep(
122
+ c(e, o, k(o, t.label)), t.mode === "replace" ? e.setStep(
123
123
  o,
124
- e.getSteps().find((a) => a.id === o)?.status ?? "active",
124
+ e.getSteps().find((l) => l.id === o)?.status ?? "active",
125
125
  s
126
126
  ) : (p(e, o), e.appendChunkToStep(o, s), await B());
127
127
  } else if (t.type === "step_artifact")
128
- c(e, t.stepId, w(t.stepId, t.label)), p(e, t.stepId), t.artifact === "tool_calls" && t.toolCalls?.length ? e.appendToolCallsToStep(t.stepId, t.toolCalls) : t.artifact === "attachments" && t.attachments?.length ? e.appendAttachmentsToStep(t.stepId, t.attachments) : t.artifact === "files" && t.files?.length ? e.appendFilesToStep(t.stepId, t.files) : t.artifact === "artifacts" && t.artifacts?.length ? e.appendArtifactsToStep(t.stepId, t.artifacts) : t.artifact === "chat_items" && t.chatItems?.length && e.appendChatItemsToStep(t.stepId, t.chatItems);
128
+ c(e, t.stepId, k(t.stepId, t.label)), p(e, t.stepId), t.artifact === "tool_calls" && t.toolCalls?.length ? e.appendToolCallsToStep(t.stepId, t.toolCalls) : t.artifact === "attachments" && t.attachments?.length ? e.appendAttachmentsToStep(t.stepId, t.attachments) : t.artifact === "files" && t.files?.length ? e.appendFilesToStep(t.stepId, t.files) : t.artifact === "artifacts" && t.artifacts?.length ? e.appendArtifactsToStep(t.stepId, t.artifacts) : t.artifact === "chat_items" && t.chatItems?.length && e.appendChatItemsToStep(t.stepId, t.chatItems);
129
129
  else if (t.type === "tool_start")
130
130
  c(e, r.tool, "执行工具与回答"), p(e, r.tool), e.appendToolCallsToStep(r.tool, [
131
131
  V(t)
@@ -178,9 +178,9 @@ async function X(e, t) {
178
178
  ));
179
179
  else if (t.type === "assistant_response") {
180
180
  c(e, r.tool, "执行工具与回答");
181
- const o = e.getSteps().find((u) => u.id === r.tool), { planning: s, answer: a } = M(o?.content ?? ""), n = t.content.trim(), l = a.trim();
182
- l && n && (l === n || n.startsWith(
183
- l.slice(0, Math.min(l.length, 80))
181
+ const o = e.getSteps().find((u) => u.id === r.tool), { planning: s, answer: l } = M(o?.content ?? ""), n = t.content.trim(), a = l.trim();
182
+ a && n && (a === n || n.startsWith(
183
+ a.slice(0, Math.min(a.length, 80))
184
184
  )) ? e.setStep(r.tool, "done") : e.setStep(
185
185
  r.tool,
186
186
  "done",
@@ -210,8 +210,8 @@ async function Z(e) {
210
210
  }
211
211
  function v(e) {
212
212
  const t = e.split(/\n\n/u), o = t.pop() ?? "";
213
- return { events: t.flatMap((a) => {
214
- const n = a.split(/\n/u).find((l) => l.startsWith("data: "));
213
+ return { events: t.flatMap((l) => {
214
+ const n = l.split(/\n/u).find((a) => a.startsWith("data: "));
215
215
  if (!n) return [];
216
216
  try {
217
217
  return [JSON.parse(n.slice(6))];
@@ -220,28 +220,29 @@ function v(e) {
220
220
  }
221
221
  }), rest: o };
222
222
  }
223
- async function mt(e) {
223
+ async function ft(e) {
224
224
  await Promise.allSettled([
225
225
  _(e),
226
226
  D(e)
227
227
  ]);
228
228
  }
229
- async function tt(e, t) {
230
- const o = R(), s = $(), a = L(), n = await _(t), l = U(), u = l ? await l.connect({
229
+ function tt(e, t) {
230
+ if (!t) return e;
231
+ const { skills: o, ...s } = e;
232
+ return { ...s, ...t };
233
+ }
234
+ async function et(e, t) {
235
+ const o = R(), s = $(), l = L(), n = await _(t), a = U(), u = a ? await a.connect({
231
236
  sessionId: o.sessionId,
232
- browserInstanceId: k("spotlight.browser-instance", localStorage),
233
- tabInstanceId: k("spotlight.tab-instance", sessionStorage),
237
+ browserInstanceId: w("spotlight.browser-instance", localStorage),
238
+ tabInstanceId: w("spotlight.tab-instance", sessionStorage),
234
239
  signal: t
235
240
  }) : void 0;
236
241
  return {
237
242
  hostManifest: n,
238
- payload: {
243
+ payload: tt({
239
244
  projectId: W(),
240
245
  sessionId: o.sessionId,
241
- ...u ? {
242
- capabilitySnapshotId: u.handshake.capabilitySnapshotId,
243
- sessionBindingVersion: u.handshake.sessionBindingVersion
244
- } : {},
245
246
  userQuestion: e,
246
247
  uiContext: q().getUiContext?.() ?? {},
247
248
  sessionState: {
@@ -255,7 +256,7 @@ async function tt(e, t) {
255
256
  lastAssistantReply: o.getLastAssistantContent(),
256
257
  invokedSkills: o.invokedSkills,
257
258
  skillPermissionGrants: o.skillPermissionGrants,
258
- memoryReadEnabled: a.enabled,
259
+ memoryReadEnabled: l.enabled,
259
260
  memoryWriteEnabled: !0
260
261
  },
261
262
  runtimeState: {
@@ -267,23 +268,26 @@ async function tt(e, t) {
267
268
  },
268
269
  clientToolsManifestVersion: n.version,
269
270
  skills: E(A())
270
- }
271
+ }, u ? {
272
+ capabilitySnapshotId: u.handshake.capabilitySnapshotId,
273
+ sessionBindingVersion: u.handshake.sessionBindingVersion
274
+ } : void 0)
271
275
  };
272
276
  }
273
- function k(e, t) {
277
+ function w(e, t) {
274
278
  const o = t.getItem(e);
275
279
  if (o) return o;
276
280
  const s = globalThis.crypto.randomUUID();
277
281
  return t.setItem(e, s), s;
278
282
  }
279
- async function ft(e, t) {
280
- const o = g(), s = t.getSignal(), { payload: a, hostManifest: n } = await tt(
283
+ async function yt(e, t) {
284
+ const o = g(), s = t.getSignal(), { payload: l, hostManifest: n } = await et(
281
285
  e,
282
286
  s
283
- ), l = new Set(n.tools.map((d) => d.name)), u = await fetch(`${o}/v1/runs`, {
287
+ ), a = new Set(n.tools.map((d) => d.name)), u = await fetch(`${o}/v1/runs`, {
284
288
  method: "POST",
285
289
  headers: y(),
286
- body: JSON.stringify(a),
290
+ body: JSON.stringify(l),
287
291
  signal: s
288
292
  });
289
293
  if (!u.ok) {
@@ -321,7 +325,7 @@ async function ft(e, t) {
321
325
  for (const i of C.events) {
322
326
  if (i.type === "host_action_request") {
323
327
  const b = await J(i.request.call, t, {
324
- allowedHostNames: l,
328
+ allowedHostNames: a,
325
329
  hostEffect: i.request.hostEffect
326
330
  });
327
331
  K(t, i, b), await Z({
@@ -360,14 +364,15 @@ async function P(e) {
360
364
  }
361
365
  );
362
366
  }
363
- function yt(e) {
367
+ function St(e) {
364
368
  if (!e) return;
365
369
  const t = h.get(e);
366
370
  t && (h.delete(e), P(t));
367
371
  }
368
372
  export {
369
373
  P as cancelRemoteSpotlightRun,
370
- yt as cancelRemoteSpotlightRunForSignal,
371
- ft as runRemoteSpotlightPipeline,
372
- mt as warmupSpotlightRemoteContext
374
+ St as cancelRemoteSpotlightRunForSignal,
375
+ tt as composeRunCapabilityPayload,
376
+ yt as runRemoteSpotlightPipeline,
377
+ ft as warmupSpotlightRemoteContext
373
378
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inupedia/spotlight-vue",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Vue plugin and config entry for Inupedia Spotlight (monorepo workspace package)",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -95,8 +95,8 @@
95
95
  "dependencies": {
96
96
  "prettier": "^3.8.1",
97
97
  "yaml": "^2.8.4",
98
- "@inupedia/spotlight-client": "0.3.0",
99
- "@inupedia/spotlight-protocol": "0.3.0"
98
+ "@inupedia/spotlight-client": "0.3.1",
99
+ "@inupedia/spotlight-protocol": "0.3.1"
100
100
  },
101
101
  "peerDependencies": {
102
102
  "@inspira-ui/plugins": "^0.0.2",