@crewx/sdk 0.8.3 → 0.8.4-rc.1

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 (37) hide show
  1. package/dist/conversation/types.d.ts +1 -1
  2. package/dist/esm/index.js +46 -59
  3. package/dist/esm/plugins/index.js +3 -3
  4. package/dist/esm/repository/index.js +8 -8
  5. package/dist/facade/Crewx.d.ts +1 -0
  6. package/dist/index.d.ts +5 -4
  7. package/dist/index.js +46 -59
  8. package/dist/plugins/index.js +3 -3
  9. package/dist/provider/acp/adapter.d.ts +43 -0
  10. package/dist/provider/acp/adapters/claude.d.ts +2 -0
  11. package/dist/provider/acp/adapters/codex.d.ts +2 -0
  12. package/dist/provider/acp/adapters/copilot.d.ts +2 -0
  13. package/dist/provider/acp/adapters/gemini.d.ts +2 -0
  14. package/dist/provider/acp/adapters/index.d.ts +7 -0
  15. package/dist/provider/acp/adapters/opencode.d.ts +2 -0
  16. package/dist/provider/acp/connection.d.ts +40 -0
  17. package/dist/provider/acp/index.d.ts +9 -0
  18. package/dist/provider/acp/register.d.ts +2 -0
  19. package/dist/provider/acp/runtime.d.ts +16 -0
  20. package/dist/provider/acp/types.d.ts +24 -0
  21. package/dist/provider/bridge.d.ts +6 -1
  22. package/dist/provider/{adapter.types.d.ts → cli/adapter.types.d.ts} +2 -2
  23. package/dist/provider/{adapters → cli/adapters}/agent-call.util.d.ts +1 -1
  24. package/dist/provider/{adapters → cli/adapters}/index.d.ts +1 -1
  25. package/dist/provider/cli/adapters/tool-input.util.d.ts +1 -0
  26. package/dist/provider/cli/index.d.ts +3 -0
  27. package/dist/repository/index.js +8 -8
  28. package/dist/repository/workspace.repository.d.ts +4 -0
  29. package/dist/types/index.d.ts +2 -0
  30. package/dist/types/task-log.types.d.ts +1 -1
  31. package/dist/utils/workspace.d.ts +2 -0
  32. package/package.json +22 -1
  33. /package/dist/provider/{adapters → cli/adapters}/claude.d.ts +0 -0
  34. /package/dist/provider/{adapters → cli/adapters}/codex.d.ts +0 -0
  35. /package/dist/provider/{adapters → cli/adapters}/copilot.d.ts +0 -0
  36. /package/dist/provider/{adapters → cli/adapters}/gemini.d.ts +0 -0
  37. /package/dist/provider/{adapters → cli/adapters}/opencode.d.ts +0 -0
@@ -1297,6 +1297,7 @@ export interface QueryOptions {
1297
1297
  threadId?: string;
1298
1298
  platform?: Platform;
1299
1299
  messages?: import('../conversation/types').TemplateMessage[];
1300
+ vars?: Record<string, unknown>;
1300
1301
  }
1301
1302
  export interface QueryResult {
1302
1303
  ok: boolean;
@@ -1327,6 +1328,7 @@ export interface ExecuteOptions {
1327
1328
  threadId?: string;
1328
1329
  platform?: Platform;
1329
1330
  messages?: import('../conversation/types').TemplateMessage[];
1331
+ vars?: Record<string, unknown>;
1330
1332
  }
1331
1333
  export interface ExecuteResult {
1332
1334
  ok: boolean;
@@ -1,4 +1,4 @@
1
- export type TaskLogEntryType = 'text' | 'tool_use' | 'tool_result' | 'error' | 'info' | 'agent_call';
1
+ export type TaskLogEntryType = 'text' | 'thinking' | 'tool_use' | 'tool_result' | 'error' | 'info' | 'agent_call';
2
2
  export interface TaskLogEntry {
3
3
  timestamp: string;
4
4
  type: TaskLogEntryType;
@@ -1,2 +1,4 @@
1
1
  export declare function normalizeWorkspacePath(workspacePath: string): string;
2
2
  export declare function hashWorkspaceId(workspacePath: string): string;
3
+ export declare function slugify(input: string): string;
4
+ export declare function isValidSlug(slug: string): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewx/sdk",
3
- "version": "0.8.3",
3
+ "version": "0.8.4-rc.1",
4
4
  "license": "UNLICENSED",
5
5
  "engines": {
6
6
  "node": ">=20.19.0"
@@ -69,6 +69,7 @@
69
69
  "README.md"
70
70
  ],
71
71
  "dependencies": {
72
+ "@agentclientprotocol/sdk": "^0.21.0",
72
73
  "@modelcontextprotocol/sdk": "^1.27.0",
73
74
  "ai": "^4.0.0",
74
75
  "drizzle-orm": "^0.45.2",
@@ -77,9 +78,29 @@
77
78
  "zod": "^3.24.1"
78
79
  },
79
80
  "peerDependencies": {
81
+ "@agentclientprotocol/claude-agent-acp": ">=0.33.0",
82
+ "@agentclientprotocol/codex-acp": ">=0.0.43",
83
+ "@ai-sdk/anthropic": "^1.0.8",
84
+ "@ai-sdk/google": "^1.0.10",
85
+ "@ai-sdk/openai": "^1.0.11",
80
86
  "better-sqlite3": "^12.0.0"
81
87
  },
82
88
  "peerDependenciesMeta": {
89
+ "@agentclientprotocol/claude-agent-acp": {
90
+ "optional": true
91
+ },
92
+ "@agentclientprotocol/codex-acp": {
93
+ "optional": true
94
+ },
95
+ "@ai-sdk/anthropic": {
96
+ "optional": true
97
+ },
98
+ "@ai-sdk/google": {
99
+ "optional": true
100
+ },
101
+ "@ai-sdk/openai": {
102
+ "optional": true
103
+ },
83
104
  "better-sqlite3": {
84
105
  "optional": true
85
106
  }