heyquilt 0.3.160 → 0.3.161
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 +5 -0
- package/package.json +1 -1
- package/src/api/composio.js +3 -1
- package/src/ui/app.css +25 -0
- package/src/ui/connections.js +45 -8
package/RELEASES.md
CHANGED
|
@@ -11,6 +11,11 @@ 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.161 — 2026-11-12
|
|
15
|
+
|
|
16
|
+
- **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.
|
|
17
|
+
- **Opening an app low on the page scrolls it into view.** The page follows as the list pours open, so the whole list ends up on screen and the card's top stays in view.
|
|
18
|
+
|
|
14
19
|
## 0.3.160 — 2026-11-12
|
|
15
20
|
|
|
16
21
|
- **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.
|
package/package.json
CHANGED
package/src/api/composio.js
CHANGED
|
@@ -127,6 +127,8 @@ export function composioClient ({ apiKey = '', base = COMPOSIO_API, fetch: fetch
|
|
|
127
127
|
// What an app lets agents do, for its card on the Connections page, cached CATALOG_MS: up to 100 of its actions
|
|
128
128
|
// (the ones Composio marks important first, none deprecated), and how many it has in all.
|
|
129
129
|
const actionsCache = new Map()
|
|
130
|
+
// A description cut to `n` characters at a word, with an ellipsis when it was cut.
|
|
131
|
+
const short = (text, n) => text.length <= n ? text : `${text.slice(0, n).replace(/\s+\S*$/, '')}…`
|
|
130
132
|
async function appActions (app) {
|
|
131
133
|
const hit = actionsCache.get(app)
|
|
132
134
|
if (hit && Date.now() - hit.at < CATALOG_MS) return hit.value
|
|
@@ -136,7 +138,7 @@ export function composioClient ({ apiKey = '', base = COMPOSIO_API, fetch: fetch
|
|
|
136
138
|
// The ones Composio marks important first, then the rest as it lists them.
|
|
137
139
|
const important = (t) => ((t.tags || []).includes('important') ? 0 : 1)
|
|
138
140
|
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]
|
|
141
|
+
.map((t) => ({ slug: t.slug, name: t.name, description: short(t.description.split(/(?<=\.)\s/)[0], 240), readOnly: t.readOnly }))
|
|
140
142
|
const value = { actions, total: Number(total) || actions.length }
|
|
141
143
|
actionsCache.set(app, { at: Date.now(), value })
|
|
142
144
|
return value
|
package/src/ui/app.css
CHANGED
|
@@ -3688,3 +3688,28 @@ button.sh-repo:hover { color: var(--text); }
|
|
|
3688
3688
|
.kl-detail { padding: 0; border: 0; border-radius: 0; background: none; animation: none; overflow: hidden; gap: 0; }
|
|
3689
3689
|
.kl-dinner { padding: 6px 24px 22px; display: flex; flex-direction: column; gap: 14px; }
|
|
3690
3690
|
.kl-dcols { padding-top: 0; border-top: 0; }
|
|
3691
|
+
|
|
3692
|
+
/* The opened app's actions: a tinted badge heading each column (green for what agents read on their own, vermilion
|
|
3693
|
+
for what asks first), and each action a row with an icon for what it does */
|
|
3694
|
+
.kl-dcols { gap: 32px; }
|
|
3695
|
+
.kl-dch { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
|
|
3696
|
+
.kl-dbadge { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
|
|
3697
|
+
.kl-dbadge svg { width: 15px; height: 15px; }
|
|
3698
|
+
.kl-dbadge i { font-style: normal; font-weight: 600; font-size: 11.5px; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px; border-radius: 999px; display: inline-grid; place-items: center; background: color-mix(in srgb, currentColor 16%, transparent); }
|
|
3699
|
+
.kl-dcol.reads .kl-dbadge { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--panel)); }
|
|
3700
|
+
.kl-dcol.asks .kl-dbadge { color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, var(--panel)); }
|
|
3701
|
+
.kl-dch small { font-size: 12.5px; line-height: 1.5; color: var(--faint); }
|
|
3702
|
+
.kl-dcols ul { gap: 2px; margin-top: 12px; }
|
|
3703
|
+
.kl-dcols li { flex-direction: row; align-items: flex-start; gap: 12px; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; transition: background .12s; }
|
|
3704
|
+
.kl-dcols li:hover { background: color-mix(in srgb, var(--text) 4%, var(--panel)); }
|
|
3705
|
+
.kl-dcols li > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
3706
|
+
.kl-vi { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--panel-2); color: var(--muted); }
|
|
3707
|
+
.kl-vi svg { width: 14px; height: 14px; }
|
|
3708
|
+
.kl-dcol.reads .kl-vi { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--panel)); }
|
|
3709
|
+
.kl-dcol.asks .kl-vi { color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--panel)); }
|
|
3710
|
+
.kl-dmore { margin-top: 8px; height: 32px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: none; color: var(--text); font: 600 12.5px var(--sans); cursor: pointer; }
|
|
3711
|
+
.kl-dmore:hover { border-color: var(--border-strong); background: color-mix(in srgb, var(--text) 4%, var(--panel)); }
|
|
3712
|
+
.kl-dnone { margin: 12px 0 0; font-size: 12.5px; color: var(--faint); }
|
|
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
|
+
.kl-dfoot svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
|
|
3715
|
+
.kl-dcols li small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
|
package/src/ui/connections.js
CHANGED
|
@@ -23,6 +23,7 @@ export function mountConnections (root, { type, id, page = false, sessions = [],
|
|
|
23
23
|
// The catalog: `apps` the page shown so far, `total` how many match, `cat` the category picked ('' every app).
|
|
24
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
25
|
const details = new Map() // app slug -> { actions, total } or { error }, for its opened card
|
|
26
|
+
ui.more = new Set() // `${slug}:reads` / `${slug}:asks`: lists opened to every action
|
|
26
27
|
let view = views.get(`${type}:${id}`) || null
|
|
27
28
|
let alive = true
|
|
28
29
|
let poll = null
|
|
@@ -57,18 +58,36 @@ export function mountConnections (root, { type, id, page = false, sessions = [],
|
|
|
57
58
|
|
|
58
59
|
// An opened card's row under it (Daniel, 2026-11-12): all it says about itself, how you sign in, and what agents
|
|
59
60
|
// can do with it, split the way Quilt runs it: reads at once, anything that changes something asks a person first.
|
|
60
|
-
|
|
61
|
+
// What an action does, as a small icon from its name: search and read, create, change, delete, send.
|
|
62
|
+
const SEARCH = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg>'
|
|
63
|
+
const HAND = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 11V6a2 2 0 0 0-4 0v5M14 10V4a2 2 0 0 0-4 0v6M10 10.5V6a2 2 0 0 0-4 0v8"/><path d="M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-6-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15"/></svg>'
|
|
64
|
+
function verbIcon (t) {
|
|
65
|
+
const words = `${t.slug} ${t.name}`.toUpperCase()
|
|
66
|
+
if (/\b(DELETE|REMOVE|ARCHIVE|CANCEL|TRASH)/.test(words)) return I.trash
|
|
67
|
+
if (/\b(SEND|REPLY|POST_MESSAGE|INVITE|SHARE|FORWARD|NOTIFY|PUBLISH)/.test(words)) return I.send
|
|
68
|
+
if (/\b(CREATE|ADD|NEW|INSERT|UPLOAD|SUBMIT|START)/.test(words)) return I.plus
|
|
69
|
+
if (/\b(UPDATE|EDIT|MODIFY|SET|CONFIGURE|MANAGE|MOVE|RENAME|CHANGE|CLEAN)/.test(words)) return I.pencil
|
|
70
|
+
if (/\b(SEARCH|FIND|QUERY|LOOKUP|AUTOCOMPLETE)/.test(words)) return SEARCH
|
|
71
|
+
return t.readOnly ? I.eye : I.pencil
|
|
72
|
+
}
|
|
73
|
+
// An opened card's row (Daniel, 2026-11-12): only what the app can do, split the way Quilt runs it: what agents read
|
|
74
|
+
// on their own, and what asks a person first. Six of each, the rest a click away.
|
|
75
|
+
function openRowHtml (a) {
|
|
61
76
|
const d = details.get(a.slug)
|
|
62
|
-
const
|
|
77
|
+
const SHOWN = 6
|
|
78
|
+
const col = (kind, title, note, icon, xs) => {
|
|
79
|
+
const all = ui.more.has(`${a.slug}:${kind}`)
|
|
80
|
+
const list = all ? xs : xs.slice(0, SHOWN)
|
|
81
|
+
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
|
+
${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 ? `<button type="button" class="kl-dmore" data-more-actions="${esc(a.slug)}:${kind}">${all ? 'Show fewer' : `Show ${xs.length - SHOWN} more`}</button>` : ''}</div>`
|
|
84
|
+
}
|
|
63
85
|
const reads = d && !d.error ? d.actions.filter((t) => t.readOnly) : []
|
|
64
86
|
const changes = d && !d.error ? d.actions.filter((t) => !t.readOnly) : []
|
|
65
87
|
const what = !d ? `<p class="hint">${loadingNote()}</p>`
|
|
66
88
|
: d.error ? `<p class="hint">${esc(d.error)}</p>`
|
|
67
|
-
: `<div class="kl-dcols">
|
|
68
|
-
|
|
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>` : ''}`
|
|
89
|
+
: `<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
|
+
${d.total > d.actions.length ? `<p class="kl-dfoot">${I.sparkle || ''}Showing ${d.actions.length} of its ${d.total.toLocaleString()} actions. Agents find the rest when they need them.</p>` : ''}`
|
|
72
91
|
// Only what it can do: its name, logo and Connect are on the card it flows out of.
|
|
73
92
|
return `<div class="kl-detail" data-detail="${esc(a.slug)}"><div class="kl-dinner">${what}</div></div>`
|
|
74
93
|
}
|
|
@@ -93,6 +112,21 @@ export function mountConnections (root, { type, id, page = false, sessions = [],
|
|
|
93
112
|
pour(det, 'out', () => { ui.open = null; draw() })
|
|
94
113
|
}
|
|
95
114
|
const reduced = () => window.matchMedia('(prefers-reduced-motion: reduce)').matches
|
|
115
|
+
// An app opened low on the page: the page scrolls along as it pours, so the whole row ends up in view (keeping the
|
|
116
|
+
// card's top in view when the row is taller than the window).
|
|
117
|
+
function bringIntoView (det, full) {
|
|
118
|
+
let sc = det.parentElement
|
|
119
|
+
while (sc && sc !== document.body && !/(auto|scroll)/.test(getComputedStyle(sc).overflowY)) sc = sc.parentElement
|
|
120
|
+
if (!sc || sc === document.body) return
|
|
121
|
+
const card = det.parentElement.querySelector('.kl-card.open')
|
|
122
|
+
const S = sc.getBoundingClientRect()
|
|
123
|
+
const top = (card || det).getBoundingClientRect().top
|
|
124
|
+
const bottom = det.getBoundingClientRect().top + full
|
|
125
|
+
const need = bottom + 16 - S.bottom
|
|
126
|
+
const room = top - 12 - S.top
|
|
127
|
+
const by = Math.min(need, room)
|
|
128
|
+
if (by > 0) sc.scrollBy({ top: by, behavior: reduced() ? 'auto' : 'smooth' })
|
|
129
|
+
}
|
|
96
130
|
|
|
97
131
|
// The open card and its row are one shape, drawn behind them: the card's sides curve out into the row, which pours
|
|
98
132
|
// down out of the card and spreads to the full width as it grows (liquid), or draws back in.
|
|
@@ -141,6 +175,7 @@ export function mountConnections (root, { type, id, page = false, sessions = [],
|
|
|
141
175
|
function pour (det, way, done = () => {}) {
|
|
142
176
|
const inner = det.firstElementChild
|
|
143
177
|
const full = inner.offsetHeight
|
|
178
|
+
if (way === 'in') bringIntoView(det, full)
|
|
144
179
|
const from = way === 'in' ? 0 : det.offsetHeight
|
|
145
180
|
const to = way === 'in' ? full : 0
|
|
146
181
|
const ms = way === 'in' ? 520 : 300
|
|
@@ -202,7 +237,7 @@ export function mountConnections (root, { type, id, page = false, sessions = [],
|
|
|
202
237
|
if (opened && openApp_) {
|
|
203
238
|
let end = opened
|
|
204
239
|
while (end.nextElementSibling && end.nextElementSibling.offsetTop === opened.offsetTop) end = end.nextElementSibling
|
|
205
|
-
end.insertAdjacentHTML('afterend', openRowHtml(openApp_
|
|
240
|
+
end.insertAdjacentHTML('afterend', openRowHtml(openApp_))
|
|
206
241
|
const det = end.nextElementSibling
|
|
207
242
|
if (ui.pour === 'in' && !reduced()) { det.style.height = '0px'; det.firstElementChild.style.opacity = '0'; pour(det, 'in') } else drawShape(1)
|
|
208
243
|
ui.pour = null
|
|
@@ -291,6 +326,8 @@ export function mountConnections (root, { type, id, page = false, sessions = [],
|
|
|
291
326
|
load()
|
|
292
327
|
return
|
|
293
328
|
}
|
|
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 }
|
|
294
331
|
const card = e.target.closest('[data-open]')
|
|
295
332
|
if (card && !e.target.closest('button, a, input, label')) { openApp(card.dataset.open); return }
|
|
296
333
|
const tab = e.target.closest('[data-group]')
|