@wrongstack/tools 1.0.10 → 1.0.11
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/builtin.js +3 -3
- package/dist/{chunk-5RBUYFRV.js → chunk-4IMNVQRB.js} +8 -2
- package/dist/{chunk-FVSMTEO3.js → chunk-6OIEYJM4.js} +2 -2
- package/dist/{chunk-V25Q6TQ7.js → chunk-DKXMDO5F.js} +3 -3
- package/dist/{chunk-6I6RXQFG.js → chunk-GU7TZE6Z.js} +3 -3
- package/dist/{chunk-OUERRFEM.js → chunk-OMQDKZOT.js} +17 -8
- package/dist/index.js +5 -5
- package/dist/pack.js +4 -4
- package/dist/test.d.ts +1 -0
- package/dist/test.js +1 -1
- package/dist/tool-tier.js +5 -5
- package/dist/typecheck.js +1 -1
- package/package.json +5 -5
package/dist/builtin.js
CHANGED
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
TIER2_TOOLS,
|
|
7
7
|
TIER3_TOOLS,
|
|
8
8
|
builtinTools
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GU7TZE6Z.js";
|
|
10
10
|
import "./chunk-BVHKBBGA.js";
|
|
11
11
|
import "./chunk-ENE22I5W.js";
|
|
12
12
|
import "./chunk-XRNN44QY.js";
|
|
13
13
|
import "./chunk-MRXWOOOR.js";
|
|
14
14
|
import "./chunk-7V33PHT6.js";
|
|
15
15
|
import "./chunk-OKZJJDOG.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-OMQDKZOT.js";
|
|
17
17
|
import "./chunk-ULI2J6TX.js";
|
|
18
18
|
import "./chunk-YKSOSI2N.js";
|
|
19
19
|
import "./chunk-DOAHONOS.js";
|
|
@@ -27,7 +27,7 @@ import "./chunk-2OCAAFAT.js";
|
|
|
27
27
|
import "./chunk-M4ZHHCCW.js";
|
|
28
28
|
import "./chunk-KPDCKSN5.js";
|
|
29
29
|
import "./chunk-4SUGLJLO.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-4IMNVQRB.js";
|
|
31
31
|
import "./chunk-E7A4SLKR.js";
|
|
32
32
|
import "./chunk-G7CYW5EP.js";
|
|
33
33
|
import "./chunk-UVYRQKPZ.js";
|
|
@@ -78,11 +78,17 @@ var typecheckTool = {
|
|
|
78
78
|
`typecheck: ${bridge.language} checker unavailable: ${run.error || run.output || "no detail"}`
|
|
79
79
|
);
|
|
80
80
|
}
|
|
81
|
+
if (run.status === "cancelled") signal.throwIfAborted();
|
|
82
|
+
if (run.exitCode === null) {
|
|
83
|
+
throw new Error(
|
|
84
|
+
`typecheck: ${bridge.language} checker did not finish (${run.status})${run.error ? `: ${run.error}` : ""}`
|
|
85
|
+
);
|
|
86
|
+
}
|
|
81
87
|
yield {
|
|
82
88
|
type: "final",
|
|
83
89
|
output: {
|
|
84
90
|
project: `${bridge.language} workspace`,
|
|
85
|
-
exit_code: run.exitCode
|
|
91
|
+
exit_code: run.exitCode,
|
|
86
92
|
errors: run.summary.errors,
|
|
87
93
|
warnings: run.summary.warnings,
|
|
88
94
|
output: normalizeCommandOutput(run.output || run.error || ""),
|
|
@@ -170,4 +176,4 @@ async function findTsConfig(cwd) {
|
|
|
170
176
|
export {
|
|
171
177
|
typecheckTool
|
|
172
178
|
};
|
|
173
|
-
//# sourceMappingURL=chunk-
|
|
179
|
+
//# sourceMappingURL=chunk-4IMNVQRB.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
builtinTools
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GU7TZE6Z.js";
|
|
4
4
|
|
|
5
5
|
// src/pack.ts
|
|
6
6
|
var builtinToolsPack = {
|
|
@@ -12,4 +12,4 @@ var builtinToolsPack = {
|
|
|
12
12
|
export {
|
|
13
13
|
builtinToolsPack
|
|
14
14
|
};
|
|
15
|
-
//# sourceMappingURL=chunk-
|
|
15
|
+
//# sourceMappingURL=chunk-6OIEYJM4.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
builtinToolsPack
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6OIEYJM4.js";
|
|
4
4
|
import {
|
|
5
5
|
TIER1_TOOLS,
|
|
6
6
|
TIER2_TOOLS
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GU7TZE6Z.js";
|
|
8
8
|
|
|
9
9
|
// src/tool-tier.ts
|
|
10
10
|
function toolNameSet(tools) {
|
|
@@ -54,4 +54,4 @@ export {
|
|
|
54
54
|
selectBuiltinToolsForTier,
|
|
55
55
|
registerBuiltinToolTier
|
|
56
56
|
};
|
|
57
|
-
//# sourceMappingURL=chunk-
|
|
57
|
+
//# sourceMappingURL=chunk-DKXMDO5F.js.map
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk-OKZJJDOG.js";
|
|
28
28
|
import {
|
|
29
29
|
testTool
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-OMQDKZOT.js";
|
|
31
31
|
import {
|
|
32
32
|
installTool
|
|
33
33
|
} from "./chunk-ULI2J6TX.js";
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
} from "./chunk-4SUGLJLO.js";
|
|
70
70
|
import {
|
|
71
71
|
typecheckTool
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-4IMNVQRB.js";
|
|
73
73
|
import {
|
|
74
74
|
languageInfoTool,
|
|
75
75
|
languagePackageTool,
|
|
@@ -1623,4 +1623,4 @@ export {
|
|
|
1623
1623
|
TIER3_TOOLS,
|
|
1624
1624
|
builtinTools
|
|
1625
1625
|
};
|
|
1626
|
-
//# sourceMappingURL=chunk-
|
|
1626
|
+
//# sourceMappingURL=chunk-GU7TZE6Z.js.map
|
|
@@ -34,7 +34,6 @@ var testTool = {
|
|
|
34
34
|
enum: ["vitest", "jest", "mocha", "auto"],
|
|
35
35
|
description: "Test runner (default: auto-detect)"
|
|
36
36
|
},
|
|
37
|
-
watch: { type: "boolean", description: "Run in watch mode (default: false)" },
|
|
38
37
|
coverage: { type: "boolean", description: "Generate coverage report (default: false)" },
|
|
39
38
|
cwd: { type: "string", description: "Working directory (default: cwd)" },
|
|
40
39
|
grep: { type: "string", description: "Filter tests by name pattern (default: none)" },
|
|
@@ -80,21 +79,32 @@ var testTool = {
|
|
|
80
79
|
`test: ${bridge.language} test runner unavailable: ${run.error || run.output || "no detail"}`
|
|
81
80
|
);
|
|
82
81
|
}
|
|
82
|
+
if (run.status === "cancelled") {
|
|
83
|
+
signal.throwIfAborted();
|
|
84
|
+
throw new Error(`test: ${bridge.language} test run was cancelled`);
|
|
85
|
+
}
|
|
86
|
+
if (run.status === "failed" && run.exitCode === null) {
|
|
87
|
+
throw new Error(
|
|
88
|
+
`test: ${bridge.language} test runner failed to run: ${run.error || "no detail"}`
|
|
89
|
+
);
|
|
90
|
+
}
|
|
83
91
|
const passed = run.summary.passed ?? 0;
|
|
84
92
|
const failed = run.summary.failed ?? 0;
|
|
85
|
-
const exitCode = run.exitCode ?? 0;
|
|
86
93
|
const rawOutput = run.output || run.error || "";
|
|
94
|
+
const status = run.status === "passed" && run.exitCode === 0 ? resolveStatus(0, passed + failed, rawOutput) : "failed";
|
|
95
|
+
const timedOutNote = run.status === "timed_out" ? `Test run timed out before completing.
|
|
96
|
+
` : "";
|
|
87
97
|
yield {
|
|
88
98
|
type: "final",
|
|
89
99
|
output: {
|
|
90
100
|
runner: bridge.language,
|
|
91
|
-
status
|
|
92
|
-
exit_code: exitCode,
|
|
101
|
+
status,
|
|
102
|
+
exit_code: run.exitCode,
|
|
93
103
|
tests_run: passed + failed,
|
|
94
104
|
passed,
|
|
95
105
|
failed,
|
|
96
106
|
duration_ms: run.durationMs,
|
|
97
|
-
output: normalizeCommandOutput(rawOutput),
|
|
107
|
+
output: normalizeCommandOutput(timedOutNote + rawOutput),
|
|
98
108
|
truncated: run.truncated
|
|
99
109
|
}
|
|
100
110
|
};
|
|
@@ -171,7 +181,7 @@ function buildArgs(runner, input) {
|
|
|
171
181
|
const timeout = Math.max(100, rawTimeout);
|
|
172
182
|
switch (runner) {
|
|
173
183
|
case "vitest":
|
|
174
|
-
args.push(
|
|
184
|
+
args.push("run");
|
|
175
185
|
if (input.verbose) args.push("--reporter=verbose");
|
|
176
186
|
if (input.coverage) args.push("--coverage");
|
|
177
187
|
if (input.grep) args.push("--testNamePattern", input.grep);
|
|
@@ -179,7 +189,6 @@ function buildArgs(runner, input) {
|
|
|
179
189
|
break;
|
|
180
190
|
case "jest":
|
|
181
191
|
if (input.verbose) args.push("--verbose");
|
|
182
|
-
if (input.watch) args.push("--watch");
|
|
183
192
|
if (input.coverage) args.push("--coverage");
|
|
184
193
|
if (input.grep) args.push("--testNamePattern", input.grep);
|
|
185
194
|
args.push("--testTimeout", String(timeout));
|
|
@@ -252,4 +261,4 @@ ${result.stderr}` : result.stdout || result.stderr || result.error || "";
|
|
|
252
261
|
export {
|
|
253
262
|
testTool
|
|
254
263
|
};
|
|
255
|
-
//# sourceMappingURL=chunk-
|
|
264
|
+
//# sourceMappingURL=chunk-OMQDKZOT.js.map
|
package/dist/index.js
CHANGED
|
@@ -46,10 +46,10 @@ import "./chunk-Z6DAKQ3U.js";
|
|
|
46
46
|
import {
|
|
47
47
|
registerBuiltinToolTier,
|
|
48
48
|
selectBuiltinToolsForTier
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-DKXMDO5F.js";
|
|
50
50
|
import {
|
|
51
51
|
builtinToolsPack
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-6OIEYJM4.js";
|
|
53
53
|
import {
|
|
54
54
|
OFF_ONLY_TOOLS,
|
|
55
55
|
OPTIONAL_TOOLS,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
pwshTool,
|
|
65
65
|
readUrlContentTool,
|
|
66
66
|
securityAstScanTool
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-GU7TZE6Z.js";
|
|
68
68
|
import {
|
|
69
69
|
discoverE2EProjects,
|
|
70
70
|
e2ePlanTool
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
} from "./chunk-OKZJJDOG.js";
|
|
112
112
|
import {
|
|
113
113
|
testTool
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-OMQDKZOT.js";
|
|
115
115
|
import {
|
|
116
116
|
installTool
|
|
117
117
|
} from "./chunk-ULI2J6TX.js";
|
|
@@ -151,7 +151,7 @@ import {
|
|
|
151
151
|
} from "./chunk-4SUGLJLO.js";
|
|
152
152
|
import {
|
|
153
153
|
typecheckTool
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-4IMNVQRB.js";
|
|
155
155
|
import "./chunk-E7A4SLKR.js";
|
|
156
156
|
import {
|
|
157
157
|
ADDITIONAL_LANGUAGE_PROFILES,
|
package/dist/pack.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
builtinToolsPack
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-6OIEYJM4.js";
|
|
4
|
+
import "./chunk-GU7TZE6Z.js";
|
|
5
5
|
import "./chunk-BVHKBBGA.js";
|
|
6
6
|
import "./chunk-ENE22I5W.js";
|
|
7
7
|
import "./chunk-XRNN44QY.js";
|
|
8
8
|
import "./chunk-MRXWOOOR.js";
|
|
9
9
|
import "./chunk-7V33PHT6.js";
|
|
10
10
|
import "./chunk-OKZJJDOG.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-OMQDKZOT.js";
|
|
12
12
|
import "./chunk-ULI2J6TX.js";
|
|
13
13
|
import "./chunk-YKSOSI2N.js";
|
|
14
14
|
import "./chunk-DOAHONOS.js";
|
|
@@ -22,7 +22,7 @@ import "./chunk-2OCAAFAT.js";
|
|
|
22
22
|
import "./chunk-M4ZHHCCW.js";
|
|
23
23
|
import "./chunk-KPDCKSN5.js";
|
|
24
24
|
import "./chunk-4SUGLJLO.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-4IMNVQRB.js";
|
|
26
26
|
import "./chunk-E7A4SLKR.js";
|
|
27
27
|
import "./chunk-G7CYW5EP.js";
|
|
28
28
|
import "./chunk-UVYRQKPZ.js";
|
package/dist/test.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export type TestRunnerName = 'vitest' | 'jest' | 'mocha' | 'auto';
|
|
|
3
3
|
export interface TestInput {
|
|
4
4
|
files?: string | string[] | undefined;
|
|
5
5
|
runner?: TestRunnerName | undefined;
|
|
6
|
+
/** @deprecated Ignored — a watch-mode runner never exits inside a tool call. */
|
|
6
7
|
watch?: boolean | undefined;
|
|
7
8
|
coverage?: boolean | undefined;
|
|
8
9
|
cwd?: string | undefined;
|
package/dist/test.js
CHANGED
package/dist/tool-tier.js
CHANGED
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
BUILTIN_TIER_COUNTS,
|
|
3
3
|
registerBuiltinToolTier,
|
|
4
4
|
selectBuiltinToolsForTier
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-DKXMDO5F.js";
|
|
6
|
+
import "./chunk-6OIEYJM4.js";
|
|
7
|
+
import "./chunk-GU7TZE6Z.js";
|
|
8
8
|
import "./chunk-BVHKBBGA.js";
|
|
9
9
|
import "./chunk-ENE22I5W.js";
|
|
10
10
|
import "./chunk-XRNN44QY.js";
|
|
11
11
|
import "./chunk-MRXWOOOR.js";
|
|
12
12
|
import "./chunk-7V33PHT6.js";
|
|
13
13
|
import "./chunk-OKZJJDOG.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-OMQDKZOT.js";
|
|
15
15
|
import "./chunk-ULI2J6TX.js";
|
|
16
16
|
import "./chunk-YKSOSI2N.js";
|
|
17
17
|
import "./chunk-DOAHONOS.js";
|
|
@@ -25,7 +25,7 @@ import "./chunk-2OCAAFAT.js";
|
|
|
25
25
|
import "./chunk-M4ZHHCCW.js";
|
|
26
26
|
import "./chunk-KPDCKSN5.js";
|
|
27
27
|
import "./chunk-4SUGLJLO.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-4IMNVQRB.js";
|
|
29
29
|
import "./chunk-E7A4SLKR.js";
|
|
30
30
|
import "./chunk-G7CYW5EP.js";
|
|
31
31
|
import "./chunk-UVYRQKPZ.js";
|
package/dist/typecheck.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/tools",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "WrongStack built-in tools: read/write/edit, bash/exec, grep/glob, git, fetch, test, lint, and more.",
|
|
6
6
|
"repository": {
|
|
@@ -237,10 +237,10 @@
|
|
|
237
237
|
"@msgpack/msgpack": "^3.1.3",
|
|
238
238
|
"@playwright/test": "^1.63.0",
|
|
239
239
|
"@typescript/typescript6": "^6.0.2",
|
|
240
|
-
"@wrongstack/core": "1.0.
|
|
241
|
-
"@wrongstack/kanban": "1.0.
|
|
242
|
-
"@wrongstack/persistence": "1.0.
|
|
243
|
-
"@wrongstack/primitives": "1.0.
|
|
240
|
+
"@wrongstack/core": "1.0.11",
|
|
241
|
+
"@wrongstack/kanban": "1.0.11",
|
|
242
|
+
"@wrongstack/persistence": "1.0.11",
|
|
243
|
+
"@wrongstack/primitives": "1.0.11",
|
|
244
244
|
"tree-sitter-wasm": "1.1.8",
|
|
245
245
|
"turndown": "^7.2.4",
|
|
246
246
|
"undici": "^8.10.2",
|