@jini-ai/cli 0.6.12 → 0.6.15-rc.2
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/CHANGELOG.md +11 -0
- package/dist/main.js +4 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @jini-ai/cli
|
|
2
2
|
|
|
3
|
+
## 0.6.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [7479159]
|
|
8
|
+
- Updated dependencies [c31264d]
|
|
9
|
+
- Updated dependencies [0728914]
|
|
10
|
+
- Updated dependencies [6ecbdb2]
|
|
11
|
+
- Updated dependencies [63bacc5]
|
|
12
|
+
- @jini-ai/core@0.6.13
|
|
13
|
+
|
|
3
14
|
## 0.6.12
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
* (like every other test in this package) inject a throwing `exit` double to make
|
|
75
75
|
* `process.exit`'s real "never returns" behavior observable without ending the test process.
|
|
76
76
|
*/
|
|
77
|
+
import { existsSync, realpathSync } from 'node:fs';
|
|
77
78
|
import { fileURLToPath } from 'node:url';
|
|
78
79
|
import { CommandRegistry } from './command-registry.js';
|
|
79
80
|
import { registerDaemonCommands } from './daemon-command.js';
|
|
@@ -236,7 +237,9 @@ export async function main({ argv }, deps = {}) {
|
|
|
236
237
|
// ...`, or the `jini` bin shim pnpm/npm links to it) — not merely imported, e.g. by this
|
|
237
238
|
// file's own tests importing the named `main` export above. Mirrors Node's CommonJS
|
|
238
239
|
// `require.main === module` idiom for ESM; see this file's own module doc.
|
|
239
|
-
|
|
240
|
+
// Canonical paths recognize npm bin symlinks; a missing argv path is an unrelated import.
|
|
241
|
+
const isMainModule = process.argv[1] !== undefined && existsSync(process.argv[1])
|
|
242
|
+
&& realpathSync(fileURLToPath(import.meta.url)) === realpathSync(process.argv[1]);
|
|
240
243
|
if (isMainModule) {
|
|
241
244
|
await main({ argv: process.argv.slice(2) });
|
|
242
245
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jini-ai/cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.15-rc.2",
|
|
4
4
|
"description": "CLI transport shell for driving a Jini daemon over HTTP: flag parsing, daemon-URL resolution, local daemon discovery, and a pluggable command registry.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -54,16 +54,16 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"commander": "^15.0.0",
|
|
57
|
-
"@jini-ai/core": "0.6.
|
|
58
|
-
"@jini-ai/platform": "0.6.
|
|
59
|
-
"@jini-ai/sidecar": "0.6.
|
|
57
|
+
"@jini-ai/core": "0.6.15-rc.2",
|
|
58
|
+
"@jini-ai/platform": "0.6.15-rc.2",
|
|
59
|
+
"@jini-ai/sidecar": "0.6.15-rc.2"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@jini-ai/core": "^0.6.
|
|
62
|
+
"@jini-ai/core": "^0.6.15-rc.2"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@jini-ai/platform": "^0.6.
|
|
66
|
-
"@jini-ai/sidecar": "^0.6.
|
|
65
|
+
"@jini-ai/platform": "^0.6.15-rc.2",
|
|
66
|
+
"@jini-ai/sidecar": "^0.6.15-rc.2"
|
|
67
67
|
},
|
|
68
68
|
"peerDependenciesMeta": {
|
|
69
69
|
"@jini-ai/platform": {
|