@kirha/planner 0.1.1 → 0.1.3

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -20650,7 +20650,8 @@ function resolveValue(value, outputsByStepId) {
20650
20650
  for (const [i, ref] of value.$values.entries()) {
20651
20651
  const stepOutput = outputsByStepId.get(ref.$fromStep);
20652
20652
  const resolvedValue = getNestedValue(stepOutput, parsePath(ref.$outputKey));
20653
- result = result.replace(`{${i}}`, String(resolvedValue));
20653
+ const stringified = typeof resolvedValue === "object" && resolvedValue !== null ? JSON.stringify(resolvedValue) : String(resolvedValue);
20654
+ result = result.replace(`{${i}}`, stringified);
20654
20655
  }
20655
20656
  return result;
20656
20657
  }
@@ -20870,11 +20871,18 @@ function validateStringTemplateReference({
20870
20871
  actualType: "string"
20871
20872
  }));
20872
20873
  }
20874
+ const stringCoercible = exports_external.union([
20875
+ exports_external.string(),
20876
+ exports_external.number(),
20877
+ exports_external.boolean(),
20878
+ exports_external.object({}),
20879
+ exports_external.array(exports_external.any())
20880
+ ]);
20873
20881
  for (const ref of reference.$values) {
20874
20882
  validateOutputReference({
20875
20883
  reference: ref,
20876
20884
  argumentPath,
20877
- expectedSchema: exports_external.string(),
20885
+ expectedSchema: stringCoercible,
20878
20886
  step,
20879
20887
  stepsById,
20880
20888
  schemasByTool,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kirha/planner",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "SDK for tool-planning agents - generate and execute DAG execution plans from natural language",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -36,7 +36,7 @@
36
36
  "license": "MIT",
37
37
  "repository": {
38
38
  "type": "git",
39
- "url": "https://github.com/kirha-ai/planner-typescript-sdk"
39
+ "url": "https://github.com/kirha-ai/planner-sdk-typescript"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@biomejs/biome": "2.3.10",