@contentful/experience-design-system-cli 2.35.1-dev-build-215f38d1.0 → 2.35.1-dev-build-236b6909.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.
Files changed (55) hide show
  1. package/dist/app.js +127 -265
  2. package/dist/index.js +131 -292
  3. package/dist/package.json +1 -1
  4. package/dist/src/tui/import/spawn-v1-import.d.ts +0 -2
  5. package/dist/src/tui/import/steps/index.d.ts +0 -1
  6. package/legacy/dist/src/analyze/controller/run-analyze-extract.d.ts +12 -0
  7. package/legacy/dist/src/analyze/extract-command.d.ts +2 -5
  8. package/legacy/dist/src/analyze/helpers/resolve-composition-agent.d.ts +9 -0
  9. package/legacy/dist/src/analyze/helpers/resolve-no-cache.d.ts +4 -0
  10. package/legacy/dist/src/analyze/helpers/resolve-unreachable-mode.d.ts +1 -0
  11. package/legacy/dist/src/analyze/helpers/retry-db-write.d.ts +1 -0
  12. package/legacy/dist/src/analyze/orchestrator/execute-analyze-extract.d.ts +21 -0
  13. package/legacy/dist/src/analyze/services/collect-source-files.d.ts +1 -0
  14. package/legacy/dist/src/analyze/services/extract-with-cache.d.ts +17 -0
  15. package/legacy/dist/src/analyze/services/persist-extract-results.d.ts +11 -0
  16. package/legacy/dist/src/analyze/services/resolve-composition-mapping.d.ts +22 -0
  17. package/legacy/dist/src/analyze/services/resolve-source-directory.d.ts +1 -0
  18. package/legacy/dist/src/apply/command.d.ts +3 -41
  19. package/legacy/dist/src/apply/controller/run-apply.d.ts +1 -0
  20. package/legacy/dist/src/apply/helpers/build-apply-output.d.ts +55 -0
  21. package/legacy/dist/src/apply/helpers/has-breaking-changes.d.ts +2 -0
  22. package/legacy/dist/src/apply/helpers/poll-apply-operation.d.ts +9 -0
  23. package/legacy/dist/src/apply/helpers/read-token-files.d.ts +7 -0
  24. package/legacy/dist/src/apply/helpers/slot-validation.d.ts +20 -0
  25. package/legacy/dist/src/apply/services/apply-interactive.d.ts +13 -0
  26. package/legacy/dist/src/apply/services/apply-non-interactive.d.ts +10 -0
  27. package/legacy/dist/src/apply/services/resolve-apply-inputs.d.ts +14 -0
  28. package/legacy/dist/src/generate/command.d.ts +18 -0
  29. package/legacy/dist/src/generate/controller/run-generate-components.d.ts +2 -0
  30. package/legacy/dist/src/generate/controller/run-generate-tokens.d.ts +2 -0
  31. package/legacy/dist/src/generate/helpers/assert-file-exists.d.ts +1 -0
  32. package/legacy/dist/src/generate/helpers/normalize-component-for-cache.d.ts +6 -0
  33. package/legacy/dist/src/generate/helpers/parse-precomputed-cached-names.d.ts +1 -0
  34. package/legacy/dist/src/generate/helpers/print-fallback-instructions.d.ts +6 -0
  35. package/legacy/dist/src/generate/helpers/read-file-inline.d.ts +1 -0
  36. package/legacy/dist/src/generate/services/invoke-all-component-agents.d.ts +6 -0
  37. package/legacy/dist/src/generate/services/invoke-component-agent.d.ts +36 -0
  38. package/legacy/dist/src/generate/services/load-accepted-names.d.ts +1 -0
  39. package/legacy/dist/src/generate/services/resolve-component-cache.d.ts +13 -0
  40. package/legacy/dist/src/generate/services/resolve-generate-agent.d.ts +9 -0
  41. package/legacy/dist/src/generate/services/show-generate-view.d.ts +2 -0
  42. package/legacy/dist/src/generate/services/verify-agent-binary.d.ts +2 -0
  43. package/legacy/dist/src/import/command.d.ts +1 -1
  44. package/legacy/dist/src/import/tui/WizardApp.d.ts +1 -2
  45. package/legacy/dist/src/index.js +2685 -2252
  46. package/legacy/dist/src/lib/pluralize.d.ts +1 -0
  47. package/legacy/dist/src/map-tokens/controller/run-map-tokens.d.ts +12 -0
  48. package/legacy/dist/src/map-tokens/services/render-map-tokens-result.d.ts +2 -0
  49. package/legacy/dist/src/map-tokens/services/resolve-token-name-paths.d.ts +8 -0
  50. package/legacy/package.json +1 -1
  51. package/package.json +2 -2
  52. package/dist/src/tui/import/steps/02-token-input/controls.d.ts +0 -11
  53. package/dist/src/tui/import/steps/02-token-input/logic.d.ts +0 -9
  54. package/dist/src/tui/import/steps/02-token-input/screen.d.ts +0 -8
  55. package/dist/src/tui/import/steps/02-token-input/validate-path.d.ts +0 -12
