replicas-engine 0.1.1650 → 0.1.1651

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-O5Q5EQTP.js";
12
- import "./chunk-5RGBUKET.js";
13
- import "./chunk-SRK7RAVF.js";
14
- import "./chunk-W5JUG3Q5.js";
11
+ } from "./chunk-TA6MQAUE.js";
12
+ import "./chunk-C37YVUAY.js";
13
+ import "./chunk-7TS6TOIE.js";
14
+ import "./chunk-JISTBOJM.js";
15
15
  import "./chunk-UZSNFLDQ.js";
16
- import "./chunk-DPR2SQZS.js";
16
+ import "./chunk-SMLKYVBC.js";
17
17
  import "./chunk-VEQXQN22.js";
18
18
  export {
19
19
  CODEX_ULTRAFAST_SERVICE_TIER,
@@ -5,7 +5,7 @@ import {
5
5
  ENGINE_ENV,
6
6
  monolithRequest,
7
7
  runGitCommand
8
- } from "./chunk-5RGBUKET.js";
8
+ } from "./chunk-C37YVUAY.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-DPR2SQZS.js";
21
+ } from "./chunk-SMLKYVBC.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-W5JUG3Q5.js";
6
+ } from "./chunk-JISTBOJM.js";
7
7
  import {
8
8
  isVersionBelow
9
- } from "./chunk-DPR2SQZS.js";
9
+ } from "./chunk-SMLKYVBC.js";
10
10
 
11
11
  // src/utils/codex-agent-env.ts
12
12
  function buildCodexAgentEnv(source = process.env) {
@@ -240,7 +240,7 @@ function getCodexModelProvider(method) {
240
240
  if (method === "foundry") return "azure";
241
241
  return method === "ollama" || method === "openai-compatible" ? "replicas_openai_compatible" : "openai";
242
242
  }
243
- var ENGINE_PACKAGE_VERSION = "0.1.1650";
243
+ var ENGINE_PACKAGE_VERSION = "0.1.1651";
244
244
  var INITIALIZE_METHOD = "initialize";
245
245
  var INITIALIZED_NOTIFICATION = "initialized";
246
246
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  SUBPROCESS_MAX_BUFFER,
6
6
  execFileAsync
7
- } from "./chunk-W5JUG3Q5.js";
7
+ } from "./chunk-JISTBOJM.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-DPR2SQZS.js";
24
+ } from "./chunk-SMLKYVBC.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-SRK7RAVF.js";
6
+ } from "./chunk-7TS6TOIE.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-DPR2SQZS.js";
18
+ } from "./chunk-SMLKYVBC.js";
19
19
 
20
20
  // src/managers/codex-asp/notification-dispatch.ts
21
21
  var TURN_STARTED_METHOD = "turn/started";
@@ -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-DPR2SQZS.js";
6
+ } from "./chunk-SMLKYVBC.js";
7
7
 
8
8
  // src/utils/exec.ts
9
9
  import { exec, execFile } from "child_process";
@@ -5,7 +5,7 @@ import {
5
5
  extractCommandProtectionCommandText,
6
6
  isRecord,
7
7
  parseCodeHostPrUrl
8
- } from "./chunk-DPR2SQZS.js";
8
+ } from "./chunk-SMLKYVBC.js";
9
9
 
10
10
  // src/services/published-pull-request-urls.ts
11
11
  function publishedPullRequestUrls(result) {
@@ -12337,6 +12337,8 @@ var WORKSPACE_PAUSED_COPY = {
12337
12337
  line: "This workspace was paused because your organization reached its usage limit for this period. An admin can raise or remove it in billing settings."
12338
12338
  }
12339
12339
  };
12340
+ var MANAGER_KINDS = ["manager", "mothership"];
12341
+ var CREATABLE_WORKSPACE_KINDS = ["standard", ...MANAGER_KINDS];
12340
12342
  var WORKSPACE_SIDEBAR_VIEWS = ["owned", "shared", "team", "automated"];
12341
12343
  var WORKSPACE_STATUS_FILTERS = WORKSPACE_STATUSES.map((status) => status === "error" ? "failed" : status);
12342
12344
  var DEFAULT_STATUS_FILTERS = [...WORKSPACE_STATUS_FILTERS];
