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.
- package/dist/commands/server.d.ts.map +1 -1
- package/dist/commands/server.js +4 -3
- package/dist/commands/server.js.map +1 -1
- package/dist/core/SessionManager.d.ts.map +1 -1
- package/dist/core/SessionManager.js +3 -2
- package/dist/core/SessionManager.js.map +1 -1
- package/dist/messaging/shared/telegramInboundFiles.d.ts +2 -0
- package/dist/messaging/shared/telegramInboundFiles.d.ts.map +1 -0
- package/dist/messaging/shared/telegramInboundFiles.js +5 -0
- package/dist/messaging/shared/telegramInboundFiles.js.map +1 -0
- package/dist/server/routes.d.ts.map +1 -1
- package/dist/server/routes.js +3 -2
- package/dist/server/routes.js.map +1 -1
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +47 -47
- package/upgrades/1.3.255.md +38 -0
- package/upgrades/side-effects/telegram-inbound-project-dir.md +147 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/commands/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
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"}
|
package/dist/commands/server.js
CHANGED
|
@@ -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 =
|
|
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
|
|
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 =
|
|
1793
|
+
const tmpDir = getTelegramInboundDir(_projectDir);
|
|
1793
1794
|
try {
|
|
1794
1795
|
if (!fs.existsSync(tmpDir))
|
|
1795
1796
|
return;
|