instar 1.3.239 → 1.3.241

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;AA0SH,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AA+wDD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA6pQtE;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;AA0SH,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;2DACuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAgxDD,wBAAsB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAoqQtE;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"}
@@ -1247,7 +1247,7 @@ getHubDeps) {
1247
1247
  // Use toInjection() — types guarantee sender identity is included in the tag
1248
1248
  const injection = toInjection(pipeline, targetSession);
1249
1249
  console.log(`[telegram→session] Injecting into ${targetSession}: "${text.slice(0, 80)}"`);
1250
- sessionManager.injectTelegramMessage(targetSession, topicId, text, pipeline.topicName, pipeline.sender.firstName, pipeline.sender.telegramUserId);
1250
+ sessionManager.injectTelegramMessage(targetSession, topicId, text, pipeline.topicName, pipeline.sender.firstName, pipeline.sender.telegramUserId, parseInt(pipeline.id.replace('tg-', ''), 10) || undefined);
1251
1251
  // Delivery confirmation — only when WE own polling. When lifeline owns
1252
1252
  // polling (--no-telegram / standby), it already sends its own confirmation.
1253
1253
  if (telegram.isPolling) {
@@ -7125,6 +7125,13 @@ export async function startServer(options) {
7125
7125
  // do NOT set this and stay sandboxed. Bounded: Threadline only accepts
7126
7126
  // messages from trusted agents.
7127
7127
  codexAllowMcpTools: true,
7128
+ // Threadline A2A continuity: forward the conversation-id intent so a
7129
+ // claude-code A2A reply spawn sets (--session-id) a deterministic
7130
+ // transcript on a fresh thread, or resumes (--resume) the prior
7131
+ // transcript on a follow-up. Both undefined on every non-Threadline
7132
+ // spawn, so existing behavior is unaffected.
7133
+ sessionId: opts?.sessionId,
7134
+ resumeSessionId: opts?.resumeSessionId,
7128
7135
  });
7129
7136
  // Return BOTH ids: spawnNewThread persists `tmuxSession` as the resume
7130
7137
  // entry's sessionName (the REAL `echo-msg-spawn-<ts>`), so live-inject /