@inupedia/spotlight-vue 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/remote/runPipeline.d.ts.map +1 -1
- package/dist/remote/runPipeline.js +198 -194
- package/dist/store/runtime/types.d.ts +6 -1
- package/dist/store/runtime/types.d.ts.map +1 -1
- package/dist/store/spotlightStore.d.ts +810 -0
- package/dist/store/spotlightStore.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { defineSpotlightConfig, SPOTLIGHT_CONFIG_KEY, type SpotlightConfig, type SpotlightConfigInput, type SpotlightHostServicesRegistration, type SpotlightQuickPanelActions, type SpotlightVuePluginOptions, } from "./config.js";
|
|
2
|
-
export { resolveSpotlightConfig, type SpotlightHostRegistration } from "./resolveConfig.js";
|
|
2
|
+
export { resolveSpotlightConfig, type SpotlightHostRegistration, } from "./resolveConfig.js";
|
|
3
3
|
export { defineSpotlightApp, readSpotlightEnv, type DefineSpotlightAppOptions, type SpotlightEnvDefaults, } from "./host/defineApp.js";
|
|
4
4
|
export { defineSpotlightHost, type DefineSpotlightHostOptions, type SpotlightHostFactory, type SpotlightHostSkillsInput, } from "./host/defineHost.js";
|
|
5
5
|
export { normalizeSkillsOption, type SpotlightHostSkillsOption, } from "./host/normalizeSkills.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,iCAAiC,EACtC,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,GAC/B,MAAM,aAAa,CAAC;AACrB,OAAO,
|
|
1
|
+
{"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AE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAC1F,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,wBAAwB,EACxB,gBAAgB,EAChB,qBAAqB,GACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,wBAAwB,EACxB,KAAK,eAAe,EACpB,KAAK,yBAAyB,GAC/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,uBAAuB,EACvB,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,GAC1B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,4BAA4B,EAC5B,0BAA0B,EAC1B,gCAAgC,EAChC,wBAAwB,EACxB,4BAA4B,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,GACjC,MAAM,8BAA8B,CAAC;AAEtC,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACxE,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC9E,YAAY,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runPipeline.d.ts","sourceRoot":"","sources":["../../src/remote/runPipeline.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runPipeline.d.ts","sourceRoot":"","sources":["../../src/remote/runPipeline.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAc7D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAC;AA+Z9D,wBAAsB,4BAA4B,CAChD,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,CAAC,CAKf;AAsCD,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,226 +1,232 @@
|
|
|
1
|
-
import { serializeSkillsForRemote as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { useSpotlightRuntimeStore as E } from "../store/runtimeStore.js";
|
|
1
|
+
import { serializeSkillsForRemote as x } from "@inupedia/spotlight-client";
|
|
2
|
+
import { getSkillsPoolForRun as E } from "../skills/index.js";
|
|
3
|
+
import { useAgentSessionStore as R } from "../session/agentSession.js";
|
|
4
|
+
import { useSpotlightRuntimeStore as A } from "../store/runtimeStore.js";
|
|
6
5
|
import { SPOTLIGHT_PIPELINE_STEP_IDS as r } from "../store/pipeline/constants.js";
|
|
7
|
-
import { isLoopPlanningChunk as
|
|
8
|
-
import {
|
|
9
|
-
import { executeRemoteHostTool as
|
|
10
|
-
import { getSpotlightServerBase as
|
|
11
|
-
import { ensureSpotlightMeta as
|
|
12
|
-
const
|
|
13
|
-
function
|
|
14
|
-
return
|
|
6
|
+
import { isLoopPlanningChunk as $, splitIntentStepContent as L, splitToolStepContent as O, composeToolStepContent as H } from "../store/pipeline/displayText.js";
|
|
7
|
+
import { getSpotlightConfig as F } from "../plugin.js";
|
|
8
|
+
import { executeRemoteHostTool as q, ensureHostToolsManifest as _ } from "./hostToolRunner.js";
|
|
9
|
+
import { getSpotlightServerBase as y, buildSpotlightJsonHeaders as S, getSpotlightProjectId as J } from "./httpConfig.js";
|
|
10
|
+
import { ensureSpotlightMeta as M } from "./meta.js";
|
|
11
|
+
const h = /* @__PURE__ */ new WeakMap();
|
|
12
|
+
function W(e) {
|
|
13
|
+
return e.type !== "host_action_request" && e.type !== "run_completed" && e.type !== "run_error" && e.type !== "ping";
|
|
15
14
|
}
|
|
16
|
-
function a(
|
|
17
|
-
const s =
|
|
15
|
+
function a(e, t, o) {
|
|
16
|
+
const s = e.getSteps().find((l) => l.id === t);
|
|
18
17
|
if (s) return s;
|
|
19
|
-
const n = { id:
|
|
20
|
-
return
|
|
18
|
+
const n = { id: t, label: o, status: "pending" };
|
|
19
|
+
return e.setSteps([...e.getSteps(), n]), n;
|
|
21
20
|
}
|
|
22
|
-
function
|
|
23
|
-
return new Promise((
|
|
24
|
-
requestAnimationFrame(() =>
|
|
21
|
+
function D() {
|
|
22
|
+
return new Promise((e) => {
|
|
23
|
+
requestAnimationFrame(() => e());
|
|
25
24
|
});
|
|
26
25
|
}
|
|
27
|
-
function j(
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
30
|
-
return
|
|
31
|
-
if (
|
|
26
|
+
function j(e) {
|
|
27
|
+
const t = e.summary?.trim();
|
|
28
|
+
if (t && t.length > 48 && !t.startsWith("{") && !t.startsWith("["))
|
|
29
|
+
return t;
|
|
30
|
+
if (e.output != null && typeof e.output == "object")
|
|
32
31
|
try {
|
|
33
|
-
const o = JSON.stringify(
|
|
32
|
+
const o = JSON.stringify(e.output, null, 2);
|
|
34
33
|
if (o && o !== "{}") return o;
|
|
35
34
|
} catch {
|
|
36
35
|
}
|
|
37
|
-
return
|
|
36
|
+
return t || "";
|
|
38
37
|
}
|
|
39
|
-
function U(
|
|
40
|
-
const
|
|
38
|
+
function U(e) {
|
|
39
|
+
const t = j(e.result);
|
|
41
40
|
return {
|
|
42
|
-
id:
|
|
43
|
-
name:
|
|
44
|
-
displayName:
|
|
45
|
-
argsText: JSON.stringify(
|
|
46
|
-
resultText:
|
|
47
|
-
summary:
|
|
48
|
-
errorCode:
|
|
49
|
-
trace:
|
|
50
|
-
status:
|
|
41
|
+
id: e.result.call.id,
|
|
42
|
+
name: e.result.call.name,
|
|
43
|
+
displayName: e.result.call.displayName,
|
|
44
|
+
argsText: JSON.stringify(e.result.call.input ?? {}, null, 2),
|
|
45
|
+
resultText: t,
|
|
46
|
+
summary: e.result.summary,
|
|
47
|
+
errorCode: e.result.errorCode,
|
|
48
|
+
trace: e.result.trace,
|
|
49
|
+
status: e.result.success ? "done" : "error"
|
|
51
50
|
};
|
|
52
51
|
}
|
|
53
|
-
function z(
|
|
52
|
+
function z(e) {
|
|
54
53
|
return {
|
|
55
|
-
id:
|
|
56
|
-
name:
|
|
57
|
-
displayName:
|
|
58
|
-
argsText: JSON.stringify(
|
|
54
|
+
id: e.call.id,
|
|
55
|
+
name: e.call.name,
|
|
56
|
+
displayName: e.call.displayName,
|
|
57
|
+
argsText: JSON.stringify(e.call.input ?? {}, null, 2),
|
|
59
58
|
status: "running"
|
|
60
59
|
};
|
|
61
60
|
}
|
|
62
|
-
function G(
|
|
63
|
-
const o =
|
|
61
|
+
function G(e, t) {
|
|
62
|
+
const o = t.success ? "前端操作已执行。" : t.error || "前端操作执行失败。";
|
|
64
63
|
return {
|
|
65
|
-
id:
|
|
66
|
-
name:
|
|
67
|
-
displayName:
|
|
68
|
-
argsText: JSON.stringify(
|
|
64
|
+
id: e.id,
|
|
65
|
+
name: e.name,
|
|
66
|
+
displayName: e.displayName,
|
|
67
|
+
argsText: JSON.stringify(e.input ?? {}, null, 2),
|
|
69
68
|
resultText: o,
|
|
70
69
|
summary: o,
|
|
71
|
-
errorCode:
|
|
72
|
-
trace:
|
|
73
|
-
status:
|
|
70
|
+
errorCode: t.errorCode,
|
|
71
|
+
trace: t.trace,
|
|
72
|
+
status: t.success ? "done" : "error"
|
|
74
73
|
};
|
|
75
74
|
}
|
|
76
|
-
function B(
|
|
77
|
-
return
|
|
75
|
+
function B(e) {
|
|
76
|
+
return e.startsWith("panel.") || e.startsWith("navigate.") || e.startsWith("session.");
|
|
78
77
|
}
|
|
79
|
-
function Q(
|
|
80
|
-
if (!B(
|
|
81
|
-
a(
|
|
82
|
-
const s = G(
|
|
83
|
-
|
|
78
|
+
function Q(e, t, o) {
|
|
79
|
+
if (!B(t.request.call.name)) return;
|
|
80
|
+
a(e, r.tool, "执行工具与回答");
|
|
81
|
+
const s = G(t.request.call, o);
|
|
82
|
+
e.appendToolCallsToStep(r.tool, [s]), e.setStep(
|
|
84
83
|
r.tool,
|
|
85
84
|
o.success ? "done" : "error",
|
|
86
85
|
s.resultText
|
|
87
86
|
);
|
|
88
87
|
}
|
|
89
|
-
|
|
90
|
-
if (
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
88
|
+
function p(e, t) {
|
|
89
|
+
if (t !== r.tool) return;
|
|
90
|
+
const o = e.getSteps().find((s) => s.id === t);
|
|
91
|
+
!o || o.status === "active" || o.status === "done" || e.setStep(t, "active", o.content);
|
|
92
|
+
}
|
|
93
|
+
function w(e, t) {
|
|
94
|
+
return t || (e === r.tool ? "执行工具与回答" : e);
|
|
95
|
+
}
|
|
96
|
+
async function V(e, t) {
|
|
97
|
+
if (t.type !== "ping") {
|
|
98
|
+
if (t.type === "step_sync")
|
|
99
|
+
e.setSteps(
|
|
100
|
+
t.steps.map((o) => ({
|
|
94
101
|
id: o.id,
|
|
95
102
|
label: o.label,
|
|
96
103
|
status: o.status,
|
|
97
|
-
content:
|
|
104
|
+
content: e.getSteps().find((s) => s.id === o.id)?.content
|
|
98
105
|
}))
|
|
99
106
|
);
|
|
100
|
-
else if (
|
|
101
|
-
a(
|
|
102
|
-
else if (
|
|
103
|
-
let o =
|
|
104
|
-
if (o === r.intent &&
|
|
107
|
+
else if (t.type === "step_status")
|
|
108
|
+
a(e, t.stepId, t.label ?? t.stepId), e.setStep(t.stepId, t.status, t.content);
|
|
109
|
+
else if (t.type === "step_content") {
|
|
110
|
+
let o = t.stepId, s = t.content;
|
|
111
|
+
if (o === r.intent && $(s))
|
|
105
112
|
o = r.tool;
|
|
106
|
-
else if (o === r.intent &&
|
|
107
|
-
const { intent: n, misplacedPlanning:
|
|
108
|
-
s = n,
|
|
113
|
+
else if (o === r.intent && t.mode === "replace") {
|
|
114
|
+
const { intent: n, misplacedPlanning: l } = L(s);
|
|
115
|
+
s = n, l.trim() && (a(e, r.tool, "执行工具与回答"), e.appendChunkToStep(
|
|
109
116
|
r.tool,
|
|
110
|
-
|
|
117
|
+
l
|
|
111
118
|
));
|
|
112
119
|
}
|
|
113
|
-
a(
|
|
114
|
-
t,
|
|
115
|
-
o,
|
|
116
|
-
e.label ?? (o === r.tool ? "执行工具与回答" : o)
|
|
117
|
-
), e.mode === "replace" ? t.setStep(
|
|
120
|
+
a(e, o, w(o, t.label)), t.mode === "replace" ? e.setStep(
|
|
118
121
|
o,
|
|
119
|
-
|
|
122
|
+
e.getSteps().find((n) => n.id === o)?.status ?? "active",
|
|
120
123
|
s
|
|
121
|
-
) : (
|
|
122
|
-
} else if (
|
|
123
|
-
a(t,
|
|
124
|
-
|
|
124
|
+
) : (p(e, o), e.appendChunkToStep(o, s), await D());
|
|
125
|
+
} else if (t.type === "step_artifact")
|
|
126
|
+
a(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);
|
|
127
|
+
else if (t.type === "tool_start")
|
|
128
|
+
a(e, r.tool, "执行工具与回答"), p(e, r.tool), e.appendToolCallsToStep(r.tool, [
|
|
129
|
+
z(t)
|
|
125
130
|
]);
|
|
126
|
-
else if (
|
|
127
|
-
a(
|
|
131
|
+
else if (t.type === "tool_progress")
|
|
132
|
+
a(e, r.tool, "执行工具与回答"), p(e, r.tool), e.appendToolCallsToStep(r.tool, [
|
|
128
133
|
{
|
|
129
|
-
id:
|
|
130
|
-
name:
|
|
131
|
-
displayName:
|
|
132
|
-
argsText: JSON.stringify(
|
|
133
|
-
summary:
|
|
134
|
+
id: t.call.id,
|
|
135
|
+
name: t.call.name,
|
|
136
|
+
displayName: t.call.displayName,
|
|
137
|
+
argsText: JSON.stringify(t.call.input ?? {}, null, 2),
|
|
138
|
+
summary: t.summary,
|
|
134
139
|
status: "running"
|
|
135
140
|
}
|
|
136
141
|
]);
|
|
137
|
-
else if (
|
|
138
|
-
a(
|
|
139
|
-
U(
|
|
140
|
-
]),
|
|
142
|
+
else if (t.type === "tool_result")
|
|
143
|
+
a(e, r.tool, "执行工具与回答"), p(e, r.tool), e.appendToolCallsToStep(r.tool, [
|
|
144
|
+
U(t)
|
|
145
|
+
]), t.result.attachments?.length && e.appendAttachmentsToStep(
|
|
141
146
|
r.tool,
|
|
142
|
-
|
|
143
|
-
),
|
|
147
|
+
t.result.attachments
|
|
148
|
+
), t.result.files?.length && e.appendFilesToStep(
|
|
144
149
|
r.tool,
|
|
145
|
-
|
|
146
|
-
),
|
|
150
|
+
t.result.files
|
|
151
|
+
), t.result.toolCalls?.length && e.appendToolCallsToStep(
|
|
147
152
|
r.tool,
|
|
148
|
-
|
|
153
|
+
t.result.toolCalls
|
|
149
154
|
);
|
|
150
|
-
else if (
|
|
155
|
+
else if (t.type === "skill_permission_request") {
|
|
151
156
|
const { useSpotlightStore: o } = await import("../store/spotlightStore.js");
|
|
152
157
|
o().setPendingSkillPermission({
|
|
153
|
-
skillName:
|
|
154
|
-
displayName:
|
|
155
|
-
reason:
|
|
156
|
-
source:
|
|
157
|
-
at:
|
|
158
|
+
skillName: t.skillName,
|
|
159
|
+
displayName: t.displayName,
|
|
160
|
+
reason: t.reason,
|
|
161
|
+
source: t.source,
|
|
162
|
+
at: t.at
|
|
158
163
|
});
|
|
159
|
-
} else if (
|
|
160
|
-
a(
|
|
164
|
+
} else if (t.type === "fork_progress")
|
|
165
|
+
a(e, r.tool, "执行工具与回答"), e.appendChunkToStep(
|
|
161
166
|
r.tool,
|
|
162
167
|
`
|
|
163
|
-
[fork ${
|
|
168
|
+
[fork ${t.agentId}] 第 ${t.iteration} 轮 · ${t.phase}:${t.summary}
|
|
164
169
|
`
|
|
165
170
|
);
|
|
166
|
-
else if (
|
|
167
|
-
a(
|
|
168
|
-
const o =
|
|
169
|
-
|
|
171
|
+
else if (t.type === "assistant_response") {
|
|
172
|
+
a(e, r.tool, "执行工具与回答");
|
|
173
|
+
const o = e.getSteps().find((u) => u.id === r.tool), { planning: s, answer: n } = O(o?.content ?? ""), l = t.content.trim(), c = n.trim();
|
|
174
|
+
c && l && (c === l || l.startsWith(
|
|
175
|
+
c.slice(0, Math.min(c.length, 80))
|
|
176
|
+
)) ? e.setStep(r.tool, "done") : e.setStep(
|
|
170
177
|
r.tool,
|
|
171
178
|
"done",
|
|
172
|
-
|
|
179
|
+
H(s, l)
|
|
173
180
|
);
|
|
174
181
|
}
|
|
175
|
-
|
|
182
|
+
W(t) && e.appendExecutionEvent?.(t);
|
|
176
183
|
}
|
|
177
184
|
}
|
|
178
|
-
async function
|
|
185
|
+
async function Y(e) {
|
|
179
186
|
await fetch(
|
|
180
|
-
`${
|
|
187
|
+
`${y()}/v1/runs/${encodeURIComponent(e.runId)}/host-results`,
|
|
181
188
|
{
|
|
182
189
|
method: "POST",
|
|
183
|
-
headers:
|
|
190
|
+
headers: S(),
|
|
184
191
|
body: JSON.stringify({
|
|
185
|
-
correlationId:
|
|
186
|
-
success:
|
|
187
|
-
output:
|
|
188
|
-
error:
|
|
189
|
-
errorCode:
|
|
190
|
-
trace:
|
|
192
|
+
correlationId: e.correlationId,
|
|
193
|
+
success: e.result.success,
|
|
194
|
+
output: e.result.data,
|
|
195
|
+
error: e.result.error,
|
|
196
|
+
errorCode: e.result.errorCode,
|
|
197
|
+
trace: e.result.trace
|
|
191
198
|
}),
|
|
192
|
-
signal:
|
|
199
|
+
signal: e.signal
|
|
193
200
|
}
|
|
194
201
|
);
|
|
195
202
|
}
|
|
196
|
-
function
|
|
197
|
-
const
|
|
198
|
-
return { events:
|
|
199
|
-
const
|
|
200
|
-
if (!
|
|
203
|
+
function K(e) {
|
|
204
|
+
const t = e.split(/\n\n/u), o = t.pop() ?? "";
|
|
205
|
+
return { events: t.flatMap((n) => {
|
|
206
|
+
const l = n.split(/\n/u).find((c) => c.startsWith("data: "));
|
|
207
|
+
if (!l) return [];
|
|
201
208
|
try {
|
|
202
|
-
return [JSON.parse(
|
|
209
|
+
return [JSON.parse(l.slice(6))];
|
|
203
210
|
} catch {
|
|
204
211
|
return [];
|
|
205
212
|
}
|
|
206
213
|
}), rest: o };
|
|
207
214
|
}
|
|
208
|
-
async function
|
|
215
|
+
async function at(e) {
|
|
209
216
|
await Promise.allSettled([
|
|
210
|
-
|
|
211
|
-
|
|
217
|
+
_(e),
|
|
218
|
+
M(e)
|
|
212
219
|
]);
|
|
213
220
|
}
|
|
214
|
-
async function X(
|
|
215
|
-
const o =
|
|
221
|
+
async function X(e, t) {
|
|
222
|
+
const o = R(), s = A(), n = await _(t);
|
|
216
223
|
return {
|
|
217
224
|
hostManifest: n,
|
|
218
|
-
localClientTools: i,
|
|
219
225
|
payload: {
|
|
220
226
|
projectId: J(),
|
|
221
227
|
sessionId: o.sessionId,
|
|
222
|
-
userQuestion:
|
|
223
|
-
uiContext:
|
|
228
|
+
userQuestion: e,
|
|
229
|
+
uiContext: F().getUiContext?.() ?? {},
|
|
224
230
|
sessionState: {
|
|
225
231
|
sessionId: o.sessionId,
|
|
226
232
|
activeTaskId: o.activeTaskId,
|
|
@@ -240,105 +246,103 @@ async function X(t, e) {
|
|
|
240
246
|
resumableAction: s.resumableAction,
|
|
241
247
|
lastResolvedTarget: s.lastResolvedTarget
|
|
242
248
|
},
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
clientTools: i,
|
|
246
|
-
skills: N(x())
|
|
249
|
+
clientToolsManifestVersion: n.version,
|
|
250
|
+
skills: x(E())
|
|
247
251
|
}
|
|
248
252
|
};
|
|
249
253
|
}
|
|
250
|
-
async function ct(
|
|
251
|
-
const o =
|
|
252
|
-
|
|
254
|
+
async function ct(e, t) {
|
|
255
|
+
const o = y(), s = t.getSignal(), { payload: n, hostManifest: l } = await X(
|
|
256
|
+
e,
|
|
253
257
|
s
|
|
254
|
-
),
|
|
258
|
+
), c = new Set(l.tools.map((d) => d.name)), u = await fetch(`${o}/v1/runs`, {
|
|
255
259
|
method: "POST",
|
|
256
|
-
headers:
|
|
260
|
+
headers: S(),
|
|
257
261
|
body: JSON.stringify(n),
|
|
258
262
|
signal: s
|
|
259
263
|
});
|
|
260
|
-
if (!
|
|
261
|
-
const
|
|
264
|
+
if (!u.ok) {
|
|
265
|
+
const d = await u.text().catch(() => "");
|
|
262
266
|
throw new Error(
|
|
263
|
-
`Spotlight 后端创建 run 失败:${
|
|
267
|
+
`Spotlight 后端创建 run 失败:${u.status} ${d}`
|
|
264
268
|
);
|
|
265
269
|
}
|
|
266
|
-
const { runId:
|
|
267
|
-
s && (
|
|
270
|
+
const { runId: f } = await u.json();
|
|
271
|
+
s && (h.set(s, f), s.addEventListener(
|
|
268
272
|
"abort",
|
|
269
273
|
() => {
|
|
270
|
-
|
|
274
|
+
P(f);
|
|
271
275
|
},
|
|
272
276
|
{ once: !0 }
|
|
273
277
|
));
|
|
274
|
-
const
|
|
275
|
-
`${o}/v1/runs/${encodeURIComponent(
|
|
278
|
+
const m = await fetch(
|
|
279
|
+
`${o}/v1/runs/${encodeURIComponent(f)}/events`,
|
|
276
280
|
{
|
|
277
|
-
headers:
|
|
281
|
+
headers: S(),
|
|
278
282
|
signal: s
|
|
279
283
|
}
|
|
280
284
|
);
|
|
281
|
-
if (!
|
|
282
|
-
throw new Error(`Spotlight 后端事件流连接失败:${
|
|
283
|
-
const
|
|
284
|
-
let
|
|
285
|
+
if (!m.ok || !m.body)
|
|
286
|
+
throw new Error(`Spotlight 后端事件流连接失败:${m.status}`);
|
|
287
|
+
const T = m.body.getReader(), b = new TextDecoder();
|
|
288
|
+
let g = "", C = null;
|
|
285
289
|
try {
|
|
286
290
|
for (; ; ) {
|
|
287
|
-
const { done:
|
|
288
|
-
if (
|
|
289
|
-
|
|
290
|
-
const
|
|
291
|
-
|
|
292
|
-
for (const
|
|
293
|
-
if (
|
|
294
|
-
const
|
|
295
|
-
allowedHostNames:
|
|
296
|
-
hostEffect:
|
|
291
|
+
const { done: d, value: N } = await T.read();
|
|
292
|
+
if (d) break;
|
|
293
|
+
g += b.decode(N, { stream: !0 });
|
|
294
|
+
const I = K(g);
|
|
295
|
+
g = I.rest;
|
|
296
|
+
for (const i of I.events) {
|
|
297
|
+
if (i.type === "host_action_request") {
|
|
298
|
+
const k = await q(i.request.call, t, {
|
|
299
|
+
allowedHostNames: c,
|
|
300
|
+
hostEffect: i.request.hostEffect
|
|
297
301
|
});
|
|
298
|
-
Q(
|
|
299
|
-
runId:
|
|
300
|
-
correlationId:
|
|
301
|
-
result:
|
|
302
|
+
Q(t, i, k), await Y({
|
|
303
|
+
runId: f,
|
|
304
|
+
correlationId: i.request.correlationId,
|
|
305
|
+
result: k,
|
|
302
306
|
signal: s
|
|
303
307
|
});
|
|
304
308
|
continue;
|
|
305
309
|
}
|
|
306
|
-
if (
|
|
307
|
-
throw new Error(
|
|
308
|
-
if (await
|
|
309
|
-
return
|
|
310
|
-
|
|
311
|
-
),
|
|
310
|
+
if (i.type === "run_error")
|
|
311
|
+
throw new Error(i.error);
|
|
312
|
+
if (await V(t, i), i.type === "run_completed")
|
|
313
|
+
return i.sessionPatch?.invokedSkills && R().setInvokedSkills(
|
|
314
|
+
i.sessionPatch.invokedSkills
|
|
315
|
+
), C = i, {
|
|
312
316
|
command: null,
|
|
313
|
-
usedLegacyFallback:
|
|
317
|
+
usedLegacyFallback: i.usedQueryLoop
|
|
314
318
|
};
|
|
315
319
|
}
|
|
316
320
|
}
|
|
317
321
|
} finally {
|
|
318
|
-
|
|
322
|
+
T.releaseLock();
|
|
319
323
|
}
|
|
320
324
|
return {
|
|
321
325
|
command: null,
|
|
322
|
-
usedLegacyFallback:
|
|
326
|
+
usedLegacyFallback: C?.usedQueryLoop ?? !0
|
|
323
327
|
};
|
|
324
328
|
}
|
|
325
|
-
async function
|
|
329
|
+
async function P(e) {
|
|
326
330
|
await fetch(
|
|
327
|
-
`${
|
|
331
|
+
`${y()}/v1/runs/${encodeURIComponent(e)}`,
|
|
328
332
|
{
|
|
329
333
|
method: "DELETE",
|
|
330
|
-
headers:
|
|
334
|
+
headers: S()
|
|
331
335
|
}
|
|
332
336
|
);
|
|
333
337
|
}
|
|
334
|
-
function
|
|
335
|
-
if (!
|
|
336
|
-
const
|
|
337
|
-
|
|
338
|
+
function ut(e) {
|
|
339
|
+
if (!e) return;
|
|
340
|
+
const t = h.get(e);
|
|
341
|
+
t && (h.delete(e), P(t));
|
|
338
342
|
}
|
|
339
343
|
export {
|
|
340
|
-
|
|
341
|
-
|
|
344
|
+
P as cancelRemoteSpotlightRun,
|
|
345
|
+
ut as cancelRemoteSpotlightRunForSignal,
|
|
342
346
|
ct as runRemoteSpotlightPipeline,
|
|
343
|
-
|
|
347
|
+
at as warmupSpotlightRemoteContext
|
|
344
348
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HostToolEffect, ToolExecutionTarget, ToolTraceEvent } from "@inupedia/spotlight-protocol";
|
|
2
2
|
import type { ToolResult } from "../../types/toolResult.js";
|
|
3
|
-
import type { AgentStep, AgentStepAttachment, AgentStepFile, AgentStepToolCall } from "../types";
|
|
3
|
+
import type { AgentStep, AgentStepAttachment, AgentStepChatItem, AgentStepFile, AgentStepToolCall, SpotlightArtifact } from "../types";
|
|
4
4
|
export type SpotlightStepContentChannel = "body" | "planning" | "answer" | "tool" | "trace";
|
|
5
5
|
export type SpotlightLoopAction = "respond" | "call_tools" | "fallback";
|
|
6
6
|
export type SpotlightTurnStopReason = "completed" | "cancelled" | "max_turns_exhausted" | "tool_failure_unrecoverable" | "runtime_error";
|
|
@@ -62,6 +62,11 @@ export type SpotlightExecutionEvent = {
|
|
|
62
62
|
label: string | null;
|
|
63
63
|
artifact: "attachments" | "files" | "artifacts" | "tool_calls" | "chat_items";
|
|
64
64
|
count: number;
|
|
65
|
+
attachments?: AgentStepAttachment[];
|
|
66
|
+
files?: AgentStepFile[];
|
|
67
|
+
artifacts?: SpotlightArtifact[];
|
|
68
|
+
toolCalls?: AgentStepToolCall[];
|
|
69
|
+
chatItems?: AgentStepChatItem[];
|
|
65
70
|
} | {
|
|
66
71
|
type: "turn_transition";
|
|
67
72
|
at: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/store/runtime/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,cAAc,EACf,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EACV,SAAS,EACT,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,2BAA2B,GACnC,MAAM,GACN,UAAU,GACV,QAAQ,GACR,MAAM,GACN,OAAO,CAAC;AAEZ,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,YAAY,GAAG,UAAU,CAAC;AACxE,MAAM,MAAM,uBAAuB,GAC/B,WAAW,GACX,WAAW,GACX,qBAAqB,GACrB,4BAA4B,GAC5B,eAAe,CAAC;AAEpB,MAAM,MAAM,yBAAyB,GACjC,MAAM,GACN,SAAS,GACT,QAAQ,GACR,KAAK,GACL,IAAI,CAAC;AAET,MAAM,MAAM,kBAAkB,GAC1B,wBAAwB,GACxB,WAAW,GACX,SAAS,GACT,gBAAgB,GAChB,gBAAgB,GAChB,YAAY,GACZ,WAAW,GACX,WAAW,GACX,QAAQ,CAAC;AAEb,MAAM,WAAW,wBAAwB;IACvC,YAAY,E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