heyquilt 0.3.176 → 0.3.178

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/src/setup.js CHANGED
@@ -44,7 +44,8 @@ ${TASK_WORKFLOW_MD}
44
44
  person, not for you: Quilt shows you none of them and nothing waits on your answer.
45
45
  Write in chat, read it or take a task only when your person asks you to. An agent
46
46
  that joined as its own member reads its own mentions in \`quilt_inbox\`.
47
- - Nobody holds files: edit any file you may change; edits merge as they arrive. If
47
+ - Nobody holds files: edit any file you may change; every edit is shared with
48
+ everyone as it is made, and edits merge as they arrive. If
48
49
  your change clashes with someone's on the same lines, Quilt holds your lines and
49
50
  tells you at the top of your next quilt answer: resolve it at once with
50
51
  \`quilt_resolve_merge\`.
@@ -54,14 +55,6 @@ ${TASK_WORKFLOW_MD}
54
55
  the file has both versions of those lines between conflict markers
55
56
  ("<<<<<<< mine", "=======", ">>>>>>> session"). Edit them to what they should
56
57
  be, delete the marker lines and save: it is shared then.
57
- - Your unfinished work is boxed: in a folder that is a git repository, a file you
58
- change stays in a box until you commit it. Everyone sees the change, but it is only
59
- in your folder, so nobody else's git can commit it. Committing it (or putting it
60
- back) opens the box by itself; finishing does not. \`quilt_unpack\` shares a box
61
- early when someone needs it: decide yourself, and ask your person first for a
62
- large, risky or critical change or when the project's rules say so. A file boxed
63
- by someone else isn't in your folder yet: if you edit it, their box opens and your
64
- change merges with their work.
65
58
  - Answer collaborators' messages (\`quilt_read_messages\`): help with their change,
66
59
  or say when you'll be done. New ones are shown at the top of
67
60
  every quilt answer. When you finish, call \`quilt_set_work\` with "done": it is
@@ -78,28 +71,25 @@ ${TASK_WORKFLOW_MD}
78
71
  Moving to Done still needs \`verified\`.
79
72
  - Always re-read a file right before editing it; never rely on an old copy.
80
73
  - Prefer small, focused edits over rewriting whole files.
81
- - Git works as usual here: pull and push yourself, and commit only the files you
74
+ - Git works as usual here: commit and push yourself, and commit only the files you
82
75
  changed (never \`git add -A\` or \`git commit -a\`: the folder holds other people's
83
- unfinished work). An agent's folder is a checkout Quilt made, and its git signs in
84
- to GitHub through Quilt within the session owner's policy. Taking a task puts your
85
- folder on a branch of your own for it (quilt/<you>/<task>); push it and Quilt opens
86
- the pull request; Done merges it once checks pass (a person moves it to Done unless
87
- the owner lets agents push anywhere). Pushes and merges on GitHub reach the session
88
- within seconds, so never pull by hand. Quilt recognises git
89
- commands, so a stash or reset on this computer never erases the session's
90
- work (it comes back a moment later), a git conflict pauses this folder until
91
- you resolve it and \`git add\` it, and checking out another branch moves this
92
- folder to that branch's work in the session (the old branch keeps its own).
93
- If git refuses a checkout because local changes would be overwritten, those
94
- are the session's uncommitted work, which the session keeps: switch with
76
+ unfinished work). Commits pushed to your branch's upstream (a partner's push, a
77
+ merge on GitHub) come into this folder by themselves within about a minute: the
78
+ branch moves forward to them and your uncommitted work stays, so there is
79
+ nothing to pull. Quilt leaves two cases to your own git, and \`quilt_status\`
80
+ says so under "Git": your branch has commits of its own that the upstream
81
+ hasn't, and a commit changed the same lines as uncommitted work (commit it
82
+ first). In both, pull with \`git pull --rebase --autostash\` (or
83
+ \`--no-rebase\` to merge) and settle any conflict. While git is stopped on a
84
+ conflict (a merge, rebase, cherry-pick or revert) this folder is paused:
85
+ nothing is shared from it or written to it until you settle it and commit.
86
+ Checking out another branch moves this folder to that branch's work in the
87
+ session (the old branch keeps its own).
88
+ If git refuses a checkout because local changes would be overwritten,
89
+ those are the session's uncommitted work, which the session keeps: switch with
95
90
  \`git checkout -f <branch>\` (or \`git stash && git checkout <branch>\` in one
96
91
  command; a stash on its own is put back a moment later).
97
92
  Deleting a file deletes it for everyone.
98
- - If git refuses to pull because untracked files would be overwritten, those
99
- files came from the session: \`quilt_status\` lists them under "Pulling" and
100
- says whether they match the commits. Make way and pull with
101
- \`rm <files> && git pull --autostash\`: Quilt keeps them for everyone and the
102
- pull lands them (where they differ, Quilt merges the two afterwards).
103
93
  ${END}`
104
94
 
