@exorcist-98/cli 0.3.8 → 0.3.9
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 +11 -14
- 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.9 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.9 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.9 exorcise . # dry run: prints a unified diff
|
|
56
|
+
npx -y @exorcist-98/cli@0.3.9 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.9 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.9 lock # write exorcist.lock, then commit it
|
|
83
|
+
npx -y @exorcist-98/cli@0.3.9 lock --check # exit 1 if any tool or program changed
|
|
84
|
+
npx -y @exorcist-98/cli@0.3.9 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
|
@@ -25947,7 +25947,7 @@ async function* scanRepo(root, options) {
|
|
|
25947
25947
|
init_zod();
|
|
25948
25948
|
|
|
25949
25949
|
// ../core/src/version.ts
|
|
25950
|
-
var SCANNER_VERSION = "0.3.
|
|
25950
|
+
var SCANNER_VERSION = "0.3.9";
|
|
25951
25951
|
|
|
25952
25952
|
// ../core/src/reporters/json-reporter.ts
|
|
25953
25953
|
var ScanStatsSchema = external_exports.object({
|
|
@@ -31680,17 +31680,16 @@ function userDirOverrideProblem(dir, cwd = process.cwd()) {
|
|
|
31680
31680
|
const real = (p) => {
|
|
31681
31681
|
let cur = resolve20(p);
|
|
31682
31682
|
let rest = "";
|
|
31683
|
-
for (
|
|
31683
|
+
for (; ; ) {
|
|
31684
31684
|
try {
|
|
31685
31685
|
return join20(realpathSync8.native(cur), rest);
|
|
31686
31686
|
} catch {
|
|
31687
31687
|
}
|
|
31688
31688
|
const up = dirname9(cur);
|
|
31689
|
-
if (up === cur)
|
|
31689
|
+
if (up === cur) return resolve20(p);
|
|
31690
31690
|
rest = join20(basename8(cur), rest);
|
|
31691
31691
|
cur = up;
|
|
31692
31692
|
}
|
|
31693
|
-
return resolve20(p);
|
|
31694
31693
|
};
|
|
31695
31694
|
const fold2 = (p) => process.platform === "darwin" || IS_WINDOWS ? p.toLowerCase() : p;
|
|
31696
31695
|
const d = fold2(real(dir));
|
|
@@ -31698,11 +31697,9 @@ function userDirOverrideProblem(dir, cwd = process.cwd()) {
|
|
|
31698
31697
|
if (d === fold2(real(join20(homedir8(), ".config", "exorcist-98")))) return null;
|
|
31699
31698
|
const rel = relative13(c, d);
|
|
31700
31699
|
if (rel === "" || !rel.startsWith("..") && !isAbsolute16(rel)) return "it is inside the current project folder";
|
|
31701
|
-
for (let cur = d
|
|
31700
|
+
for (let cur = d; ; cur = dirname9(cur)) {
|
|
31702
31701
|
if (existsSync9(join20(cur, ".git"))) return `it is inside a git repository (${cur})`;
|
|
31703
|
-
|
|
31704
|
-
if (up === cur) break;
|
|
31705
|
-
cur = up;
|
|
31702
|
+
if (dirname9(cur) === cur) break;
|
|
31706
31703
|
}
|
|
31707
31704
|
let st;
|
|
31708
31705
|
try {
|
|
@@ -39409,7 +39406,7 @@ unwrap Put the original file back byte for byte, if it was not edited since
|
|
|
39409
39406
|
|
|
39410
39407
|
Options (wrap):
|
|
39411
39408
|
--bin <command> Command that runs the shield (default: exorcist)
|
|
39412
|
-
--bin-arg <arg> Argument before "shield" (repeatable), e.g. --bin npx --bin-arg -y --bin-arg @exorcist-98/cli@0.3.
|
|
39409
|
+
--bin-arg <arg> Argument before "shield" (repeatable), e.g. --bin npx --bin-arg -y --bin-arg @exorcist-98/cli@0.3.9
|
|
39413
39410
|
--dir <folder> State folder (default: ${DEFAULT_DIR})
|
|
39414
39411
|
--dry-run Show the result without writing the file
|
|
39415
39412
|
`;
|
|
@@ -41501,8 +41498,8 @@ function reviewerAgentForProject(mcpCommand) {
|
|
|
41501
41498
|
}
|
|
41502
41499
|
|
|
41503
41500
|
// src/commands/init.ts
|
|
41504
|
-
var DEFAULT_BIN = "npx -y @exorcist-98/cli@0.3.
|
|
41505
|
-
var DEFAULT_MCP_BIN = "npx -y @exorcist-98/mcp-server@0.3.
|
|
41501
|
+
var DEFAULT_BIN = "npx -y @exorcist-98/cli@0.3.9";
|
|
41502
|
+
var DEFAULT_MCP_BIN = "npx -y @exorcist-98/mcp-server@0.3.9";
|
|
41506
41503
|
var MISSING_FROM_DEFAULT_BIN = /* @__PURE__ */ new Set();
|
|
41507
41504
|
var INIT_HELP = `Usage: exorcist init [folder] [--kiro] [--shield] [--sandbox] [--no-agent] [--force]
|
|
41508
41505
|
[--bin <command>] [--mcp-bin <command>]
|
|
@@ -41871,7 +41868,7 @@ ${INIT_HELP}`);
|
|
|
41871
41868
|
"then reconnect MCP servers in the MCP panel so they start through the Shield."
|
|
41872
41869
|
];
|
|
41873
41870
|
if (isDefaultBin) {
|
|
41874
|
-
lines.push("Commands run through npx (@exorcist-98/cli@0.3.
|
|
41871
|
+
lines.push("Commands run through npx (@exorcist-98/cli@0.3.9). If Kiro cannot start a wrapped server or a hook cannot find npx,");
|
|
41875
41872
|
lines.push('rerun with --bin "<absolute path to node> <absolute path to the exorcist CLI>" and --force.');
|
|
41876
41873
|
}
|
|
41877
41874
|
io.out(lines.join("\n"));
|
|
@@ -49254,7 +49251,7 @@ var RawToolsPage = external_exports.object({ tools: external_exports.array(exter
|
|
|
49254
49251
|
var firstLine2 = (err) => (err instanceof Error ? err.message : String(err)).split("\n")[0]?.slice(0, 300) ?? "unknown error";
|
|
49255
49252
|
async function listTools(o) {
|
|
49256
49253
|
const transport = new StdioClientTransport({ command: o.command, args: o.args, env: o.env, cwd: o.cwd, stderr: "ignore" });
|
|
49257
|
-
const client = new Client({ name: "exorcist-lock", version: "0.3.
|
|
49254
|
+
const client = new Client({ name: "exorcist-lock", version: "0.3.9" }, { capabilities: {} });
|
|
49258
49255
|
let timer;
|
|
49259
49256
|
const timedOut = new Promise((res) => {
|
|
49260
49257
|
timer = setTimeout(() => res({ ok: false, error: `it did not list its tools within ${o.timeoutMs} ms.` }), o.timeoutMs);
|
|
@@ -50152,7 +50149,7 @@ ${VAULT_HELP}`);
|
|
|
50152
50149
|
}
|
|
50153
50150
|
|
|
50154
50151
|
// src/index.ts
|
|
50155
|
-
var VERSION = "0.3.
|
|
50152
|
+
var VERSION = "0.3.9";
|
|
50156
50153
|
var HELP = `Exorcist 98 ${VERSION}: antivirus for AI coding agents
|
|
50157
50154
|
|
|
50158
50155
|
Usage: exorcist <command> [options]
|