@bdsqqq/lnr-cli 2.0.0 → 2.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bdsqqq/lnr-cli",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "cli for linear issue tracking",
5
5
  "type": "module",
6
6
  "private": false,
@@ -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
- "apiKey?": type("string").configure({ positional: true }).describe("Linear API key"),
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
  });