@exorcist-98/cli 0.3.6 → 0.3.7
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 +8 -8
- package/dist/index.mjs +10 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ Needs Node 20 or newer.
|
|
|
11
11
|
## Scan a project
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
|
-
npx -y @exorcist-98/cli@0.3.
|
|
14
|
+
npx -y @exorcist-98/cli@0.3.7 scan .
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
Every finding shows the file, line, the exact text, how serious it is and how
|
|
@@ -39,7 +39,7 @@ request.
|
|
|
39
39
|
## Map the haunted house
|
|
40
40
|
|
|
41
41
|
```sh
|
|
42
|
-
npx -y @exorcist-98/cli@0.3.
|
|
42
|
+
npx -y @exorcist-98/cli@0.3.7 map .
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
For every MCP config in the folder, lists which servers sit in the three rooms
|
|
@@ -52,8 +52,8 @@ data. The rules are in `definitions/capabilities.yaml`.
|
|
|
52
52
|
## Disinfect (exorcise)
|
|
53
53
|
|
|
54
54
|
```sh
|
|
55
|
-
npx -y @exorcist-98/cli@0.3.
|
|
56
|
-
npx -y @exorcist-98/cli@0.3.
|
|
55
|
+
npx -y @exorcist-98/cli@0.3.7 exorcise . # dry run: prints a unified diff
|
|
56
|
+
npx -y @exorcist-98/cli@0.3.7 exorcise . --write # apply, with a vault backup first
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
Only threats with one safe, mechanical fix are repaired: hidden characters
|
|
@@ -67,7 +67,7 @@ human"), and `exorcist vault restore <id>` puts every file back byte for byte.
|
|
|
67
67
|
## Protect your MCP servers
|
|
68
68
|
|
|
69
69
|
```sh
|
|
70
|
-
npx -y @exorcist-98/cli@0.3.
|
|
70
|
+
npx -y @exorcist-98/cli@0.3.7 wrap .kiro/settings/mcp.json
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
`wrap` puts every server in the file, local or remote, behind the Real-Time
|
|
@@ -79,9 +79,9 @@ instruct your agent. `unwrap` restores the file exactly. See
|
|
|
79
79
|
## Share approved tools with your team: exorcist.lock
|
|
80
80
|
|
|
81
81
|
```sh
|
|
82
|
-
npx -y @exorcist-98/cli@0.3.
|
|
83
|
-
npx -y @exorcist-98/cli@0.3.
|
|
84
|
-
npx -y @exorcist-98/cli@0.3.
|
|
82
|
+
npx -y @exorcist-98/cli@0.3.7 lock # write exorcist.lock, then commit it
|
|
83
|
+
npx -y @exorcist-98/cli@0.3.7 lock --check # exit 1 if any tool or program changed
|
|
84
|
+
npx -y @exorcist-98/cli@0.3.7 lock --check --static # starts nothing: names, programs, URLs only
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
`exorcist.lock` records the fingerprint of every tool your MCP servers list,
|
package/dist/index.mjs
CHANGED
|
@@ -22905,8 +22905,7 @@ function envFamilyOwners(name) {
|
|
|
22905
22905
|
for (const [re2, owners] of ENV_FAMILIES) if (re2.test(name)) return owners;
|
|
22906
22906
|
return null;
|
|
22907
22907
|
}
|
|
22908
|
-
var
|
|
22909
|
-
var PROGRAM_VAR = /(?:EDITOR|PAGER|BROWSER|_CMD|_COMMAND|_HELPER|_PROGRAM|_EXEC|_SHELL|_ARGS(?:_\w+)?)$/u;
|
|
22908
|
+
var PLAIN_VAR = /(?:_LOG|_LOG_LEVEL|_DEBUG|_VERBOSE|_COLOR|_NO_COLOR|_IN_AUTOMATION|_INPUT|_WORKSPACE|_NAMESPACE|_CONTEXT|_REGION|_VAR_[A-Za-z0-9_]+|EDITOR|PAGER|BROWSER|_CLI_ARGS(?:_[a-z]+)?)$/u;
|
|
22910
22909
|
var ENDPOINT_VAR = /(?:_HOST|_URL|_ENDPOINT|_SERVER)$/;
|
|
22911
22910
|
function unlockedValueRisk(name, value, cwd, dynamic) {
|
|
22912
22911
|
const runtime = dynamic || /[$`]/.test(value);
|
|
@@ -22919,12 +22918,11 @@ function unlockedValueRisk(name, value, cwd, dynamic) {
|
|
|
22919
22918
|
}
|
|
22920
22919
|
let v = value.trim();
|
|
22921
22920
|
if (v.startsWith("~")) v = expandTilde(v, cwd) ?? v;
|
|
22922
|
-
const one = `${name} takes one
|
|
22921
|
+
const one = `${name} takes one word here: an absolute path outside the project, or, for a variable that holds a plain value, a name with no dot, slash or tilde`;
|
|
22923
22922
|
if (v === "") return null;
|
|
22924
22923
|
if (/[\s:,;=]/u.test(v)) return one;
|
|
22925
22924
|
if (isAbsolute4(v)) return insideProject(v, cwd) ? say : null;
|
|
22926
|
-
|
|
22927
|
-
return /[./\\~]/u.test(v) ? one : null;
|
|
22925
|
+
return PLAIN_VAR.test(name) && !/[./\\~]/u.test(v) ? null : one;
|
|
22928
22926
|
}
|
|
22929
22927
|
function envAssignRisk(name, value, cwd, dynamic = false, known, prog) {
|
|
22930
22928
|
const owners = envFamilyOwners(name);
|
|
@@ -25781,7 +25779,7 @@ async function* scanRepo(root, options) {
|
|
|
25781
25779
|
init_zod();
|
|
25782
25780
|
|
|
25783
25781
|
// ../core/src/version.ts
|
|
25784
|
-
var SCANNER_VERSION = "0.3.
|
|
25782
|
+
var SCANNER_VERSION = "0.3.7";
|
|
25785
25783
|
|
|
25786
25784
|
// ../core/src/reporters/json-reporter.ts
|
|
25787
25785
|
var ScanStatsSchema = external_exports.object({
|
|
@@ -38432,7 +38430,7 @@ unwrap Put the original file back byte for byte, if it was not edited since
|
|
|
38432
38430
|
|
|
38433
38431
|
Options (wrap):
|
|
38434
38432
|
--bin <command> Command that runs the shield (default: exorcist)
|
|
38435
|
-
--bin-arg <arg> Argument before "shield" (repeatable), e.g. --bin npx --bin-arg -y --bin-arg @exorcist-98/cli@0.3.
|
|
38433
|
+
--bin-arg <arg> Argument before "shield" (repeatable), e.g. --bin npx --bin-arg -y --bin-arg @exorcist-98/cli@0.3.7
|
|
38436
38434
|
--dir <folder> State folder (default: ${DEFAULT_DIR})
|
|
38437
38435
|
--dry-run Show the result without writing the file
|
|
38438
38436
|
`;
|
|
@@ -40506,8 +40504,8 @@ function reviewerAgentForProject(mcpCommand) {
|
|
|
40506
40504
|
}
|
|
40507
40505
|
|
|
40508
40506
|
// src/commands/init.ts
|
|
40509
|
-
var DEFAULT_BIN = "npx -y @exorcist-98/cli@0.3.
|
|
40510
|
-
var DEFAULT_MCP_BIN = "npx -y @exorcist-98/mcp-server@0.3.
|
|
40507
|
+
var DEFAULT_BIN = "npx -y @exorcist-98/cli@0.3.7";
|
|
40508
|
+
var DEFAULT_MCP_BIN = "npx -y @exorcist-98/mcp-server@0.3.7";
|
|
40511
40509
|
var MISSING_FROM_DEFAULT_BIN = /* @__PURE__ */ new Set();
|
|
40512
40510
|
var INIT_HELP = `Usage: exorcist init [folder] [--kiro] [--shield] [--sandbox] [--no-agent] [--force]
|
|
40513
40511
|
[--bin <command>] [--mcp-bin <command>]
|
|
@@ -40876,7 +40874,7 @@ ${INIT_HELP}`);
|
|
|
40876
40874
|
"then reconnect MCP servers in the MCP panel so they start through the Shield."
|
|
40877
40875
|
];
|
|
40878
40876
|
if (isDefaultBin) {
|
|
40879
|
-
lines.push("Commands run through npx (@exorcist-98/cli@0.3.
|
|
40877
|
+
lines.push("Commands run through npx (@exorcist-98/cli@0.3.7). If Kiro cannot start a wrapped server or a hook cannot find npx,");
|
|
40880
40878
|
lines.push('rerun with --bin "<absolute path to node> <absolute path to the exorcist CLI>" and --force.');
|
|
40881
40879
|
}
|
|
40882
40880
|
io.out(lines.join("\n"));
|
|
@@ -48259,7 +48257,7 @@ var RawToolsPage = external_exports.object({ tools: external_exports.array(exter
|
|
|
48259
48257
|
var firstLine2 = (err) => (err instanceof Error ? err.message : String(err)).split("\n")[0]?.slice(0, 300) ?? "unknown error";
|
|
48260
48258
|
async function listTools(o) {
|
|
48261
48259
|
const transport = new StdioClientTransport({ command: o.command, args: o.args, env: o.env, cwd: o.cwd, stderr: "ignore" });
|
|
48262
|
-
const client = new Client({ name: "exorcist-lock", version: "0.3.
|
|
48260
|
+
const client = new Client({ name: "exorcist-lock", version: "0.3.7" }, { capabilities: {} });
|
|
48263
48261
|
let timer;
|
|
48264
48262
|
const timedOut = new Promise((res) => {
|
|
48265
48263
|
timer = setTimeout(() => res({ ok: false, error: `it did not list its tools within ${o.timeoutMs} ms.` }), o.timeoutMs);
|
|
@@ -49157,7 +49155,7 @@ ${VAULT_HELP}`);
|
|
|
49157
49155
|
}
|
|
49158
49156
|
|
|
49159
49157
|
// src/index.ts
|
|
49160
|
-
var VERSION = "0.3.
|
|
49158
|
+
var VERSION = "0.3.7";
|
|
49161
49159
|
var HELP = `Exorcist 98 ${VERSION}: antivirus for AI coding agents
|
|
49162
49160
|
|
|
49163
49161
|
Usage: exorcist <command> [options]
|