noodleseed-cli 0.1.12 → 0.1.13

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/dist/bin.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=bin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":""}
package/dist/bin.js ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+ import { isSupportedNodeVersion, unsupportedNodeMessage } from './node-version.js';
3
+ if (!isSupportedNodeVersion()) {
4
+ console.error(unsupportedNodeMessage());
5
+ process.exitCode = 1;
6
+ }
7
+ else {
8
+ const { run } = await import('./cli.js');
9
+ run(process.argv.slice(2)).then((code) => {
10
+ process.exitCode = code;
11
+ }, (error) => {
12
+ console.error(error);
13
+ process.exitCode = 1;
14
+ });
15
+ }
16
+ //# sourceMappingURL=bin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEnF,IAAI,CAAC,sBAAsB,EAAE,EAAE,CAAC;IAC9B,OAAO,CAAC,KAAK,CAAC,sBAAsB,EAAE,CAAC,CAAC;IACxC,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC;KAAM,CAAC;IACN,MAAM,EAAE,GAAG,EAAE,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC;IACzC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAC7B,CAAC,IAAI,EAAE,EAAE;QACP,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAC1B,CAAC,EACD,CAAC,KAAK,EAAE,EAAE;QACR,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACvB,CAAC,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const MINIMUM_NODE_MAJOR = 24;
2
+ export declare function nodeMajor(version: string): number | null;
3
+ export declare function isSupportedNodeVersion(version?: string): boolean;
4
+ export declare function unsupportedNodeMessage(version?: string): string;
5
+ //# sourceMappingURL=node-version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-version.d.ts","sourceRoot":"","sources":["../src/node-version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAGxD;AAED,wBAAgB,sBAAsB,CAAC,OAAO,GAAE,MAA8B,GAAG,OAAO,CAGvF;AAED,wBAAgB,sBAAsB,CAAC,OAAO,GAAE,MAA8B,GAAG,MAAM,CAMtF"}
@@ -0,0 +1,17 @@
1
+ export const MINIMUM_NODE_MAJOR = 24;
2
+ export function nodeMajor(version) {
3
+ const match = /^v?(\d+)(?:\.|$)/.exec(version.trim());
4
+ return match ? Number(match[1]) : null;
5
+ }
6
+ export function isSupportedNodeVersion(version = process.versions.node) {
7
+ const major = nodeMajor(version);
8
+ return major !== null && major >= MINIMUM_NODE_MAJOR;
9
+ }
10
+ export function unsupportedNodeMessage(version = process.versions.node) {
11
+ return [
12
+ `noodle requires Node.js ${MINIMUM_NODE_MAJOR} or newer; current runtime is Node.js ${version}.`,
13
+ 'Fix: switch to Node 24 LTS, then reinstall the global CLI so the noodle bin uses that runtime.',
14
+ 'Next: nvm install 24 && nvm use 24 && hash -r && npm install -g noodleseed-cli@latest',
15
+ ].join('\n');
16
+ }
17
+ //# sourceMappingURL=node-version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-version.js","sourceRoot":"","sources":["../src/node-version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAErC,MAAM,UAAU,SAAS,CAAC,OAAe;IACvC,MAAM,KAAK,GAAG,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IACtD,OAAO,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,UAAkB,OAAO,CAAC,QAAQ,CAAC,IAAI;IAC5E,MAAM,KAAK,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;IACjC,OAAO,KAAK,KAAK,IAAI,IAAI,KAAK,IAAI,kBAAkB,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,UAAkB,OAAO,CAAC,QAAQ,CAAC,IAAI;IAC5E,OAAO;QACL,2BAA2B,kBAAkB,yCAAyC,OAAO,GAAG;QAChG,gGAAgG;QAChG,uFAAuF;KACxF,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noodleseed-cli",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "private": false,
5
5
  "description": "Noodle CLI by Noodle Seed — author, run, and deploy declarative MCP servers.",
6
6
  "license": "Apache-2.0",
@@ -14,7 +14,7 @@
14
14
  }
15
15
  },
16
16
  "bin": {
17
- "noodle": "dist/cli.js"
17
+ "noodle": "dist/bin.js"
18
18
  },
19
19
  "engines": {
20
20
  "node": ">=24"