instar 1.3.65 → 1.3.66
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/dist/commands/server.d.ts.map +1 -1
- package/dist/commands/server.js +45 -0
- package/dist/commands/server.js.map +1 -1
- package/dist/core/types.d.ts +16 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js.map +1 -1
- package/dist/monitoring/CollaborationRedriveEngine.d.ts +95 -0
- package/dist/monitoring/CollaborationRedriveEngine.d.ts.map +1 -0
- package/dist/monitoring/CollaborationRedriveEngine.js +342 -0
- package/dist/monitoring/CollaborationRedriveEngine.js.map +1 -0
- package/dist/monitoring/CommitmentTracker.d.ts +13 -0
- package/dist/monitoring/CommitmentTracker.d.ts.map +1 -1
- package/dist/monitoring/CommitmentTracker.js +10 -0
- package/dist/monitoring/CommitmentTracker.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +2 -2
- package/upgrades/1.3.66.md +28 -0
- package/upgrades/side-effects/collaboration-redrive-engine.md +36 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAiSH,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAksDD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAiSH,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAksDD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA69NtE;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAsDzE;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAAC,OAAO,EAAE;IAAE,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAuD5E"}
|
package/dist/commands/server.js
CHANGED
|
@@ -7402,6 +7402,51 @@ export async function startServer(options) {
|
|
|
7402
7402
|
completionEvaluator = new CompletionEvaluator({ intelligence: sharedIntelligence });
|
|
7403
7403
|
console.log(pc.green(' Completion evaluator: active (independent /goal-style judge)'));
|
|
7404
7404
|
}
|
|
7405
|
+
// ── CollaborationRedriveEngine ────────────────────────────────────
|
|
7406
|
+
// Proactively re-engage a COUNTERPART that has gone silent on an open
|
|
7407
|
+
// threadline-reply commitment. Bounded peer nudges with a durable,
|
|
7408
|
+
// reply-INDEPENDENT cap; escalates to the Attention queue after the cap
|
|
7409
|
+
// and goes terminal-quiet (never spins). Spec:
|
|
7410
|
+
// docs/specs/collaboration-redrive-on-counterpart-silence.md (approved
|
|
7411
|
+
// by Justin 2026-05-28). Ships OFF.
|
|
7412
|
+
try {
|
|
7413
|
+
const redriveCfg = config.monitoring?.collaborationRedrive ?? {};
|
|
7414
|
+
if (redriveCfg.enabled && completionEvaluator) {
|
|
7415
|
+
const { CollaborationRedriveEngine, DEFAULT_REDRIVE_CONFIG } = await import('../monitoring/CollaborationRedriveEngine.js');
|
|
7416
|
+
const collaborationRedrive = new CollaborationRedriveEngine({
|
|
7417
|
+
commitmentTracker,
|
|
7418
|
+
completionEvaluator,
|
|
7419
|
+
relayClient: threadlineRelayClient ?? undefined,
|
|
7420
|
+
surfacer: collaborationSurfacer ?? undefined,
|
|
7421
|
+
raiseAttention: telegram
|
|
7422
|
+
? async (item) => {
|
|
7423
|
+
const priorityMap = {
|
|
7424
|
+
high: 'HIGH', medium: 'NORMAL', low: 'LOW',
|
|
7425
|
+
};
|
|
7426
|
+
return telegram.createAttentionItem({
|
|
7427
|
+
id: `collab-redrive-${Date.now()}`,
|
|
7428
|
+
title: item.title,
|
|
7429
|
+
summary: item.body.slice(0, 160),
|
|
7430
|
+
description: item.body,
|
|
7431
|
+
category: 'collaboration-redrive',
|
|
7432
|
+
priority: priorityMap[item.priority ?? 'medium'] ?? 'NORMAL',
|
|
7433
|
+
sourceContext: item.source ?? 'collaboration-redrive',
|
|
7434
|
+
});
|
|
7435
|
+
}
|
|
7436
|
+
: undefined,
|
|
7437
|
+
knownAgentsPath: path.join(config.stateDir, 'threadline', 'known-agents.json'),
|
|
7438
|
+
}, { ...DEFAULT_REDRIVE_CONFIG, ...redriveCfg, enabled: true });
|
|
7439
|
+
collaborationRedrive.start();
|
|
7440
|
+
globalThis.__instarCollaborationRedrive = collaborationRedrive;
|
|
7441
|
+
console.log(pc.green(' CollaborationRedriveEngine: armed (proactive peer re-drive on counterpart silence)'));
|
|
7442
|
+
}
|
|
7443
|
+
else {
|
|
7444
|
+
console.log(pc.dim(' CollaborationRedriveEngine: disabled (monitoring.collaborationRedrive.enabled=false; the ship-OFF default)'));
|
|
7445
|
+
}
|
|
7446
|
+
}
|
|
7447
|
+
catch (err) {
|
|
7448
|
+
console.warn('[CollaborationRedrive] init failed:', err.message);
|
|
7449
|
+
}
|
|
7405
7450
|
// Register feature-discovery probe for self-knowledge tree (Phase 4: Agent Integration)
|
|
7406
7451
|
if (selfKnowledgeTree && featureRegistry) {
|
|
7407
7452
|
selfKnowledgeTree.probes.register('feature-discovery', async () => {
|