v2 platform foundation (docs 01/02/03): Action Runtime + Registry + unified API

- v2 foundation: ActionResult/DevError/ActorContext/ResourceRef/Execution types
- ActionRegistry + ResourceRegistry (namespaced types, FAIL FAST on duplicates)
- ActionRuntime pipeline: validate -> authorize -> middleware -> handler ->
  output validation -> audit -> event -> execution persisted (devos_action_executions)
- Legacy bridge: v1 services registered as devops.*/core.* resources & actions (47 actions, 9 resources)
- Unified Action API: POST /api/v2/actions/:actionId, GET discovery (actions/resources)
- 10 v2 unit tests (registry fail-fast, validation, authz, failure audit, events)
This commit is contained in:
phptits
2026-09-10 21:09:44 +00:00
parent 0d6cd37579
commit b1f17cf637
30 changed files with 60110 additions and 3 deletions
+3 -2
View File
@@ -11,7 +11,7 @@
"build": "bun run build:packages && bun run build:api && bun run build:web",
"build:packages": "bunx tsc -p packages/types/tsconfig.json && bunx tsc -p packages/auth/tsconfig.json && bunx tsc -p packages/api-client/tsconfig.json",
"build:api": "bunx tsc -p apps/api/tsconfig.build.json",
"build:web": "bun build apps/web/index.html --outdir apps/web/dist --public-path=/ --production",
"build:web": "bun build apps/web/index.html --outdir apps/web/dist --public-path=/ --minify --production",
"dev:api": "bunx tsc -w -p apps/api/tsconfig.json",
"dev:api:run": "bun --watch apps/api/dist/main.js",
"dev:web": "bun --hot apps/web/index.html",
@@ -30,6 +30,7 @@
"@types/node": "^24.0.0",
"bun-types": "^1.4.2",
"prisma": "^6.10.0",
"typescript": "^5.8.0"
"typescript": "^5.8.0",
"zod": "^4.6.1"
}
}