replicas-engine 0.1.893 → 0.1.894

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-PAELCM3S.js";
9
- import "./chunk-V7P43L3L.js";
10
- import "./chunk-HANGEXUO.js";
8
+ } from "./chunk-3KOT5H2T.js";
9
+ import "./chunk-Y2YO3LP3.js";
10
+ import "./chunk-XB2LXT6O.js";
11
11
  import "./chunk-UZSNFLDQ.js";
12
- import "./chunk-ZZ7YYXV5.js";
12
+ import "./chunk-5V6IC6AS.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
  export {
15
15
  getCodexAspHost,
@@ -5,13 +5,13 @@ import {
5
5
  ENGINE_ENV,
6
6
  monolithRequest,
7
7
  setAgentCredentialSnapshot
8
- } from "./chunk-V7P43L3L.js";
8
+ } from "./chunk-Y2YO3LP3.js";
9
9
  import {
10
10
  AppServerProcess,
11
11
  SUBPROCESS_MAX_BUFFER,
12
12
  buildCodexAgentEnv,
13
13
  execFileAsync
14
- } from "./chunk-HANGEXUO.js";
14
+ } from "./chunk-XB2LXT6O.js";
15
15
  import {
16
16
  isRecord
17
17
  } from "./chunk-UZSNFLDQ.js";
@@ -25,7 +25,7 @@ import {
25
25
  listOpenAICompatibleModels,
26
26
  readOllamaAuthEnv,
27
27
  resolveOpenAICompatibleModelsUrl
28
- } from "./chunk-ZZ7YYXV5.js";
28
+ } from "./chunk-5V6IC6AS.js";
29
29
 
30
30
  // src/managers/codex-token-manager.ts
31
31
  import { promises as fs } from "fs";
@@ -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-X5TW6XEX.js");
258
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-XRJUEXU3.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-X5TW6XEX.js");
278
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-XRJUEXU3.js");
279
279
  await restartCodexAspHostIfRunning2();
280
280
  }
