@agentvault/grok-bridge 0.3.0 → 0.3.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 +12 -4
- package/dist/service/subcommand.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -491,7 +491,13 @@ __export(subcommand_exports, {
|
|
|
491
491
|
maybeRunServiceSubcommand: () => maybeRunServiceSubcommand
|
|
492
492
|
});
|
|
493
493
|
function labelFor(env) {
|
|
494
|
-
|
|
494
|
+
const name = env.AV_AGENT_NAME?.trim();
|
|
495
|
+
if (!name) {
|
|
496
|
+
throw new Error(
|
|
497
|
+
"AV_AGENT_NAME is required \u2014 it names WHICH agent's service to act on. Re-run as: AV_AGENT_NAME=<agent-name> agentvault-grok-bridge <subcommand>"
|
|
498
|
+
);
|
|
499
|
+
}
|
|
500
|
+
return `dev.agentvault.grok-${slugify2(name)}`;
|
|
495
501
|
}
|
|
496
502
|
function maybeRunServiceSubcommand(argv, env, deps) {
|
|
497
503
|
const cmd = argv[2];
|
|
@@ -530,7 +536,9 @@ function maybeRunServiceSubcommand(argv, env, deps) {
|
|
|
530
536
|
log("now APPROVE the device in AgentVault \u2014 the service is waiting to enrol");
|
|
531
537
|
log("if it does not connect within a minute, the log above says why");
|
|
532
538
|
}
|
|
533
|
-
log(
|
|
539
|
+
log(
|
|
540
|
+
`check it with: AV_AGENT_NAME=${cfg.agentName} agentvault-grok-bridge status`
|
|
541
|
+
);
|
|
534
542
|
} else if (cmd === "uninstall") {
|
|
535
543
|
const label = labelFor(env);
|
|
536
544
|
backend.uninstall(label);
|
|
@@ -99135,7 +99143,7 @@ async function main() {
|
|
|
99135
99143
|
const info = parseInfoFlags(process.argv.slice(2));
|
|
99136
99144
|
if (info.showVersion || info.showHelp) {
|
|
99137
99145
|
const version2 = buildClientVersion2(
|
|
99138
|
-
true ? "0.3.
|
|
99146
|
+
true ? "0.3.1" : void 0
|
|
99139
99147
|
);
|
|
99140
99148
|
if (info.showVersion) printLine(version2);
|
|
99141
99149
|
if (info.showHelp) {
|
|
@@ -99193,7 +99201,7 @@ async function main() {
|
|
|
99193
99201
|
agentName: cfg.agentName,
|
|
99194
99202
|
platform: "node",
|
|
99195
99203
|
clientVersion: buildClientVersion2(
|
|
99196
|
-
true ? "0.3.
|
|
99204
|
+
true ? "0.3.1" : void 0
|
|
99197
99205
|
)
|
|
99198
99206
|
});
|
|
99199
99207
|
channelRef = channel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subcommand.d.ts","sourceRoot":"","sources":["../../src/service/subcommand.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAElE,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7B;
|
|
1
|
+
{"version":3,"file":"subcommand.d.ts","sourceRoot":"","sources":["../../src/service/subcommand.ts"],"names":[],"mappings":"AAIA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAElE,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7B;AAkCD;;uFAEuF;AACvF,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,MAAM,EAAE,EACd,GAAG,EAAE,MAAM,CAAC,UAAU,EACtB,IAAI,CAAC,EAAE,cAAc,GACpB,OAAO,CAkHT"}
|
package/package.json
CHANGED