@stackwright-pro/launch-stackwright-pro 0.4.0-alpha.86 → 0.4.0-alpha.87

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackwright-pro/launch-stackwright-pro",
3
- "version": "0.4.0-alpha.86",
3
+ "version": "0.4.0-alpha.87",
4
4
  "description": "Launch a new Stackwright Pro project with OpenAPI integration, auth, and the otter raft",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {
@@ -32,11 +32,11 @@
32
32
  "commander": "^15.0.0",
33
33
  "fs-extra": "^11.3.5",
34
34
  "js-yaml": "^4.1.0",
35
- "@stackwright-pro/openapi": "0.3.0-alpha.23",
36
- "@stackwright-pro/mcp": "0.2.0-alpha.52",
37
- "@stackwright-pro/otters": "1.0.0-alpha.39",
38
35
  "@stackwright-pro/auth-nextjs": "0.2.0-alpha.13",
36
+ "@stackwright-pro/mcp": "0.2.0-alpha.53",
39
37
  "@stackwright-pro/auth": "0.2.0-alpha.11",
38
+ "@stackwright-pro/otters": "1.0.0-alpha.40",
39
+ "@stackwright-pro/openapi": "0.3.0-alpha.23",
40
40
  "@stackwright-pro/scaffold-hooks": "1.0.0-alpha.14"
41
41
  },
42
42
  "devDependencies": {
@@ -37,7 +37,23 @@ async function main() {
37
37
  }
38
38
 
39
39
  const configContent = fs.readFileSync(configPath, 'utf-8');
40
- const fullConfig = parseStackwrightYml(configContent);
40
+ let fullConfig = parseStackwrightYml(configContent);
41
+
42
+ // --- Interim: merge theme file into stackwright.yml before prebuild ---
43
+ // Theme Otter writes stackwright.theme.yml separately to avoid clobbering.
44
+ // Remove this block when @stackwright/build-scripts natively supports stackwright.theme.yml.
45
+ const themeConfigPath = path.join(projectRoot, 'stackwright.theme.yml');
46
+ let originalConfigContent = null;
47
+ if (fs.existsSync(themeConfigPath)) {
48
+ const themeContent = fs.readFileSync(themeConfigPath, 'utf-8');
49
+ const themeOverlay = yaml.load(themeContent, { schema: yaml.CORE_SCHEMA });
50
+ if (themeOverlay && typeof themeOverlay === 'object') {
51
+ originalConfigContent = configContent; // save for restore
52
+ Object.assign(fullConfig, themeOverlay);
53
+ fs.writeFileSync(configPath, yaml.dump(fullConfig, { lineWidth: -1, noRefs: true }));
54
+ console.log(' Merged stackwright.theme.yml -> stackwright.yml (interim shim)');
55
+ }
56
+ }
41
57
 
42
58
  // Assemble plugins
43
59
  const workflowPlugin = createWorkflowPlugin();
@@ -72,7 +88,12 @@ async function main() {
72
88
  console.log('✓ Generated src/auth-config.json');
73
89
  }
74
90
 
75
- console.log('✓ Prebuild complete!');
91
+ // Restore original stackwright.yml if we modified it during theme merge
92
+ if (originalConfigContent !== null) {
93
+ fs.writeFileSync(configPath, originalConfigContent);
94
+ }
95
+
96
+ console.log(' Prebuild complete!');
76
97
  }
77
98
 
78
99
  main().catch((err) => {
@@ -45,6 +45,9 @@ const PRO_CONTENT_TYPE_KEYS = [
45
45
  'alert_banner',
46
46
  // @stackwright-pro/workflow-components
47
47
  'workflow_mount',
48
+ // @stackwright-pro/display-components — navigation
49
+ 'breadcrumb',
50
+ 'page_header_bar',
48
51
  ];
49
52
 
50
53
  // OSS content types that Pro otters augment with extra fields (e.g. `theme:`,