@qoder-ai/qoder-agent-sdk 1.0.17 → 1.0.19

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.
@@ -15,6 +15,8 @@ export type BaseHookInput = {
15
15
  session_id: string;
16
16
  transcript_path: string;
17
17
  cwd: string;
18
+ /** Human-readable display name of the model responsible for this event. */
19
+ model?: string;
18
20
  permission_mode?: string;
19
21
  agent_id?: string;
20
22
  agent_type?: string;
@@ -48,7 +50,6 @@ export type SessionStartHookInput = BaseHookInput & {
48
50
  hook_event_name: 'SessionStart';
49
51
  source: 'startup' | 'resume' | 'clear' | 'compact';
50
52
  agent_type?: string;
51
- model?: string;
52
53
  };
53
54
  export type SessionEndHookInput = BaseHookInput & {
54
55
  hook_event_name: 'SessionEnd';
@@ -17,6 +17,8 @@ export type SDKAssistantMessage = {
17
17
  type: 'assistant';
18
18
  message: BetaMessage;
19
19
  parent_tool_use_id: string | null;
20
+ /** Qoder model request ID, present only when explicitly enabled in the CLI. */
21
+ request_id?: string;
20
22
  error?: SDKAssistantMessageError;
21
23
  /**
22
24
  * Present when an interrupt truncated the model stream before a stop reason
@@ -1,8 +1,16 @@
1
1
  {
2
2
  "version": 1,
3
- "defaultTransport": "process",
3
+ "brand": "global",
4
+ "sdkVersion": "1.0.19",
5
+ "qoderCliVersion": "1.1.16",
6
+ "defaultTransport": "worker",
4
7
  "workerRuntime": {
5
8
  "packaged": false,
6
- "delivery": "package"
9
+ "delivery": "install",
10
+ "source": "qodercli-worker-runtime",
11
+ "url": "https://download.qoder.com/qodercli/releases/1.1.16/qodercli-worker-runtime-universal.tgz",
12
+ "artifactName": "qodercli-worker-runtime-universal.tgz",
13
+ "sdkVersion": "1.0.19",
14
+ "qoderCliVersion": "1.1.16"
7
15
  }
8
16
  }
@@ -1,6 +1,6 @@
1
- export declare const BRAND_CONFIG_DIR_INTERNAL = ".qoder";
2
- export declare const ENV_HOME = "QODER_CLI_HOME";
3
- export declare const ENV_CONFIG_DIR = "QODER_CONFIG_DIR";
1
+ export declare const BRAND_CONFIG_DIR_INTERNAL: string;
2
+ export declare const ENV_HOME: string;
3
+ export declare const ENV_CONFIG_DIR: string;
4
4
  export declare const MAX_SANITIZED_LENGTH = 200;
5
5
  export declare function homedir(): string;
6
6
  /**
@@ -89,7 +89,7 @@ export type Options = {
89
89
  /**
90
90
  * Selects the local query transport.
91
91
  *
92
- * - omitted: use `ProcessTransport.default` and spawn qodercli as a child process.
92
+ * - omitted: use the transport baked into the installed SDK package.
93
93
  * - `ProcessTransport.default`: spawn qodercli as a child process.
94
94
  * - `WorkerTransport.default`: run qoder-worker-runtime in a Node worker thread.
95
95
  * - `new WorkerTransport({ ... })`: run worker runtime with provider options.
@@ -173,6 +173,13 @@ export type Options = {
173
173
  mcpServers?: Record<string, McpServerConfig>;
174
174
  allowedMcpServerNames?: string[];
175
175
  model?: string;
176
+ /**
177
+ * Path to a local Qoder runtime.
178
+ *
179
+ * Native binaries and ordinary JavaScript CLI entries use ProcessTransport.
180
+ * Recognized `qoder-worker-runtime*.mjs` entries use WorkerTransport. An
181
+ * explicit `transport` provider takes precedence over this automatic choice.
182
+ */
176
183
  pathToQoderCLIExecutable?: string;
177
184
  permissionMode?: PermissionMode;
178
185
  allowDangerouslySkipPermissions?: boolean;
@@ -190,6 +190,62 @@ export type TaskStopOutput = {
190
190
  task_id: string;
191
191
  error?: string;
192
192
  };
193
+ export type TaskCreateInput = {
194
+ subject: string;
195
+ description: string;
196
+ activeForm?: string;
197
+ metadata?: Record<string, unknown>;
198
+ };
199
+ export type TaskCreateOutput = {
200
+ task: {
201
+ id: string;
202
+ subject: string;
203
+ };
204
+ };
205
+ export type TaskGetInput = {
206
+ taskId: string;
207
+ };
208
+ export type TaskGetOutput = {
209
+ task: {
210
+ id: string;
211
+ subject: string;
212
+ description: string;
213
+ status: 'pending' | 'in_progress' | 'completed';
214
+ blocks: string[];
215
+ blockedBy: string[];
216
+ } | null;
217
+ };
218
+ export type TaskUpdateInput = {
219
+ taskId: string;
220
+ subject?: string;
221
+ description?: string;
222
+ activeForm?: string;
223
+ status?: 'pending' | 'in_progress' | 'completed' | 'deleted';
224
+ addBlocks?: string[];
225
+ addBlockedBy?: string[];
226
+ owner?: string;
227
+ metadata?: Record<string, unknown>;
228
+ };
229
+ export type TaskUpdateOutput = {
230
+ success: boolean;
231
+ taskId: string;
232
+ updatedFields: string[];
233
+ error?: string;
234
+ statusChange?: {
235
+ from: string;
236
+ to: string;
237
+ };
238
+ };
239
+ export type TaskListInput = Record<string, never>;
240
+ export type TaskListOutput = {
241
+ tasks: Array<{
242
+ id: string;
243
+ subject: string;
244
+ status: 'pending' | 'in_progress' | 'completed';
245
+ owner?: string;
246
+ blockedBy: string[];
247
+ }>;
248
+ };
193
249
  export type ExitPlanModeInput = {
194
250
  confirm?: boolean;
195
251
  };
@@ -271,5 +327,5 @@ export type McpOutput = {
271
327
  content: unknown;
272
328
  isError?: boolean;
273
329
  };
274
- export type ToolInputSchemas = AgentInput | BashInput | FileReadInput | FileEditInput | FileWriteInput | GlobInput | GrepInput | WebFetchInput | WebSearchInput | AskUserQuestionInput | NotebookEditInput | TaskOutputInput | TaskStopInput | ExitPlanModeInput | ConfigInput | EnterWorktreeInput | ExitWorktreeInput | TodoWriteInput | ListMcpResourcesInput | ReadMcpResourceInput | McpInput;
275
- export type ToolOutputSchemas = AgentOutput | BashOutput | FileReadOutput | FileEditOutput | FileWriteOutput | GlobOutput | GrepOutput | WebFetchOutput | WebSearchOutput | AskUserQuestionOutput | NotebookEditOutput | TaskStopOutput | ExitPlanModeOutput | ConfigOutput | EnterWorktreeOutput | ExitWorktreeOutput | TodoWriteOutput | ListMcpResourcesOutput | McpOutput;
330
+ export type ToolInputSchemas = AgentInput | BashInput | FileReadInput | FileEditInput | FileWriteInput | GlobInput | GrepInput | WebFetchInput | WebSearchInput | AskUserQuestionInput | NotebookEditInput | TaskOutputInput | TaskStopInput | TaskCreateInput | TaskGetInput | TaskUpdateInput | TaskListInput | ExitPlanModeInput | ConfigInput | EnterWorktreeInput | ExitWorktreeInput | TodoWriteInput | ListMcpResourcesInput | ReadMcpResourceInput | McpInput;
331
+ export type ToolOutputSchemas = AgentOutput | BashOutput | FileReadOutput | FileEditOutput | FileWriteOutput | GlobOutput | GrepOutput | WebFetchOutput | WebSearchOutput | AskUserQuestionOutput | NotebookEditOutput | TaskStopOutput | TaskCreateOutput | TaskGetOutput | TaskUpdateOutput | TaskListOutput | ExitPlanModeOutput | ConfigOutput | EnterWorktreeOutput | ExitWorktreeOutput | TodoWriteOutput | ListMcpResourcesOutput | McpOutput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qoder-ai/qoder-agent-sdk",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "TypeScript SDK for building Qoder-powered coding agents.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -34,54 +34,7 @@
34
34
  "node": ">=18.0.0"
35
35
  },
36
36
  "scripts": {
37
- "build": "tsc",
38
- "watch": "tsc --watch",
39
- "clean": "rm -rf dist",
40
- "bundle": "npm run clean && tsc && node scripts/bundle.mjs",
41
- "bundle:worker": "npm run clean && tsc && node scripts/bundle.mjs --runtime-transport=worker --require-worker-runtime",
42
- "build:obfuscated": "npm run bundle",
43
- "check:package-version": "node scripts/check-package-version.mjs",
44
- "hooks:install": "sh scripts/install-git-hooks.sh",
45
- "release:check": "bash scripts/release-npm.sh check",
46
- "release:beta": "bash scripts/release-npm.sh beta",
47
- "release:latest": "bash scripts/release-npm.sh latest",
48
- "release:promote": "bash scripts/release-npm.sh promote",
49
- "prepublishOnly": "npm run bundle",
50
- "postinstall": "node scripts/postinstall.cjs",
51
- "demo:minimal": "npm run demo:chat",
52
- "demo:image": "node examples/image-input-demo/demo.mjs",
53
- "demo:models": "npm run build && node examples/list-models-demo/demo.mjs",
54
- "demo:service-account-token": "npm run build && node examples/service-account-token-demo/demo.mjs",
55
- "demo:usage": "npm run build && node examples/usage-info-demo/demo.mjs",
56
- "demo:steer-control": "npm run build && node examples/steer-control-demo/demo.mjs",
57
- "demo:chat": "npm run build && node examples/interactive-chat-demo/demo.mjs",
58
- "demo:mcp-oauth": "npm run build && node examples/mcp-oauth-demo/demo.mjs",
59
- "demo:inprocess-mcp": "npm run build && node examples/inprocess-mcp-demo/demo.mjs",
60
- "demo:byok": "npm run build && node examples/byok-validation-demo/demo.mjs",
61
- "test": "npm run test:unit",
62
- "test:unit": "npm run build && node --test tests/*.test.mjs",
63
- "test:query-session-control:unit": "npm run build && node --test tests/query-session-control/unit/*.test.mjs",
64
- "test:query-session-control:functional": "npm run build && node --test tests/query-session-control/functional/*.test.mjs",
65
- "test:query-input-output:unit": "npm run build && node --test tests/query-input-output/unit/*.test.mjs",
66
- "test:query-input-output:functional": "npm run build && node --test tests/query-input-output/functional/*.test.mjs",
67
- "test:query-auth": "npm run test:query-auth:unit && npm run test:query-auth:functional",
68
- "test:query-auth:unit": "npm run build && node --test tests/query-auth/unit/*.test.mjs",
69
- "test:query-auth:functional": "npm run build && node --test tests/query-auth/functional/*.test.mjs",
70
- "test:query-auth:e2e": "npm run test:query-auth:functional",
71
- "test:query-system-prompt:unit": "npm run build && node --test tests/query-system-prompt/unit/*.test.mjs",
72
- "test:query-system-prompt:functional": "npm run build && node --test tests/query-system-prompt/functional/*.test.mjs",
73
- "test:query-mcp:functional": "npm run build && node --test tests/query-mcp/functional/*.test.mjs",
74
- "test:query-output-events:unit": "npm run build && node --test tests/query-output-events/unit/*.test.mjs",
75
- "test:query-output-events:functional": "npm run build && node --test tests/query-output-events/functional/*.test.mjs",
76
- "test:query-working-directory:functional": "npm run build && node --test tests/query-working-directory/functional/*.test.mjs",
77
- "test:query-runtime-control:unit": "npm run build && node --test tests/query-runtime-control/unit/*.test.mjs",
78
- "test:query-runtime-control:functional": "npm run build && node --test tests/query-runtime-control/functional/*.test.mjs",
79
- "test:worker-runtime:functional": "npm run build && node --test tests/worker-runtime/functional/*.test.mjs",
80
- "test:skills-loading-control:unit": "npm run build && node --test tests/skills-loading-control/unit/*.test.mjs",
81
- "test:skills-loading-control:functional": "npm run build && node --test tests/skills-loading-control/functional/*.test.mjs",
82
- "test:plugins-loading-control:unit": "npm run build && node --test tests/plugins-loading-control/unit/*.test.mjs",
83
- "test:plugins-loading-control:functional": "npm run build && node --test tests/plugins-loading-control/functional/*.test.mjs",
84
- "test:integration": "npm run build && node --test tests/integration/**/*.test.mjs"
37
+ "postinstall": "node scripts/postinstall.cjs"
85
38
  },
86
39
  "keywords": [
87
40
  "qoder",
@@ -97,12 +50,7 @@
97
50
  "peerDependencies": {
98
51
  "zod": "^3.25.0 || ^4.0.0"
99
52
  },
100
- "devDependencies": {
101
- "@types/node": "^22.0.0",
102
- "esbuild": "^0.24.2",
103
- "typescript": "^5.7.0",
104
- "zod": "^4.0.0"
105
- },
106
- "qoderCliVersion": "1.1.11",
53
+ "qoderCliVersion": "1.1.16",
54
+ "qoderSdkBrand": "global",
107
55
  "license": "SEE LICENSE IN LICENSE"
108
56
  }