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.
@@ -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,CA86NtE;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"}
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"}
@@ -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 () => {