instar 1.3.254 → 1.3.255

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;AA2SH,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,CA02QtE;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;AA4SH,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,CA02QtE;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"}
@@ -26,6 +26,7 @@ import { IntegrationGate } from '../scheduler/IntegrationGate.js';
26
26
  import { JobRunHistory } from '../scheduler/JobRunHistory.js';
27
27
  import { AgentServer } from '../server/AgentServer.js';
28
28
  import { TelegramAdapter, TOPIC_STYLE, selectTopicEmoji } from '../messaging/TelegramAdapter.js';
29
+ import { getTelegramInboundDir } from '../messaging/shared/telegramInboundFiles.js';
29
30
  import { RelationshipManager } from '../core/RelationshipManager.js';
30
31
  import { ClaudeCliIntelligenceProvider } from '../core/ClaudeCliIntelligenceProvider.js';
31
32
  import { wrapIntelligenceWithCircuitBreaker } from '../core/CircuitBreakingIntelligenceProvider.js';
@@ -476,7 +477,7 @@ async function spawnSessionForTopic(sessionManager, telegram, sessionName, topic
476
477
  // Fix: Inline the context directly, put it BEFORE the user's message, with strong
477
478
  // continuation framing. Claude processes the context first, then responds to the
478
479
  // user's message WITH that context loaded.
479
- const tmpDir = '/tmp/instar-telegram';
480
+ const tmpDir = getTelegramInboundDir(_projectDir);
480
481
  fs.mkdirSync(tmpDir, { recursive: true });
481
482
  let bootstrapMessage;
482
483
  if (contextContent) {
@@ -1785,11 +1786,11 @@ async function ensureSqliteBindings() {
1785
1786
  }
1786
1787
  }
1787
1788
  /**
1788
- * Clean up stale temp files from /tmp/instar-telegram/.
1789
+ * Clean up stale project-local Telegram inbound files.
1789
1790
  * Removes files older than 7 days to prevent unbounded accumulation.
1790
1791
  */
1791
1792
  function cleanupTelegramTempFiles() {
1792
- const tmpDir = '/tmp/instar-telegram';
1793
+ const tmpDir = getTelegramInboundDir(_projectDir);
1793
1794
  try {
1794
1795
  if (!fs.existsSync(tmpDir))
1795
1796
  return;