@buffcore/cli 0.8.40 → 0.8.41
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 +11 -0
- package/dist/commands/create-steps.en.js +1 -1
- package/dist/commands/create-steps.js +1 -1
- package/dist/commands/prototype/snapshot-themes.js +3 -1
- package/dist/commands/ui/autopilot-records.d.ts +3 -0
- package/dist/commands/ui/chat/allow-folder-route.d.ts +9 -0
- package/dist/commands/ui/chat/allow-folder-route.js +56 -0
- package/dist/commands/ui/chat/allow-folder.d.ts +18 -0
- package/dist/commands/ui/chat/allow-folder.js +130 -0
- package/dist/commands/ui/chat/ask-person.d.ts +17 -0
- package/dist/commands/ui/chat/ask-person.en.d.ts +4 -0
- package/dist/commands/ui/chat/ask-person.en.js +4 -0
- package/dist/commands/ui/chat/ask-person.es.d.ts +4 -0
- package/dist/commands/ui/chat/ask-person.es.js +4 -0
- package/dist/commands/ui/chat/ask-person.js +60 -0
- package/dist/commands/ui/chat/recorded-turn.js +2 -0
- package/dist/commands/ui/chat/routes.js +2 -0
- package/dist/commands/ui/chat/store.d.ts +2 -0
- package/dist/commands/ui/chat/store.js +14 -1
- package/dist/commands/ui/chat/stream.en.d.ts +11 -0
- package/dist/commands/ui/chat/stream.en.js +12 -1
- package/dist/commands/ui/chat/stream.es.d.ts +11 -0
- package/dist/commands/ui/chat/stream.es.js +12 -1
- package/dist/commands/ui/chat/turn-reserve.js +2 -0
- package/dist/commands/ui/chat/turn-selection.d.ts +3 -0
- package/dist/commands/ui/chat/turn-selection.js +9 -3
- package/dist/commands/ui/studio-state.d.ts +1 -1
- package/dist/ui/page.js +93 -93
- package/docs/WORKBENCH.md +14 -4
- package/package.json +11 -11
- package/skills/ape-design-system/SKILL.md +14 -3
- package/skills/ape-plan-change/SKILL.md +2 -2
- package/templates/product/README.md +1 -1
package/docs/WORKBENCH.md
CHANGED
|
@@ -8,7 +8,7 @@ The page title, terminal help and startup address call it the studio (estudio in
|
|
|
8
8
|
|
|
9
9
|
The studio has four levels of how much the agent does before it asks (`plan/agents.md`; the Level chooser). **You drive** proposes each step and waits for you. **Review** completes one step, then asks for your approval. **Lead** drafts only when you ask. **Autopilot** lets the agent go on by itself: at the end of a turn it takes the loop's choices, saves the step, approves where the product's rule lets an agent, and merges a finished change once its checks pass. It never starts the next build by itself, and a release, deploy or money action always waits for a person.
|
|
10
10
|
|
|
11
|
-
Before the first plan, the Plan empty state, kickoff and product README explain how to merge `{"permissions":{"additionalDirectories":["../<folder>"]}}` for one sibling notes folder into the git-ignored `.claude/settings.local.json` by hand, allowing Claude Code to read and change its files; the
|
|
11
|
+
Before the first plan, the Plan empty state, kickoff and product README explain how to merge `{"permissions":{"additionalDirectories":["../<folder>"]}}` for one sibling notes folder into the git-ignored `.claude/settings.local.json` by hand, allowing Claude Code to read and change its files; after a refused read the agent panel can also add it with one click (below).
|
|
12
12
|
|
|
13
13
|
`--lang en` or `--lang es` chooses the local studio's language and its terminal
|
|
14
14
|
messages. Without it, the studio follows the browser's language; terminal messages
|
|
@@ -347,9 +347,19 @@ reads fold together, paths are relative to the product, shell calls show their c
|
|
|
347
347
|
refusals carry a lock. Each message keeps its author. The panel follows new lines until the
|
|
348
348
|
person scrolls up, and preserves their own line breaks. The turn ends with elapsed time from
|
|
349
349
|
the studio's clock and its refused-call count, without tokens or money.
|
|
350
|
-
Only a refused Claude Code read outside the product names its absolute folder
|
|
351
|
-
|
|
352
|
-
|
|
350
|
+
Only a refused Claude Code read outside the product names its absolute folder, as a card with
|
|
351
|
+
"Allow this folder" and "Not now". Allow posts `POST /api/chats/:id/allow-folder` with only the
|
|
352
|
+
notice's place in the chat: the server reads the folder from that recorded notice, refuses one
|
|
353
|
+
that is not absolute, missing, a file, a whole disk, the home folder or one holding it, a link, or
|
|
354
|
+
inside the product, then adds it to `permissions.additionalDirectories` in the product's
|
|
355
|
+
`.claude/settings.local.json` (made if missing, other settings kept, never twice, written whole),
|
|
356
|
+
marks the notice `allowed` and records who allowed it as a chat line. The route takes the page's
|
|
357
|
+
token or the host's sign-in, its Origin and the `settings` right (without it the card keeps the
|
|
358
|
+
written steps); no MCP tool or agent command reaches it. The panel then sends the person's last
|
|
359
|
+
message again, as Try again does. "Not now" is "Continue without it". Linked BuffCore reads need no
|
|
360
|
+
notice. A refused `ape enable|disable <platform>` (matched on the recorded command) gets a
|
|
361
|
+
platforms card instead: Web (always on), iOS and Android switches from the studio's facts and
|
|
362
|
+
"Change in Setup", which opens Setup's Where it runs with each change's sheet; Setup still saves. Otherwise the turn's last refused call, Codex's
|
|
353
363
|
included, gets a notice below the transcript, until the person answers (earlier refusals in the
|
|
354
364
|
same turn only count in the turn's end line). It shows the refused call and its reason
|
|
355
365
|
from the transcript and offers two ordinary planning-chat messages sent as the person: "Ask the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buffcore/cli",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.41",
|
|
4
4
|
"description": "The `ape` command: create, dev, migrate, seed, prototype, deploy and a local MCP server for coding agents.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "BuffApe",
|
|
@@ -45,20 +45,20 @@
|
|
|
45
45
|
"playwright-core": "1.63.0",
|
|
46
46
|
"yaml": "2.9.1",
|
|
47
47
|
"zod": "4.6.5",
|
|
48
|
-
"@buffcore/
|
|
49
|
-
"@buffcore/
|
|
50
|
-
"@buffcore/
|
|
51
|
-
"@buffcore/
|
|
52
|
-
"@buffcore/
|
|
53
|
-
"@buffcore/
|
|
54
|
-
"@buffcore/
|
|
55
|
-
"@buffcore/
|
|
56
|
-
"@buffcore/modules": "0.8.
|
|
48
|
+
"@buffcore/contracts": "0.8.41",
|
|
49
|
+
"@buffcore/i18n": "0.8.41",
|
|
50
|
+
"@buffcore/db": "0.8.41",
|
|
51
|
+
"@buffcore/build-agent": "0.8.41",
|
|
52
|
+
"@buffcore/server": "0.8.41",
|
|
53
|
+
"@buffcore/storage": "0.8.41",
|
|
54
|
+
"@buffcore/tokens": "0.8.41",
|
|
55
|
+
"@buffcore/config": "0.8.41",
|
|
56
|
+
"@buffcore/modules": "0.8.41"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"marked": "18.1.3",
|
|
60
60
|
"tsx": "4.23.15",
|
|
61
|
-
"@buffcore/admin-shell": "0.8.
|
|
61
|
+
"@buffcore/admin-shell": "0.8.41"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": "node ../../scripts/build-package.mjs && node scripts/bundle.mjs",
|
|
@@ -7,7 +7,7 @@ description: "Keep a product's design system in design/: its written contract (D
|
|
|
7
7
|
|
|
8
8
|
A product's look and words live in one folder, `design/`, at its root (THEMING_AND_UI.md, "The design system"; PROCESS.md, stage 3). Screens draw only with it, so a change of look is a change there, seen in every scene. In BuffCore's repository, the playground's `apps/playground/design/` is the example.
|
|
9
9
|
|
|
10
|
-
**Choosing a look with a person
|
|
10
|
+
**Choosing a look with a person happens in the studio's Brand step** (`ape ui`). Without the studio, you set the design system up by hand, as below; the format and the checks are the same.
|
|
11
11
|
|
|
12
12
|
## The format
|
|
13
13
|
|
|
@@ -15,15 +15,26 @@ A product's look and words live in one folder, `design/`, at its root (THEMING_A
|
|
|
15
15
|
|---|---|
|
|
16
16
|
| `design/DESIGN.md` | The contract: direction; **voice, tone and character**; visual theme; color roles; typography; components; layout and density; motion; depth; do's and don'ts; the agent guide |
|
|
17
17
|
| `design/manifest.json` | Its identity and provenance: `schemaVersion` (`buffcore-design-system/v1`), `id` (the product's name), `name`, `source`, and the declared `DESIGN.md` and `theme.ts` |
|
|
18
|
-
| `design/theme.ts` | The product's `theme`: a starter theme (`themes.neutral`) or one made with `extendTheme`. The app, the console and the prototype take it from here |
|
|
18
|
+
| `design/theme.ts` | The product's `theme`: a starter theme (`themes.clear`, `themes.warm` or `themes.bold`, the Brand step's three; `themes.neutral` and `themes.soft` stay) or one made with `extendTheme`. The app, the console and the prototype take it from here |
|
|
19
19
|
| `design/components/` | The product's own components, one per file, named as the file (`Card.tsx` exports `Card`), built from BuffCore's and reading only tokens |
|
|
20
20
|
| `design/showcase.ts` | `showcase`: one scene per component, its view (`<Name>Showcase`) showing every state side by side; `prototype/scenes.ts` adds them to its scenes |
|
|
21
21
|
|
|
22
|
+
## Reference study
|
|
23
|
+
|
|
24
|
+
Before choosing a direction, study real products. If the person already gave a brand or a study (a folder or file they point to), read that instead and skip the capture.
|
|
25
|
+
|
|
26
|
+
1. **Collect pictures.** About 10 to 25 products: the ones the product's buyers already use, and modern products they admire. Take each at a computer width (1440) and a phone width (390), plus one inner page.
|
|
27
|
+
2. **Capture politely.** Read each site's `robots.txt` first and skip any page it closes. Skip any page behind a bot check or a login; never work around it. Hide cookie banners with CSS rather than clicking them. Note every skip.
|
|
28
|
+
3. **Keep the pictures private.** They stay out of the repository, in a local folder that git ignores, and are never published.
|
|
29
|
+
4. **Write `design/study.md`** from the pictures: what buyers expect (the patterns that repeat), what they admire, what looks dated, and the gap this product can own.
|
|
30
|
+
|
|
31
|
+
Learn patterns; copy no brand. No logo, name, color or layout is lifted from a single product.
|
|
32
|
+
|
|
22
33
|
## Choose a direction
|
|
23
34
|
|
|
24
35
|
Five original starting directions are in `references/directions/`: **Clear and calm** (tools and dashboards), **Warm and human** (people and services), **Technical and precise** (developers and operators), **Bold and playful** (creators and consumers), **Editorial and considered** (writing and taste). Each is a short `DESIGN.md` with a voice and a starting palette.
|
|
25
36
|
|
|
26
|
-
1. Read the brief
|
|
37
|
+
1. Read the brief, the journeys and `design/study.md`. With the person, choose the direction that fits the audience, the jobs and the study, or adjust one, or bring a brand.
|
|
27
38
|
2. Put the chosen direction into `design/DESIGN.md`, in the product's own words; put its values into `design/theme.ts` (the brand ramp, fonts, radius) and add the product's details. `manifest.json` names the product.
|
|
28
39
|
3. Run `pnpm ape design check`; then the snapshot; then `ape-critique` when the look changes.
|
|
29
40
|
|
|
@@ -7,7 +7,7 @@ description: "Plan a product change by change from the brief, journeys and app s
|
|
|
7
7
|
|
|
8
8
|
A product is built change by change. The plan lives in the repository: `plan/brief.md` (the idea and the jobs), `plan/journeys.md` (the paths and states), `plan/structure.md` (the sections), `plan/roadmap.md` and one file per change in `plan/changes/`. Status is never written in them: it follows from git and the checks.
|
|
9
9
|
|
|
10
|
-
Before the first plan, if idea or journey notes are in one sibling folder, ask the person to replace `../<folder>` in `{"permissions":{"additionalDirectories":["../<folder>"]}}` with that folder and merge it into the git-ignored `.claude/settings.local.json` themselves, keeping existing settings. This lets Claude Code read and change files in that folder.
|
|
10
|
+
Before the first plan, if idea or journey notes are in one sibling folder, ask the person to replace `../<folder>` in `{"permissions":{"additionalDirectories":["../<folder>"]}}` with that folder and merge it into the git-ignored `.claude/settings.local.json` themselves, keeping existing settings. This lets Claude Code read and change files in that folder. Or, after a refused read, the person presses Allow this folder in the agent panel.
|
|
11
11
|
|
|
12
12
|
## Read-back, before the plan and journeys
|
|
13
13
|
|
|
@@ -95,7 +95,7 @@ Then the goal, the scope, the screens, what the person using it will ask and the
|
|
|
95
95
|
|
|
96
96
|
## Using it
|
|
97
97
|
|
|
98
|
-
In a studio planning or loop turn, run only `pnpm ape change` and `pnpm ape change new`: neither loads the product's code. `pnpm ape change` reports each change file's header problems. Read existing modules, screens and tables from the product's files with read tools; `pnpm ape manifest` and `pnpm ape change C-012` load product code and are unavailable in these turns. The checks in `doneWhen` run later, in a build turn or by the person.
|
|
98
|
+
In a studio planning or loop turn, run only `pnpm ape change` and `pnpm ape change new`: neither loads the product's code. `pnpm ape change` reports each change file's header problems. Read existing modules, screens and tables from the product's files with read tools; `pnpm ape manifest` and `pnpm ape change C-012` load product code and are unavailable in these turns. The checks in `doneWhen` run later, in a build turn or by the person. When a studio turn needs the person's decision, ask one short question on the turn's ask line (its instructions give the exact form), then stop: the studio shows the question on the step's page and the person answers in the chat.
|
|
99
99
|
|
|
100
100
|
- `pnpm ape change` lists the changes and reports any malformed file with the file and the field.
|
|
101
101
|
- Outside studio planning, `pnpm ape change C-012` prints the change, its branch and what it touches: each module, screen and table found in `pnpm ape manifest` (with its file), or new.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A BuffCore product. Its rules and plan are in [AGENTS.md](AGENTS.md), and the skill for each kind of job is in `.claude/skills/` (start with `ape-plan-change`).
|
|
4
4
|
|
|
5
|
-
Before the first plan, if idea or journey notes are in one sibling folder, replace `../<folder>` in `{"permissions":{"additionalDirectories":["../<folder>"]}}` with that folder and merge it into the git-ignored `.claude/settings.local.json` yourself, keeping existing settings. This lets Claude Code read and change files in that folder.
|
|
5
|
+
Before the first plan, if idea or journey notes are in one sibling folder, replace `../<folder>` in `{"permissions":{"additionalDirectories":["../<folder>"]}}` with that folder and merge it into the git-ignored `.claude/settings.local.json` yourself, keeping existing settings. This lets Claude Code read and change files in that folder. Or wait: after a refused read, the agent panel offers Allow this folder.
|
|
6
6
|
|
|
7
7
|
## Run it
|
|
8
8
|
|