@sitecoreai-labs/sitecoreai-cli 0.0.4
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/AGENTS.md +67 -0
- package/LICENSE +21 -0
- package/README.md +357 -0
- package/bin/sitecoreai-cli +3 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +358 -0
- package/dist/commands/config.d.ts +3 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +27 -0
- package/dist/commands/deploy/deployments.d.ts +3 -0
- package/dist/commands/deploy/deployments.d.ts.map +1 -0
- package/dist/commands/deploy/deployments.js +58 -0
- package/dist/commands/deploy/editing-host.d.ts +3 -0
- package/dist/commands/deploy/editing-host.d.ts.map +1 -0
- package/dist/commands/deploy/editing-host.js +49 -0
- package/dist/commands/deploy/environments/deployments.d.ts +3 -0
- package/dist/commands/deploy/environments/deployments.d.ts.map +1 -0
- package/dist/commands/deploy/environments/deployments.js +28 -0
- package/dist/commands/deploy/environments/index.d.ts +3 -0
- package/dist/commands/deploy/environments/index.d.ts.map +1 -0
- package/dist/commands/deploy/environments/index.js +29 -0
- package/dist/commands/deploy/environments/mutations.d.ts +9 -0
- package/dist/commands/deploy/environments/mutations.d.ts.map +1 -0
- package/dist/commands/deploy/environments/mutations.js +103 -0
- package/dist/commands/deploy/environments/queries.d.ts +7 -0
- package/dist/commands/deploy/environments/queries.d.ts.map +1 -0
- package/dist/commands/deploy/environments/queries.js +56 -0
- package/dist/commands/deploy/environments/variables.d.ts +3 -0
- package/dist/commands/deploy/environments/variables.d.ts.map +1 -0
- package/dist/commands/deploy/environments/variables.js +40 -0
- package/dist/commands/deploy/environments.d.ts +2 -0
- package/dist/commands/deploy/environments.d.ts.map +1 -0
- package/dist/commands/deploy/environments.js +17 -0
- package/dist/commands/deploy/index.d.ts +3 -0
- package/dist/commands/deploy/index.d.ts.map +1 -0
- package/dist/commands/deploy/index.js +26 -0
- package/dist/commands/deploy/logs.d.ts +3 -0
- package/dist/commands/deploy/logs.d.ts.map +1 -0
- package/dist/commands/deploy/logs.js +39 -0
- package/dist/commands/deploy/organizations.d.ts +3 -0
- package/dist/commands/deploy/organizations.d.ts.map +1 -0
- package/dist/commands/deploy/organizations.js +29 -0
- package/dist/commands/deploy/projects.d.ts +3 -0
- package/dist/commands/deploy/projects.d.ts.map +1 -0
- package/dist/commands/deploy/projects.js +74 -0
- package/dist/commands/deploy/shared.d.ts +3 -0
- package/dist/commands/deploy/shared.d.ts.map +1 -0
- package/dist/commands/deploy/shared.js +12 -0
- package/dist/commands/deploy/site.d.ts +10 -0
- package/dist/commands/deploy/site.d.ts.map +1 -0
- package/dist/commands/deploy/site.js +36 -0
- package/dist/commands/deploy/source-control.d.ts +3 -0
- package/dist/commands/deploy/source-control.d.ts.map +1 -0
- package/dist/commands/deploy/source-control.js +89 -0
- package/dist/commands/deploy.d.ts +2 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/deploy.js +5 -0
- package/dist/commands/history.d.ts +3 -0
- package/dist/commands/history.d.ts.map +1 -0
- package/dist/commands/history.js +88 -0
- package/dist/commands/init.d.ts +3 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +32 -0
- package/dist/commands/login.d.ts +3 -0
- package/dist/commands/login.d.ts.map +1 -0
- package/dist/commands/login.js +21 -0
- package/dist/commands/logout.d.ts +3 -0
- package/dist/commands/logout.d.ts.map +1 -0
- package/dist/commands/logout.js +18 -0
- package/dist/commands/recipe/index.d.ts +3 -0
- package/dist/commands/recipe/index.d.ts.map +1 -0
- package/dist/commands/recipe/index.js +158 -0
- package/dist/commands/serialization/index.d.ts +3 -0
- package/dist/commands/serialization/index.d.ts.map +1 -0
- package/dist/commands/serialization/index.js +89 -0
- package/dist/commands/serialization/package.d.ts +3 -0
- package/dist/commands/serialization/package.d.ts.map +1 -0
- package/dist/commands/serialization/package.js +36 -0
- package/dist/commands/shared.d.ts +21 -0
- package/dist/commands/shared.d.ts.map +1 -0
- package/dist/commands/shared.js +82 -0
- package/dist/commands/shell.d.ts +10 -0
- package/dist/commands/shell.d.ts.map +1 -0
- package/dist/commands/shell.js +155 -0
- package/dist/commands/status.d.ts +3 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +15 -0
- package/dist/commands/telemetry.d.ts +3 -0
- package/dist/commands/telemetry.d.ts.map +1 -0
- package/dist/commands/telemetry.js +28 -0
- package/dist/config/env-overrides.d.ts +4 -0
- package/dist/config/env-overrides.d.ts.map +1 -0
- package/dist/config/env-overrides.js +199 -0
- package/dist/config/index.d.ts +5 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +13 -0
- package/dist/config/modules.d.ts +4 -0
- package/dist/config/modules.d.ts.map +1 -0
- package/dist/config/modules.js +152 -0
- package/dist/config/paths.d.ts +2 -0
- package/dist/config/paths.d.ts.map +1 -0
- package/dist/config/paths.js +39 -0
- package/dist/config/root-config.d.ts +10 -0
- package/dist/config/root-config.d.ts.map +1 -0
- package/dist/config/root-config.js +159 -0
- package/dist/config/schema.json +278 -0
- package/dist/config/serialization-module.schema.json +127 -0
- package/dist/config/telemetry.schema.json +21 -0
- package/dist/config/types.d.ts +245 -0
- package/dist/config/types.d.ts.map +1 -0
- package/dist/config/types.js +19 -0
- package/dist/config/validation.d.ts +10 -0
- package/dist/config/validation.d.ts.map +1 -0
- package/dist/config/validation.js +43 -0
- package/dist/deploy/api/common/headers.d.ts +2 -0
- package/dist/deploy/api/common/headers.d.ts.map +1 -0
- package/dist/deploy/api/common/headers.js +10 -0
- package/dist/deploy/api/common/index.d.ts +4 -0
- package/dist/deploy/api/common/index.d.ts.map +1 -0
- package/dist/deploy/api/common/index.js +19 -0
- package/dist/deploy/api/common/request.d.ts +9 -0
- package/dist/deploy/api/common/request.d.ts.map +1 -0
- package/dist/deploy/api/common/request.js +253 -0
- package/dist/deploy/api/common/types.d.ts +44 -0
- package/dist/deploy/api/common/types.d.ts.map +1 -0
- package/dist/deploy/api/common/types.js +5 -0
- package/dist/deploy/api/common.d.ts +2 -0
- package/dist/deploy/api/common.d.ts.map +1 -0
- package/dist/deploy/api/common.js +17 -0
- package/dist/deploy/api/deployment-logs.d.ts +2 -0
- package/dist/deploy/api/deployment-logs.d.ts.map +1 -0
- package/dist/deploy/api/deployment-logs.js +23 -0
- package/dist/deploy/api/deployments.d.ts +9 -0
- package/dist/deploy/api/deployments.d.ts.map +1 -0
- package/dist/deploy/api/deployments.js +61 -0
- package/dist/deploy/api/environments.d.ts +21 -0
- package/dist/deploy/api/environments.d.ts.map +1 -0
- package/dist/deploy/api/environments.js +67 -0
- package/dist/deploy/api/index.d.ts +9 -0
- package/dist/deploy/api/index.d.ts.map +1 -0
- package/dist/deploy/api/index.js +24 -0
- package/dist/deploy/api/logs.d.ts +8 -0
- package/dist/deploy/api/logs.d.ts.map +1 -0
- package/dist/deploy/api/logs.js +29 -0
- package/dist/deploy/api/organizations.d.ts +6 -0
- package/dist/deploy/api/organizations.d.ts.map +1 -0
- package/dist/deploy/api/organizations.js +18 -0
- package/dist/deploy/api/projects.d.ts +13 -0
- package/dist/deploy/api/projects.d.ts.map +1 -0
- package/dist/deploy/api/projects.js +42 -0
- package/dist/deploy/api/source-control.d.ts +15 -0
- package/dist/deploy/api/source-control.d.ts.map +1 -0
- package/dist/deploy/api/source-control.js +71 -0
- package/dist/deploy/api.d.ts +2 -0
- package/dist/deploy/api.d.ts.map +1 -0
- package/dist/deploy/api.js +17 -0
- package/dist/deploy/tasks/deployment-result.d.ts +6 -0
- package/dist/deploy/tasks/deployment-result.d.ts.map +1 -0
- package/dist/deploy/tasks/deployment-result.js +36 -0
- package/dist/deploy/tasks/deployments.d.ts +10 -0
- package/dist/deploy/tasks/deployments.d.ts.map +1 -0
- package/dist/deploy/tasks/deployments.js +201 -0
- package/dist/deploy/tasks/editing-host.d.ts +28 -0
- package/dist/deploy/tasks/editing-host.d.ts.map +1 -0
- package/dist/deploy/tasks/editing-host.js +216 -0
- package/dist/deploy/tasks/environments.d.ts +20 -0
- package/dist/deploy/tasks/environments.d.ts.map +1 -0
- package/dist/deploy/tasks/environments.js +364 -0
- package/dist/deploy/tasks/index.d.ts +10 -0
- package/dist/deploy/tasks/index.d.ts.map +1 -0
- package/dist/deploy/tasks/index.js +25 -0
- package/dist/deploy/tasks/logs.d.ts +5 -0
- package/dist/deploy/tasks/logs.d.ts.map +1 -0
- package/dist/deploy/tasks/logs.js +56 -0
- package/dist/deploy/tasks/organizations.d.ts +6 -0
- package/dist/deploy/tasks/organizations.d.ts.map +1 -0
- package/dist/deploy/tasks/organizations.js +51 -0
- package/dist/deploy/tasks/projects.d.ts +11 -0
- package/dist/deploy/tasks/projects.d.ts.map +1 -0
- package/dist/deploy/tasks/projects.js +246 -0
- package/dist/deploy/tasks/shared.d.ts +63 -0
- package/dist/deploy/tasks/shared.d.ts.map +1 -0
- package/dist/deploy/tasks/shared.js +261 -0
- package/dist/deploy/tasks/site-bind.d.ts +21 -0
- package/dist/deploy/tasks/site-bind.d.ts.map +1 -0
- package/dist/deploy/tasks/site-bind.js +142 -0
- package/dist/deploy/tasks/site.d.ts +14 -0
- package/dist/deploy/tasks/site.d.ts.map +1 -0
- package/dist/deploy/tasks/site.js +29 -0
- package/dist/deploy/tasks/source-control.d.ts +14 -0
- package/dist/deploy/tasks/source-control.d.ts.map +1 -0
- package/dist/deploy/tasks/source-control.js +173 -0
- package/dist/deploy/tasks/types.d.ts +204 -0
- package/dist/deploy/tasks/types.d.ts.map +1 -0
- package/dist/deploy/tasks/types.js +7 -0
- package/dist/deploy/tasks.d.ts +3 -0
- package/dist/deploy/tasks.d.ts.map +1 -0
- package/dist/deploy/tasks.js +18 -0
- package/dist/recipe/api/auth.d.ts +9 -0
- package/dist/recipe/api/auth.d.ts.map +1 -0
- package/dist/recipe/api/auth.js +12 -0
- package/dist/recipe/api/authoring-client.d.ts +37 -0
- package/dist/recipe/api/authoring-client.d.ts.map +1 -0
- package/dist/recipe/api/authoring-client.js +495 -0
- package/dist/recipe/api/client.d.ts +99 -0
- package/dist/recipe/api/client.d.ts.map +1 -0
- package/dist/recipe/api/client.js +17 -0
- package/dist/recipe/api/graphql.d.ts +15 -0
- package/dist/recipe/api/graphql.d.ts.map +1 -0
- package/dist/recipe/api/graphql.js +38 -0
- package/dist/recipe/api/ref-encoding.d.ts +38 -0
- package/dist/recipe/api/ref-encoding.d.ts.map +1 -0
- package/dist/recipe/api/ref-encoding.js +160 -0
- package/dist/recipe/api/site-discovery.d.ts +49 -0
- package/dist/recipe/api/site-discovery.d.ts.map +1 -0
- package/dist/recipe/api/site-discovery.js +127 -0
- package/dist/recipe/api/sites-client.d.ts +48 -0
- package/dist/recipe/api/sites-client.d.ts.map +1 -0
- package/dist/recipe/api/sites-client.js +19 -0
- package/dist/recipe/cache.d.ts +36 -0
- package/dist/recipe/cache.d.ts.map +1 -0
- package/dist/recipe/cache.js +114 -0
- package/dist/recipe/compile/component-section.d.ts +46 -0
- package/dist/recipe/compile/component-section.d.ts.map +1 -0
- package/dist/recipe/compile/component-section.js +143 -0
- package/dist/recipe/compile/component-template.d.ts +34 -0
- package/dist/recipe/compile/component-template.d.ts.map +1 -0
- package/dist/recipe/compile/component-template.js +709 -0
- package/dist/recipe/compile/content-item.d.ts +31 -0
- package/dist/recipe/compile/content-item.d.ts.map +1 -0
- package/dist/recipe/compile/content-item.js +189 -0
- package/dist/recipe/compile/content-template.d.ts +18 -0
- package/dist/recipe/compile/content-template.d.ts.map +1 -0
- package/dist/recipe/compile/content-template.js +52 -0
- package/dist/recipe/compile/enumeration.d.ts +59 -0
- package/dist/recipe/compile/enumeration.d.ts.map +1 -0
- package/dist/recipe/compile/enumeration.js +236 -0
- package/dist/recipe/compile/page-design.d.ts +22 -0
- package/dist/recipe/compile/page-design.d.ts.map +1 -0
- package/dist/recipe/compile/page-design.js +93 -0
- package/dist/recipe/compile/parameters-template.d.ts +14 -0
- package/dist/recipe/compile/parameters-template.d.ts.map +1 -0
- package/dist/recipe/compile/parameters-template.js +92 -0
- package/dist/recipe/compile/partial-design.d.ts +18 -0
- package/dist/recipe/compile/partial-design.d.ts.map +1 -0
- package/dist/recipe/compile/partial-design.js +76 -0
- package/dist/recipe/compile/section-definition.d.ts +18 -0
- package/dist/recipe/compile/section-definition.d.ts.map +1 -0
- package/dist/recipe/compile/section-definition.js +26 -0
- package/dist/recipe/compile/shared.d.ts +442 -0
- package/dist/recipe/compile/shared.d.ts.map +1 -0
- package/dist/recipe/compile/shared.js +843 -0
- package/dist/recipe/compile/site-template.d.ts +52 -0
- package/dist/recipe/compile/site-template.d.ts.map +1 -0
- package/dist/recipe/compile/site-template.js +140 -0
- package/dist/recipe/compile/site.d.ts +44 -0
- package/dist/recipe/compile/site.d.ts.map +1 -0
- package/dist/recipe/compile/site.js +127 -0
- package/dist/recipe/compile.d.ts +93 -0
- package/dist/recipe/compile.d.ts.map +1 -0
- package/dist/recipe/compile.js +741 -0
- package/dist/recipe/execute.d.ts +119 -0
- package/dist/recipe/execute.d.ts.map +1 -0
- package/dist/recipe/execute.js +273 -0
- package/dist/recipe/guids.d.ts +400 -0
- package/dist/recipe/guids.d.ts.map +1 -0
- package/dist/recipe/guids.js +488 -0
- package/dist/recipe/index.d.ts +32 -0
- package/dist/recipe/index.d.ts.map +1 -0
- package/dist/recipe/index.js +156 -0
- package/dist/recipe/io.d.ts +21 -0
- package/dist/recipe/io.d.ts.map +1 -0
- package/dist/recipe/io.js +147 -0
- package/dist/recipe/ir/operations.d.ts +692 -0
- package/dist/recipe/ir/operations.d.ts.map +1 -0
- package/dist/recipe/ir/operations.js +347 -0
- package/dist/recipe/ir/sitecore-templates.d.ts +455 -0
- package/dist/recipe/ir/sitecore-templates.d.ts.map +1 -0
- package/dist/recipe/ir/sitecore-templates.js +465 -0
- package/dist/recipe/layout/emit.d.ts +101 -0
- package/dist/recipe/layout/emit.d.ts.map +1 -0
- package/dist/recipe/layout/emit.js +127 -0
- package/dist/recipe/layout/templates-mapping.d.ts +28 -0
- package/dist/recipe/layout/templates-mapping.d.ts.map +1 -0
- package/dist/recipe/layout/templates-mapping.js +29 -0
- package/dist/recipe/plan.d.ts +134 -0
- package/dist/recipe/plan.d.ts.map +1 -0
- package/dist/recipe/plan.js +565 -0
- package/dist/recipe/policy.d.ts +43 -0
- package/dist/recipe/policy.d.ts.map +1 -0
- package/dist/recipe/policy.js +75 -0
- package/dist/recipe/rollback.d.ts +72 -0
- package/dist/recipe/rollback.d.ts.map +1 -0
- package/dist/recipe/rollback.js +130 -0
- package/dist/recipe/schema/field-types.d.ts +72 -0
- package/dist/recipe/schema/field-types.d.ts.map +1 -0
- package/dist/recipe/schema/field-types.js +118 -0
- package/dist/recipe/schema/recipe.d.ts +1545 -0
- package/dist/recipe/schema/recipe.d.ts.map +1 -0
- package/dist/recipe/schema/recipe.js +1175 -0
- package/dist/recipe/schema/source-fields.d.ts +48 -0
- package/dist/recipe/schema/source-fields.d.ts.map +1 -0
- package/dist/recipe/schema/source-fields.js +79 -0
- package/dist/recipe/tasks/compile.d.ts +14 -0
- package/dist/recipe/tasks/compile.d.ts.map +1 -0
- package/dist/recipe/tasks/compile.js +89 -0
- package/dist/recipe/tasks/diff.d.ts +17 -0
- package/dist/recipe/tasks/diff.d.ts.map +1 -0
- package/dist/recipe/tasks/diff.js +6 -0
- package/dist/recipe/tasks/index.d.ts +9 -0
- package/dist/recipe/tasks/index.d.ts.map +1 -0
- package/dist/recipe/tasks/index.js +13 -0
- package/dist/recipe/tasks/placeholder-allow.d.ts +53 -0
- package/dist/recipe/tasks/placeholder-allow.d.ts.map +1 -0
- package/dist/recipe/tasks/placeholder-allow.js +218 -0
- package/dist/recipe/tasks/plan.d.ts +11 -0
- package/dist/recipe/tasks/plan.d.ts.map +1 -0
- package/dist/recipe/tasks/plan.js +72 -0
- package/dist/recipe/tasks/prune-defaults.d.ts +90 -0
- package/dist/recipe/tasks/prune-defaults.d.ts.map +1 -0
- package/dist/recipe/tasks/prune-defaults.js +184 -0
- package/dist/recipe/tasks/push.d.ts +18 -0
- package/dist/recipe/tasks/push.d.ts.map +1 -0
- package/dist/recipe/tasks/push.js +417 -0
- package/dist/recipe/tasks/shared.d.ts +152 -0
- package/dist/recipe/tasks/shared.d.ts.map +1 -0
- package/dist/recipe/tasks/shared.js +94 -0
- package/dist/recipe/validate.d.ts +103 -0
- package/dist/recipe/validate.d.ts.map +1 -0
- package/dist/recipe/validate.js +297 -0
- package/dist/serialization/commands.d.ts +48 -0
- package/dist/serialization/commands.d.ts.map +1 -0
- package/dist/serialization/commands.js +175 -0
- package/dist/serialization/compare.d.ts +29 -0
- package/dist/serialization/compare.d.ts.map +1 -0
- package/dist/serialization/compare.js +124 -0
- package/dist/serialization/field-filter.d.ts +7 -0
- package/dist/serialization/field-filter.d.ts.map +1 -0
- package/dist/serialization/field-filter.js +20 -0
- package/dist/serialization/filesystem-store/constants.d.ts +3 -0
- package/dist/serialization/filesystem-store/constants.d.ts.map +1 -0
- package/dist/serialization/filesystem-store/constants.js +5 -0
- package/dist/serialization/filesystem-store/index.d.ts +4 -0
- package/dist/serialization/filesystem-store/index.d.ts.map +1 -0
- package/dist/serialization/filesystem-store/index.js +15 -0
- package/dist/serialization/filesystem-store/items.d.ts +10 -0
- package/dist/serialization/filesystem-store/items.d.ts.map +1 -0
- package/dist/serialization/filesystem-store/items.js +64 -0
- package/dist/serialization/filesystem-store/roles.d.ts +6 -0
- package/dist/serialization/filesystem-store/roles.d.ts.map +1 -0
- package/dist/serialization/filesystem-store/roles.js +46 -0
- package/dist/serialization/filesystem-store/users.d.ts +6 -0
- package/dist/serialization/filesystem-store/users.d.ts.map +1 -0
- package/dist/serialization/filesystem-store/users.js +46 -0
- package/dist/serialization/filesystem-store/utils.d.ts +2 -0
- package/dist/serialization/filesystem-store/utils.d.ts.map +1 -0
- package/dist/serialization/filesystem-store/utils.js +17 -0
- package/dist/serialization/filesystem-store.d.ts +2 -0
- package/dist/serialization/filesystem-store.d.ts.map +1 -0
- package/dist/serialization/filesystem-store.js +17 -0
- package/dist/serialization/item-path.d.ts +32 -0
- package/dist/serialization/item-path.d.ts.map +1 -0
- package/dist/serialization/item-path.js +123 -0
- package/dist/serialization/path-provider.d.ts +12 -0
- package/dist/serialization/path-provider.d.ts.map +1 -0
- package/dist/serialization/path-provider.js +271 -0
- package/dist/serialization/signature.d.ts +4 -0
- package/dist/serialization/signature.d.ts.map +1 -0
- package/dist/serialization/signature.js +71 -0
- package/dist/serialization/sitecore-api/auth.d.ts +31 -0
- package/dist/serialization/sitecore-api/auth.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/auth.js +319 -0
- package/dist/serialization/sitecore-api/graphql.d.ts +12 -0
- package/dist/serialization/sitecore-api/graphql.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/graphql.js +20 -0
- package/dist/serialization/sitecore-api/history.d.ts +9 -0
- package/dist/serialization/sitecore-api/history.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/history.js +36 -0
- package/dist/serialization/sitecore-api/index.d.ts +7 -0
- package/dist/serialization/sitecore-api/index.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/index.js +22 -0
- package/dist/serialization/sitecore-api/items.d.ts +8 -0
- package/dist/serialization/sitecore-api/items.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/items.js +132 -0
- package/dist/serialization/sitecore-api/publish.d.ts +14 -0
- package/dist/serialization/sitecore-api/publish.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/publish.js +43 -0
- package/dist/serialization/sitecore-api/roles.d.ts +9 -0
- package/dist/serialization/sitecore-api/roles.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/roles.js +42 -0
- package/dist/serialization/sitecore-api/users.d.ts +9 -0
- package/dist/serialization/sitecore-api/users.d.ts.map +1 -0
- package/dist/serialization/sitecore-api/users.js +62 -0
- package/dist/serialization/sitecore-api.d.ts +2 -0
- package/dist/serialization/sitecore-api.d.ts.map +1 -0
- package/dist/serialization/sitecore-api.js +17 -0
- package/dist/serialization/tasks/diff.d.ts +3 -0
- package/dist/serialization/tasks/diff.d.ts.map +1 -0
- package/dist/serialization/tasks/diff.js +109 -0
- package/dist/serialization/tasks/env/constants.d.ts +2 -0
- package/dist/serialization/tasks/env/constants.d.ts.map +1 -0
- package/dist/serialization/tasks/env/constants.js +4 -0
- package/dist/serialization/tasks/env/deploy-token.d.ts +3 -0
- package/dist/serialization/tasks/env/deploy-token.d.ts.map +1 -0
- package/dist/serialization/tasks/env/deploy-token.js +128 -0
- package/dist/serialization/tasks/env/index.d.ts +5 -0
- package/dist/serialization/tasks/env/index.d.ts.map +1 -0
- package/dist/serialization/tasks/env/index.js +11 -0
- package/dist/serialization/tasks/env/init/auth.d.ts +24 -0
- package/dist/serialization/tasks/env/init/auth.d.ts.map +1 -0
- package/dist/serialization/tasks/env/init/auth.js +122 -0
- package/dist/serialization/tasks/env/init/deploy-lookup.d.ts +22 -0
- package/dist/serialization/tasks/env/init/deploy-lookup.d.ts.map +1 -0
- package/dist/serialization/tasks/env/init/deploy-lookup.js +244 -0
- package/dist/serialization/tasks/env/init.d.ts +3 -0
- package/dist/serialization/tasks/env/init.d.ts.map +1 -0
- package/dist/serialization/tasks/env/init.js +253 -0
- package/dist/serialization/tasks/env/logout.d.ts +3 -0
- package/dist/serialization/tasks/env/logout.d.ts.map +1 -0
- package/dist/serialization/tasks/env/logout.js +61 -0
- package/dist/serialization/tasks/env/status.d.ts +3 -0
- package/dist/serialization/tasks/env/status.d.ts.map +1 -0
- package/dist/serialization/tasks/env/status.js +149 -0
- package/dist/serialization/tasks/env.d.ts +2 -0
- package/dist/serialization/tasks/env.d.ts.map +1 -0
- package/dist/serialization/tasks/env.js +17 -0
- package/dist/serialization/tasks/helpers/collect.d.ts +8 -0
- package/dist/serialization/tasks/helpers/collect.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers/collect.js +29 -0
- package/dist/serialization/tasks/helpers/commands.d.ts +5 -0
- package/dist/serialization/tasks/helpers/commands.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers/commands.js +14 -0
- package/dist/serialization/tasks/helpers/filesystem.d.ts +6 -0
- package/dist/serialization/tasks/helpers/filesystem.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers/filesystem.js +27 -0
- package/dist/serialization/tasks/helpers/index.d.ts +6 -0
- package/dist/serialization/tasks/helpers/index.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers/index.js +13 -0
- package/dist/serialization/tasks/helpers/items.d.ts +3 -0
- package/dist/serialization/tasks/helpers/items.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers/items.js +5 -0
- package/dist/serialization/tasks/helpers/sitecore.d.ts +5 -0
- package/dist/serialization/tasks/helpers/sitecore.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers/sitecore.js +109 -0
- package/dist/serialization/tasks/helpers.d.ts +2 -0
- package/dist/serialization/tasks/helpers.d.ts.map +1 -0
- package/dist/serialization/tasks/helpers.js +17 -0
- package/dist/serialization/tasks/index.d.ts +8 -0
- package/dist/serialization/tasks/index.d.ts.map +1 -0
- package/dist/serialization/tasks/index.js +19 -0
- package/dist/serialization/tasks/info.d.ts +4 -0
- package/dist/serialization/tasks/info.d.ts.map +1 -0
- package/dist/serialization/tasks/info.js +82 -0
- package/dist/serialization/tasks/package.d.ts +4 -0
- package/dist/serialization/tasks/package.d.ts.map +1 -0
- package/dist/serialization/tasks/package.js +171 -0
- package/dist/serialization/tasks/pull.d.ts +3 -0
- package/dist/serialization/tasks/pull.d.ts.map +1 -0
- package/dist/serialization/tasks/pull.js +82 -0
- package/dist/serialization/tasks/push.d.ts +3 -0
- package/dist/serialization/tasks/push.d.ts.map +1 -0
- package/dist/serialization/tasks/push.js +101 -0
- package/dist/serialization/tasks/roles.d.ts +6 -0
- package/dist/serialization/tasks/roles.d.ts.map +1 -0
- package/dist/serialization/tasks/roles.js +103 -0
- package/dist/serialization/tasks/shared.d.ts +19 -0
- package/dist/serialization/tasks/shared.d.ts.map +1 -0
- package/dist/serialization/tasks/shared.js +59 -0
- package/dist/serialization/tasks/types.d.ts +73 -0
- package/dist/serialization/tasks/types.d.ts.map +1 -0
- package/dist/serialization/tasks/types.js +8 -0
- package/dist/serialization/tasks/users.d.ts +5 -0
- package/dist/serialization/tasks/users.d.ts.map +1 -0
- package/dist/serialization/tasks/users.js +90 -0
- package/dist/serialization/tasks/validate.d.ts +5 -0
- package/dist/serialization/tasks/validate.d.ts.map +1 -0
- package/dist/serialization/tasks/validate.js +50 -0
- package/dist/serialization/tasks/watch.d.ts +3 -0
- package/dist/serialization/tasks/watch.d.ts.map +1 -0
- package/dist/serialization/tasks/watch.js +75 -0
- package/dist/serialization/tasks.d.ts +4 -0
- package/dist/serialization/tasks.d.ts.map +1 -0
- package/dist/serialization/tasks.js +19 -0
- package/dist/serialization/tree-spec.d.ts +51 -0
- package/dist/serialization/tree-spec.d.ts.map +1 -0
- package/dist/serialization/tree-spec.js +241 -0
- package/dist/serialization/types.d.ts +75 -0
- package/dist/serialization/types.d.ts.map +1 -0
- package/dist/serialization/types.js +2 -0
- package/dist/serialization/wildcard.d.ts +3 -0
- package/dist/serialization/wildcard.d.ts.map +1 -0
- package/dist/serialization/wildcard.js +24 -0
- package/dist/serialization/yaml.d.ts +9 -0
- package/dist/serialization/yaml.d.ts.map +1 -0
- package/dist/serialization/yaml.js +307 -0
- package/dist/shared/browser.d.ts +2 -0
- package/dist/shared/browser.d.ts.map +1 -0
- package/dist/shared/browser.js +36 -0
- package/dist/shared/cli-options.d.ts +17 -0
- package/dist/shared/cli-options.d.ts.map +1 -0
- package/dist/shared/cli-options.js +8 -0
- package/dist/shared/cli-tasks.d.ts +38 -0
- package/dist/shared/cli-tasks.d.ts.map +1 -0
- package/dist/shared/cli-tasks.js +108 -0
- package/dist/shared/config-template.d.ts +23 -0
- package/dist/shared/config-template.d.ts.map +1 -0
- package/dist/shared/config-template.js +38 -0
- package/dist/shared/env.d.ts +28 -0
- package/dist/shared/env.d.ts.map +1 -0
- package/dist/shared/env.js +38 -0
- package/dist/shared/errors.d.ts +21 -0
- package/dist/shared/errors.d.ts.map +1 -0
- package/dist/shared/errors.js +59 -0
- package/dist/shared/graphql.d.ts +76 -0
- package/dist/shared/graphql.d.ts.map +1 -0
- package/dist/shared/graphql.js +222 -0
- package/dist/shared/history.d.ts +12 -0
- package/dist/shared/history.d.ts.map +1 -0
- package/dist/shared/history.js +62 -0
- package/dist/shared/keychain.d.ts +15 -0
- package/dist/shared/keychain.d.ts.map +1 -0
- package/dist/shared/keychain.js +177 -0
- package/dist/shared/logger.d.ts +24 -0
- package/dist/shared/logger.d.ts.map +1 -0
- package/dist/shared/logger.js +157 -0
- package/dist/shared/output.d.ts +7 -0
- package/dist/shared/output.d.ts.map +1 -0
- package/dist/shared/output.js +21 -0
- package/dist/shared/prompt.d.ts +5 -0
- package/dist/shared/prompt.d.ts.map +1 -0
- package/dist/shared/prompt.js +87 -0
- package/dist/shared/redact.d.ts +3 -0
- package/dist/shared/redact.d.ts.map +1 -0
- package/dist/shared/redact.js +47 -0
- package/dist/shared/spinner.d.ts +5 -0
- package/dist/shared/spinner.d.ts.map +1 -0
- package/dist/shared/spinner.js +89 -0
- package/dist/shared/style.d.ts +2 -0
- package/dist/shared/style.d.ts.map +1 -0
- package/dist/shared/style.js +61 -0
- package/dist/shared/telemetry.d.ts +21 -0
- package/dist/shared/telemetry.d.ts.map +1 -0
- package/dist/shared/telemetry.js +226 -0
- package/dist/shared/validate.d.ts +3 -0
- package/dist/shared/validate.d.ts.map +1 -0
- package/dist/shared/validate.js +32 -0
- package/dist/sites/api/collections.d.ts +25 -0
- package/dist/sites/api/collections.d.ts.map +1 -0
- package/dist/sites/api/collections.js +21 -0
- package/dist/sites/api/index.d.ts +26 -0
- package/dist/sites/api/index.d.ts.map +1 -0
- package/dist/sites/api/index.js +55 -0
- package/dist/sites/api/jobs.d.ts +31 -0
- package/dist/sites/api/jobs.d.ts.map +1 -0
- package/dist/sites/api/jobs.js +10 -0
- package/dist/sites/api/languages.d.ts +22 -0
- package/dist/sites/api/languages.d.ts.map +1 -0
- package/dist/sites/api/languages.js +18 -0
- package/dist/sites/api/request.d.ts +24 -0
- package/dist/sites/api/request.d.ts.map +1 -0
- package/dist/sites/api/request.js +99 -0
- package/dist/sites/api/sites.d.ts +53 -0
- package/dist/sites/api/sites.d.ts.map +1 -0
- package/dist/sites/api/sites.js +41 -0
- package/dist/sites/api/types.d.ts +29 -0
- package/dist/sites/api/types.d.ts.map +1 -0
- package/dist/sites/api/types.js +4 -0
- package/package.json +109 -0
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Public recipe API — `import { ... } from "@sitecoreai-labs/sitecoreai-cli/recipe"`.
|
|
4
|
+
*
|
|
5
|
+
* The registry (and any other consumer) imports recipe types and the
|
|
6
|
+
* compiler from this entry. Internal CLI plumbing (config loading,
|
|
7
|
+
* commander wiring, GraphQL transport bound to scai's environment shape)
|
|
8
|
+
* stays in `src/recipe/{tasks,api/graphql,api/authoring-client,io}.ts`
|
|
9
|
+
* and is NOT re-exported here.
|
|
10
|
+
*
|
|
11
|
+
* Stability contract: the surface in this file is the public contract.
|
|
12
|
+
* Anything not exported here is internal and may move between scai
|
|
13
|
+
* versions without notice.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.NAMESPACE_ROOT = exports.NAMESPACE_RENDERING = exports.NAMESPACE_PROJECT = exports.NAMESPACE_PARTIAL_DESIGN = exports.NAMESPACE_PAGE_DESIGN = exports.NAMESPACE_CONTENT_ITEM = exports.encodeTemplatesMapping = exports.emitLayoutXml = exports.TEMPLATES_MAPPING_AGGREGATE_HANDLE = exports.compileSiteTemplateRecipe = exports.compileSiteRecipe = exports.compileSectionDefinitionRecipe = exports.compileRecipeSet = exports.compileRecipe = exports.compilePartialDesignRecipe = exports.compileParametersTemplateRecipe = exports.compilePageDesignRecipe = exports.compileContentTemplateRecipe = exports.compileContentItemRecipe = exports.compileComponentTemplateRecipe = exports.sitecoreFieldTypeLabel = exports.defaultSitecoreFieldType = exports.SitecoreFieldTypeSchema = exports.SITECORE_FIELD_TYPES = exports.FieldShapeSchema = exports.FIELD_SHAPES = exports.SitecoreFieldAugmentSchema = exports.SiteTemplateTaxonomyEntrySchema = exports.SiteTemplateRecipeSchema = exports.SiteTemplateDictionaryEntrySchema = exports.SiteRecipeSchema = exports.SiteGroupingSchema = exports.SectionDefinitionRecipeSchema = exports.RenderingVariantDefinitionSchema = exports.RenderingDatasourceLocationSchema = exports.RecipeDatasourceSchema = exports.RecipeSchema = exports.RecipeMetaSchema = exports.PlaceholderDefinitionSchema = exports.PartialDesignRecipeSchema = exports.ParametersTemplateRecipeSchema = exports.ParamDefinitionSchema = exports.PageDesignRecipeSchema = exports.LayoutSchema = exports.FieldDefinitionSchema = exports.ContentTemplateRecipeSchema = exports.ContentItemRecipeSchema = exports.ContentFieldValueSchema = exports.ComponentTemplateRecipeSchema = exports.ComponentPlacementSchema = void 0;
|
|
17
|
+
exports.STANDARD_TEMPLATE_ID = exports.SITECORE_TEMPLATES = exports.SITE_TEMPLATE_FIELDS = exports.SITE_FIELDS = exports.SECTION_DEFINITION_FIELDS = exports.RENDERING_FIELDS = exports.LAYOUT_FIELDS = exports.DEFAULT_VERSION = exports.DEFAULT_LANGUAGE = exports.DEFAULT_ICON = exports.DEFAULT_DEVICE_ID = exports.COMPOSITION_FIELDS = exports.SetStandardValuesOpSchema = exports.SetFieldOpSchema = exports.SetBaseTemplatesOpSchema = exports.RefValueSchema = exports.PushPolicySchema = exports.OperationSchema = exports.OperationIrSchema = exports.FieldValueSchema = exports.CreateItemOpSchema = exports.AppendToMultiListOpSchema = exports.variantsFolderId = exports.variantId = exports.templateId = exports.standardValuesId = exports.siteDataFolderId = exports.siteBranchId = exports.sectionId = exports.sectionFolderId = exports.sectionDefinitionId = exports.renderingsSectionFolderId = exports.renderingId = exports.presentationParametersBucketId = exports.partialDesignId = exports.paramsTemplateId = exports.paramsSectionId = exports.paramsFieldId = exports.pageDesignId = exports.fieldId = exports.datasourceId = exports.contentModelsGroupFolderId = exports.contentItemId = exports.componentFoldersBucketId = exports.componentFolderTemplateId = exports.componentFolderStandardValuesId = exports.PAGE_DESIGNS_ROOT_REF_KEY = exports.NAMESPACE_TEMPLATE = exports.NAMESPACE_SITE_BRANCH = exports.NAMESPACE_SECTION_DEFINITION = void 0;
|
|
18
|
+
exports.validateRecipeSetOrThrow = exports.validateRecipeSet = exports.isValid = exports.formatValidationErrors = exports.purposeForRecipe = exports.policyForOp = exports.policyFor = exports.defaultPolicyForRecipe = exports.sourceFieldsNeedHandleResolution = exports.renderSourceFields = exports.renderRefValue = exports.executeIr = exports.buildPlan = exports.TEMPLATE_FIELD_FIELDS = exports.SYSTEM_FIELDS = void 0;
|
|
19
|
+
// Recipe author surface ---------------------------------------------------
|
|
20
|
+
var recipe_1 = require("./schema/recipe");
|
|
21
|
+
Object.defineProperty(exports, "ComponentPlacementSchema", { enumerable: true, get: function () { return recipe_1.ComponentPlacementSchema; } });
|
|
22
|
+
Object.defineProperty(exports, "ComponentTemplateRecipeSchema", { enumerable: true, get: function () { return recipe_1.ComponentTemplateRecipeSchema; } });
|
|
23
|
+
Object.defineProperty(exports, "ContentFieldValueSchema", { enumerable: true, get: function () { return recipe_1.ContentFieldValueSchema; } });
|
|
24
|
+
Object.defineProperty(exports, "ContentItemRecipeSchema", { enumerable: true, get: function () { return recipe_1.ContentItemRecipeSchema; } });
|
|
25
|
+
Object.defineProperty(exports, "ContentTemplateRecipeSchema", { enumerable: true, get: function () { return recipe_1.ContentTemplateRecipeSchema; } });
|
|
26
|
+
Object.defineProperty(exports, "FieldDefinitionSchema", { enumerable: true, get: function () { return recipe_1.FieldDefinitionSchema; } });
|
|
27
|
+
Object.defineProperty(exports, "LayoutSchema", { enumerable: true, get: function () { return recipe_1.LayoutSchema; } });
|
|
28
|
+
Object.defineProperty(exports, "PageDesignRecipeSchema", { enumerable: true, get: function () { return recipe_1.PageDesignRecipeSchema; } });
|
|
29
|
+
Object.defineProperty(exports, "ParamDefinitionSchema", { enumerable: true, get: function () { return recipe_1.ParamDefinitionSchema; } });
|
|
30
|
+
Object.defineProperty(exports, "ParametersTemplateRecipeSchema", { enumerable: true, get: function () { return recipe_1.ParametersTemplateRecipeSchema; } });
|
|
31
|
+
Object.defineProperty(exports, "PartialDesignRecipeSchema", { enumerable: true, get: function () { return recipe_1.PartialDesignRecipeSchema; } });
|
|
32
|
+
Object.defineProperty(exports, "PlaceholderDefinitionSchema", { enumerable: true, get: function () { return recipe_1.PlaceholderDefinitionSchema; } });
|
|
33
|
+
Object.defineProperty(exports, "RecipeMetaSchema", { enumerable: true, get: function () { return recipe_1.RecipeMetaSchema; } });
|
|
34
|
+
Object.defineProperty(exports, "RecipeSchema", { enumerable: true, get: function () { return recipe_1.RecipeSchema; } });
|
|
35
|
+
Object.defineProperty(exports, "RecipeDatasourceSchema", { enumerable: true, get: function () { return recipe_1.RecipeDatasourceSchema; } });
|
|
36
|
+
Object.defineProperty(exports, "RenderingDatasourceLocationSchema", { enumerable: true, get: function () { return recipe_1.RenderingDatasourceLocationSchema; } });
|
|
37
|
+
Object.defineProperty(exports, "RenderingVariantDefinitionSchema", { enumerable: true, get: function () { return recipe_1.RenderingVariantDefinitionSchema; } });
|
|
38
|
+
Object.defineProperty(exports, "SectionDefinitionRecipeSchema", { enumerable: true, get: function () { return recipe_1.SectionDefinitionRecipeSchema; } });
|
|
39
|
+
Object.defineProperty(exports, "SiteGroupingSchema", { enumerable: true, get: function () { return recipe_1.SiteGroupingSchema; } });
|
|
40
|
+
Object.defineProperty(exports, "SiteRecipeSchema", { enumerable: true, get: function () { return recipe_1.SiteRecipeSchema; } });
|
|
41
|
+
Object.defineProperty(exports, "SiteTemplateDictionaryEntrySchema", { enumerable: true, get: function () { return recipe_1.SiteTemplateDictionaryEntrySchema; } });
|
|
42
|
+
Object.defineProperty(exports, "SiteTemplateRecipeSchema", { enumerable: true, get: function () { return recipe_1.SiteTemplateRecipeSchema; } });
|
|
43
|
+
Object.defineProperty(exports, "SiteTemplateTaxonomyEntrySchema", { enumerable: true, get: function () { return recipe_1.SiteTemplateTaxonomyEntrySchema; } });
|
|
44
|
+
Object.defineProperty(exports, "SitecoreFieldAugmentSchema", { enumerable: true, get: function () { return recipe_1.SitecoreFieldAugmentSchema; } });
|
|
45
|
+
var field_types_1 = require("./schema/field-types");
|
|
46
|
+
Object.defineProperty(exports, "FIELD_SHAPES", { enumerable: true, get: function () { return field_types_1.FIELD_SHAPES; } });
|
|
47
|
+
Object.defineProperty(exports, "FieldShapeSchema", { enumerable: true, get: function () { return field_types_1.FieldShapeSchema; } });
|
|
48
|
+
Object.defineProperty(exports, "SITECORE_FIELD_TYPES", { enumerable: true, get: function () { return field_types_1.SITECORE_FIELD_TYPES; } });
|
|
49
|
+
Object.defineProperty(exports, "SitecoreFieldTypeSchema", { enumerable: true, get: function () { return field_types_1.SitecoreFieldTypeSchema; } });
|
|
50
|
+
Object.defineProperty(exports, "defaultSitecoreFieldType", { enumerable: true, get: function () { return field_types_1.defaultSitecoreFieldType; } });
|
|
51
|
+
Object.defineProperty(exports, "sitecoreFieldTypeLabel", { enumerable: true, get: function () { return field_types_1.sitecoreFieldTypeLabel; } });
|
|
52
|
+
// Compiler ----------------------------------------------------------------
|
|
53
|
+
var compile_1 = require("./compile");
|
|
54
|
+
Object.defineProperty(exports, "compileComponentTemplateRecipe", { enumerable: true, get: function () { return compile_1.compileComponentTemplateRecipe; } });
|
|
55
|
+
Object.defineProperty(exports, "compileContentItemRecipe", { enumerable: true, get: function () { return compile_1.compileContentItemRecipe; } });
|
|
56
|
+
Object.defineProperty(exports, "compileContentTemplateRecipe", { enumerable: true, get: function () { return compile_1.compileContentTemplateRecipe; } });
|
|
57
|
+
Object.defineProperty(exports, "compilePageDesignRecipe", { enumerable: true, get: function () { return compile_1.compilePageDesignRecipe; } });
|
|
58
|
+
Object.defineProperty(exports, "compileParametersTemplateRecipe", { enumerable: true, get: function () { return compile_1.compileParametersTemplateRecipe; } });
|
|
59
|
+
Object.defineProperty(exports, "compilePartialDesignRecipe", { enumerable: true, get: function () { return compile_1.compilePartialDesignRecipe; } });
|
|
60
|
+
Object.defineProperty(exports, "compileRecipe", { enumerable: true, get: function () { return compile_1.compileRecipe; } });
|
|
61
|
+
Object.defineProperty(exports, "compileRecipeSet", { enumerable: true, get: function () { return compile_1.compileRecipeSet; } });
|
|
62
|
+
Object.defineProperty(exports, "compileSectionDefinitionRecipe", { enumerable: true, get: function () { return compile_1.compileSectionDefinitionRecipe; } });
|
|
63
|
+
Object.defineProperty(exports, "compileSiteRecipe", { enumerable: true, get: function () { return compile_1.compileSiteRecipe; } });
|
|
64
|
+
Object.defineProperty(exports, "compileSiteTemplateRecipe", { enumerable: true, get: function () { return compile_1.compileSiteTemplateRecipe; } });
|
|
65
|
+
Object.defineProperty(exports, "TEMPLATES_MAPPING_AGGREGATE_HANDLE", { enumerable: true, get: function () { return compile_1.TEMPLATES_MAPPING_AGGREGATE_HANDLE; } });
|
|
66
|
+
var emit_1 = require("./layout/emit");
|
|
67
|
+
Object.defineProperty(exports, "emitLayoutXml", { enumerable: true, get: function () { return emit_1.emitLayoutXml; } });
|
|
68
|
+
var templates_mapping_1 = require("./layout/templates-mapping");
|
|
69
|
+
Object.defineProperty(exports, "encodeTemplatesMapping", { enumerable: true, get: function () { return templates_mapping_1.encodeTemplatesMapping; } });
|
|
70
|
+
// GUID derivation ---------------------------------------------------------
|
|
71
|
+
var guids_1 = require("./guids");
|
|
72
|
+
Object.defineProperty(exports, "NAMESPACE_CONTENT_ITEM", { enumerable: true, get: function () { return guids_1.NAMESPACE_CONTENT_ITEM; } });
|
|
73
|
+
Object.defineProperty(exports, "NAMESPACE_PAGE_DESIGN", { enumerable: true, get: function () { return guids_1.NAMESPACE_PAGE_DESIGN; } });
|
|
74
|
+
Object.defineProperty(exports, "NAMESPACE_PARTIAL_DESIGN", { enumerable: true, get: function () { return guids_1.NAMESPACE_PARTIAL_DESIGN; } });
|
|
75
|
+
Object.defineProperty(exports, "NAMESPACE_PROJECT", { enumerable: true, get: function () { return guids_1.NAMESPACE_PROJECT; } });
|
|
76
|
+
Object.defineProperty(exports, "NAMESPACE_RENDERING", { enumerable: true, get: function () { return guids_1.NAMESPACE_RENDERING; } });
|
|
77
|
+
Object.defineProperty(exports, "NAMESPACE_ROOT", { enumerable: true, get: function () { return guids_1.NAMESPACE_ROOT; } });
|
|
78
|
+
Object.defineProperty(exports, "NAMESPACE_SECTION_DEFINITION", { enumerable: true, get: function () { return guids_1.NAMESPACE_SECTION_DEFINITION; } });
|
|
79
|
+
Object.defineProperty(exports, "NAMESPACE_SITE_BRANCH", { enumerable: true, get: function () { return guids_1.NAMESPACE_SITE_BRANCH; } });
|
|
80
|
+
Object.defineProperty(exports, "NAMESPACE_TEMPLATE", { enumerable: true, get: function () { return guids_1.NAMESPACE_TEMPLATE; } });
|
|
81
|
+
Object.defineProperty(exports, "PAGE_DESIGNS_ROOT_REF_KEY", { enumerable: true, get: function () { return guids_1.PAGE_DESIGNS_ROOT_REF_KEY; } });
|
|
82
|
+
Object.defineProperty(exports, "componentFolderStandardValuesId", { enumerable: true, get: function () { return guids_1.componentFolderStandardValuesId; } });
|
|
83
|
+
Object.defineProperty(exports, "componentFolderTemplateId", { enumerable: true, get: function () { return guids_1.componentFolderTemplateId; } });
|
|
84
|
+
Object.defineProperty(exports, "componentFoldersBucketId", { enumerable: true, get: function () { return guids_1.componentFoldersBucketId; } });
|
|
85
|
+
Object.defineProperty(exports, "contentItemId", { enumerable: true, get: function () { return guids_1.contentItemId; } });
|
|
86
|
+
Object.defineProperty(exports, "contentModelsGroupFolderId", { enumerable: true, get: function () { return guids_1.contentModelsGroupFolderId; } });
|
|
87
|
+
Object.defineProperty(exports, "datasourceId", { enumerable: true, get: function () { return guids_1.datasourceId; } });
|
|
88
|
+
Object.defineProperty(exports, "fieldId", { enumerable: true, get: function () { return guids_1.fieldId; } });
|
|
89
|
+
Object.defineProperty(exports, "pageDesignId", { enumerable: true, get: function () { return guids_1.pageDesignId; } });
|
|
90
|
+
Object.defineProperty(exports, "paramsFieldId", { enumerable: true, get: function () { return guids_1.paramsFieldId; } });
|
|
91
|
+
Object.defineProperty(exports, "paramsSectionId", { enumerable: true, get: function () { return guids_1.paramsSectionId; } });
|
|
92
|
+
Object.defineProperty(exports, "paramsTemplateId", { enumerable: true, get: function () { return guids_1.paramsTemplateId; } });
|
|
93
|
+
Object.defineProperty(exports, "partialDesignId", { enumerable: true, get: function () { return guids_1.partialDesignId; } });
|
|
94
|
+
Object.defineProperty(exports, "presentationParametersBucketId", { enumerable: true, get: function () { return guids_1.presentationParametersBucketId; } });
|
|
95
|
+
Object.defineProperty(exports, "renderingId", { enumerable: true, get: function () { return guids_1.renderingId; } });
|
|
96
|
+
Object.defineProperty(exports, "renderingsSectionFolderId", { enumerable: true, get: function () { return guids_1.renderingsSectionFolderId; } });
|
|
97
|
+
Object.defineProperty(exports, "sectionDefinitionId", { enumerable: true, get: function () { return guids_1.sectionDefinitionId; } });
|
|
98
|
+
Object.defineProperty(exports, "sectionFolderId", { enumerable: true, get: function () { return guids_1.sectionFolderId; } });
|
|
99
|
+
Object.defineProperty(exports, "sectionId", { enumerable: true, get: function () { return guids_1.sectionId; } });
|
|
100
|
+
Object.defineProperty(exports, "siteBranchId", { enumerable: true, get: function () { return guids_1.siteBranchId; } });
|
|
101
|
+
Object.defineProperty(exports, "siteDataFolderId", { enumerable: true, get: function () { return guids_1.siteDataFolderId; } });
|
|
102
|
+
Object.defineProperty(exports, "standardValuesId", { enumerable: true, get: function () { return guids_1.standardValuesId; } });
|
|
103
|
+
Object.defineProperty(exports, "templateId", { enumerable: true, get: function () { return guids_1.templateId; } });
|
|
104
|
+
Object.defineProperty(exports, "variantId", { enumerable: true, get: function () { return guids_1.variantId; } });
|
|
105
|
+
Object.defineProperty(exports, "variantsFolderId", { enumerable: true, get: function () { return guids_1.variantsFolderId; } });
|
|
106
|
+
// Operation IR ------------------------------------------------------------
|
|
107
|
+
var operations_1 = require("./ir/operations");
|
|
108
|
+
Object.defineProperty(exports, "AppendToMultiListOpSchema", { enumerable: true, get: function () { return operations_1.AppendToMultiListOpSchema; } });
|
|
109
|
+
Object.defineProperty(exports, "CreateItemOpSchema", { enumerable: true, get: function () { return operations_1.CreateItemOpSchema; } });
|
|
110
|
+
Object.defineProperty(exports, "FieldValueSchema", { enumerable: true, get: function () { return operations_1.FieldValueSchema; } });
|
|
111
|
+
Object.defineProperty(exports, "OperationIrSchema", { enumerable: true, get: function () { return operations_1.OperationIrSchema; } });
|
|
112
|
+
Object.defineProperty(exports, "OperationSchema", { enumerable: true, get: function () { return operations_1.OperationSchema; } });
|
|
113
|
+
Object.defineProperty(exports, "PushPolicySchema", { enumerable: true, get: function () { return operations_1.PushPolicySchema; } });
|
|
114
|
+
Object.defineProperty(exports, "RefValueSchema", { enumerable: true, get: function () { return operations_1.RefValueSchema; } });
|
|
115
|
+
Object.defineProperty(exports, "SetBaseTemplatesOpSchema", { enumerable: true, get: function () { return operations_1.SetBaseTemplatesOpSchema; } });
|
|
116
|
+
Object.defineProperty(exports, "SetFieldOpSchema", { enumerable: true, get: function () { return operations_1.SetFieldOpSchema; } });
|
|
117
|
+
Object.defineProperty(exports, "SetStandardValuesOpSchema", { enumerable: true, get: function () { return operations_1.SetStandardValuesOpSchema; } });
|
|
118
|
+
var sitecore_templates_1 = require("./ir/sitecore-templates");
|
|
119
|
+
Object.defineProperty(exports, "COMPOSITION_FIELDS", { enumerable: true, get: function () { return sitecore_templates_1.COMPOSITION_FIELDS; } });
|
|
120
|
+
Object.defineProperty(exports, "DEFAULT_DEVICE_ID", { enumerable: true, get: function () { return sitecore_templates_1.DEFAULT_DEVICE_ID; } });
|
|
121
|
+
Object.defineProperty(exports, "DEFAULT_ICON", { enumerable: true, get: function () { return sitecore_templates_1.DEFAULT_ICON; } });
|
|
122
|
+
Object.defineProperty(exports, "DEFAULT_LANGUAGE", { enumerable: true, get: function () { return sitecore_templates_1.DEFAULT_LANGUAGE; } });
|
|
123
|
+
Object.defineProperty(exports, "DEFAULT_VERSION", { enumerable: true, get: function () { return sitecore_templates_1.DEFAULT_VERSION; } });
|
|
124
|
+
Object.defineProperty(exports, "LAYOUT_FIELDS", { enumerable: true, get: function () { return sitecore_templates_1.LAYOUT_FIELDS; } });
|
|
125
|
+
Object.defineProperty(exports, "RENDERING_FIELDS", { enumerable: true, get: function () { return sitecore_templates_1.RENDERING_FIELDS; } });
|
|
126
|
+
Object.defineProperty(exports, "SECTION_DEFINITION_FIELDS", { enumerable: true, get: function () { return sitecore_templates_1.SECTION_DEFINITION_FIELDS; } });
|
|
127
|
+
Object.defineProperty(exports, "SITE_FIELDS", { enumerable: true, get: function () { return sitecore_templates_1.SITE_FIELDS; } });
|
|
128
|
+
Object.defineProperty(exports, "SITE_TEMPLATE_FIELDS", { enumerable: true, get: function () { return sitecore_templates_1.SITE_TEMPLATE_FIELDS; } });
|
|
129
|
+
Object.defineProperty(exports, "SITECORE_TEMPLATES", { enumerable: true, get: function () { return sitecore_templates_1.SITECORE_TEMPLATES; } });
|
|
130
|
+
Object.defineProperty(exports, "STANDARD_TEMPLATE_ID", { enumerable: true, get: function () { return sitecore_templates_1.STANDARD_TEMPLATE_ID; } });
|
|
131
|
+
Object.defineProperty(exports, "SYSTEM_FIELDS", { enumerable: true, get: function () { return sitecore_templates_1.SYSTEM_FIELDS; } });
|
|
132
|
+
Object.defineProperty(exports, "TEMPLATE_FIELD_FIELDS", { enumerable: true, get: function () { return sitecore_templates_1.TEMPLATE_FIELD_FIELDS; } });
|
|
133
|
+
// Planner / executor ------------------------------------------------------
|
|
134
|
+
var plan_1 = require("./plan");
|
|
135
|
+
Object.defineProperty(exports, "buildPlan", { enumerable: true, get: function () { return plan_1.buildPlan; } });
|
|
136
|
+
var execute_1 = require("./execute");
|
|
137
|
+
Object.defineProperty(exports, "executeIr", { enumerable: true, get: function () { return execute_1.executeIr; } });
|
|
138
|
+
// Reference encoding (RefValue → canonical Sitecore string) -------------
|
|
139
|
+
var ref_encoding_1 = require("./api/ref-encoding");
|
|
140
|
+
Object.defineProperty(exports, "renderRefValue", { enumerable: true, get: function () { return ref_encoding_1.renderRefValue; } });
|
|
141
|
+
// Source fields (recipe `sitecore.sourceTypes/Query/Scope/Raw`) ---------
|
|
142
|
+
var source_fields_1 = require("./schema/source-fields");
|
|
143
|
+
Object.defineProperty(exports, "renderSourceFields", { enumerable: true, get: function () { return source_fields_1.renderSourceFields; } });
|
|
144
|
+
Object.defineProperty(exports, "sourceFieldsNeedHandleResolution", { enumerable: true, get: function () { return source_fields_1.sourceFieldsNeedHandleResolution; } });
|
|
145
|
+
// Policy assignment (Phase 3+ extension point) --------------------------
|
|
146
|
+
var policy_1 = require("./policy");
|
|
147
|
+
Object.defineProperty(exports, "defaultPolicyForRecipe", { enumerable: true, get: function () { return policy_1.defaultPolicyForRecipe; } });
|
|
148
|
+
Object.defineProperty(exports, "policyFor", { enumerable: true, get: function () { return policy_1.policyFor; } });
|
|
149
|
+
Object.defineProperty(exports, "policyForOp", { enumerable: true, get: function () { return policy_1.policyForOp; } });
|
|
150
|
+
Object.defineProperty(exports, "purposeForRecipe", { enumerable: true, get: function () { return policy_1.purposeForRecipe; } });
|
|
151
|
+
// Cross-recipe validation -----------------------------------------------
|
|
152
|
+
var validate_1 = require("./validate");
|
|
153
|
+
Object.defineProperty(exports, "formatValidationErrors", { enumerable: true, get: function () { return validate_1.formatValidationErrors; } });
|
|
154
|
+
Object.defineProperty(exports, "isValid", { enumerable: true, get: function () { return validate_1.isValid; } });
|
|
155
|
+
Object.defineProperty(exports, "validateRecipeSet", { enumerable: true, get: function () { return validate_1.validateRecipeSet; } });
|
|
156
|
+
Object.defineProperty(exports, "validateRecipeSetOrThrow", { enumerable: true, get: function () { return validate_1.validateRecipeSetOrThrow; } });
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type Recipe } from "./schema/recipe";
|
|
2
|
+
import { type OperationIr } from "./ir/operations";
|
|
3
|
+
import type { Plan } from "./plan";
|
|
4
|
+
/**
|
|
5
|
+
* Load a recipe file. Supports both shapes:
|
|
6
|
+
*
|
|
7
|
+
* - `.recipe.ts` — TypeScript source compiled at runtime via `tsx/cjs/api`.
|
|
8
|
+
* Recipes export the recipe object as either the default export or a
|
|
9
|
+
* named export (the first one found wins).
|
|
10
|
+
* - `.recipe.json` — pre-serialized recipe JSON.
|
|
11
|
+
*
|
|
12
|
+
* Validates against `RecipeSchema` (the `Recipe = ComponentTemplateRecipe |
|
|
13
|
+
* ContentTemplateRecipe` discriminated union) so both kinds parse uniformly.
|
|
14
|
+
*/
|
|
15
|
+
export declare const loadRecipe: (filePath: string) => Promise<Recipe>;
|
|
16
|
+
export declare const writeIr: (filePath: string, ir: OperationIr) => Promise<void>;
|
|
17
|
+
export declare const loadIr: (filePath: string) => Promise<OperationIr>;
|
|
18
|
+
export declare const writePlan: (filePath: string, plan: Plan) => Promise<void>;
|
|
19
|
+
export declare const defaultIrPath: (recipeHandle: string, baseDir: string) => string;
|
|
20
|
+
export declare const defaultPlanPath: (recipeHandle: string, baseDir: string) => string;
|
|
21
|
+
//# sourceMappingURL=io.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"io.d.ts","sourceRoot":"","sources":["../../src/recipe/io.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AA2CnC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,GAAU,UAAU,MAAM,KAAG,OAAO,CAAC,MAAM,CAiBjE,CAAC;AA6DF,eAAO,MAAM,OAAO,GAAU,UAAU,MAAM,EAAE,IAAI,WAAW,KAAG,OAAO,CAAC,IAAI,CAE7E,CAAC;AAEF,eAAO,MAAM,MAAM,GAAU,UAAU,MAAM,KAAG,OAAO,CAAC,WAAW,CAYlE,CAAC;AAEF,eAAO,MAAM,SAAS,GAAU,UAAU,MAAM,EAAE,MAAM,IAAI,KAAG,OAAO,CAAC,IAAI,CAE1E,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,cAAc,MAAM,EAAE,SAAS,MAAM,KAAG,MACC,CAAC;AAExE,eAAO,MAAM,eAAe,GAAI,cAAc,MAAM,EAAE,SAAS,MAAM,KAAG,MACC,CAAC"}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.defaultPlanPath = exports.defaultIrPath = exports.writePlan = exports.loadIr = exports.writeIr = exports.loadRecipe = void 0;
|
|
7
|
+
const node_fs_1 = require("node:fs");
|
|
8
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
9
|
+
const errors_1 = require("../shared/errors");
|
|
10
|
+
const recipe_1 = require("./schema/recipe");
|
|
11
|
+
const operations_1 = require("./ir/operations");
|
|
12
|
+
/**
|
|
13
|
+
* Recipe + IR + Plan I/O.
|
|
14
|
+
*
|
|
15
|
+
* Recipes ship as `.recipe.json` (the runtime contract — the registry
|
|
16
|
+
* build emits these from authored `.recipe.ts` files). IR documents are
|
|
17
|
+
* `.ir.json`. Plans, when persisted, are `.plan.json`. All three pass
|
|
18
|
+
* through Zod parsing on read; structural drift surfaces here, not later
|
|
19
|
+
* in the planner.
|
|
20
|
+
*/
|
|
21
|
+
const readJson = async (filePath) => {
|
|
22
|
+
let raw;
|
|
23
|
+
try {
|
|
24
|
+
raw = await node_fs_1.promises.readFile(filePath, "utf8");
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
if (error.code === "ENOENT") {
|
|
28
|
+
throw (0, errors_1.createCliError)(`File not found: ${filePath}`, "INPUT_INVALID", {
|
|
29
|
+
hint: "Check the path spelling and that the file exists.",
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
throw (0, errors_1.createCliError)(`Failed to read ${filePath}: ${error instanceof Error ? error.message : String(error)}`, "INPUT_INVALID");
|
|
33
|
+
}
|
|
34
|
+
try {
|
|
35
|
+
return JSON.parse(raw);
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
throw (0, errors_1.createCliError)(`Invalid JSON in ${filePath}: ${error instanceof Error ? error.message : String(error)}`, "INPUT_INVALID", { hint: "Ensure the file contains a valid JSON document." });
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const writeJson = async (filePath, value) => {
|
|
42
|
+
await node_fs_1.promises.mkdir(node_path_1.default.dirname(filePath), { recursive: true });
|
|
43
|
+
await node_fs_1.promises.writeFile(filePath, `${JSON.stringify(value, null, 2)}\n`, "utf8");
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Load a recipe file. Supports both shapes:
|
|
47
|
+
*
|
|
48
|
+
* - `.recipe.ts` — TypeScript source compiled at runtime via `tsx/cjs/api`.
|
|
49
|
+
* Recipes export the recipe object as either the default export or a
|
|
50
|
+
* named export (the first one found wins).
|
|
51
|
+
* - `.recipe.json` — pre-serialized recipe JSON.
|
|
52
|
+
*
|
|
53
|
+
* Validates against `RecipeSchema` (the `Recipe = ComponentTemplateRecipe |
|
|
54
|
+
* ContentTemplateRecipe` discriminated union) so both kinds parse uniformly.
|
|
55
|
+
*/
|
|
56
|
+
const loadRecipe = async (filePath) => {
|
|
57
|
+
const ext = node_path_1.default.extname(filePath).toLowerCase();
|
|
58
|
+
const raw = ext === ".ts" || ext === ".tsx" || ext === ".mts" || ext === ".cts"
|
|
59
|
+
? await loadRecipeFromTypeScript(filePath)
|
|
60
|
+
: await readJson(filePath);
|
|
61
|
+
const result = recipe_1.RecipeSchema.safeParse(raw);
|
|
62
|
+
if (!result.success) {
|
|
63
|
+
throw (0, errors_1.createCliError)(`Invalid recipe at ${filePath}.`, "INPUT_INVALID", {
|
|
64
|
+
hint: "Ensure the file exports a `ComponentTemplateRecipe` or `ContentTemplateRecipe`.",
|
|
65
|
+
details: result.error.issues.map((issue) => `${issue.path.join(".") || "(root)"}: ${issue.message}`),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
return result.data;
|
|
69
|
+
};
|
|
70
|
+
exports.loadRecipe = loadRecipe;
|
|
71
|
+
/**
|
|
72
|
+
* Lazily install tsx's CommonJS require hook *once* per process. Earlier
|
|
73
|
+
* versions of this file called `register()` and the matching `unregister`
|
|
74
|
+
* cleanup on every `loadRecipe` call — fine for one-shot CLI runs but
|
|
75
|
+
* wasteful in long-running surfaces like `scai shell` where N recipe
|
|
76
|
+
* loads = N register/unregister cycles. Once installed, the hook stays
|
|
77
|
+
* for the rest of the process lifetime; recipe changes mid-shell-session
|
|
78
|
+
* therefore require an exit (the per-recipe `require.cache` clear below
|
|
79
|
+
* handles re-imports of the *same* file path within the same process).
|
|
80
|
+
*/
|
|
81
|
+
let tsxRegistered = false;
|
|
82
|
+
const ensureTsxRegistered = () => {
|
|
83
|
+
if (tsxRegistered) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
87
|
+
const tsxApi = require("tsx/cjs/api");
|
|
88
|
+
/* eslint-enable @typescript-eslint/no-require-imports */
|
|
89
|
+
tsxApi.register();
|
|
90
|
+
tsxRegistered = true;
|
|
91
|
+
};
|
|
92
|
+
const loadRecipeFromTypeScript = async (filePath) => {
|
|
93
|
+
const absolute = node_path_1.default.resolve(filePath);
|
|
94
|
+
try {
|
|
95
|
+
ensureTsxRegistered();
|
|
96
|
+
if (require.cache[absolute]) {
|
|
97
|
+
delete require.cache[absolute];
|
|
98
|
+
}
|
|
99
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
100
|
+
const mod = require(absolute);
|
|
101
|
+
/* eslint-enable @typescript-eslint/no-require-imports */
|
|
102
|
+
if (mod.default !== undefined) {
|
|
103
|
+
return mod.default;
|
|
104
|
+
}
|
|
105
|
+
// Fall back to the first non-default exported value.
|
|
106
|
+
for (const key of Object.keys(mod)) {
|
|
107
|
+
if (key !== "default" && mod[key] !== undefined) {
|
|
108
|
+
return mod[key];
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
throw (0, errors_1.createCliError)(`Recipe at ${filePath} has no exports.`, "INPUT_INVALID", {
|
|
112
|
+
hint: "Add `export default <recipe>` (or any named export) to the file.",
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
catch (error) {
|
|
116
|
+
// Don't double-wrap our own CliErrors (e.g. "Recipe at <path> has no exports.").
|
|
117
|
+
if (error instanceof errors_1.CliError) {
|
|
118
|
+
throw error;
|
|
119
|
+
}
|
|
120
|
+
throw (0, errors_1.createCliError)(`Failed to load recipe TypeScript file ${filePath}: ${error instanceof Error ? error.message : String(error)}`, "INPUT_INVALID", { hint: "Confirm the file compiles standalone (try `pnpm exec tsx <file>`)." });
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
const writeIr = async (filePath, ir) => {
|
|
124
|
+
await writeJson(filePath, ir);
|
|
125
|
+
};
|
|
126
|
+
exports.writeIr = writeIr;
|
|
127
|
+
const loadIr = async (filePath) => {
|
|
128
|
+
const json = await readJson(filePath);
|
|
129
|
+
const result = operations_1.OperationIrSchema.safeParse(json);
|
|
130
|
+
if (!result.success) {
|
|
131
|
+
throw (0, errors_1.createCliError)(`Invalid Operation IR at ${filePath}.`, "INPUT_INVALID", {
|
|
132
|
+
hint: "Re-run `scai recipe compile` to regenerate the IR.",
|
|
133
|
+
details: result.error.issues.map((issue) => `${issue.path.join(".") || "(root)"}: ${issue.message}`),
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
return result.data;
|
|
137
|
+
};
|
|
138
|
+
exports.loadIr = loadIr;
|
|
139
|
+
const writePlan = async (filePath, plan) => {
|
|
140
|
+
await writeJson(filePath, plan);
|
|
141
|
+
};
|
|
142
|
+
exports.writePlan = writePlan;
|
|
143
|
+
const defaultIrPath = (recipeHandle, baseDir) => node_path_1.default.join(baseDir, ".scai", `${slugifyHandle(recipeHandle)}.ir.json`);
|
|
144
|
+
exports.defaultIrPath = defaultIrPath;
|
|
145
|
+
const defaultPlanPath = (recipeHandle, baseDir) => node_path_1.default.join(baseDir, ".scai", `${slugifyHandle(recipeHandle)}.plan.json`);
|
|
146
|
+
exports.defaultPlanPath = defaultPlanPath;
|
|
147
|
+
const slugifyHandle = (handle) => handle.replace(/@/g, "_v");
|