replicas-engine 0.1.848 → 0.1.850

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-43SDL344.js";
8
+ } from "./chunk-3F6JSA2B.js";
9
9
  import "./chunk-2QWUV5HZ.js";
10
- import "./chunk-YVEE5YOO.js";
10
+ import "./chunk-EDKHMP3M.js";
11
11
  import "./chunk-UZSNFLDQ.js";
12
12
  import "./chunk-Q42GPHHD.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-YVEE5YOO.js";
14
+ } from "./chunk-EDKHMP3M.js";
15
15
  import {
16
16
  isRecord
17
17
  } from "./chunk-UZSNFLDQ.js";
@@ -244,7 +244,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
244
244
  await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
245
245
  await this.applyCredentialsResponse(data);
246
246
  if (data.scope) setAgentCredentialSnapshot("codex", { method: data.type, scope: data.scope, revision: data.revision });
247
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-W2DTK3J5.js");
247
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-DP3MWORN.js");
248
248
  await restartCodexAspHostIfRunning2();
249
249
  });
250
250
  await this.start(true);
@@ -264,7 +264,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
264
264
  await this.applyCredentialUpdate(generation, async () => {
265
265
  await this.applyCredentialsResponse(data);
266
266
  if (restartOnChange && CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index])) {
267
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-W2DTK3J5.js");
267
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-DP3MWORN.js");
268
268
  await restartCodexAspHostIfRunning2();
269
269
  }
270
270
  if (data.scope) {
@@ -241,7 +241,7 @@ var DEFAULT_CODEX_ARGS = [
241
241
  var MIN_CODEX_CLI_VERSION = "0.153.3";
242
242
  var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
243
243
  var codexCliVersionEnsured = null;
244
- var ENGINE_PACKAGE_VERSION = "0.1.848";
244
+ var ENGINE_PACKAGE_VERSION = "0.1.850";
245
245
  var INITIALIZE_METHOD = "initialize";
246
246
  var INITIALIZED_NOTIFICATION = "initialized";
247
247
  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-YVEE5YOO.js";
11
+ } from "./chunk-EDKHMP3M.js";
12
12
  import {
13
13
  AGENT,
14
14
  getMemoryOutputSafetyViolation,
package/dist/src/index.js CHANGED
@@ -132,7 +132,7 @@ import {
132
132
  recordCredentialFallback,
133
133
  recordExhaustedCredential,
134
134
  restartCodexAspHost
135
- } from "./chunk-43SDL344.js";
135
+ } from "./chunk-3F6JSA2B.js";
136
136
  import {
137
137
  ENGINE_ENV,
138
138
  IS_WARMING_MODE,
@@ -145,7 +145,7 @@ import {
145
145
  SUBPROCESS_MAX_BUFFER,
146
146
  execAsync,
147
147
  execFileAsync
148
- } from "./chunk-YVEE5YOO.js";
148
+ } from "./chunk-EDKHMP3M.js";
149
149
  import {
150
150
  isRecord as isRecord2
151
151
  } from "./chunk-UZSNFLDQ.js";
@@ -17489,6 +17489,9 @@ var AcpManager = class extends CodingAgentManager {
17489
17489
  clientInfo: { name: "Replicas", version: "1" }
17490
17490
  });
17491
17491
  this.capabilities = initialized.agentCapabilities ?? {};
17492
+ if (this.acp.authMethodId) {
17493
+ await this.context.request(methods.agent.authenticate, { methodId: this.acp.authMethodId });
17494
+ }
17492
17495
  const additionalDirectories = await getAgentAdditionalDirectories();
17493
17496
  const sessionId = this.sessionId ?? this.initialSessionId;
17494
17497
  if (sessionId && this.capabilities.loadSession) {
@@ -17855,6 +17858,7 @@ var GeminiManager = class extends AcpManager {
17855
17858
  provider: "gemini",
17856
17859
  command: "gemini",
17857
17860
  args: (model) => ["--acp", "--model", model],
17861
+ authMethodId: "gemini-api-key",
17858
17862
  env: async () => ({
17859
17863
  GEMINI_CLI_TRUST_WORKSPACE: "true",
17860
17864
  GEMINI_TELEMETRY_ENABLED: "false"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.848",
3
+ "version": "0.1.850",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",