invokeable 0.0.0-stage → 0.1.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.
- .diffend-unextracted-0 +3 -0
- package/README.md +168 -2
- package/dist/npm.js +287 -0
- package/package.json +48 -4
.diffend-unextracted-0
ADDED
package/README.md
CHANGED
|
@@ -1,3 +1,169 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Invokeable CLI
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Invokeable CLI is a complete customer interface for Invokeable. It uses the
|
|
4
|
+
same workspace, permissions, product catalog, journeys, runs, evidence,
|
|
5
|
+
findings, and account controls as the web application.
|
|
6
|
+
|
|
7
|
+
## Run it in this repository
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
bun run apps/cli/src/index.ts --help
|
|
11
|
+
bun run apps/cli/src/index.ts init
|
|
12
|
+
bun run apps/cli/src/index.ts login
|
|
13
|
+
bun run apps/cli/src/index.ts status
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
The installed CLI supports both `invokeable` and the shorter `ivk` command.
|
|
17
|
+
Running `ivk` without a subcommand starts account setup when signed out. Once
|
|
18
|
+
signed in, it shows workspace readiness.
|
|
19
|
+
|
|
20
|
+
Production is the default runtime profile. Invokeable operators can test an
|
|
21
|
+
immutable release candidate without replacing production configuration or
|
|
22
|
+
credentials:
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
ivk --profile staging init
|
|
26
|
+
ivk --profile staging st
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
`ivk init` shows a short code and opens the Invokeable app in your browser.
|
|
30
|
+
Sign in there (or create your account), confirm the code, and the terminal
|
|
31
|
+
picks up the session. If the account has no workspace, the CLI
|
|
32
|
+
asks for a name and creates it before saving the session. Product setup remains
|
|
33
|
+
in the CLI.
|
|
34
|
+
|
|
35
|
+
Bun loads the repository's local environment when the command runs from the
|
|
36
|
+
repository root. A packaged installation can be configured explicitly:
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
ivk config set endpoint https://example.convex.cloud
|
|
40
|
+
ivk config set app-url https://app.example.com
|
|
41
|
+
ivk login
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
If the account does not have a workspace yet, create one during sign-in:
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
ivk login --workspace-name "Acme reliability"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
List and switch between accessible workspaces:
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
ivk ws list
|
|
54
|
+
ivk ws switch org_123
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Customer flow
|
|
58
|
+
|
|
59
|
+
```sh
|
|
60
|
+
ivk st
|
|
61
|
+
ivk setup show
|
|
62
|
+
ivk catalog connect \
|
|
63
|
+
--name "Commerce API" \
|
|
64
|
+
--owner mbr_example \
|
|
65
|
+
--repository acme/commerce \
|
|
66
|
+
--wait
|
|
67
|
+
ivk catalog connections
|
|
68
|
+
ivk catalog discover \
|
|
69
|
+
--field productSurfacePublicId=srf_example \
|
|
70
|
+
--field baseUrl=https://api.example.com
|
|
71
|
+
ivk agents list
|
|
72
|
+
ivk agents ensure-managed
|
|
73
|
+
ivk j create "A customer asks the agent to create a project and confirm the final project state"
|
|
74
|
+
ivk j run jny_example --wait
|
|
75
|
+
ivk r list
|
|
76
|
+
ivk r get run_example
|
|
77
|
+
ivk f list
|
|
78
|
+
ivk f fix --field findingPublicId=fnd_example
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
OpenAPI connections report `excludedActionCount` when operations with
|
|
82
|
+
credential fields are left out of the executable catalog.
|
|
83
|
+
|
|
84
|
+
The CLI also covers catalog maintenance, connected agents, journey approval,
|
|
85
|
+
checks, test groups, baselines, assessment planning, evidence exports,
|
|
86
|
+
remediation, safety controls, notifications, membership, billing, privacy,
|
|
87
|
+
workspace settings, governed access, support, and the changelog. Run
|
|
88
|
+
`ivk --help` or `ivk <area> --help` to inspect the available commands. The full
|
|
89
|
+
`invokeable` name remains available for scripts and documentation.
|
|
90
|
+
|
|
91
|
+
## Structured input
|
|
92
|
+
|
|
93
|
+
Commands that call a product query, mutation, or action accept a JSON object:
|
|
94
|
+
|
|
95
|
+
```sh
|
|
96
|
+
ivk j coverage --input coverage.json
|
|
97
|
+
cat coverage.json | ivk j coverage
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
For short inputs, repeat `--field name=value`. Values that are valid JSON are
|
|
101
|
+
parsed as JSON:
|
|
102
|
+
|
|
103
|
+
```sh
|
|
104
|
+
ivk notifications set-preference \
|
|
105
|
+
--field eventType=finding_confirmed_high_severity \
|
|
106
|
+
--field inApp=true \
|
|
107
|
+
--field email=false \
|
|
108
|
+
--field revision=0
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Workspace admins can connect and manage one Slack channel:
|
|
112
|
+
|
|
113
|
+
```sh
|
|
114
|
+
ivk notifications slack
|
|
115
|
+
ivk notifications connect-slack
|
|
116
|
+
ivk notifications set-slack --input slack-notifications.json
|
|
117
|
+
ivk notifications disconnect-slack --field expectedRevision=3 --yes
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
`set-slack` accepts `enabledTriggers`, `state`, and `expectedRevision`. The CLI
|
|
121
|
+
adds the request ID. Connecting opens Slack in the browser; `--json` prints the
|
|
122
|
+
authorization result instead.
|
|
123
|
+
|
|
124
|
+
Destructive commands require `--yes`. The CLI refuses the action without that
|
|
125
|
+
confirmation.
|
|
126
|
+
|
|
127
|
+
## Credentials
|
|
128
|
+
|
|
129
|
+
Connector secrets are read from a file or standard input:
|
|
130
|
+
|
|
131
|
+
```sh
|
|
132
|
+
ivk catalog credential pdr_example --secret-file ./token.txt
|
|
133
|
+
printf '%s' "$PRODUCT_TOKEN" | ivk catalog credential pdr_example --secret-file -
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
The CLI fetches the active public encryption key, seals the credential locally,
|
|
137
|
+
and sends only the tenant-bound ciphertext to Invokeable. It does not print the
|
|
138
|
+
plaintext credential.
|
|
139
|
+
|
|
140
|
+
## Agent output
|
|
141
|
+
|
|
142
|
+
Every data command accepts the global `--json` option:
|
|
143
|
+
|
|
144
|
+
```sh
|
|
145
|
+
ivk j list --json
|
|
146
|
+
ivk st --json | jq '.status'
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Successful JSON commands write one JSON document to standard output. Errors use
|
|
150
|
+
stable customer-safe codes and do not include raw provider responses or input
|
|
151
|
+
objects.
|
|
152
|
+
|
|
153
|
+
For automation, set `INVOKEABLE_SESSION_TOKEN` to a session token from an
|
|
154
|
+
interactive login; the CLI exchanges it for a short-lived workspace token on
|
|
155
|
+
each run. `INVOKEABLE_ACCESS_TOKEN` alone also works until that workspace
|
|
156
|
+
token expires. Interactive login stores the session in the operating system
|
|
157
|
+
keychain, and `ivk logout` ends it on the server too. If the keychain is unavailable, the CLI uses a
|
|
158
|
+
user-only credentials file with mode `0600`.
|
|
159
|
+
|
|
160
|
+
## Checks
|
|
161
|
+
|
|
162
|
+
```sh
|
|
163
|
+
bun run --cwd apps/cli typecheck
|
|
164
|
+
bun run --cwd apps/cli test
|
|
165
|
+
bun run --cwd apps/cli build
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Release builds, promotion, npm publication, and rollback follow
|
|
169
|
+
[`docs/operations/cli-delivery-and-rollback.md`](../../docs/operations/cli-delivery-and-rollback.md).
|