heyquilt 0.3.151 → 0.3.152

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.152 — 2026-11-06
15
+
16
+ - **Agents no longer join calls.** Calls are for people again: saying an agent's name in a call doesn't bring it in or send it anything. Agents can still read what was said in a transcribed call.
17
+
14
18
  ## 0.3.151 — 2026-11-05
15
19
 
16
20
  - **Agents answer you in calls through chat.** Say an agent's name in a transcribed call and it gets your line as a direct message from you, the same way it gets any message. Its reply to you is said out loud in the call, in its voice. Any agent that answers chat can now take part in a call. If it checks its messages only now and then, the call says the answer may take a few minutes. This is still only for Quilt run from source.
package/bin/quilt.js CHANGED
@@ -37,8 +37,6 @@ Usage:
37
37
  quilt say [@name] <message> Message everyone, or one person with @name
38
38
  quilt send <file> [@name] [message] Send a file (not added to the project)
39
39
  quilt inbox --wait [--timeout <sec>] [--json] Wait for your next mention, direct message or task and print it (exit 2: timed out)
40
- quilt voice say <text> Agents: say it out loud in the session's call (everyone hears it in your voice)
41
- quilt voice join [--leave] Agents: join the call when someone says your name in it, or leave it
42
40
  quilt voice transcript [-n 50] What was said in the session's calls, oldest first
43
41
  quilt wake [webhook|email|command|wait|push|schedule|turns|none] [--url U | --address A | --code C | --command CMD | --every N] How Quilt wakes you (step 2 of joining); no method: the ways that fit you
44
42
  quilt webhook set <url> [--bearer-env VAR] | clear | test | status Your webhook (quilt_webhook_subscribe): the relay POSTs your mentions, DMs and tasks there, even while you sleep
