flowviant 0.39.0 → 0.40.1

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.
@@ -7,7 +7,7 @@
7
7
  import { execFileSync } from 'node:child_process';
8
8
  import { ok, warn, info, c } from './ui.mjs';
9
9
  import { addLocalBinToPath, promptYesNo, installClaude, installGh } from './install.mjs';
10
- import { RUNTIMES, detectRuntimes } from './runtimes.mjs';
10
+ import { RUNTIMES, detectRuntimes, mediatedSafeGap } from './runtimes.mjs';
11
11
 
12
12
  function present(cmd) {
13
13
  try {
@@ -71,6 +71,16 @@ export async function preflight({ needGit = true } = {}) {
71
71
  }
72
72
  }
73
73
  const drivable = detected.filter((r) => r.dispatchable);
74
+ // SAFE mode narrows what an agent may do — except on a runtime whose only
75
+ // permission control is all-or-nothing. Say so at startup rather than letting
76
+ // an operator believe a setting is in force that isn't.
77
+ for (const r of drivable) {
78
+ if (mediatedSafeGap(RUNTIMES[r.id])) {
79
+ warn(
80
+ `${RUNTIMES[r.id].bin}: FLOWVIANT_SAFE cannot narrow this runtime — it has no per-invocation permission control, so its builds run unrestricted`
81
+ );
82
+ }
83
+ }
74
84
  // Name the alternatives once, and only when there is nothing to build with —
75
85
  // a working machine does not need a catalogue of the CLIs it is not using.
76
86
  if (drivable.length === 0) {