@navinora/connector 0.8.40 → 0.8.41
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,6 +1,6 @@
|
|
|
1
1
|
# Navinora Connector
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Cross-platform launcher for the Navinora Coding Workbench local connector.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -17,37 +17,33 @@ navinora-connector login --server https://pivot.enclaws.com --pairing-code <code
|
|
|
17
17
|
navinora-connector run
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
The
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
The main package is a thin launcher. It installs the matching native payload
|
|
21
|
+
through platform-specific optional dependencies, so end users only need the one
|
|
22
|
+
global install command above.
|
|
23
23
|
|
|
24
24
|
## Platform Support
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
The MVP package embeds the current platform payload under `bin/<platform>-<arch>/`.
|
|
26
|
+
Published platform packages:
|
|
28
27
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
- `win32-arm64`
|
|
33
|
-
- `darwin-arm64`
|
|
34
|
-
- `darwin-x64`
|
|
35
|
-
- `linux-x64`
|
|
36
|
-
- `linux-arm64`
|
|
28
|
+
- `@navinora/connector-win32-x64`
|
|
29
|
+
- `@navinora/connector-darwin-x64`
|
|
30
|
+
- `@navinora/connector-darwin-arm64`
|
|
37
31
|
|
|
38
32
|
## Publish Checklist
|
|
39
33
|
|
|
40
34
|
For maintainers:
|
|
41
35
|
|
|
42
36
|
```bash
|
|
43
|
-
# Build and stage the native payload for the current platform.
|
|
44
|
-
pwsh ./scripts/package-connector.ps1 -Profile release
|
|
37
|
+
# Build and stage the native payload for the current platform package.
|
|
38
|
+
pwsh ./scripts/package-connector.ps1 -Profile release -PackNpm
|
|
45
39
|
|
|
46
|
-
# Validate the
|
|
40
|
+
# Validate the main package locally.
|
|
47
41
|
node ./packaging/npm/bin/navinora-connector.js --help
|
|
48
42
|
npm pack ./packaging/npm
|
|
49
43
|
|
|
50
|
-
# Publish
|
|
51
|
-
|
|
52
|
-
npm publish --access public
|
|
44
|
+
# Publish platform packages first, then the main launcher package.
|
|
45
|
+
npm publish ./packaging/npm-platforms/win32-x64 --access public
|
|
46
|
+
npm publish ./packaging/npm-platforms/darwin-x64 --access public
|
|
47
|
+
npm publish ./packaging/npm-platforms/darwin-arm64 --access public
|
|
48
|
+
npm publish ./packaging/npm --access public
|
|
53
49
|
```
|
|
@@ -9,19 +9,40 @@ const platform = process.platform;
|
|
|
9
9
|
const arch = process.arch;
|
|
10
10
|
const exe = platform === "win32" ? "navinora-connector.exe" : "navinora-connector";
|
|
11
11
|
const platformDir = `${platform}-${arch}`;
|
|
12
|
+
const packageByPlatform = {
|
|
13
|
+
"win32-x64": "@navinora/connector-win32-x64",
|
|
14
|
+
"darwin-x64": "@navinora/connector-darwin-x64",
|
|
15
|
+
"darwin-arm64": "@navinora/connector-darwin-arm64",
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
function resolvePlatformPackageBinary() {
|
|
19
|
+
const pkg = packageByPlatform[platformDir];
|
|
20
|
+
if (!pkg) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
return path.join(path.dirname(require.resolve(`${pkg}/package.json`)), "bin", exe);
|
|
25
|
+
} catch {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
12
29
|
|
|
13
30
|
const candidates = [
|
|
31
|
+
process.env.NAVINORA_CONNECTOR_BIN,
|
|
32
|
+
resolvePlatformPackageBinary(),
|
|
33
|
+
// Local development fallback: package payloads staged next to this repo.
|
|
34
|
+
path.join(__dirname, "..", "..", "npm-platforms", platformDir, "bin", exe),
|
|
14
35
|
path.join(__dirname, platformDir, exe),
|
|
15
36
|
path.join(__dirname, "..", platformDir, exe),
|
|
16
37
|
path.join(__dirname, exe),
|
|
17
|
-
];
|
|
38
|
+
].filter(Boolean);
|
|
18
39
|
|
|
19
40
|
const binary = candidates.find((candidate) => fs.existsSync(candidate));
|
|
20
41
|
|
|
21
42
|
if (!binary) {
|
|
22
43
|
console.error(
|
|
23
|
-
`Navinora Connector does not include a binary for ${platformDir}
|
|
24
|
-
"Please
|
|
44
|
+
`Navinora Connector does not include a binary for ${platformDir}.\n` +
|
|
45
|
+
"Please reinstall @navinora/connector, or install the matching platform package."
|
|
25
46
|
);
|
|
26
47
|
process.exit(1);
|
|
27
48
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navinora/connector",
|
|
3
|
-
"version": "0.8.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.8.41",
|
|
4
|
+
"description": "Cross-platform launcher for Navinora Coding Workbench connector",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://pivot.enclaws.com",
|
|
7
7
|
"repository": {
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
"scripts": {
|
|
18
18
|
"smoke": "node bin/navinora-connector.js --help"
|
|
19
19
|
},
|
|
20
|
+
"optionalDependencies": {
|
|
21
|
+
"@navinora/connector-win32-x64": "0.8.41",
|
|
22
|
+
"@navinora/connector-darwin-x64": "0.8.41",
|
|
23
|
+
"@navinora/connector-darwin-arm64": "0.8.41"
|
|
24
|
+
},
|
|
20
25
|
"files": [
|
|
21
26
|
"bin/",
|
|
22
27
|
"README.md"
|
|
Binary file
|
|
Binary file
|