@womp/spark-agent 9.4.0 → 10.0.0
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/CHANGELOG.md +74 -0
- package/README.md +11 -11
- package/dist/agent-run.d.ts +1 -1
- package/dist/agent-tools.d.ts +7 -13
- package/dist/agent-tools.js +36 -35
- package/dist/agent.d.ts +3 -3
- package/dist/capabilities/flow-runs.d.ts +9 -0
- package/dist/capabilities/flow-runs.js +1 -0
- package/dist/capabilities.d.ts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/generated/flow-runs-declarations.d.ts +1 -1
- package/dist/generated/flow-runs-declarations.js +1 -1
- package/dist/goals.d.ts +52 -45
- package/dist/goals.js +16 -24
- package/dist/intent-bench.js +69 -21
- package/dist/model-history.js +5 -1
- package/dist/server/executor.js +1 -1
- package/dist/server/goal-evaluator.d.ts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/service.d.ts +27 -19
- package/dist/server/service.js +137 -60
- package/dist/server/standalone.d.ts +1 -1
- package/dist/server/standalone.js +0 -21
- package/dist/server/types.d.ts +3 -3
- package/dist/ui.d.ts +67 -27
- package/dist/ui.js +32 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,80 @@ Notable changes to `@womp/spark-agent`, newest first. Versions follow
|
|
|
4
4
|
[Semantic Versioning](https://semver.org/). Add an entry with each version bump; describe what
|
|
5
5
|
changed for hosts and users, and how to migrate across breaking changes.
|
|
6
6
|
|
|
7
|
+
## 10.0.0 — 2026-10-13
|
|
8
|
+
|
|
9
|
+
The agent sets and changes a goal itself, from what the user says in chat, instead of proposing one
|
|
10
|
+
and waiting for the user to confirm it.
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- The `goal({ action, title?, conditions?, tries?, credits? })` tool, offered whenever the service
|
|
15
|
+
has `evaluateGoal`:
|
|
16
|
+
- `set` starts a goal at once with the calling run as its first try, with 5 tries, and 2,000
|
|
17
|
+
credits where the host has `readGoalCredits`, unless the call gives others. A goal the
|
|
18
|
+
conversation already has ends: as done if it was complete, replaced otherwise.
|
|
19
|
+
- `change` gives the goal new conditions, tries or credits. A condition whose words did not change
|
|
20
|
+
keeps what the checks found for it, in the goal and in `goal.tries`. If every measurable
|
|
21
|
+
condition is then already verified, the goal is complete at once.
|
|
22
|
+
- `continue` has a goal that stopped go on, with `GOAL_MORE_TRIES` (3) more tries if it had used
|
|
23
|
+
its tries.
|
|
24
|
+
- `remove` ends the goal, and the run goes on as an ordinary turn.
|
|
25
|
+
A goal that is set, changed or continued goes on with the calling run as its next try, unless it
|
|
26
|
+
is complete or still at a limit. Only a turn the user started may call the tool to effect, not a
|
|
27
|
+
try the service started, and not for a Wompify goal.
|
|
28
|
+
- The tool's result (`SparkGoalResult`) carries the goal's limits and `ended`
|
|
29
|
+
(`SparkGoalSummary`): the title, outcome, tries, credits and checks of the goal the call ended.
|
|
30
|
+
It stays in the conversation as the `tool-goal` part's output, for hosts to show past goals.
|
|
31
|
+
- `SparkAgentServiceOptions.onGoalChange`, called when a `goal` call changes what its run works
|
|
32
|
+
for or ends a goal, before the agent goes on. A change it refuses is undone.
|
|
33
|
+
- `SparkRunExecutionContext.handleGoal` and `SparkAgentOptions.handleGoal` (`SparkGoalHandler`)
|
|
34
|
+
carry the tool to the agent.
|
|
35
|
+
|
|
36
|
+
### Removed
|
|
37
|
+
|
|
38
|
+
- The `propose_goal` tool, `SparkAgentServiceOptions.confirmGoal` and `onGoalStart`,
|
|
39
|
+
`SparkGoalOffer`, `sparkGoalDecisionSchema`, `sparkGoalProposalSchema` and their types, and the
|
|
40
|
+
wait in `requires_action` for the user's answer.
|
|
41
|
+
- The `data-goal-proposal` part and `sparkGoalProposalPartSchema`. A conversation that holds one no
|
|
42
|
+
longer validates.
|
|
43
|
+
- `GOAL_CONFIRMATION_DEFAULTS`.
|
|
44
|
+
- The standalone server's `POST /goal-proposals/:toolCallId`.
|
|
45
|
+
|
|
46
|
+
### Migration
|
|
47
|
+
|
|
48
|
+
- Remove `confirmGoal` and the confirmation UI. Show a goal from the conversation's goal state, and
|
|
49
|
+
past goals from the `ended` of the `tool-goal` parts.
|
|
50
|
+
- A host that counted a goal's spending from `onGoalStart` does it from `onGoalChange`, which also
|
|
51
|
+
says when a run stops working for a goal.
|
|
52
|
+
- A host that offered `propose_goal` to some runs only passes or drops `handleGoal` the same way.
|
|
53
|
+
- A host that stores tool calls by name must accept `goal`.
|
|
54
|
+
|
|
55
|
+
## 9.5.0 — 2026-10-13
|
|
56
|
+
|
|
57
|
+
### Added
|
|
58
|
+
|
|
59
|
+
- The `flow-run-result` data part in `sparkDataPartSchemas`: a finished flow run (`runId`,
|
|
60
|
+
`flowTitle`, `status`, `error`, `failedNodes`, `outputs`, `copy`). `convertSparkMessages` turns it
|
|
61
|
+
into one text line for the model, built by the new export `flowRunResultText(data)` (also from
|
|
62
|
+
`@womp/spark-agent/ui`) and the type `SparkFlowRunResult`.
|
|
63
|
+
- `hostParts?: boolean` on `SubmitSparkMessageInput`: set only by host code, it lets
|
|
64
|
+
`submitMessage` accept a `data-flow-run-result` part (still validated by `sparkDataPartSchemas`).
|
|
65
|
+
Without it the part is refused with 400. The express router never sets it from a request body.
|
|
66
|
+
- `failedNodes` on `FlowRunStatus` and `FlowRunStarted` (optional), and the `flow-runs` skill tells
|
|
67
|
+
the model to name the failed steps.
|
|
68
|
+
|
|
69
|
+
### Migration
|
|
70
|
+
|
|
71
|
+
- Hosts that validate stored parts with `sparkDataPartSchemas` take 9.5.0 before a host that writes
|
|
72
|
+
the part. Render the part as an event, not as a user message.
|
|
73
|
+
- Hosts submit the part with `hostParts: true` on `submitMessage`.
|
|
74
|
+
- Once a host writes the `flow-run-result` part into stored conversations, every reader of those
|
|
75
|
+
conversations must be at 9.5.0 or newer. A 9.4.x bundle (a frontend rollback, a tab open from
|
|
76
|
+
before the frontend deploy, a preview build not on 9.5.0) fails to read the thread ("The saved
|
|
77
|
+
conversation could not be read"), and rolling the writing host back below 9.5.0 makes later
|
|
78
|
+
submits in those threads fail. Deploy readers first, and do not roll back below 9.5.0 after the
|
|
79
|
+
writer is live.
|
|
80
|
+
|
|
7
81
|
## 9.4.0 — 2026-10-13
|
|
8
82
|
|
|
9
83
|
### Changed
|
package/README.md
CHANGED
|
@@ -149,17 +149,17 @@ Conversation settings contain `modelId` and `reasoningEffort`; save them with
|
|
|
149
149
|
`transport.saveConversationSettings(id, settings)`. The goal endpoint accepts `set`, `pause`,
|
|
150
150
|
`resume`, `clear`, and `update_budget` commands.
|
|
151
151
|
|
|
152
|
-
A goal starts from an ordinary message, when the agent
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
152
|
+
A goal starts from an ordinary message, when the agent sets one, and changes when the user asks in
|
|
153
|
+
chat. A service with `evaluateGoal` gives the agent the `goal` tool. With `set` it starts a goal
|
|
154
|
+
before building, when the request sets constraints a result can be measured against, from a title
|
|
155
|
+
and the conditions, each marked `measurable` or left to the user's review. The goal starts at once,
|
|
156
|
+
with that run as its first try and with 5 tries and 2,000 credits unless the call gives others; the
|
|
157
|
+
service evaluates each measurable condition after every try and records the result on
|
|
158
|
+
`goal.conditions`. `change` gives the goal new conditions or limits, `continue` has a stopped goal
|
|
159
|
+
go on, and `remove` ends it; after a change the goal goes on in that turn. A `set` over an existing
|
|
160
|
+
goal ends that one, and the call's result keeps its summary as `ended`. `onGoalChange` tells a host
|
|
161
|
+
that counts a goal's spending when a run starts or stops working for one. A host leaves
|
|
162
|
+
`handleGoal` out of the run it executes to withhold the tool.
|
|
163
163
|
|
|
164
164
|
The SSE response contains ordered persistence envelopes around standard AI SDK chunks:
|
|
165
165
|
|
package/dist/agent-run.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export declare function runAgent(options: RunOptions): Promise<{
|
|
|
43
43
|
} | undefined;
|
|
44
44
|
conversationId: string | null;
|
|
45
45
|
runId: string | null;
|
|
46
|
-
status: "
|
|
46
|
+
status: "running" | "completed" | "queued" | "requires_action" | "failed" | "cancelled" | "incomplete";
|
|
47
47
|
finalAnswer: string;
|
|
48
48
|
durationMs: number | null;
|
|
49
49
|
steps: number;
|
package/dist/agent-tools.d.ts
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
import { type Tool } from "ai";
|
|
2
2
|
import type { ExecutionReceipt, SparkArtifactResolver, SparkCapabilities } from "./capabilities.js";
|
|
3
3
|
import type { JavaScriptExecutor } from "./executor.js";
|
|
4
|
-
import { type
|
|
4
|
+
import { type SparkGoalRequest, type SparkGoalResult } from "./goals.js";
|
|
5
5
|
import type { SparkUIMessage, SparkUIMessageChunk, SparkUITools } from "./ui.js";
|
|
6
6
|
export type SparkToolCall = {
|
|
7
7
|
id: string;
|
|
8
|
-
name: "read_skill" | "execute_javascript" | "
|
|
8
|
+
name: "read_skill" | "execute_javascript" | "goal";
|
|
9
9
|
input: unknown;
|
|
10
10
|
};
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
* the goal for this run when they confirm it.
|
|
14
|
-
*/
|
|
15
|
-
export type SparkGoalOffer = (proposal: SparkGoalProposal, call: {
|
|
16
|
-
toolCallId: string;
|
|
17
|
-
signal: AbortSignal;
|
|
18
|
-
}) => Promise<SparkGoalOutcome>;
|
|
11
|
+
/** Carries out a `goal` call for the run that made it. */
|
|
12
|
+
export type SparkGoalHandler = (request: SparkGoalRequest) => Promise<SparkGoalResult>;
|
|
19
13
|
export interface SparkPersistence {
|
|
20
14
|
beforeToolCall(call: SparkToolCall): Promise<void>;
|
|
21
15
|
recordReceipt(callId: string, receipt: ExecutionReceipt): Promise<void>;
|
|
@@ -31,8 +25,8 @@ export type SparkToolOptions = {
|
|
|
31
25
|
controller: AbortController;
|
|
32
26
|
persistence?: SparkPersistence;
|
|
33
27
|
executionTimeoutMs?: number;
|
|
34
|
-
/** Present when the host
|
|
35
|
-
|
|
28
|
+
/** Present when the host runs goals: the model then has `goal`. */
|
|
29
|
+
handleGoal?: SparkGoalHandler;
|
|
36
30
|
write(chunk: SparkUIMessageChunk): void;
|
|
37
31
|
};
|
|
38
32
|
type SparkTool<Name extends keyof SparkUITools> = Tool<SparkUITools[Name]["input"], SparkUITools[Name]["output"]>;
|
|
@@ -40,7 +34,7 @@ type SparkCoreTools = {
|
|
|
40
34
|
[Name in "read_skill" | "execute_javascript"]: SparkTool<Name>;
|
|
41
35
|
};
|
|
42
36
|
export type SparkTools = SparkCoreTools | (SparkCoreTools & {
|
|
43
|
-
|
|
37
|
+
goal: SparkTool<"goal">;
|
|
44
38
|
});
|
|
45
39
|
export declare function createSparkTools(options: SparkToolOptions): SparkTools;
|
|
46
40
|
export {};
|
package/dist/agent-tools.js
CHANGED
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
import { boundedResultText, canonicalJsonValue } from "./bounded-output.js";
|
|
4
4
|
import { completedInputString } from "./tool-input-label.js";
|
|
5
5
|
import { UserWait } from "./execution-lifetime.js";
|
|
6
|
-
import {
|
|
6
|
+
import { GOAL_DEFAULT_CAPS, GOAL_MORE_TRIES, sparkGoalRequestSchema } from "./goals.js";
|
|
7
7
|
function errorMessage(error) {
|
|
8
8
|
return error instanceof Error ? error.message : String(error);
|
|
9
9
|
}
|
|
@@ -22,13 +22,30 @@ const artifactRefSchema = z.object({
|
|
|
22
22
|
mediaType: z.string().min(1),
|
|
23
23
|
name: z.string().optional(),
|
|
24
24
|
});
|
|
25
|
-
/** What the model is told a
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
25
|
+
/** What the model is told a `goal` call did, and so what to do next. */
|
|
26
|
+
function goalResultText({ goal, tries, credits }) {
|
|
27
|
+
const limits = [
|
|
28
|
+
tries === undefined ? undefined : `${tries} ${tries === 1 ? "try" : "tries"}`,
|
|
29
|
+
credits === undefined ? undefined : `${credits.toLocaleString("en-US")} credits`,
|
|
30
|
+
].filter(Boolean).join(" and ");
|
|
31
|
+
const upTo = limits ? `, up to ${limits}` : "";
|
|
32
|
+
switch (goal) {
|
|
33
|
+
case "started":
|
|
34
|
+
return `The goal is set and running${upTo}. Tell the user in one line that you set a goal from their message, its limits, and that they can tell you to stop or change anything. Then build it, and verify every measurable condition with tool results before you finish. An independent check follows each try and sends back what is still unmet.`;
|
|
35
|
+
case "running":
|
|
36
|
+
return `The goal is running${upTo}, with this turn as its next try. Confirm to the user in one line what changed, then keep working toward it.`;
|
|
37
|
+
case "done":
|
|
38
|
+
return "With this change every measurable condition is already verified, so the goal is done. Tell the user in one line.";
|
|
39
|
+
case "limited":
|
|
40
|
+
return `The goal is at its limit${upTo}, so it is not running. Tell the user in one line, and that it goes on when they ask for more.`;
|
|
41
|
+
case "removed":
|
|
42
|
+
return "The goal is removed. Tell the user in one line, and carry out their request as an ordinary turn.";
|
|
43
|
+
case "refused":
|
|
44
|
+
return "The goal cannot be set or changed in this turn: only the user's own message can do that, and not for a goal Wompify runs. Keep working toward the current goal.";
|
|
45
|
+
case "missing":
|
|
46
|
+
return "This conversation has no goal to change.";
|
|
47
|
+
}
|
|
48
|
+
}
|
|
32
49
|
export function createSparkTools(options) {
|
|
33
50
|
const { controller, persistence } = options;
|
|
34
51
|
const executionTimeoutMs = options.executionTimeoutMs ?? 60_000;
|
|
@@ -84,35 +101,19 @@ export function createSparkTools(options) {
|
|
|
84
101
|
onInputAvailable: ({ toolCallId }) => { inputs.delete(toolCallId); },
|
|
85
102
|
};
|
|
86
103
|
};
|
|
87
|
-
const {
|
|
104
|
+
const { handleGoal } = options;
|
|
88
105
|
return {
|
|
89
|
-
...(
|
|
90
|
-
|
|
91
|
-
description: "
|
|
92
|
-
inputSchema:
|
|
93
|
-
title:
|
|
94
|
-
conditions:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
const status = (status, label) => options.write({ type: "data-run-status", data: { runId: options.runId, status, label } });
|
|
98
|
-
// The message keeps the proposal, and then what became of it, under one id.
|
|
99
|
-
const store = (outcome) => options.write({
|
|
100
|
-
type: "data-goal-proposal", id: `goal-proposal-${toolCallId}`,
|
|
101
|
-
data: { ...input, toolCallId, ...(outcome ? { outcome } : {}) },
|
|
102
|
-
});
|
|
103
|
-
store();
|
|
104
|
-
status("requires_action", "Waiting for your answer");
|
|
105
|
-
try {
|
|
106
|
-
const goal = await proposeGoal(input, { toolCallId, signal: controller.signal });
|
|
107
|
-
store(goal);
|
|
108
|
-
return { goal };
|
|
109
|
-
}
|
|
110
|
-
finally {
|
|
111
|
-
if (!controller.signal.aborted)
|
|
112
|
-
status("running", "Continuing after user input");
|
|
113
|
-
}
|
|
106
|
+
...(handleGoal === undefined ? {} : {
|
|
107
|
+
goal: tool({
|
|
108
|
+
description: "Manage the conversation's goal: work that repeats, without the user, until an independent check verifies its conditions. Call it only for what the user's own message asks. set: start a goal for the request, once, before building or generating anything, when the request sets a constraint the finished result passes or fails by measurement: a size, a count, a limit, a fit to something real, a clearance, an angle, a weight, a price, or a physical requirement such as being one piece, resting on the ground or parts not intersecting. Do not set one for a question, a small direct edit, or a request that only describes what to make. The goal starts at once, with this turn as its first try, and ends a goal already there, so use it for a new request and not to adjust the current one. change: the user asked to add, drop or alter a condition, or for other limits. continue: the user asked to keep going with a goal that stopped. remove: the user wants the request done without a goal.",
|
|
109
|
+
inputSchema: sparkGoalRequestSchema.extend({
|
|
110
|
+
title: sparkGoalRequestSchema.shape.title.describe("For set: two to four words in sentence case naming what is being made."),
|
|
111
|
+
conditions: sparkGoalRequestSchema.shape.conditions.describe("For set, and for change when the conditions change: the full list. Only constraints the user stated or directly implied, never your own, each marked measurable. The description of what to make is not a list of constraints: leave out its parts and features, and any instruction about how to work, what to check or what to render. State each as a fact about the finished result in a few words of the user's language, with its number and unit: \"Height is 120 mm\", not \"Make it 120 mm tall\". Split compound constraints. If the user asked for a look, style, feel or quality that takes judgement, add it as one condition that is not measurable, left to their review. Keep a condition's words as they are when it does not change."),
|
|
112
|
+
tries: sparkGoalRequestSchema.shape.tries.describe(`For set or change: the most tries the goal may take, when the user gave a number. A new goal otherwise gets ${GOAL_DEFAULT_CAPS.tries}, and continue adds ${GOAL_MORE_TRIES} to one that used its tries.`),
|
|
113
|
+
credits: sparkGoalRequestSchema.shape.credits.describe(`For set or change: the most credits the goal may spend, when the user gave a number. A new goal otherwise gets ${GOAL_DEFAULT_CAPS.credits.toLocaleString("en-US")}.`),
|
|
114
114
|
}),
|
|
115
|
-
|
|
115
|
+
execute: (input, { toolCallId }) => execute({ id: toolCallId, name: "goal", input }, () => handleGoal(input)),
|
|
116
|
+
toModelOutput: ({ output }) => ({ type: "text", value: goalResultText(output) }),
|
|
116
117
|
}),
|
|
117
118
|
}),
|
|
118
119
|
read_skill: tool({
|
package/dist/agent.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { streamText, type LanguageModel, type ModelMessage } from "ai";
|
|
2
|
-
import { type
|
|
2
|
+
import { type SparkGoalHandler, type SparkPersistence } from "./agent-tools.js";
|
|
3
3
|
import type { SparkArtifactResolver, SparkCapabilities } from "./capabilities.js";
|
|
4
4
|
import type { JavaScriptExecutor } from "./executor.js";
|
|
5
5
|
import { type SparkCompactionLimits } from "./compaction.js";
|
|
@@ -34,8 +34,8 @@ export type SparkAgentOptions = {
|
|
|
34
34
|
maxOutputTokens?: number;
|
|
35
35
|
executionTimeoutMs?: number;
|
|
36
36
|
persistence?: SparkPersistence;
|
|
37
|
-
/** Gives the model `
|
|
38
|
-
|
|
37
|
+
/** Gives the model `goal`; absent, it has no way to set or change a goal. */
|
|
38
|
+
handleGoal?: SparkGoalHandler;
|
|
39
39
|
prepareMessages?(messages: ModelMessage[]): Promise<ModelMessage[]>;
|
|
40
40
|
/** The model's context window, which caps when `history` is compacted. Absent: `contextWindowFor(modelId)`. */
|
|
41
41
|
contextWindow?: number;
|
|
@@ -13,6 +13,11 @@ export type FlowRunOutputNode = {
|
|
|
13
13
|
nodeId: string;
|
|
14
14
|
typeId: string;
|
|
15
15
|
};
|
|
16
|
+
/** A step that failed; `label` is its display name, never a provider message. */
|
|
17
|
+
export type FlowRunFailedNode = {
|
|
18
|
+
nodeId: string;
|
|
19
|
+
label: string;
|
|
20
|
+
};
|
|
16
21
|
export type FlowRunLive = {
|
|
17
22
|
runId: string;
|
|
18
23
|
trigger: string;
|
|
@@ -39,6 +44,8 @@ export type FlowRunStarted = {
|
|
|
39
44
|
deleteCopy: boolean;
|
|
40
45
|
/** When the copy was deleted (ISO); null while it exists. */
|
|
41
46
|
copyDeletedAt: string | null;
|
|
47
|
+
/** Set when the run already failed by the time start returns (a repeated start). */
|
|
48
|
+
failedNodes?: FlowRunFailedNode[];
|
|
42
49
|
};
|
|
43
50
|
export type FlowRunStatus = {
|
|
44
51
|
runId: string;
|
|
@@ -55,6 +62,8 @@ export type FlowRunStatus = {
|
|
|
55
62
|
projectUrl: string | null;
|
|
56
63
|
deleteCopy: boolean;
|
|
57
64
|
copyDeletedAt: string | null;
|
|
65
|
+
/** On a failed run: the steps that failed, by display name. Absent from older hosts. */
|
|
66
|
+
failedNodes?: FlowRunFailedNode[];
|
|
58
67
|
};
|
|
59
68
|
export type FlowRunCancelled = {
|
|
60
69
|
runId: string;
|
|
@@ -27,6 +27,7 @@ Only one run of a flow can be live. run() starts the run and returns at once. Fo
|
|
|
27
27
|
To leave the user's flow untouched, pass copy: true. The run then happens on a new copy of the project, placed in the user's "Flow runs" folder: the input values, outputs and any scene changes land on the copy, and the user's flow, its saved values and its scene are not changed. Use it when the user wants to try values without changing their flow, or when their flow is busy. A copy run does not lock the scene. run() returns the copy's projectUrl; give it to the user so they can open the result.
|
|
28
28
|
To keep only the result of a copy run, also pass deleteCopy: true: the copy is deleted when the run ends, whether it completed, failed or was cancelled. Use it when the user wants the outputs, not the project; do not give them that run's projectUrl, which stops working (status() then returns projectUrl null).
|
|
29
29
|
To delete a copy run's copy later, call deleteCopy(runId) once the run has ended; it is refused for a run that is still running (cancel it first) or one that did not run on a copy. Right after cancel(), deleteCopy() may answer run_active for about a minute while the run stops: retry later, or pass deleteCopy: true at start instead. Output links keep working after the copy is deleted, either way.
|
|
30
|
+
When a run fails, name the failed steps from failedNodes in your answer (the error alone is generic). The outputs listed for a run are only what that run produced; do not present anything else as its result.
|
|
30
31
|
A run may outlive your turn. If it does, the system reports the result in a follow-up, so do not keep calling status() across many calls.
|
|
31
32
|
When status() or wait() returns an ended run with reported "now", the result is yours to tell the user. With reported "earlier", the result was already reported, earlier in the conversation or by the refusal run() returned to you; do not repeat it.
|
|
32
33
|
Errors start with a code. flow_busy and snapshot_changed mean the user is using the flow: tell them and do not retry. backend_deploying means try again later. not_authorized is final. no_project means the conversation needs a project first.
|
package/dist/capabilities.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export type { SceneHealthHost } from "./capabilities/scene.js";
|
|
|
18
18
|
export { createFlowCapability } from "./capabilities/flow.js";
|
|
19
19
|
export type { FlowHost, FlowSnapshot, FlowWrite, FlowWriteResult, WompFlowApi, } from "./capabilities/flow.js";
|
|
20
20
|
export { createFlowRunsCapability, FLOW_RUN_WAIT_DEFAULT_SECONDS, FLOW_RUN_WAIT_MAX_SECONDS, } from "./capabilities/flow-runs.js";
|
|
21
|
-
export type { FlowRunCancelled, FlowRunCopyDeleted, FlowRunDescription, FlowRunInput, FlowRunLive, FlowRunOutputNode, FlowRunStarted, FlowRunStatus, FlowRunsHost, WompFlowRunsApi, } from "./capabilities/flow-runs.js";
|
|
21
|
+
export type { FlowRunCancelled, FlowRunCopyDeleted, FlowRunDescription, FlowRunInput, FlowRunLive, FlowRunOutputNode, FlowRunFailedNode, FlowRunStarted, FlowRunStatus, FlowRunsHost, WompFlowRunsApi, } from "./capabilities/flow-runs.js";
|
|
22
22
|
export type { GeometryHost, GeometryTarget, GeometryInstance, GeometryParamValue, GeometryWrite, GeometryWriteResult, WompGeometryApi, } from "./capabilities/geometry.js";
|
|
23
23
|
export type { WompOpenScadApi, OpenScadHost, OpenScadTarget, OpenScadSource, OpenScadCreate, OpenScadUpdate, OpenScadValidation, OpenScadPrintability, OpenScadWriteResult, } from "./capabilities/openscad.js";
|
|
24
24
|
export type ArtifactRef = {
|
package/dist/client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ChatRequestOptions, ChatTransport, UIMessageChunk } from "ai";
|
|
2
2
|
import type { SparkRunSettings } from "./server/types.js";
|
|
3
3
|
import type { SparkGoal, SparkGoalCommand } from "./goals.js";
|
|
4
|
-
export type { SparkGoal, SparkGoalCommand, SparkGoalCondition,
|
|
4
|
+
export type { SparkGoal, SparkGoalCommand, SparkGoalCondition, SparkGoalTry } from "./goals.js";
|
|
5
5
|
import type { SparkConversation, SparkConversationSummary, SparkRun } from "./server/types.js";
|
|
6
6
|
import type { SparkUIMessage } from "./ui.js";
|
|
7
7
|
export type { SparkConversation, SparkConversationSummary, SparkRun, SparkRunSettings, } from "./server/types.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const WOMP_FLOW_RUNS_DECLARATIONS = "declare const womp: { flowRuns: {\n\"describe\": (() => Promise<{\n\"projectId\": number;\n\"snapshotId\": string;\n\"inputs\": Array<{\n\"nodeId\": string;\n\"typeId\": string;\n\"valueType\": string;\n\"value\": unknown;\n\"required\": false | true;\n}>;\n\"outputs\": Array<{\n\"nodeId\": string;\n\"typeId\": string;\n}>;\n\"liveRun\": null | {\n\"runId\": string;\n\"trigger\": string;\n};\n}>);\n\"run\": ((options?: undefined | {\n\"inputs\"?: undefined | {\n[key: string]: unknown;\n};\n\"copy\"?: undefined | false | true;\n\"deleteCopy\"?: undefined | false | true;\n}) => Promise<{\n\"runId\": string;\n\"status\": string;\n\"repeated\": false | true;\n\"projectId\": number;\n\"sourceProjectId\": null | number;\n\"projectUrl\": null | string;\n\"deleteCopy\": false | true;\n\"copyDeletedAt\": null | string;\n}>);\n\"status\": ((runId: string) => Promise<{\n\"runId\": string;\n\"status\": string;\n\"outputs\": unknown;\n\"error\": null | string;\n\"errorCode\": null | string;\n\"reported\": null | \"now\" | \"earlier\";\n\"projectId\": number;\n\"sourceProjectId\": null | number;\n\"projectUrl\": null | string;\n\"deleteCopy\": false | true;\n\"copyDeletedAt\": null | string;\n}>);\n\"wait\": ((runId: string, seconds?: undefined | number) => Promise<{\n\"runId\": string;\n\"status\": string;\n\"outputs\": unknown;\n\"error\": null | string;\n\"errorCode\": null | string;\n\"reported\": null | \"now\" | \"earlier\";\n\"projectId\": number;\n\"sourceProjectId\": null | number;\n\"projectUrl\": null | string;\n\"deleteCopy\": false | true;\n\"copyDeletedAt\": null | string;\n}>);\n\"cancel\": ((runId: string) => Promise<{\n\"runId\": string;\n\"status\": string;\n\"cancelled\": false | true;\n}>);\n\"deleteCopy\": ((runId: string) => Promise<{\n\"runId\": string;\n\"copyDeletedAt\": string;\n}>);\n} };\ndeclare function print(...values: unknown[]): void;\ndeclare function emitImage(ref: { id: string; mediaType: string; name?: string }, options?: { inspect?: boolean }): Promise<void>;\ndeclare function emitFile(ref: { id: string; mediaType: string; name?: string }): Promise<void>;\n";
|
|
1
|
+
export declare const WOMP_FLOW_RUNS_DECLARATIONS = "declare const womp: { flowRuns: {\n\"describe\": (() => Promise<{\n\"projectId\": number;\n\"snapshotId\": string;\n\"inputs\": Array<{\n\"nodeId\": string;\n\"typeId\": string;\n\"valueType\": string;\n\"value\": unknown;\n\"required\": false | true;\n}>;\n\"outputs\": Array<{\n\"nodeId\": string;\n\"typeId\": string;\n}>;\n\"liveRun\": null | {\n\"runId\": string;\n\"trigger\": string;\n};\n}>);\n\"run\": ((options?: undefined | {\n\"inputs\"?: undefined | {\n[key: string]: unknown;\n};\n\"copy\"?: undefined | false | true;\n\"deleteCopy\"?: undefined | false | true;\n}) => Promise<{\n\"runId\": string;\n\"status\": string;\n\"repeated\": false | true;\n\"projectId\": number;\n\"sourceProjectId\": null | number;\n\"projectUrl\": null | string;\n\"deleteCopy\": false | true;\n\"copyDeletedAt\": null | string;\n\"failedNodes\"?: undefined | Array<{\n\"nodeId\": string;\n\"label\": string;\n}>;\n}>);\n\"status\": ((runId: string) => Promise<{\n\"runId\": string;\n\"status\": string;\n\"outputs\": unknown;\n\"error\": null | string;\n\"errorCode\": null | string;\n\"reported\": null | \"now\" | \"earlier\";\n\"projectId\": number;\n\"sourceProjectId\": null | number;\n\"projectUrl\": null | string;\n\"deleteCopy\": false | true;\n\"copyDeletedAt\": null | string;\n\"failedNodes\"?: undefined | Array<{\n\"nodeId\": string;\n\"label\": string;\n}>;\n}>);\n\"wait\": ((runId: string, seconds?: undefined | number) => Promise<{\n\"runId\": string;\n\"status\": string;\n\"outputs\": unknown;\n\"error\": null | string;\n\"errorCode\": null | string;\n\"reported\": null | \"now\" | \"earlier\";\n\"projectId\": number;\n\"sourceProjectId\": null | number;\n\"projectUrl\": null | string;\n\"deleteCopy\": false | true;\n\"copyDeletedAt\": null | string;\n\"failedNodes\"?: undefined | Array<{\n\"nodeId\": string;\n\"label\": string;\n}>;\n}>);\n\"cancel\": ((runId: string) => Promise<{\n\"runId\": string;\n\"status\": string;\n\"cancelled\": false | true;\n}>);\n\"deleteCopy\": ((runId: string) => Promise<{\n\"runId\": string;\n\"copyDeletedAt\": string;\n}>);\n} };\ndeclare function print(...values: unknown[]): void;\ndeclare function emitImage(ref: { id: string; mediaType: string; name?: string }, options?: { inspect?: boolean }): Promise<void>;\ndeclare function emitFile(ref: { id: string; mediaType: string; name?: string }): Promise<void>;\n";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Generated by scripts/generate-skill-declarations.mjs.
|
|
2
2
|
// prettier-ignore
|
|
3
|
-
export const WOMP_FLOW_RUNS_DECLARATIONS = "declare const womp: { flowRuns: {\n\"describe\": (() => Promise<{\n\"projectId\": number;\n\"snapshotId\": string;\n\"inputs\": Array<{\n\"nodeId\": string;\n\"typeId\": string;\n\"valueType\": string;\n\"value\": unknown;\n\"required\": false | true;\n}>;\n\"outputs\": Array<{\n\"nodeId\": string;\n\"typeId\": string;\n}>;\n\"liveRun\": null | {\n\"runId\": string;\n\"trigger\": string;\n};\n}>);\n\"run\": ((options?: undefined | {\n\"inputs\"?: undefined | {\n[key: string]: unknown;\n};\n\"copy\"?: undefined | false | true;\n\"deleteCopy\"?: undefined | false | true;\n}) => Promise<{\n\"runId\": string;\n\"status\": string;\n\"repeated\": false | true;\n\"projectId\": number;\n\"sourceProjectId\": null | number;\n\"projectUrl\": null | string;\n\"deleteCopy\": false | true;\n\"copyDeletedAt\": null | string;\n}>);\n\"status\": ((runId: string) => Promise<{\n\"runId\": string;\n\"status\": string;\n\"outputs\": unknown;\n\"error\": null | string;\n\"errorCode\": null | string;\n\"reported\": null | \"now\" | \"earlier\";\n\"projectId\": number;\n\"sourceProjectId\": null | number;\n\"projectUrl\": null | string;\n\"deleteCopy\": false | true;\n\"copyDeletedAt\": null | string;\n}>);\n\"wait\": ((runId: string, seconds?: undefined | number) => Promise<{\n\"runId\": string;\n\"status\": string;\n\"outputs\": unknown;\n\"error\": null | string;\n\"errorCode\": null | string;\n\"reported\": null | \"now\" | \"earlier\";\n\"projectId\": number;\n\"sourceProjectId\": null | number;\n\"projectUrl\": null | string;\n\"deleteCopy\": false | true;\n\"copyDeletedAt\": null | string;\n}>);\n\"cancel\": ((runId: string) => Promise<{\n\"runId\": string;\n\"status\": string;\n\"cancelled\": false | true;\n}>);\n\"deleteCopy\": ((runId: string) => Promise<{\n\"runId\": string;\n\"copyDeletedAt\": string;\n}>);\n} };\ndeclare function print(...values: unknown[]): void;\ndeclare function emitImage(ref: { id: string; mediaType: string; name?: string }, options?: { inspect?: boolean }): Promise<void>;\ndeclare function emitFile(ref: { id: string; mediaType: string; name?: string }): Promise<void>;\n";
|
|
3
|
+
export const WOMP_FLOW_RUNS_DECLARATIONS = "declare const womp: { flowRuns: {\n\"describe\": (() => Promise<{\n\"projectId\": number;\n\"snapshotId\": string;\n\"inputs\": Array<{\n\"nodeId\": string;\n\"typeId\": string;\n\"valueType\": string;\n\"value\": unknown;\n\"required\": false | true;\n}>;\n\"outputs\": Array<{\n\"nodeId\": string;\n\"typeId\": string;\n}>;\n\"liveRun\": null | {\n\"runId\": string;\n\"trigger\": string;\n};\n}>);\n\"run\": ((options?: undefined | {\n\"inputs\"?: undefined | {\n[key: string]: unknown;\n};\n\"copy\"?: undefined | false | true;\n\"deleteCopy\"?: undefined | false | true;\n}) => Promise<{\n\"runId\": string;\n\"status\": string;\n\"repeated\": false | true;\n\"projectId\": number;\n\"sourceProjectId\": null | number;\n\"projectUrl\": null | string;\n\"deleteCopy\": false | true;\n\"copyDeletedAt\": null | string;\n\"failedNodes\"?: undefined | Array<{\n\"nodeId\": string;\n\"label\": string;\n}>;\n}>);\n\"status\": ((runId: string) => Promise<{\n\"runId\": string;\n\"status\": string;\n\"outputs\": unknown;\n\"error\": null | string;\n\"errorCode\": null | string;\n\"reported\": null | \"now\" | \"earlier\";\n\"projectId\": number;\n\"sourceProjectId\": null | number;\n\"projectUrl\": null | string;\n\"deleteCopy\": false | true;\n\"copyDeletedAt\": null | string;\n\"failedNodes\"?: undefined | Array<{\n\"nodeId\": string;\n\"label\": string;\n}>;\n}>);\n\"wait\": ((runId: string, seconds?: undefined | number) => Promise<{\n\"runId\": string;\n\"status\": string;\n\"outputs\": unknown;\n\"error\": null | string;\n\"errorCode\": null | string;\n\"reported\": null | \"now\" | \"earlier\";\n\"projectId\": number;\n\"sourceProjectId\": null | number;\n\"projectUrl\": null | string;\n\"deleteCopy\": false | true;\n\"copyDeletedAt\": null | string;\n\"failedNodes\"?: undefined | Array<{\n\"nodeId\": string;\n\"label\": string;\n}>;\n}>);\n\"cancel\": ((runId: string) => Promise<{\n\"runId\": string;\n\"status\": string;\n\"cancelled\": false | true;\n}>);\n\"deleteCopy\": ((runId: string) => Promise<{\n\"runId\": string;\n\"copyDeletedAt\": string;\n}>);\n} };\ndeclare function print(...values: unknown[]): void;\ndeclare function emitImage(ref: { id: string; mediaType: string; name?: string }, options?: { inspect?: boolean }): Promise<void>;\ndeclare function emitFile(ref: { id: string; mediaType: string; name?: string }): Promise<void>;\n";
|
package/dist/goals.d.ts
CHANGED
|
@@ -22,56 +22,63 @@ export type SparkGoalTry = {
|
|
|
22
22
|
/** In the order of the goal's conditions; a condition left to the user has no result. */
|
|
23
23
|
conditions: Pick<SparkGoalCondition, "met" | "reason">[];
|
|
24
24
|
};
|
|
25
|
-
/** The goal the agent
|
|
26
|
-
export declare const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
export type SparkGoalProposal = z.infer<typeof sparkGoalProposalSchema>;
|
|
34
|
-
/**
|
|
35
|
-
* How the user answered a proposed goal: run it with these caps, try the request
|
|
36
|
-
* once, or nothing in the time the host waits.
|
|
37
|
-
*/
|
|
38
|
-
export declare const sparkGoalDecisionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39
|
-
creditBudget: z.ZodOptional<z.ZodNumber>;
|
|
40
|
-
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
41
|
-
kind: z.ZodLiteral<"goal">;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
kind: z.ZodLiteral<"once">;
|
|
44
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
-
kind: z.ZodLiteral<"unanswered">;
|
|
46
|
-
}, z.core.$strip>], "kind">;
|
|
47
|
-
export type SparkGoalDecision = z.infer<typeof sparkGoalDecisionSchema>;
|
|
48
|
-
/** What became of a proposal, as the agent is told: `active` when a goal was already running. */
|
|
49
|
-
export declare const SPARK_GOAL_OUTCOMES: readonly ["started", "declined", "unanswered", "active"];
|
|
50
|
-
export type SparkGoalOutcome = (typeof SPARK_GOAL_OUTCOMES)[number];
|
|
25
|
+
/** The caps of a goal the agent sets, unless the user asked for others. */
|
|
26
|
+
export declare const GOAL_DEFAULT_CAPS: {
|
|
27
|
+
readonly tries: 5;
|
|
28
|
+
readonly credits: 2000;
|
|
29
|
+
};
|
|
30
|
+
/** The tries a goal that used its tries gets when the user has it keep going. */
|
|
31
|
+
export declare const GOAL_MORE_TRIES = 3;
|
|
51
32
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
33
|
+
* What the agent asks with the `goal` tool, for the user. `set` starts a goal
|
|
34
|
+
* from `title` and `conditions`, at once, with the asking run as its first try;
|
|
35
|
+
* a goal the conversation already has ends. `change` gives the goal new
|
|
36
|
+
* `conditions`, `tries` or `credits`. `continue` has a goal that stopped go on.
|
|
37
|
+
* `remove` ends the goal. After a change the goal goes on, with the asking run
|
|
38
|
+
* as its next try.
|
|
55
39
|
*/
|
|
56
|
-
export declare const
|
|
57
|
-
|
|
58
|
-
|
|
40
|
+
export declare const sparkGoalRequestSchema: z.ZodObject<{
|
|
41
|
+
action: z.ZodEnum<{
|
|
42
|
+
set: "set";
|
|
43
|
+
remove: "remove";
|
|
44
|
+
change: "change";
|
|
45
|
+
continue: "continue";
|
|
46
|
+
}>;
|
|
47
|
+
title: z.ZodOptional<z.ZodString>;
|
|
48
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
59
49
|
text: z.ZodString;
|
|
60
50
|
measurable: z.ZodBoolean;
|
|
61
|
-
}, z.core.$strip
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
active: "active";
|
|
65
|
-
unanswered: "unanswered";
|
|
66
|
-
started: "started";
|
|
67
|
-
declined: "declined";
|
|
68
|
-
}>>;
|
|
51
|
+
}, z.core.$strip>>>;
|
|
52
|
+
tries: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
credits: z.ZodOptional<z.ZodNumber>;
|
|
69
54
|
}, z.core.$strip>;
|
|
70
|
-
export type
|
|
71
|
-
/**
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
55
|
+
export type SparkGoalRequest = z.infer<typeof sparkGoalRequestSchema>;
|
|
56
|
+
/**
|
|
57
|
+
* What a `goal` call did. `started`: a goal is set and running. `running`: the
|
|
58
|
+
* goal goes on with the change. `done`: with the change every measurable
|
|
59
|
+
* condition is already verified. `limited`: the goal is at its tries or credit
|
|
60
|
+
* limit and does not run. `removed`: the goal is gone. `refused`: nothing
|
|
61
|
+
* changed, since only a turn the user started may change a goal, and not one
|
|
62
|
+
* Wompify runs. `missing`: there is no goal to change.
|
|
63
|
+
*/
|
|
64
|
+
export type SparkGoalOutcome = "started" | "running" | "done" | "limited" | "removed" | "refused" | "missing";
|
|
65
|
+
/** A goal that ended, as the chat keeps it once the conversation has moved on. */
|
|
66
|
+
export type SparkGoalSummary = {
|
|
67
|
+
title: string;
|
|
68
|
+
outcome: "done" | "replaced" | "removed";
|
|
69
|
+
/** The tries it finished. */
|
|
70
|
+
tries: number;
|
|
71
|
+
credits?: number;
|
|
72
|
+
/** Of its `measured` conditions, how many its last check found met. */
|
|
73
|
+
passed: number;
|
|
74
|
+
measured: number;
|
|
75
|
+
};
|
|
76
|
+
/** A `goal` call's result: the goal's limits where it has a goal, and the goal the call ended. */
|
|
77
|
+
export type SparkGoalResult = {
|
|
78
|
+
goal: SparkGoalOutcome;
|
|
79
|
+
tries?: number;
|
|
80
|
+
credits?: number;
|
|
81
|
+
ended?: SparkGoalSummary;
|
|
75
82
|
};
|
|
76
83
|
export type SparkGoal = {
|
|
77
84
|
id: string;
|
package/dist/goals.js
CHANGED
|
@@ -15,33 +15,25 @@ const goalCaps = {
|
|
|
15
15
|
creditBudget: z.number().int().positive().max(1_000_000_000).optional(),
|
|
16
16
|
maxTurns: z.number().int().min(1).max(100).optional(),
|
|
17
17
|
};
|
|
18
|
-
/** The goal the agent
|
|
19
|
-
export const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
});
|
|
23
|
-
/**
|
|
24
|
-
* How the user answered a proposed goal: run it with these caps, try the request
|
|
25
|
-
* once, or nothing in the time the host waits.
|
|
26
|
-
*/
|
|
27
|
-
export const sparkGoalDecisionSchema = z.discriminatedUnion("kind", [
|
|
28
|
-
z.object({ kind: z.literal("goal"), ...goalCaps }),
|
|
29
|
-
z.object({ kind: z.literal("once") }),
|
|
30
|
-
z.object({ kind: z.literal("unanswered") }),
|
|
31
|
-
]);
|
|
32
|
-
/** What became of a proposal, as the agent is told: `active` when a goal was already running. */
|
|
33
|
-
export const SPARK_GOAL_OUTCOMES = ["started", "declined", "unanswered", "active"];
|
|
18
|
+
/** The caps of a goal the agent sets, unless the user asked for others. */
|
|
19
|
+
export const GOAL_DEFAULT_CAPS = { tries: 5, credits: 2_000 };
|
|
20
|
+
/** The tries a goal that used its tries gets when the user has it keep going. */
|
|
21
|
+
export const GOAL_MORE_TRIES = 3;
|
|
34
22
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
23
|
+
* What the agent asks with the `goal` tool, for the user. `set` starts a goal
|
|
24
|
+
* from `title` and `conditions`, at once, with the asking run as its first try;
|
|
25
|
+
* a goal the conversation already has ends. `change` gives the goal new
|
|
26
|
+
* `conditions`, `tries` or `credits`. `continue` has a goal that stopped go on.
|
|
27
|
+
* `remove` ends the goal. After a change the goal goes on, with the asking run
|
|
28
|
+
* as its next try.
|
|
38
29
|
*/
|
|
39
|
-
export const
|
|
40
|
-
|
|
41
|
-
|
|
30
|
+
export const sparkGoalRequestSchema = z.object({
|
|
31
|
+
action: z.enum(["set", "change", "continue", "remove"]),
|
|
32
|
+
title: z.string().trim().min(1).max(80).optional(),
|
|
33
|
+
conditions: z.array(sparkGoalConditionSchema).min(1).max(MAX_GOAL_CONDITIONS).optional(),
|
|
34
|
+
tries: goalCaps.maxTurns,
|
|
35
|
+
credits: goalCaps.creditBudget,
|
|
42
36
|
});
|
|
43
|
-
/** The caps a goal confirmation offers before the user changes them. */
|
|
44
|
-
export const GOAL_CONFIRMATION_DEFAULTS = { tries: 5, credits: 2_000 };
|
|
45
37
|
export const sparkGoalCommandSchema = z.discriminatedUnion("action", [
|
|
46
38
|
z.object({
|
|
47
39
|
action: z.literal("set"),
|