replicas-engine 0.1.904 → 0.1.905

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.
@@ -5,9 +5,9 @@ import {
5
5
  getCodexAspHost,
6
6
  restartCodexAspHost,
7
7
  restartCodexAspHostIfRunning
8
- } from "./chunk-WC7COMCW.js";
8
+ } from "./chunk-BNVUDD7Y.js";
9
9
  import "./chunk-2VZVUDQM.js";
10
- import "./chunk-5R4AAJD5.js";
10
+ import "./chunk-OG4Q4YYI.js";
11
11
  import "./chunk-UZSNFLDQ.js";
12
12
  import "./chunk-TPOJS4TI.js";
13
13
  import "./chunk-VEQXQN22.js";
@@ -11,7 +11,7 @@ import {
11
11
  SUBPROCESS_MAX_BUFFER,
12
12
  buildCodexAgentEnv,
13
13
  execFileAsync
14
- } from "./chunk-5R4AAJD5.js";
14
+ } from "./chunk-OG4Q4YYI.js";
15
15
  import {
16
16
  isRecord
17
17
  } from "./chunk-UZSNFLDQ.js";
@@ -255,7 +255,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
255
255
  await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
256
256
  await this.applyCredentialsResponse(data);
257
257
  if (data.scope) setAgentCredentialSnapshot("codex", { method: data.type, scope: data.scope, revision: data.revision });
258
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-75MC3P3L.js");
258
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-WFPTAICQ.js");
259
259
  await restartCodexAspHostIfRunning2();
260
260
  });
261
261
  await this.start(true);
@@ -275,7 +275,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
275
275
  await this.applyCredentialUpdate(generation, async () => {
276
276
  await this.applyCredentialsResponse(data);
277
277
  if (restartOnChange && CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index])) {
278
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-75MC3P3L.js");
278
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-WFPTAICQ.js");
279
279
  await restartCodexAspHostIfRunning2();
280
280
  }
281
281
  if (data.scope) {
@@ -245,7 +245,7 @@ function getCodexModelProvider(method) {
245
245
  if (method === "foundry") return "azure";
246
246
  return method === "ollama" || method === "openai-compatible" ? "replicas_openai_compatible" : "openai";
247
247
  }
248
- var ENGINE_PACKAGE_VERSION = "0.1.904";
248
+ var ENGINE_PACKAGE_VERSION = "0.1.905";
249
249
  var INITIALIZE_METHOD = "initialize";
250
250
  var INITIALIZED_NOTIFICATION = "initialized";
251
251
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  AppServerProcess,
10
10
  buildCodexAgentEnv
11
- } from "./chunk-5R4AAJD5.js";
11
+ } from "./chunk-OG4Q4YYI.js";
12
12
  import {
13
13
  AGENT,
14
14
  getMemoryOutputSafetyViolation,
package/dist/src/index.js CHANGED
@@ -137,7 +137,7 @@ import {
137
137
  refreshDelayMs,
138
138
  restartCodexAspHost,
139
139
  routineRefreshExclusions
140
- } from "./chunk-WC7COMCW.js";
140
+ } from "./chunk-BNVUDD7Y.js";
141
141
  import {
142
142
  ENGINE_ENV,
143
143
  IS_WARMING_MODE,
@@ -151,7 +151,7 @@ import {
151
151
  execAsync,
152
152
  execFileAsync,
153
153
  getCodexModelProvider
154
- } from "./chunk-5R4AAJD5.js";
154
+ } from "./chunk-OG4Q4YYI.js";
155
155
  import {
156
156
  isRecord as isRecord2
157
157
  } from "./chunk-UZSNFLDQ.js";
@@ -61636,7 +61636,6 @@ function isPersistedChat(value) {
61636
61636
  return typeof candidate.id === "string" && typeof candidate.provider === "string" && isValidAgentProvider(candidate.provider) && (candidate.relayBaseProvider === void 0 || candidate.provider === "relay" && typeof candidate.relayBaseProvider === "string" && isValidCodingAgentProvider(candidate.relayBaseProvider)) && typeof candidate.title === "string" && (candidate.displayName === void 0 || typeof candidate.displayName === "string") && typeof candidate.createdAt === "string" && typeof candidate.updatedAt === "string" && (candidate.providerSessionId === null || typeof candidate.providerSessionId === "string") && (candidate.parentChatId === void 0 || candidate.parentChatId === null || typeof candidate.parentChatId === "string") && (candidate.deletedAt === void 0 || candidate.deletedAt === null || typeof candidate.deletedAt === "string");
61637
61637
  }
61638
61638
  function normalizePersistedChat(chat) {
61639
- const isLegacyCodexSdkChat = chat.provider === "codex" && (chat.codexBackend === "sdk" || chat.codexBackend === void 0 && chat.providerSessionId !== null);
61640
61639
  return {
61641
61640
  id: chat.id,
61642
61641
  provider: chat.provider,
@@ -61646,7 +61645,7 @@ function normalizePersistedChat(chat) {
61646
61645
  ...chat.displayName ? { displayName: chat.displayName } : {},
61647
61646
  createdAt: chat.createdAt,
61648
61647
  updatedAt: chat.updatedAt,
61649
- providerSessionId: isLegacyCodexSdkChat ? null : chat.providerSessionId,
61648
+ providerSessionId: chat.providerSessionId,
61650
61649
  parentChatId: chat.parentChatId ?? null,
61651
61650
  lastMessageText: chat.lastMessageText ?? null,
61652
61651
  deletedAt: chat.deletedAt ?? null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.904",
3
+ "version": "0.1.905",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",