@sitecoreai-labs/sitecoreai-cli 0.0.4 → 0.1.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/AGENTS.md +146 -55
- package/README.md +372 -325
- package/dist/agents/api/agents.d.ts +27 -0
- package/dist/agents/api/agents.js +70 -0
- package/dist/agents/api/catalog.d.ts +8 -0
- package/dist/agents/api/catalog.js +33 -0
- package/dist/agents/api/custom-mcps.d.ts +26 -0
- package/dist/agents/api/custom-mcps.js +53 -0
- package/dist/agents/api/html-templates.d.ts +35 -0
- package/dist/agents/api/html-templates.js +116 -0
- package/dist/agents/api/request.d.ts +28 -0
- package/dist/agents/api/request.js +207 -0
- package/dist/agents/api/runs.d.ts +31 -0
- package/dist/agents/api/runs.js +82 -0
- package/dist/agents/api/schema.d.ts +182 -0
- package/dist/agents/api/schema.js +10 -0
- package/dist/agents/api/schemas.d.ts +37 -0
- package/dist/agents/api/schemas.js +95 -0
- package/dist/agents/api/skills.d.ts +25 -0
- package/dist/agents/api/skills.js +55 -0
- package/dist/agents/api/spaces.d.ts +34 -0
- package/dist/agents/api/spaces.js +72 -0
- package/dist/agents/api/tools.d.ts +4 -0
- package/dist/agents/api/tools.js +18 -0
- package/dist/agents/api/widgets.d.ts +32 -0
- package/dist/agents/api/widgets.js +89 -0
- package/dist/agents/client.d.ts +18 -0
- package/dist/agents/client.js +28 -0
- package/dist/agents/index.d.ts +31 -0
- package/dist/agents/index.js +51 -0
- package/dist/agents/recipe/agent.diff.d.ts +4 -0
- package/dist/agents/recipe/agent.diff.js +55 -0
- package/dist/agents/recipe/agent.kind.d.ts +12 -0
- package/dist/agents/recipe/agent.kind.js +107 -0
- package/dist/agents/recipe/agent.schema.d.ts +26 -0
- package/dist/agents/recipe/agent.schema.js +42 -0
- package/dist/agents/recipe/client.d.ts +4 -0
- package/dist/agents/recipe/client.js +15 -0
- package/dist/agents/recipe/converge.d.ts +11 -0
- package/dist/agents/recipe/converge.js +32 -0
- package/dist/agents/recipe/custom-mcp.kind.d.ts +4 -0
- package/dist/agents/recipe/custom-mcp.kind.js +42 -0
- package/dist/agents/recipe/custom-mcp.schema.d.ts +11 -0
- package/dist/agents/recipe/custom-mcp.schema.js +15 -0
- package/dist/agents/recipe/html-template.kind.d.ts +4 -0
- package/dist/agents/recipe/html-template.kind.js +50 -0
- package/dist/agents/recipe/html-template.schema.d.ts +13 -0
- package/dist/agents/recipe/html-template.schema.js +17 -0
- package/dist/agents/recipe/index.d.ts +43 -0
- package/dist/agents/recipe/index.js +81 -0
- package/dist/agents/recipe/schema.kind.d.ts +4 -0
- package/dist/agents/recipe/schema.kind.js +50 -0
- package/dist/agents/recipe/schema.schema.d.ts +15 -0
- package/dist/agents/recipe/schema.schema.js +21 -0
- package/dist/agents/recipe/skill.kind.d.ts +4 -0
- package/dist/agents/recipe/skill.kind.js +48 -0
- package/dist/agents/recipe/skill.schema.d.ts +14 -0
- package/dist/agents/recipe/skill.schema.js +18 -0
- package/dist/agents/recipe/widget.kind.d.ts +4 -0
- package/dist/agents/recipe/widget.kind.js +49 -0
- package/dist/agents/recipe/widget.schema.d.ts +20 -0
- package/dist/agents/recipe/widget.schema.js +23 -0
- package/dist/agents/session/index.d.ts +50 -0
- package/dist/agents/session/index.js +127 -0
- package/dist/agents/session/playwright-login.d.ts +11 -0
- package/dist/agents/session/playwright-login.js +169 -0
- package/dist/agents/session/types.d.ts +72 -0
- package/dist/agents/session/types.js +26 -0
- package/dist/agents/tasks/agent.d.ts +27 -0
- package/dist/agents/tasks/agent.js +183 -0
- package/dist/agents/tasks/index.d.ts +14 -0
- package/dist/agents/tasks/index.js +30 -0
- package/dist/agents/tasks/resources.d.ts +39 -0
- package/dist/agents/tasks/resources.js +219 -0
- package/dist/agents/tasks/session.d.ts +6 -0
- package/dist/agents/tasks/session.js +63 -0
- package/dist/agents/tasks/shared.d.ts +38 -0
- package/dist/agents/tasks/shared.js +72 -0
- package/dist/agents/tasks/space.d.ts +12 -0
- package/dist/agents/tasks/space.js +55 -0
- package/dist/brand/api/auth.d.ts +58 -0
- package/dist/brand/api/auth.js +141 -0
- package/dist/brand/api/client.d.ts +40 -0
- package/dist/brand/api/client.js +83 -0
- package/dist/brand/api/types.d.ts +119 -0
- package/dist/brand/api/types.js +9 -0
- package/dist/brand/credential.d.ts +55 -0
- package/dist/brand/credential.js +87 -0
- package/dist/brand/documents/list.d.ts +85 -0
- package/dist/brand/documents/list.js +53 -0
- package/dist/brand/documents/upload.d.ts +113 -0
- package/dist/brand/documents/upload.js +106 -0
- package/dist/brand/index.d.ts +33 -0
- package/dist/brand/index.js +76 -0
- package/dist/brand/kits/create.d.ts +58 -0
- package/dist/brand/kits/create.js +68 -0
- package/dist/brand/kits/list.d.ts +53 -0
- package/dist/brand/kits/list.js +36 -0
- package/dist/brand/kits/sections.d.ts +156 -0
- package/dist/brand/kits/sections.js +80 -0
- package/dist/brand/pipeline/run.d.ts +58 -0
- package/dist/brand/pipeline/run.js +63 -0
- package/dist/brand/recipe/client.d.ts +4 -0
- package/dist/brand/recipe/client.js +24 -0
- package/dist/brand/recipe/diff.d.ts +4 -0
- package/dist/brand/recipe/diff.js +74 -0
- package/dist/brand/recipe/index.d.ts +10 -0
- package/dist/brand/recipe/index.js +20 -0
- package/dist/brand/recipe/kind.d.ts +4 -0
- package/dist/brand/recipe/kind.js +0 -0
- package/dist/brand/recipe/schema.d.ts +54 -0
- package/dist/brand/recipe/schema.js +59 -0
- package/dist/brand/review/format-json.d.ts +33 -0
- package/dist/brand/review/format-json.js +36 -0
- package/dist/brand/review/format-sarif.d.ts +64 -0
- package/dist/brand/review/format-sarif.js +77 -0
- package/dist/brand/review/format-text.d.ts +24 -0
- package/dist/brand/review/format-text.js +60 -0
- package/dist/brand/review/generate.d.ts +37 -0
- package/dist/brand/review/generate.js +146 -0
- package/dist/brand/review/outcomes.d.ts +43 -0
- package/dist/brand/review/outcomes.js +58 -0
- package/dist/brand/seed.d.ts +81 -0
- package/dist/brand/seed.js +151 -0
- package/dist/brand/tasks/login.d.ts +37 -0
- package/dist/brand/tasks/login.js +192 -0
- package/dist/brand/tasks/review.d.ts +111 -0
- package/dist/brand/tasks/review.js +310 -0
- package/dist/brief/api/brief-types.d.ts +64 -0
- package/dist/brief/api/brief-types.js +103 -0
- package/dist/brief/api/briefs.d.ts +66 -0
- package/dist/brief/api/briefs.js +58 -0
- package/dist/brief/api/comments.d.ts +43 -0
- package/dist/brief/api/comments.js +29 -0
- package/dist/brief/api/request.d.ts +5 -0
- package/dist/brief/api/request.js +83 -0
- package/dist/brief/api/schema.d.ts +158 -0
- package/dist/brief/api/schema.js +18 -0
- package/dist/brief/api/tasks.d.ts +41 -0
- package/dist/brief/api/tasks.js +24 -0
- package/dist/brief/api/types.d.ts +17 -0
- package/dist/brief/api/types.js +21 -0
- package/dist/brief/auth.d.ts +44 -0
- package/dist/brief/auth.js +101 -0
- package/dist/brief/client.d.ts +25 -0
- package/dist/brief/client.js +56 -0
- package/dist/brief/index.d.ts +31 -0
- package/dist/brief/index.js +53 -0
- package/dist/brief/recipe/client.d.ts +4 -0
- package/dist/brief/recipe/client.js +52 -0
- package/dist/brief/recipe/diff.d.ts +4 -0
- package/dist/brief/recipe/diff.js +74 -0
- package/dist/brief/recipe/index.d.ts +10 -0
- package/dist/brief/recipe/index.js +23 -0
- package/dist/brief/recipe/kind.d.ts +4 -0
- package/dist/brief/recipe/kind.js +114 -0
- package/dist/brief/recipe/schema.d.ts +152 -0
- package/dist/brief/recipe/schema.js +99 -0
- package/dist/brief/tasks/index.d.ts +128 -0
- package/dist/brief/tasks/index.js +286 -0
- package/dist/campaigns/api/deliverables.d.ts +37 -0
- package/dist/campaigns/api/deliverables.js +30 -0
- package/dist/campaigns/api/projects.d.ts +49 -0
- package/dist/campaigns/api/projects.js +45 -0
- package/dist/campaigns/api/request.d.ts +5 -0
- package/dist/campaigns/api/request.js +119 -0
- package/dist/campaigns/api/schema.d.ts +144 -0
- package/dist/campaigns/api/schema.js +22 -0
- package/dist/campaigns/api/tasks.d.ts +42 -0
- package/dist/campaigns/api/tasks.js +68 -0
- package/dist/campaigns/api/types.d.ts +17 -0
- package/dist/campaigns/api/types.js +27 -0
- package/dist/campaigns/api/users.d.ts +13 -0
- package/dist/campaigns/api/users.js +16 -0
- package/dist/campaigns/auth.d.ts +19 -0
- package/dist/campaigns/auth.js +86 -0
- package/dist/campaigns/client.d.ts +25 -0
- package/dist/campaigns/client.js +48 -0
- package/dist/campaigns/index.d.ts +29 -0
- package/dist/campaigns/index.js +47 -0
- package/dist/campaigns/recipe/client.d.ts +4 -0
- package/dist/campaigns/recipe/client.js +41 -0
- package/dist/campaigns/recipe/diff.d.ts +4 -0
- package/dist/campaigns/recipe/diff.js +119 -0
- package/dist/campaigns/recipe/index.d.ts +10 -0
- package/dist/campaigns/recipe/index.js +19 -0
- package/dist/campaigns/recipe/kind.d.ts +4 -0
- package/dist/campaigns/recipe/kind.js +217 -0
- package/dist/campaigns/recipe/schema.d.ts +79 -0
- package/dist/campaigns/recipe/schema.js +67 -0
- package/dist/campaigns/tasks/index.d.ts +124 -0
- package/dist/campaigns/tasks/index.js +271 -0
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +84 -63
- package/dist/commands/agents/index.d.ts +28 -0
- package/dist/commands/agents/index.js +289 -0
- package/dist/commands/agents/sync.d.ts +13 -0
- package/dist/commands/agents/sync.js +139 -0
- package/dist/commands/audit/all.d.ts +2 -0
- package/dist/commands/audit/all.js +26 -0
- package/dist/commands/audit/alt-text-missing.d.ts +2 -0
- package/dist/commands/audit/alt-text-missing.js +19 -0
- package/dist/commands/audit/baseline.d.ts +2 -0
- package/dist/commands/audit/baseline.js +75 -0
- package/dist/commands/audit/broken-images.d.ts +2 -0
- package/dist/commands/audit/broken-images.js +25 -0
- package/dist/commands/audit/broken-links.d.ts +2 -0
- package/dist/commands/audit/broken-links.js +18 -0
- package/dist/commands/audit/datasource-missing.d.ts +2 -0
- package/dist/commands/audit/datasource-missing.js +19 -0
- package/dist/commands/audit/dead-templates.d.ts +2 -0
- package/dist/commands/audit/dead-templates.js +18 -0
- package/dist/commands/audit/duplicates.d.ts +2 -0
- package/dist/commands/audit/duplicates.js +21 -0
- package/dist/commands/audit/empty-items.d.ts +2 -0
- package/dist/commands/audit/empty-items.js +19 -0
- package/dist/commands/audit/empty-links.d.ts +2 -0
- package/dist/commands/audit/empty-links.js +25 -0
- package/dist/commands/audit/empty-roles.d.ts +2 -0
- package/dist/commands/audit/empty-roles.js +18 -0
- package/dist/commands/audit/fallback-drift.d.ts +2 -0
- package/dist/commands/audit/fallback-drift.js +22 -0
- package/dist/commands/audit/find-replace.d.ts +2 -0
- package/dist/commands/audit/find-replace.js +27 -0
- package/dist/commands/audit/heavy-templates.d.ts +2 -0
- package/dist/commands/audit/heavy-templates.js +19 -0
- package/dist/commands/audit/history.d.ts +2 -0
- package/dist/commands/audit/history.js +44 -0
- package/dist/commands/audit/index.d.ts +2 -0
- package/dist/commands/audit/index.js +100 -0
- package/dist/commands/audit/language-data.d.ts +2 -0
- package/dist/commands/audit/language-data.js +24 -0
- package/dist/commands/audit/large-fields.d.ts +2 -0
- package/dist/commands/audit/large-fields.js +21 -0
- package/dist/commands/audit/missing-meta.d.ts +2 -0
- package/dist/commands/audit/missing-meta.js +22 -0
- package/dist/commands/audit/orphans.d.ts +2 -0
- package/dist/commands/audit/orphans.js +22 -0
- package/dist/commands/audit/page-design-orphans.d.ts +2 -0
- package/dist/commands/audit/page-design-orphans.js +18 -0
- package/dist/commands/audit/personalization-broken.d.ts +2 -0
- package/dist/commands/audit/personalization-broken.js +18 -0
- package/dist/commands/audit/references.d.ts +2 -0
- package/dist/commands/audit/references.js +27 -0
- package/dist/commands/audit/role-bloat.d.ts +2 -0
- package/dist/commands/audit/role-bloat.js +19 -0
- package/dist/commands/audit/shared.d.ts +7 -0
- package/dist/commands/audit/shared.js +32 -0
- package/dist/commands/audit/site-residue.d.ts +2 -0
- package/dist/commands/audit/site-residue.js +22 -0
- package/dist/commands/audit/slug-conflicts.d.ts +2 -0
- package/dist/commands/audit/slug-conflicts.js +20 -0
- package/dist/commands/audit/stale-content.d.ts +2 -0
- package/dist/commands/audit/stale-content.js +21 -0
- package/dist/commands/audit/stale-users.d.ts +2 -0
- package/dist/commands/audit/stale-users.js +21 -0
- package/dist/commands/audit/stale-workflow.d.ts +2 -0
- package/dist/commands/audit/stale-workflow.js +19 -0
- package/dist/commands/audit/suite.d.ts +2 -0
- package/dist/commands/audit/suite.js +31 -0
- package/dist/commands/audit/template-dependencies.d.ts +2 -0
- package/dist/commands/audit/template-dependencies.js +22 -0
- package/dist/commands/audit/translation-coverage.d.ts +2 -0
- package/dist/commands/audit/translation-coverage.js +22 -0
- package/dist/commands/audit/unused-media.d.ts +2 -0
- package/dist/commands/audit/unused-media.js +21 -0
- package/dist/commands/brand/docs.d.ts +9 -0
- package/dist/commands/brand/docs.js +168 -0
- package/dist/commands/brand/index.d.ts +13 -0
- package/dist/commands/brand/index.js +37 -0
- package/dist/commands/brand/ingest-enrich.d.ts +3 -0
- package/dist/commands/brand/ingest-enrich.js +71 -0
- package/dist/commands/brand/kits.d.ts +18 -0
- package/dist/commands/brand/kits.js +361 -0
- package/dist/commands/brand/review.d.ts +13 -0
- package/dist/commands/brand/review.js +65 -0
- package/dist/commands/brand/seed.d.ts +9 -0
- package/dist/commands/brand/seed.js +136 -0
- package/dist/commands/brand/sync.d.ts +11 -0
- package/dist/commands/brand/sync.js +128 -0
- package/dist/commands/brief/comments.d.ts +11 -0
- package/dist/commands/brief/comments.js +55 -0
- package/dist/commands/brief/delete.d.ts +10 -0
- package/dist/commands/brief/delete.js +40 -0
- package/dist/commands/brief/index.d.ts +19 -0
- package/dist/commands/brief/index.js +53 -0
- package/dist/commands/brief/list.d.ts +2 -0
- package/dist/commands/brief/list.js +19 -0
- package/dist/commands/brief/set-status.d.ts +10 -0
- package/dist/commands/brief/set-status.js +33 -0
- package/dist/commands/brief/show.d.ts +2 -0
- package/dist/commands/brief/show.js +19 -0
- package/dist/commands/brief/sync.d.ts +12 -0
- package/dist/commands/brief/sync.js +121 -0
- package/dist/commands/brief/todos.d.ts +9 -0
- package/dist/commands/brief/todos.js +28 -0
- package/dist/commands/brief/types.d.ts +16 -0
- package/dist/commands/brief/types.js +129 -0
- package/dist/commands/campaign/index.d.ts +2 -0
- package/dist/commands/campaign/index.js +309 -0
- package/dist/commands/campaign/sync.d.ts +12 -0
- package/dist/commands/campaign/sync.js +121 -0
- package/dist/commands/cleanup/archive.d.ts +2 -0
- package/dist/commands/cleanup/archive.js +21 -0
- package/dist/commands/cleanup/dead-templates.d.ts +2 -0
- package/dist/commands/cleanup/dead-templates.js +21 -0
- package/dist/commands/cleanup/duplicates.d.ts +2 -0
- package/dist/commands/cleanup/duplicates.js +49 -0
- package/dist/commands/cleanup/empty-folders.d.ts +2 -0
- package/dist/commands/cleanup/empty-folders.js +18 -0
- package/dist/commands/cleanup/field-set.d.ts +2 -0
- package/dist/commands/cleanup/field-set.js +44 -0
- package/dist/commands/cleanup/find-replace.d.ts +2 -0
- package/dist/commands/cleanup/find-replace.js +35 -0
- package/dist/commands/cleanup/index.d.ts +2 -0
- package/dist/commands/cleanup/index.js +48 -0
- package/dist/commands/cleanup/language-versions.d.ts +2 -0
- package/dist/commands/cleanup/language-versions.js +25 -0
- package/dist/commands/cleanup/rename.d.ts +2 -0
- package/dist/commands/cleanup/rename.js +32 -0
- package/dist/commands/cleanup/roles.d.ts +2 -0
- package/dist/commands/cleanup/roles.js +20 -0
- package/dist/commands/cleanup/shared.d.ts +2 -0
- package/dist/commands/cleanup/shared.js +15 -0
- package/dist/commands/cleanup/site-residue.d.ts +2 -0
- package/dist/commands/cleanup/site-residue.js +32 -0
- package/dist/commands/cleanup/slug-conflicts.d.ts +2 -0
- package/dist/commands/cleanup/slug-conflicts.js +54 -0
- package/dist/commands/cleanup/subtree.d.ts +2 -0
- package/dist/commands/cleanup/subtree.js +25 -0
- package/dist/commands/cleanup/users.d.ts +2 -0
- package/dist/commands/cleanup/users.js +23 -0
- package/dist/commands/cleanup/versions.d.ts +2 -0
- package/dist/commands/cleanup/versions.js +42 -0
- package/dist/commands/cleanup/workflow.d.ts +2 -0
- package/dist/commands/cleanup/workflow.js +40 -0
- package/dist/commands/config.d.ts +0 -1
- package/dist/commands/config.js +3 -3
- package/dist/commands/content/index.d.ts +2 -0
- package/dist/commands/content/index.js +11 -0
- package/dist/commands/content/version/index.d.ts +2 -0
- package/dist/commands/content/version/index.js +19 -0
- package/dist/commands/content/version/inspect.d.ts +2 -0
- package/dist/commands/content/version/inspect.js +22 -0
- package/dist/commands/content/version/set-never-publish.d.ts +2 -0
- package/dist/commands/content/version/set-never-publish.js +40 -0
- package/dist/commands/content/version/set-validity.d.ts +2 -0
- package/dist/commands/content/version/set-validity.js +30 -0
- package/dist/commands/deploy/deployments.d.ts +0 -1
- package/dist/commands/deploy/deployments.js +9 -9
- package/dist/commands/deploy/editing-host.d.ts +0 -1
- package/dist/commands/deploy/editing-host.js +25 -13
- package/dist/commands/deploy/environments/deployments.d.ts +0 -1
- package/dist/commands/deploy/environments/deployments.js +3 -3
- package/dist/commands/deploy/environments/index.d.ts +0 -1
- package/dist/commands/deploy/environments/index.js +1 -0
- package/dist/commands/deploy/environments/mutations.d.ts +0 -1
- package/dist/commands/deploy/environments/mutations.js +18 -17
- package/dist/commands/deploy/environments/queries.d.ts +1 -1
- package/dist/commands/deploy/environments/queries.js +29 -8
- package/dist/commands/deploy/environments/variables.d.ts +0 -1
- package/dist/commands/deploy/environments/variables.js +9 -8
- package/dist/commands/deploy/environments.d.ts +0 -1
- package/dist/commands/deploy/index.d.ts +0 -1
- package/dist/commands/deploy/index.js +1 -1
- package/dist/commands/deploy/logs.d.ts +0 -1
- package/dist/commands/deploy/logs.js +4 -4
- package/dist/commands/deploy/organizations.d.ts +0 -1
- package/dist/commands/deploy/organizations.js +5 -5
- package/dist/commands/deploy/projects.d.ts +0 -1
- package/dist/commands/deploy/projects.js +32 -20
- package/dist/commands/deploy/shared.d.ts +0 -1
- package/dist/commands/deploy/shared.js +1 -0
- package/dist/commands/deploy/site.d.ts +2 -3
- package/dist/commands/deploy/site.js +6 -5
- package/dist/commands/deploy/source-control.d.ts +0 -1
- package/dist/commands/deploy/source-control.js +13 -13
- package/dist/commands/deploy.d.ts +0 -1
- package/dist/commands/explain/index.d.ts +14 -0
- package/dist/commands/explain/index.js +25 -0
- package/dist/commands/explain/orphan-site.d.ts +11 -0
- package/dist/commands/explain/orphan-site.js +36 -0
- package/dist/commands/explain/why-blocked.d.ts +13 -0
- package/dist/commands/explain/why-blocked.js +42 -0
- package/dist/commands/health.d.ts +2 -0
- package/dist/commands/health.js +28 -0
- package/dist/commands/history.d.ts +0 -1
- package/dist/commands/history.js +11 -42
- package/dist/commands/init.d.ts +0 -1
- package/dist/commands/init.js +42 -8
- package/dist/commands/login.d.ts +11 -1
- package/dist/commands/login.js +35 -4
- package/dist/commands/logout.d.ts +0 -1
- package/dist/commands/logout.js +3 -3
- package/dist/commands/mcp/serve.d.ts +27 -0
- package/dist/commands/mcp/serve.js +120 -0
- package/dist/commands/mcp/tools.d.ts +8 -0
- package/dist/commands/mcp/tools.js +75 -0
- package/dist/commands/mcp.d.ts +2 -0
- package/dist/commands/mcp.js +23 -0
- package/dist/commands/policy.d.ts +16 -0
- package/dist/commands/policy.js +296 -0
- package/dist/commands/publish/all.d.ts +2 -0
- package/dist/commands/publish/all.js +41 -0
- package/dist/commands/publish/cancel.d.ts +2 -0
- package/dist/commands/publish/cancel.js +25 -0
- package/dist/commands/publish/history.d.ts +2 -0
- package/dist/commands/publish/history.js +34 -0
- package/dist/commands/publish/index.d.ts +2 -0
- package/dist/commands/publish/index.js +30 -0
- package/dist/commands/publish/item.d.ts +2 -0
- package/dist/commands/publish/item.js +55 -0
- package/dist/commands/publish/status.d.ts +2 -0
- package/dist/commands/publish/status.js +34 -0
- package/dist/commands/publish/unpublish.d.ts +2 -0
- package/dist/commands/publish/unpublish.js +52 -0
- package/dist/commands/recipe/index.d.ts +0 -1
- package/dist/commands/recipe/index.js +19 -15
- package/dist/commands/serialization/index.d.ts +0 -1
- package/dist/commands/serialization/index.js +14 -9
- package/dist/commands/serialization/package.d.ts +0 -1
- package/dist/commands/serialization/package.js +3 -3
- package/dist/commands/setup-client.d.ts +17 -0
- package/dist/commands/setup-client.js +148 -0
- package/dist/commands/shared.d.ts +72 -2
- package/dist/commands/shared.js +151 -24
- package/dist/commands/shell.d.ts +0 -1
- package/dist/commands/shell.js +1 -1
- package/dist/commands/status.d.ts +0 -1
- package/dist/commands/status.js +3 -3
- package/dist/commands/sync.d.ts +23 -0
- package/dist/commands/sync.js +154 -0
- package/dist/commands/telemetry.d.ts +0 -1
- package/dist/commands/telemetry.js +40 -2
- package/dist/commands/topics/index.d.ts +5 -0
- package/dist/commands/topics/index.js +102 -0
- package/dist/commands/webhook/create.d.ts +2 -0
- package/dist/commands/webhook/create.js +52 -0
- package/dist/commands/webhook/delete.d.ts +2 -0
- package/dist/commands/webhook/delete.js +20 -0
- package/dist/commands/webhook/event-types.d.ts +2 -0
- package/dist/commands/webhook/event-types.js +22 -0
- package/dist/commands/webhook/index.d.ts +2 -0
- package/dist/commands/webhook/index.js +33 -0
- package/dist/commands/webhook/inspect.d.ts +2 -0
- package/dist/commands/webhook/inspect.js +17 -0
- package/dist/commands/webhook/list.d.ts +2 -0
- package/dist/commands/webhook/list.js +24 -0
- package/dist/commands/webhook/shared.d.ts +2 -0
- package/dist/commands/webhook/shared.js +11 -0
- package/dist/commands/workflow/advance.d.ts +2 -0
- package/dist/commands/workflow/advance.js +22 -0
- package/dist/commands/workflow/apply.d.ts +2 -0
- package/dist/commands/workflow/apply.js +22 -0
- package/dist/commands/workflow/assigned.d.ts +2 -0
- package/dist/commands/workflow/assigned.js +21 -0
- package/dist/commands/workflow/index.d.ts +2 -0
- package/dist/commands/workflow/index.js +35 -0
- package/dist/commands/workflow/inspect.d.ts +2 -0
- package/dist/commands/workflow/inspect.js +17 -0
- package/dist/commands/workflow/list-commands.d.ts +2 -0
- package/dist/commands/workflow/list-commands.js +17 -0
- package/dist/commands/workflow/list-defs.d.ts +2 -0
- package/dist/commands/workflow/list-defs.js +17 -0
- package/dist/commands/workflow/reset.d.ts +2 -0
- package/dist/commands/workflow/reset.js +20 -0
- package/dist/commands/workflow/shared.d.ts +3 -0
- package/dist/commands/workflow/shared.js +12 -0
- package/dist/commands/workflow/status.d.ts +2 -0
- package/dist/commands/workflow/status.js +18 -0
- package/dist/config/env-overrides.d.ts +0 -1
- package/dist/config/env-overrides.js +41 -5
- package/dist/config/index.d.ts +15 -3
- package/dist/config/index.js +43 -3
- package/dist/config/modules.d.ts +0 -1
- package/dist/config/modules.js +2 -2
- package/dist/config/paths.d.ts +0 -1
- package/dist/config/paths.js +11 -2
- package/dist/config/root-config.d.ts +24 -1
- package/dist/config/root-config.js +84 -7
- package/dist/config/schema.json +113 -25
- package/dist/config/types.d.ts +228 -13
- package/dist/config/types.js +1 -1
- package/dist/config/validation.d.ts +1 -4
- package/dist/content/api/version-fields.d.ts +129 -0
- package/dist/content/api/version-fields.js +193 -0
- package/dist/content/index.d.ts +15 -0
- package/dist/content/index.js +40 -0
- package/dist/content/tasks/shared.d.ts +86 -0
- package/dist/content/tasks/shared.js +130 -0
- package/dist/content/tasks/version-inspect.d.ts +13 -0
- package/dist/content/tasks/version-inspect.js +56 -0
- package/dist/content/tasks/version-never-publish.d.ts +16 -0
- package/dist/content/tasks/version-never-publish.js +115 -0
- package/dist/content/tasks/version-validity.d.ts +24 -0
- package/dist/content/tasks/version-validity.js +159 -0
- package/dist/deploy/api/client-naming.d.ts +80 -0
- package/dist/deploy/api/client-naming.js +124 -0
- package/dist/deploy/api/client.d.ts +72 -0
- package/dist/deploy/api/client.js +72 -0
- package/dist/deploy/api/clients.d.ts +126 -0
- package/dist/deploy/api/clients.js +89 -0
- package/dist/deploy/api/common/headers.d.ts +0 -1
- package/dist/deploy/api/common/request.d.ts +0 -5
- package/dist/deploy/api/common/request.js +93 -120
- package/dist/deploy/api/common/transport-events.d.ts +31 -0
- package/dist/deploy/api/common/transport-events.js +24 -0
- package/dist/deploy/api/common/types.d.ts +60 -1
- package/dist/deploy/api/deployment-logs.d.ts +0 -1
- package/dist/deploy/api/deployment-logs.js +5 -5
- package/dist/deploy/api/deployments.d.ts +1 -2
- package/dist/deploy/api/deployments.js +22 -20
- package/dist/deploy/api/environments.d.ts +28 -2
- package/dist/deploy/api/environments.js +103 -20
- package/dist/deploy/api/index.d.ts +31 -9
- package/dist/deploy/api/index.js +129 -22
- package/dist/deploy/api/logs.d.ts +1 -2
- package/dist/deploy/api/logs.js +9 -7
- package/dist/deploy/api/organizations.d.ts +1 -2
- package/dist/deploy/api/organizations.js +8 -7
- package/dist/deploy/api/projects.d.ts +19 -4
- package/dist/deploy/api/projects.js +75 -13
- package/dist/deploy/api/source-control.d.ts +1 -2
- package/dist/deploy/api/source-control.js +25 -24
- package/dist/deploy/api.d.ts +0 -1
- package/dist/deploy/context.d.ts +52 -0
- package/dist/deploy/context.js +234 -0
- package/dist/deploy/index.d.ts +11 -0
- package/dist/deploy/index.js +38 -0
- package/dist/deploy/tasks/deployment-result.d.ts +0 -1
- package/dist/deploy/tasks/deployments.d.ts +0 -1
- package/dist/deploy/tasks/deployments.js +12 -11
- package/dist/deploy/tasks/editing-host.d.ts +0 -1
- package/dist/deploy/tasks/editing-host.js +48 -18
- package/dist/deploy/tasks/environments.d.ts +3 -3
- package/dist/deploy/tasks/environments.js +108 -24
- package/dist/deploy/tasks/health.d.ts +23 -0
- package/dist/deploy/tasks/health.js +181 -0
- package/dist/deploy/tasks/logs.d.ts +0 -1
- package/dist/deploy/tasks/logs.js +4 -4
- package/dist/deploy/tasks/organizations.d.ts +0 -1
- package/dist/deploy/tasks/organizations.js +5 -5
- package/dist/deploy/tasks/projects.d.ts +6 -2
- package/dist/deploy/tasks/projects.js +61 -42
- package/dist/deploy/tasks/shared.d.ts +9 -52
- package/dist/deploy/tasks/shared.js +46 -222
- package/dist/deploy/tasks/site-bind.d.ts +1 -2
- package/dist/deploy/tasks/site-bind.js +7 -7
- package/dist/deploy/tasks/site.d.ts +2 -3
- package/dist/deploy/tasks/site.js +4 -4
- package/dist/deploy/tasks/source-control.d.ts +0 -1
- package/dist/deploy/tasks/source-control.js +14 -14
- package/dist/deploy/tasks/transport-spinner.d.ts +5 -0
- package/dist/deploy/tasks/transport-spinner.js +118 -0
- package/dist/deploy/tasks/types.d.ts +16 -3
- package/dist/deploy/tasks/types.js +1 -1
- package/dist/hygiene/api/client.d.ts +294 -0
- package/dist/hygiene/api/client.js +827 -0
- package/dist/hygiene/api/graphql.d.ts +4 -0
- package/dist/hygiene/api/graphql.js +18 -0
- package/dist/hygiene/audit-suite.d.ts +84 -0
- package/dist/hygiene/audit-suite.js +95 -0
- package/dist/hygiene/baseline.d.ts +56 -0
- package/dist/hygiene/baseline.js +248 -0
- package/dist/hygiene/cache.d.ts +35 -0
- package/dist/hygiene/cache.js +179 -0
- package/dist/hygiene/history.d.ts +70 -0
- package/dist/hygiene/history.js +148 -0
- package/dist/hygiene/index.d.ts +128 -0
- package/dist/hygiene/index.js +168 -0
- package/dist/hygiene/output-adapters.d.ts +49 -0
- package/dist/hygiene/output-adapters.js +270 -0
- package/dist/hygiene/tasks/audit/all.d.ts +58 -0
- package/dist/hygiene/tasks/audit/all.js +274 -0
- package/dist/hygiene/tasks/audit/alt-text-missing.d.ts +27 -0
- package/dist/hygiene/tasks/audit/alt-text-missing.js +87 -0
- package/dist/hygiene/tasks/audit/baseline.d.ts +66 -0
- package/dist/hygiene/tasks/audit/baseline.js +185 -0
- package/dist/hygiene/tasks/audit/broken-images.d.ts +41 -0
- package/dist/hygiene/tasks/audit/broken-images.js +183 -0
- package/dist/hygiene/tasks/audit/broken-links.d.ts +53 -0
- package/dist/hygiene/tasks/audit/broken-links.js +121 -0
- package/dist/hygiene/tasks/audit/datasource-missing.d.ts +44 -0
- package/dist/hygiene/tasks/audit/datasource-missing.js +146 -0
- package/dist/hygiene/tasks/audit/dead-templates.d.ts +46 -0
- package/dist/hygiene/tasks/audit/dead-templates.js +216 -0
- package/dist/hygiene/tasks/audit/duplicates.d.ts +48 -0
- package/dist/hygiene/tasks/audit/duplicates.js +94 -0
- package/dist/hygiene/tasks/audit/empty-items.d.ts +24 -0
- package/dist/hygiene/tasks/audit/empty-items.js +53 -0
- package/dist/hygiene/tasks/audit/empty-links.d.ts +37 -0
- package/dist/hygiene/tasks/audit/empty-links.js +145 -0
- package/dist/hygiene/tasks/audit/empty-roles.d.ts +41 -0
- package/dist/hygiene/tasks/audit/empty-roles.js +51 -0
- package/dist/hygiene/tasks/audit/fallback-drift.d.ts +53 -0
- package/dist/hygiene/tasks/audit/fallback-drift.js +115 -0
- package/dist/hygiene/tasks/audit/find-replace.d.ts +75 -0
- package/dist/hygiene/tasks/audit/find-replace.js +142 -0
- package/dist/hygiene/tasks/audit/heavy-templates.d.ts +46 -0
- package/dist/hygiene/tasks/audit/heavy-templates.js +73 -0
- package/dist/hygiene/tasks/audit/history.d.ts +30 -0
- package/dist/hygiene/tasks/audit/history.js +161 -0
- package/dist/hygiene/tasks/audit/language-data.d.ts +55 -0
- package/dist/hygiene/tasks/audit/language-data.js +126 -0
- package/dist/hygiene/tasks/audit/large-fields.d.ts +48 -0
- package/dist/hygiene/tasks/audit/large-fields.js +84 -0
- package/dist/hygiene/tasks/audit/missing-meta.d.ts +57 -0
- package/dist/hygiene/tasks/audit/missing-meta.js +97 -0
- package/dist/hygiene/tasks/audit/orphans.d.ts +47 -0
- package/dist/hygiene/tasks/audit/orphans.js +78 -0
- package/dist/hygiene/tasks/audit/page-design-orphans.d.ts +24 -0
- package/dist/hygiene/tasks/audit/page-design-orphans.js +80 -0
- package/dist/hygiene/tasks/audit/personalization-broken.d.ts +25 -0
- package/dist/hygiene/tasks/audit/personalization-broken.js +96 -0
- package/dist/hygiene/tasks/audit/references.d.ts +70 -0
- package/dist/hygiene/tasks/audit/references.js +142 -0
- package/dist/hygiene/tasks/audit/role-bloat.d.ts +42 -0
- package/dist/hygiene/tasks/audit/role-bloat.js +64 -0
- package/dist/hygiene/tasks/audit/site-residue.d.ts +39 -0
- package/dist/hygiene/tasks/audit/site-residue.js +164 -0
- package/dist/hygiene/tasks/audit/slug-conflicts.d.ts +58 -0
- package/dist/hygiene/tasks/audit/slug-conflicts.js +87 -0
- package/dist/hygiene/tasks/audit/stale-content.d.ts +68 -0
- package/dist/hygiene/tasks/audit/stale-content.js +133 -0
- package/dist/hygiene/tasks/audit/stale-users.d.ts +54 -0
- package/dist/hygiene/tasks/audit/stale-users.js +83 -0
- package/dist/hygiene/tasks/audit/stale-workflow.d.ts +50 -0
- package/dist/hygiene/tasks/audit/stale-workflow.js +109 -0
- package/dist/hygiene/tasks/audit/suite-run.d.ts +28 -0
- package/dist/hygiene/tasks/audit/suite-run.js +46 -0
- package/dist/hygiene/tasks/audit/template-dependencies.d.ts +72 -0
- package/dist/hygiene/tasks/audit/template-dependencies.js +97 -0
- package/dist/hygiene/tasks/audit/translation-coverage.d.ts +64 -0
- package/dist/hygiene/tasks/audit/translation-coverage.js +123 -0
- package/dist/hygiene/tasks/audit/unused-media.d.ts +58 -0
- package/dist/hygiene/tasks/audit/unused-media.js +144 -0
- package/dist/hygiene/tasks/browse.d.ts +49 -0
- package/dist/hygiene/tasks/browse.js +50 -0
- package/dist/hygiene/tasks/cleanup/archive-purge.d.ts +50 -0
- package/dist/hygiene/tasks/cleanup/archive-purge.js +129 -0
- package/dist/hygiene/tasks/cleanup/dead-templates.d.ts +74 -0
- package/dist/hygiene/tasks/cleanup/dead-templates.js +247 -0
- package/dist/hygiene/tasks/cleanup/duplicates.d.ts +86 -0
- package/dist/hygiene/tasks/cleanup/duplicates.js +189 -0
- package/dist/hygiene/tasks/cleanup/empty-folders.d.ts +75 -0
- package/dist/hygiene/tasks/cleanup/empty-folders.js +165 -0
- package/dist/hygiene/tasks/cleanup/field-set.d.ts +108 -0
- package/dist/hygiene/tasks/cleanup/field-set.js +230 -0
- package/dist/hygiene/tasks/cleanup/find-replace.d.ts +77 -0
- package/dist/hygiene/tasks/cleanup/find-replace.js +180 -0
- package/dist/hygiene/tasks/cleanup/language-version-add.d.ts +74 -0
- package/dist/hygiene/tasks/cleanup/language-version-add.js +136 -0
- package/dist/hygiene/tasks/cleanup/rename.d.ts +78 -0
- package/dist/hygiene/tasks/cleanup/rename.js +152 -0
- package/dist/hygiene/tasks/cleanup/roles.d.ts +58 -0
- package/dist/hygiene/tasks/cleanup/roles.js +177 -0
- package/dist/hygiene/tasks/cleanup/site-residue.d.ts +55 -0
- package/dist/hygiene/tasks/cleanup/site-residue.js +247 -0
- package/dist/hygiene/tasks/cleanup/slug-conflicts.d.ts +126 -0
- package/dist/hygiene/tasks/cleanup/slug-conflicts.js +296 -0
- package/dist/hygiene/tasks/cleanup/subtree-prune.d.ts +40 -0
- package/dist/hygiene/tasks/cleanup/subtree-prune.js +113 -0
- package/dist/hygiene/tasks/cleanup/subtree.d.ts +123 -0
- package/dist/hygiene/tasks/cleanup/subtree.js +312 -0
- package/dist/hygiene/tasks/cleanup/users.d.ts +48 -0
- package/dist/hygiene/tasks/cleanup/users.js +92 -0
- package/dist/hygiene/tasks/cleanup/versions-archive.d.ts +57 -0
- package/dist/hygiene/tasks/cleanup/versions-archive.js +162 -0
- package/dist/hygiene/tasks/cleanup/versions-prune.d.ts +76 -0
- package/dist/hygiene/tasks/cleanup/versions-prune.js +194 -0
- package/dist/hygiene/tasks/cleanup/workflow-advance.d.ts +76 -0
- package/dist/hygiene/tasks/cleanup/workflow-advance.js +185 -0
- package/dist/hygiene/tasks/cleanup/workflow-apply.d.ts +97 -0
- package/dist/hygiene/tasks/cleanup/workflow-apply.js +310 -0
- package/dist/hygiene/tasks/explain/orphan-site.d.ts +53 -0
- package/dist/hygiene/tasks/explain/orphan-site.js +83 -0
- package/dist/hygiene/tasks/explain/why-blocked.d.ts +81 -0
- package/dist/hygiene/tasks/explain/why-blocked.js +149 -0
- package/dist/hygiene/tasks/reference-kind.d.ts +47 -0
- package/dist/hygiene/tasks/reference-kind.js +73 -0
- package/dist/hygiene/tasks/shared.d.ts +350 -0
- package/dist/hygiene/tasks/shared.js +532 -0
- package/dist/mcp/auth.d.ts +80 -0
- package/dist/mcp/auth.js +165 -0
- package/dist/mcp/build-registry.d.ts +12 -0
- package/dist/mcp/build-registry.js +75 -0
- package/dist/mcp/descriptions.d.ts +22 -0
- package/dist/mcp/descriptions.js +113 -0
- package/dist/mcp/dispatch.d.ts +44 -0
- package/dist/mcp/dispatch.js +110 -0
- package/dist/mcp/errors.d.ts +31 -0
- package/dist/mcp/errors.js +117 -0
- package/dist/mcp/http.d.ts +42 -0
- package/dist/mcp/http.js +128 -0
- package/dist/mcp/logging.d.ts +28 -0
- package/dist/mcp/logging.js +78 -0
- package/dist/mcp/prompts/workflows.d.ts +13 -0
- package/dist/mcp/prompts/workflows.js +171 -0
- package/dist/mcp/redact.d.ts +11 -0
- package/dist/mcp/redact.js +35 -0
- package/dist/mcp/registry.d.ts +84 -0
- package/dist/mcp/registry.js +62 -0
- package/dist/mcp/resources/brand.d.ts +20 -0
- package/dist/mcp/resources/brand.js +514 -0
- package/dist/mcp/resources/env.d.ts +10 -0
- package/dist/mcp/resources/env.js +120 -0
- package/dist/mcp/resources/help.d.ts +10 -0
- package/dist/mcp/resources/help.js +475 -0
- package/dist/mcp/resources/recipes.d.ts +13 -0
- package/dist/mcp/resources/recipes.js +270 -0
- package/dist/mcp/schemas/common.d.ts +22 -0
- package/dist/mcp/schemas/common.js +43 -0
- package/dist/mcp/server.d.ts +26 -0
- package/dist/mcp/server.js +88 -0
- package/dist/mcp/tools/access-check.d.ts +11 -0
- package/dist/mcp/tools/access-check.js +47 -0
- package/dist/mcp/tools/agents-recipe.d.ts +2 -0
- package/dist/mcp/tools/agents-recipe.js +139 -0
- package/dist/mcp/tools/agents.d.ts +2 -0
- package/dist/mcp/tools/agents.js +148 -0
- package/dist/mcp/tools/audit.d.ts +41 -0
- package/dist/mcp/tools/audit.js +584 -0
- package/dist/mcp/tools/bootstrap.d.ts +8 -0
- package/dist/mcp/tools/bootstrap.js +200 -0
- package/dist/mcp/tools/brand-recipe.d.ts +2 -0
- package/dist/mcp/tools/brand-recipe.js +123 -0
- package/dist/mcp/tools/brand.d.ts +28 -0
- package/dist/mcp/tools/brand.js +549 -0
- package/dist/mcp/tools/brief-recipe.d.ts +2 -0
- package/dist/mcp/tools/brief-recipe.js +123 -0
- package/dist/mcp/tools/brief.d.ts +16 -0
- package/dist/mcp/tools/brief.js +388 -0
- package/dist/mcp/tools/browse.d.ts +9 -0
- package/dist/mcp/tools/browse.js +57 -0
- package/dist/mcp/tools/campaign-recipe.d.ts +2 -0
- package/dist/mcp/tools/campaign-recipe.js +125 -0
- package/dist/mcp/tools/campaign.d.ts +20 -0
- package/dist/mcp/tools/campaign.js +342 -0
- package/dist/mcp/tools/cleanup.d.ts +22 -0
- package/dist/mcp/tools/cleanup.js +608 -0
- package/dist/mcp/tools/deploy.d.ts +19 -0
- package/dist/mcp/tools/deploy.js +797 -0
- package/dist/mcp/tools/explain.d.ts +2 -0
- package/dist/mcp/tools/explain.js +132 -0
- package/dist/mcp/tools/inspector.d.ts +12 -0
- package/dist/mcp/tools/inspector.js +101 -0
- package/dist/mcp/tools/onboard.d.ts +11 -0
- package/dist/mcp/tools/onboard.js +65 -0
- package/dist/mcp/tools/publish.d.ts +30 -0
- package/dist/mcp/tools/publish.js +173 -0
- package/dist/mcp/tools/recipe-sync.d.ts +2 -0
- package/dist/mcp/tools/recipe-sync.js +117 -0
- package/dist/mcp/tools/recipe.d.ts +18 -0
- package/dist/mcp/tools/recipe.js +250 -0
- package/dist/mcp/tools/serialization.d.ts +17 -0
- package/dist/mcp/tools/serialization.js +282 -0
- package/dist/mcp/tools/webhook.d.ts +12 -0
- package/dist/mcp/tools/webhook.js +246 -0
- package/dist/mcp/tools/workflow.d.ts +21 -0
- package/dist/mcp/tools/workflow.js +436 -0
- package/dist/policy/access-check.d.ts +56 -0
- package/dist/policy/access-check.js +160 -0
- package/dist/policy/allow-write.d.ts +37 -0
- package/dist/policy/allow-write.js +78 -0
- package/dist/policy/authorize.d.ts +36 -0
- package/dist/policy/authorize.js +102 -0
- package/dist/policy/caller.d.ts +23 -0
- package/dist/policy/caller.js +66 -0
- package/dist/policy/enforce.d.ts +25 -0
- package/dist/policy/enforce.js +57 -0
- package/dist/policy/enroll.d.ts +57 -0
- package/dist/policy/enroll.js +101 -0
- package/dist/policy/environment.d.ts +35 -0
- package/dist/policy/environment.js +44 -0
- package/dist/policy/identity.d.ts +24 -0
- package/dist/policy/identity.js +58 -0
- package/dist/policy/index.d.ts +22 -0
- package/dist/policy/index.js +42 -0
- package/dist/policy/operations.d.ts +24 -0
- package/dist/policy/operations.js +37 -0
- package/dist/policy/organization.d.ts +62 -0
- package/dist/policy/organization.js +97 -0
- package/dist/policy/paths.d.ts +21 -0
- package/dist/policy/paths.js +46 -0
- package/dist/policy/resolve.d.ts +15 -0
- package/dist/policy/resolve.js +67 -0
- package/dist/policy/schema.d.ts +137 -0
- package/dist/policy/schema.js +92 -0
- package/dist/policy/store.d.ts +25 -0
- package/dist/policy/store.js +85 -0
- package/dist/policy/types.d.ts +52 -0
- package/dist/policy/types.js +22 -0
- package/dist/program.d.ts +35 -0
- package/dist/program.js +131 -0
- package/dist/publishing/api/auth.d.ts +49 -0
- package/dist/publishing/api/auth.js +173 -0
- package/dist/publishing/api/client.d.ts +5 -0
- package/dist/publishing/api/client.js +153 -0
- package/dist/publishing/api/languages.d.ts +61 -0
- package/dist/publishing/api/languages.js +116 -0
- package/dist/publishing/api/path-resolver.d.ts +10 -0
- package/dist/publishing/api/path-resolver.js +76 -0
- package/dist/publishing/api/sites.d.ts +23 -0
- package/dist/publishing/api/sites.js +27 -0
- package/dist/publishing/api/types.d.ts +166 -0
- package/dist/publishing/api/types.js +17 -0
- package/dist/publishing/index.d.ts +25 -0
- package/dist/publishing/index.js +51 -0
- package/dist/publishing/job-diagnostics.d.ts +44 -0
- package/dist/publishing/job-diagnostics.js +87 -0
- package/dist/publishing/job-watcher.d.ts +33 -0
- package/dist/publishing/job-watcher.js +118 -0
- package/dist/publishing/tasks/all.d.ts +41 -0
- package/dist/publishing/tasks/all.js +234 -0
- package/dist/publishing/tasks/cancel.d.ts +18 -0
- package/dist/publishing/tasks/cancel.js +147 -0
- package/dist/publishing/tasks/history.d.ts +22 -0
- package/dist/publishing/tasks/history.js +85 -0
- package/dist/publishing/tasks/item.d.ts +69 -0
- package/dist/publishing/tasks/item.js +194 -0
- package/dist/publishing/tasks/status.d.ts +17 -0
- package/dist/publishing/tasks/status.js +74 -0
- package/dist/publishing/tasks/unpublish.d.ts +69 -0
- package/dist/publishing/tasks/unpublish.js +546 -0
- package/dist/recipe/api/auth.d.ts +1 -2
- package/dist/recipe/api/auth.js +1 -1
- package/dist/recipe/api/authoring-client.d.ts +9 -3
- package/dist/recipe/api/authoring-client.js +101 -17
- package/dist/recipe/api/client.d.ts +50 -1
- package/dist/recipe/api/graphql.d.ts +2 -3
- package/dist/recipe/api/graphql.js +1 -1
- package/dist/recipe/api/ref-encoding.d.ts +0 -1
- package/dist/recipe/api/ref-encoding.js +5 -5
- package/dist/recipe/api/site-discovery.d.ts +1 -2
- package/dist/recipe/api/sites-client.d.ts +6 -3
- package/dist/recipe/api/sites-client.js +11 -8
- package/dist/recipe/cache.d.ts +0 -1
- package/dist/recipe/compile/component-section.d.ts +1 -2
- package/dist/recipe/compile/component-section.js +2 -2
- package/dist/recipe/compile/component-template.d.ts +0 -1
- package/dist/recipe/compile/component-template.js +15 -19
- package/dist/recipe/compile/content-item.d.ts +42 -22
- package/dist/recipe/compile/content-item.js +198 -46
- package/dist/recipe/compile/content-template.d.ts +0 -1
- package/dist/recipe/compile/content-template.js +25 -1
- package/dist/recipe/compile/design-parameters-template.d.ts +13 -0
- package/dist/recipe/compile/design-parameters-template.js +92 -0
- package/dist/recipe/compile/enumeration.d.ts +0 -1
- package/dist/recipe/compile/enumeration.js +4 -4
- package/dist/recipe/compile/page-design.d.ts +0 -1
- package/dist/recipe/compile/page-design.js +1 -1
- package/dist/recipe/compile/page-template.d.ts +30 -0
- package/dist/recipe/compile/page-template.js +121 -0
- package/dist/recipe/compile/page.d.ts +26 -0
- package/dist/recipe/compile/page.js +184 -0
- package/dist/recipe/compile/partial-design.d.ts +0 -1
- package/dist/recipe/compile/partial-design.js +1 -1
- package/dist/recipe/compile/placeholder.d.ts +23 -0
- package/dist/recipe/compile/placeholder.js +32 -0
- package/dist/recipe/compile/section-definition.d.ts +0 -1
- package/dist/recipe/compile/shared.d.ts +52 -7
- package/dist/recipe/compile/shared.js +55 -15
- package/dist/recipe/compile/site-template.d.ts +0 -1
- package/dist/recipe/compile/site-template.js +1 -1
- package/dist/recipe/compile/site.d.ts +0 -1
- package/dist/recipe/compile/site.js +1 -1
- package/dist/recipe/compile/webhook-authorization.d.ts +23 -0
- package/dist/recipe/compile/webhook-authorization.js +116 -0
- package/dist/recipe/compile/workflow.d.ts +46 -0
- package/dist/recipe/compile/workflow.js +368 -0
- package/dist/recipe/compile.d.ts +19 -3
- package/dist/recipe/compile.js +297 -11
- package/dist/recipe/ensure-marker-field.d.ts +25 -0
- package/dist/recipe/ensure-marker-field.js +140 -0
- package/dist/recipe/execute.d.ts +19 -2
- package/dist/recipe/execute.js +39 -8
- package/dist/recipe/guids.d.ts +106 -9
- package/dist/recipe/guids.js +126 -15
- package/dist/recipe/index.d.ts +11 -5
- package/dist/recipe/index.js +46 -23
- package/dist/recipe/io.d.ts +0 -1
- package/dist/recipe/io.js +33 -10
- package/dist/recipe/ir/operations.d.ts +66 -4
- package/dist/recipe/ir/operations.js +55 -2
- package/dist/recipe/ir/sitecore-templates.d.ts +87 -1
- package/dist/recipe/ir/sitecore-templates.js +94 -1
- package/dist/recipe/layout/emit.d.ts +22 -3
- package/dist/recipe/layout/emit.js +18 -7
- package/dist/recipe/layout/parse.d.ts +164 -0
- package/dist/recipe/layout/parse.js +295 -0
- package/dist/recipe/layout/templates-mapping.d.ts +0 -1
- package/dist/recipe/marker.d.ts +28 -0
- package/dist/recipe/marker.js +37 -0
- package/dist/recipe/plan.d.ts +9 -2
- package/dist/recipe/plan.js +195 -19
- package/dist/recipe/policy.d.ts +0 -1
- package/dist/recipe/policy.js +19 -1
- package/dist/recipe/read-current.d.ts +109 -0
- package/dist/recipe/read-current.js +1285 -0
- package/dist/recipe/recipe-kind.d.ts +4 -0
- package/dist/recipe/recipe-kind.js +217 -0
- package/dist/recipe/rollback-log.d.ts +52 -0
- package/dist/recipe/rollback-log.js +90 -0
- package/dist/recipe/rollback.d.ts +12 -1
- package/dist/recipe/rollback.js +32 -7
- package/dist/recipe/sandbox/load.d.ts +17 -0
- package/dist/recipe/sandbox/load.js +145 -0
- package/dist/recipe/sandbox/recipe-runner.cjs +49 -0
- package/dist/recipe/sandbox/transpile.d.ts +17 -0
- package/dist/recipe/sandbox/transpile.js +46 -0
- package/dist/recipe/schema/field-types.d.ts +3 -4
- package/dist/recipe/schema/recipe.d.ts +1631 -213
- package/dist/recipe/schema/recipe.js +576 -37
- package/dist/recipe/schema/source-fields.d.ts +0 -1
- package/dist/recipe/tasks/compile.d.ts +1 -2
- package/dist/recipe/tasks/compile.js +14 -4
- package/dist/recipe/tasks/diff.d.ts +1 -2
- package/dist/recipe/tasks/placeholder-allow.d.ts +0 -1
- package/dist/recipe/tasks/placeholder-allow.js +3 -7
- package/dist/recipe/tasks/plan.d.ts +3 -4
- package/dist/recipe/tasks/plan.js +5 -5
- package/dist/recipe/tasks/prune-defaults.d.ts +1 -2
- package/dist/recipe/tasks/prune-defaults.js +6 -7
- package/dist/recipe/tasks/push.d.ts +1 -2
- package/dist/recipe/tasks/push.js +46 -6
- package/dist/recipe/tasks/shared.d.ts +21 -4
- package/dist/recipe/tasks/shared.js +34 -21
- package/dist/recipe/unstable.d.ts +18 -0
- package/dist/recipe/unstable.js +36 -0
- package/dist/recipe/validate.d.ts +51 -2
- package/dist/recipe/validate.js +162 -15
- package/dist/scripting/connect.d.ts +24 -0
- package/dist/scripting/connect.js +17 -0
- package/dist/scripting/helpers/multilist.d.ts +26 -0
- package/dist/scripting/helpers/multilist.js +75 -0
- package/dist/scripting/index.d.ts +20 -0
- package/dist/scripting/index.js +57 -0
- package/dist/serialization/api/auth.d.ts +57 -0
- package/dist/serialization/api/auth.js +433 -0
- package/dist/serialization/api/client.d.ts +41 -0
- package/dist/serialization/api/client.js +41 -0
- package/dist/serialization/api/graphql.d.ts +11 -0
- package/dist/serialization/api/history.d.ts +8 -0
- package/dist/serialization/api/index.d.ts +23 -0
- package/dist/serialization/api/index.js +64 -0
- package/dist/serialization/api/items.d.ts +7 -0
- package/dist/serialization/api/items.js +132 -0
- package/dist/serialization/api/publish.d.ts +43 -0
- package/dist/serialization/api/publish.js +67 -0
- package/dist/serialization/api/roles.d.ts +8 -0
- package/dist/serialization/api/types.d.ts +65 -0
- package/dist/serialization/api/types.js +2 -0
- package/dist/serialization/api/users.d.ts +8 -0
- package/dist/serialization/commands.d.ts +0 -1
- package/dist/serialization/compare.d.ts +0 -1
- package/dist/serialization/context.d.ts +25 -0
- package/dist/serialization/context.js +58 -0
- package/dist/serialization/field-filter.d.ts +0 -1
- package/dist/serialization/filesystem-store/constants.d.ts +0 -1
- package/dist/serialization/filesystem-store/items.d.ts +0 -1
- package/dist/serialization/filesystem-store/items.js +1 -1
- package/dist/serialization/filesystem-store/roles.d.ts +1 -2
- package/dist/serialization/filesystem-store/users.d.ts +1 -2
- package/dist/serialization/filesystem-store/utils.d.ts +0 -1
- package/dist/serialization/index.d.ts +12 -0
- package/dist/serialization/index.js +32 -0
- package/dist/serialization/item-path.d.ts +0 -1
- package/dist/serialization/item-path.js +3 -3
- package/dist/serialization/path-provider.d.ts +0 -1
- package/dist/serialization/path-provider.js +4 -4
- package/dist/serialization/signature.d.ts +0 -1
- package/dist/serialization/tasks/diff.d.ts +0 -1
- package/dist/serialization/tasks/diff.js +176 -48
- package/dist/serialization/tasks/env/constants.d.ts +13 -1
- package/dist/serialization/tasks/env/constants.js +64 -1
- package/dist/serialization/tasks/env/deploy-token.d.ts +0 -1
- package/dist/serialization/tasks/env/deploy-token.js +69 -17
- package/dist/serialization/tasks/env/init/auth.d.ts +11 -3
- package/dist/serialization/tasks/env/init/auth.js +19 -17
- package/dist/serialization/tasks/env/init/deploy-lookup.d.ts +1 -2
- package/dist/serialization/tasks/env/init/deploy-lookup.js +18 -5
- package/dist/serialization/tasks/env/init.d.ts +0 -1
- package/dist/serialization/tasks/env/init.js +18 -12
- package/dist/serialization/tasks/env/logout.d.ts +0 -1
- package/dist/serialization/tasks/env/logout.js +13 -6
- package/dist/serialization/tasks/env/onboard.d.ts +40 -0
- package/dist/serialization/tasks/env/onboard.js +53 -0
- package/dist/serialization/tasks/env/setup-clients.d.ts +24 -0
- package/dist/serialization/tasks/env/setup-clients.js +119 -0
- package/dist/serialization/tasks/env/setup-env.d.ts +54 -0
- package/dist/serialization/tasks/env/setup-env.js +216 -0
- package/dist/serialization/tasks/env/setup-org-client.d.ts +21 -0
- package/dist/serialization/tasks/env/setup-org-client.js +146 -0
- package/dist/serialization/tasks/env/status.d.ts +0 -1
- package/dist/serialization/tasks/env/status.js +36 -11
- package/dist/serialization/tasks/helpers/collect.d.ts +1 -2
- package/dist/serialization/tasks/helpers/collect.js +22 -15
- package/dist/serialization/tasks/helpers/commands.d.ts +0 -1
- package/dist/serialization/tasks/helpers/filesystem.d.ts +0 -1
- package/dist/serialization/tasks/helpers/filesystem.js +4 -4
- package/dist/serialization/tasks/helpers/items.d.ts +0 -1
- package/dist/serialization/tasks/helpers/sitecore.d.ts +1 -2
- package/dist/serialization/tasks/helpers/sitecore.js +2 -2
- package/dist/serialization/tasks/info.d.ts +0 -1
- package/dist/serialization/tasks/package.d.ts +0 -1
- package/dist/serialization/tasks/package.js +21 -16
- package/dist/serialization/tasks/pull.d.ts +0 -1
- package/dist/serialization/tasks/pull.js +24 -9
- package/dist/serialization/tasks/push.d.ts +0 -1
- package/dist/serialization/tasks/push.js +27 -11
- package/dist/serialization/tasks/roles.d.ts +2 -2
- package/dist/serialization/tasks/roles.js +9 -9
- package/dist/serialization/tasks/shared.d.ts +9 -16
- package/dist/serialization/tasks/shared.js +14 -44
- package/dist/serialization/tasks/types.d.ts +44 -4
- package/dist/serialization/tasks/types.js +1 -1
- package/dist/serialization/tasks/users.d.ts +2 -2
- package/dist/serialization/tasks/users.js +9 -9
- package/dist/serialization/tasks/validate.d.ts +0 -1
- package/dist/serialization/tasks/validate.js +2 -2
- package/dist/serialization/tasks/watch.d.ts +0 -1
- package/dist/serialization/tasks/watch.js +9 -8
- package/dist/serialization/tree-spec.d.ts +0 -1
- package/dist/serialization/tree-spec.js +21 -21
- package/dist/serialization/types.d.ts +0 -1
- package/dist/serialization/wildcard.d.ts +0 -1
- package/dist/serialization/wildcard.js +2 -2
- package/dist/serialization/yaml.d.ts +0 -1
- package/dist/serialization/yaml.js +1 -1
- package/dist/shared/browser.d.ts +0 -1
- package/dist/shared/cli-options.d.ts +0 -1
- package/dist/shared/cli-tasks.d.ts +1 -2
- package/dist/shared/cli-tasks.js +2 -2
- package/dist/shared/client-credential.d.ts +82 -0
- package/dist/shared/client-credential.js +117 -0
- package/dist/shared/concurrency.d.ts +20 -0
- package/dist/shared/concurrency.js +67 -0
- package/dist/shared/config-template.d.ts +0 -1
- package/dist/shared/credential-matrix.d.ts +83 -0
- package/dist/shared/credential-matrix.js +65 -0
- package/dist/shared/env-tier.d.ts +2 -0
- package/dist/shared/env-tier.js +31 -0
- package/dist/shared/envelope.d.ts +69 -0
- package/dist/shared/envelope.js +84 -0
- package/dist/shared/errors.d.ts +79 -9
- package/dist/shared/errors.js +49 -11
- package/dist/shared/graphql.d.ts +2 -3
- package/dist/shared/graphql.js +31 -15
- package/dist/shared/history.d.ts +25 -1
- package/dist/shared/history.js +35 -1
- package/dist/shared/human-only-operations.d.ts +28 -0
- package/dist/shared/human-only-operations.js +33 -0
- package/dist/shared/keychain.d.ts +68 -1
- package/dist/shared/keychain.js +416 -46
- package/dist/shared/logger.d.ts +2 -1
- package/dist/shared/logger.js +12 -1
- package/dist/shared/output.d.ts +0 -1
- package/dist/shared/prompt.d.ts +0 -1
- package/dist/shared/prompt.js +2 -2
- package/dist/shared/publish-audit.d.ts +154 -0
- package/dist/shared/publish-audit.js +52 -0
- package/dist/shared/publish-consent.d.ts +104 -0
- package/dist/shared/publish-consent.js +148 -0
- package/dist/shared/redact.d.ts +0 -1
- package/dist/shared/redact.js +4 -2
- package/dist/shared/region.d.ts +96 -0
- package/dist/shared/region.js +129 -0
- package/dist/shared/rwlock.d.ts +43 -0
- package/dist/shared/rwlock.js +110 -0
- package/dist/shared/spinner.d.ts +0 -1
- package/dist/shared/style.d.ts +0 -1
- package/dist/shared/telemetry.d.ts +15 -2
- package/dist/shared/telemetry.js +59 -34
- package/dist/shared/topics.d.ts +33 -0
- package/dist/shared/topics.js +151 -0
- package/dist/shared/validate.d.ts +0 -1
- package/dist/shared/validate.js +18 -3
- package/dist/sites/api/collections.d.ts +0 -1
- package/dist/sites/api/jobs.d.ts +0 -1
- package/dist/sites/api/languages.d.ts +0 -1
- package/dist/sites/api/request.d.ts +0 -1
- package/dist/sites/api/request.js +13 -4
- package/dist/sites/api/sites.d.ts +44 -1
- package/dist/sites/api/sites.js +42 -1
- package/dist/sites/api/types.d.ts +0 -1
- package/dist/sites/index.d.ts +25 -0
- package/dist/sites/index.js +44 -0
- package/dist/sync/aggregate-kinds.d.ts +7 -0
- package/dist/sync/aggregate-kinds.js +32 -0
- package/dist/sync/aggregate.d.ts +100 -0
- package/dist/sync/aggregate.js +173 -0
- package/dist/sync/engine.d.ts +28 -0
- package/dist/sync/engine.js +38 -0
- package/dist/sync/index.d.ts +18 -0
- package/dist/sync/index.js +25 -0
- package/dist/sync/io.d.ts +8 -0
- package/dist/sync/io.js +52 -0
- package/dist/sync/kind.d.ts +80 -0
- package/dist/sync/kind.js +2 -0
- package/dist/sync/plan.d.ts +55 -0
- package/dist/sync/plan.js +27 -0
- package/dist/sync/registry.d.ts +7 -0
- package/dist/sync/registry.js +36 -0
- package/dist/webhooks/api/client.d.ts +134 -0
- package/dist/webhooks/api/client.js +326 -0
- package/dist/webhooks/api/graphql.d.ts +4 -0
- package/dist/webhooks/api/graphql.js +18 -0
- package/dist/webhooks/api/templates.d.ts +41 -0
- package/dist/webhooks/api/templates.js +78 -0
- package/dist/webhooks/index.d.ts +16 -0
- package/dist/webhooks/index.js +43 -0
- package/dist/webhooks/tasks/create.d.ts +58 -0
- package/dist/webhooks/tasks/create.js +127 -0
- package/dist/webhooks/tasks/delete.d.ts +14 -0
- package/dist/webhooks/tasks/delete.js +57 -0
- package/dist/webhooks/tasks/event-types.d.ts +21 -0
- package/dist/webhooks/tasks/event-types.js +32 -0
- package/dist/webhooks/tasks/inspect.d.ts +12 -0
- package/dist/webhooks/tasks/inspect.js +65 -0
- package/dist/webhooks/tasks/list.d.ts +29 -0
- package/dist/webhooks/tasks/list.js +41 -0
- package/dist/webhooks/tasks/shared.d.ts +35 -0
- package/dist/webhooks/tasks/shared.js +38 -0
- package/dist/workflow/api/client.d.ts +208 -0
- package/dist/workflow/api/client.js +421 -0
- package/dist/workflow/api/graphql.d.ts +4 -0
- package/dist/workflow/api/graphql.js +18 -0
- package/dist/workflow/api/resolve-command.d.ts +27 -0
- package/dist/workflow/api/resolve-command.js +26 -0
- package/dist/workflow/index.d.ts +18 -0
- package/dist/workflow/index.js +37 -0
- package/dist/workflow/tasks/advance.d.ts +39 -0
- package/dist/workflow/tasks/advance.js +182 -0
- package/dist/workflow/tasks/apply.d.ts +47 -0
- package/dist/workflow/tasks/apply.js +193 -0
- package/dist/workflow/tasks/assigned.d.ts +33 -0
- package/dist/workflow/tasks/assigned.js +41 -0
- package/dist/workflow/tasks/inspect.d.ts +60 -0
- package/dist/workflow/tasks/inspect.js +171 -0
- package/dist/workflow/tasks/list-commands.d.ts +21 -0
- package/dist/workflow/tasks/list-commands.js +54 -0
- package/dist/workflow/tasks/list-defs.d.ts +21 -0
- package/dist/workflow/tasks/list-defs.js +28 -0
- package/dist/workflow/tasks/reset.d.ts +33 -0
- package/dist/workflow/tasks/reset.js +137 -0
- package/dist/workflow/tasks/shared.d.ts +75 -0
- package/dist/workflow/tasks/shared.js +124 -0
- package/dist/workflow/tasks/status.d.ts +21 -0
- package/dist/workflow/tasks/status.js +41 -0
- package/package.json +102 -8
- package/dist/cli.d.ts.map +0 -1
- package/dist/commands/config.d.ts.map +0 -1
- package/dist/commands/deploy/deployments.d.ts.map +0 -1
- package/dist/commands/deploy/editing-host.d.ts.map +0 -1
- package/dist/commands/deploy/environments/deployments.d.ts.map +0 -1
- package/dist/commands/deploy/environments/index.d.ts.map +0 -1
- package/dist/commands/deploy/environments/mutations.d.ts.map +0 -1
- package/dist/commands/deploy/environments/queries.d.ts.map +0 -1
- package/dist/commands/deploy/environments/variables.d.ts.map +0 -1
- package/dist/commands/deploy/environments.d.ts.map +0 -1
- package/dist/commands/deploy/index.d.ts.map +0 -1
- package/dist/commands/deploy/logs.d.ts.map +0 -1
- package/dist/commands/deploy/organizations.d.ts.map +0 -1
- package/dist/commands/deploy/projects.d.ts.map +0 -1
- package/dist/commands/deploy/shared.d.ts.map +0 -1
- package/dist/commands/deploy/site.d.ts.map +0 -1
- package/dist/commands/deploy/source-control.d.ts.map +0 -1
- package/dist/commands/deploy.d.ts.map +0 -1
- package/dist/commands/history.d.ts.map +0 -1
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/login.d.ts.map +0 -1
- package/dist/commands/logout.d.ts.map +0 -1
- package/dist/commands/recipe/index.d.ts.map +0 -1
- package/dist/commands/serialization/index.d.ts.map +0 -1
- package/dist/commands/serialization/package.d.ts.map +0 -1
- package/dist/commands/shared.d.ts.map +0 -1
- package/dist/commands/shell.d.ts.map +0 -1
- package/dist/commands/status.d.ts.map +0 -1
- package/dist/commands/telemetry.d.ts.map +0 -1
- package/dist/config/env-overrides.d.ts.map +0 -1
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/modules.d.ts.map +0 -1
- package/dist/config/paths.d.ts.map +0 -1
- package/dist/config/root-config.d.ts.map +0 -1
- package/dist/config/types.d.ts.map +0 -1
- package/dist/config/validation.d.ts.map +0 -1
- package/dist/deploy/api/common/headers.d.ts.map +0 -1
- package/dist/deploy/api/common/index.d.ts +0 -4
- package/dist/deploy/api/common/index.d.ts.map +0 -1
- package/dist/deploy/api/common/index.js +0 -19
- package/dist/deploy/api/common/request.d.ts.map +0 -1
- package/dist/deploy/api/common/types.d.ts.map +0 -1
- package/dist/deploy/api/common.d.ts +0 -2
- package/dist/deploy/api/common.d.ts.map +0 -1
- package/dist/deploy/api/common.js +0 -17
- package/dist/deploy/api/deployment-logs.d.ts.map +0 -1
- package/dist/deploy/api/deployments.d.ts.map +0 -1
- package/dist/deploy/api/environments.d.ts.map +0 -1
- package/dist/deploy/api/index.d.ts.map +0 -1
- package/dist/deploy/api/logs.d.ts.map +0 -1
- package/dist/deploy/api/organizations.d.ts.map +0 -1
- package/dist/deploy/api/projects.d.ts.map +0 -1
- package/dist/deploy/api/source-control.d.ts.map +0 -1
- package/dist/deploy/api.d.ts.map +0 -1
- package/dist/deploy/tasks/deployment-result.d.ts.map +0 -1
- package/dist/deploy/tasks/deployments.d.ts.map +0 -1
- package/dist/deploy/tasks/editing-host.d.ts.map +0 -1
- package/dist/deploy/tasks/environments.d.ts.map +0 -1
- package/dist/deploy/tasks/index.d.ts +0 -10
- package/dist/deploy/tasks/index.d.ts.map +0 -1
- package/dist/deploy/tasks/index.js +0 -25
- package/dist/deploy/tasks/logs.d.ts.map +0 -1
- package/dist/deploy/tasks/organizations.d.ts.map +0 -1
- package/dist/deploy/tasks/projects.d.ts.map +0 -1
- package/dist/deploy/tasks/shared.d.ts.map +0 -1
- package/dist/deploy/tasks/site-bind.d.ts.map +0 -1
- package/dist/deploy/tasks/site.d.ts.map +0 -1
- package/dist/deploy/tasks/source-control.d.ts.map +0 -1
- package/dist/deploy/tasks/types.d.ts.map +0 -1
- package/dist/deploy/tasks.d.ts +0 -3
- package/dist/deploy/tasks.d.ts.map +0 -1
- package/dist/deploy/tasks.js +0 -18
- package/dist/recipe/api/auth.d.ts.map +0 -1
- package/dist/recipe/api/authoring-client.d.ts.map +0 -1
- package/dist/recipe/api/client.d.ts.map +0 -1
- package/dist/recipe/api/graphql.d.ts.map +0 -1
- package/dist/recipe/api/ref-encoding.d.ts.map +0 -1
- package/dist/recipe/api/site-discovery.d.ts.map +0 -1
- package/dist/recipe/api/sites-client.d.ts.map +0 -1
- package/dist/recipe/cache.d.ts.map +0 -1
- package/dist/recipe/compile/component-section.d.ts.map +0 -1
- package/dist/recipe/compile/component-template.d.ts.map +0 -1
- package/dist/recipe/compile/content-item.d.ts.map +0 -1
- package/dist/recipe/compile/content-template.d.ts.map +0 -1
- package/dist/recipe/compile/enumeration.d.ts.map +0 -1
- package/dist/recipe/compile/page-design.d.ts.map +0 -1
- package/dist/recipe/compile/parameters-template.d.ts +0 -14
- package/dist/recipe/compile/parameters-template.d.ts.map +0 -1
- package/dist/recipe/compile/parameters-template.js +0 -92
- package/dist/recipe/compile/partial-design.d.ts.map +0 -1
- package/dist/recipe/compile/section-definition.d.ts.map +0 -1
- package/dist/recipe/compile/shared.d.ts.map +0 -1
- package/dist/recipe/compile/site-template.d.ts.map +0 -1
- package/dist/recipe/compile/site.d.ts.map +0 -1
- package/dist/recipe/compile.d.ts.map +0 -1
- package/dist/recipe/execute.d.ts.map +0 -1
- package/dist/recipe/guids.d.ts.map +0 -1
- package/dist/recipe/index.d.ts.map +0 -1
- package/dist/recipe/io.d.ts.map +0 -1
- package/dist/recipe/ir/operations.d.ts.map +0 -1
- package/dist/recipe/ir/sitecore-templates.d.ts.map +0 -1
- package/dist/recipe/layout/emit.d.ts.map +0 -1
- package/dist/recipe/layout/templates-mapping.d.ts.map +0 -1
- package/dist/recipe/plan.d.ts.map +0 -1
- package/dist/recipe/policy.d.ts.map +0 -1
- package/dist/recipe/rollback.d.ts.map +0 -1
- package/dist/recipe/schema/field-types.d.ts.map +0 -1
- package/dist/recipe/schema/recipe.d.ts.map +0 -1
- package/dist/recipe/schema/source-fields.d.ts.map +0 -1
- package/dist/recipe/tasks/compile.d.ts.map +0 -1
- package/dist/recipe/tasks/diff.d.ts.map +0 -1
- package/dist/recipe/tasks/index.d.ts +0 -9
- package/dist/recipe/tasks/index.d.ts.map +0 -1
- package/dist/recipe/tasks/index.js +0 -13
- package/dist/recipe/tasks/placeholder-allow.d.ts.map +0 -1
- package/dist/recipe/tasks/plan.d.ts.map +0 -1
- package/dist/recipe/tasks/prune-defaults.d.ts.map +0 -1
- package/dist/recipe/tasks/push.d.ts.map +0 -1
- package/dist/recipe/tasks/shared.d.ts.map +0 -1
- package/dist/recipe/validate.d.ts.map +0 -1
- package/dist/serialization/commands.d.ts.map +0 -1
- package/dist/serialization/compare.d.ts.map +0 -1
- package/dist/serialization/field-filter.d.ts.map +0 -1
- package/dist/serialization/filesystem-store/constants.d.ts.map +0 -1
- package/dist/serialization/filesystem-store/index.d.ts +0 -4
- package/dist/serialization/filesystem-store/index.d.ts.map +0 -1
- package/dist/serialization/filesystem-store/index.js +0 -15
- package/dist/serialization/filesystem-store/items.d.ts.map +0 -1
- package/dist/serialization/filesystem-store/roles.d.ts.map +0 -1
- package/dist/serialization/filesystem-store/users.d.ts.map +0 -1
- package/dist/serialization/filesystem-store/utils.d.ts.map +0 -1
- package/dist/serialization/filesystem-store.d.ts +0 -2
- package/dist/serialization/filesystem-store.d.ts.map +0 -1
- package/dist/serialization/filesystem-store.js +0 -17
- package/dist/serialization/item-path.d.ts.map +0 -1
- package/dist/serialization/path-provider.d.ts.map +0 -1
- package/dist/serialization/signature.d.ts.map +0 -1
- package/dist/serialization/sitecore-api/auth.d.ts +0 -31
- package/dist/serialization/sitecore-api/auth.d.ts.map +0 -1
- package/dist/serialization/sitecore-api/auth.js +0 -319
- package/dist/serialization/sitecore-api/graphql.d.ts +0 -12
- package/dist/serialization/sitecore-api/graphql.d.ts.map +0 -1
- package/dist/serialization/sitecore-api/history.d.ts +0 -9
- package/dist/serialization/sitecore-api/history.d.ts.map +0 -1
- package/dist/serialization/sitecore-api/index.d.ts +0 -7
- package/dist/serialization/sitecore-api/index.d.ts.map +0 -1
- package/dist/serialization/sitecore-api/index.js +0 -22
- package/dist/serialization/sitecore-api/items.d.ts +0 -8
- package/dist/serialization/sitecore-api/items.d.ts.map +0 -1
- package/dist/serialization/sitecore-api/items.js +0 -132
- package/dist/serialization/sitecore-api/publish.d.ts +0 -14
- package/dist/serialization/sitecore-api/publish.d.ts.map +0 -1
- package/dist/serialization/sitecore-api/publish.js +0 -43
- package/dist/serialization/sitecore-api/roles.d.ts +0 -9
- package/dist/serialization/sitecore-api/roles.d.ts.map +0 -1
- package/dist/serialization/sitecore-api/users.d.ts +0 -9
- package/dist/serialization/sitecore-api/users.d.ts.map +0 -1
- package/dist/serialization/sitecore-api.d.ts +0 -2
- package/dist/serialization/sitecore-api.d.ts.map +0 -1
- package/dist/serialization/sitecore-api.js +0 -17
- package/dist/serialization/tasks/diff.d.ts.map +0 -1
- package/dist/serialization/tasks/env/constants.d.ts.map +0 -1
- package/dist/serialization/tasks/env/deploy-token.d.ts.map +0 -1
- package/dist/serialization/tasks/env/index.d.ts +0 -5
- package/dist/serialization/tasks/env/index.d.ts.map +0 -1
- package/dist/serialization/tasks/env/index.js +0 -11
- package/dist/serialization/tasks/env/init/auth.d.ts.map +0 -1
- package/dist/serialization/tasks/env/init/deploy-lookup.d.ts.map +0 -1
- package/dist/serialization/tasks/env/init.d.ts.map +0 -1
- package/dist/serialization/tasks/env/logout.d.ts.map +0 -1
- package/dist/serialization/tasks/env/status.d.ts.map +0 -1
- package/dist/serialization/tasks/env.d.ts +0 -2
- package/dist/serialization/tasks/env.d.ts.map +0 -1
- package/dist/serialization/tasks/env.js +0 -17
- package/dist/serialization/tasks/helpers/collect.d.ts.map +0 -1
- package/dist/serialization/tasks/helpers/commands.d.ts.map +0 -1
- package/dist/serialization/tasks/helpers/filesystem.d.ts.map +0 -1
- package/dist/serialization/tasks/helpers/index.d.ts +0 -6
- package/dist/serialization/tasks/helpers/index.d.ts.map +0 -1
- package/dist/serialization/tasks/helpers/index.js +0 -13
- package/dist/serialization/tasks/helpers/items.d.ts.map +0 -1
- package/dist/serialization/tasks/helpers/sitecore.d.ts.map +0 -1
- package/dist/serialization/tasks/helpers.d.ts +0 -2
- package/dist/serialization/tasks/helpers.d.ts.map +0 -1
- package/dist/serialization/tasks/helpers.js +0 -17
- package/dist/serialization/tasks/index.d.ts +0 -8
- package/dist/serialization/tasks/index.d.ts.map +0 -1
- package/dist/serialization/tasks/index.js +0 -19
- package/dist/serialization/tasks/info.d.ts.map +0 -1
- package/dist/serialization/tasks/package.d.ts.map +0 -1
- package/dist/serialization/tasks/pull.d.ts.map +0 -1
- package/dist/serialization/tasks/push.d.ts.map +0 -1
- package/dist/serialization/tasks/roles.d.ts.map +0 -1
- package/dist/serialization/tasks/shared.d.ts.map +0 -1
- package/dist/serialization/tasks/types.d.ts.map +0 -1
- package/dist/serialization/tasks/users.d.ts.map +0 -1
- package/dist/serialization/tasks/validate.d.ts.map +0 -1
- package/dist/serialization/tasks/watch.d.ts.map +0 -1
- package/dist/serialization/tasks.d.ts +0 -4
- package/dist/serialization/tasks.d.ts.map +0 -1
- package/dist/serialization/tasks.js +0 -19
- package/dist/serialization/tree-spec.d.ts.map +0 -1
- package/dist/serialization/types.d.ts.map +0 -1
- package/dist/serialization/wildcard.d.ts.map +0 -1
- package/dist/serialization/yaml.d.ts.map +0 -1
- package/dist/shared/browser.d.ts.map +0 -1
- package/dist/shared/cli-options.d.ts.map +0 -1
- package/dist/shared/cli-tasks.d.ts.map +0 -1
- package/dist/shared/config-template.d.ts.map +0 -1
- package/dist/shared/env.d.ts +0 -28
- package/dist/shared/env.d.ts.map +0 -1
- package/dist/shared/env.js +0 -38
- package/dist/shared/errors.d.ts.map +0 -1
- package/dist/shared/graphql.d.ts.map +0 -1
- package/dist/shared/history.d.ts.map +0 -1
- package/dist/shared/keychain.d.ts.map +0 -1
- package/dist/shared/logger.d.ts.map +0 -1
- package/dist/shared/output.d.ts.map +0 -1
- package/dist/shared/prompt.d.ts.map +0 -1
- package/dist/shared/redact.d.ts.map +0 -1
- package/dist/shared/spinner.d.ts.map +0 -1
- package/dist/shared/style.d.ts.map +0 -1
- package/dist/shared/telemetry.d.ts.map +0 -1
- package/dist/shared/validate.d.ts.map +0 -1
- package/dist/sites/api/collections.d.ts.map +0 -1
- package/dist/sites/api/index.d.ts +0 -26
- package/dist/sites/api/index.d.ts.map +0 -1
- package/dist/sites/api/index.js +0 -55
- package/dist/sites/api/jobs.d.ts.map +0 -1
- package/dist/sites/api/languages.d.ts.map +0 -1
- package/dist/sites/api/request.d.ts.map +0 -1
- package/dist/sites/api/sites.d.ts.map +0 -1
- package/dist/sites/api/types.d.ts.map +0 -1
- /package/dist/serialization/{sitecore-api → api}/graphql.js +0 -0
- /package/dist/serialization/{sitecore-api → api}/history.js +0 -0
- /package/dist/serialization/{sitecore-api → api}/roles.js +0 -0
- /package/dist/serialization/{sitecore-api → api}/users.js +0 -0
|
@@ -155,6 +155,30 @@ mutation($input: DeleteItemInput!) {
|
|
|
155
155
|
successful
|
|
156
156
|
}
|
|
157
157
|
}`;
|
|
158
|
+
const ADD_ITEM_VERSION_MUTATION = `
|
|
159
|
+
mutation($input: AddItemVersionInput!) {
|
|
160
|
+
addItemVersion(input: $input) {
|
|
161
|
+
item {
|
|
162
|
+
version
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}`;
|
|
166
|
+
const GET_ITEM_VERSIONS_BY_ID = `
|
|
167
|
+
query($itemId: ID!, $language: String!) {
|
|
168
|
+
item(where: { itemId: $itemId, language: $language }) {
|
|
169
|
+
versions {
|
|
170
|
+
version
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}`;
|
|
174
|
+
const GET_ITEM_VERSIONS_BY_PATH = `
|
|
175
|
+
query($path: String!, $language: String!) {
|
|
176
|
+
item(where: { path: $path, language: $language }) {
|
|
177
|
+
versions {
|
|
178
|
+
version
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}`;
|
|
158
182
|
const toRemoteItem = (node) => ({
|
|
159
183
|
itemId: node.itemId,
|
|
160
184
|
name: node.name,
|
|
@@ -201,14 +225,23 @@ const createAuthoringClient = (options) => {
|
|
|
201
225
|
retry: { ...request?.retry, retryableStatuses: graphql_1.READ_RETRYABLE_STATUSES },
|
|
202
226
|
};
|
|
203
227
|
/**
|
|
204
|
-
* Per-call request options for write operations —
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
228
|
+
* Per-call request options for write operations — hard-disables retries
|
|
229
|
+
* (maxAttempts: 1). The Authoring GraphQL endpoint has no idempotency-key
|
|
230
|
+
* mechanism, so ANY retry on a write is a duplicate-mutation risk: 408,
|
|
231
|
+
* 425, 429 and 503 can all be returned AFTER the upstream applied the
|
|
232
|
+
* mutation, leading the retry to silently double-apply (especially on
|
|
233
|
+
* updateItem, where the "already exists" suppression in createItem doesn't
|
|
234
|
+
* help). The recipe rollback flow recovers from partial-write states by
|
|
235
|
+
* replay, not by silent retries — so making writes fail fast on first
|
|
236
|
+
* error is what the rollback layer actually expects.
|
|
237
|
+
*
|
|
238
|
+
* If 429 throttling becomes a real operational issue, add an
|
|
239
|
+
* `Idempotency-Key` header on writes BEFORE re-enabling retries here.
|
|
210
240
|
*/
|
|
211
|
-
const writeRequest =
|
|
241
|
+
const writeRequest = {
|
|
242
|
+
...(request ?? {}),
|
|
243
|
+
retry: { maxAttempts: 1 },
|
|
244
|
+
};
|
|
212
245
|
const fetchOne = async (selector) => {
|
|
213
246
|
if (selector.itemId) {
|
|
214
247
|
const data = await (0, graphql_2.runAuthoringGraphQL)(environment, GET_ITEM_BY_ID, { itemId: selector.itemId }, readRequest);
|
|
@@ -218,7 +251,7 @@ const createAuthoringClient = (options) => {
|
|
|
218
251
|
const data = await (0, graphql_2.runAuthoringGraphQL)(environment, GET_ITEM_BY_PATH, { path: selector.path }, readRequest);
|
|
219
252
|
return data.item;
|
|
220
253
|
}
|
|
221
|
-
throw (0, errors_1.
|
|
254
|
+
throw (0, errors_1.createScaiError)("ItemSelector requires either path or itemId.", "INPUT_INVALID");
|
|
222
255
|
};
|
|
223
256
|
/**
|
|
224
257
|
* Batched path→item read using GraphQL aliased fields. One POST returns
|
|
@@ -261,7 +294,7 @@ const createAuthoringClient = (options) => {
|
|
|
261
294
|
const data = await (0, graphql_2.runAuthoringGraphQL)(environment, GET_CHILDREN_BY_PATH, { path: selector.path }, readRequest);
|
|
262
295
|
return data.item?.children.nodes ?? [];
|
|
263
296
|
}
|
|
264
|
-
throw (0, errors_1.
|
|
297
|
+
throw (0, errors_1.createScaiError)("ItemSelector requires either path or itemId.", "INPUT_INVALID");
|
|
265
298
|
};
|
|
266
299
|
/**
|
|
267
300
|
* Walk the content-tree path bottom-up, returning the itemId of `path`.
|
|
@@ -291,12 +324,12 @@ const createAuthoringClient = (options) => {
|
|
|
291
324
|
}
|
|
292
325
|
const lastSlash = path.lastIndexOf("/");
|
|
293
326
|
if (lastSlash <= 0) {
|
|
294
|
-
throw (0, errors_1.
|
|
327
|
+
throw (0, errors_1.createScaiError)(`Cannot auto-create root path '${path}'. The Sitecore root must already exist on the tenant.`, "INPUT_INVALID");
|
|
295
328
|
}
|
|
296
329
|
const parentPath = path.slice(0, lastSlash);
|
|
297
330
|
const name = path.slice(lastSlash + 1);
|
|
298
331
|
if (!name) {
|
|
299
|
-
throw (0, errors_1.
|
|
332
|
+
throw (0, errors_1.createScaiError)(`Path '${rawPath}' has no leaf segment to create.`, "INPUT_INVALID");
|
|
300
333
|
}
|
|
301
334
|
const parentItemId = await ensurePathExists(parentPath);
|
|
302
335
|
const templateId = folderTemplateForPath(path);
|
|
@@ -312,14 +345,14 @@ const createAuthoringClient = (options) => {
|
|
|
312
345
|
}, writeRequest);
|
|
313
346
|
const itemId = data.createItem?.item?.itemId;
|
|
314
347
|
if (!itemId) {
|
|
315
|
-
throw (0, errors_1.
|
|
348
|
+
throw (0, errors_1.createScaiError)(`Auto-provisioning failed: Authoring API returned no itemId after creating folder '${path}'.`, "UNKNOWN");
|
|
316
349
|
}
|
|
317
350
|
pathItemIdCache?.set(path, itemId);
|
|
318
351
|
return itemId;
|
|
319
352
|
};
|
|
320
353
|
/**
|
|
321
354
|
* Detect Sitecore's name-conflict error class. Authoring GraphQL
|
|
322
|
-
* surfaces these as wrapped
|
|
355
|
+
* surfaces these as wrapped ScaiError messages of the form:
|
|
323
356
|
*
|
|
324
357
|
* `Authoring GraphQL errors: The item name "X" is already defined on this level.`
|
|
325
358
|
*
|
|
@@ -362,7 +395,7 @@ const createAuthoringClient = (options) => {
|
|
|
362
395
|
return trimmed.replace(/[{}]/g, "");
|
|
363
396
|
if (trimmed.startsWith("/"))
|
|
364
397
|
return ensurePathExists(trimmed);
|
|
365
|
-
throw (0, errors_1.
|
|
398
|
+
throw (0, errors_1.createScaiError)(`createItem.input.parent must be a Sitecore itemId or content-tree path; got: '${trimmed}'.`, "INPUT_INVALID");
|
|
366
399
|
};
|
|
367
400
|
return {
|
|
368
401
|
async getItem(selector, _options) {
|
|
@@ -424,6 +457,28 @@ const createAuthoringClient = (options) => {
|
|
|
424
457
|
},
|
|
425
458
|
async createItem(input) {
|
|
426
459
|
const parentItemId = await resolveParentItemId(input.parent);
|
|
460
|
+
// Optional pre-create idempotency check. The planner reads
|
|
461
|
+
// existence via `getItem({path})`, which hits Sitecore's path
|
|
462
|
+
// index — that index lags writes by seconds-to-minutes. On a
|
|
463
|
+
// rapid second push, the planner can see "missing" and plan a
|
|
464
|
+
// create against a path the tenant actually already has.
|
|
465
|
+
// Parent-child storage is not lag-prone, so `findChildByName`
|
|
466
|
+
// here is authoritative: if the sibling exists, return its
|
|
467
|
+
// itemId without ever calling the mutation. Catches the case
|
|
468
|
+
// where Sitecore's create-mutation does NOT reject the duplicate
|
|
469
|
+
// (observed in the field — `audit slug-conflicts` kept catching
|
|
470
|
+
// duplicates that should have been upserts on rapid re-push).
|
|
471
|
+
//
|
|
472
|
+
// Opt-in via `idempotencyCheck: true` because it adds one
|
|
473
|
+
// parent-children read per CreateItem op — recipe push opts in
|
|
474
|
+
// (idempotency is the whole point), one-shot callers that
|
|
475
|
+
// explicitly asked to create skip the check.
|
|
476
|
+
if (input.idempotencyCheck) {
|
|
477
|
+
const preExisting = await findChildByName(parentItemId, input.name);
|
|
478
|
+
if (preExisting) {
|
|
479
|
+
return { itemId: preExisting.itemId };
|
|
480
|
+
}
|
|
481
|
+
}
|
|
427
482
|
try {
|
|
428
483
|
const data = await (0, graphql_2.runAuthoringGraphQL)(environment, CREATE_ITEM_MUTATION, {
|
|
429
484
|
input: {
|
|
@@ -437,7 +492,7 @@ const createAuthoringClient = (options) => {
|
|
|
437
492
|
}, writeRequest);
|
|
438
493
|
const itemId = data.createItem?.item?.itemId;
|
|
439
494
|
if (!itemId) {
|
|
440
|
-
throw (0, errors_1.
|
|
495
|
+
throw (0, errors_1.createScaiError)("createItem returned no itemId — Authoring API response was malformed.", "UNKNOWN");
|
|
441
496
|
}
|
|
442
497
|
return { itemId };
|
|
443
498
|
}
|
|
@@ -470,6 +525,11 @@ const createAuthoringClient = (options) => {
|
|
|
470
525
|
await (0, graphql_2.runAuthoringGraphQL)(environment, UPDATE_ITEM_MUTATION, {
|
|
471
526
|
input: {
|
|
472
527
|
itemId: input.itemId,
|
|
528
|
+
// `UpdateItemInput` carries language/version at the input level;
|
|
529
|
+
// the Authoring API has no per-field language/version. A
|
|
530
|
+
// SetField targeting a story-seed version lands here.
|
|
531
|
+
...(input.language !== undefined && { language: input.language }),
|
|
532
|
+
...(input.version !== undefined && { version: input.version }),
|
|
473
533
|
fields: toAuthoringFieldsInput(input.fields),
|
|
474
534
|
},
|
|
475
535
|
}, writeRequest);
|
|
@@ -484,11 +544,35 @@ const createAuthoringClient = (options) => {
|
|
|
484
544
|
else if (selector.path)
|
|
485
545
|
input.path = selector.path;
|
|
486
546
|
else
|
|
487
|
-
throw (0, errors_1.
|
|
547
|
+
throw (0, errors_1.createScaiError)("deleteItem requires either path or itemId.", "INPUT_INVALID");
|
|
488
548
|
const data = await (0, graphql_2.runAuthoringGraphQL)(environment, DELETE_ITEM_MUTATION, { input }, writeRequest);
|
|
489
549
|
if (!data.deleteItem?.successful) {
|
|
490
|
-
throw (0, errors_1.
|
|
550
|
+
throw (0, errors_1.createScaiError)(`deleteItem returned successful: ${data.deleteItem?.successful} for ${selector.itemId ?? selector.path ?? "(no selector)"}`, "UNKNOWN");
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
async addItemVersion(input) {
|
|
554
|
+
const data = await (0, graphql_2.runAuthoringGraphQL)(environment, ADD_ITEM_VERSION_MUTATION, { input: { itemId: input.itemId, language: input.language } }, writeRequest);
|
|
555
|
+
const version = data.addItemVersion?.item?.version;
|
|
556
|
+
if (typeof version !== "number") {
|
|
557
|
+
throw (0, errors_1.createScaiError)("addItemVersion returned no version — Authoring API response was malformed.", "UNKNOWN");
|
|
558
|
+
}
|
|
559
|
+
return { version };
|
|
560
|
+
},
|
|
561
|
+
async getItemVersions(selector, language) {
|
|
562
|
+
let data;
|
|
563
|
+
if (selector.itemId) {
|
|
564
|
+
data = await (0, graphql_2.runAuthoringGraphQL)(environment, GET_ITEM_VERSIONS_BY_ID, { itemId: selector.itemId, language }, readRequest);
|
|
565
|
+
}
|
|
566
|
+
else if (selector.path) {
|
|
567
|
+
data = await (0, graphql_2.runAuthoringGraphQL)(environment, GET_ITEM_VERSIONS_BY_PATH, { path: selector.path, language }, readRequest);
|
|
568
|
+
}
|
|
569
|
+
else {
|
|
570
|
+
throw (0, errors_1.createScaiError)("getItemVersions requires either path or itemId.", "INPUT_INVALID");
|
|
491
571
|
}
|
|
572
|
+
return (data.item?.versions ?? [])
|
|
573
|
+
.map((v) => v.version)
|
|
574
|
+
.filter((v) => typeof v === "number")
|
|
575
|
+
.sort((a, b) => a - b);
|
|
492
576
|
},
|
|
493
577
|
};
|
|
494
578
|
};
|
|
@@ -55,6 +55,18 @@ export interface CreateItemInput {
|
|
|
55
55
|
/** Default language for versioned fields; defaults to "en". */
|
|
56
56
|
language?: string;
|
|
57
57
|
fields: FieldValue[];
|
|
58
|
+
/**
|
|
59
|
+
* When true, the implementation does an authoritative
|
|
60
|
+
* parent-children lookup BEFORE issuing the create mutation. If a
|
|
61
|
+
* sibling with `name` already exists, returns its itemId without
|
|
62
|
+
* mutating. Recipe push opts in because the planner reads existence
|
|
63
|
+
* via the path index, which lags writes by seconds-to-minutes — so
|
|
64
|
+
* a rapid second push can plan a create against a path the tenant
|
|
65
|
+
* already has, and Sitecore's create mutation does not always
|
|
66
|
+
* reject the duplicate. Off by default for explicit one-shot
|
|
67
|
+
* createItem calls.
|
|
68
|
+
*/
|
|
69
|
+
idempotencyCheck?: boolean;
|
|
58
70
|
}
|
|
59
71
|
export interface CreateItemResult {
|
|
60
72
|
/** Sitecore-assigned itemId (UUID without curly braces). */
|
|
@@ -62,8 +74,29 @@ export interface CreateItemResult {
|
|
|
62
74
|
}
|
|
63
75
|
export interface UpdateItemInput {
|
|
64
76
|
itemId: string;
|
|
77
|
+
/**
|
|
78
|
+
* Language to write the fields in. The Authoring API applies every
|
|
79
|
+
* `FieldValueInput` at this input-level language — per-field language is
|
|
80
|
+
* not on the wire. Omit for the item's default language.
|
|
81
|
+
*/
|
|
82
|
+
language?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Numbered version to write the fields to. Omit for the latest version.
|
|
85
|
+
* A `SetField` targeting a story-seed numbered version carries it here.
|
|
86
|
+
*/
|
|
87
|
+
version?: number;
|
|
65
88
|
fields: FieldValue[];
|
|
66
89
|
}
|
|
90
|
+
export interface AddItemVersionInput {
|
|
91
|
+
/** Sitecore itemId of the target item. */
|
|
92
|
+
itemId: string;
|
|
93
|
+
/** Language whose version stack to extend (ISO code, e.g. `en`, `fr`). */
|
|
94
|
+
language: string;
|
|
95
|
+
}
|
|
96
|
+
export interface AddItemVersionResult {
|
|
97
|
+
/** The numbered version that now exists — the one just added. */
|
|
98
|
+
version: number;
|
|
99
|
+
}
|
|
67
100
|
export interface GetItemOptions {
|
|
68
101
|
/** Languages to fetch versioned fields for. Default: `["en"]`. */
|
|
69
102
|
languages?: string[];
|
|
@@ -95,5 +128,21 @@ export interface AuthoringApiClient {
|
|
|
95
128
|
updateItem(input: UpdateItemInput): Promise<void>;
|
|
96
129
|
/** Phase 4 policy `CreateUpdateAndDelete` will use this. */
|
|
97
130
|
deleteItem(selector: ItemSelector): Promise<void>;
|
|
131
|
+
/**
|
|
132
|
+
* Add a numbered version to `input.itemId` in `input.language`. Sitecore
|
|
133
|
+
* assigns the version number sequentially; the result carries the number
|
|
134
|
+
* of the version just created. When the language has no versions yet,
|
|
135
|
+
* this creates that language version as part of adding version 1.
|
|
136
|
+
*
|
|
137
|
+
* Backs the `AddItemVersion` IR op — story-seed content recipes that
|
|
138
|
+
* author multiple numbered versions of an item.
|
|
139
|
+
*/
|
|
140
|
+
addItemVersion(input: AddItemVersionInput): Promise<AddItemVersionResult>;
|
|
141
|
+
/**
|
|
142
|
+
* The numbered versions an item currently has in `language`, ascending —
|
|
143
|
+
* empty when the item has no versions in that language or doesn't exist.
|
|
144
|
+
* The `AddItemVersion` planner reads this to stay idempotent (skip when
|
|
145
|
+
* the target version already exists).
|
|
146
|
+
*/
|
|
147
|
+
getItemVersions(selector: ItemSelector, language: string): Promise<number[]>;
|
|
98
148
|
}
|
|
99
|
-
//# sourceMappingURL=client.d.ts.map
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
* Authoring GraphQL transport for recipe execution.
|
|
3
3
|
*
|
|
4
4
|
* Thin wrapper over `src/shared/graphql.ts` — supplies the Authoring
|
|
5
|
-
* service path and label. Parallels `src/serialization/
|
|
5
|
+
* service path and label. Parallels `src/serialization/api/graphql.ts`
|
|
6
6
|
* which targets the Management endpoint.
|
|
7
7
|
*
|
|
8
8
|
* XM Cloud Authoring API path. If a SitecoreAI tenant ever exposes the
|
|
9
9
|
* endpoint at a different path, override via `SITECOREAI_AUTHORING_PATH`.
|
|
10
10
|
*/
|
|
11
|
-
import type { EnvironmentConfiguration } from "../../config";
|
|
11
|
+
import type { EnvironmentConfiguration } from "../../config/types";
|
|
12
12
|
import { type GraphQLRequestOptions } from "../../shared/graphql";
|
|
13
13
|
export type AuthoringRequestOptions = GraphQLRequestOptions;
|
|
14
14
|
export declare const runAuthoringGraphQL: <T>(environment: EnvironmentConfiguration, query: string, variables?: Record<string, unknown>, options?: AuthoringRequestOptions) => Promise<T>;
|
|
15
|
-
//# sourceMappingURL=graphql.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Authoring GraphQL transport for recipe execution.
|
|
4
4
|
*
|
|
5
5
|
* Thin wrapper over `src/shared/graphql.ts` — supplies the Authoring
|
|
6
|
-
* service path and label. Parallels `src/serialization/
|
|
6
|
+
* service path and label. Parallels `src/serialization/api/graphql.ts`
|
|
7
7
|
* which targets the Management endpoint.
|
|
8
8
|
*
|
|
9
9
|
* XM Cloud Authoring API path. If a SitecoreAI tenant ever exposes the
|
|
@@ -31,7 +31,7 @@ const renderRefValue = (value) => {
|
|
|
31
31
|
case "ref-recipe":
|
|
32
32
|
case "ref-recipe-list":
|
|
33
33
|
case "ref-source-fields":
|
|
34
|
-
throw (0, errors_1.
|
|
34
|
+
throw (0, errors_1.createScaiError)(`Unresolved ${value.kind} cannot be rendered — call resolveRecipeRefs first.`, "UNKNOWN");
|
|
35
35
|
case "ref-path":
|
|
36
36
|
return value.value;
|
|
37
37
|
case "query":
|
|
@@ -42,7 +42,7 @@ const renderRefValue = (value) => {
|
|
|
42
42
|
.join("&");
|
|
43
43
|
default: {
|
|
44
44
|
const exhaustive = value;
|
|
45
|
-
throw (0, errors_1.
|
|
45
|
+
throw (0, errors_1.createScaiError)(`Unhandled RefValue kind: ${JSON.stringify(exhaustive)}`, "UNKNOWN");
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
};
|
|
@@ -70,7 +70,7 @@ const resolveRecipeRefs = (value, capturedItemIds) => {
|
|
|
70
70
|
if (isGuid(value.refKey)) {
|
|
71
71
|
return { kind: "ref-guid", value: value.refKey };
|
|
72
72
|
}
|
|
73
|
-
throw (0, errors_1.
|
|
73
|
+
throw (0, errors_1.createScaiError)(`ref-recipe refKey ${value.refKey} not in captured map — was the producing CreateItem op skipped or did it run after this op?`, "UNKNOWN");
|
|
74
74
|
}
|
|
75
75
|
case "ref-recipe-list": {
|
|
76
76
|
const guids = [];
|
|
@@ -89,7 +89,7 @@ const resolveRecipeRefs = (value, capturedItemIds) => {
|
|
|
89
89
|
}
|
|
90
90
|
if (value.tolerateMissing)
|
|
91
91
|
continue;
|
|
92
|
-
throw (0, errors_1.
|
|
92
|
+
throw (0, errors_1.createScaiError)(`ref-recipe-list refKey ${refKey} not in captured map — was the producing CreateItem op skipped or did it run after this op?`, "UNKNOWN");
|
|
93
93
|
}
|
|
94
94
|
return { kind: "ref-guid-list", values: guids };
|
|
95
95
|
}
|
|
@@ -109,7 +109,7 @@ const resolveRecipeRefs = (value, capturedItemIds) => {
|
|
|
109
109
|
const refKey = (0, guids_1.templateId)(value.site, handle);
|
|
110
110
|
const itemId = capturedItemIds.get(refKey);
|
|
111
111
|
if (!itemId) {
|
|
112
|
-
throw (0, errors_1.
|
|
112
|
+
throw (0, errors_1.createScaiError)(`ref-source-fields references handle '${handle}' (refKey ${refKey}); not yet in captured map.`, "UNKNOWN");
|
|
113
113
|
}
|
|
114
114
|
return itemId;
|
|
115
115
|
});
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* sub-item. Walking deeper for hostnames is opt-in (`includeHostnames`)
|
|
21
21
|
* because it adds an N+1 round trip per site.
|
|
22
22
|
*/
|
|
23
|
-
import { EnvironmentConfiguration } from "../../config";
|
|
23
|
+
import type { EnvironmentConfiguration } from "../../config/types";
|
|
24
24
|
export type DiscoveredSite = {
|
|
25
25
|
/** Item name (URL-safe slug). Used as the SXA site name. */
|
|
26
26
|
name: string;
|
|
@@ -46,4 +46,3 @@ export type DiscoverSitesOptions = {
|
|
|
46
46
|
contentRoot?: string;
|
|
47
47
|
};
|
|
48
48
|
export declare const discoverSites: (environment: EnvironmentConfiguration, options?: DiscoverSitesOptions) => Promise<DiscoveredSite[]>;
|
|
49
|
-
//# sourceMappingURL=site-discovery.d.ts.map
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SiteCollection } from "../../sites/api/collections";
|
|
2
|
+
import { type Job } from "../../sites/api/jobs";
|
|
3
|
+
import { type Language } from "../../sites/api/languages";
|
|
4
|
+
import { type JobResponse, type NewSiteInput, type Site, type SiteTemplate } from "../../sites/api/sites";
|
|
5
|
+
import type { SitesApiClientOptions as RawSitesApiClientOptions } from "../../sites/api/types";
|
|
2
6
|
/**
|
|
3
7
|
* Sites API client surface for recipe execution.
|
|
4
8
|
*
|
|
@@ -44,5 +48,4 @@ export interface SitesApiClient {
|
|
|
44
48
|
* base URL; the underlying `sitesRequest` re-uses these per call.
|
|
45
49
|
*/
|
|
46
50
|
export declare const createSitesApiClient: (options: RawSitesApiClientOptions) => SitesApiClient;
|
|
47
|
-
export type { Job, JobResponse, Language, NewSiteInput, Site, SiteCollection, SiteTemplate
|
|
48
|
-
//# sourceMappingURL=sites-client.d.ts.map
|
|
51
|
+
export type { Job, JobResponse, Language, NewSiteInput, Site, SiteCollection, SiteTemplate };
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createSitesApiClient = void 0;
|
|
4
|
-
const
|
|
4
|
+
const collections_1 = require("../../sites/api/collections");
|
|
5
|
+
const jobs_1 = require("../../sites/api/jobs");
|
|
6
|
+
const languages_1 = require("../../sites/api/languages");
|
|
7
|
+
const sites_1 = require("../../sites/api/sites");
|
|
5
8
|
/**
|
|
6
9
|
* Adapter: build a `SitesApiClient` over the function-style Sites API
|
|
7
10
|
* surface. The `options` arg carries the OAuth-resolved auth header and
|
|
8
11
|
* base URL; the underlying `sitesRequest` re-uses these per call.
|
|
9
12
|
*/
|
|
10
13
|
const createSitesApiClient = (options) => ({
|
|
11
|
-
createSite: (input) => (0,
|
|
12
|
-
getJobStatus: (jobHandle) => (0,
|
|
13
|
-
listSites: () => (0,
|
|
14
|
-
listSiteTemplates: () => (0,
|
|
15
|
-
listCollections: () => (0,
|
|
16
|
-
listLanguages: () => (0,
|
|
17
|
-
addLanguage: (languageCode) => (0,
|
|
14
|
+
createSite: (input) => (0, sites_1.createSite)(options, input),
|
|
15
|
+
getJobStatus: (jobHandle) => (0, jobs_1.getJobStatus)(options, jobHandle),
|
|
16
|
+
listSites: () => (0, sites_1.listSites)(options),
|
|
17
|
+
listSiteTemplates: () => (0, sites_1.listSiteTemplates)(options),
|
|
18
|
+
listCollections: () => (0, collections_1.listCollections)(options),
|
|
19
|
+
listLanguages: () => (0, languages_1.listLanguages)(options),
|
|
20
|
+
addLanguage: (languageCode) => (0, languages_1.addLanguage)(options, { languageCode }),
|
|
18
21
|
});
|
|
19
22
|
exports.createSitesApiClient = createSitesApiClient;
|
package/dist/recipe/cache.d.ts
CHANGED
|
@@ -33,4 +33,3 @@ export declare const saveRecipeCache: (configDir: string, cache: RecipeCacheFile
|
|
|
33
33
|
*/
|
|
34
34
|
export declare const cachedSkipFor: (cache: RecipeCacheFile, envName: string, rootsHash: string, recipeHandle: string, irHash: string) => RecipeCacheEntry | null;
|
|
35
35
|
export declare const recordCacheEntry: (cache: RecipeCacheFile, envName: string, rootsHash: string, recipeHandle: string, entry: RecipeCacheEntry) => void;
|
|
36
|
-
//# sourceMappingURL=cache.d.ts.map
|
|
@@ -21,7 +21,7 @@ import { type CompileContext } from "./shared";
|
|
|
21
21
|
*
|
|
22
22
|
* The two SUBORDINATE buckets (#2 Component Folders, #3 Presentation
|
|
23
23
|
* Parameters) are NOT emitted here — they're emitted lazily by
|
|
24
|
-
* `ensureComponentFoldersBucket` / `
|
|
24
|
+
* `ensureComponentFoldersBucket` / `ensurePresentationDesignParametersBucket`
|
|
25
25
|
* when a component recipe in the section actually needs them. They live
|
|
26
26
|
* under the section folder so they inherit positional context but get
|
|
27
27
|
* the default `FOLDER_ICON` (no per-bucket rich fields by design).
|
|
@@ -43,4 +43,3 @@ export declare function compileComponentSectionRecipe(input: ComponentSectionRec
|
|
|
43
43
|
* message so authors can locate the source of the bad reference).
|
|
44
44
|
*/
|
|
45
45
|
export declare const resolveSectionRecipe: (consumerHandle: string, sectionHandle: string, sectionsByHandle: ReadonlyMap<string, ComponentSectionRecipe> | undefined) => ComponentSectionRecipe;
|
|
46
|
-
//# sourceMappingURL=component-section.d.ts.map
|
|
@@ -28,7 +28,7 @@ const shared_1 = require("./shared");
|
|
|
28
28
|
*
|
|
29
29
|
* The two SUBORDINATE buckets (#2 Component Folders, #3 Presentation
|
|
30
30
|
* Parameters) are NOT emitted here — they're emitted lazily by
|
|
31
|
-
* `ensureComponentFoldersBucket` / `
|
|
31
|
+
* `ensureComponentFoldersBucket` / `ensurePresentationDesignParametersBucket`
|
|
32
32
|
* when a component recipe in the section actually needs them. They live
|
|
33
33
|
* under the section folder so they inherit positional context but get
|
|
34
34
|
* the default `FOLDER_ICON` (no per-bucket rich fields by design).
|
|
@@ -134,7 +134,7 @@ function compileComponentSectionRecipe(input, context, emittedFolders = new Set(
|
|
|
134
134
|
const resolveSectionRecipe = (consumerHandle, sectionHandle, sectionsByHandle) => {
|
|
135
135
|
const section = sectionsByHandle?.get(sectionHandle);
|
|
136
136
|
if (!section) {
|
|
137
|
-
throw (0, errors_1.
|
|
137
|
+
throw (0, errors_1.createScaiError)(`Recipe '${consumerHandle}' references section.handle='${sectionHandle}' but no ComponentSectionRecipe with that handle is in the set.`, "INPUT_INVALID", {
|
|
138
138
|
hint: "Add a `ComponentSectionRecipe` (kind: 'component-section') with the matching handle to the recipe set, or change the consumer's `section.handle` to point at an existing one.",
|
|
139
139
|
});
|
|
140
140
|
}
|
|
@@ -31,4 +31,3 @@ import { type CompileContext } from "./shared";
|
|
|
31
31
|
* creation, no Component Folder generation.
|
|
32
32
|
*/
|
|
33
33
|
export declare function compileComponentTemplateRecipe(input: ComponentTemplateRecipe, context: CompileContext, emittedFolders?: Set<string>): OperationIr;
|
|
34
|
-
//# sourceMappingURL=component-template.d.ts.map
|
|
@@ -343,16 +343,16 @@ function emitSiteDataFolderTemplate(operations, recipe, context, icon, emittedFo
|
|
|
343
343
|
}
|
|
344
344
|
function emitParamsTemplate(operations, recipe, context, icon, policy, emittedFolders) {
|
|
345
345
|
const site = (0, shared_1.siteOf)(context);
|
|
346
|
-
const paramsTplRefKey = (0, guids_1.
|
|
346
|
+
const paramsTplRefKey = (0, guids_1.designParametersTemplateId)(site, recipe.handle);
|
|
347
347
|
const paramsName = `${recipe.name} Parameters`;
|
|
348
348
|
const paramsDisplayName = `${recipe.displayName} Parameters`;
|
|
349
349
|
const sectionName = resolveSectionName(recipe, context);
|
|
350
350
|
let paramsParent;
|
|
351
351
|
let paramsParentPath;
|
|
352
352
|
if (sectionName) {
|
|
353
|
-
const bucketRefKey = (0, shared_1.
|
|
353
|
+
const bucketRefKey = (0, shared_1.ensurePresentationDesignParametersBucket)(operations, context, sectionName, emittedFolders);
|
|
354
354
|
paramsParent = { kind: "ref-recipe", refKey: bucketRefKey };
|
|
355
|
-
paramsParentPath = (0, shared_1.
|
|
355
|
+
paramsParentPath = (0, shared_1.resolvePresentationDesignParametersBucketPath)(context, sectionName);
|
|
356
356
|
}
|
|
357
357
|
else {
|
|
358
358
|
paramsParent = { kind: "ref-path", value: context.templatesRoot };
|
|
@@ -385,7 +385,7 @@ function emitParamsTemplate(operations, recipe, context, icon, policy, emittedFo
|
|
|
385
385
|
// empty in Pages even though the template + fields exist.
|
|
386
386
|
baseTemplates: [...sitecore_templates_1.SXA_HEADLESS_PARAMS_BASE_TEMPLATES],
|
|
387
387
|
});
|
|
388
|
-
const paramsSecRefKey = (0, guids_1.
|
|
388
|
+
const paramsSecRefKey = (0, guids_1.designParametersSectionId)(site, recipe.handle, shared_1.PARAMS_SECTION_NAME);
|
|
389
389
|
const paramsSecPath = (0, shared_1.joinPath)(paramsTplPath, shared_1.PARAMS_SECTION_NAME);
|
|
390
390
|
operations.push({
|
|
391
391
|
op: "CreateItem",
|
|
@@ -401,7 +401,7 @@ function emitParamsTemplate(operations, recipe, context, icon, policy, emittedFo
|
|
|
401
401
|
recipe.params.forEach((param, index) => {
|
|
402
402
|
operations.push(...(0, shared_1.buildFieldOp)({
|
|
403
403
|
recipeHandle: recipe.handle,
|
|
404
|
-
fieldRefKey: (0, guids_1.
|
|
404
|
+
fieldRefKey: (0, guids_1.designParameterFieldId)(site, recipe.handle, param.name),
|
|
405
405
|
fieldPath: (0, shared_1.joinPath)(paramsSecPath, param.name),
|
|
406
406
|
parentRefKey: paramsSecRefKey,
|
|
407
407
|
labelPrefix: `params-field:${recipe.handle}`,
|
|
@@ -418,9 +418,9 @@ function emitParamsTemplate(operations, recipe, context, icon, policy, emittedFo
|
|
|
418
418
|
// least one param declares a `default` / `sitecore.defaultValue`;
|
|
419
419
|
// empty SV items are noise and would still resolve identical GUIDs
|
|
420
420
|
// across pushes if added later.
|
|
421
|
-
const paramsSvFieldEntries = (0, shared_1.buildStandardValuesFieldEntries)(site, recipe.handle, recipe.params, guids_1.
|
|
421
|
+
const paramsSvFieldEntries = (0, shared_1.buildStandardValuesFieldEntries)(site, recipe.handle, recipe.params, guids_1.designParameterFieldId);
|
|
422
422
|
if (paramsSvFieldEntries.length > 0) {
|
|
423
|
-
const paramsSvRefKey = (0, guids_1.
|
|
423
|
+
const paramsSvRefKey = (0, guids_1.designParametersStandardValuesId)(site, recipe.handle);
|
|
424
424
|
const paramsSvPath = (0, shared_1.joinPath)(paramsTplPath, "__Standard Values");
|
|
425
425
|
operations.push({
|
|
426
426
|
op: "CreateItem",
|
|
@@ -467,10 +467,10 @@ function emitRendering(operations, recipe, context, icon, hasParams, policy, emi
|
|
|
467
467
|
if (hasParams) {
|
|
468
468
|
// Prefer the explicit `parameters: { handle }` reference when set,
|
|
469
469
|
// else point at the synthesised inline params template (whose
|
|
470
|
-
// refKey is `
|
|
470
|
+
// refKey is `designParametersTemplateId(site, recipe.handle)`).
|
|
471
471
|
const paramsRefKey = recipe.parameters
|
|
472
|
-
? (0, guids_1.
|
|
473
|
-
: (0, guids_1.
|
|
472
|
+
? (0, guids_1.designParametersTemplateId)(site, recipe.parameters.handle)
|
|
473
|
+
: (0, guids_1.designParametersTemplateId)(site, recipe.handle);
|
|
474
474
|
fields.push((0, shared_1.sharedField)(sitecore_templates_1.RENDERING_FIELDS.PARAMETERS_TEMPLATE, {
|
|
475
475
|
kind: "ref-recipe",
|
|
476
476
|
refKey: paramsRefKey,
|
|
@@ -492,7 +492,7 @@ function emitRendering(operations, recipe, context, icon, hasParams, policy, emi
|
|
|
492
492
|
}
|
|
493
493
|
// location.scope === "site"
|
|
494
494
|
if (!context.contentItemsRoot) {
|
|
495
|
-
throw (0, errors_1.
|
|
495
|
+
throw (0, errors_1.createScaiError)(`Recipe '${recipe.handle}' declares a site-scoped datasource location but no contentItemsRoot is configured.`, "INPUT_INVALID", {
|
|
496
496
|
hint: "Set `contentItemsRoot` on the active envProfile in sitecoreai.cli.json (e.g. `/sitecore/content/<siteCollection>/<site>/Data`).",
|
|
497
497
|
});
|
|
498
498
|
}
|
|
@@ -520,15 +520,13 @@ function emitRendering(operations, recipe, context, icon, hasParams, policy, emi
|
|
|
520
520
|
.map((s) => s.trim())
|
|
521
521
|
.filter(Boolean);
|
|
522
522
|
if (subfolderSegments.length === 0) {
|
|
523
|
-
throw (0, errors_1.
|
|
523
|
+
throw (0, errors_1.createScaiError)(`Recipe '${recipe.handle}' declares a site-scoped datasource subfolder that is empty after trimming.`, "INPUT_INVALID", {
|
|
524
524
|
hint: "Use a non-empty subfolder string like 'Badges' or 'ui/badges'.",
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
527
|
const leafName = subfolderSegments[subfolderSegments.length - 1];
|
|
528
528
|
const intermediateSegments = subfolderSegments.slice(0, -1);
|
|
529
|
-
const parentPath = intermediateSegments.length > 0
|
|
530
|
-
? (0, shared_1.joinPath)(base, intermediateSegments.join("/"))
|
|
531
|
-
: base;
|
|
529
|
+
const parentPath = intermediateSegments.length > 0 ? (0, shared_1.joinPath)(base, intermediateSegments.join("/")) : base;
|
|
532
530
|
const folderPath = (0, shared_1.joinPath)(base, subfolderSegments.join("/"));
|
|
533
531
|
// Shared-subfolder coalescer signal: when this subfolder is
|
|
534
532
|
// populated by ≥2 recipes in the set, the folder ITEM
|
|
@@ -638,7 +636,7 @@ function emitRendering(operations, recipe, context, icon, hasParams, policy, emi
|
|
|
638
636
|
*/
|
|
639
637
|
function emitVariants(operations, recipe, context, icon, policy, emittedFolders) {
|
|
640
638
|
if (!context.headlessVariantsRoot) {
|
|
641
|
-
throw (0, errors_1.
|
|
639
|
+
throw (0, errors_1.createScaiError)(`Recipe '${recipe.handle}' declares ${recipe.variants.length} variants but no headlessVariantsRoot is configured.`, "INPUT_INVALID", {
|
|
642
640
|
hint: "Set `headlessVariantsRoot` on the active envProfile in sitecoreai.cli.json (e.g. `/sitecore/content/<siteCollection>/<site>/Presentation/Headless Variants`).",
|
|
643
641
|
});
|
|
644
642
|
}
|
|
@@ -701,9 +699,7 @@ function emitVariants(operations, recipe, context, icon, policy, emittedFolders)
|
|
|
701
699
|
parent: { kind: "ref-recipe", refKey: folderRefKey },
|
|
702
700
|
templateOf: sitecore_templates_1.SITECORE_TEMPLATES.VARIANT_DEFINITION,
|
|
703
701
|
name: variant.name,
|
|
704
|
-
fields: [
|
|
705
|
-
(0, shared_1.versionedField)(sitecore_templates_1.SYSTEM_FIELDS.DISPLAY_NAME, { kind: "string", value: variant.name }),
|
|
706
|
-
],
|
|
702
|
+
fields: [(0, shared_1.versionedField)(sitecore_templates_1.SYSTEM_FIELDS.DISPLAY_NAME, { kind: "string", value: variant.name })],
|
|
707
703
|
});
|
|
708
704
|
}
|
|
709
705
|
}
|