105
95
  function upsertBlock (file, block) {
package/src/status.js CHANGED
@@ -28,6 +28,9 @@ export function renderStatus (st, { asAi = false, mentionYours = false } = {}) {
28
28
  const held = renderHeld(st.held || [], { me: st.me.name, max: 20 })
29
29
  if (held) out.push(held, '')
30
30
 
31
+ // Commits on the branch's upstream that Quilt left to the person's git (session.js bringIn), and why.
32
+ if (st.upstream && st.upstream.waiting) out.push('## Git', `- ${st.upstream.waiting}`, '')
33
+
31
34
  const away = catchUpMarkdown(st.catchUp, { ago })
32
35
  if (away.length) out.push(...away, '')
33
36
 
@@ -63,14 +66,6 @@ export function renderStatus (st, { asAi = false, mentionYours = false } = {}) {
63
66
  out.push(taskMarkdown(st.tasks, st.me.name, { tool: st.me.tool, asAi, mentionYours }))
64
67
  out.push('')
65
68
 
66
- // Boxes (docs/superpowers/specs/2026-10-16-git-boxes-design.md): unfinished work only in its owner's folder.
67
- const boxed = st.boxes || []
68
- if (boxed.length) {
69
- out.push('## Boxed work')
70
- for (const c of boxed) out.push(c.by === st.me.name ? `- \`${c.pattern}\`: your unfinished work: in your folder only, until you unpack it (quilt_unpack)` : `- \`${c.pattern}\`: ${c.by}'s unfinished work: not in your folder until they unpack it`)
71
- out.push('')
72
- }
73
-
74
69
  // A file with several open records: one line, its latest.
75
70
  const merges = [...new Map((st.merges || []).filter((m) => m.state !== 'done').map((m) => [m.path, m])).values()]
76
71
  if (merges.length) {
@@ -45,7 +45,7 @@ export function agentGuide ({ apiUrl = 'https://api.heyquilt.com', via = 'both'
45
45
  http ? `- ${both ? 'Over HTTP, only if you have no computer and can only make HTTP requests' : 'Over HTTP'}: the tools are on the MCP server at ${mcp} (Streamable HTTP), with the header "Authorization: Bearer <accessKey>". Without an MCP client, POST JSON-RPC to it: headers "Content-Type: application/json" and "Accept: application/json, text/event-stream", body {"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"quilt_message","arguments":{"text":"hello"}}}. Start with quilt_join_session and the session invite link you were given; the owner may have to let you in first (quilt_session_info tells you).` : null,
46
46
  '',
47
47
  '### Start here',
48
- '- `quilt_status`: who is in the session, what each is doing, the open tasks and whose unfinished work is boxed. Then `quilt_inbox` for anything waiting for you, and `quilt_tasks` for the board.',
48
+ '- `quilt_status`: who is in the session, what each is doing and the open tasks. Then `quilt_inbox` for anything waiting for you, and `quilt_tasks` for the board.',
49
49
  '- `quilt_project_rules`: the project\'s rules for AI and its design system (AGENTS.md, CLAUDE.md, Cursor rules, DESIGN.md), the same for every tool. Read them before your first change.',
50
50
  `- \`quilt_share\` when you start on something (what you were asked and your plan) and again when you finish (what you did, the files you changed), so everyone can follow.${cli ? ` With the CLI, \`quilt_set_focus\` (or \`quilt focus <what>\`) sets your status line, and \`quilt_set_work\` "working" when you start (it shows you stitching on the loom) and "done" when you finish tells people when it is safe to commit.` : ''}`,
51
51
  '',
@@ -81,36 +81,27 @@ export function agentGuide ({ apiUrl = 'https://api.heyquilt.com', via = 'both'
81
81
  '',
82
82
  '### Files',
83
83
  // quilt_set_work is a tool only the CLI has: an agent over HTTP is not told of it.
84
- '- Nobody holds files: edit any file you may change; edits merge as they arrive. If your change clashes with someone\'s on the same lines, Quilt holds your lines and tells you at the top of your next Quilt answer: resolve it at once with `quilt_resolve_merge`. Until you do, moving a task to QA or Done' + (cli ? ', `quilt_set_work` "done"' : '') + ' and commits are refused; a conflict whose writer\'s AI is gone is handed to another AI in the session, which is woken for it.' + (cli ? ' In your own folder the clash is in the file itself: your save is not shared, and the file has both versions of those lines between conflict markers ("<<<<<<< mine", "=======", ">>>>>>> session"). Edit them to what they should be, delete the marker lines and save: it is shared then.' : ''),
84
+ '- Nobody holds files: edit any file you may change; every edit is shared with everyone as it is made, and edits merge as they arrive. If your change clashes with someone\'s on the same lines, Quilt holds your lines and tells you at the top of your next Quilt answer: resolve it at once with `quilt_resolve_merge`. Until you do, moving a task to QA or Done' + (cli ? ', `quilt_set_work` "done"' : '') + ' and commits are refused; a conflict whose writer\'s AI is gone is handed to another AI in the session, which is woken for it.' + (cli ? ' In your own folder the clash is in the file itself: your save is not shared, and the file has both versions of those lines between conflict markers ("<<<<<<< mine", "=======", ">>>>>>> session"). Edit them to what they should be, delete the marker lines and save: it is shared then.' : ''),
85
85
  cliOnly('- Call `quilt_before_edit` with the paths before you change files: it shows what people said about them in chat and who else changed them lately. It never refuses'),
86
86
  http ? `- ${both ? 'Over HTTP: ' : ''}\`quilt_list_files\`, \`quilt_read_file\`, then \`quilt_write_file\` with the version the read ended with as \`base\` (your write is merged against what you read).` : null,
87
- `- Your unfinished work is boxed: ${cli && http ? 'in a folder that is a git repository (or, over HTTP, on a branch that follows one), ' : cli ? 'in a folder that is a git repository, ' : 'on a branch that follows a git repository, '}a file you change stays in a box until you commit it. Everyone sees the change, but it is in nobody else's folder, so nobody else's git can commit it. Committing it (or putting it back) opens the box by itself; finishing does not.`,
88
- '- `quilt_unpack` shares a box early when someone needs it: decide yourself, and ask your person first for a large, risky or critical change or when the project\'s rules say so. A file boxed by someone else (`quilt_status` lists Boxed work) is their unfinished work and not in your folder yet: if you edit it, their box opens and your change merges with their work.',
89
87
  '- Always re-read a file right before you change it: others change files underneath you.',
90
88
  '- `quilt_history` shows who changed which file, when, for which task, with the diff: read it for the files you are about to touch.',
91
89
  cliOnly('- `quilt_send_file` sends a file (a screenshot, a log, a draft) through chat without adding it to the project; `quilt_get_file` fetches one someone sent'),
92
90
  '',
93
91
  '### The workspace library',
92
+ '- Workspaces are not on everywhere. You have them when `quilt_workspaces` is among your tools; if it is not, skip this part.',
94
93
  '- Pictures, video, documents, data and anything else that is not the project\'s code go in the workspace library, not in the project or in chat. Its files are shared by the workspace\'s people and agents, with versions and a short note on each.',
95
94
  '- You reach a workspace when a person adds you to it, or moves a session you are in into it. `quilt_workspaces` lists the ones you can reach, and whether you can edit them.',
96
95
  cli ? '- With the CLI, run these in your session folder (so they act as you; a workspace is its name or id): `quilt workspace list`, `quilt workspace files <workspace>`, `quilt workspace put <workspace> <path> <local file> --note "<what it is>"`, `quilt workspace write <workspace> <path> <text>`, `quilt workspace get <workspace> <path>`, `quilt workspace mkdir <workspace> <folder>`, `quilt workspace mv <workspace> <path> <new path>`, `quilt workspace rm <workspace> <path>`. The MCP tools do the same: `quilt_workspace_files`, `quilt_workspace_write_file` (fromPath for a file on disk), `quilt_workspace_read_file`, `quilt_workspace_make_folder`, `quilt_workspace_move_file`, `quilt_workspace_delete_file`.' : null,
97
96
  http ? `- ${both ? 'Over HTTP, the' : 'The'} same tools: \`quilt_workspace_files\`, \`quilt_workspace_write_file\` (text or base64, up to 2 MB, with a note), \`quilt_workspace_read_file\` (text inline, anything else as a download link), \`quilt_workspace_make_folder\`, \`quilt_workspace_move_file\`, \`quilt_workspace_delete_file\`.` : null,
98
97
  '',
99
98
  '### Getting your work into git',
100
- '- Work that is only in the session has not shipped. Get it into git yourself as soon as it is finished and tested, before you move its task to QA: nobody needs to be online.',
101
- cli ? `- ${both ? 'With the CLI, your' : 'Your'} folder is a git checkout of the branch (Quilt makes it one when you join, at the commit the session is at), and git signs in to GitHub through Quilt with a short-lived token for this repository only: fetch, commit and push work as they do for anyone. Commit only the files you changed (never \`git add -A\` or \`git commit -a\`: the folder holds other people's unfinished work), with a message that says what the change does; the session's uncommitted work shows as the working tree's changes.` : null,
102
- cli ? `- ${both ? 'With the CLI, t' : 'T'}he path is: take the task (\`quilt_move_task\` to doing) and Quilt puts your folder on a branch of your own for it, quilt/<you>/<task>; work, commit only your files, \`git push -u origin <that branch>\`; Quilt opens the pull request and ties it to the task; move the task to QA when it is done and tested; Done merges the pull request once its checks pass (a person moves it to Done; you may when the owner lets agents push to any branch). Git is on for everyone in the session once someone's GitHub connection covers the repository: your git signs in through Quilt, nothing to set up. Where you may push is the session's git setting (\`quilt_agent_commits\`, set by its owner or a workspace, team or org rule): by default only branches of your own; with "any", the session's branch too; "off" is off for everyone. A push outside the policy, or one that would rewrite history, is refused with the reason. Quilt never hands you a GitHub token (\`quilt git-token\` prints none): git is all you need. When git is off here (or nobody has connected GitHub), ask a person instead: \`quilt_request_commit\` with your files and a message; you are told the commit.` : null,
103
- http ? `- ${both ? 'Over HTTP you have no folder, so ' : 'You have no folder, so '}git is the quilt_git_* tools, on the branch you are on. Taking a task (\`quilt_move_task\` to doing) puts you on a branch of your own for it, quilt/<you>/<task>, with a copy of the files; ${call('quilt_git_commit', { message: 'what the change does', files: ['every file you changed, deleted ones too'] })} commits the session\'s copy of exactly those files there (without files, every change of yours on record) and opens the pull request tied to your task. The session\'s branch itself is open to agents only when the owner lets agents push to any branch. \`quilt_git_status\` says where you stand (branch, your uncommitted files, your task\'s pull request), \`quilt_git_diff\` what differs from GitHub, \`quilt_git_log\` what was committed, \`quilt_git_revert\` puts GitHub\'s version of a file back, \`quilt_git_branch\` lists, switches or creates branches. A commit is refused for a file that changed on GitHub since the session\'s copy (\`quilt_sync_branch\` first) and for one holding someone else\'s uncommitted changes (leave it out, ask them, or with_others: true). \`quilt_git_pull_requests\` lists open pull requests with their checks; ${call('quilt_git_merge', { number: 42 })} merges one once its checks pass (agents: when the owner lets agents commit to any branch). When git is off here, ask a person with \`quilt_request_commit\`.` : null,
99
+ '- Work that is only in the session has not shipped. Get it into git yourself as soon as it is finished and tested, before you move its task to QA.',
100
+ cli ? `- ${both ? 'With the CLI, join' : 'Join'} from a git clone of the repository (\`git clone <url>\` first, then \`quilt join\` in it). Git is yours to run, with your own sign-in. Taking a task (\`quilt_move_task\` to doing) puts your folder on a branch of your own for it, quilt/<you>/<task>, made from the commit your folder is at: what you change is on that branch only, until it is merged. Commit only the files you changed there (never \`git add -A\` or \`git commit -a\`), \`git push -u origin <that branch>\`, and open the pull request yourself (\`gh pr create\`). The task moves to QA only once the branch is committed and pushed. Quilt does not commit, push, open pull requests or merge them for anyone.` : null,
104
101
  cli ? `- ${both ? 'With the CLI: s' : 'S'}witching branches moves your folder to that branch's work in the session, and the branch you left keeps its own. Your folder also holds everyone's uncommitted work on the branch you are on, so git may refuse a checkout ("local changes would be overwritten"): switch with \`git checkout -f <branch>\`. Nothing is lost, because the session keeps that work on the branch you leave. A \`git stash\` on its own is put back a moment later.` : null,
105
- '- A task of yours can\'t move to QA while its files aren\'t in git; Done merges its pull request (refused while checks fail or run, and, unless the owner lets agents push anywhere, a person\'s to do). A pull request merged on GitHub by hand moves its task to Done by itself. Quilt reminds you of work you left uncommitted, and of pull requests waiting. Before you tell anyone your work is in git or live, check that you pushed it. `quilt_commit_status` lists open commit requests and recent commits; `quilt_request_commit` is only for when agents may not commit here.',
106
- '- Anything pushed or merged on GitHub reaches the session within seconds (Quilt\'s GitHub app tells it), merged with the session\'s uncommitted work; a branch you pushed comes back without a conflict. There is nothing to pull by hand. Only real conflicts (the same lines changed on GitHub and in the session) become a task for one AI to resolve. Quilt never rewrites or force-pushes history, and neither should you.',
107
- cli ? `- ${both ? 'With the CLI: c' : 'C'}ommits made outside the session (a push from a worktree, a PR merged on GitHub) come in by themselves: about once a minute Quilt fetches your folder's upstream and moves the branch forward, merging the session's uncommitted work into those files. For that, join from a git clone of the repository (\`git clone <url>\` first, then \`quilt join\` in it), with fetch credentials that work without a prompt (a credential helper, an SSH key, or a token in the remote's URL): a folder that is not a clone, or whose fetch fails, can't bring commits in, and \`quilt_status\` and \`quilt_branches\` say so; the relay then brings them in from GitHub for that branch, about every 10 minutes. It only moves forward: a diverged branch, or files that clash, become one task on the board for one AI ("Bring N commits from origin/main into the session"). If it is yours, git pull in your folder, resolve and git add; the others follow and the task closes itself. If it is someone else's, leave those files to them.` : null,
108
- http ? `- ${both ? 'Over HTTP: c' : 'C'}ommits made outside the session (a PR merged on GitHub, a push) come into your branch by themselves: through a member's folder on it when one is online and can fetch, otherwise the relay brings them in from GitHub about every 10 minutes. It only moves forward. When they clash with the session's uncommitted work, nothing comes in and one agent gets a task ("Bring N commits from origin/main into the session") with each file and what changed upstream in its comments. If it is yours: for each file, \`quilt_read_file\`, fold in the upstream change while keeping the session's work, and \`quilt_write_file\` it without conflict markers; each such write makes the relay look again at once. If you kept one side whole, move the task to QA when all files are done. The task closes itself once the commits are in. If it is someone else's, leave those files to them. A private repository needs a read-only GitHub token: when \`quilt_status\` says the relay can't read it, ask the session owner.` : null,
109
- `- \`quilt_sync_branch\` brings in new commits now, for example right after you push or a PR merges${cli ? (http ? ' (with the CLI it fetches in your folder, and asks the relay when your folder can\'t; over HTTP it asks the relay, at most once a minute per branch)' : ' (it fetches in your folder, and asks the relay when your folder can\'t)') : ' (the relay asks GitHub, at most once a minute per branch)'}. \`quilt_branches\` shows which branch each folder, AI session, hosted agent and worktree is on, and how each stands against its upstream (and when a folder can't fetch).`,
110
- http ? `- ${both ? 'Over HTTP, ' : ''}\`quilt_git_branch\` moves you to another branch of the session (or lists them); with create: true, a branch that is on GitHub but not yet in the session is loaded at its latest commit (any other new branch starts from a copy of your files).` : null,
111
- `- \`quilt_commit_status\` also says whose AI is still working${cli ? `; \`quilt_wait_until_idle\` waits for every other AI to finish${both ? ' (CLI only)' : ''}` : ''}. \`quilt_commit_request_done\` closes a request whose work was committed with git by hand.`,
112
- '- The session owner can give the relay a read-only GitHub token for a private repository with `quilt_github_token` (owner only).',
113
- cliOnly('- Quilt merges on its own: changes made offline, by a pull or on GitHub are combined with the session\'s by Quilt, as live edits are (below). `quilt_merges` says what it merged'),
102
+ cli ? `- ${both ? 'With the CLI: c' : 'C'}ommits pushed to your branch's upstream (a partner's push, a pull request merged on GitHub) come into your folder by themselves: about once a minute, and when a partner's folder moves, Quilt fetches the upstream and moves your branch forward to them, keeping the session's uncommitted work. There is nothing to pull. For that the folder needs fetch credentials that work without a prompt (a credential helper, an SSH key, or a token in the remote's URL). Quilt leaves two cases to your own git, and \`quilt_status\` says so under "Git": your branch has commits of its own that the upstream hasn't, and a commit changed the same lines as uncommitted work (commit it first). In both, pull with \`git pull --rebase --autostash\` (or \`--no-rebase\` to merge) and settle any conflict. While git is stopped on a conflict (a merge, rebase, cherry-pick or revert) your folder is paused: nothing is shared from it or written to it until you settle it and commit. Quilt never rewrites or force-pushes history, and neither should you.` : null,
103
+ http ? `- ${both ? 'Over HTTP you have no folder, so ' : 'You have no folder, so '}you cannot commit. What you write is in the session and in every member's folder, and someone with a folder commits it: say in your task's \`qaNotes\` which files need committing. Quilt never rewrites or force-pushes history.` : null,
104
+ cliOnly('- Quilt merges on its own: changes made offline or by a pull are combined with the session\'s by Quilt, as live edits are (below)'),
114
105
  '- Two edits to the same lines: nobody wins automatically. The version that landed first stays and the other writer\'s lines are held (so is a write that removes lines someone else added minutes before, and a merge that would not parse); changes to different lines all go in. Every open conflict is listed at the top of every Quilt answer, to every AI, until one resolves it with `quilt_resolve_merge` (theirs, mine or edited): its writer is asked first, any AI may take it, and nothing holds the file meanwhile. Removing a name other files still use gets a warning with those uses.',
115
106
  '',
116
107
  '### How Quilt wakes you (step 2 of joining)',
package/src/ui/app.css CHANGED
@@ -643,30 +643,20 @@ textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
643
643
  .ws-tree { overflow: hidden; }
644
644
  @media (min-width: 901px) {
645
645
  .ws-body.tree-collapsed .pane-head { justify-content: center; padding-left: 4px; padding-right: 4px; }
646
- .ws-body.tree-collapsed .pane-title,
647
- .ws-body.tree-collapsed .pane-head .hint { display: none; }
646
+ .ws-body.tree-collapsed .pane-title { display: none; }
648
647
  .ws-body.tree-collapsed .tree-scroll { opacity: 0; pointer-events: none; overflow: hidden; }
649
648
  }
650
- /* The Boxes sidebar: the people menu's rows (who, what they're on, their boxes), fitted to the pane. */
651
- .boxes-side { padding: 0 2px 16px; }
652
- .boxes-side .pm-list { padding: 0 4px 8px; }
653
- .boxes-side .pm-open { padding: 7px 6px; gap: 8px; }
654
- .boxes-side .pm-open .avatar { width: 28px; height: 28px; font-size: 12px; }
655
- .boxes-side .pm-sub.pm-what { white-space: normal; overflow-wrap: anywhere; }
656
- .boxes-side .pm-boxes { padding: 0 4px 8px 40px; }
657
- .boxes-side .bx-diff { max-height: 260px; overflow: auto; }
658
- .bs-head { padding: 4px 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
659
- .bs-hint { margin: 4px 10px 0; font-size: 12px; color: var(--faint); line-height: 1.4; }
660
- /* One block per person, a dashed line between people; their files stay folded until their boxes are clicked. */
661
- .bs-person { padding: 2px 0; }
662
- .bs-person ~ .bs-person { border-top: 1px dashed var(--border-strong); }
663
- .bs-head + .bs-person, .pm-sep + .bs-person { border-top: 0; }
664
- .bs-fold { display: flex; align-items: center; gap: 6px; width: calc(100% - 44px); min-width: 0; margin: -4px 4px 6px 40px; padding: 3px 6px; border: 0; border-radius: 4px; background: none; color: var(--muted); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
665
- .bs-fold:hover, .bs-fold:focus-visible, .bs-fold[aria-expanded="true"] { background: var(--panel-2); color: var(--text); }
666
- .bs-fold svg { width: 12px; height: 12px; flex: none; color: var(--box); transition: transform .15s ease; }
667
- .bs-fold[aria-expanded="true"] svg { transform: rotate(90deg); }
668
- .bs-fold-sum { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
669
- .boxes-side .bs-fold + .pm-boxes { padding-top: 0; }
649
+ /* The People pane: the people menu's rows (who, what they're on), fitted to the pane. */
650
+ .people-side { padding: 0 2px 16px; }
651
+ .people-side .pm-list { padding: 0 4px 8px; }
652
+ .people-side .pm-open { padding: 7px 6px; gap: 8px; }
653
+ .people-side .pm-open .avatar { width: 28px; height: 28px; font-size: 12px; }
654
+ .people-side .pm-sub.pm-what { white-space: normal; overflow-wrap: anywhere; }
655
+ .pp-head { padding: 4px 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
656
+ /* One block per person, a dashed line between people. */
657
+ .pp-person { padding: 2px 0; }
658
+ .pp-person ~ .pp-person { border-top: 1px dashed var(--border-strong); }
659
+ .pp-head + .pp-person, .pm-sep + .pp-person { border-top: 0; }
670
660
  .scrim { display: none; }
671
661
 
672
662
  /* tree rows */
@@ -708,7 +698,7 @@ textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
708
698
  .t-badge { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; padding: 0 6px; height: 18px; border-radius: 999px; white-space: nowrap; }
709
699
  .t-badge svg { width: 10px; height: 10px; }
710
700
  .t-badge.edit { background: color-mix(in srgb, var(--edit) 15%, transparent); color: var(--edit); }
711
- /* On a narrow row the "edited" badge gives way first: the file name and a box stay whole. */
701
+ /* On a narrow row the "edited" badge gives way first: the file name stays whole. */
712
702
  .t-badge.edit, .t-badge.mine { flex: 0 1 auto; min-width: 0; display: block; line-height: 18px; overflow: hidden; text-overflow: ellipsis; }
713
703
  .t-badge.mine { background: var(--panel-2); color: var(--muted); }
714
704
  .t-badge.chat { background: var(--panel-2); color: var(--muted); font-weight: 600; }
@@ -816,8 +806,7 @@ button.t-badge:hover, button.t-badge:focus-visible { box-shadow: inset 0 0 0 1px
816
806
  .fv-banner .spacer { flex: 1; }
817
807
  .fv-path { font-weight: 600; }
818
808
  .fv-edited { color: var(--muted); }
819
- .fv-box { display: inline-flex; align-items: center; gap: 5px; color: var(--box); font-weight: 600; }
820
- .fv-box svg, .fv-banner .btn svg { width: 13px; height: 13px; }
809
+ .fv-banner .btn svg { width: 13px; height: 13px; }
821
810
  .fv-scroll { flex: 1; overflow: auto; background: var(--panel); }
822
811
  .fv-code { border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; min-width: 100%; }
823
812
  .fv-code td { padding: 0 12px; vertical-align: top; }
@@ -1178,49 +1167,16 @@ details.choice-foot .hint { display: block; margin-top: 6px; }
1178
1167
  @media (min-width: 901px) {
1179
1168
  .ws-body.tree-collapsed .pane-head { flex-direction: column; gap: 6px; }
1180
1169
  }
1181
- /* The folded Boxes pane's rail (rail.js): whose unfinished work is boxed. */
1170
+ /* The folded People pane's rail (rail.js): an avatar for each person here. */
1182
1171
  .tree-rail { display: none; }
1183
1172
  @media (min-width: 901px) {
1184
1173
  .ws-body.tree-collapsed .tree-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2px 0 12px; flex: none; }
1185
1174
  }
1186
- .rail-sig, .rail-who, .rail-more { position: relative; width: 32px; height: 32px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; cursor: pointer; }
1187
- .rail-sig:hover, .rail-who:hover, .rail-more:hover, .rail-sig:focus-visible, .rail-who:focus-visible, .rail-more:focus-visible, .rail-sig[aria-expanded="true"], .rail-who[aria-expanded="true"] { background: var(--panel-2); color: var(--text); outline: none; }
1188
- .rail-sig svg { width: 17px; height: 17px; }
1189
- .rail-n { position: absolute; right: -3px; bottom: -3px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--panel); color: var(--text); font-size: 9.5px; font-weight: 700; line-height: 13px; text-align: center; font-variant-numeric: tabular-nums; }
1190
- .rail-sig.box { color: var(--box); }
1191
- .rail-sig.box.none { color: var(--faint); }
1192
- .rail-sig.box.mine .rail-n { background: var(--box); border-color: var(--box); color: var(--panel); }
1175
+ .rail-who, .rail-more { position: relative; width: 32px; height: 32px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; cursor: pointer; }
1176
+ .rail-who:hover, .rail-more:hover, .rail-who:focus-visible, .rail-more:focus-visible { background: var(--panel-2); color: var(--text); outline: none; }
1193
1177
  .rail-who .avatar { width: 26px; height: 26px; font-size: 11px; }
1194
- .rail-who.ai .avatar { border-radius: 7px; } /* an AI's work: square, like the AI tag beside a lane's name */
1178
+ .rail-who.ai .avatar { border-radius: 7px; } /* an AI: square, like the AI tag beside a lane's name */
1195
1179
  .rail-more { font-size: 11px; font-weight: 700; }
1196
- .rail-sep { width: 18px; height: 1px; background: var(--border); margin: 2px 0; flex: none; }
1197
- /* The lock list beside the rail, or a Loom lane's "holds": who holds what, how long, why, who waits. */
1198
- .lk-pop {
1199
- position: fixed; z-index: 45; width: 300px; max-width: calc(100vw - 16px); max-height: min(70vh, 520px); overflow: auto; padding: 10px 0 8px;
1200
- background: var(--panel); border: 1px solid var(--border-strong); border-radius: 8px; box-shadow: var(--shadow-pop);
1201
- font-size: 12.5px; line-height: 1.4; color: var(--text);
1202
- }
1203
- .lk-pop.in { animation: tcard-in .14s cubic-bezier(.2, .8, .2, 1); }
1204
- @media (prefers-reduced-motion: reduce) { .lk-pop.in { animation: none; } }
1205
- .lk-head { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
1206
- .lk-total { font-variant-numeric: tabular-nums; }
1207
- .lk-list { list-style: none; margin: 0; padding: 0; }
1208
- .lk-row { padding: 7px 12px 8px; border-top: 1px solid var(--border); }
1209
- .lk-row.ours { background: color-mix(in srgb, var(--box) 6%, transparent); }
1210
- .lk-main { width: 100%; display: flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
1211
- .lk-main:disabled { cursor: default; }
1212
- .lk-main:not(:disabled):hover .lk-name, .lk-main:focus-visible .lk-name { text-decoration: underline; text-underline-offset: 3px; }
1213
- .lk-main:focus-visible { outline: none; }
1214
- .lk-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
1215
- .lk-name { flex: 1; min-width: 0; font-family: var(--mono); font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1216
- .lk-count { margin-left: 6px; font-family: var(--sans); font-weight: 500; color: var(--muted); }
1217
- .lk-held { flex: none; font-size: 11.5px; font-weight: 600; color: var(--box); font-variant-numeric: tabular-nums; }
1218
- .lk-dir { padding-left: 15px; font-family: var(--mono); font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1219
- .lk-who { padding-left: 15px; margin-top: 2px; color: var(--muted); overflow-wrap: anywhere; }
1220
- .lk-who b { font-weight: 600; color: var(--text); }
1221
- .lk-who i { font-style: normal; color: var(--faint); }
1222
- .lk-none { margin: 0; padding: 8px 12px 10px; border-top: 1px solid var(--border); color: var(--muted); }
1223
- .lk-foot { padding: 7px 12px 0; border-top: 1px solid var(--border); font-size: 11px; color: var(--faint); }
1224
1180
  .linkish { background: none; border: 0; padding: 0; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; overflow-wrap: anywhere; text-align: left; }
1225
1181
  .linkish.mono { font-family: var(--mono); font-size: 13px; }
1226
1182
  .linkish:hover { color: var(--accent); }
@@ -1492,46 +1448,6 @@ details.choice-foot .hint { display: block; margin-top: 6px; }
1492
1448
  .pm-list .pm-focus { padding: 0 8px 6px 50px; }
1493
1449
  .pm-list .pm-empty { padding: 6px 8px 8px; }
1494
1450
  .pm-list .pm-sep { margin: 6px 8px; }
1495
-
1496
- /* Boxes under each person (boxes.js; docs/mockups/2026-10-16-boxes.html, option C). A box is someone's
1497
- unfinished work on a file: amber. Its change opens in place, under its row. */
1498
- :root { --box: var(--warn); }
1499
- .pm-boxsum { color: var(--muted); font-size: 12px; }
1500
- .pm-boxes { display: grid; gap: 2px; padding: 0 8px 8px 50px; min-width: 0; }
1501
- .pm-box { display: flex; align-items: center; gap: 6px; min-width: 0; width: 100%; height: 28px; padding: 0 6px; border: 0; border-radius: 4px; background: none; color: var(--text); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
1502
- .pm-box:hover, .pm-box:focus-visible, .pm-box[aria-expanded="true"] { background: var(--panel-2); }
1503
- .pm-box svg { width: 13px; height: 13px; flex: none; color: var(--box); }
1504
- .pm-box-name { font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
1505
- .bx-delta { margin-left: auto; flex: none; font-family: var(--mono); font-size: 11px; white-space: nowrap; }
1506
- .bx-delta .add, .bx-head .add { color: var(--ok); }
1507
- .bx-delta .del, .bx-head .del { color: var(--bad); }
1508
- .bx-open { margin: 2px 0 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); overflow: hidden; min-width: 0; }
1509
- .bx-head { display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; font-size: 11.5px; line-height: 1.45; color: var(--muted); border-bottom: 1px solid var(--border); }
1510
- .bx-head b { color: var(--text); font-weight: 600; }
1511
- .bx-ico { display: grid; place-items: center; flex: none; padding-top: 2px; color: var(--box); }
1512
- .bx-ico svg { width: 13px; height: 13px; }
1513
- .bx-what { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
1514
- .bx-head .bx-delta { padding-top: 1px; }
1515
- .bx-diff { margin: 0; padding: 4px 0; max-height: 240px; overflow: auto; font-family: var(--mono); font-size: 11.5px; line-height: 1.55; }
1516
- .bx-diff .ln { display: block; padding: 0 8px; white-space: pre; min-width: max-content; }
1517
- .bx-diff .ln i { display: inline-block; width: 14px; font-style: normal; color: var(--muted); user-select: none; }
1518
- .bx-diff .ctx { color: var(--muted); }
1519
- .bx-diff .add { background: light-dark(#dcecdf, #1f4a2e); }
1520
- .bx-diff .add i { color: var(--ok); }
1521
- .bx-diff .del { background: light-dark(#f6e0dd, #55262a); }
1522
- .bx-diff .del i { color: var(--bad); }
1523
- .bx-diff .hunk { color: var(--faint); font-family: var(--sans); font-size: 11px; padding: 2px 8px; }
1524
- .bx-diff .hunk:not(:first-child) { margin-top: 4px; border-top: 1px dashed var(--border); padding-top: 4px; }
1525
- .bx-none { margin: 0; padding: 8px; font-size: 12px; color: var(--muted); }
1526
- .bx-foot { display: grid; grid-template-columns: minmax(0, 1fr); padding: 6px 8px 8px; border-top: 1px solid var(--border); }
1527
- .bx-foot .btn, .bx-unpack { width: 100%; height: 26px; font-size: 12px; font-weight: 600; gap: 6px; }
1528
- .bx-foot .btn svg, .bx-unpack svg { width: 13px; height: 13px; flex: none; }
1529
- .bx-unpack { margin: 2px 0 4px; color: var(--box); border-color: color-mix(in srgb, var(--box) 45%, var(--border-strong)); }
1530
- .bx-note { font-size: 12px; color: var(--muted); line-height: 1.4; }
1531
- .t-badge.box { background: color-mix(in srgb, var(--box) 16%, transparent); color: var(--box); }
1532
- .t-badge.box.own { background: color-mix(in srgb, var(--box) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--box) 40%, transparent); }
1533
- .t-row.ghost .t-name { color: var(--muted); font-style: italic; }
1534
- .t-badge.box.inside { background: transparent; border: 1px dashed color-mix(in srgb, var(--box) 45%, transparent); }
1535
1451
  .pm-what { color: var(--text); }
1536
1452
  .pm-dm { opacity: .55; }
1537
1453
  .pm-row:hover .pm-dm, .pm-dm:focus-visible { opacity: 1; }
@@ -2334,21 +2250,6 @@ label.radio:has(input:disabled) { cursor: default; opacity: .75; }
2334
2250
 
2335
2251
  /* the git panel, kept short: one line for the branch, one for GitHub, ten files a person */
2336
2252
  .cp-line { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12.5px; min-width: 0; }
2337
- /* Your work not committed (session.js mineHtml): two lines, boxed and shared, each opening to its files. */
2338
- .mw-head { display: flex; align-items: baseline; justify-content: space-between; }
2339
- .mw-head h4 { margin-top: 0; }
2340
- .mw-none { margin: 0 2px 4px; font-size: 12.5px; color: var(--muted); }
2341
- details.mw { margin: 0 0 4px; }
2342
- details.mw summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 4px; font-size: 13px; border-radius: 4px; }
2343
- details.mw summary::-webkit-details-marker { display: none; }
2344
- details.mw summary:hover { background: var(--panel-2); }
2345
- details.mw summary .hint { font-size: 12.5px; }
2346
- .mw-ico { width: 14px; height: 14px; display: grid; place-items: center; flex: none; }
2347
- .mw-ico svg { width: 14px; height: 14px; color: var(--box, var(--warn)); }
2348
- .mw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--edit); }
2349
- details.mw ul { list-style: none; margin: 0 0 6px; padding: 0 0 0 26px; }
2350
- details.mw li { min-height: 26px; display: flex; align-items: center; min-width: 0; }
2351
- details.mw li code { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
2352
2253
  .cp-line:last-child { margin-bottom: 0; }
2353
2254
  .cp-line > span:not(.sd) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2354
2255
  .cp-line .sd { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
@@ -2838,10 +2739,10 @@ body.has-asks .ws { height: calc(100vh - var(--update-bar, 0px) - var(--asks-bar
2838
2739
 
2839
2740
  /* ================================================================ feedback (feedback.js) */
2840
2741
  /* Report a bug and Suggest a feature: two round buttons that stay at the bottom left, under the
2841
- app's sidebar and under the Boxes pane in a session, side by side (one above the other when folded). */
2742
+ app's sidebar and under the People pane in a session, side by side (one above the other when folded). */
2842
2743
  .fb-dock { flex: none; display: flex; gap: 8px; align-items: center; padding: 10px 2px 0; background: var(--bg); z-index: 2; }
2843
2744
  .side .fb-dock { position: sticky; bottom: -14px; margin: 0 -14px -14px; padding: 10px 14px 14px; } /* stuck to the bottom while the sidebar scrolls */
2844
- .ws-boxes .fb-dock { padding: 10px 12px 12px; border-top: 1px solid var(--border); }
2745
+ .ws-people .fb-dock { padding: 10px 12px 12px; border-top: 1px solid var(--border); }
2845
2746
  .fb-btn { width: 34px; height: 34px; flex: none; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--panel); color: var(--muted); box-shadow: var(--shadow); cursor: pointer; transition: color .12s ease, border-color .12s ease, transform .12s ease; }
2846
2747
  .fb-btn svg { width: 16px; height: 16px; }
2847
2748
  .fb-btn:hover, .fb-btn:focus-visible { color: var(--text); border-color: var(--border-strong); outline: none; transform: translateY(-1px); }
@@ -2849,8 +2750,8 @@ body.has-asks .ws { height: calc(100vh - var(--update-bar, 0px) - var(--asks-bar
2849
2750
  .fb-btn.fb-feature:hover, .fb-btn.fb-feature:focus-visible { color: var(--warn); }
2850
2751
  @media (min-width: 901px) {
2851
2752
  .app-shell.side-collapsed .side .fb-dock { flex-direction: column; margin: 0 -10px -12px; padding: 10px 10px 12px; bottom: -12px; }
2852
- .ws-body.tree-collapsed .ws-boxes .fb-dock { flex-direction: column; padding: 10px 0 12px; border-top: 0; }
2853
- .ws-body.tree-collapsed .ws-boxes .fb-btn { width: 30px; height: 30px; }
2753
+ .ws-body.tree-collapsed .ws-people .fb-dock { flex-direction: column; padding: 10px 0 12px; border-top: 0; }
2754
+ .ws-body.tree-collapsed .ws-people .fb-btn { width: 30px; height: 30px; }
2854
2755
  }
2855
2756
  .fb-form h3 { display: flex; align-items: center; gap: 10px; }
2856
2757
  .fb-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--panel-2); color: var(--muted); flex: none; }
package/src/ui/common.js CHANGED
@@ -46,9 +46,6 @@ export const I = {
46
46
  chevDown: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>',
47
47
  caret: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"/></svg>',
48
48
  sparkle: '<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2l1.9 5.6L19.5 9.5l-5.6 1.9L12 17l-1.9-5.6L4.5 9.5l5.6-1.9z"/><path d="M19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8z"/></svg>',
49
- // A box: someone's unfinished work on a file (boxes.js). Unpack: the same box, opened upwards.
50
- box: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 8 12 3 3 8v8l9 5 9-5z"/><path d="m3 8 9 5 9-5"/><path d="M12 13v8"/></svg>',
51
- unpack: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 8 12 3 3 8v8l9 5 9-5z"/><path d="M12 13V7"/><path d="m9 10 3-3 3 3"/></svg>',
52
49
  plug: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 3v5M15 3v5M6 8h12v3a6 6 0 0 1-12 0zM12 17v4"/></svg>',
53
50
  lock: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="11" width="16" height="10" rx="2"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg>',
54
51
  down: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5v14M19 12l-7 7-7-7"/></svg>',
@@ -92,7 +89,7 @@ export const state = {
92
89
  pending: [], // files queued in the composer
93
90
  error: null,
94
91
  feeds: new Map(), // session id -> Map(person -> entries[])
95
- trees: new Map(), // session id -> { files, boxes }
92
+ trees: new Map(), // session id -> { files }
96
93
  files: new Map(), // `${id}\n${path}` -> file contents from /file
97
94
  ws: new Map(), // session id -> workspace layout (mode, tabs, expanded folders)
98
95
  accessTypes: null, // the account's access types (built-ins first), once loaded; null if the API can't be reached
@@ -1,5 +1,5 @@
1
1
  // Report a bug and Suggest a feature: two round buttons that stay at the bottom of the left
2
- // side (the app's sidebar, and the Boxes pane in a session). Each opens a short form; what you
2
+ // side (the app's sidebar, and the People pane in a session). Each opens a short form; what you
3
3
  // send becomes a task in To do on a session's board (feedback-model.js). A bug can carry a
4
4
  // screenshot (chosen, pasted or dropped), which is posted in that session's chat.
5
5
  import { esc, api, toast, state, basename } from './common.js'
@@ -10,7 +10,7 @@ const ICONS = {
10
10
  feature: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><path d="M9 18h6"/><path d="M10 22h4"/></svg>'
11
11
  }
12
12
 
13
- /** The two buttons. `where` names the place they sit, for tests and styles ('side' or 'boxes'). */
13
+ /** The two buttons. `where` names the place they sit, for tests and styles ('side' or 'people'). */
14
14
  export function feedbackDockHtml (where = 'side') {
15
15
  return `<div class="fb-dock fb-${esc(where)}" role="group" aria-label="Feedback">${['bug', 'feature'].map((k) =>
16
16
  `<button type="button" class="fb-btn fb-${k}" data-feedback="${k}" title="${esc(FEEDBACK[k].button)}" aria-label="${esc(FEEDBACK[k].button)}" aria-haspopup="dialog">${ICONS[k]}</button>`).join('')}</div>`
@@ -115,7 +115,7 @@ export function openFeedback (kind, { session = null, where = '', from = null }
115
115
  drop.addEventListener('drop', (e) => { e.preventDefault(); drop.classList.remove('over'); const f = e.dataTransfer?.files?.[0]; if (f) setShot(f) })
116
116
  form.addEventListener('paste', (e) => {
117
117
  const item = [...(e.clipboardData?.items || [])].find((i) => i.kind === 'file' && /^image\//.test(i.type))
118
- if (!item) return // text pastes into the boxes as usual
118
+ if (!item) return // text pastes into the fields as usual
119
119
  e.preventDefault()
120
120
  setShot(item.getAsFile())
121
121
  })
@@ -1,6 +1,6 @@
1
- // A read-only view of one shared file, with who's editing it, whose unfinished work is boxed on it, and
2
- // freshly changed lines highlighted for a few seconds. Its Changes tab lists
3
- // every change to the file with its diff (diffview.js).
1
+ // A read-only view of one shared file, with who's editing it and freshly changed
2
+ // lines highlighted for a few seconds. Its Changes tab lists every change to the
3
+ // file with its diff (diffview.js).
4
4
  import { esc, bytes, I, loadingNote } from './common.js'
5
5
  import { historyMarkup, changeCount } from './diffview.js'
6
6
  import { previewKind, FROM_BYTES, HAS_RAW, textKey, bytesPreviewHtml, prettyAndRawHtml, hydrate } from './preview.js'
@@ -11,7 +11,7 @@ const MAX_LINES = 20000
11
11
  * @param {HTMLElement} el
12
12
  * @param {object} o
13
13
  * @param {object|null} o.file response from /file, or { missing: true }
14
- * @param {object|null} o.meta tree entry ({ edited, box })
14
+ * @param {object|null} o.meta tree entry ({ edited })
15
15
  * @param {string} o.me
16
16
  * @param {string|null} o.prevText previous text, to highlight what changed
17
17
  * @param {'file'|'changes'} [o.tab] which tab is shown
@@ -27,16 +27,10 @@ export function renderFileView (el, { path, file, meta, me, prevText, bannerOnly
27
27
  if (meta && meta.chat) return bannerOnly && scroller && scroller.dataset.tab === 'chat' && scroller.dataset.path === path ? undefined : renderChatFile(el, { path, file, chat: meta.chat, me, href: chatHref, rawHref, keep: scroller && scroller.dataset.path === path ? keep : 0 })
28
28
 
29
29
  const edited = meta && meta.edited
30
- const box = meta && meta.box
31
30
  const editedText = edited ? `Edited by ${edited.by === me ? 'you' : esc(edited.by)} ${agoLong(edited.ts)}` : 'Not edited recently'
32
- // Someone's unfinished work on it (a box): shown, never a hold. Anyone may still edit it.
33
- const mine = box && (box.by === me || box.of === me)
34
- const boxText = box
35
- ? `<span class="fv-box" title="${esc(mine ? 'Your unfinished work: in your folder only, until you commit it' : `${box.by}'s unfinished work: not in your folder until they commit it. Editing it opens the box.`)}">${I.box}${mine ? 'Your unfinished work' : `${esc(box.by)}'s unfinished work`}</span>`
36
- : ''
37
31
 
38
- const banner = `<div class="fv-banner"><span class="fv-path mono">${esc(path)}</span><span class="fv-edited">${editedText}</span>${boxText}<span class="spacer"></span><span class="tag">Read-only</span></div>`
39
- // Refresh who-edited/box info without re-rendering (and un-highlighting) the code.
32
+ const banner = `<div class="fv-banner"><span class="fv-path mono">${esc(path)}</span><span class="fv-edited">${editedText}</span><span class="spacer"></span><span class="tag">Read-only</span></div>`
33
+ // Refresh who edited it without re-rendering (and un-highlighting) the code.
40
34
  const existing = el.querySelector('.fv-banner')
41
35
  if (bannerOnly && existing && scroller && scroller.dataset.path === path) { existing.outerHTML = banner; return }
42
36
 
@@ -1,40 +1,24 @@
1
- // The folded Boxes pane's rail (rail.js): whose unfinished work is boxed, as signals instead of
2
- // names. Nobody holds files (no-holds, 2026-11-13): a box is someone's unfinished work on one file,
3
- // kept out of other folders until it is committed; anyone may still edit it (that opens the box).
4
- // Pure, so tests can run it without a page.
5
- import { stitchTime } from './loom-model.js'
1
+ // The folded People pane's rail (rail.js): who is here, as avatars instead of rows. Pure, so tests
2
+ // can run it without a page.
3
+
4
+ export const RAIL_PEOPLE = 5 // avatars on the rail; past that, a "+N"
5
+
6
+ /** What an avatar says on hover: who it is and what they are working on ("Dex: the sign-in form"). */
7
+ export const railTitle = (p) => `${p.label || p.name}${p.what ? `: ${p.what}` : ''}`
6
8
 
7
9
  /**
8
- * Everything the rail and its box list show. `boxes`: the session's ({ pattern, by, of?, ts, note,
9
- * active }); `me`: your name; `owners`: AI session name -> its person (chat.js aiOwners): a person's
10
- * AI sessions' boxes are that person's; `focusOf`: name -> what they said they're doing (a box's why
11
- * when it has no note); `kindOf`: name -> 'agent' for an AI agent. Returns { items, people, mine },
12
- * items oldest first.
10
+ * The rail's avatars. `people`: the pane's rows in their order (you first), each { name, label?,
11
+ * what?, ai?, color?, online? }: `label` is how the row names them ("Ann (you)", "Your AI"),
12
+ * `what` what they are working on, `ai` an AI's row (drawn square). Returns { shown, more, rest }:
13
+ * the avatars, how many people have none, and those people's titles for the "+N".
13
14
  */
14
- export function railModel ({ boxes = [], me = '', owners = new Map(), focusOf = () => '', kindOf = () => '', now = Date.now() } = {}) {
15
- // A person's AI sessions box as that person ("Daniel · Claude Code 3" is Daniel).
16
- const personOf = (c) => owners.get(c.by) || c.of || c.by
17
- const items = (boxes || []).filter((c) => c && c.pattern && c.by).map((c) => {
18
- const person = personOf(c)
19
- return {
20
- pattern: c.pattern,
21
- path: String(c.pattern),
22
- by: person,
23
- mine: person === me,
24
- away: c.active === false,
25
- since: c.ts || now,
26
- why: c.note && c.note !== 'editing' ? c.note.replace(/^editing: /, '') : focusOf(c.by) || ''
27
- }
28
- }).sort((a, b) => a.since - b.since)
29
-
30
- const people = []
31
- for (const it of items) {
32
- let p = people.find((x) => x.name === it.by)
33
- if (!p) people.push(p = { name: it.by, mine: it.mine, ai: kindOf(it.by) === 'agent', count: 0 })
34
- p.count++
15
+ export function railModel ({ people = [], max = RAIL_PEOPLE } = {}) {
16
+ const all = (people || []).filter((p) => p && p.name)
17
+ // One past the cap is shown whole: a "+1" would take the room of the avatar it hides.
18
+ const shown = all.length > max + 1 ? all.slice(0, max) : all
19
+ return {
20
+ shown: shown.map((p) => ({ name: p.name, title: railTitle(p), ai: !!p.ai, color: p.color || null, online: p.online ?? false })),
21
+ more: all.length - shown.length,
22
+ rest: all.slice(shown.length).map(railTitle)
35
23
  }
36
- return { items, people, mine: items.filter((it) => it.mine).length }
37
24
  }
38
-
39
- /** "25m", how long a box has had unfinished work in it. */
40
- export const boxedFor = (it, now = Date.now()) => stitchTime(it.since, now)