heyquilt 0.3.182 → 0.3.183
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 +101 -97
- package/RELEASES.md +8 -0
- package/bin/quilt.js +32 -32
- package/desktop/main.js +1 -1
- package/package.json +1 -1
- package/src/account.js +2 -2
- package/src/admit-policy.js +2 -2
- package/src/agent-join.js +3 -3
- package/src/agent-task-workflow.js +14 -14
- package/src/ai-vm.js +1 -1
- package/src/api/agent-placement.js +2 -2
- package/src/api/audit.js +1 -1
- package/src/api/file-paths.js +1 -1
- package/src/api/file-store.js +1 -1
- package/src/api/invite-email.js +4 -4
- package/src/api/join-text.js +5 -5
- package/src/api/notify.js +7 -7
- package/src/api/permissions.js +1 -1
- package/src/api/routes/agent-wake.js +1 -1
- package/src/api/routes/agents.js +2 -2
- package/src/api/routes/ai-vm.js +5 -5
- package/src/api/routes/connections.js +13 -13
- package/src/api/routes/grants.js +2 -2
- package/src/api/routes/mail.js +10 -10
- package/src/api/routes/relay.js +1 -1
- package/src/api/routes/secrets.js +11 -11
- package/src/api/routes/session-invites.js +5 -5
- package/src/api/routes/sessions.js +3 -3
- package/src/api/routes/workspace-agents.js +14 -14
- package/src/api/routes/workspace-files.js +12 -12
- package/src/api/routes/workspace-invites.js +5 -5
- package/src/api/routes/workspaces.js +11 -11
- package/src/api/secrets-access.js +1 -1
- package/src/api/server.js +3 -3
- package/src/api/team-access.js +1 -1
- package/src/api/workspace-access.js +1 -1
- package/src/api/workspace-reach.js +3 -3
- package/src/app-tools.js +10 -10
- package/src/autowork.js +4 -4
- package/src/branch-view.js +1 -1
- package/src/catchup.js +5 -5
- package/src/chat-links.js +18 -18
- package/src/connection.js +11 -11
- package/src/control.js +5 -5
- package/src/conversation.js +1 -1
- package/src/doctor.js +2 -2
- package/src/duties.js +1 -1
- package/src/fsutil.js +1 -1
- package/src/held.js +4 -4
- package/src/hooks.js +3 -3
- package/src/hosted-client.js +2 -2
- package/src/identity.js +1 -1
- package/src/inbox.js +1 -1
- package/src/key-cli.js +1 -1
- package/src/mail-tools.js +11 -11
- package/src/mcp-proxy.js +1 -1
- package/src/mcp.js +59 -59
- package/src/new-session.js +6 -6
- package/src/project-rules.js +2 -2
- package/src/relay-ask.js +2 -2
- package/src/relay-cluster.js +3 -3
- package/src/relay-live-write.js +3 -3
- package/src/relay-mcp.js +56 -56
- package/src/relay-prune.js +1 -1
- package/src/relay-turn-sync.js +1 -1
- package/src/secret-import.js +1 -1
- package/src/secret-names.js +6 -6
- package/src/secret-run.js +3 -3
- package/src/server.js +41 -41
- package/src/session-access.js +3 -3
- package/src/session-name.js +1 -1
- package/src/session.js +50 -50
- package/src/setup.js +7 -7
- package/src/status.js +2 -2
- package/src/tasks.js +1 -1
- package/src/turn-sync.js +4 -4
- package/src/ui/account-sessions.js +2 -2
- package/src/ui/agent-env-key.js +1 -1
- package/src/ui/agent-guide.js +35 -35
- package/src/ui/agent-kinds.js +8 -8
- package/src/ui/agent-place.js +16 -16
- package/src/ui/agents-table.js +6 -6
- package/src/ui/app.css +331 -0
- package/src/ui/app.js +28 -13
- package/src/ui/board.js +2 -2
- package/src/ui/catchup.js +5 -5
- package/src/ui/changes-seen.js +2 -2
- package/src/ui/changes.js +3 -3
- package/src/ui/cloud-ai.js +12 -12
- package/src/ui/common.js +1 -1
- package/src/ui/connections.js +1 -1
- package/src/ui/diffview.js +2 -2
- package/src/ui/feed.js +1 -1
- package/src/ui/feedback.js +4 -4
- package/src/ui/files.js +120 -14
- package/src/ui/fileview.js +3 -3
- package/src/ui/git-rule.js +3 -3
- package/src/ui/home.js +92 -47
- package/src/ui/index.html +1 -1
- package/src/ui/invite.js +8 -8
- package/src/ui/invites.js +3 -3
- package/src/ui/new-session.js +3 -3
- package/src/ui/prail-model.js +22 -0
- package/src/ui/prail.js +43 -0
- package/src/ui/project-board.js +359 -0
- package/src/ui/project-model.js +197 -0
- package/src/ui/project-pop.js +451 -0
- package/src/ui/projects.js +406 -0
- package/src/ui/sandbox-keys.js +3 -3
- package/src/ui/secrets-view.js +5 -5
- package/src/ui/session-words.js +2 -2
- package/src/ui/session.js +156 -43
- package/src/ui/tree.js +3 -3
- package/src/ui/voice.js +6 -6
- package/src/ui/workspaces.js +23 -23
- package/src/ui-server.js +78 -24
- package/src/update-check.js +2 -2
- package/src/voice.js +7 -7
- package/src/wake-tool.js +1 -1
- package/src/webhooks.js +1 -1
- package/src/workspace-cli.js +12 -12
- package/src/workspace-tools.js +33 -33
package/src/session.js
CHANGED
|
@@ -154,7 +154,7 @@ const UPSTREAM_MS = Number(process.env.QUILT_UPSTREAM_MS) || 60 * 1000
|
|
|
154
154
|
const CATCHER_WAIT_MS = 2 * 60 * 1000
|
|
155
155
|
const CATCHER_WAITING = 'another member is bringing these commits in'
|
|
156
156
|
// On a branch that syncs live with GitHub, the relay brings GitHub's commits in and folders follow them (bringIn).
|
|
157
|
-
const RELAY_WAITING = 'the relay is bringing these commits into the
|
|
157
|
+
const RELAY_WAITING = 'the relay is bringing these commits into the codebase'
|
|
158
158
|
// How long a git pull's settle waits for the relay to be at the pulled commit before sharing it as before (planSettle).
|
|
159
159
|
const RELAY_PULL_WAIT_MS = 15 * 1000
|
|
160
160
|
const RELAY_ASK_EVERY_MS = 5 * 1000 // a folder waiting for the relay asks it again this often (server.js SYNC_EVERY_GIT_MS)
|
|
@@ -516,7 +516,7 @@ export class Session extends EventEmitter {
|
|
|
516
516
|
const mine = this.branchList.find((b) => b.key === this.branch)
|
|
517
517
|
if (mine && mine.full && this.fullSaid !== mine.key) {
|
|
518
518
|
this.fullSaid = mine.key
|
|
519
|
-
const msg = `${mine.key} is over the
|
|
519
|
+
const msg = `${mine.key} is over the codebase's size limit for one branch, so the relay takes no new changes on it; they stay in this folder. Other branches, chat and tasks carry on as usual. To keep syncing, start a fresh copy with \`git checkout -b <new name>\`: your changes since are kept in this folder.`
|
|
520
520
|
this.log(`⚠️ ${msg}`)
|
|
521
521
|
this.notice(msg)
|
|
522
522
|
} else if (mine && !mine.full && this.fullSaid === mine.key) this.fullSaid = null
|
|
@@ -557,7 +557,7 @@ export class Session extends EventEmitter {
|
|
|
557
557
|
this.saveHeldBases([])
|
|
558
558
|
this.observeBranch()
|
|
559
559
|
this.awayBackups = []
|
|
560
|
-
const msg = `${this.branch} was removed from the
|
|
560
|
+
const msg = `${this.branch} was removed from the codebase (nobody was on it for 30 days) and has been started again since, so this folder joined it fresh: the codebase's files there are on disk, and your versions that differ are kept in .quilt/conflicts.`
|
|
561
561
|
// As at a first join: what differs is backed up once, by reconcileFirstJoin, not again as a live clash.
|
|
562
562
|
const ready = this.ready
|
|
563
563
|
this.ready = false
|
|
@@ -726,13 +726,13 @@ export class Session extends EventEmitter {
|
|
|
726
726
|
this.access = a
|
|
727
727
|
if (a.state === 'approved' && a.owner) this.sendStartName()
|
|
728
728
|
if (a.state === 'approved' && this.webhook && !this.webhook.local) this.migrateWebhook().catch(() => {}) // the relay sends it from now on (or again, if it lost it)
|
|
729
|
-
if (a.state === 'pending' && (!was || was.state !== 'pending')) this.log(`⏳ waiting for the
|
|
729
|
+
if (a.state === 'pending' && (!was || was.state !== 'pending')) this.log(`⏳ waiting for the codebase's owner to let you in (you were invited to ${a.invitedAs === 'viewer' ? 'view' : 'edit'})`)
|
|
730
730
|
if (a.state === 'approved' && was && (was.role !== a.role || String(was.scopes) !== String(a.scopes) || String(was.scopesExcept || []) !== String(a.scopesExcept || []))) {
|
|
731
731
|
const except = a.role !== 'viewer' && a.scopesExcept && a.scopesExcept.length ? `, except ${a.scopesExcept.join(', ')}` : ''
|
|
732
|
-
this.log(`🔑 you can now ${a.role === 'viewer' ? 'only view this
|
|
732
|
+
this.log(`🔑 you can now ${a.role === 'viewer' ? 'only view this codebase' : a.scopes.length ? `change files in ${a.scopes.join(', ')}` : 'change any file'}${except}`)
|
|
733
733
|
}
|
|
734
734
|
if (a.state === 'approved' && (was ? was.talk !== false : true) && a.talk === false) this.log(`🔇 ${TALK_REFUSED}`)
|
|
735
|
-
if (a.state === 'approved' && was && was.talk === false && a.talk !== false) this.log('💬 you can post in this
|
|
735
|
+
if (a.state === 'approved' && was && was.talk === false && a.talk !== false) this.log('💬 you can post in this codebase again')
|
|
736
736
|
// Partners see you sharing your AI chat only while it can reach them.
|
|
737
737
|
if (a.state === 'approved' && (was?.talk === false) !== (a.talk === false)) this.publishAgentState()
|
|
738
738
|
if (a.refused) this.log(`🔒 the relay undid your change to ${a.refused.join(', ')}: ${a.why}`)
|
|
@@ -809,14 +809,14 @@ export class Session extends EventEmitter {
|
|
|
809
809
|
this.sendWorkspace()
|
|
810
810
|
if (!this.startName || this.startNameSent) return
|
|
811
811
|
this.startNameSent = true
|
|
812
|
-
this.rename(this.startName).catch((err) => this.log(`couldn't name the
|
|
812
|
+
this.rename(this.startName).catch((err) => this.log(`couldn't name the codebase: ${err.message}`))
|
|
813
813
|
}
|
|
814
814
|
|
|
815
815
|
/** As the owner, tells the relay which workspace the session is in (once per run; again when it moves). */
|
|
816
816
|
sendWorkspace () {
|
|
817
817
|
if (!this.workspace || this.workspaceSent === this.workspace || !this.isOwner) return
|
|
818
818
|
this.workspaceSent = this.workspace
|
|
819
|
-
this.conn.adminRequest({ op: 'workspace', id: this.workspace }).catch((err) => { this.workspaceSent = null; this.log(`couldn't tell the relay the
|
|
819
|
+
this.conn.adminRequest({ op: 'workspace', id: this.workspace }).catch((err) => { this.workspaceSent = null; this.log(`couldn't tell the relay the codebase's project: ${err.message}`) })
|
|
820
820
|
}
|
|
821
821
|
|
|
822
822
|
/** The session moved to a workspace (the app did it on the API): the relay is told too. */
|
|
@@ -1006,7 +1006,7 @@ export class Session extends EventEmitter {
|
|
|
1006
1006
|
|
|
1007
1007
|
/** saveState now, and never throws (a hold must start even if the state can't be written). */
|
|
1008
1008
|
saveStateNow () {
|
|
1009
|
-
try { this.saveState() } catch (err) { this.log(`could not save the
|
|
1009
|
+
try { this.saveState() } catch (err) { this.log(`could not save the codebase's state: ${err.message}`) }
|
|
1010
1010
|
}
|
|
1011
1011
|
|
|
1012
1012
|
saveState () {
|
|
@@ -1218,7 +1218,7 @@ export class Session extends EventEmitter {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
return this.tryWrite(rel)
|
|
1220
1220
|
} catch (err) {
|
|
1221
|
-
this.log(`could not put the
|
|
1221
|
+
this.log(`could not put the codebase's version of ${rel} back: ${err.message}`)
|
|
1222
1222
|
return false
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
@@ -1258,14 +1258,14 @@ export class Session extends EventEmitter {
|
|
|
1258
1258
|
// Ours already has the session's change in it (git combined them here: a stash popped over a pull):
|
|
1259
1259
|
// only one version is new, so it goes in. Nothing is combined.
|
|
1260
1260
|
if (!conflicts.length && text === ours) {
|
|
1261
|
-
this.applyMerged(rel, ours, 'which already had the
|
|
1261
|
+
this.applyMerged(rel, ours, 'which already had the codebase\'s changes', { pulled })
|
|
1262
1262
|
release()
|
|
1263
1263
|
return 'merged'
|
|
1264
1264
|
}
|
|
1265
1265
|
// Edited live while git was asked about the folder for a moment: combined as live editing would
|
|
1266
1266
|
// have, and only where the lines don't overlap.
|
|
1267
1267
|
if (via === 'hold' && !conflicts.length) {
|
|
1268
|
-
this.applyMerged(rel, text, `with ${theirsBy || 'the
|
|
1268
|
+
this.applyMerged(rel, text, `with ${theirsBy || 'the codebase'}'s changes`)
|
|
1269
1269
|
release()
|
|
1270
1270
|
return 'merged'
|
|
1271
1271
|
}
|
|
@@ -1327,23 +1327,23 @@ export class Session extends EventEmitter {
|
|
|
1327
1327
|
release()
|
|
1328
1328
|
this.lastKnown.delete(rel)
|
|
1329
1329
|
this.tryWrite(rel)
|
|
1330
|
-
keep({ how: 'theirs', reason: `Deleted here, but ${by || 'the
|
|
1331
|
-
this.log(`🧵 ${rel}: you deleted it, but ${by || 'the
|
|
1330
|
+
keep({ how: 'theirs', reason: `Deleted here, but ${by || 'the codebase'} changed it: it stays` })
|
|
1331
|
+
this.log(`🧵 ${rel}: you deleted it, but ${by || 'the codebase'} changed it, so it stays`)
|
|
1332
1332
|
return 'merged'
|
|
1333
1333
|
}
|
|
1334
1334
|
if (theirs === undefined) {
|
|
1335
1335
|
release()
|
|
1336
1336
|
this.ingest(rel, { pulled })
|
|
1337
|
-
keep({ how: 'mine', reason: `${by || 'The
|
|
1338
|
-
this.log(`🧵 ${rel}: ${by || 'the
|
|
1337
|
+
keep({ how: 'mine', reason: `${by || 'The codebase'} deleted it, but it was changed here: it stays` })
|
|
1338
|
+
this.log(`🧵 ${rel}: ${by || 'the codebase'} deleted it, but you changed it, so it stays`)
|
|
1339
1339
|
return 'merged'
|
|
1340
1340
|
}
|
|
1341
1341
|
// Ours stays on this folder's disk under .quilt (keepHeldLocal), for resolving it "mine".
|
|
1342
1342
|
const holdWhole = (kind) => {
|
|
1343
1343
|
try {
|
|
1344
|
-
const rec = this.liveRules().hold({ path: rel, kind, by: this.name, byId: this.myKey(), others: by ? [by] : [], where, hunks: kind === 'binary' ? [] : [{ at: 0, base: [], ours: ours.split('\n'), theirs: theirs.split('\n') }], reason: `${by || 'the
|
|
1344
|
+
const rec = this.liveRules().hold({ path: rel, kind, by: this.name, byId: this.myKey(), others: by ? [by] : [], where, hunks: kind === 'binary' ? [] : [{ at: 0, base: [], ours: ours.split('\n'), theirs: theirs.split('\n') }], reason: `${by || 'the codebase'} changed it first, and the two versions have nothing in common to merge`, result: kind === 'binary' ? null : theirs, mine: kind === 'binary' ? null : ours })
|
|
1345
1345
|
if (kind === 'binary' && disk && disk.buf) { fs.mkdirSync(this.heldDir(rec.id), { recursive: true }); fs.writeFileSync(path.join(this.heldDir(rec.id), 'mine'), disk.buf) }
|
|
1346
|
-
this.notice(`Quilt held back your version of ${rel}: ${by || 'someone'} changed it first, so the
|
|
1346
|
+
this.notice(`Quilt held back your version of ${rel}: ${by || 'someone'} changed it first, so the codebase keeps theirs and your folder has it now. Resolve it with quilt_resolve_merge { path: "${rel}", how: "theirs" | "mine" | "edited" } (id ${rec.id}).`)
|
|
1347
1347
|
} catch (err) { this.log(`could not hold your version of ${rel}: ${err.message}`) }
|
|
1348
1348
|
// ours is set aside (the record, .quilt/merges/<id>/): the session's version comes back to disk.
|
|
1349
1349
|
this.lastKnown.set(rel, ours)
|
|
@@ -1351,22 +1351,22 @@ export class Session extends EventEmitter {
|
|
|
1351
1351
|
}
|
|
1352
1352
|
if (binary) {
|
|
1353
1353
|
release()
|
|
1354
|
-
keep({ how: 'theirs', reason: `Both changed it: ${by || 'the
|
|
1354
|
+
keep({ how: 'theirs', reason: `Both changed it: ${by || 'the codebase'}'s version, which landed first, stays; yours is held` })
|
|
1355
1355
|
holdWhole('binary')
|
|
1356
|
-
this.log(`⚖️ ${rel}: both changed it; ${by || 'the
|
|
1356
|
+
this.log(`⚖️ ${rel}: both changed it; ${by || 'the codebase'}'s version stays and yours is held (quilt_resolve_merge)`)
|
|
1357
1357
|
return 'merged'
|
|
1358
1358
|
}
|
|
1359
1359
|
// No common version (git couldn't read it, or both made the file): nothing lines up to combine.
|
|
1360
1360
|
if (typeof base !== 'string') {
|
|
1361
1361
|
release()
|
|
1362
|
-
keep({ how: 'theirs', reason: `Both made it: ${by || 'the
|
|
1362
|
+
keep({ how: 'theirs', reason: `Both made it: ${by || 'the codebase'}'s version stays; yours is held` })
|
|
1363
1363
|
holdWhole('lines')
|
|
1364
1364
|
return 'merged'
|
|
1365
1365
|
}
|
|
1366
1366
|
const r = this.liveRules().write({ doc: this.bdoc, where, path: rel, base, ours, theirs, by: this.name, byId: this.myKey(), others: by ? [by] : [] })
|
|
1367
|
-
this.applyMerged(rel, r.text, `with ${by || 'the
|
|
1367
|
+
this.applyMerged(rel, r.text, `with ${by || 'the codebase'}'s changes${r.held.length ? ' (where both changed the same lines, theirs stays and yours is held)' : ''}`, { pulled })
|
|
1368
1368
|
release()
|
|
1369
|
-
if (r.held.length) keep({ how: 'theirs', reason: `Merged by Quilt: where both changed the same lines, ${by || 'the
|
|
1369
|
+
if (r.held.length) keep({ how: 'theirs', reason: `Merged by Quilt: where both changed the same lines, ${by || 'the codebase'}'s version, which landed first, stays; yours is held to resolve` })
|
|
1370
1370
|
return 'merged'
|
|
1371
1371
|
}
|
|
1372
1372
|
|
|
@@ -1476,7 +1476,7 @@ export class Session extends EventEmitter {
|
|
|
1476
1476
|
}
|
|
1477
1477
|
} finally { this.seeding = false }
|
|
1478
1478
|
this.log(`initial sync: ${pulled} file(s) pulled, ${pushed} pushed` +
|
|
1479
|
-
(removed ? `, ${removed} removed (deleted in the
|
|
1479
|
+
(removed ? `, ${removed} removed (deleted in the codebase)` : '') +
|
|
1480
1480
|
(backedUp || removed ? `, ${backedUp + removed} local version(s) backed up to ${path.relative(this.root, backupDir)}` : ''))
|
|
1481
1481
|
// Kept at once, not a second later: a sandbox that ends a turn by wiping the machine may stop
|
|
1482
1482
|
// quilt join any moment, and the next start measures offline edits from this.
|
|
@@ -1716,7 +1716,7 @@ export class Session extends EventEmitter {
|
|
|
1716
1716
|
// A rebase or a bisect can stay open for a long time (a conflict to resolve): said once, to the person and their AI.
|
|
1717
1717
|
if (busy && busy !== 'index-lock' && !this.hold.said && Date.now() - this.hold.since >= HOLD_SAY_MS) {
|
|
1718
1718
|
this.hold.said = true
|
|
1719
|
-
const text = `git is in the middle of a ${busy} in this folder, so nothing here is shared and nothing from the
|
|
1719
|
+
const text = `git is in the middle of a ${busy} in this folder, so nothing here is shared and nothing from the codebase is written here until it is finished (or aborted).`
|
|
1720
1720
|
this.log(`⏸️ ${text}`)
|
|
1721
1721
|
this.notice(text)
|
|
1722
1722
|
}
|
|
@@ -1828,11 +1828,11 @@ export class Session extends EventEmitter {
|
|
|
1828
1828
|
if (this.moveSaid === said) return
|
|
1829
1829
|
this.moveSaid = said
|
|
1830
1830
|
if (refused) {
|
|
1831
|
-
const text = `The
|
|
1831
|
+
const text = `The codebase can't take ${to}: ${msg}. This folder isn't syncing while it's on ${to}; check out ${this.branch} again in git to keep syncing there.`
|
|
1832
1832
|
this.log(`⚠️ ${text}`)
|
|
1833
1833
|
this.notice(text)
|
|
1834
1834
|
} else {
|
|
1835
|
-
this.log(`⚠️ You're on ${to} in git, but its work in the
|
|
1835
|
+
this.log(`⚠️ You're on ${to} in git, but its work in the codebase can't be loaded yet (${msg}). This folder waits and tries again.`)
|
|
1836
1836
|
}
|
|
1837
1837
|
}
|
|
1838
1838
|
|
|
@@ -1938,7 +1938,7 @@ export class Session extends EventEmitter {
|
|
|
1938
1938
|
m.doc = doc = fresh
|
|
1939
1939
|
m.left = left = null
|
|
1940
1940
|
m.epoch = null
|
|
1941
|
-
const said = `${to} was removed from the
|
|
1941
|
+
const said = `${to} was removed from the codebase (nobody was on it for 30 days) and has been started again since, so what this folder had kept of it is not brought back; the codebase's files there are on disk.`
|
|
1942
1942
|
this.log(`⚠️ ${said}`)
|
|
1943
1943
|
this.notice(said)
|
|
1944
1944
|
}
|
|
@@ -1982,7 +1982,7 @@ export class Session extends EventEmitter {
|
|
|
1982
1982
|
if (this.stopped) return null
|
|
1983
1983
|
if (entries.length && !movedOn) {
|
|
1984
1984
|
this.mergeHeld(entries).then(({ conflicts }) => {
|
|
1985
|
-
if (conflicts) this.log(`🔀 ${conflicts} file${conflicts === 1 ? '' : 's'} you changed on ${to} clash with the
|
|
1985
|
+
if (conflicts) this.log(`🔀 ${conflicts} file${conflicts === 1 ? '' : 's'} you changed on ${to} clash with the codebase's; see Merges.`)
|
|
1986
1986
|
}).catch((err) => this.log(`could not merge: ${err.message}`))
|
|
1987
1987
|
} else for (const e of entries) this.merging.delete(e.rel)
|
|
1988
1988
|
this.saveStateNow()
|
|
@@ -1990,7 +1990,7 @@ export class Session extends EventEmitter {
|
|
|
1990
1990
|
const note = this.moveNote({ from, to: this.branch, created: !!reply.created, carried: [...carried.keys()] })
|
|
1991
1991
|
this.log(`🔀 ${note}`)
|
|
1992
1992
|
// Agents working in this folder hear it with their next answer; the room sees it in the activity log.
|
|
1993
|
-
this.notice(`This folder moved from ${from} to ${this.branch} (a checkout in git): its files are ${this.branch}'s in the
|
|
1993
|
+
this.notice(`This folder moved from ${from} to ${this.branch} (a checkout in git): its files are ${this.branch}'s in the codebase now, and ${from}'s work stays in the codebase on ${from}.`)
|
|
1994
1994
|
this.doc.transact(() => {
|
|
1995
1995
|
this.activity.push([{ by: this.name, path: '', kind: 'switched', detail: '', branch: this.branch, from, ts: Date.now() }])
|
|
1996
1996
|
if (this.activity.length > 300) this.activity.delete(0, this.activity.length - 300)
|
|
@@ -2271,10 +2271,10 @@ export class Session extends EventEmitter {
|
|
|
2271
2271
|
/** What a move says in the log. */
|
|
2272
2272
|
moveNote ({ from, to, created, carried = [] }) {
|
|
2273
2273
|
const head = `You're on ${to} now (you switched in git)`
|
|
2274
|
-
if (created) return `${head}. ${to} is new to the
|
|
2274
|
+
if (created) return `${head}. ${to} is new to the codebase: this folder's files are its starting point, and ${from}'s work stays in the codebase on ${from}.`
|
|
2275
2275
|
const list = carried.slice(0, 3).join(', ') + (carried.length > 3 ? ', …' : '')
|
|
2276
|
-
const brought = carried.length ? ` git had carried ${from}'s uncommitted work in ${list} over: that stays in the
|
|
2277
|
-
return `${head}; the
|
|
2276
|
+
const brought = carried.length ? ` git had carried ${from}'s uncommitted work in ${list} over: that stays in the codebase on ${from}, and ${to}'s version is on disk.` : ''
|
|
2277
|
+
return `${head}; the codebase's work there is on disk.${brought}`
|
|
2278
2278
|
}
|
|
2279
2279
|
|
|
2280
2280
|
/** Watches the folder's .git: HEAD moving is looked at with the next flush, and git starting work holds the folder at once. */
|
|
@@ -2343,7 +2343,7 @@ export class Session extends EventEmitter {
|
|
|
2343
2343
|
const r = await adoptRepo(this.root, { url, branch, sha, local: this.localRepos })
|
|
2344
2344
|
if (this.stopped) return false
|
|
2345
2345
|
if (!r.ok) {
|
|
2346
|
-
const text = `Quilt could not set up git in this folder: ${r.error}. The
|
|
2346
|
+
const text = `Quilt could not set up git in this folder: ${r.error}. The codebase's files are here and stay in sync. To have git too, clone ${label} and join the codebase from that folder.`
|
|
2347
2347
|
this.log(`⚠️ ${text}`)
|
|
2348
2348
|
this.notice(text)
|
|
2349
2349
|
return false
|
|
@@ -2477,7 +2477,7 @@ export class Session extends EventEmitter {
|
|
|
2477
2477
|
})
|
|
2478
2478
|
if (!here.length || !(await stage(this.root, here))) return
|
|
2479
2479
|
this.gitIndex = indexStamp(this.root) // Quilt's own write of the index: no burst of git's
|
|
2480
|
-
this.log(`staged ${here.length} file${here.length === 1 ? '' : 's'} the
|
|
2480
|
+
this.log(`staged ${here.length} file${here.length === 1 ? '' : 's'} the codebase brought here from ${to.slice(0, 7)} (${here.slice(0, 3).join(', ')}${here.length > 3 ? ', …' : ''}), so a pull with --autostash goes through`)
|
|
2481
2481
|
}
|
|
2482
2482
|
|
|
2483
2483
|
/** Keeps what is known of the upstream, and says why commits wait (to the log and the AI) once per reason. */
|
|
@@ -2581,7 +2581,7 @@ export class Session extends EventEmitter {
|
|
|
2581
2581
|
this.headChangedAt = 0
|
|
2582
2582
|
this.scheduleStateSave()
|
|
2583
2583
|
this.shareTip()
|
|
2584
|
-
this.log(`⬇️ brought in ${commits} from ${facts.name}${written ? ` (${written} file${written === 1 ? '' : 's'} written)` : ': the
|
|
2584
|
+
this.log(`⬇️ brought in ${commits} from ${facts.name}${written ? ` (${written} file${written === 1 ? '' : 's'} written)` : ': the codebase already had their files'}`)
|
|
2585
2585
|
this.setUpstream({ name: facts.name, sha: to, behind: 0, ahead: 0, brought: { count: facts.behind, files: written, at: Date.now() } })
|
|
2586
2586
|
}
|
|
2587
2587
|
|
|
@@ -2741,7 +2741,7 @@ export class Session extends EventEmitter {
|
|
|
2741
2741
|
if (!(await this.savesSent())) return stays('git is at work in this folder. Try again in a moment.')
|
|
2742
2742
|
const said = await switchBranch(this.root, main, { force: true })
|
|
2743
2743
|
if (said || !(await this.arrivedOn(main))) return stays(`git could not check out ${main}${said ? ` (${said})` : ''}.`)
|
|
2744
|
-
this.log(`🌿 back on ${main}; what you had not committed on ${from} stays there in the
|
|
2744
|
+
this.log(`🌿 back on ${main}; what you had not committed on ${from} stays there in the codebase`)
|
|
2745
2745
|
return { branch: main, from }
|
|
2746
2746
|
}
|
|
2747
2747
|
|
|
@@ -3200,7 +3200,7 @@ export class Session extends EventEmitter {
|
|
|
3200
3200
|
this.relayAgain.delete(rel)
|
|
3201
3201
|
if (this.stopped) return
|
|
3202
3202
|
if (/unknown branch request/.test(err.message)) { this.noRelayWrites = true; try { this.ingest(rel) } catch {} return }
|
|
3203
|
-
if (this.relayProblem !== err.message) this.log(`${rel}: your edit waits to reach the
|
|
3203
|
+
if (this.relayProblem !== err.message) this.log(`${rel}: your edit waits to reach the codebase (${err.message}); it is tried again`)
|
|
3204
3204
|
this.relayProblem = err.message
|
|
3205
3205
|
const t = setTimeout(() => { if (!this.stopped) this.queue(rel) }, 1000)
|
|
3206
3206
|
t.unref?.()
|
|
@@ -3667,7 +3667,7 @@ export class Session extends EventEmitter {
|
|
|
3667
3667
|
if (!placed) return // saved again and again meanwhile: what is there now is taken in
|
|
3668
3668
|
// Made from what disk had before Quilt's write: merged against that (base-pick.js).
|
|
3669
3669
|
if (ours && typeof before === 'string' && !looksBinary(bytes)) this.overwritten.mark(rel, bytes.toString('utf8'), before)
|
|
3670
|
-
this.log(`${rel}: a save landed while Quilt wrote the
|
|
3670
|
+
this.log(`${rel}: a save landed while Quilt wrote the codebase's version; it is taken in now`)
|
|
3671
3671
|
this.queue(rel)
|
|
3672
3672
|
} catch {}
|
|
3673
3673
|
}
|
|
@@ -3680,7 +3680,7 @@ export class Session extends EventEmitter {
|
|
|
3680
3680
|
swapIn (rel, abs, tmp, look, unchanged = null) {
|
|
3681
3681
|
const r = swapIn(abs, tmp, look, { asideDir: path.join(this.stateDir, 'tmp'), log: (m) => this.log(m), unchanged })
|
|
3682
3682
|
if (r.replaced) {
|
|
3683
|
-
const w = `A save of ${rel} landed in the same instant Quilt wrote the
|
|
3683
|
+
const w = `A save of ${rel} landed in the same instant Quilt wrote the codebase's version over it, and could not be kept: save ${rel} again (your editor still has it).`
|
|
3684
3684
|
this.notice(w)
|
|
3685
3685
|
this.log(`⚠️ ${w}`)
|
|
3686
3686
|
}
|
|
@@ -4183,7 +4183,7 @@ export class Session extends EventEmitter {
|
|
|
4183
4183
|
* { muted, sig, transcribing, sharing } from the app window, which does the audio. Only people talk.
|
|
4184
4184
|
*/
|
|
4185
4185
|
setVoice (v) {
|
|
4186
|
-
if (!this.conn || !this.conn.awareness) throw new Error('Not connected to the
|
|
4186
|
+
if (!this.conn || !this.conn.awareness) throw new Error('Not connected to the codebase yet.')
|
|
4187
4187
|
if (v && v.in !== false) {
|
|
4188
4188
|
if (this.kind === 'agent') throw new Error('Voice is for people: agents read the transcript instead.')
|
|
4189
4189
|
if (!this.mayTalk()) throw new Error(TALK_REFUSED)
|
|
@@ -4216,7 +4216,7 @@ export class Session extends EventEmitter {
|
|
|
4216
4216
|
|
|
4217
4217
|
/** The owner turns transcripts of the session's calls on or off. */
|
|
4218
4218
|
setVoiceTranscribe (on) {
|
|
4219
|
-
if (!this.isOwner) throw new Error(
|
|
4219
|
+
if (!this.isOwner) throw new Error("Only the codebase's owner can turn transcripts on or off.")
|
|
4220
4220
|
setTranscribe(this.doc, { on, by: this.name })
|
|
4221
4221
|
// Off: nobody's speech goes on being sent.
|
|
4222
4222
|
if (!on) {
|
|
@@ -4277,9 +4277,9 @@ export class Session extends EventEmitter {
|
|
|
4277
4277
|
* says its name in it (it is pinged, and joins with this or by speaking).
|
|
4278
4278
|
*/
|
|
4279
4279
|
voiceJoin ({ leave = false } = {}) {
|
|
4280
|
-
if (this.kind !== 'agent') throw new Error(`In this
|
|
4280
|
+
if (this.kind !== 'agent') throw new Error(`In this codebase you are ${this.name}: people join calls in the Quilt app. An agent (and "${this.name}'s AI") joins a transcribed call when someone says its name.`)
|
|
4281
4281
|
const call = this.liveCall()
|
|
4282
|
-
if (!call) throw new Error('There is no call going on in this
|
|
4282
|
+
if (!call) throw new Error('There is no call going on in this codebase.')
|
|
4283
4283
|
setAgentLeft(this.doc, { call, name: this.name, leave })
|
|
4284
4284
|
if (leave) return { in: false, call }
|
|
4285
4285
|
const why = notInCall(this.doc, { call, name: this.name, members: this.members })
|
|
@@ -4777,7 +4777,7 @@ export class Session extends EventEmitter {
|
|
|
4777
4777
|
* which the accounts API sends to the address the agent confirmed. Replaces a webhook.
|
|
4778
4778
|
*/
|
|
4779
4779
|
async setWakeEmail () {
|
|
4780
|
-
if (!this.relayWebhooks) throw new Error('This folder is not let into the
|
|
4780
|
+
if (!this.relayWebhooks) throw new Error('This folder is not let into the codebase yet: choose email once it is (the relay keeps it).')
|
|
4781
4781
|
this.webhook = null
|
|
4782
4782
|
try { fs.rmSync(this.webhookFile, { force: true }) } catch {}
|
|
4783
4783
|
return this.relayWebhookRequest({ action: 'subscribe', email: true })
|
|
@@ -5034,7 +5034,7 @@ export class Session extends EventEmitter {
|
|
|
5034
5034
|
if (c.after === null) fs.rmSync(abs, { force: true })
|
|
5035
5035
|
else { fs.mkdirSync(path.dirname(abs), { recursive: true }); fs.writeFileSync(abs, c.after) }
|
|
5036
5036
|
}
|
|
5037
|
-
this.log(`📐 gathered the
|
|
5037
|
+
this.log(`📐 gathered the codebase's AI rules into AGENTS.md (${plan.changes.length} file${plan.changes.length === 1 ? '' : 's'})`)
|
|
5038
5038
|
return { changed: plan.changes.map((c) => c.path), manual: plan.manual }
|
|
5039
5039
|
}
|
|
5040
5040
|
|
|
@@ -5343,7 +5343,7 @@ export class Session extends EventEmitter {
|
|
|
5343
5343
|
fs.mkdirSync(dir, { recursive: true })
|
|
5344
5344
|
// Git leaves the folder alone (Quilt never syncs it: pathrules.js), with nothing added to the project's .gitignore.
|
|
5345
5345
|
const gi = path.join(dir, '.gitignore')
|
|
5346
|
-
if (!fs.existsSync(gi)) fs.writeFileSync(gi, '# Files sent in the Quilt
|
|
5346
|
+
if (!fs.existsSync(gi)) fs.writeFileSync(gi, '# Files sent in the Quilt codebase\'s chat: only for the people who can see them.\n*\n')
|
|
5347
5347
|
}
|
|
5348
5348
|
return path.join(dir, name)
|
|
5349
5349
|
}
|
|
@@ -5374,7 +5374,7 @@ export class Session extends EventEmitter {
|
|
|
5374
5374
|
*/
|
|
5375
5375
|
async createChatLink ({ name = '', minutes } = {}) {
|
|
5376
5376
|
if (!this.conn) throw new Error('not connected to the relay')
|
|
5377
|
-
if (!this.canAdmit) throw new Error('only people who may let others into this
|
|
5377
|
+
if (!this.canAdmit) throw new Error('only people who may let others into this codebase can make a chat link')
|
|
5378
5378
|
const r = await this.conn.adminRequest({ op: 'chatlink', name: String(name || ''), ...(minutes ? { minutes: Number(minutes) } : {}) })
|
|
5379
5379
|
return { url: `${this.httpBase()}/c/${this.room}/${r.token}`, name: r.name, expiresAt: r.expiresAt }
|
|
5380
5380
|
}
|
|
@@ -5382,7 +5382,7 @@ export class Session extends EventEmitter {
|
|
|
5382
5382
|
/** Whoever may let people in: a chat link (by its member key, or its name) works for `minutes` from now. One that ran out can't be. */
|
|
5383
5383
|
async extendChatLink (who, minutes) {
|
|
5384
5384
|
if (!this.conn) throw new Error('not connected to the relay')
|
|
5385
|
-
if (!this.canAdmit) throw new Error('only people who may let others into this
|
|
5385
|
+
if (!this.canAdmit) throw new Error('only people who may let others into this codebase can extend a chat link')
|
|
5386
5386
|
const m = this.members.find((x) => x.chat && (x.key === who || x.name === who))
|
|
5387
5387
|
if (!m) throw new Error(`no chat link called ${who}; it may have run out (make a new one)`)
|
|
5388
5388
|
const r = await this.conn.adminRequest({ op: 'chatextend', key: m.key, minutes: Number(minutes) })
|
|
@@ -5753,7 +5753,7 @@ export class Session extends EventEmitter {
|
|
|
5753
5753
|
// Texts kept on this machine (`local`) are this folder's writer's version only.
|
|
5754
5754
|
const local = (name) => { if (v.by !== this.name) return null; try { return fs.readFileSync(path.join(dir, name)) } catch { return null } }
|
|
5755
5755
|
// A record an older Quilt held away from the session's branches (`where.square`) is on no branch a folder can be on.
|
|
5756
|
-
if (rec.where.square) throw new Error(`${rec.path} was held by an older Quilt, away from the
|
|
5756
|
+
if (rec.where.square) throw new Error(`${rec.path} was held by an older Quilt, away from the codebase's branches, so its held lines can't be put in from a folder: write the file yourself and resolve it "edited".`)
|
|
5757
5757
|
if (rec.where.branch && rec.where.branch !== this.branchKey()) throw new Error(`${rec.path} was held on branch ${rec.where.branch}, not the one this folder is on: resolve it "mine" from a folder there, or write the file yourself and resolve it "edited".`)
|
|
5758
5758
|
const abs = resolveInside(this.root, rec.path)
|
|
5759
5759
|
if (v.kind === 'binary') {
|
package/src/setup.js
CHANGED
|
@@ -12,19 +12,19 @@ const START = '<!-- quilt:start -->'
|
|
|
12
12
|
const END = '<!-- quilt:end -->'
|
|
13
13
|
|
|
14
14
|
export const AGENT_GUIDE = `${START}
|
|
15
|
-
## Live
|
|
15
|
+
## Live codebase (quilt)
|
|
16
16
|
|
|
17
|
-
This
|
|
17
|
+
This codebase is being edited **live by more than one person at once**, each
|
|
18
18
|
with their own AI coding tool. Files can change underneath you at any time.
|
|
19
19
|
|
|
20
20
|
- Before starting a task, check what your collaborators are doing: call the
|
|
21
21
|
\`quilt_status\` MCP tool, or run \`quilt status\` in a shell, or read
|
|
22
22
|
\`.quilt/STATUS.md\`.
|
|
23
|
-
- The
|
|
23
|
+
- The codebase has a shared task board (To do, In progress, QA, Done). Read it with
|
|
24
24
|
\`quilt_tasks\`. Add work with \`quilt_add_task\`. Move a task to In progress
|
|
25
25
|
when you start it and to QA with \`qaNotes\` when you finish (\`quilt_move_task\`).
|
|
26
26
|
${TASK_WORKFLOW_MD}
|
|
27
|
-
- Read the
|
|
27
|
+
- Read the codebase's rules and design system with \`quilt_project_rules\` before your
|
|
28
28
|
first change: the same rules whatever tool each person uses.
|
|
29
29
|
- See what a partner's AI is doing with \`quilt_partner_feed\`, and where people
|
|
30
30
|
are working with \`quilt_list_files\` (recent edits).
|
|
@@ -35,7 +35,7 @@ ${TASK_WORKFLOW_MD}
|
|
|
35
35
|
- Before you change files, call \`quilt_before_edit\` with their paths. It shows what
|
|
36
36
|
people said about those files in chat and who else changed them lately. It never
|
|
37
37
|
refuses: nobody holds files.
|
|
38
|
-
- In the
|
|
38
|
+
- In the codebase you are your person: your messages and tasks are theirs, and
|
|
39
39
|
people see you as them. "<person>'s AI" ("@Daniel's AI") is only that
|
|
40
40
|
person's cloud AI, when they connected one (their own AI tool on their own cloud
|
|
41
41
|
machine). Nothing written or handed to "<person>'s AI" comes to you; when your person
|
|
@@ -84,9 +84,9 @@ ${TASK_WORKFLOW_MD}
|
|
|
84
84
|
conflict (a merge, rebase, cherry-pick or revert) this folder is paused:
|
|
85
85
|
nothing is shared from it or written to it until you settle it and commit.
|
|
86
86
|
Checking out another branch moves this folder to that branch's work in the
|
|
87
|
-
|
|
87
|
+
codebase (the old branch keeps its own).
|
|
88
88
|
If git refuses a checkout because local changes would be overwritten,
|
|
89
|
-
those are the
|
|
89
|
+
those are the codebase's uncommitted work, which the codebase keeps: switch with
|
|
90
90
|
\`git checkout -f <branch>\` (or \`git stash && git checkout <branch>\` in one
|
|
91
91
|
command; a stash on its own is put back a moment later).
|
|
92
92
|
Deleting a file deletes it for everyone.
|
package/src/status.js
CHANGED
|
@@ -17,12 +17,12 @@ const ago = (ts) => {
|
|
|
17
17
|
|
|
18
18
|
export function renderStatus (st, { asAi = false, mentionYours = false } = {}) {
|
|
19
19
|
const out = []
|
|
20
|
-
out.push(`# Quilt
|
|
20
|
+
out.push(`# Live Quilt codebase: room \`${st.room}\``)
|
|
21
21
|
out.push('')
|
|
22
22
|
out.push(`Relay: ${st.connected ? 'connected' : '**disconnected** (edits are kept and will sync on reconnect)'} · ${st.fileCount} shared files`)
|
|
23
23
|
if (!st.connected && st.problem) out.push(`⚠️ ${st.problem}`)
|
|
24
24
|
out.push(`You: **${st.me.name}** (${st.me.tool})${st.me.persona ? `, one of ${st.me.of}'s AI sessions` : ''}${st.me.focus ? ` · focus: ${st.me.focus}` : ''}`)
|
|
25
|
-
if (st.workspaceName || st.workspace) out.push(`
|
|
25
|
+
if (st.workspaceName || st.workspace) out.push(`Project: ${st.workspaceName || st.workspace}`)
|
|
26
26
|
out.push('')
|
|
27
27
|
// Held conflicts (held.js): every open one in the session, first, until someone resolves it.
|
|
28
28
|
const held = renderHeld(st.held || [], { me: st.me.name, max: 20 })
|
package/src/tasks.js
CHANGED
|
@@ -63,7 +63,7 @@ export function cleanFiles (files) {
|
|
|
63
63
|
for (const raw of files) {
|
|
64
64
|
const p = String(raw ?? '').trim().replace(/^\.\//, '').replace(/\\/g, '/')
|
|
65
65
|
if (!p) continue
|
|
66
|
-
if (p.length > MAX_FILE_PATH || !isSafeRelPath(p)) throw new Error(`not a
|
|
66
|
+
if (p.length > MAX_FILE_PATH || !isSafeRelPath(p)) throw new Error(`not a file in the codebase: ${p.slice(0, 80)}`)
|
|
67
67
|
if (!out.includes(p)) out.push(p)
|
|
68
68
|
if (out.length > MAX_FILES) throw new Error(`a task can list at most ${MAX_FILES} files`)
|
|
69
69
|
}
|
package/src/turn-sync.js
CHANGED
|
@@ -187,12 +187,12 @@ export async function turnSync ({ dir = process.cwd(), key, fetch: fetchImpl = g
|
|
|
187
187
|
/** The summary in a few lines, for the agent reading the command's output. */
|
|
188
188
|
export function describeSync (s, { name = '' } = {}) {
|
|
189
189
|
const n = (list) => list.length
|
|
190
|
-
const lines = [`quilt sync:
|
|
190
|
+
const lines = [`quilt sync: codebase ${s.room}${s.branch ? ` (${s.branch})` : ''}${name ? ` as ${name}` : ''}`]
|
|
191
191
|
if (s.open) lines.unshift(s.open, '')
|
|
192
192
|
const parts = [`${n(s.pulled)} pulled`, `${n(s.pushed)} pushed`]
|
|
193
193
|
if (n(s.merged)) parts.push(`${n(s.merged)} merged`)
|
|
194
194
|
if (n(s.removed)) parts.push(`${n(s.removed)} removed here`)
|
|
195
|
-
if (n(s.deleted)) parts.push(`${n(s.deleted)} deleted in the
|
|
195
|
+
if (n(s.deleted)) parts.push(`${n(s.deleted)} deleted in the codebase`)
|
|
196
196
|
lines.push(` ${parts.join(', ')}.`)
|
|
197
197
|
const list = (xs) => xs.slice(0, 10).join(', ') + (xs.length > 10 ? `, and ${xs.length - 10} more` : '')
|
|
198
198
|
const yours = s.backup ? ` Your copy is in ${s.backup}.` : ''
|
|
@@ -200,7 +200,7 @@ export function describeSync (s, { name = '' } = {}) {
|
|
|
200
200
|
const held = s.held || []
|
|
201
201
|
for (const h of held.slice(0, 10)) {
|
|
202
202
|
const who = h.others && h.others.length ? h.others.join(', ') : 'someone'
|
|
203
|
-
const what = h.kind === 'stale' ? `it was made from an older copy and lacks ${h.lines || 'some'} line(s) ${who} changed since, which stay` : h.kind === 'binary' ? `${who} changed it first, so the
|
|
203
|
+
const what = h.kind === 'stale' ? `it was made from an older copy and lacks ${h.lines || 'some'} line(s) ${who} changed since, which stay` : h.kind === 'binary' ? `${who} changed it first, so the codebase keeps their version and yours is held` : `${who} changed the same lines first, so the codebase keeps theirs there and your ${h.hunks === 1 ? 'change is' : `${h.hunks || 'clashing'} changes are`} held`
|
|
204
204
|
lines.push(` ${h.path}: ${what} (id ${h.id}). Resolve it with quilt_resolve_merge { path: "${h.path}", how: "theirs" | "mine" | "edited" }.${yours}`)
|
|
205
205
|
}
|
|
206
206
|
if (held.length > 10) lines.push(` …and ${held.length - 10} more held the same way (every Quilt answer lists them).`)
|
|
@@ -210,7 +210,7 @@ export function describeSync (s, { name = '' } = {}) {
|
|
|
210
210
|
for (const w of (s.warnings || []).slice(0, 5)) lines.push(` ⚠️ ${w}`)
|
|
211
211
|
const told = new Set([...(s.lost || []).map((l) => l.path), ...held.map((h) => h.path)])
|
|
212
212
|
const asideOnly = s.aside.filter((p) => !told.has(p))
|
|
213
|
-
if (asideOnly.length) lines.push(` Kept your copy of ${list(asideOnly)} in ${s.backup}: the
|
|
213
|
+
if (asideOnly.length) lines.push(` Kept your copy of ${list(asideOnly)} in ${s.backup}: the codebase's version is on disk now.`)
|
|
214
214
|
if (s.kept.length) lines.push(` Not sent: ${list(s.kept.map((k) => `${k.path} (${k.why})`))}.`)
|
|
215
215
|
if (s.refused) lines.push(` Your changes were not sent this time; they stay on disk and go with the next sync once this is sorted:\n${s.refused.split('\n').map((l) => ` ${l}`).join('\n')}`)
|
|
216
216
|
if (s.skipped.length) lines.push(` Not carried by quilt sync (too large, or kept in Quilt's storage): ${list(s.skipped)}.`)
|
|
@@ -31,7 +31,7 @@ function rowHtml (s) {
|
|
|
31
31
|
<button type="button" class="btn ghost" data-acct-cancel>Cancel</button>
|
|
32
32
|
<button class="btn primary" type="submit">Join</button>
|
|
33
33
|
</div>
|
|
34
|
-
<span class="hint">Leave it empty for a new folder in ${esc(state.profile.joinDir)}, or pick the folder you already have the
|
|
34
|
+
<span class="hint">Leave it empty for a new folder in ${esc(state.profile.joinDir)}, or pick the folder you already have the codebase in.</span>
|
|
35
35
|
<p class="error"></p>
|
|
36
36
|
</form>
|
|
37
37
|
</div>`
|
|
@@ -43,7 +43,7 @@ export function accountRowsHtml () {
|
|
|
43
43
|
const shown = state.accountSessionsAll ? list : list.slice(0, SHOWN)
|
|
44
44
|
const more = list.length - shown.length
|
|
45
45
|
return shown.map(rowHtml).join('') + (more > 0
|
|
46
|
-
? `<div class="session-row acct-more"><button class="btn sm ghost" type="button" data-acct-all>Show ${more} more of your
|
|
46
|
+
? `<div class="session-row acct-more"><button class="btn sm ghost" type="button" data-acct-all>Show ${more} more of your codebases</button></div>`
|
|
47
47
|
: '')
|
|
48
48
|
}
|
|
49
49
|
|
package/src/ui/agent-env-key.js
CHANGED
|
@@ -41,7 +41,7 @@ function cleanApi (api) {
|
|
|
41
41
|
|
|
42
42
|
/** The room a session invite link is for, or an error. */
|
|
43
43
|
function roomOf (session) {
|
|
44
|
-
try { return parseInvite(String(session || ''), { allowRelay: () => true }).room } catch { throw new Error('session must be the
|
|
44
|
+
try { return parseInvite(String(session || ''), { allowRelay: () => true }).room } catch { throw new Error('session must be the codebase invite link (https://join.heyquilt.com/<room>#<secret>)') }
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
function check ({ api, key, session, slot, name }) {
|