heyquilt 0.3.158 → 0.3.159

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.159 — 2026-11-12
15
+
16
+ - **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.
17
+
14
18
  ## 0.3.158 — 2026-11-12
15
19
 
16
20
  - **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.159",
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,23 @@ 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; } }
@@ -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, 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,38 @@ 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
+ const SIGN_IN = { oneclick: 'Sign in with one click: Composio asks the app for you, and Quilt never sees the login.', key: 'Uses your own API key: Composio asks for it once, and keeps it.', none: 'No sign-in: agents can use it as it is.' }
61
+ function openRowHtml (a, connected) {
62
+ const d = details.get(a.slug)
63
+ const list = (xs) => xs.slice(0, 6).map((t) => `<li><b>${esc(t.name)}</b><small>${esc(t.description)}</small></li>`).join('')
64
+ const reads = d && !d.error ? d.actions.filter((t) => t.readOnly) : []
65
+ const changes = d && !d.error ? d.actions.filter((t) => !t.readOnly) : []
66
+ const busy = ui.busy === a.slug
67
+ const act = a.how === 'none' ? '<span class="kl-ready">Ready to use</span>' : `<button type="button" class="btn primary" data-connect="${esc(a.slug)}"${busy ? ' disabled' : ''}>${busy ? 'Opening…' : connected ? `Add another ${esc(a.name)}` : `Connect ${esc(a.name)}`}</button>`
68
+ const what = !d ? `<p class="hint">${loadingNote()}</p>`
69
+ : d.error ? `<p class="hint">${esc(d.error)}</p>`
70
+ : `<div class="kl-dcols">
71
+ <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>
72
+ <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>
73
+ </div>
74
+ ${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>` : ''}`
75
+ return `<div class="kl-detail" data-detail="${esc(a.slug)}">
76
+ <div class="kl-dh">${logoHtml(a)}<div><b>${esc(a.name)}</b><small>${esc(SIGN_IN[a.how] || '')}</small></div>${act}<button type="button" class="kl-x" data-close-open aria-label="Close">${I.x}</button></div>
77
+ ${a.description ? `<p class="kl-ddesc">${esc(a.description)}</p>` : ''}
78
+ ${what}
79
+ </div>`
80
+ }
81
+ async function openApp (slug) {
82
+ ui.open = ui.open === slug ? null : slug
83
+ draw()
84
+ if (!ui.open || details.has(slug)) return
85
+ 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 }) }
86
+ if (ui.open === slug) draw()
55
87
  }
56
88
 
57
89
  function callsHtml () {
@@ -90,6 +122,14 @@ export function mountConnections (root, { type, id, page = false, sessions = [],
90
122
  </section>` : ''}
91
123
  ${callsHtml()}
92
124
  </div>`
125
+ // The open card's row goes after the last card of its row, across both columns.
126
+ const opened = ui.open && root.querySelector(`.kl-card[data-open="${CSS.escape(ui.open)}"]`)
127
+ const openApp_ = ui.open && shown.find((a) => a.slug === ui.open)
128
+ if (opened && openApp_) {
129
+ let end = opened
130
+ while (end.nextElementSibling && end.nextElementSibling.offsetTop === opened.offsetTop) end = end.nextElementSibling
131
+ end.insertAdjacentHTML('afterend', openRowHtml(openApp_, ownApps.has(openApp_.slug)))
132
+ }
93
133
  if (had) { const s = root.querySelector('[data-search]'); s.focus(); s.setSelectionRange(s.value.length, s.value.length) }
94
134
  }
95
135
 
@@ -130,10 +170,20 @@ export function mountConnections (root, { type, id, page = false, sessions = [],
130
170
  root.addEventListener('input', (e) => {
131
171
  if (!e.target.matches('[data-search]')) return
132
172
  ui.search = e.target.value.trim()
173
+ ui.open = null
133
174
  clearTimeout(searchTimer)
134
175
  searchTimer = setTimeout(loadApps, 250)
135
176
  })
136
177
 
178
+ root.addEventListener('keydown', (e) => {
179
+ const card = e.target.matches && e.target.matches('[data-open]') ? e.target : null
180
+ if (card && (e.key === 'Enter' || e.key === ' ')) { e.preventDefault(); openApp(card.dataset.open) }
181
+ if (e.key === 'Escape' && ui.open) { ui.open = null; draw() }
182
+ })
183
+ // A resize moves cards between rows: the open one's row moves with it.
184
+ const onResize = () => { if (ui.open) draw() }
185
+ window.addEventListener('resize', onResize)
186
+
137
187
  root.addEventListener('change', async (e) => {
138
188
  const t = e.target.closest('[data-who-toggle]')
139
189
  if (!t) return
@@ -164,8 +214,11 @@ export function mountConnections (root, { type, id, page = false, sessions = [],
164
214
  load()
165
215
  return
166
216
  }
217
+ if (e.target.closest('[data-close-open]')) { ui.open = null; draw(); return }
218
+ const card = e.target.closest('[data-open]')
219
+ if (card && !e.target.closest('button, a, input, label')) { openApp(card.dataset.open); return }
167
220
  const tab = e.target.closest('[data-group]')
168
- if (tab) { ui.group = tab.dataset.group; ui.apps = null; draw(); loadApps(); return }
221
+ if (tab) { ui.group = tab.dataset.group; ui.open = null; ui.apps = null; draw(); loadApps(); return }
169
222
  if (e.target.closest('[data-load-more]')) { loadApps(true); return }
170
223
 
171
224
  })
@@ -175,7 +228,7 @@ export function mountConnections (root, { type, id, page = false, sessions = [],
175
228
  loadApps()
176
229
  return {
177
230
  refresh: load,
178
- destroy () { alive = false; clearTimeout(poll); clearTimeout(searchTimer) }
231
+ destroy () { alive = false; clearTimeout(poll); clearTimeout(searchTimer); window.removeEventListener('resize', onResize) }
179
232
  }
180
233
  }
181
234
 
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]))) {