heyquilt 0.3.180 → 0.3.181

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/RELEASES.md CHANGED
@@ -11,6 +11,10 @@ Format: `## <version> — <YYYY-MM-DD>`, an optional one-line summary, then bull
11
11
  Lead each bullet with a short bold phrase. Inline `code` and **bold** are rendered;
12
12
  nothing else is.
13
13
 
14
+ ## 0.3.181 — 2026-11-19
15
+
16
+ - **An agent goes back to main when its ticket is done.** An agent works on its ticket's branch, and once the ticket is moved to Done, by the agent or by you, its folder returns to the main branch by itself. Its next ticket starts from there. If it still has changes of its own on the branch that are not committed, it stays and says so. Your own folder is never moved.
17
+
14
18
  ## 0.3.180 — 2026-11-19
15
19
 
16
20
  - **You stay with your partner unless you choose a ticket.** In 0.3.179 your folder moved onto a ticket's branch whenever your AI marked a ticket as in progress, which could split you from the person you were building with. Now a person's folder moves only when that person clicks **Open ticket** on the board. Hop in a session and build, with no tickets, and you are both on the same branch, live, as before. Agents that are members of their own are still moved onto the ticket's branch when they take it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heyquilt",
3
- "version": "0.3.180",
3
+ "version": "0.3.181",
4
4
  "description": "Real-time, tool-agnostic pair vibe coding: sync a project folder live between collaborators using any AI coding tool.",
