prontaro 0.0.0-stage → 0.5.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Prontaro
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/NOTICE ADDED
@@ -0,0 +1,3 @@
1
+ The prontaro npm launcher is licensed under the MIT License. Its optional platform
2
+ packages contain closed prontaro CLI binaries governed by the Prontaro Terms of
3
+ Service, section 2: https://prontaro.com/tos/
package/README.md CHANGED
@@ -1,3 +1,7 @@
1
- # Temporary Holding Version
1
+ # prontaro CLI on npm
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
+ Expose local servers over HTTPS and TCP, forward local ports from your static IPv4, inspect traffic, and run the local MCP server.
4
+
5
+ Run directly with `npx prontaro` or install globally with `npm install -g prontaro`. See https://prontaro.com/docs/cli/npm/ for installation and update instructions.
6
+
7
+ The `prontaro` package contains an MIT-licensed JavaScript launcher. Its optional `@prontaro/cli-*` packages contain closed prontaro CLI binaries governed by the Prontaro Terms of Service, section 2: https://prontaro.com/tos/
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env node
2
+ import {spawn} from 'node:child_process';
3
+ import {constants} from 'node:os';
4
+ import {resolveBinary} from '../lib/platform.mjs';
5
+ const result=resolveBinary();
6
+ if (result.error) { process.stderr.write(result.error+'\n'); process.exitCode=7; }
7
+ else {
8
+ const child=spawn(result.path,process.argv.slice(2),{stdio:'inherit',shell:false});
9
+ process.on('SIGINT',()=>{});
10
+ for(const signal of ['SIGTERM','SIGHUP']) process.on(signal,()=>{ if(!child.killed) child.kill(signal); });
11
+ child.on('error',()=>{process.stderr.write('Could not start prontaro CLI. Reinstall it: https://prontaro.com/docs/cli/npm/\n');process.exitCode=7;});
12
+ child.on('exit',(code,signal)=>{process.exitCode=code??(128+constants.signals[signal]);});
13
+ }
@@ -0,0 +1,23 @@
1
+ import {createRequire} from 'node:module';
2
+ import {join} from 'node:path';
3
+
4
+ // The archive, npm metadata and runtime package are selected from this one table.
5
+ export const platforms = [
6
+ {goos:'linux', goarch:'amd64', os:'linux', cpu:'x64', ext:'tar.gz'},
7
+ {goos:'linux', goarch:'arm64', os:'linux', cpu:'arm64', ext:'tar.gz'},
8
+ {goos:'darwin', goarch:'amd64', os:'darwin', cpu:'x64', ext:'tar.gz'},
9
+ {goos:'darwin', goarch:'arm64', os:'darwin', cpu:'arm64', ext:'tar.gz'},
10
+ {goos:'windows', goarch:'amd64', os:'win32', cpu:'x64', ext:'zip'},
11
+ {goos:'windows', goarch:'arm64', os:'win32', cpu:'arm64', ext:'zip'},
12
+ ].map(x => ({...x, archive:`prontaro_${x.goos}_${x.goarch}.${x.ext}`, package:`@prontaro/cli-${x.os}-${x.cpu}`, executable:x.os==='win32'?'prontaro.exe':'prontaro'}));
13
+
14
+ export function currentPlatform(platform=process.platform, arch=process.arch) {
15
+ return platforms.find(x => x.os===platform && x.cpu===arch);
16
+ }
17
+
18
+ export function resolveBinary(platform=process.platform, arch=process.arch, require=createRequire(import.meta.url)) {
19
+ const row=currentPlatform(platform,arch);
20
+ if (!row) return {error:`No prontaro CLI build for ${platform}/${arch}. See https://prontaro.com/docs/cli/npm/`};
21
+ try { return {path:join(require.resolve(`${row.package}/package.json`),'..','bin',row.executable)}; }
22
+ catch { return {error:`Missing ${row.package}. See https://prontaro.com/docs/cli/npm/`}; }
23
+ }
package/package.json CHANGED
@@ -1,6 +1,28 @@
1
1
  {
2
2
  "name": "prontaro",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.5.1",
4
+ "description": "JavaScript launcher for the closed prontaro CLI binary",
5
+ "bin": {
6
+ "prontaro": "bin/prontaro.mjs"
7
+ },
8
+ "files": [
9
+ "bin",
10
+ "lib",
11
+ "LICENSE",
12
+ "NOTICE",
13
+ "README.md"
14
+ ],
15
+ "optionalDependencies": {
16
+ "@prontaro/cli-linux-x64": "0.5.1",
17
+ "@prontaro/cli-linux-arm64": "0.5.1",
18
+ "@prontaro/cli-darwin-x64": "0.5.1",
19
+ "@prontaro/cli-darwin-arm64": "0.5.1",
20
+ "@prontaro/cli-win32-x64": "0.5.1",
21
+ "@prontaro/cli-win32-arm64": "0.5.1"
22
+ },
23
+ "license": "MIT",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://github.com/prontaro/mcp.git"
27
+ }
6
28
  }