281
281
  if (data.scope) {
@@ -211,12 +211,14 @@ var CLAUDE_OPUS_1M_MODEL = "opus[1m]";
211
211
  var LEGACY_CLAUDE_OPUS_1M_MODEL = "opus-1m";
212
212
  var CLAUDE_FABLE_5_1_MODEL = "claude-fable-5-1";
213
213
  var CLAUDE_FABLE_5_MODEL = "claude-fable-5";
214
+ var CLAUDE_OPUS_5_5_MODEL = "claude-opus-5-5";
214
215
  var CLAUDE_OPUS_5_MODEL = "claude-opus-5";
215
216
  var CLAUDE_OPUS_4_8_MODEL = "claude-opus-4-8";
216
217
  var CLAUDE_SONNET_5_MODEL = "claude-sonnet-5";
217
218
  var CLAUDE_HAIKU_4_5_MODEL = "claude-haiku-4-5";
218
219
  var CLAUDE_FABLE_5_1_BEDROCK_MODEL = "anthropic.claude-fable-5-1";
219
220
  var CLAUDE_FABLE_5_BEDROCK_MODEL = "anthropic.claude-fable-5";
221
+ var CLAUDE_OPUS_5_5_BEDROCK_MODEL = "anthropic.claude-opus-5-5";
220
222
  var CLAUDE_OPUS_5_BEDROCK_MODEL = "anthropic.claude-opus-5";
221
223
  var CLAUDE_OPUS_4_8_BEDROCK_MODEL = "us.anthropic.claude-opus-4-8";
222
224
  var CLAUDE_SONNET_5_BEDROCK_MODEL = "anthropic.claude-sonnet-5";
@@ -301,12 +303,14 @@ function normalizeClaudeModel(model) {
301
303
  var CLAUDE_MODEL_CONTEXT_WINDOWS = {
302
304
  [CLAUDE_FABLE_5_1_MODEL]: 1e6,
303
305
  [CLAUDE_FABLE_5_MODEL]: 1e6,
306
+ [CLAUDE_OPUS_5_5_MODEL]: 1e6,
304
307
  [CLAUDE_OPUS_5_MODEL]: 1e6,
305
308
  [CLAUDE_OPUS_4_8_MODEL]: 1e6,
306
309
  [CLAUDE_SONNET_5_MODEL]: 1e6,
307
310
  [CLAUDE_HAIKU_4_5_MODEL]: 2e5,
308
311
  [CLAUDE_FABLE_5_1_BEDROCK_MODEL]: 1e6,
309
312
  [CLAUDE_FABLE_5_BEDROCK_MODEL]: 1e6,
313
+ [CLAUDE_OPUS_5_5_BEDROCK_MODEL]: 1e6,
310
314
  [CLAUDE_OPUS_5_BEDROCK_MODEL]: 1e6,
311
315
  [CLAUDE_OPUS_4_8_BEDROCK_MODEL]: 1e6,
312
316
  [CLAUDE_SONNET_5_BEDROCK_MODEL]: 1e6,
@@ -324,12 +328,13 @@ function getClaudeModelContextWindow(model) {
324
328
  }
325
329
  function canUseClaudeFastMode(model) {
326
330
  const normalized = normalizeClaudeModel(model);
327
- return normalized === CLAUDE_OPUS_5_MODEL || normalized === CLAUDE_OPUS_4_8_MODEL || model === "claude-opus-4-7";
331
+ return normalized === CLAUDE_OPUS_5_5_MODEL || normalized === CLAUDE_OPUS_5_MODEL || normalized === CLAUDE_OPUS_4_8_MODEL || model === "claude-opus-4-7";
328
332
  }
329
333
  var AGENT_MODELS = {
330
334
  claude: [
331
335
  CLAUDE_FABLE_5_1_MODEL,
332
336
  CLAUDE_FABLE_5_MODEL,
337
+ CLAUDE_OPUS_5_5_MODEL,
333
338
  CLAUDE_OPUS_5_MODEL,
334
339
  CLAUDE_OPUS_4_8_MODEL,
335
340
  CLAUDE_SONNET_5_MODEL,
@@ -339,6 +344,7 @@ var AGENT_MODELS = {
339
344
  cursor: [
340
345
  CLAUDE_FABLE_5_1_MODEL,
341
346
  CLAUDE_FABLE_5_MODEL,
347
+ CLAUDE_OPUS_5_5_MODEL,
342
348
  CLAUDE_OPUS_5_MODEL,
343
349
  CLAUDE_OPUS_4_8_MODEL,
344
350
  GPT_5_6_SOL_MODEL,
@@ -374,7 +380,7 @@ var AGENT_MODELS = {
374
380
  muse: [MUSE_SPARK_1_3_MODEL, DEFAULT_MUSE_MODEL],
375
381
  opencode: [...DEFAULT_OPENROUTER_MODELS, ...ASTER_MODELS],
376
382
  pi: [...DEFAULT_OPENROUTER_MODELS, ...ASTER_MODELS],
377
- relay: [CLAUDE_FABLE_5_1_MODEL, CLAUDE_FABLE_5_MODEL, CLAUDE_OPUS_5_MODEL, CLAUDE_OPUS_4_8_MODEL, CLAUDE_SONNET_5_MODEL]
383
+ relay: [CLAUDE_FABLE_5_1_MODEL, CLAUDE_FABLE_5_MODEL, CLAUDE_OPUS_5_5_MODEL, CLAUDE_OPUS_5_MODEL, CLAUDE_OPUS_4_8_MODEL, CLAUDE_SONNET_5_MODEL]
378
384
  };
379
385
  var DEFAULT_STATIC_AGENT_MODELS = {
380
386
  claude: AGENT_MODELS.claude,
@@ -386,7 +392,8 @@ function getAgentModelOptions(provider, overrides) {
386
392
  return override?.length ? override : AGENT_MODELS[provider];
387
393
  }
388
394
  var CLAUDE_MODEL_MIN_SANDBOX_IMAGE = {
389
- [CLAUDE_FABLE_5_1_MODEL]: "replicas-sandbox-2026-09-01-v6"
395
+ [CLAUDE_FABLE_5_1_MODEL]: "replicas-sandbox-2026-09-01-v6",
396
+ [CLAUDE_OPUS_5_5_MODEL]: "replicas-sandbox-2026-09-22-v4"
390
397
  };
391
398
  var CODEX_MODEL_MIN_SANDBOX_IMAGE = {
392
399
  [GPT_6_ASTRA_MODEL]: "replicas-sandbox-2026-09-04-v7"
@@ -398,6 +405,7 @@ var MODEL_LABELS = {
398
405
  sonnet: "Sonnet 5",
399
406
  "claude-sonnet-5": "Sonnet 5",
400
407
  opus: "Opus 5",
408
+ [CLAUDE_OPUS_5_5_MODEL]: "Opus 5.5",
401
409
  [CLAUDE_OPUS_5_MODEL]: "Opus 5",
402
410
  [CLAUDE_OPUS_1M_MODEL]: "Opus (1M)",
403
411
  [LEGACY_CLAUDE_OPUS_1M_MODEL]: "Opus (1M)",
@@ -8223,12 +8231,14 @@ export {
8223
8231
  isDefaultChat,
8224
8232
  CLAUDE_FABLE_5_1_MODEL,
8225
8233
  CLAUDE_FABLE_5_MODEL,
8234
+ CLAUDE_OPUS_5_5_MODEL,
8226
8235
  CLAUDE_OPUS_5_MODEL,
8227
8236
  CLAUDE_OPUS_4_8_MODEL,
8228
8237
  CLAUDE_SONNET_5_MODEL,
8229
8238
  CLAUDE_HAIKU_4_5_MODEL,
8230
8239
  CLAUDE_FABLE_5_1_BEDROCK_MODEL,
8231
8240
  CLAUDE_FABLE_5_BEDROCK_MODEL,
8241
+ CLAUDE_OPUS_5_5_BEDROCK_MODEL,
8232
8242
  CLAUDE_OPUS_5_BEDROCK_MODEL,
8233
8243
  CLAUDE_OPUS_4_8_BEDROCK_MODEL,
8234
8244
  CLAUDE_SONNET_5_BEDROCK_MODEL,
@@ -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-V7P43L3L.js";
6
+ } from "./chunk-Y2YO3LP3.js";
7
7
  import {
8
8
  extractCommandProtectionCommandText,
9
9
  findGitCommitSignals,
10
10
  findPrMergeSignals
11
- } from "./chunk-ZZ7YYXV5.js";
11
+ } from "./chunk-5V6IC6AS.js";
12
12
 
13
13
  // src/services/command-protection-service.ts
14
14
  var DEFAULT_COMMAND_PROTECTION_BLOCK_MESSAGE = "Blocked by Replicas command protection.";
@@ -5,7 +5,7 @@ import {
5
5
  extractCommandProtectionCommandText,
6
6
  isRecord,
7
7
  parseCodeHostPrUrl
8
- } from "./chunk-ZZ7YYXV5.js";
8
+ } from "./chunk-5V6IC6AS.js";
9
9
 
10
10
  // src/services/published-pull-request-urls.ts
11
11
  function publishedPullRequestUrls(result) {
@@ -3,10 +3,10 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  publishedPullRequestUrls
6
- } from "./chunk-UVFBGY57.js";
6
+ } from "./chunk-CTMWAFR7.js";
7
7
  import {
8
8
  shouldRefreshPullRequests
9
- } from "./chunk-ZZ7YYXV5.js";
9
+ } from "./chunk-5V6IC6AS.js";
10
10
 
11
11
  // src/services/post-tool-pr-notifier.ts
12
12
  async function notifyPostToolUse(toolName, toolInput, result) {
@@ -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-ZZ7YYXV5.js";
7
+ } from "./chunk-5V6IC6AS.js";
8
8
 
9
9
  // src/utils/codex-agent-env.ts
10
10
  function buildCodexAgentEnv(source = process.env) {
@@ -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.893";
248
+ var ENGINE_PACKAGE_VERSION = "0.1.894";
249
249
  var INITIALIZE_METHOD = "initialize";
250
250
  var INITIALIZED_NOTIFICATION = "initialized";
251
251
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -15,7 +15,7 @@ import {
15
15
  isValidRelayBaseProvider,
16
16
  parsePosixEnvFile,
17
17
  readReplicasRuntimeEnv
18
- } from "./chunk-ZZ7YYXV5.js";
18
+ } from "./chunk-5V6IC6AS.js";
19
19
 
20
20
  // src/engine-env.ts
21
21
  import { readFileSync as readFileSync2 } from "fs";
@@ -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-IN4SUFZ2.js";
7
- import "./chunk-V7P43L3L.js";
6
+ } from "./chunk-5YTUEVVZ.js";
7
+ import "./chunk-Y2YO3LP3.js";
8
8
  import {
9
9
  isRecord
10
10
  } from "./chunk-UZSNFLDQ.js";
11
- import "./chunk-ZZ7YYXV5.js";
11
+ import "./chunk-5V6IC6AS.js";
12
12
  import "./chunk-VEQXQN22.js";
13
13
 
14
14
  // src/command-protection-hook.ts
@@ -3,14 +3,14 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  evaluateCommandProtection
6
- } from "./chunk-IN4SUFZ2.js";
6
+ } from "./chunk-5YTUEVVZ.js";
7
7
  import {
8
8
  notifyPostToolUse
9
- } from "./chunk-2ISAUV3V.js";
10
- import "./chunk-UVFBGY57.js";
11
- import "./chunk-V7P43L3L.js";
9
+ } from "./chunk-S2BRRGQW.js";
10
+ import "./chunk-CTMWAFR7.js";
11
+ import "./chunk-Y2YO3LP3.js";
12
12
  import "./chunk-UZSNFLDQ.js";
13
- import "./chunk-ZZ7YYXV5.js";
13
+ import "./chunk-5V6IC6AS.js";
14
14
  import "./chunk-VEQXQN22.js";
15
15
 
16
16
  // src/deepseek-command-protection-plugin.ts
@@ -8,12 +8,12 @@ import {
8
8
  import {
9
9
  AppServerProcess,
10
10
  buildCodexAgentEnv
11
- } from "./chunk-HANGEXUO.js";
11
+ } from "./chunk-XB2LXT6O.js";
12
12
  import {
13
13
  AGENT,
14
14
  getMemoryOutputSafetyViolation,
15
15
  headlessAgentRequestSchema
16
- } from "./chunk-ZZ7YYXV5.js";
16
+ } from "./chunk-5V6IC6AS.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-IN4SUFZ2.js";
94
+ } from "./chunk-5YTUEVVZ.js";
95
95
  import {
96
96
  ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
97
97
  AGENT_MESSAGE_DELTA_METHOD,
@@ -116,7 +116,7 @@ import {
116
116
  } from "./chunk-FLDA7BX3.js";
117
117
  import {
118
118
  publishedPullRequestUrls
119
- } from "./chunk-UVFBGY57.js";
119
+ } from "./chunk-CTMWAFR7.js";
120
120
  import {
121
121
  RELAY_MCP_TOOLS,
122
122
  RELAY_MCP_TOOL_NAMES,
@@ -137,21 +137,21 @@ import {
137
137
  refreshDelayMs,
138
138
  restartCodexAspHost,
139
139
  routineRefreshExclusions
140
- } from "./chunk-PAELCM3S.js";
140
+ } from "./chunk-3KOT5H2T.js";
141
141
  import {
142
142
  ENGINE_ENV,
143
143
  IS_WARMING_MODE,
144
144
  monolithRequest,
145
145
  monolithService,
146
146
  setAgentCredentialSnapshot
147
- } from "./chunk-V7P43L3L.js";
147
+ } from "./chunk-Y2YO3LP3.js";
148
148
  import {
149
149
  AspClient,
150
150
  SUBPROCESS_MAX_BUFFER,
151
151
  execAsync,
152
152
  execFileAsync,
153
153
  getCodexModelProvider
154
- } from "./chunk-HANGEXUO.js";
154
+ } from "./chunk-XB2LXT6O.js";
155
155
  import {
156
156
  isRecord as isRecord2
157
157
  } from "./chunk-UZSNFLDQ.js";
