arbiter-ai 1.3.0 → 1.3.1
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 +1 -0
- package/dist/router.js +2 -7
- package/package.json +2 -3
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,7 @@ 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 =
|
|
167
|
-
$refStrategy: 'none',
|
|
168
|
-
});
|
|
165
|
+
const orchestratorOutputJsonSchema = z.toJSONSchema(OrchestratorOutputSchema);
|
|
169
166
|
/**
|
|
170
167
|
* Schema for Arbiter structured output
|
|
171
168
|
* Controls message routing and orchestrator lifecycle
|
|
@@ -188,9 +185,7 @@ const ArbiterOutputSchema = z.object({
|
|
|
188
185
|
message: z.string().describe('Your message content'),
|
|
189
186
|
});
|
|
190
187
|
// Convert to JSON Schema for SDK
|
|
191
|
-
const arbiterOutputJsonSchema =
|
|
192
|
-
$refStrategy: 'none',
|
|
193
|
-
});
|
|
188
|
+
const arbiterOutputJsonSchema = z.toJSONSchema(ArbiterOutputSchema);
|
|
194
189
|
import { ARBITER_SYSTEM_PROMPT, createArbiterHooks, } from './arbiter.js';
|
|
195
190
|
import { createOrchestratorHooks, ORCHESTRATOR_SYSTEM_PROMPT, } from './orchestrator.js';
|
|
196
191
|
// 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.
|
|
3
|
+
"version": "1.3.1",
|
|
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.
|
|
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",
|