heyquilt 0.3.158 → 0.3.160

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,14 @@ 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.160 — 2026-11-12
15
+
16
+ - **An app's card pours open.** Click an app on the Connections page and its card flows down into one shape with the list of what it can do, spreading out to the full width as it grows. A second click or Escape draws it back in. The card keeps its name, logo and **Connect**, so the list below shows only the app's actions.
17
+
18
+ ## 0.3.159 — 2026-11-12
19
+
20
+ - **See what an app can do before you connect it.** Click an app on the Connections page and a row opens under it: all it says about itself, how you sign in, and what agents can do with it. What they read on their own and what asks someone first (anything that sends, creates, changes or deletes) are listed apart.
21
+
14
22
  ## 0.3.158 — 2026-11-12
15
23
 
16
24
  - **Connections, laid out like a directory.** One search for every app ("1,644 available"), tabs for Recommended, Email & Calendar, Projects & Code, Marketing & Growth, Business Ops, Knowledge and Other, and two columns of cards: each app's logo, what it does, how you sign in, and **Connect**. Your connected apps are the same cards at the top, with their switch and **Manage**.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heyquilt",
3
- "version": "0.3.158",
3
+ "version": "0.3.160",
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",
@@ -124,6 +124,24 @@ export function composioClient ({ apiKey = '', base = COMPOSIO_API, fetch: fetch
124
124
  return (r.items || []).filter((t) => !t.is_deprecated).map(toolView)
125
125
  }
126
126
 
127
+ // What an app lets agents do, for its card on the Connections page, cached CATALOG_MS: up to 100 of its actions
128
+ // (the ones Composio marks important first, none deprecated), and how many it has in all.
129
+ const actionsCache = new Map()
130
+ async function appActions (app) {
131
+ const hit = actionsCache.get(app)
132
+ if (hit && Date.now() - hit.at < CATALOG_MS) return hit.value
133
+ const r = await call('GET', `/tools${q({ toolkit_slug: app, limit: 100 })}`)
134
+ const total = r.total_items
135
+ const live = (r.items || []).filter((t) => !t.is_deprecated && !/deprecated/i.test(`${t.name} ${String(t.description || '').slice(0, 40)}`))
136
+ // The ones Composio marks important first, then the rest as it lists them.
137
+ const important = (t) => ((t.tags || []).includes('important') ? 0 : 1)
138
+ const actions = live.map((t, i) => ({ t, i })).sort((x, y) => important(x.t) - important(y.t) || x.i - y.i).map(({ t }) => toolView(t))
139
+ .map((t) => ({ slug: t.slug, name: t.name, description: t.description.split(/(?<=\.)\s/)[0].slice(0, 200), readOnly: t.readOnly }))
140
+ const value = { actions, total: Number(total) || actions.length }
141
+ actionsCache.set(app, { at: Date.now(), value })
142
+ return value
143
+ }
144
+
127
145
  async function tool (slug) {
128
146
  return toolView(await call('GET', `/tools/${encodeURIComponent(slug)}`))
129
147
  }
@@ -169,5 +187,5 @@ export function composioClient ({ apiKey = '', base = COMPOSIO_API, fetch: fetch
169
187
  return { ok: r.successful !== false && !r.error, data: r.data ?? null, error: r.error || null }
170
188
  }
171
189
 
172
- return { on: !!apiKey, toolkits, catalog, toolkit, tools, tool, link, account, remove, execute }
190
+ return { on: !!apiKey, toolkits, catalog, toolkit, tools, tool, appActions, link, account, remove, execute }
173
191
  }
@@ -227,6 +227,15 @@ export function connectionRoutes (ctx) {
227
227
  })
228
228
  }],
229
229
 
