blun-king-cli 9.1.191 → 9.1.192

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.
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ function buildApprovalRejectionStop(output) {
4
+ return {
5
+ syntheticResult: {
6
+ output,
7
+ isError: true,
8
+ stopTurn: true,
9
+ },
10
+ };
11
+ }
12
+
13
+ module.exports = {
14
+ buildApprovalRejectionStop,
15
+ };
package/blun.mjs CHANGED
@@ -233964,10 +233964,7 @@ var init_permission = __esmMin((() => {
233964
233964
  const resolved = result.resolveApproval?.(response);
233965
233965
  if (resolved !== void 0) return this.permissionPolicyResolutionToPrepare(resolved, context, policyName);
233966
233966
  if (response.decision === "approved") return;
233967
- return {
233968
- block: true,
233969
- reason: this.formatApprovalRejectionMessage(name, response)
233970
- };
233967
+ return buildApprovalRejectionStop(this.formatApprovalRejectionMessage(name, response));
233971
233968
  }
233972
233969
  async evaluatePolicies(context) {
233973
233970
  for (const policy of this.policies) {
@@ -416742,6 +416739,7 @@ function buildManagedUsageReportLines(options) {
416742
416739
  const errorStyle = (text) => currentTheme.fg("error", text);
416743
416740
  return buildManagedUsageSection(options.managedUsage, options.managedUsageError, accent, value, muted, errorStyle);
416744
416741
  }
416742
+ var { buildApprovalRejectionStop } = createRequire(import.meta.url)("./bin/approval-rejection-stop.cjs");
416745
416743
  var { reconcileContextBudget } = createRequire(import.meta.url)("./bin/context-budget-ledger.cjs");
416746
416744
  function buildUsageReportLines(options) {
416747
416745
  const accent = (text) => currentTheme.boldFg("primary", text);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blun-king-cli",
3
- "version": "9.1.191",
3
+ "version": "9.1.192",
4
4
  "description": "BLUN CLI - your own AI agent with a Telegram channel. Get it done. With BLUN.",
5
5
  "license": "MIT",
6
6
  "bin": {