primitive-admin 1.1.0-alpha.38 → 1.1.0-alpha.39

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.
Files changed (57) hide show
  1. package/README.md +16 -0
  2. package/dist/bin/primitive.js +2 -0
  3. package/dist/bin/primitive.js.map +1 -1
  4. package/dist/src/commands/blob-buckets.js +64 -0
  5. package/dist/src/commands/blob-buckets.js.map +1 -1
  6. package/dist/src/commands/collections.js +1 -9
  7. package/dist/src/commands/collections.js.map +1 -1
  8. package/dist/src/commands/group-type-configs.js +1 -9
  9. package/dist/src/commands/group-type-configs.js.map +1 -1
  10. package/dist/src/commands/guides.d.ts +75 -0
  11. package/dist/src/commands/guides.js +284 -47
  12. package/dist/src/commands/guides.js.map +1 -1
  13. package/dist/src/commands/rule-sets.d.ts +1 -0
  14. package/dist/src/commands/rule-sets.js +25 -3
  15. package/dist/src/commands/rule-sets.js.map +1 -1
  16. package/dist/src/commands/scripts.d.ts +2 -0
  17. package/dist/src/commands/scripts.js +667 -0
  18. package/dist/src/commands/scripts.js.map +1 -0
  19. package/dist/src/commands/sync.d.ts +29 -0
  20. package/dist/src/commands/sync.js +402 -97
  21. package/dist/src/commands/sync.js.map +1 -1
  22. package/dist/src/commands/webhooks.js +7 -2
  23. package/dist/src/commands/webhooks.js.map +1 -1
  24. package/dist/src/commands/workflows.js +219 -1
  25. package/dist/src/commands/workflows.js.map +1 -1
  26. package/dist/src/lib/api-client.d.ts +56 -15
  27. package/dist/src/lib/api-client.js +51 -0
  28. package/dist/src/lib/api-client.js.map +1 -1
  29. package/dist/src/lib/block-layout.d.ts +160 -0
  30. package/dist/src/lib/block-layout.js +451 -0
  31. package/dist/src/lib/block-layout.js.map +1 -0
  32. package/dist/src/lib/config.js +21 -0
  33. package/dist/src/lib/config.js.map +1 -1
  34. package/dist/src/lib/generated-allowlist.js +9 -0
  35. package/dist/src/lib/generated-allowlist.js.map +1 -1
  36. package/dist/src/lib/output.d.ts +25 -5
  37. package/dist/src/lib/output.js +32 -4
  38. package/dist/src/lib/output.js.map +1 -1
  39. package/dist/src/lib/query-operators.d.ts +43 -0
  40. package/dist/src/lib/query-operators.js +80 -0
  41. package/dist/src/lib/query-operators.js.map +1 -0
  42. package/dist/src/lib/toml-database-config.d.ts +20 -0
  43. package/dist/src/lib/toml-database-config.js +37 -2
  44. package/dist/src/lib/toml-database-config.js.map +1 -1
  45. package/dist/src/lib/toml-metadata-config.d.ts +108 -0
  46. package/dist/src/lib/toml-metadata-config.js +371 -0
  47. package/dist/src/lib/toml-metadata-config.js.map +1 -0
  48. package/dist/src/lib/toml-params-validator.d.ts +34 -0
  49. package/dist/src/lib/toml-params-validator.js +118 -3
  50. package/dist/src/lib/toml-params-validator.js.map +1 -1
  51. package/dist/src/lib/workflow-apply.d.ts +66 -0
  52. package/dist/src/lib/workflow-apply.js +117 -0
  53. package/dist/src/lib/workflow-apply.js.map +1 -0
  54. package/dist/src/lib/workflow-toml-validator.js +36 -0
  55. package/dist/src/lib/workflow-toml-validator.js.map +1 -1
  56. package/dist/src/types/index.d.ts +7 -0
  57. package/package.json +1 -1
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Shared "apply a TOML body to an existing workflow" helper.
3
+ *
4
+ * Extracted from the `sync push` update-existing path (#1249, Fork 4) so that
5
+ * both `sync push` and `workflows update --from-file` push a revised body the
6
+ * same way. A second inlined copy would regress #807: the update is
7
+ * ordering-sensitive and a naive metadata-then-body sequence rejects valid
8
+ * sync-callable edits.
9
+ *
10
+ * Ordering invariant (#807 / codex review):
11
+ * 1. metadata PATCH — WITHOUT `syncCallable`. The server re-validates
12
+ * `syncCallable: true` against the workflow's CURRENTLY-active server
13
+ * steps (`loadCurrentActiveSteps`, src/admin-api.ts:4734), not the steps
14
+ * being pushed in the same call. So enabling sync-callable in the first
15
+ * PATCH would validate against the stale active steps and be rejected.
16
+ * 2. body write — steps to the active config (config-model) or the legacy
17
+ * draft slot (no active config).
18
+ * 3. a SECOND `syncCallable` PATCH — issued AFTER the new steps are active,
19
+ * so it validates against the new (compatible) steps.
20
+ */
21
+ import type { ApiClient } from "./api-client.js";
22
+ /**
23
+ * Safely parse a JSON field that may be a string or already an object. TOML can
24
+ * parse inline tables as objects, so we accept both. (Same semantics as the
25
+ * `safeJsonParse` in sync.ts — kept here so the shared apply helper owns its
26
+ * own parse decision without importing back into a command module.)
27
+ */
28
+ export declare function safeJsonParse(value: any): any;
29
+ export interface ApplyWorkflowBodyOptions {
30
+ /** Optimistic-concurrency guard for the metadata + syncCallable PATCHes. */
31
+ expectedModifiedAt?: string;
32
+ /**
33
+ * Active config to overwrite in place (config-model workflows). When absent,
34
+ * the body falls back to the legacy draft slot — non-live for config-model
35
+ * workflows, which the server rejects with 409 WORKFLOW_CONFIG_MODEL.
36
+ */
37
+ activeConfigId?: string;
38
+ /** When true, skip the optimistic-concurrency check (mirrors `--force`). */
39
+ force?: boolean;
40
+ }
41
+ export interface ApplyWorkflowBodyResult {
42
+ /** The freshest workflow `modifiedAt` after all PATCHes (for sync state). */
43
+ latestModifiedAt?: string;
44
+ /** Which slot the steps landed in: "active config" or "draft (legacy)". */
45
+ updateSlotLabel: string;
46
+ /** A fresh `getWorkflow` result so callers can read back configs/state. */
47
+ fullWorkflow: any;
48
+ }
49
+ /**
50
+ * Apply a parsed workflow body (metadata + steps) to an existing workflow,
51
+ * preserving the key/id. `workflow` is the TOML's `[workflow]` table (already
52
+ * merged with any explicit CLI flag overrides by the caller); `steps` is the
53
+ * TOML's `steps` array. The function performs the three-step ordered update
54
+ * and returns the latest `modifiedAt`, the slot label, and a fresh workflow.
55
+ */
56
+ export declare function applyWorkflowBody(client: ApiClient, appId: string, workflowId: string, workflow: any, steps: any[], opts?: ApplyWorkflowBodyOptions): Promise<ApplyWorkflowBodyResult>;
57
+ /**
58
+ * Fork 2 (#1249): a TOML pushed at a specific `<id>` may also declare a `key` /
59
+ * `workflowKey`. If it differs from the target's actual key, that's almost
60
+ * certainly the wrong file — error rather than silently ignoring it. An absent
61
+ * TOML key is advisory and allowed (the operation targets `<id>`).
62
+ *
63
+ * Returns an error message string when there is a mismatch, otherwise null.
64
+ * Pure function for unit testing.
65
+ */
66
+ export declare function workflowKeyMismatchError(tomlWorkflow: any, existingWorkflowKey: string | undefined): string | null;
@@ -0,0 +1,117 @@
1
+ /**
2
+ * Shared "apply a TOML body to an existing workflow" helper.
3
+ *
4
+ * Extracted from the `sync push` update-existing path (#1249, Fork 4) so that
5
+ * both `sync push` and `workflows update --from-file` push a revised body the
6
+ * same way. A second inlined copy would regress #807: the update is
7
+ * ordering-sensitive and a naive metadata-then-body sequence rejects valid
8
+ * sync-callable edits.
9
+ *
10
+ * Ordering invariant (#807 / codex review):
11
+ * 1. metadata PATCH — WITHOUT `syncCallable`. The server re-validates
12
+ * `syncCallable: true` against the workflow's CURRENTLY-active server
13
+ * steps (`loadCurrentActiveSteps`, src/admin-api.ts:4734), not the steps
14
+ * being pushed in the same call. So enabling sync-callable in the first
15
+ * PATCH would validate against the stale active steps and be rejected.
16
+ * 2. body write — steps to the active config (config-model) or the legacy
17
+ * draft slot (no active config).
18
+ * 3. a SECOND `syncCallable` PATCH — issued AFTER the new steps are active,
19
+ * so it validates against the new (compatible) steps.
20
+ */
21
+ /**
22
+ * Safely parse a JSON field that may be a string or already an object. TOML can
23
+ * parse inline tables as objects, so we accept both. (Same semantics as the
24
+ * `safeJsonParse` in sync.ts — kept here so the shared apply helper owns its
25
+ * own parse decision without importing back into a command module.)
26
+ */
27
+ export function safeJsonParse(value) {
28
+ if (value === undefined || value === null)
29
+ return undefined;
30
+ if (typeof value === "string")
31
+ return JSON.parse(value);
32
+ return value; // Already an object (TOML parsed it as a table)
33
+ }
34
+ /**
35
+ * Apply a parsed workflow body (metadata + steps) to an existing workflow,
36
+ * preserving the key/id. `workflow` is the TOML's `[workflow]` table (already
37
+ * merged with any explicit CLI flag overrides by the caller); `steps` is the
38
+ * TOML's `steps` array. The function performs the three-step ordered update
39
+ * and returns the latest `modifiedAt`, the slot label, and a fresh workflow.
40
+ */
41
+ export async function applyWorkflowBody(client, appId, workflowId, workflow, steps, opts = {}) {
42
+ const { expectedModifiedAt, activeConfigId, force } = opts;
43
+ // 1. Metadata PATCH — note: NO `syncCallable` here (deferred to step 3).
44
+ // `requiresClientApply` has no step-dependent validation, so it stays.
45
+ const updated = await client.updateWorkflow(appId, workflowId, {
46
+ name: workflow.name,
47
+ description: workflow.description,
48
+ status: workflow.status,
49
+ accessRule: workflow.accessRule !== undefined ? workflow.accessRule || null : undefined,
50
+ // #1081 — workflow principal mode. Absent key → undefined (server leaves
51
+ // it untouched); explicit value/empty is forwarded so it round-trips.
52
+ runAs: workflow.runAs !== undefined ? workflow.runAs || null : undefined,
53
+ // #1233 — opt-in capability grants. Absent key → undefined (server's
54
+ // hasOwnProperty guard leaves it untouched); an explicit array is
55
+ // forwarded so a pull → push round-trips it. Mirrors `runAs` above so
56
+ // both `sync push` and `workflows update --from-file` apply it the same.
57
+ capabilities: workflow.capabilities !== undefined ? workflow.capabilities : undefined,
58
+ perUserMaxRunning: workflow.perUserMaxRunning,
59
+ perUserMaxQueued: workflow.perUserMaxQueued,
60
+ dequeueOrder: workflow.dequeueOrder,
61
+ requiresClientApply: workflow.requiresClientApply,
62
+ inputSchema: workflow.inputSchema ? safeJsonParse(workflow.inputSchema) : null,
63
+ outputSchema: workflow.outputSchema ? safeJsonParse(workflow.outputSchema) : null,
64
+ // #1304 (P-C): declared-access manifest. Absent key → undefined (server's
65
+ // hasOwnProperty guard leaves it untouched); a parsed value/null is
66
+ // forwarded so a pull → push round-trips it (null clears). `sync push`
67
+ // always attaches this (null when the TOML drops `[metadata]`); the
68
+ // `workflows update --from-file` caller may leave it undefined.
69
+ metadataManifest: workflow.metadataManifest !== undefined ? workflow.metadataManifest : undefined,
70
+ }, expectedModifiedAt);
71
+ // The first PATCH bumps `modifiedAt`; the syncCallable PATCH (if any) bumps
72
+ // it again. The config/step update does NOT touch the workflow definition's
73
+ // `modifiedAt`.
74
+ let latestModifiedAt = updated?.workflow?.modifiedAt;
75
+ // 2. Body write — active config (config-model) or legacy draft slot.
76
+ let updateSlotLabel = "active config";
77
+ if (activeConfigId) {
78
+ await client.updateWorkflowConfig(appId, workflowId, activeConfigId, { steps });
79
+ }
80
+ else {
81
+ await client.updateWorkflowDraft(appId, workflowId, {
82
+ steps,
83
+ inputSchema: workflow.inputSchema ? safeJsonParse(workflow.inputSchema) : null,
84
+ });
85
+ updateSlotLabel = "draft (legacy)";
86
+ }
87
+ // 3. Deferred `syncCallable` PATCH — now that the new steps are active (#807).
88
+ // Only sent when the TOML actually carries the key; an absent key stays
89
+ // `undefined` and the call is skipped, preserving no-clobber discipline.
90
+ if (workflow.syncCallable !== undefined) {
91
+ const syncCallableUpdated = await client.updateWorkflow(appId, workflowId, { syncCallable: workflow.syncCallable }, force ? undefined : latestModifiedAt);
92
+ if (syncCallableUpdated?.workflow?.modifiedAt) {
93
+ latestModifiedAt = syncCallableUpdated.workflow.modifiedAt;
94
+ }
95
+ }
96
+ const fullWorkflow = await client.getWorkflow(appId, workflowId);
97
+ return { latestModifiedAt, updateSlotLabel, fullWorkflow };
98
+ }
99
+ /**
100
+ * Fork 2 (#1249): a TOML pushed at a specific `<id>` may also declare a `key` /
101
+ * `workflowKey`. If it differs from the target's actual key, that's almost
102
+ * certainly the wrong file — error rather than silently ignoring it. An absent
103
+ * TOML key is advisory and allowed (the operation targets `<id>`).
104
+ *
105
+ * Returns an error message string when there is a mismatch, otherwise null.
106
+ * Pure function for unit testing.
107
+ */
108
+ export function workflowKeyMismatchError(tomlWorkflow, existingWorkflowKey) {
109
+ const tomlKey = tomlWorkflow?.key ?? tomlWorkflow?.workflowKey;
110
+ if (tomlKey && existingWorkflowKey && tomlKey !== existingWorkflowKey) {
111
+ return (`TOML workflow key "${tomlKey}" does not match the target workflow's key ` +
112
+ `"${existingWorkflowKey}". This usually means you pointed --from-file at the ` +
113
+ `wrong workflow id. Remove the key from the TOML or target the matching id.`);
114
+ }
115
+ return null;
116
+ }
117
+ //# sourceMappingURL=workflow-apply.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-apply.js","sourceRoot":"","sources":["../../../src/lib/workflow-apply.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAIH;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,KAAU;IACtC,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,SAAS,CAAC;IAC5D,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACxD,OAAO,KAAK,CAAC,CAAC,gDAAgD;AAChE,CAAC;AAwBD;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,MAAiB,EACjB,KAAa,EACb,UAAkB,EAClB,QAAa,EACb,KAAY,EACZ,OAAiC,EAAE;IAEnC,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IAE3D,yEAAyE;IACzE,0EAA0E;IAC1E,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,cAAc,CACzC,KAAK,EACL,UAAU,EACV;QACE,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,WAAW,EAAE,QAAQ,CAAC,WAAW;QACjC,MAAM,EAAE,QAAQ,CAAC,MAAM;QACvB,UAAU,EACR,QAAQ,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS;QAC7E,yEAAyE;QACzE,sEAAsE;QACtE,KAAK,EAAE,QAAQ,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS;QACxE,qEAAqE;QACrE,kEAAkE;QAClE,sEAAsE;QACtE,yEAAyE;QACzE,YAA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SAC/E,CAAC,CAAC;QACH,eAAe,GAAG,gBAAgB,CAAC;IACrC,CAAC;IAED,+EAA+E;IAC/E,2EAA2E;IAC3E,4EAA4E;IAC5E,IAAI,QAAQ,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;QACxC,MAAM,mBAAmB,GAAG,MAAM,MAAM,CAAC,cAAc,CACrD,KAAK,EACL,UAAU,EACV,EAAE,YAAY,EAAE,QAAQ,CAAC,YAAY,EAAE,EACvC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,gBAAgB,CACrC,CAAC;QACF,IAAI,mBAAmB,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC;YAC9C,gBAAgB,GAAG,mBAAmB,CAAC,QAAQ,CAAC,UAAU,CAAC;QAC7D,CAAC;IACH,CAAC;IAED,MAAM,YAAY,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IACjE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,YAAY,EAAE,CAAC;AAC7D,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,wBAAwB,CACtC,YAAiB,EACjB,mBAAuC;IAEvC,MAAM,OAAO,GAAG,YAAY,EAAE,GAAG,IAAI,YAAY,EAAE,WAAW,CAAC;IAC/D,IAAI,OAAO,IAAI,mBAAmB,IAAI,OAAO,KAAK,mBAAmB,EAAE,CAAC;QACtE,OAAO,CACL,sBAAsB,OAAO,6CAA6C;YAC1E,IAAI,mBAAmB,uDAAuD;YAC9E,4EAA4E,CAC7E,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -227,6 +227,42 @@ function validateStepObject(step, stepIndex, parentStepId, errors) {
227
227
  parentStepId,
228
228
  });
