@mediadatafusion/pi-workflow-suite 0.0.6 → 0.0.8
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 +12 -0
- package/README.md +10 -8
- package/VERSION +1 -1
- package/package.json +113 -1
- package/scripts/build-package-export.mjs +11 -9
- package/scripts/check-clean-release-tree.sh +1 -1
- package/scripts/check-package-size.mjs +30 -0
- package/scripts/prepare-package-readme.mjs +89 -0
- package/docs/assets/mediadatafusion-logo.png +0 -0
- package/docs/assets/pi-workflow-suite-demo.gif +0 -0
- package/docs/assets/pi-workflow-suite-demo.mp4 +0 -0
- package/docs/assets/pi-workflow-suite-header.png +0 -0
- package/docs/assets/pi-workflow-suite-video-thumb.png +0 -0
- package/docs/assets/readme-link-commands.svg +0 -10
- package/docs/assets/readme-link-install.svg +0 -10
- package/docs/assets/readme-link-quick-start.svg +0 -10
- package/docs/assets/readme-link-settings.svg +0 -10
- package/docs/assets/screenshots/.gitkeep +0 -1
- package/docs/assets/screenshots/00-mission-home.png +0 -0
- package/docs/assets/screenshots/01-startup-Logo.png +0 -0
- package/docs/assets/screenshots/02-theme-settings.png +0 -0
- package/docs/assets/screenshots/03-GlobalSafetySettings.png +0 -0
- package/docs/assets/screenshots/04-SharedSubAgentsSettings.png +0 -0
- package/docs/assets/screenshots/05-mission-mode.png +0 -0
- package/docs/assets/screenshots/06-diagram-mermaid.png +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable public releases will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.0.8] - 2026-05-23
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Restored package README media rendering for npm and pi.dev while keeping promotional media assets out of the install payload.
|
|
10
|
+
|
|
11
|
+
## [0.0.7] - 2026-05-23
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- Reduced published package size by excluding promotional media assets from the install payload while preserving package gallery and README media presentation.
|
|
16
|
+
|
|
5
17
|
## [0.0.6] - 2026-05-23
|
|
6
18
|
|
|
7
19
|
### Changed
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
[](#installation) [](#quick-start) [](#core-commands) [](#settings-reference)
|
|
6
6
|
|
|
7
|
-
**Workflow Suite Version:** `v0.0.
|
|
7
|
+
**Workflow Suite Version:** `v0.0.8`
|
|
8
8
|
|
|
9
9
|
## Overview
|
|
10
10
|
|
|
@@ -1171,15 +1171,15 @@ See `docs/TROUBLESHOOTING.md` for detailed diagnostics.
|
|
|
1171
1171
|
|
|
1172
1172
|
## Versioning
|
|
1173
1173
|
|
|
1174
|
-
The current public preview version is `v0.0.
|
|
1174
|
+
The current public preview version is `v0.0.8`. Version information is intentionally aligned across:
|
|
1175
1175
|
|
|
1176
|
-
- `VERSION` (`v0.0.
|
|
1177
|
-
- `package.json` (`0.0.
|
|
1176
|
+
- `VERSION` (`v0.0.8`),
|
|
1177
|
+
- `package.json` (`0.0.8`),
|
|
1178
1178
|
- `package-lock.json`,
|
|
1179
1179
|
- this README,
|
|
1180
1180
|
- Workflow Suite settings/about output.
|
|
1181
1181
|
|
|
1182
|
-
|
|
1182
|
+
Published package versions should stay aligned across repository metadata, package metadata, documentation, and Workflow Suite settings/about output. Use `1.0.0` only when the install path, mode behavior, commands, settings, scripts, and packaging are ready to be treated as a public contract.
|
|
1183
1183
|
|
|
1184
1184
|
## License, Trademarks, Security, Support, And Contributions
|
|
1185
1185
|
|
|
@@ -1206,18 +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.
|
|
1209
|
+
The current release candidate is prepared as `@mediadatafusion/pi-workflow-suite@0.0.8`.
|
|
1210
|
+
|
|
1211
|
+
Private DEV, private main, and the clean public release repository should carry the same approved package version before publication.
|
|
1210
1212
|
|
|
1211
1213
|
After npm publication, install with:
|
|
1212
1214
|
|
|
1213
1215
|
```bash
|
|
1214
|
-
pi install npm:@mediadatafusion/pi-workflow-suite@0.0.
|
|
1216
|
+
pi install npm:@mediadatafusion/pi-workflow-suite@0.0.8
|
|
1215
1217
|
```
|
|
1216
1218
|
|
|
1217
1219
|
After npm publication, temporary evaluation in a current Pi run can use:
|
|
1218
1220
|
|
|
1219
1221
|
```bash
|
|
1220
|
-
pi -e npm:@mediadatafusion/pi-workflow-suite@0.0.
|
|
1222
|
+
pi -e npm:@mediadatafusion/pi-workflow-suite@0.0.8
|
|
1221
1223
|
```
|
|
1222
1224
|
|
|
1223
1225
|
## Planned Enhancements
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
v0.0.
|
|
1
|
+
v0.0.8
|
package/package.json
CHANGED
|
@@ -1 +1,113 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "@mediadatafusion/pi-workflow-suite",
|
|
3
|
+
"version": "0.0.8",
|
|
4
|
+
"description": "Structured workflow orchestration suite for Pi with Standard, Plan, Mission, compaction, diagrams, web access, repo lock, and safety gates.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/MediaDataFusion/pi-workflow-suite.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/MediaDataFusion/pi-workflow-suite#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/MediaDataFusion/pi-workflow-suite/issues"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"pi-package",
|
|
16
|
+
"pi-extension",
|
|
17
|
+
"pi-skill",
|
|
18
|
+
"pi-theme",
|
|
19
|
+
"pi-prompt",
|
|
20
|
+
"pi",
|
|
21
|
+
"pi-coding-agent",
|
|
22
|
+
"workflow",
|
|
23
|
+
"workflows",
|
|
24
|
+
"workflow-suite",
|
|
25
|
+
"workflow-orchestration",
|
|
26
|
+
"agent-workflow",
|
|
27
|
+
"plan-mode",
|
|
28
|
+
"mission-mode",
|
|
29
|
+
"standard-mode",
|
|
30
|
+
"subagents",
|
|
31
|
+
"skills",
|
|
32
|
+
"prompts",
|
|
33
|
+
"extensions",
|
|
34
|
+
"themes"
|
|
35
|
+
],
|
|
36
|
+
"type": "module",
|
|
37
|
+
"files": [
|
|
38
|
+
"extensions/",
|
|
39
|
+
"skills/",
|
|
40
|
+
"agents/",
|
|
41
|
+
"config/",
|
|
42
|
+
"themes/",
|
|
43
|
+
"scripts/install-to-live.sh",
|
|
44
|
+
"scripts/verify-live.sh",
|
|
45
|
+
"scripts/audit-live.sh",
|
|
46
|
+
"scripts/quarantine-live-junk.sh",
|
|
47
|
+
"scripts/backup-live.sh",
|
|
48
|
+
"scripts/audit-settings.sh",
|
|
49
|
+
"scripts/bootstrap-project.sh",
|
|
50
|
+
"scripts/check-clean-release-tree.sh",
|
|
51
|
+
"scripts/check-package-size.mjs",
|
|
52
|
+
"scripts/prepare-package-readme.mjs",
|
|
53
|
+
"scripts/build-package-export.mjs",
|
|
54
|
+
"README.md",
|
|
55
|
+
"LICENSE.md",
|
|
56
|
+
"NOTICE",
|
|
57
|
+
"TRADEMARKS.md",
|
|
58
|
+
"CHANGELOG.md",
|
|
59
|
+
"SECURITY.md",
|
|
60
|
+
"SUPPORT.md",
|
|
61
|
+
"CONTRIBUTING.md",
|
|
62
|
+
"VERSION",
|
|
63
|
+
"package-lock.json"
|
|
64
|
+
],
|
|
65
|
+
"pi": {
|
|
66
|
+
"extensions": [
|
|
67
|
+
"./extensions/workflow-modes.ts",
|
|
68
|
+
"./extensions/subagent/index.ts"
|
|
69
|
+
],
|
|
70
|
+
"skills": [
|
|
71
|
+
"./skills"
|
|
72
|
+
],
|
|
73
|
+
"prompts": [
|
|
74
|
+
"./config/prompts"
|
|
75
|
+
],
|
|
76
|
+
"themes": [
|
|
77
|
+
"./themes"
|
|
78
|
+
],
|
|
79
|
+
"image": "https://cdn.jsdelivr.net/npm/@mediadatafusion/pi-workflow-suite@0.0.6/docs/assets/pi-workflow-suite-header.png",
|
|
80
|
+
"video": "https://cdn.jsdelivr.net/npm/@mediadatafusion/pi-workflow-suite@0.0.6/docs/assets/pi-workflow-suite-demo.mp4"
|
|
81
|
+
},
|
|
82
|
+
"peerDependencies": {
|
|
83
|
+
"@earendil-works/pi-agent-core": "*",
|
|
84
|
+
"@earendil-works/pi-ai": "*",
|
|
85
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
86
|
+
"@earendil-works/pi-tui": "*",
|
|
87
|
+
"typebox": "*"
|
|
88
|
+
},
|
|
89
|
+
"dependencies": {
|
|
90
|
+
"@mermaid-js/mermaid-cli": "^11.14.0",
|
|
91
|
+
"beautiful-mermaid": "^1.1.3",
|
|
92
|
+
"sharp": "^0.34.5"
|
|
93
|
+
},
|
|
94
|
+
"private": false,
|
|
95
|
+
"devDependencies": {
|
|
96
|
+
"@earendil-works/pi-agent-core": "^0.74.0",
|
|
97
|
+
"@earendil-works/pi-ai": "^0.74.0",
|
|
98
|
+
"@earendil-works/pi-coding-agent": "^0.74.0",
|
|
99
|
+
"@earendil-works/pi-tui": "^0.74.0",
|
|
100
|
+
"@types/node": "^25.6.2",
|
|
101
|
+
"typebox": "^1.1.38",
|
|
102
|
+
"typescript": "^6.0.3"
|
|
103
|
+
},
|
|
104
|
+
"scripts": {
|
|
105
|
+
"check:ts": "tsc --noEmit --noCheck",
|
|
106
|
+
"typecheck": "tsc --noEmit",
|
|
107
|
+
"validate": "npm run check:ts && ./scripts/check-clean-release-tree.sh && npm run check:package-size && git diff --check",
|
|
108
|
+
"check:package-size": "node scripts/check-package-size.mjs",
|
|
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"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -39,18 +39,20 @@ function parseArgs(argv) {
|
|
|
39
39
|
return args;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
const mediaVersion = '0.0.6';
|
|
43
|
+
|
|
44
|
+
function mediaCdn(assetPath) {
|
|
45
|
+
return `https://cdn.jsdelivr.net/npm/@mediadatafusion/pi-workflow-suite@${mediaVersion}/${assetPath}`;
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
function buildPackageReadme(sourceReadme, version) {
|
|
47
49
|
const headerBlock = `# Pi Workflow Suite\n\n${
|
|
48
|
-
`})`
|
|
49
51
|
}\n\n${[
|
|
50
|
-
`[})](#installation)`,
|
|
53
|
+
`[})](#quick-start)`,
|
|
54
|
+
`[})](#core-commands)`,
|
|
55
|
+
`[})](#settings-reference)`,
|
|
54
56
|
].join(' ')}\n\n**Workflow Suite Version:** `;
|
|
55
57
|
|
|
56
58
|
let readme = sourceReadme.replace(
|
|
@@ -58,7 +60,7 @@ function buildPackageReadme(sourceReadme, version) {
|
|
|
58
60
|
headerBlock,
|
|
59
61
|
);
|
|
60
62
|
|
|
61
|
-
const packageMediaBlock = `## Quick Demo\n\nSee Pi Workflow Suite in action: structured workflow modes, settings, runtime status, and guided execution inside Pi.\n\n[})](${mediaCdn('docs/assets/pi-workflow-suite-demo.mp4')})\n\n## Screenshots\n\n${[
|
|
62
64
|
['Pi Workflow Suite Mission Home with workflow graphs', 'docs/assets/screenshots/00-mission-home.png'],
|
|
63
65
|
['Pi Workflow Suite startup logo', 'docs/assets/screenshots/01-startup-Logo.png'],
|
|
64
66
|
['Workflow Suite theme settings', 'docs/assets/screenshots/02-theme-settings.png'],
|
|
@@ -66,7 +68,7 @@ function buildPackageReadme(sourceReadme, version) {
|
|
|
66
68
|
['Workflow Suite shared sub-agent settings', 'docs/assets/screenshots/04-SharedSubAgentsSettings.png'],
|
|
67
69
|
['Mission Mode milestone progress', 'docs/assets/screenshots/05-mission-mode.png'],
|
|
68
70
|
['Workflow Suite Mermaid diagram output', 'docs/assets/screenshots/06-diagram-mermaid.png'],
|
|
69
|
-
].map(([alt, path]) => ` => `})`).join('\n\n')}\n\n`;
|
|
70
72
|
|
|
71
73
|
readme = readme.replace(/## Quick Demo[\s\S]*?## Contents\n/, `${packageMediaBlock}## Contents\n`);
|
|
72
74
|
return readme;
|
|
@@ -18,7 +18,7 @@ if [[ -e .cursor && -n "$(git ls-files .cursor)" ]]; then report '.cursor/ must
|
|
|
18
18
|
|
|
19
19
|
while IFS= read -r path; do
|
|
20
20
|
case "$path" in
|
|
21
|
-
agents/*|config/*|extensions/*|skills/*|docs/assets/*|themes/*|scripts/install-to-live.sh|scripts/verify-live.sh|scripts/audit-live.sh|scripts/quarantine-live-junk.sh|scripts/backup-live.sh|scripts/audit-settings.sh|scripts/bootstrap-project.sh|scripts/check-clean-release-tree.sh|scripts/build-package-export.mjs|README.md|CHANGELOG.md|CONTRIBUTING.md|LICENSE.md|NOTICE|SECURITY.md|SUPPORT.md|TRADEMARKS.md|VERSION|package.json|package-lock.json|tsconfig.json|.gitignore)
|
|
21
|
+
agents/*|config/*|extensions/*|skills/*|docs/assets/*|themes/*|scripts/install-to-live.sh|scripts/verify-live.sh|scripts/audit-live.sh|scripts/quarantine-live-junk.sh|scripts/backup-live.sh|scripts/audit-settings.sh|scripts/bootstrap-project.sh|scripts/check-clean-release-tree.sh|scripts/check-package-size.mjs|scripts/prepare-package-readme.mjs|scripts/build-package-export.mjs|README.md|CHANGELOG.md|CONTRIBUTING.md|LICENSE.md|NOTICE|SECURITY.md|SUPPORT.md|TRADEMARKS.md|VERSION|package.json|package-lock.json|tsconfig.json|.gitignore)
|
|
22
22
|
;;
|
|
23
23
|
docs/*)
|
|
24
24
|
report "non-asset docs file is not allowed: $path"
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { spawnSync } from 'node:child_process';
|
|
3
|
+
|
|
4
|
+
const maxTarballBytes = 1_000_000;
|
|
5
|
+
const forbiddenPrefix = 'docs/assets/';
|
|
6
|
+
|
|
7
|
+
const result = spawnSync('npm', ['pack', '--dry-run', '--json'], {
|
|
8
|
+
encoding: 'utf8',
|
|
9
|
+
stdio: ['ignore', 'pipe', 'inherit'],
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
if (result.status !== 0) {
|
|
13
|
+
process.exit(result.status ?? 1);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const [pack] = JSON.parse(result.stdout);
|
|
17
|
+
const forbidden = pack.files.filter((file) => file.path.startsWith(forbiddenPrefix));
|
|
18
|
+
|
|
19
|
+
if (forbidden.length > 0) {
|
|
20
|
+
console.error(`ERROR: package includes promotional assets under ${forbiddenPrefix}`);
|
|
21
|
+
for (const file of forbidden) console.error(`- ${file.path}`);
|
|
22
|
+
process.exit(1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (pack.size > maxTarballBytes) {
|
|
26
|
+
console.error(`ERROR: package tarball is ${pack.size} bytes, above ${maxTarballBytes} bytes`);
|
|
27
|
+
process.exit(1);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
console.log(`OK: package tarball ${pack.size} bytes, ${pack.files.length} files, no ${forbiddenPrefix} entries`);
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { existsSync, readFileSync, renameSync, writeFileSync } from 'node:fs';
|
|
3
|
+
import { dirname, resolve } from 'node:path';
|
|
4
|
+
import { fileURLToPath } from 'node:url';
|
|
5
|
+
|
|
6
|
+
const scriptDir = dirname(fileURLToPath(import.meta.url));
|
|
7
|
+
const repoRoot = resolve(scriptDir, '..');
|
|
8
|
+
const readmePath = resolve(repoRoot, 'README.md');
|
|
9
|
+
const backupPath = resolve(repoRoot, '.package-readme.source.md');
|
|
10
|
+
const mediaVersion = '0.0.6';
|
|
11
|
+
|
|
12
|
+
function mediaCdn(assetPath) {
|
|
13
|
+
return `https://cdn.jsdelivr.net/npm/@mediadatafusion/pi-workflow-suite@${mediaVersion}/${assetPath}`;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function buildPackageReadme(sourceReadme) {
|
|
17
|
+
const headerBlock = `# Pi Workflow Suite\n\n${
|
|
18
|
+
`})`
|
|
19
|
+
}\n\n${[
|
|
20
|
+
`[})](#installation)`,
|
|
21
|
+
`[})](#quick-start)`,
|
|
22
|
+
`[})](#core-commands)`,
|
|
23
|
+
`[})](#settings-reference)`,
|
|
24
|
+
].join(' ')}\n\n**Workflow Suite Version:** `;
|
|
25
|
+
|
|
26
|
+
let readme = sourceReadme.replace(
|
|
27
|
+
/^# Pi Workflow Suite\n\n<p align="center">[\s\S]*?\*\*Workflow Suite Version:\*\* /,
|
|
28
|
+
headerBlock,
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
const packageMediaBlock = `## Quick Demo\n\nSee Pi Workflow Suite in action: structured workflow modes, settings, runtime status, and guided execution inside Pi.\n\n[})](${mediaCdn('docs/assets/pi-workflow-suite-demo.mp4')})\n\n## Screenshots\n\n${[
|
|
32
|
+
['Pi Workflow Suite Mission Home with workflow graphs', 'docs/assets/screenshots/00-mission-home.png'],
|
|
33
|
+
['Pi Workflow Suite startup logo', 'docs/assets/screenshots/01-startup-Logo.png'],
|
|
34
|
+
['Workflow Suite theme settings', 'docs/assets/screenshots/02-theme-settings.png'],
|
|
35
|
+
['Workflow Suite global safety settings', 'docs/assets/screenshots/03-GlobalSafetySettings.png'],
|
|
36
|
+
['Workflow Suite shared sub-agent settings', 'docs/assets/screenshots/04-SharedSubAgentsSettings.png'],
|
|
37
|
+
['Mission Mode milestone progress', 'docs/assets/screenshots/05-mission-mode.png'],
|
|
38
|
+
['Workflow Suite Mermaid diagram output', 'docs/assets/screenshots/06-diagram-mermaid.png'],
|
|
39
|
+
].map(([alt, path]) => `})`).join('\n\n')}\n\n`;
|
|
40
|
+
|
|
41
|
+
return readme.replace(/## Quick Demo[\s\S]*?## Contents\n/, `${packageMediaBlock}## Contents\n`);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function assertPackageReadme(readme) {
|
|
45
|
+
const required = [
|
|
46
|
+
mediaCdn('docs/assets/pi-workflow-suite-header.png'),
|
|
47
|
+
mediaCdn('docs/assets/pi-workflow-suite-demo.gif'),
|
|
48
|
+
mediaCdn('docs/assets/pi-workflow-suite-demo.mp4'),
|
|
49
|
+
mediaCdn('docs/assets/screenshots/00-mission-home.png'),
|
|
50
|
+
mediaCdn('docs/assets/screenshots/06-diagram-mermaid.png'),
|
|
51
|
+
'[![Watch the Pi Workflow Suite quick demo]',
|
|
52
|
+
];
|
|
53
|
+
for (const needle of required) {
|
|
54
|
+
if (!readme.includes(needle)) throw new Error(`package README missing ${needle}`);
|
|
55
|
+
}
|
|
56
|
+
if (readme.includes('https://github.com/user-attachments/assets/9782fefc-5349-4cc9-b4ea-20b4c916a8b9')) {
|
|
57
|
+
throw new Error('package README still contains raw GitHub demo attachment URL');
|
|
58
|
+
}
|
|
59
|
+
if (readme.includes('src="docs/assets/screenshots/') || readme.includes('](docs/assets/screenshots/')) {
|
|
60
|
+
throw new Error('package README still contains source-relative screenshot paths');
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function apply() {
|
|
65
|
+
if (existsSync(backupPath)) throw new Error('README backup already exists; run restore first');
|
|
66
|
+
const sourceReadme = readFileSync(readmePath, 'utf8');
|
|
67
|
+
const packageReadme = buildPackageReadme(sourceReadme);
|
|
68
|
+
assertPackageReadme(packageReadme);
|
|
69
|
+
writeFileSync(backupPath, sourceReadme);
|
|
70
|
+
writeFileSync(readmePath, packageReadme);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function restore() {
|
|
74
|
+
if (!existsSync(backupPath)) return;
|
|
75
|
+
renameSync(backupPath, readmePath);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function check() {
|
|
79
|
+
assertPackageReadme(readFileSync(readmePath, 'utf8'));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const command = process.argv[2];
|
|
83
|
+
if (command === 'apply') apply();
|
|
84
|
+
else if (command === 'restore') restore();
|
|
85
|
+
else if (command === 'check') check();
|
|
86
|
+
else {
|
|
87
|
+
console.error('Usage: prepare-package-readme.mjs apply|restore|check');
|
|
88
|
+
process.exit(1);
|
|
89
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="144" height="42" viewBox="0 0 144 42" role="img" aria-label="Commands">
|
|
2
|
-
<defs>
|
|
3
|
-
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
|
|
4
|
-
<stop offset="0" stop-color="#781d6b"/>
|
|
5
|
-
<stop offset="1" stop-color="#217598"/>
|
|
6
|
-
</linearGradient>
|
|
7
|
-
</defs>
|
|
8
|
-
<rect x="1" y="1" width="142" height="40" rx="20" fill="url(#g)" stroke="#1a3c57" stroke-width="2"/>
|
|
9
|
-
<text x="72.0" y="27" text-anchor="middle" font-family="Arial, Helvetica, sans-serif" font-size="16" font-weight="700" fill="#ffffff">Commands</text>
|
|
10
|
-
</svg>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="112" height="42" viewBox="0 0 112 42" role="img" aria-label="Install">
|
|
2
|
-
<defs>
|
|
3
|
-
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
|
|
4
|
-
<stop offset="0" stop-color="#781d6b"/>
|
|
5
|
-
<stop offset="1" stop-color="#217598"/>
|
|
6
|
-
</linearGradient>
|
|
7
|
-
</defs>
|
|
8
|
-
<rect x="1" y="1" width="110" height="40" rx="20" fill="url(#g)" stroke="#1a3c57" stroke-width="2"/>
|
|
9
|
-
<text x="56.0" y="27" text-anchor="middle" font-family="Arial, Helvetica, sans-serif" font-size="16" font-weight="700" fill="#ffffff">Install</text>
|
|
10
|
-
</svg>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="156" height="42" viewBox="0 0 156 42" role="img" aria-label="Quick Start">
|
|
2
|
-
<defs>
|
|
3
|
-
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
|
|
4
|
-
<stop offset="0" stop-color="#781d6b"/>
|
|
5
|
-
<stop offset="1" stop-color="#217598"/>
|
|
6
|
-
</linearGradient>
|
|
7
|
-
</defs>
|
|
8
|
-
<rect x="1" y="1" width="154" height="40" rx="20" fill="url(#g)" stroke="#1a3c57" stroke-width="2"/>
|
|
9
|
-
<text x="78.0" y="27" text-anchor="middle" font-family="Arial, Helvetica, sans-serif" font-size="16" font-weight="700" fill="#ffffff">Quick Start</text>
|
|
10
|
-
</svg>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="126" height="42" viewBox="0 0 126 42" role="img" aria-label="Settings">
|
|
2
|
-
<defs>
|
|
3
|
-
<linearGradient id="g" x1="0" y1="0" x2="1" y2="1">
|
|
4
|
-
<stop offset="0" stop-color="#781d6b"/>
|
|
5
|
-
<stop offset="1" stop-color="#217598"/>
|
|
6
|
-
</linearGradient>
|
|
7
|
-
</defs>
|
|
8
|
-
<rect x="1" y="1" width="124" height="40" rx="20" fill="url(#g)" stroke="#1a3c57" stroke-width="2"/>
|
|
9
|
-
<text x="63.0" y="27" text-anchor="middle" font-family="Arial, Helvetica, sans-serif" font-size="16" font-weight="700" fill="#ffffff">Settings</text>
|
|
10
|
-
</svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|