@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
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schemas validating the on-disk policy JSON.
|
|
3
|
+
*
|
|
4
|
+
* Two artifacts (see docs/policy-and-guardrails.md):
|
|
5
|
+
* - the user-global workspace policy (`~/.sitecoreai/policy.json`)
|
|
6
|
+
* - the optional repo policy (`<repo>/scai.policy.json`)
|
|
7
|
+
*
|
|
8
|
+
* The hand-derived TypeScript shapes live in `./types`, inferred from
|
|
9
|
+
* these schemas so the two can never drift.
|
|
10
|
+
*/
|
|
11
|
+
import { z } from "zod";
|
|
12
|
+
/** Operation risk tiers, ascending. See `./types` for the ordering helpers. */
|
|
13
|
+
export declare const riskTierSchema: z.ZodEnum<{
|
|
14
|
+
read: "read";
|
|
15
|
+
write: "write";
|
|
16
|
+
destructive: "destructive";
|
|
17
|
+
mint: "mint";
|
|
18
|
+
}>;
|
|
19
|
+
/** How an environment came to be enrolled — surfaced by `scai policy show`. */
|
|
20
|
+
export declare const enrollSourceSchema: z.ZodEnum<{
|
|
21
|
+
"setup-login": "setup-login";
|
|
22
|
+
"mcp-serve": "mcp-serve";
|
|
23
|
+
"setup-init": "setup-init";
|
|
24
|
+
"policy-init": "policy-init";
|
|
25
|
+
"policy-allow": "policy-allow";
|
|
26
|
+
}>;
|
|
27
|
+
/**
|
|
28
|
+
* The pinned tenant identity of an enrolled environment. Every field is
|
|
29
|
+
* optional — an org-level profile has no project/environment — and
|
|
30
|
+
* enforcement compares only the fields the pin actually carries.
|
|
31
|
+
*/
|
|
32
|
+
export declare const envIdentitySchema: z.ZodObject<{
|
|
33
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
34
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
35
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
36
|
+
host: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export declare const policyEnvironmentSchema: z.ZodObject<{
|
|
39
|
+
identity: z.ZodObject<{
|
|
40
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
41
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
42
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
43
|
+
host: z.ZodOptional<z.ZodString>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
ceiling: z.ZodEnum<{
|
|
46
|
+
read: "read";
|
|
47
|
+
write: "write";
|
|
48
|
+
destructive: "destructive";
|
|
49
|
+
mint: "mint";
|
|
50
|
+
}>;
|
|
51
|
+
enrolledAt: z.ZodString;
|
|
52
|
+
enrolledVia: z.ZodEnum<{
|
|
53
|
+
"setup-login": "setup-login";
|
|
54
|
+
"mcp-serve": "mcp-serve";
|
|
55
|
+
"setup-init": "setup-init";
|
|
56
|
+
"policy-init": "policy-init";
|
|
57
|
+
"policy-allow": "policy-allow";
|
|
58
|
+
}>;
|
|
59
|
+
mintCredentials: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
ciWrites: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
stepUpMinutes: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
/** The user-global workspace policy — the hard ceiling. */
|
|
64
|
+
export declare const workspacePolicySchema: z.ZodObject<{
|
|
65
|
+
version: z.ZodLiteral<1>;
|
|
66
|
+
environments: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
67
|
+
identity: z.ZodObject<{
|
|
68
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
69
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
70
|
+
environmentId: z.ZodOptional<z.ZodString>;
|
|
71
|
+
host: z.ZodOptional<z.ZodString>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
ceiling: z.ZodEnum<{
|
|
74
|
+
read: "read";
|
|
75
|
+
write: "write";
|
|
76
|
+
destructive: "destructive";
|
|
77
|
+
mint: "mint";
|
|
78
|
+
}>;
|
|
79
|
+
enrolledAt: z.ZodString;
|
|
80
|
+
enrolledVia: z.ZodEnum<{
|
|
81
|
+
"setup-login": "setup-login";
|
|
82
|
+
"mcp-serve": "mcp-serve";
|
|
83
|
+
"setup-init": "setup-init";
|
|
84
|
+
"policy-init": "policy-init";
|
|
85
|
+
"policy-allow": "policy-allow";
|
|
86
|
+
}>;
|
|
87
|
+
mintCredentials: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
+
ciWrites: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
stepUpMinutes: z.ZodOptional<z.ZodNumber>;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
/**
|
|
93
|
+
* The optional repo policy. May only NARROW the workspace policy — drop
|
|
94
|
+
* environments from the allowlist, lower ceilings — never widen.
|
|
95
|
+
*/
|
|
96
|
+
export declare const repoPolicySchema: z.ZodObject<{
|
|
97
|
+
version: z.ZodLiteral<1>;
|
|
98
|
+
allowEnvironments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
99
|
+
environments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
100
|
+
ceiling: z.ZodOptional<z.ZodEnum<{
|
|
101
|
+
read: "read";
|
|
102
|
+
write: "write";
|
|
103
|
+
destructive: "destructive";
|
|
104
|
+
mint: "mint";
|
|
105
|
+
}>>;
|
|
106
|
+
mintCredentials: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
+
ciWrites: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
+
stepUpMinutes: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
}, z.core.$strip>>>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
export declare const parseWorkspacePolicy: (raw: unknown, source: string) => {
|
|
112
|
+
version: 1;
|
|
113
|
+
environments: Record<string, {
|
|
114
|
+
identity: {
|
|
115
|
+
organizationId?: string | undefined;
|
|
116
|
+
projectId?: string | undefined;
|
|
117
|
+
environmentId?: string | undefined;
|
|
118
|
+
host?: string | undefined;
|
|
119
|
+
};
|
|
120
|
+
ceiling: "read" | "write" | "destructive" | "mint";
|
|
121
|
+
enrolledAt: string;
|
|
122
|
+
enrolledVia: "setup-login" | "mcp-serve" | "setup-init" | "policy-init" | "policy-allow";
|
|
123
|
+
mintCredentials?: boolean | undefined;
|
|
124
|
+
ciWrites?: boolean | undefined;
|
|
125
|
+
stepUpMinutes?: number | undefined;
|
|
126
|
+
}>;
|
|
127
|
+
};
|
|
128
|
+
export declare const parseRepoPolicy: (raw: unknown, source: string) => {
|
|
129
|
+
version: 1;
|
|
130
|
+
allowEnvironments?: string[] | undefined;
|
|
131
|
+
environments?: Record<string, {
|
|
132
|
+
ceiling?: "read" | "write" | "destructive" | "mint" | undefined;
|
|
133
|
+
mintCredentials?: boolean | undefined;
|
|
134
|
+
ciWrites?: boolean | undefined;
|
|
135
|
+
stepUpMinutes?: number | undefined;
|
|
136
|
+
}> | undefined;
|
|
137
|
+
};
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Zod schemas validating the on-disk policy JSON.
|
|
4
|
+
*
|
|
5
|
+
* Two artifacts (see docs/policy-and-guardrails.md):
|
|
6
|
+
* - the user-global workspace policy (`~/.sitecoreai/policy.json`)
|
|
7
|
+
* - the optional repo policy (`<repo>/scai.policy.json`)
|
|
8
|
+
*
|
|
9
|
+
* The hand-derived TypeScript shapes live in `./types`, inferred from
|
|
10
|
+
* these schemas so the two can never drift.
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.parseRepoPolicy = exports.parseWorkspacePolicy = exports.repoPolicySchema = exports.workspacePolicySchema = exports.policyEnvironmentSchema = exports.envIdentitySchema = exports.enrollSourceSchema = exports.riskTierSchema = void 0;
|
|
14
|
+
const zod_1 = require("zod");
|
|
15
|
+
const errors_1 = require("../shared/errors");
|
|
16
|
+
/** Operation risk tiers, ascending. See `./types` for the ordering helpers. */
|
|
17
|
+
exports.riskTierSchema = zod_1.z.enum(["read", "write", "destructive", "mint"]);
|
|
18
|
+
/** How an environment came to be enrolled — surfaced by `scai policy show`. */
|
|
19
|
+
exports.enrollSourceSchema = zod_1.z.enum([
|
|
20
|
+
"setup-login",
|
|
21
|
+
"mcp-serve",
|
|
22
|
+
"setup-init",
|
|
23
|
+
"policy-init",
|
|
24
|
+
"policy-allow",
|
|
25
|
+
]);
|
|
26
|
+
/**
|
|
27
|
+
* The pinned tenant identity of an enrolled environment. Every field is
|
|
28
|
+
* optional — an org-level profile has no project/environment — and
|
|
29
|
+
* enforcement compares only the fields the pin actually carries.
|
|
30
|
+
*/
|
|
31
|
+
exports.envIdentitySchema = zod_1.z.object({
|
|
32
|
+
organizationId: zod_1.z.string().min(1).optional(),
|
|
33
|
+
projectId: zod_1.z.string().min(1).optional(),
|
|
34
|
+
environmentId: zod_1.z.string().min(1).optional(),
|
|
35
|
+
host: zod_1.z.string().min(1).optional(),
|
|
36
|
+
});
|
|
37
|
+
exports.policyEnvironmentSchema = zod_1.z.object({
|
|
38
|
+
identity: exports.envIdentitySchema,
|
|
39
|
+
ceiling: exports.riskTierSchema,
|
|
40
|
+
enrolledAt: zod_1.z.string().min(1),
|
|
41
|
+
enrolledVia: exports.enrollSourceSchema,
|
|
42
|
+
/** Phase 2 — may `scai setup client create` mint a client here. */
|
|
43
|
+
mintCredentials: zod_1.z.boolean().optional(),
|
|
44
|
+
/** Phase 2 — may a CI caller perform write/destructive ops here. */
|
|
45
|
+
ciWrites: zod_1.z.boolean().optional(),
|
|
46
|
+
/** Phase 3 — destructive/mint ops require a deploy token minted within this many minutes. */
|
|
47
|
+
stepUpMinutes: zod_1.z.number().int().positive().optional(),
|
|
48
|
+
});
|
|
49
|
+
/** The user-global workspace policy — the hard ceiling. */
|
|
50
|
+
exports.workspacePolicySchema = zod_1.z.object({
|
|
51
|
+
version: zod_1.z.literal(1),
|
|
52
|
+
environments: zod_1.z.record(zod_1.z.string(), exports.policyEnvironmentSchema),
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* The optional repo policy. May only NARROW the workspace policy — drop
|
|
56
|
+
* environments from the allowlist, lower ceilings — never widen.
|
|
57
|
+
*/
|
|
58
|
+
exports.repoPolicySchema = zod_1.z.object({
|
|
59
|
+
version: zod_1.z.literal(1),
|
|
60
|
+
allowEnvironments: zod_1.z.array(zod_1.z.string().min(1)).optional(),
|
|
61
|
+
environments: zod_1.z
|
|
62
|
+
.record(zod_1.z.string(), zod_1.z.object({
|
|
63
|
+
ceiling: exports.riskTierSchema.optional(),
|
|
64
|
+
mintCredentials: zod_1.z.boolean().optional(),
|
|
65
|
+
ciWrites: zod_1.z.boolean().optional(),
|
|
66
|
+
stepUpMinutes: zod_1.z.number().int().positive().optional(),
|
|
67
|
+
}))
|
|
68
|
+
.optional(),
|
|
69
|
+
});
|
|
70
|
+
const formatIssues = (error) => error.issues.map((issue) => `${issue.path.join(".") || "(root)"}: ${issue.message}`);
|
|
71
|
+
const parseWorkspacePolicy = (raw, source) => {
|
|
72
|
+
const result = exports.workspacePolicySchema.safeParse(raw);
|
|
73
|
+
if (!result.success) {
|
|
74
|
+
throw (0, errors_1.createScaiError)(`Invalid workspace policy at ${source}.`, "CONFIG_INVALID", {
|
|
75
|
+
hint: "Fix the file, or run 'scai policy init' to regenerate it.",
|
|
76
|
+
details: formatIssues(result.error),
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
return result.data;
|
|
80
|
+
};
|
|
81
|
+
exports.parseWorkspacePolicy = parseWorkspacePolicy;
|
|
82
|
+
const parseRepoPolicy = (raw, source) => {
|
|
83
|
+
const result = exports.repoPolicySchema.safeParse(raw);
|
|
84
|
+
if (!result.success) {
|
|
85
|
+
throw (0, errors_1.createScaiError)(`Invalid repo policy at ${source}.`, "CONFIG_INVALID", {
|
|
86
|
+
hint: "Fix scai.policy.json — it may only narrow the workspace policy.",
|
|
87
|
+
details: formatIssues(result.error),
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
return result.data;
|
|
91
|
+
};
|
|
92
|
+
exports.parseRepoPolicy = parseRepoPolicy;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sync read / atomic write of the policy artifacts. Sync because the
|
|
3
|
+
* enforcement chokepoint (`resolveEnvironment`) is itself sync.
|
|
4
|
+
*/
|
|
5
|
+
import type { RepoPolicy, WorkspacePolicy } from "./types";
|
|
6
|
+
/**
|
|
7
|
+
* Read the user-global workspace policy. Returns `null` when no policy
|
|
8
|
+
* file exists — callers treat that as "unmanaged mode": enforcement is a
|
|
9
|
+
* no-op until the operator runs `scai setup login`, `scai mcp serve`, or
|
|
10
|
+
* `scai policy init`. A present-but-corrupt file fails closed (throws
|
|
11
|
+
* `CONFIG_INVALID`) rather than silently disabling the guardrail.
|
|
12
|
+
*/
|
|
13
|
+
export declare const readWorkspacePolicy: () => WorkspacePolicy | null;
|
|
14
|
+
/** Read the optional repo policy sitting next to the config file. */
|
|
15
|
+
export declare const readRepoPolicy: (configRootDir: string) => RepoPolicy | null;
|
|
16
|
+
/**
|
|
17
|
+
* Write the user-global workspace policy. Atomic (temp file + rename) so
|
|
18
|
+
* a crash mid-write can't leave a half-written policy that would
|
|
19
|
+
* fail-closed every later command. Returns the path written, or `null`
|
|
20
|
+
* when no policy directory is resolvable (Vitest without
|
|
21
|
+
* `SITECOREAI_POLICY_HOME`).
|
|
22
|
+
*/
|
|
23
|
+
export declare const writeWorkspacePolicy: (policy: WorkspacePolicy) => string | null;
|
|
24
|
+
/** Whether the workspace is "managed" — a user-global policy file exists. */
|
|
25
|
+
export declare const isManaged: () => boolean;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Sync read / atomic write of the policy artifacts. Sync because the
|
|
4
|
+
* enforcement chokepoint (`resolveEnvironment`) is itself sync.
|
|
5
|
+
*/
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.isManaged = exports.writeWorkspacePolicy = exports.readRepoPolicy = exports.readWorkspacePolicy = void 0;
|
|
11
|
+
const node_fs_1 = __importDefault(require("node:fs"));
|
|
12
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
13
|
+
const errors_1 = require("../shared/errors");
|
|
14
|
+
const schema_1 = require("./schema");
|
|
15
|
+
const paths_1 = require("./paths");
|
|
16
|
+
const readJson = (file) => {
|
|
17
|
+
let text;
|
|
18
|
+
try {
|
|
19
|
+
text = node_fs_1.default.readFileSync(file, "utf8");
|
|
20
|
+
}
|
|
21
|
+
catch (error) {
|
|
22
|
+
throw (0, errors_1.createScaiError)(`Unable to read ${file}.`, "CONFIG_INVALID", {
|
|
23
|
+
hint: "Check that the file is readable.",
|
|
24
|
+
details: [error instanceof Error ? error.message : String(error)],
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
try {
|
|
28
|
+
return JSON.parse(text);
|
|
29
|
+
}
|
|
30
|
+
catch (error) {
|
|
31
|
+
throw (0, errors_1.createScaiError)(`${file} is not valid JSON.`, "CONFIG_INVALID", {
|
|
32
|
+
hint: "Fix the file, or run 'scai policy init' to regenerate the workspace policy.",
|
|
33
|
+
details: [error instanceof Error ? error.message : String(error)],
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Read the user-global workspace policy. Returns `null` when no policy
|
|
39
|
+
* file exists — callers treat that as "unmanaged mode": enforcement is a
|
|
40
|
+
* no-op until the operator runs `scai setup login`, `scai mcp serve`, or
|
|
41
|
+
* `scai policy init`. A present-but-corrupt file fails closed (throws
|
|
42
|
+
* `CONFIG_INVALID`) rather than silently disabling the guardrail.
|
|
43
|
+
*/
|
|
44
|
+
const readWorkspacePolicy = () => {
|
|
45
|
+
const file = (0, paths_1.resolveUserPolicyPath)();
|
|
46
|
+
if (!file || !node_fs_1.default.existsSync(file)) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return (0, schema_1.parseWorkspacePolicy)(readJson(file), file);
|
|
50
|
+
};
|
|
51
|
+
exports.readWorkspacePolicy = readWorkspacePolicy;
|
|
52
|
+
/** Read the optional repo policy sitting next to the config file. */
|
|
53
|
+
const readRepoPolicy = (configRootDir) => {
|
|
54
|
+
const file = (0, paths_1.resolveRepoPolicyPath)(configRootDir);
|
|
55
|
+
if (!node_fs_1.default.existsSync(file)) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return (0, schema_1.parseRepoPolicy)(readJson(file), file);
|
|
59
|
+
};
|
|
60
|
+
exports.readRepoPolicy = readRepoPolicy;
|
|
61
|
+
/**
|
|
62
|
+
* Write the user-global workspace policy. Atomic (temp file + rename) so
|
|
63
|
+
* a crash mid-write can't leave a half-written policy that would
|
|
64
|
+
* fail-closed every later command. Returns the path written, or `null`
|
|
65
|
+
* when no policy directory is resolvable (Vitest without
|
|
66
|
+
* `SITECOREAI_POLICY_HOME`).
|
|
67
|
+
*/
|
|
68
|
+
const writeWorkspacePolicy = (policy) => {
|
|
69
|
+
const file = (0, paths_1.resolveUserPolicyPath)();
|
|
70
|
+
if (!file) {
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
node_fs_1.default.mkdirSync(node_path_1.default.dirname(file), { recursive: true });
|
|
74
|
+
const tmp = `${file}.${process.pid}.tmp`;
|
|
75
|
+
node_fs_1.default.writeFileSync(tmp, `${JSON.stringify(policy, null, 2)}\n`, "utf8");
|
|
76
|
+
node_fs_1.default.renameSync(tmp, file);
|
|
77
|
+
return file;
|
|
78
|
+
};
|
|
79
|
+
exports.writeWorkspacePolicy = writeWorkspacePolicy;
|
|
80
|
+
/** Whether the workspace is "managed" — a user-global policy file exists. */
|
|
81
|
+
const isManaged = () => {
|
|
82
|
+
const file = (0, paths_1.resolveUserPolicyPath)();
|
|
83
|
+
return Boolean(file && node_fs_1.default.existsSync(file));
|
|
84
|
+
};
|
|
85
|
+
exports.isManaged = isManaged;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workspace-policy types — the operator-owned guardrail layer that bounds
|
|
3
|
+
* which Sitecore environments scai may operate against.
|
|
4
|
+
*
|
|
5
|
+
* The file shapes are inferred from the Zod schemas in `./schema` so the
|
|
6
|
+
* validator and the types can never drift; the helpers below
|
|
7
|
+
* (`EffectivePolicy`, the risk-tier ordering) are hand-written because
|
|
8
|
+
* they describe runtime results, not on-disk JSON.
|
|
9
|
+
*
|
|
10
|
+
* See docs/policy-and-guardrails.md for the design.
|
|
11
|
+
*/
|
|
12
|
+
import type { z } from "zod";
|
|
13
|
+
import type { envIdentitySchema, policyEnvironmentSchema, repoPolicySchema, riskTierSchema, workspacePolicySchema } from "./schema";
|
|
14
|
+
/**
|
|
15
|
+
* Operation risk tiers, ascending. Phase 1 records a `ceiling` per
|
|
16
|
+
* environment but enforces only enrollment + identity; `destructive` and
|
|
17
|
+
* `mint` gain enforcement in Phase 2.
|
|
18
|
+
*/
|
|
19
|
+
export type RiskTier = z.infer<typeof riskTierSchema>;
|
|
20
|
+
/** The pinned identity (tenant triple + host) of an enrolled environment. */
|
|
21
|
+
export type EnvIdentity = z.infer<typeof envIdentitySchema>;
|
|
22
|
+
/** One enrolled environment in the user-global workspace policy. */
|
|
23
|
+
export type PolicyEnvironment = z.infer<typeof policyEnvironmentSchema>;
|
|
24
|
+
/** The user-global workspace policy — `~/.sitecoreai/policy.json`. */
|
|
25
|
+
export type WorkspacePolicy = z.infer<typeof workspacePolicySchema>;
|
|
26
|
+
/** The optional repo policy — `<repo>/scai.policy.json`. */
|
|
27
|
+
export type RepoPolicy = z.infer<typeof repoPolicySchema>;
|
|
28
|
+
/** How an environment came to be enrolled. */
|
|
29
|
+
export type EnrollSource = PolicyEnvironment["enrolledVia"];
|
|
30
|
+
/** Risk tiers in ascending order — the array index is the rank. */
|
|
31
|
+
export declare const RISK_TIERS: readonly ["read", "write", "destructive", "mint"];
|
|
32
|
+
/** The resolved, layered verdict for a single environment. */
|
|
33
|
+
export interface EffectivePolicy {
|
|
34
|
+
/** False when no user-global policy file exists — "unmanaged mode". */
|
|
35
|
+
managed: boolean;
|
|
36
|
+
/** Whether the environment is on the effective (layered) allowlist. */
|
|
37
|
+
enrolled: boolean;
|
|
38
|
+
/** Effective ceiling — the intersection of the user-global and repo layers. */
|
|
39
|
+
ceiling: RiskTier;
|
|
40
|
+
/** Pinned identity, or `null` when the environment is not enrolled. */
|
|
41
|
+
identity: EnvIdentity | null;
|
|
42
|
+
/** Phase 2 — whether `scai setup client create` may mint here (post repo-narrowing). */
|
|
43
|
+
mintCredentials: boolean;
|
|
44
|
+
/** Phase 2 — whether a CI caller may write/destructive here (post repo-narrowing). */
|
|
45
|
+
ciWrites: boolean;
|
|
46
|
+
/** Phase 3 — freshness window (minutes) for destructive/mint ops; `undefined` = no requirement. */
|
|
47
|
+
stepUpMinutes: number | undefined;
|
|
48
|
+
}
|
|
49
|
+
/** Rank of a tier (`read` = 0, `mint` = 3). */
|
|
50
|
+
export declare const riskRank: (tier: RiskTier) => number;
|
|
51
|
+
/** The lower (more restrictive) of two tiers. */
|
|
52
|
+
export declare const minTier: (a: RiskTier, b: RiskTier) => RiskTier;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Workspace-policy types — the operator-owned guardrail layer that bounds
|
|
4
|
+
* which Sitecore environments scai may operate against.
|
|
5
|
+
*
|
|
6
|
+
* The file shapes are inferred from the Zod schemas in `./schema` so the
|
|
7
|
+
* validator and the types can never drift; the helpers below
|
|
8
|
+
* (`EffectivePolicy`, the risk-tier ordering) are hand-written because
|
|
9
|
+
* they describe runtime results, not on-disk JSON.
|
|
10
|
+
*
|
|
11
|
+
* See docs/policy-and-guardrails.md for the design.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.minTier = exports.riskRank = exports.RISK_TIERS = void 0;
|
|
15
|
+
/** Risk tiers in ascending order — the array index is the rank. */
|
|
16
|
+
exports.RISK_TIERS = ["read", "write", "destructive", "mint"];
|
|
17
|
+
/** Rank of a tier (`read` = 0, `mint` = 3). */
|
|
18
|
+
const riskRank = (tier) => exports.RISK_TIERS.indexOf(tier);
|
|
19
|
+
exports.riskRank = riskRank;
|
|
20
|
+
/** The lower (more restrictive) of two tiers. */
|
|
21
|
+
const minTier = (a, b) => ((0, exports.riskRank)(a) <= (0, exports.riskRank)(b) ? a : b);
|
|
22
|
+
exports.minTier = minTier;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The scai Commander program tree — assembled here, with **no
|
|
3
|
+
* import-time side effects**, so it can be consumed both by the CLI
|
|
4
|
+
* entrypoint (`src/cli.ts`, which runs it) and by tooling that only
|
|
5
|
+
* needs to inspect the command structure (`scripts/generate-commands-doc.ts`).
|
|
6
|
+
*
|
|
7
|
+
* `src/cli.ts` keeps the runtime concerns — argv normalization, the
|
|
8
|
+
* auto-wizard, telemetry, the force-exit teardown — and calls
|
|
9
|
+
* `createProgram` to build the tree. Anything that adds a top-level
|
|
10
|
+
* command group belongs here.
|
|
11
|
+
*/
|
|
12
|
+
import { Command } from "commander";
|
|
13
|
+
/** Env snapshot the shell REPL restores between sub-invocations. */
|
|
14
|
+
export type RunCliOptions = {
|
|
15
|
+
baseEnv?: Record<string, string | undefined>;
|
|
16
|
+
skipBanner?: boolean;
|
|
17
|
+
shellMode?: boolean;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* The CLI runner — `src/cli.ts` supplies the real implementation. The
|
|
21
|
+
* shell command needs a callback to re-enter the CLI for each typed
|
|
22
|
+
* line; `createProgram` threads it through without importing the
|
|
23
|
+
* entrypoint (which would re-trigger its side effects).
|
|
24
|
+
*/
|
|
25
|
+
export type RunCli = (argv: string[], options?: RunCliOptions) => Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Build the full nested Commander tree. The CLI surface is organized by
|
|
28
|
+
* product area, not flat — each parent below is a namespace, and the
|
|
29
|
+
* leaf command builders are unchanged (only where they attach).
|
|
30
|
+
*
|
|
31
|
+
* Pure: no side effects beyond constructing `Command` objects.
|
|
32
|
+
*/
|
|
33
|
+
export declare const createProgram: (runCli: RunCli, options?: {
|
|
34
|
+
shellMode?: boolean;
|
|
35
|
+
}) => Command;
|
package/dist/program.js
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* The scai Commander program tree — assembled here, with **no
|
|
4
|
+
* import-time side effects**, so it can be consumed both by the CLI
|
|
5
|
+
* entrypoint (`src/cli.ts`, which runs it) and by tooling that only
|
|
6
|
+
* needs to inspect the command structure (`scripts/generate-commands-doc.ts`).
|
|
7
|
+
*
|
|
8
|
+
* `src/cli.ts` keeps the runtime concerns — argv normalization, the
|
|
9
|
+
* auto-wizard, telemetry, the force-exit teardown — and calls
|
|
10
|
+
* `createProgram` to build the tree. Anything that adds a top-level
|
|
11
|
+
* command group belongs here.
|
|
12
|
+
*/
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.createProgram = void 0;
|
|
18
|
+
const commander_1 = require("commander");
|
|
19
|
+
const package_json_1 = __importDefault(require("../package.json"));
|
|
20
|
+
const audit_1 = require("./commands/audit");
|
|
21
|
+
const brand_1 = require("./commands/brand");
|
|
22
|
+
const cleanup_1 = require("./commands/cleanup");
|
|
23
|
+
const serialization_1 = require("./commands/serialization");
|
|
24
|
+
const status_1 = require("./commands/status");
|
|
25
|
+
const login_1 = require("./commands/login");
|
|
26
|
+
const deploy_1 = require("./commands/deploy");
|
|
27
|
+
const explain_1 = require("./commands/explain");
|
|
28
|
+
const health_1 = require("./commands/health");
|
|
29
|
+
const history_1 = require("./commands/history");
|
|
30
|
+
const init_1 = require("./commands/init");
|
|
31
|
+
const logout_1 = require("./commands/logout");
|
|
32
|
+
const setup_client_1 = require("./commands/setup-client");
|
|
33
|
+
const mcp_1 = require("./commands/mcp");
|
|
34
|
+
const policy_1 = require("./commands/policy");
|
|
35
|
+
const brief_1 = require("./commands/brief");
|
|
36
|
+
const campaign_1 = require("./commands/campaign");
|
|
37
|
+
const agents_1 = require("./commands/agents");
|
|
38
|
+
const publish_1 = require("./commands/publish");
|
|
39
|
+
const topics_1 = require("./commands/topics");
|
|
40
|
+
const recipe_1 = require("./commands/recipe");
|
|
41
|
+
const sync_1 = require("./commands/sync");
|
|
42
|
+
const shell_1 = require("./commands/shell");
|
|
43
|
+
const config_1 = require("./commands/config");
|
|
44
|
+
const telemetry_1 = require("./commands/telemetry");
|
|
45
|
+
const webhook_1 = require("./commands/webhook");
|
|
46
|
+
const workflow_1 = require("./commands/workflow");
|
|
47
|
+
const shared_1 = require("./commands/shared");
|
|
48
|
+
/**
|
|
49
|
+
* Build the full nested Commander tree. The CLI surface is organized by
|
|
50
|
+
* product area, not flat — each parent below is a namespace, and the
|
|
51
|
+
* leaf command builders are unchanged (only where they attach).
|
|
52
|
+
*
|
|
53
|
+
* Pure: no side effects beyond constructing `Command` objects.
|
|
54
|
+
*/
|
|
55
|
+
const createProgram = (runCli, options = {}) => {
|
|
56
|
+
const program = new commander_1.Command();
|
|
57
|
+
program
|
|
58
|
+
.name("scai")
|
|
59
|
+
.description("SitecoreAI developer toolkit — deploy, serialization, recipes, publishing, and MCP")
|
|
60
|
+
.version(package_json_1.default.version, "-V, --version", "Display the CLI version");
|
|
61
|
+
// Top-level command groups. The CLI surface is organized by product
|
|
62
|
+
// area, not flat — each parent below is a namespace, and the leaf
|
|
63
|
+
// command builders are unchanged (only where they attach moved).
|
|
64
|
+
const setup = new commander_1.Command("setup").description("Configure environments and authenticate — init, login, env, logout, status");
|
|
65
|
+
setup.addCommand((0, init_1.createInitCommand)());
|
|
66
|
+
setup.addCommand((0, login_1.createLoginCommand)());
|
|
67
|
+
setup.addCommand((0, setup_client_1.createSetupClientCommand)());
|
|
68
|
+
setup.addCommand((0, logout_1.createLogoutCommand)());
|
|
69
|
+
setup.addCommand((0, status_1.createStatusCommand)());
|
|
70
|
+
const hygiene = new commander_1.Command("hygiene").description("Content quality — read-only audits, mutating cleanup, and composed diagnostics");
|
|
71
|
+
hygiene.addCommand((0, audit_1.createAuditCommand)());
|
|
72
|
+
hygiene.addCommand((0, cleanup_1.createCleanupCommand)());
|
|
73
|
+
hygiene.addCommand((0, explain_1.createExplainCommand)());
|
|
74
|
+
// `webhook` nests under `workflow`; the old standalone `content`
|
|
75
|
+
// wrapper is dropped — its only child (`version`) attaches directly.
|
|
76
|
+
const workflow = (0, workflow_1.createWorkflowCommand)();
|
|
77
|
+
workflow.addCommand((0, webhook_1.createWebhookCommand)());
|
|
78
|
+
const content = new commander_1.Command("content").description("Operate on content items — publish and workflow handlers");
|
|
79
|
+
content.addCommand((0, publish_1.createPublishCommand)());
|
|
80
|
+
content.addCommand(workflow);
|
|
81
|
+
// `content version` (per-version publish-state fields — __Never publish,
|
|
82
|
+
// __Valid from / __Valid to) is intentionally NOT registered yet. Those
|
|
83
|
+
// fields only make sense once content items (pages, etc.) can be authored
|
|
84
|
+
// through the CLI; today they only arrive via recipes, so a lone
|
|
85
|
+
// version-state verb is more confusing than useful. The SDK
|
|
86
|
+
// (src/content/api/version-fields.ts) and `hygiene cleanup versions` both
|
|
87
|
+
// stay — only this CLI command group is hidden until item primitives land.
|
|
88
|
+
// content.addCommand(createContentVersionCommand());
|
|
89
|
+
content.addHelpText("after", "\nRoadmap: `scai content sites` and `scai content pages` — XM Cloud\n" +
|
|
90
|
+
"site and page management — are planned, not yet shipped. See docs/roadmap.md.\n");
|
|
91
|
+
// `brief`, `campaign`, `brand`, and `agents` are unstable surfaces —
|
|
92
|
+
// reverse-engineered, no SemVer stability promise. `markUnstable`
|
|
93
|
+
// stamps the `[unstable]` help marker, the stability note, and the
|
|
94
|
+
// per-invocation stderr warning onto each group.
|
|
95
|
+
const ops = new commander_1.Command("ops").description("Sitecore Content Operations — briefs and campaigns");
|
|
96
|
+
ops.addCommand((0, shared_1.markUnstable)((0, brief_1.createBriefCommand)(), "scai ops brief"));
|
|
97
|
+
ops.addCommand((0, shared_1.markUnstable)((0, campaign_1.createCampaignCommand)(), "scai ops campaign"));
|
|
98
|
+
const provision = new commander_1.Command("provision").description("Provision environments and content-as-code — deploy, serialization, recipes");
|
|
99
|
+
provision.addCommand((0, deploy_1.createDeployCommand)());
|
|
100
|
+
provision.addCommand((0, serialization_1.createSerializationCommand)());
|
|
101
|
+
provision.addCommand((0, recipe_1.createRecipeCommand)());
|
|
102
|
+
provision.addHelpText("after", "\nRoadmap: `scai provision iar` — package content as Items-as-Resources\n" +
|
|
103
|
+
"(IAR) — is planned, not yet shipped. See docs/roadmap.md.\n");
|
|
104
|
+
const cli = new commander_1.Command("cli").description("CLI tooling — config, diagnostics, history, REPL");
|
|
105
|
+
cli.addCommand((0, config_1.createConfigCommand)());
|
|
106
|
+
cli.addCommand((0, health_1.createHealthCommand)());
|
|
107
|
+
cli.addCommand((0, history_1.createHistoryCommand)());
|
|
108
|
+
cli.addCommand((0, shell_1.createShellCommand)(runCli));
|
|
109
|
+
cli.addCommand((0, telemetry_1.createTelemetryCommand)());
|
|
110
|
+
cli.addCommand((0, topics_1.createTopicsCommand)());
|
|
111
|
+
program.addCommand(setup);
|
|
112
|
+
program.addCommand((0, policy_1.createPolicyCommand)());
|
|
113
|
+
program.addCommand(hygiene);
|
|
114
|
+
program.addCommand(content);
|
|
115
|
+
program.addCommand(ops);
|
|
116
|
+
program.addCommand((0, shared_1.markUnstable)((0, brand_1.createBrandCommand)(), "scai brand"));
|
|
117
|
+
program.addCommand((0, shared_1.markUnstable)((0, agents_1.createAgentsCommand)(), "scai agents"));
|
|
118
|
+
program.addCommand(provision);
|
|
119
|
+
program.addCommand((0, sync_1.createSyncCommand)());
|
|
120
|
+
// `mcp` stays top-level: `scai mcp serve` is wired into external MCP
|
|
121
|
+
// client configs, so its path must not move under a group.
|
|
122
|
+
program.addCommand((0, mcp_1.createMcpCommand)());
|
|
123
|
+
program.addCommand(cli);
|
|
124
|
+
program.showHelpAfterError(true);
|
|
125
|
+
program.showSuggestionAfterError(true);
|
|
126
|
+
if (options.shellMode) {
|
|
127
|
+
program.exitOverride();
|
|
128
|
+
}
|
|
129
|
+
return program;
|
|
130
|
+
};
|
|
131
|
+
exports.createProgram = createProgram;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { SitecoreApiClientOptions } from "../../serialization/api/types";
|
|
2
|
+
/**
|
|
3
|
+
* OAuth scopes the SAI Publishing API requires.
|
|
4
|
+
*
|
|
5
|
+
* Per the Publishing API architect (2026-05-14):
|
|
6
|
+
*
|
|
7
|
+
* - Every Sitecore Cloud **environment** has its own automation
|
|
8
|
+
* client (Cloud Portal → Environments → [env] → Automation
|
|
9
|
+
* Clients). Env-level clients carry the tenant-tier `.t` scopes
|
|
10
|
+
* below by default. ORG-level clients (used for org/project/env
|
|
11
|
+
* management) do NOT.
|
|
12
|
+
* - The api-docs page lists both `.a` (admin-tier, for Pages-UI
|
|
13
|
+
* user tokens with Organization Owner role) and `.t` (tenant-
|
|
14
|
+
* tier, for automation clients). Use `.t` for any flow whose
|
|
15
|
+
* credentials are scoped to a single environment.
|
|
16
|
+
*
|
|
17
|
+
* - `xmcpub.jobs.t:r` — read publishing jobs
|
|
18
|
+
* - `xmcpub.jobs.t:w` — create / cancel publishing jobs
|
|
19
|
+
* - `xmcpub.queue:r` — read the publish queue
|
|
20
|
+
*
|
|
21
|
+
* Audience: `https://api.sitecorecloud.io` (standard).
|
|
22
|
+
*/
|
|
23
|
+
export declare const PUBLISHING_SCOPES_REQUESTED: readonly ["xmcpub.jobs.t:r", "xmcpub.jobs.t:w", "xmcpub.queue:r"];
|
|
24
|
+
export interface AcquirePublishingTokenOptions {
|
|
25
|
+
envName: string;
|
|
26
|
+
environment: SitecoreApiClientOptions;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Returns a Bearer JWT for the SAI Publishing API.
|
|
30
|
+
*
|
|
31
|
+
* Resolution order, cheapest first:
|
|
32
|
+
*
|
|
33
|
+
* 1. Cached publishing token in the keychain — set by a previous
|
|
34
|
+
* successful mint via this function. Reused until expiry / clear.
|
|
35
|
+
* 2. The deploy token in the keychain, IF its scope claim already
|
|
36
|
+
* includes `xmcpub.jobs.t:*`. This is the zero-config path:
|
|
37
|
+
* operators who logged in interactively against an env-level
|
|
38
|
+
* automation client get a single token covering both deploy
|
|
39
|
+
* and publishing scopes (scai's default scope set requests
|
|
40
|
+
* both — see `SCAI_API_SCOPES`).
|
|
41
|
+
* 3. Fresh M2M mint via the env's `clientId` + `clientSecret`,
|
|
42
|
+
* explicitly requesting publishing scopes. Cached on success.
|
|
43
|
+
*
|
|
44
|
+
* Refuses with `AUTH_REQUIRED` when none of these paths produces a
|
|
45
|
+
* token carrying the required scopes. The error message decodes the
|
|
46
|
+
* granted-scope set and infers the credential class so operators know
|
|
47
|
+
* whether they need an env-level client or just need to re-login.
|
|
48
|
+
*/
|
|
49
|
+
export declare const acquirePublishingToken: (options: AcquirePublishingTokenOptions) => Promise<string>;
|