interscale 0.0.0-stage → 0.10.101

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.
@@ -0,0 +1,27 @@
1
+ // First file the npm command runs, copied as-is into the package: it checks
2
+ // the Node version before loading Interscale, so an old Node gets one line
3
+ // instead of a syntax error. Keep it to syntax every Node since 14 parses.
4
+ export function checkNode(current, minimum) {
5
+ const parse = (value) => String(value).split(".").map((part) => parseInt(part, 10) || 0);
6
+ const have = parse(current), need = parse(minimum);
7
+ for (let index = 0; index < 3; index += 1) {
8
+ if (have[index] > need[index]) return null;
9
+ if (have[index] < need[index]) return `Interscale needs Node ${minimum} or newer (you have ${current}). Install it from https://nodejs.org`;
10
+ }
11
+ return null;
12
+ }
13
+
14
+ export async function launch(entry, minimum) {
15
+ const problem = checkNode(process.versions.node, minimum);
16
+ if (problem) {
17
+ console.error(problem);
18
+ process.exit(1);
19
+ }
20
+ // Node 22 marks node:sqlite experimental and says so on every command.
21
+ const emitWarning = process.emitWarning;
22
+ process.emitWarning = function (warning, ...rest) {
23
+ if (String((warning && warning.message) || warning).includes("SQLite is an experimental feature")) return;
24
+ return emitWarning.call(process, warning, ...rest);
25
+ };
26
+ await import(entry);
27
+ }
package/package.json CHANGED
@@ -1,6 +1,32 @@
1
1
  {
2
2
  "name": "interscale",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.10.101",
4
+ "description": "Run work on your own Macs, Windows PCs and Linux servers from one terminal",
5
+ "type": "module",
6
+ "bin": {
7
+ "interscale": "bin/interscale.mjs",
8
+ "interscale-mcp": "bin/interscale-mcp.mjs"
9
+ },
10
+ "files": [
11
+ "bin/",
12
+ "lib/",
13
+ "README.md",
14
+ "LICENSE"
15
+ ],
16
+ "engines": {
17
+ "node": ">=22.13.0"
18
+ },
19
+ "license": "MIT",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/yacineboop/interscale.git"
23
+ },
24
+ "homepage": "https://interscale.app",
25
+ "keywords": [
26
+ "interscale",
27
+ "remote",
28
+ "fleet",
29
+ "cli",
30
+ "mcp"
31
+ ]
32
+ }