@ouro.bot/cli 0.1.0-alpha.378 → 0.1.0-alpha.379

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.
@@ -6,8 +6,8 @@
6
6
  <meta name="color-scheme" content="dark" />
7
7
  <title>Ouro Outlook</title>
8
8
  <meta name="description" content="The daemon-hosted shared orientation surface for agents alive on this machine." />
9
- <script type="module" crossorigin src="/assets/index-xTdv64BV.js"></script>
10
- <link rel="stylesheet" crossorigin href="/assets/index-LwChZTgL.css">
9
+ <script type="module" crossorigin src="/assets/index-D7l3l4vY.js"></script>
10
+ <link rel="stylesheet" crossorigin href="/assets/index-BAcU08c-.css">
11
11
  </head>
12
12
  <body>
13
13
  <div id="app"></div>
@@ -36,7 +36,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.OURO_CLI_TRUST_MANIFEST = void 0;
37
37
  exports.guardInvocation = guardInvocation;
38
38
  const fs = __importStar(require("node:fs"));
39
- const os = __importStar(require("node:os"));
40
39
  const path = __importStar(require("node:path"));
41
40
  const types_1 = require("../mind/friends/types");
42
41
  const runtime_1 = require("../nerves/runtime");
@@ -56,20 +55,17 @@ const REASONS = {
56
55
  // --- read-only tools that never need guardrails ---
57
56
  const READ_ONLY_TOOLS = new Set(["read_file", "glob", "grep"]);
58
57
  // --- protected path detection ---
59
- const PROTECTED_PATH_SEGMENTS = [".git/"];
58
+ const PROTECTED_PATH_SEGMENTS = [
59
+ ".git/",
60
+ ".ouro-cli/vault-unlock/",
61
+ ".ouro-cli/vault-unlock-dpapi/",
62
+ ];
60
63
  const PROTECTED_FILENAMES = ["agent.json"];
61
- function getProtectedAbsolutePrefixes() {
62
- return [`${os.homedir()}/.agentsecrets/`];
63
- }
64
64
  function isProtectedPath(filePath) {
65
65
  for (const segment of PROTECTED_PATH_SEGMENTS) {
66
66
  if (filePath.includes(`/${segment}`) || filePath.startsWith(segment))
67
67
  return true;
68
68
  }
69
- for (const prefix of getProtectedAbsolutePrefixes()) {
70
- if (filePath.startsWith(prefix))
71
- return true;
72
- }
73
69
  for (const name of PROTECTED_FILENAMES) {
74
70
  if (path.basename(filePath) === name)
75
71
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.378",
3
+ "version": "0.1.0-alpha.379",
4
4
  "main": "dist/heart/daemon/ouro-entry.js",
5
5
  "bin": {
6
6
  "cli": "dist/heart/daemon/ouro-bot-entry.js",