@pattern-stack/codegen 0.9.1 → 0.10.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/README.md +5 -0
- package/consumer-skills/bridge/SKILL.md +265 -0
- package/consumer-skills/codegen/SKILL.md +115 -0
- package/consumer-skills/entities/SKILL.md +111 -0
- package/consumer-skills/entities/families-and-queries.md +82 -0
- package/consumer-skills/entities/yaml-reference.md +118 -0
- package/consumer-skills/events/SKILL.md +71 -0
- package/consumer-skills/events/authoring-events.md +164 -0
- package/consumer-skills/events/typed-bus-and-outbox.md +163 -0
- package/consumer-skills/jobs/SKILL.md +66 -0
- package/consumer-skills/jobs/handler-authoring.md +236 -0
- package/consumer-skills/jobs/pools-and-ordering.md +161 -0
- package/consumer-skills/subsystems/SKILL.md +105 -0
- package/consumer-skills/subsystems/wiring-and-order.md +120 -0
- package/consumer-skills/sync/SKILL.md +134 -0
- package/consumer-skills/sync/audit-and-detection.md +302 -0
- package/consumer-skills/sync/change-sources-and-sinks.md +442 -0
- package/dist/runtime/subsystems/bridge/bridge.module.js +3 -0
- package/dist/runtime/subsystems/bridge/bridge.module.js.map +1 -1
- package/dist/runtime/subsystems/bridge/index.js +3 -0
- package/dist/runtime/subsystems/bridge/index.js.map +1 -1
- package/dist/runtime/subsystems/index.js +3 -0
- package/dist/runtime/subsystems/index.js.map +1 -1
- package/dist/runtime/subsystems/jobs/index.js +3 -0
- package/dist/runtime/subsystems/jobs/index.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-run-keyset-cursor.js +3 -0
- package/dist/runtime/subsystems/jobs/job-run-keyset-cursor.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-run-service.drizzle-backend.js +3 -0
- package/dist/runtime/subsystems/jobs/job-run-service.drizzle-backend.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-run-service.memory-backend.js +3 -0
- package/dist/runtime/subsystems/jobs/job-run-service.memory-backend.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-run-service.protocol.d.ts +9 -1
- package/dist/runtime/subsystems/jobs/job-worker.module.js +3 -0
- package/dist/runtime/subsystems/jobs/job-worker.module.js.map +1 -1
- package/dist/runtime/subsystems/jobs/jobs-domain.module.js +3 -0
- package/dist/runtime/subsystems/jobs/jobs-domain.module.js.map +1 -1
- package/dist/src/cli/index.js +913 -405
- package/dist/src/cli/index.js.map +1 -1
- package/dist/src/index.js +26 -4
- package/dist/src/index.js.map +1 -1
- package/package.json +2 -1
- package/runtime/subsystems/jobs/job-run-keyset-cursor.ts +3 -0
- package/runtime/subsystems/jobs/job-run-service.protocol.ts +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pattern-stack/codegen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Entity-driven code generation for full-stack TypeScript applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"dist",
|
|
41
41
|
"runtime",
|
|
42
42
|
"templates",
|
|
43
|
+
"consumer-skills",
|
|
43
44
|
"examples/auth-integrations/**",
|
|
44
45
|
"src/config/*.mjs",
|
|
45
46
|
"src/schema/naming-config.schema.mjs",
|
|
@@ -72,6 +72,9 @@ export function toJobRunSummary(r: JobRunRow): JobRunSummary {
|
|
|
72
72
|
return {
|
|
73
73
|
runId: r.id,
|
|
74
74
|
rootRunId: r.rootRunId,
|
|
75
|
+
parentRunId: r.parentRunId,
|
|
76
|
+
triggerSource: r.triggerSource,
|
|
77
|
+
triggerRef: r.triggerRef,
|
|
75
78
|
jobType: r.jobType,
|
|
76
79
|
pool: r.pool,
|
|
77
80
|
status: r.status,
|
|
@@ -95,11 +95,19 @@ export interface ListJobRunsQuery {
|
|
|
95
95
|
/**
|
|
96
96
|
* Summary row for the `job_run` list (OBS-LIST-1). A narrow projection over
|
|
97
97
|
* `JobRun` carrying the columns a runs viewer renders. `rootRunId` is
|
|
98
|
-
* included so the correlation timeline can stitch runs to events
|
|
98
|
+
* included so the correlation timeline can stitch runs to events; the
|
|
99
|
+
* lineage fields (`parentRunId`, `triggerSource`, `triggerRef`) let a viewer
|
|
100
|
+
* render the run tree and explain why each run was started without a second
|
|
101
|
+
* fetch. `triggerSource` is non-null (the column is `NOT NULL`); the literal
|
|
102
|
+
* union mirrors `job_trigger_source` — `JobRun['triggerSource']` is optional
|
|
103
|
+
* and would admit `undefined`, which this projection never produces.
|
|
99
104
|
*/
|
|
100
105
|
export interface JobRunSummary {
|
|
101
106
|
runId: string;
|
|
102
107
|
rootRunId: string;
|
|
108
|
+
parentRunId: string | null;
|
|
109
|
+
triggerSource: 'manual' | 'schedule' | 'event' | 'parent';
|
|
110
|
+
triggerRef: string | null;
|
|
103
111
|
jobType: string;
|
|
104
112
|
pool: string;
|
|
105
113
|
status: JobRun['status'];
|