@womp/spark-agent 6.1.1 → 6.3.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/dist/ui.d.ts CHANGED
@@ -3,7 +3,8 @@ export { sparkErrorDiagnostics, sparkErrorDiagnosticsSchema, type SparkErrorDiag
3
3
  import type { InferUIMessageChunk, UIMessage } from "ai";
4
4
  import type { SceneScreenshotOptions } from "./capabilities/scene.js";
5
5
  import { z } from "zod";
6
- export type { SparkGoal, SparkGoalCommand } from "./goals.js";
6
+ export type { SparkGoal, SparkGoalCommand, SparkGoalCondition, SparkGoalProposal, SparkGoalTry } from "./goals.js";
7
+ import { type SparkGoalProposal } from "./goals.js";
7
8
  import type { ExecutionReceipt, SparkSkill } from "./capabilities.js";
8
9
  export { DEFAULT_MODEL_ID, getSparkModel, REASONING_EFFORT_LABELS, resolveReasoningEffort, SPARK_MODELS, } from "./models.js";
9
10
  export type { ModelProvider, ReasoningEffort, SparkModel } from "./models.js";
@@ -90,6 +91,7 @@ export type SparkDataParts = {
90
91
  receipt: ExecutionReceipt;
91
92
  };
92
93
  selection: SparkSelectionData;
94
+ goal: SparkGoalProposal;
93
95
  };
94
96
  /** Editor node IDs selected when a user message was sent; never rendered as chat text. */
95
97
  export type SparkSelectionData = {
@@ -333,6 +335,17 @@ export declare const sparkDataPartSchemas: {
333
335
  readonly selection: z.ZodObject<{
334
336
  nodeIds: z.ZodArray<z.ZodString>;
335
337
  }, z.core.$strip>;
338
+ /**
339
+ * The conditions the user confirmed for the goal this message starts. The model
340
+ * reads it as text (model-history.ts).
341
+ */
342
+ readonly goal: z.ZodObject<{
343
+ title: z.ZodString;
344
+ conditions: z.ZodArray<z.ZodObject<{
345
+ text: z.ZodString;
346
+ measurable: z.ZodBoolean;
347
+ }, z.core.$strip>>;
348
+ }, z.core.$strip>;
336
349
  };
337
350
  export { parseWompifyCommand, WOMPIFY_PRESETS, wompifyPrompt, wompifyContextSchema, type WompifyRequest, type WompifyContext } from "./wompify.js";
338
- export { parseSparkGoalCommand, DEFAULT_GOAL_CREDITS } from "./goals.js";
351
+ export { DEFAULT_GOAL_CREDITS, GOAL_CONFIRMATION_DEFAULTS, MAX_GOAL_LENGTH, sparkGoalProposalSchema } from "./goals.js";
package/dist/ui.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { sparkErrorDiagnosticsSchema } from "./error-diagnostics.js";
2
2
  export { sparkErrorDiagnostics, sparkErrorDiagnosticsSchema, } from "./error-diagnostics.js";
3
3
  import { z } from "zod";
4
+ import { sparkGoalProposalSchema } from "./goals.js";
4
5
  export { DEFAULT_MODEL_ID, getSparkModel, REASONING_EFFORT_LABELS, resolveReasoningEffort, SPARK_MODELS, } from "./models.js";
5
6
  export const SPARK_RUN_STATUSES = [
6
7
  "queued",
@@ -85,6 +86,11 @@ export const sparkDataPartSchemas = {
85
86
  */
86
87
  // Editor ids are the engine's decimal integers; 8192 covers a select-all at the engine's budgets.
87
88
  selection: z.object({ nodeIds: z.array(z.string().min(1).max(64)).min(1).max(8192) }),
89
+ /**
90
+ * The conditions the user confirmed for the goal this message starts. The model
91
+ * reads it as text (model-history.ts).
92
+ */
93
+ goal: sparkGoalProposalSchema,
88
94
  };
89
95
  export { parseWompifyCommand, WOMPIFY_PRESETS, wompifyPrompt, wompifyContextSchema } from "./wompify.js";
90
- export { parseSparkGoalCommand, DEFAULT_GOAL_CREDITS } from "./goals.js";
96
+ export { DEFAULT_GOAL_CREDITS, GOAL_CONFIRMATION_DEFAULTS, MAX_GOAL_LENGTH, sparkGoalProposalSchema } from "./goals.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@womp/spark-agent",
3
- "version": "6.1.1",
3
+ "version": "6.3.0",
4
4
  "description": "Portable skills-based AI agent with local and durable chat transports for Womp",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -8,7 +8,8 @@
8
8
  "bin": {
9
9
  "spark-agent": "dist/cli.js",
10
10
  "simple-bench": "dist/simple-bench-cli.js",
11
- "agent-run": "dist/agent-run-cli.js"
11
+ "agent-run": "dist/agent-run-cli.js",
12
+ "intent-bench": "dist/intent-bench-cli.js"
12
13
  },
13
14
  "exports": {
14
15
  "./browser": {
@@ -97,6 +98,7 @@
97
98
  "dev:server": "tsx src/cli.ts",
98
99
  "simple-bench": "tsx src/simple-bench-cli.ts",
99
100
  "agent-run": "tsx src/agent-run-cli.ts",
101
+ "intent-bench": "tsx src/intent-bench-cli.ts",
100
102
  "dev:demo-account": "yarn build && concurrently --kill-others \"yarn dev:server --profile demo-account\" \"yarn dev:web\"",
101
103
  "dev:web": "vite --config web/vite.config.ts",
102
104
  "start": "node dist/cli.js",