camstack 1.2.187 → 1.2.188
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/cli.js +7 -10
- package/dist/{launcher-RCLUYTAW.js → launcher-FYTHPW44.js} +3365 -873
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -37,7 +37,7 @@ async function runServe(args) {
|
|
|
37
37
|
...typeof values.data === "string" ? { data: values.data } : {}
|
|
38
38
|
};
|
|
39
39
|
Object.assign(process.env, buildServeEnv(opts));
|
|
40
|
-
await import("./launcher-
|
|
40
|
+
await import("./launcher-FYTHPW44.js");
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
// src/commands/agent.ts
|
|
@@ -82,7 +82,7 @@ async function runAgent(args) {
|
|
|
82
82
|
...typeof values.port === "string" ? { port: values.port } : {}
|
|
83
83
|
};
|
|
84
84
|
Object.assign(process.env, buildAgentEnv(opts));
|
|
85
|
-
await import("./launcher-
|
|
85
|
+
await import("./launcher-FYTHPW44.js");
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
// src/commands/setup.ts
|
|
@@ -87103,7 +87103,9 @@ function buildCommands() {
|
|
|
87103
87103
|
" -n, --namespace <ns> Ignored (kept so old scripts do not fail): hubs are found over mDNS",
|
|
87104
87104
|
" -u, --username <name> Username (skips prompt)",
|
|
87105
87105
|
" -p, --password <pwd> Password (skips prompt \u2014 prefer letting the CLI prompt)",
|
|
87106
|
-
` --token-name <name> Ignored (kept for scripts); login uses your hub session JWT
|
|
87106
|
+
` --token-name <name> Ignored (kept for scripts); login uses your hub session JWT`,
|
|
87107
|
+
" --admin Ignored (kept for muscle memory); admin follows your account role",
|
|
87108
|
+
" --admin-days <n> Ignored (kept for muscle memory); no separate admin-token mint"
|
|
87107
87109
|
].join("\n")
|
|
87108
87110
|
},
|
|
87109
87111
|
{
|
|
@@ -87328,6 +87330,8 @@ async function runLogin(args) {
|
|
|
87328
87330
|
username: { type: "string", short: "u" },
|
|
87329
87331
|
password: { type: "string", short: "p" },
|
|
87330
87332
|
"token-name": { type: "string" },
|
|
87333
|
+
// Accepted-and-ignored: role comes from the logged-in user (D884). Operators
|
|
87334
|
+
// still type `camstack login --admin <host>` from muscle memory — never fail.
|
|
87331
87335
|
admin: { type: "boolean" },
|
|
87332
87336
|
"admin-days": { type: "string" },
|
|
87333
87337
|
// Accepted-and-ignored: `--no-verify` is a `deploy`-only flag (skip the
|
|
@@ -87350,13 +87354,6 @@ async function runLogin(args) {
|
|
|
87350
87354
|
if (stringOpt(parsed.values, "namespace") !== void 0) {
|
|
87351
87355
|
console.warn("--namespace is ignored: hubs are found over mDNS, not the mesh channel.");
|
|
87352
87356
|
}
|
|
87353
|
-
const admin = boolOpt(parsed.values, "admin");
|
|
87354
|
-
const adminDaysRaw = stringOpt(parsed.values, "admin-days");
|
|
87355
|
-
if (admin || adminDaysRaw !== void 0) {
|
|
87356
|
-
throw new Error(
|
|
87357
|
-
"`camstack login` is the only login command \u2014 your account role decides admin access (--admin was removed)."
|
|
87358
|
-
);
|
|
87359
|
-
}
|
|
87360
87357
|
await loginCommand({
|
|
87361
87358
|
...explicitServer ? { server: explicitServer } : {},
|
|
87362
87359
|
...optionalString(parsed.values, "username"),
|