@@ -180,6 +180,8 @@ import {
180
180
  CLAUDE_HAIKU_4_5_MODEL,
181
181
  CLAUDE_OPUS_4_8_BEDROCK_MODEL,
182
182
  CLAUDE_OPUS_4_8_MODEL,
183
+ CLAUDE_OPUS_5_5_BEDROCK_MODEL,
184
+ CLAUDE_OPUS_5_5_MODEL,
183
185
  CLAUDE_OPUS_5_BEDROCK_MODEL,
184
186
  CLAUDE_OPUS_5_MODEL,
185
187
  CLAUDE_PARTIAL_MESSAGE_EVENT_TYPE,
@@ -376,7 +378,7 @@ import {
376
378
  workspaceCredentialProviderSchema,
377
379
  workspaceTokenRequestSchema,
378
380
  workspaceTokenResponseSchema
379
- } from "./chunk-ZZ7YYXV5.js";
381
+ } from "./chunk-5V6IC6AS.js";
380
382
  import {
381
383
  __commonJS,
382
384
  __export,
@@ -384,227 +386,212 @@ import {
384
386
  __toESM
385
387
  } from "./chunk-VEQXQN22.js";
386
388
 
387
- // ../node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.js
388
- var require_windows = __commonJS({
389
- "../node_modules/.bun/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
389
+ // ../node_modules/.bun/isexe@3.1.5/node_modules/isexe/dist/commonjs/index.min.js
390
+ var require_index_min = __commonJS({
391
+ "../node_modules/.bun/isexe@3.1.5/node_modules/isexe/dist/commonjs/index.min.js"(exports) {
390
392
  "use strict";
391
- module.exports = isexe;
392
- isexe.sync = sync;
393
- var fs8 = __require("fs");
394
- function checkPathExt(path7, options) {
395
- var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
396
- if (!pathext) {
397
- return true;
398
- }
399
- pathext = pathext.split(";");
400
- if (pathext.indexOf("") !== -1) {
401
- return true;
402
- }
403
- for (var i = 0; i < pathext.length; i++) {
404
- var p = pathext[i].toLowerCase();
405
- if (p && path7.substr(-p.length).toLowerCase() === p) {
406
- return true;
393
+ var a = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports);
394
+ var _ = a((i) => {
395
+ "use strict";
396
+ Object.defineProperty(i, "__esModule", { value: true });
397
+ i.sync = i.isexe = void 0;
398
+ var M = __require("fs"), x = __require("fs/promises"), q = async (t, e = {}) => {
399
+ let { ignoreErrors: r = false } = e;
400
+ try {
401
+ return d(await (0, x.stat)(t), e);
402
+ } catch (s) {
403
+ let n = s;
404
+ if (r || n.code === "EACCES") return false;
405
+ throw n;
407
406
  }
408
- }
409
- return false;
410
- }
411
- function checkStat(stat8, path7, options) {
412
- if (!stat8.isSymbolicLink() && !stat8.isFile()) {
413
- return false;
414
- }
415
- return checkPathExt(path7, options);
416
- }
417
- function isexe(path7, options, cb) {
418
- fs8.stat(path7, function(er, stat8) {
419
- cb(er, er ? false : checkStat(stat8, path7, options));
420
- });
421
- }
422
- function sync(path7, options) {
423
- return checkStat(fs8.statSync(path7), path7, options);
424
- }
425
- }
426
- });
427
-
428
- // ../node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.js
429
- var require_mode = __commonJS({
430
- "../node_modules/.bun/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
431
- "use strict";
432
- module.exports = isexe;
433
- isexe.sync = sync;
434
- var fs8 = __require("fs");
435
- function isexe(path7, options, cb) {
436
- fs8.stat(path7, function(er, stat8) {
437
- cb(er, er ? false : checkStat(stat8, options));
438
- });
439
- }
440
- function sync(path7, options) {
441
- return checkStat(fs8.statSync(path7), options);
442
- }
443
- function checkStat(stat8, options) {
444
- return stat8.isFile() && checkMode(stat8, options);
445
- }
446
- function checkMode(stat8, options) {
447
- var mod = stat8.mode;
448
- var uid = stat8.uid;
449
- var gid = stat8.gid;
450
- var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
451
- var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
452
- var u = parseInt("100", 8);
453
- var g = parseInt("010", 8);
454
- var o = parseInt("001", 8);
455
- var ug = u | g;
456
- var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
457
- return ret;
458
- }
459
- }
460
- });
461
-
462
- // ../node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.js
463
- var require_isexe = __commonJS({
464
- "../node_modules/.bun/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
465
- "use strict";
466
- var fs8 = __require("fs");
467
- var core;
468
- if (process.platform === "win32" || global.TESTING_WINDOWS) {
469
- core = require_windows();
470
- } else {
471
- core = require_mode();
472
- }
473
- module.exports = isexe;
474
- isexe.sync = sync;
475
- function isexe(path7, options, cb) {
476
- if (typeof options === "function") {
477
- cb = options;
478
- options = {};
479
- }
480
- if (!cb) {
481
- if (typeof Promise !== "function") {
482
- throw new TypeError("callback not provided");
483
- }
484
- return new Promise(function(resolve8, reject) {
485
- isexe(path7, options || {}, function(er, is) {
486
- if (er) {
487
- reject(er);
488
- } else {
489
- resolve8(is);
490
- }
491
- });
492
- });
493
- }
494
- core(path7, options || {}, function(er, is) {
495
- if (er) {
496
- if (er.code === "EACCES" || options && options.ignoreErrors) {
497
- er = null;
498
- is = false;
499
- }
407
+ };
408
+ i.isexe = q;
409
+ var m = (t, e = {}) => {
410
+ let { ignoreErrors: r = false } = e;
411
+ try {
412
+ return d((0, M.statSync)(t), e);
413
+ } catch (s) {
414
+ let n = s;
415
+ if (r || n.code === "EACCES") return false;
416
+ throw n;
500
417
  }
501
- cb(er, is);
502
- });
503
- }
504
- function sync(path7, options) {
505
- try {
506
- return core.sync(path7, options || {});
507
- } catch (er) {
508
- if (options && options.ignoreErrors || er.code === "EACCES") {
509
- return false;
510
- } else {
511
- throw er;
418
+ };
419
+ i.sync = m;
420
+ var d = (t, e) => t.isFile() && A(t, e), A = (t, e) => {
421
+ let r = e.uid ?? process.getuid?.(), s = e.groups ?? process.getgroups?.() ?? [], n = e.gid ?? process.getgid?.() ?? s[0];
422
+ if (r === void 0 || n === void 0) throw new Error("cannot get uid or gid");
423
+ let u = /* @__PURE__ */ new Set([n, ...s]), c = t.mode, S = t.uid, P = t.gid, f = parseInt("100", 8), l = parseInt("010", 8), j = parseInt("001", 8), C = f | l;
424
+ return !!(c & j || c & l && u.has(P) || c & f && S === r || c & C && r === 0);
425
+ };
426
+ });
427
+ var g = a((o) => {
428
+ "use strict";
429
+ Object.defineProperty(o, "__esModule", { value: true });
430
+ o.sync = o.isexe = void 0;
431
+ var T = __require("fs"), I = __require("fs/promises"), D = __require("path"), F = async (t, e = {}) => {
432
+ let { ignoreErrors: r = false } = e;
433
+ try {
434
+ return y(await (0, I.stat)(t), t, e);
435
+ } catch (s) {
436
+ let n = s;
437
+ if (r || n.code === "EACCES") return false;
438
+ throw n;
512
439
  }
513
- }
514
- }
440
+ };
441
+ o.isexe = F;
442
+ var L = (t, e = {}) => {
443
+ let { ignoreErrors: r = false } = e;
444
+ try {
445
+ return y((0, T.statSync)(t), t, e);
446
+ } catch (s) {
447
+ let n = s;
448
+ if (r || n.code === "EACCES") return false;
449
+ throw n;
450
+ }
451
+ };
452
+ o.sync = L;
453
+ var B = (t, e) => {
454
+ let { pathExt: r = process.env.PATHEXT || "" } = e, s = r.split(D.delimiter);
455
+ if (s.indexOf("") !== -1) return true;
456
+ for (let n of s) {
457
+ let u = n.toLowerCase(), c = t.substring(t.length - u.length).toLowerCase();
458
+ if (u && c === u) return true;
459
+ }
460
+ return false;
461
+ }, y = (t, e, r) => t.isFile() && B(e, r);
462
+ });
463
+ var p = a((h) => {
464
+ "use strict";
465
+ Object.defineProperty(h, "__esModule", { value: true });
466
+ });
467
+ var v = exports && exports.__createBinding || (Object.create ? (function(t, e, r, s) {
468
+ s === void 0 && (s = r);
469
+ var n = Object.getOwnPropertyDescriptor(e, r);
470
+ (!n || ("get" in n ? !e.__esModule : n.writable || n.configurable)) && (n = { enumerable: true, get: function() {
471
+ return e[r];
472
+ } }), Object.defineProperty(t, s, n);
473
+ }) : (function(t, e, r, s) {
474
+ s === void 0 && (s = r), t[s] = e[r];
475
+ }));
476
+ var G = exports && exports.__setModuleDefault || (Object.create ? (function(t, e) {
477
+ Object.defineProperty(t, "default", { enumerable: true, value: e });
478
+ }) : function(t, e) {
479
+ t.default = e;
480
+ });
481
+ var w = exports && exports.__importStar || /* @__PURE__ */ (function() {
482
+ var t = function(e) {
483
+ return t = Object.getOwnPropertyNames || function(r) {
484
+ var s = [];
485
+ for (var n in r) Object.prototype.hasOwnProperty.call(r, n) && (s[s.length] = n);
486
+ return s;
487
+ }, t(e);
488
+ };
489
+ return function(e) {
490
+ if (e && e.__esModule) return e;
491
+ var r = {};
492
+ if (e != null) for (var s = t(e), n = 0; n < s.length; n++) s[n] !== "default" && v(r, e, s[n]);
493
+ return G(r, e), r;
494
+ };
495
+ })();
496
+ var X = exports && exports.__exportStar || function(t, e) {
497
+ for (var r in t) r !== "default" && !Object.prototype.hasOwnProperty.call(e, r) && v(e, t, r);
498
+ };
499
+ Object.defineProperty(exports, "__esModule", { value: true });
500
+ exports.sync = exports.isexe = exports.posix = exports.win32 = void 0;
501
+ var E = w(_());
502
+ exports.posix = E;
503
+ var O = w(g());
504
+ exports.win32 = O;
505
+ X(p(), exports);
506
+ var H = process.env._ISEXE_TEST_PLATFORM_ || process.platform;
507
+ var b = H === "win32" ? O : E;
508
+ exports.isexe = b.isexe;
509
+ exports.sync = b.sync;
515
510
  }
516
511
  });
517
512
 
518
- // ../node_modules/.bun/which@2.0.2/node_modules/which/which.js
519
- var require_which = __commonJS({
520
- "../node_modules/.bun/which@2.0.2/node_modules/which/which.js"(exports, module) {
513
+ // ../node_modules/.bun/which@5.0.0/node_modules/which/lib/index.js
514
+ var require_lib = __commonJS({
515
+ "../node_modules/.bun/which@5.0.0/node_modules/which/lib/index.js"(exports, module) {
521
516
  "use strict";
522
- var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
523
- var path7 = __require("path");
524
- var COLON = isWindows ? ";" : ":";
525
- var isexe = require_isexe();
517
+ var { isexe, sync: isexeSync } = require_index_min();
518
+ var { join: join42, delimiter: delimiter3, sep: sep2, posix } = __require("path");
519
+ var isWindows = process.platform === "win32";
520
+ var rSlash = new RegExp(`[${posix.sep}${sep2 === posix.sep ? "" : sep2}]`.replace(/(\\)/g, "\\$1"));
521
+ var rRel = new RegExp(`^\\.${rSlash.source}`);
526
522
  var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
527
- var getPathInfo = (cmd, opt) => {
528
- const colon = opt.colon || COLON;
529
- const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [
523
+ var getPathInfo = (cmd, {
524
+ path: optPath = process.env.PATH,
525
+ pathExt: optPathExt = process.env.PATHEXT,
526
+ delimiter: optDelimiter = delimiter3
527
+ }) => {
528
+ const pathEnv = cmd.match(rSlash) ? [""] : [
530
529
  // windows always checks the cwd first
531
530
  ...isWindows ? [process.cwd()] : [],
532
- ...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */
533
- "").split(colon)
531
+ ...(optPath || /* istanbul ignore next: very unusual */
532
+ "").split(optDelimiter)
534
533
  ];
535
- const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
536
- const pathExt = isWindows ? pathExtExe.split(colon) : [""];
537
534
  if (isWindows) {
538
- if (cmd.indexOf(".") !== -1 && pathExt[0] !== "")
535
+ const pathExtExe = optPathExt || [".EXE", ".CMD", ".BAT", ".COM"].join(optDelimiter);
536
+ const pathExt = pathExtExe.split(optDelimiter).flatMap((item) => [item, item.toLowerCase()]);
537
+ if (cmd.includes(".") && pathExt[0] !== "") {
539
538
  pathExt.unshift("");
539
+ }
540
+ return { pathEnv, pathExt, pathExtExe };
540
541
  }
541
- return {
542
- pathEnv,
543
- pathExt,
544
- pathExtExe
545
- };
542
+ return { pathEnv, pathExt: [""] };
546
543
  };
547
- var which = (cmd, opt, cb) => {
548
- if (typeof opt === "function") {
549
- cb = opt;
550
- opt = {};
551
- }
552
- if (!opt)
553
- opt = {};
544
+ var getPathPart = (raw, cmd) => {
545
+ const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
546
+ const prefix = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "";
547
+ return prefix + join42(pathPart, cmd);
548
+ };
549
+ var which = async (cmd, opt = {}) => {
554
550
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
555
551
  const found = [];
556
- const step = (i) => new Promise((resolve8, reject) => {
557
- if (i === pathEnv.length)
558
- return opt.all && found.length ? resolve8(found) : reject(getNotFoundError(cmd));
559
- const ppRaw = pathEnv[i];
560
- const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
561
- const pCmd = path7.join(pathPart, cmd);
562
- const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
563
- resolve8(subStep(p, i, 0));
564
- });
565
- const subStep = (p, i, ii) => new Promise((resolve8, reject) => {
566
- if (ii === pathExt.length)
567
- return resolve8(step(i + 1));
568
- const ext = pathExt[ii];
569
- isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
570
- if (!er && is) {
571
- if (opt.all)
572
- found.push(p + ext);
573
- else
574
- return resolve8(p + ext);
552
+ for (const envPart of pathEnv) {
553
+ const p = getPathPart(envPart, cmd);
554
+ for (const ext of pathExt) {
555
+ const withExt = p + ext;
556
+ const is = await isexe(withExt, { pathExt: pathExtExe, ignoreErrors: true });
557
+ if (is) {
558
+ if (!opt.all) {
559
+ return withExt;
560
+ }
561
+ found.push(withExt);
575
562
  }
576
- return resolve8(subStep(p, i, ii + 1));
577
- });
578
- });
579
- return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
563
+ }
564
+ }
565
+ if (opt.all && found.length) {
566
+ return found;
567
+ }
568
+ if (opt.nothrow) {
569
+ return null;
570
+ }
571
+ throw getNotFoundError(cmd);
580
572
  };
581
- var whichSync = (cmd, opt) => {
582
- opt = opt || {};
573
+ var whichSync = (cmd, opt = {}) => {
583
574
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
584
575
  const found = [];
585
- for (let i = 0; i < pathEnv.length; i++) {
586
- const ppRaw = pathEnv[i];
587
- const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
588
- const pCmd = path7.join(pathPart, cmd);
589
- const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
590
- for (let j = 0; j < pathExt.length; j++) {
591
- const cur = p + pathExt[j];
592
- try {
593
- const is = isexe.sync(cur, { pathExt: pathExtExe });
594
- if (is) {
595
- if (opt.all)
596
- found.push(cur);
597
- else
598
- return cur;
576
+ for (const pathEnvPart of pathEnv) {
577
+ const p = getPathPart(pathEnvPart, cmd);
578
+ for (const ext of pathExt) {
579
+ const withExt = p + ext;
580
+ const is = isexeSync(withExt, { pathExt: pathExtExe, ignoreErrors: true });
581
+ if (is) {
582
+ if (!opt.all) {
583
+ return withExt;
599
584
  }
600
- } catch (ex) {
585
+ found.push(withExt);
601
586
  }
602
587
  }
603
588
  }
604
- if (opt.all && found.length)
589
+ if (opt.all && found.length) {
605
590
  return found;
606
- if (opt.nothrow)
591
+ }
592
+ if (opt.nothrow) {
607
593
  return null;
594
+ }
608
595
  throw getNotFoundError(cmd);
609
596
  };
610
597
  module.exports = which;
@@ -634,7 +621,7 @@ var require_resolveCommand = __commonJS({
634
621
  "../node_modules/.bun/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
635
622
  "use strict";
636
623
  var path7 = __require("path");
637
- var which = require_which();
624
+ var which = require_lib();
638
625
  var getPathKey = require_path_key();
639
626
  function resolveCommandAttempt(parsed, withoutPathExt) {
640
627
  const env = parsed.options.env || process.env;
@@ -13015,6 +13002,8 @@ function toClaudeCodeModel(model) {
13015
13002
  return CLAUDE_FABLE_5_1_BEDROCK_MODEL;
13016
13003
  case CLAUDE_FABLE_5_MODEL:
13017
13004
  return CLAUDE_FABLE_5_BEDROCK_MODEL;
13005
+ case CLAUDE_OPUS_5_5_MODEL:
13006
+ return CLAUDE_OPUS_5_5_BEDROCK_MODEL;
13018
13007
  case CLAUDE_OPUS_5_MODEL:
13019
13008
  return CLAUDE_OPUS_5_BEDROCK_MODEL;
13020
13009
  case CLAUDE_OPUS_4_8_MODEL:
@@ -3,12 +3,12 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  notifyPostToolUse
6
- } from "./chunk-2ISAUV3V.js";
7
- import "./chunk-UVFBGY57.js";
6
+ } from "./chunk-S2BRRGQW.js";
7
+ import "./chunk-CTMWAFR7.js";
8
8
  import {
9
9
  isRecord
10
10
  } from "./chunk-UZSNFLDQ.js";
11
- import "./chunk-ZZ7YYXV5.js";
11
+ import "./chunk-5V6IC6AS.js";
12
12
  import "./chunk-VEQXQN22.js";
13
13
 
14
14
  // src/post-tool-pr-hook.ts
@@ -11,7 +11,7 @@ import {
11
11
  relaySubagentResponseSchema,
12
12
  spawnRelaySubagentRequestSchema,
13
13
  waitRelaySubagentRequestSchema
14
- } from "./chunk-ZZ7YYXV5.js";
14
+ } from "./chunk-5V6IC6AS.js";
15
15
  import "./chunk-VEQXQN22.js";
16
16
 
17
17
  // src/relay-mcp.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.893",
3
+ "version": "0.1.894",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",
@@ -40,7 +40,8 @@
40
40
  "license": "MIT",
41
41
  "dependencies": {
42
42
  "@agentclientprotocol/sdk": "1.3.0",
43
- "@anthropic-ai/claude-agent-sdk": "0.3.257",
43
+ "@anthropic-ai/claude-agent-sdk": "0.3.280",
44
+ "@anthropic-ai/sdk": "0.128.0",
44
45
  "@connectrpc/connect-node": "1.7.0",
45
46
  "@cursor/sdk": "1.0.19",
46
47
  "@deepseek-ai/dsh": "0.1.0-rc.7",