heyquilt 0.3.174 → 0.3.176

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.
Files changed (71) hide show
  1. package/README.md +6 -3
  2. package/RELEASES.md +30 -0
  3. package/bin/quilt.js +1 -75
  4. package/desktop/main.js +22 -9
  5. package/package.json +2 -3
  6. package/src/ai-vm.js +1 -1
  7. package/src/api/memory-store.js +1 -5
  8. package/src/api/server.js +4 -45
  9. package/src/api/supabase-store.js +0 -10
  10. package/src/autowork.js +7 -142
  11. package/src/base-pick.js +125 -12
  12. package/src/branch-view.js +1 -1
  13. package/src/connection.js +12 -37
  14. package/src/control.js +16 -93
  15. package/src/fsutil.js +1 -1
  16. package/src/git-aside.js +70 -0
  17. package/src/github-commit.js +1 -2
  18. package/src/gitstate.js +326 -0
  19. package/src/held.js +12 -53
  20. package/src/history.js +1 -25
  21. package/src/live-merge.js +42 -161
  22. package/src/mcp.js +6 -90
  23. package/src/merge3.js +21 -5
  24. package/src/pathrules.js +1 -1
  25. package/src/protocol.js +6 -11
  26. package/src/read-bases.js +3 -5
  27. package/src/relay-live-write.js +37 -44
  28. package/src/relay-mcp.js +30 -164
  29. package/src/relay-prune.js +3 -6
  30. package/src/relay-turn-sync.js +7 -11
  31. package/src/runner.js +2 -4
  32. package/src/server.js +61 -1717
  33. package/src/session.js +895 -844
  34. package/src/setup.js +11 -3
  35. package/src/status.js +2 -5
  36. package/src/swap-in.js +56 -13
  37. package/src/turn-sync-plan.js +2 -2
  38. package/src/turn-sync.js +1 -1
  39. package/src/ui/agent-guide.js +3 -1
  40. package/src/ui/app.css +4 -96
  41. package/src/ui/app.js +1 -1
  42. package/src/ui/chat.js +2 -6
  43. package/src/ui/cloud-ai-model.js +0 -13
  44. package/src/ui/cloud-ai.js +2 -10
  45. package/src/ui/connections.js +2 -1
  46. package/src/ui/fileview.js +7 -20
  47. package/src/ui/git-rule.js +2 -13
  48. package/src/ui/home.js +2 -8
  49. package/src/ui/session-words.js +27 -0
  50. package/src/ui/session.js +34 -407
  51. package/src/ui-server.js +7 -56
  52. package/src/api/routes/seam-connect.js +0 -103
  53. package/src/api/routes/session-migrate.js +0 -39
  54. package/src/force-date.js +0 -27
  55. package/src/quilt-default.js +0 -84
  56. package/src/quilt-history.js +0 -106
  57. package/src/quilt-remote.js +0 -78
  58. package/src/seam-access.js +0 -97
  59. package/src/seam-url.js +0 -15
  60. package/src/session-follow.js +0 -583
  61. package/src/session-layout3.js +0 -466
  62. package/src/session-migrate.js +0 -123
  63. package/src/session-quilt.js +0 -126
  64. package/src/session-seam.js +0 -312
  65. package/src/source-live/bring-in.js +0 -391
  66. package/src/source-live/land.js +0 -410
  67. package/src/source-live/live-block.js +0 -1166
  68. package/src/source-live/live-square.js +0 -116
  69. package/src/ui/force-words.js +0 -19
  70. package/src/ui/quiltview.js +0 -213
  71. package/src/ui/seam-model.js +0 -309
@@ -48,22 +48,11 @@ const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '
48
48
 
49
49
  /**
50
50
  * The app's Settings (for every session) opened from inside a session: a card at the top of its Version
51
- * control section that says what git is in this session, as its Session settings say it (the same values:
52
- * the session's own choice, capped by a rule above it, and its status line), with the button that opens
53
- * `session`: { name, value, rule, words }.
51
+ * control section that says what git is in this session. `session`: { name }.
54
52
  */
