@autonoma-ai/planner 0.1.21 → 0.1.22-canary.422bbdc

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
@@ -16,7 +16,8 @@ Commands:
16
16
 
17
17
  ```bash
18
18
  autonoma-planner [run] [--project <path>] [--frontend <path>] [--backends <path,path>] \
19
- [--model <id>] [--step <name>] [--resume] [--non-interactive]
19
+ [--model <id>] [--step <name>] [--resume] [--non-interactive] \
20
+ [--agent <name>] [--permission-mode <default|acceptEdits|bypassPermissions>]
20
21
  autonoma-planner status [--project <path>]
21
22
  autonoma-planner upload [--project <path>]
22
23
  ```
@@ -24,6 +25,27 @@ autonoma-planner upload [--project <path>]
24
25
  `run` is the default and may be omitted. A run can take an hour or more; progress is saved, so you
25
26
  can stop and `--resume` later.
26
27
 
28
+ ### The dashboard (TUI)
29
+
30
+ On an interactive terminal the pipeline phase runs inside a live Ink dashboard: a horizontal
31
+ pipeline strip across the top (step status, spinner on the running step, sub-progress), the
32
+ file list on the left (each generated file with its status), and a wide document viewer showing
33
+ the file currently being written, live from disk - known documents (frontmatter, pages.json)
34
+ render as readable cards and tables instead of raw source. An IDE-style ACTIVITY panel at the
35
+ bottom streams the agent's tool calls. Navigate with arrows or `h/j/k/l` (left/right switch
36
+ between the file list and the viewer - right from the list opens the selected file; up/down
37
+ move the cursor or scroll), `f` re-follows the newest file, `g`/`G` jump top/bottom, `?` opens
38
+ a help modal explaining the current step with docs links, and Ctrl+C twice exits with progress
39
+ saved. Questions (resume?, scope selection, step failures) render as an ACTION REQUIRED modal
40
+ inside the dashboard; the terminal is handed over only for the
41
+ SDK-integration handoff below, and the dashboard comes back when the agent exits.
42
+
43
+ Piped output, CI, and `--non-interactive` keep the plain line-based output. See
44
+ `docs/ui-design-brief.md` for the design rationale and `docs/tui-plan.md` for the build plan;
45
+ `pnpm ui:gallery` steps through every dashboard state with fixture data (Tab / Shift+Tab).
46
+ Pass a past run's output directory - `pnpm ui:gallery ~/.autonoma/<slug>` - to add a scene
47
+ backed by real files, so navigation and scrolling can be tested on real documents.
48
+
27
49
  `upload` re-uploads everything already generated in `~/.autonoma/<app>/` - the recipe and the
28
50
  artifacts (test cases, `AUTONOMA.md`, `scenarios.md`, `entity-audit.md`) - without re-running the
29
51
  whole planner. Useful when an upload failed. Both the recipe and artifact endpoints are idempotent,
@@ -44,6 +66,29 @@ from a menu. To scope non-interactively, pass:
44
66
 
45
67
  For a single-app repo the mapper resolves the scope on its own and no flags are needed.
46
68
 
69
+ ## SDK integration handoff (test-data step)
70
+
71
+ The "Set up test data" step wires the Autonoma SDK "environment factory" into your app so the
72
+ platform can seed and tear down realistic test data through your app's own creation code. Instead
73
+ of a copy-paste guide, the CLI hands the whole integration to your **locally-installed Claude** in
74
+ one interactive, autonomous session - like `git commit` with no `-m` opening your editor. You watch
75
+ it install the SDK, build the endpoint, write the factories, **generate the test-data recipe**, and
76
+ validate each entity itself: for every entity it runs `up`, checks your database for the new rows,
77
+ runs `down`, and checks they're gone. It drives the endpoint through the CLI's own signed client
78
+ (`autonoma-planner sdk discover|up|down`), so its checks use the exact request signing the platform
79
+ uses. When it reports the session complete, the CLI uploads the recipe it produced and continues to
80
+ test generation.
81
+
82
+ - `--agent <name>` - preselect the agent to hand off to (currently `claude`). Omit to auto-detect.
83
+ - `--permission-mode <mode>` - how much autonomy the agent runs with: `default` (approve each
84
+ command), `acceptEdits` (auto-edit files, approve commands), or `bypassPermissions` (fully
85
+ autonomous, the default). Both the agent and the mode you pick are persisted for `--resume`.
86
+
87
+ If no supported agent is installed (or you decline the handoff), the CLI writes the full
88
+ integration instructions to `~/.autonoma/<app>/integration-prompt.md` and pauses so you can
89
+ implement them in whatever assistant you have, then `--resume` to continue. `--non-interactive`
90
+ runs are unchanged: they emit a data-only recipe with no implementation or validation.
91
+
47
92
  ## Output
48
93
 
49
94
  Artifacts are written to `~/.autonoma/<project-slug>/`:
@@ -54,7 +99,8 @@ Artifacts are written to `~/.autonoma/<project-slug>/`:
54
99
  ├── AUTONOMA.md # knowledge base
55
100
  ├── scenarios.md # test-data scenario descriptions
56
101
  ├── entity-audit.md # database model audit
57
- ├── recipe.json # scenario recipes (SDK factories)
102
+ ├── recipe.json # scenario recipes (SDK factories); the agent generates + validates it
103
+ ├── integration-prompt.md # rendered SDK-integration instructions (drives the agent + manual fallback)
58
104
  └── qa-tests/ # generated test cases (markdown)
59
105
  ```
60
106