@aragon-agent/cli 0.6.17 → 0.6.18
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/CHANGELOG.md +107 -51
- package/README.md +48 -2
- package/dist/agent/controller.js +13 -0
- package/dist/agent/headless.js +7 -0
- package/dist/commands/builtins.js +18 -3
- package/dist/commands/index-build.d.ts +39 -0
- package/dist/commands/index-build.js +61 -0
- package/dist/config/cli-commands.d.ts +1 -1
- package/dist/config/cli-commands.js +3 -0
- package/dist/config/schema.d.ts +24 -4
- package/dist/config/schema.js +4 -0
- package/dist/exec/events.d.ts +4 -1
- package/dist/exec/runner.js +13 -0
- package/dist/input/csiu-keys.js +13 -2
- package/dist/input/limits.d.ts +15 -0
- package/dist/input/limits.js +15 -0
- package/dist/input/win32-input-mode.js +7 -1
- package/dist/logging/install.d.ts +9 -0
- package/dist/logging/install.js +11 -0
- package/dist/team/human-queue.d.ts +11 -0
- package/dist/team/human-queue.js +18 -1
- package/dist/team/limits.d.ts +40 -0
- package/dist/team/limits.js +41 -0
- package/dist/team/overseer.d.ts +157 -0
- package/dist/team/overseer.js +348 -0
- package/dist/team/report.js +26 -1
- package/dist/team/runtime.d.ts +71 -6
- package/dist/team/runtime.js +380 -23
- package/dist/team/subagent.d.ts +30 -1
- package/dist/team/subagent.js +8 -1
- package/dist/team/task-tool.js +4 -1
- package/dist/team/types.d.ts +63 -0
- package/dist/ui/App.d.ts +1 -1
- package/dist/ui/App.js +61 -0
- package/dist/ui/Header.js +13 -2
- package/dist/ui/PromptInput.js +11 -1
- package/dist/ui/overlays/HelpOverlay.js +1 -0
- package/package.json +2 -2
- package/skills/project-indexer/SKILL.md +163 -0
- package/skills/project-indexer/templates/cleancode-overrides.md +46 -0
- package/skills/project-indexer/templates/cleancode-template.md +94 -0
- package/skills/project-indexer/templates/config-template.md +69 -0
- package/skills/project-indexer/templates/index-template.md +129 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# Project Index: {project-name}
|
|
2
|
+
|
|
3
|
+
> Auto-generated by project-indexer | Last updated: {YYYY-MM-DD}
|
|
4
|
+
|
|
5
|
+
## Project Overview
|
|
6
|
+
|
|
7
|
+
- **Type:** {Frontend | Backend | Fullstack | Library | CLI | Monorepo}
|
|
8
|
+
- **Languages:** {TypeScript (70%), Python (30%)}
|
|
9
|
+
- **Frameworks:** {Next.js, FastAPI, etc.}
|
|
10
|
+
- **Entry Points:** `{src/index.ts}`, `{api/main.py}`
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## Feature Map
|
|
15
|
+
|
|
16
|
+
### {Feature Name} (`{path}/`)
|
|
17
|
+
|
|
18
|
+
Entry: `{entry-file}`
|
|
19
|
+
|
|
20
|
+
{One-line description of this feature area}
|
|
21
|
+
|
|
22
|
+
**Key exports:**
|
|
23
|
+
- `{functionName}({params}): {returnType}` - {description}
|
|
24
|
+
- `{ClassName}` - {description}
|
|
25
|
+
- `{CONSTANT_NAME}` - {description}
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
### Example: Authentication (`src/auth/`)
|
|
30
|
+
|
|
31
|
+
Entry: `src/auth/index.ts`
|
|
32
|
+
|
|
33
|
+
User authentication, session management, and authorization logic.
|
|
34
|
+
|
|
35
|
+
**Key exports:**
|
|
36
|
+
- `login(credentials: LoginInput): Promise<User>` - Authenticate user with email/password
|
|
37
|
+
- `logout(): void` - Clear session and revoke tokens
|
|
38
|
+
- `useAuth(): AuthContext` - React hook for accessing auth state
|
|
39
|
+
- `withAuth(Component): Component` - HOC for protected routes
|
|
40
|
+
- `AuthProvider` - Context provider for auth state
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
### Example: API Layer (`src/api/`)
|
|
45
|
+
|
|
46
|
+
Entry: `src/api/client.ts`
|
|
47
|
+
|
|
48
|
+
REST API client with error handling, request interceptors, and response caching.
|
|
49
|
+
|
|
50
|
+
**Key exports:**
|
|
51
|
+
- `apiClient` - Pre-configured axios instance
|
|
52
|
+
- `useQuery<T>(endpoint: string): SWRResponse<T>` - Data fetching hook with caching
|
|
53
|
+
- `useMutation<T>(endpoint: string): MutationResult<T>` - Data mutation hook
|
|
54
|
+
- `ApiError` - Custom error class for API errors
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Module Dependencies
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
{module-a} → {module-b} ({relationship description})
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Example:
|
|
65
|
+
```
|
|
66
|
+
auth → api (uses apiClient for authentication requests)
|
|
67
|
+
pages → auth, components (imports hooks and UI components)
|
|
68
|
+
api → (standalone, no internal dependencies)
|
|
69
|
+
components → utils (uses helper functions)
|
|
70
|
+
hooks → api, auth (combines data fetching with auth state)
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## File Index
|
|
76
|
+
|
|
77
|
+
### {directory}/
|
|
78
|
+
|
|
79
|
+
| File | Description |
|
|
80
|
+
|------|-------------|
|
|
81
|
+
| {filename.ext} | {One-line description} |
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
### Example: src/auth/
|
|
86
|
+
|
|
87
|
+
| File | Description |
|
|
88
|
+
|------|-------------|
|
|
89
|
+
| index.ts | Module entry point, re-exports public API |
|
|
90
|
+
| login.ts | Login logic, credential validation, token handling |
|
|
91
|
+
| logout.ts | Logout logic, session cleanup, token revocation |
|
|
92
|
+
| session.ts | Session storage, refresh token management |
|
|
93
|
+
| hooks.ts | React hooks: useAuth, useUser, usePermissions |
|
|
94
|
+
| context.tsx | AuthContext and AuthProvider implementation |
|
|
95
|
+
| types.ts | TypeScript types for auth entities |
|
|
96
|
+
| constants.ts | Auth-related constants and configuration |
|
|
97
|
+
|
|
98
|
+
### Example: src/api/
|
|
99
|
+
|
|
100
|
+
| File | Description |
|
|
101
|
+
|------|-------------|
|
|
102
|
+
| client.ts | Axios instance with interceptors and base config |
|
|
103
|
+
| endpoints.ts | API endpoint path constants |
|
|
104
|
+
| types.ts | Request/response type definitions |
|
|
105
|
+
| errors.ts | Custom error classes and error handling utilities |
|
|
106
|
+
| hooks.ts | Data fetching hooks: useQuery, useMutation |
|
|
107
|
+
| cache.ts | Response caching configuration |
|
|
108
|
+
|
|
109
|
+
### Example: src/components/
|
|
110
|
+
|
|
111
|
+
| File | Description |
|
|
112
|
+
|------|-------------|
|
|
113
|
+
| Button.tsx | Reusable button with variants (primary, secondary, ghost) |
|
|
114
|
+
| Modal.tsx | Dialog component with portal and focus trap |
|
|
115
|
+
| Toast.tsx | Notification toast with auto-dismiss |
|
|
116
|
+
| Spinner.tsx | Loading spinner component |
|
|
117
|
+
| Form/index.tsx | Form wrapper with validation context |
|
|
118
|
+
| Form/Input.tsx | Text input with label and error display |
|
|
119
|
+
| Form/Select.tsx | Dropdown select component |
|
|
120
|
+
| Form/Checkbox.tsx | Checkbox with label |
|
|
121
|
+
| Layout/Header.tsx | App header with navigation |
|
|
122
|
+
| Layout/Sidebar.tsx | Collapsible sidebar navigation |
|
|
123
|
+
| Layout/Footer.tsx | App footer |
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Notes
|
|
128
|
+
|
|
129
|
+
{Any additional notes about the project structure, conventions, or important information}
|