primitive-admin 1.2.0-alpha.8 → 1.3.0-alpha.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 +258 -186
- package/assets/skill/skills/primitive-platform/SKILL.md +103 -29
- package/dist/bin/primitive.js +15 -89
- package/dist/bin/primitive.js.map +1 -1
- package/dist/src/commands/admins.js +80 -17
- package/dist/src/commands/admins.js.map +1 -1
- package/dist/src/commands/agent-sessions.d.ts +129 -0
- package/dist/src/commands/agent-sessions.js +532 -20
- package/dist/src/commands/agent-sessions.js.map +1 -1
- package/dist/src/commands/analytics.js +207 -155
- package/dist/src/commands/analytics.js.map +1 -1
- package/dist/src/commands/apps-children.d.ts +1 -1
- package/dist/src/commands/apps-children.js +56 -145
- package/dist/src/commands/apps-children.js.map +1 -1
- package/dist/src/commands/apps-transitions.d.ts +39 -0
- package/dist/src/commands/apps-transitions.js +198 -0
- package/dist/src/commands/apps-transitions.js.map +1 -0
- package/dist/src/commands/apps.d.ts +17 -0
- package/dist/src/commands/apps.js +108 -3
- package/dist/src/commands/apps.js.map +1 -1
- package/dist/src/commands/auth-sessions.js +2 -0
- package/dist/src/commands/auth-sessions.js.map +1 -1
- package/dist/src/commands/auth.js +138 -44
- package/dist/src/commands/auth.js.map +1 -1
- package/dist/src/commands/blob-buckets.js +2 -0
- package/dist/src/commands/blob-buckets.js.map +1 -1
- package/dist/src/commands/collections.js +318 -256
- package/dist/src/commands/collections.js.map +1 -1
- package/dist/src/commands/comparisons.js +2 -0
- package/dist/src/commands/comparisons.js.map +1 -1
- package/dist/src/commands/config.d.ts +2 -2
- package/dist/src/commands/config.js +59 -33
- package/dist/src/commands/config.js.map +1 -1
- package/dist/src/commands/connections.js +2 -0
- package/dist/src/commands/connections.js.map +1 -1
- package/dist/src/commands/database-type-configs.js +5 -3
- package/dist/src/commands/database-type-configs.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/databases.js +6 -4
- package/dist/src/commands/databases.js.map +1 -1
- package/dist/src/commands/db3-types.d.ts +15 -0
- package/dist/src/commands/db3-types.js +159 -0
- package/dist/src/commands/db3-types.js.map +1 -0
- package/dist/src/commands/db3.d.ts +24 -0
- package/dist/src/commands/db3.js +1444 -0
- package/dist/src/commands/db3.js.map +1 -0
- package/dist/src/commands/documents.d.ts +110 -10
- package/dist/src/commands/documents.js +1012 -748
- package/dist/src/commands/documents.js.map +1 -1
- package/dist/src/commands/email-templates.js +74 -0
- package/dist/src/commands/email-templates.js.map +1 -1
- package/dist/src/commands/env.js +8 -4
- package/dist/src/commands/env.js.map +1 -1
- package/dist/src/commands/function-trigger-commands.d.ts +28 -0
- package/dist/src/commands/function-trigger-commands.js +341 -0
- package/dist/src/commands/function-trigger-commands.js.map +1 -0
- package/dist/src/commands/functions.js +376 -30
- package/dist/src/commands/functions.js.map +1 -1
- package/dist/src/commands/groups.js +168 -50
- package/dist/src/commands/groups.js.map +1 -1
- package/dist/src/commands/guides.js +7 -5
- package/dist/src/commands/guides.js.map +1 -1
- package/dist/src/commands/hosting.d.ts +8 -0
- package/dist/src/commands/hosting.js +346 -0
- package/dist/src/commands/hosting.js.map +1 -0
- package/dist/src/commands/init.js +129 -38
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/integrations.js +82 -53
- package/dist/src/commands/integrations.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/locks.d.ts +5 -3
- package/dist/src/commands/locks.js +19 -61
- package/dist/src/commands/locks.js.map +1 -1
- package/dist/src/commands/metadata-category-configs.d.ts +2 -2
- package/dist/src/commands/metadata-category-configs.js +4 -2
- package/dist/src/commands/metadata-category-configs.js.map +1 -1
- package/dist/src/commands/metadata.js +41 -0
- package/dist/src/commands/metadata.js.map +1 -1
- package/dist/src/commands/prompts.js +75 -52
- package/dist/src/commands/prompts.js.map +1 -1
- package/dist/src/commands/rate-counters.d.ts +19 -0
- package/dist/src/commands/rate-counters.js +104 -0
- package/dist/src/commands/rate-counters.js.map +1 -0
- package/dist/src/commands/rule-sets.d.ts +1 -1
- package/dist/src/commands/rule-sets.js +2 -1
- package/dist/src/commands/rule-sets.js.map +1 -1
- package/dist/src/commands/schemas.d.ts +15 -0
- package/dist/src/commands/schemas.js +122 -0
- package/dist/src/commands/schemas.js.map +1 -0
- package/dist/src/commands/scripts.d.ts +9 -17
- package/dist/src/commands/scripts.js +24 -479
- package/dist/src/commands/scripts.js.map +1 -1
- package/dist/src/commands/secrets.js +47 -3
- package/dist/src/commands/secrets.js.map +1 -1
- package/dist/src/commands/sessions.js +2 -0
- package/dist/src/commands/sessions.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/commands/skill.js +2 -0
- package/dist/src/commands/skill.js.map +1 -1
- package/dist/src/commands/sync-schemas.d.ts +202 -0
- package/dist/src/commands/sync-schemas.js +629 -0
- package/dist/src/commands/sync-schemas.js.map +1 -0
- package/dist/src/commands/sync-user-properties.d.ts +118 -0
- package/dist/src/commands/sync-user-properties.js +276 -0
- package/dist/src/commands/sync-user-properties.js.map +1 -0
- package/dist/src/commands/sync.d.ts +519 -554
- package/dist/src/commands/sync.js +3010 -4909
- package/dist/src/commands/sync.js.map +1 -1
- package/dist/src/commands/tokens.js +5 -3
- package/dist/src/commands/tokens.js.map +1 -1
- package/dist/src/commands/transitions.d.ts +54 -0
- package/dist/src/commands/transitions.js +418 -0
- package/dist/src/commands/transitions.js.map +1 -0
- package/dist/src/commands/usage.d.ts +18 -0
- package/dist/src/commands/usage.js +343 -0
- package/dist/src/commands/usage.js.map +1 -0
- package/dist/src/commands/user-properties.d.ts +14 -0
- package/dist/src/commands/user-properties.js +79 -0
- package/dist/src/commands/user-properties.js.map +1 -0
- package/dist/src/commands/users.js +911 -18
- package/dist/src/commands/users.js.map +1 -1
- package/dist/src/commands/vars.js +2 -0
- package/dist/src/commands/vars.js.map +1 -1
- package/dist/src/commands/waitlist.js +39 -4
- package/dist/src/commands/waitlist.js.map +1 -1
- package/dist/src/commands/workflows.d.ts +5 -83
- package/dist/src/commands/workflows.js +57 -2282
- package/dist/src/commands/workflows.js.map +1 -1
- package/dist/src/lib/analytics-query.d.ts +58 -0
- package/dist/src/lib/analytics-query.js +134 -0
- package/dist/src/lib/analytics-query.js.map +1 -0
- package/dist/src/lib/api-client.d.ts +1830 -429
- package/dist/src/lib/api-client.js +1025 -546
- package/dist/src/lib/api-client.js.map +1 -1
- package/dist/src/lib/app-settings-descriptor.d.ts +1 -1
- package/dist/src/lib/app-settings-descriptor.js +6 -0
- package/dist/src/lib/app-settings-descriptor.js.map +1 -1
- package/dist/src/lib/auth-fixtures.d.ts +44 -0
- package/dist/src/lib/auth-fixtures.js +61 -0
- package/dist/src/lib/auth-fixtures.js.map +1 -0
- package/dist/src/lib/auth-flow.d.ts +34 -1
- package/dist/src/lib/auth-flow.js +429 -13
- package/dist/src/lib/auth-flow.js.map +1 -1
- package/dist/src/lib/block-layout.d.ts +12 -23
- package/dist/src/lib/block-layout.js +26 -92
- package/dist/src/lib/block-layout.js.map +1 -1
- package/dist/src/lib/block-selector.d.ts +8 -14
- package/dist/src/lib/block-selector.js +8 -19
- package/dist/src/lib/block-selector.js.map +1 -1
- package/dist/src/lib/child-apps-local.d.ts +3 -47
- package/dist/src/lib/child-apps-local.js +11 -73
- package/dist/src/lib/child-apps-local.js.map +1 -1
- package/dist/src/lib/cli-manifest.d.ts +9 -0
- package/dist/src/lib/cli-manifest.js +10 -1
- package/dist/src/lib/cli-manifest.js.map +1 -1
- package/dist/src/lib/cli-version.d.ts +14 -0
- package/dist/src/lib/cli-version.js +38 -0
- package/dist/src/lib/cli-version.js.map +1 -0
- package/dist/src/lib/codegen-shared/prettierStable.d.ts +41 -0
- package/dist/src/lib/codegen-shared/prettierStable.js +146 -24
- package/dist/src/lib/codegen-shared/prettierStable.js.map +1 -1
- package/dist/src/lib/collection-export.d.ts +76 -15
- package/dist/src/lib/collection-export.js +116 -23
- package/dist/src/lib/collection-export.js.map +1 -1
- package/dist/src/lib/collection-principal.d.ts +22 -0
- package/dist/src/lib/collection-principal.js +35 -0
- package/dist/src/lib/collection-principal.js.map +1 -0
- package/dist/src/lib/command-groups.d.ts +30 -0
- package/dist/src/lib/command-groups.js +109 -0
- package/dist/src/lib/command-groups.js.map +1 -0
- package/dist/src/lib/command-status.d.ts +147 -0
- package/dist/src/lib/command-status.js +266 -0
- package/dist/src/lib/command-status.js.map +1 -0
- package/dist/src/lib/config-object-descriptor.d.ts +9 -22
- package/dist/src/lib/config-object-descriptor.js +107 -276
- package/dist/src/lib/config-object-descriptor.js.map +1 -1
- package/dist/src/lib/config-surface.d.ts +3 -7
- package/dist/src/lib/config-surface.js +9 -13
- package/dist/src/lib/config-surface.js.map +1 -1
- package/dist/src/lib/config-toml.d.ts +11 -2
- package/dist/src/lib/config-toml.js +25 -2
- package/dist/src/lib/config-toml.js.map +1 -1
- package/dist/src/lib/credentials-home.d.ts +7 -0
- package/dist/src/lib/credentials-home.js +45 -10
- package/dist/src/lib/credentials-home.js.map +1 -1
- package/dist/src/lib/credentials-lock.d.ts +14 -6
- package/dist/src/lib/credentials-lock.js +90 -10
- package/dist/src/lib/credentials-lock.js.map +1 -1
- package/dist/src/lib/credentials-store.d.ts +123 -70
- package/dist/src/lib/credentials-store.js +358 -113
- package/dist/src/lib/credentials-store.js.map +1 -1
- package/dist/src/lib/custodian.d.ts +8 -0
- package/dist/src/lib/custodian.js +18 -0
- package/dist/src/lib/custodian.js.map +1 -0
- package/dist/src/lib/data-input.d.ts +1 -1
- package/dist/src/lib/data-input.js +1 -1
- package/dist/src/lib/db-codegen/dbTsTypes.d.ts +1 -1
- package/dist/src/lib/db-codegen/dbTsTypes.js +3 -0
- package/dist/src/lib/db-codegen/dbTsTypes.js.map +1 -1
- package/dist/src/lib/db-codegen/dbTypeIR.d.ts +38 -1
- package/dist/src/lib/db-codegen/dbTypeIR.js +29 -7
- package/dist/src/lib/db-codegen/dbTypeIR.js.map +1 -1
- package/dist/src/lib/db-type-records.d.ts +106 -0
- package/dist/src/lib/db-type-records.js +224 -0
- package/dist/src/lib/db-type-records.js.map +1 -0
- package/dist/src/lib/db3-export.d.ts +287 -0
- package/dist/src/lib/db3-export.js +647 -0
- package/dist/src/lib/db3-export.js.map +1 -0
- package/dist/src/lib/db3-index-output.d.ts +116 -0
- package/dist/src/lib/db3-index-output.js +223 -0
- package/dist/src/lib/db3-index-output.js.map +1 -0
- package/dist/src/lib/db3-type-models.d.ts +134 -0
- package/dist/src/lib/db3-type-models.js +452 -0
- package/dist/src/lib/db3-type-models.js.map +1 -0
- package/dist/src/lib/deprecation.d.ts +2 -2
- package/dist/src/lib/deprecation.js +2 -2
- package/dist/src/lib/document-ingest-artifact.d.ts +13 -0
- package/dist/src/lib/document-ingest-artifact.js +36 -6
- package/dist/src/lib/document-ingest-artifact.js.map +1 -1
- package/dist/src/lib/document-ingest-format2.d.ts +36 -0
- package/dist/src/lib/document-ingest-format2.js +78 -0
- package/dist/src/lib/document-ingest-format2.js.map +1 -0
- package/dist/src/lib/document-ingest-input.d.ts +9 -0
- package/dist/src/lib/document-ingest-input.js +28 -1
- package/dist/src/lib/document-ingest-input.js.map +1 -1
- package/dist/src/lib/document-ingest.d.ts +11 -1
- package/dist/src/lib/document-ingest.js +16 -0
- package/dist/src/lib/document-ingest.js.map +1 -1
- package/dist/src/lib/document-schema-rows.d.ts +42 -0
- package/dist/src/lib/document-schema-rows.js +53 -0
- package/dist/src/lib/document-schema-rows.js.map +1 -0
- package/dist/src/lib/experimental-apis.d.ts +36 -0
- package/dist/src/lib/experimental-apis.js +46 -0
- package/dist/src/lib/experimental-apis.js.map +1 -0
- package/dist/src/lib/file-attachment.d.ts +24 -0
- package/dist/src/lib/file-attachment.js +31 -0
- package/dist/src/lib/file-attachment.js.map +1 -0
- package/dist/src/lib/function-authorize-check.d.ts +142 -0
- package/dist/src/lib/function-authorize-check.js +311 -0
- package/dist/src/lib/function-authorize-check.js.map +1 -0
- package/dist/src/lib/function-authorize-view.d.ts +27 -0
- package/dist/src/lib/function-authorize-view.js +88 -0
- package/dist/src/lib/function-authorize-view.js.map +1 -0
- package/dist/src/lib/function-bundle.d.ts +27 -5
- package/dist/src/lib/function-bundle.js +142 -7
- package/dist/src/lib/function-bundle.js.map +1 -1
- package/dist/src/lib/function-collect.d.ts +90 -12
- package/dist/src/lib/function-collect.js +482 -12
- package/dist/src/lib/function-collect.js.map +1 -1
- package/dist/src/lib/function-db-types.d.ts +65 -11
- package/dist/src/lib/function-db-types.js +297 -157
- package/dist/src/lib/function-db-types.js.map +1 -1
- package/dist/src/lib/function-document-types.d.ts +19 -7
- package/dist/src/lib/function-document-types.js +24 -12
- package/dist/src/lib/function-document-types.js.map +1 -1
- package/dist/src/lib/function-lint.d.ts +57 -0
- package/dist/src/lib/function-lint.js +234 -0
- package/dist/src/lib/function-lint.js.map +1 -0
- package/dist/src/lib/function-log-row.js +21 -2
- package/dist/src/lib/function-log-row.js.map +1 -1
- package/dist/src/lib/function-run.d.ts +13 -21
- package/dist/src/lib/function-run.js +14 -27
- package/dist/src/lib/function-run.js.map +1 -1
- package/dist/src/lib/function-schema-codegen.d.ts +86 -22
- package/dist/src/lib/function-schema-codegen.js +194 -88
- package/dist/src/lib/function-schema-codegen.js.map +1 -1
- package/dist/src/lib/function-schema-refs.d.ts +98 -0
- package/dist/src/lib/function-schema-refs.js +177 -0
- package/dist/src/lib/function-schema-refs.js.map +1 -0
- package/dist/src/lib/function-sync.d.ts +109 -6
- package/dist/src/lib/function-sync.js +179 -26
- package/dist/src/lib/function-sync.js.map +1 -1
- package/dist/src/lib/function-trigger-listing.d.ts +11 -6
- package/dist/src/lib/function-trigger-listing.js +32 -11
- package/dist/src/lib/function-trigger-listing.js.map +1 -1
- package/dist/src/lib/function-triggers.d.ts +15 -3
- package/dist/src/lib/function-triggers.js +72 -10
- package/dist/src/lib/function-triggers.js.map +1 -1
- package/dist/src/lib/function-typecheck.d.ts +52 -0
- package/dist/src/lib/function-typecheck.js +174 -54
- package/dist/src/lib/function-typecheck.js.map +1 -1
- package/dist/src/lib/function-versions.d.ts +2 -0
- package/dist/src/lib/function-versions.js +1 -0
- package/dist/src/lib/function-versions.js.map +1 -1
- package/dist/src/lib/generated-build-flags.d.ts +13 -0
- package/dist/src/lib/generated-build-flags.js +14 -0
- package/dist/src/lib/generated-build-flags.js.map +1 -0
- package/dist/src/lib/generated-command-status.d.ts +6 -0
- package/dist/src/lib/generated-command-status.js +469 -0
- package/dist/src/lib/generated-command-status.js.map +1 -0
- package/dist/src/lib/generated-config-surfaces.d.ts +586 -152
- package/dist/src/lib/generated-config-surfaces.js +1919 -1883
- package/dist/src/lib/generated-config-surfaces.js.map +1 -1
- package/dist/src/lib/generated-sdk-types.d.ts +1 -1
- package/dist/src/lib/generated-sdk-types.js +1 -1
- package/dist/src/lib/generated-sdk-types.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/hosting-build.d.ts +97 -0
- package/dist/src/lib/hosting-build.js +204 -0
- package/dist/src/lib/hosting-build.js.map +1 -0
- package/dist/src/lib/hosting-client.d.ts +167 -0
- package/dist/src/lib/hosting-client.js +340 -0
- package/dist/src/lib/hosting-client.js.map +1 -0
- package/dist/src/lib/hosting-environments.d.ts +32 -0
- package/dist/src/lib/hosting-environments.js +74 -0
- package/dist/src/lib/hosting-environments.js.map +1 -0
- package/dist/src/lib/hosting-errors.d.ts +30 -0
- package/dist/src/lib/hosting-errors.js +43 -0
- package/dist/src/lib/hosting-errors.js.map +1 -0
- package/dist/src/lib/hosting-token.d.ts +46 -0
- package/dist/src/lib/hosting-token.js +60 -0
- package/dist/src/lib/hosting-token.js.map +1 -0
- package/dist/src/lib/hosting-wait.d.ts +42 -0
- package/dist/src/lib/hosting-wait.js +84 -0
- package/dist/src/lib/hosting-wait.js.map +1 -0
- package/dist/src/lib/hosting-wfp-upload.d.ts +86 -0
- package/dist/src/lib/hosting-wfp-upload.js +149 -0
- package/dist/src/lib/hosting-wfp-upload.js.map +1 -0
- package/dist/src/lib/init-assets.d.ts +2 -6
- package/dist/src/lib/init-assets.js +11 -27
- package/dist/src/lib/init-assets.js.map +1 -1
- package/dist/src/lib/init-ios-links.d.ts +11 -7
- package/dist/src/lib/init-ios-links.js +28 -22
- package/dist/src/lib/init-ios-links.js.map +1 -1
- package/dist/src/lib/init-login-note.d.ts +13 -0
- package/dist/src/lib/init-login-note.js +22 -0
- package/dist/src/lib/init-login-note.js.map +1 -0
- package/dist/src/lib/init-schema.d.ts +15 -0
- package/dist/src/lib/init-schema.js +54 -0
- package/dist/src/lib/init-schema.js.map +1 -1
- package/dist/src/lib/integration-test-request.d.ts +54 -0
- package/dist/src/lib/integration-test-request.js +207 -0
- package/dist/src/lib/integration-test-request.js.map +1 -0
- package/dist/src/lib/invoker-shared-enums.d.ts +35 -0
- package/dist/src/lib/invoker-shared-enums.js +98 -0
- package/dist/src/lib/invoker-shared-enums.js.map +1 -0
- package/dist/src/lib/json-value.d.ts +6 -0
- package/dist/src/lib/json-value.js +13 -0
- package/dist/src/lib/json-value.js.map +1 -0
- package/dist/src/lib/load-routes.d.ts +33 -0
- package/dist/src/lib/load-routes.js +35 -0
- package/dist/src/lib/load-routes.js.map +1 -0
- package/dist/src/lib/log-inspection.d.ts +23 -4
- package/dist/src/lib/log-inspection.js +14 -5
- package/dist/src/lib/log-inspection.js.map +1 -1
- package/dist/src/lib/login-exchange-check.d.ts +18 -0
- package/dist/src/lib/login-exchange-check.js +27 -0
- package/dist/src/lib/login-exchange-check.js.map +1 -0
- package/dist/src/lib/login-scope-lines.d.ts +17 -7
- package/dist/src/lib/login-scope-lines.js +33 -10
- package/dist/src/lib/login-scope-lines.js.map +1 -1
- package/dist/src/lib/metadata-report.d.ts +85 -0
- package/dist/src/lib/metadata-report.js +81 -0
- package/dist/src/lib/metadata-report.js.map +1 -0
- package/dist/src/lib/object-status-filter.d.ts +9 -1
- package/dist/src/lib/object-status-filter.js +9 -1
- package/dist/src/lib/object-status-filter.js.map +1 -1
- package/dist/src/lib/output.d.ts +1 -1
- package/dist/src/lib/output.js +3 -1
- package/dist/src/lib/output.js.map +1 -1
- package/dist/src/lib/pin-refusal-hint.d.ts +12 -0
- package/dist/src/lib/pin-refusal-hint.js +35 -0
- package/dist/src/lib/pin-refusal-hint.js.map +1 -0
- package/dist/src/lib/platform-owned.js +5 -0
- package/dist/src/lib/platform-owned.js.map +1 -1
- package/dist/src/lib/primitive-declaration-names.d.ts +21 -0
- package/dist/src/lib/primitive-declaration-names.js +22 -0
- package/dist/src/lib/primitive-declaration-names.js.map +1 -0
- package/dist/src/lib/primitive-declaration.d.ts +174 -0
- package/dist/src/lib/primitive-declaration.js +792 -0
- package/dist/src/lib/primitive-declaration.js.map +1 -0
- package/dist/src/lib/primitive-env-plugin.d.ts +99 -0
- package/dist/src/lib/primitive-env-plugin.js +408 -0
- package/dist/src/lib/primitive-env-plugin.js.map +1 -0
- package/dist/src/lib/project-login-apps.d.ts +8 -0
- package/dist/src/lib/project-login-apps.js +27 -0
- package/dist/src/lib/project-login-apps.js.map +1 -0
- package/dist/src/lib/prompt-schema-codegen.d.ts +46 -15
- package/dist/src/lib/prompt-schema-codegen.js +142 -108
- package/dist/src/lib/prompt-schema-codegen.js.map +1 -1
- package/dist/src/lib/prompt-schema-document.d.ts +35 -0
- package/dist/src/lib/prompt-schema-document.js +92 -0
- package/dist/src/lib/prompt-schema-document.js.map +1 -0
- package/dist/src/lib/prompt-schema-refs.d.ts +173 -0
- package/dist/src/lib/prompt-schema-refs.js +478 -0
- package/dist/src/lib/prompt-schema-refs.js.map +1 -0
- package/dist/src/lib/records-verbs.d.ts +79 -0
- package/dist/src/lib/records-verbs.js +45 -0
- package/dist/src/lib/records-verbs.js.map +1 -0
- package/dist/src/lib/register-commands.d.ts +36 -0
- package/dist/src/lib/register-commands.js +37 -0
- package/dist/src/lib/register-commands.js.map +1 -0
- package/dist/src/lib/retired-imports.d.ts +53 -0
- package/dist/src/lib/retired-imports.js +120 -0
- package/dist/src/lib/retired-imports.js.map +1 -0
- package/dist/src/lib/run-status.d.ts +1 -1
- package/dist/src/lib/run-status.generated.d.ts +2 -2
- package/dist/src/lib/run-status.generated.js +3 -1
- package/dist/src/lib/run-status.generated.js.map +1 -1
- package/dist/src/lib/run-status.js +1 -1
- package/dist/src/lib/schema-codegen/compiledSpace.d.ts +62 -0
- package/dist/src/lib/schema-codegen/compiledSpace.js +103 -0
- package/dist/src/lib/schema-codegen/compiledSpace.js.map +1 -0
- package/dist/src/lib/schema-codegen/generated-db3-bridge.d.ts +86 -0
- package/dist/src/lib/schema-codegen/generated-db3-bridge.js +227 -0
- package/dist/src/lib/schema-codegen/generated-db3-bridge.js.map +1 -0
- package/dist/src/lib/schema-codegen/generated-db3-query-capabilities.d.ts +85 -0
- package/dist/src/lib/schema-codegen/generated-db3-query-capabilities.js +86 -0
- package/dist/src/lib/schema-codegen/generated-db3-query-capabilities.js.map +1 -0
- package/dist/src/lib/schema-codegen/generated-field-grammar.d.ts +218 -0
- package/dist/src/lib/schema-codegen/generated-field-grammar.js +397 -0
- package/dist/src/lib/schema-codegen/generated-field-grammar.js.map +1 -0
- package/dist/src/lib/schema-codegen/generated-field-table.d.ts +80 -0
- package/dist/src/lib/schema-codegen/generated-field-table.js +542 -0
- package/dist/src/lib/schema-codegen/generated-field-table.js.map +1 -0
- package/dist/src/lib/schema-codegen/generated-prompt-schemas.d.ts +195 -0
- package/dist/src/lib/schema-codegen/generated-prompt-schemas.js +503 -0
- package/dist/src/lib/schema-codegen/generated-prompt-schemas.js.map +1 -0
- package/dist/src/lib/schema-codegen/generated-schema-descriptor.d.ts +258 -0
- package/dist/src/lib/schema-codegen/generated-schema-descriptor.js +422 -0
- package/dist/src/lib/schema-codegen/generated-schema-descriptor.js.map +1 -0
- package/dist/src/lib/schema-codegen/generated-schema-file.d.ts +129 -0
- package/dist/src/lib/schema-codegen/generated-schema-file.js +475 -0
- package/dist/src/lib/schema-codegen/generated-schema-file.js.map +1 -0
- package/dist/src/lib/schema-codegen/generated-schema-provenance.d.ts +115 -0
- package/dist/src/lib/schema-codegen/generated-schema-provenance.js +274 -0
- package/dist/src/lib/schema-codegen/generated-schema-provenance.js.map +1 -0
- package/dist/src/lib/schema-codegen/generated-schema-refs.d.ts +366 -0
- package/dist/src/lib/schema-codegen/generated-schema-refs.js +1789 -0
- package/dist/src/lib/schema-codegen/generated-schema-refs.js.map +1 -0
- package/dist/src/lib/schema-codegen/generated-schema-shape.d.ts +27 -0
- package/dist/src/lib/schema-codegen/generated-schema-shape.js +126 -0
- package/dist/src/lib/schema-codegen/generated-schema-shape.js.map +1 -0
- package/dist/src/lib/schema-codegen/namedRefs.d.ts +56 -0
- package/dist/src/lib/schema-codegen/namedRefs.js +143 -0
- package/dist/src/lib/schema-codegen/namedRefs.js.map +1 -0
- package/dist/src/lib/schema-codegen/naming.d.ts +35 -0
- package/dist/src/lib/schema-codegen/naming.js +83 -0
- package/dist/src/lib/schema-codegen/naming.js.map +1 -0
- package/dist/src/lib/schema-codegen/schemaChanges.d.ts +74 -0
- package/dist/src/lib/schema-codegen/schemaChanges.js +277 -0
- package/dist/src/lib/schema-codegen/schemaChanges.js.map +1 -0
- package/dist/src/lib/schema-codegen/schemaDocs.d.ts +69 -0
- package/dist/src/lib/schema-codegen/schemaDocs.js +219 -0
- package/dist/src/lib/schema-codegen/schemaDocs.js.map +1 -0
- package/dist/src/lib/schema-codegen/schemaIR.d.ts +158 -0
- package/dist/src/lib/schema-codegen/schemaIR.js +279 -0
- package/dist/src/lib/schema-codegen/schemaIR.js.map +1 -0
- package/dist/src/lib/schema-codegen/schemaToTs.d.ts +109 -0
- package/dist/src/lib/schema-codegen/schemaToTs.js +269 -0
- package/dist/src/lib/schema-codegen/schemaToTs.js.map +1 -0
- package/dist/src/lib/schema-codegen/valuesLists.d.ts +48 -0
- package/dist/src/lib/schema-codegen/valuesLists.js +144 -0
- package/dist/src/lib/schema-codegen/valuesLists.js.map +1 -0
- package/dist/src/lib/schema-family-index.d.ts +228 -0
- package/dist/src/lib/schema-family-index.js +813 -0
- package/dist/src/lib/schema-family-index.js.map +1 -0
- package/dist/src/lib/schema-pins.d.ts +82 -0
- package/dist/src/lib/schema-pins.js +198 -0
- package/dist/src/lib/schema-pins.js.map +1 -0
- package/dist/src/lib/schema-preview.d.ts +244 -0
- package/dist/src/lib/schema-preview.js +498 -0
- package/dist/src/lib/schema-preview.js.map +1 -0
- package/dist/src/lib/scope-request.d.ts +23 -11
- package/dist/src/lib/scope-request.js +69 -31
- package/dist/src/lib/scope-request.js.map +1 -1
- package/dist/src/lib/session-scope.d.ts +26 -0
- package/dist/src/lib/session-scope.js +58 -0
- package/dist/src/lib/session-scope.js.map +1 -0
- package/dist/src/lib/skill-installer.d.ts +2 -2
- package/dist/src/lib/skill-installer.js +2 -21
- package/dist/src/lib/skill-installer.js.map +1 -1
- package/dist/src/lib/step-run-table.d.ts +1 -2
- package/dist/src/lib/step-run-table.js +1 -2
- package/dist/src/lib/step-run-table.js.map +1 -1
- package/dist/src/lib/swift-codegen/agentGenerator.d.ts +8 -3
- package/dist/src/lib/swift-codegen/agentGenerator.js +76 -22
- package/dist/src/lib/swift-codegen/agentGenerator.js.map +1 -1
- package/dist/src/lib/swift-codegen/banners.d.ts +12 -0
- package/dist/src/lib/swift-codegen/banners.js +12 -0
- package/dist/src/lib/swift-codegen/banners.js.map +1 -1
- package/dist/src/lib/swift-codegen/functionGenerator.d.ts +36 -1
- package/dist/src/lib/swift-codegen/functionGenerator.js +169 -51
- package/dist/src/lib/swift-codegen/functionGenerator.js.map +1 -1
- package/dist/src/lib/swift-codegen/schemaToSwift.d.ts +33 -9
- package/dist/src/lib/swift-codegen/schemaToSwift.js +215 -179
- package/dist/src/lib/swift-codegen/schemaToSwift.js.map +1 -1
- package/dist/src/lib/swift-codegen/sharedGenerator.d.ts +45 -0
- package/dist/src/lib/swift-codegen/sharedGenerator.js +165 -0
- package/dist/src/lib/swift-codegen/sharedGenerator.js.map +1 -0
- package/dist/src/lib/swift-codegen/swiftKeys.d.ts +19 -0
- package/dist/src/lib/swift-codegen/swiftKeys.js +31 -0
- package/dist/src/lib/swift-codegen/swiftKeys.js.map +1 -0
- package/dist/src/lib/swift-codegen/userPropertiesGenerator.d.ts +30 -0
- package/dist/src/lib/swift-codegen/userPropertiesGenerator.js +69 -0
- package/dist/src/lib/swift-codegen/userPropertiesGenerator.js.map +1 -0
- package/dist/src/lib/sync-resource-types.d.ts +117 -31
- package/dist/src/lib/sync-resource-types.js +197 -189
- package/dist/src/lib/sync-resource-types.js.map +1 -1
- package/dist/src/lib/sync-selectors.d.ts +7 -0
- package/dist/src/lib/sync-selectors.js +22 -2
- package/dist/src/lib/sync-selectors.js.map +1 -1
- package/dist/src/lib/template.d.ts +39 -3
- package/dist/src/lib/template.js +103 -14
- package/dist/src/lib/template.js.map +1 -1
- package/dist/src/lib/test-case-file-names.d.ts +3 -5
- package/dist/src/lib/test-case-file-names.js +3 -5
- package/dist/src/lib/test-case-file-names.js.map +1 -1
- package/dist/src/lib/test-runs.d.ts +45 -0
- package/dist/src/lib/test-runs.js +150 -0
- package/dist/src/lib/test-runs.js.map +1 -0
- package/dist/src/lib/test-users.d.ts +25 -0
- package/dist/src/lib/test-users.js +36 -0
- package/dist/src/lib/test-users.js.map +1 -0
- package/dist/src/lib/toml-database-config.d.ts +4 -2
- package/dist/src/lib/toml-database-config.js +11 -6
- package/dist/src/lib/toml-database-config.js.map +1 -1
- package/dist/src/lib/toml-scalar-edit.js +6 -4
- package/dist/src/lib/toml-scalar-edit.js.map +1 -1
- package/dist/src/lib/transition-warnings.d.ts +21 -0
- package/dist/src/lib/transition-warnings.js +49 -0
- package/dist/src/lib/transition-warnings.js.map +1 -0
- package/dist/src/lib/user-index.d.ts +80 -0
- package/dist/src/lib/user-index.js +166 -0
- package/dist/src/lib/user-index.js.map +1 -0
- package/dist/src/lib/user-properties/generated-properties-schema.d.ts +159 -0
- package/dist/src/lib/user-properties/generated-properties-schema.js +471 -0
- package/dist/src/lib/user-properties/generated-properties-schema.js.map +1 -0
- package/dist/src/lib/user-properties/user-properties-codegen.d.ts +55 -0
- package/dist/src/lib/user-properties/user-properties-codegen.js +129 -0
- package/dist/src/lib/user-properties/user-properties-codegen.js.map +1 -0
- package/dist/src/lib/user-walk.d.ts +31 -0
- package/dist/src/lib/user-walk.js +102 -0
- package/dist/src/lib/user-walk.js.map +1 -0
- package/dist/src/lib/webhook-capture.d.ts +43 -0
- package/dist/src/lib/webhook-capture.js +91 -0
- package/dist/src/lib/webhook-capture.js.map +1 -0
- package/dist/src/lib/webhook-deliver.d.ts +18 -20
- package/dist/src/lib/webhook-deliver.js +34 -89
- package/dist/src/lib/webhook-deliver.js.map +1 -1
- package/dist/src/lib/webhook-test-run.d.ts +32 -0
- package/dist/src/lib/webhook-test-run.js +108 -0
- package/dist/src/lib/webhook-test-run.js.map +1 -0
- package/dist/src/lib/worker-perf-format.d.ts +22 -0
- package/dist/src/lib/worker-perf-format.js +27 -0
- package/dist/src/lib/worker-perf-format.js.map +1 -0
- 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/dist/src/types/index.d.ts +20 -65
- package/dist/src/validators.d.ts +7 -55
- package/dist/src/validators.js +7 -53
- package/dist/src/validators.js.map +1 -1
- package/dist/src/vite.d.ts +17 -0
- package/dist/src/vite.js +18 -0
- package/dist/src/vite.js.map +1 -0
- package/package.json +20 -9
|
@@ -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":"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"}
|
|
@@ -421,40 +421,6 @@ export interface AdminInvitation {
|
|
|
421
421
|
appName?: string;
|
|
422
422
|
appCreationLimit?: number;
|
|
423
423
|
}
|
|
424
|
-
export interface PromptCatalogItem {
|
|
425
|
-
catalogId: string;
|
|
426
|
-
catalogKey: string;
|
|
427
|
-
displayName: string;
|
|
428
|
-
description?: string | null;
|
|
429
|
-
category?: string | null;
|
|
430
|
-
provider: "openrouter" | "gemini";
|
|
431
|
-
model: string;
|
|
432
|
-
systemPrompt?: string | null;
|
|
433
|
-
userPromptTemplate: string;
|
|
434
|
-
inputSchema?: string | null;
|
|
435
|
-
outputSchema?: string | null;
|
|
436
|
-
temperature?: string | null;
|
|
437
|
-
topP?: string | null;
|
|
438
|
-
maxTokens?: number | null;
|
|
439
|
-
status: "draft" | "active" | "deprecated";
|
|
440
|
-
createdBy?: string;
|
|
441
|
-
createdAt?: string;
|
|
442
|
-
modifiedAt?: string;
|
|
443
|
-
}
|
|
444
|
-
export interface IntegrationCatalogItem {
|
|
445
|
-
catalogId: string;
|
|
446
|
-
catalogKey: string;
|
|
447
|
-
displayName: string;
|
|
448
|
-
description?: string | null;
|
|
449
|
-
category?: string | null;
|
|
450
|
-
requestConfig: string;
|
|
451
|
-
docUrl?: string | null;
|
|
452
|
-
logoUrl?: string | null;
|
|
453
|
-
status: "draft" | "active" | "deprecated";
|
|
454
|
-
createdBy?: string;
|
|
455
|
-
createdAt?: string;
|
|
456
|
-
modifiedAt?: string;
|
|
457
|
-
}
|
|
458
424
|
export interface WorkflowConfiguration {
|
|
459
425
|
configId: string;
|
|
460
426
|
workflowId: string;
|
|
@@ -491,23 +457,26 @@ export interface SyncState {
|
|
|
491
457
|
*/
|
|
492
458
|
excludedName?: unknown;
|
|
493
459
|
};
|
|
494
|
-
|
|
495
|
-
id: string;
|
|
460
|
+
userProperties?: {
|
|
496
461
|
modifiedAt: string;
|
|
497
462
|
contentHash?: string;
|
|
498
463
|
semanticHash?: string;
|
|
499
|
-
|
|
500
|
-
|
|
464
|
+
version?: number;
|
|
465
|
+
};
|
|
466
|
+
integrations?: Record<string, {
|
|
501
467
|
id: string;
|
|
502
468
|
modifiedAt: string;
|
|
503
469
|
contentHash?: string;
|
|
504
470
|
semanticHash?: string;
|
|
471
|
+
ruleFreeSemanticHash?: string;
|
|
505
472
|
}>;
|
|
506
|
-
|
|
473
|
+
prompts?: Record<string, {
|
|
507
474
|
id: string;
|
|
508
475
|
modifiedAt: string;
|
|
509
|
-
activeConfigId?: string;
|
|
510
476
|
contentHash?: string;
|
|
477
|
+
semanticHash?: string;
|
|
478
|
+
ruleFreeSemanticHash?: string;
|
|
479
|
+
evaluatorFreeSemanticHash?: string;
|
|
511
480
|
}>;
|
|
512
481
|
emailTemplates?: Record<string, {
|
|
513
482
|
id: string;
|
|
@@ -546,33 +515,30 @@ export interface SyncState {
|
|
|
546
515
|
semanticHash?: string;
|
|
547
516
|
hasSchema?: boolean;
|
|
548
517
|
}>;
|
|
549
|
-
|
|
550
|
-
|
|
518
|
+
db3Types?: Record<string, {
|
|
519
|
+
name: string;
|
|
551
520
|
modifiedAt: string;
|
|
552
521
|
contentHash?: string;
|
|
553
522
|
semanticHash?: string;
|
|
523
|
+
hasSchema?: boolean;
|
|
554
524
|
}>;
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
contentHash?: string;
|
|
558
|
-
}>;
|
|
559
|
-
groupTypeConfigs?: Record<string, {
|
|
525
|
+
ruleSets?: Record<string, {
|
|
526
|
+
id: string;
|
|
560
527
|
modifiedAt: string;
|
|
561
528
|
contentHash?: string;
|
|
562
529
|
semanticHash?: string;
|
|
563
530
|
}>;
|
|
564
|
-
|
|
531
|
+
schemas?: Record<string, {
|
|
532
|
+
version: number;
|
|
565
533
|
modifiedAt: string;
|
|
566
534
|
contentHash?: string;
|
|
567
|
-
|
|
535
|
+
sourceHash?: string;
|
|
568
536
|
}>;
|
|
569
|
-
|
|
537
|
+
vars?: Record<string, {
|
|
570
538
|
modifiedAt: string;
|
|
571
539
|
contentHash?: string;
|
|
572
|
-
semanticHash?: string;
|
|
573
540
|
}>;
|
|
574
|
-
|
|
575
|
-
id: string;
|
|
541
|
+
metadataCategoryConfigs?: Record<string, {
|
|
576
542
|
modifiedAt: string;
|
|
577
543
|
contentHash?: string;
|
|
578
544
|
semanticHash?: string;
|
|
@@ -583,23 +549,12 @@ export interface SyncState {
|
|
|
583
549
|
contentHash?: string;
|
|
584
550
|
semanticHash?: string;
|
|
585
551
|
}>;
|
|
586
|
-
cronTriggers?: Record<string, {
|
|
587
|
-
id: string;
|
|
588
|
-
modifiedAt: string;
|
|
589
|
-
contentHash?: string;
|
|
590
|
-
semanticHash?: string;
|
|
591
|
-
}>;
|
|
592
|
-
scripts?: Record<string, {
|
|
593
|
-
id: string;
|
|
594
|
-
modifiedAt: string;
|
|
595
|
-
contentHash?: string;
|
|
596
|
-
semanticHash?: string;
|
|
597
|
-
}>;
|
|
598
552
|
functions?: Record<string, {
|
|
599
553
|
id: string;
|
|
600
554
|
modifiedAt: string;
|
|
601
555
|
contentHash?: string;
|
|
602
556
|
semanticHash?: string;
|
|
557
|
+
accessFreeSemanticHash?: string;
|
|
603
558
|
envelopeHash?: string;
|
|
604
559
|
activeConfigId?: string;
|
|
605
560
|
sources?: string[];
|
package/dist/src/validators.d.ts
CHANGED
|
@@ -1,65 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Public subpath export: `primitive-admin/validators` (issue #983).
|
|
3
3
|
*
|
|
4
|
-
* Re-exports the TOML validators
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Re-exports the TOML validators `config push` runs, so external tooling
|
|
5
|
+
* (e.g. `primitive-docs`) can validate the exact same way the published CLI
|
|
6
|
+
* does — instead of re-implementing the flow against submodule source and
|
|
7
|
+
* silently drifting.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* wrapper. Runs the identical parse → fragment-expand → validate → format
|
|
13
|
-
* path that `config push` runs for workflow TOML (`cli/src/commands/sync.ts`:
|
|
14
|
-
* `parseTomlFile()` → `validateWorkflowToml()` → `formatWorkflowTomlErrors()`).
|
|
15
|
-
* Use this when you have the raw TOML string and want zero divergence from
|
|
16
|
-
* `config push`, including `include` fragment expansion.
|
|
17
|
-
*
|
|
18
|
-
* 2. The raw validators (`validateWorkflowToml`, `validateOperations`) and
|
|
19
|
-
* their formatters (`formatWorkflowTomlErrors`, `formatIssue`). These are
|
|
20
|
-
* **pure functions over already-parsed TOML** — they do not read files or
|
|
21
|
-
* parse TOML themselves. The consumer is responsible for parsing (config
|
|
22
|
-
* files via `parseConfigToml`) and, for workflows, for any `include`
|
|
23
|
-
* expansion. There is
|
|
24
|
-
* no coupling on a specific TOML parser version; pass whatever parsed
|
|
25
|
-
* object/operations[] you already have.
|
|
9
|
+
* `validateOperations` and its formatter `formatIssue` are **pure functions
|
|
10
|
+
* over already-parsed TOML** — they do not read files or parse TOML
|
|
11
|
+
* themselves. The workflow validators retired with DSL workflows (#3190).
|
|
26
12
|
*
|
|
27
13
|
* Internal helpers (`collectParamRefs`, `declaredParamNames`,
|
|
28
14
|
* `locateOperationLine`) are intentionally NOT exported — they are
|
|
29
15
|
* implementation details of `validateOperations`.
|
|
30
16
|
*/
|
|
31
|
-
import { type WorkflowTomlError } from "./lib/workflow-toml-validator.js";
|
|
32
|
-
export { validateWorkflowToml, formatWorkflowTomlErrors, type WorkflowTomlError, } from "./lib/workflow-toml-validator.js";
|
|
33
17
|
export { validateOperations, formatIssue, type ValidationIssue, type ValidationResult, type ValidateOptions, } from "./lib/toml-params-validator.js";
|
|
34
|
-
/**
|
|
35
|
-
* Result of {@link validateWorkflowTomlSource}.
|
|
36
|
-
*/
|
|
37
|
-
export interface WorkflowTomlSourceResult {
|
|
38
|
-
/** The structured errors (empty when the source is valid). */
|
|
39
|
-
errors: WorkflowTomlError[];
|
|
40
|
-
/**
|
|
41
|
-
* A human-readable, multi-line error string (the same text `config push`
|
|
42
|
-
* prints), or `null` when there are no errors.
|
|
43
|
-
*/
|
|
44
|
-
formatted: string | null;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Validate a workflow TOML **source string** the exact way `config push` does.
|
|
48
|
-
*
|
|
49
|
-
* Runs the identical pipeline `config push` runs on every workflow file:
|
|
50
|
-
* `parseConfigToml(raw)` → `expandWorkflowTomlData(parsed, filePath)`
|
|
51
|
-
* → `validateWorkflowToml(expanded)` → `formatWorkflowTomlErrors(...)`.
|
|
52
|
-
*
|
|
53
|
-
* The `include` fragment expansion resolves fragments relative to
|
|
54
|
-
* `<filePath>/../../workflow-fragments/` — pass the real (or intended) on-disk
|
|
55
|
-
* path of the workflow so fragment resolution matches `config push`. If the
|
|
56
|
-
* source uses no `include` key the expander is a no-op and `filePath` is only
|
|
57
|
-
* used for error attribution.
|
|
58
|
-
*
|
|
59
|
-
* @param raw The raw workflow TOML source string.
|
|
60
|
-
* @param filePath The workflow's file path (used for fragment resolution and
|
|
61
|
-
* error attribution).
|
|
62
|
-
* @returns `{ errors, formatted }` — `errors` is empty and `formatted` is
|
|
63
|
-
* `null` when the source is valid.
|
|
64
|
-
*/
|
|
65
|
-
export declare function validateWorkflowTomlSource(raw: string, filePath: string): WorkflowTomlSourceResult;
|
package/dist/src/validators.js
CHANGED
|
@@ -1,64 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Public subpath export: `primitive-admin/validators` (issue #983).
|
|
3
3
|
*
|
|
4
|
-
* Re-exports the TOML validators
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Re-exports the TOML validators `config push` runs, so external tooling
|
|
5
|
+
* (e.g. `primitive-docs`) can validate the exact same way the published CLI
|
|
6
|
+
* does — instead of re-implementing the flow against submodule source and
|
|
7
|
+
* silently drifting.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* wrapper. Runs the identical parse → fragment-expand → validate → format
|
|
13
|
-
* path that `config push` runs for workflow TOML (`cli/src/commands/sync.ts`:
|
|
14
|
-
* `parseTomlFile()` → `validateWorkflowToml()` → `formatWorkflowTomlErrors()`).
|
|
15
|
-
* Use this when you have the raw TOML string and want zero divergence from
|
|
16
|
-
* `config push`, including `include` fragment expansion.
|
|
17
|
-
*
|
|
18
|
-
* 2. The raw validators (`validateWorkflowToml`, `validateOperations`) and
|
|
19
|
-
* their formatters (`formatWorkflowTomlErrors`, `formatIssue`). These are
|
|
20
|
-
* **pure functions over already-parsed TOML** — they do not read files or
|
|
21
|
-
* parse TOML themselves. The consumer is responsible for parsing (config
|
|
22
|
-
* files via `parseConfigToml`) and, for workflows, for any `include`
|
|
23
|
-
* expansion. There is
|
|
24
|
-
* no coupling on a specific TOML parser version; pass whatever parsed
|
|
25
|
-
* object/operations[] you already have.
|
|
9
|
+
* `validateOperations` and its formatter `formatIssue` are **pure functions
|
|
10
|
+
* over already-parsed TOML** — they do not read files or parse TOML
|
|
11
|
+
* themselves. The workflow validators retired with DSL workflows (#3190).
|
|
26
12
|
*
|
|
27
13
|
* Internal helpers (`collectParamRefs`, `declaredParamNames`,
|
|
28
14
|
* `locateOperationLine`) are intentionally NOT exported — they are
|
|
29
15
|
* implementation details of `validateOperations`.
|
|
30
16
|
*/
|
|
31
|
-
import { parseConfigToml } from "./lib/config-toml.js";
|
|
32
|
-
import { validateWorkflowToml, formatWorkflowTomlErrors, } from "./lib/workflow-toml-validator.js";
|
|
33
|
-
import { expandWorkflowTomlData } from "./lib/workflow-fragments.js";
|
|
34
|
-
export { validateWorkflowToml, formatWorkflowTomlErrors, } from "./lib/workflow-toml-validator.js";
|
|
35
17
|
export { validateOperations, formatIssue, } from "./lib/toml-params-validator.js";
|
|
36
|
-
/**
|
|
37
|
-
* Validate a workflow TOML **source string** the exact way `config push` does.
|
|
38
|
-
*
|
|
39
|
-
* Runs the identical pipeline `config push` runs on every workflow file:
|
|
40
|
-
* `parseConfigToml(raw)` → `expandWorkflowTomlData(parsed, filePath)`
|
|
41
|
-
* → `validateWorkflowToml(expanded)` → `formatWorkflowTomlErrors(...)`.
|
|
42
|
-
*
|
|
43
|
-
* The `include` fragment expansion resolves fragments relative to
|
|
44
|
-
* `<filePath>/../../workflow-fragments/` — pass the real (or intended) on-disk
|
|
45
|
-
* path of the workflow so fragment resolution matches `config push`. If the
|
|
46
|
-
* source uses no `include` key the expander is a no-op and `filePath` is only
|
|
47
|
-
* used for error attribution.
|
|
48
|
-
*
|
|
49
|
-
* @param raw The raw workflow TOML source string.
|
|
50
|
-
* @param filePath The workflow's file path (used for fragment resolution and
|
|
51
|
-
* error attribution).
|
|
52
|
-
* @returns `{ errors, formatted }` — `errors` is empty and `formatted` is
|
|
53
|
-
* `null` when the source is valid.
|
|
54
|
-
*/
|
|
55
|
-
export function validateWorkflowTomlSource(raw, filePath) {
|
|
56
|
-
const parsed = parseConfigToml(raw);
|
|
57
|
-
const expanded = expandWorkflowTomlData(parsed, filePath);
|
|
58
|
-
const errors = validateWorkflowToml(expanded);
|
|
59
|
-
return {
|
|
60
|
-
errors,
|
|
61
|
-
formatted: errors.length > 0 ? formatWorkflowTomlErrors(filePath, errors) : null,
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
18
|
//# sourceMappingURL=validators.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validators.js","sourceRoot":"","sources":["../../src/validators.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"validators.js","sourceRoot":"","sources":["../../src/validators.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EACL,kBAAkB,EAClB,WAAW,GAIZ,MAAM,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public subpath export: `primitive-admin/vite` (issue #4924).
|
|
3
|
+
*
|
|
4
|
+
* The `primitiveEnv()` Vite plugin, which resolves the project's Primitive
|
|
5
|
+
* environment at config time and fills the `VITE_*` identity a web app reads,
|
|
6
|
+
* plus `resolvePrimitiveEnv` for scripts and `PrimitiveEnvError` to branch on.
|
|
7
|
+
* All three are built on the CLI's own resolver core, so a build and the
|
|
8
|
+
* `primitive` binary of one install always agree on the environment.
|
|
9
|
+
*
|
|
10
|
+
* `vite` is an optional peer dependency: the plugin imports only its types,
|
|
11
|
+
* so nothing here loads `vite` at runtime, and the binary never imports this
|
|
12
|
+
* module.
|
|
13
|
+
*
|
|
14
|
+
* The plugin module's `.env` readers (`loadDotEnv`, `parseDotEnvFile`) are
|
|
15
|
+
* intentionally NOT exported — they are implementation details of the plugin.
|
|
16
|
+
*/
|
|
17
|
+
export { primitiveEnv, resolvePrimitiveEnv, PrimitiveEnvError, type PrimitiveEnvOptions, type PrimitiveEnvPlugin, type ResolvePrimitiveEnvOptions, type ResolvedPrimitiveEnv, } from "./lib/primitive-env-plugin.js";
|
package/dist/src/vite.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public subpath export: `primitive-admin/vite` (issue #4924).
|
|
3
|
+
*
|
|
4
|
+
* The `primitiveEnv()` Vite plugin, which resolves the project's Primitive
|
|
5
|
+
* environment at config time and fills the `VITE_*` identity a web app reads,
|
|
6
|
+
* plus `resolvePrimitiveEnv` for scripts and `PrimitiveEnvError` to branch on.
|
|
7
|
+
* All three are built on the CLI's own resolver core, so a build and the
|
|
8
|
+
* `primitive` binary of one install always agree on the environment.
|
|
9
|
+
*
|
|
10
|
+
* `vite` is an optional peer dependency: the plugin imports only its types,
|
|
11
|
+
* so nothing here loads `vite` at runtime, and the binary never imports this
|
|
12
|
+
* module.
|
|
13
|
+
*
|
|
14
|
+
* The plugin module's `.env` readers (`loadDotEnv`, `parseDotEnvFile`) are
|
|
15
|
+
* intentionally NOT exported — they are implementation details of the plugin.
|
|
16
|
+
*/
|
|
17
|
+
export { primitiveEnv, resolvePrimitiveEnv, PrimitiveEnvError, } from "./lib/primitive-env-plugin.js";
|
|
18
|
+
//# sourceMappingURL=vite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite.js","sourceRoot":"","sources":["../../src/vite.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,GAKlB,MAAM,+BAA+B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "primitive-admin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0-alpha.0",
|
|
4
4
|
"description": "CLI for administering Primitive applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
"./validators": {
|
|
11
11
|
"types": "./dist/src/validators.d.ts",
|
|
12
12
|
"import": "./dist/src/validators.js"
|
|
13
|
+
},
|
|
14
|
+
"./vite": {
|
|
15
|
+
"types": "./dist/src/vite.d.ts",
|
|
16
|
+
"import": "./dist/src/vite.js"
|
|
13
17
|
}
|
|
14
18
|
},
|
|
15
19
|
"files": [
|
|
@@ -18,17 +22,15 @@
|
|
|
18
22
|
"README.md"
|
|
19
23
|
],
|
|
20
24
|
"scripts": {
|
|
21
|
-
"gen:
|
|
22
|
-
"gen:
|
|
23
|
-
"gen:workflow-descriptor": "node scripts/gen-workflow-schema-descriptor.mjs",
|
|
24
|
-
"gen:workflow-descriptor:check": "node scripts/gen-workflow-schema-descriptor.mjs --check",
|
|
25
|
+
"gen:schema-descriptor": "node scripts/gen-schema-descriptor.mjs",
|
|
26
|
+
"gen:schema-descriptor:check": "node scripts/gen-schema-descriptor.mjs --check",
|
|
25
27
|
"gen:config-surfaces": "node scripts/gen-config-surfaces.mjs",
|
|
26
28
|
"gen:config-surfaces:check": "node scripts/gen-config-surfaces.mjs --check",
|
|
27
|
-
"gen:
|
|
28
|
-
"gen:
|
|
29
|
+
"gen:user-properties-schema": "node scripts/gen-user-properties-schema.mjs",
|
|
30
|
+
"gen:user-properties-schema:check": "node scripts/gen-user-properties-schema.mjs --check",
|
|
29
31
|
"gen:config-write-surface": "node scripts/gen-config-write-surface.mjs",
|
|
30
32
|
"gen:config-write-surface:check": "node scripts/gen-config-write-surface.mjs --check",
|
|
31
|
-
"prebuild": "node scripts/gen-
|
|
33
|
+
"prebuild": "node scripts/gen-schema-descriptor.mjs && node scripts/gen-config-surfaces.mjs && node scripts/gen-primitive-env-resolver.mjs && node scripts/gen-sdk-types.mjs && node scripts/gen-user-properties-schema.mjs && node scripts/gen-build-flags.mjs",
|
|
32
34
|
"build": "tsc",
|
|
33
35
|
"typecheck": "tsc --noEmit",
|
|
34
36
|
"prepublishOnly": "pnpm run build",
|
|
@@ -58,7 +60,7 @@
|
|
|
58
60
|
"commander": "^12.1.0",
|
|
59
61
|
"esbuild": "0.25.12",
|
|
60
62
|
"inquirer": "^9.2.12",
|
|
61
|
-
"js-bao": "0.12.0-alpha.
|
|
63
|
+
"js-bao": "0.12.0-alpha.17",
|
|
62
64
|
"mime-types": "^2.1.35",
|
|
63
65
|
"open": "^10.0.3",
|
|
64
66
|
"smol-toml": "1.7.0",
|
|
@@ -67,6 +69,14 @@
|
|
|
67
69
|
"ulid": "^2.4.0",
|
|
68
70
|
"yjs": "^13.6.18"
|
|
69
71
|
},
|
|
72
|
+
"peerDependencies": {
|
|
73
|
+
"vite": ">=5.0.0"
|
|
74
|
+
},
|
|
75
|
+
"peerDependenciesMeta": {
|
|
76
|
+
"vite": {
|
|
77
|
+
"optional": true
|
|
78
|
+
}
|
|
79
|
+
},
|
|
70
80
|
"devDependencies": {
|
|
71
81
|
"@types/inquirer": "^9.0.9",
|
|
72
82
|
"@types/mime-types": "^2.1.4",
|
|
@@ -74,6 +84,7 @@
|
|
|
74
84
|
"@types/tar": "^6.1.13",
|
|
75
85
|
"prettier": "3.8.4",
|
|
76
86
|
"tsx": "^4.20.3",
|
|
87
|
+
"vite": "^8.1.4",
|
|
77
88
|
"vitest": "^1.6.1",
|
|
78
89
|
"yaml": "^2.9.0"
|
|
79
90
|
}
|