@absolutejs/mcp 0.21.0 → 0.22.0

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.
@@ -1,5 +1,10 @@
1
1
  import type { McpToolRegistry } from "./types";
2
2
  export type ActionReview = {
3
+ /** Complete action-specific terms; adapters bind these to the reviewed revision. */
4
+ details?: Array<{
5
+ label: string;
6
+ value: string;
7
+ }>;
3
8
  maxCredits?: number;
4
9
  /** Set by the tool factory from the available confirmation capability. */
5
10
  canConfirm?: boolean;
package/docs/mcp-apps.md CHANGED
@@ -142,3 +142,16 @@ The shared App displays the hold, charge ceiling and uncertain-outcome behavior
142
142
  before approval, then carries the budget unchanged to confirmation. Job results
143
143
  may show projected `creditUsage` (work ID, maximum, charged amount and reserved or
144
144
  settled state). Read/resume/refresh never reserve, settle or retry execution.
145
+
146
+ ### Action-specific approval terms
147
+
148
+ `ActionReview.details` carries bounded, labeled terms such as a calendar's exact
149
+ start/end times, target calendar and conference choice. Both structured/text
150
+ results and the shared review App include every term. Labels and values render
151
+ as text. The adapter must bind these terms to `revision` and use the same terms
152
+ at execution; the App cannot validate a provider-specific action for it.
153
+
154
+ An adapter may return `canConfirm: false` for an individual action even when it
155
+ implements confirmation for other kinds. The factory preserves that restriction
156
+ and still enforces the adapter's general capability and explicit prepaid budget.
157
+ The adapter must independently reject disabled kinds at confirmation time.
package/package.json CHANGED
@@ -90,5 +90,5 @@
90
90
  "canary:checkout": "bun canary/checkout.ts"
91
91
  },
92
92
  "types": "./dist/src/index.d.ts",
93
- "version": "0.21.0"
93
+ "version": "0.22.0"
94
94
  }