agentplane 0.1.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.
Files changed (61) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +19 -0
  3. package/assets/AGENTS.md +274 -0
  4. package/assets/agents/CODER.json +28 -0
  5. package/assets/agents/CREATOR.json +25 -0
  6. package/assets/agents/DOCS.json +25 -0
  7. package/assets/agents/INTEGRATOR.json +27 -0
  8. package/assets/agents/ORCHESTRATOR.json +31 -0
  9. package/assets/agents/PLANNER.json +28 -0
  10. package/assets/agents/REDMINE.json +26 -0
  11. package/assets/agents/REVIEWER.json +22 -0
  12. package/assets/agents/TESTER.json +27 -0
  13. package/assets/agents/UPDATER.json +23 -0
  14. package/assets/agents/UPGRADER.json +27 -0
  15. package/bin/agentplane.js +2 -0
  16. package/dist/agents-template.d.ts +10 -0
  17. package/dist/agents-template.d.ts.map +1 -0
  18. package/dist/agents-template.js +66 -0
  19. package/dist/bundled-recipes.d.ts +13 -0
  20. package/dist/bundled-recipes.d.ts.map +1 -0
  21. package/dist/bundled-recipes.js +4 -0
  22. package/dist/cli/fs-utils.d.ts +4 -0
  23. package/dist/cli/fs-utils.d.ts.map +1 -0
  24. package/dist/cli/fs-utils.js +28 -0
  25. package/dist/cli/prompts.d.ts +4 -0
  26. package/dist/cli/prompts.d.ts.map +1 -0
  27. package/dist/cli/prompts.js +31 -0
  28. package/dist/cli/recipes-bundled.d.ts +9 -0
  29. package/dist/cli/recipes-bundled.d.ts.map +1 -0
  30. package/dist/cli/recipes-bundled.js +33 -0
  31. package/dist/cli.d.ts +3 -0
  32. package/dist/cli.d.ts.map +1 -0
  33. package/dist/cli.js +5 -0
  34. package/dist/command-guide.d.ts +4 -0
  35. package/dist/command-guide.d.ts.map +1 -0
  36. package/dist/command-guide.js +244 -0
  37. package/dist/comment-format.d.ts +8 -0
  38. package/dist/comment-format.d.ts.map +1 -0
  39. package/dist/comment-format.js +80 -0
  40. package/dist/env.d.ts +3 -0
  41. package/dist/env.d.ts.map +1 -0
  42. package/dist/env.js +49 -0
  43. package/dist/errors.d.ts +16 -0
  44. package/dist/errors.d.ts.map +1 -0
  45. package/dist/errors.js +22 -0
  46. package/dist/help.d.ts +2 -0
  47. package/dist/help.d.ts.map +1 -0
  48. package/dist/help.js +124 -0
  49. package/dist/run-cli.d.ts +2 -0
  50. package/dist/run-cli.d.ts.map +1 -0
  51. package/dist/run-cli.js +8412 -0
  52. package/dist/run-cli.test-helpers.d.ts +44 -0
  53. package/dist/run-cli.test-helpers.d.ts.map +1 -0
  54. package/dist/run-cli.test-helpers.js +280 -0
  55. package/dist/task-backend.d.ts +175 -0
  56. package/dist/task-backend.d.ts.map +1 -0
  57. package/dist/task-backend.js +1235 -0
  58. package/dist/version.d.ts +2 -0
  59. package/dist/version.d.ts.map +1 -0
  60. package/dist/version.js +3 -0
  61. package/package.json +59 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GACjB,SAAS,GACT,cAAc,GACd,MAAM,GACN,OAAO,GACP,WAAW,GACX,WAAW,GACX,YAAY,CAAC;AAEjB,qBAAa,QAAS,SAAQ,KAAK;IACjC,SAAgB,QAAQ,EAAE,MAAM,CAAC;IACjC,SAAgB,IAAI,EAAE,SAAS,CAAC;IAChC,SAAgB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBAEtC,IAAI,EAAE;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,SAAS,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACnC;CAMF;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAc/E"}
