sitevision-cli 1.0.0-beta.32 → 1.0.0-beta.33

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 (108) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/LICENSE +21 -0
  3. package/dist/cli.js +56 -35
  4. package/dist/commands/TaskScreen.js +32 -0
  5. package/dist/commands/build.js +6 -185
  6. package/dist/commands/deploy.js +85 -238
  7. package/dist/commands/dev.js +34 -37
  8. package/dist/commands/info.js +1 -1
  9. package/dist/commands/setup-signing.js +43 -28
  10. package/dist/commands/sign.js +9 -86
  11. package/dist/commands/use-finish.js +17 -0
  12. package/dist/commands/watch.js +0 -8
  13. package/dist/components/AuthLoginScreen.js +27 -12
  14. package/dist/shell/ConfigForm.js +90 -29
  15. package/dist/shell/Frame.js +4 -1
  16. package/dist/shell/Help.js +2 -1
  17. package/dist/shell/Settings.js +59 -6
  18. package/dist/shell/Shell.js +124 -41
  19. package/dist/shell/Tabs.js +8 -2
  20. package/dist/shell/actions.js +0 -0
  21. package/dist/utils/config.js +46 -3
  22. package/dist/utils/create-app.js +9 -2
  23. package/dist/utils/i18n.js +36 -13
  24. package/dist/utils/jsonc.js +2 -1
  25. package/dist/utils/keychain.js +44 -4
  26. package/dist/utils/oauth2-auth.js +35 -7
  27. package/dist/utils/password-prompt.js +23 -3
  28. package/dist/utils/process-runner.js +4 -2
  29. package/dist/utils/project-detection.js +84 -33
  30. package/dist/utils/session-cookie-auth.js +5 -4
  31. package/dist/utils/sitevision-api.js +21 -14
  32. package/dist/utils/sitevision-scripts-runner.js +32 -15
  33. package/dist/utils/tasks.js +130 -64
  34. package/dist/utils/version-check.js +3 -3
  35. package/dist/utils/webpack-runner.js +6 -5
  36. package/dist/utils/workspace.js +41 -3
  37. package/dist/utils/zip.js +18 -19
  38. package/package.json +24 -3
  39. package/readme.md +11 -4
  40. package/dist/app.d.ts +0 -6
  41. package/dist/app.js +0 -321
  42. package/dist/cli.d.ts +0 -2
  43. package/dist/commands/build.d.ts +0 -12
  44. package/dist/commands/deploy.d.ts +0 -17
  45. package/dist/commands/dev.d.ts +0 -14
  46. package/dist/commands/index.d.ts +0 -4
  47. package/dist/commands/info.d.ts +0 -2
  48. package/dist/commands/setup-signing.d.ts +0 -2
  49. package/dist/commands/sign.d.ts +0 -14
  50. package/dist/commands/types.d.ts +0 -18
  51. package/dist/commands/watch.d.ts +0 -2
  52. package/dist/components/AnimatedLogo.d.ts +0 -10
  53. package/dist/components/AuthLoginScreen.d.ts +0 -21
  54. package/dist/components/DevPropertiesForm.d.ts +0 -11
  55. package/dist/components/DevPropertiesForm.js +0 -246
  56. package/dist/components/InfoScreen.d.ts +0 -7
  57. package/dist/components/InfoScreen.js +0 -14
  58. package/dist/components/KeychainPasswordChoice.d.ts +0 -8
  59. package/dist/components/KeychainPasswordChoice.js +0 -30
  60. package/dist/components/MainMenu.d.ts +0 -7
  61. package/dist/components/MainMenu.js +0 -88
  62. package/dist/components/PasswordInput.d.ts +0 -10
  63. package/dist/components/ProcessOutput.d.ts +0 -6
  64. package/dist/components/ProcessOutput.js +0 -30
  65. package/dist/components/SetupFlow.d.ts +0 -8
  66. package/dist/components/SetupFlow.js +0 -233
  67. package/dist/components/SigningPropertiesForm.d.ts +0 -7
  68. package/dist/components/SigningPropertiesForm.js +0 -38
  69. package/dist/components/StatusIndicator.d.ts +0 -8
  70. package/dist/components/TextInput.d.ts +0 -10
  71. package/dist/components/TextInput.js +0 -29
  72. package/dist/components/WelcomeScreen.d.ts +0 -14
  73. package/dist/scaffold/inquirer-stub.d.ts +0 -6
  74. package/dist/scaffold/register.d.ts +0 -1
  75. package/dist/shell/AddonPicker.d.ts +0 -14
  76. package/dist/shell/Changelog.d.ts +0 -10
  77. package/dist/shell/CommandPalette.d.ts +0 -12
  78. package/dist/shell/ConfigForm.d.ts +0 -42
  79. package/dist/shell/Frame.d.ts +0 -59
  80. package/dist/shell/Help.d.ts +0 -9
  81. package/dist/shell/Popover.d.ts +0 -12
  82. package/dist/shell/Settings.d.ts +0 -6
  83. package/dist/shell/Shell.d.ts +0 -11
  84. package/dist/shell/Tabs.d.ts +0 -36
  85. package/dist/shell/actions.d.ts +0 -49
  86. package/dist/types/index.d.ts +0 -295
  87. package/dist/utils/branding.d.ts +0 -28
  88. package/dist/utils/config.d.ts +0 -27
  89. package/dist/utils/create-app.d.ts +0 -53
  90. package/dist/utils/environments.d.ts +0 -20
  91. package/dist/utils/i18n.d.ts +0 -12
  92. package/dist/utils/jsonc.d.ts +0 -19
  93. package/dist/utils/keychain.d.ts +0 -15
  94. package/dist/utils/oauth2-auth.d.ts +0 -64
  95. package/dist/utils/password-prompt.d.ts +0 -14
  96. package/dist/utils/process-runner.d.ts +0 -32
  97. package/dist/utils/project-detection.d.ts +0 -210
  98. package/dist/utils/session-cookie-auth.d.ts +0 -35
  99. package/dist/utils/signing-password.d.ts +0 -12
  100. package/dist/utils/signing-step.d.ts +0 -15
  101. package/dist/utils/signing-step.js +0 -16
  102. package/dist/utils/sitevision-api.d.ts +0 -155
  103. package/dist/utils/sitevision-scripts-runner.d.ts +0 -84
  104. package/dist/utils/tasks.d.ts +0 -61
  105. package/dist/utils/version-check.d.ts +0 -9
  106. package/dist/utils/webpack-runner.d.ts +0 -76
  107. package/dist/utils/workspace.d.ts +0 -17
  108. package/dist/utils/zip.d.ts +0 -71
