@bdsqqq/lnr-cli 2.0.0 → 2.0.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/package.json +1 -1
- package/src/router/auth.ts +4 -1
package/package.json
CHANGED
package/src/router/auth.ts
CHANGED
|
@@ -11,7 +11,10 @@ import { router, procedure } from "./trpc";
|
|
|
11
11
|
import { exitWithError, EXIT_CODES } from "../lib/error";
|
|
12
12
|
|
|
13
13
|
export const authInput = type({
|
|
14
|
-
|
|
14
|
+
// "string | undefined" ensures trpc-cli's isOptional() sees the optional marker
|
|
15
|
+
// in the value schema — arktype's "key?" syntax only marks it optional at the
|
|
16
|
+
// object level (required array), which trpc-cli doesn't check for positionals
|
|
17
|
+
"apiKey?": type("string | undefined").configure({ positional: true }).describe("Linear API key"),
|
|
15
18
|
"whoami?": type("boolean").describe("show current authenticated user"),
|
|
16
19
|
"logout?": type("boolean").describe("clear stored credentials"),
|
|
17
20
|
});
|