@william_jin/autobrowse 0.8.31 → 0.8.32
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.
|
@@ -1188,7 +1188,9 @@ function fillRow(el, r, onIds) {
|
|
|
1188
1188
|
if (fl.dataset.k !== fk) fl.dataset.k = fk;
|
|
1189
1189
|
txt(el.querySelector('.why'), r.needs && !r.ended ? r.needs : '');
|
|
1190
1190
|
const tl = !r.ended && !r.moved && Array.isArray(r.state?.tabs) && r.state.tabs.length > 1 ? r.state.tabs : [];
|
|
1191
|
-
|
|
1191
|
+
// the job it took (company · role · board) beats the page title
|
|
1192
|
+
const it = ref ? byRef.get(ref) : null, jt = it ? [it.title, it.sub].filter((x) => typeof x === 'string' && x.trim()).join(' · ') : '';
|
|
1193
|
+
txt(el.querySelector('.title'), tl.length ? '' : jt || r.state?.title || '');
|
|
1192
1194
|
fillTabs(el.querySelector('.tabs'), tl, Array.isArray(r.state?.icons) ? r.state.icons : [], r.site, r.id);
|
|
1193
1195
|
const acts = el.querySelector('.acts');
|
|
1194
1196
|
let html = '';
|
|
@@ -1366,6 +1368,8 @@ setInterval(() => {
|
|
|
1366
1368
|
// Feeds by shape, never by name: `status.state` is a status line, `items` a queue, numbers in `status` or `runs` counts, `labels` their words.
|
|
1367
1369
|
/** file stem → feed, as the app last sent it */
|
|
1368
1370
|
const feeds = new Map();
|
|
1371
|
+
/** queue item id → item, every feed: a run row names the job it took */
|
|
1372
|
+
const byRef = new Map();
|
|
1369
1373
|
/** feed versions this page knows; the sidebar shows this many jobs */
|
|
1370
1374
|
const FEED_V = 1, NEXT = 5;
|
|
1371
1375
|
/** feeds a person shut (Finder's outline: per group, kept) */
|
|
@@ -1378,9 +1382,10 @@ function takeFeeds(m, whole) {
|
|
|
1378
1382
|
for (const [k, v] of Object.entries(m && typeof m === 'object' ? m : {})) {
|
|
1379
1383
|
if (v && typeof v === 'object') feeds.set(k, v); else feeds.delete(k);
|
|
1380
1384
|
}
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1385
|
+
byRef.clear();
|
|
1386
|
+
for (const f of feeds.values()) for (const it of Array.isArray(f.items) ? f.items : []) if (it && typeof it.id === 'string') byRef.set(it.id, it);
|
|
1387
|
+
// rows too: a run's title comes from its item
|
|
1388
|
+
renderRows();
|
|
1384
1389
|
fillQSheet();
|
|
1385
1390
|
}
|
|
1386
1391
|
const atOf = (f) => { const t = Date.parse(f.updatedAt); return Number.isFinite(t) ? t : NaN; };
|
|
Binary file
|
|
Binary file
|
package/dist/llms.txt
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Signed-in browser and site-API automation for agents: stored logins, official APIs behind one facade, and a journaled browser whose acts compile into workflows.
|
|
4
4
|
|
|
5
|
-
Version 0.8.
|
|
5
|
+
Version 0.8.32. Every command takes `--help --json`; `autobrowse list <words> --json` finds a route, flow or workflow. Errors are one JSON shape: `{code, message, hint, retryable, outcome?, artifact?}`.
|
|
6
6
|
|
|
7
7
|
## Skill
|
|
8
8
|
|
package/dist/sites/call-cache.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Read answers kept a short while: the same GET by the same account answers from memory, spends no
|
|
3
3
|
* cap, no pace, no token. TTL bounds staleness (correctness); the LRU size bound caps memory.
|
|
4
4
|
* Lasting refusals (a dead post's 400) are kept too: Nov 2026 read one dead Meta post 185 times.
|
|
5
|
-
* Calls in flight are shared: a second identical call waits on the first.
|
|
5
|
+
* Calls in flight are shared: a second identical call waits on the first. A read in flight when a
|
|
6
|
+
* write clears its account keeps nothing.
|
|
6
7
|
* In the process's memory (the desk serves every prod call); a restart starts empty.
|
|
7
8
|
* Design: designs/2026-11-12-call-cache-and-breaker.md.
|
|
8
9
|
*/
|
|
@@ -44,6 +45,9 @@ export function callCache(o = {}) {
|
|
|
44
45
|
run(key, ttlMs, fn) {
|
|
45
46
|
const p = fn().then((value) => ({ ok: true, value }), (error) => ({ ok: false, error }));
|
|
46
47
|
const settled = p.then((k) => {
|
|
48
|
+
// cleared while in flight (a write by the account): its answer may predate the write; a newer read may hold the key
|
|
49
|
+
if (inFlight.get(key) !== settled)
|
|
50
|
+
return k;
|
|
47
51
|
inFlight.delete(key);
|
|
48
52
|
if (ttlMs > 0 && (k.ok || lastingError(k.error)) && sizeOf(k) < (o.maxBytes ?? MAX_BYTES))
|
|
49
53
|
lru.set(key, k, { ttl: ttlMs });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call-cache.js","sourceRoot":"","sources":["../../src/sites/call-cache.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"call-cache.js","sourceRoot":"","sources":["../../src/sites/call-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,8DAA8D;AAC9D,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC;AAClC,MAAM,WAAW,GAAG,IAAI,CAAC;AACzB,MAAM,SAAS,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AACnC,6EAA6E;AAC7E,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;AAe9C,8DAA8D;AAC9D,MAAM,QAAQ,GAAG,CAAC,CAAU,EAAiB,EAAE;IAC7C,MAAM,CAAC,GAAI,CAAiC,EAAE,MAAM,CAAC;IACrD,OAAO,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAU,EAAW,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAEnF,MAAM,MAAM,GAAG,CAAC,CAAO,EAAU,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
|
+
"version": "0.8.32",
|
|
4
4
|
"description": "Browser and account automation: recorded flows where no API exists, official API shapes where one does, a person in the loop for money, accounts and consent.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|