230
+ // One app's card opened on the Connections page: what it is, how one signs in, and what agents can do with it.
231
+ ['GET', /^\/v1\/connections\/apps\/([a-z0-9_-]{1,80})$/, async (req, body, params) => {
232
+ await whoCalls(req)
233
+ const slug = params[0]
234
+ const app = (await composio.catalog()).find((a) => a.slug === slug)
235
+ if (!app) throw new HttpError(404, 'No such app.')
236
+ return { app, ...(await composio.appActions(slug)) }
237
+ }],
238
+
230
239
  // Composio sends the browser back here once someone signed in (or gave up).
231
240
  ['GET', /^\/v1\/connections\/done$/, async (req, body, params, url) => {
232
241
  const u = url || new URL(req.url, 'http://x')
package/src/ui/app.css CHANGED
@@ -3655,3 +3655,36 @@ button.sh-repo:hover { color: var(--text); }
3655
3655
  .kl .cn-more { margin-top: 16px; }
3656
3656
  @media (max-width: 760px) { .kl-grid { grid-template-columns: 1fr; } }
3657
3657
  .kl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
3658
+
3659
+ /* An opened app card and its row underneath: what it is, how you sign in, and what agents can do with it */
3660
+ .kl-card[data-open] { cursor: pointer; }
3661
+ .kl-card.open { border-color: var(--text); }
3662
+ .kl-card[data-open]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
3663
+ .kl-detail { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 16px; padding: 22px 24px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--panel); animation: kl-open .18s ease-out; }
3664
+ @keyframes kl-open { from { opacity: 0; transform: translateY(-4px); } }
3665
+ @media (prefers-reduced-motion: reduce) { .kl-detail { animation: none; } }
3666
+ .kl-dh { display: flex; align-items: center; gap: 16px; }
3667
+ .kl-dh .cn-logo { width: 48px; height: 48px; padding: 0; border-radius: 10px; background: none; box-shadow: none; object-fit: contain; flex: none; }
3668
+ .kl-dh > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .kl-dh b { font-size: 18px; font-weight: 600; } .kl-dh small { font-size: 13px; color: var(--muted); }
3669
+ .kl-dh .btn { height: 36px; flex: none; }
3670
+ .kl-x { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 8px; background: none; color: var(--faint); cursor: pointer; } .kl-x:hover { background: var(--panel-2); color: var(--text); } .kl-x svg { width: 16px; height: 16px; }
3671
+ .kl-ddesc { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); }
3672
+ .kl-dcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: 16px; border-top: 1px solid var(--border); }
3673
+ .kl-dcols h4 { margin: 0; font-size: 13.5px; font-weight: 600; } .kl-dcols h4 i { font-style: normal; font-weight: 500; color: var(--faint); margin-left: 4px; }
3674
+ .kl-dnote { margin: 4px 0 0; font-size: 12.5px; color: var(--faint); line-height: 1.5; }
3675
+ .kl-dcols ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
3676
+ .kl-dcols li { display: flex; flex-direction: column; gap: 2px; } .kl-dcols li b { font-size: 13.5px; font-weight: 500; } .kl-dcols li small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
3677
+ @media (max-width: 760px) { .kl-dcols { grid-template-columns: 1fr; } }
3678
+
3679
+ /* The open card and its row as one liquid shape (drawn by connections.js behind both): the card loses its own box,
3680
+ the row pours out of it */
3681
+ .kl-grid { position: relative; isolation: isolate; }
3682
+ .kl-grid > .kl-card, .kl-grid > .kl-detail { position: relative; z-index: 1; }
3683
+ .kl-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
3684
+ .kl-shape path { fill: var(--panel); stroke: var(--border-strong); stroke-width: 1; }
3685
+ .kl-card.open, .kl-card.open:hover { background: transparent; border-color: transparent; }
3686
+ .kl-card.open .kl-t small { -webkit-line-clamp: unset; display: block; }
3687
+ .kl-card.busy { cursor: progress; opacity: .7; }
3688
+ .kl-detail { padding: 0; border: 0; border-radius: 0; background: none; animation: none; overflow: hidden; gap: 0; }
3689
+ .kl-dinner { padding: 6px 24px 22px; display: flex; flex-direction: column; gap: 14px; }
3690
+ .kl-dcols { padding-top: 0; border-top: 0; }
@@ -2,7 +2,7 @@
2
2
  // button): apps people connect for a session, workspace or team through Composio, which keeps the
