@polderlabs/bizar 10.16.0 → 10.16.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.
@@ -20,12 +20,12 @@ import { pathToFileURL } from 'node:url';
20
20
 
21
21
  import { loadModelRouter } from '../../../config/agents/model-assignment.mjs';
22
22
 
23
- function deny(reason) {
23
+ function advise(reason) {
24
24
  return {
25
25
  hookSpecificOutput: {
26
26
  hookEventName: 'PreToolUse',
27
- permissionDecision: 'deny',
28
- permissionDecisionReason: reason,
27
+ permissionDecision: 'allow',
28
+ additionalContext: `🟡 Model override guidance: ${reason} The dispatch will proceed regardless.`,
29
29
  },
30
30
  };
31
31
  }
@@ -80,7 +80,7 @@ export async function guardAgentModel(input, options = {}) {
80
80
 
81
81
  const allowed = configuredModels(registry);
82
82
  if (!allowed.has(requested)) {
83
- return deny(`Bizar Agent dispatch blocked: model override ${requested} is outside the configured dynamic tiers and the user-selected pool. Omit model to inherit the session or pick it via \`bizar models\`.`);
83
+ return advise(`Bizar Agent dispatch blocked: model override ${requested} is outside the configured dynamic tiers and the user-selected pool. Omit model to inherit the session or pick it via \`bizar models\`.`);
84
84
  }
85
85
 
86
86
  // User-selected models bypass live-discovery validation. The picker is the
@@ -89,7 +89,7 @@ export async function guardAgentModel(input, options = {}) {
89
89
  if (!fromUserPick && Array.isArray(options.availableModelIds)) {
90
90
  const available = new Set(options.availableModelIds);
91
91
  if (!available.has(requested)) {
92
- return deny(`Bizar Agent dispatch blocked: ${requested} was not reported by live discovery. Omit model to inherit the active session; do not retry aliases.`);
92
+ return advise(`Bizar Agent dispatch blocked: ${requested} was not reported by live discovery. Omit model to inherit the active session; do not retry aliases.`);
93
93
  }
94
94
  }
95
95
 
@@ -65,8 +65,8 @@ process.stdin.on('end', () => {
65
65
  process.stdout.write(JSON.stringify({
66
66
  hookSpecificOutput: {
67
67
  hookEventName: 'PreToolUse',
68
- permissionDecision: 'deny',
69
- permissionDecisionReason: `Humanize the text before publishing it: ${notes.join('; ')}.`,
68
+ permissionDecision: 'allow',
69
+ additionalContext: `🟡 Style suggestion: humanize the text before publishing. ${notes.join('; ')}. The write will proceed regardless.`,
70
70
  },
71
71
  }) + '\n');
72
72
  }
@@ -8,7 +8,7 @@
8
8
  * NOT consume the marker — the hook chain may run more than once for a single
9
9
  * bash invocation, and a one-shot rm caused sporadic false denies.
10
10
  *
11
- * Missing or stale markers deny the commit. Hard approval gates (commit,
11
+ * Missing or stale markers emit an advisory reminder. Hard approval gates (commit,
12
12
  * push, gh, publish, deploy) remain in git-workflow-guard.mjs.
13
13
  */
14
14
 
@@ -94,8 +94,8 @@ process.stdin.on('end', () => {
94
94
  process.stdout.write(JSON.stringify({
95
95
  hookSpecificOutput: {
96
96
  hookEventName: 'PreToolUse',
97
- permissionDecision: 'deny',
98
- permissionDecisionReason: 'Run /simplify on the staged diff, apply any justified cleanup, rerun tests, then retry the commit.',
97
+ permissionDecision: 'allow',
98
+ additionalContext: '🟡 /simplify not run on the current staged diff. Recommended: run /simplify, apply any justified cleanup, rerun tests, then retry the commit. The commit will proceed without /simplify if you choose.',
99
99
  },
100
100
  }) + '\n');
101
101
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polderlabs/bizar",
3
- "version": "10.16.0",
3
+ "version": "10.16.1",
4
4
  "description": "Autonomous, human-in-the-loop multi-agent harness for Claude Code with guarded workflows, typed SDK primitives, and MCP tools.",
5
5
  "type": "module",
6
6
  "bin": {