@qelos/aidev 0.2.8 → 0.2.11

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.
Files changed (80) hide show
  1. package/.env.aidev.example +51 -37
  2. package/CONTRIBUTING.md +78 -78
  3. package/LICENSE +21 -21
  4. package/README.md +455 -453
  5. package/dist/__tests__/ai-runners.test.js +15 -10
  6. package/dist/__tests__/ai-runners.test.js.map +1 -1
  7. package/dist/__tests__/init.test.js +122 -1
  8. package/dist/__tests__/init.test.js.map +1 -1
  9. package/dist/__tests__/local-provider.test.js +31 -31
  10. package/dist/__tests__/platform.test.js +235 -20
  11. package/dist/__tests__/platform.test.js.map +1 -1
  12. package/dist/__tests__/providers.test.js +413 -21
  13. package/dist/__tests__/providers.test.js.map +1 -1
  14. package/dist/__tests__/run.test.js +19 -0
  15. package/dist/__tests__/run.test.js.map +1 -1
  16. package/dist/ai/antigravity.d.ts +12 -0
  17. package/dist/ai/antigravity.d.ts.map +1 -0
  18. package/dist/ai/antigravity.js +70 -0
  19. package/dist/ai/antigravity.js.map +1 -0
  20. package/dist/ai/codex.d.ts +11 -0
  21. package/dist/ai/codex.d.ts.map +1 -0
  22. package/dist/ai/codex.js +49 -0
  23. package/dist/ai/codex.js.map +1 -0
  24. package/dist/ai/windsurf.d.ts +7 -0
  25. package/dist/ai/windsurf.d.ts.map +1 -1
  26. package/dist/ai/windsurf.js +205 -58
  27. package/dist/ai/windsurf.js.map +1 -1
  28. package/dist/cli.js +2 -0
  29. package/dist/cli.js.map +1 -1
  30. package/dist/commands/help.js +61 -61
  31. package/dist/commands/help.js.map +1 -1
  32. package/dist/commands/init.d.ts +11 -1
  33. package/dist/commands/init.d.ts.map +1 -1
  34. package/dist/commands/init.js +116 -22
  35. package/dist/commands/init.js.map +1 -1
  36. package/dist/commands/run.d.ts +4 -0
  37. package/dist/commands/run.d.ts.map +1 -1
  38. package/dist/commands/run.js +155 -117
  39. package/dist/commands/run.js.map +1 -1
  40. package/dist/config.d.ts.map +1 -1
  41. package/dist/config.js +16 -1
  42. package/dist/config.js.map +1 -1
  43. package/dist/diagnostics.d.ts.map +1 -1
  44. package/dist/diagnostics.js +1 -0
  45. package/dist/diagnostics.js.map +1 -1
  46. package/dist/github.js +23 -23
  47. package/dist/platform.d.ts +20 -2
  48. package/dist/platform.d.ts.map +1 -1
  49. package/dist/platform.js +74 -3
  50. package/dist/platform.js.map +1 -1
  51. package/dist/providers/assets.d.ts +15 -0
  52. package/dist/providers/assets.d.ts.map +1 -0
  53. package/dist/providers/assets.js +153 -0
  54. package/dist/providers/assets.js.map +1 -0
  55. package/dist/providers/clickup.d.ts +4 -0
  56. package/dist/providers/clickup.d.ts.map +1 -1
  57. package/dist/providers/clickup.js +45 -8
  58. package/dist/providers/clickup.js.map +1 -1
  59. package/dist/providers/index.d.ts.map +1 -1
  60. package/dist/providers/index.js +6 -0
  61. package/dist/providers/index.js.map +1 -1
  62. package/dist/providers/jira.d.ts +11 -0
  63. package/dist/providers/jira.d.ts.map +1 -1
  64. package/dist/providers/jira.js +143 -11
  65. package/dist/providers/jira.js.map +1 -1
  66. package/dist/providers/linear.d.ts +19 -0
  67. package/dist/providers/linear.d.ts.map +1 -0
  68. package/dist/providers/linear.js +214 -0
  69. package/dist/providers/linear.js.map +1 -0
  70. package/dist/providers/monday.d.ts +18 -0
  71. package/dist/providers/monday.d.ts.map +1 -0
  72. package/dist/providers/monday.js +185 -0
  73. package/dist/providers/monday.js.map +1 -0
  74. package/dist/providers/notion.d.ts +21 -0
  75. package/dist/providers/notion.d.ts.map +1 -0
  76. package/dist/providers/notion.js +182 -0
  77. package/dist/providers/notion.js.map +1 -0
  78. package/dist/types.d.ts +11 -0
  79. package/dist/types.d.ts.map +1 -1
  80. package/package.json +50 -50
