From 2ceaa08944ef2db764429711c5e69a09cf0d8d7d Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Wed, 13 May 2026 10:17:50 +0200 Subject: [PATCH] chore(template-reset): update snapshots, fix lint, rebuild state - Regenerate audit + realtime core-package e2e snapshots (template Phase-label changes altered file hashes) - Fix pre-existing lint error in auth authentication.service.ts: rename unused params to _user / _sessionId, drop stale eslint-disable comments that were on wrong lines - Mark story tasks 1-9 done; rebuild _state.json Co-Authored-By: Claude Opus 4.7 (1M context) --- docs/work/_state.json | 4 ++-- .../01-template-reset/_story.md | 18 +++++++++--------- .../services/authentication.service.ts | 17 ++++++++--------- .../core-package/audit.snapshot.json | 4 ++-- .../core-package/realtime.snapshot.json | 2 +- 5 files changed, 22 insertions(+), 23 deletions(-) diff --git a/docs/work/_state.json b/docs/work/_state.json index 1cc44d5..01b1dda 100644 --- a/docs/work/_state.json +++ b/docs/work/_state.json @@ -1,5 +1,5 @@ { - "updated_at": "2026-05-13T07:43:50.648Z", + "updated_at": "2026-05-13T08:17:52.241Z", "epics": { "template-reset-v1": { "status": "in-progress", @@ -9,7 +9,7 @@ "status": "in-progress", "title": "Strip setup refs + archive history + rename ADR-012", "ac_total": 12, - "ac_completed": 0, + "ac_completed": 9, "depends_on": [], "blocks": [] } diff --git a/docs/work/template-reset-v1/01-template-reset/_story.md b/docs/work/template-reset-v1/01-template-reset/_story.md index 9a7cb98..26415eb 100644 --- a/docs/work/template-reset-v1/01-template-reset/_story.md +++ b/docs/work/template-reset-v1/01-template-reset/_story.md @@ -11,15 +11,15 @@ blocks: [] ## Tasks -- [ ] Story scaffold -- [ ] Create .archive/ + .gitignore entry + README.md -- [ ] Move docs/work// (except \_templates, README, \_state.json, this epic) to .archive/work/ -- [ ] Move docs/superpowers/plans/ to .archive/plans/ -- [ ] Move docs/superpowers/refactor-logs/ to .archive/refactor-logs/ (if exists) -- [ ] Move docs/superpowers/specs/ to .archive/specs/ (if exists) -- [ ] Strip Phase/Plan/R-number references from source comments (packages/**/src, apps/**/src, scripts/, turbo/generators) -- [ ] Strip Lazar references from source comments + docs (CLAUDE.md, AGENTS.md, README.md, runbook, guides, turbo/generators) -- [ ] Rename docs/decisions/adr-012-lazar-conformance.md → adr-012-feature-conventions.md; update content + cross-references +- [x] Story scaffold +- [x] Create .archive/ + .gitignore entry + README.md +- [x] Move docs/work// (except \_templates, README, \_state.json, this epic) to .archive/work/ +- [x] Move docs/superpowers/plans/ to .archive/plans/ +- [x] Move docs/superpowers/refactor-logs/ to .archive/refactor-logs/ (if exists) +- [x] Move docs/superpowers/specs/ to .archive/specs/ (if exists) +- [x] Strip Phase/Plan/R-number references from source comments (packages/**/src, apps/**/src, scripts/, turbo/generators) +- [x] Strip Lazar references from source comments + docs (CLAUDE.md, AGENTS.md, README.md, runbook, guides, turbo/generators) +- [x] Rename docs/decisions/adr-012-lazar-conformance.md → adr-012-feature-conventions.md; update content + cross-references - [ ] Update cli.test.mjs to accept empty docs/work/ state - [ ] Rebuild \_state.json - [ ] Final verification + closeout diff --git a/packages/auth/src/infrastructure/services/authentication.service.ts b/packages/auth/src/infrastructure/services/authentication.service.ts index 50b9be0..1bf6c32 100644 --- a/packages/auth/src/infrastructure/services/authentication.service.ts +++ b/packages/auth/src/infrastructure/services/authentication.service.ts @@ -81,31 +81,30 @@ export class AuthenticationService implements IAuthenticationService { ); } - // TODO:Implement using Payload's local.login / JWT session issuance. + // TODO: Implement using Payload's local.login / JWT session issuance. // Payload creates sessions via its REST auth endpoint; mapping that to a // generic { session: Session; cookie: Cookie } shape requires understanding // the JWT payload structure and the cookie name/attributes Payload uses. - // eslint-disable-next-line @typescript-eslint/no-unused-vars async createSession( - user: User, + _user: User, ): Promise<{ session: Session; cookie: Cookie }> { throw new NotImplementedError("createSession"); } - // TODO:Implement using Payload's JWT verify mechanism. + // TODO: Implement using Payload's JWT verify mechanism. // Need to call Payload's local API to verify the token and retrieve the user. - // eslint-disable-next-line @typescript-eslint/no-unused-vars async validateSession( - sessionId: string, + _sessionId: string, ): Promise<{ user: User; session: Session }> { throw new NotImplementedError("validateSession"); } - // TODO:Implement by clearing the session token. + // TODO: Implement by clearing the session token. // Payload does not have a server-side session store by default; invalidation // is typically done client-side by clearing the cookie. - // eslint-disable-next-line @typescript-eslint/no-unused-vars - async invalidateSession(sessionId: string): Promise<{ blankCookie: Cookie }> { + async invalidateSession( + _sessionId: string, + ): Promise<{ blankCookie: Cookie }> { throw new NotImplementedError("invalidateSession"); } } diff --git a/turbo/generators/__snapshots__/core-package/audit.snapshot.json b/turbo/generators/__snapshots__/core-package/audit.snapshot.json index 1c7a013..a28f30d 100644 --- a/turbo/generators/__snapshots__/core-package/audit.snapshot.json +++ b/turbo/generators/__snapshots__/core-package/audit.snapshot.json @@ -29,7 +29,7 @@ }, { "path": "src/di/bind-audit.ts", - "sha256": "cecc80336488b7af62a915963e9fb4a2a6a0e0a31c5aa178150836b4cb504789" + "sha256": "8f8ddad552e0ae8510b98f5e1d422045e7af56fefcc44312a95181481cb99cf1" }, { "path": "src/di/symbols.ts", @@ -57,7 +57,7 @@ }, { "path": "src/index.ts", - "sha256": "677726cbf5e1f17f0915e8141dbf158ecc87e12342dc188d68154496e333b06b" + "sha256": "1fc3cc9a3c7d80ff5daf9ff9174a3b27a2b4fe8d8b775d73cf15585da0f30f60" }, { "path": "src/integrations/api/procedures.ts", diff --git a/turbo/generators/__snapshots__/core-package/realtime.snapshot.json b/turbo/generators/__snapshots__/core-package/realtime.snapshot.json index be99295..f8f8bb4 100644 --- a/turbo/generators/__snapshots__/core-package/realtime.snapshot.json +++ b/turbo/generators/__snapshots__/core-package/realtime.snapshot.json @@ -1,7 +1,7 @@ [ { "path": "AGENTS.md", - "sha256": "2a9e6bab1f14016d687c20ed4ec5087004cab2c5045aaf4bd0be84e0fe57da4d" + "sha256": "a9b9527c327a4164ee4ffca81727118f3876711c1cf3f0b8f32542d08531ccc3" }, { "path": "eslint.config.js",