This repository was archived by the owner on Jul 19, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPROJECT_INDEX.json
More file actions
439 lines (439 loc) · 12.4 KB
/
Copy pathPROJECT_INDEX.json
File metadata and controls
439 lines (439 loc) · 12.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
{
"metadata": {
"generated": "2025-11-13",
"version": "0.1.0",
"status": "Pre-Alpha (Implementation Skeleton Complete 93%)",
"repository": "https://github.com/agiletec-inc/airiscode.git",
"license": "MIT"
},
"statistics": {
"totalPackages": 22,
"typeScriptFiles": 866,
"testFiles": 244,
"documentationFiles": 25,
"linesOfCode": 14180,
"configFiles": 30
},
"entryPoints": {
"cli": {
"path": "apps/airiscode-cli/src/index.tsx",
"executable": "apps/airiscode-cli/bin/airis",
"mainApp": "apps/airiscode-cli/src/EnhancedApp.tsx",
"description": "Main CLI application with Ink-based TUI"
},
"packages": [
{
"name": "@airiscode/types",
"path": "packages/types/src/index.ts",
"exports": ["Result", "ModelDriver", "AdapterProcess", "PolicyProfile"]
},
{
"name": "@airiscode/policies",
"path": "packages/policies/src/index.ts",
"exports": ["ApprovalsLevel", "TrustLevel", "PolicyProfile"]
},
{
"name": "@airiscode/sandbox",
"path": "packages/sandbox/src/index.ts",
"exports": ["ShellGuard", "CommandAnalyzer"]
},
{
"name": "@airiscode/drivers",
"path": "packages/drivers/src/index.ts",
"exports": ["ModelDriver", "ChatMessage", "ToolCall", "ModelCapabilities"]
},
{
"name": "@airiscode/mcp-session",
"path": "packages/mcp/session/src/index.ts",
"exports": ["MCPSessionManager"]
},
{
"name": "@airiscode/gemini-core",
"path": "packages/gemini-core/src/index.ts",
"exports": ["Core Gemini CLI logic"]
}
]
},
"packages": {
"drivers": [
{
"name": "@airiscode/driver-ollama",
"path": "packages/drivers/ollama",
"status": "built",
"exports": ["OllamaDriver"],
"features": ["streaming", "toolCalling", "modelListing"]
},
{
"name": "@airiscode/driver-openai",
"path": "packages/drivers/openai",
"status": "built",
"exports": ["OpenAIDriver"],
"features": ["gpt4", "gpt35", "streaming", "toolCalling"]
},
{
"name": "@airiscode/driver-anthropic",
"path": "packages/drivers/anthropic",
"status": "built",
"exports": ["AnthropicDriver"],
"features": ["claude3", "streaming", "toolCalling"]
},
{
"name": "@airiscode/drivers-local",
"path": "packages/drivers/local",
"status": "skeleton",
"exports": ["LocalDriver"],
"features": ["mlx", "localInference"]
},
{
"name": "@airiscode/drivers",
"path": "packages/drivers",
"status": "built",
"exports": ["ModelDriver"],
"features": ["abstractInterface"]
}
],
"mcp": [
{
"name": "@airiscode/mcp-gateway-client",
"path": "packages/mcp/gateway-client",
"status": "built",
"exports": ["GatewayClient", "AlwaysOnTool", "LazyServer"],
"features": ["httpClient", "sseStreaming", "toolDiscovery"]
},
{
"name": "@airiscode/mcp-registry",
"path": "packages/mcp/registry",
"status": "built",
"exports": ["ToolRegistry", "ToolCategory"],
"features": ["categorization", "search", "invocationTracking"]
},
{
"name": "@airiscode/mcp-lazy-loader",
"path": "packages/mcp/lazy-loader",
"status": "built",
"exports": ["LazyLoader"],
"features": ["onDemandLoading", "serverEnabling"]
},
{
"name": "@airiscode/mcp-session",
"path": "packages/mcp/session",
"status": "built",
"exports": ["MCPSessionManager"],
"features": ["lifecycleManagement", "gatewayConnection", "toolExecutionLoop"]
},
{
"name": "@airiscode/mcp-client",
"path": "packages/mcp/client",
"status": "built",
"exports": ["MCPClient"],
"features": ["baseClient"]
}
],
"security": [
{
"name": "@airiscode/policies",
"path": "packages/policies",
"status": "built",
"exports": ["ApprovalsLevel", "TrustLevel", "PolicyProfile"],
"approvalLevels": ["never", "on-failure", "on-request"],
"trustLevels": ["restricted", "sandboxed", "untrusted"]
},
{
"name": "@airiscode/sandbox",
"path": "packages/sandbox",
"status": "skeleton",
"exports": ["ShellGuard", "CommandAnalyzer"],
"features": ["denyList", "patternMatching", "safetyChecks"]
}
],
"adapters": [
{
"name": "@airiscode/adapters",
"path": "packages/adapters",
"status": "skeleton",
"exports": ["AdapterProcess"],
"features": ["abstractInterface"]
},
{
"name": "@airiscode/adapters-claude-code",
"path": "packages/adapters/claude-code",
"status": "skeleton",
"exports": ["ClaudeCodeAdapter"],
"features": ["cliWrapper"]
}
],
"runners": [
{
"name": "@airiscode/runners-git",
"path": "packages/runners/git",
"status": "skeleton",
"exports": ["GitRunner"],
"features": ["status", "commit", "push", "patch", "diff"]
},
{
"name": "@airiscode/runners-docker",
"path": "packages/runners/docker",
"status": "skeleton",
"exports": ["DockerRunner"],
"features": ["compose", "health", "stats"]
},
{
"name": "@airiscode/runners-test",
"path": "packages/runners/test",
"status": "skeleton",
"exports": ["TestRunner"],
"features": ["multiFramework", "jest", "vitest", "mocha"]
}
],
"core": [
{
"name": "@airiscode/gemini-core",
"path": "packages/gemini-core",
"status": "built",
"exports": ["Core logic"],
"features": ["tools", "ideIntegration", "mcpClient"]
},
{
"name": "@airiscode/core-gemini",
"path": "packages/core-gemini",
"status": "built",
"exports": ["Core utilities"],
"features": ["geminiSupport"]
},
{
"name": "@airiscode/ui-gemini",
"path": "packages/ui-gemini",
"status": "skipped",
"exports": ["UI components"],
"features": ["inkComponents"],
"note": "Missing dependencies: tinygradient, lowlight, etc."
},
{
"name": "@airiscode/types",
"path": "packages/types",
"status": "built",
"exports": ["Result", "CommonTypes"],
"features": ["resultPattern", "sharedTypes"]
}
],
"apps": [
{
"name": "@airiscode/cli",
"path": "apps/airiscode-cli",
"status": "integrated",
"exports": ["CLI application"],
"features": ["inkTUI", "commanderCLI", "mcpIntegration"]
}
]
},
"configuration": {
"build": [
"pnpm-workspace.yaml",
"turbo.json",
"tsconfig.base.json"
],
"packageManager": {
"name": "pnpm",
"version": "10.21.0",
"required": true
},
"nodeVersion": "25.0.0",
"buildTool": {
"name": "turbo",
"version": "2.6.1"
},
"policies": [
"packages/policies/schemas/guard.schema.yaml",
"packages/policies/schemas/profiles.yaml"
],
"proto": [
"buf.yaml",
"buf.gen.yaml"
]
},
"documentation": {
"architecture": [
"ARCHTECHTURE.md",
"AGENTS.md",
"CLAUDE.md",
"STATUS.md",
"QUICKSTART.md"
],
"developer": [
"docs/IMPLEMENTATION_STATUS.md",
"docs/INTEGRATION_GUIDE.md",
"docs/VERIFICATION_REPORT.md",
"docs/MCP_INTEGRATION.md",
"docs/TOOL_EXECUTION_LOOP.md",
"docs/FILE_INVENTORY.md",
"docs/FINAL_CHECKLIST.md"
],
"packages": [
"packages/adapters/README.md",
"packages/runners/git/README.md",
"packages/runners/docker/README.md",
"packages/runners/test/README.md",
"apps/airiscode-cli/README.md"
],
"publishing": [
"PUBLISHING.md",
"CONTRIBUTING.md",
"homebrew/README.md"
]
},
"testing": {
"totalTests": 244,
"framework": "vitest",
"organization": {
"unitTests": "*.test.ts, *.spec.ts (alongside source)",
"integrationTests": "__tests__/ directories"
},
"coverage": [
"packages/types/__tests__/",
"packages/policies/__tests__/",
"packages/sandbox/__tests__/",
"packages/drivers/__tests__/",
"packages/adapters/__tests__/",
"packages/mcp/client/__tests__/",
"packages/mcp/registry/__tests__/",
"packages/runners/git/__tests__/",
"packages/runners/docker/__tests__/",
"packages/runners/test/__tests__/",
"apps/airiscode-cli/__tests__/"
],
"uiTests": {
"commands": 25,
"components": 12,
"hooks": 14,
"utils": 11
}
},
"dependencies": {
"runtime": {
"ink": "6.4.2",
"commander": "11.1.0",
"react": "19.2.0",
"zod": "3.23.8",
"simple-git": "3.28.0",
"chalk": "5.3.0",
"undici": "7.10.0"
},
"build": {
"typescript": "5.9.3",
"turbo": "2.6.1",
"vitest": "4.0.8",
"eslint": "9.39.1",
"prettier": "3.6.2"
},
"llmApis": {
"openai": "OpenAI SDK",
"anthropic": "@anthropic-ai/sdk",
"ollama": "Ollama SDK"
}
},
"quickStart": {
"installation": [
"git clone https://github.com/agiletec-inc/airiscode.git",
"cd airiscode",
"pnpm install",
"pnpm turbo run build"
],
"development": [
"pnpm dev",
"pnpm turbo run test",
"pnpm turbo run lint"
],
"usage": [
"airis \"Add a /health endpoint\"",
"airis \"Refactor auth\" --adapter claude-code --policy sandboxed",
"airis chat",
"airis \"Run tests\" --json"
]
},
"implementationStatus": {
"completed": {
"percentage": 93,
"items": [
"Foundation packages (types, policies, sandbox)",
"LLM drivers (OpenAI, Anthropic, Ollama)",
"MCP integration (gateway-client, registry, lazy-loader, session)",
"Tool execution loop (LLM↔MCP autonomous calling)",
"CLI entry point (Ink-based TUI)",
"Session management",
"Gemini core logic adaptation"
]
},
"inProgress": {
"percentage": 5,
"items": [
"Observability & telemetry",
"UI components (ui-gemini missing dependencies)"
]
},
"notStarted": {
"percentage": 2,
"items": [
"Adapter implementations (Claude Code, Codex, Aider)",
"Runner integration (git, docker, test)",
"Shell Guard full integration"
]
}
},
"relatedProjects": {
"external": [
{
"name": "Super Agent",
"path": "/Users/kazuki/github/superagent",
"purpose": "Confidence gating, deep research"
},
{
"name": "MindBase",
"path": "/Users/kazuki/github/mindbase",
"purpose": "Local semantic memory (pgvector)"
},
{
"name": "AIRIS MCP Gateway",
"path": "/Users/kazuki/github/airis-mcp-gateway",
"purpose": "MCP server aggregation"
},
{
"name": "SuperClaude",
"purpose": "TypeScript framework + slash-command plugin"
}
],
"upstream": [
{
"name": "Claude Code",
"purpose": "Anthropic's official CLI (adapter target)"
},
{
"name": "Codex",
"purpose": "OpenAI's code assistant (adapter target)"
},
{
"name": "Gemini CLI",
"purpose": "Google's CLI (adapted into gemini-core)"
},
{
"name": "Aider",
"purpose": "AI pair programming tool (adapter target)"
}
]
},
"architecturePrinciples": [
"No Reimplementation - Wrap existing CLIs via adapters, never fork",
"LLM-Agnostic - Support OpenAI, Anthropic, Google, local models",
"Dynamic Tooling - MCP Gateway advertises tools lazily",
"Local Memory - MindBase keeps conversation + task logs local",
"Strict Policies - Enforce approval/trust levels via Shell Guard",
"Terminal-First - Ink-based TUI + JSON headless mode"
],
"tokenOptimization": {
"before": "58,000 tokens (full codebase read)",
"after": "3,000 tokens (index read)",
"reduction": "94%",
"breakEven": "1 session",
"savings10Sessions": "550,000 tokens",
"savings100Sessions": "5,500,000 tokens"
}
}