mapsource-node 0.0.0-stage → 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
@@ -1,3 +1,34 @@
1
- # Temporary Holding Version
1
+ # Mapsource Node
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Mapsource Node provides a terminal dashboard for Mapsource infrastructure and
4
+ an enrollment client for compatible Linux read-engine hosts.
5
+
6
+ ```sh
7
+ npm install --global mapsource-node@next
8
+ mapsource-node
9
+ ```
10
+
11
+ Use Node.js 24.14 or newer on Debian or Ubuntu on x86-64 or ARM64. OpenTUI runs
12
+ under the included Bun runtime. On a system that enforces dependency Node
13
+ engine constraints, pass `--engine-strict=false` when installing this release.
14
+
15
+ Use `mapsource-node --json` for a read-only telemetry snapshot. The Services
16
+ tab shows recent queue depth and latency when the local controller measures
17
+ them. The operator can run `mapsource-node services` on a configured enrollment
18
+ authority to see the available service profiles.
19
+
20
+ ```sh
21
+ mapsource-node invite --node new-node --services search,routing --out ./sync-key
22
+ mapsource-node setup --key-file ./sync-key
23
+ mapsource-node status
24
+ ```
25
+
26
+ Run the first command on the authority and the others on the new host. Keep
27
+ the key file private and remove it after the node claims the invitation.
28
+ Run `mapsource-node resume` after an interruption. A registered Cloudflare
29
+ peer endpoint establishes node identity and transport. Serving traffic
30
+ requires a separate fleet admission. Use `disable` or `retire` to preview
31
+ the services affected by either operation.
32
+
33
+ Use `mapsource-node --help` for the CLI and [RELEASING.md](RELEASING.md) for
34
+ publishing.
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env node
2
+ import { spawn } from "node:child_process";
3
+ import { createRequire } from "node:module";
4
+ import { readFile } from "node:fs/promises";
5
+ import { fileURLToPath } from "node:url";
6
+
7
+ const require = createRequire(import.meta.url);
8
+ const pkg = JSON.parse(await readFile(new URL("../package.json", import.meta.url), "utf8"));
9
+ const [command, ...args] = process.argv.slice(2);
10
+
11
+ try {
12
+ if (command === "--version" && !args.length) console.log(`mapsource-node ${pkg.version}`);
13
+ else if (command === undefined || command === "--self-test" || command === "--json") {
14
+ if (command === undefined && await (await import("../src/commands.mjs")).firstRun()) process.exit(0);
15
+ const candidates = { x64: "@oven/bun-linux-x64-baseline", arm64: "@oven/bun-linux-aarch64" };
16
+ const platform = candidates[process.arch];
17
+ if (process.platform !== "linux" || !platform) throw new Error("The terminal interface requires Linux x64 or ARM64.");
18
+ const executable = require.resolve(`${platform}/bin/bun`);
19
+ const entrypoint = fileURLToPath(new URL("../src/index.ts", import.meta.url));
20
+ const child = spawn(executable, ["--no-env-file", entrypoint, ...process.argv.slice(2)], {
21
+ stdio: "inherit",
22
+ env: { ...process.env, OPENTUI_LIBC: "glibc", MAPSOURCE_NODE_BUILD: pkg.version },
23
+ });
24
+ const signalChild = () => child.kill("SIGTERM");
25
+ process.once("SIGTERM", signalChild);
26
+ try {
27
+ process.exitCode = await new Promise((resolve, reject) => {
28
+ child.once("error", reject);
29
+ child.once("exit", (code, signal) => resolve(code ?? (signal === "SIGINT" ? 130 : 1)));
30
+ });
31
+ } finally {
32
+ process.removeListener("SIGTERM", signalChild);
33
+ }
34
+ } else {
35
+ const { main } = await import("../src/commands.mjs");
36
+ await main(command, args);
37
+ }
38
+ } catch (error) {
39
+ process.stderr.write(`mapsource-node: ${error.message}\n`);
40
+ process.exitCode = 1;
41
+ }
package/package.json CHANGED
@@ -1,6 +1,53 @@
1
1
  {
2
2
  "name": "mapsource-node",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "Mapsource node operations and enrollment",
5
+ "type": "module",
6
+ "license": "UNLICENSED",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/robit-man/mapsource-node.git"
10
+ },
11
+ "homepage": "https://mapsource.io",
12
+ "bin": {
13
+ "mapsource-node": "bin/mapsource-node.mjs"
14
+ },
15
+ "files": [
16
+ "bin/",
17
+ "src/",
18
+ "protocol/"
19
+ ],
20
+ "engines": {
21
+ "node": ">=24.14.0"
22
+ },
23
+ "os": [
24
+ "linux"
25
+ ],
26
+ "cpu": [
27
+ "x64",
28
+ "arm64"
29
+ ],
30
+ "packageManager": "npm@11.9.0",
31
+ "scripts": {
32
+ "check": "npm run typecheck && npm test && npm run test:tui",
33
+ "typecheck": "tsc --noEmit && node scripts/check-source.mjs",
34
+ "test": "node --test test/*.test.mjs",
35
+ "test:tui": "node bin/mapsource-node.mjs --self-test",
36
+ "release": "node scripts/release.mjs"
37
+ },
38
+ "dependencies": {
39
+ "@opentui/core": "0.9.9"
40
+ },
41
+ "optionalDependencies": {
42
+ "@oven/bun-linux-aarch64": "1.4.5",
43
+ "@oven/bun-linux-x64-baseline": "1.4.5"
44
+ },
45
+ "devDependencies": {
46
+ "@types/bun": "1.3.14",
47
+ "typescript": "6.0.3"
48
+ },
49
+ "publishConfig": {
50
+ "access": "public",
51
+ "registry": "https://registry.npmjs.org/"
52
+ }
53
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "schema": "mapsource-mirror-runtime.v1",
3
+ "nodeVersion": "24.14.0",
4
+ "pnpmVersion": "10.27.0",
5
+ "cloudflaredVersion": "2026.10.0",
6
+ "cloudflaredSha256": {
7
+ "arm64": "e6422b9d4f72d3194bc5a38676f13667c06666523217b842a877d72a80b5ac08",
8
+ "x64": "d33ff2d14475178d2012c2c56beba87389ac5ded27649519f198a7d3134a99db"
9
+ },
10
+ "nodeSha256": {
11
+ "arm64": "e7adfca03d9173276114a6f2219df1a7d25e1bfd6bbd771d3f839118a2053094",
12
+ "x64": "41cd79bb7877c81605a9e68ec4c91547774f46a40c67a17e34d7179ef11729df"
13
+ },
14
+ "images": {
15
+ "overpass": {
16
+ "arm64": "wiktorn/overpass-api:v0.7.62.11@sha256:1f54ea54d04011af6a7e0b8166bc147c152081ee1a5c88d64fb4b8a38794f83c",
17
+ "x64": "wiktorn/overpass-api:v0.7.62.11@sha256:5f643f2aa500333f19458fe8be14457215d6e0b9f891ca5c5ed452b1f8882c47"
18
+ },
19
+ "tiles": {
20
+ "arm64": "maptiler/tileserver-gl:v5.6.0@sha256:2bee34c072c07d694f6fac75e17d2feb6227eaab007177179e9740822ab89cc6",
21
+ "x64": "maptiler/tileserver-gl:v5.6.0@sha256:f5f954587478ca6be606f834fba1880b5ddd9c958132ded79a573bc1790a8bf0"
22
+ },
23
+ "routing": {
24
+ "arm64": "ghcr.io/valhalla/valhalla-scripted@sha256:7dc78be25a7f8718b2fefe8b6d735812bc71c3c88628bfbcfb0e24620cec0244",
25
+ "x64": "ghcr.io/valhalla/valhalla-scripted@sha256:be108b27664e43eaf3388c719dc9806e5ff1cbe753be32c799d86812dc28432f"
26
+ }
27
+ }
28
+ }