@navinora/connector 0.8.40
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
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Navinora Connector
|
|
2
|
+
|
|
3
|
+
Local connector for Navinora Coding Workbench.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @navinora/connector
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Pair And Run
|
|
12
|
+
|
|
13
|
+
Copy the pairing command from Navinora system settings, then run:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
navinora-connector login --server https://pivot.enclaws.com --pairing-code <code>
|
|
17
|
+
navinora-connector run
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The npm package is a thin launcher for the prebuilt native connector. The local
|
|
21
|
+
AI coding runtime is bundled as an internal component and is not meant to be run
|
|
22
|
+
directly by end users.
|
|
23
|
+
|
|
24
|
+
## Platform Support
|
|
25
|
+
|
|
26
|
+
The package is published with prebuilt native binaries for the target platform.
|
|
27
|
+
The MVP package embeds the current platform payload under `bin/<platform>-<arch>/`.
|
|
28
|
+
|
|
29
|
+
Supported platform labels:
|
|
30
|
+
|
|
31
|
+
- `win32-x64`
|
|
32
|
+
- `win32-arm64`
|
|
33
|
+
- `darwin-arm64`
|
|
34
|
+
- `darwin-x64`
|
|
35
|
+
- `linux-x64`
|
|
36
|
+
- `linux-arm64`
|
|
37
|
+
|
|
38
|
+
## Publish Checklist
|
|
39
|
+
|
|
40
|
+
For maintainers:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
# Build and stage the native payload for the current platform.
|
|
44
|
+
pwsh ./scripts/package-connector.ps1 -Profile release
|
|
45
|
+
|
|
46
|
+
# Validate the npm package locally.
|
|
47
|
+
node ./packaging/npm/bin/navinora-connector.js --help
|
|
48
|
+
npm pack ./packaging/npm
|
|
49
|
+
|
|
50
|
+
# Publish from the package directory after npm login.
|
|
51
|
+
cd packaging/npm
|
|
52
|
+
npm publish --access public
|
|
53
|
+
```
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
const { spawnSync } = require("node:child_process");
|
|
5
|
+
const fs = require("node:fs");
|
|
6
|
+
const path = require("node:path");
|
|
7
|
+
|
|
8
|
+
const platform = process.platform;
|
|
9
|
+
const arch = process.arch;
|
|
10
|
+
const exe = platform === "win32" ? "navinora-connector.exe" : "navinora-connector";
|
|
11
|
+
const platformDir = `${platform}-${arch}`;
|
|
12
|
+
|
|
13
|
+
const candidates = [
|
|
14
|
+
path.join(__dirname, platformDir, exe),
|
|
15
|
+
path.join(__dirname, "..", platformDir, exe),
|
|
16
|
+
path.join(__dirname, exe),
|
|
17
|
+
];
|
|
18
|
+
|
|
19
|
+
const binary = candidates.find((candidate) => fs.existsSync(candidate));
|
|
20
|
+
|
|
21
|
+
if (!binary) {
|
|
22
|
+
console.error(
|
|
23
|
+
`Navinora Connector does not include a binary for ${platformDir}. ` +
|
|
24
|
+
"Please install the matching package or download the full connector bundle."
|
|
25
|
+
);
|
|
26
|
+
process.exit(1);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const result = spawnSync(binary, process.argv.slice(2), {
|
|
30
|
+
stdio: "inherit",
|
|
31
|
+
windowsHide: false,
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
if (result.error) {
|
|
35
|
+
console.error(result.error.message);
|
|
36
|
+
process.exit(1);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
process.exit(result.status ?? 0);
|
|
Binary file
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@navinora/connector",
|
|
3
|
+
"version": "0.8.40",
|
|
4
|
+
"description": "Local connector for Navinora Coding Workbench",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://pivot.enclaws.com",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/hashSTACS-Global/navinora-connector.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/hashSTACS-Global/navinora-connector/issues"
|
|
13
|
+
},
|
|
14
|
+
"bin": {
|
|
15
|
+
"navinora-connector": "bin/navinora-connector.js"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"smoke": "node bin/navinora-connector.js --help"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"bin/",
|
|
22
|
+
"README.md"
|
|
23
|
+
],
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=18"
|
|
26
|
+
},
|
|
27
|
+
"os": [
|
|
28
|
+
"darwin",
|
|
29
|
+
"linux",
|
|
30
|
+
"win32"
|
|
31
|
+
],
|
|
32
|
+
"cpu": [
|
|
33
|
+
"arm64",
|
|
34
|
+
"x64"
|
|
35
|
+
]
|
|
36
|
+
}
|