@anthropic-ai/claude-code 2.1.177 → 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 +9 -9
  2. package/sdk-tools.d.ts +26 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anthropic-ai/claude-code",
3
- "version": "2.1.177",
3
+ "version": "2.1.178",
4
4
  "bin": {
5
5
  "claude": "bin/claude.exe"
6
6
  },
@@ -21,14 +21,14 @@
21
21
  },
22
22
  "dependencies": {},
23
23
  "optionalDependencies": {
24
- "@anthropic-ai/claude-code-darwin-arm64": "2.1.177",
25
- "@anthropic-ai/claude-code-darwin-x64": "2.1.177",
26
- "@anthropic-ai/claude-code-linux-x64": "2.1.177",
27
- "@anthropic-ai/claude-code-linux-arm64": "2.1.177",
28
- "@anthropic-ai/claude-code-linux-x64-musl": "2.1.177",
29
- "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.177",
30
- "@anthropic-ai/claude-code-win32-x64": "2.1.177",
31
- "@anthropic-ai/claude-code-win32-arm64": "2.1.177"
24
+ "@anthropic-ai/claude-code-darwin-arm64": "2.1.178",
25
+ "@anthropic-ai/claude-code-darwin-x64": "2.1.178",
26
+ "@anthropic-ai/claude-code-linux-x64": "2.1.178",
27
+ "@anthropic-ai/claude-code-linux-arm64": "2.1.178",
28
+ "@anthropic-ai/claude-code-linux-x64-musl": "2.1.178",
29
+ "@anthropic-ai/claude-code-linux-arm64-musl": "2.1.178",
30
+ "@anthropic-ai/claude-code-win32-x64": "2.1.178",
31
+ "@anthropic-ai/claude-code-win32-arm64": "2.1.178"
32
32
  },
33
33
  "files": [
34
34
  "bin/claude.exe",
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
  | {
@@ -409,7 +432,7 @@ export interface AgentInput {
409
432
  */
410
433
  name?: string;
411
434
  /**
412
- * Team name for spawning. Uses current team context if omitted.
435
+ * Deprecated; ignored. The session has a single implicit team.
413
436
  */
414
437
  team_name?: string;
415
438
  /**
@@ -417,9 +440,9 @@ export interface AgentInput {
417
440
  */
418
441
  mode?: "acceptEdits" | "auto" | "bypassPermissions" | "default" | "dontAsk" | "plan";
419
442
  /**
420
- * 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).
421
444
  */
422
- isolation?: "worktree";
445
+ isolation?: "worktree" | "remote";
423
446
  }
424
447
  export interface BashInput {
425
448
  /**