replicas-engine 0.1.808 → 0.1.810

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,11 +5,11 @@ import {
5
5
  getCodexAspHost,
6
6
  restartCodexAspHost,
7
7
  restartCodexAspHostIfRunning
8
- } from "./chunk-O5GDQVDK.js";
9
- import "./chunk-UZBBWR4Y.js";
10
- import "./chunk-SWDDK3W4.js";
8
+ } from "./chunk-VORTW6XS.js";
9
+ import "./chunk-LDBKVOHL.js";
10
+ import "./chunk-U6YUWKEJ.js";
11
11
  import "./chunk-UZSNFLDQ.js";
12
- import "./chunk-3UST72O7.js";
12
+ import "./chunk-JQSIU2DB.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
  export {
15
15
  getCodexAspHost,
@@ -3,12 +3,12 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  monolithRequest
6
- } from "./chunk-UZBBWR4Y.js";
6
+ } from "./chunk-LDBKVOHL.js";
7
7
  import {
8
8
  extractCommandProtectionCommandText,
9
9
  findGitCommitSignals,
10
10
  findPrMergeSignals
11
- } from "./chunk-3UST72O7.js";
11
+ } from "./chunk-JQSIU2DB.js";
12
12
 
13
13
  // src/services/command-protection-service.ts
14
14
  var DEFAULT_COMMAND_PROTECTION_BLOCK_MESSAGE = "Blocked by Replicas command protection.";
@@ -3529,8 +3529,8 @@ var DEFAULT_USER_PREFERENCES = {
3529
3529
  cursor_hidden_models: null,
3530
3530
  openrouter_models: null,
3531
3531
  opencode_go_models: null,
3532
- close_workspace_on_pr_close: true,
3533
- close_workspace_on_pr_merge: true,
3532
+ close_workspace_on_pr_close: false,
3533
+ close_workspace_on_pr_merge: false,
3534
3534
  default_environment_id: null,
3535
3535
  respond_to_ci_workflows: true,
3536
3536
  respond_to_ci_checks: true,
@@ -5378,7 +5378,7 @@ function messageForItem(item) {
5378
5378
  timestamp: item.timestamp
5379
5379
  };
5380
5380
  }
5381
- if (item.type === "agentMessage") {
5381
+ if (item.type === "agentMessage" || item.type === "plan") {
5382
5382
  if (!item.text) return null;
5383
5383
  return {
5384
5384
  id: `agent-${item.id}`,
@@ -5458,16 +5458,6 @@ function messageForItem(item) {
5458
5458
  timestamp: item.timestamp
5459
5459
  };
5460
5460
  }
5461
- if (item.type === "plan") {
5462
- if (!item.text) return null;
5463
- return {
5464
- id: `todo-${item.id}`,
5465
- type: "todo_list",
5466
- items: item.text.split("\n").map((line) => line.trim()).filter(Boolean).map((text) => ({ text, completed: item.status === "completed" })),
5467
- status: normalizeCodexAspTranscriptStatus(item.status),
5468
- timestamp: item.timestamp
5469
- };
5470
- }
5471
5461
  if (item.type === "contextCompaction") {
5472
5462
  return {
5473
5463
  id: `reasoning-${item.id}`,
@@ -15,7 +15,7 @@ import {
15
15
  isValidRelayBaseProvider,
16
16
  parsePosixEnvFile,
17
17
  readReplicasRuntimeEnv
18
- } from "./chunk-3UST72O7.js";
18
+ } from "./chunk-JQSIU2DB.js";
19
19
 
20
20
  // src/engine-env.ts
21
21
  import { readFileSync as readFileSync2 } from "fs";
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  findCodeHostPullRequestUrls,
6
6
  mayCreatePullRequest
7
- } from "./chunk-3UST72O7.js";
7
+ } from "./chunk-JQSIU2DB.js";
8
8
 
9
9
  // src/services/post-tool-pr-notifier.ts
10
10
  async function notifyPostToolUse(toolName, toolInput, toolResult) {
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  HOOK_EXEC_MAX_BUFFER_BYTES,
6
6
  isVersionBelow
7
- } from "./chunk-3UST72O7.js";
7
+ } from "./chunk-JQSIU2DB.js";
8
8
 
9
9
  // src/utils/codex-agent-env.ts
10
10
  function buildCodexAgentEnv(source = process.env) {
@@ -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.808";
244
+ var ENGINE_PACKAGE_VERSION = "0.1.810";
245
245
  var INITIALIZE_METHOD = "initialize";
246
246
  var INITIALIZED_NOTIFICATION = "initialized";
247
247
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -5,18 +5,18 @@ import {
5
5
  ENGINE_ENV,
6
6
  monolithRequest,
7
7
  setAgentCredentialSnapshot
8
- } from "./chunk-UZBBWR4Y.js";
8
+ } from "./chunk-LDBKVOHL.js";
9
9
  import {
10
10
  AppServerProcess,
11
11
  buildCodexAgentEnv
12
- } from "./chunk-SWDDK3W4.js";
12
+ } from "./chunk-U6YUWKEJ.js";
13
13
  import {
14
14
  CODEX_AUTH_ENV_KEYS,
15
15
  CODEX_AUTH_ENV_KEYS_BY_METHOD,
16
16
  codexAuthEnvFromResponse,
17
17
  createErrorResult,
18
18
  createSuccessResult
19
- } from "./chunk-3UST72O7.js";
19
+ } from "./chunk-JQSIU2DB.js";
20
20
 
