@happyvertical/smrt-approvals 0.62.4 → 0.62.5
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.
- package/README.md +9 -0
- package/agents/approvals.md +6 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +104 -13
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +2 -1
- package/dist/mcp-gate.d.ts +61 -0
- package/dist/mcp-gate.d.ts.map +1 -0
- package/dist/permissions.d.ts +2 -0
- package/dist/permissions.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +7 -5
- package/dist/smrt-knowledge.okf.md +3 -2
- package/package.json +8 -7
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-approvals",
|
|
5
|
-
"packageVersion": "0.62.
|
|
5
|
+
"packageVersion": "0.62.5",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-approvals:ApprovalEventCollection": {
|
|
8
8
|
"name": "approvaleventcollection",
|
|
@@ -2070,6 +2070,7 @@
|
|
|
2070
2070
|
}
|
|
2071
2071
|
],
|
|
2072
2072
|
"smrtDependencies": [
|
|
2073
|
+
"@happyvertical/smrt-app-mcp",
|
|
2073
2074
|
"@happyvertical/smrt-core",
|
|
2074
2075
|
"@happyvertical/smrt-tenancy",
|
|
2075
2076
|
"@happyvertical/smrt-users"
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Adapter that lets `@happyvertical/smrt-app-mcp` gate `confirmTools` calls on
|
|
3
|
+
* a person's approval (#5087, slice 5 of #3716).
|
|
4
|
+
*
|
|
5
|
+
* The object returned by {@link createApprovalMcpGate} satisfies app-mcp's
|
|
6
|
+
* structural `McpApprovalGate` interface; neither package imports the other,
|
|
7
|
+
* so the dependency graph stays acyclic. Wire it as the MCP server's
|
|
8
|
+
* `approvals` option.
|
|
9
|
+
*
|
|
10
|
+
* The calling principal is only ever a REQUESTER and CONSUMER here. It is
|
|
11
|
+
* mapped to a principal that holds no permission, so even if it were handed to
|
|
12
|
+
* `ApprovalService.decide` the service would refuse it (`not_human`,
|
|
13
|
+
* `self_approval`, `forbidden`). Deciding happens in the host's own approval
|
|
14
|
+
* UI or API, by a human principal other than the requester.
|
|
15
|
+
*
|
|
16
|
+
* @packageDocumentation
|
|
17
|
+
*/
|
|
18
|
+
import type { ApprovalService } from './service.js';
|
|
19
|
+
import { type ApprovalKind } from './types.js';
|
|
20
|
+
/** Permission slug a person needs to decide an MCP tool-call approval. */
|
|
21
|
+
export declare const APPROVE_MCP_TOOL_CALL_PERMISSION = "approvals.approve-mcp-tool";
|
|
22
|
+
/** The default kind of an MCP tool-call approval. */
|
|
23
|
+
export declare const mcpToolCallKind: ApprovalKind;
|
|
24
|
+
/** Structural copy of app-mcp's gate request. */
|
|
25
|
+
export interface ApprovalMcpGateRequest {
|
|
26
|
+
tool: string;
|
|
27
|
+
tenantId: string;
|
|
28
|
+
principalId: string;
|
|
29
|
+
principalKind: string | null;
|
|
30
|
+
bindingHash: string;
|
|
31
|
+
requestKey: string;
|
|
32
|
+
summary: string;
|
|
33
|
+
}
|
|
34
|
+
/** Structural copy of app-mcp's gate result. */
|
|
35
|
+
export type ApprovalMcpGateResult = {
|
|
36
|
+
state: 'approved';
|
|
37
|
+
} | {
|
|
38
|
+
state: 'pending';
|
|
39
|
+
approvalId?: string;
|
|
40
|
+
created: boolean;
|
|
41
|
+
} | {
|
|
42
|
+
state: 'refused';
|
|
43
|
+
reason: string;
|
|
44
|
+
};
|
|
45
|
+
/** Options for {@link createApprovalMcpGate}. */
|
|
46
|
+
export interface ApprovalMcpGateOptions {
|
|
47
|
+
service: ApprovalService;
|
|
48
|
+
/** Override the approval kind (a tenant may want more approvers). */
|
|
49
|
+
kind?: ApprovalKind;
|
|
50
|
+
/** Clock override for deterministic tests; match the service's clock. */
|
|
51
|
+
now?: () => Date;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Build the `approvals` adapter for `createMcpAppServer`. `check` opens an
|
|
55
|
+
* idempotent request per binding, returns `pending` until a person approves,
|
|
56
|
+
* then consumes the approval (single use) and answers `approved`.
|
|
57
|
+
*/
|
|
58
|
+
export declare function createApprovalMcpGate(options: ApprovalMcpGateOptions): {
|
|
59
|
+
check(request: ApprovalMcpGateRequest): Promise<ApprovalMcpGateResult>;
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=mcp-gate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-gate.d.ts","sourceRoot":"","sources":["../src/mcp-gate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EACL,KAAK,YAAY,EAIlB,MAAM,YAAY,CAAC;AAEpB,0EAA0E;AAC1E,eAAO,MAAM,gCAAgC,+BAA8B,CAAC;AAE5E,qDAAqD;AACrD,eAAO,MAAM,eAAe,EAAE,YAK5B,CAAC;AAKH,iDAAiD;AACjD,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,gDAAgD;AAChD,MAAM,MAAM,qBAAqB,GAC7B;IAAE,KAAK,EAAE,UAAU,CAAA;CAAE,GACrB;IAAE,KAAK,EAAE,SAAS,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GAC3D;IAAE,KAAK,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzC,iDAAiD;AACjD,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,eAAe,CAAC;IACzB,qEAAqE;IACrE,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,yEAAyE;IACzE,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;CAClB;AAsBD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,sBAAsB,GAAG;IACtE,KAAK,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACxE,CAoEA"}
|
package/dist/permissions.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ import { type PermissionDefinition } from '@happyvertical/smrt-users';
|
|
|
11
11
|
export declare const CANCEL_ANY_APPROVAL_PERMISSION = "approvals.cancel-any";
|
|
12
12
|
/** Write tenant approval policy rows (tighten-only). */
|
|
13
13
|
export declare const MANAGE_APPROVAL_POLICY_PERMISSION = "approvals.manage-policy";
|
|
14
|
+
/** Decide an approval for a gated MCP tool call (humans only). */
|
|
15
|
+
export declare const APPROVE_MCP_TOOL_PERMISSION = "approvals.approve-mcp-tool";
|
|
14
16
|
/** Catalog definitions for the package-wide slugs. */
|
|
15
17
|
export declare const APPROVAL_PERMISSION_DEFINITIONS: PermissionDefinition[];
|
|
16
18
|
/** Register the package slugs (returns an unregister function for tests). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../src/permissions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,2BAA2B,CAAC;AAEnC,kDAAkD;AAClD,eAAO,MAAM,8BAA8B,yBAAyB,CAAC;AAErE,wDAAwD;AACxD,eAAO,MAAM,iCAAiC,4BAA4B,CAAC;AAE3E,sDAAsD;AACtD,eAAO,MAAM,+BAA+B,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../src/permissions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,2BAA2B,CAAC;AAEnC,kDAAkD;AAClD,eAAO,MAAM,8BAA8B,yBAAyB,CAAC;AAErE,wDAAwD;AACxD,eAAO,MAAM,iCAAiC,4BAA4B,CAAC;AAE3E,kEAAkE;AAClE,eAAO,MAAM,2BAA2B,+BAA+B,CAAC;AAExE,sDAAsD;AACtD,eAAO,MAAM,+BAA+B,EAAE,oBAAoB,EAsBjE,CAAC;AAIF,6EAA6E;AAC7E,wBAAgB,2BAA2B,IAAI,MAAM,IAAI,CAExD;AAED,+EAA+E;AAC/E,wBAAgB,mCAAmC,IAAI,IAAI,CAI1D"}
|
package/dist/smrt-knowledge.json
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"sensitiveFieldsExcluded": true,
|
|
4
4
|
"generatedAt": "1970-01-01T00:00:00.000Z",
|
|
5
5
|
"packageName": "@happyvertical/smrt-approvals",
|
|
6
|
-
"packageVersion": "0.62.
|
|
6
|
+
"packageVersion": "0.62.5",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "490a497fb41e0a56adff67f39f2e7d376a95a4f5bc4755d2105b1053eac2da80",
|
|
11
|
+
"packageJson": "6b8aefcf3d374b54aa4fc062d3e2d6b6d61a6defd9f21a6ff08b305d6b2877bc",
|
|
12
12
|
"agents": "aba637bcff50dd513fd0d2039af397b317cc27e708285aa10d5645e57c08eb53",
|
|
13
|
-
"moduleDoc:agents/approvals.md": "
|
|
13
|
+
"moduleDoc:agents/approvals.md": "705f2c49bf5c93cb90a843eac6dafb1c802b3cfc69a73e13c72496be74f181bc"
|
|
14
14
|
},
|
|
15
15
|
"exports": [
|
|
16
16
|
".",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"@happyvertical/smrt-tenancy": "workspace:*",
|
|
23
23
|
"@happyvertical/smrt-users": "workspace:*",
|
|
24
24
|
"@happyvertical/sql": "catalog:",
|
|
25
|
+
"@happyvertical/smrt-app-mcp": "workspace:*",
|
|
25
26
|
"@happyvertical/smrt-scanner": "workspace:*",
|
|
26
27
|
"@happyvertical/smrt-types": "workspace:*",
|
|
27
28
|
"@happyvertical/smrt-vitest": "workspace:*",
|
|
@@ -31,6 +32,7 @@
|
|
|
31
32
|
"vitest": "4.1.10"
|
|
32
33
|
},
|
|
33
34
|
"smrtDependencies": [
|
|
35
|
+
"@happyvertical/smrt-app-mcp",
|
|
34
36
|
"@happyvertical/smrt-core",
|
|
35
37
|
"@happyvertical/smrt-scanner",
|
|
36
38
|
"@happyvertical/smrt-tenancy",
|
|
@@ -789,7 +791,7 @@
|
|
|
789
791
|
{
|
|
790
792
|
"path": "agents/approvals.md",
|
|
791
793
|
"module": "approvals",
|
|
792
|
-
"content": "# Approvals: transitions, concurrency, and scope\n\nDesign source: the accepted recommendation on smrt#3716. This file records\nthe slice-1 contract (#3741) and what later slices add.\n\n## States and transitions\n\n```\npending --approve (distinct approvers reach quorum)--> approved\napproved --consume (hash matches, unexpired)---------> approved + consumedAt\npending --reject | request_changes-------------------> rejected | changes_requested\npending --cancel (requester or approvals.cancel-any)-> cancelled\npending | approved(unconsumed) --expire (deadline)---> expired\n```\n\n`changes_requested` is terminal in slice 1: the requester opens a new request\nfor the new revision (a new `subjectRevisionHash`). There is no resubmit.\n\nEach transition in `src/service.ts`:\n\n1. Validates input and the principal (`id`, UUID `tenantId`, `type`, `can`).\n2. Refuses a principal whose tenant differs from an active tenant context.\n3. Opens a transaction through core's `withEmbeddedWriteTransaction(db,\n isEmbeddedDatabase(db), fn)`. On embedded engines (SQLite, DuckDB, libsql)\n it takes the embedded write queue for the database first, then the\n adapter's connection lock; the event insert and change-feed append inside\n re-enter that hold. The reverse order (a raw `db.transaction()`) deadlocks\n against an unrelated NULL-tenant save, which holds the queue and then\n opens its own write transaction, until the 30 s transaction-queue timeout,\n and lets other root writes land inside the transaction. The queue also\n serializes transitions per database, so no separate chain exists.\n PostgreSQL is not queued: each transaction gets its own pooled connection.\n4. Reads the request through a transaction-bound collection with an explicit\n `tenantId` filter, and classifies refusals from that read.\n5. Runs the guarded UPDATE with the version it read. Zero rows: the\n transaction body returns `retry`, nothing was written, and the loop starts\n again from a fresh read (up to `maxAttempts`, then `contention`).\n6. Inserts the event with `sequence` = the returned version and appends a\n change-feed entry (the raw UPDATE bypasses save hooks).\n7. Re-reads the request after commit on the service connection.\n\nOn PostgreSQL the UPDATE takes the row lock; under READ COMMITTED a waiting\nUPDATE re-evaluates `version = ?` after the winner commits, so it matches\nnothing. Unique keys `(request_id, sequence)` and `(request_id, vote_key)`\nare a second line: a violation aborts the attempt and it retries.\n\n`consume({ transaction })` runs steps 4 to 6 on the caller's open\ntransaction, once, without retry or serialization; the caller owns commit.\nOn embedded engines that handle must come from `withEmbeddedWriteTransaction`\nor `SmrtObject.withTransaction()`, never a raw `db.transaction()`, for the\nlock-order reason in step 3.\n\n## Raw SQL boundaries\n\nThe guarded UPDATEs are the only raw SQL. They bind every value (no literal\nUUIDs or empty strings), validate the request id as a UUID first, and name\n`tenant_id`. Reads and inserts go through collections so tenancy\ninterceptors, UUID columns, and the change feed behave as for any model.\n\n## Service-only write capability\n\nOnly `ApprovalService` inserts `ApprovalRequest` and `ApprovalEvent` rows\n(events only in the same transaction as the guarded UPDATE they record). It passes the\nmodule-private `SERVICE_WRITE` symbol (`src/write-capability.ts`, not a public\nexport) as a constructor option; the model records that instance in a\n`WeakSet` and refuses, in `save()` and `validateBeforeSave()`, any insert\nwithout it, and any minted insert that does not start pending, undecided,\nand unconsumed. `new ApprovalRequest({ status: 'approved' }).save()`,\n`ApprovalRequestCollection.create(...)`, and a forged `approved` event\n(which would otherwise count toward quorum) are refused and write nothing. A\nsymbol never arrives from JSON, so REST and MCP input cannot carry it (the\nsmrt-reports `runtime-report.ts` pattern). It guards the in-process API,\nnot raw SQL.\n\n`consume` re-checks the ledger before consuming (defence in depth against a\nstatus written around the service): the `created` event at sequence 1, no\nterminal event, and `approved` events from at least `requiredApprovals`\ndistinct human actors; requester events count only with `selfApproved: true`\nand a valid `selfApprovalPermission` audit slug. Otherwise it refuses\n`unbacked_approval`. Quorum counting in `decide` applies the same filter.\n\n## Out of scope here (later slices of #3716)\n\n- Slice 2: Svelte inbox, panel, decision bar; `approvals.requests` recipe.\n- Slice 3: notification adapter (`UserNotificationService.notify`, sourceRef\n `approval:<id>:<event>`), profiles `AuditLog` mirror, expiry and reminder\n job calling `expireDue`.\n- Slice 4: adopters (social, personas, content, subscriptions).\n- Slice 5: agent
|
|
794
|
+
"content": "# Approvals: transitions, concurrency, and scope\n\nDesign source: the accepted recommendation on smrt#3716. This file records\nthe slice-1 contract (#3741) and what later slices add.\n\n## States and transitions\n\n```\npending --approve (distinct approvers reach quorum)--> approved\napproved --consume (hash matches, unexpired)---------> approved + consumedAt\npending --reject | request_changes-------------------> rejected | changes_requested\npending --cancel (requester or approvals.cancel-any)-> cancelled\npending | approved(unconsumed) --expire (deadline)---> expired\n```\n\n`changes_requested` is terminal in slice 1: the requester opens a new request\nfor the new revision (a new `subjectRevisionHash`). There is no resubmit.\n\nEach transition in `src/service.ts`:\n\n1. Validates input and the principal (`id`, UUID `tenantId`, `type`, `can`).\n2. Refuses a principal whose tenant differs from an active tenant context.\n3. Opens a transaction through core's `withEmbeddedWriteTransaction(db,\n isEmbeddedDatabase(db), fn)`. On embedded engines (SQLite, DuckDB, libsql)\n it takes the embedded write queue for the database first, then the\n adapter's connection lock; the event insert and change-feed append inside\n re-enter that hold. The reverse order (a raw `db.transaction()`) deadlocks\n against an unrelated NULL-tenant save, which holds the queue and then\n opens its own write transaction, until the 30 s transaction-queue timeout,\n and lets other root writes land inside the transaction. The queue also\n serializes transitions per database, so no separate chain exists.\n PostgreSQL is not queued: each transaction gets its own pooled connection.\n4. Reads the request through a transaction-bound collection with an explicit\n `tenantId` filter, and classifies refusals from that read.\n5. Runs the guarded UPDATE with the version it read. Zero rows: the\n transaction body returns `retry`, nothing was written, and the loop starts\n again from a fresh read (up to `maxAttempts`, then `contention`).\n6. Inserts the event with `sequence` = the returned version and appends a\n change-feed entry (the raw UPDATE bypasses save hooks).\n7. Re-reads the request after commit on the service connection.\n\nOn PostgreSQL the UPDATE takes the row lock; under READ COMMITTED a waiting\nUPDATE re-evaluates `version = ?` after the winner commits, so it matches\nnothing. Unique keys `(request_id, sequence)` and `(request_id, vote_key)`\nare a second line: a violation aborts the attempt and it retries.\n\n`consume({ transaction })` runs steps 4 to 6 on the caller's open\ntransaction, once, without retry or serialization; the caller owns commit.\nOn embedded engines that handle must come from `withEmbeddedWriteTransaction`\nor `SmrtObject.withTransaction()`, never a raw `db.transaction()`, for the\nlock-order reason in step 3.\n\n## Raw SQL boundaries\n\nThe guarded UPDATEs are the only raw SQL. They bind every value (no literal\nUUIDs or empty strings), validate the request id as a UUID first, and name\n`tenant_id`. Reads and inserts go through collections so tenancy\ninterceptors, UUID columns, and the change feed behave as for any model.\n\n## Service-only write capability\n\nOnly `ApprovalService` inserts `ApprovalRequest` and `ApprovalEvent` rows\n(events only in the same transaction as the guarded UPDATE they record). It passes the\nmodule-private `SERVICE_WRITE` symbol (`src/write-capability.ts`, not a public\nexport) as a constructor option; the model records that instance in a\n`WeakSet` and refuses, in `save()` and `validateBeforeSave()`, any insert\nwithout it, and any minted insert that does not start pending, undecided,\nand unconsumed. `new ApprovalRequest({ status: 'approved' }).save()`,\n`ApprovalRequestCollection.create(...)`, and a forged `approved` event\n(which would otherwise count toward quorum) are refused and write nothing. A\nsymbol never arrives from JSON, so REST and MCP input cannot carry it (the\nsmrt-reports `runtime-report.ts` pattern). It guards the in-process API,\nnot raw SQL.\n\n`consume` re-checks the ledger before consuming (defence in depth against a\nstatus written around the service): the `created` event at sequence 1, no\nterminal event, and `approved` events from at least `requiredApprovals`\ndistinct human actors; requester events count only with `selfApproved: true`\nand a valid `selfApprovalPermission` audit slug. Otherwise it refuses\n`unbacked_approval`. Quorum counting in `decide` applies the same filter.\n\n## Out of scope here (later slices of #3716)\n\n- Slice 2: Svelte inbox, panel, decision bar; `approvals.requests` recipe.\n- Slice 3: notification adapter (`UserNotificationService.notify`, sourceRef\n `approval:<id>:<event>`), profiles `AuditLog` mirror, expiry and reminder\n job calling `expireDue`.\n- Slice 4: adopters (social, personas, content, subscriptions).\n- Slice 5 (shipped, #5087): `createApprovalMcpGate` (`src/mcp-gate.ts`) for\n app-mcp `confirmTools`; kind `mcp.tool.call`, subject id the tool name,\n revision hash the call binding, `requestKey` `mcp:<binding>`. The caller is\n mapped to a permissionless principal; unknown principal kinds are `agent`.\n The snapshot lives in the readonly `summary` (no schema change; a dedicated context column would need a migration); a request in `changes_requested` is refused (rejected too); a consumed or expired binding opens a new request under key `<key>:<epoch>`. The dependency edge is dev-only (app-mcp does not import approvals); keep it\n that way so the graph stays acyclic.\n- Slice 6: #3667 `pending_approval` hand-off.\n\nKnown gaps: listing every holder of a permission needs a users-package\nhelper (for notifications); a vote stays counted if the approver later loses\nthe permission.\n\n## Permission-gated self-decisions\n\nA kind may opt in with `selfApprovalPermission: 'content.approve-self'`.\nThe requester must be human and hold that permission plus every normal snapshot,\ncurrent kind and tenant-policy decision permission. All three verdicts use this\nallowance. Without the opt-in or grant, `self_approval` remains the refusal.\nSelf-decisions record `selfApproved` and `selfApprovalPermission` on the event;\nordinary events default to false and an empty slug. These fields are service-only,\nnot caller input. Deploy the generated event-column migration before upgrading\nruntime code; existing events default to false/empty and cannot gain self authority.\nLike other votes, an authorized self vote remains counted after permission or kind\nconfiguration changes. It counts once, never bypasses quorum, expiry or tenancy,\nand remains atomic with the guarded transition.\n\nDuckDB deployments on `@happyvertical/sql` 0.103.1 may repeatedly recreate the\nunchanged request/sequence index during migration because index introspection\nretains SQL identifier quotes; see [SDK #1395](https://github.com/happyvertical/sdk/issues/1395).\nThe new audit columns converge and existing ordinary approvals remain consumable.\n"
|
|
793
795
|
}
|
|
794
796
|
],
|
|
795
797
|
"recipes": [
|
|
@@ -5,10 +5,10 @@ description: "Approval decision gate for the SMRT framework: revision-bound, sin
|
|
|
5
5
|
status: "stable"
|
|
6
6
|
generated:
|
|
7
7
|
by: "smrt/scripts/generate-knowledge-okf.ts"
|
|
8
|
-
at: "2026-11-
|
|
8
|
+
at: "2026-11-17T19:31:00Z"
|
|
9
9
|
audience: "internal"
|
|
10
10
|
evidence_level: "source-inspected"
|
|
11
|
-
source_revision: "sha256:
|
|
11
|
+
source_revision: "sha256:50fe3889643c0128ac96e3f56ae60c791225e63ae95a95008f4b4c25f6452d0a"
|
|
12
12
|
sources:
|
|
13
13
|
- id: "manifest"
|
|
14
14
|
resource: "https://github.com/happyvertical/smrt/blob/main/packages/approvals/package.json"
|
|
@@ -37,6 +37,7 @@ sources:
|
|
|
37
37
|
|
|
38
38
|
## Framework dependencies
|
|
39
39
|
|
|
40
|
+
- [smrt-app-mcp](/components/smrt-app-mcp.md)
|
|
40
41
|
- [smrt-core](/components/smrt-core.md)
|
|
41
42
|
- [smrt-scanner](/components/smrt-scanner.md)
|
|
42
43
|
- [smrt-tenancy](/components/smrt-tenancy.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-approvals",
|
|
3
|
-
"version": "0.62.
|
|
3
|
+
"version": "0.62.5",
|
|
4
4
|
"description": "Approval decision gate for the SMRT framework: revision-bound, single-use approvals with quorum, expiry, and an append-only event ledger",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,15 +20,16 @@
|
|
|
20
20
|
"./manifest.json": "./dist/manifest.json"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@happyvertical/smrt-core": "0.62.
|
|
24
|
-
"@happyvertical/smrt-tenancy": "0.62.
|
|
25
|
-
"@happyvertical/smrt-users": "0.62.
|
|
23
|
+
"@happyvertical/smrt-core": "0.62.5",
|
|
24
|
+
"@happyvertical/smrt-tenancy": "0.62.5",
|
|
25
|
+
"@happyvertical/smrt-users": "0.62.5",
|
|
26
26
|
"@happyvertical/sql": "^0.113.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@happyvertical/smrt-
|
|
30
|
-
"@happyvertical/smrt-
|
|
31
|
-
"@happyvertical/smrt-
|
|
29
|
+
"@happyvertical/smrt-app-mcp": "0.62.5",
|
|
30
|
+
"@happyvertical/smrt-scanner": "0.62.5",
|
|
31
|
+
"@happyvertical/smrt-types": "0.62.5",
|
|
32
|
+
"@happyvertical/smrt-vitest": "0.62.5",
|
|
32
33
|
"@types/node": "24.13.6",
|
|
33
34
|
"typescript": "6.0.3",
|
|
34
35
|
"vite": "8.1.6",
|