@playcademy/vite-plugin 0.1.32-alpha.1 → 0.1.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.
@@ -2,12 +2,7 @@
2
2
  * Mode switching functionality
3
3
  * Handles toggling between platform and standalone modes
4
4
  */
5
- import type { ResolvedConfig } from 'vite';
6
- import type { PlatformModeOptions } from './platform-mode';
7
- export interface ModeSwitcherOptions {
8
- viteConfig: ResolvedConfig;
9
- platformModeOptions: PlatformModeOptions;
10
- }
5
+ import type { ModeSwitcherOptions } from '../types';
11
6
  /**
12
7
  * Toggle between platform and standalone modes
13
8
  */
@@ -3,21 +3,7 @@
3
3
  * Full Playcademy platform: sandbox + backend + shell wrapper
4
4
  */
5
5
  import type { ResolvedConfig, ViteDevServer } from 'vite';
6
- export interface PlatformModeOptions {
7
- startSandbox: boolean;
8
- verbose: boolean;
9
- logLevel: 'debug' | 'info' | 'warn' | 'error';
10
- sandboxUrl: string;
11
- recreateDb: boolean;
12
- seed: boolean;
13
- memoryOnly: boolean;
14
- databasePath?: string;
15
- realtimeEnabled: boolean;
16
- realtimePort?: number;
17
- showBadge: boolean;
18
- preferredBackendPort: number;
19
- configPath?: string;
20
- }
6
+ import type { PlatformModeOptions } from '../types';
21
7
  /**
22
8
  * Configure server in platform mode (sandbox + backend + shell)
23
9
  */
@@ -3,7 +3,7 @@
3
3
  * Handles recreating the sandbox database on-demand
4
4
  */
5
5
  import type { ResolvedConfig } from 'vite';
6
- import type { PlatformModeOptions } from './platform-mode';
6
+ import type { PlatformModeOptions } from '../types';
7
7
  export interface RecreateSandboxDatabaseOptions {
8
8
  viteConfig: ResolvedConfig;
9
9
  platformModeOptions: PlatformModeOptions;
@@ -3,10 +3,7 @@
3
3
  * Backend only, no sandbox or shell wrapper
4
4
  */
5
5
  import type { ResolvedConfig, ViteDevServer } from 'vite';
6
- export interface StandaloneModeOptions {
7
- preferredPort: number;
8
- configPath?: string;
9
- }
6
+ import type { StandaloneModeOptions } from '../types';
10
7
  /**
11
8
  * Configure server in standalone mode (backend only, no sandbox or shell)
12
9
  */
@@ -2,4 +2,4 @@
2
2
  * Type exports for the Playcademy Vite Plugin
3
3
  */
4
4
  export type { PlaycademyExportOptions, PlaycademySandboxOptions, PlaycademyShellOptions, PlaycademyPluginOptions, PlaycademyMode, } from './options';
5
- export type { ResolvedPluginOptions, PluginContext, PlaycademyOutputData, ProjectInfo, SandboxManager, CliServerManager, CliDevServerOptions, } from './internal';
5
+ export type { ResolvedPluginOptions, PluginContext, PlaycademyOutputData, ProjectInfo, SandboxManager, CliServerManager, CliDevServerOptions, PlatformModeOptions, StandaloneModeOptions, ModeSwitcherOptions, } from './internal';
@@ -80,3 +80,35 @@ export interface CliDevServerOptions {
80
80
  platformUrl?: string;
81
81
  configPath?: string;
82
82
  }
83
+ /**
84
+ * Options for platform mode (sandbox + backend + shell)
85
+ */
86
+ export interface PlatformModeOptions {
87
+ startSandbox: boolean;
88
+ verbose: boolean;
89
+ logLevel: 'debug' | 'info' | 'warn' | 'error';
90
+ sandboxUrl: string;
91
+ recreateDb: boolean;
92
+ seed: boolean;
93
+ memoryOnly: boolean;
94
+ databasePath?: string;
95
+ realtimeEnabled: boolean;
96
+ realtimePort?: number;
97
+ showBadge: boolean;
98
+ preferredBackendPort: number;
99
+ configPath?: string;
100
+ }
101
+ /**
102
+ * Options for standalone mode (backend only)
103
+ */
104
+ export interface StandaloneModeOptions {
105
+ preferredPort: number;
106
+ configPath?: string;
107
+ }
108
+ /**
109
+ * Options for mode switching
110
+ */
111
+ export interface ModeSwitcherOptions {
112
+ viteConfig: ResolvedConfig;
113
+ platformModeOptions: PlatformModeOptions;
114
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playcademy/vite-plugin",
3
- "version": "0.1.32-alpha.1",
3
+ "version": "0.1.33",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "archiver": "^7.0.1",
23
23
  "picocolors": "^1.1.1",
24
- "playcademy": "0.14.19"
24
+ "playcademy": "0.14.20"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@inquirer/prompts": "^7.8.6",