@mediadatafusion/pi-workflow-suite 0.0.8 → 0.0.9

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable public releases will be documented in this file.
4
4
 
5
+ ## [0.0.9] - 2026-05-23
6
+
7
+ ### Changed
8
+
9
+ - Restored package README media presentation for public package pages while preserving the reduced install payload.
10
+
5
11
  ## [0.0.8] - 2026-05-23
6
12
 
7
13
  ### Changed
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  [![Install](https://cdn.jsdelivr.net/npm/@mediadatafusion/pi-workflow-suite@0.0.6/docs/assets/readme-link-install.svg)](#installation) [![Quick Start](https://cdn.jsdelivr.net/npm/@mediadatafusion/pi-workflow-suite@0.0.6/docs/assets/readme-link-quick-start.svg)](#quick-start) [![Commands](https://cdn.jsdelivr.net/npm/@mediadatafusion/pi-workflow-suite@0.0.6/docs/assets/readme-link-commands.svg)](#core-commands) [![Settings](https://cdn.jsdelivr.net/npm/@mediadatafusion/pi-workflow-suite@0.0.6/docs/assets/readme-link-settings.svg)](#settings-reference)
6
6
 
7
- **Workflow Suite Version:** `v0.0.8`
7
+ **Workflow Suite Version:** `v0.0.9`
8
8
 
9
9
  ## Overview
10
10
 
@@ -1171,10 +1171,10 @@ See `docs/TROUBLESHOOTING.md` for detailed diagnostics.
1171
1171
 
1172
1172
  ## Versioning
1173
1173
 
1174
- The current public preview version is `v0.0.8`. Version information is intentionally aligned across:
1174
+ The current public preview version is `v0.0.9`. Version information is intentionally aligned across:
1175
1175
 
1176
- - `VERSION` (`v0.0.8`),
1177
- - `package.json` (`0.0.8`),
1176
+ - `VERSION` (`v0.0.9`),
1177
+ - `package.json` (`0.0.9`),
1178
1178
  - `package-lock.json`,
1179
1179
  - this README,
1180
1180
  - Workflow Suite settings/about output.
@@ -1206,20 +1206,20 @@ The intended package and repository identities are:
1206
1206
  https://github.com/MediaDataFusion/pi-workflow-suite
1207
1207
  ```
1208
1208
 
1209
- The current release candidate is prepared as `@mediadatafusion/pi-workflow-suite@0.0.8`.
1209
+ The current release candidate is prepared as `@mediadatafusion/pi-workflow-suite@0.0.9`.
1210
1210
 
1211
1211
  Private DEV, private main, and the clean public release repository should carry the same approved package version before publication.
1212
1212
 
1213
1213
  After npm publication, install with:
1214
1214
 
1215
1215
  ```bash
1216
- pi install npm:@mediadatafusion/pi-workflow-suite@0.0.8
1216
+ pi install npm:@mediadatafusion/pi-workflow-suite@0.0.9
1217
1217
  ```
1218
1218
 
1219
1219
  After npm publication, temporary evaluation in a current Pi run can use:
1220
1220
 
1221
1221
  ```bash
1222
- pi -e npm:@mediadatafusion/pi-workflow-suite@0.0.8
1222
+ pi -e npm:@mediadatafusion/pi-workflow-suite@0.0.9
1223
1223
  ```
1224
1224
 
1225
1225
  ## Planned Enhancements
package/VERSION CHANGED
@@ -1 +1 @@
1
- v0.0.8
1
+ v0.0.9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediadatafusion/pi-workflow-suite",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Structured workflow orchestration suite for Pi with Standard, Plan, Mission, compaction, diagrams, web access, repo lock, and safety gates.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -107,7 +107,10 @@
107
107
  "validate": "npm run check:ts && ./scripts/check-clean-release-tree.sh && npm run check:package-size && git diff --check",
108
108
  "check:package-size": "node scripts/check-package-size.mjs",
109
109
  "prepack": "node scripts/prepare-package-readme.mjs apply",
110
- "postpack": "node scripts/prepare-package-readme.mjs restore",
111
- "restore:package-readme": "node scripts/prepare-package-readme.mjs restore"
110
+ "postpack": "node scripts/prepare-package-readme.mjs restore --pack",
111
+ "restore:package-readme": "node scripts/prepare-package-readme.mjs restore",
112
+ "prepublishOnly": "node scripts/prepare-package-readme.mjs apply --publish",
113
+ "postpublish": "node scripts/prepare-package-readme.mjs restore --publish",
114
+ "check:package-readme": "node scripts/prepare-package-readme.mjs check"
112
115
  }
113
116
  }
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { existsSync, readFileSync, renameSync, writeFileSync } from 'node:fs';
2
+ import { existsSync, readFileSync, renameSync, unlinkSync, writeFileSync } from 'node:fs';
3
3
  import { dirname, resolve } from 'node:path';
4
4
  import { fileURLToPath } from 'node:url';
5
5
 
@@ -7,6 +7,7 @@ const scriptDir = dirname(fileURLToPath(import.meta.url));
7
7
  const repoRoot = resolve(scriptDir, '..');
8
8
  const readmePath = resolve(repoRoot, 'README.md');
9
9
  const backupPath = resolve(repoRoot, '.package-readme.source.md');
10
+ const publishMarkerPath = resolve(repoRoot, '.package-readme.publish');
10
11
  const mediaVersion = '0.0.6';
11
12
 
12
13
  function mediaCdn(assetPath) {
@@ -56,23 +57,48 @@ function assertPackageReadme(readme) {
56
57
  if (readme.includes('https://github.com/user-attachments/assets/9782fefc-5349-4cc9-b4ea-20b4c916a8b9')) {
57
58
  throw new Error('package README still contains raw GitHub demo attachment URL');
58
59
  }
60
+ if (readme.includes('<table>') || readme.includes('<img src="docs/assets/screenshots/')) {
61
+ throw new Error('package README still contains source screenshot table markup');
62
+ }
59
63
  if (readme.includes('src="docs/assets/screenshots/') || readme.includes('](docs/assets/screenshots/')) {
60
64
  throw new Error('package README still contains source-relative screenshot paths');
61
65
  }
62
66
  }
63
67
 
68
+ function looksPackageSafe(readme) {
69
+ try {
70
+ assertPackageReadme(readme);
71
+ return true;
72
+ } catch {
73
+ return false;
74
+ }
75
+ }
76
+
64
77
  function apply() {
78
+ const publishMode = process.argv.includes('--publish');
79
+ const currentReadme = readFileSync(readmePath, 'utf8');
80
+
81
+ if (looksPackageSafe(currentReadme)) {
82
+ if (publishMode) writeFileSync(publishMarkerPath, 'publish\n');
83
+ return;
84
+ }
85
+
65
86
  if (existsSync(backupPath)) throw new Error('README backup already exists; run restore first');
66
- const sourceReadme = readFileSync(readmePath, 'utf8');
67
- const packageReadme = buildPackageReadme(sourceReadme);
87
+ const packageReadme = buildPackageReadme(currentReadme);
68
88
  assertPackageReadme(packageReadme);
69
- writeFileSync(backupPath, sourceReadme);
89
+ writeFileSync(backupPath, currentReadme);
70
90
  writeFileSync(readmePath, packageReadme);
91
+ if (publishMode) writeFileSync(publishMarkerPath, 'publish\n');
71
92
  }
72
93
 
73
94
  function restore() {
74
- if (!existsSync(backupPath)) return;
75
- renameSync(backupPath, readmePath);
95
+ const packMode = process.argv.includes('--pack');
96
+ const publishMode = process.argv.includes('--publish');
97
+
98
+ if (packMode && existsSync(publishMarkerPath)) return;
99
+
100
+ if (existsSync(backupPath)) renameSync(backupPath, readmePath);
101
+ if ((publishMode || !packMode) && existsSync(publishMarkerPath)) unlinkSync(publishMarkerPath);
76
102
  }
77
103
 
78
104
  function check() {
@@ -84,6 +110,6 @@ if (command === 'apply') apply();
84
110
  else if (command === 'restore') restore();
85
111
  else if (command === 'check') check();
86
112
  else {
87
- console.error('Usage: prepare-package-readme.mjs apply|restore|check');
113
+ console.error('Usage: prepare-package-readme.mjs apply|restore|check [--publish|--pack]');
88
114
  process.exit(1);
89
115
  }