@axiom-lattice/protocols 7.1.0 → 7.3.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,5 @@
1
1
 
2
- > @axiom-lattice/protocols@7.1.0 build /home/runner/work/agentic/agentic/packages/protocols
2
+ > @axiom-lattice/protocols@7.3.0 build /home/runner/work/agentic/agentic/packages/protocols
3
3
  > tsup src/index.ts --format cjs,esm --dts --sourcemap
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,13 +8,13 @@
8
8
  CLI Target: es2020
9
9
  CJS Build start
10
10
  ESM Build start
11
- CJS dist/index.js 55.30 KB
12
- CJS dist/index.js.map 226.11 KB
13
- CJS ⚡️ Build success in 662ms
14
- ESM dist/index.mjs 48.98 KB
15
- ESM dist/index.mjs.map 221.76 KB
16
- ESM ⚡️ Build success in 692ms
11
+ CJS dist/index.js 62.11 KB
12
+ CJS dist/index.js.map 261.32 KB
13
+ CJS ⚡️ Build success in 780ms
14
+ ESM dist/index.mjs 54.38 KB
15
+ ESM dist/index.mjs.map 256.37 KB
16
+ ESM ⚡️ Build success in 819ms
17
17
  DTS Build start
18
- DTS ⚡️ Build success in 20853ms
19
- DTS dist/index.d.ts 291.89 KB
20
- DTS dist/index.d.mts 291.89 KB
18
+ DTS ⚡️ Build success in 20846ms
19
+ DTS dist/index.d.ts 320.88 KB
20
+ DTS dist/index.d.mts 320.88 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,184 @@
1
1
  # @axiom-lattice/protocols
2
2
 
