replicas-engine 0.1.743 → 0.1.745

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,11 +3,12 @@ import {
3
3
  getCodexAspHost,
4
4
  restartCodexAspHost,
5
5
  restartCodexAspHostIfRunning
6
- } from "./chunk-TAJRILMY.js";
7
- import "./chunk-JROJLNTZ.js";
8
- import "./chunk-LGSH2M6H.js";
6
+ } from "./chunk-IRO4TDFM.js";
7
+ import "./chunk-ITEQAMIZ.js";
8
+ import "./chunk-ZDBGX4MA.js";
9
9
  import "./chunk-2RB7SIP3.js";
10
- import "./chunk-KNYGSWUU.js";
10
+ import "./chunk-HMIVYASC.js";
11
+ import "./chunk-5KSXSK7Y.js";
11
12
  export {
12
13
  getCodexAspHost,
13
14
  restartCodexAspHost,
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  monolithRequest
4
- } from "./chunk-JROJLNTZ.js";
4
+ } from "./chunk-ITEQAMIZ.js";
5
5
  import {
6
6
  extractCommandProtectionCommandText,
7
7
  findGitCommitSignals,
8
8
  findPrMergeSignals
9
- } from "./chunk-KNYGSWUU.js";
9
+ } from "./chunk-HMIVYASC.js";
10
10
 
11
11
  // src/services/command-protection-service.ts
12
12
  var DEFAULT_COMMAND_PROTECTION_BLOCK_MESSAGE = "Blocked by Replicas command protection.";
@@ -0,0 +1,47 @@
1
+ #!/usr/bin/env node
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
+ }) : x)(function(x) {
11
+ if (typeof require !== "undefined") return require.apply(this, arguments);
12
+ throw Error('Dynamic require of "' + x + '" is not supported');
13
+ });
14
+ var __commonJS = (cb, mod) => function __require2() {
15
+ try {
16
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
17
+ } catch (e) {
18
+ throw mod = 0, e;
19
+ }
20
+ };
21
+ var __export = (target, all) => {
22
+ for (var name in all)
23
+ __defProp(target, name, { get: all[name], enumerable: true });
24
+ };
25
+ var __copyProps = (to, from, except, desc) => {
26
+ if (from && typeof from === "object" || typeof from === "function") {
27
+ for (let key of __getOwnPropNames(from))
28
+ if (!__hasOwnProp.call(to, key) && key !== except)
29
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
30
+ }
31
+ return to;
32
+ };
33
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
34
+ // If the importer is in node compatibility mode or this is not an ESM
35
+ // file that has been converted to a CommonJS file using a Babel-
36
+ // compatible transform (i.e. "__esModule" has not been set), then set
37
+ // "default" to the CommonJS "module.exports" for node compatibility.
38
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
39
+ mod
40
+ ));
41
+
42
+ export {
43
+ __require,
44
+ __commonJS,
45
+ __export,
46
+ __toESM
47
+ };
@@ -5695,6 +5695,8 @@ function lastUserBlockText(blocks) {
5695
5695
  var EXT_TO_LANGUAGE = {
5696
5696
  ".ts": "typescript",
5697
5697
  ".tsx": "tsx",
5698
+ ".mts": "typescript",
5699
+ ".cts": "typescript",
5698
5700
  ".js": "javascript",
5699
5701
  ".jsx": "jsx",
5700
5702
  ".mjs": "javascript",
@@ -3,18 +3,18 @@ import {
3
3
  ENGINE_ENV,
4
4
  monolithRequest,
5
5
  setAgentCredentialSnapshot
6
- } from "./chunk-JROJLNTZ.js";
6
+ } from "./chunk-ITEQAMIZ.js";
7
7
  import {
8
8
  AppServerProcess,
9
9
  buildCodexAgentEnv
10
- } from "./chunk-LGSH2M6H.js";
10
+ } from "./chunk-ZDBGX4MA.js";
11
11
  import {
12
12
  CODEX_AUTH_ENV_KEYS,
13
13
  CODEX_AUTH_ENV_KEYS_BY_METHOD,
14
14
  codexAuthEnvFromResponse,
15
15
  createErrorResult,
16
16
  createSuccessResult
17
- } from "./chunk-KNYGSWUU.js";
17
+ } from "./chunk-HMIVYASC.js";
18
18
 
19
19
  // src/managers/codex-token-manager.ts
20
20
  import { promises as fs } from "fs";
@@ -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-47CGICOD.js");
233
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-H2VMVKW2.js");
234
234
  await restartCodexAspHostIfRunning2();
235
235
  }
236
236
  if (data.scope) {
@@ -12,7 +12,7 @@ import {
12
12
  isValidAgentProvider,
13
13
  parsePosixEnvFile,
14
14
  readReplicasRuntimeEnv
15
- } from "./chunk-KNYGSWUU.js";
15
+ } from "./chunk-HMIVYASC.js";
16
16
 
17
17
  // src/engine-env.ts
18
18
  import { readFileSync as readFileSync2 } from "fs";