@ai-sdk/harness-claude-code 1.0.151 → 1.0.153

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/harness-claude-code",
3
- "version": "1.0.151",
3
+ "version": "1.0.153",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -26,9 +26,9 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "@ai-sdk/harness": "1.0.147",
30
- "@ai-sdk/provider": "4.0.26",
31
- "@ai-sdk/provider-utils": "5.0.58",
29
+ "@ai-sdk/harness": "1.0.149",
30
+ "@ai-sdk/provider": "4.0.27",
31
+ "@ai-sdk/provider-utils": "5.0.59",
32
32
  "ws": "^8.21.0"
33
33
  },
34
34
  "peerDependencies": {
@@ -99,6 +99,7 @@ const NATIVE_TOOL_KINDS: Readonly<
99
99
  TaskGet: 'readonly',
100
100
  TaskList: 'readonly',
101
101
  TaskOutput: 'readonly',
102
+ ListAgents: 'readonly',
102
103
  ListMcpResources: 'readonly',
103
104
  ReadMcpResource: 'readonly',
104
105
  Write: 'edit',
@@ -404,6 +404,27 @@ const CLAUDE_CODE_BUILTIN_TOOLS = {
404
404
  }),
405
405
  toolUseKind: 'bash',
406
406
  },
407
+ ListAgents: {
408
+ ...tool({
409
+ description: 'List agents that can receive messages',
410
+ inputSchema: z.strictObject({
411
+ channel: z
412
+ .string()
413
+ .max(256)
414
+ .optional()
415
+ .describe('Not available in this build; leave unset.'),
416
+ q: z
417
+ .string()
418
+ .max(256)
419
+ .optional()
420
+ .describe('Not available in this build; leave unset.'),
421
+ }),
422
+ outputSchema: z.object({
423
+ listing: z.string().describe('Formatted list of reachable agents'),
424
+ }),
425
+ }),
426
+ toolUseKind: 'readonly',
427
+ },
407
428
  ListMcpResources: {
408
429
  ...tool({
409
430
  description: 'List resources available from MCP servers',
@@ -1850,6 +1871,8 @@ function createSession({
1850
1871
  : {}),
1851
1872
  };
1852
1873
  pendingResumeFlag = false;
1874
+ // Recovery starts a native turn once. Later continuations attach to it.
1875
+ rerunContinue = false;
1853
1876
  channel.send(startMessage);
1854
1877
 
1855
1878
  return control;
@@ -1873,6 +1896,7 @@ function createSession({
1873
1896
  // Same as `doPromptTurn`: an already-aborted signal settled the turn in
1874
1897
  // `wireTurn`, so don't re-drive the thread nobody is waiting on.
1875
1898
  if (rerunContinue && !continueOpts.abortSignal?.aborted) {
1899
+ rerunContinue = false;
1876
1900
  pendingResumeFlag = false;
1877
1901
  channel.send({
1878
1902
  type: 'start' as const,