usertrust 0.2.5 → 0.2.6
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/completions.d.ts +14 -0
- package/dist/cli/completions.d.ts.map +1 -0
- package/dist/cli/completions.js +201 -0
- package/dist/cli/completions.js.map +1 -0
- package/dist/cli/main.d.ts +1 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +11 -7
- package/dist/cli/main.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CLI: usertrust completions <shell> — Output shell completion scripts
|
|
3
|
+
*
|
|
4
|
+
* Outputs completion scripts for bash, zsh, or fish to stdout.
|
|
5
|
+
* Follow the standard pattern used by kubectl, docker, gh, etc.
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* usertrust completions bash
|
|
9
|
+
* usertrust completions zsh
|
|
10
|
+
* usertrust completions fish
|
|
11
|
+
*/
|
|
12
|
+
import type { CliOptions } from "./init.js";
|
|
13
|
+
export declare function run(shell?: string, opts?: CliOptions): Promise<void>;
|
|
14
|
+
//# sourceMappingURL=completions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completions.d.ts","sourceRoot":"","sources":["../../src/cli/completions.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAkL5C,wBAAsB,GAAG,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAkC1E"}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
// Copyright 2026 Usertools, Inc.
|
|
3
|
+
const SHELLS = ["bash", "zsh", "fish"];
|
|
4
|
+
function bashScript() {
|
|
5
|
+
return `# bash completion for usertrust
|
|
6
|
+
# Install: usertrust completions bash >> ~/.bashrc
|
|
7
|
+
# Or: usertrust completions bash > /etc/bash_completion.d/usertrust
|
|
8
|
+
|
|
9
|
+
_usertrust() {
|
|
10
|
+
local cur prev commands global_flags
|
|
11
|
+
COMPREPLY=()
|
|
12
|
+
cur="\${COMP_WORDS[COMP_CWORD]}"
|
|
13
|
+
prev="\${COMP_WORDS[COMP_CWORD-1]}"
|
|
14
|
+
|
|
15
|
+
commands="init inspect health verify snapshot tb completions"
|
|
16
|
+
global_flags="--json --help"
|
|
17
|
+
|
|
18
|
+
case "\${prev}" in
|
|
19
|
+
snapshot)
|
|
20
|
+
COMPREPLY=( $(compgen -W "create restore list" -- "\${cur}") )
|
|
21
|
+
return 0
|
|
22
|
+
;;
|
|
23
|
+
tb)
|
|
24
|
+
COMPREPLY=( $(compgen -W "start stop status" -- "\${cur}") )
|
|
25
|
+
return 0
|
|
26
|
+
;;
|
|
27
|
+
completions)
|
|
28
|
+
COMPREPLY=( $(compgen -W "bash zsh fish" -- "\${cur}") )
|
|
29
|
+
return 0
|
|
30
|
+
;;
|
|
31
|
+
usertrust)
|
|
32
|
+
COMPREPLY=( $(compgen -W "\${commands}" -- "\${cur}") )
|
|
33
|
+
return 0
|
|
34
|
+
;;
|
|
35
|
+
esac
|
|
36
|
+
|
|
37
|
+
if [[ "\${cur}" == -* ]]; then
|
|
38
|
+
COMPREPLY=( $(compgen -W "\${global_flags}" -- "\${cur}") )
|
|
39
|
+
return 0
|
|
40
|
+
fi
|
|
41
|
+
|
|
42
|
+
COMPREPLY=( $(compgen -W "\${commands}" -- "\${cur}") )
|
|
43
|
+
return 0
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
complete -F _usertrust usertrust
|
|
47
|
+
`;
|
|
48
|
+
}
|
|
49
|
+
function zshScript() {
|
|
50
|
+
return `#compdef usertrust
|
|
51
|
+
# zsh completion for usertrust
|
|
52
|
+
# Install: usertrust completions zsh > ~/.zsh/completions/_usertrust
|
|
53
|
+
# Then add to .zshrc: fpath=(~/.zsh/completions $fpath); autoload -Uz compinit; compinit
|
|
54
|
+
|
|
55
|
+
_usertrust() {
|
|
56
|
+
local -a commands
|
|
57
|
+
commands=(
|
|
58
|
+
'init:Initialize trust vault'
|
|
59
|
+
'inspect:Show trust bank statement'
|
|
60
|
+
'health:Show entropy diagnostics'
|
|
61
|
+
'verify:Verify audit chain integrity'
|
|
62
|
+
'snapshot:Create/restore vault snapshots'
|
|
63
|
+
'tb:Manage TigerBeetle process'
|
|
64
|
+
'completions:Output shell completion scripts'
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
local -a global_flags
|
|
68
|
+
global_flags=(
|
|
69
|
+
'--json[Output machine-readable JSON]'
|
|
70
|
+
'--help[Show help]'
|
|
71
|
+
)
|
|
72
|
+
|
|
73
|
+
_arguments -C \\
|
|
74
|
+
'1:command:->command' \\
|
|
75
|
+
'*::arg:->args'
|
|
76
|
+
|
|
77
|
+
case "\$state" in
|
|
78
|
+
command)
|
|
79
|
+
_describe 'usertrust command' commands
|
|
80
|
+
_values 'flags' \${global_flags}
|
|
81
|
+
;;
|
|
82
|
+
args)
|
|
83
|
+
case "\${words[1]}" in
|
|
84
|
+
snapshot)
|
|
85
|
+
local -a snapshot_cmds
|
|
86
|
+
snapshot_cmds=('create:Create a snapshot' 'restore:Restore a snapshot' 'list:List snapshots')
|
|
87
|
+
_describe 'snapshot subcommand' snapshot_cmds
|
|
88
|
+
;;
|
|
89
|
+
tb)
|
|
90
|
+
local -a tb_cmds
|
|
91
|
+
tb_cmds=('start:Start TigerBeetle' 'stop:Stop TigerBeetle' 'status:Show TigerBeetle status')
|
|
92
|
+
_describe 'tb subcommand' tb_cmds
|
|
93
|
+
;;
|
|
94
|
+
completions)
|
|
95
|
+
local -a shells
|
|
96
|
+
shells=('bash:Bash completion' 'zsh:Zsh completion' 'fish:Fish completion')
|
|
97
|
+
_describe 'shell' shells
|
|
98
|
+
;;
|
|
99
|
+
esac
|
|
100
|
+
;;
|
|
101
|
+
esac
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
compdef _usertrust usertrust
|
|
105
|
+
`;
|
|
106
|
+
}
|
|
107
|
+
function fishScript() {
|
|
108
|
+
return `# fish completion for usertrust
|
|
109
|
+
# Install: usertrust completions fish > ~/.config/fish/completions/usertrust.fish
|
|
110
|
+
|
|
111
|
+
# Disable file completions
|
|
112
|
+
complete -c usertrust -f
|
|
113
|
+
|
|
114
|
+
# Commands
|
|
115
|
+
complete -c usertrust -n '__fish_use_subcommand' -a init -d 'Initialize trust vault'
|
|
116
|
+
complete -c usertrust -n '__fish_use_subcommand' -a inspect -d 'Show trust bank statement'
|
|
117
|
+
complete -c usertrust -n '__fish_use_subcommand' -a health -d 'Show entropy diagnostics'
|
|
118
|
+
complete -c usertrust -n '__fish_use_subcommand' -a verify -d 'Verify audit chain integrity'
|
|
119
|
+
complete -c usertrust -n '__fish_use_subcommand' -a snapshot -d 'Create/restore vault snapshots'
|
|
120
|
+
complete -c usertrust -n '__fish_use_subcommand' -a tb -d 'Manage TigerBeetle process'
|
|
121
|
+
complete -c usertrust -n '__fish_use_subcommand' -a completions -d 'Output shell completion scripts'
|
|
122
|
+
|
|
123
|
+
# Global flags
|
|
124
|
+
complete -c usertrust -l json -d 'Output machine-readable JSON'
|
|
125
|
+
complete -c usertrust -l help -d 'Show help'
|
|
126
|
+
|
|
127
|
+
# snapshot subcommands
|
|
128
|
+
complete -c usertrust -n '__fish_seen_subcommand_from snapshot' -a create -d 'Create a snapshot'
|
|
129
|
+
complete -c usertrust -n '__fish_seen_subcommand_from snapshot' -a restore -d 'Restore a snapshot'
|
|
130
|
+
complete -c usertrust -n '__fish_seen_subcommand_from snapshot' -a list -d 'List snapshots'
|
|
131
|
+
|
|
132
|
+
# tb subcommands
|
|
133
|
+
complete -c usertrust -n '__fish_seen_subcommand_from tb' -a start -d 'Start TigerBeetle'
|
|
134
|
+
complete -c usertrust -n '__fish_seen_subcommand_from tb' -a stop -d 'Stop TigerBeetle'
|
|
135
|
+
complete -c usertrust -n '__fish_seen_subcommand_from tb' -a status -d 'Show TigerBeetle status'
|
|
136
|
+
|
|
137
|
+
# completions subcommands
|
|
138
|
+
complete -c usertrust -n '__fish_seen_subcommand_from completions' -a bash -d 'Bash completion'
|
|
139
|
+
complete -c usertrust -n '__fish_seen_subcommand_from completions' -a zsh -d 'Zsh completion'
|
|
140
|
+
complete -c usertrust -n '__fish_seen_subcommand_from completions' -a fish -d 'Fish completion'
|
|
141
|
+
`;
|
|
142
|
+
}
|
|
143
|
+
function isShell(value) {
|
|
144
|
+
return SHELLS.includes(value);
|
|
145
|
+
}
|
|
146
|
+
function getScript(shell) {
|
|
147
|
+
switch (shell) {
|
|
148
|
+
case "bash":
|
|
149
|
+
return bashScript();
|
|
150
|
+
case "zsh":
|
|
151
|
+
return zshScript();
|
|
152
|
+
case "fish":
|
|
153
|
+
return fishScript();
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
function printUsage() {
|
|
157
|
+
console.log(`Usage: usertrust completions <shell>
|
|
158
|
+
|
|
159
|
+
Generate shell completion scripts.
|
|
160
|
+
|
|
161
|
+
Shells:
|
|
162
|
+
bash Bash completion script
|
|
163
|
+
zsh Zsh completion script
|
|
164
|
+
fish Fish completion script
|
|
165
|
+
|
|
166
|
+
Examples:
|
|
167
|
+
usertrust completions bash >> ~/.bashrc
|
|
168
|
+
usertrust completions zsh > ~/.zsh/completions/_usertrust
|
|
169
|
+
usertrust completions fish > ~/.config/fish/completions/usertrust.fish`);
|
|
170
|
+
}
|
|
171
|
+
export async function run(shell, opts) {
|
|
172
|
+
const json = opts?.json === true;
|
|
173
|
+
if (!shell || !isShell(shell)) {
|
|
174
|
+
if (json) {
|
|
175
|
+
console.log(JSON.stringify({
|
|
176
|
+
command: "completions",
|
|
177
|
+
success: false,
|
|
178
|
+
data: {
|
|
179
|
+
message: shell ? `Unknown shell: ${shell}` : "No shell specified",
|
|
180
|
+
shells: [...SHELLS],
|
|
181
|
+
},
|
|
182
|
+
}));
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
printUsage();
|
|
186
|
+
}
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
const script = getScript(shell);
|
|
190
|
+
if (json) {
|
|
191
|
+
console.log(JSON.stringify({
|
|
192
|
+
command: "completions",
|
|
193
|
+
success: true,
|
|
194
|
+
data: { shell, script },
|
|
195
|
+
}));
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
process.stdout.write(script);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
//# sourceMappingURL=completions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"completions.js","sourceRoot":"","sources":["../../src/cli/completions.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,iCAAiC;AAgBjC,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAU,CAAC;AAGhD,SAAS,UAAU;IAClB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CP,CAAC;AACF,CAAC;AAED,SAAS,SAAS;IACjB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDP,CAAC;AACF,CAAC;AAED,SAAS,UAAU;IAClB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCP,CAAC;AACF,CAAC;AAED,SAAS,OAAO,CAAC,KAAa;IAC7B,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAc,CAAC,CAAC;AACxC,CAAC;AAED,SAAS,SAAS,CAAC,KAAY;IAC9B,QAAQ,KAAK,EAAE,CAAC;QACf,KAAK,MAAM;YACV,OAAO,UAAU,EAAE,CAAC;QACrB,KAAK,KAAK;YACT,OAAO,SAAS,EAAE,CAAC;QACpB,KAAK,MAAM;YACV,OAAO,UAAU,EAAE,CAAC;IACtB,CAAC;AACF,CAAC;AAED,SAAS,UAAU;IAClB,OAAO,CAAC,GAAG,CAAC;;;;;;;;;;;;yEAY4D,CAAC,CAAC;AAC3E,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,GAAG,CAAC,KAAc,EAAE,IAAiB;IAC1D,MAAM,IAAI,GAAG,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAEjC,IAAI,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC/B,IAAI,IAAI,EAAE,CAAC;YACV,OAAO,CAAC,GAAG,CACV,IAAI,CAAC,SAAS,CAAC;gBACd,OAAO,EAAE,aAAa;gBACtB,OAAO,EAAE,KAAK;gBACd,IAAI,EAAE;oBACL,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,kBAAkB,KAAK,EAAE,CAAC,CAAC,CAAC,oBAAoB;oBACjE,MAAM,EAAE,CAAC,GAAG,MAAM,CAAC;iBACnB;aACD,CAAC,CACF,CAAC;QACH,CAAC;aAAM,CAAC;YACP,UAAU,EAAE,CAAC;QACd,CAAC;QACD,OAAO;IACR,CAAC;IAED,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;IAEhC,IAAI,IAAI,EAAE,CAAC;QACV,OAAO,CAAC,GAAG,CACV,IAAI,CAAC,SAAS,CAAC;YACd,OAAO,EAAE,aAAa;YACtB,OAAO,EAAE,IAAI;YACb,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;SACvB,CAAC,CACF,CAAC;IACH,CAAC;SAAM,CAAC;QACP,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;AACF,CAAC"}
|
package/dist/cli/main.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
declare const COMMANDS: readonly ["init", "inspect", "health", "verify", "snapshot", "tb"];
|
|
2
|
+
declare const COMMANDS: readonly ["init", "inspect", "health", "verify", "snapshot", "tb", "completions"];
|
|
3
3
|
/** Simple Levenshtein distance — two-row DP, no dependency needed. */
|
|
4
4
|
declare function levenshtein(a: string, b: string): number;
|
|
5
5
|
declare function suggestCommand(input: string): string | undefined;
|
package/dist/cli/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAIA,QAAA,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAIA,QAAA,MAAM,QAAQ,mFAAoF,CAAC;AAOnG,sEAAsE;AACtE,iBAAS,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAoBjD;AAED,iBAAS,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAczD;AAED,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC"}
|
package/dist/cli/main.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
// Copyright 2026 Usertools, Inc.
|
|
4
|
-
const COMMANDS = ["init", "inspect", "health", "verify", "snapshot", "tb"];
|
|
4
|
+
const COMMANDS = ["init", "inspect", "health", "verify", "snapshot", "tb", "completions"];
|
|
5
5
|
const argv = process.argv.slice(2);
|
|
6
6
|
const jsonFlag = argv.includes("--json");
|
|
7
7
|
const positional = argv.filter((a) => a !== "--json");
|
|
@@ -58,6 +58,9 @@ switch (command) {
|
|
|
58
58
|
case "tb":
|
|
59
59
|
await import("./tb.js").then((m) => m.run({ json: jsonFlag }));
|
|
60
60
|
break;
|
|
61
|
+
case "completions":
|
|
62
|
+
await import("./completions.js").then((m) => m.run(positional[1], { json: jsonFlag }));
|
|
63
|
+
break;
|
|
61
64
|
default: {
|
|
62
65
|
if (command && !command.startsWith("-")) {
|
|
63
66
|
const suggestion = suggestCommand(command);
|
|
@@ -70,12 +73,13 @@ switch (command) {
|
|
|
70
73
|
console.log(`Usage: usertrust <command>
|
|
71
74
|
|
|
72
75
|
Commands:
|
|
73
|
-
init
|
|
74
|
-
inspect
|
|
75
|
-
health
|
|
76
|
-
verify
|
|
77
|
-
snapshot
|
|
78
|
-
tb
|
|
76
|
+
init Initialize trust vault
|
|
77
|
+
inspect Show trust bank statement
|
|
78
|
+
health Show entropy diagnostics
|
|
79
|
+
verify Verify audit chain integrity
|
|
80
|
+
snapshot Create/restore vault snapshots
|
|
81
|
+
tb Manage TigerBeetle process
|
|
82
|
+
completions Output shell completion scripts
|
|
79
83
|
|
|
80
84
|
Options:
|
|
81
85
|
--json Output machine-readable JSON`);
|
package/dist/cli/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AACA,sCAAsC;AACtC,iCAAiC;AAEjC,MAAM,QAAQ,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,CAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AACA,sCAAsC;AACtC,iCAAiC;AAEjC,MAAM,QAAQ,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,aAAa,CAAU,CAAC;AAEnG,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACnC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AACzC,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,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AG,CAAC;;;;;;;;;;;;0CAY4B,CAAC,CAAC;QAC1C,MAAM;IACP,CAAC;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "usertrust",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Financial governance for AI agents. Every LLM call becomes an immutable, auditable transaction.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Usertools, Inc. <hello@usertools.ai> (https://usertrust.ai)",
|