arbiter-ai 1.3.0 → 1.3.2

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/dist/index.js CHANGED
@@ -274,6 +274,7 @@ async function main() {
274
274
  // This must be done BEFORE any SDK queries so they inherit the env var
275
275
  const taskListId = savedSession?.taskListId || generateTaskListId();
276
276
  process.env.CLAUDE_CODE_TASK_LIST_ID = taskListId;
277
+ process.env.CLAUDE_CODE_ENABLE_TASKS = 'true';
277
278
  // Create initial application state
278
279
  state = createInitialState();
279
280
  // Set requirements path if provided via CLI (interactive selection happens in TUI)
package/dist/router.js CHANGED
@@ -4,7 +4,6 @@ import { appendFileSync } from 'node:fs';
4
4
  import { join } from 'node:path';
5
5
  import { query } from '@anthropic-ai/claude-agent-sdk';
6
6
  import { z } from 'zod';
7
- import { zodToJsonSchema } from 'zod-to-json-schema';
8
7
  import { saveSession } from './session-persistence.js';
9
8
  // Helper for async delays
10
9
  function sleep(ms) {
@@ -163,9 +162,12 @@ const OrchestratorOutputSchema = z.object({
163
162
  message: z.string().describe('The message content'),
164
163
  });
165
164
  // Convert to JSON Schema for SDK
166
- const orchestratorOutputJsonSchema = zodToJsonSchema(OrchestratorOutputSchema, {
167
- $refStrategy: 'none',
168
- });
165
+ // Strip $schema field which Zod 4 adds - the Anthropic API doesn't expect it
166
+ function stripSchemaField(schema) {
167
+ const { $schema, ...rest } = schema;
168
+ return rest;
169
+ }
170
+ const orchestratorOutputJsonSchema = stripSchemaField(z.toJSONSchema(OrchestratorOutputSchema));
169
171
  /**
170
172
  * Schema for Arbiter structured output
171
173
  * Controls message routing and orchestrator lifecycle
@@ -187,10 +189,8 @@ const ArbiterOutputSchema = z.object({
187
189
  - musings: Thinking aloud. Displayed for context but no response expected.`),
188
190
  message: z.string().describe('Your message content'),
189
191
  });
190
- // Convert to JSON Schema for SDK
191
- const arbiterOutputJsonSchema = zodToJsonSchema(ArbiterOutputSchema, {
192
- $refStrategy: 'none',
193
- });
192
+ // Convert to JSON Schema for SDK (uses stripSchemaField helper defined above)
193
+ const arbiterOutputJsonSchema = stripSchemaField(z.toJSONSchema(ArbiterOutputSchema));
194
194
  import { ARBITER_SYSTEM_PROMPT, createArbiterHooks, } from './arbiter.js';
195
195
  import { createOrchestratorHooks, ORCHESTRATOR_SYSTEM_PROMPT, } from './orchestrator.js';
196
196
  // Maximum context window size (200K tokens)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arbiter-ai",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Hierarchical AI orchestration system for extending Claude's effective context window while staying on task",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -55,8 +55,7 @@
55
55
  "play-sound": "^1.1.6",
56
56
  "sharp": "^0.34.5",
57
57
  "terminal-kit": "^3.1.2",
58
- "zod": "^3.22.4",
59
- "zod-to-json-schema": "^3.25.1"
58
+ "zod": "^4.3.6"
60
59
  },
61
60
  "devDependencies": {
62
61
  "@biomejs/biome": "^2.3.11",