vigiles 31.0.0 → 32.0.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/dist/adapters/claude-code/run-scripts.d.ts +5 -3
- package/dist/adapters/claude-code/run-scripts.js +5 -3
- package/dist/cli-main.d.ts +8 -0
- package/dist/cli-main.js +297 -192
- package/dist/core/coverage.d.ts +4 -3
- package/dist/core/coverage.js +4 -3
- package/dist/core/doc-refs.d.ts +3 -1
- package/dist/core/doc-refs.js +2 -1
- package/dist/core/frame.d.ts +90 -0
- package/dist/core/frame.js +58 -0
- package/dist/core/glob-ignore.d.ts +28 -0
- package/dist/core/glob-ignore.js +42 -0
- package/dist/core/orphans.d.ts +5 -3
- package/dist/core/orphans.js +5 -4
- package/dist/eval.d.ts +50 -11
- package/dist/eval.js +371 -152
- package/dist/exclude.d.ts +3 -5
- package/dist/exclude.js +3 -3
- package/dist/scan.d.ts +3 -3
- package/dist/scan.js +8 -7
- package/dist/test-coverage.d.ts +20 -3
- package/dist/test-coverage.js +40 -14
- package/package.json +3 -2
|
@@ -108,6 +108,7 @@ export declare const SCRIPT_EXTS: readonly ["mjs", "cjs", "js", "mts", "cts", "t
|
|
|
108
108
|
export declare function scriptGlob(kind: "harness" | "eval"): string;
|
|
109
109
|
export { detectNodeCaps, canRunTypeScript, type NodeCaps, } from "../../ts-runner-caps.js";
|
|
110
110
|
import type { NodeCaps } from "../../ts-runner-caps.js";
|
|
111
|
+
import { type GlobIgnore } from "../../core/glob-ignore.js";
|
|
111
112
|
/**
|
|
112
113
|
* The `node` argv (after the binary) to run a single script. Plain JS runs
|
|
113
114
|
* directly; a TypeScript script picks `tsx` when available, else Node's native
|
|
@@ -128,12 +129,13 @@ export declare function interpreterArgs(file: string, caps: NodeCaps, entry?: st
|
|
|
128
129
|
* Expand the given path/glob patterns into concrete script files. A pattern
|
|
129
130
|
* that is an existing file passes through unchanged; anything else is treated
|
|
130
131
|
* as a glob. Falls back to `defaultGlob` when no patterns are given. Results
|
|
131
|
-
* are deduped and sorted. `ignore` is the repo's ExcludeSet
|
|
132
|
-
* (src/exclude.ts — the floor plus `.vigilesrc.json#exclude
|
|
132
|
+
* are deduped and sorted. `ignore` is the repo's `ExcludeSet.globIgnore`
|
|
133
|
+
* (src/exclude.ts — the floor plus `.vigilesrc.json#exclude`, correct from any
|
|
134
|
+
* `cwd`; a plain list is relative to `cwd`), REQUIRED so a
|
|
133
135
|
* vendored corpus's own `*.harness.mjs` cannot be discovered and run as ours
|
|
134
136
|
* (#192). A path given explicitly in `patterns` is still run.
|
|
135
137
|
*/
|
|
136
|
-
export declare function discoverScripts(patterns: readonly string[], defaultGlob: string, cwd: string, ignore:
|
|
138
|
+
export declare function discoverScripts(patterns: readonly string[], defaultGlob: string, cwd: string, ignore: GlobIgnore): string[];
|
|
137
139
|
/** Extra wiring for {@link runScripts}. */
|
|
138
140
|
export interface RunScriptsOptions {
|
|
139
141
|
/**
|
|
@@ -120,6 +120,7 @@ Object.defineProperty(exports, "detectNodeCaps", { enumerable: true, get: functi
|
|
|
120
120
|
Object.defineProperty(exports, "canRunTypeScript", { enumerable: true, get: function () { return ts_runner_caps_js_1.canRunTypeScript; } });
|
|
121
121
|
const ts_runner_caps_js_2 = require("../../ts-runner-caps.js");
|
|
122
122
|
const tmp_root_js_1 = require("../../core/tmp-root.js");
|
|
123
|
+
const glob_ignore_js_1 = require("../../core/glob-ignore.js");
|
|
123
124
|
/**
|
|
124
125
|
* The `node` argv (after the binary) to run a single script. Plain JS runs
|
|
125
126
|
* directly; a TypeScript script picks `tsx` when available, else Node's native
|
|
@@ -152,8 +153,9 @@ function interpreterArgs(file, caps, entry) {
|
|
|
152
153
|
* Expand the given path/glob patterns into concrete script files. A pattern
|
|
153
154
|
* that is an existing file passes through unchanged; anything else is treated
|
|
154
155
|
* as a glob. Falls back to `defaultGlob` when no patterns are given. Results
|
|
155
|
-
* are deduped and sorted. `ignore` is the repo's ExcludeSet
|
|
156
|
-
* (src/exclude.ts — the floor plus `.vigilesrc.json#exclude
|
|
156
|
+
* are deduped and sorted. `ignore` is the repo's `ExcludeSet.globIgnore`
|
|
157
|
+
* (src/exclude.ts — the floor plus `.vigilesrc.json#exclude`, correct from any
|
|
158
|
+
* `cwd`; a plain list is relative to `cwd`), REQUIRED so a
|
|
157
159
|
* vendored corpus's own `*.harness.mjs` cannot be discovered and run as ours
|
|
158
160
|
* (#192). A path given explicitly in `patterns` is still run.
|
|
159
161
|
*/
|
|
@@ -189,7 +191,7 @@ function discoverScripts(patterns, defaultGlob, cwd, ignore) {
|
|
|
189
191
|
// Asked of the globber rather than filtered afterwards: it already knows.
|
|
190
192
|
for (const m of (0, glob_1.globSync)(p, {
|
|
191
193
|
cwd,
|
|
192
|
-
ignore: [
|
|
194
|
+
ignore: (0, glob_ignore_js_1.withIgnored)([], ignore),
|
|
193
195
|
dot: true,
|
|
194
196
|
nodir: true,
|
|
195
197
|
})) {
|
package/dist/cli-main.d.ts
CHANGED
|
@@ -113,6 +113,14 @@ export declare function lintTotals(report: LintReport): {
|
|
|
113
113
|
errors: number;
|
|
114
114
|
warnings: number;
|
|
115
115
|
};
|
|
116
|
+
/**
|
|
117
|
+
* Unified lint command: verify hashes, report coverage gaps, detect duplicates,
|
|
118
|
+
* suggest improvements.
|
|
119
|
+
*
|
|
120
|
+
* Flags:
|
|
121
|
+
* --summary Print a single-line summary (for SessionStart hooks)
|
|
122
|
+
* --json Print structured JSON report (for CI integration)
|
|
123
|
+
*/
|
|
116
124
|
/**
|
|
117
125
|
* Nested plugin bundles under a lint root — a directory that is itself a harness
|
|
118
126
|
* (its own `.claude-plugin/plugin.json`, or its own skills dir) and is NOT the
|