@inupedia/spotlight-vue 0.5.10 → 0.5.12
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/assets/spotlight-vue.css +1 -1
- package/dist/components/SpotlightThinking.vue.d.ts.map +1 -1
- package/dist/components/SpotlightThinking.vue.js +2 -2
- package/dist/components/SpotlightThinking2.vue.js +187 -191
- package/dist/constants/toolNames.d.ts +1 -0
- package/dist/constants/toolNames.d.ts.map +1 -1
- package/dist/constants/toolNames.js +2 -1
- package/dist/remote/runPipeline.d.ts +83 -0
- package/dist/remote/runPipeline.d.ts.map +1 -1
- package/dist/remote/runPipeline.js +225 -218
- package/dist/store/pipeline/toolDisplay.d.ts.map +1 -1
- package/dist/store/pipeline/toolDisplay.js +32 -29
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolNames.d.ts","sourceRoot":"","sources":["../../src/constants/toolNames.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"toolNames.d.ts","sourceRoot":"","sources":["../../src/constants/toolNames.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;CAWb,CAAC"}
|
|
@@ -1,14 +1,97 @@
|
|
|
1
|
+
import type { HostToolEffect, SpotlightMemoryDecision } from "@inupedia/spotlight-protocol";
|
|
1
2
|
import type { HandlerApi } from "../store/pipeline/types.js";
|
|
2
3
|
import type { SpotlightExecutionEvent } from "../store/runtime/types.js";
|
|
4
|
+
import { executeRemoteHostTool } from "./hostToolRunner.js";
|
|
3
5
|
import type { SpotlightPipelineRunOutcome } from "./types.js";
|
|
6
|
+
type RemoteRunEvent = SpotlightExecutionEvent | {
|
|
7
|
+
type: "host_action_request";
|
|
8
|
+
at: number;
|
|
9
|
+
iteration: number;
|
|
10
|
+
request: {
|
|
11
|
+
correlationId: string;
|
|
12
|
+
call: {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
input: Record<string, unknown>;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
hostEffect?: HostToolEffect;
|
|
19
|
+
};
|
|
20
|
+
} | {
|
|
21
|
+
type: "run_completed";
|
|
22
|
+
at: number;
|
|
23
|
+
runId: string;
|
|
24
|
+
turnId: string;
|
|
25
|
+
assistantReply: string | null;
|
|
26
|
+
commandName: string | null;
|
|
27
|
+
stopReason: string;
|
|
28
|
+
failureClass: string | null;
|
|
29
|
+
elapsedMs: number;
|
|
30
|
+
memoryReplay?: {
|
|
31
|
+
source: "exact" | "semantic" | "session";
|
|
32
|
+
entryId: string;
|
|
33
|
+
replayedAt: number;
|
|
34
|
+
kind: string;
|
|
35
|
+
};
|
|
36
|
+
memoryDecision?: SpotlightMemoryDecision;
|
|
37
|
+
sessionPatch?: Partial<import("@inupedia/spotlight-protocol").SpotlightSessionState>;
|
|
38
|
+
} | {
|
|
39
|
+
type: "memory_decision";
|
|
40
|
+
at: number;
|
|
41
|
+
turnId: string;
|
|
42
|
+
decision: SpotlightMemoryDecision;
|
|
43
|
+
} | {
|
|
44
|
+
type: "run_error";
|
|
45
|
+
at: number;
|
|
46
|
+
runId: string;
|
|
47
|
+
error: string;
|
|
48
|
+
} | {
|
|
49
|
+
type: "ping";
|
|
50
|
+
at: number;
|
|
51
|
+
} | {
|
|
52
|
+
type: "skill_permission_request";
|
|
53
|
+
at: number;
|
|
54
|
+
skillName: string;
|
|
55
|
+
displayName?: string;
|
|
56
|
+
reason: string;
|
|
57
|
+
source: "model" | "user-slash";
|
|
58
|
+
} | {
|
|
59
|
+
type: "fork_progress";
|
|
60
|
+
at: number;
|
|
61
|
+
agentId: string;
|
|
62
|
+
iteration: number;
|
|
63
|
+
phase: "plan" | "tool_execution" | "respond";
|
|
64
|
+
summary: string;
|
|
65
|
+
} | {
|
|
66
|
+
type: "assistant_response";
|
|
67
|
+
at: number;
|
|
68
|
+
iteration: number;
|
|
69
|
+
content: string;
|
|
70
|
+
} | {
|
|
71
|
+
type: "agent_memory_updated";
|
|
72
|
+
at: number;
|
|
73
|
+
projectId: string;
|
|
74
|
+
tenantId?: string;
|
|
75
|
+
action: "remember" | "forget";
|
|
76
|
+
slug?: string;
|
|
77
|
+
reason?: string;
|
|
78
|
+
};
|
|
79
|
+
export declare function beginHostToolCall(api: HandlerApi, call: Extract<RemoteRunEvent, {
|
|
80
|
+
type: "host_action_request";
|
|
81
|
+
}>["request"]["call"]): void;
|
|
82
|
+
export declare function settleHostToolCall(api: HandlerApi, call: Extract<RemoteRunEvent, {
|
|
83
|
+
type: "host_action_request";
|
|
84
|
+
}>["request"]["call"], result: Awaited<ReturnType<typeof executeRemoteHostTool>>): void;
|
|
4
85
|
export declare function responseStepLabel(api: HandlerApi): string;
|
|
5
86
|
export declare function applyLangGraphTransition(api: HandlerApi, event: Extract<SpotlightExecutionEvent, {
|
|
6
87
|
type: "turn_transition";
|
|
7
88
|
}>): void;
|
|
89
|
+
export declare function applyRemoteEvent(api: HandlerApi, event: RemoteRunEvent): Promise<void>;
|
|
8
90
|
export declare function warmupSpotlightRemoteContext(signal?: AbortSignal): Promise<void>;
|
|
9
91
|
export declare function runRemoteSpotlightPipeline(userQuestion: string, api: HandlerApi, options?: {
|
|
10
92
|
forceMemoryRefresh?: boolean;
|
|
11
93
|
}): Promise<SpotlightPipelineRunOutcome>;
|
|
12
94
|
export declare function cancelRemoteSpotlightRun(runId: string): Promise<void>;
|
|
13
95
|
export declare function cancelRemoteSpotlightRunForSignal(signal?: AbortSignal): void;
|
|
96
|
+
export {};
|
|
14
97
|
//# sourceMappingURL=runPipeline.d.ts.map
|
|
@@ -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":"AAAA,OAAO,KAAK,EAC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