@@ -0,0 +1 @@
1
+ export declare function pluralize(count: number, singular: string, plural?: string): string;
@@ -0,0 +1,12 @@
1
+ export interface MapTokensOptions {
2
+ session?: string;
3
+ agent?: string;
4
+ model?: string;
5
+ printPrompt?: boolean;
6
+ cache?: boolean;
7
+ skipAgent?: boolean;
8
+ tokenMap?: string;
9
+ existingEntitiesPath?: string;
10
+ prompt?: string[];
11
+ }
12
+ export declare function runMapTokens(opts: MapTokensOptions): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import type { MapTokensViewResult } from '../tui/MapTokensView.js';
2
+ export declare function renderMapTokensResult(result: MapTokensViewResult): Promise<void>;
@@ -0,0 +1,8 @@
1
+ import type { DatabaseSync } from 'node:sqlite';
2
+ export declare function resolveTokenNamePaths(db: DatabaseSync, sessionId: string, tokenMapPath: string | undefined): Promise<{
3
+ tokenLeaves: Array<{
4
+ path: string;
5
+ type: string;
6
+ }>;
7
+ diagnostics: string[];
8
+ }>;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.35.1-dev-build-215f38d1.0",
3
+ "version": "2.35.1-dev-build-236b6909.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experience-design-system-cli",
3
- "version": "2.35.1-dev-build-215f38d1.0",
3
+ "version": "2.35.1-dev-build-236b6909.0",
4
4
  "description": "Contentful Experiences design system import CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -42,7 +42,7 @@
42
42
  "svelte": "^5.56.4",
43
43
  "ts-morph": "^27.0.2",
44
44
  "typescript": "^5.9.3",
45
- "@contentful/experience-design-system-types": "2.35.1-dev-build-215f38d1.0"
45
+ "@contentful/experience-design-system-types": "2.35.1-dev-build-236b6909.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@tsconfig/node24": "^24.0.4",
@@ -1,11 +0,0 @@
1
- export declare const TOKEN_INPUT_CONTROLS: readonly [{
2
- readonly keys: "Enter";
3
- readonly label: "Continue (skips if empty)";
4
- }, {
5
- readonly keys: "s";
6
- readonly label: "Skip";
7
- }, {
8
- readonly keys: "Esc/q";
9
- readonly label: "Back";
10
- }];
11
- export declare function useTokenInputControls(tokenPath: string, onSkip: () => void, onBack: () => void): void;
@@ -1,9 +0,0 @@
1
- interface Key {
2
- escape: boolean;
3
- ctrl: boolean;
4
- meta: boolean;
5
- }
6
- export declare function shouldGoBack(value: string, input: string, key: Key): boolean;
7
- export declare function shouldSkip(value: string, input: string, key: Key): boolean;
8
- export declare function toTokenPath(value: string): string | null;
9
- export {};
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface TokenInputScreenProps {
3
- onConfirm: (tokensPath: string) => void;
4
- onSkip: () => void;
5
- onBack: () => void;
6
- }
7
- export declare function TokenInputScreen({ onConfirm, onSkip, onBack }: TokenInputScreenProps): React.ReactElement;
8
- export {};
@@ -1,12 +0,0 @@
1
- export interface TokenPathFailure {
2
- error: string;
3
- resolvedPath: string;
4
- }
5
- type TokenPathCheck = {
6
- ok: true;
7
- path: string;
8
- } | ({
9
- ok: false;
10
- } & TokenPathFailure);
11
- export declare function validateTokenPath(rawPath: string): TokenPathCheck;
12
- export {};