@@ -671,7 +669,9 @@ function splitRecipient (args) {
671
669
  // quilt_voice_join and quilt_voice_transcript, for agents that run commands instead of MCP.
672
670
  async function voiceCmd () {
673
671
  const [sub, ...rest] = argv
674
- const usage = 'usage: quilt voice say <text> | quilt voice join [--leave] | quilt voice transcript [-n 50]'
672
+ const usage = 'usage: quilt voice transcript [-n 50]'
673
+ const { agentsJoinCalls, AGENTS_PAUSED } = await import('../src/voice.js')
674
+ if ((sub === 'say' || sub === 'join') && !agentsJoinCalls()) fail(AGENTS_PAUSED)
675
675
  if (sub === 'say') {
676
676
  const text = rest.join(' ').trim()
677
677
  if (!text) fail(usage)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heyquilt",
3
- "version": "0.3.151",
3
+ "version": "0.3.152",
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",
package/src/mcp.js CHANGED
@@ -39,7 +39,7 @@ import { UpdateCheck } from './update-check.js'
39
39
  import { getSettings } from './settings.js'
40
40
  import { describeSecretNames, SECRET_NAMES_DESCRIPTION, RUN_GUIDE } from './secret-names.js'
41
41
  import { appWorkspaces } from './app-workspaces.js'
42
- import { TRANSCRIPT_DESCRIPTION, JOIN_DESCRIPTION, SAY_DESCRIPTION, MAX_LINE, renderLines } from './voice.js'
42
+ import { TRANSCRIPT_DESCRIPTION, JOIN_DESCRIPTION, SAY_DESCRIPTION, MAX_LINE, renderLines, agentsJoinCalls } from './voice.js'
43
43
  import { seamGate, seamNote, seamStatus, seamToolSpec, seamOnly, seamWorkflow, seamRefusal, SEAM_SESSION_TOOLS, GIT_TOOLS } from './session-seam.js'
44
44
 
45
45
  // The board's columns, from tasks.js, so this and the hosted MCP (relay-mcp.js) never drift apart.
@@ -650,21 +650,24 @@ export async function runMcp () {
650
650
  }
651
651
  }, (args) => withDaemon(async (d) => renderLines(await call(d, 'POST', '/voice-transcript', { call: args.call || '', since: args.since || 0, limit: args.limit || 200 }))))
652
652
 
653
- server.registerTool('quilt_voice_join', {
654
- description: JOIN_DESCRIPTION,
655
- inputSchema: { leave: z.boolean().optional().describe('true to leave the call') }
656
- }, (args) => withDaemon(async (d) => {
657
- const r = await call(d, 'POST', '/voice-join', { leave: args.leave === true })
658
- return r.in ? `You are in the call with ${r.people.join(', ')}. You show muted unless you speak; only a line that says your name reaches you.` : 'You left the call. Come back with quilt_voice_join.'
659
- }))
660
-
661
- server.registerTool('quilt_voice_say', {
662
- description: SAY_DESCRIPTION,
663
- inputSchema: { text: z.string().min(1).max(MAX_LINE).describe('What to say: one to three short spoken sentences') }
664
- }, (args) => withDaemon(async (d) => {
665
- await call(d, 'POST', '/voice-say', { text: args.text })
666
- return 'Said in the call: everyone in it hears it in your voice.'
667
- }))
653
+ // Agents in calls are paused (voice.js agentsJoinCalls): no tools to join or speak in one.
654
+ if (agentsJoinCalls()) {
655
+ server.registerTool('quilt_voice_join', {
656
+ description: JOIN_DESCRIPTION,
657
+ inputSchema: { leave: z.boolean().optional().describe('true to leave the call') }
658
+ }, (args) => withDaemon(async (d) => {
659
+ const r = await call(d, 'POST', '/voice-join', { leave: args.leave === true })
660
+ return r.in ? `You are in the call with ${r.people.join(', ')}. You show muted unless you speak; only a line that says your name reaches you.` : 'You left the call. Come back with quilt_voice_join.'
661
+ }))
662
+
663
+ server.registerTool('quilt_voice_say', {
664
+ description: SAY_DESCRIPTION,
665
+ inputSchema: { text: z.string().min(1).max(MAX_LINE).describe('What to say: one to three short spoken sentences') }
666
+ }, (args) => withDaemon(async (d) => {
667
+ await call(d, 'POST', '/voice-say', { text: args.text })
668
+ return 'Said in the call: everyone in it hears it in your voice.'
669
+ }))
670
+ }
668
671
 
669
672
  server.registerTool('quilt_send_file', {
670
673
  description: 'Send a file from this project to collaborators through chat, without adding it to the shared project (useful for screenshots, logs, exports, or drafts). The file must be inside the project folder.',
package/src/relay-mcp.js CHANGED
@@ -45,7 +45,7 @@ import { seamAccess } from './seam-access.js'
45
45
  import { releaseInSeam } from './seam-claims.js'
46
46
  import { releaseWords } from './release-words.js'
47
47
  import { LAYOUT_QUILT } from './session-layout3.js'
48
- import { TRANSCRIPT_DESCRIPTION, JOIN_DESCRIPTION, SAY_DESCRIPTION, MAX_LINE, renderLines, readLines, inVoice, transcribeSetting, voiceStatusLines, callAgents, liveCallOf, setAgentLeft, notInCall, agentSays } from './voice.js'
48
+ import { TRANSCRIPT_DESCRIPTION, JOIN_DESCRIPTION, SAY_DESCRIPTION, MAX_LINE, renderLines, readLines, inVoice, transcribeSetting, voiceStatusLines, callAgents, liveCallOf, setAgentLeft, notInCall, agentSays, agentsJoinCalls } from './voice.js'
49
49
 
50
50
  const FEED_CAP = 300
51
51
  const ACTIVITY_CAP = 300
@@ -667,28 +667,31 @@ function sessionTools (server, ctx) {
667
667
  }
668
668
  }, (args, { doc }) => text(renderLines(readLines(doc, { call: args.call || '', since: args.since || 0, limit: args.limit || 200 }))))
669
669
 
670
- tool('quilt_voice_join', {
671
- description: JOIN_DESCRIPTION,
672
- inputSchema: { leave: z.boolean().optional().describe('true to leave the call') }
673
- }, (args, { room, doc }) => {
674
- if (ctx.kind === 'human') return fail('People join calls in the Quilt app.')
675
- const call = liveCallOf(room.awareness)
676
- if (!call) return fail('There is no call going on in this session.')
677
- setAgentLeft(doc, { call, name: me, leave: args.leave === true })
678
- if (args.leave === true) return text('You left the call. Come back with quilt_voice_join.')
679
- const why = notInCall(doc, { call, name: me, members: room.memberList ? room.memberList() : [] })
680
- return why ? fail(why) : text(`You are in the call with ${[...inVoice(room.awareness, -1).keys()].join(', ')}. You show muted unless you speak; only a line that says your name reaches you.`)
681
- })
670
+ // Agents in calls are paused (voice.js agentsJoinCalls): no tools to join or speak in one.
671
+ if (agentsJoinCalls()) {
672
+ tool('quilt_voice_join', {
673
+ description: JOIN_DESCRIPTION,
674
+ inputSchema: { leave: z.boolean().optional().describe('true to leave the call') }
675
+ }, (args, { room, doc }) => {
676
+ if (ctx.kind === 'human') return fail('People join calls in the Quilt app.')
677
+ const call = liveCallOf(room.awareness)
678
+ if (!call) return fail('There is no call going on in this session.')
679
+ setAgentLeft(doc, { call, name: me, leave: args.leave === true })
680
+ if (args.leave === true) return text('You left the call. Come back with quilt_voice_join.')
681
+ const why = notInCall(doc, { call, name: me, members: room.memberList ? room.memberList() : [] })
682
+ return why ? fail(why) : text(`You are in the call with ${[...inVoice(room.awareness, -1).keys()].join(', ')}. You show muted unless you speak; only a line that says your name reaches you.`)
683
+ })
682
684
 
683
- tool('quilt_voice_say', {
684
- description: SAY_DESCRIPTION,
685
- inputSchema: { text: z.string().min(1).max(MAX_LINE).describe('What to say: one to three short spoken sentences') }
686
- }, (args, { room, doc }) => {
687
- if (ctx.kind === 'human') return fail('Only agents speak in a call through Quilt.')
688
- if (ctx.access(room)?.talk === false) return fail(TALK_REFUSED)
689
- try { agentSays(doc, { call: liveCallOf(room.awareness), name: me, text: args.text, members: room.memberList ? room.memberList() : [] }) } catch (err) { return fail(err.message) }
690
- return text('Said in the call: everyone in it hears it in your voice.')
691
- })
685
+ tool('quilt_voice_say', {
686
+ description: SAY_DESCRIPTION,
687
+ inputSchema: { text: z.string().min(1).max(MAX_LINE).describe('What to say: one to three short spoken sentences') }
688
+ }, (args, { room, doc }) => {
689
+ if (ctx.kind === 'human') return fail('Only agents speak in a call through Quilt.')
690
+ if (ctx.access(room)?.talk === false) return fail(TALK_REFUSED)
691
+ try { agentSays(doc, { call: liveCallOf(room.awareness), name: me, text: args.text, members: room.memberList ? room.memberList() : [] }) } catch (err) { return fail(err.message) }
692
+ return text('Said in the call: everyone in it hears it in your voice.')
693
+ })
694
+ }
692
695
 
693
696
  tool('quilt_conversation', {
694
697
  description: CONVERSATION_DESCRIPTION,
@@ -62,7 +62,6 @@ export function agentGuide ({ apiUrl = 'https://api.heyquilt.com', via = 'both'
62
62
  `- Read: \`quilt_read_messages\`${cli ? ` (CLI: \`quilt messages\`, or \`--all\` for history). With the CLI, every quilt answer also starts with anything new for you` : ''}.`,
63
63
  `- What wakes you (a direct message, a mention, a task) comes with the conversation before it: what you and its sender said to each other, directly or in the room, oldest first, and the message a reply answers (in \`quilt_inbox\`, in the webhook's "context", in a channel event, in your tool's hooks). "That", "it", "again" and "retry" mean the latest thing there. When a message refers to something you still do not have in front of you ("that tool", "the fix", "is it live?"), read back before you answer: ${call('quilt_conversation', { with: '<their name>' })} (q to search for some text, before to page further back${cli ? '; CLI: `quilt messages --with <name>`, `--grep <text>`, `--before <id>`' : ''}). Never guess what they meant, never say you do not know what they refer to, and never ask a person to repeat what they already told you.`,
64
64
  `- People also talk in voice calls in the Quilt app. \`quilt_status\` says who is in a call and whether it is transcribed. When it is, read what was said before acting on it: ${call('quilt_voice_transcript', {})}. When it is not, ask in chat what was decided.`,
65
- `- Agents are not in a call until someone says their name in a transcribed one: then their line comes to you as a direct message ("In the voice call: ..."), and your reply to it is said out loud in the call. Answer as people talk in a call: at once a few words that fit what was asked (your own words, not a stock phrase), then the answer in one to three short spoken sentences (lists, code and links go in a separate chat message). ${call('quilt_voice_say', { text: '...' })} speaks in the call directly; \`quilt_voice_transcript\` reads the rest of what was said; ${call('quilt_voice_join', { leave: true })} leaves it.`,
66
65
  '- A person and their AI share the person\'s name. A direct message to the person, or an @mention of them, reaches both: the person sees it in the app, and their AI gets it in its inbox and may answer. To give their AI work, assign a task to the person with to_ai: true. To ask the person themselves (a decision, an approval, access), message them and say it is for them.',
67
66
  '- Other agents are reached the same way, by their own name: an @mention or a direct message wakes them (through their inbox, their webhook or their next tool call). They answer you like they answer a person.',
68
67
  '- When to talk: when you start something, when you need something from someone, when you are blocked, and when you finish. Keep messages brief: a sentence or two in plain words, and one message rather than several. No play-by-play, recaps, logs or pasted code.',
package/src/voice.js CHANGED
@@ -126,13 +126,22 @@ export const AGENT_OPEN_MS = 30 * 1000
126
126
  // A named agent shows joining this long; one that never comes drops out of the call again.
127
127
  export const AGENT_JOIN_MS = 10 * 60 * 1000
128
128
  export const AGENT_NEEDS_TRANSCRIPTS = 'Agents hear a call through its transcript, and this one is not transcribed: the session owner turns transcripts on.'
129
- // Agents in calls are being built: only a call someone joined from Quilt run from source takes them,
130
- // marked in the session (voiceCalls) so every app, agent and the relay agree.
129
+ // Agents in calls are paused (Daniel, 2026-11-06: "I dont want to see any agents join calls"):
130
+ // agents read transcripts with quilt_voice_transcript, but no agent joins a call, is sent a call's
131
+ // lines, or speaks in one, and the join and say tools are left out. setAgentsInCalls(true) is for
132
+ // tests and for picking the work up again (plans/voice.md, NOT-DONE.md).
133
+ let agentsInCalls = false
134
+ export const agentsJoinCalls = () => agentsInCalls
135
+ export const setAgentsInCalls = (on) => { agentsInCalls = !!on }
136
+ export const AGENTS_PAUSED = 'Agents don\'t join calls for now: read what was said with quilt_voice_transcript, and answer in chat.'
137
+ // Even then, only a call someone joined from Quilt run from source takes them, marked in the session
138
+ // (voiceCalls) so every app, agent and the relay agree.
131
139
  export const AGENTS_DEV_ONLY = 'Agents are not in this call: agents in calls are still being built, and join only calls joined from Quilt run from source.'
132
140
  const KEEP_CALL_MARKS = 50
133
141
 
134
142
  /** Whether call `call` takes agents (markCallForAgents). */
135
143
  const takesAgents = (doc, call) => {
144
+ if (!agentsInCalls) return false
136
145
  const v = doc.getMap('voiceCalls').get(call)
137
146
  return !!(v && typeof v === 'object' && v.agents === true)
138
147
  }
@@ -214,6 +223,7 @@ export function setAgentLeft (doc, { call, name, leave = true, now = Date.now()
214
223
  /** Why agent `name` isn't in call `call` now, or '' when it is. */
215
224
  export function notInCall (doc, { call, name, members = [] }) {
216
225
  if (!call) return 'There is no call going on in this session.'
226
+ if (!agentsInCalls) return AGENTS_PAUSED
217
227
  if (!takesAgents(doc, call)) return AGENTS_DEV_ONLY
218
228
  if (!transcribeSetting(doc, members).on) return AGENT_NEEDS_TRANSCRIPTS
219
229
  if (!(members || []).some((m) => m && m.kind === 'agent' && m.name === name)) return 'Only the session\'s agents join its calls.'