@@ -1,37 +1,51 @@
1
- # AIDEV_ENV_EXTEND: path to a shared/global env file loaded as the base for this file.
2
- # Values in this file override the global one. Useful for sharing API keys across projects.
3
- # Can also be set as a shell export (e.g. in ~/.zshrc) instead.
4
- # AIDEV_ENV_EXTEND=~/.aidev.global
5
-
6
- # PROVIDER: clickup | jira
7
- PROVIDER=clickup
8
-
9
- # ── ClickUp (when PROVIDER=clickup) ──────────────────────────
10
- CLICKUP_API_KEY=
11
- CLICKUP_TEAM_ID=
12
- CLICKUP_TAG=
13
- CLICKUP_PENDING_STATUS=pending
14
- CLICKUP_IN_REVIEW_STATUS=review
15
-
16
- # ── Jira (when PROVIDER=jira) ─────────────────────────────────
17
- # JIRA_BASE_URL=https://mycompany.atlassian.net
18
- # JIRA_EMAIL=you@example.com
19
- # JIRA_API_TOKEN=
20
- # JIRA_PROJECT=PROJ
21
- # JIRA_LABEL=
22
- # JIRA_PENDING_STATUS=To Do
23
- # JIRA_IN_REVIEW_STATUS=In Review
24
-
25
- ASSIGNEE_TAG=
26
-
27
- # THINKING_TAG: tasks with this tag are analyzed and broken into sub-tasks before execution (optional)
28
- THINKING_TAG=
29
- GIT_REMOTE=origin
30
- GITHUB_BASE_BRANCH=main
31
- GITHUB_REPO=
32
-
33
- # Agents to use, in fallback order (comma-separated: claude, cursor, windsurf)
34
- AGENTS=claude,cursor
35
-
36
- # DEV_NOTES_MODE: smart (only ask when unclear) | always (ask before every task)
37
- DEV_NOTES_MODE=smart
1
+ # AIDEV_ENV_EXTEND: path to a shared/global env file loaded as the base for this file.
2
+ # Values in this file override the global one. Useful for sharing API keys across projects.
3
+ # Can also be set as a shell export (e.g. in ~/.zshrc) instead.
4
+ # AIDEV_ENV_EXTEND=~/.aidev.global
5
+
6
+ # PROVIDER: clickup | jira | linear | local | monday
7
+ PROVIDER=clickup
8
+
9
+ # ── ClickUp (when PROVIDER=clickup) ──────────────────────────
10
+ CLICKUP_API_KEY=
11
+ CLICKUP_TEAM_ID=
12
+ CLICKUP_TAG=
13
+ CLICKUP_PENDING_STATUS=pending
14
+ CLICKUP_IN_REVIEW_STATUS=review
15
+
16
+ # ── Jira (when PROVIDER=jira) ─────────────────────────────────
17
+ # JIRA_BASE_URL=https://mycompany.atlassian.net
18
+ # JIRA_EMAIL=you@example.com
19
+ # JIRA_API_TOKEN=
20
+ # JIRA_PROJECT=PROJ
21
+ # JIRA_LABEL=
22
+ # JIRA_PENDING_STATUS=To Do
23
+ # JIRA_IN_REVIEW_STATUS=In Review
24
+
25
+ # ── Linear (when PROVIDER=linear) ──────────────────────────────
26
+ # LINEAR_API_KEY= # Personal API key from Linear Settings → API
27
+ # LINEAR_TEAM_ID= # Team UUID from workspace
28
+ # LINEAR_LABEL=
29
+ # LINEAR_PENDING_STATUS=Backlog
30
+ # LINEAR_IN_REVIEW_STATUS=In Review
31
+
32
+ # ── Monday.com (when PROVIDER=monday) ──────────────────────────
33
+ # MONDAY_API_TOKEN=
34
+ # MONDAY_BOARD_ID=
35
+ # MONDAY_STATUS_COLUMN_ID=status
36
+ # MONDAY_GROUP_ID=
37
+ # Use CLICKUP_PENDING_STATUS / CLICKUP_IN_REVIEW_STATUS for status labels (e.g. Working on it, Done)
38
+
39
+ ASSIGNEE_TAG=
40
+
41
+ # THINKING_TAG: tasks with this tag are analyzed and broken into sub-tasks before execution (optional)
42
+ THINKING_TAG=
43
+ GIT_REMOTE=origin
44
+ GITHUB_BASE_BRANCH=main
45
+ GITHUB_REPO=
46
+
47
+ # Agents to use, in fallback order (comma-separated: claude, cursor, windsurf)
48
+ AGENTS=claude,cursor
49
+
50
+ # DEV_NOTES_MODE: smart (only ask when unclear) | always (ask before every task)
51
+ DEV_NOTES_MODE=smart
package/CONTRIBUTING.md CHANGED
@@ -1,78 +1,78 @@
1
- # Contributing to aidev
2
-
3
- Thank you for your interest in contributing!
4
-
5
- ## Getting Started
6
-
7
- 1. Fork the repository
8
- 2. Create a feature branch: `git checkout -b feature/my-feature`
9
- 3. Make your changes
10
- 4. Build and test: `npm install && npm run build`
11
- 5. Open a pull request
12
-
13
- ## Development Setup
14
-
15
- ```bash
16
- git clone https://github.com/qelos-io/aidev
17
- cd aidev
18
- npm install
19
- npm run dev -- init # uses tsx, no build needed
20
- npm run dev -- run --help
21
- ```
22
-
23
- ## Adding a New Provider
24
-
25
- 1. Create `src/providers/<name>.ts` implementing the `TaskProvider` interface:
26
-
27
- ```typescript
28
- import { TaskProvider } from './base';
29
- import { Task, Comment, Config } from '../types';
30
-
31
- export class MyProvider implements TaskProvider {
32
- constructor(config: Config) { ... }
33
- async fetchTasks(): Promise<Task[]> { ... }
34
- async postComment(taskId: string, text: string): Promise<void> { ... }
35
- async getComments(taskId: string): Promise<Comment[]> { ... }
36
- async updateStatus(taskId: string, status: string): Promise<void> { ... }
37
- }
38
- ```
39
-
40
- 2. Register it in `src/providers/index.ts`:
41
-
42
- ```typescript
43
- case 'myprovider':
44
- return new MyProvider(config);
45
- ```
46
-
47
- 3. Add any new config keys to `src/types.ts` (`Config` interface) and `src/config.ts`.
48
-
49
- 4. Document the new env vars in `.env.aidev.example` and `README.md`.
50
-
51
- ## Adding a New AI Runner
52
-
53
- 1. Create `src/ai/<name>.ts` implementing the `AIRunner` interface:
54
-
55
- ```typescript
56
- import { AIRunner, AIRunResult } from './base';
57
-
58
- export class MyRunner implements AIRunner {
59
- readonly name = 'myrunner';
60
- isAvailable(): boolean { ... }
61
- async run(prompt: string, notes?: string): Promise<AIRunResult> { ... }
62
- }
63
- ```
64
-
65
- 2. Register it in `src/ai/index.ts` and update the `AI_TOOL` logic.
66
-
67
- ## Code Style
68
-
69
- - TypeScript strict mode
70
- - No shell string concatenation for subprocess calls — always use array args with `spawnSync`
71
- - Native `fetch` only — no HTTP library dependencies
72
- - Keep dependencies minimal
73
-
74
- ## Pull Request Guidelines
75
-
76
- - One feature/fix per PR
77
- - Update README.md if you add new config vars or commands
78
- - Ensure `npm run build` passes before submitting
1
+ # Contributing to aidev
2
+
3
+ Thank you for your interest in contributing!
4
+
5
+ ## Getting Started
6
+
7
+ 1. Fork the repository
8
+ 2. Create a feature branch: `git checkout -b feature/my-feature`
9
+ 3. Make your changes
10
+ 4. Build and test: `npm install && npm run build`
11
+ 5. Open a pull request
12
+
13
+ ## Development Setup
14
+
15
+ ```bash
16
+ git clone https://github.com/qelos-io/aidev
17
+ cd aidev
18
+ npm install
19
+ npm run dev -- init # uses tsx, no build needed
20
+ npm run dev -- run --help
21
+ ```
22
+
23
+ ## Adding a New Provider
24
+
25
+ 1. Create `src/providers/<name>.ts` implementing the `TaskProvider` interface:
26
+
27
+ ```typescript
28
+ import { TaskProvider } from './base';
29
+ import { Task, Comment, Config } from '../types';
30
+
31
+ export class MyProvider implements TaskProvider {
32
+ constructor(config: Config) { ... }
33
+ async fetchTasks(): Promise<Task[]> { ... }
34
+ async postComment(taskId: string, text: string): Promise<void> { ... }
35
+ async getComments(taskId: string): Promise<Comment[]> { ... }
36
+ async updateStatus(taskId: string, status: string): Promise<void> { ... }
37
+ }
38
+ ```
39
+
40
+ 2. Register it in `src/providers/index.ts`:
41
+
42
+ ```typescript
43
+ case 'myprovider':
44
+ return new MyProvider(config);
45
+ ```
46
+
47
+ 3. Add any new config keys to `src/types.ts` (`Config` interface) and `src/config.ts`.
48
+
49
+ 4. Document the new env vars in `.env.aidev.example` and `README.md`.
50
+
51
+ ## Adding a New AI Runner
52
+
53
+ 1. Create `src/ai/<name>.ts` implementing the `AIRunner` interface:
54
+
55
+ ```typescript
56
+ import { AIRunner, AIRunResult } from './base';
57
+
58
+ export class MyRunner implements AIRunner {
59
+ readonly name = 'myrunner';
60
+ isAvailable(): boolean { ... }
61
+ async run(prompt: string, notes?: string): Promise<AIRunResult> { ... }
62
+ }
63
+ ```
64
+
65
+ 2. Register it in `src/ai/index.ts` and update the `AI_TOOL` logic.
66
+
67
+ ## Code Style
68
+
69
+ - TypeScript strict mode
70
+ - No shell string concatenation for subprocess calls — always use array args with `spawnSync`
71
+ - Native `fetch` only — no HTTP library dependencies
72
+ - Keep dependencies minimal
73
+
74
+ ## Pull Request Guidelines
75
+
76
+ - One feature/fix per PR
77
+ - Update README.md if you add new config vars or commands
78
+ - Ensure `npm run build` passes before submitting
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 aidev contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 aidev contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.