package/dist/errors.js ADDED
@@ -0,0 +1,22 @@
1
+ export class CliError extends Error {
2
+ exitCode;
3
+ code;
4
+ context;
5
+ constructor(opts) {
6
+ super(opts.message);
7
+ this.exitCode = opts.exitCode;
8
+ this.code = opts.code;
9
+ this.context = opts.context;
10
+ }
11
+ }
12
+ export function formatJsonError(err, opts) {
13
+ return JSON.stringify({
14
+ error: {
15
+ code: err.code,
16
+ message: err.message,
17
+ context: err.context ?? undefined,
18
+ exit_code: err.exitCode,
19
+ hint: opts?.hint ?? undefined,
20
+ },
21
+ }, null, 2);
22
+ }
package/dist/help.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare function renderHelp(): string;
2
+ //# sourceMappingURL=help.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,IAAI,MAAM,CA2HnC"}
package/dist/help.js ADDED
@@ -0,0 +1,124 @@
1
+ export function renderHelp() {
2
+ return [
3
+ "agentplane (v1 prototype)",
4
+ "",
5
+ "Usage:",
6
+ " agentplane [--root <path>] [--json] <namespace> <command> [options]",
7
+ " agentplane [--root <path>] [--json] <command> [options]",
8
+ "",
9
+ "Core namespaces (implemented in this prototype): config, mode, task, ide, recipes, backend",
10
+ "",
11
+ "Flags:",
12
+ " --help, -h Show help",
13
+ " --version Show version",
14
+ " --root <path> Treat <path> as project root",
15
+ "",
16
+ "Quickstart commands:",
17
+ " agentplane quickstart",
18
+ "",
19
+ "Init commands:",
20
+ " agentplane init [--ide <codex|cursor|windsurf>] [--workflow <direct|branch_pr>] [--hooks <yes|no>] [--require-plan-approval <yes|no>] [--require-network-approval <yes|no>] [--recipes <list>] [--yes] [--force|--backup]",
21
+ "",
22
+ "Upgrade commands:",
23
+ " agentplane upgrade [--tag <tag>] [--dry-run] [--no-backup] [--source <repo-url>] [--bundle <path|url>] [--checksum <path|url>]",
24
+ "",
25
+ "Config commands:",
26
+ " agentplane config show",
27
+ " agentplane config set <key> <value>",
28
+ "",
29
+ "Mode commands:",
30
+ " agentplane mode get",
31
+ " agentplane mode set <direct|branch_pr>",
32
+ "",
33
+ "IDE commands:",
34
+ " agentplane ide sync",
35
+ "",
36
+ "Recipe commands:",
37
+ " agentplane recipes list [--full] [--tag <tag>]",
38
+ " agentplane recipes list-remote [--refresh] [--index <path|url>]",
39
+ " agentplane recipes info <id>",
40
+ " agentplane recipes explain <id>",
41
+ " agentplane recipes install --name <id> [--index <path|url>] [--refresh]",
42
+ " agentplane recipes install --path <path> | --url <url>",
43
+ " agentplane recipes remove <id>",
44
+ " agentplane recipes cache prune [--dry-run] [--all]",
45
+ " agentplane scenario list",
46
+ " agentplane scenario info <recipe:scenario>",
47
+ " agentplane scenario run <recipe:scenario>",
48
+ "",
49
+ "Backend commands:",
50
+ " agentplane backend sync <id> --direction <push|pull> [--conflict <diff|prefer-local|prefer-remote|fail>] [--yes] [--quiet]",
51
+ " agentplane sync [<id>] [--direction <push|pull>] [--conflict <diff|prefer-local|prefer-remote|fail>] [--yes] [--quiet]",
52
+ "",
53
+ "Branch commands:",
54
+ " agentplane branch base get",
55
+ " agentplane branch base set <name>",
56
+ " agentplane branch status [--branch <name>] [--base <name>]",
57
+ " agentplane branch remove [--branch <name>] [--worktree <path>] [--force] [--quiet]",
58
+ "",
59
+ "Work commands:",
60
+ " agentplane work start <task-id> --agent <id> --slug <slug> --worktree",
61
+ "",
62
+ "PR commands:",
63
+ " agentplane pr open <task-id> --author <id> [--branch <name>]",
64
+ " agentplane pr update <task-id>",
65
+ " agentplane pr check <task-id>",
66
+ " agentplane pr note <task-id> --author <id> --body <text>",
67
+ "",
68
+ "Integrate commands:",
69
+ " agentplane integrate <task-id> [--branch <name>] [--base <name>] [--merge-strategy squash|merge|rebase] [--run-verify] [--dry-run] [--quiet]",
70
+ "",
71
+ "Cleanup commands:",
72
+ " agentplane cleanup merged [--base <name>] [--yes] [--archive] [--quiet]",
73
+ "",
74
+ "Guard commands:",
75
+ " agentplane guard clean [--quiet]",
76
+ " agentplane guard suggest-allow [--format lines|args]",
77
+ " agentplane guard commit <task-id> -m <message> --allow <path> [--allow <path>...] [--auto-allow] [--allow-tasks] [--require-clean] [--quiet]",
78
+ "",
79
+ "Commit commands:",
80
+ " agentplane commit <task-id> -m <message> --allow <path> [--allow <path>...]",
81
+ " agentplane commit <task-id> -m <message> --auto-allow",
82
+ "",
83
+ "Hooks commands:",
84
+ " agentplane hooks install [--quiet]",
85
+ " agentplane hooks uninstall [--quiet]",
86
+ "",
87
+ "Support commands:",
88
+ " agentplane ready <task-id>",
89
+ " agentplane role <role>",
90
+ " agentplane agents",
91
+ "",
92
+ "Task commands:",
93
+ " agentplane task list",
94
+ " agentplane task next",
95
+ " agentplane task search <query>",
96
+ " agentplane task show <task-id>",
97
+ " agentplane task new --title <text> --description <text> --priority <low|normal|med|high> --owner <id> --tag <tag> [--tag <tag>...]",
98
+ " agentplane task add <task-id> [<task-id>...] --title <text> --description <text> --priority <low|normal|med|high> --owner <id> --tag <tag> [--tag <tag>...]",
99
+ " agentplane task update <task-id> [--title <text>] [--description <text>] [--priority <low|normal|med|high>] [--owner <id>]",
100
+ " agentplane task scrub --find <text> [--replace <text>] [--dry-run]",
101
+ " agentplane task scaffold <task-id> [--title <text>] [--overwrite] [--force]",
102
+ " agentplane task doc set <task-id> --section <name> (--text <text> | --file <path>)",
103
+ " agentplane task doc show <task-id> [--section <name>]",
104
+ " agentplane task comment <task-id> --author <id> --body <text>",
105
+ " agentplane task set-status <task-id> <status>",
106
+ " agentplane task export",
107
+ " agentplane task lint",
108
+ " agentplane task normalize",
109
+ " agentplane task migrate [--source <path>]",
110
+ "",
111
+ "Start commands:",
112
+ " agentplane start <task-id> --author <id> --body <text> [--commit-from-comment] [--force]",
113
+ "",
114
+ "Block commands:",
115
+ " agentplane block <task-id> --author <id> --body <text> [--commit-from-comment] [--force]",
116
+ "",
117
+ "Verify commands:",
118
+ " agentplane verify <task-id> [--skip-if-unchanged] [--cwd <path>] [--log <path>] [--require]",
119
+ "",
120
+ "Finish commands:",
121
+ " agentplane finish <task-id> [<task-id>...] --author <id> --body <text> [--commit-from-comment] [--status-commit]",
122
+ "",
123
+ ].join("\n");
124
+ }
@@ -0,0 +1,2 @@
1
+ export declare function runCli(argv: string[]): Promise<number>;
2
+ //# sourceMappingURL=run-cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-cli.d.ts","sourceRoot":"","sources":["../src/run-cli.ts"],"names":[],"mappings":"AAqrPA,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAunD5D"}