@marver-design/marver 0.8.0 → 0.8.1
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 +97 -5
- package/README.md +72 -16
- package/dist/{auth-B36fMCM3.mjs → auth-KQ9Aj-nB.mjs} +1 -1
- package/dist/{build-B8z902TW.mjs → build-BBVQRetk.mjs} +5 -5
- package/dist/cli.mjs +16 -7
- package/dist/{collab-pLGzSvm5.mjs → collab-s3k5byM1.mjs} +3 -3
- package/dist/{comments-DSwMhdbZ.mjs → comments-BZBKhKRO.mjs} +2 -2
- package/dist/{comments-BrpC86Kf.mjs → comments-J06jqCVV.mjs} +3 -3
- package/dist/{daemon-C-huGHAM.mjs → daemon-DkyNOwIt.mjs} +30 -51
- package/dist/{dev-BYm9ebfN.mjs → dev-BTAhTie-.mjs} +19 -5
- package/dist/{init-DrLomSWq.mjs → init-DWdhjJD5.mjs} +16 -3
- package/dist/{ledger-wFvEIEGi.mjs → ledger-CbzTJrV2.mjs} +1 -1
- package/dist/{manifest-D3eaARf4.mjs → manifest-B4zcDGBf.mjs} +3 -3
- package/dist/{plugin-BVFuRfEo.mjs → plugin-BdQEeTLg.mjs} +41 -9
- package/dist/{serve-CwAfayJk.mjs → serve-CZqPnj19.mjs} +32 -8
- package/dist/{sync-Ch4Bymb1.mjs → sync-BJKKmy1n.mjs} +2 -2
- package/dist/work-CLrmY-vQ.mjs +97 -0
- package/dist/work-lzC-lPY0.mjs +76 -0
- package/package.json +16 -1
- package/src/client/const.ts +1 -1
- package/src/client/content/diagram.tsx +1 -1
- package/src/client/content/index.tsx +2 -2
- package/src/client/content/md.ts +1 -1
- package/src/client/content/palette.ts +2 -2
- package/src/client/frame-host/bridge.js +1 -1
- package/src/client/frame-host/inspect.js +1 -1
- package/src/client/frame-host/serialize.ts +2 -2
- package/src/client/shell/App.tsx +79 -22
- package/src/client/shell/Comments.tsx +24 -18
- package/src/client/shell/Play.tsx +2 -2
- package/src/client/shell/canvas/Canvas.tsx +1 -1
- package/src/client/shell/canvas/FrameNode.tsx +16 -11
- package/src/client/shell/canvas/snapshots.ts +3 -3
- package/src/client/shell/comments-store.ts +115 -42
- package/src/client/shell/hash.ts +2 -2
- package/src/client/shell/icons.tsx +1 -1
- package/src/client/shell/keys.ts +39 -0
- package/src/client/shell/mentions.ts +1 -1
- package/src/client/shell/perf.ts +1 -1
- package/src/client/shell/store.ts +99 -39
- package/src/client/shell/styles.css +12 -12
- package/src/client/shell/tidy.ts +5 -5
- package/src/client/stage/main.tsx +2 -2
- package/src/shared/events.ts +2 -2
- package/src/shared/utm.ts +22 -0
- package/templates/AGENTS-embedded.md +48 -1
- package/templates/AGENTS-studio.md +48 -1
- package/templates/instructions/publish.md +1 -1
|
@@ -50,6 +50,29 @@ Two channels carry element-precise feedback - honor both:
|
|
|
50
50
|
thread carries the anchored element (tag, quoted text, css path, frame). Work that queue
|
|
51
51
|
per instructions/iterate.md; the comment names the div, so read the anchor before the words.
|
|
52
52
|
|
|
53
|
+
## Show the work (working state)
|
|
54
|
+
|
|
55
|
+
The canvas can wear your effort live. When a request will create or change frames, making
|
|
56
|
+
it visible is your FIRST act - before research, before reading the codebase, before
|
|
57
|
+
planning. The human should see the request land on the canvas within the first minute:
|
|
58
|
+
|
|
59
|
+
1. **Create the frame files immediately** - right name, right scene, `meta` (title,
|
|
60
|
+
viewport), and a minimal skeleton (a heading and a few placeholder blocks - enough
|
|
61
|
+
to give it shape) - and pin them on the target board (APPEND a node to the board
|
|
62
|
+
JSON - adding is always yours, only rearranging belongs to the shell; auto boards pick
|
|
63
|
+
new frames up on their own). Changing existing frames only? Skip this step.
|
|
64
|
+
2. **Light them up**: `npx marver work start <scene/frame ...>` - each frame wears the
|
|
65
|
+
live working shimmer. Only now do research, discovery, and planning begin - under a
|
|
66
|
+
lit frame, never before one.
|
|
67
|
+
3. Build. Independent frames can go in parallel - one subagent per frame, each marking
|
|
68
|
+
its own; frames that depend on one another go in order.
|
|
69
|
+
4. **Clear as you finish**: `npx marver work done <scene/frame ...>` (or `--all`). Marks
|
|
70
|
+
self-expire (default 10 min; `--ttl <min>` up to 30) - re-run `start` on long jobs,
|
|
71
|
+
and never lean on expiry instead of `done`.
|
|
72
|
+
|
|
73
|
+
Report where the request came from: chat requests get chat replies; only comment-born
|
|
74
|
+
(`@marver`) work replies in its thread.
|
|
75
|
+
|
|
53
76
|
## Frames
|
|
54
77
|
- A frame = one file: design/scenes/<scene>/<name>.tsx or .html. One frame, one surface.
|
|
55
78
|
- It default-exports a React component. No imports from the tool are needed. Optional:
|
|
@@ -98,7 +121,9 @@ Two channels carry element-precise feedback - honor both:
|
|
|
98
121
|
and each state (default / hover-styled / focus / disabled / loading) of one ui component.
|
|
99
122
|
|
|
100
123
|
## Rules
|
|
101
|
-
- Do not
|
|
124
|
+
- Do not rearrange design/boards/*.json while the canvas is open unless asked - the shell
|
|
125
|
+
owns the layout fields (x/y/w/h, keys). APPENDING a node for a frame you just created is
|
|
126
|
+
always yours (Show the work, step 1).
|
|
102
127
|
- Do not import from "design/" inside src/ or app/. The arrow points one way.
|
|
103
128
|
- Do not add network calls, app stores, or auth to frames. Mocked data only.
|
|
104
129
|
- Keep each frame self-sufficient: it must render from its file + fixtures + ui imports alone.
|
|
@@ -118,3 +143,25 @@ whitespace tokens, and the same grammar per scene for frames (columns align left
|
|
|
118
143
|
edges; a variant-group name is one indivisible atom). BEFORE creating a board or
|
|
119
144
|
publishing anything, read instructions/boards.md (the layout grammar, file format,
|
|
120
145
|
publishing rules).
|
|
146
|
+
|
|
147
|
+
## Upstream feedback (when marver itself misbehaves)
|
|
148
|
+
|
|
149
|
+
You are also marver's eyes in the field. When the TOOL fails you - a canvas glitch, a CLI
|
|
150
|
+
error, a broken promise in these instructions, a missing capability you genuinely needed -
|
|
151
|
+
file it upstream so it gets fixed for everyone. This is about marver bugs, never about the
|
|
152
|
+
owner's designs.
|
|
153
|
+
|
|
154
|
+
- Search first, then file (one issue per problem):
|
|
155
|
+
`gh issue list --repo TNEP4/marver --search "<keywords>"` - comment on a match instead
|
|
156
|
+
of duplicating. Otherwise:
|
|
157
|
+
`gh issue create --repo TNEP4/marver --label bug --title "<symptom>" --body "<report>"`
|
|
158
|
+
(use `--label enhancement` for a capability wish). No `gh`? Give the owner the link:
|
|
159
|
+
`https://github.com/TNEP4/marver/issues/new` with your drafted title and body.
|
|
160
|
+
- A useful report: the marver version (`npx marver --version`), what you did, what you
|
|
161
|
+
expected, what happened instead, and the smallest reproduction you can DESCRIBE -
|
|
162
|
+
e.g. "a board of 12 frames, one content frame with a mermaid diagram, hotkey 2".
|
|
163
|
+
- **Privacy is hard law - the issue is public.** Never include the owner's code, file
|
|
164
|
+
contents or names, comment text, emails, screenshots, or anything that identifies this
|
|
165
|
+
repo or its product. Recreate the failure in neutral terms; if it cannot be described
|
|
166
|
+
without private detail, tell the owner instead of filing.
|
|
167
|
+
- Tell the owner what you filed, with the link - it is their machine and their voice.
|
|
@@ -51,7 +51,7 @@ gitignored - it is built ON THE HOST at deploy time, never committed.**
|
|
|
51
51
|
- a **persistent volume** mounted at some path, named by `MARVER_DATA_DIR`
|
|
52
52
|
|
|
53
53
|
The `@marver-design/marver` dependency must resolve from the registry (a local
|
|
54
|
-
`link:`/`file:` dep cannot ride to a remote host) - a normal
|
|
54
|
+
`link:`/`file:` dep cannot ride to a remote host) - a normal registry version (`npm i -D @marver-design/marver@latest`) in
|
|
55
55
|
`package.json` is all it takes.
|
|
56
56
|
|
|
57
57
|
## Railway quickstart
|