primitive-admin 1.0.55 → 1.0.56
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 +230 -2
- package/dist/bin/primitive.js +1 -1
- package/dist/src/commands/database-types.js +4 -4
- package/dist/src/commands/database-types.js.map +1 -1
- package/dist/src/commands/databases.js +5 -5
- package/dist/src/commands/databases.js.map +1 -1
- package/dist/src/commands/documents.js +2 -2
- package/dist/src/commands/documents.js.map +1 -1
- package/dist/src/commands/guides.d.ts +15 -12
- package/dist/src/commands/guides.js +22 -15
- package/dist/src/commands/guides.js.map +1 -1
- package/dist/src/commands/metadata.js +48 -3
- package/dist/src/commands/metadata.js.map +1 -1
- package/dist/src/commands/scripts.d.ts +18 -0
- package/dist/src/commands/scripts.js +59 -5
- package/dist/src/commands/scripts.js.map +1 -1
- package/dist/src/commands/sync-app-settings.d.ts +14 -4
- package/dist/src/commands/sync-app-settings.js +48 -8
- package/dist/src/commands/sync-app-settings.js.map +1 -1
- package/dist/src/commands/sync.d.ts +100 -0
- package/dist/src/commands/sync.js +1578 -402
- package/dist/src/commands/sync.js.map +1 -1
- package/dist/src/commands/workflows.js +23 -6
- package/dist/src/commands/workflows.js.map +1 -1
- package/dist/src/lib/api-client.d.ts +27 -1
- package/dist/src/lib/api-client.js +25 -2
- package/dist/src/lib/api-client.js.map +1 -1
- package/dist/src/lib/app-settings-descriptor.js +4 -0
- package/dist/src/lib/app-settings-descriptor.js.map +1 -1
- package/dist/src/lib/codegen-shared/generatedFiles.d.ts +21 -0
- package/dist/src/lib/codegen-shared/generatedFiles.js +40 -0
- package/dist/src/lib/codegen-shared/generatedFiles.js.map +1 -1
- package/dist/src/lib/codegen-shared/prettierStable.d.ts +262 -0
- package/dist/src/lib/codegen-shared/prettierStable.js +610 -0
- package/dist/src/lib/codegen-shared/prettierStable.js.map +1 -0
- package/dist/src/lib/db-codegen/dbGenerator.js +8 -5
- package/dist/src/lib/db-codegen/dbGenerator.js.map +1 -1
- package/dist/src/lib/db-codegen/dbNaming.d.ts +5 -0
- package/dist/src/lib/db-codegen/dbNaming.js +8 -2
- package/dist/src/lib/db-codegen/dbNaming.js.map +1 -1
- package/dist/src/lib/db-codegen/dbTemplates.d.ts +17 -2
- package/dist/src/lib/db-codegen/dbTemplates.js +85 -40
- package/dist/src/lib/db-codegen/dbTemplates.js.map +1 -1
- package/dist/src/lib/db-codegen/dbTsTypes.d.ts +13 -22
- package/dist/src/lib/db-codegen/dbTsTypes.js +33 -28
- package/dist/src/lib/db-codegen/dbTsTypes.js.map +1 -1
- package/dist/src/lib/db-codegen/generated-operation-def-descriptor.d.ts +11 -0
- package/dist/src/lib/db-codegen/generated-operation-def-descriptor.js +11 -0
- package/dist/src/lib/db-codegen/generated-operation-def-descriptor.js.map +1 -1
- package/dist/src/lib/generated-allowlist.js +7 -0
- package/dist/src/lib/generated-allowlist.js.map +1 -1
- package/dist/src/lib/platform-owned.d.ts +37 -0
- package/dist/src/lib/platform-owned.js +46 -0
- package/dist/src/lib/platform-owned.js.map +1 -0
- package/dist/src/lib/swift-codegen/dbGenerator.d.ts +32 -0
- package/dist/src/lib/swift-codegen/dbGenerator.js +338 -36
- package/dist/src/lib/swift-codegen/dbGenerator.js.map +1 -1
- package/dist/src/lib/swift-codegen/dbSwiftTypes.d.ts +1 -1
- package/dist/src/lib/swift-codegen/dbSwiftTypes.js +1 -1
- package/dist/src/lib/swift-codegen/generator.d.ts +1 -0
- package/dist/src/lib/swift-codegen/generator.js +91 -3
- package/dist/src/lib/swift-codegen/generator.js.map +1 -1
- package/dist/src/lib/swift-codegen/siblingSymbols.d.ts +90 -0
- package/dist/src/lib/swift-codegen/siblingSymbols.js +152 -0
- package/dist/src/lib/swift-codegen/siblingSymbols.js.map +1 -0
- package/dist/src/lib/sync-resource-types.d.ts +222 -10
- package/dist/src/lib/sync-resource-types.js +407 -20
- package/dist/src/lib/sync-resource-types.js.map +1 -1
- package/dist/src/lib/template.d.ts +1 -1
- package/dist/src/lib/template.js +6 -3
- package/dist/src/lib/template.js.map +1 -1
- package/dist/src/lib/toml-metadata-config.js +18 -0
- package/dist/src/lib/toml-metadata-config.js.map +1 -1
- package/dist/src/lib/workflow-apply.js +12 -2
- package/dist/src/lib/workflow-apply.js.map +1 -1
- package/dist/src/lib/workflow-codegen/generator.d.ts +9 -0
- package/dist/src/lib/workflow-codegen/generator.js +126 -55
- package/dist/src/lib/workflow-codegen/generator.js.map +1 -1
- package/dist/src/lib/workflow-codegen/invokerIR.d.ts +6 -8
- package/dist/src/lib/workflow-codegen/invokerIR.js +8 -8
- package/dist/src/lib/workflow-codegen/invokerIR.js.map +1 -1
- package/dist/src/lib/workflow-codegen/schemaToTs.d.ts +17 -1
- package/dist/src/lib/workflow-codegen/schemaToTs.js +59 -38
- package/dist/src/lib/workflow-codegen/schemaToTs.js.map +1 -1
- package/dist/src/lib/workflow-payload.d.ts +19 -0
- package/dist/src/lib/workflow-payload.js +21 -0
- package/dist/src/lib/workflow-payload.js.map +1 -1
- package/dist/src/lib/workflow-toml-validator.d.ts +30 -0
- package/dist/src/lib/workflow-toml-validator.js +206 -0
- package/dist/src/lib/workflow-toml-validator.js.map +1 -1
- package/dist/src/types/index.d.ts +1 -0
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dbTsTypes.js","sourceRoot":"","sources":["../../../../src/lib/db-codegen/dbTsTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;
|
|
1
|
+
{"version":3,"file":"dbTsTypes.js","sourceRoot":"","sources":["../../../../src/lib/db-codegen/dbTsTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EACL,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,eAAe,EACf,KAAK,GAEN,MAAM,qCAAqC,CAAC;AA8B7C;;;;;;GAMG;AACH,MAAM,UA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AC,UAAU,CAAC,CAAC;QACvC,CAAC;aAAM,IAAI,KAAK,EAAE,CAAC;YACjB,uEAAuE;YACvE,qBAAqB;YACrB,IAAI,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAC;QACvC,CAAC;aAAM,CAAC;YACN,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;QACzB,CAAC;QACD,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,CAAC;IACD,IACE,SAAS,KAAK,QAAQ;QACtB,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;QACzB,UAAU,CAAC,MAAM,GAAG,CAAC,EACrB,CAAC;QACD,OAAO,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACvC,CAAC;IACD,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,QAAQ;YACX,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;QACxB,KAAK,QAAQ,CAAC;QACd,KAAK,SAAS;YACZ,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;QACxB,KAAK,SAAS;YACZ,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;QACzB,KAAK,QAAQ;YACX,OAAO,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC7B;YACE,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;AACH,CAAC"}
|
|
@@ -70,6 +70,17 @@ export declare const MUTATION_OPS: readonly string[];
|
|
|
70
70
|
* `operations[]`.
|
|
71
71
|
*/
|
|
72
72
|
export declare const AGGREGATE_OP_TYPES: readonly string[];
|
|
73
|
+
/**
|
|
74
|
+
* Allowed keys on a single nested aggregate op (an entry in an `aggregate`
|
|
75
|
+
* definition's `operations[]`, and in a pipeline `aggregate` step's
|
|
76
|
+
* `operations[]`). Only `type` and `field` are honored by the runtime — the
|
|
77
|
+
* aggregate SELECT always aliases columns to the fixed output names
|
|
78
|
+
* (`count` / `<type>_<field>`), so there is no supported way to rename an
|
|
79
|
+
* output. `outputField` was historically accepted here but read by no code
|
|
80
|
+
* (issue #1767); any key outside this list is now rejected at registration so
|
|
81
|
+
* dead config can't be silently stored.
|
|
82
|
+
*/
|
|
83
|
+
export declare const AGGREGATE_OP_KEYS: readonly string[];
|
|
73
84
|
/**
|
|
74
85
|
* `applyToQuery` action ops. Only mutation ops that operate on existing matched
|
|
75
86
|
* records — `save` is excluded because it makes no sense in a find-and-mutate
|
|
@@ -105,6 +105,17 @@ export const AGGREGATE_OP_TYPES = [
|
|
|
105
105
|
"min",
|
|
106
106
|
"max",
|
|
107
107
|
];
|
|
108
|
+
/**
|
|
109
|
+
* Allowed keys on a single nested aggregate op (an entry in an `aggregate`
|
|
110
|
+
* definition's `operations[]`, and in a pipeline `aggregate` step's
|
|
111
|
+
* `operations[]`). Only `type` and `field` are honored by the runtime — the
|
|
112
|
+
* aggregate SELECT always aliases columns to the fixed output names
|
|
113
|
+
* (`count` / `<type>_<field>`), so there is no supported way to rename an
|
|
114
|
+
* output. `outputField` was historically accepted here but read by no code
|
|
115
|
+
* (issue #1767); any key outside this list is now rejected at registration so
|
|
116
|
+
* dead config can't be silently stored.
|
|
117
|
+
*/
|
|
118
|
+
export const AGGREGATE_OP_KEYS = ["type", "field"];
|
|
108
119
|
/**
|
|
109
120
|
* `applyToQuery` action ops. Only mutation ops that operate on existing matched
|
|
110
121
|
* records — `save` is excluded because it makes no sense in a find-and-mutate
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated-operation-def-descriptor.js","sourceRoot":"","sources":["../../../../src/lib/db-codegen/generated-operation-def-descriptor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,qFAAqF;AACrF,MAAM,CAAC,MAAM,eAAe,GAAsB;IAChD,OAAO;IACP,UAAU;IACV,OAAO;IACP,WAAW;IACX,UAAU;IACV,cAAc;CACf,CAAC;AAEF,4CAA4C;AAE5C,qFAAqF;AACrF,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,MAAM,mBAAmB,GAAsB;IACpD,OAAO;IACP,OAAO;IACP,WAAW;CACZ,CAAC;AAEF,+CAA+C;AAC/C,MAAM,CAAC,MAAM,wBAAwB,GAAsB;IACzD,MAAM;IACN,MAAM;IACN,WAAW;IACX,QAAQ;IACR,MAAM;IACN,OAAO;IACP,YAAY;IACZ,SAAS;CACV,CAAC;AAEF,+CAA+C;AAC/C,MAAM,CAAC,MAAM,wBAAwB,GAAsB;IACzD,MAAM;IACN,MAAM;IACN,WAAW;IACX,QAAQ;CACT,CAAC;AAEF,mDAAmD;AACnD,MAAM,CAAC,MAAM,4BAA4B,GAAsB;IAC7D,MAAM;IACN,MAAM;IACN,WAAW;IACX,SAAS;IACT,YAAY;IACZ,QAAQ;IACR,OAAO;IACP,MAAM;CACP,CAAC;AAEF,2BAA2B;AAE3B;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAsB;IAC5C,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,SAAS;IACT,QAAQ;IACR,OAAO;CACR,CAAC;AAEF,2EAA2E;AAC3E,MAAM,CAAC,MAAM,mBAAmB,GAAsB;IACpD,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,SAAS;CACV,CAAC;AAEF,iDAAiD;AACjD,MAAM,CAAC,MAAM,cAAc,GAAsB;IAC/C,MAAM;IACN,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,OAAO;CACR,CAAC"}
|
|
1
|
+
{"version":3,"file":"generated-operation-def-descriptor.js","sourceRoot":"","sources":["../../../../src/lib/db-codegen/generated-operation-def-descriptor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,qFAAqF;AACrF,MAAM,CAAC,MAAM,eAAe,GAAsB;IAChD,OAAO;IACP,UAAU;IACV,OAAO;IACP,WAAW;IACX,UAAU;IACV,cAAc;CACf,CAAC;AAEF,4CAA4C;AAE5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GAAsB;IAC3D,IAAI;IACJ,MAAM;IACN,QAAQ;IACR,YAAY;CACb,CAAC;AAEF,kCAAkC;AAElC,6EAA6E;AAC7E,MAAM,CAAC,MAAM,mBAAmB,GAAsB;IACpD,OAAO;IACP,OAAO;IACP,WAAW;CACZ,CAAC;AAEF,+CAA+C;AAC/C,MAAM,CAAC,MAAM,wBAAwB,GAAsB;IACzD,MAAM;IACN,MAAM;IACN,WAAW;IACX,QAAQ;IACR,MAAM;IACN,OAAO;IACP,YAAY;IACZ,SAAS;CACV,CAAC;AAEF,+CAA+C;AAC/C,MAAM,CAAC,MAAM,wBAAwB,GAAsB;IACzD,MAAM;IACN,MAAM;IACN,WAAW;IACX,QAAQ;CACT,CAAC;AAEF,mDAAmD;AACnD,MAAM,CAAC,MAAM,4BAA4B,GAAsB;IAC7D,MAAM;IACN,MAAM;IACN,WAAW;IACX,SAAS;IACT,YAAY;IACZ,QAAQ;IACR,OAAO;IACP,MAAM;CACP,CAAC;AAEF,2BAA2B;AAE3B;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAsB;IAC5C,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,SAAS;IACT,QAAQ;IACR,OAAO;CACR,CAAC;AAEF,2EAA2E;AAC3E,MAAM,CAAC,MAAM,mBAAmB,GAAsB;IACpD,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,SAAS;CACV,CAAC;AAEF,iDAAiD;AACjD,MAAM,CAAC,MAAM,cAAc,GAAsB;IAC/C,MAAM;IACN,UAAU;IACV,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,OAAO;CACR,CAAC"}
|
|
@@ -88,10 +88,12 @@ export const GENERATED_ALLOWLISTED_FIELDS = [
|
|
|
88
88
|
"idempotencyKey",
|
|
89
89
|
"includeRoot",
|
|
90
90
|
"includeUserDetails",
|
|
91
|
+
"initialMetadata",
|
|
91
92
|
"input",
|
|
92
93
|
"integrationKey",
|
|
93
94
|
"itemsField",
|
|
94
95
|
"iterationName",
|
|
96
|
+
"key",
|
|
95
97
|
"kind",
|
|
96
98
|
"limit",
|
|
97
99
|
"limits",
|
|
@@ -166,6 +168,7 @@ export const GENERATED_ALLOWLISTED_FIELDS = [
|
|
|
166
168
|
"userId",
|
|
167
169
|
"userInfo",
|
|
168
170
|
"userUlid",
|
|
171
|
+
"value",
|
|
169
172
|
"variables",
|
|
170
173
|
"version",
|
|
171
174
|
"windowDays",
|
|
@@ -201,6 +204,7 @@ export const GENERATED_KNOWN_KINDS = [
|
|
|
201
204
|
"delay",
|
|
202
205
|
"document.bulkUpdate",
|
|
203
206
|
"document.count",
|
|
207
|
+
"document.create",
|
|
204
208
|
"document.delete",
|
|
205
209
|
"document.getForUser",
|
|
206
210
|
"document.getOrCreateWithAliasForUser",
|
|
@@ -231,7 +235,9 @@ export const GENERATED_KNOWN_KINDS = [
|
|
|
231
235
|
"integration.call",
|
|
232
236
|
"iterate-users",
|
|
233
237
|
"llm.chat",
|
|
238
|
+
"metadata.delete",
|
|
234
239
|
"metadata.read",
|
|
240
|
+
"metadata.resolve",
|
|
235
241
|
"metadata.write",
|
|
236
242
|
"noop",
|
|
237
243
|
"notification.send",
|
|
@@ -242,6 +248,7 @@ export const GENERATED_KNOWN_KINDS = [
|
|
|
242
248
|
"transform",
|
|
243
249
|
"user.get",
|
|
244
250
|
"user.resolve",
|
|
251
|
+
"workflow-lifecycle-step",
|
|
245
252
|
"workflow.call",
|
|
246
253
|
];
|
|
247
254
|
//# sourceMappingURL=generated-allowlist.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated-allowlist.js","sourceRoot":"","sources":["../../../src/lib/generated-allowlist.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,2EAA2E;AAC3E,MAAM,CAAC,MAAM,4BAA4B,GAAsB;IAC7D,kBAAkB;IAClB,YAAY;IACZ,QAAQ;IACR,UAAU;IACV,OAAO;IACP,IAAI;IACJ,UAAU;IACV,a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N,mBAAmB;IACnB,gBAAgB;IAChB,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,UAAU;IACV,cAAc;IACd,eAAe;CAChB,CAAC"}
|
|
1
|
+
{"version":3,"file":"generated-allowlist.js","sourceRoot":"","sources":["../../../src/lib/generated-allowlist.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,2EAA2E;AAC3E,MAAM,CAAC,MAAM,4BAA4B,GAAsB;IAC7D,kBAAkB;IAClB,YAAY;IACZ,QAAQ;IACR,UAAU;IACV,OAAO;IACP,IAAI;IACJ,UAAU;IACV,aAAa;IACb,QAAQ;IACR,SAAS;IACT,UAAU;IACV,WAAW;IACX,MAAM;IACN,UAAU;IACV,UAAU;IACV,WAAW;IACX,iBAAiB;IACjB,OAAO;IACP,UAAU;IACV,UAAU;IACV,YAAY;IACZ,cAAc;IACd,gBAAgB;IAChB,aAAa;IACb,UAAU;IACV,SAAS;IACT,eAAe;IACf,aAAa;IACb,SAAS;IACT,WAAW;IACX,iBAAiB;IACjB,QAAQ;IACR,QAAQ;IACR,aAAa;IACb,MAAM;IACN,YAAY;IACZ,cAAc;IACd,UAAU;IACV,SAAS;IACT,aAAa;IACb,WAAW;IACX,eAAe;IACf,YAAY;IACZ,QAAQ;IACR,YAAY;IACZ,OAAO;IACP,QAAQ;IACR,WAAW;IACX,kBAAkB;IAClB,SAAS;IACT,UAAU;IACV,QAAQ;IACR,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,SAAS;IACT,WAAW;IACX,UAAU;IACV,SAAS;IACT,IAAI;IACJ,gBAAgB;IAChB,aAAa;IACb,oBAAoB;IACpB,iBAAiB;IACjB,OAAO;IACP,gBAAgB;IAChB,YAAY;IACZ,eAAe;IACf,KAAK;IACL,MAAM;IACN,OAAO;IACP,QAAQ;IACR,UAAU;IACV,UAAU;IACV,SAAS;IACT,UAAU;IACV,UAAU;IACV,SAAS;IACT,OAAO;IACP,WA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B,iBAAiB;IACjB,qBAAqB;IACrB,sCAAsC;IACtC,yBAAyB;IACzB,4BAA4B;IAC5B,uBAAuB;IACvB,sBAAsB;IACtB,gBAAgB;IAChB,gBAAgB;IAChB,mBAAmB;IACnB,uBAAuB;IACvB,8BAA8B;IAC9B,eAAe;IACf,YAAY;IACZ,YAAY;IACZ,oBAAoB;IACpB,iBAAiB;IACjB,oBAAoB;IACpB,iBAAiB;IACjB,uBAAuB;IACvB,cAAc;IACd,cAAc;IACd,mBAAmB;IACnB,2BAA2B;IAC3B,iBAAiB;IACjB,oBAAoB;IACpB,MAAM;IACN,kBAAkB;IAClB,eAAe;IACf,UAAU;IACV,iBAAiB;IACjB,eAAe;IACf,kBAAkB;IAClB,gBAAgB;IAChB,MAAM;IACN,mBAAmB;IACnB,gBAAgB;IAChB,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,WAAW;IACX,UAAU;IACV,cAAc;IACd,yBAAyB;IACzB,eAAe;CAChB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared predicate for platform-owned workflows (#1660).
|
|
3
|
+
*
|
|
4
|
+
* The platform owns workflow keys in the reserved `__internal.` namespace (see
|
|
5
|
+
* the server's `src/workflows/reserved-workflow-keys.ts`). These rows are
|
|
6
|
+
* created and managed by the platform, never authored in an app's config tree:
|
|
7
|
+
*
|
|
8
|
+
* - `sync pull` must not export them (they have no local TOML),
|
|
9
|
+
* - `sync diff` must not report them (they are not app config),
|
|
10
|
+
* - `sync push` must not upload them (the hollow export can't round-trip),
|
|
11
|
+
* - `workflows codegen` must not generate an invoker for them.
|
|
12
|
+
*
|
|
13
|
+
* The CLI cannot import from `src/`, so this module mirrors the server's prefix
|
|
14
|
+
* policy in ONE place. The codegen skip and the sync filters both call it, so
|
|
15
|
+
* they can never drift from each other or from the server.
|
|
16
|
+
*
|
|
17
|
+
* The generic cross-resource `isPlatformOwnedEntity` abstraction is deliberately
|
|
18
|
+
* NOT here — it is deferred until a second resource type has a platform-owned
|
|
19
|
+
* contract (human decision, 2026-07-17).
|
|
20
|
+
*/
|
|
21
|
+
/** Prefix marking a platform-owned workflow key (mirrors the server). */
|
|
22
|
+
export declare const INTERNAL_WORKFLOW_KEY_PREFIX = "__internal.";
|
|
23
|
+
/**
|
|
24
|
+
* True when `key` is in the platform-owned `__internal.` namespace. Trims and
|
|
25
|
+
* lowercases first (mirrors the server's `isReservedWorkflowKey`) so a padded
|
|
26
|
+
* or upper-cased value such as ` __Internal.Foo ` can't slip past the filter.
|
|
27
|
+
*/
|
|
28
|
+
export declare function isPlatformOwnedWorkflowKey(key: unknown): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* True when a workflow list/detail item is platform-owned.
|
|
31
|
+
*
|
|
32
|
+
* Prefers the server's derived `platformOwned` flag (#1660) when present, then
|
|
33
|
+
* falls back to the key prefix so an older server that doesn't emit the flag is
|
|
34
|
+
* still filtered (edge case 1). `workflowKey` is the admin list-item field;
|
|
35
|
+
* `key` covers a locally-parsed `[workflow]` table.
|
|
36
|
+
*/
|
|
37
|
+
export declare function isPlatformOwnedWorkflow(item: any): boolean;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared predicate for platform-owned workflows (#1660).
|
|
3
|
+
*
|
|
4
|
+
* The platform owns workflow keys in the reserved `__internal.` namespace (see
|
|
5
|
+
* the server's `src/workflows/reserved-workflow-keys.ts`). These rows are
|
|
6
|
+
* created and managed by the platform, never authored in an app's config tree:
|
|
7
|
+
*
|
|
8
|
+
* - `sync pull` must not export them (they have no local TOML),
|
|
9
|
+
* - `sync diff` must not report them (they are not app config),
|
|
10
|
+
* - `sync push` must not upload them (the hollow export can't round-trip),
|
|
11
|
+
* - `workflows codegen` must not generate an invoker for them.
|
|
12
|
+
*
|
|
13
|
+
* The CLI cannot import from `src/`, so this module mirrors the server's prefix
|
|
14
|
+
* policy in ONE place. The codegen skip and the sync filters both call it, so
|
|
15
|
+
* they can never drift from each other or from the server.
|
|
16
|
+
*
|
|
17
|
+
* The generic cross-resource `isPlatformOwnedEntity` abstraction is deliberately
|
|
18
|
+
* NOT here — it is deferred until a second resource type has a platform-owned
|
|
19
|
+
* contract (human decision, 2026-07-17).
|
|
20
|
+
*/
|
|
21
|
+
/** Prefix marking a platform-owned workflow key (mirrors the server). */
|
|
22
|
+
export const INTERNAL_WORKFLOW_KEY_PREFIX = "__internal.";
|
|
23
|
+
/**
|
|
24
|
+
* True when `key` is in the platform-owned `__internal.` namespace. Trims and
|
|
25
|
+
* lowercases first (mirrors the server's `isReservedWorkflowKey`) so a padded
|
|
26
|
+
* or upper-cased value such as ` __Internal.Foo ` can't slip past the filter.
|
|
27
|
+
*/
|
|
28
|
+
export function isPlatformOwnedWorkflowKey(key) {
|
|
29
|
+
return (typeof key === "string" &&
|
|
30
|
+
key.trim().toLowerCase().startsWith(INTERNAL_WORKFLOW_KEY_PREFIX));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* True when a workflow list/detail item is platform-owned.
|
|
34
|
+
*
|
|
35
|
+
* Prefers the server's derived `platformOwned` flag (#1660) when present, then
|
|
36
|
+
* falls back to the key prefix so an older server that doesn't emit the flag is
|
|
37
|
+
* still filtered (edge case 1). `workflowKey` is the admin list-item field;
|
|
38
|
+
* `key` covers a locally-parsed `[workflow]` table.
|
|
39
|
+
*/
|
|
40
|
+
export function isPlatformOwnedWorkflow(item) {
|
|
41
|
+
if (item && item.platformOwned === true)
|
|
42
|
+
return true;
|
|
43
|
+
const key = item?.workflowKey ?? item?.key;
|
|
44
|
+
return isPlatformOwnedWorkflowKey(key);
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=platform-owned.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-owned.js","sourceRoot":"","sources":["../../../src/lib/platform-owned.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,yEAAyE;AACzE,MAAM,CAAC,MAAM,4BAA4B,GAAG,aAAa,CAAC;AAE1D;;;;GAIG;AACH,MAAM,UAAU,0BAA0B,CAAC,GAAY;IACrD,OAAO,CACL,OAAO,GAAG,KAAK,QAAQ;QACvB,GAAG,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAClE,CAAC;AACJ,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,uBAAuB,CAAC,IAAS;IAC/C,IAAI,IAAI,IAAI,IAAI,CAAC,aAAa,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IACrD,MAAM,GAAG,GAAG,IAAI,EAAE,WAAW,IAAI,IAAI,EAAE,GAAG,CAAC;IAC3C,OAAO,0BAA0B,CAAC,GAAG,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -54,6 +54,38 @@ export interface GenerateDbSwiftTypesOptions {
|
|
|
54
54
|
}
|
|
55
55
|
/** Swift record struct type name for a model (shared naming + Swift sanitize). */
|
|
56
56
|
export declare function dbRecordSwiftTypeName(modelName: string, className: string | undefined): string;
|
|
57
|
+
/**
|
|
58
|
+
* Namespace `enum` name for a database type (issue #1687). Every symbol a type
|
|
59
|
+
* emits is nested under `public enum <Type>` (`securities-ref` →
|
|
60
|
+
* `SecuritiesRef`), so two DB types can never collide on a shared op symbol.
|
|
61
|
+
* Reuses the same `structTypeName` sanitizer (keyword suffixing + digit-leading
|
|
62
|
+
* `_` guard) the old `<Type>Ops` derivation used, so the namespace name is a
|
|
63
|
+
* legal Swift type identifier.
|
|
64
|
+
*/
|
|
65
|
+
export declare function dbNamespaceName(databaseType: string): string;
|
|
66
|
+
/**
|
|
67
|
+
* Validate that a database type's derived namespace enum name is safe to emit,
|
|
68
|
+
* and return it. Throws a named `SwiftCodegenError` (with a rename hint) for
|
|
69
|
+
* the whole class of unsafe names a server-accepted database type can produce
|
|
70
|
+
* (#1687):
|
|
71
|
+
*
|
|
72
|
+
* 1. **Degenerate `_`** — a type with no retained identifier characters
|
|
73
|
+
* (empty after sanitize, or separator/emoji/punctuation-only, e.g. `--`,
|
|
74
|
+
* `🎉`) normalizes to `_` via `structTypeName`. Swift reserves `_` as the
|
|
75
|
+
* wildcard and rejects `public enum _` (Codex [P2]).
|
|
76
|
+
* 2. **Stdlib/SDK shadowing** — a name in `RESERVED_NAMESPACE_NAMES` shadows
|
|
77
|
+
* a type the generated body references unqualified (Codex [P1]).
|
|
78
|
+
*
|
|
79
|
+
* Leading-digit residue (`123` → `_123`) and Swift reserved words (`self` →
|
|
80
|
+
* `Self_`, `any` → `Any_`) are already lifted into legal, non-shadowing
|
|
81
|
+
* identifiers by `structTypeName` (digit-leading `_` guard + keyword suffix),
|
|
82
|
+
* so they need no rejection here — only names that survive that sanitizer as
|
|
83
|
+
* `_` or as a real type identifier remain unsafe. The two in-run / retained-
|
|
84
|
+
* sibling namespace-NAME collision guards (two database types whose names
|
|
85
|
+
* normalize to the SAME enum) live in `generateDbSwiftTypes`; this check
|
|
86
|
+
* covers the single-type unsafe-name class.
|
|
87
|
+
*/
|
|
88
|
+
export declare function assertSafeNamespaceName(databaseType: string, sourceFile: string): string;
|
|
57
89
|
/**
|
|
58
90
|
* Render the full `<type>.generated.swift` content for one database-type TOML.
|
|
59
91
|
* Pure — exported so tests can assert on the string directly. Throws on a Swift
|