@tokenoftrust/storefront-runner 7.6.6 → 7.6.7
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.
|
@@ -14,8 +14,10 @@
|
|
|
14
14
|
* - the ROLE-GATED routes in {@link AGENT_ROLE_ROUTES}, each only while the agent's
|
|
15
15
|
* grant roles name that route's role: the PII-blind order reads (`admin:read`) and
|
|
16
16
|
* the fulfil-by-id operation (`orders:fulfil-by-id`, which tot20 still decides per
|
|
17
|
-
* call),
|
|
18
|
-
* handlers project an agent's view; the gate only
|
|
17
|
+
* call), the stock levels and movement history reads, and the supplier and purchase
|
|
18
|
+
* order reads (`admin:read`). Those handlers project an agent's view; the gate only
|
|
19
|
+
* admits. No purchasing write is reachable: an agent never creates, sends or receives
|
|
20
|
+
* a purchase order through a route.
|
|
19
21
|
*
|
|
20
22
|
* Everything else — every other `/api` route (so no derived credential such as the
|
|
21
23
|
* CLI sign-in code or the activity-ingest token), `/admin`, `/cockpit`, `/dev`,
|
|
@@ -46,6 +48,10 @@ export const AGENT_ROLE_ROUTES: ReadonlyArray<{ method: string; path: string; ro
|
|
|
46
48
|
{ method: "GET", path: "/api/admin/inventory/history", role: ADMIN_READ_ROLE },
|
|
47
49
|
{ method: "GET", path: "/api/admin/inventory/stocktakes", role: ADMIN_READ_ROLE },
|
|
48
50
|
{ method: "GET", path: "/api/admin/inventory/stocktakes/:id", role: ADMIN_READ_ROLE },
|
|
51
|
+
{ method: "GET", path: "/api/admin/purchasing/suppliers", role: ADMIN_READ_ROLE },
|
|
52
|
+
{ method: "GET", path: "/api/admin/purchasing/suppliers/:id", role: ADMIN_READ_ROLE },
|
|
53
|
+
{ method: "GET", path: "/api/admin/purchasing/orders", role: ADMIN_READ_ROLE },
|
|
54
|
+
{ method: "GET", path: "/api/admin/purchasing/orders/:id", role: ADMIN_READ_ROLE },
|
|
49
55
|
{ method: "POST", path: "/api/admin/fulfillment/fulfil-by-id", role: ORDERS_FULFIL_BY_ID_ROLE },
|
|
50
56
|
];
|
|
51
57
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenoftrust/storefront-runner",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.7",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"description": "World-shareable storefront runner: multi-tenant renderer on Astro/Cloudflare. No control plane.",
|
|
6
6
|
"packageManager": "pnpm@11.9.0",
|