howtofixcli 0.7.8 → 0.7.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/dist/chunk-27TRKD65.js +2 -0
- package/dist/chunk-3FYCFLNK.js +1 -0
- package/dist/chunk-56SEAGAQ.js +1 -0
- package/dist/chunk-63ZCQDXH.js +6 -0
- package/dist/chunk-6FUWMLWO.js +1 -0
- package/dist/chunk-7CHDNTH6.js +1 -0
- package/dist/chunk-ACOMNDUL.js +185 -0
- package/dist/chunk-AEVPET7X.js +2 -0
- package/dist/chunk-AGGIYXN7.js +2 -0
- package/dist/chunk-BHVBO4SC.js +1 -0
- package/dist/chunk-FPXVDP32.js +8 -0
- package/dist/chunk-GIUYIKH3.js +109 -0
- package/dist/chunk-GQCAJ56I.js +5 -0
- package/dist/chunk-GXB7RZHH.js +1 -0
- package/dist/chunk-IGEY3AWF.js +1 -0
- package/dist/chunk-ILDDDLRC.js +1 -0
- package/dist/chunk-JFYVRWJI.js +2 -0
- package/dist/chunk-MVLCGU3G.js +1 -0
- package/dist/chunk-N345KWWK.js +1 -0
- package/dist/chunk-NBQFPCRT.js +1 -0
- package/dist/chunk-OIPSLIZE.js +5 -0
- package/dist/chunk-ORJ2QZBG.js +3 -0
- package/dist/chunk-PCALBZOO.js +2 -0
- package/dist/chunk-PDNBGUYP.js +2 -0
- package/dist/chunk-S656RE4A.js +1 -0
- package/dist/chunk-TSEKPGK4.js +1 -0
- package/dist/chunk-U6CI6KXN.js +34 -0
- package/dist/chunk-UTYFLLSM.js +1 -0
- package/dist/chunk-V3R4FYTJ.js +1 -0
- package/dist/chunk-V656XVXV.js +8 -0
- package/dist/chunk-WKUJ7CFO.js +1 -0
- package/dist/chunk-WOT6VMZA.js +1 -0
- package/dist/chunk-WUPU6LTD.js +4 -0
- package/dist/chunk-WX3V5P7U.js +5 -0
- package/dist/chunk-ZKZ6WCI3.js +2 -0
- package/dist/main.js +94 -536
- package/package.json +15 -62
- package/dist/account-credential.js +0 -136
- package/dist/account-credential.test.js +0 -38
- package/dist/activity.js +0 -124
- package/dist/agent-defs.js +0 -237
- package/dist/agent-limiter.js +0 -68
- package/dist/agents.js +0 -554
- package/dist/anim.js +0 -361
- package/dist/args.js +0 -228
- package/dist/at-file.js +0 -28
- package/dist/brand-extension.js +0 -87
- package/dist/brand.js +0 -76
- package/dist/browser.js +0 -58
- package/dist/cache-report.js +0 -139
- package/dist/checkpoint.js +0 -437
- package/dist/claims.js +0 -167
- package/dist/cli-auth.js +0 -142
- package/dist/cli-checkin.js +0 -120
- package/dist/cli-credentials.js +0 -254
- package/dist/clipboard.js +0 -149
- package/dist/collapse.js +0 -129
- package/dist/commands.js +0 -301
- package/dist/compaction-guard.js +0 -81
- package/dist/context-extension.js +0 -17
- package/dist/dcp/commands.js +0 -172
- package/dist/dcp/compress-state.js +0 -139
- package/dist/dcp/compress.js +0 -329
- package/dist/dcp/dcp-extension.js +0 -288
- package/dist/dcp/dedup.js +0 -93
- package/dist/dcp/ids.js +0 -189
- package/dist/dcp/index.js +0 -25
- package/dist/dcp/prompts.js +0 -68
- package/dist/dcp/protected-content.js +0 -221
- package/dist/dcp/protected.js +0 -161
- package/dist/dcp/prune.js +0 -418
- package/dist/dcp/state.js +0 -176
- package/dist/device-id.js +0 -90
- package/dist/device-id.test.js +0 -23
- package/dist/errors.js +0 -63
- package/dist/extensions.js +0 -48
- package/dist/fatal.js +0 -35
- package/dist/feed.js +0 -498
- package/dist/fs-atomic.js +0 -54
- package/dist/gateway-errors.js +0 -90
- package/dist/git.js +0 -230
- package/dist/goal-extension.js +0 -88
- package/dist/goal.js +0 -222
- package/dist/hooks-extension.js +0 -176
- package/dist/hooks.js +0 -443
- package/dist/howtofix-account.js +0 -715
- package/dist/hud-line.js +0 -153
- package/dist/hwid.js +0 -130
- package/dist/interrupt.js +0 -60
- package/dist/json-events.js +0 -50
- package/dist/level-style.js +0 -112
- package/dist/loop-guard.js +0 -95
- package/dist/lsp-tools.js +0 -32
- package/dist/lsp.js +0 -347
- package/dist/mcp-config.js +0 -85
- package/dist/mcp-lifecycle.js +0 -147
- package/dist/model-catalog.js +0 -217
- package/dist/model-resolve.js +0 -65
- package/dist/notes.js +0 -78
- package/dist/oauth-login.js +0 -568
- package/dist/paths.js +0 -61
- package/dist/permissions.js +0 -298
- package/dist/plan-mode.js +0 -363
- package/dist/preset-command.js +0 -227
- package/dist/preset-extension.js +0 -35
- package/dist/preset-mcp.js +0 -292
- package/dist/presets.js +0 -727
- package/dist/prompt-files.js +0 -103
- package/dist/prompt-text.js +0 -41
- package/dist/proxy.js +0 -137
- package/dist/quality/ast.js +0 -196
- package/dist/quality/cognitive.js +0 -83
- package/dist/quality/cyclomatic.js +0 -30
- package/dist/quality/halstead.js +0 -83
- package/dist/quality/index.js +0 -18
- package/dist/quality/length.js +0 -3
- package/dist/quality/maintainability.js +0 -15
- package/dist/quality/nesting.js +0 -57
- package/dist/quality/report.js +0 -803
- package/dist/quality/smells.js +0 -67
- package/dist/quality-tool.js +0 -63
- package/dist/read-only-commands.js +0 -597
- package/dist/repo-map.js +0 -292
- package/dist/rtk.js +0 -193
- package/dist/sandbox.js +0 -105
- package/dist/schema.js +0 -214
- package/dist/session-lifecycle.js +0 -19
- package/dist/session-retention.js +0 -111
- package/dist/session.js +0 -446
- package/dist/sessions.js +0 -100
- package/dist/settings.js +0 -148
- package/dist/skills.js +0 -35
- package/dist/slop-tool.js +0 -96
- package/dist/spend-cap.js +0 -43
- package/dist/subagent.js +0 -171
- package/dist/tar.js +0 -146
- package/dist/theme.js +0 -79
- package/dist/thinking.js +0 -45
- package/dist/todo.js +0 -114
- package/dist/tool-loadout.js +0 -97
- package/dist/tool-render.js +0 -769
- package/dist/tools.js +0 -176
- package/dist/ui.js +0 -4757
- package/dist/update.js +0 -533
- package/dist/usage-segment.js +0 -69
- package/dist/web-tools.js +0 -46
- package/dist/web.js +0 -265
- package/dist/welcome.js +0 -179
- package/dist/workflow-engine.js +0 -246
- package/dist/workflow-progress.js +0 -446
- package/dist/workflow-view.js +0 -195
- package/dist/workflow.js +0 -349
package/dist/quality/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Public barrel for the quality suite (spec §2).
|
|
3
|
-
*
|
|
4
|
-
* The CLI (`scripts/quality.mjs`) and the check (`scripts/check-quality.mjs`)
|
|
5
|
-
* import from `dist/quality/index.js` and nothing deeper, so this surface is
|
|
6
|
-
* the contract: parse pipeline (`ast`), the six metrics plus compound smells,
|
|
7
|
-
* and the report pipeline (config, analysis over `Map<path, FileReport>`,
|
|
8
|
-
* baseline, human/JSON/SARIF renderers, target collection).
|
|
9
|
-
*/
|
|
10
|
-
export * from "./ast.js";
|
|
11
|
-
export * from "./cognitive.js";
|
|
12
|
-
export * from "./cyclomatic.js";
|
|
13
|
-
export * from "./halstead.js";
|
|
14
|
-
export * from "./length.js";
|
|
15
|
-
export * from "./maintainability.js";
|
|
16
|
-
export * from "./nesting.js";
|
|
17
|
-
export * from "./report.js";
|
|
18
|
-
export * from "./smells.js";
|
package/dist/quality/length.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Maintainability Index — spec §3.6, SEI formula in the Visual Studio variant,
|
|
3
|
-
* scaled 0–100:
|
|
4
|
-
*
|
|
5
|
-
* raw = 171 − 5.2 × ln(V) − 0.23 × CC − 16.2 × ln(LOC)
|
|
6
|
-
* MI = max(0, raw × 100 / 171)
|
|
7
|
-
*
|
|
8
|
-
* `V` (Halstead volume) and `LOC` are held at ≥ 1 before the logarithm, as the
|
|
9
|
-
* spec requires: volume 0 and LOC 0 are real inputs (an empty body, a one-line
|
|
10
|
-
* function) and neither may turn `ln` into −Infinity and the score into NaN.
|
|
11
|
-
*/
|
|
12
|
-
export function maintainabilityIndex(volume, cyclomaticComplexity, lines) {
|
|
13
|
-
const raw = 171 - 5.2 * Math.log(Math.max(volume, 1)) - 0.23 * cyclomaticComplexity - 16.2 * Math.log(Math.max(lines, 1));
|
|
14
|
-
return Math.round(Math.max(0, (raw * 100) / 171) * 10) / 10;
|
|
15
|
-
}
|
package/dist/quality/nesting.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Maximum nesting depth — spec §3.3.
|
|
3
|
-
*
|
|
4
|
-
* The deepest run of `if` / `switch` / loop / `try` / `catch` inside one
|
|
5
|
-
* function. Two details:
|
|
6
|
-
*
|
|
7
|
-
* - A chain of `else if`s is NOT nesting: the chain link sits at the same
|
|
8
|
-
* depth as the `if` that started it, so `if / else if / else if / else` is
|
|
9
|
-
* depth 1, not4.
|
|
10
|
-
* - Nested functions are separate units and are not descended into.
|
|
11
|
-
*/
|
|
12
|
-
import { SyntaxKind, visitEachChild } from "typescript/unstable/ast";
|
|
13
|
-
import { childNode, isFunctionLike } from "./ast.js";
|
|
14
|
-
const NESTING_KINDS = new Set([
|
|
15
|
-
SyntaxKind.IfStatement,
|
|
16
|
-
SyntaxKind.SwitchStatement,
|
|
17
|
-
SyntaxKind.WhileStatement,
|
|
18
|
-
SyntaxKind.DoStatement,
|
|
19
|
-
SyntaxKind.ForStatement,
|
|
20
|
-
SyntaxKind.ForInStatement,
|
|
21
|
-
SyntaxKind.ForOfStatement,
|
|
22
|
-
SyntaxKind.TryStatement,
|
|
23
|
-
SyntaxKind.CatchClause,
|
|
24
|
-
]);
|
|
25
|
-
export function nesting(body) {
|
|
26
|
-
let deepest = 0;
|
|
27
|
-
const enterNode = (node, depth) => {
|
|
28
|
-
if (isFunctionLike(node.kind))
|
|
29
|
-
return;
|
|
30
|
-
let current = depth;
|
|
31
|
-
if (NESTING_KINDS.has(node.kind)) {
|
|
32
|
-
current = depth + 1;
|
|
33
|
-
if (current > deepest)
|
|
34
|
-
deepest = current;
|
|
35
|
-
}
|
|
36
|
-
if (node.kind === SyntaxKind.IfStatement) {
|
|
37
|
-
// Named children only: the chain continuation in `alternate` must not
|
|
38
|
-
// inherit the depth the `if` itself just added.
|
|
39
|
-
const condition = childNode(node, "expression");
|
|
40
|
-
if (condition)
|
|
41
|
-
enterNode(condition, current);
|
|
42
|
-
const then = childNode(node, "thenStatement");
|
|
43
|
-
if (then)
|
|
44
|
-
enterNode(then, current);
|
|
45
|
-
const alternate = childNode(node, "alternate");
|
|
46
|
-
if (alternate)
|
|
47
|
-
enterNode(alternate, alternate.kind === SyntaxKind.IfStatement ? depth : current);
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
visitEachChild(node, (child) => {
|
|
51
|
-
enterNode(child, current);
|
|
52
|
-
return child;
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
enterNode(body, 0);
|
|
56
|
-
return deepest;
|
|
57
|
-
}
|