@inkeep/agents-cli 0.40.0 → 0.41.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.
@@ -94,6 +94,22 @@ function generateArtifactComponentDefinition(componentId, componentData, style =
94
94
  lines[lines.length - 1] += "\n" + indentation + schemaLines[schemaLines.length - 1] + ",";
95
95
  } else lines.push(`${indentation}props: ${zodSchema},`);
96
96
  }
97
+ if (componentData.render && typeof componentData.render === "object") {
98
+ const render = componentData.render;
99
+ if (render.component && typeof render.component === "string") {
100
+ lines.push(`${indentation}render: {`);
101
+ const componentString = JSON.stringify(render.component);
102
+ lines.push(`${indentation}${indentation}component: ${componentString},`);
103
+ if (render.mockData && typeof render.mockData === "object") {
104
+ const formattedMockData = JSON.stringify(render.mockData, null, 2).split("\n").map((line, index) => {
105
+ if (index === 0) return line;
106
+ return `${indentation}${indentation}${line}`;
107
+ }).join("\n");
108
+ lines.push(`${indentation}${indentation}mockData: ${formattedMockData},`);
109
+ }
110
+ lines.push(`${indentation}},`);
111
+ }
112
+ }
97
113
  if (componentData.template) lines.push(`${indentation}template: ${formatString(componentData.template, q, true)},`);
98
114
  if (componentData.contentType) lines.push(`${indentation}contentType: ${formatString(componentData.contentType, q)},`);
99
115
  if (lines.length > 0 && lines[lines.length - 1].endsWith(",")) lines[lines.length - 1] = lines[lines.length - 1].slice(0, -1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-cli",
3
- "version": "0.40.0",
3
+ "version": "0.41.0",
4
4
  "description": "Inkeep CLI tool",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -20,12 +20,12 @@
20
20
  "author": "Inkeep <support@inkeep.com>",
21
21
  "license": "SEE LICENSE IN LICENSE.md",
22
22
  "dependencies": {
23
- "@ai-sdk/anthropic": "3.0.0-beta.66",
24
- "@ai-sdk/google": "3.0.0-beta.62",
25
- "@ai-sdk/openai": "3.0.0-beta.74",
23
+ "@ai-sdk/anthropic": "3.0.7",
24
+ "@ai-sdk/google": "3.0.4",
25
+ "@ai-sdk/openai": "3.0.7",
26
26
  "@clack/prompts": "^0.11.0",
27
27
  "@vercel/otel": "^2.0.1",
28
- "ai": "6.0.0-beta.124",
28
+ "ai": "6.0.14",
29
29
  "chalk": "^5.3.0",
30
30
  "cli-table3": "^0.6.3",
31
31
  "commander": "^14.0.0",
@@ -36,12 +36,12 @@
36
36
  "json-schema-to-zod": "^2.6.1",
37
37
  "keytar": "^7.9.0",
38
38
  "langfuse-vercel": "^3.38.6",
39
+ "open": "^10.2.0",
39
40
  "ts-morph": "^26.0.0",
40
41
  "tsx": "^4.20.5",
41
- "open": "^10.2.0",
42
42
  "yaml": "^2.7.0",
43
- "@inkeep/agents-core": "^0.40.0",
44
- "@inkeep/agents-sdk": "^0.40.0"
43
+ "@inkeep/agents-core": "^0.41.0",
44
+ "@inkeep/agents-sdk": "^0.41.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/degit": "^2.8.6",