@buffcore/cli 0.8.44 → 0.8.45

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/docs/PROTOTYPE.md CHANGED
@@ -52,8 +52,9 @@ screens to it. A product's home is `prototype/home.tsx`, at `/prototype` on its
52
52
  drawer below). The viewer's App view embeds the same home at `?embed=1` (no panel, no device
53
53
  frame), and the workbench's Prototype section opens it.
54
54
 
55
- The studio previews the live draft. Try a journey lists executable journeys from
56
- `prototype/journeys.ts` and uses their translated `role` or a matching role from the plan.
55
+ The studio previews the live draft. Its Journeys list the plan's journeys and plays those the app
56
+ lists in `prototype/journeys.ts` (matched by key, or else by title), with the app's others under
57
+ their translated `role`.
57
58
  `?journey=<key>` starts at the first step. Studio previews replay the requested step from the
58
59
  journey's sample seed, using the same store and reducer as the standalone player. An unknown or
59
60
  empty journey leaves the home usable. Data shows the named seeds for `full`, `empty`, `loading`
package/docs/WORKBENCH.md CHANGED
@@ -99,7 +99,7 @@ build time, or from source when running in the checkout.
99
99
  and previews return HTTP 200 with `ok: false`, so the studio's action transport keeps their detail.
100
100
  The real index follows the commit before post-commit runs, then is checked again for the reply, so new files in the temporary index no longer appear as staged deletions during slow post-commit checks. When a reply carries a commit that is not a plain save (a repository check left working files changed, or the commit could not be compared with them), the real index still moves to that commit by one rule: a path with nothing staged, or staged exactly as reviewed, follows the commit; any other staging is the person's own work and stays (also staging made while a check ran), in a product in a subfolder too, so the file list shows only what is really left; if Git cannot move the index, the detail names the `git reset HEAD --` to run, in the product's folder, and says so when it could not read the index. The page says "A commit exists, but it is not confirmed as saved"; Reload file list re-reads it, an empty list settles Brief, Plan and Journeys once their own files are clean (other steps start a fresh page, never Saved by that alone, even after a refused or failed reload), and the next step (Record, or Brand's approval) then needs its own saved reply.
101
101
  The save's commit is the one it moved main to, or one a `post-commit` hook amended with the same parent and files. When HEAD is anything else (a hook committed on top of the save's commit, or moved HEAD), the save answers that its commit could not be confirmed; the index may already have followed the reviewed commit before that hook ran. The message names the step to finish: in the product's folder, `git reset HEAD --` with the saved paths (it changes only staging; committing from a terminal before it could undo the save), then reload the file list and save again if it still lists them. For a prototype approval, `git checkout HEAD --` with the record's path instead: if the record then shows the approval, it is saved; otherwise approve again.
102
- - Prototype puts the recorded versions, check status, Compare and Approve above the app preview. Try a journey opens a picker and puts Back and Next over the app. Preview options holds Device, Data and sign-in help. Sign-in help offers Open app in new tab. Escape and choosing an action return keyboard focus to the panel's opener. Tabbing out of a popover or Compare closes it and keeps focus at the new control. A phone shows the app edge to edge. The agent's technical references are under Details. A silent app port points to Dev server. A missing home can prepare a design request for the person to send. Below the preview, the unsaved source's file list and its one Save commit the chosen files, Take snapshot checks the saved source, and Record waits for its passing proof. The [prototype connection](PROTOTYPE.md) describes readiness and framing.
102
+ - Prototype is a workspace. Above it, the recorded versions, check status, Compare and Approve. Its bar chooses what you look at (Customer app or Console; Mobile, Tablet or Desktop, with Rotate for a tablet) and what a click does (Select, Comment, Draw, Area; marking draws over the device, `useWorkspaceStage()` in `loop/workspace-state.tsx`). On the left, Journeys (the plan's, by who does them and in which app, joined to the ones the running app plays; the open one lists its steps to jump to) and Screens, with the sample data and sign-in help at the foot; sign-in help offers Open app in new tab. In the middle, the app in its device, zoomed to fit, with a line saying what you see and the step bar (Back, the step, Play, Next) under it. The console is a second frame at the stack's admin address, loaded once shown and kept: switching keeps each one's step and reloads neither; its journeys are followed by hand. The rail folds to its icons on this page. The workspace and its console frame stay in the page while the app starts, stops or is refused; only the app's slot changes. Play stops on any switch of app, journey or device. A phone shows a phone's app edge to edge (a tablet or desktop in its bezel, zoomed to fit), the device choice as icons, and a bar at its foot: Journeys (a sheet), Back, the step, Next and Changes (the agent's tab); on a touch screen the Comment hint says tap. Escape and choosing an action return keyboard focus to the panel's opener. Tabbing out of Compare closes it and keeps focus at the new control. The agent's technical references are under Details. A silent app port points to Dev server. A missing home can prepare a design request for the person to send. Below the preview, the unsaved source's file list and its one Save commit the chosen files, Take snapshot checks the saved source, and Record waits for its passing proof. The [prototype connection](PROTOTYPE.md) describes readiness and framing.
103
103
  Long file paths and report rows wrap within the page; wide tables scroll inside their own box and previews stack when narrow.
104
104
  Saved source refreshes after a reviewed save without a page reload. An empty source read says nothing is recorded yet; a failed read shows a fixed translated sentence, never raw errors. Slow or failed reads leave the preview open, and the controls that need the source show that it is unavailable. Polling and hiding the pane preserve the playing journey and step. The preview's heartbeat checks whether the app is still responding.
105
105
  The chat panel renders only while shown. It opens with the latest 200 messages, and Show earlier adds another page.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buffcore/cli",