55
53
  export function thisSessionGitHtml (session) {
56
54
  if (!session) return ''
57
- // A session in Seam (`seam`: its quilt): people and AIs commit in their squares; git's choice is put away until it moves back.
58
- if (session.seam) {
59
- return `<section class="card settings-sec" id="this-session-git-sec">
60
- <div class="sec-intro"><h2>This session${session.name ? `: ${esc(session.name)}` : ''}</h2><p>This session's code is committed and merged in Seam, as the quilt ${esc(session.seam)}; the session itself is Quilt. Everyone's folder follows its square, people and their AIs commit there and merge onto main, and GitHub gets main from Seam by itself.</p></div>
61
- <div class="sec-body">
62
- <div class="sec-actions"><span class="hint">Where this session's history is, in one place.</span><button class="btn" type="button" data-open-session-vc>Open Session settings</button></div>
63
- </div>
64
- </section>`
65
- }
66
55
  return `<section class="card settings-sec" id="this-session-git-sec">
67
- <div class="sec-intro"><h2>This session${session.name ? `: ${esc(session.name)}` : ''}</h2><p>This session's code is not in Seam yet: its owner makes it a quilt from Session settings.</p></div>
56
+ <div class="sec-intro"><h2>This session${session.name ? `: ${esc(session.name)}` : ''}</h2><p>Source control here is git: you and your AI commit, pull and push in this session's folder as usual, and Quilt shares everyone's files live in between.</p></div>
68
57
  </section>`
69
58
  }
package/src/ui/home.js CHANGED
@@ -1012,9 +1012,8 @@ function bindSettings (root, refresh) {
1012
1012
  * the cards in place.
1013
1013
  */
1014
1014
  /**
1015
- * The Settings window. `opts.session` (from inside a session): { name, value, rule, words, open } where
1016
- * `open(tab)` opens that session's Session settings; its Version control section then starts with what git
1017
- * is in that session, and a button to its Session settings, so the two windows never disagree.
1015
+ * The Settings window. `opts.session` (from inside a session): { name }; its Version control section then
1016
+ * starts with what git is in that session.
1018
1017
  */
1019
1018
  export function openSettings (opts = {}) {
1020
1019
  const session = opts.session || null
@@ -1086,10 +1085,5 @@ export function openSettings (opts = {}) {
1086
1085
  back.addEventListener('mousedown', (e) => { if (e.target === back) close() })
1087
1086
  back.addEventListener('keydown', (e) => { if (e.key === 'Escape') close() })
1088
1087
  back.addEventListener('click', (e) => { if (e.target.closest('[data-settings-close]')) close() })
1089
- body.addEventListener('click', (e) => {
1090
- if (!session || !e.target.closest('[data-open-session-vc]')) return
1091
- close()
1092
- session.open('vc')
1093
- })
1094
1088
  nav.querySelector('.ss-tab.on')?.focus()
1095
1089
  }
@@ -0,0 +1,27 @@
1
+ // Words the app says about a session, kept apart from the page so they can be tested without one.
2
+
3
+ /**
4
+ * The words for a session that stopped by itself (the relay sent this app away, its owner ended it, ...):
5
+ * `session` the app's record of it (for its name), `why` what Quilt was told.
6
+ */
7
+ export function stoppedWords (session, why) {
8
+ const st = session && session.status
9
+ const name = (st && st.sessionName) || (session && session.dir ? String(session.dir).split(/[\\/]/).filter(Boolean).pop() : '') || 'The session'
10
+ return `${name} stopped: ${String(why || '').replace(/^Relay refused connection: /, '')}`
11
+ }
12
+
13
+ /**
14
+ * Open held conflicts (status `held`, held.js): two edits changed the same lines, or a write removed
15
+ * lines someone just added, or a merge would not parse. The file keeps what landed first and the
16
+ * other lines wait for an AI to resolve them. { title, text }, or null with none open.
17
+ */
18
+ export function heldCard (st) {
19
+ const open = ((st && st.held) || []).filter((r) => r && r.state === 'open')
20
+ if (!open.length) return null
21
+ const me = st.me && st.me.name
22
+ const named = open.slice(0, 3).map((r) => `${r.path} (${r.by === me ? 'yours' : `${r.by}'s`})`).join(', ')
23
+ return {
24
+ title: `${open.length} open conflict${open.length === 1 ? '' : 's'}`,
25
+ text: `Changes to ${named}${open.length > 3 ? ` and ${open.length - 3} more` : ''} were held back: each file keeps the version that landed first, and the held lines wait for an AI to resolve them. Every AI in the session sees ${open.length === 1 ? 'it' : 'them'} at the top of its next answer; ask yours to take ${open.length === 1 ? 'it' : 'them'}.`
26
+ }
27
+ }