replicas-engine 0.1.1046 → 0.1.1048

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
  listRunningCodexModels,
9
9
  restartCodexAspHost,
10
10
  restartCodexAspHostIfRunning
11
- } from "./chunk-F5GOMRQW.js";
12
- import "./chunk-UUPJGKO3.js";
13
- import "./chunk-YXNWRCAZ.js";
14
- import "./chunk-QMTXTCE4.js";
11
+ } from "./chunk-JLVQJTG3.js";
12
+ import "./chunk-5G2CXEF7.js";
13
+ import "./chunk-NGSUYYUE.js";
14
+ import "./chunk-A4QDUNSE.js";
15
15
  import "./chunk-UZSNFLDQ.js";
16
- import "./chunk-VD34QRH4.js";
16
+ import "./chunk-Q7KB4FOG.js";
17
17
  import "./chunk-VEQXQN22.js";
18
18
  export {
19
19
  CODEX_ULTRAFAST_SERVICE_TIER,
@@ -5,7 +5,7 @@ import {
5
5
  extractCommandProtectionCommandText,
6
6
  isRecord,
7
7
  parseCodeHostPrUrl
8
- } from "./chunk-VD34QRH4.js";
8
+ } from "./chunk-Q7KB4FOG.js";
9
9
 
10
10
  // src/services/published-pull-request-urls.ts
11
11
  function publishedPullRequestUrls(result) {
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
4
4
  import {
5
5
  SUBPROCESS_MAX_BUFFER,
6
6
  execFileAsync
7
- } from "./chunk-QMTXTCE4.js";
7
+ } from "./chunk-A4QDUNSE.js";
8
8
  import {
9
9
  isRecord as isRecord2
10
10
  } from "./chunk-UZSNFLDQ.js";
@@ -18,7 +18,7 @@ import {
18
18
  isValidAgentProvider,
19
19
  parsePosixEnvFile,
20
20
  readReplicasRuntimeEnv
21
- } from "./chunk-VD34QRH4.js";
21
+ } from "./chunk-Q7KB4FOG.js";
22
22
 
23
23
  // src/runtime-env-loader.ts
24
24
  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
  HOOK_EXEC_MAX_BUFFER_BYTES
6
- } from "./chunk-VD34QRH4.js";
6
+ } from "./chunk-Q7KB4FOG.js";
7
7
 
8
8
  // src/utils/exec.ts
9
9
  import { exec, execFile } from "child_process";
@@ -10,15 +10,15 @@ import {
10
10
  resolveDiffBase,
11
11
  runGitCommand,
12
12
  setAgentCredentialSnapshot
13
- } from "./chunk-UUPJGKO3.js";
13
+ } from "./chunk-5G2CXEF7.js";
14
14
  import {
15
15
  AppServerProcess,
16
16
  buildCodexAgentEnv
17
- } from "./chunk-YXNWRCAZ.js";
17
+ } from "./chunk-NGSUYYUE.js";
18
18
  import {
19
19
  SUBPROCESS_MAX_BUFFER,
20
20
  execFileAsync
21
- } from "./chunk-QMTXTCE4.js";
21
+ } from "./chunk-A4QDUNSE.js";
22
22
  import {
23
23
  isRecord
24
24
  } from "./chunk-UZSNFLDQ.js";
@@ -31,6 +31,7 @@ import {
31
31
  GIT_CREDENTIAL_HELPER_FILENAME,
32
32
  IMAGE_MEDIA_TYPES,
33
33
  InFlightMap,
34
+ MULTITASK_INSTRUCTIONS_TAG,
34
35
  SUBAGENT_MCP_SERVER_NAME,
35
36
  SUBAGENT_MCP_TOOL_NAMES,
36
37
  buildCodeHostPrUrl,
@@ -52,8 +53,9 @@ import {
52
53
  parseGitRemote,
53
54
  readOllamaAuthEnv,
54
55
  resolveOpenAICompatibleModelsUrl,
56
+ splitMultitaskInstructions,
55
57
  withTimeout
56
- } from "./chunk-VD34QRH4.js";
58
+ } from "./chunk-Q7KB4FOG.js";
57
59
 