3
3
  // sign-ins (plans/app-connections.md). Agents use them with quilt_apps / quilt_app_tools /
4
4
  // quilt_app_call. Also the approval card an app action waiting for a person draws in the chat.
5
- import { api, esc, toast, ago, I } from './common.js'
5
+ import { api, esc, toast, ago, I, loadingNote } from './common.js'
6
6
  import { SEARCH_ICON } from './quiltview.js'
7
7
 
8
8
  const views = new Map() // `${type}:${id}` -> the last view, so a redraw shows it at once
@@ -21,7 +21,8 @@ const logoHtml = (a) => a.logo
21
21
  */
22
22
  export function mountConnections (root, { type, id, page = false, sessions = [], callsRoom = null, me = '' }) {
23
23
  // The catalog: `apps` the page shown so far, `total` how many match, `cat` the category picked ('' every app).
24
- const ui = { search: '', apps: null, total: 0, all: 0, groups: [], group: '', loadingMore: false, busy: '', error: '', calls: null, confirm: null }
24
+ const ui = { search: '', apps: null, total: 0, all: 0, groups: [], group: '', open: null, pour: null, loadingMore: false, busy: '', error: '', calls: null, confirm: null }
25
+ const details = new Map() // app slug -> { actions, total } or { error }, for its opened card
25
26
  let view = views.get(`${type}:${id}`) || null
26
27
  let alive = true
27
28
  let poll = null
@@ -51,7 +52,112 @@ export function mountConnections (root, { type, id, page = false, sessions = [],
51
52
  const act = a.how === 'none'
52
53
  ? '<span class="kl-ready">Ready to use</span>'
53
54
  : `<button type="button" class="kl-act" data-connect="${esc(a.slug)}"${busy ? ' disabled' : ''}>${busy ? 'Opening…' : connected ? 'Add another' : 'Connect'}</button>`
54
- return `<div class="kl-card">${logoHtml(a)}<div class="kl-t"><b>${esc(a.name)}<i class="${esc(a.how)}">${esc(HOW[a.how] || '')}</i></b><small title="${esc(a.description)}">${esc(a.description || '')}</small></div><div class="kl-r">${act}</div></div>`
55
+ return `<div class="kl-card${ui.open === a.slug ? ' open' : ''}" data-open="${esc(a.slug)}" role="button" tabindex="0" aria-expanded="${ui.open === a.slug}">${logoHtml(a)}<div class="kl-t"><b>${esc(a.name)}<i class="${esc(a.how)}">${esc(HOW[a.how] || '')}</i></b><small title="${esc(a.description)}">${esc(a.description || '')}</small></div><div class="kl-r">${act}</div></div>`
56
+ }
57
+
58
+ // An opened card's row under it (Daniel, 2026-11-12): all it says about itself, how you sign in, and what agents
59
+ // can do with it, split the way Quilt runs it: reads at once, anything that changes something asks a person first.
60
+ function openRowHtml (a, connected) {
61
+ const d = details.get(a.slug)
62
+ const list = (xs) => xs.slice(0, 6).map((t) => `<li><b>${esc(t.name)}</b><small>${esc(t.description)}</small></li>`).join('')
63
+ const reads = d && !d.error ? d.actions.filter((t) => t.readOnly) : []
64
+ const changes = d && !d.error ? d.actions.filter((t) => !t.readOnly) : []
65
+ const what = !d ? `<p class="hint">${loadingNote()}</p>`
66
+ : d.error ? `<p class="hint">${esc(d.error)}</p>`
67
+ : `<div class="kl-dcols">
68
+ <div><h4>Reads on its own <i>${reads.length}</i></h4><p class="kl-dnote">Agents use these at once.</p>${reads.length ? `<ul>${list(reads)}</ul>` : '<p class="hint">None among its main actions.</p>'}${reads.length > 6 ? `<p class="kl-dnote">and ${reads.length - 6} more</p>` : ''}</div>
69
+ <div><h4>Asks someone first <i>${changes.length}</i></h4><p class="kl-dnote">Sends, creates, changes or deletes: a card in the session's chat asks a person to approve each one.</p>${changes.length ? `<ul>${list(changes)}</ul>` : '<p class="hint">None among its main actions.</p>'}${changes.length > 6 ? `<p class="kl-dnote">and ${changes.length - 6} more</p>` : ''}</div>
70
+ </div>
71
+ ${d.total > d.actions.length ? `<p class="kl-dnote">From ${d.actions.length} of its ${d.total.toLocaleString()} actions; agents find the rest when they need them.</p>` : ''}`
72
+ // Only what it can do: its name, logo and Connect are on the card it flows out of.
73
+ return `<div class="kl-detail" data-detail="${esc(a.slug)}"><div class="kl-dinner">${what}</div></div>`
74
+ }
75
+ // Opening: its actions are fetched first, so the row pours out of the card at its full height; a second click (or
76
+ // Escape) draws it back in.
77
+ async function openApp (slug) {
78
+ if (ui.open === slug) return closeApp()
79
+ const card = root.querySelector(`.kl-card[data-open="${CSS.escape(slug)}"]`)
80
+ if (!details.has(slug)) {
81
+ card?.classList.add('busy')
82
+ try { const r = await api('GET', `/api/connections/apps/${encodeURIComponent(slug)}`); details.set(slug, { actions: r.actions || [], total: r.total || 0 }) } catch (err) { details.set(slug, { error: err.message, actions: [], total: 0 }) }
83
+ card?.classList.remove('busy')
84
+ }
85
+ ui.open = slug
86
+ ui.pour = 'in'
87
+ draw()
88
+ }
89
+ function closeApp () {
90
+ if (!ui.open) return
91
+ const det = root.querySelector('.kl-detail')
92
+ if (!det || reduced()) { ui.open = null; draw(); return }
93
+ pour(det, 'out', () => { ui.open = null; draw() })
94
+ }
95
+ const reduced = () => window.matchMedia('(prefers-reduced-motion: reduce)').matches
96
+
97
+ // The open card and its row are one shape, drawn behind them: the card's sides curve out into the row, which pours
98
+ // down out of the card and spreads to the full width as it grows (liquid), or draws back in.
99
+ function shapePath (grid, card, det, t) {
100
+ const G = grid.getBoundingClientRect()
101
+ const C = card.getBoundingClientRect()
102
+ const D = det.getBoundingClientRect()
103
+ const r = 14
104
+ const x1 = C.left - G.left + 0.5
105
+ const x2 = C.right - G.left - 0.5
106
+ const y1 = C.top - G.top + 0.5
107
+ const cb = D.top - G.top
108
+ const B = D.bottom - G.top - 0.5
109
+ const L = D.left - G.left + 0.5
110
+ const W = D.right - G.left - 0.5
111
+ // It spreads as it falls: slowly at first (a stream out of the card), then out to both edges.
112
+ const tt = Math.min(1, Math.max(0, t))
113
+ const e = tt * tt * (3 - 2 * tt)
114
+ const PL = x1 + (L - x1) * e
115
+ const PR = x2 + (W - x2) * e
116
+ const h = Math.max(0, B - cb)
117
+ const rr = Math.min(r, h / 2)
118
+ const left = x1 - PL
119
+ const right = PR - x2
120
+ const fl = Math.min(22, left / 2, h)
121
+ const fr = Math.min(22, right / 2, h)
122
+ const tl = Math.min(rr, Math.max(0, left - fl))
123
+ const tr = Math.min(rr, Math.max(0, right - fr))
124
+ let d = `M ${x1 + r} ${y1} H ${x2 - r} A ${r} ${r} 0 0 1 ${x2} ${y1 + r}`
125
+ d += right < 1 ? ` V ${B - rr} A ${rr} ${rr} 0 0 1 ${x2 - rr} ${B}`
126
+ : ` V ${cb - fr} A ${fr} ${fr} 0 0 0 ${x2 + fr} ${cb} H ${PR - tr} A ${tr} ${tr} 0 0 1 ${PR} ${cb + tr} V ${B - rr} A ${rr} ${rr} 0 0 1 ${PR - rr} ${B}`
127
+ d += left < 1 ? ` H ${x1 + rr} A ${rr} ${rr} 0 0 1 ${x1} ${B - rr} V ${y1 + r}`
128
+ : ` H ${PL + rr} A ${rr} ${rr} 0 0 1 ${PL} ${B - rr} V ${cb + tl} A ${tl} ${tl} 0 0 1 ${PL + tl} ${cb} H ${x1 - fl} A ${fl} ${fl} 0 0 0 ${x1} ${cb - fl} V ${y1 + r}`
129
+ return `${d} A ${r} ${r} 0 0 1 ${x1 + r} ${y1} Z`
130
+ }
131
+ function drawShape (t = 1) {
132
+ const grid = root.querySelector('.kl-detail')?.parentElement
133
+ const det = grid && grid.querySelector('.kl-detail')
134
+ const card = grid && grid.querySelector('.kl-card.open')
135
+ if (!det || !card) return
136
+ let svg = grid.querySelector(':scope > .kl-shape')
137
+ if (!svg) { grid.insertAdjacentHTML('afterbegin', '<svg class="kl-shape" aria-hidden="true"><path/></svg>'); svg = grid.firstElementChild }
138
+ svg.firstElementChild.setAttribute('d', shapePath(grid, card, det, t))
139
+ }
140
+ // Pours the row in (its height from nothing to its own, spreading out of the card) or out, then calls `done`.
141
+ function pour (det, way, done = () => {}) {
142
+ const inner = det.firstElementChild
143
+ const full = inner.offsetHeight
144
+ const from = way === 'in' ? 0 : det.offsetHeight
145
+ const to = way === 'in' ? full : 0
146
+ const ms = way === 'in' ? 520 : 300
147
+ const start = performance.now()
148
+ let raf = 0
149
+ const ease = way === 'in' ? (x) => 1 - Math.pow(1 - x, 3) : (x) => x * x
150
+ const frame = (now) => {
151
+ const x = Math.min(1, (now - start) / ms)
152
+ const hgt = from + (to - from) * ease(x)
153
+ det.style.height = `${hgt}px`
154
+ inner.style.opacity = String(way === 'in' ? Math.max(0, (x - 0.35) / 0.65) : Math.max(0, 1 - x * 2))
155
+ drawShape(full ? hgt / full : 0)
156
+ if (x < 1) raf = requestAnimationFrame(frame)
157
+ else { det.style.height = ''; inner.style.opacity = ''; done() }
158
+ }
159
+ cancelAnimationFrame(raf)
160
+ raf = requestAnimationFrame(frame)
55
161
  }
56
162
 
57
163
  function callsHtml () {
@@ -90,6 +196,17 @@ export function mountConnections (root, { type, id, page = false, sessions = [],
90
196
  </section>` : ''}
91
197
  ${callsHtml()}
92
198
  </div>`
199
+ // The open card's row goes after the last card of its row, across both columns.
200
+ const opened = ui.open && root.querySelector(`.kl-card[data-open="${CSS.escape(ui.open)}"]`)
201
+ const openApp_ = ui.open && shown.find((a) => a.slug === ui.open)
202
+ if (opened && openApp_) {
203
+ let end = opened
204
+ while (end.nextElementSibling && end.nextElementSibling.offsetTop === opened.offsetTop) end = end.nextElementSibling
205
+ end.insertAdjacentHTML('afterend', openRowHtml(openApp_, ownApps.has(openApp_.slug)))
206
+ const det = end.nextElementSibling
207
+ if (ui.pour === 'in' && !reduced()) { det.style.height = '0px'; det.firstElementChild.style.opacity = '0'; pour(det, 'in') } else drawShape(1)
208
+ ui.pour = null
209
+ }
93
210
  if (had) { const s = root.querySelector('[data-search]'); s.focus(); s.setSelectionRange(s.value.length, s.value.length) }
94
211
  }
95
212
 
@@ -130,10 +247,20 @@ export function mountConnections (root, { type, id, page = false, sessions = [],
130
247
  root.addEventListener('input', (e) => {
131
248
  if (!e.target.matches('[data-search]')) return
132
249
  ui.search = e.target.value.trim()
250
+ ui.open = null
133
251
  clearTimeout(searchTimer)
134
252
  searchTimer = setTimeout(loadApps, 250)
135
253
  })
136
254
 
255
+ root.addEventListener('keydown', (e) => {
256
+ const card = e.target.matches && e.target.matches('[data-open]') ? e.target : null
257
+ if (card && (e.key === 'Enter' || e.key === ' ')) { e.preventDefault(); openApp(card.dataset.open) }
258
+ if (e.key === 'Escape' && ui.open) closeApp()
259
+ })
260
+ // A resize moves cards between rows: the open one's row moves with it.
261
+ const onResize = () => { if (ui.open) draw() } // the row moves under its card's new row, and the shape is redrawn
262
+ window.addEventListener('resize', onResize)
263
+
137
264
  root.addEventListener('change', async (e) => {
138
265
  const t = e.target.closest('[data-who-toggle]')
139
266
  if (!t) return
@@ -164,8 +291,10 @@ export function mountConnections (root, { type, id, page = false, sessions = [],
164
291
  load()
165
292
  return
166
293
  }
294
+ const card = e.target.closest('[data-open]')
295
+ if (card && !e.target.closest('button, a, input, label')) { openApp(card.dataset.open); return }
167
296
  const tab = e.target.closest('[data-group]')
168
- if (tab) { ui.group = tab.dataset.group; ui.apps = null; draw(); loadApps(); return }
297
+ if (tab) { ui.group = tab.dataset.group; ui.open = null; ui.apps = null; draw(); loadApps(); return }
169
298
  if (e.target.closest('[data-load-more]')) { loadApps(true); return }
170
299
 
171
300
  })
@@ -175,7 +304,7 @@ export function mountConnections (root, { type, id, page = false, sessions = [],
175
304
  loadApps()
176
305
  return {
177
306
  refresh: load,
178
- destroy () { alive = false; clearTimeout(poll); clearTimeout(searchTimer) }
307
+ destroy () { alive = false; clearTimeout(poll); clearTimeout(searchTimer); window.removeEventListener('resize', onResize) }
179
308
  }
180
309
  }
181
310
 
package/src/ui-server.js CHANGED
@@ -962,6 +962,8 @@ export async function startUi ({ port = 7420, onShutdown, preview = false, repor
962
962
  const enc = (v) => encodeURIComponent(String(v))
963
963
  return asAccount(async (token) => {
964
964
  const c = secretsApi(token)
965
+ const oneApp = p.match(/^\/api\/connections\/apps\/([a-z0-9_-]{1,80})$/)
966
+ if (method === 'GET' && oneApp) return apiCall(c, 'GET', `/v1/connections/apps/${oneApp[1]}`)
965
967
  if (method === 'GET' && p === '/api/connections/apps') return apiCall(c, 'GET', `/v1/connections/apps?search=${enc(url.searchParams.get('search') || '')}&group=${enc(url.searchParams.get('group') || '')}&offset=${enc(url.searchParams.get('offset') || '0')}&limit=${enc(url.searchParams.get('limit') || '48')}`)
966
968
  const sc = p.match(/^\/api\/connections\/(org|workspace|session)\/([^/]+)(?:\/([0-9a-f-]{36}))?$/i)
967
969
  if (sc && SECRET_SCOPE_ID[sc[1]].test(decodeURIComponent(sc[2]))) {