@shanyucoder/flowgrid 0.1.0 → 0.1.1

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/README.md CHANGED
@@ -65,7 +65,7 @@ FlowGrid **không** thay IDE hay model. Nó gắn **quy trình**, **định dạ
65
65
 
66
66
  ## Cài đặt
67
67
 
68
- **Yêu cầu:** Node.js **≥ 22**.
68
+ **Yêu cầu:** Node.js **≥ 24**.
69
69
 
70
70
  ### 1. Cài FlowGrid CLI
71
71
 
@@ -75,7 +75,15 @@ FlowGrid **không** thay IDE hay model. Nó gắn **quy trình**, **định dạ
75
75
  pnpm add -g @shanyucoder/flowgrid
76
76
  ```
77
77
 
78
- (Gõ trong bash, zsh, **PowerShell**, CMD hoặc Windows Terminal — cùng một lệnh. Tarball npm đã có `dist/` — **không** cần `--allow-build`.)
78
+ (Gõ trong bash, zsh, **PowerShell**, CMD hoặc Windows Terminal — cùng một lệnh. Tarball npm đã có `dist/` — **không** cần `--allow-build` cho package FlowGrid.)
79
+
80
+ **pnpm 10+** (lỗi `ERR_PNPM_IGNORED_BUILDS` / `esbuild`): cho phép build transitive một lần:
81
+
82
+ ```text
83
+ pnpm add -g @shanyucoder/flowgrid --allow-build=esbuild
84
+ ```
85
+
86
+ Cài dev trong repo: `pnpm add -D @shanyucoder/flowgrid --allow-build=esbuild` · hoặc `pnpm approve-builds` và chọn `esbuild`.
79
87
 
80
88
  **Chưa có bản trên npm** (hoặc cần bản Git cụ thể):
81
89
 
@@ -17,7 +17,16 @@ export function createServer() {
17
17
  return server;
18
18
  }
19
19
 
20
+ function assertNodeVersion() {
21
+ const major = Number(process.versions.node.split('.')[0]);
22
+ if (!Number.isFinite(major) || major < 24) {
23
+ console.error(`FlowGrid MCP requires Node.js ≥ 24 (current ${process.version}).`);
24
+ process.exit(1);
25
+ }
26
+ }
27
+
20
28
  export async function main() {
29
+ assertNodeVersion();
21
30
  const server = createServer();
22
31
  console.error("FlowGrid MCP Server connecting on stdio...");
23
32
  await server.connect(new StdioServerTransport());
package/bin/flowgrid.mjs CHANGED
@@ -21,7 +21,18 @@ import {
21
21
  promptHubRoot,
22
22
  } from './lib/init-scaffold.mjs';
23
23
 
24
+ function assertNodeVersion() {
25
+ const major = Number(process.versions.node.split('.')[0]);
26
+ if (!Number.isFinite(major) || major < 24) {
27
+ console.error(
28
+ pc.red(`FlowGrid requires Node.js ≥ 24 (current ${process.version}). Upgrade Node, then retry.`),
29
+ );
30
+ process.exit(1);
31
+ }
32
+ }
33
+
24
34
  export async function main() {
35
+ assertNodeVersion();
25
36
  const args = process.argv.slice(2);
26
37
  if (args.includes('version') || args.includes('-v') || args.includes('--version')) {
27
38
  const pkgPath = path.resolve(new URL(import.meta.url).pathname, '../../package.json');
@@ -767,6 +778,9 @@ export async function main() {
767
778
  pkg.scripts['flowgrid:audit:flow'] = 'flowgrid audit flow';
768
779
  pkg.scripts['flowgrid:audit:api'] = 'flowgrid audit api';
769
780
  pkg.scripts['flowgrid:audit:testcase'] = 'flowgrid audit testcase';
781
+ pkg.scripts['flowgrid:audit:fe-be'] = 'flowgrid audit fe-be';
782
+ pkg.scripts['flowgrid:audit:scenario'] = 'flowgrid audit scenario';
783
+ pkg.scripts['flowgrid:audit:e2e'] = 'flowgrid audit e2e';
770
784
  pkg.scripts['flowgrid:audit:legacy'] = 'flowgrid audit legacy';
771
785
  pkg.scripts['flowgrid:harness-sync'] = 'flowgrid harness sync';
772
786
  pkg.scripts['flowgrid:harness-sync:full-docs'] = 'flowgrid harness sync --full-docs';
@@ -27,7 +27,7 @@ export function printAuditHelp() {
27
27
  ' flowgrid audit <kind> [engine args...]',
28
28
  ' flowgrid audit:<kind> [engine args...]',
29
29
  '',
30
- 'Kinds:',
30
+ 'Kinds (see docs/references/audit-commands.md):',
31
31
  ' spec bundle YAML gaps (--type pageType)',
32
32
  ' flow FLOW-*.md business process sections',
33
33
  ' api API bundle / 01-backend-spec gaps',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shanyucoder/flowgrid",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Unified Local MCP Toolkit (Graph, DNA, Docs, Test, Codegen)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -59,7 +59,7 @@
59
59
  "docs:preview": "vitepress preview docs"
60
60
  },
61
61
  "engines": {
62
- "node": ">=22"
62
+ "node": ">=24"
63
63
  },
64
64
  "license": "MIT",
65
65
  "publishConfig": {
@@ -9,7 +9,7 @@ import { spawnSync } from 'node:child_process';
9
9
  import { fileURLToPath } from 'node:url';
10
10
 
11
11
  const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
12
- const distEntry = path.join(root, 'dist', 'docs', 'cli', 'engines.js');
12
+ const distEntry = path.join(root, 'dist', 'index.js');
13
13
 
14
14
  if (fs.existsSync(distEntry)) {
15
15
  process.exit(0);