58
60
  // src/managers/codex-token-manager.ts
59
61
  import { promises as fs } from "fs";
@@ -289,7 +291,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
289
291
  await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
290
292
  await this.applyCredentialsResponse(data);
291
293
  setAgentCredentialSnapshot("codex", data);
292
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-57FEMB5F.js");
294
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-CIGB2BN5.js");
293
295
  await restartCodexAspHostIfRunning2();
294
296
  });
295
297
  await this.start(true);
@@ -310,7 +312,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
310
312
  const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
311
313
  await this.applyCredentialsResponse(data);
312
314
  if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
313
- const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-57FEMB5F.js");
315
+ const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-CIGB2BN5.js");
314
316
  await restartCodexAspHostIfRunning2();
315
317
  }
316
318
  setAgentCredentialSnapshot("codex", data);
@@ -1825,10 +1827,12 @@ async function buildTurnStartParams(threadId, request, serviceTier) {
1825
1827
  const effort = toReasoningEffort(request.thinkingLevel);
1826
1828
  const model = request.model ?? DEFAULT_MODEL;
1827
1829
  const { input, tempImagePaths } = await buildTurnInput(request);
1830
+ const { multitaskInstructions } = splitMultitaskInstructions(request.customInstructions);
1828
1831
  return {
1829
1832
  params: {
1830
1833
  threadId,
1831
1834
  input,
1835
+ ...multitaskInstructions ? { additionalContext: { [MULTITASK_INSTRUCTIONS_TAG]: { kind: "application", value: multitaskInstructions } } } : {},
1832
1836
  model,
1833
1837
  ...serviceTier !== void 0 ? { serviceTier } : {},
1834
1838
  ...codexApprovalPolicyOverrides(),
@@ -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-QMTXTCE4.js";
6
+ } from "./chunk-A4QDUNSE.js";
7
7
  import {
8
8
  isVersionBelow
9
- } from "./chunk-VD34QRH4.js";
9
+ } from "./chunk-Q7KB4FOG.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.1046";
243
+ var ENGINE_PACKAGE_VERSION = "0.1.1048";
244
244
  var INITIALIZE_METHOD = "initialize";
245
245
  var INITIALIZED_NOTIFICATION = "initialized";
246
246
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
@@ -5592,6 +5592,7 @@ var DEFAULT_DEFAULT_SKILLS = {
5592
5592
 
5593
5593
  // ../shared/src/prompts.ts
5594
5594
  var REPLICAS_INSTRUCTIONS_TAG = "replicas_instructions";
5595
+ var MULTITASK_INSTRUCTIONS_TAG = "multitask_instructions";
5595
5596
  function wrapInTag(content, tag) {
5596
5597
  return `<${tag}>
5597
5598
  ${content}
@@ -5604,6 +5605,14 @@ function removeTag(text2, tag) {
5604
5605
  function removeReplicasInstructions(text2) {
5605
5606
  return removeTag(text2, REPLICAS_INSTRUCTIONS_TAG);
5606
5607
  }
5608
+ var MULTITASK_INSTRUCTIONS_BLOCK = new RegExp(`\\s*<${MULTITASK_INSTRUCTIONS_TAG}>\\n([\\s\\S]*?)\\n</${MULTITASK_INSTRUCTIONS_TAG}>`);
5609
+ function splitMultitaskInstructions(customInstructions) {
5610
+ const match = customInstructions?.match(MULTITASK_INSTRUCTIONS_BLOCK);
5611
+ return {
5612
+ customInstructions: match ? customInstructions?.replace(match[0], "").trim() || void 0 : customInstructions,
5613
+ multitaskInstructions: match?.[1]
5614
+ };
5615
+ }
5607
5616
 
5608
5617
  // ../shared/src/user-message-attachments.ts
5609
5618
  var ATTACHMENT_PLACEHOLDER_REGEX = /^\[\d+ (?:(?:images?|files?)(?: and \d+ files?)? attached|(?:image )?attachments?)\]$/;
@@ -9904,7 +9913,9 @@ export {
9904
9913
  isCompaction,
9905
9914
  describeMessageSteps,
9906
9915
  REPLICAS_INSTRUCTIONS_TAG,
9916
+ MULTITASK_INSTRUCTIONS_TAG,
9907
9917
  wrapInTag,
9918
+ splitMultitaskInstructions,
9908
9919
  extractErrorText,
9909
9920
  isTransientErrorText,
9910
9921
  extractToolResultText,
@@ -5,14 +5,14 @@ import {
5
5
  getOriginDefaultBranch,
6
6
  monolithRequest,
7
7
  runGitCommand
8
- } from "./chunk-UUPJGKO3.js";
8
+ } from "./chunk-5G2CXEF7.js";
9
9
  import {
10
10
  extractCommandProtectionCommandText,
11
11
  findCommandProtectionGitLookups,
12
12
  findGitCommitSignals,
13
13
  findPrMergeSignals,
14
14
  parseCommandProtectionRequest
15
- } from "./chunk-VD34QRH4.js";
15
+ } from "./chunk-Q7KB4FOG.js";
16
16
 
17
17
  // src/services/command-protection-service.ts
18
18
  import { readFile, stat } from "fs/promises";
@@ -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-YXNWRCAZ.js";
6
+ } from "./chunk-NGSUYYUE.js";
7
7
  import {
8
8
  ASTER_BASE_URL,
9
9
  ASTER_PROVIDER,
@@ -11,7 +11,7 @@ import {
11
11
  codexReasoningEffortForThinkingLevel,
12
12
  isRecord,
13
13
  readOllamaAuthEnv
14
- } from "./chunk-VD34QRH4.js";
14
+ } from "./chunk-Q7KB4FOG.js";
15
15
 
16
16
  // src/managers/codex-asp/notification-dispatch.ts
17
17
  var TURN_STARTED_METHOD = "turn/started";
@@ -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-4RU7OIGJ.js";
7
- import "./chunk-UUPJGKO3.js";
8
- import "./chunk-QMTXTCE4.js";
6
+ } from "./chunk-TEAO5RFG.js";
7
+ import "./chunk-5G2CXEF7.js";
8
+ import "./chunk-A4QDUNSE.js";
9
9
  import {
10
10
  isRecord
11
11
  } from "./chunk-UZSNFLDQ.js";
12
- import "./chunk-VD34QRH4.js";
12
+ import "./chunk-Q7KB4FOG.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
 
15
15
  // src/command-protection-hook.ts
@@ -13,12 +13,12 @@ import {
13
13
  recoverCompletedTurn,
14
14
  spawnMuseMsp,
15
15
  startMuseSession
16
- } from "./chunk-KFLO6IQN.js";
16
+ } from "./chunk-YFXDVORE.js";
17
17
  import {
18
18
  AppServerProcess,
19
19
  buildCodexAgentEnv
20
- } from "./chunk-YXNWRCAZ.js";
21
- import "./chunk-QMTXTCE4.js";
20
+ } from "./chunk-NGSUYYUE.js";
21
+ import "./chunk-A4QDUNSE.js";
22
22
  import {
23
23
  AGENT,
24
24
  OPENCODE_GO_PROVIDER,
@@ -28,7 +28,7 @@ import {
28
28
  headlessAgentUsagePath,
29
29
  isRecord,
30
30
  withTimeout
31
- } from "./chunk-VD34QRH4.js";
31
+ } from "./chunk-Q7KB4FOG.js";
32
32
  import "./chunk-VEQXQN22.js";
33
33
 
34
34
  // src/headless-agent.ts
package/dist/src/index.js CHANGED
@@ -27,7 +27,7 @@ import {
27
27
  evaluateCommandProtection,
28
28
  extractToolCommand,
29
29
  reportCommandProtectionBlock
30
- } from "./chunk-4RU7OIGJ.js";
30
+ } from "./chunk-TEAO5RFG.js";
31
31
  import {
32
32
  ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
33
33
  AGENT_MESSAGE_DELTA_METHOD,
@@ -64,10 +64,10 @@ import {
64
64
  spawnMuseMsp,
65
65
  startMuseSession,
66
66
  uuidV7
67
- } from "./chunk-KFLO6IQN.js";
67
+ } from "./chunk-YFXDVORE.js";
68
68
  import {
69
69
  publishedPullRequestUrls
70
- } from "./chunk-SE27SAJI.js";
70
+ } from "./chunk-3N74JBDW.js";
71
71
  import {
72
72
  ACCOUNT_RATE_LIMITS_READ_METHOD,
73
73
  AsyncLock,
@@ -129,7 +129,7 @@ import {
129
129
  timestampFromSeconds,
130
130
  upsertCredentialFileLines,
131
131
  writeSecureCredentialFile
132
- } from "./chunk-F5GOMRQW.js";
132
+ } from "./chunk-JLVQJTG3.js";
133
133
  import {
134
134
  ENGINE_ENV,
135
135
  monolithRequest,
@@ -138,15 +138,15 @@ import {
138
138
  reloadEngineEnv,
139
139
  resolveDiffBase,
140
140
  setAgentCredentialSnapshot
141
- } from "./chunk-UUPJGKO3.js";
141
+ } from "./chunk-5G2CXEF7.js";
142
142
  import {
143
143
  getCodexModelProvider
144
- } from "./chunk-YXNWRCAZ.js";
144
+ } from "./chunk-NGSUYYUE.js";
145
145
  import {
146
146
  SUBPROCESS_MAX_BUFFER,
147
147
  execAsync,
148
148
  execFileAsync
149
- } from "./chunk-QMTXTCE4.js";
149
+ } from "./chunk-A4QDUNSE.js";
150
150
  import {
151
151
  isRecord as isRecord2
152
152
  } from "./chunk-UZSNFLDQ.js";
@@ -211,6 +211,7 @@ import {
211
211
  MAX_CODEX_GOAL_OBJECTIVE_CHARS,
212
212
  MAX_REPO_FILE_CONTENT_BYTES,
213
213
  MERGED_MESSAGE_SEPARATOR,
214
+ MULTITASK_INSTRUCTIONS_TAG,
214
215
  OLLAMA_AGENTS,
215
216
  OPENCODE_GO_BASE_URL,
216
217
  OPENCODE_GO_PROVIDER,
@@ -361,6 +362,7 @@ import {
361
362
  shouldRefreshPullRequests,
362
363
  skillNamesFromCommand,
363
364
  spawnSubagentRequestSchema,
365
+ splitMultitaskInstructions,
364
366
  stripAgentDiagnosticErrors,
365
367
  toClaudeCodeModel,
366
368
  updateChatDisplayNameRequestSchema,
@@ -371,7 +373,7 @@ import {
371
373
  workspaceTokenRequestSchema,
372
374
  workspaceTokenResponseSchema,
373
375
  wrapInTag
374
- } from "./chunk-VD34QRH4.js";
376
+ } from "./chunk-Q7KB4FOG.js";
375
377
  import {
376
378
  cloneMcpConfig,
377
379
  ensureCompatibilityImports,
@@ -12601,6 +12603,7 @@ var MAX_MIDTURN_CONTINUE_RETRIES = 2;
12601
12603
  var TRANSIENT_RETRY_DELAYS_MS = [1e3, 2500];
12602
12604
  var CLAUDE_TRANSIENT_HTTP_STATUSES = [408, 500, 502, 503, 504, 529];
12603
12605
  var CLAUDE_MIDTURN_CONTINUE_PROMPT = "Your previous turn was interrupted by a transient network error before it could finish. Continue from exactly where you left off. Do not repeat any tool calls, commits, messages, or other actions you have already completed \u2014 first check what is already done, then do only the remaining work.";
12606
+ var CLAUDE_RETRY_PROMPT = "Your previous attempt to respond to the message above failed before producing a response. Respond to it now.";
12604
12607
  var TOOL_TARGET = /^\s*\{\s*"(\w+)"\s*:\s*(?:"((?:[^"\\]|\\.)*)(")?)?/;
12605
12608
  var JSON_FIRST_LINE = /^(?:[^\\]|\\[^n])*?(?=\\n)/;
12606
12609
  function toSlashCommands(command) {
@@ -12627,6 +12630,8 @@ var ClaudeManager = class _ClaudeManager extends CodingAgentManager {
12627
12630
  sessionActivity = createClaudeSessionActivity();
12628
12631
  backgroundContinuationTimer = null;
12629
12632
  pendingInterrupt = false;
12633
+ // Claude Code writes a started prompt to the session transcript even when the turn then fails, so a retry must not resend it.
12634
+ turnPromptRecorded = false;
12630
12635
  backgroundTasks = new ClaudeBackgroundTasks();
12631
12636
  backgroundRecoveryAttempted = false;
12632
12637
  // Ultracode workflow child agents never reach the SDK stream (forwardSubagentText
@@ -12976,6 +12981,9 @@ var ClaudeManager = class _ClaudeManager extends CodingAgentManager {
12976
12981
  return;
12977
12982
  } catch (error) {
12978
12983
  lastError = error;
12984
+ if (this.turnPromptRecorded) {
12985
+ currentRequest = { ...currentRequest, message: CLAUDE_RETRY_PROMPT, images: [], goalMode: false };
12986
+ }
12979
12987
  const quotaKind = _ClaudeManager.quotaLimitKind(error);
12980
12988
  if (quotaKind) {
12981
12989
  const detail = error instanceof ClaudeQuotaError ? error.message : extractErrorText(error);
@@ -13198,6 +13206,7 @@ var ClaudeManager = class _ClaudeManager extends CodingAgentManager {
13198
13206
  this.pendingInterrupt = false;
13199
13207
  return;
13200
13208
  }
13209
+ this.turnPromptRecorded = false;
13201
13210
  await new Promise((resolve7, reject) => {
13202
13211
  const steers = options.steers ?? /* @__PURE__ */ new Map();
13203
13212
  this.pendingTurn = {
@@ -13430,6 +13439,7 @@ var ClaudeManager = class _ClaudeManager extends CodingAgentManager {
13430
13439
  this.setAuthRetrying(false);
13431
13440
  const lifecycle2 = msg;
13432
13441
  if (isRecord(lifecycle2) && lifecycle2.type === "command_lifecycle" && lifecycle2.state === "started" && typeof lifecycle2.command_uuid === "string") {
13442
+ if (this.pendingTurn?.userMessageUuids.has(lifecycle2.command_uuid)) this.turnPromptRecorded = true;
13433
13443
  await this.recordSteerRead(lifecycle2.command_uuid);
13434
13444
  }
13435
13445
  if (this.pendingTurn && _ClaudeManager.isTurnActivity(msg)) {
@@ -14394,14 +14404,14 @@ var CodexAspManager = class extends CodingAgentManager {
14394
14404
  }
14395
14405
  async prepareGoalCommand(request, recordUserMessage) {
14396
14406
  const host = await getCodexAspHost();
14397
- const developerInstructions = this.buildCombinedInstructions(request.customInstructions, true);
14407
+ const developerInstructions = this.buildCombinedInstructions(splitMultitaskInstructions(request.customInstructions).customInstructions, true);
14398
14408
  recordUserMessage({ command: "goal" });
14399
14409
  const threadId = await this.ensureThread(host, request, developerInstructions);
14400
14410
  return { host, threadId };
14401
14411
  }
14402
14412
  async executeAspTurn(request, recordUserMessage, signal, options = {}) {
14403
14413
  const host = await getCodexAspHost();
14404
- const developerInstructions = this.buildCombinedInstructions(request.customInstructions, true);
14414
+ const developerInstructions = this.buildCombinedInstructions(splitMultitaskInstructions(request.customInstructions).customInstructions, true);
14405
14415
  recordUserMessage(options.userMessagePayload);
14406
14416
  const threadId = await this.ensureThread(host, request, developerInstructions);
14407
14417
  const serviceTier = await this.resolveRequestedServiceTier(host, request);
@@ -14547,7 +14557,14 @@ ${text.slice(-24e3)}`
14547
14557
  });
14548
14558
  }
