@cometix/claude-code 2.1.175 → 2.1.178

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/package.json +10 -10
  2. package/sdk-tools.d.ts +43 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cometix/claude-code",
3
- "version": "2.1.175",
3
+ "version": "2.1.178",
4
4
  "bin": {
5
5
  "claude": "cli.js"
6
6
  },
@@ -29,15 +29,15 @@
29
29
  "node-pty": "^1.1.0"
30
30
  },
31
31
  "optionalDependencies": {
32
- "@cometix/claude-code-darwin-arm64": "2.1.175",
33
- "@cometix/claude-code-darwin-x64": "2.1.175",
34
- "@cometix/claude-code-linux-arm64": "2.1.175",
35
- "@cometix/claude-code-linux-x64": "2.1.175",
36
- "@cometix/claude-code-linux-arm64-musl": "2.1.175",
37
- "@cometix/claude-code-linux-x64-musl": "2.1.175",
38
- "@cometix/claude-code-win32-arm64": "2.1.175",
39
- "@cometix/claude-code-win32-x64": "2.1.175",
40
- "@cometix/claude-code-android-arm64": "2.1.175",
32
+ "@cometix/claude-code-darwin-arm64": "2.1.178",
33
+ "@cometix/claude-code-darwin-x64": "2.1.178",
34
+ "@cometix/claude-code-linux-arm64": "2.1.178",
35
+ "@cometix/claude-code-linux-x64": "2.1.178",
36
+ "@cometix/claude-code-linux-arm64-musl": "2.1.178",
37
+ "@cometix/claude-code-linux-x64-musl": "2.1.178",
38
+ "@cometix/claude-code-win32-arm64": "2.1.178",
39
+ "@cometix/claude-code-win32-x64": "2.1.178",
40
+ "@cometix/claude-code-android-arm64": "2.1.178",
41
41
  "@img/sharp-darwin-arm64": "^0.34.2",
42
42
  "@img/sharp-darwin-x64": "^0.34.2",
43
43
  "@img/sharp-linux-arm": "^0.34.2",
package/sdk-tools.d.ts CHANGED
@@ -149,6 +149,29 @@ export type AgentOutput =
149
149
  * Whether the calling agent has Read/Bash tools to check progress
150
150
  */
151
151
  canReadOutputFile?: boolean;
152
+ }
153
+ | {
154
+ status: "remote_launched";
155
+ /**
156
+ * The ID of the remote agent task
157
+ */
158
+ taskId: string;
159
+ /**
160
+ * The URL of the cloud session
161
+ */
162
+ sessionUrl: string;
163
+ /**
164
+ * The description of the task
165
+ */
166
+ description: string;
167
+ /**
168
+ * The prompt for the agent
169
+ */
170
+ prompt: string;
171
+ /**
172
+ * Path to the output file for checking agent progress
173
+ */
174
+ outputFile: string;
152
175
  };
153
176
  export type FileReadOutput =
154
177
  | {
@@ -323,6 +346,17 @@ export type ProjectsOutput =
323
346
  path: string;
324
347
  created_at: string | null;
325
348
  }[];
349
+ files?: {
350
+ path: string;
351
+ file_kind: string;
352
+ created_at: string | null;
353
+ }[];
354
+ sync_sources?: {
355
+ type: string | null;
356
+ config: {
357
+ [k: string]: unknown;
358
+ };
359
+ }[];
326
360
  knowledge: {
327
361
  knowledge_size: number;
328
362
  max_knowledge_size: number;
@@ -335,6 +369,7 @@ export type ProjectsOutput =
335
369
  method: "project_read";
336
370
  notice?: string;
337
371
  path: string;
372
+ file_kind?: string;
338
373
  content?: string;
339
374
  local_file?: string;
340
375
  created_at: string | null;
@@ -385,7 +420,7 @@ export interface AgentInput {
385
420
  */
386
421
  subagent_type?: string;
387
422
  /**
388
- * Optional model override for this agent. Takes precedence over the agent definition's model frontmatter. If omitted, uses the agent definition's model, or inherits from the parent.
423
+ * Optional model override for this agent. Takes precedence over the agent definition's model frontmatter. If omitted, uses the agent definition's model, or inherits from the parent. Ignored for subagent_type: "fork" — forks always inherit the parent model.
389
424
  */
390
425
  model?: "sonnet" | "opus" | "haiku" | "fable";
391
426
  /**
@@ -397,7 +432,7 @@ export interface AgentInput {
397
432
  */
398
433
  name?: string;
399
434
  /**
400
- * Team name for spawning. Uses current team context if omitted.
435
+ * Deprecated; ignored. The session has a single implicit team.
401
436
  */
402
437
  team_name?: string;
403
438
  /**
@@ -405,9 +440,9 @@ export interface AgentInput {
405
440
  */
406
441
  mode?: "acceptEdits" | "auto" | "bypassPermissions" | "default" | "dontAsk" | "plan";
407
442
  /**
408
- * Isolation mode. "worktree" creates a temporary git worktree so the agent works on an isolated copy of the repo.
443
+ * Isolation mode. "worktree" creates a temporary git worktree so the agent works on an isolated copy of the repo. "remote" launches the agent in a remote cloud environment (always runs in background; availability is gated).
409
444
  */
410
- isolation?: "worktree";
445
+ isolation?: "worktree" | "remote";
411
446
  }
412
447
  export interface BashInput {
413
448
  /**
@@ -2874,6 +2909,10 @@ export interface WebFetchOutput {
2874
2909
  * The URL that was fetched
2875
2910
  */
2876
2911
  url: string;
2912
+ artifactRead?: {
2913
+ slug: string;
2914
+ ver: string;
2915
+ };
2877
2916
  }
2878
2917
  export interface WebSearchOutput {
2879
2918
  /**