@cadraos/sdk 0.1.6 → 0.1.8
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/README.md +38 -5
- package/dist/chat/index.cjs +1180 -36
- package/dist/chat/index.cjs.map +1 -1
- package/dist/chat/index.d.cts +229 -15
- package/dist/chat/index.d.ts +229 -15
- package/dist/chat/index.js +1180 -39
- package/dist/chat/index.js.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/package.json +6 -3
package/dist/index.d.cts
CHANGED
|
@@ -178,7 +178,11 @@ interface ExecuteInput {
|
|
|
178
178
|
context?: Record<string, unknown>;
|
|
179
179
|
/** Attachment UUIDs to include with the message (for images, documents, etc.) */
|
|
180
180
|
attachmentIds?: string[];
|
|
181
|
-
/**
|
|
181
|
+
/**
|
|
182
|
+
* Team UUID for team-based execution (routes to team's lead orchestrator).
|
|
183
|
+
* @deprecated Pass the team UUID directly as the agent/entity ID instead.
|
|
184
|
+
* The platform now auto-detects whether a UUID is an agent, team, or tool.
|
|
185
|
+
*/
|
|
182
186
|
teamUuid?: string;
|
|
183
187
|
/** Execution options */
|
|
184
188
|
options?: ExecuteOptions;
|
package/dist/index.d.ts
CHANGED
|
@@ -178,7 +178,11 @@ interface ExecuteInput {
|
|
|
178
178
|
context?: Record<string, unknown>;
|
|
179
179
|
/** Attachment UUIDs to include with the message (for images, documents, etc.) */
|
|
180
180
|
attachmentIds?: string[];
|
|
181
|
-
/**
|
|
181
|
+
/**
|
|
182
|
+
* Team UUID for team-based execution (routes to team's lead orchestrator).
|
|
183
|
+
* @deprecated Pass the team UUID directly as the agent/entity ID instead.
|
|
184
|
+
* The platform now auto-detects whether a UUID is an agent, team, or tool.
|
|
185
|
+
*/
|
|
182
186
|
teamUuid?: string;
|
|
183
187
|
/** Execution options */
|
|
184
188
|
options?: ExecuteOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cadraos/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Official SDK for CadraOS platform - programmatic access to agents, skills, tools, and artifacts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"typecheck": "tsc --noEmit",
|
|
48
48
|
"clean": "rm -rf dist",
|
|
49
49
|
"prepublishOnly": "pnpm run build",
|
|
50
|
-
"publish:npm": "npm publish --access public",
|
|
51
|
-
"release": "pnpm build && npm publish --access public"
|
|
50
|
+
"publish:npm": "source ../cadra-web/.env.local && npm publish --access public --//registry.npmjs.org/:_authToken=$NPM_TOKEN",
|
|
51
|
+
"release": "pnpm build && source ../cadra-web/.env.local && npm publish --access public --//registry.npmjs.org/:_authToken=$NPM_TOKEN"
|
|
52
52
|
},
|
|
53
53
|
"keywords": [
|
|
54
54
|
"ai",
|
|
@@ -71,6 +71,9 @@
|
|
|
71
71
|
"engines": {
|
|
72
72
|
"node": ">=18.0.0"
|
|
73
73
|
},
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"@microsoft/fetch-event-source": "^2.0.1"
|
|
76
|
+
},
|
|
74
77
|
"devDependencies": {
|
|
75
78
|
"@types/node": "^20.10.0",
|
|
76
79
|
"@types/react": "^18.2.0",
|