replicas-engine 0.1.964 → 0.1.965

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,12 +5,12 @@ import {
5
5
  getCodexAspHost,
6
6
  restartCodexAspHost,
7
7
  restartCodexAspHostIfRunning
8
- } from "./chunk-5M2ZF4NX.js";
9
- import "./chunk-3ZBHY2YI.js";
10
- import "./chunk-TDVZOQMQ.js";
11
- import "./chunk-33CDUZ6W.js";
8
+ } from "./chunk-MEVE5U5A.js";
9
+ import "./chunk-ACUYRC4H.js";
10
+ import "./chunk-AOF42AV2.js";
11
+ import "./chunk-TP5NFRFE.js";
12
12
  import "./chunk-UZSNFLDQ.js";
13
- import "./chunk-MEN62XEB.js";
13
+ import "./chunk-BYJ6CIME.js";
14
14
  import "./chunk-VEQXQN22.js";
15
15
  export {
16
16
  getCodexAspHost,
@@ -14,7 +14,7 @@ import {
14
14
  isValidAgentProvider,
15
15
  parsePosixEnvFile,
16
16
  readReplicasRuntimeEnv
17
- } from "./chunk-MEN62XEB.js";
17
+ } from "./chunk-BYJ6CIME.js";
18
18
 
19
19
  // src/runtime-env-loader.ts
20
20
  import { readFileSync } from "fs";
@@ -3,10 +3,10 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  execFileAsync
6
- } from "./chunk-33CDUZ6W.js";
6
+ } from "./chunk-TP5NFRFE.js";
7
7
  import {
8
8
  isVersionBelow
9
- } from "./chunk-MEN62XEB.js";
9
+ } from "./chunk-BYJ6CIME.js";
10
10
 
11
11
  // src/utils/codex-agent-env.ts
