primitive-admin 1.1.0-alpha.63 → 1.1.0-alpha.64
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/assets/skill/skills/primitive-platform/SKILL.md +7 -6
- package/dist/src/commands/analytics.js +5 -15
- package/dist/src/commands/analytics.js.map +1 -1
- package/dist/src/commands/database-types.js +13 -313
- package/dist/src/commands/database-types.js.map +1 -1
- package/dist/src/commands/llm.js +9 -6
- package/dist/src/commands/llm.js.map +1 -1
- package/dist/src/commands/settings.d.ts +12 -9
- package/dist/src/commands/settings.js +31 -79
- package/dist/src/commands/settings.js.map +1 -1
- package/dist/src/lib/generated-workflow-model-fields.d.ts +20 -0
- package/dist/src/lib/generated-workflow-model-fields.js +53 -0
- package/dist/src/lib/generated-workflow-model-fields.js.map +1 -0
- package/dist/src/lib/swift-codegen/generator.d.ts +11 -2
- package/dist/src/lib/swift-codegen/generator.js +177 -2
- package/dist/src/lib/swift-codegen/generator.js.map +1 -1
- package/dist/src/lib/workflow-codegen/generator.js +3 -3
- package/dist/src/lib/workflow-codegen/generator.js.map +1 -1
- package/dist/src/lib/workflow-codegen/invokerIR.d.ts +11 -0
- package/dist/src/lib/workflow-codegen/invokerIR.js +5 -0
- package/dist/src/lib/workflow-codegen/invokerIR.js.map +1 -1
- package/dist/src/lib/workflow-field-descriptor.d.ts +91 -0
- package/dist/src/lib/workflow-field-descriptor.js +153 -0
- package/dist/src/lib/workflow-field-descriptor.js.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../src/lib/workflow-codegen/generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AAEH,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EACL,0BAA0B,GAE3B,MAAM,qCAAqC,CAAC;AAC7C,O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AO,CAAC,MAAM,EAAE,CAAC;QACnC,MAAM,QAAQ,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ;YAAE,SAAS,CAAC,8BAA8B;QACvD,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CACxB,MAAM,EACN,GAAG,QAAQ,CAAC,GAAG,GAAG,qBAAqB,EAAE,CAC1C,CAAC;QACF,YAAY,CAAC,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;IAED,OAAO,MAAM,0BAA0B,CAAC;QACtC,SAAS,EAAE,MAAM;QACjB,YAAY;QACZ,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,0EAA0E;QAC1E,2EAA2E;QAC3E,aAAa,EAAE,OAAO,CAAC,cAAc,KAAK,IAAI;QAC9C,eAAe,EAAE,qBAAqB;KACvC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -61,6 +61,17 @@ export interface WorkflowInvokerIR {
|
|
|
61
61
|
* renderer reparses the TOML for it.
|
|
62
62
|
*/
|
|
63
63
|
requiresClientApply: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Whether the input schema is a plain object (`type: "object"`). Only an
|
|
66
|
+
* object-shaped input can be partialized, which is what each renderer's
|
|
67
|
+
* cron-trigger `rootInput` decision turns on: TS types it
|
|
68
|
+
* `Partial<<Key>Input>` (an `inputMapping` may supply the rest) and leaves
|
|
69
|
+
* Swift's — which has no `Partial<>` — an open `JSONValue`; anything else
|
|
70
|
+
* (schema-less / union / scalar / array) binds the full `<Key>Input` on both.
|
|
71
|
+
* Decided ONCE here (#2806) so the two renderers cannot disagree about which
|
|
72
|
+
* inputs are partializable.
|
|
73
|
+
*/
|
|
74
|
+
inputIsObjectShaped: boolean;
|
|
64
75
|
/** Parsed input schema, or `undefined` when absent. */
|
|
65
76
|
inputSchema: unknown;
|
|
66
77
|
/** Parsed output schema, or `undefined` when absent. */
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
import { parseConfigToml } from "../config-toml.js";
|
|
23
23
|
import { safeJsonParse } from "../workflow-payload.js";
|
|
24
24
|
import { schemaRejectsEmptyObject } from "./schemaToTs.js";
|
|
25
|
+
import { describeSchema } from "./generated-schema-descriptor.js";
|
|
25
26
|
import { INTERNAL_WORKFLOW_KEY_PREFIX, isPlatformOwnedWorkflowKey, } from "../platform-owned.js";
|
|
26
27
|
// Re-export so existing importers of these codegen symbols keep working; the
|
|
27
28
|
// single source of truth is now `../platform-owned.js` (#1660), shared with the
|
|
@@ -64,6 +65,10 @@ export function describeWorkflowInvoker(source) {
|
|
|
64
65
|
// server applies when it decides whether a completed run needs a client
|
|
65
66
|
// apply. An absent key means apply-mode.
|
|
66
67
|
requiresClientApply: workflow.requiresClientApply !== false,
|
|
68
|
+
// Object-shaped only when the schema declares exactly `type: "object"` —
|
|
69
|
+
// the one case a cron `rootInput` may legitimately be partial.
|
|
70
|
+
inputIsObjectShaped: inputSchema !== undefined &&
|
|
71
|
+
describeSchema(inputSchema).singularType === "object",
|
|
67
72
|
inputSchema,
|
|
68
73
|
outputSchema,
|
|
69
74
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invokerIR.js","sourceRoot":"","sources":["../../../../src/lib/workflow-codegen/invokerIR.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EACL,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,sBAAsB,CAAC;AAE9B,6EAA6E;AAC7E,gFAAgF;AAChF,qEAAqE;AACrE,OAAO,EAAE,4BAA4B,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"invokerIR.js","sourceRoot":"","sources":["../../../../src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E,oEAAoE;QACpE,aAAa,EACX,WAAW,KAAK,SAAS,IAAI,wBAAwB,CAAC,WAAW,CAAC;QACpE,2EAA2E;QAC3E,wEAAwE;QACxE,yCAAyC;QACzC,mBAAmB,EAAE,QAAQ,CAAC,mBAAmB,KAAK,KAAK;QAC3D,yEAAyE;QACzE,+DAA+D;QAC/D,mBAAmB,EACjB,WAAW,KAAK,SAAS;YACzB,cAAc,CAAC,WAAW,CAAC,CAAC,YAAY,KAAK,QAAQ;QACvD,WAAW;QACX,YAAY;KACb,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Classification of the `WorkflowDefinition` field surface (issue #2326,
|
|
3
|
+
* Phase 1 of #1976).
|
|
4
|
+
*
|
|
5
|
+
* Purpose: give the CLI a mechanical trip-wire for the drift that keeps
|
|
6
|
+
* happening — the server grows a `[workflow]`-level config field (`syncCallable`
|
|
7
|
+
* #807, `accessRule` #571, `runAs` #1081, `capabilities` #1172, `lock` #1518)
|
|
8
|
+
* and the CLI silently drops it on `sync push` / `sync pull`. Every field of the
|
|
9
|
+
* `WorkflowDefinition` model must appear in exactly one of the three groups
|
|
10
|
+
* below. The generated artifact `generated-workflow-model-fields.ts` carries the
|
|
11
|
+
* model's real field list (parsed from `models.yaml` at build time), and
|
|
12
|
+
* `cli/tests/unit/workflow-field-descriptor-drift-guard.test.ts` asserts
|
|
13
|
+
*
|
|
14
|
+
* synced ∪ structural ∪ internal === the model's fields
|
|
15
|
+
*
|
|
16
|
+
* so a new field hard-fails the guard until someone classifies it.
|
|
17
|
+
*
|
|
18
|
+
* ── Scope: declarative classification and coverage ONLY ──────────────────
|
|
19
|
+
* Decision of record (#1976, 2026-07-23): this table records WHICH fields
|
|
20
|
+
* exist, whether each is synced / structural / internal, and its `[workflow]`
|
|
21
|
+
* TOML key. Anything with real BEHAVIOR gets an explicit per-field handler or
|
|
22
|
+
* stays outside the table. In particular this file deliberately does NOT encode
|
|
23
|
+
* as boolean knobs:
|
|
24
|
+
* - the schema fields' native-TOML-table-vs-JSON-string parsing
|
|
25
|
+
* (`buildWorkflowPayloadFromToml` / `safeJsonParse` own that),
|
|
26
|
+
* - `syncCallable`'s deferred second PATCH on update (#807 — `applyWorkflowBody`
|
|
27
|
+
* owns that),
|
|
28
|
+
* - the `metadataManifest` (#1304) and `expr.cel` (#1614) structural side
|
|
29
|
+
* channels, which are attached alongside the steps write and are not
|
|
30
|
+
* `[workflow]`-table keys at all.
|
|
31
|
+
* `cli/src/lib/app-settings-descriptor.ts` is the shape being matched:
|
|
32
|
+
* deliberately narrow.
|
|
33
|
+
*
|
|
34
|
+
* ── What Phase 1 does and does not do ───────────────────────────────────
|
|
35
|
+
* Phase 1 (this file) is the guard only. Making the push builder
|
|
36
|
+
* (`workflow-payload.ts`) and the pull serializer (`serializeWorkflow` in
|
|
37
|
+
* `commands/sync.ts`) *consume* this table is Phase 2 (#2327).
|
|
38
|
+
* `synced` therefore means "belongs in the `[workflow]` TOML table", NOT
|
|
39
|
+
* "already round-trips" — see `SYNCED_NOT_YET_WIRED` below.
|
|
40
|
+
*/
|
|
41
|
+
/** Value shape of a synced `[workflow]` key. Descriptive; behavior lives in the handlers. */
|
|
42
|
+
export type WorkflowFieldType = "string" | "number" | "boolean" | "string[]" | "json";
|
|
43
|
+
export interface WorkflowFieldDescriptor {
|
|
44
|
+
/** `WorkflowDefinition` model field name === the server payload key. */
|
|
45
|
+
field: string;
|
|
46
|
+
/** Key under the `[workflow]` table in workflow TOML (usually === `field`). */
|
|
47
|
+
tomlKey: string;
|
|
48
|
+
/** Value shape, for the Phase 2 handlers and for documentation. */
|
|
49
|
+
type: WorkflowFieldType;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* The author-facing `[workflow]`-table config fields — the ones a workflow
|
|
53
|
+
* author manages as code and the CLI must round-trip.
|
|
54
|
+
*/
|
|
55
|
+
export declare const WORKFLOW_FIELD_DESCRIPTOR: readonly WorkflowFieldDescriptor[];
|
|
56
|
+
/**
|
|
57
|
+
* Fields that ARE author-controlled but do not live in the `[workflow]` table —
|
|
58
|
+
* they travel through their own structural channel. Kept distinct from
|
|
59
|
+
* `WORKFLOW_FIELDS_INTERNAL` so "internal" keeps meaning "not author-facing".
|
|
60
|
+
*/
|
|
61
|
+
export declare const WORKFLOW_FIELDS_STRUCTURAL: ReadonlySet<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Fields the server owns: identity, ownership, timestamps, computed pointers,
|
|
64
|
+
* and the deprecated draft/revision slot. None of these are ever sent by the
|
|
65
|
+
* CLI, and none belong in workflow TOML.
|
|
66
|
+
*/
|
|
67
|
+
export declare const WORKFLOW_FIELDS_INTERNAL: ReadonlySet<string>;
|
|
68
|
+
/**
|
|
69
|
+
* Synced fields the CLI does NOT round-trip yet — Phase 2 (#2327) wires them.
|
|
70
|
+
* Recorded explicitly so "classified" is never mistaken for "implemented".
|
|
71
|
+
* `lock` was wired by #1972; `templateMissingMarker` was removed from the
|
|
72
|
+
* platform by #2643, so the set is now empty.
|
|
73
|
+
*/
|
|
74
|
+
export declare const SYNCED_NOT_YET_WIRED: ReadonlySet<string>;
|
|
75
|
+
/** Descriptor `field` names, for coverage/parity checks. */
|
|
76
|
+
export declare const WORKFLOW_SYNCED_FIELDS: ReadonlySet<string>;
|
|
77
|
+
/** Look up a synced field's descriptor by model field name. */
|
|
78
|
+
export declare function getWorkflowFieldDescriptor(field: string): WorkflowFieldDescriptor | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Model fields that are classified in NONE of synced / structural / internal —
|
|
81
|
+
* i.e. a field someone added to `models.yaml` without deciding how the CLI
|
|
82
|
+
* treats it. Non-empty is a hard failure in the drift guard.
|
|
83
|
+
*/
|
|
84
|
+
export declare function findUnclassifiedWorkflowFields(modelFields: readonly string[]): string[];
|
|
85
|
+
/**
|
|
86
|
+
* Classifications that no longer correspond to a model field — i.e. a field
|
|
87
|
+
* removed from `models.yaml` while the CLI still classifies it. Also a hard
|
|
88
|
+
* failure: a stale classification must not silently pass, or the coverage
|
|
89
|
+
* claim quietly stops meaning anything.
|
|
90
|
+
*/
|
|
91
|
+
export declare function findStaleWorkflowClassifications(modelFields: readonly string[]): string[];
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Classification of the `WorkflowDefinition` field surface (issue #2326,
|
|
3
|
+
* Phase 1 of #1976).
|
|
4
|
+
*
|
|
5
|
+
* Purpose: give the CLI a mechanical trip-wire for the drift that keeps
|
|
6
|
+
* happening — the server grows a `[workflow]`-level config field (`syncCallable`
|
|
7
|
+
* #807, `accessRule` #571, `runAs` #1081, `capabilities` #1172, `lock` #1518)
|
|
8
|
+
* and the CLI silently drops it on `sync push` / `sync pull`. Every field of the
|
|
9
|
+
* `WorkflowDefinition` model must appear in exactly one of the three groups
|
|
10
|
+
* below. The generated artifact `generated-workflow-model-fields.ts` carries the
|
|
11
|
+
* model's real field list (parsed from `models.yaml` at build time), and
|
|
12
|
+
* `cli/tests/unit/workflow-field-descriptor-drift-guard.test.ts` asserts
|
|
13
|
+
*
|
|
14
|
+
* synced ∪ structural ∪ internal === the model's fields
|
|
15
|
+
*
|
|
16
|
+
* so a new field hard-fails the guard until someone classifies it.
|
|
17
|
+
*
|
|
18
|
+
* ── Scope: declarative classification and coverage ONLY ──────────────────
|
|
19
|
+
* Decision of record (#1976, 2026-07-23): this table records WHICH fields
|
|
20
|
+
* exist, whether each is synced / structural / internal, and its `[workflow]`
|
|
21
|
+
* TOML key. Anything with real BEHAVIOR gets an explicit per-field handler or
|
|
22
|
+
* stays outside the table. In particular this file deliberately does NOT encode
|
|
23
|
+
* as boolean knobs:
|
|
24
|
+
* - the schema fields' native-TOML-table-vs-JSON-string parsing
|
|
25
|
+
* (`buildWorkflowPayloadFromToml` / `safeJsonParse` own that),
|
|
26
|
+
* - `syncCallable`'s deferred second PATCH on update (#807 — `applyWorkflowBody`
|
|
27
|
+
* owns that),
|
|
28
|
+
* - the `metadataManifest` (#1304) and `expr.cel` (#1614) structural side
|
|
29
|
+
* channels, which are attached alongside the steps write and are not
|
|
30
|
+
* `[workflow]`-table keys at all.
|
|
31
|
+
* `cli/src/lib/app-settings-descriptor.ts` is the shape being matched:
|
|
32
|
+
* deliberately narrow.
|
|
33
|
+
*
|
|
34
|
+
* ── What Phase 1 does and does not do ───────────────────────────────────
|
|
35
|
+
* Phase 1 (this file) is the guard only. Making the push builder
|
|
36
|
+
* (`workflow-payload.ts`) and the pull serializer (`serializeWorkflow` in
|
|
37
|
+
* `commands/sync.ts`) *consume* this table is Phase 2 (#2327).
|
|
38
|
+
* `synced` therefore means "belongs in the `[workflow]` TOML table", NOT
|
|
39
|
+
* "already round-trips" — see `SYNCED_NOT_YET_WIRED` below.
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* The author-facing `[workflow]`-table config fields — the ones a workflow
|
|
43
|
+
* author manages as code and the CLI must round-trip.
|
|
44
|
+
*/
|
|
45
|
+
export const WORKFLOW_FIELD_DESCRIPTOR = [
|
|
46
|
+
{ field: "name", tomlKey: "name", type: "string" },
|
|
47
|
+
{ field: "status", tomlKey: "status", type: "string" },
|
|
48
|
+
{ field: "description", tomlKey: "description", type: "string" },
|
|
49
|
+
// JSON Schema objects. TOML may present them as an inline table OR as a
|
|
50
|
+
// JSON string; the push builder owns that parse (not a knob here).
|
|
51
|
+
{ field: "inputSchema", tomlKey: "inputSchema", type: "json" },
|
|
52
|
+
{ field: "outputSchema", tomlKey: "outputSchema", type: "json" },
|
|
53
|
+
{ field: "perUserMaxRunning", tomlKey: "perUserMaxRunning", type: "number" },
|
|
54
|
+
{ field: "perUserMaxQueued", tomlKey: "perUserMaxQueued", type: "number" },
|
|
55
|
+
{ field: "perAppMaxRunning", tomlKey: "perAppMaxRunning", type: "number" },
|
|
56
|
+
{ field: "perAppMaxQueued", tomlKey: "perAppMaxQueued", type: "number" },
|
|
57
|
+
{ field: "queueTtlSeconds", tomlKey: "queueTtlSeconds", type: "number" },
|
|
58
|
+
{ field: "dequeueOrder", tomlKey: "dequeueOrder", type: "string" },
|
|
59
|
+
{
|
|
60
|
+
field: "requiresClientApply",
|
|
61
|
+
tomlKey: "requiresClientApply",
|
|
62
|
+
type: "boolean",
|
|
63
|
+
},
|
|
64
|
+
// Create-only on the wire (#807: update sends it as a deferred second PATCH
|
|
65
|
+
// once the new steps are live). That sequencing is the payload builder's job.
|
|
66
|
+
{ field: "syncCallable", tomlKey: "syncCallable", type: "boolean" },
|
|
67
|
+
{ field: "accessRule", tomlKey: "accessRule", type: "string" },
|
|
68
|
+
{ field: "runAs", tomlKey: "runAs", type: "string" },
|
|
69
|
+
// #1518/#1972 — declarative run-scoped lock. `[workflow.lock]` inline table
|
|
70
|
+
// on the TOML side, JSON on the wire; validated server-side by
|
|
71
|
+
// `parseWorkflowLock` (decision of record #6: no client-side mirror validator).
|
|
72
|
+
{ field: "lock", tomlKey: "lock", type: "json" },
|
|
73
|
+
// #1078 Tier 1b — StringSetField on the model, string array in TOML/JSON.
|
|
74
|
+
{ field: "capabilities", tomlKey: "capabilities", type: "string[]" },
|
|
75
|
+
];
|
|
76
|
+
/**
|
|
77
|
+
* Fields that ARE author-controlled but do not live in the `[workflow]` table —
|
|
78
|
+
* they travel through their own structural channel. Kept distinct from
|
|
79
|
+
* `WORKFLOW_FIELDS_INTERNAL` so "internal" keeps meaning "not author-facing".
|
|
80
|
+
*/
|
|
81
|
+
export const WORKFLOW_FIELDS_STRUCTURAL = new Set([
|
|
82
|
+
// The workflow's identity. Comes from the TOML file name / `--key`, and is
|
|
83
|
+
// attached by the caller rather than spread from the `[workflow]` table.
|
|
84
|
+
"workflowKey",
|
|
85
|
+
// #1304 — JSON declared-access manifest, derived from the workflow's CEL
|
|
86
|
+
// fields and attached alongside the steps write, not typed by the author.
|
|
87
|
+
"metadataManifest",
|
|
88
|
+
]);
|
|
89
|
+
/**
|
|
90
|
+
* Fields the server owns: identity, ownership, timestamps, computed pointers,
|
|
91
|
+
* and the deprecated draft/revision slot. None of these are ever sent by the
|
|
92
|
+
* CLI, and none belong in workflow TOML.
|
|
93
|
+
*/
|
|
94
|
+
export const WORKFLOW_FIELDS_INTERNAL = new Set([
|
|
95
|
+
// Identity / ownership / timestamps — assigned by the server.
|
|
96
|
+
"workflowId",
|
|
97
|
+
"appId",
|
|
98
|
+
"createdBy",
|
|
99
|
+
"createdAt",
|
|
100
|
+
"modifiedAt",
|
|
101
|
+
// Pointer to the active WorkflowConfiguration — server-computed on publish.
|
|
102
|
+
"activeConfigId",
|
|
103
|
+
// DEPRECATED in models.yaml: the legacy revision + draft slot, kept for
|
|
104
|
+
// migration/backward compatibility. Server-managed; never author-authored.
|
|
105
|
+
"latestRevision",
|
|
106
|
+
"stepsR2Key",
|
|
107
|
+
"draftStepsR2Key",
|
|
108
|
+
"draftInputSchema",
|
|
109
|
+
"draftOutputSchema",
|
|
110
|
+
"draftModifiedAt",
|
|
111
|
+
]);
|
|
112
|
+
/**
|
|
113
|
+
* Synced fields the CLI does NOT round-trip yet — Phase 2 (#2327) wires them.
|
|
114
|
+
* Recorded explicitly so "classified" is never mistaken for "implemented".
|
|
115
|
+
* `lock` was wired by #1972; `templateMissingMarker` was removed from the
|
|
116
|
+
* platform by #2643, so the set is now empty.
|
|
117
|
+
*/
|
|
118
|
+
export const SYNCED_NOT_YET_WIRED = new Set([]);
|
|
119
|
+
/** Descriptor `field` names, for coverage/parity checks. */
|
|
120
|
+
export const WORKFLOW_SYNCED_FIELDS = new Set(WORKFLOW_FIELD_DESCRIPTOR.map((d) => d.field));
|
|
121
|
+
/** Look up a synced field's descriptor by model field name. */
|
|
122
|
+
export function getWorkflowFieldDescriptor(field) {
|
|
123
|
+
return WORKFLOW_FIELD_DESCRIPTOR.find((d) => d.field === field);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Model fields that are classified in NONE of synced / structural / internal —
|
|
127
|
+
* i.e. a field someone added to `models.yaml` without deciding how the CLI
|
|
128
|
+
* treats it. Non-empty is a hard failure in the drift guard.
|
|
129
|
+
*/
|
|
130
|
+
export function findUnclassifiedWorkflowFields(modelFields) {
|
|
131
|
+
return modelFields
|
|
132
|
+
.filter((f) => !WORKFLOW_SYNCED_FIELDS.has(f) &&
|
|
133
|
+
!WORKFLOW_FIELDS_STRUCTURAL.has(f) &&
|
|
134
|
+
!WORKFLOW_FIELDS_INTERNAL.has(f))
|
|
135
|
+
.sort();
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Classifications that no longer correspond to a model field — i.e. a field
|
|
139
|
+
* removed from `models.yaml` while the CLI still classifies it. Also a hard
|
|
140
|
+
* failure: a stale classification must not silently pass, or the coverage
|
|
141
|
+
* claim quietly stops meaning anything.
|
|
142
|
+
*/
|
|
143
|
+
export function findStaleWorkflowClassifications(modelFields) {
|
|
144
|
+
const known = new Set(modelFields);
|
|
145
|
+
return [
|
|
146
|
+
...WORKFLOW_SYNCED_FIELDS,
|
|
147
|
+
...WORKFLOW_FIELDS_STRUCTURAL,
|
|
148
|
+
...WORKFLOW_FIELDS_INTERNAL,
|
|
149
|
+
]
|
|
150
|
+
.filter((f) => !known.has(f))
|
|
151
|
+
.sort();
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=workflow-field-descriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-field-descriptor.js","sourceRoot":"","sources":["../../../src/lib/workflow-field-descriptor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAmBH;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAuC;IAC3E,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;IAClD,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;IACtD,EAAE,KAAK,EAAE,aAAa,EAAE,OAA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