@shotik/cli 0.0.0-stage → 0.2.0
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/README.md +14 -2
- package/audit/checklist.json +1006 -0
- package/audit/index.mjs +127 -0
- package/bin/shotik.mjs +10 -0
- package/package.json +21 -4
- package/src/cli.mjs +272 -0
package/README.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @shotik/cli
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Set up Shotik in your app with your coding agent. Nothing is hosted: the CLI talks to the Shotik Mac app on 127.0.0.1.
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
npx -y @shotik/cli setup
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
- `shotik login` prints a code; approve it in the Shotik app.
|
|
10
|
+
- `shotik setup [path]` detects the project (Expo/React Native, Swift, Flutter), links it, installs the SDK, writes `.shotik/setup.json` and prints the next steps (use `@shotik/mcp` `get_recipe`).
|
|
11
|
+
- `shotik status`, `shotik logout`. Add `--json` for machine output.
|
|
12
|
+
- `shotik audit <code>` (`npx -y @shotik/cli audit <code>`) is for agents without MCP: it tells shotik.app the agent connected and prints the audit checklist, the findings schema and a `curl` example that posts findings to `SHOTIK_WEB` (default `https://shotik.app`). It needs no Shotik app.
|
|
13
|
+
|
|
14
|
+
Exit codes: 0 ok, 1 error, 2 denied or expired, 3 Shotik not running.
|
|
15
|
+
The token is kept in `~/.shotik/auth.json` (mode 0600) and never printed. `SHOTIK_DRY_RUN=1` prints the install command instead of running it.
|