instar 1.3.1974 → 1.3.1976
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/dashboard/console/chats-model.js +24 -0
- package/dashboard/console/chats.js +33 -5
- package/dist/commands/server.d.ts.map +1 -1
- package/dist/commands/server.js +4 -0
- package/dist/commands/server.js.map +1 -1
- package/dist/core/AppConversationService.d.ts +3 -1
- package/dist/core/AppConversationService.d.ts.map +1 -1
- package/dist/core/AppConversationService.js +14 -5
- package/dist/core/AppConversationService.js.map +1 -1
- package/dist/core/appConversationText.d.ts +9 -0
- package/dist/core/appConversationText.d.ts.map +1 -1
- package/dist/core/appConversationText.js +12 -0
- package/dist/core/appConversationText.js.map +1 -1
- package/dist/core/outputCredentialScrub.d.ts +1 -1
- package/dist/core/outputCredentialScrub.d.ts.map +1 -1
- package/dist/core/outputCredentialScrub.js +5 -0
- package/dist/core/outputCredentialScrub.js.map +1 -1
- package/dist/data/stageBCertifiedSet.d.ts +3 -0
- package/dist/data/stageBCertifiedSet.d.ts.map +1 -1
- package/dist/data/stageBCertifiedSet.js +4 -0
- package/dist/data/stageBCertifiedSet.js.map +1 -1
- package/dist/data/standards-guard-index.json +1 -1
- package/dist/data/standards-guard-index.meta.json +2 -2
- package/dist/data/standards-registry.meta.json +1 -1
- package/dist/lifeline/MessageQueue.d.ts +10 -1
- package/dist/lifeline/MessageQueue.d.ts.map +1 -1
- package/dist/lifeline/MessageQueue.js +21 -1
- package/dist/lifeline/MessageQueue.js.map +1 -1
- package/dist/lifeline/SlackLifeline.d.ts.map +1 -1
- package/dist/lifeline/SlackLifeline.js +13 -0
- package/dist/lifeline/SlackLifeline.js.map +1 -1
- package/dist/lifeline/TelegramLifeline.d.ts.map +1 -1
- package/dist/lifeline/TelegramLifeline.js +5 -2
- package/dist/lifeline/TelegramLifeline.js.map +1 -1
- package/dist/lifeline/droppedMessages.d.ts.map +1 -1
- package/dist/lifeline/droppedMessages.js +12 -1
- package/dist/lifeline/droppedMessages.js.map +1 -1
- package/dist/messaging/MessageRouter.d.ts +5 -0
- package/dist/messaging/MessageRouter.d.ts.map +1 -1
- package/dist/messaging/MessageRouter.js +14 -0
- package/dist/messaging/MessageRouter.js.map +1 -1
- package/dist/messaging/TelegramAdapter.d.ts +12 -0
- package/dist/messaging/TelegramAdapter.d.ts.map +1 -1
- package/dist/messaging/TelegramAdapter.js +39 -0
- package/dist/messaging/TelegramAdapter.js.map +1 -1
- package/dist/messaging/WhatsAppAdapter.d.ts +6 -0
- package/dist/messaging/WhatsAppAdapter.d.ts.map +1 -1
- package/dist/messaging/WhatsAppAdapter.js +17 -0
- package/dist/messaging/WhatsAppAdapter.js.map +1 -1
- package/dist/messaging/imessage/IMessageAdapter.d.ts +6 -0
- package/dist/messaging/imessage/IMessageAdapter.d.ts.map +1 -1
- package/dist/messaging/imessage/IMessageAdapter.js +18 -0
- package/dist/messaging/imessage/IMessageAdapter.js.map +1 -1
- package/dist/messaging/inboundCredentialMask.d.ts +50 -0
- package/dist/messaging/inboundCredentialMask.d.ts.map +1 -0
- package/dist/messaging/inboundCredentialMask.js +75 -0
- package/dist/messaging/inboundCredentialMask.js.map +1 -0
- package/dist/messaging/slack/SlackAdapter.d.ts +13 -0
- package/dist/messaging/slack/SlackAdapter.d.ts.map +1 -1
- package/dist/messaging/slack/SlackAdapter.js +25 -1
- package/dist/messaging/slack/SlackAdapter.js.map +1 -1
- package/dist/monitoring/contextBudgetMetrics.d.ts +1 -1
- package/dist/native/InstarWedgeCanary.app/Contents/MacOS/InstarWedgeCanary +0 -0
- package/dist/native/instar-desktop-host +0 -0
- package/dist/server/AgentServer.d.ts.map +1 -1
- package/dist/server/AgentServer.js +3 -0
- package/dist/server/AgentServer.js.map +1 -1
- package/dist/server/changeFeed.d.ts +17 -0
- package/dist/server/changeFeed.d.ts.map +1 -0
- package/dist/server/changeFeed.js +34 -0
- package/dist/server/changeFeed.js.map +1 -0
- package/dist/server/inboundCredentialNotice.d.ts +56 -0
- package/dist/server/inboundCredentialNotice.d.ts.map +1 -0
- package/dist/server/inboundCredentialNotice.js +89 -0
- package/dist/server/inboundCredentialNotice.js.map +1 -0
- package/dist/server/mobileConversationRoutes.d.ts.map +1 -1
- package/dist/server/mobileConversationRoutes.js +28 -3
- package/dist/server/mobileConversationRoutes.js.map +1 -1
- package/dist/server/mobileMediaSend.d.ts +2 -0
- package/dist/server/mobileMediaSend.d.ts.map +1 -1
- package/dist/server/mobileMediaSend.js +4 -3
- package/dist/server/mobileMediaSend.js.map +1 -1
- package/dist/server/mobilePairingRoutes.d.ts.map +1 -1
- package/dist/server/mobilePairingRoutes.js +30 -3
- package/dist/server/mobilePairingRoutes.js.map +1 -1
- package/dist/server/mobileSlackHolderProxy.d.ts +2 -0
- package/dist/server/mobileSlackHolderProxy.d.ts.map +1 -1
- package/dist/server/mobileSlackHolderProxy.js +7 -1
- package/dist/server/mobileSlackHolderProxy.js.map +1 -1
- package/dist/server/mobileSlackRoutes.d.ts +0 -29
- package/dist/server/mobileSlackRoutes.d.ts.map +1 -1
- package/dist/server/mobileSlackRoutes.js +44 -4
- package/dist/server/mobileSlackRoutes.js.map +1 -1
- package/dist/server/routes.d.ts.map +1 -1
- package/dist/server/routes.js +142 -6
- package/dist/server/routes.js.map +1 -1
- package/package.json +1 -1
- package/src/data/awareness/chat-change-feed.md +4 -0
- package/src/data/builtin-manifest.json +48 -48
- package/src/data/stageBCertifiedSet.ts +4 -0
- package/src/data/standards-guard-index.json +1 -1
- package/src/data/standards-guard-index.meta.json +2 -2
- package/src/data/standards-registry.meta.json +1 -1
- package/upgrades/1.3.1975.md +23 -0
- package/upgrades/1.3.1976.md +29 -0
- package/upgrades/side-effects/sec164-credential-scrub-1b.md +73 -0
- package/upgrades/side-effects/telegram-slack-change-feed.md +70 -0
|
@@ -246,6 +246,30 @@ export function bubbles(kind, rows, opts = {}) {
|
|
|
246
246
|
export function sortBubbles(list) {
|
|
247
247
|
return list.sort((a, b) => String(a.at || '').localeCompare(String(b.at || '')) || a.id.localeCompare(b.id));
|
|
248
248
|
}
|
|
249
|
+
/**
|
|
250
|
+
* Rebuild a full newest page from its server-issued row hashes and changed rows. The cache
|
|
251
|
+
* contains the actual rows represented by the hashes sent on THAT request. Never keep hashes
|
|
252
|
+
* alone: a new tab/leader must be able to receive the complete reconstructed page.
|
|
253
|
+
* Returns no data on an incomplete answer, so the next read can request a fresh full page.
|
|
254
|
+
*/
|
|
255
|
+
export function rebuildQuickPage(previous, data) {
|
|
256
|
+
if (!data || !Array.isArray(data.messages)) return { data: null, cache: null };
|
|
257
|
+
if (data.changeFeed === undefined) return { data, cache: null }; // older agents return a full page
|
|
258
|
+
const hashes = data.changeFeed && data.changeFeed.rowHashes;
|
|
259
|
+
if (!Array.isArray(hashes) || hashes.length > 100 || hashes.some((h) => typeof h !== 'string' || !/^[a-f0-9]{64}$/.test(h))) return { data: null, cache: null };
|
|
260
|
+
const rows = new Map();
|
|
261
|
+
const full = [];
|
|
262
|
+
let i = 0;
|
|
263
|
+
for (const h of hashes) {
|
|
264
|
+
const row = previous && previous.rows instanceof Map && previous.rows.has(h) ? previous.rows.get(h) : data.messages[i++];
|
|
265
|
+
if (!row || typeof row !== 'object' || Array.isArray(row)) return { data: null, cache: null };
|
|
266
|
+
rows.set(h, row);
|
|
267
|
+
full.push(row);
|
|
268
|
+
}
|
|
269
|
+
if (i !== data.messages.length) return { data: null, cache: null };
|
|
270
|
+
return { data: { ...data, messages: full }, cache: { hashes: [...hashes], rows } };
|
|
271
|
+
}
|
|
272
|
+
|
|
249
273
|
/** Merges new bubbles over the ones shown (a newer reading of the same id wins). */
|
|
250
274
|
export function mergeBubbles(prev, next) {
|
|
251
275
|
const m = new Map(prev.map((b) => [b.id, b]));
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
pinsFrom, pinBarText, nextPinIndex, pinIdOf, pinsPathOf, pinOutcomeWords,
|
|
23
23
|
listPinnedRows, listPinRefOf, splitPinned, listPinOutcomeWords, messageTime, messagePieces,
|
|
24
24
|
LIST_VIEW_KEY, listViewFrom, HIERARCHY_MAX_PAGES, hierarchyIndex, groupRows, groupCountWords,
|
|
25
|
-
effortMembers, trackedProjects, projectsForGroups, groupSections,
|
|
25
|
+
effortMembers, trackedProjects, projectsForGroups, groupSections, rebuildQuickPage,
|
|
26
26
|
} from './chats-model.js';
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -94,6 +94,7 @@ class ChatsPage {
|
|
|
94
94
|
this.focusedAt = document.hasFocus && document.hasFocus() ? now() : 0;
|
|
95
95
|
this.announcements = new Map();
|
|
96
96
|
this.cursors = new Map(); // ref → events cursor (shared by broadcast so a new leader carries on)
|
|
97
|
+
this.quickPages = new Map(); // ref → complete quick-page rows and their server-issued hashes
|
|
97
98
|
this.leader = false;
|
|
98
99
|
this.union = [];
|
|
99
100
|
this.scheduler = createScheduler();
|
|
@@ -712,11 +713,20 @@ class ChatsPage {
|
|
|
712
713
|
}).catch(() => {});
|
|
713
714
|
}
|
|
714
715
|
|
|
715
|
-
historyPath(v, { pool, before } = {}) {
|
|
716
|
+
historyPath(v, { pool, before, knownRows } = {}) {
|
|
716
717
|
const { kind, id } = v.ref;
|
|
717
718
|
if (kind === 'app') return `/mobile/chat/app/${encodeURIComponent(id)}/messages?limit=50${pool ? '&scope=pool' : ''}${before ? `&before=${encodeURIComponent(before)}` : ''}`;
|
|
718
|
-
|
|
719
|
-
|
|
719
|
+
// Hashes describe rows we actually hold, not a time boundary that could skip late messages.
|
|
720
|
+
const since = knownRows !== undefined && !before ? `&knownRows=${encodeURIComponent(knownRows)}` : '';
|
|
721
|
+
if (kind === 'telegram') return `/telegram/topics/${encodeURIComponent(id)}/messages?limit=50${pool ? '&scope=pool' : ''}${before ? `&before=${encodeURIComponent(before)}` : ''}${since}`;
|
|
722
|
+
return `/mobile/chat/slack/${encodeURIComponent(id)}/messages?limit=50&machine=${encodeURIComponent(this.slackMachine(v.ref) || '')}${before ? `&before=${encodeURIComponent(before)}` : ''}${since}`;
|
|
723
|
+
}
|
|
724
|
+
/** Keep full quick pages for every tab; a leader change never inherits hashes without rows. */
|
|
725
|
+
rememberQuickPage(ref, cache) {
|
|
726
|
+
this.quickPages.delete(ref);
|
|
727
|
+
if (cache) this.quickPages.set(ref, cache);
|
|
728
|
+
// Bounded recent-page memory. An evicted reference simply requests a full page next time.
|
|
729
|
+
while (this.quickPages.size > 16) this.quickPages.delete(this.quickPages.keys().next().value);
|
|
720
730
|
}
|
|
721
731
|
/**
|
|
722
732
|
* The machine a Slack conversation was listed from (a Slack id is local to it; the routes require it).
|
|
@@ -1428,12 +1438,15 @@ class ChatsPage {
|
|
|
1428
1438
|
const v = { ref };
|
|
1429
1439
|
if (task.mode === 'fallback') return this.historyPath(v, { pool: true });
|
|
1430
1440
|
if (task.mode === 'pool') return this.historyPath(v, { pool: ref.kind === 'telegram' });
|
|
1431
|
-
|
|
1441
|
+
// Quick reads send the hashes of a complete cached page. Pool reads above stay full.
|
|
1442
|
+
return this.historyPath(v, { pool: false, ...(task.mode === 'newest' ? { knownRows: (this.quickPages.get(task.ref)?.hashes || []).join(',') } : {}) });
|
|
1432
1443
|
}
|
|
1433
1444
|
|
|
1434
1445
|
async runTask(task) {
|
|
1435
1446
|
const t0 = now();
|
|
1436
1447
|
this.scheduler.start(task, t0);
|
|
1448
|
+
// Snapshot the exact baseline sent: another tab's result may arrive while this read waits.
|
|
1449
|
+
const previous = task.mode === 'newest' ? this.quickPages.get(task.ref) || null : null;
|
|
1437
1450
|
let r;
|
|
1438
1451
|
try { r = await this.call('GET', this.taskPath(task)); } catch { r = { ok: false, status: 0 }; }
|
|
1439
1452
|
if (!this.live) return;
|
|
@@ -1449,6 +1462,13 @@ class ChatsPage {
|
|
|
1449
1462
|
}
|
|
1450
1463
|
if (r.ok) {
|
|
1451
1464
|
const msg = { type: 'result', mode: task.mode, ref: task.ref, data: r.data, backoff: this.scheduler.snapshot(), union: this.union };
|
|
1465
|
+
if (task.mode === 'newest') {
|
|
1466
|
+
const page = rebuildQuickPage(previous, r.data);
|
|
1467
|
+
this.rememberQuickPage(task.ref, page.cache);
|
|
1468
|
+
msg.data = page.data;
|
|
1469
|
+
msg.quickFullPage = Boolean(page.data);
|
|
1470
|
+
msg.resetQuickPage = !page.data;
|
|
1471
|
+
}
|
|
1452
1472
|
if (task.mode === 'events' && r.data && typeof r.data.cursor === 'string') {
|
|
1453
1473
|
this.cursors.set(task.ref, r.data.cursor);
|
|
1454
1474
|
msg.cursor = r.data.cursor;
|
|
@@ -1465,8 +1485,16 @@ class ChatsPage {
|
|
|
1465
1485
|
if (Array.isArray(m.backoff)) this.lastBackoff = m.backoff;
|
|
1466
1486
|
if (Array.isArray(m.union)) { this.union = m.union; this.markPaused(); }
|
|
1467
1487
|
if (m.cursor && m.ref) this.cursors.set(m.ref, m.cursor);
|
|
1488
|
+
if (m.resetQuickPage && m.ref) this.rememberQuickPage(m.ref, null);
|
|
1468
1489
|
if (!m.mode || !m.data) return;
|
|
1469
1490
|
if (m.mode === 'list') { this.applyList(m.data, false); return; }
|
|
1491
|
+
// Broadcasts carry full reconstructed pages. Even an unfocused tab/new leader learns rows
|
|
1492
|
+
// and hashes together, never an unseen hash that would suppress a missing message.
|
|
1493
|
+
if (m.mode === 'newest' && m.ref && m.quickFullPage) {
|
|
1494
|
+
const page = rebuildQuickPage(null, m.data);
|
|
1495
|
+
this.rememberQuickPage(m.ref, page.cache);
|
|
1496
|
+
if (!page.data) return;
|
|
1497
|
+
}
|
|
1470
1498
|
const v = this.view;
|
|
1471
1499
|
if (!v || refString(v.ref) !== m.ref || !v.live) return;
|
|
1472
1500
|
if (m.mode === 'events') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAqMA,OAAO,EAAE,cAAc,EAAwD,MAAM,2BAA2B,CAAC;AAkBjH,OAAO,EAAE,eAAe,EAAiC,MAAM,iCAAiC,CAAC;AA8BjG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,CAAC,IAAI,CAAC,CA8hiCtE;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAuDzE;AA+BD,wBAAsB,aAAa,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA0E5E"}
|
package/dist/commands/server.js
CHANGED
|
@@ -10458,6 +10458,8 @@ export async function startServer(options) {
|
|
|
10458
10458
|
// Replaced once the pairing service exists. Until then a recovery pass stops here and the
|
|
10459
10459
|
// next one retries, so a team person's create never lands unconfined.
|
|
10460
10460
|
confineStranded: () => { throw new Error('pairing-not-ready'); },
|
|
10461
|
+
// SEC-164 §3.5: a server transcript has its live keys masked before it is stored.
|
|
10462
|
+
credentialScrubEnabled: credentialScrubEnabledReader(config.projectDir),
|
|
10461
10463
|
stateDir: config.stateDir,
|
|
10462
10464
|
machineId: () => _meshSelfId ?? os.hostname(),
|
|
10463
10465
|
// Refusals name the machine ("Mac Studio is nearly out of disk space"), never "this machine".
|
|
@@ -21335,6 +21337,8 @@ export async function startServer(options) {
|
|
|
21335
21337
|
log: (line) => console.log(line),
|
|
21336
21338
|
});
|
|
21337
21339
|
const messageRouter = new MessageRouter(messageStore, messageDelivery, {
|
|
21340
|
+
// SEC-164 §3.5: masks live keys in a new same-agent message before it is saved or signed.
|
|
21341
|
+
credentialScrubEnabled: credentialScrubEnabledReader(config.projectDir),
|
|
21338
21342
|
localAgent: config.projectName,
|
|
21339
21343
|
localMachine: machineId,
|
|
21340
21344
|
serverUrl: `http://localhost:${config.port}`,
|