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.
- package/README.md +6 -3
- package/RELEASES.md +30 -0
- package/bin/quilt.js +1 -75
- package/desktop/main.js +22 -9
- package/package.json +2 -3
- package/src/ai-vm.js +1 -1
- package/src/api/memory-store.js +1 -5
- package/src/api/server.js +4 -45
- package/src/api/supabase-store.js +0 -10
- package/src/autowork.js +7 -142
- package/src/base-pick.js +125 -12
- package/src/branch-view.js +1 -1
- package/src/connection.js +12 -37
- package/src/control.js +16 -93
- package/src/fsutil.js +1 -1
- package/src/git-aside.js +70 -0
- package/src/github-commit.js +1 -2
- package/src/gitstate.js +326 -0
- package/src/held.js +12 -53
- package/src/history.js +1 -25
- package/src/live-merge.js +42 -161
- package/src/mcp.js +6 -90
- package/src/merge3.js +21 -5
- package/src/pathrules.js +1 -1
- package/src/protocol.js +6 -11
- package/src/read-bases.js +3 -5
- package/src/relay-live-write.js +37 -44
- package/src/relay-mcp.js +30 -164
- package/src/relay-prune.js +3 -6
- package/src/relay-turn-sync.js +7 -11
- package/src/runner.js +2 -4
- package/src/server.js +61 -1717
- package/src/session.js +895 -844
- package/src/setup.js +11 -3
- package/src/status.js +2 -5
- package/src/swap-in.js +56 -13
- package/src/turn-sync-plan.js +2 -2
- package/src/turn-sync.js +1 -1
- package/src/ui/agent-guide.js +3 -1
- package/src/ui/app.css +4 -96
- package/src/ui/app.js +1 -1
- package/src/ui/chat.js +2 -6
- package/src/ui/cloud-ai-model.js +0 -13
- package/src/ui/cloud-ai.js +2 -10
- package/src/ui/connections.js +2 -1
- package/src/ui/fileview.js +7 -20
- package/src/ui/git-rule.js +2 -13
- package/src/ui/home.js +2 -8
- package/src/ui/session-words.js +27 -0
- package/src/ui/session.js +34 -407
- package/src/ui-server.js +7 -56
- package/src/api/routes/seam-connect.js +0 -103
- package/src/api/routes/session-migrate.js +0 -39
- package/src/force-date.js +0 -27
- package/src/quilt-default.js +0 -84
- package/src/quilt-history.js +0 -106
- package/src/quilt-remote.js +0 -78
- package/src/seam-access.js +0 -97
- package/src/seam-url.js +0 -15
- package/src/session-follow.js +0 -583
- package/src/session-layout3.js +0 -466
- package/src/session-migrate.js +0 -123
- package/src/session-quilt.js +0 -126
- package/src/session-seam.js +0 -312
- package/src/source-live/bring-in.js +0 -391
- package/src/source-live/land.js +0 -410
- package/src/source-live/live-block.js +0 -1166
- package/src/source-live/live-square.js +0 -116
- package/src/ui/force-words.js +0 -19
- package/src/ui/quiltview.js +0 -213
- package/src/ui/seam-model.js +0 -309
package/src/ui/git-rule.js
CHANGED
|
@@ -48,22 +48,11 @@ const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&', '
|
|
|
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
|
|
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>
|
|
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
|
|
1016
|
-
*
|
|
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
|
+
}
|