@agimon-ai/po-auth-server 0.0.2-alpha.2 → 0.0.2-alpha.4

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.
Files changed (2) hide show
  1. package/README.md +7 -34
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -177,7 +177,7 @@ claim cross-object atomicity. Deletion cancels personal-org allocation/materiali
177
177
  queues the existing purge job. Host-side purge and in-flight materialization need coordinated
178
178
  idempotent handling; production alarm delivery and full cloud deletion remain Worker verification.
179
179
 
180
- Types are exported from the package root and `apiContracts`. No dependency changes are required.
180
+ Types are exported from the package root and `apiContracts`.
181
181
  Registry migration 4 adds provisioning tables and repairs the monotonic epoch update trigger when
182
182
  opening older v2 databases that did not have it. SQLite upgrade tests preserve v2 devices, hubs and
183
183
  pending outbox data. The purge consumer is a host port. Until wired, purge jobs remain pending durably.
@@ -185,44 +185,17 @@ No purge SLA, roster cadence or emergency JWKS-cache bound is invented here.
185
185
  Calling-host roster authority and destination authorization remain separate phases. Apple exchange/revocation tests use fake HTTP providers. Real providers, native
186
186
  Apple return, deployment, production quotas and provider key rotation remain unverified.
187
187
 
188
- ## Phase-1 local evidence
188
+ ## Verification boundary
189
189
 
190
- Final checks in the multihost worktree:
190
+ Protocol tests exercise Node SQLite and workerd DO SQLite with delivery, scheduling and time injected. They do not establish real provider behavior, email deliverability, native push, production alarm delivery across eviction, issuer-to-host synchronization, or end-to-end native QR attestation. Production quotas and bundle/startup budgets require deployment-specific verification; an earlier composed Worker dry run exceeded the 3 MiB compressed free-worker ceiling.
191
+
192
+ Run current package checks from the repository root:
191
193
 
192
194
  ```sh
193
- NX_DAEMON=false pnpm nx run-many -p @agimon-ai/po-auth-server @agimon-ai/po-cloudflare @agimon-ai/po-core @agimon-ai/po-web-security @agimon-ai/po -t lint,typecheck,build --parallel=1 --output-style=static
194
- NX_DAEMON=false pnpm nx run @agimon-ai/po-cloudflare:test --maxWorkers=1 --output-style=static
195
- NX_DAEMON=false pnpm nx run-many -p @agimon-ai/po-auth-server @agimon-ai/po-core @agimon-ai/po-web-security @agimon-ai/po -t test --parallel=1 --output-style=static
196
- pnpm --filter @agimon-ai/po-cloudflare exec wrangler deploy --dry-run --outdir .wrangler/identity-bundle
195
+ pnpm exec nx run-many -t lint typecheck build test -p @agimon-ai/po-auth-server
197
196
  ```
198
197
 
199
- All listed Nx targets passed. Full test counts: identity 11, Cloudflare 64, core 1,981, security 126,
200
- CLI 962 passed with one existing skipped test. A parallel run hit the already documented isolate
201
- memory-test duration bound; the isolated rerun and full single-worker Cloudflare suite passed.
202
- No isolate code, assertions or time bounds were changed. Worktree-local vibe-lint preflight,
203
- including `po-edge-portable`, and `git diff --check` passed.
204
-
205
- Wrangler 4.150.0 reported total upload **13,553.00 KiB raw, 3,129.00 KiB gzip**. The main emitted
206
- `worker.js` was **13,375,137 raw bytes, 2,969,373 gzip bytes**; total upload also includes WASM.
207
- This is the composed Po Worker, including identity and SAML, not the smaller Better Auth and SAML spikes.
208
- It exceeds a 3 MiB compressed free-worker ceiling. Paid-plan limits, deployment, CPU/startup
209
- budgets and actual production-provider behavior were not verified. Dry-run artifacts remain ignored.
210
-
211
- ## Phase-2 verification boundary
212
-
213
- Focused protocol tests cover signed approval chains, forgery/expiry/replay refusal, owned-hub
214
- attestation admission, one-use recovery codes, software assurance, org-only admin recovery,
215
- monotonic epochs, stale/invalid grant epochs, email and device cancellation, exact 72-hour
216
- completion and restart. A shared fixture runs the real KDF and signature/envelope helpers on
217
- both Node SQLite and workerd DO SQLite, with only delivery, scheduling and time injected.
218
- The hub-store tests cover account-association round trips, durable claims and approval chains,
219
- and recovered-device owner denial until QR. A diagnostic spy checks no recovery address is logged.
220
-
221
- Real email deliverability, the native push adapter, production DO alarm delivery across eviction,
222
- production issuer-to-hub authority synchronization and end-to-end native QR attestation remain
223
- unverified. No dependency or lockfile changes are needed by this protocol implementation.
224
-
225
- ## Network roster issuer (phase 5)
198
+ ## Network roster issuer
226
199
 
227
200
  - `GET /api/auth/roster-metadata` publishes `{issuer, rosterPublicKey}`. The key is base64url DER
228
201
  P-256 SPKI, not PEM. Claim-time discovery must fetch it from the already trusted issuer and pin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agimon-ai/po-auth-server",
3
- "version": "0.0.2-alpha.2",
3
+ "version": "0.0.2-alpha.4",
4
4
  "description": "Po auth server: sign-in, teams, device trust, recovery, rosters and delegated tokens for Node and Cloudflare hosts",
5
5
  "keywords": [
6
6
  "ai",
@@ -48,8 +48,8 @@
48
48
  "access": "public"
49
49
  },
50
50
  "dependencies": {
51
- "@agimon-ai/po-core": "0.0.0-alpha.160",
52
- "@agimon-ai/po-web-security": "0.0.0-alpha.160",
51
+ "@agimon-ai/po-core": "0.0.0-alpha.162",
52
+ "@agimon-ai/po-web-security": "0.0.0-alpha.162",
53
53
  "@better-auth/expo": "1.7.12",
54
54
  "@better-auth/passkey": "1.7.12",
55
55
  "@better-auth/sso": "1.7.12",
@@ -59,8 +59,8 @@
59
59
  "jose": "6.2.2"
60
60
  },
61
61
  "devDependencies": {
62
- "@agimon-ai/po-network": "0.0.2-alpha.107",
63
- "@agimon-ai/vibe-lint-plugin-po-core": "0.0.0-alpha.160",
62
+ "@agimon-ai/po-network": "0.0.2-alpha.109",
63
+ "@agimon-ai/vibe-lint-plugin-po-core": "0.0.0-alpha.162",
64
64
  "@types/node": "26.4.1",
65
65
  "tsdown": "0.23.0",
66
66
  "typescript": "7.0.2",