@@ -1,17 +0,0 @@
1
- import { type ProjectInfo } from './project-detection.js';
2
- import type { DevProperties } from '../types/index.js';
3
- /**
4
- * Find every Sitevision app below `root` (e.g. root/webapps/x, root/restapps/y).
5
- * Depth-limited walk that skips dependency and output folders.
6
- */
7
- export declare function discoverApps(root: string): ProjectInfo[];
8
- /** Group label for an app: its parent folder relative to the workspace root. */
9
- export declare function appGroup(root: string, appRoot: string): string;
10
- /** Missing something nothing can deploy without. */
11
- export declare function configIncomplete(dev?: Partial<DevProperties>): boolean;
12
- /**
13
- * True when a workspace has apps but nothing usable to deploy with: neither the
14
- * shared root config nor the apps themselves carry domain/site/username. The
15
- * shell then opens on Workspace settings instead of the first app.
16
- */
17
- export declare function needsOnboarding(root: string, apps: ProjectInfo[]): boolean;
@@ -1,71 +0,0 @@
1
- /**
2
- * Zip Utilities
3
- *
4
- * Handles creating zip archives for Sitevision app distribution.
5
- * Also handles webpack chunk organization.
6
- */
7
- /**
8
- * Create a zip archive of a directory.
9
- *
10
- * In-house, dependency-free implementation: walks the directory, deflates each
11
- * file with Node's built-in zlib, and assembles a standard ZIP container (local
12
- * file headers + central directory + end-of-central-directory record). This
13
- * removes the previous reliance on the external `zip`/`tar`/PowerShell binaries
14
- * and behaves identically across macOS, Linux, and Windows.
15
- *
16
- * Mirrors `zip -r <out> .` run from inside `sourceDir`: archive paths are
17
- * relative to `sourceDir`, use forward slashes, and directory entries are
18
- * emitted so empty directories are preserved.
19
- *
20
- * @param sourceDir - Directory to zip
21
- * @param outputPath - Path for the output zip file
22
- * @returns Promise resolving to the output path
23
- */
24
- export declare function createZip(sourceDir: string, outputPath: string): Promise<string>;
25
- /**
26
- * Create a zip of the build directory for deployment
27
- *
28
- * @param projectRoot - Project root directory
29
- * @param manifest - App manifest for naming
30
- * @returns Path to the created zip file
31
- */
32
- export declare function createBuildZip(projectRoot: string, appId: string): Promise<string>;
33
- /**
34
- * Copy webpack chunks to the resource directory
35
- *
36
- * Webpack outputs chunk files (chunk-*.js) in the build directory.
37
- * These need to be moved to a resource/ subdirectory for Sitevision.
38
- *
39
- * @param buildDir - The build directory containing webpack output
40
- */
41
- export declare function copyChunksToResources(buildDir: string): void;
42
- /**
43
- * Copy static files to build directory
44
- *
45
- * @param projectRoot - Project root directory
46
- */
47
- export declare function copyStaticToBuild(projectRoot: string): void;
48
- /**
49
- * Copy source files to build directory (for non-bundled apps)
50
- *
51
- * @param projectRoot - Project root directory
52
- */
53
- export declare function copySrcToBuild(projectRoot: string): void;
54
- /**
55
- * Clean the build directory
56
- *
57
- * @param projectRoot - Project root directory
58
- */
59
- export declare function cleanBuild(projectRoot: string): void;
60
- /**
61
- * Check if a zip file exists
62
- */
63
- export declare function zipExists(zipPath: string): boolean;
64
- /**
65
- * Get zip file size in bytes
66
- */
67
- export declare function getZipSize(zipPath: string): number;
68
- /**
69
- * Format file size for display
70
- */
71
- export declare function formatFileSize(bytes: number): string;