arbiter-ai 1.0.0
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/README.md +41 -0
- package/assets/jerom_16x16.png +0 -0
- package/dist/arbiter.d.ts +43 -0
- package/dist/arbiter.js +486 -0
- package/dist/context-analyzer.d.ts +15 -0
- package/dist/context-analyzer.js +603 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +165 -0
- package/dist/orchestrator.d.ts +31 -0
- package/dist/orchestrator.js +227 -0
- package/dist/router.d.ts +187 -0
- package/dist/router.js +1135 -0
- package/dist/router.test.d.ts +15 -0
- package/dist/router.test.js +95 -0
- package/dist/session-persistence.d.ts +9 -0
- package/dist/session-persistence.js +63 -0
- package/dist/session-persistence.test.d.ts +1 -0
- package/dist/session-persistence.test.js +165 -0
- package/dist/sound.d.ts +31 -0
- package/dist/sound.js +50 -0
- package/dist/state.d.ts +72 -0
- package/dist/state.js +107 -0
- package/dist/state.test.d.ts +1 -0
- package/dist/state.test.js +194 -0
- package/dist/test-headless.d.ts +1 -0
- package/dist/test-headless.js +155 -0
- package/dist/tui/index.d.ts +14 -0
- package/dist/tui/index.js +17 -0
- package/dist/tui/layout.d.ts +30 -0
- package/dist/tui/layout.js +200 -0
- package/dist/tui/render.d.ts +57 -0
- package/dist/tui/render.js +266 -0
- package/dist/tui/scene.d.ts +64 -0
- package/dist/tui/scene.js +366 -0
- package/dist/tui/screens/CharacterSelect-termkit.d.ts +18 -0
- package/dist/tui/screens/CharacterSelect-termkit.js +216 -0
- package/dist/tui/screens/ForestIntro-termkit.d.ts +15 -0
- package/dist/tui/screens/ForestIntro-termkit.js +856 -0
- package/dist/tui/screens/GitignoreCheck-termkit.d.ts +14 -0
- package/dist/tui/screens/GitignoreCheck-termkit.js +185 -0
- package/dist/tui/screens/TitleScreen-termkit.d.ts +14 -0
- package/dist/tui/screens/TitleScreen-termkit.js +132 -0
- package/dist/tui/screens/index.d.ts +9 -0
- package/dist/tui/screens/index.js +10 -0
- package/dist/tui/tileset.d.ts +97 -0
- package/dist/tui/tileset.js +237 -0
- package/dist/tui/tui-termkit.d.ts +34 -0
- package/dist/tui/tui-termkit.js +2602 -0
- package/dist/tui/types.d.ts +41 -0
- package/dist/tui/types.js +4 -0
- package/package.json +71 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared types for the TUI components
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Speaker types for chat messages
|
|
6
|
+
*/
|
|
7
|
+
export type Speaker = 'human' | 'arbiter' | 'orchestrator' | 'system';
|
|
8
|
+
/**
|
|
9
|
+
* Chat message interface
|
|
10
|
+
*/
|
|
11
|
+
export interface Message {
|
|
12
|
+
/** Unique identifier for the message */
|
|
13
|
+
id: string;
|
|
14
|
+
/** Who sent the message */
|
|
15
|
+
speaker: Speaker;
|
|
16
|
+
/** Orchestrator number for orchestrator messages (e.g., 1 for "Conjuring I") */
|
|
17
|
+
orchestratorNumber?: number;
|
|
18
|
+
/** The message text content */
|
|
19
|
+
text: string;
|
|
20
|
+
/** When the message was created */
|
|
21
|
+
timestamp: Date;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Waiting state for animations
|
|
25
|
+
*/
|
|
26
|
+
export type WaitingState = 'none' | 'arbiter' | 'orchestrator';
|
|
27
|
+
/**
|
|
28
|
+
* Scroll hook return type
|
|
29
|
+
*/
|
|
30
|
+
export interface ScrollState {
|
|
31
|
+
/** Current scroll offset (lines from top) */
|
|
32
|
+
offset: number;
|
|
33
|
+
/** Function to scroll by a number of lines (positive = down, negative = up) */
|
|
34
|
+
scrollBy: (lines: number) => void;
|
|
35
|
+
/** Maximum scroll offset */
|
|
36
|
+
maxScroll: number;
|
|
37
|
+
/** Whether scrolled to the bottom */
|
|
38
|
+
isAtBottom: boolean;
|
|
39
|
+
/** Scroll to bottom */
|
|
40
|
+
scrollToBottom: () => void;
|
|
41
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "arbiter-ai",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Hierarchical AI orchestration system for extending Claude's effective context window",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"arbiter": "dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"assets"
|
|
13
|
+
],
|
|
14
|
+
"keywords": [
|
|
15
|
+
"claude",
|
|
16
|
+
"ai",
|
|
17
|
+
"orchestration",
|
|
18
|
+
"agent",
|
|
19
|
+
"anthropic",
|
|
20
|
+
"tui",
|
|
21
|
+
"cli"
|
|
22
|
+
],
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=18.0.0"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "tsc",
|
|
29
|
+
"start": "node dist/index.js",
|
|
30
|
+
"dev": "tsx src/index.ts",
|
|
31
|
+
"test": "vitest run",
|
|
32
|
+
"test:watch": "vitest",
|
|
33
|
+
"test:coverage": "vitest run --coverage",
|
|
34
|
+
"test:headless": "tsx src/test-headless.ts",
|
|
35
|
+
"test:queue": "npx tsx src/test-queue-logic.ts",
|
|
36
|
+
"lint": "biome check src/",
|
|
37
|
+
"lint:fix": "biome check --fix src/",
|
|
38
|
+
"format": "biome format src/",
|
|
39
|
+
"format:fix": "biome format --write src/",
|
|
40
|
+
"check": "biome check src/",
|
|
41
|
+
"check:fix": "biome check --fix src/",
|
|
42
|
+
"analyze:context": "tsx src/context-analyzer.ts",
|
|
43
|
+
"prepublishOnly": "npm run build",
|
|
44
|
+
"prepare": "husky"
|
|
45
|
+
},
|
|
46
|
+
"lint-staged": {
|
|
47
|
+
"src/**/*.{ts,tsx,js,jsx}": [
|
|
48
|
+
"biome check --fix --no-errors-on-unmatched"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@anthropic-ai/claude-agent-sdk": "latest",
|
|
53
|
+
"fzf": "^0.5.2",
|
|
54
|
+
"play-sound": "^1.1.6",
|
|
55
|
+
"sharp": "^0.34.5",
|
|
56
|
+
"terminal-kit": "^3.1.2",
|
|
57
|
+
"zod": "^3.22.4",
|
|
58
|
+
"zod-to-json-schema": "^3.25.1"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@biomejs/biome": "^2.3.11",
|
|
62
|
+
"@types/node": "^20.10.0",
|
|
63
|
+
"@types/play-sound": "^1.1.2",
|
|
64
|
+
"@types/terminal-kit": "^2.5.7",
|
|
65
|
+
"husky": "^9.1.7",
|
|
66
|
+
"lint-staged": "^16.2.7",
|
|
67
|
+
"tsx": "^4.7.0",
|
|
68
|
+
"typescript": "^5.3.0",
|
|
69
|
+
"vitest": "^4.0.16"
|
|
70
|
+
}
|
|
71
|
+
}
|