3
- "version": "0.8.44",
3
+ "version": "0.8.45",
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/contracts": "0.8.44",
49
- "@buffcore/config": "0.8.44",
50
- "@buffcore/modules": "0.8.44",
51
- "@buffcore/storage": "0.8.44",
52
- "@buffcore/db": "0.8.44",
53
- "@buffcore/server": "0.8.44",
54
- "@buffcore/i18n": "0.8.44",
55
- "@buffcore/tokens": "0.8.44",
56
- "@buffcore/build-agent": "0.8.44"
48
+ "@buffcore/build-agent": "0.8.45",
49
+ "@buffcore/storage": "0.8.45",
50
+ "@buffcore/contracts": "0.8.45",
51
+ "@buffcore/i18n": "0.8.45",
52
+ "@buffcore/server": "0.8.45",
53
+ "@buffcore/config": "0.8.45",
54
+ "@buffcore/db": "0.8.45",
55
+ "@buffcore/tokens": "0.8.45",
56
+ "@buffcore/modules": "0.8.45"
57
57
  },
58
58
  "devDependencies": {
59
59
  "marked": "18.1.3",
60
60
  "tsx": "4.23.15",
61
- "@buffcore/admin-shell": "0.8.44"
61
+ "@buffcore/admin-shell": "0.8.45"
62
62
  },
63
63
  "scripts": {
64
64
  "build": "node ../../scripts/build-package.mjs && node scripts/bundle.mjs",
@@ -22,6 +22,14 @@ If they correct it, update the brief and ask them to confirm the revised read-ba
22
22
  confirmation on the `Owner confirmation` line. For ongoing work from an older brief without the
23
23
  section, use its agreed scope and suggest adding the section for the next plan.
24
24
 
25
+ ## A summary line under each heading
26
+
27
+ The studio's Brief reads short first: under each `##` heading of `plan/brief.md`, write the
28
+ section's short form as `> Summary: <one line>` and keep it current when the section changes. In
29
+ `Who it is for`, write one per role as `> Summary: Role (app or console): what we know.`; in `Must
30
+ do` and `Later`, one per item worth seeing first. The rest of the section stays as written: Read
31
+ more opens it whole. A section without a summary shows its first sentence.
32
+
25
33
  ## Journeys from a normal day
26
34
 
27
35
  Start each journey in `plan/journeys.md` with a moment in the person's normal day,
@@ -4,12 +4,21 @@ One page, agreed before the work. The process is in BuffCore's `docs/PROCESS.md`
4
4
  stage 1 and the sentence every later decision is tested against. Replace the prompts with answers,
5
5
  then keep it current.
6
6
 
7
+ <!-- Under each heading, a `> Summary:` line is the section's short form: the studio's Brief shows
8
+ it and opens the rest from Read more. Keep it to one line. In Who it is for, write one per role
9
+ (`> Summary: Front desk (console): two people, one screen.`); in Must do and Later, one per item
10
+ worth seeing first. A section without one shows its first sentence. -->
11
+
7
12
  ## The idea
8
13
 
14
+ > Summary: <One line: what the section says.>
15
+
9
16
  <What it is, in one paragraph a person outside the project can repeat.>
10
17
 
11
18
  ## Who it is for
12
19
 
20
+ > Summary: <Role (app or console): what we know. One line per role.>
21
+
13
22
  <The people, their situation, and what they will not tolerate.>
14
23
 
15
24
  <What they already use. What does it replace in their day? List what they use today. Plan to
@@ -17,10 +26,14 @@ replace each listed tool or workflow unless the owner writes "keep using it" bes
17
26
 
18
27
  ## The jobs
19
28
 
29
+ > Summary: <One line: what the section says.>
30
+
20
31
  <The three to seven jobs they need done, in their words. Each becomes a journey.>
21
32
 
22
33
  ## Read-back
23
34
 
35
+ > Summary: <One line: what the section says.>
36
+
24
37
  <In a few sentences from the brief, say who it is for, what they need to do in a normal day,
25
38
  and what it replaces or keeps. Wait for the owner's confirmation before drafting the plan or journeys.>
26
39
 
@@ -28,34 +41,50 @@ and what it replaces or keeps. Wait for the owner's confirmation before drafting
28
41
 
29
42
  ## B2B or B2C
30
43
 
44
+ > Summary: <One line: what the section says.>
45
+
31
46
  <B2B or B2C: does a business or an individual buy it?>
32
47
 
33
48
  ## How it earns
34
49
 
50
+ > Summary: <One line: what the section says.>
51
+
35
52
  <Who pays, for what, and how often. Say if it is free.>
36
53
 
37
54
  ## Must do
38
55
 
56
+ > Summary: <A short item. One line per item worth seeing first.>
57
+
39
58
  <The things the first release must do for its people.>
40
59
 
41
60
  ## Later
42
61
 
62
+ > Summary: <A short item. One line per item worth seeing first.>
63
+
43
64
  <What can wait until a later release.>
44
65
 
45
66
  ## The shape
46
67
 
68
+ > Summary: <One line: what the section says.>
69
+
47
70
  <Web, phone, console, or all three; the surfaces each job uses; the accounts and roles.>
48
71
 
49
72
  ## The constraints
50
73
 
74
+ > Summary: <One line: what the section says.>
75
+
51
76
  <Time, money, data, integrations, languages, devices, the law, what the team already knows.>
52
77
 
53
78
  ## What good looks like
54
79
 
80
+ > Summary: <One line: what the section says.>
81
+
55
82
  <The few outcomes that make this worth building, and how the first person will judge it.>
56
83
 
57
84
  ## Not this time
58
85
 
86
+ > Summary: <One line: what the section says.>
87
+
59
88
  <What is deliberately out of scope, so a later request has a home.>
60
89
 
61
90
  ## Open questions