229
229
  }
230
+ // #1252 — form-urlencoded body conflict. `[steps.request.form]` encodes an
231
+ // `application/x-www-form-urlencoded` body; it cannot coexist with a
232
+ // `request.body` or a raw/multipart `bodyMode`. The runtime rejects the same
233
+ // combination, but catching it at push time gives a clearer, earlier
234
+ // diagnostic. (`request.form` itself needs no allowlist entry — the validator
235
+ // only checks top-level step fields, and `request` is already allowlisted.)
236
+ if (step.kind === "integration.call" &&
237
+ step.request !== null &&
238
+ typeof step.request === "object" &&
239
+ !Array.isArray(step.request)) {
240
+ const req = step.request;
241
+ const hasForm = req.form !== undefined && req.form !== null;
242
+ if (hasForm) {
243
+ if (req.body !== undefined && req.body !== null) {
244
+ errors.push({
245
+ stepIndex,
246
+ stepId,
247
+ field: "request.form",
248
+ hint: "`request.form` (application/x-www-form-urlencoded) cannot be combined with `request.body`. " +
249
+ "Use one request body — either the JSON `body` or the `form` table.",
250
+ parentStepId,
251
+ });
252
+ }
253
+ const mode = step.bodyMode;
254
+ if (mode === "raw" || mode === "multipart") {
255
+ errors.push({
256
+ stepIndex,
257
+ stepId,
258
+ field: "request.form",
259
+ hint: `\`request.form\` (application/x-www-form-urlencoded) cannot be combined with bodyMode "${mode}". ` +
260
+ "Remove `form` or the `bodyMode`.",
261
+ parentStepId,
262
+ });
263
+ }
264
+ }
265
+ }
230
266
  }
