replicas-engine 0.1.1681 → 0.1.1683

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.
@@ -8,12 +8,12 @@ import {
8
8
  listCodexModelsForDetails,
9
9
  restartCodexAspHost,
10
10
  restartCodexAspHostIfRunning
11
- } from "./chunk-KZDCXLEV.js";
12
- import "./chunk-HWVPGL5R.js";
13
- import "./chunk-Y3I4WEUZ.js";
14
- import "./chunk-FG5RSCFD.js";
11
+ } from "./chunk-ZAMTCUNY.js";
12
+ import "./chunk-ENQSO2DG.js";
13
+ import "./chunk-7M5LFDRW.js";
14
+ import "./chunk-ANDIKQD7.js";
15
15
  import "./chunk-UZSNFLDQ.js";
16
- import "./chunk-QUKTSVUU.js";
16
+ import "./chunk-6SRAZJRT.js";
17
17
  import "./chunk-VEQXQN22.js";
18
18
  export {
19
19
  CODEX_ULTRAFAST_SERVICE_TIER,
@@ -14867,7 +14867,7 @@ In agent mode the CLI hides commands that don't make sense for in-workspace agen
14867
14867
  | --- | --- |
14868
14868
  | \`replicas whoami\` | Print the workspace + org identity |
14869
14869
  | \`replicas create <name> -e <env> -a <agent> -m "<prompt>"\` | Start a new workspace with its own agent (see *Starting a new workspace*) |
14870
- | \`replicas get <id>\` / \`replicas list\` | Check a workspace's status, or find workspaces. \`replicas list --kind mothership\` lists only Managers |
14870
+ | \`replicas get <id>\` / \`replicas list\` | Check a workspace's status, or find workspaces. \`replicas list --kind manager\` lists only Managers |
14871
14871
  | \`replicas identity token [--audience <aud>]\` | Print the current short-lived workspace identity token for an audience |
14872
14872
  | \`replicas identity token --format gcp --audience <aud>\` | Supply a current token to Google's executable credential source |
14873
14873
  | \`replicas identity aws-credentials --role-arn <arn> [--region <region>] [--source-identity]\` | Exchange the current token for AWS credential_process JSON (requires AWS CLI); \`--source-identity\` records the workspace ID in CloudTrail and needs \`sts:SetSourceIdentity\` in the role trust policy |
@@ -16503,17 +16503,18 @@ var transitionSchema = z29.discriminatedUnion("field", [
16503
16503
  z29.object({ field: z29.literal("status"), from: issueStatusSchema, to: issueStatusSchema }),
16504
16504
  z29.object({ field: z29.literal("priority"), from: issuePrioritySchema, to: issuePrioritySchema })
16505
16505
  ]);
16506
- var issueEventChangeSchema = z29.object({ actor: z29.string(), agent: z29.boolean(), text: z29.string(), transition: transitionSchema.optional() });
16506
+ var issueEventChangeSchema = z29.object({ actor: z29.string(), agent: z29.boolean(), text: z29.string(), quote: z29.string().optional(), transition: transitionSchema.optional() });
16507
16507
  var CHANGE_LINE = /^(.+?)( \(agent\))? (created it|renamed it|edited |changed the |made it|moved it|removed |assigned |unassigned |marked |linked |unlinked |pull request |commented|deleted a comment|archived it|restored it)(.*)$/;
16508
16508
  var TRANSITION = /^changed the (status|priority): (\w+) → (\w+)$/;
16509
- function parseChange(line, excerpt) {
16509
+ function parseChange(line, quote) {
16510
16510
  const match = line.match(CHANGE_LINE);
16511
16511
  const rest = (match ? match[3] + match[4] : line).replaceAll(" (agent)", "").replace(/(?:\. Now)?:$/, "");
16512
16512
  const [, field, from, to] = rest.match(TRANSITION) ?? [];
16513
16513
  const transition = transitionSchema.safeParse({ field, from, to }).data;
16514
16514
  const labels = !transition ? [] : transition.field === "status" ? [ISSUE_STATUS_LABELS[transition.from], ISSUE_STATUS_LABELS[transition.to]] : [ISSUE_PRIORITY_LABELS[transition.from], ISSUE_PRIORITY_LABELS[transition.to]];
16515
16515
  const text4 = transition ? `changed the ${transition.field}: ${labels.join(" \u2192 ")}` : rest;
16516
- return { actor: match?.[1] ?? "", agent: Boolean(match?.[2]), text: excerpt ? `${text4}: ${excerpt}` : text4, ...transition ? { transition } : {} };
16516
+ const excerpt = quote.split("\n").map((quoted) => quoted.trim()).find(Boolean);
16517
+ return { actor: match?.[1] ?? "", agent: Boolean(match?.[2]), text: excerpt ? `${text4}: ${excerpt}` : text4, ...quote ? { quote } : {}, ...transition ? { transition } : {} };
16517
16518
  }
16518
16519
  var issueChangeSentence = (change2) => [change2.actor, change2.text].filter(Boolean).join(" ");
16519
16520
  function extractIssueEvents(text4) {
@@ -16524,7 +16525,7 @@ function extractIssueEvents(text4) {
16524
16525
  const changes = detail.split("\n\n").flatMap((paragraph) => {
16525
16526
  const [line, ...quoted] = paragraph.split("\n");
16526
16527
  if (!line.trim() || line.startsWith(">")) return [];
16527
- return [parseChange(line, line.endsWith(". Now:") ? void 0 : quoted.map((quote) => quote.replace(/^>\s?/, "").trim()).find(Boolean))];
16528
+ return [parseChange(line, quoted.map((quote) => quote.replace(/^>\s?/, "")).join("\n").trim())];
16528
16529
  });
16529
16530
  return [{
16530
16531
  id: `${attributes.issue}:${attributes.sync_id ?? ""}`,
@@ -21598,7 +21599,7 @@ async function withRetry(label, fn, options) {
21598
21599
  }
21599
21600
 
21600
21601
  // ../shared/src/tensorlake.ts
21601
- var TENSORLAKE_IMAGE_NAME = "replicas-sandbox-2026-11-20-v28";
21602
+ var TENSORLAKE_IMAGE_NAME = "replicas-sandbox-2026-11-20-v30";
21602
21603
  var TENSORLAKE_DISK_MB = 100 * 1024;
21603
21604
 
21604
21605
  // ../shared/src/egress.ts
@@ -22872,9 +22873,8 @@ var scoutLinearStartRequestSchema = z38.object({
22872
22873
  var scoutRouteLinearTicketRequestSchema = z38.object({
22873
22874
  agent_session_id: z38.string().trim().min(1).describe("The ticket's `agent_session_id` from the envelope."),
22874
22875
  environment_id: z38.string().trim().min(1).optional().describe("Start the ticket in this environment."),
22875
- manager_id: z38.string().trim().min(1).optional().describe("Hand the ticket to this Manager instead."),
22876
- mothership_id: z38.string().trim().min(1).optional().describe("Old name of `manager_id`.")
22877
- }).refine((args) => !(args.environment_id && (args.manager_id || args.mothership_id)), "Pass environment_id or manager_id, not both.");
22876
+ manager_id: z38.string().trim().min(1).optional().describe("Hand the ticket to this Manager instead.")
22877
+ }).refine((args) => !(args.environment_id && args.manager_id), "Pass environment_id or manager_id, not both.");
22878
22878
  var slackChannelIdSchema = z38.string().describe("Slack channel id from the envelope's `channel_id`.");
22879
22879
  var slackThreadTsSchema = z38.string().describe("Slack thread timestamp from the envelope's `thread_ts`.");
22880
22880
  var scoutSlackMessageReferenceSchema = z38.object({
@@ -5,7 +5,7 @@ import {
5
5
  ENGINE_ENV,
6
6
  monolithRequest,
7
7
  runGitCommand
8
- } from "./chunk-HWVPGL5R.js";
8
+ } from "./chunk-ENQSO2DG.js";
9
9
  import {
10
10
  COMMAND_PROTECTION_MAX_MESSAGE_FILE_BYTES,
11
11
  COMMAND_PROTECTION_REPO_GIT_ARGS,
@@ -18,7 +18,7 @@ import {
18
18
  parseCommandProtectionRequest,
19
19
  toCommandProtectionRepoState,
20
20
  withRetry
21
- } from "./chunk-QUKTSVUU.js";
21
+ } from "./chunk-6SRAZJRT.js";
22
22
 
23
23
  // src/services/command-protection-service.ts
24
24
  import { readFile, stat } from "fs/promises";
@@ -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-FG5RSCFD.js";
6
+ } from "./chunk-ANDIKQD7.js";
7
7
  import {
8
8
  isVersionBelow
9
- } from "./chunk-QUKTSVUU.js";
9
+ } from "./chunk-6SRAZJRT.js";
10
10
 
11
11
  // src/utils/codex-agent-env.ts
12
12
  function buildCodexAgentEnv(source = process.env) {
@@ -242,7 +242,7 @@ function getCodexModelProvider(method) {
242
242
  if (method === "foundry") return "azure";
243
243
  return method === "ollama" || method === "openai-compatible" ? "replicas_openai_compatible" : "openai";
244
244
  }
245
- var ENGINE_PACKAGE_VERSION = "0.1.1680";
245
+ var ENGINE_PACKAGE_VERSION = "0.1.1682";
246
246
  var INITIALIZE_METHOD = "initialize";
247
247
  var INITIALIZED_NOTIFICATION = "initialized";
248
248
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -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-QUKTSVUU.js";
6
+ } from "./chunk-6SRAZJRT.js";
7
7
 
8
8
  // src/utils/exec.ts
9
9
  import { exec, execFile } from "child_process";
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  SUBPROCESS_MAX_BUFFER,
6
6
  execFileAsync
7
- } from "./chunk-FG5RSCFD.js";
7
+ } from "./chunk-ANDIKQD7.js";
8
8
  import {
9
9
  isRecord as isRecord2
10
10
  } from "./chunk-UZSNFLDQ.js";
@@ -21,7 +21,7 @@ import {
21
21
  provisionedDeviceSchema,
22
22
  readReplicasRuntimeEnv,
23
23
  serializePosixEnvFile
24
- } from "./chunk-QUKTSVUU.js";
24
+ } from "./chunk-6SRAZJRT.js";
25
25
 
26
26
  // src/runtime-env-loader.ts
27
27
  import { readFileSync } from "fs";
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  AspClient
6
- } from "./chunk-Y3I4WEUZ.js";
6
+ } from "./chunk-7M5LFDRW.js";
7
7
  import {
8
8
  ASTER_BASE_URL,
9
9
  ASTER_PROVIDER,
@@ -15,7 +15,7 @@ import {
15
15
  isRecord,
16
16
  readOllamaAuthEnv,
17
17
  readOpenAICompatibleAuthEnv
18
- } from "./chunk-QUKTSVUU.js";
18
+ } from "./chunk-6SRAZJRT.js";
19
19
 
20
20
  // src/managers/codex-asp/notification-dispatch.ts
21
21
  var TURN_STARTED_METHOD = "turn/started";
@@ -5,7 +5,7 @@ import {
5
5
  extractCommandProtectionCommandText,
6
6
  isRecord,
7
7
  parseCodeHostPrUrl
8
- } from "./chunk-QUKTSVUU.js";
8
+ } from "./chunk-6SRAZJRT.js";
9
9
 
10
10
  // src/services/published-pull-request-urls.ts
11
11
  function publishedPullRequestUrls(result) {
@@ -12,15 +12,15 @@ import {
12
12
  resolveDiffBase,
13
13
  runGitCommand,
14
14
  setAgentCredentialSnapshot
15
- } from "./chunk-HWVPGL5R.js";
15
+ } from "./chunk-ENQSO2DG.js";
16
16
  import {
17
17
  AppServerProcess,
18
18
  buildCodexAgentEnv
19
- } from "./chunk-Y3I4WEUZ.js";
19
+ } from "./chunk-7M5LFDRW.js";
20
20
  import {
21
21
  SUBPROCESS_MAX_BUFFER,
22
22
  execFileAsync
23
- } from "./chunk-FG5RSCFD.js";
23
+ } from "./chunk-ANDIKQD7.js";
24
24
  import {
25
25
  isRecord
26
26
  } from "./chunk-UZSNFLDQ.js";
@@ -61,7 +61,7 @@ import {
61
61
  shrunkImageSize,
62
62
  splitManagerInstructions,
63
63
  withTimeout
64
- } from "./chunk-QUKTSVUU.js";
64
+ } from "./chunk-6SRAZJRT.js";
65
65
 
66
66
  // src/managers/codex-token-manager.ts
67
67
  import { promises as fs } from "fs";
@@ -461,7 +461,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
461
461
  await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
462
462
  await this.applyCredentialsResponse(data);
463
463
  setAgentCredentialSnapshot("codex", data);
464
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-TXHYBEBK.js");
464
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-AAA6OPF4.js");
465
465
  await restartCodexAspHostIfRunning2();
466
466
  });
467
467
  await this.start(true);
@@ -483,7 +483,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
483
483
  const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
484
484
  await this.applyCredentialsResponse(data);
485
485
  if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
486
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-TXHYBEBK.js");
486
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-AAA6OPF4.js");
487
487
  await restartCodexAspHostIfRunning2();
488
488
  }
489
489
  setAgentCredentialSnapshot("codex", data);
@@ -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-F34HC3RY.js";
7
- import "./chunk-HWVPGL5R.js";
8
- import "./chunk-FG5RSCFD.js";
6
+ } from "./chunk-7IISWAQG.js";
7
+ import "./chunk-ENQSO2DG.js";
8
+ import "./chunk-ANDIKQD7.js";
9
9
  import {
10
10
  isRecord
11
11
  } from "./chunk-UZSNFLDQ.js";
12
- import "./chunk-QUKTSVUU.js";
12
+ import "./chunk-6SRAZJRT.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
 
15
15
  // src/command-protection-hook.ts
@@ -14,12 +14,12 @@ import {
14
14
  recoverCompletedTurn,
15
15
  spawnMuseMsp,
16
16
  startMuseSession
17
- } from "./chunk-GI7LEWQD.js";
17
+ } from "./chunk-T4T3HA2M.js";
18
18
  import {
19
19
  AppServerProcess,
20
20
  buildCodexAgentEnv
21
- } from "./chunk-Y3I4WEUZ.js";
22
- import "./chunk-FG5RSCFD.js";
21
+ } from "./chunk-7M5LFDRW.js";
22
+ import "./chunk-ANDIKQD7.js";
23
23
  import {
24
24
  AGENT,
25
25
  OPENCODE_GO_PROVIDER,
@@ -29,7 +29,7 @@ import {
29
29
  headlessAgentUsagePath,
30
30
  isRecord,
31
31
  withTimeout
32
- } from "./chunk-QUKTSVUU.js";
32
+ } from "./chunk-6SRAZJRT.js";
33
33
  import "./chunk-VEQXQN22.js";
34
34
 
35
35
  // 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-F34HC3RY.js";
94
+ } from "./chunk-7IISWAQG.js";
95
95
  import {
96
96
  ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
97
97
  AGENT_MESSAGE_DELTA_METHOD,
@@ -129,10 +129,10 @@ import {
129
129
  spawnMuseMsp,
130
130
  startMuseSession,
131
131
  uuidV7
132
- } from "./chunk-GI7LEWQD.js";
132
+ } from "./chunk-T4T3HA2M.js";
133
133
  import {
134
134
  publishedPullRequestUrls
135
- } from "./chunk-HOV4A2OV.js";
135
+ } from "./chunk-XUJE42ZB.js";
136
136
  import {
137
137
  ACCOUNT_RATE_LIMITS_READ_METHOD,
138
138
  AsyncLock,
@@ -212,7 +212,7 @@ import {
212
212
  transcriptSecrets,
213
213
  upsertCredentialFileLines,
214
214
  writeSecureCredentialFile
215
- } from "./chunk-KZDCXLEV.js";
215
+ } from "./chunk-ZAMTCUNY.js";
216
216
  import {
217
217
  ENGINE_ENV,
218
218
  UNQUOTED_PATHS_CONFIG,
@@ -223,17 +223,17 @@ import {
223
223
  resolveDiffBase,
224
224
  setAgentCredentialSnapshot,
225
225
  setLinearSessionId
226
- } from "./chunk-HWVPGL5R.js";
226
+ } from "./chunk-ENQSO2DG.js";
227
227
  import {
228
228
  AspRequestTimeoutError,
229
229
  buildCodexAgentEnv,
230
230
  getCodexModelProvider
231
- } from "./chunk-Y3I4WEUZ.js";
231
+ } from "./chunk-7M5LFDRW.js";
232
232
  import {
233
233
  SUBPROCESS_MAX_BUFFER,
234
234
  execAsync,
235
235
  execFileAsync
236
- } from "./chunk-FG5RSCFD.js";
236
+ } from "./chunk-ANDIKQD7.js";
237
237
  import {
238
238
  isRecord as isRecord2
239
239
  } from "./chunk-UZSNFLDQ.js";
@@ -533,7 +533,7 @@ import {
533
533
  workspaceTokenRequestSchema,
534
534
  workspaceTokenResponseSchema,
535
535
  wrapInTag
536
- } from "./chunk-QUKTSVUU.js";
536
+ } from "./chunk-6SRAZJRT.js";
537
537
  import {
538
538
  __commonJS,
539
539
  __export,
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
3
3
  const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  publishedPullRequestUrls
6
- } from "./chunk-HOV4A2OV.js";
6
+ } from "./chunk-XUJE42ZB.js";
7
7
  import {
8
8
  isRecord
9
9
  } from "./chunk-UZSNFLDQ.js";
10
10
  import {
11
11
  shouldRefreshPullRequests
12
- } from "./chunk-QUKTSVUU.js";
12
+ } from "./chunk-6SRAZJRT.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
 
15
15
  // src/services/post-tool-pr-notifier.ts
@@ -11,7 +11,7 @@ import {
11
11
  spawnSubagentRequestSchema,
12
12
  subagentResponseSchema,
13
13
  waitSubagentRequestSchema
14
- } from "./chunk-QUKTSVUU.js";
14
+ } from "./chunk-6SRAZJRT.js";
15
15
  import "./chunk-VEQXQN22.js";
16
16
 
17
17
  // src/subagent-mcp.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.1681",
3
+ "version": "0.1.1683",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",