replicas-engine 0.1.201 → 0.1.202

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.
Files changed (2) hide show
  1. package/dist/src/index.js +16 -1
  2. package/package.json +1 -1
package/dist/src/index.js CHANGED
@@ -396,7 +396,7 @@ function parseReplicasConfigString(content, filename) {
396
396
  }
397
397
 
398
398
  // ../shared/src/engine/environment.ts
399
- var DAYTONA_SNAPSHOT_ID = "22-05-2026-royal-york-v8";
399
+ var DAYTONA_SNAPSHOT_ID = "23-05-2026-royal-york-v1";
400
400
 
401
401
  // ../shared/src/engine/types.ts
402
402
  var DEFAULT_CHAT_TITLES = {
@@ -2923,6 +2923,7 @@ function buildClaudeAgentEnv(overrides) {
2923
2923
  if (shouldStripAnthropicApiKey()) {
2924
2924
  env.ANTHROPIC_API_KEY = void 0;
2925
2925
  }
2926
+ env.CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD = "1";
2926
2927
  return env;
2927
2928
  }
2928
2929
  function buildCodexAgentEnv() {
@@ -2951,6 +2952,16 @@ function shouldStripOpenAIApiKey() {
2951
2952
  return ENGINE_ENV.REPLICAS_CODEX_AUTH_METHOD === "oauth";
2952
2953
  }
2953
2954
 
2955
+ // src/utils/agent-additional-directories.ts
2956
+ async function getAgentAdditionalDirectories() {
2957
+ try {
2958
+ const repos = await gitService.listRepositories();
2959
+ return repos.map((repo) => repo.path);
2960
+ } catch {
2961
+ return [];
2962
+ }
2963
+ }
2964
+
2954
2965
  // src/managers/claude-manager.ts
2955
2966
  var PromptStream = class {
2956
2967
  queue = [];
@@ -3297,6 +3308,7 @@ var ClaudeManager = class _ClaudeManager extends CodingAgentManager {
3297
3308
  append: combinedInstructions
3298
3309
  };
3299
3310
  const queryEnv = buildClaudeAgentEnv(this.envOverrides);
3311
+ const additionalDirectories = await getAgentAdditionalDirectories();
3300
3312
  const resolvedModel = normalizeClaudeModel(model) || CLAUDE_OPUS_1M_MODEL;
3301
3313
  const interactiveAllowed = enableInteractiveTools && permissionMode === "read";
3302
3314
  const useDefaultToolPolicy = !this.toolsOverride;
@@ -3314,6 +3326,7 @@ var ClaudeManager = class _ClaudeManager extends CodingAgentManager {
3314
3326
  options: {
3315
3327
  resume: this.sessionId || void 0,
3316
3328
  cwd: this.workingDirectory,
3329
+ additionalDirectories,
3317
3330
  permissionMode: permissionMode === "read" ? "plan" : "bypassPermissions",
3318
3331
  allowDangerouslySkipPermissions: permissionMode !== "read",
3319
3332
  ...this.toolsOverride ? { tools: this.toolsOverride } : {},
@@ -3728,12 +3741,14 @@ var CodexManager = class extends CodingAgentManager {
3728
3741
  const sandboxMode = "danger-full-access";
3729
3742
  const webSearchMode = "live";
3730
3743
  const codexReasoningEffort = thinkingLevel ? thinkingLevel === "max" ? "xhigh" : thinkingLevel : void 0;
3744
+ const additionalDirectories = await getAgentAdditionalDirectories();
3731
3745
  const threadOptions = {
3732
3746
  workingDirectory: this.workingDirectory,
3733
3747
  skipGitRepoCheck: true,
3734
3748
  sandboxMode,
3735
3749
  model: model || DEFAULT_MODEL,
3736
3750
  webSearchMode,
3751
+ additionalDirectories,
3737
3752
  ...codexReasoningEffort ? { modelReasoningEffort: codexReasoningEffort } : {}
3738
3753
  };
3739
3754
  abortController = new AbortController();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.201",
3
+ "version": "0.1.202",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",