@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.
- package/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +179 -0
- package/dist/index.d.mts +740 -8
- package/dist/index.d.ts +740 -8
- package/dist/index.js +184 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +161 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/AuthProviderProtocol.ts +80 -0
- package/src/InviteLinkStoreProtocol.ts +59 -0
- package/src/McpLatticeProtocol.ts +2 -2
- package/src/McpServerConfigStoreProtocol.ts +118 -0
- package/src/ModelProviderProtocol.ts +20 -4
- package/src/OidcIdentityClaimStoreProtocol.ts +117 -0
- package/src/OidcProviderConfigStoreProtocol.ts +84 -0
- package/src/PlatformAuditProtocol.ts +80 -0
- package/src/PlatformInvitationStoreProtocol.ts +60 -0
- package/src/PlatformMemberStoreProtocol.ts +23 -0
- package/src/PlatformOpsProtocol.ts +73 -0
- package/src/PlatformSettingsProtocol.ts +161 -0
- package/src/SandboxPluginProtocol.ts +1 -1
- package/src/UserExternalIdentityStoreProtocol.ts +53 -0
- package/src/__tests__/AuthProviderProtocol.test.ts +20 -0
- package/src/index.ts +10 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @axiom-lattice/protocols@7.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2020
|
|
9
9
|
[34mCJS[39m Build start
|
|
10
10
|
[34mESM[39m Build start
|
|
11
|
-
[32mCJS[39m [1mdist/index.js [22m[
|
|
12
|
-
[32mCJS[39m [1mdist/index.js.map [22m[
|
|
13
|
-
[32mCJS[39m ⚡️ Build success in
|
|
14
|
-
[32mESM[39m [1mdist/index.mjs [22m[
|
|
15
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[
|
|
16
|
-
[32mESM[39m ⚡️ Build success in
|
|
11
|
+
[32mCJS[39m [1mdist/index.js [22m[32m62.11 KB[39m
|
|
12
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m261.32 KB[39m
|
|
13
|
+
[32mCJS[39m ⚡️ Build success in 780ms
|
|
14
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m54.38 KB[39m
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m256.37 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 819ms
|
|
17
17
|
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
|
19
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
20
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 20846ms
|
|
19
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m320.88 KB[39m
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m320.88 KB[39m
|
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
|