21
21
  // src/managers/codex-token-manager.ts
22
22
  import { promises as fs } from "fs";
@@ -232,7 +232,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
232
232
  const data = await response.json();
233
233
  await this.applyCredentialsResponse(data);
234
234
  if (restartOnChange && CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index])) {
235
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-R7AQCACD.js");
235
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-T7KZ2YX6.js");
236
236
  await restartCodexAspHostIfRunning2();
237
237
  }
238
238
  if (data.scope) {
@@ -3,12 +3,12 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  evaluateCommandProtection
6
- } from "./chunk-5HT3IG4K.js";
7
- import "./chunk-UZBBWR4Y.js";
6
+ } from "./chunk-FXABEKAD.js";
7
+ import "./chunk-LDBKVOHL.js";
8
8
  import {
9
9
  isRecord
10
10
  } from "./chunk-UZSNFLDQ.js";
11
- import "./chunk-3UST72O7.js";
11
+ import "./chunk-JQSIU2DB.js";
12
12
  import "./chunk-VEQXQN22.js";
13
13
 
14
14
  // src/command-protection-hook.ts
@@ -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-5HT3IG4K.js";
6
+ } from "./chunk-FXABEKAD.js";
7
7
  import {
8
8
  notifyPostToolUse
9
- } from "./chunk-SLISH4VD.js";
10
- import "./chunk-UZBBWR4Y.js";
9
+ } from "./chunk-MQIM2GUN.js";
10
+ import "./chunk-LDBKVOHL.js";
11
11
  import "./chunk-UZSNFLDQ.js";
12
- import "./chunk-3UST72O7.js";
12
+ import "./chunk-JQSIU2DB.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
 
15
15
  // src/deepseek-command-protection-plugin.ts
@@ -8,12 +8,12 @@ import {
8
8
  import {
9
9
  AppServerProcess,
10
10
  buildCodexAgentEnv
11
- } from "./chunk-SWDDK3W4.js";
11
+ } from "./chunk-U6YUWKEJ.js";
12
12
  import {
13
13
  AGENT,
14
14
  getMemoryOutputSafetyViolation,
15
15
  headlessAgentRequestSchema
16
- } from "./chunk-3UST72O7.js";
16
+ } from "./chunk-JQSIU2DB.js";
17
17
  import "./chunk-VEQXQN22.js";
18
18
 
19
19
  // src/headless-agent.ts
package/dist/src/index.js CHANGED
@@ -91,7 +91,7 @@ import {
91
91
  evaluateCommandProtection,
92
92
  extractToolCommand,
93
93
  reportCommandProtectionBlock
94
- } from "./chunk-5HT3IG4K.js";
94
+ } from "./chunk-FXABEKAD.js";
95
95
  import {
96
96
  ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
97
97
  AGENT_MESSAGE_DELTA_METHOD,
@@ -124,20 +124,20 @@ import {
124
124
  recordCredentialFallback,
125
125
  recordExhaustedCredential,
126
126
  restartCodexAspHost
127
- } from "./chunk-O5GDQVDK.js";
127
+ } from "./chunk-VORTW6XS.js";
128
128
  import {
129
129
  ENGINE_ENV,
130
130
  IS_WARMING_MODE,
131
131
  monolithRequest,
132
132
  monolithService,
133
133
  setAgentCredentialSnapshot
134
- } from "./chunk-UZBBWR4Y.js";
134
+ } from "./chunk-LDBKVOHL.js";
135
135
  import {
136
136
  AspClient,
137
137
  SUBPROCESS_MAX_BUFFER,
138
138
  execAsync,
139
139
  execFileAsync
140
- } from "./chunk-SWDDK3W4.js";
140
+ } from "./chunk-U6YUWKEJ.js";
141
141
  import {
142
142
  isRecord as isRecord2
143
143
  } from "./chunk-UZSNFLDQ.js";
@@ -343,7 +343,7 @@ import {
343
343
  spawnRelaySubagentRequestSchema,
344
344
  stripAgentDiagnosticErrors,
345
345
  withTimeout
346
- } from "./chunk-3UST72O7.js";
346
+ } from "./chunk-JQSIU2DB.js";
347
347
  import {
348
348
  __commonJS,
349
349
  __export,
@@ -3,11 +3,11 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  notifyPostToolUse
6
- } from "./chunk-SLISH4VD.js";
6
+ } from "./chunk-MQIM2GUN.js";
7
7
  import {
8
8
  isRecord
9
9
  } from "./chunk-UZSNFLDQ.js";
10
- import "./chunk-3UST72O7.js";
10
+ import "./chunk-JQSIU2DB.js";
11
11
  import "./chunk-VEQXQN22.js";
12
12
 
13
13
  // src/post-tool-pr-hook.ts
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  messageRelaySubagentRequestSchema,
6
6
  spawnRelaySubagentRequestSchema
7
- } from "./chunk-3UST72O7.js";
7
+ } from "./chunk-JQSIU2DB.js";
8
8
  import "./chunk-VEQXQN22.js";
9
9
 
10
10
  // src/relay-mcp.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.808",
3
+ "version": "0.1.810",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",