heyquilt 0.3.161 → 0.3.163
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 +9 -0
- package/package.json +1 -1
- package/src/api/composio.js +15 -6
- package/src/api/routes/connections.js +19 -0
- package/src/ui/app.css +6 -0
- package/src/ui/connections.js +6 -7
- package/src/ui/session.js +6 -3
package/RELEASES.md
CHANGED
|
@@ -11,6 +11,15 @@ 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.163 — 2026-11-12
|
|
15
|
+
|
|
16
|
+
- **Your face isn't in the top bar twice.** The faces next to "N working" show only the others in the session; yours is on the rail. When you're alone and idle there, the faces are gone.
|
|
17
|
+
|
|
18
|
+
## 0.3.162 — 2026-11-12
|
|
19
|
+
|
|
20
|
+
- **Every app has a page on heyquilt.com.** heyquilt.com/integrations lists every app your agents can use, with search and the same tabs as the app. Each app's page lists everything it can do, what agents read on their own apart from what asks someone first. An opened app on the Connections page links to its page instead of a Show more button.
|
|
21
|
+
- **App logos show in dark mode.** Dark logos like GitHub's and Notion's sit on a light tile.
|
|
22
|
+
|
|
14
23
|
## 0.3.161 — 2026-11-12
|
|
15
24
|
|
|
16
25
|
- **An opened app reads at a glance.** Its actions sit under a green **Reads on its own** badge and a vermilion **Asks someone first** badge. Each action has an icon for what it does: search, create, edit, delete or send. **Show more** opens the rest of each list.
|
package/package.json
CHANGED
package/src/api/composio.js
CHANGED
|
@@ -129,18 +129,27 @@ export function composioClient ({ apiKey = '', base = COMPOSIO_API, fetch: fetch
|
|
|
129
129
|
const actionsCache = new Map()
|
|
130
130
|
// A description cut to `n` characters at a word, with an ellipsis when it was cut.
|
|
131
131
|
const short = (text, n) => text.length <= n ? text : `${text.slice(0, n).replace(/\s+\S*$/, '')}…`
|
|
132
|
-
async function appActions (app) {
|
|
133
|
-
const
|
|
132
|
+
async function appActions (app, { all = false } = {}) {
|
|
133
|
+
const key = `${app}|${all ? 'all' : 'top'}`
|
|
134
|
+
const hit = actionsCache.get(key)
|
|
134
135
|
if (hit && Date.now() - hit.at < CATALOG_MS) return hit.value
|
|
135
|
-
|
|
136
|
-
const
|
|
137
|
-
|
|
136
|
+
// The app shows up to 100; its page on the website (all) every one, a page of 500 at a time.
|
|
137
|
+
const items = []
|
|
138
|
+
let cursor = ''
|
|
139
|
+
let total = 0
|
|
140
|
+
do {
|
|
141
|
+
const r = await call('GET', `/tools${q({ toolkit_slug: app, limit: all ? 500 : 100, cursor })}`)
|
|
142
|
+
items.push(...(r.items || []))
|
|
143
|
+
total = r.total_items ?? total
|
|
144
|
+
cursor = all ? (r.next_cursor || '') : ''
|
|
145
|
+
} while (cursor && items.length < 3000)
|
|
146
|
+
const live = items.filter((t) => !t.is_deprecated && !/deprecated/i.test(`${t.name} ${String(t.description || '').slice(0, 40)}`))
|
|
138
147
|
// The ones Composio marks important first, then the rest as it lists them.
|
|
139
148
|
const important = (t) => ((t.tags || []).includes('important') ? 0 : 1)
|
|
140
149
|
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))
|
|
141
150
|
.map((t) => ({ slug: t.slug, name: t.name, description: short(t.description.split(/(?<=\.)\s/)[0], 240), readOnly: t.readOnly }))
|
|
142
151
|
const value = { actions, total: Number(total) || actions.length }
|
|
143
|
-
actionsCache.set(
|
|
152
|
+
actionsCache.set(key, { at: Date.now(), value })
|
|
144
153
|
return value
|
|
145
154
|
}
|
|
146
155
|
|
|
@@ -34,6 +34,8 @@ export const APP_GROUPS = [
|
|
|
34
34
|
{ id: 'business', name: 'Business Ops', cats: ['crm', 'sales-&-crm', 'ecommerce', 'commerce', 'accounting', 'payment-processing', 'customer-support', 'support', 'contact-management', 'human-resources', 'hr-talent-&-recruitment', 'proposal-&-invoice-management', 'signatures', 'taxes', 'fundraising', 'ai-sales-tools', 'people-&-contact-data', 'company-data', 'legal-&-public-records', 'phone-&-sms', 'communication', 'team-chat', 'notifications'] },
|
|
35
35
|
{ id: 'knowledge', name: 'Knowledge', cats: ['documents', 'productivity', 'team-collaboration', 'notes', 'file-management-&-storage', 'spreadsheets', 'content-&-files', 'documents-&-ocr', 'bookmark-managers', 'web-search-&-research', 'education', 'online-courses', 'transcription', 'ai-document-extraction'] }
|
|
36
36
|
]
|
|
37
|
+
/** The names of the tabs an app is under, for its page on the website. */
|
|
38
|
+
export const groupNames = (a) => groupsOf(a).map((id) => (APP_GROUPS.find((g) => g.id === id) || { name: 'Other' }).name)
|
|
37
39
|
const groupsOf = (a) => {
|
|
38
40
|
const ids = a.categories.map((c) => c.id)
|
|
39
41
|
const in_ = APP_GROUPS.filter((g) => g.cats.some((c) => ids.includes(c))).map((g) => g.id)
|
|
@@ -227,6 +229,23 @@ export function connectionRoutes (ctx) {
|
|
|
227
229
|
})
|
|
228
230
|
}],
|
|
229
231
|
|
|
232
|
+
// The website's integrations pages (heyquilt.com/integrations): the catalog and one app with every action. Public,
|
|
233
|
+
// no sign-in: it is Composio's public catalog, without anyone's connections.
|
|
234
|
+
['GET', /^\/v1\/integrations$/, async (req, body, params, url) => {
|
|
235
|
+
const u = url || new URL(req.url, 'http://x')
|
|
236
|
+
return pickApps(await composio.catalog(), {
|
|
237
|
+
search: u.searchParams.get('search') || '',
|
|
238
|
+
group: u.searchParams.get('group') || '',
|
|
239
|
+
offset: Number(u.searchParams.get('offset')) || 0,
|
|
240
|
+
limit: Number(u.searchParams.get('limit')) || 48
|
|
241
|
+
})
|
|
242
|
+
}],
|
|
243
|
+
['GET', /^\/v1\/integrations\/([a-z0-9_-]{1,80})$/, async (req, body, params) => {
|
|
244
|
+
const app = (await composio.catalog()).find((a) => a.slug === params[0])
|
|
245
|
+
if (!app) throw new HttpError(404, 'No such app.')
|
|
246
|
+
return { app, groups: groupNames(app), ...(await composio.appActions(app.slug, { all: true })) }
|
|
247
|
+
}],
|
|
248
|
+
|
|
230
249
|
// One app's card opened on the Connections page: what it is, how one signs in, and what agents can do with it.
|
|
231
250
|
['GET', /^\/v1\/connections\/apps\/([a-z0-9_-]{1,80})$/, async (req, body, params) => {
|
|
232
251
|
await whoCalls(req)
|
package/src/ui/app.css
CHANGED
|
@@ -3713,3 +3713,9 @@ button.sh-repo:hover { color: var(--text); }
|
|
|
3713
3713
|
.kl-dfoot { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; padding-top: 14px; border-top: 1px dashed var(--border); font-size: 12.5px; color: var(--faint); }
|
|
3714
3714
|
.kl-dfoot svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
|
|
3715
3715
|
.kl-dcols li small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
|
3716
|
+
a.kl-dmore { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; line-height: 30px; } a.kl-dmore svg { width: 12px; height: 12px; color: var(--faint); }
|
|
3717
|
+
.kl-dfoot a { color: var(--text); font-weight: 600; text-decoration: none; } .kl-dfoot a:hover { color: var(--accent); }
|
|
3718
|
+
/* Dark logos (GitHub, Notion) vanish in dark mode: there each app's logo sits on a light tile. */
|
|
3719
|
+
.kl-card .cn-logo:not(.none) { background: light-dark(transparent, #fff); padding: 3px; box-sizing: border-box; }
|
|
3720
|
+
.kl-dinner { padding-top: 26px; }
|
|
3721
|
+
.wb-tools .people-pill[hidden] { display: none; }
|
package/src/ui/connections.js
CHANGED
|
@@ -8,6 +8,8 @@ import { SEARCH_ICON } from './quiltview.js'
|
|
|
8
8
|
const views = new Map() // `${type}:${id}` -> the last view, so a redraw shows it at once
|
|
9
9
|
const urlOf = (type, id, rest = '') => `/api/connections/${type}/${encodeURIComponent(id)}${rest}`
|
|
10
10
|
const PAGE = 48 // apps fetched at a time for the catalog
|
|
11
|
+
// An app's page on the website, with every action it has (web/app/integrations/[slug]).
|
|
12
|
+
const siteUrl = (a) => `https://heyquilt.com/integrations/${encodeURIComponent(a.slug)}`
|
|
11
13
|
const LEVEL = { session: 'this session', workspace: 'the workspace', org: 'the team' }
|
|
12
14
|
const STATUS = { active: 'Connected', pending: 'Waiting for sign-in', failed: 'Didn\'t connect' }
|
|
13
15
|
|
|
@@ -23,7 +25,7 @@ export function mountConnections (root, { type, id, page = false, sessions = [],
|
|
|
23
25
|
// The catalog: `apps` the page shown so far, `total` how many match, `cat` the category picked ('' every app).
|
|
24
26
|
const ui = { search: '', apps: null, total: 0, all: 0, groups: [], group: '', open: null, pour: null, loadingMore: false, busy: '', error: '', calls: null, confirm: null }
|
|
25
27
|
const details = new Map() // app slug -> { actions, total } or { error }, for its opened card
|
|
26
|
-
|
|
28
|
+
|
|
27
29
|
let view = views.get(`${type}:${id}`) || null
|
|
28
30
|
let alive = true
|
|
29
31
|
let poll = null
|
|
@@ -76,18 +78,17 @@ export function mountConnections (root, { type, id, page = false, sessions = [],
|
|
|
76
78
|
const d = details.get(a.slug)
|
|
77
79
|
const SHOWN = 6
|
|
78
80
|
const col = (kind, title, note, icon, xs) => {
|
|
79
|
-
const
|
|
80
|
-
const list = all ? xs : xs.slice(0, SHOWN)
|
|
81
|
+
const list = xs.slice(0, SHOWN)
|
|
81
82
|
return `<div class="kl-dcol ${kind}"><div class="kl-dch"><span class="kl-dbadge">${icon}${esc(title)}<i>${xs.length}</i></span><small>${esc(note)}</small></div>
|
|
82
83
|
${xs.length ? `<ul>${list.map((t) => `<li><span class="kl-vi">${verbIcon(t)}</span><span><b>${esc(t.name)}</b><small>${esc(t.description)}</small></span></li>`).join('')}</ul>` : '<p class="kl-dnone">None among its actions.</p>'}
|
|
83
|
-
${xs.length > SHOWN ? `<
|
|
84
|
+
${xs.length > SHOWN ? `<a class="kl-dmore" href="${esc(siteUrl(a))}" target="_blank" rel="noopener">More on heyquilt.com ${I.external}</a>` : ''}</div>`
|
|
84
85
|
}
|
|
85
86
|
const reads = d && !d.error ? d.actions.filter((t) => t.readOnly) : []
|
|
86
87
|
const changes = d && !d.error ? d.actions.filter((t) => !t.readOnly) : []
|
|
87
88
|
const what = !d ? `<p class="hint">${loadingNote()}</p>`
|
|
88
89
|
: d.error ? `<p class="hint">${esc(d.error)}</p>`
|
|
89
90
|
: `<div class="kl-dcols">${col('reads', 'Reads on its own', 'Agents use these right away.', I.eye, reads)}${col('asks', 'Asks someone first', 'Anything that sends, creates, changes or deletes waits for a person to approve it in the session’s chat.', HAND, changes)}</div>
|
|
90
|
-
|
|
91
|
+
<p class="kl-dfoot">${I.sparkle}<span>${d.total > d.actions.length ? `Showing ${d.actions.length} of its ${d.total.toLocaleString()} actions.` : `${d.actions.length} actions in all.`} <a href="${esc(siteUrl(a))}" target="_blank" rel="noopener">Every ${esc(a.name)} action on heyquilt.com</a></span></p>`
|
|
91
92
|
// Only what it can do: its name, logo and Connect are on the card it flows out of.
|
|
92
93
|
return `<div class="kl-detail" data-detail="${esc(a.slug)}"><div class="kl-dinner">${what}</div></div>`
|
|
93
94
|
}
|
|
@@ -326,8 +327,6 @@ export function mountConnections (root, { type, id, page = false, sessions = [],
|
|
|
326
327
|
load()
|
|
327
328
|
return
|
|
328
329
|
}
|
|
329
|
-
const more = e.target.closest('[data-more-actions]')
|
|
330
|
-
if (more) { const k = more.dataset.moreActions; if (ui.more.has(k)) ui.more.delete(k); else ui.more.add(k); draw(); return }
|
|
331
330
|
const card = e.target.closest('[data-open]')
|
|
332
331
|
if (card && !e.target.closest('button, a, input, label')) { openApp(card.dataset.open); return }
|
|
333
332
|
const tab = e.target.closest('[data-group]')
|
package/src/ui/session.js
CHANGED
|
@@ -807,10 +807,13 @@ function renderTop () {
|
|
|
807
807
|
label.innerHTML = ''
|
|
808
808
|
}
|
|
809
809
|
const people = [st.me, ...peopleHere(st)]
|
|
810
|
-
// Who is working first (dm06: their faces, "+N" for everyone else here, and "N working").
|
|
810
|
+
// Who is working first (dm06: their faces, "+N" for everyone else here, and "N working"). Your own face is on the
|
|
811
|
+
// rail already: here only the others, and nothing at all while you are alone and idle.
|
|
811
812
|
const busy = people.filter((p) => p.agent && p.agent.status === 'working')
|
|
812
|
-
const
|
|
813
|
-
|
|
813
|
+
const others = people.filter((p) => p !== st.me)
|
|
814
|
+
const shown = [...busy.filter((p) => p !== st.me), ...others.filter((p) => !busy.includes(p))].slice(0, 4)
|
|
815
|
+
$('#people-btn').closest('.people-pill').hidden = !others.length && !busy.length
|
|
816
|
+
$('#people-btn').innerHTML = `${shown.length ? `<span class="stack">${shown.map((p, i) => `<span style="z-index:${10 - i}">${avatar(p.name, p.color)}</span>`).join('')}</span>` : ''}${others.length > shown.length ? `<span class="wb-more">+${others.length - shown.length}</span>` : ''}${busy.length ? `<i class="wb-working"><span class="pulse"></span>${busy.length} working</i>` : ''}`
|
|
814
817
|
$('#people-btn').setAttribute('aria-label', `${people.length} ${people.length === 1 ? 'person' : 'people'} in this session${st.connected ? '' : ', reconnecting'}`)
|
|
815
818
|
// Why we're offline, when we know: otherwise "Reconnecting…" can go on silently forever.
|
|
816
819
|
const problem = $('#relay-problem')
|