agentplane 0.1.1 → 0.1.3

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 CHANGED
@@ -1,6 +1,20 @@
1
1
  # agentplane
2
2
 
3
- AgentPlane is an offline-first CLI for managing agent workflows (tasks, guardrails, recipes).
3
+ [![npm](https://img.shields.io/npm/v/agentplane.svg)](https://www.npmjs.com/package/agentplane)
4
+ [![Downloads](https://img.shields.io/npm/dm/agentplane.svg)](https://www.npmjs.com/package/agentplane)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/basilisk-labs/agentplane/blob/main/LICENSE)
6
+ [![Node.js 20+](https://img.shields.io/badge/Node.js-20%2B-3c873a.svg)](https://github.com/basilisk-labs/agentplane/blob/main/docs/user/prerequisites.mdx)
7
+
8
+ Agent Plane is an offline-first CLI for running policy-driven agent workflows inside real repositories.
9
+ It turns "AI magic" into a predictable process with approvals, role boundaries, and audit-friendly artifacts.
10
+
11
+ ## Features
12
+
13
+ - Policy-first execution with explicit approvals and guardrails.
14
+ - Role-based workflows for teams: ORCHESTRATOR, PLANNER, CREATOR, INTEGRATOR, etc.
15
+ - Two workflow modes: `direct` (single checkout) and `branch_pr` (worktrees + integration).
16
+ - Task tracking, verification, and exports baked in.
17
+ - Recipes for repeatable setup and automation.
4
18
 
5
19
  ## Install
6
20
 
@@ -8,12 +22,71 @@ AgentPlane is an offline-first CLI for managing agent workflows (tasks, guardrai
8
22
  npm install -g agentplane
9
23
  ```
10
24
 
25
+ Or run without installing:
26
+
27
+ ```bash
28
+ npx agentplane --help
29
+ ```
30
+
11
31
  ## Requirements
12
32
 
13
33
  - Node.js >= 20
14
34
 
15
- ## CLI
35
+ ## Quickstart
36
+
37
+ Initialize a repository:
38
+
39
+ ```bash
40
+ npx agentplane init
41
+ ```
42
+
43
+ See the built-in quickstart guide:
44
+
45
+ ```bash
46
+ npx agentplane quickstart
47
+ ```
48
+
49
+ Switch workflow mode if you need a structured team flow:
50
+
51
+ ```bash
52
+ npx agentplane config set workflow_mode branch_pr
53
+ ```
54
+
55
+ ## Common Commands
16
56
 
17
57
  ```bash
18
58
  agentplane --help
59
+ agentplane quickstart
60
+ agentplane config show
61
+ agentplane task list
62
+ agentplane task new --title "..." --description "..." --priority med --owner ORCHESTRATOR --tag docs
63
+ agentplane verify <task-id>
64
+ agentplane finish <task-id>
65
+ agentplane recipes list
19
66
  ```
67
+
68
+ ## Docs and Guides
69
+
70
+ - Documentation index: https://github.com/basilisk-labs/agentplane/tree/main/docs
71
+ - Workflow overview: https://github.com/basilisk-labs/agentplane/blob/main/docs/user/workflow.mdx
72
+ - CLI commands: https://github.com/basilisk-labs/agentplane/blob/main/docs/user/commands.mdx
73
+ - Project layout: https://github.com/basilisk-labs/agentplane/blob/main/docs/developer/project-layout.mdx
74
+ - Recipes: https://github.com/basilisk-labs/agentplane/tree/main/agentplane-recipes
75
+
76
+ ## How it works
77
+
78
+ Agent Plane expects a repository policy file (`AGENTS.md`) plus a project config (`.agentplane/config.json`).
79
+ Together, they define role boundaries, approval gates, and the execution pipeline:
80
+
81
+ ```text
82
+ Preflight -> Plan -> Approval -> Tasks -> Verify -> Finish -> Export
83
+ ```
84
+
85
+ ## Support
86
+
87
+ - Issues: https://github.com/basilisk-labs/agentplane/issues
88
+ - Contributing: https://github.com/basilisk-labs/agentplane/blob/main/CONTRIBUTING.md
89
+
90
+ ## License
91
+
92
+ MIT
package/assets/AGENTS.md CHANGED
@@ -163,6 +163,7 @@ Every task must have these sections in its README or task doc:
163
163
 
164
164
  ## Updating task docs
165
165
 
166
+ - Workflow/task artifacts (task READMEs, PR artifacts, task exports) must be updated via `agentplane` commands, not manual edits.
166
167
  - Task README updates must be done via `agentplane task doc set ...`
167
168
  - Manual edits to `.agentplane/tasks/<task-id>/README.md` are prohibited.
168
169
 
@@ -170,6 +171,8 @@ Every task must have these sections in its README or task doc:
170
171
 
171
172
  # COMMIT WORKFLOW
172
173
 
174
+ - Commits and pushes must go through `agentplane` commands (no direct `git commit`/`git push`). If a push is needed but no `agentplane` command exists, ask for guidance.
175
+
173
176
  ## Commit message semantics (canonical)
174
177
 
175
178
  There are two supported modes:
@@ -8,7 +8,7 @@ export async function promptChoice(prompt, choices, defaultValue) {
8
8
  if (!trimmed)
9
9
  return defaultValue;
10
10
  if (!choices.includes(trimmed)) {
11
- process.stdout.write(`Invalid choice, using default ${defaultValue}\n`);
11
+ process.stdout.write(`Invalid choice; using default ${defaultValue}\n`);
12
12
  return defaultValue;
13
13
  }
14
14
  return trimmed;
@@ -10,9 +10,9 @@ export function listBundledRecipes() {
10
10
  export function renderBundledRecipesHint() {
11
11
  const entries = listBundledRecipes();
12
12
  if (entries.length === 0) {
13
- return "Available bundled recipes: none";
13
+ return "Bundled recipes: none";
14
14
  }
15
- return `Available bundled recipes: ${entries.map((entry) => entry.id).join(", ")}`;
15
+ return `Bundled recipes: ${entries.map((entry) => entry.id).join(", ")}`;
16
16
  }
17
17
  export function validateBundledRecipesSelection(recipes) {
18
18
  if (recipes.length === 0)
@@ -27,7 +27,7 @@ export function validateBundledRecipesSelection(recipes) {
27
27
  throw new CliError({
28
28
  exitCode: 2,
29
29
  code: "E_USAGE",
30
- message: `Unknown recipes: ${missing.join(", ")}. ${renderBundledRecipesHint()}`,
30
+ message: `Unknown recipe id(s): ${missing.join(", ")}. ${renderBundledRecipesHint()}`,
31
31
  });
32
32
  }
33
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"command-guide.d.ts","sourceRoot":"","sources":["../src/command-guide.ts"],"names":[],"mappings":"AA4KA,wBAAgB,SAAS,IAAI,MAAM,EAAE,CAEpC;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAOzD;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CA2EzC"}
1
+ {"version":3,"file":"command-guide.d.ts","sourceRoot":"","sources":["../src/command-guide.ts"],"names":[],"mappings":"AA4KA,wBAAgB,SAAS,IAAI,MAAM,EAAE,CAEpC;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAOzD;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CA4EzC"}
@@ -228,6 +228,7 @@ export function renderQuickstart() {
228
228
  "- `--json`: emit JSON-formatted errors",
229
229
  "- `--help` / `-h`: show help",
230
230
  "- `--version`: show version",
231
+ "- `--no-update-check`: skip checking npm for a newer CLI version",
231
232
  "",
232
233
  "Notes:",
233
234
  "- `.env` at the repo root is loaded automatically (without overwriting existing environment variables).",
@@ -1 +1 @@
1
- {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,IAAI,MAAM,CA2HnC"}
1
+ {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../src/help.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,IAAI,MAAM,CA4HnC"}
package/dist/help.js CHANGED
@@ -3,15 +3,16 @@ export function renderHelp() {
3
3
  "agentplane (v1 prototype)",
4
4
  "",
5
5
  "Usage:",
6
- " agentplane [--root <path>] [--json] <namespace> <command> [options]",
7
- " agentplane [--root <path>] [--json] <command> [options]",
6
+ " agentplane [--root <path>] [--json] [--no-update-check] <namespace> <command> [options]",
7
+ " agentplane [--root <path>] [--json] [--no-update-check] <command> [options]",
8
8
  "",
9
9
  "Core namespaces (implemented in this prototype): config, mode, task, ide, recipes, backend",
10
10
  "",
11
11
  "Flags:",
12
- " --help, -h Show help",
13
- " --version Show version",
14
- " --root <path> Treat <path> as project root",
12
+ " --help, -h Show help",
13
+ " --version Show version",
14
+ " --root <path> Treat <path> as project root",
15
+ " --no-update-check Skip checking npm for a newer CLI version",
15
16
  "",
16
17
  "Quickstart commands:",
17
18
  " agentplane quickstart",
@@ -1 +1 @@
1
- {"version":3,"file":"run-cli.d.ts","sourceRoot":"","sources":["../src/run-cli.ts"],"names":[],"mappings":"AA+sPA,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAunD5D"}
1
+ {"version":3,"file":"run-cli.d.ts","sourceRoot":"","sources":["../src/run-cli.ts"],"names":[],"mappings":"AAo8QA,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CA4/D5D"}