5
5
  "author": {
6
6
  "name": "Daniel Carmichael",
@@ -24,7 +24,7 @@ export const TASK_WORKFLOW =
24
24
  'When finished, move the ticket to QA (not straight to Done) with `qaNotes`: describe the changes you made and how you self-validated them. ' +
25
25
  'Keep qaNotes, verified and task comments brief: a few short sentences, no logs or play-by-play. ' +
26
26
  'Moving to Done still requires `verified` (what you ran and what you saw). Unit tests passing is not enough when the app itself was not exercised. ' +
27
- 'Get the task\'s files into git before you move it to QA: commit only the files you changed, and push. A ticket can have a branch of its own (quilt/<ticket>), where everyone who has the ticket open works together. A person opens one from the board when they want it, and their folder stays where it is otherwise: taking a ticket never moves a person\'s folder. An agent that joined as its own member is moved onto the ticket\'s branch when it takes the ticket: it pushes that branch and opens the pull request itself, and its ticket moves to QA only once the branch is committed and pushed. Quilt does not commit, push, open pull requests or merge them for anyone. Without a folder you cannot commit: say in `qaNotes` which files need committing. Work only in the session has not shipped.'
27
+ 'Get the task\'s files into git before you move it to QA: commit only the files you changed, and push. A ticket can have a branch of its own (quilt/<ticket>), where everyone who has the ticket open works together. A person opens one from the board when they want it, and their folder stays where it is otherwise: taking a ticket never moves a person\'s folder. An agent that joined as its own member is moved onto the ticket\'s branch when it takes the ticket: it pushes that branch and opens the pull request itself, its ticket moves to QA only once the branch is committed and pushed, and when the ticket is Done its folder goes back to the main branch. Quilt does not commit, push, open pull requests or merge them for anyone. Without a folder you cannot commit: say in `qaNotes` which files need committing. Work only in the session has not shipped.'
28
28
 
29
29
  /**
30
30
  * What an AI is told after taking a ticket about the branch its folder is on (Session.openTask's
@@ -48,7 +48,7 @@ export const TASK_WORKFLOW_MD =
48
48
  ' 5. **QA**: move to `qa` (not straight to Done) with `qaNotes` describing the changes and how you self-validated them.\n' +
49
49
  ' Keep `qaNotes`, `verified` and task comments brief: a few short sentences, no logs or play-by-play.\n' +
50
50
  ' 6. **Done** (after QA): `quilt_move_task` to `done` needs `verified`, what you ran and what you saw. Unit tests passing is not enough when the app itself was not exercised.\n' +
51
- ' 7. **Commit and push** before QA: only the files you changed, with a message. A ticket can have a branch of its own (quilt/<ticket>), where everyone who has the ticket open works together. A person opens one from the board when they want it, and their folder stays where it is otherwise: taking a ticket never moves a person\'s folder. An agent that joined as its own member is moved onto the ticket\'s branch when it takes the ticket: it pushes that branch and opens the pull request itself, and its ticket moves to QA only once the branch is committed and pushed. Quilt does not commit, push or merge for anyone. Without a folder you cannot commit: say in `qaNotes` which files need committing. Work only in the session has not shipped.'
51
+ ' 7. **Commit and push** before QA: only the files you changed, with a message. A ticket can have a branch of its own (quilt/<ticket>), where everyone who has the ticket open works together. A person opens one from the board when they want it, and their folder stays where it is otherwise: taking a ticket never moves a person\'s folder. An agent that joined as its own member is moved onto the ticket\'s branch when it takes the ticket: it pushes that branch and opens the pull request itself, its ticket moves to QA only once the branch is committed and pushed, and when the ticket is Done its folder goes back to the main branch. Quilt does not commit, push or merge for anyone. Without a folder you cannot commit: say in `qaNotes` which files need committing. Work only in the session has not shipped.'
52
52
 
53
53
  /** Scaffolded into AGENTS.md by `quilt setup` when the project has no checklist yet. Owners edit it in place. */
54
54
  export const CHECKLIST_SCAFFOLD = `${CHECKLIST_HEADING}
package/src/session.js CHANGED
@@ -855,6 +855,7 @@ export class Session extends EventEmitter {
855
855
  this.tasks.observe((ev, tr) => {
856
856
  this.scanInbox({ quiet: tr.origin === LOCAL })
857
857
  this.scheduleStatusWrite()
858
+ this.leaveClosedTicket()
858
859
  })
859
860
  this.taskComments.observe(() => this.scheduleStatusWrite())
860
861
  // Held conflicts (held.js): the app and quilt_status show every open one as it comes and goes.
@@ -2525,7 +2526,8 @@ export class Session extends EventEmitter {
2525
2526
  // gets that work until it is merged. The first to open a ticket makes its branch from the latest
2526
2527
  // commit of the branch they are on, without the uncommitted work everyone has there (the session
2527
2528
  // keeps that there). An agent's ticket moves to QA only once its work on the branch is committed
2528
- // and pushed. Nobody has to open a ticket: a folder stays on whatever branch git has it on.
2529
+ // and pushed, and once its ticket is Done its folder goes back to the default branch. Nobody has to
2530
+ // open a ticket: a folder stays on whatever branch git has it on.
2529
2531
 
2530
2532
  /** One move between branches at a time in this folder (two at once fought over git's index). */
2531
2533
  branchMove (fn) {
@@ -2630,6 +2632,40 @@ export class Session extends EventEmitter {
2630
2632
  return { branch: name, from, ...(again ? { again: true } : {}), ...(remote ? { remote: true } : {}) }
2631
2633
  }
2632
2634
 
2635
+ /**
2636
+ * An agent whose ticket was closed (moved to Done, by itself or by anyone) is finished there: its
2637
+ * folder goes back to the session's default branch, where its next ticket starts from. Not while it
2638
+ * has work of its own on the branch that is not committed (said once), and never a person's folder:
2639
+ * people choose their branch themselves.
2640
+ */
2641
+ leaveClosedTicket () {
2642
+ if (this.kind !== 'agent' || this.stopped || !this.ready || !this.git || !this.git.branch || !this.git.branch.startsWith(TICKET_PREFIX)) return
2643
+ const task = this.openedTask()
2644
+ if (!task || task.column !== 'done') { this.closedSaid = null; return }
2645
+ if (this.leavingClosed) return
2646
+ this.leavingClosed = this.branchMove(async () => {
2647
+ if (this.stopped || !this.git || this.git.branch !== task.branch) return
2648
+ const now = this.taskList().find((t) => t && t.id === task.id)
2649
+ if (!now || now.column !== 'done') return
2650
+ const dirty = await this.ownUncommitted()
2651
+ if (dirty.length) {
2652
+ if (this.closedSaid !== task.id) {
2653
+ this.closedSaid = task.id
2654
+ const text = `"${task.title}" is done, but ${dirty.slice(0, 4).join(', ')}${dirty.length > 4 ? ` and ${dirty.length - 4} more` : ''} ${dirty.length === 1 ? 'is' : 'are'} not committed on ${task.branch}, so this folder stays there. Commit (or put back) your changes, then go back with \`git checkout -f ${this.defaultBranch()}\`.`
2655
+ this.log(`🌿 ${text}`)
2656
+ this.notice(text)
2657
+ }
2658
+ return
2659
+ }
2660
+ const r = await this.leaveTaskNow()
2661
+ if (r && r.branch) {
2662
+ const text = `"${task.title}" is done: this folder is back on ${r.branch}. Your next ticket starts from there.`
2663
+ this.log(`🌿 ${text}`)
2664
+ this.notice(text)
2665
+ }
2666
+ }).catch(() => {}).finally(() => { this.leavingClosed = null })
2667
+ }
2668
+
2633
2669
  /** Back to the session's default branch from a ticket's. { branch, from }, { stayed, why }, or null when no ticket's branch is checked out. */
2634
2670
  async leaveTaskNow () {
2635
2671
  if (this.stopped || !this.git || !this.git.branch || !this.git.branch.startsWith(TICKET_PREFIX)) return null
@@ -97,7 +97,7 @@ export function agentGuide ({ apiUrl = 'https://api.heyquilt.com', via = 'both'
97
97
  '',
98
98
  '### Getting your work into git',
99
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. A ticket is a unit of work, and its work is on a branch of its own, quilt/<ticket>. Taking a ticket (\`quilt_move_task\` to doing) moves your folder onto that branch, made from the latest commit when nobody opened the ticket before (an agent's folder only: a person's stays where it is unless they open the ticket from the board). Everyone who has the ticket open works there together, live; nobody else gets that work 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\`). Your ticket 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,
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. A ticket is a unit of work, and its work is on a branch of its own, quilt/<ticket>. Taking a ticket (\`quilt_move_task\` to doing) moves your folder onto that branch, made from the latest commit when nobody opened the ticket before (an agent's folder only: a person's stays where it is unless they open the ticket from the board). Everyone who has the ticket open works there together, live; nobody else gets that work 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\`). Your ticket moves to QA only once the branch is committed and pushed. When your ticket is Done, your folder goes back to the main branch by itself; a quick fix that needs no ticket can be made there. Quilt does not commit, push, open pull requests or merge them for anyone.` : null,
101
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,
102
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
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,