M16 fase 0 — scrum4me-mcp adopts scrum4me-shared submodule #14

Merged
janpeter merged 3 commits from feat/M16-platform-split-shared-bootstrap into main 2026-05-26 15:10:23 +02:00
Owner

Summary

  • Replace vendor/scrum4me (GitHub mirror) with vendor/scrum4me-shared (Forgejo, canonical)
  • @shared/* path alias added to tsconfig.json and vitest.config.ts
  • src/lib/job-config.ts synced with shared (adds ClaudeJobSnapshotFields + snapshotFromConfig); full shim conversion pending shared-lib update (needs get_agent_guide + Agent)
  • scripts/sync-schema.sh rewired to generate via gen-consumer-schema.sh with URL-strip wrapper (gen-schema.sh)
  • postinstall + new prebuild use the same pipeline

Deviation

Pure re-export shim for job-config.ts deferred: vendor/scrum4me-shared/lib/job-config.ts currently missing get_agent_guide (TASK_TOOLS) and Agent (SPRINT_IMPLEMENTATION) which scrum4me-mcp tests require. Shim conversion unblocked once shared lib is updated.

Test plan

  • typecheck clean
  • npm test green (517 tests, 58 files)
  • prisma generate success
  • vendor/scrum4me removed, vendor/scrum4me-shared added and pinned
## Summary - Replace vendor/scrum4me (GitHub mirror) with vendor/scrum4me-shared (Forgejo, canonical) - @shared/* path alias added to tsconfig.json and vitest.config.ts - src/lib/job-config.ts synced with shared (adds ClaudeJobSnapshotFields + snapshotFromConfig); full shim conversion pending shared-lib update (needs get_agent_guide + Agent) - scripts/sync-schema.sh rewired to generate via gen-consumer-schema.sh with URL-strip wrapper (gen-schema.sh) - postinstall + new prebuild use the same pipeline ## Deviation Pure re-export shim for job-config.ts deferred: vendor/scrum4me-shared/lib/job-config.ts currently missing get_agent_guide (TASK_TOOLS) and Agent (SPRINT_IMPLEMENTATION) which scrum4me-mcp tests require. Shim conversion unblocked once shared lib is updated. ## Test plan - [x] typecheck clean - [x] npm test green (517 tests, 58 files) - [x] prisma generate success - [x] vendor/scrum4me removed, vendor/scrum4me-shared added and pinned
Old vendor/scrum4me was a full GitHub-mirror checkout used only by
sync-schema.sh for the prisma schema. scrum4me-shared provides the same
schema canonically + the shared TS lib that previously lived as a
bewust-duplicate in src/lib/job-config.ts.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Adds @shared/* path alias in tsconfig (→ vendor/scrum4me-shared/lib/*).
Adds same alias in vitest.config.ts for test-time resolution.

src/lib/job-config.ts is updated to stay in sync with the canonical
vendor/scrum4me-shared/lib/job-config.ts: adds ClaudeJobSnapshotFields
and snapshotFromConfig (present in shared but missing here). Marks the
file for future shim conversion once shared lib includes get_agent_guide
+ Agent (currently diverged). The bewuste-duplicaat comment is replaced
with a migration note.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
sync-schema.sh now delegates to scrum4me-shared's gen-consumer-schema.sh
via a thin local wrapper (gen-schema.sh) that strips url= / directUrl=
lines to match this repo's connection-from-env pattern (no URL in schema).

postinstall now regenerates the schema before prisma generate so fresh
installs produce a valid client. New prebuild script does the same
(strict — no || true). prisma/schema.prisma regenerated from shared.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
janpeter/scrum4me-mcp!14
No description provided.