@runeya/runeya 2.0.126 → 2.0.127
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/{agent-manager-QLXVQ7OD.js → agent-manager-FN6M6CLD.js} +3 -3
- package/{chat-ODBVFMKX.js → chat-VCHK77CW.js} +6 -6
- package/{chunk-HK5QNU6P.js → chunk-BDQOBEZ3.js} +18 -2
- package/chunk-BDQOBEZ3.js.map +1 -0
- package/{chunk-2EDVDRKV.js → chunk-LHVTBWM7.js} +16 -15
- package/chunk-LHVTBWM7.js.map +1 -0
- package/{chunk-K7A3Q62R.js → chunk-QPII36FL.js} +2 -2
- package/{chunk-SG2ACPOE.js → chunk-UKLNK5YA.js} +6 -6
- package/{chunk-WLZQDWJT.js → chunk-WQWRTPPJ.js} +5 -4
- package/chunk-WQWRTPPJ.js.map +1 -0
- package/{companion-5DPH3HIO.js → companion-YB3SDDTU.js} +4 -4
- package/index.js +3 -3
- package/package.json +1 -1
- package/{settings-manager-E3L56VAY.js → settings-manager-4EDX7NIB.js} +3 -3
- package/{src-XCI5NILM.js → src-J3RBNMRJ.js} +29 -28
- package/src-J3RBNMRJ.js.map +1 -0
- package/chunk-2EDVDRKV.js.map +0 -1
- package/chunk-HK5QNU6P.js.map +0 -1
- package/chunk-WLZQDWJT.js.map +0 -1
- package/src-XCI5NILM.js.map +0 -1
- /package/{agent-manager-QLXVQ7OD.js.map → agent-manager-FN6M6CLD.js.map} +0 -0
- /package/{chat-ODBVFMKX.js.map → chat-VCHK77CW.js.map} +0 -0
- /package/{chunk-K7A3Q62R.js.map → chunk-QPII36FL.js.map} +0 -0
- /package/{chunk-SG2ACPOE.js.map → chunk-UKLNK5YA.js.map} +0 -0
- /package/{companion-5DPH3HIO.js.map → companion-YB3SDDTU.js.map} +0 -0
- /package/{settings-manager-E3L56VAY.js.map → settings-manager-4EDX7NIB.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
hasChangedSinceRead,
|
|
4
4
|
rememberFile,
|
|
5
5
|
wasRead
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BDQOBEZ3.js";
|
|
7
7
|
import {
|
|
8
8
|
SchemaVersionSchema,
|
|
9
9
|
SettingsPrivateSchema,
|
|
@@ -171,4 +171,4 @@ var settingsManager = new SettingsManager();
|
|
|
171
171
|
export {
|
|
172
172
|
settingsManager
|
|
173
173
|
};
|
|
174
|
-
//# sourceMappingURL=chunk-
|
|
174
|
+
//# sourceMappingURL=chunk-QPII36FL.js.map
|
|
@@ -23,14 +23,14 @@ import {
|
|
|
23
23
|
serviceStore,
|
|
24
24
|
setProjectServices,
|
|
25
25
|
setProjectVault
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-WQWRTPPJ.js";
|
|
27
27
|
import {
|
|
28
28
|
atomicWriteSecure,
|
|
29
29
|
fingerprintFiles,
|
|
30
30
|
hasChangedSinceRead,
|
|
31
31
|
rememberFile,
|
|
32
32
|
wasRead
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-BDQOBEZ3.js";
|
|
34
34
|
import {
|
|
35
35
|
COMPANION_RELAY_CLOSE,
|
|
36
36
|
COMPANION_RELAY_OPEN,
|
|
@@ -2037,7 +2037,7 @@ async function runCompanionForTurn(conversationId) {
|
|
|
2037
2037
|
if (!hasNew) {
|
|
2038
2038
|
return skip(conversationId, "nothingNew", `rien de neuf \xE0 relire (${messageCount} messages)`);
|
|
2039
2039
|
}
|
|
2040
|
-
const { startCliSession } = await import("./chat-
|
|
2040
|
+
const { startCliSession } = await import("./chat-VCHK77CW.js");
|
|
2041
2041
|
const companionConv = await ensureCompanionConversation(conv);
|
|
2042
2042
|
const isFirstTurn = (companionConv.messages?.length ?? 0) === 0;
|
|
2043
2043
|
const exchange = formatExchange(conv.messages, from);
|
|
@@ -2152,7 +2152,7 @@ async function deliverToMainConversation(conv, message) {
|
|
|
2152
2152
|
async function attemptDelivery(conv, message) {
|
|
2153
2153
|
if (await writeToLivePty(conv.id, message)) return "pty";
|
|
2154
2154
|
try {
|
|
2155
|
-
const { startCliSession } = await import("./chat-
|
|
2155
|
+
const { startCliSession } = await import("./chat-VCHK77CW.js");
|
|
2156
2156
|
await startCliSession(conv.runner, conv.id, message, { jwt: await signJwt() });
|
|
2157
2157
|
return "headless";
|
|
2158
2158
|
} catch (err) {
|
|
@@ -2175,7 +2175,7 @@ async function writeToLivePty(conversationId, message) {
|
|
|
2175
2175
|
}
|
|
2176
2176
|
async function companionSettings() {
|
|
2177
2177
|
try {
|
|
2178
|
-
const { settingsManager } = await import("./settings-manager-
|
|
2178
|
+
const { settingsManager } = await import("./settings-manager-4EDX7NIB.js");
|
|
2179
2179
|
const settings = await settingsManager.getSettings();
|
|
2180
2180
|
return settings.companion ?? { enabledByDefault: false };
|
|
2181
2181
|
} catch {
|
|
@@ -2317,4 +2317,4 @@ export {
|
|
|
2317
2317
|
runCompanionNow,
|
|
2318
2318
|
initCompanion
|
|
2319
2319
|
};
|
|
2320
|
-
//# sourceMappingURL=chunk-
|
|
2320
|
+
//# sourceMappingURL=chunk-UKLNK5YA.js.map
|
|
@@ -3,8 +3,9 @@ import {
|
|
|
3
3
|
fingerprintFiles,
|
|
4
4
|
hasChangedSinceRead,
|
|
5
5
|
rememberFile,
|
|
6
|
+
renameWithRetry,
|
|
6
7
|
wasRead
|
|
7
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BDQOBEZ3.js";
|
|
8
9
|
import {
|
|
9
10
|
AGENT_FETCH_TIMEOUT,
|
|
10
11
|
AGENT_HEALTH_POLL_INTERVAL,
|
|
@@ -37,7 +38,7 @@ import { z as z2 } from "zod";
|
|
|
37
38
|
|
|
38
39
|
// ../server/src/services/agent-store.ts
|
|
39
40
|
import { randomUUID, randomBytes, createCipheriv, createDecipheriv } from "crypto";
|
|
40
|
-
import { readFile, writeFile,
|
|
41
|
+
import { readFile, writeFile, mkdir, chmod } from "fs/promises";
|
|
41
42
|
import { dirname, join } from "path";
|
|
42
43
|
|
|
43
44
|
// ../server/src/utils/encryption-key.ts
|
|
@@ -285,7 +286,7 @@ var AgentStore = class {
|
|
|
285
286
|
await mkdir(dirname(filePath), { recursive: true });
|
|
286
287
|
const tmpPath = filePath + ".tmp";
|
|
287
288
|
await writeFile(tmpPath, JSON.stringify(fileData, null, 2), "utf-8");
|
|
288
|
-
await
|
|
289
|
+
await renameWithRetry(tmpPath, filePath);
|
|
289
290
|
await chmod(filePath, 384);
|
|
290
291
|
}
|
|
291
292
|
}
|
|
@@ -3151,4 +3152,4 @@ export {
|
|
|
3151
3152
|
traefikManager,
|
|
3152
3153
|
agentManager
|
|
3153
3154
|
};
|
|
3154
|
-
//# sourceMappingURL=chunk-
|
|
3155
|
+
//# sourceMappingURL=chunk-WQWRTPPJ.js.map
|