@@ -15227,8 +15229,10 @@ var DEFAULT_USER_PREFERENCES = {
15227
15229
  appshot_destination: "automatic",
15228
15230
  appshot_sound: true,
15229
15231
  keyboard_shortcuts: {},
15230
- mothership_tour_seen: false,
15232
+ manager_tour_seen: false,
15231
15233
  slack_settings_moved_notice: false,
15234
+ manager_board_opened: false,
15235
+ mothership_tour_seen: false,
15232
15236
  mothership_board_opened: false,
15233
15237
  follow_up_mode: "steer",
15234
15238
  send_key: "enter",
@@ -21186,7 +21190,7 @@ async function withRetry(label, fn, options) {
21186
21190
  }
21187
21191
 
21188
21192
  // ../shared/src/tensorlake.ts
21189
- var TENSORLAKE_IMAGE_NAME = "replicas-sandbox-2026-11-19-v11";
21193
+ var TENSORLAKE_IMAGE_NAME = "replicas-sandbox-2026-11-19-v12";
21190
21194
  var TENSORLAKE_DISK_MB = 100 * 1024;
21191
21195
 
21192
21196
  // ../shared/src/egress.ts
@@ -22670,12 +22674,12 @@ var workspaceEventSchemaByType = z41.discriminatedUnion("type", [
22670
22674
  ts: z41.string()
22671
22675
  }),
22672
22676
  z41.object({
22673
- type: z41.literal("mothership.subagent.changed"),
22677
+ type: z41.enum(["manager.subagent.changed", "mothership.subagent.changed"]),
22674
22678
  workspaceId: z41.string(),
22675
22679
  subagent: z41.object({ id: z41.string(), name: z41.string(), prUrl: z41.string().nullable() }),
22676
22680
  ts: z41.string()
22677
22681
  }),
22678
- z41.object({ type: z41.literal("mothership.board.changed"), workspaceId: z41.string(), ts: z41.string() }),
22682
+ z41.object({ type: z41.enum(["manager.board.changed", "mothership.board.changed"]), workspaceId: z41.string(), ts: z41.string() }),
22679
22683
  z41.object({ type: z41.literal("needs-you.changed"), workspaceId: z41.string().nullable(), userId: z41.string().optional(), ts: z41.string() }),
22680
22684
  z41.object({
22681
22685
  type: z41.literal("workspace.shared"),
@@ -23247,7 +23251,7 @@ var WORKSPACE_STAGE_LABELS = {
23247
23251
  };
23248
23252
  var QUIET_SETTLED_MS = 3 * 24 * 60 * 6e4;
23249
23253
  var WORKSPACE_LIST_SECTION_LABELS = {
23250
- motherships: "Managers",
23254
+ managers: "Managers",
23251
23255
  needs: "Needs you",
23252
23256
  pinned: "Pinned",
23253
23257
  ...WORKSPACE_STAGE_LABELS
@@ -12,15 +12,15 @@ import {
12
12
  resolveDiffBase,
13
13
  runGitCommand,
14
14
  setAgentCredentialSnapshot
15
- } from "./chunk-5RGBUKET.js";
15
+ } from "./chunk-C37YVUAY.js";
16
16
  import {
17
17
  AppServerProcess,
18
18
  buildCodexAgentEnv
19
- } from "./chunk-SRK7RAVF.js";
19
+ } from "./chunk-7TS6TOIE.js";
20
20
  import {
21
21
  SUBPROCESS_MAX_BUFFER,
22
22
  execFileAsync
23
- } from "./chunk-W5JUG3Q5.js";
23
+ } from "./chunk-JISTBOJM.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-DPR2SQZS.js";
64
+ } from "./chunk-SMLKYVBC.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-DAY6WZ5P.js");
464
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-K7CHS6JP.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-DAY6WZ5P.js");
486
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-K7CHS6JP.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-USSFKW2T.js";
7
- import "./chunk-5RGBUKET.js";
8
- import "./chunk-W5JUG3Q5.js";
6
+ } from "./chunk-57C3K55N.js";
7
+ import "./chunk-C37YVUAY.js";
8
+ import "./chunk-JISTBOJM.js";
9
9
  import {
10
10
  isRecord
11
11
  } from "./chunk-UZSNFLDQ.js";
12
- import "./chunk-DPR2SQZS.js";
12
+ import "./chunk-SMLKYVBC.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-RHGD3SUK.js";
17
+ } from "./chunk-CEMNJC34.js";
18
18
  import {
19
19
  AppServerProcess,
20
20
  buildCodexAgentEnv
21
- } from "./chunk-SRK7RAVF.js";
22
- import "./chunk-W5JUG3Q5.js";
21
+ } from "./chunk-7TS6TOIE.js";
22
+ import "./chunk-JISTBOJM.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-DPR2SQZS.js";
32
+ } from "./chunk-SMLKYVBC.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-USSFKW2T.js";
94
+ } from "./chunk-57C3K55N.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-RHGD3SUK.js";
132
+ } from "./chunk-CEMNJC34.js";
133
133
  import {
134
134
  publishedPullRequestUrls
135
- } from "./chunk-RB33E3XP.js";
135
+ } from "./chunk-JNJA4BYP.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-O5Q5EQTP.js";
215
+ } from "./chunk-TA6MQAUE.js";
216
216
  import {
217
217
  ENGINE_ENV,
218
218
  UNQUOTED_PATHS_CONFIG,
@@ -223,16 +223,16 @@ import {
223
223
  resolveDiffBase,
224
224
  setAgentCredentialSnapshot,
225
225
  setLinearSessionId
226
- } from "./chunk-5RGBUKET.js";
226
+ } from "./chunk-C37YVUAY.js";
227
227
  import {
228
228
  buildCodexAgentEnv,
229
229
  getCodexModelProvider
230
- } from "./chunk-SRK7RAVF.js";
230
+ } from "./chunk-7TS6TOIE.js";
231
231
  import {
232
232
  SUBPROCESS_MAX_BUFFER,
233
233
  execAsync,
234
234
  execFileAsync
235
- } from "./chunk-W5JUG3Q5.js";
235
+ } from "./chunk-JISTBOJM.js";
236
236
  import {
237
237
  isRecord as isRecord2
238
238
  } from "./chunk-UZSNFLDQ.js";
@@ -528,7 +528,7 @@ import {
528
528
  workspaceTokenRequestSchema,
529
529
  workspaceTokenResponseSchema,
530
530
  wrapInTag
531
- } from "./chunk-DPR2SQZS.js";
531
+ } from "./chunk-SMLKYVBC.js";
532
532
  import {
533
533
  __commonJS,
534
534
  __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-RB33E3XP.js";
6
+ } from "./chunk-JNJA4BYP.js";
7
7
  import {
8
8
  isRecord
9
9
  } from "./chunk-UZSNFLDQ.js";
10
10
  import {
11
11
  shouldRefreshPullRequests
12
- } from "./chunk-DPR2SQZS.js";
12
+ } from "./chunk-SMLKYVBC.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-DPR2SQZS.js";
14
+ } from "./chunk-SMLKYVBC.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.1650",
3
+ "version": "0.1.1651",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",