@fusengine/harness 0.1.28 → 0.1.30
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/index.mjs +1 -1
- package/dist/adapters/cline/index.mjs +1 -1
- package/dist/adapters/codex/index.mjs +1 -1
- package/dist/adapters/cursor/index.mjs +1 -1
- package/dist/adapters/gemini/index.mjs +1 -1
- package/dist/cache/index.mjs +2 -2
- package/dist/{cache-BzbX-ztL.mjs → cache-C9z9LclL.mjs} +1 -31
- package/dist/{claude-phC5Uh_W.mjs → claude-B9FYp0Yw.mjs} +1 -1
- package/dist/cli/bin.mjs +14 -4
- package/dist/cli/index.mjs +1 -1
- package/dist/describe-CPtgUzFS.mjs +1038 -0
- package/dist/{evaluate-CFYPF3re.mjs → evaluate-j3gRJ_ng.mjs} +14 -2
- package/dist/freshness/index.mjs +1 -1
- package/dist/{freshness-CezohJHo.mjs → freshness-otdUpuvP.mjs} +1 -1
- package/dist/handle-USWK4NSE.mjs +2300 -0
- package/dist/index-mISsk0ff.d.mts +438 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +7 -8
- package/dist/{json-io-xpTDuvtn.mjs → json-io-CAn72gI4.mjs} +1 -1
- package/dist/policy/index.d.mts +2 -2
- package/dist/policy/index.mjs +4 -4
- package/dist/policy-la_KkjCS.mjs +1 -0
- package/dist/{run-B8n-H5hA.mjs → run-CXsV-wIJ.mjs} +1 -1
- package/dist/runtime/index.d.mts +454 -8
- package/dist/runtime/index.mjs +2 -2
- package/dist/state/index.mjs +1 -1
- package/dist/{state-Cs0Y0MG_.mjs → state-ByhLeKyD.mjs} +1 -1
- package/dist/{store-BnHpq2ZB.mjs → store-D-ge2ZPI.mjs} +1 -1
- package/dist/{store-DeIsfMg5.mjs → store-PrNPm6So.mjs} +30 -1
- package/dist/tracking/index.mjs +1 -1
- package/package.json +10 -3
- package/dist/handle-DnOw05K8.mjs +0 -347
- package/dist/index-DNAzITvw.d.mts +0 -227
- package/dist/policy-EuVJ_5hS.mjs +0 -33
- package/dist/verbosity-CXpf3aQQ.mjs +0 -98
|
@@ -22,9 +22,21 @@ function detectFramework(filePath, content) {
|
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region src/policy/file-size.ts
|
|
25
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* Count substantive (code-only) lines — blank lines and comment-only lines
|
|
27
|
+
* (`//`, `*`, `/*` block-comment bodies) don't count toward the SOLID limit, so a
|
|
28
|
+
* well-documented file isn't penalized for its JSDoc. (`#` is intentionally NOT
|
|
29
|
+
* skipped: it is code in Rust `#[derive]` and C `#include`, not a comment.)
|
|
30
|
+
*/
|
|
26
31
|
function countLines(content) {
|
|
27
|
-
|
|
32
|
+
if (content === "") return 0;
|
|
33
|
+
let n = 0;
|
|
34
|
+
for (const line of content.split("\n")) {
|
|
35
|
+
const s = line.trim();
|
|
36
|
+
if (!s || s.startsWith("//") || s.startsWith("*") || s.startsWith("/*")) continue;
|
|
37
|
+
n++;
|
|
38
|
+
}
|
|
39
|
+
return n;
|
|
28
40
|
}
|
|
29
41
|
/**
|
|
30
42
|
* Evaluate a file's line count against the SOLID limit.
|
package/dist/freshness/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { i as resolveSessions, n as formatDocSatisfactionStatus, r as isDocConsulted, t as formatDocDeny } from "../doc-helpers-Dd_x1-tZ.mjs";
|
|
2
|
-
import { t as incrementTrivialEditCounter } from "../freshness-
|
|
2
|
+
import { t as incrementTrivialEditCounter } from "../freshness-otdUpuvP.mjs";
|
|
3
3
|
export { formatDocDeny, formatDocSatisfactionStatus, incrementTrivialEditCounter, isDocConsulted, resolveSessions };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as writeJsonFile, n as ensureDir, r as readJsonFile } from "./json-io-CAn72gI4.mjs";
|
|
2
2
|
import { dirname } from "node:path";
|
|
3
3
|
//#region src/freshness/trivial-edit-counter.ts
|
|
4
4
|
/**
|