12
12
  function buildCodexAgentEnv(source = process.env) {
@@ -240,7 +240,7 @@ function getCodexModelProvider(method) {
240
240
  if (method === "foundry") return "azure";
241
241
  return method === "ollama" || method === "openai-compatible" ? "replicas_openai_compatible" : "openai";
242
242
  }
243
- var ENGINE_PACKAGE_VERSION = "0.1.964";
243
+ var ENGINE_PACKAGE_VERSION = "0.1.965";
244
244
  var INITIALIZE_METHOD = "initialize";
245
245
  var INITIALIZED_NOTIFICATION = "initialized";
246
246
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -8410,6 +8410,7 @@ var MAX_CLIENT_STATE_REQUEST_BYTES = 5 * 1024 * 1024;
8410
8410
  var MAX_CLIENT_STATE_BYTES_PER_USER = 10 * 1024 * 1024;
8411
8411
 
8412
8412
  // ../shared/src/routes/workspaces.ts
8413
+ import { z as z13 } from "zod";
8413
8414
  var WORKSPACE_STATUSES = ["active", "sleeping", "archived", "preparing", "error"];
8414
8415
  var WORKSPACE_STATUS_FILTERS = WORKSPACE_STATUSES.map((status) => status === "error" ? "failed" : status);
8415
8416
  var WORKSPACE_SORT_CHOICES = [
@@ -8433,48 +8434,56 @@ var DEFAULT_WORKSPACE_FILTERS = {
8433
8434
  activity: "any"
8434
8435
  };
8435
8436
  var ONE_DAY_MS = 24 * 60 * 60 * 1e3;
8437
+ var terminalRtcCandidateSchema = z13.object({ type: z13.literal("rtc-candidate"), candidate: z13.string(), mid: z13.string() });
8438
+ var terminalSocketServerMessageSchema = z13.discriminatedUnion("type", [
8439
+ z13.object({ type: z13.literal("output"), data: z13.string() }),
8440
+ z13.object({ type: z13.literal("rtc-answer"), sdp: z13.string() }),
8441
+ terminalRtcCandidateSchema,
8442
+ z13.object({ type: z13.literal("rtc-switch") })
8443
+ ]);
8444
+ var TERMINAL_RTC_ICE_SERVER = "stun:stun.l.google.com:19302";
8436
8445
 
8437
8446
  // ../shared/src/routes/workspace-events.ts
8438
- import { z as z13 } from "zod";
8439
- var workspaceChangedEventSchema = z13.discriminatedUnion("type", [
8440
- z13.object({
8441
- type: z13.literal("workspace.changed"),
8442
- workspaceId: z13.string(),
8443
- completion: z13.object({
8444
- workspaceName: z13.string(),
8445
- completedAt: z13.string(),
8446
- processing: z13.boolean().optional()
8447
+ import { z as z14 } from "zod";
8448
+ var workspaceChangedEventSchema = z14.discriminatedUnion("type", [
8449
+ z14.object({
8450
+ type: z14.literal("workspace.changed"),
8451
+ workspaceId: z14.string(),
8452
+ completion: z14.object({
8453
+ workspaceName: z14.string(),
8454
+ completedAt: z14.string(),
8455
+ processing: z14.boolean().optional()
8447
8456
  }).optional(),
8448
- ts: z13.string()
8457
+ ts: z14.string()
8449
8458
  }),
8450
- z13.object({
8451
- type: z13.literal("workspace.chat.changed"),
8452
- workspaceId: z13.string(),
8453
- chatId: z13.string(),
8454
- ts: z13.string()
8459
+ z14.object({
8460
+ type: z14.literal("workspace.chat.changed"),
8461
+ workspaceId: z14.string(),
8462
+ chatId: z14.string(),
8463
+ ts: z14.string()
8455
8464
  }),
8456
- z13.object({ type: z13.literal("presence.changed"), ts: z13.string() }),
8457
- z13.object({
8458
- type: z13.literal("mobile-testing.changed"),
8459
- workspaceId: z13.string(),
8460
- ts: z13.string()
8465
+ z14.object({ type: z14.literal("presence.changed"), ts: z14.string() }),
8466
+ z14.object({
8467
+ type: z14.literal("mobile-testing.changed"),
8468
+ workspaceId: z14.string(),
8469
+ ts: z14.string()
8461
8470
  })
8462
8471
  ]);
8463
8472
 
8464
8473
  // ../shared/src/routes/presence.ts
8465
- import { z as z14 } from "zod";
8466
- var presenceStatusSchema = z14.enum(["online", "typing"]);
8467
- var presenceLocationSchema = z14.object({
8468
- environmentId: z14.string().optional(),
8469
- workspaceId: z14.string().optional()
8474
+ import { z as z15 } from "zod";
8475
+ var presenceStatusSchema = z15.enum(["online", "typing"]);
8476
+ var presenceLocationSchema = z15.object({
8477
+ environmentId: z15.string().optional(),
8478
+ workspaceId: z15.string().optional()
8470
8479
  });
8471
- var presenceEntrySchema = z14.object({
8472
- userId: z14.string(),
8480
+ var presenceEntrySchema = z15.object({
8481
+ userId: z15.string(),
8473
8482
  status: presenceStatusSchema,
8474
8483
  location: presenceLocationSchema,
8475
- ts: z14.string()
8484
+ ts: z15.string()
8476
8485
  });
8477
- var updatePresenceRequestSchema = z14.object({
8486
+ var updatePresenceRequestSchema = z15.object({
8478
8487
  status: presenceStatusSchema,
8479
8488
  location: presenceLocationSchema.optional()
8480
8489
  });
@@ -9038,6 +9047,7 @@ export {
9038
9047
  findGitCommitSignals,
9039
9048
  findCommandProtectionGitLookups,
9040
9049
  shouldRefreshPullRequests,
9050
+ TERMINAL_RTC_ICE_SERVER,
9041
9051
  MAX_REPO_FILE_CONTENT_BYTES,
9042
9052
  searchRepoFileIndex,
9043
9053
  isExcludedRepoFilePath,
@@ -5,15 +5,15 @@ import {
5
5
  ENGINE_ENV,
6
6
  monolithRequest,
7
7
  setAgentCredentialSnapshot
8
- } from "./chunk-3ZBHY2YI.js";
8
+ } from "./chunk-ACUYRC4H.js";
9
9
  import {
10
10
  AppServerProcess,
11
11
  buildCodexAgentEnv
12
- } from "./chunk-TDVZOQMQ.js";
12
+ } from "./chunk-AOF42AV2.js";
13
13
  import {
14
14
  SUBPROCESS_MAX_BUFFER,
15
15
  execFileAsync
16
- } from "./chunk-33CDUZ6W.js";
16
+ } from "./chunk-TP5NFRFE.js";
17
17
  import {
18
18
  isRecord
19
19
  } from "./chunk-UZSNFLDQ.js";
@@ -27,7 +27,7 @@ import {
27
27
  listOpenAICompatibleModels,
28
28
  readOllamaAuthEnv,
29
29
  resolveOpenAICompatibleModelsUrl
30
- } from "./chunk-MEN62XEB.js";
30
+ } from "./chunk-BYJ6CIME.js";
31
31
 
32
32
  // src/managers/codex-token-manager.ts
33
33
  import { promises as fs } from "fs";
@@ -260,7 +260,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
260
260
  await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
261
261
  await this.applyCredentialsResponse(data);
262
262
  setAgentCredentialSnapshot("codex", data);
263
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-XRCTTTVU.js");
263
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-6ZAFHJHO.js");
264
264
  await restartCodexAspHostIfRunning2();
265
265
  });
266
266
  await this.start(true);
@@ -280,7 +280,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
280
280
  await this.applyCredentialUpdate(generation, async () => {
281
281
  await this.applyCredentialsResponse(data);
282
282
  if (restartOnChange && CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index])) {
283
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-XRCTTTVU.js");
283
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-6ZAFHJHO.js");
284
284
  await restartCodexAspHostIfRunning2();
285
285
  }
286
286
  setAgentCredentialSnapshot("codex", data);
@@ -3,18 +3,18 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  monolithRequest
6
- } from "./chunk-3ZBHY2YI.js";
6
+ } from "./chunk-ACUYRC4H.js";
7
7
  import {
8
8
  SUBPROCESS_MAX_BUFFER,
9
9
  execFileAsync
10
- } from "./chunk-33CDUZ6W.js";
10
+ } from "./chunk-TP5NFRFE.js";
11
11
  import {
12
12
  extractCommandProtectionCommandText,
13
13
  findCommandProtectionGitLookups,
14
14
  findGitCommitSignals,
15
15
  findPrMergeSignals,
16
16
  parseCommandProtectionRequest
17
- } from "./chunk-MEN62XEB.js";
17
+ } from "./chunk-BYJ6CIME.js";
18
18
 
19
19
  // src/services/command-protection-service.ts
20
20
  import { readFile, stat } from "fs/promises";
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  HOOK_EXEC_MAX_BUFFER_BYTES
6
- } from "./chunk-MEN62XEB.js";
6
+ } from "./chunk-BYJ6CIME.js";
7
7
 
8
8
  // src/utils/exec.ts
9
9
  import { exec, execFile } from "child_process";
@@ -5,7 +5,7 @@ import {
5
5
  extractCommandProtectionCommandText,
6
6
  isRecord,
7
7
  parseCodeHostPrUrl
8
- } from "./chunk-MEN62XEB.js";
8
+ } from "./chunk-BYJ6CIME.js";
9
9
 
10
10
  // src/services/published-pull-request-urls.ts
11
11
  function publishedPullRequestUrls(result) {
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  evaluateCommandProtection
6
- } from "./chunk-3NDASIOV.js";
7
- import "./chunk-3ZBHY2YI.js";
8
- import "./chunk-33CDUZ6W.js";
6
+ } from "./chunk-SLRHEFTS.js";
7
+ import "./chunk-ACUYRC4H.js";
8
+ import "./chunk-TP5NFRFE.js";
9
9
  import {
10
10
  isRecord
11
11
  } from "./chunk-UZSNFLDQ.js";
12
- import "./chunk-MEN62XEB.js";
12
+ import "./chunk-BYJ6CIME.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
 
15
15
  // src/command-protection-hook.ts
@@ -7,12 +7,12 @@ import {
7
7
  import {
8
8
  AppServerProcess,
9
9
  buildCodexAgentEnv
10
- } from "./chunk-TDVZOQMQ.js";
11
- import "./chunk-33CDUZ6W.js";
10
+ } from "./chunk-AOF42AV2.js";
11
+ import "./chunk-TP5NFRFE.js";
12
12
  import {
13
13
  AGENT,
14
14
  headlessAgentRequestSchema
15
- } from "./chunk-MEN62XEB.js";
15
+ } from "./chunk-BYJ6CIME.js";
16
16
  import "./chunk-VEQXQN22.js";
17
17
 
18
18
  // src/headless-agent.ts