231
267
  /**
232
268
  * Render a multi-line diagnostic for a list of errors. Designed for the
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-toml-validator.js","sourceRoot":"","sources":["../../../src/lib/workflow-toml-validator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EACL,4BAA4B,EAC5B,qBAAqB,GACtB,MAAM,0BAA0B,CAAC;AAElC;;;GAGG;AACH,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAS,4BAA4B,CAAC,CAAC;AAEzE;;;;GAIG;AACH,MAAM,WAAW,GAAG,IAAI,GAAG,CAAS,qBAAqB,CAAC,CAAC;AAE3D;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAC7C,kBAAkB,CAAC;AAErB;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAA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AC,CAAC,EAAE,CAAC;QACzD,MAAM,UAAU,GACd,WAAW,IAAI,GAAG,CAAC,YAAY;YAC7B,CAAC,CAAC,6BAA6B,GAAG,CAAC,YAAY,IAAI;YACnD,CAAC,CAAC,WAAW;gBACb,CAAC,CAAC,wBAAwB;gBAC1B,CAAC,CAAC,EAAE,CAAC;QACT,KAAK,CAAC,IAAI,CACR,KAAK,IAAI,GAAG,MAAM,GAAG,UAAU,uBAAuB,GAAG,CAAC,KAAK,IAAI,CACpE,CAAC;QACF,KAAK,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
@@ -41,6 +41,9 @@ export interface AppSettings {
41
41
  }> | null;
42
42
  hasPasskey?: boolean;
43
43
  magicLinkEnabled?: boolean;
44
+ appleSignInEnabled?: boolean | null;
45
+ appleAudiences?: string[] | null;
46
+ otpEnabled?: boolean;
44
47
  }
45
48
  export interface User {
46
49
  userId: string;
@@ -489,6 +492,10 @@ export interface SyncState {
489
492
  modifiedAt: string;
490
493
  contentHash?: string;
491
494
  }>;
495
+ metadataCategoryConfigs?: Record<string, {
496
+ modifiedAt: string;
497
+ contentHash?: string;
498
+ }>;
492
499
  webhooks?: Record<string, {
493
500
  id: string;
494
501
  modifiedAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primitive-admin",
3
- "version": "1.1.0-alpha.38",
3
+ "version": "1.1.0-alpha.39",
4
4
  "description": "CLI for administering Primitive applications",
5
5
  "type": "module",
6
6
  "bin": {