@nodaro/cli 1.7.0 → 1.8.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/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ var require_package = __commonJS({
|
|
|
29
29
|
"package.json"(exports$1, module) {
|
|
30
30
|
module.exports = {
|
|
31
31
|
name: "@nodaro/cli",
|
|
32
|
-
version: "1.
|
|
32
|
+
version: "1.8.1",
|
|
33
33
|
description: "Command-line interface for Nodaro \u2014 list and run workflows, inspect jobs and executions, manage projects from the terminal.",
|
|
34
34
|
type: "module",
|
|
35
35
|
license: "Apache-2.0",
|
|
@@ -70,8 +70,8 @@ var require_package = __commonJS({
|
|
|
70
70
|
"@inquirer/confirm": "^6.0.12",
|
|
71
71
|
"@inquirer/input": "^5.0.12",
|
|
72
72
|
"@inquirer/select": "^5.1.4",
|
|
73
|
-
"@nodaro/sdk": "^1.
|
|
74
|
-
"@nodaro/shared": "^
|
|
73
|
+
"@nodaro/sdk": "^1.13.1",
|
|
74
|
+
"@nodaro/shared": "^2.0.0",
|
|
75
75
|
commander: "^12.1.0",
|
|
76
76
|
picocolors: "^1.1.1",
|
|
77
77
|
"@nodaro/prompts": "^1.5.0"
|
|
@@ -373,6 +373,7 @@ function maskToken(token) {
|
|
|
373
373
|
if (token.length <= 12) return "****";
|
|
374
374
|
return token.slice(0, 8) + "\u2026" + token.slice(-4);
|
|
375
375
|
}
|
|
376
|
+
var CLI_VERSION = "1.8.1" ;
|
|
376
377
|
function buildClient(profileName) {
|
|
377
378
|
const { name, profile } = getProfile(profileName);
|
|
378
379
|
if (!profile) {
|
|
@@ -382,7 +383,11 @@ function buildClient(profileName) {
|
|
|
382
383
|
}
|
|
383
384
|
return createClient({
|
|
384
385
|
baseUrl: profile.baseUrl,
|
|
385
|
-
auth: new StaticTokenAuth(profile.token)
|
|
386
|
+
auth: new StaticTokenAuth(profile.token),
|
|
387
|
+
// Without this the CLI is indistinguishable from any other SDK consumer:
|
|
388
|
+
// it IS an SDK consumer, so it would otherwise report `sdk/<sdk version>`
|
|
389
|
+
// and every CLI-created job would be filed under the wrong surface.
|
|
390
|
+
clientLabel: `cli/${CLI_VERSION}`
|
|
386
391
|
});
|
|
387
392
|
}
|
|
388
393
|
function handleError(err) {
|