14549
14559
  async runGoalTurn(host, threadId, request, objective, signal) {
14560
+ const { multitaskInstructions } = splitMultitaskInstructions(request.customInstructions);
14550
14561
  return this.observeTurn(host, threadId, request, signal, async () => {
14562
+ if (multitaskInstructions) {
14563
+ await host.client.request(THREAD_INJECT_ITEMS_METHOD, {
14564
+ threadId,
14565
+ items: [{ type: "message", role: "developer", content: [{ type: "input_text", text: wrapInTag(multitaskInstructions, MULTITASK_INSTRUCTIONS_TAG) }] }]
14566
+ });
14567
+ }
14551
14568
  const response = await host.client.request(
14552
14569
  THREAD_GOAL_SET_METHOD,
14553
14570
  { threadId, objective, status: "active" }
@@ -57342,6 +57359,7 @@ var PiManager = class extends CodingAgentManager {
57342
57359
  unsubscribe = null;
57343
57360
  activeSessionFile = null;
57344
57361
  sessionSubagentMcpParentChatId;
57362
+ sessionInstructions;
57345
57363
  historyFilePath;
57346
57364
  historyFile;
57347
57365
  providerId = "openrouter";
@@ -57391,8 +57409,9 @@ var PiManager = class extends CodingAgentManager {
57391
57409
  }
57392
57410
  async ensureSession(request) {
57393
57411
  const subagentMcpParentChatId = this.subagentMcpParentChatId();
57412
+ const instructions = this.buildCombinedInstructions(request.customInstructions) ?? "";
57394
57413
  let retainedModel;
57395
- if (this.session && this.sessionSubagentMcpParentChatId !== subagentMcpParentChatId) {
57414
+ if (this.session && (this.sessionSubagentMcpParentChatId !== subagentMcpParentChatId || this.sessionInstructions !== instructions)) {
57396
57415
  retainedModel = this.session.model?.id;
57397
57416
  await this.dispose();
57398
57417
  }
@@ -57509,7 +57528,7 @@ var PiManager = class extends CodingAgentManager {
57509
57528
  cwd: this.workingDirectory,
57510
57529
  agentDir: join22(ENGINE_ENV.HOME_DIR, ".pi", "agent"),
57511
57530
  extensionFactories,
57512
- appendSystemPrompt: [this.buildCombinedInstructions(request.customInstructions) ?? ""]
57531
+ appendSystemPrompt: [instructions]
57513
57532
  });
57514
57533
  await resourceLoader.reload();
57515
57534
  const result = await createAgentSession({
@@ -57521,6 +57540,7 @@ var PiManager = class extends CodingAgentManager {
57521
57540
  });
57522
57541
  this.session = result.session;
57523
57542
  this.sessionSubagentMcpParentChatId = subagentMcpParentChatId;
57543
+ this.sessionInstructions = instructions;
57524
57544
  if (request.thinkingLevel) {
57525
57545
  this.session.setThinkingLevel(piThinkingLevel(request.thinkingLevel));
57526
57546
  }
@@ -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-SE27SAJI.js";
6
+ } from "./chunk-3N74JBDW.js";
7
7
  import {
8
8
  isRecord
9
9
  } from "./chunk-UZSNFLDQ.js";
10
10
  import {
11
11
  shouldRefreshPullRequests
12
- } from "./chunk-VD34QRH4.js";
12
+ } from "./chunk-Q7KB4FOG.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
 
15
15
  // src/services/post-tool-pr-notifier.ts
@@ -9,7 +9,7 @@ import {
9
9
  spawnSubagentRequestSchema,
10
10
  subagentResponseSchema,
11
11
  waitSubagentRequestSchema
12
- } from "./chunk-VD34QRH4.js";
12
+ } from "./chunk-Q7KB4FOG.js";
13
13
  import "./chunk-VEQXQN22.js";
14
14
 
15
15
  // src/subagent-mcp.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.1046",
3
+ "version": "0.1.1048",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",