replicas-engine 0.1.619 → 0.1.621

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 +27 -11
  2. package/package.json +1 -1
package/dist/src/index.js CHANGED
@@ -2482,7 +2482,7 @@ const message = await replicas.slack.call<{ channel: string; ts: string }>('chat
2482
2482
  await replicas.slack.attachThread({ channel: message.channel, threadTs: message.ts });
2483
2483
  \`\`\`
2484
2484
 
2485
- A link in the message text stays plain text, so when the message carries a pull request or merge request link, pass \`blocks\` alongside \`text\` to render a button for it. Keep \`text\` set to the same message \u2014 Slack uses it for notifications and fallback.
2485
+ A link in the message text stays plain text, so the message that first shares a pull request or merge request link passes \`blocks\` alongside \`text\` to render a button for it. Keep \`text\` set to the same message \u2014 Slack uses it for notifications and fallback.
2486
2486
 
2487
2487
  \`\`\`ts
2488
2488
  await replicas.slack.call('chat.postMessage', {
@@ -2494,14 +2494,14 @@ await replicas.slack.call('chat.postMessage', {
2494
2494
  {
2495
2495
  type: 'actions',
2496
2496
  elements: [
2497
- { type: 'button', text: { type: 'plain_text', text: 'View PR' }, url: prUrl, action_id: 'view_pr' },
2497
+ { type: 'button', style: 'primary', text: { type: 'plain_text', text: 'View PR' }, url: prUrl, action_id: 'view_pr' },
2498
2498
  ],
2499
2499
  },
2500
2500
  ],
2501
2501
  });
2502
2502
  \`\`\`
2503
2503
 
2504
- Use "View MR" for GitLab. With several links, give each button a unique \`action_id\` and name its repository in the label ("View PR \xB7 web").
2504
+ Only the announcing message gets the button \u2014 follow-ups about a pull request already linked in the thread keep the link in the text and drop the \`blocks\`. Use "View MR" for GitLab. With several links, give each button a unique \`action_id\` and name its repository in the label ("View PR \xB7 web").
2505
2505
 
2506
2506
  Attach every new top-level conversation so future replies route to this workspace. For a reply in another thread, attach its root \`thread_ts\`, not the reply timestamp. Do not attach the originating thread again.
2507
2507
 
@@ -5995,11 +5995,11 @@ var GitService = class {
5995
5995
  let complete = discovered.complete;
5996
5996
  for (const repo of discovered.repos) {
5997
5997
  try {
5998
- const [persistedState, currentBranchRaw, gitDiff, provider] = await Promise.all([
5998
+ const [persistedState, currentBranchRaw, gitDiff, codeHost] = await Promise.all([
5999
5999
  loadRepoState(repo.name),
6000
6000
  getCurrentBranch(repo.path),
6001
6001
  this.getGitDiffStats(repo.path, repo.defaultBranch),
6002
- this.resolveCodeHostProvider(repo.path)
6002
+ this.resolveCodeHost(repo.path)
6003
6003
  ]);
6004
6004
  const currentBranch = currentBranchRaw ?? repo.defaultBranch;
6005
6005
  const fullDiff = includeDiffs && gitDiff ? await this.getFullGitDiff(repo.path, repo.defaultBranch) : void 0;
@@ -6013,7 +6013,7 @@ var GitService = class {
6013
6013
  prUrls: persistedState?.prUrls ?? [],
6014
6014
  gitDiff: includeDiffs && gitDiff ? { ...gitDiff, ...fullDiff === null ? {} : { fullDiff } } : gitDiff,
6015
6015
  startHooksCompleted: persistedState?.startHooksCompleted ?? false,
6016
- provider
6016
+ ...codeHost
6017
6017
  });
6018
6018
  } catch {
6019
6019
  complete = false;
@@ -6292,9 +6292,14 @@ var GitService = class {
6292
6292
  return { status: "error" };
6293
6293
  }
6294
6294
  }
6295
- async resolveCodeHostProvider(repoPath) {
6295
+ async resolveCodeHost(repoPath) {
6296
6296
  const origin = await this.getOriginInfo(repoPath);
6297
- return origin.provider === "unknown" ? void 0 : origin.provider;
6297
+ if (origin.provider === "unknown") return {};
6298
+ if (origin.provider === "github") return { provider: origin.provider };
6299
+ return {
6300
+ provider: origin.provider,
6301
+ repositoryUrl: `${origin.gitLab.instanceUrl}/${origin.gitLab.projectPath}`
6302
+ };
6298
6303
  }
6299
6304
  async getRepositoryOriginHost(repoPath, refresh = false) {
6300
6305
  if (refresh) this.originInfoCache.delete(repoPath);
@@ -6403,7 +6408,7 @@ var GitService = class {
6403
6408
  prUrls,
6404
6409
  gitDiff: includeDiffs && gitDiff ? { ...gitDiff, ...fullDiff === null ? {} : { fullDiff } } : gitDiff,
6405
6410
  startHooksCompleted,
6406
- provider: await this.resolveCodeHostProvider(repo.path)
6411
+ ...await this.resolveCodeHost(repo.path)
6407
6412
  };
6408
6413
  await saveRepoState(repo.name, state, state);
6409
6414
  return state;
@@ -8871,6 +8876,7 @@ function buildClaudeAgentEnv(overrides) {
8871
8876
  env.GITHUB_TOKEN = void 0;
8872
8877
  env.GH_CONFIG_DIR = void 0;
8873
8878
  env.CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD = "1";
8879
+ env.CLAUDE_CODE_DISABLE_AUTO_MEMORY = "1";
8874
8880
  return env;
8875
8881
  }
8876
8882
  function buildCodexAgentEnv() {
@@ -10894,11 +10900,21 @@ var AspClient = class {
10894
10900
 
10895
10901
  // src/managers/codex-asp/app-server-process.ts
10896
10902
  var DEFAULT_CODEX_BINARY = "codex";
10897
- var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
10903
+ var DEFAULT_CODEX_ARGS = [
10904
+ "app-server",
10905
+ "--listen",
10906
+ "stdio://",
10907
+ "-c",
10908
+ "features.memories=false",
10909
+ "-c",
10910
+ "memories.use_memories=false",
10911
+ "-c",
10912
+ "memories.generate_memories=false"
10913
+ ];
10898
10914
  var MIN_CODEX_CLI_VERSION = "0.144.6";
10899
10915
  var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
10900
10916
  var codexCliVersionEnsured = null;
10901
- var ENGINE_PACKAGE_VERSION = "0.1.619";
10917
+ var ENGINE_PACKAGE_VERSION = "0.1.621";
10902
10918
  var INITIALIZE_METHOD = "initialize";
10903
10919
  var INITIALIZED_NOTIFICATION = "initialized";
10904
10920
  var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.619",
3
+ "version": "0.1.621",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",