primitive-admin 1.2.0-alpha.9 → 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 +93 -27
- 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.js +3 -0
- 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/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/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/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 +518 -546
- package/dist/src/commands/sync.js +3010 -4877
- 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 +1818 -438
- package/dist/src/lib/api-client.js +965 -544
- 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 -1
- package/dist/src/lib/child-apps-local.js +9 -1
- 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-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 +538 -141
- package/dist/src/lib/generated-config-surfaces.js +1772 -1854
- 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/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 +36 -12
- package/dist/src/lib/prompt-schema-codegen.js +96 -100
- 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 +2 -1
- package/dist/src/lib/swift-codegen/agentGenerator.js +25 -23
- 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/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,177 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A function file's schemas, compiled the way the server compiles them.
|
|
3
|
+
*
|
|
4
|
+
* A function schema may define shapes under `$defs` and use them with local
|
|
5
|
+
* `$ref`s, and (#5533) ref shared defs in the tree's `schemas/` files. The
|
|
6
|
+
* server inlines every ref whose target exists when it stores the schema, so
|
|
7
|
+
* every LOCAL reader that pushes or compares a function file has to see that
|
|
8
|
+
* same compiled document: the local side of `config diff` and the push gate,
|
|
9
|
+
* the preflight, the build's warnings, and the configs push's compiled
|
|
10
|
+
* payload and provenance. The header bodies carry the AUTHORED schemas
|
|
11
|
+
* (`authoredFunctionTable`), which the server compiles from source against
|
|
12
|
+
* its stored rows. Codegen reads the authored schemas, so generated types are
|
|
13
|
+
* unchanged by refs. `compileFunctionToml` runs right after the file is
|
|
14
|
+
* parsed, with the vendored copy of the server's compiler.
|
|
15
|
+
*
|
|
16
|
+
* Never run it on a document built from a STORED row: the stored side is
|
|
17
|
+
* compared exactly as stored, so a schema stored before refs resolved reads as
|
|
18
|
+
* a change until it is pushed again.
|
|
19
|
+
*/
|
|
20
|
+
import { compileSchemaRefs, functionSchemaRowBudgetRefusal, schemaFamilyRefsIn, } from "./schema-codegen/generated-schema-refs.js";
|
|
21
|
+
import { schemaProvenanceOf } from "./schema-codegen/generated-schema-provenance.js";
|
|
22
|
+
import { fieldTableMarkerKeys } from "./schema-codegen/generated-field-table.js";
|
|
23
|
+
/**
|
|
24
|
+
* The warning for a JSON-Schema slot whose root carries field-table keys
|
|
25
|
+
* (#5541): accepted as annotations, as before, but probably meant as a field
|
|
26
|
+
* table under the field-table key. Null when it carries none.
|
|
27
|
+
*/
|
|
28
|
+
export function fieldTableKeyWarning(where, schema, slot) {
|
|
29
|
+
const keys = fieldTableMarkerKeys(schema);
|
|
30
|
+
if (keys.length === 0)
|
|
31
|
+
return null;
|
|
32
|
+
const which = keys.length === 1 ? `${keys[0]}, a field-table key` : `${keys.join(", ")}, field-table keys`;
|
|
33
|
+
return `${where} carries ${which}; to write a field table, move it to ${slot}`;
|
|
34
|
+
}
|
|
35
|
+
const FIELDS = ["inputSchema", "outputSchema"];
|
|
36
|
+
/** Results by the document they compiled (and produced), per family source, so a second call is free. */
|
|
37
|
+
const compiledDocuments = new WeakMap();
|
|
38
|
+
/** A compiled `[function]` table → the authored table it was compiled from. */
|
|
39
|
+
const authoredTables = new WeakMap();
|
|
40
|
+
/** The key a compile without a family index is cached under. */
|
|
41
|
+
const PHASE_TWO = Symbol("no family index");
|
|
42
|
+
/** The index a schema with no family-spelled ref compiles against: it reads nothing. */
|
|
43
|
+
const NO_FAMILIES = Object.freeze({ files: new Map() });
|
|
44
|
+
function isPlainObject(value) {
|
|
45
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
46
|
+
}
|
|
47
|
+
/** The tree-relative spelling of a function file (`functions/<key>.toml`), for messages. */
|
|
48
|
+
export function functionFileLabel(filePath) {
|
|
49
|
+
const posix = filePath.replace(/\\/g, "/");
|
|
50
|
+
const at = posix.lastIndexOf("/functions/");
|
|
51
|
+
return at >= 0 ? posix.slice(at + 1) : posix;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The `[function]` table whose schemas a header create or update sends: the
|
|
55
|
+
* authored table a compiled one came from (#5533), or the table itself. The
|
|
56
|
+
* server compiles a header's schema from source against its stored rows, so
|
|
57
|
+
* the body must not carry the CLI's compile: a shared def's dangling
|
|
58
|
+
* `#/$defs/<X>` would resolve against the function's own `$defs` if compiled
|
|
59
|
+
* twice.
|
|
60
|
+
*/
|
|
61
|
+
export function authoredFunctionTable(table) {
|
|
62
|
+
return (isPlainObject(table) && authoredTables.get(table)) || table;
|
|
63
|
+
}
|
|
64
|
+
/** A schema as the push reads it: a JSON-string spelling parsed; anything else not an object is no schema. */
|
|
65
|
+
function schemaValue(value) {
|
|
66
|
+
let schema = value;
|
|
67
|
+
if (typeof schema === "string") {
|
|
68
|
+
try {
|
|
69
|
+
schema = JSON.parse(schema);
|
|
70
|
+
}
|
|
71
|
+
catch {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return isPlainObject(schema) ? schema : null;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Compile the refs of a parsed `functions/<key>.toml`. A schema written as a
|
|
79
|
+
* JSON string is read the way the server reads it. A schema the compile
|
|
80
|
+
* leaves unchanged keeps its authored spelling.
|
|
81
|
+
*
|
|
82
|
+
* With `families` (#5533), shared refs resolve against the tree's `schemas/`
|
|
83
|
+
* files (#5540: and db3 types); a loader is called only when a schema writes a family-spelled ref.
|
|
84
|
+
* Without it, shared refs stay inert as in the release before.
|
|
85
|
+
*/
|
|
86
|
+
export function compileFunctionToml(file, parsed, families) {
|
|
87
|
+
if (!isPlainObject(parsed) || !isPlainObject(parsed.function)) {
|
|
88
|
+
return {
|
|
89
|
+
parsed,
|
|
90
|
+
warnings: [],
|
|
91
|
+
refusal: null,
|
|
92
|
+
budgetRefusal: null,
|
|
93
|
+
schemas: { inputSchema: null, outputSchema: null },
|
|
94
|
+
resolved: { inputSchema: [], outputSchema: [] },
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
const cacheKey = families ?? PHASE_TWO;
|
|
98
|
+
const known = compiledDocuments.get(parsed)?.get(cacheKey);
|
|
99
|
+
if (known)
|
|
100
|
+
return known;
|
|
101
|
+
const table = parsed.function;
|
|
102
|
+
let compiledTable = table;
|
|
103
|
+
const warnings = [];
|
|
104
|
+
let refusal = null;
|
|
105
|
+
const resolved = { inputSchema: [], outputSchema: [] };
|
|
106
|
+
const schemas = { inputSchema: null, outputSchema: null };
|
|
107
|
+
const values = FIELDS.map((field) => schemaValue(table[field]));
|
|
108
|
+
let index;
|
|
109
|
+
if (families) {
|
|
110
|
+
const scans = values.map((value) => schemaFamilyRefsIn(value));
|
|
111
|
+
const needed = scans.some((scan) => scan.edges.length > 0 || scan.db3.length > 0 || scan.shortForms || scan.reserved);
|
|
112
|
+
index = !needed ? NO_FAMILIES : typeof families === "function" ? families() : families;
|
|
113
|
+
}
|
|
114
|
+
FIELDS.forEach((field, at) => {
|
|
115
|
+
const schema = values[at];
|
|
116
|
+
if (!schema)
|
|
117
|
+
return;
|
|
118
|
+
const misplaced = fieldTableKeyWarning(field, schema, field === "inputSchema" ? "[function.input]" : "[function.output]");
|
|
119
|
+
if (misplaced)
|
|
120
|
+
warnings.push(`${file}: ${misplaced}`);
|
|
121
|
+
// #5540 — the field is the position: a db3 ref gets the row in outputSchema.
|
|
122
|
+
const compiled = compileSchemaRefs(schema, { field, position: field === "outputSchema" ? "output" : "input", ...(index ? { families: index } : {}) });
|
|
123
|
+
if (compiled.refusal) {
|
|
124
|
+
refusal ??= `${file}: ${compiled.refusal.message}`;
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
for (const warning of compiled.warnings)
|
|
128
|
+
warnings.push(`${file}: ${warning.message}`);
|
|
129
|
+
resolved[field] = compiled.resolved;
|
|
130
|
+
schemas[field] = compiled.schema;
|
|
131
|
+
if (JSON.stringify(compiled.schema) !== JSON.stringify(schema)) {
|
|
132
|
+
if (compiledTable === table)
|
|
133
|
+
compiledTable = { ...table };
|
|
134
|
+
compiledTable[field] = compiled.schema;
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
// The bytes the server stores for each schema the push sends.
|
|
138
|
+
const stored = (value) => value === undefined || value === null || value === "" ? null : typeof value === "string" ? value : JSON.stringify(value);
|
|
139
|
+
const budget = refusal
|
|
140
|
+
? null
|
|
141
|
+
: functionSchemaRowBudgetRefusal(stored(compiledTable.inputSchema), stored(compiledTable.outputSchema), resolved);
|
|
142
|
+
const result = {
|
|
143
|
+
parsed: compiledTable === table ? parsed : { ...parsed, function: compiledTable },
|
|
144
|
+
warnings,
|
|
145
|
+
refusal,
|
|
146
|
+
budgetRefusal: budget ? `${file}: ${budget.message}` : null,
|
|
147
|
+
schemas,
|
|
148
|
+
resolved,
|
|
149
|
+
};
|
|
150
|
+
if (compiledTable !== table)
|
|
151
|
+
authoredTables.set(compiledTable, table);
|
|
152
|
+
for (const document of [parsed, result.parsed]) {
|
|
153
|
+
let byKey = compiledDocuments.get(document);
|
|
154
|
+
if (!byKey) {
|
|
155
|
+
byKey = new Map();
|
|
156
|
+
compiledDocuments.set(document, byKey);
|
|
157
|
+
}
|
|
158
|
+
byKey.set(cacheKey, result);
|
|
159
|
+
}
|
|
160
|
+
return result;
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* The compiled payload a configs push sends for a compiled function file:
|
|
164
|
+
* the two compiled schemas (null where the file declares none) and the
|
|
165
|
+
* provenance of each, which the server recompiles and compares. The compile
|
|
166
|
+
* must have run with a family index.
|
|
167
|
+
*/
|
|
168
|
+
export async function functionSchemaPayload(compiled) {
|
|
169
|
+
return {
|
|
170
|
+
compiled: { inputSchema: compiled.schemas.inputSchema, outputSchema: compiled.schemas.outputSchema },
|
|
171
|
+
provenance: {
|
|
172
|
+
inputSchema: await schemaProvenanceOf(compiled.resolved.inputSchema),
|
|
173
|
+
outputSchema: await schemaProvenanceOf(compiled.resolved.outputSchema),
|
|
174
|
+
},
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
//# sourceMappingURL=function-schema-refs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-schema-refs.js","sourceRoot":"","sources":["../../../src/lib/function-schema-refs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EACL,iBAAiB,EACjB,8BAA8B,EAC9B,kBAAkB,GAGnB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAyB,MAAM,iDAAiD,CAAC;AAC5G,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAa,EAAE,MAAe,EAAE,IAAY;IAC/E,MAAM,IAAI,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAC1C,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACnC,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,oBAAoB,CAAC;IAC3G,OAAO,GAAG,KAAK,YAAY,KAAK,wCAAwC,IAAI,EAAE,CAAC;AACjF,CAAC;AA8BD,MAAM,MAAM,GAAG,CAAC,aAAa,EAAE,cAAc,CAAU,CAAC;AAExD,yGAAyG;AACzG,MAAM,iBAAiB,GAAG,IAAI,OAAO,EAA8C,CAAC;AACpF,+EAA+E;AAC/E,MAAM,cAAc,GAAG,IAAI,OAAO,EAAe,CAAC;AAClD,gEAAgE;AAChE,MAAM,SAAS,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAC5C,wFAAwF;AACxF,MAAM,WAAW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G,IAAI,KAAK,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI;QAC3D,OAAO;QACP,QAAQ;KACT,CAAC;IACF,IAAI,aAAa,KAAK,KAAK;QAAE,cAAc,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;IACtE,KAAK,MAAM,QAAQ,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC/C,IAAI,KAAK,GAAG,iBAAiB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC5C,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,KAAK,GAAG,IAAI,GAAG,EAAE,CAAC;YAClB,iBAAiB,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QACzC,CAAC;QACD,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC9B,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAQD;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,QAA8B;IACxE,OAAO;QACL,QAAQ,EAAE,EAAE,WAAW,EAAE,QAAQ,CAAC,OAAO,CAAC,WAAW,EAAE,YAAY,EAAE,QAAQ,CAAC,OAAO,CAAC,YAAY,EAAE;QACpG,UAAU,EAAE;YACV,WAAW,EAAE,MAAM,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC;YACpE,YAAY,EAAE,MAAM,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,CAAC;SACvE;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -32,8 +32,9 @@
|
|
|
32
32
|
* time and refuses a destination that lands outside the real root.
|
|
33
33
|
*/
|
|
34
34
|
import { type TriggerDeclaration } from "./generated-config-surfaces.js";
|
|
35
|
+
import { type CompiledFunctionToml, type FunctionSchemaPayload, type SchemaFamilySource } from "./function-schema-refs.js";
|
|
35
36
|
import { type PullWriteTally } from "./pull-write.js";
|
|
36
|
-
import { type FunctionManifest as CollectedManifest } from "./function-collect.js";
|
|
37
|
+
import { type CollectedFunction, type FunctionManifest as CollectedManifest } from "./function-collect.js";
|
|
37
38
|
/**
|
|
38
39
|
* Collect one function's manifest, or answer from this command's memo.
|
|
39
40
|
*
|
|
@@ -49,6 +50,18 @@ export declare function collectManifestForBundle(options: {
|
|
|
49
50
|
/** The built bundle's source, for the static scan (#3279). */
|
|
50
51
|
bundle?: string;
|
|
51
52
|
}): Promise<CollectedManifest>;
|
|
53
|
+
/**
|
|
54
|
+
* The manifest and the local `authorize` answer (#4717), from the same memo:
|
|
55
|
+
* one collect pass per bundle answers both.
|
|
56
|
+
*/
|
|
57
|
+
export declare function collectForBundle(options: {
|
|
58
|
+
configDir: string;
|
|
59
|
+
entry: string;
|
|
60
|
+
functionKey: string;
|
|
61
|
+
contentHash: string;
|
|
62
|
+
/** The built bundle's source, for the static scan (#3279). */
|
|
63
|
+
bundle?: string;
|
|
64
|
+
}): Promise<CollectedFunction>;
|
|
52
65
|
/**
|
|
53
66
|
* The server's own `[function.triggers.*]` rules, applied to a parsed
|
|
54
67
|
* `[function]` table, with "nothing declared" spelled as null so a caller can
|
|
@@ -95,6 +108,21 @@ export interface FunctionConfigPush {
|
|
|
95
108
|
* can seed a model's metadata on a function's first write.
|
|
96
109
|
*/
|
|
97
110
|
documentSchema?: string;
|
|
111
|
+
/**
|
|
112
|
+
* #5533 — the TOML's two schemas as this CLI compiled them (null where the
|
|
113
|
+
* file declares none). The server recompiles them from the TOML against its
|
|
114
|
+
* stored `schemas/` files and refuses the push if they differ.
|
|
115
|
+
*/
|
|
116
|
+
compiled: FunctionSchemaPayload["compiled"];
|
|
117
|
+
/** #5533 — where each compiled schema inlined refs, and each def's hash; inside the envelope and `envelopeHash`. */
|
|
118
|
+
provenance: FunctionSchemaPayload["provenance"];
|
|
119
|
+
/**
|
|
120
|
+
* #5547 — the advisory typecheck's lines for this version, when the typed
|
|
121
|
+
* `ctx.db3` handles refuse something in it; absent otherwise. Outside the
|
|
122
|
+
* envelope and `envelopeHash`: the server counts them in its log and stores
|
|
123
|
+
* nothing.
|
|
124
|
+
*/
|
|
125
|
+
db3FilterAdvisories?: string[];
|
|
98
126
|
}
|
|
99
127
|
/**
|
|
100
128
|
* Everything about one `functions/<key>.toml` that `config push` can decide
|
|
@@ -124,6 +152,8 @@ export declare function functionTomlPreflightErrors(options: {
|
|
|
124
152
|
functionKey: string;
|
|
125
153
|
/** The already-parsed document, so the file is read once. */
|
|
126
154
|
tomlData: any;
|
|
155
|
+
/** #5533 — what shared refs resolve against; the file's own tree by default. */
|
|
156
|
+
families?: SchemaFamilySource;
|
|
127
157
|
}): string[];
|
|
128
158
|
/**
|
|
129
159
|
* Build everything the config-version route needs for one function file.
|
|
@@ -156,6 +186,19 @@ export interface DetailedFunctionConfigPush {
|
|
|
156
186
|
* beside it, to the typechecker.
|
|
157
187
|
*/
|
|
158
188
|
projectSources: string[];
|
|
189
|
+
/**
|
|
190
|
+
* Whether the built function carries `authorize` (#4717), from the collect
|
|
191
|
+
* pass. Never sent: the server records its own answer from the push probe.
|
|
192
|
+
* It decides whether `config push` may refuse the version before sending
|
|
193
|
+
* it (#4738).
|
|
194
|
+
*/
|
|
195
|
+
authorize: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* #4730 — the push warnings of a flagged build (an authorize that reads no
|
|
198
|
+
* caller, unbounded input-schema nodes, a root left open); empty for a
|
|
199
|
+
* bare handler. Printed by `config push`, which pushes anyway.
|
|
200
|
+
*/
|
|
201
|
+
warnings: string[];
|
|
159
202
|
}
|
|
160
203
|
/**
|
|
161
204
|
* `buildFunctionConfigPush`, plus the shared sources the build inlined — what
|
|
@@ -171,6 +214,8 @@ export declare function buildFunctionConfigPushDetailed(options: {
|
|
|
171
214
|
tomlData: any;
|
|
172
215
|
/** The declared `functionSources` directories; see `buildFunctionBundle`. */
|
|
173
216
|
sourceRoots?: readonly string[];
|
|
217
|
+
/** #5533 — what shared refs resolve against; the tree's own `schemas/` by default. */
|
|
218
|
+
families?: SchemaFamilySource;
|
|
174
219
|
}): Promise<DetailedFunctionConfigPush>;
|
|
175
220
|
/**
|
|
176
221
|
* The per-function failure when a server DID NOT retain the document schema it
|
|
@@ -229,8 +274,7 @@ export declare function documentSchemaDropAnswer(documentSchemaModels: unknown):
|
|
|
229
274
|
* Says ONCE — for the whole push, not once per function — that this push drops
|
|
230
275
|
* a document schema a running version carries (#3455, D3455-004).
|
|
231
276
|
*
|
|
232
|
-
* Removing `models/models.toml`
|
|
233
|
-
* edit, so it is a warning and not a refusal; but it turns first-writer seeding
|
|
277
|
+
* Removing `models/models.toml` is a legitimate edit, so it is a warning and not a refusal; but it turns first-writer seeding
|
|
234
278
|
* off for every document these functions touch, and that must not be silent.
|
|
235
279
|
*
|
|
236
280
|
* The state this holds is "has the run been told yet", and the rule is that
|
|
@@ -249,6 +293,11 @@ export declare function createDocumentSchemaDropWarner(deps: {
|
|
|
249
293
|
/** Where the sentence goes. */
|
|
250
294
|
warn: (message: string) => void;
|
|
251
295
|
}): (functionId: string, activeConfigId: string | undefined) => Promise<void>;
|
|
296
|
+
/**
|
|
297
|
+
* The compiled payload a configs push carries for a compiled function file
|
|
298
|
+
* (#5533): the two compiled schemas and their provenance.
|
|
299
|
+
*/
|
|
300
|
+
export declare function functionConfigSchemaPayload(compiled: CompiledFunctionToml): Promise<FunctionSchemaPayload>;
|
|
252
301
|
/**
|
|
253
302
|
* The create body. `functionKey` is attached here rather than spread from the
|
|
254
303
|
* table: the identity comes from the file name, exactly as it does for every
|
|
@@ -266,8 +315,47 @@ export declare function buildFunctionCreatePayload(functionKey: string, table: a
|
|
|
266
315
|
* live that the file no longer declares, and the comparison — which reads an
|
|
267
316
|
* absent schema as `null` — would report that difference again on every run.
|
|
268
317
|
* Removing `[function.inputSchema]` clears it, and the next diff is Synced.
|
|
318
|
+
*
|
|
319
|
+
* #4738 — neither body carries `access`: the header's rule is frozen, and the
|
|
320
|
+
* server refuses a body that names it.
|
|
269
321
|
*/
|
|
270
322
|
export declare function buildFunctionUpdatePayload(table: any): Record<string, any>;
|
|
323
|
+
/** The facts `config push` decides a function's pre-refusal from (#4738). */
|
|
324
|
+
export interface FunctionPushPreRefusalInput {
|
|
325
|
+
functionKey: string;
|
|
326
|
+
/** The live read succeeded, so `exists` is the server's answer. */
|
|
327
|
+
liveKnown: boolean;
|
|
328
|
+
/** The server holds a live header for the key. */
|
|
329
|
+
exists: boolean;
|
|
330
|
+
/** The LOCAL build carries `authorize`. */
|
|
331
|
+
authorize: boolean;
|
|
332
|
+
/** The TOML's `[function]` table carries `access`. */
|
|
333
|
+
tomlCarriesAccess: boolean;
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* The refusal `config push` records before any request, or null — #4738.
|
|
337
|
+
*
|
|
338
|
+
* Only when no stored version can match: the live read succeeded and the
|
|
339
|
+
* server holds no header for the key. For a function that exists the server
|
|
340
|
+
* decides, because it alone can match the envelope against an inactive stored
|
|
341
|
+
* version (and re-point the header to it); a degraded run sends and lets the
|
|
342
|
+
* server decide too. A bare build is refused before the ambiguity, as on the
|
|
343
|
+
* server.
|
|
344
|
+
*/
|
|
345
|
+
export declare function functionPushPreRefusal(input: FunctionPushPreRefusalInput): string | null;
|
|
346
|
+
/**
|
|
347
|
+
* The message `config push` records for a refused version: the server's two
|
|
348
|
+
* break refusals and its compiled-payload mismatch (#5533) carry the file
|
|
349
|
+
* they are about, as the pre-refusal does; everything else reads as it
|
|
350
|
+
* always did.
|
|
351
|
+
*/
|
|
352
|
+
export declare function functionVersionRefusalMessage(functionKey: string, err: unknown): string;
|
|
353
|
+
/**
|
|
354
|
+
* The warning for a flagged function whose envelope is unchanged and whose
|
|
355
|
+
* TOML still carries `access` (#4738): nothing is pushed, and the next change
|
|
356
|
+
* to the code is refused until the line goes.
|
|
357
|
+
*/
|
|
358
|
+
export declare function unchangedAccessWarning(functionKey: string): string;
|
|
271
359
|
/** The version-carried keys, as the config-version row holds them. */
|
|
272
360
|
export interface ActiveFunctionVersion {
|
|
273
361
|
entry?: string;
|
|
@@ -275,6 +363,11 @@ export interface ActiveFunctionVersion {
|
|
|
275
363
|
limits?: unknown;
|
|
276
364
|
/** #3182 — the capabilities the server derived from the authored TOML. */
|
|
277
365
|
capabilities?: string[];
|
|
366
|
+
/**
|
|
367
|
+
* #4717 — whether the version carries `authorize`, as the server's push
|
|
368
|
+
* probe recorded it.
|
|
369
|
+
*/
|
|
370
|
+
authorize?: boolean;
|
|
278
371
|
}
|
|
279
372
|
/**
|
|
280
373
|
* The canonical TOML for a function with no stored authored bytes — a function
|
|
@@ -288,9 +381,10 @@ export declare function serializeFunction(record: any, active?: ActiveFunctionVe
|
|
|
288
381
|
* local file and a server record cannot be read into different shapes.
|
|
289
382
|
*
|
|
290
383
|
* Text the server rewrites on the way in is read the same way it will come
|
|
291
|
-
* back (the DSO-003 rule the webhook comparator states): `
|
|
292
|
-
*
|
|
293
|
-
*
|
|
384
|
+
* back (the DSO-003 rule the webhook comparator states): `entry` is stored
|
|
385
|
+
* normalized, so an authored value that differs only in that respect is not
|
|
386
|
+
* permanent drift. `access` is no part of it (#4738): the header's rule is
|
|
387
|
+
* frozen, and a file's line beside it is neither sent nor compared.
|
|
294
388
|
*/
|
|
295
389
|
export declare function functionDiffEntity(tomlData: any): Record<string, any>;
|
|
296
390
|
/**
|
|
@@ -448,12 +542,19 @@ export interface DocumentSchemaPullPlan {
|
|
|
448
542
|
* file cannot reproduce two envelopes, so an operator is told which
|
|
449
543
|
* function the tree now speaks for and which ones will read Modified until
|
|
450
544
|
* they are pushed again.
|
|
545
|
+
*
|
|
546
|
+
* Those rules are for a tree outside any project (#5208). Inside a project
|
|
547
|
+
* the copy is never read, so the pull writes none and removes one it finds,
|
|
548
|
+
* whatever it learned; and when a pulled version carries a schema the
|
|
549
|
+
* project has no file for, it says once what follows and how to keep it.
|
|
451
550
|
*/
|
|
452
551
|
export declare function planDocumentSchemaPull(options: {
|
|
453
552
|
configDir: string;
|
|
454
553
|
functions: readonly PulledFunctionSchema[];
|
|
455
554
|
/** True when the pull read every active function the app has. */
|
|
456
555
|
coversEveryFunction: boolean;
|
|
556
|
+
/** Whether the tree belongs to a project; defaults to `projectRootFor`'s answer. */
|
|
557
|
+
inProject?: boolean;
|
|
457
558
|
}): DocumentSchemaPullPlan;
|
|
458
559
|
/** What one `applyFunctionPull` actually did. */
|
|
459
560
|
export interface FunctionPullOutcome {
|
|
@@ -461,6 +562,8 @@ export interface FunctionPullOutcome {
|
|
|
461
562
|
writtenSources: string[];
|
|
462
563
|
/** One line per file the write step refused. */
|
|
463
564
|
refusals: string[];
|
|
565
|
+
/** The tree-relative paths a planned removal deleted (#5208). */
|
|
566
|
+
removed: string[];
|
|
464
567
|
}
|
|
465
568
|
/**
|
|
466
569
|
* Write a plan's files, creating the directories they need.
|