@vectorize-io/self-driving-agents 0.0.16 → 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
@@ -948,22 +948,24 @@ async function main() {
948
948
  /* ignore */
949
949
  }
950
950
  }
951
- const allowedTools = userSettings.allowedTools || [];
951
+ const permissions = (userSettings.permissions ||= {});
952
+ const allow = permissions.allow || [];
952
953
  const toolsToAllow = [
953
- "mcp__hindsight__*",
954
+ "mcp__plugin_hindsight-memory_hindsight__*",
954
955
  "Skill(hindsight-memory:create-agent)",
955
956
  `Bash(ls ~/.self-driving-agents/*)`,
956
957
  `Bash(cat ~/.self-driving-agents/*)`,
957
958
  ];
958
959
  let updated = false;
959
960
  for (const tool of toolsToAllow) {
960
- if (!allowedTools.includes(tool)) {
961
- allowedTools.push(tool);
961
+ if (!allow.includes(tool)) {
962
+ allow.push(tool);
962
963
  updated = true;
963
964
  }
964
965
  }
965
966
  if (updated) {
966
- userSettings.allowedTools = allowedTools;
967
+ permissions.allow = allow;
968
+ userSettings.permissions = permissions;
967
969
  writeFileSync(userSettingsPath, JSON.stringify(userSettings, null, 2) + "\n");
968
970
  p.log.success("Auto-approved hindsight tools in Claude Code");
969
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.16",
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",