@vectorize-io/self-driving-agents 0.0.22 → 0.0.23

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.
package/dist/cli.js CHANGED
@@ -985,6 +985,11 @@ async function main() {
985
985
  ccConfig.dynamicBankId = true;
986
986
  ccConfig.dynamicBankGranularity = expectedGranularity;
987
987
  ccConfig.enableKnowledgeTools = true;
988
+ // Coalesce all worktrees of a repo into one bank by resolving the
989
+ // `project` field to the main repo basename instead of the cwd basename.
990
+ // Plugin default is already true, but pin it explicitly so future plugin
991
+ // version flips don't fragment a user's memory across worktrees.
992
+ ccConfig.resolveWorktrees = true;
988
993
  mkdirSync(ccConfigDir, { recursive: true });
989
994
  writeFileSync(ccConfigPath, JSON.stringify(ccConfig, null, 2) + "\n");
990
995
  p.log.success(`Plugin config: ${color.dim(ccConfigPath)}`);
@@ -695,6 +695,9 @@ describe("claude-code Hindsight config persistence", () => {
695
695
  hindsightApiUrl: prompted.apiUrl,
696
696
  hindsightApiToken: prompted.apiToken,
697
697
  enableKnowledgeTools: true,
698
+ // Pin worktree resolution so all worktrees of a repo land in the same
699
+ // bank, matching what cli.ts writes during the claude-code install flow.
700
+ resolveWorktrees: true,
698
701
  };
699
702
  }
700
703
  it("prompts on first install (empty config)", () => {
@@ -726,4 +729,12 @@ describe("claude-code Hindsight config persistence", () => {
726
729
  const result = applyClaudeConfig({ enableKnowledgeTools: false }, { apiUrl: "https://x.com", apiToken: "t" });
727
730
  expect(result.enableKnowledgeTools).toBe(true);
728
731
  });
732
+ it("always pins resolveWorktrees=true so worktrees share one bank", () => {
733
+ // Plugin already defaults to true, but SDA pins it explicitly so a future
734
+ // plugin default flip can't fragment a user's memory across worktrees.
735
+ const fresh = applyClaudeConfig({}, { apiUrl: "https://x.com", apiToken: "t" });
736
+ expect(fresh.resolveWorktrees).toBe(true);
737
+ const overridden = applyClaudeConfig({ resolveWorktrees: false }, { apiUrl: "https://x.com", apiToken: "t" });
738
+ expect(overridden.resolveWorktrees).toBe(true);
739
+ });
729
740
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectorize-io/self-driving-agents",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "Install self-driving agents with portable memory on any harness",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",