@peakflo/agent-harness 0.2.7 → 0.2.8

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.
@@ -17,11 +17,9 @@
17
17
  * adapter default. That is defect G1 — a Permission control that is recorded,
18
18
  * served, rendered, and enforced nowhere.
19
19
  *
20
- * THE RULE THE MAPPING OBEYS: **a mode may map to something STRICTER than the
21
- * user asked for, never to something looser.** Everything that is not an
22
- * explicit "stop asking me" maps to `'ask'`. `'allow'` is reachable from
23
- * exactly one input, `bypassPermissions`, and from nothing else — including
24
- * from an unrecognised value, which fails closed onto `'ask'`.
20
+ * A stored mode keeps the user's choice. Missing mode uses the new-agent
21
+ * default, `bypassPermissions`. An unrecognised value fails closed onto
22
+ * `'ask'`; it may be a mode from a newer control plane.
25
23
  *
26
24
  * ---------------------------------------------------------------------------
27
25
  * THE TABLE, AND WHAT IS AND IS NOT FAITHFUL
@@ -18,11 +18,9 @@
18
18
  * adapter default. That is defect G1 — a Permission control that is recorded,
19
19
  * served, rendered, and enforced nowhere.
20
20
  *
21
- * THE RULE THE MAPPING OBEYS: **a mode may map to something STRICTER than the
22
- * user asked for, never to something looser.** Everything that is not an
23
- * explicit "stop asking me" maps to `'ask'`. `'allow'` is reachable from
24
- * exactly one input, `bypassPermissions`, and from nothing else — including
25
- * from an unrecognised value, which fails closed onto `'ask'`.
21
+ * A stored mode keeps the user's choice. Missing mode uses the new-agent
22
+ * default, `bypassPermissions`. An unrecognised value fails closed onto
23
+ * `'ask'`; it may be a mode from a newer control plane.
26
24
  *
27
25
  * ---------------------------------------------------------------------------
28
26
  * THE TABLE, AND WHAT IS AND IS NOT FAITHFUL
@@ -94,6 +92,8 @@ exports.claudeCodePermissionMode = claudeCodePermissionMode;
94
92
  */
95
93
  function mapPermissionMode(mode) {
96
94
  switch (mode) {
95
+ case null:
96
+ case undefined:
97
97
  case 'bypassPermissions':
98
98
  return {
99
99
  permissionMode: 'allow',
@@ -106,7 +106,7 @@ function mapPermissionMode(mode) {
106
106
  case 'default':
107
107
  return { permissionMode: 'ask', sandboxMode: 'workspace-write' };
108
108
  default:
109
- // Unrecognised, absent, null. Ask. See the rule above.
109
+ // An unrecognised value can be a newer mode. Keep asking.
110
110
  return { permissionMode: 'ask', sandboxMode: 'workspace-write' };
111
111
  }
112
112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peakflo/agent-harness",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "Headless Peakflo coding-agent harness. One codebase, three hosting modes: a Daytona cloud sandbox, a customer VM, and the 20x desktop.",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",