zinkee 0.1.9 → 0.1.11

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.
@@ -0,0 +1,44 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(npm test *)",
5
+ "Bash(npm run *)",
6
+ "Bash(pnpm typecheck *)",
7
+ "Bash(pnpm test *)",
8
+ "Bash(npx tsc *)",
9
+ "Read(//home/guillermo/dev/z2-backend/api/src/main/java/com/zinkee/api/domain/model/v2/log/**)",
10
+ "Read(//home/guillermo/dev/z2-backend/**)",
11
+ "Bash(grep *)",
12
+ "Bash(npx vitest *)",
13
+ "Bash(npx tsx *)",
14
+ "Bash(node dist/index.js --help)",
15
+ "Bash(gh repo *)",
16
+ "WebFetch(domain:github.com)",
17
+ "Bash(git config *)",
18
+ "Read(//home/guillermo/.config/**)",
19
+ "Read(//home/guillermo/**)",
20
+ "Bash(curl *)",
21
+ "Bash(node dist/index.js --show-completion zsh)",
22
+ "Bash(node *)",
23
+ "Bash(_ZINKEE_COMPLETE=zsh_complete COMP_WORDS=\"zinkee\" COMP_CWORD=1 node *)",
24
+ "Bash(_ZINKEE_COMPLETE=zsh_complete COMP_WORDS=\"zinkee schemas\" COMP_CWORD=2 node *)",
25
+ "Bash(_ZINKEE_COMPLETE=zsh_complete COMP_WORDS=\"zinkee schemas fields\" COMP_CWORD=3 node dist/index.js)",
26
+ "Bash(_ZINKEE_COMPLETE=zsh_complete COMP_WORDS=\"zinkee schemas fields cr\" COMP_CWORD=3 node dist/index.js)",
27
+ "Bash(_ZINKEE_COMPLETE=zsh_complete COMP_WORDS=\"zinkee schemas list --j\" COMP_CWORD=3 node dist/index.js)",
28
+ "Bash(rm -rf /tmp/zinkee-install)",
29
+ "Bash(mkdir -p /tmp/zinkee-install)",
30
+ "Bash(HOME=/tmp/zinkee-install SHELL=/bin/zsh node dist/index.js --install-completion)",
31
+ "Read(//tmp/**)",
32
+ "Read(//tmp/zinkee-install/**)",
33
+ "Bash(rm -rf /tmp/zinkee-install-bash)",
34
+ "Bash(mkdir -p /tmp/zinkee-install-bash)",
35
+ "Bash(HOME=/tmp/zinkee-install-bash SHELL=/bin/bash node dist/index.js --install-completion)",
36
+ "Bash(rm -rf /tmp/zinkee-install-fish)",
37
+ "Bash(mkdir -p /tmp/zinkee-install-fish)",
38
+ "Bash(_ZINKEE_COMPLETE=zsh_complete node dist/index.js)",
39
+ "Bash(echo \"exit: $?\")",
40
+ "Bash(_ZINKEE_COMPLETE=zsh_complete COMP_WORDS=\"zinkee schemas\" COMP_CWORD=abc node dist/index.js)",
41
+ "Bash(_ZINKEE_COMPLETE=zsh_complete COMP_WORDS=\"zinkee config show --foo --bar baz quux ?\" COMP_CWORD=10 node dist/index.js)"
42
+ ]
43
+ }
44
+ }
package/AGENTS.md CHANGED
@@ -45,6 +45,7 @@ Use this order when reasoning about behavior:
45
45
  - JSON/table output helpers live in `src/utils/output.ts`
46
46
  - shared CLI error handling lives in `src/utils/errors.ts`
47
47
  - parsers live in `src/parsers`
48
+ - shell completion (engine, scripts, install, runtime) lives in `src/completion`
48
49
 
49
50
  ## Testing
50
51
 
package/README.md CHANGED
@@ -68,6 +68,18 @@ base_url = "https://api.zinkee.com"
68
68
  | `--read-only` | Run in read-only mode |
69
69
  | `--example` | Show examples for a command |
70
70
  | `--json` | Emit JSON output |
71
+ | `--install-completion [shell]` | Install shell completion (bash, zsh, fish, powershell) |
72
+ | `--show-completion [shell]` | Print the completion script to stdout |
73
+
74
+ ## Shell completion
75
+
76
+ ```bash
77
+ zinkee --install-completion # auto-detects $SHELL and installs
78
+ zinkee --install-completion zsh # force a specific shell
79
+ zinkee --show-completion zsh # print the script (for inspection)
80
+ ```
81
+
82
+ After installing, restart your shell.
71
83
 
72
84
  ## Runtime Resolution
73
85