@danypops/vehicle-core 0.13.0 → 0.13.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.
@@ -41,6 +41,8 @@ export interface VehicleApprovalOutcome {
41
41
  readonly decision: VehicleApprovalDecision;
42
42
  readonly decidedAt: number;
43
43
  readonly decidedBy?: string;
44
+ /** Optional human rationale captured by a rich HITL presenter. */
45
+ readonly comment?: string;
44
46
  }
45
47
  /**
46
48
  * The real authority behind an approvalCapability -- replaces today's
@@ -53,6 +53,7 @@ const resolvedPayloadSchema = defineVehicleSchema({
53
53
  decision: { type: "string", enum: ["granted", "denied"] },
54
54
  decidedAt: { type: "number" },
55
55
  decidedBy: { type: "string" },
56
+ comment: { type: "string" },
56
57
  },
57
58
  required: ["requestId", "decision", "decidedAt"],
58
59
  additionalProperties: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danypops/vehicle-core",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Vehicle's runtime-neutral wire contract: operation descriptors, schema codecs, failure shapes. Zero runtime dependencies, zero Bun-specific code -- the one thing every Vehicle client and server package depends on.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -48,6 +48,8 @@ export interface VehicleApprovalOutcome {
48
48
  readonly decision: VehicleApprovalDecision;
49
49
  readonly decidedAt: number;
50
50
  readonly decidedBy?: string;
51
+ /** Optional human rationale captured by a rich HITL presenter. */
52
+ readonly comment?: string;
51
53
  }
52
54
 
53
55
  /**
@@ -106,6 +108,7 @@ const resolvedPayloadSchema = defineVehicleSchema<VehicleApprovalOutcome>({
106
108
  decision: { type: "string", enum: ["granted", "denied"] },
107
109
  decidedAt: { type: "number" },
108
110
  decidedBy: { type: "string" },
111
+ comment: { type: "string" },
109
112
  },
110
113
  required: ["requestId", "decision", "decidedAt"],
111
114
  additionalProperties: true,