3
+ ## 7.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e5dd58b: Add Admin Center management for the full gateway rate-limit policy matrix.
8
+ Platform admins can set per-policy `limit` and `enabled` overrides (except the
9
+ read-only `platform.ops.write` guard), reset one policy to its deployment
10
+ default, and browse policies as EntityList list rows with human-readable
11
+ titles and descriptions. Add
12
+ `GET /api/platform/rate-limits` and `client.platform.rateLimits()`. Window and
13
+ dimension limits remain deployment-owned. The previous unshipped flattened
14
+ Admin Center fields are removed; `rateLimits.policies` is the only platform
15
+ format. No new store or migration.
16
+ - 2554b78: Add personal-assistant-scoped MCP server configs in their own data domain.
17
+ Configs live in a dedicated `lattice_personal_mcp_server_configs` /
18
+ `lt_personal_mcp_configs` table (PG v220) keyed by
19
+ `(tenantId, ownerAssistantId, key)`, so tenant listings, tenant export/import,
20
+ startup restore, and older replicas never read them. A new
21
+ `/api/personal-mcp-servers` route family resolves the caller's personal
22
+ assistant server-side (no client-supplied assistant id) and returns 404 on
23
+ replicas that predate it rather than falling back to tenant CRUD.
24
+
25
+ Personal MCP tools register into a per-assistant tool bucket and are mounted
26
+ automatically only for the owning assistant, with personal keys shadowing the
27
+ same tenant key and tenant tools still available as fallback. Connections are
28
+ established lazily on the first assistant build, bounded by a sync budget, and
29
+ cross-replica invalidation rides a separate `personal-mcp-config-changed`
30
+ outbox topic that older replicas ignore. Deleting a personal assistant or an
31
+ assistant purges its personal MCP configs and runtime.
32
+
33
+ The MCP drawer now takes an `apiBasePath`, and the personal assistant page
34
+ opens it against the personal routes. Tool selection is reconciled onto the
35
+ live tool list so servers that rename tools each session no longer lose the
36
+ saved selection; the tools endpoint returns the reconciled `selectedTools`, and
37
+ the tools modal gains select-all/deselect-all controls.
38
+
39
+ - 1a4f8fa: Add an append-only platform audit foundation. Admin Center platform mutations are
40
+ captured with the real human initiator, source, route, target tenant, redacted
41
+ request/response, status, and duration. The audit store is available in InMemory, Local
42
+ SQLite, and PostgreSQL, with `GET /api/platform/audit` and client SDK methods.
43
+ - cb411cc: Add a platform-owned model provider catalog under the reserved `__platform__`
44
+ namespace, stored in the existing encrypted model-provider store. Resolution is
45
+ all-or-nothing: a tenant with providers uses only its own models, a tenant with
46
+ none falls back to the platform catalog, and only an empty platform catalog
47
+ falls through to the deployment environment.
48
+
49
+ Platform admins manage the catalog from Admin Center → Settings → Model
50
+ Providers (auditor is read-only). The platform catalog's last provider is
51
+ deletable so the deployment fallback stays reachable, and platform catalog
52
+ mutations are captured by the platform audit hook.
53
+
54
+ - a43e635: Add the read-only Platform Ops Agent. A hidden `__platform__` tenant owns a
55
+ fixed `platform-ops` agent (feature-flagged by `PLATFORM_OPS_AGENT_ENABLED`,
56
+ default off) with read-only platform tools, private per-initiator Ops threads
57
+ and SSE streaming under `/api/platform/ops`, a typed `client.platform.ops`
58
+ surface, and an Admin Center Ops page placed after Overview. There are no write
59
+ tools or playbooks in this release.
60
+ - 9107769: Add role-inherited Platform Ops Agent write tools and high-risk playbooks.
61
+ Owners and admins can create/update/delete platform users, grant roles, manage
62
+ invitations/invite links/tenants/members, configure OIDC providers, resolve SSO
63
+ claims, patch settings, and update branding; auditors stay read-only, owner-role
64
+ changes require an owner, and the hidden `__platform__` tenant is protected.
65
+ Every write is audited with the human initiator and the Ops Agent
66
+ thread/tool executor. High-risk operations raise a HITL `confirm` interrupt and execute only after
67
+ the user approves them. The old private Ops thread/message/SSE routes,
68
+ `platformOpsConfirmation` store/service, PG v220 migration, confirm/cancel
69
+ routes, and custom `OpsAgentPanel`/`OpsToolCard` were removed; only
70
+ `/api/platform/ops/config` remains. The Admin Center Ops page now reuses the
71
+ standard `LatticeChat`/AgentRun stack (including the embedded chat sidebar for
72
+ New Thread and History). Platform scope only opens the standard chat route
73
+ families for the fixed `platform-ops` assistant after re-checking the live
74
+ platform role (including the legacy Admin Center `/api/users`, `/api/tenants`,
75
+ and `/api/oidc-providers` routes). Ops threads/runs use a fixed internal **sandbox** workspace/project (with filesystem middleware) inside the hidden
76
+ platform tenant, preserving normal workspace/project thread isolation. The
77
+ signed console session is the tenant authority, not a client-supplied header. A real-Gateway Playwright spec covers the
78
+ platform Ops chat, HITL confirm/resume, and the resulting playbook audit row.
79
+ Ops gains a read-only `ops_list_audit` tool with filters and bounded pagination.
80
+ List tools accept bounded `limit` values, and writes share a per-user
81
+ `platform.ops.write` rate limit (60/minute) that returns
82
+ `PLATFORM_OPS_RATE_LIMITED` and records the refusal in the audit log. Tool
83
+ failures now consistently use `{ success:false, error:{ code, message } }`.
84
+
85
+ ### Patch Changes
86
+
87
+ - b3a3428: Fix setting one tenant default model clearing the defaults of the other kinds.
88
+ The flag is scoped per `(tenant, kind)`, but the model panel wrote back the
89
+ provider's whole model set and flagged every non-selected row `false`, so
90
+ saving the chat default dropped the embedding (and ASR) default. The panel now
91
+ clears only same-kind siblings and omits the field for other kinds, which the
92
+ server reads as "keep the stored flag". The provider model endpoint's
93
+ validation likewise accepts one default per kind in a single write.
94
+
95
+ ## 7.2.0
96
+
97
+ ### Minor Changes
98
+
99
+ - f29edad: Add the Admin Center platform-management surface, durable platform settings,
100
+ opaque invite links, enterprise SSO follow-ups, and domain branding.
101
+
102
+ - **Admin Center:** grouped navigation (Access/Tenancy/Identity/Settings),
103
+ full-width responsive shell, Overview attention cards + health + stats,
104
+ redesigned People, Platform Roles, Invite Links, Tenants, Tenant Members,
105
+ OIDC Providers, and Settings pages with shared Admin Center primitives.
106
+ Settings is split into three direct writable menu entries (Authentication,
107
+ Rate Limits & Quotas, Branding) instead of an in-page tab set; the read-only
108
+ environment view lives in Overview.
109
+ - **Platform settings:** PostgreSQL-backed auth/invite/rate-limit/quota/branding
110
+ settings with env fallback, version CAS, outbox invalidation, 30s refresh,
111
+ read-only Overview environment, and multi-replica readiness.
112
+ - **Invite links:** opaque, encrypted-at-rest links with expiry/max uses/revoke;
113
+ platform role links always require admin approval, tenant member auto-join
114
+ only with email-bound IdP-verified email; revoke cancels pending claims.
115
+ - **SSO follow-ups:** optional default tenant, private-host allowlists, email
116
+ completion claims, pending SSO review, and SSO avatar metadata.
117
+ - **Domain branding:** platform default + exact-host domain overrides, public
118
+ `GET /api/branding`, Admin Center Branding tab, login/register/invite brand
119
+ application, workspace domain theme inheritance, and tenant primary-color
120
+ override.
121
+ - **Security hardening:** platform guards fail closed; email-less completion and
122
+ public branding/invite routes are explicitly public; owner fallback/owner
123
+ target protections; last-owner checks; SSRF allowlist and metadata rejection;
124
+ rate-limit precedence; claim approval leases/rollback; avatar URL validation.
125
+
126
+ - 0ad828b: Add generic OIDC console login with Azure Entra ID support, external identity
127
+ binding, JIT pending users, platform roles, a separate Platform Admin app, and
128
+ platform-scoped provider configuration.
129
+
130
+ - `@axiom-lattice/auth-oidc`: authorization-code + PKCE + nonce via
131
+ `openid-client` v6, Azure `oid`/`sub` claim mapping, signed state cookie,
132
+ endpoint SSRF validation, config parsing, and per-provider `providerId` state.
133
+ - `@axiom-lattice/protocols` / `@axiom-lattice/core`: auth provider and external
134
+ identity store contracts, provider registry, identity mapping (issuer-scoped
135
+ keys, verified-email-only auto-link, JIT pending), in-memory identity store,
136
+ the OIDC provider config store contract + encrypted in-memory store, and the
137
+ `PlatformMemberStore` contract + in-memory store with `owner`/`admin`/
138
+ `auditor` roles.
139
+ - `@axiom-lattice/local-stores` / `@axiom-lattice/pg-stores`: external identity,
140
+ OIDC provider config, and platform member stores; PostgreSQL migrations v209
141
+ (`lattice_user_identities`), v210 (`lower(email)` unique index), v211
142
+ (`lattice_oidc_provider_configs`, encrypted client secret), and v212
143
+ (`lattice_platform_members`).
144
+ - `@axiom-lattice/gateway`: multi-provider OIDC routes, one-time 60-second
145
+ handoff/exchange, platform-role CRUD/test APIs for store providers, runtime
146
+ registry with env `oidc` fallback, `PlatformBootstrapService` +
147
+ `PlatformAccessService` (owner/admin/auditor) replacing env-only checks on
148
+ approval/user/tenant/OIDC surfaces, `/api/platform/*` member and tenant
149
+ assignment APIs, OIDC rate limits, and fail-closed deployment checks.
150
+ - `@axiom-lattice/client-sdk`: `client.oidcProviders` list/create/update/
151
+ delete/test/testStored and `client.platform` me/members/tenant-assignment
152
+ methods with types.
153
+ - `@axiom-lattice/react-sdk`: provider discovery, SSO button labeled with the
154
+ provider display name, `/auth/callback` bootstrap, pending/error notices, the
155
+ write-only OIDC provider panel, and the separate `/platform-admin` app with
156
+ Overview, Platform Users, Tenants, Tenant Assignments, and OIDC Providers.
157
+ OIDC Providers is removed from the tenant workspace menu.
158
+
159
+ - 0ad828b: SSO-only deployments and platform invitations.
160
+
161
+ - `@axiom-lattice/gateway`: `AUTH_LOCAL_ENABLED` / `AUTH_BREAK_GLASS_EMAILS`
162
+ disable password login, registration, and password changes while keeping an
163
+ audited, env-only break-glass escape hatch. `PlatformSsoBootstrapService`
164
+ claims the first platform owner from a verified SSO login (issuer + subject >
165
+ group > email) with no local password, serialized by the
166
+ `platform-bootstrap` lease. `PlatformInvitationService` invites normalized
167
+ emails: existing active users are granted immediately, everyone else gets a
168
+ pending invitation claimed on the first verified SSO login before identity
169
+ mapping (consume-before-grant, per-email lease, owner-only owner invitations,
170
+ `PLATFORM_INVITATION_TRUST_EMAIL` off by default).
171
+ - `@axiom-lattice/protocols` / `@axiom-lattice/core` /
172
+ `@axiom-lattice/local-stores` / `@axiom-lattice/pg-stores`: platform
173
+ invitation store contract + InMemory/Local/PostgreSQL implementations and PG
174
+ migration v213 (`lattice_platform_invitations`).
175
+ - `@axiom-lattice/client-sdk`: `client.platform.listInvitations()` /
176
+ `revokeInvitation(email)` and the `{ member?, invitation? }` grant result.
177
+ - `@axiom-lattice/react-sdk`: Platform Users loads and revokes pending
178
+ invitations, distinguishes "invited" from "granted", exposes SSO-only /
179
+ break-glass login states, and keeps owner invitations owner-only. Invited
180
+ users need no tenant membership to use `/platform-admin`.
181
+
3
182
  ## 7.1.0
4
183
 
5
184
  ### Minor Changes