@vectorize-io/self-driving-agents 0.0.15 → 0.0.17

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
@@ -918,9 +918,6 @@ async function main() {
918
918
  ccConfig.dynamicBankId = true;
919
919
  ccConfig.dynamicBankGranularity = expectedGranularity;
920
920
  ccConfig.enableKnowledgeTools = true;
921
- // SDA agents need auto-retain to capture conversation context for the agent's bank
922
- if (ccConfig.autoRetain === undefined)
923
- ccConfig.autoRetain = true;
924
921
  mkdirSync(ccConfigDir, { recursive: true });
925
922
  writeFileSync(ccConfigPath, JSON.stringify(ccConfig, null, 2) + "\n");
926
923
  p.log.success(`Plugin config: ${color.dim(ccConfigPath)}`);
@@ -951,22 +948,24 @@ async function main() {
951
948
  /* ignore */
952
949
  }
953
950
  }
954
- const allowedTools = userSettings.allowedTools || [];
951
+ const permissions = (userSettings.permissions ||= {});
952
+ const allow = permissions.allow || [];
955
953
  const toolsToAllow = [
956
- "mcp__hindsight__*",
954
+ "mcp__plugin_hindsight-memory_hindsight__*",
957
955
  "Skill(hindsight-memory:create-agent)",
958
956
  `Bash(ls ~/.self-driving-agents/*)`,
959
957
  `Bash(cat ~/.self-driving-agents/*)`,
960
958
  ];
961
959
  let updated = false;
962
960
  for (const tool of toolsToAllow) {
963
- if (!allowedTools.includes(tool)) {
964
- allowedTools.push(tool);
961
+ if (!allow.includes(tool)) {
962
+ allow.push(tool);
965
963
  updated = true;
966
964
  }
967
965
  }
968
966
  if (updated) {
969
- userSettings.allowedTools = allowedTools;
967
+ permissions.allow = allow;
968
+ userSettings.permissions = permissions;
970
969
  writeFileSync(userSettingsPath, JSON.stringify(userSettings, null, 2) + "\n");
971
970
  p.log.success("Auto-approved hindsight tools in Claude Code");
972
971
  }
@@ -580,7 +580,7 @@ describe("claude-code marketplace detection", () => {
580
580
  });
581
581
  });
582
582
  describe("claude-code allowed-tools merge", () => {
583
- // Mirrors the auto-approve logic that merges entries into ~/.claude/settings.json's allowedTools.
583
+ // Mirrors the auto-approve logic that merges entries into ~/.claude/settings.json's permissions.allow.
584
584
  function mergeAllowed(existing, toAdd) {
585
585
  const merged = [...existing];
586
586
  let updated = false;
@@ -593,7 +593,7 @@ describe("claude-code allowed-tools merge", () => {
593
593
  return { merged, updated };
594
594
  }
595
595
  const HINDSIGHT_TOOLS = [
596
- "mcp__hindsight__*",
596
+ "mcp__plugin_hindsight-memory_hindsight__*",
597
597
  "Skill(hindsight-memory:create-agent)",
598
598
  "Bash(ls ~/.self-driving-agents/*)",
599
599
  "Bash(cat ~/.self-driving-agents/*)",
@@ -607,7 +607,7 @@ describe("claude-code allowed-tools merge", () => {
607
607
  const { merged } = mergeAllowed(["Bash(npm *)", "Read"], HINDSIGHT_TOOLS);
608
608
  expect(merged).toContain("Bash(npm *)");
609
609
  expect(merged).toContain("Read");
610
- expect(merged).toContain("mcp__hindsight__*");
610
+ expect(merged).toContain("mcp__plugin_hindsight-memory_hindsight__*");
611
611
  });
612
612
  it("does not duplicate when already present", () => {
613
613
  const existing = [...HINDSIGHT_TOOLS];
@@ -616,7 +616,7 @@ describe("claude-code allowed-tools merge", () => {
616
616
  expect(merged).toHaveLength(HINDSIGHT_TOOLS.length);
617
617
  });
618
618
  it("only adds missing entries", () => {
619
- const existing = ["mcp__hindsight__*"];
619
+ const existing = ["mcp__plugin_hindsight-memory_hindsight__*"];
620
620
  const { merged, updated } = mergeAllowed(existing, HINDSIGHT_TOOLS);
621
621
  expect(updated).toBe(true);
622
622
  expect(merged).toHaveLength(HINDSIGHT_TOOLS.length);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectorize-io/self-driving-agents",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "description": "Install self-driving agents with portable memory on any harness",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",