replicas-engine 0.1.745 → 0.1.747
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,9 +3,9 @@ import {
|
|
|
3
3
|
getCodexAspHost,
|
|
4
4
|
restartCodexAspHost,
|
|
5
5
|
restartCodexAspHostIfRunning
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2KNZPKDR.js";
|
|
7
7
|
import "./chunk-ITEQAMIZ.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-AQVRSV25.js";
|
|
9
9
|
import "./chunk-2RB7SIP3.js";
|
|
10
10
|
import "./chunk-HMIVYASC.js";
|
|
11
11
|
import "./chunk-5KSXSK7Y.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
AppServerProcess,
|
|
9
9
|
buildCodexAgentEnv
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AQVRSV25.js";
|
|
11
11
|
import {
|
|
12
12
|
CODEX_AUTH_ENV_KEYS,
|
|
13
13
|
CODEX_AUTH_ENV_KEYS_BY_METHOD,
|
|
@@ -230,7 +230,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
230
230
|
const data = await response.json();
|
|
231
231
|
await this.applyCredentialsResponse(data);
|
|
232
232
|
if (restartOnChange && CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index])) {
|
|
233
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
233
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-OWHPVIP5.js");
|
|
234
234
|
await restartCodexAspHostIfRunning2();
|
|
235
235
|
}
|
|
236
236
|
if (data.scope) {
|
|
@@ -239,7 +239,7 @@ var DEFAULT_CODEX_ARGS = [
|
|
|
239
239
|
var MIN_CODEX_CLI_VERSION = "0.153.3";
|
|
240
240
|
var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
|
|
241
241
|
var codexCliVersionEnsured = null;
|
|
242
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
242
|
+
var ENGINE_PACKAGE_VERSION = "0.1.747";
|
|
243
243
|
var INITIALIZE_METHOD = "initialize";
|
|
244
244
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
245
245
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
package/dist/src/index.js
CHANGED
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
recordCredentialFallback,
|
|
59
59
|
recordExhaustedCredential,
|
|
60
60
|
restartCodexAspHost
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-2KNZPKDR.js";
|
|
62
62
|
import {
|
|
63
63
|
ENGINE_ENV,
|
|
64
64
|
IS_WARMING_MODE,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
SUBPROCESS_MAX_BUFFER,
|
|
72
72
|
execAsync,
|
|
73
73
|
execFileAsync
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-AQVRSV25.js";
|
|
75
75
|
import {
|
|
76
76
|
isRecord as isRecord2
|
|
77
77
|
} from "./chunk-2RB7SIP3.js";
|
|
@@ -61276,11 +61276,16 @@ function parseChatMessageSendersJsonl(content) {
|
|
|
61276
61276
|
}
|
|
61277
61277
|
|
|
61278
61278
|
// src/services/upload-chat-transcripts.ts
|
|
61279
|
-
var HISTORY_DIRS = [
|
|
61280
|
-
|
|
61281
|
-
|
|
61282
|
-
|
|
61283
|
-
|
|
61279
|
+
var HISTORY_DIRS = [...new Set(Object.values(HISTORY_DIR_BY_PROVIDER))];
|
|
61280
|
+
var ALWAYS_UPLOAD_HISTORY_DIRS = /* @__PURE__ */ new Set([
|
|
61281
|
+
HISTORY_DIR_BY_PROVIDER.claude,
|
|
61282
|
+
HISTORY_DIR_BY_PROVIDER.codex,
|
|
61283
|
+
HISTORY_DIR_BY_PROVIDER.relay
|
|
61284
|
+
]);
|
|
61285
|
+
function shouldFlushChatTranscript(historyDir, chat, chatsById) {
|
|
61286
|
+
const parent = chat?.parentChatId ? chatsById.get(chat.parentChatId) : void 0;
|
|
61287
|
+
return ALWAYS_UPLOAD_HISTORY_DIRS.has(historyDir) || parent?.provider === "relay";
|
|
61288
|
+
}
|
|
61284
61289
|
async function flushAllChatTranscripts(chatsById = /* @__PURE__ */ new Map(), capture) {
|
|
61285
61290
|
let flushed = 0;
|
|
61286
61291
|
let failed = 0;
|
|
@@ -61296,8 +61301,10 @@ async function flushAllChatTranscripts(chatsById = /* @__PURE__ */ new Map(), ca
|
|
|
61296
61301
|
for (const entry of entries) {
|
|
61297
61302
|
if (!entry.endsWith(".jsonl")) continue;
|
|
61298
61303
|
const chatId = basename3(entry, ".jsonl");
|
|
61304
|
+
const chat = chatsById.get(chatId);
|
|
61305
|
+
if (!shouldFlushChatTranscript(dir, chat, chatsById)) continue;
|
|
61299
61306
|
tasks.push(
|
|
61300
|
-
uploadChatTranscript(chatId, join33(dir, entry),
|
|
61307
|
+
uploadChatTranscript(chatId, join33(dir, entry), chat, capture).then((artifact) => {
|
|
61301
61308
|
flushed++;
|
|
61302
61309
|
if (artifact && capture) revisions.push(artifact);
|
|
61303
61310
|
}).catch((err) => {
|
|
@@ -62869,7 +62876,7 @@ import { createRequire as createRequire6 } from "module";
|
|
|
62869
62876
|
import { delimiter as delimiter2, dirname as dirname19, join as join37, relative as relative2 } from "path";
|
|
62870
62877
|
import { setTimeout as setTimeout2 } from "timers/promises";
|
|
62871
62878
|
import { fileURLToPath as fileURLToPath6, pathToFileURL } from "url";
|
|
62872
|
-
import { createMessageConnection, StreamMessageReader, StreamMessageWriter } from "vscode-jsonrpc/node";
|
|
62879
|
+
import { createMessageConnection, StreamMessageReader, StreamMessageWriter } from "vscode-jsonrpc/node.js";
|
|
62873
62880
|
var require6 = createRequire6(import.meta.url);
|
|
62874
62881
|
var SERVER_TIMEOUT_MS = 1e4;
|
|
62875
62882
|
var LANGUAGE_SERVERS = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "replicas-engine",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.747",
|
|
4
4
|
"description": "Lightweight API server for Replicas workspaces",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
24
|
"dev": "tsx watch --conditions=development src/index.ts",
|
|
25
|
-
"build": "bun run --cwd ../shared build && node scripts/generate-workspace-sdk-types.mjs && bun run typecheck && tsup && node scripts/smoke-
|
|
25
|
+
"build": "bun run --cwd ../shared build && node scripts/generate-workspace-sdk-types.mjs && bun run typecheck && tsup && node scripts/smoke-entrypoints.mjs",
|
|
26
26
|
"typecheck": "tsc --noEmit",
|
|
27
27
|
"dev-pack": "bun run build && node scripts/pack-dev-tarball.mjs",
|
|
28
28
|
"start": "node dist/src/index.js",
|