@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.
@@ -3,7 +3,7 @@ import {
3
3
  hasChangedSinceRead,
4
4
  rememberFile,
5
5
  wasRead
6
- } from "./chunk-HK5QNU6P.js";
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-K7A3Q62R.js.map
174
+ //# sourceMappingURL=chunk-QPII36FL.js.map
@@ -23,14 +23,14 @@ import {
23
23
  serviceStore,
24
24
  setProjectServices,
25
25
  setProjectVault
26
- } from "./chunk-WLZQDWJT.js";
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-HK5QNU6P.js";
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-ODBVFMKX.js");
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-ODBVFMKX.js");
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-E3L56VAY.js");
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-SG2ACPOE.js.map
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-HK5QNU6P.js";
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, rename, mkdir, chmod } from "fs/promises";
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 rename(tmpPath, filePath);
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-WLZQDWJT.js.map
3155
+ //# sourceMappingURL=chunk-WQWRTPPJ.js.map