@wrongstack/tools 0.320.1 → 1.0.1
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/_danger-detect.d.ts +8 -0
- package/dist/_syntax-check.d.ts +1 -2
- package/dist/audit.d.ts +4 -5
- package/dist/audit.js +6 -6
- package/dist/auto-proceed-loop-guard.d.ts +1 -1
- package/dist/auto-proceed-loop-guard.js +9 -160
- package/dist/bash-kill-guard.d.ts +2 -3
- package/dist/bash.d.ts +2 -3
- package/dist/bash.js +4 -4
- package/dist/batch-tool-use.d.ts +2 -3
- package/dist/batch-tool-use.js +1 -1
- package/dist/browser/index.d.ts +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/tools.d.ts +56 -45
- package/dist/builtin.js +50 -50
- package/dist/{chunk-T77XOX7E.js → chunk-24T5XIJU.js} +1 -1
- package/dist/{chunk-DTQ75VBC.js → chunk-2CTZW6JQ.js} +2 -2
- package/dist/{chunk-KWXIKGE3.js → chunk-3D5DJWOE.js} +3 -3
- package/dist/{chunk-XSSFBS5I.js → chunk-4ERMPDHV.js} +11 -6
- package/dist/{chunk-QSNVDHOZ.js → chunk-4WPBS45A.js} +4 -5
- package/dist/{chunk-4CQWNZ62.js → chunk-5ITQPCLC.js} +2 -2
- package/dist/{chunk-B4HTSV6Z.js → chunk-5KS24LTS.js} +11 -11
- package/dist/{chunk-QPNYDH5B.js → chunk-62OAECEQ.js} +29 -7
- package/dist/{chunk-DFQDJT22.js → chunk-6GOZTS6F.js} +3 -3
- package/dist/{chunk-5UFVCIUB.js → chunk-6H4ERJP7.js} +140 -24
- package/dist/{chunk-34VLZ35Z.js → chunk-7HL23T3T.js} +63 -10
- package/dist/{chunk-HFXSNKCV.js → chunk-7JJFC6CT.js} +1 -1
- package/dist/{chunk-23EX5WDO.js → chunk-7LQCT3LT.js} +3 -3
- package/dist/{chunk-NDIT3SBZ.js → chunk-7N5U2RAU.js} +2 -2
- package/dist/{chunk-QBV725YG.js → chunk-7ODZTPCU.js} +2 -2
- package/dist/{chunk-6AAOT4PW.js → chunk-AQ5YBURX.js} +16 -4
- package/dist/{chunk-ZMW6WJFT.js → chunk-ASEXQRA7.js} +3 -3
- package/dist/{chunk-FRN7TIAA.js → chunk-B3MGJBFI.js} +1 -1
- package/dist/{chunk-JLYA4X7K.js → chunk-CGXTR34H.js} +21 -6
- package/dist/{chunk-IU4DV2PA.js → chunk-CHEK3ASV.js} +6 -3
- package/dist/{chunk-GOIZNNOA.js → chunk-DJYLI7EW.js} +1 -1
- package/dist/{chunk-Z6IHMJMC.js → chunk-DK4J2WMH.js} +11 -11
- package/dist/{chunk-OYP27E3I.js → chunk-DRRY6SCM.js} +47 -20
- package/dist/{chunk-JVRLTEO7.js → chunk-E7JE3UEX.js} +2 -2
- package/dist/{chunk-BK732J7I.js → chunk-FBUP524S.js} +4 -4
- package/dist/{chunk-NYRLWDT5.js → chunk-FVM3O4JQ.js} +1 -1
- package/dist/chunk-FYDBUVQD.js +244 -0
- package/dist/{chunk-PV6HIZQD.js → chunk-GDDXX27P.js} +50 -50
- package/dist/{chunk-3GIKYHLA.js → chunk-GKSG5CPH.js} +6 -6
- package/dist/{chunk-ESLPBT5A.js → chunk-HDYUBRMF.js} +4 -3
- package/dist/{chunk-4BABEJC2.js → chunk-IAYMTTR2.js} +236 -79
- package/dist/{chunk-ELRRTWNP.js → chunk-IXIS7RSG.js} +2 -2
- package/dist/{chunk-HR67OWEP.js → chunk-IYH4OHBP.js} +5 -5
- package/dist/{chunk-W232EFEM.js → chunk-JDOO4P6Z.js} +7 -4
- package/dist/{chunk-2OXHS3KZ.js → chunk-KLJZ4WV4.js} +4 -3
- package/dist/{chunk-3M7LLN7W.js → chunk-LQSOU63Z.js} +12 -11
- package/dist/{chunk-OTPTQBYE.js → chunk-MGPR7VG3.js} +279 -265
- package/dist/{chunk-C2DQKVLO.js → chunk-MJSJWXBF.js} +1 -1
- package/dist/{chunk-NSPNFOJ7.js → chunk-MK2JK35J.js} +25 -10
- package/dist/{chunk-JSNSMG5R.js → chunk-MSOAX3GC.js} +1 -1
- package/dist/{chunk-J43O3BOX.js → chunk-N3K2SFEI.js} +532 -492
- package/dist/{chunk-J74TMK4M.js → chunk-NJX2RXKJ.js} +50 -7
- package/dist/chunk-NL2S2CXD.js +171 -0
- package/dist/{chunk-WAQASTXB.js → chunk-O6BY43ZB.js} +29 -8
- package/dist/{chunk-QGF2C7TF.js → chunk-PVCB7RUZ.js} +2 -2
- package/dist/{chunk-YTKSNTT4.js → chunk-QA6IASYX.js} +8 -8
- package/dist/{chunk-VPALDFYM.js → chunk-RV7BVTDG.js} +1 -1
- package/dist/chunk-S57CDR2H.js +288 -0
- package/dist/{chunk-W2CECGTG.js → chunk-SMARDKAC.js} +1 -1
- package/dist/{chunk-QWKSKFKZ.js → chunk-SOR7OCYP.js} +1 -1
- package/dist/{chunk-I7FBZOEP.js → chunk-T3SMFF5Q.js} +11 -5
- package/dist/{chunk-4BHUSMNL.js → chunk-UI3ZJIG3.js} +1 -1
- package/dist/{chunk-WXJY3BKV.js → chunk-VBF2YXUW.js} +2 -2
- package/dist/{chunk-FQNXYA6W.js → chunk-VU3QBYL4.js} +36 -5
- package/dist/{chunk-VD2LV5WO.js → chunk-VZGPASGD.js} +37 -12
- package/dist/{chunk-UZFY3CKD.js → chunk-WEEVSWQB.js} +17 -6
- package/dist/chunk-XXRMF2BC.js +186 -0
- package/dist/{chunk-LRDIRJJL.js → chunk-YEISRT4S.js} +5 -11
- package/dist/{chunk-Q5JPPCZC.js → chunk-YJTXRH5Y.js} +3 -2
- package/dist/{chunk-Z5Q3TXRY.js → chunk-ZTCJCYLN.js} +3 -3
- package/dist/circuit-breaker.d.ts +1 -0
- package/dist/circuit-breaker.js +1 -1
- package/dist/clarify.d.ts +1 -0
- package/dist/codebase-index/codebase-ast-replace-tool.d.ts +2 -3
- package/dist/codebase-index/codebase-impact-analysis-tool.d.ts +5 -4
- package/dist/codebase-index/codebase-incoming-calls-tool.d.ts +4 -3
- package/dist/codebase-index/codebase-index-tool.d.ts +2 -3
- package/dist/codebase-index/codebase-invariant-check-tool.d.ts +2 -3
- package/dist/codebase-index/codebase-outgoing-calls-tool.d.ts +4 -3
- package/dist/codebase-index/codebase-repo-map-tool.d.ts +2 -3
- package/dist/codebase-index/codebase-search-tool.d.ts +2 -3
- package/dist/codebase-index/codebase-skeleton-tool.d.ts +2 -3
- package/dist/codebase-index/codebase-stats-tool.d.ts +9 -3
- package/dist/codebase-index/codebase-targeted-test-tool.d.ts +4 -3
- package/dist/codebase-index/index.d.ts +11 -11
- package/dist/codebase-index/index.js +8 -8
- package/dist/codebase-index/project-server-framing.d.ts +29 -0
- package/dist/codebase-index/project-server-lifecycle.d.ts +20 -0
- package/dist/codebase-index/project-server-operations.d.ts +37 -0
- package/dist/codebase-index/project-server-types.d.ts +30 -0
- package/dist/codebase-index/project-server-watcher.d.ts +25 -0
- package/dist/codebase-index/project-server.js +448 -391
- package/dist/codebase-index/worker.js +2 -2
- package/dist/codebase-index/writer-init.d.ts +13 -0
- package/dist/codebase-index/writer-maintenance.d.ts +14 -0
- package/dist/codebase-index/writer.d.ts +0 -15
- package/dist/design.d.ts +2 -2
- package/dist/design.js +1 -1
- package/dist/diff.d.ts +4 -4
- package/dist/diff.js +1 -1
- package/dist/document.d.ts +3 -4
- package/dist/document.js +1 -1
- package/dist/e2e.d.ts +1 -1
- package/dist/e2e.js +1 -1
- package/dist/edit.d.ts +3 -3
- package/dist/edit.js +6 -6
- package/dist/exec.d.ts +2 -3
- package/dist/exec.js +4 -4
- package/dist/fetch.d.ts +4 -3
- package/dist/fetch.js +1 -1
- package/dist/format.d.ts +17 -45
- package/dist/format.js +12 -8
- package/dist/git.d.ts +3 -3
- package/dist/git.js +1 -1
- package/dist/glob.d.ts +2 -3
- package/dist/glob.js +2 -2
- package/dist/grep.d.ts +7 -5
- package/dist/grep.js +3 -3
- package/dist/index.d.ts +54 -45
- package/dist/index.js +118 -59
- package/dist/install.d.ts +7 -55
- package/dist/install.js +6 -6
- package/dist/json.d.ts +3 -4
- package/dist/json.js +2 -2
- package/dist/kanban-tool-types.d.ts +1 -2
- package/dist/kanban.d.ts +3 -19
- package/dist/kanban.js +1 -1
- package/dist/languages/execute-tool.d.ts +2 -3
- package/dist/languages/index.d.ts +2 -2
- package/dist/languages/index.js +4 -4
- package/dist/languages/tool.d.ts +3 -4
- package/dist/{legacy-bridge-FOV5ODDI.js → legacy-bridge-YXANP5QB.js} +6 -6
- package/dist/lint.d.ts +5 -4
- package/dist/lint.js +6 -6
- package/dist/logs.d.ts +3 -4
- package/dist/logs.js +2 -2
- package/dist/memory.d.ts +7 -8
- package/dist/memory.js +1 -1
- package/dist/mode.d.ts +3 -4
- package/dist/mode.js +1 -1
- package/dist/next-steps-tool.d.ts +2 -3
- package/dist/next-steps.d.ts +4 -0
- package/dist/next-steps.js +9 -175
- package/dist/outdated.d.ts +5 -29
- package/dist/outdated.js +3 -3
- package/dist/pack.js +51 -51
- package/dist/patch.d.ts +2 -3
- package/dist/patch.js +5 -5
- package/dist/plan.d.ts +4 -4
- package/dist/plan.js +3 -3
- package/dist/process-registry.js +2 -2
- package/dist/ps-slash.js +4 -4
- package/dist/pwsh.d.ts +1 -0
- package/dist/read.d.ts +5 -5
- package/dist/read.js +5 -5
- package/dist/replace.d.ts +2 -3
- package/dist/replace.js +6 -6
- package/dist/scaffold.d.ts +7 -3
- package/dist/scaffold.js +3 -1
- package/dist/search.d.ts +17 -3
- package/dist/search.js +5 -1
- package/dist/set-working-dir.d.ts +2 -3
- package/dist/skill.d.ts +4 -5
- package/dist/skill.js +1 -1
- package/dist/task.d.ts +6 -6
- package/dist/task.js +3 -3
- package/dist/test.d.ts +5 -4
- package/dist/test.js +6 -6
- package/dist/todo.d.ts +8 -8
- package/dist/todo.js +2 -2
- package/dist/tool-diff.js +11 -230
- package/dist/tool-help.d.ts +2 -3
- package/dist/tool-help.js +1 -1
- package/dist/tool-search.d.ts +2 -3
- package/dist/tool-search.js +1 -1
- package/dist/tool-summary.js +5 -281
- package/dist/tool-tier.js +52 -52
- package/dist/tool-use.d.ts +2 -3
- package/dist/tool-use.js +1 -1
- package/dist/tree.d.ts +5 -3
- package/dist/tree.js +5 -1
- package/dist/typecheck.d.ts +3 -3
- package/dist/typecheck.js +6 -6
- package/dist/write.d.ts +2 -3
- package/dist/write.js +6 -6
- package/package.json +5 -5
- package/dist/spawn-background.d.ts +0 -80
package/dist/tool-tier.js
CHANGED
|
@@ -2,69 +2,69 @@ import {
|
|
|
2
2
|
BUILTIN_TIER_COUNTS,
|
|
3
3
|
registerBuiltinToolTier,
|
|
4
4
|
selectBuiltinToolsForTier
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-7LQCT3LT.js";
|
|
6
|
+
import "./chunk-E7JE3UEX.js";
|
|
7
|
+
import "./chunk-IAYMTTR2.js";
|
|
8
|
+
import "./chunk-RV7BVTDG.js";
|
|
9
|
+
import "./chunk-YEISRT4S.js";
|
|
10
10
|
import "./chunk-XRNN44QY.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-5KS24LTS.js";
|
|
12
|
+
import "./chunk-LQSOU63Z.js";
|
|
13
|
+
import "./chunk-24T5XIJU.js";
|
|
14
|
+
import "./chunk-B3MGJBFI.js";
|
|
15
|
+
import "./chunk-VBF2YXUW.js";
|
|
16
|
+
import "./chunk-7ODZTPCU.js";
|
|
17
|
+
import "./chunk-IXIS7RSG.js";
|
|
18
|
+
import "./chunk-QA6IASYX.js";
|
|
19
|
+
import "./chunk-O6BY43ZB.js";
|
|
20
|
+
import "./chunk-WEEVSWQB.js";
|
|
21
|
+
import "./chunk-6GOZTS6F.js";
|
|
22
|
+
import "./chunk-VU3QBYL4.js";
|
|
23
|
+
import "./chunk-CHEK3ASV.js";
|
|
24
|
+
import "./chunk-KLJZ4WV4.js";
|
|
25
|
+
import "./chunk-AQ5YBURX.js";
|
|
26
|
+
import "./chunk-CGXTR34H.js";
|
|
27
|
+
import "./chunk-VZGPASGD.js";
|
|
28
|
+
import "./chunk-7HL23T3T.js";
|
|
29
|
+
import "./chunk-JDOO4P6Z.js";
|
|
30
|
+
import "./chunk-3D5DJWOE.js";
|
|
31
|
+
import "./chunk-NJX2RXKJ.js";
|
|
32
|
+
import "./chunk-4WPBS45A.js";
|
|
33
|
+
import "./chunk-T3SMFF5Q.js";
|
|
34
|
+
import "./chunk-7N5U2RAU.js";
|
|
35
|
+
import "./chunk-DRRY6SCM.js";
|
|
36
|
+
import "./chunk-IYH4OHBP.js";
|
|
37
|
+
import "./chunk-ASEXQRA7.js";
|
|
38
|
+
import "./chunk-4ERMPDHV.js";
|
|
39
|
+
import "./chunk-YJTXRH5Y.js";
|
|
40
40
|
import "./chunk-ZBMANLYH.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-6H4ERJP7.js";
|
|
42
|
+
import "./chunk-MGPR7VG3.js";
|
|
43
43
|
import "./chunk-BTSFTGIL.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-PVCB7RUZ.js";
|
|
45
45
|
import "./chunk-SCMRM6NL.js";
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-HDYUBRMF.js";
|
|
47
|
+
import "./chunk-7JJFC6CT.js";
|
|
48
|
+
import "./chunk-MJSJWXBF.js";
|
|
49
|
+
import "./chunk-62OAECEQ.js";
|
|
50
50
|
import "./chunk-NBDZMMG2.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-FBUP524S.js";
|
|
52
|
+
import "./chunk-SMARDKAC.js";
|
|
53
53
|
import "./chunk-X6KXNHUO.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-SOR7OCYP.js";
|
|
55
|
+
import "./chunk-MK2JK35J.js";
|
|
56
|
+
import "./chunk-GKSG5CPH.js";
|
|
57
|
+
import "./chunk-DK4J2WMH.js";
|
|
58
|
+
import "./chunk-MSOAX3GC.js";
|
|
59
|
+
import "./chunk-ZTCJCYLN.js";
|
|
60
|
+
import "./chunk-GDDXX27P.js";
|
|
61
|
+
import "./chunk-N3K2SFEI.js";
|
|
62
62
|
import "./chunk-NU2IZ72J.js";
|
|
63
63
|
import "./chunk-VVZPQPTY.js";
|
|
64
64
|
import "./chunk-6IEBD27U.js";
|
|
65
65
|
import "./chunk-UCYQTZ7F.js";
|
|
66
66
|
import "./chunk-YOHO4DVT.js";
|
|
67
|
-
import "./chunk-
|
|
67
|
+
import "./chunk-2CTZW6JQ.js";
|
|
68
68
|
import "./chunk-KE7A76VC.js";
|
|
69
69
|
import "./chunk-ZUFHAHTE.js";
|
|
70
70
|
export {
|
package/dist/tool-use.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type Tool } from '@wrongstack/core/types';
|
|
2
|
-
interface ToolUseInput {
|
|
2
|
+
export interface ToolUseInput {
|
|
3
3
|
tool: string;
|
|
4
4
|
input: Record<string, unknown>;
|
|
5
5
|
}
|
|
6
|
-
interface ToolUseOutput {
|
|
6
|
+
export interface ToolUseOutput {
|
|
7
7
|
tool: string;
|
|
8
8
|
success: boolean;
|
|
9
9
|
result?: unknown | undefined;
|
|
@@ -11,5 +11,4 @@ interface ToolUseOutput {
|
|
|
11
11
|
executionMs: number;
|
|
12
12
|
}
|
|
13
13
|
export declare const toolUseTool: Tool<ToolUseInput, ToolUseOutput>;
|
|
14
|
-
export {};
|
|
15
14
|
//# sourceMappingURL=tool-use.d.ts.map
|
package/dist/tool-use.js
CHANGED
package/dist/tree.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { Tool } from '@wrongstack/core/types';
|
|
2
|
-
|
|
2
|
+
export declare const DEFAULT_MAX_TREE_ENTRIES = 5000;
|
|
3
|
+
export declare const MAX_TREE_OUTPUT_BYTES: number;
|
|
4
|
+
export interface TreeInput {
|
|
3
5
|
path?: string | undefined;
|
|
4
6
|
depth?: number | undefined;
|
|
5
7
|
glob?: string | undefined;
|
|
@@ -9,13 +11,13 @@ interface TreeInput {
|
|
|
9
11
|
show_hidden?: boolean | undefined;
|
|
10
12
|
max_entries?: number | undefined;
|
|
11
13
|
}
|
|
12
|
-
interface TreeOutput {
|
|
14
|
+
export interface TreeOutput {
|
|
13
15
|
tree: string;
|
|
14
16
|
total_files: number;
|
|
15
17
|
total_dirs: number;
|
|
16
18
|
truncated: boolean;
|
|
17
19
|
path: string;
|
|
18
20
|
}
|
|
21
|
+
export type TreeContext = Parameters<Tool<TreeInput, TreeOutput>['execute']>[1];
|
|
19
22
|
export declare const treeTool: Tool<TreeInput, TreeOutput>;
|
|
20
|
-
export {};
|
|
21
23
|
//# sourceMappingURL=tree.d.ts.map
|
package/dist/tree.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
+
DEFAULT_MAX_TREE_ENTRIES,
|
|
3
|
+
MAX_TREE_OUTPUT_BYTES,
|
|
2
4
|
treeTool
|
|
3
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JDOO4P6Z.js";
|
|
4
6
|
import "./chunk-ZUFHAHTE.js";
|
|
5
7
|
export {
|
|
8
|
+
DEFAULT_MAX_TREE_ENTRIES,
|
|
9
|
+
MAX_TREE_OUTPUT_BYTES,
|
|
6
10
|
treeTool
|
|
7
11
|
};
|
|
8
12
|
//# sourceMappingURL=tree.js.map
|
package/dist/typecheck.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Tool } from '@wrongstack/core/types';
|
|
2
|
-
interface TypecheckInput {
|
|
2
|
+
export interface TypecheckInput {
|
|
3
3
|
project?: string | undefined;
|
|
4
4
|
cwd?: string | undefined;
|
|
5
5
|
strict?: boolean | undefined;
|
|
6
6
|
all?: boolean | undefined;
|
|
7
7
|
}
|
|
8
|
-
interface TypecheckOutput {
|
|
8
|
+
export interface TypecheckOutput {
|
|
9
9
|
project: string;
|
|
10
10
|
exit_code: number;
|
|
11
11
|
errors: number;
|
|
@@ -13,6 +13,6 @@ interface TypecheckOutput {
|
|
|
13
13
|
output: string;
|
|
14
14
|
truncated: boolean;
|
|
15
15
|
}
|
|
16
|
+
export type TypecheckContext = Parameters<Tool<TypecheckInput, TypecheckOutput>['execute']>[1];
|
|
16
17
|
export declare const typecheckTool: Tool<TypecheckInput, TypecheckOutput>;
|
|
17
|
-
export {};
|
|
18
18
|
//# sourceMappingURL=typecheck.d.ts.map
|
package/dist/typecheck.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
typecheckTool
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-4WPBS45A.js";
|
|
4
|
+
import "./chunk-T3SMFF5Q.js";
|
|
5
|
+
import "./chunk-7N5U2RAU.js";
|
|
6
|
+
import "./chunk-DRRY6SCM.js";
|
|
7
7
|
import "./chunk-SCMRM6NL.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-HDYUBRMF.js";
|
|
9
|
+
import "./chunk-7JJFC6CT.js";
|
|
10
10
|
import "./chunk-KE7A76VC.js";
|
|
11
11
|
import "./chunk-ZUFHAHTE.js";
|
|
12
12
|
export {
|
package/dist/write.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Tool } from '@wrongstack/core/types';
|
|
2
|
-
interface WriteInput {
|
|
2
|
+
export interface WriteInput {
|
|
3
3
|
path: string;
|
|
4
4
|
content: string;
|
|
5
5
|
}
|
|
6
|
-
interface WriteOutput {
|
|
6
|
+
export interface WriteOutput {
|
|
7
7
|
path: string;
|
|
8
8
|
bytes_written: number;
|
|
9
9
|
created: boolean;
|
|
@@ -16,5 +16,4 @@ interface WriteOutput {
|
|
|
16
16
|
note?: string | undefined;
|
|
17
17
|
}
|
|
18
18
|
export declare const writeTool: Tool<WriteInput, WriteOutput>;
|
|
19
|
-
export {};
|
|
20
19
|
//# sourceMappingURL=write.d.ts.map
|
package/dist/write.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeTool
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-GKSG5CPH.js";
|
|
4
|
+
import "./chunk-MSOAX3GC.js";
|
|
5
|
+
import "./chunk-ZTCJCYLN.js";
|
|
6
|
+
import "./chunk-GDDXX27P.js";
|
|
7
|
+
import "./chunk-N3K2SFEI.js";
|
|
8
8
|
import "./chunk-NU2IZ72J.js";
|
|
9
9
|
import "./chunk-VVZPQPTY.js";
|
|
10
10
|
import "./chunk-6IEBD27U.js";
|
|
11
11
|
import "./chunk-UCYQTZ7F.js";
|
|
12
12
|
import "./chunk-YOHO4DVT.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-2CTZW6JQ.js";
|
|
14
14
|
import "./chunk-KE7A76VC.js";
|
|
15
15
|
import "./chunk-ZUFHAHTE.js";
|
|
16
16
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
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": {
|
|
@@ -249,10 +249,10 @@
|
|
|
249
249
|
"@msgpack/msgpack": "^3.1.3",
|
|
250
250
|
"@playwright/test": "^1.62.1",
|
|
251
251
|
"@typescript/typescript6": "^6.0.2",
|
|
252
|
-
"@wrongstack/core": "0.
|
|
253
|
-
"@wrongstack/kanban": "0.
|
|
254
|
-
"@wrongstack/persistence": "0.
|
|
255
|
-
"@wrongstack/primitives": "0.
|
|
252
|
+
"@wrongstack/core": "1.0.1",
|
|
253
|
+
"@wrongstack/kanban": "1.0.1",
|
|
254
|
+
"@wrongstack/persistence": "1.0.1",
|
|
255
|
+
"@wrongstack/primitives": "1.0.1",
|
|
256
256
|
"tree-sitter-wasm": "1.1.4",
|
|
257
257
|
"turndown": "^7.2.4",
|
|
258
258
|
"undici": "^8.10.0",
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* spawn-background — platform-independent background process spawning.
|
|
3
|
-
*
|
|
4
|
-
* Provides truly fire-and-forget background process execution that:
|
|
5
|
-
* - Works consistently on Windows and POSIX
|
|
6
|
-
* - Does not block the parent Node.js event loop
|
|
7
|
-
* - Creates a fully independent child process (new process group/session)
|
|
8
|
-
* - Does NOT register with the ProcessRegistry (fire-and-forget)
|
|
9
|
-
* - Does NOT affect the circuit breaker
|
|
10
|
-
*
|
|
11
|
-
* POSIX: Uses setsid() (detached: true) to create a new session, fully
|
|
12
|
-
* detaching from the parent's process group. The child becomes a
|
|
13
|
-
* daemon-like process.
|
|
14
|
-
*
|
|
15
|
-
* Windows: detached: false + windowsHide: true (CREATE_NO_WINDOW). This is
|
|
16
|
-
* deliberate: CreateProcess IGNORES CREATE_NO_WINDOW when combined
|
|
17
|
-
* with DETACHED_PROCESS (which detached: true sets), so a detached
|
|
18
|
-
* cmd.exe runs console-less and its console-app *grandchildren*
|
|
19
|
-
* (node, etc.) each allocate a fresh VISIBLE console window.
|
|
20
|
-
* CREATE_NO_WINDOW instead gives the child a hidden console that
|
|
21
|
-
* grandchildren inherit — no window ever appears. Windows children
|
|
22
|
-
* survive parent exit regardless of detached, and the hidden
|
|
23
|
-
* console also isolates them from the terminal's Ctrl+C, so
|
|
24
|
-
* nothing is lost by dropping DETACHED_PROCESS.
|
|
25
|
-
*/
|
|
26
|
-
import { spawn } from 'node:child_process';
|
|
27
|
-
interface SpawnBackgroundOptions {
|
|
28
|
-
/**
|
|
29
|
-
* Shell command string to execute (e.g. `"node --version"`, `"npm run dev"`).
|
|
30
|
-
*
|
|
31
|
-
* ⚠️ SECURITY: This value is passed verbatim to the system shell
|
|
32
|
-
* (`/bin/bash -c` on POSIX, `cmd.exe /c` on Windows). Shell metacharacters
|
|
33
|
-
* (`;`, `&&`, `|`, `$()`, backticks, etc.) ARE interpreted. Never pass
|
|
34
|
-
* untrusted or user-controlled input here — use {@link spawnBackgroundExec}
|
|
35
|
-
* instead, which spawns a command + args array with no shell interpretation.
|
|
36
|
-
*/
|
|
37
|
-
command: string;
|
|
38
|
-
/** Arguments (for exec-style commands) */
|
|
39
|
-
args?: string[];
|
|
40
|
-
/** Working directory */
|
|
41
|
-
cwd?: string;
|
|
42
|
-
/** Environment variables */
|
|
43
|
-
env?: Record<string, string>;
|
|
44
|
-
/** Shell to use (default: system default) */
|
|
45
|
-
shell?: string;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Spawn a fully detached background process **via the system shell**.
|
|
49
|
-
*
|
|
50
|
-
* ⚠️ SECURITY: `opts.command` is interpreted by `/bin/bash -c` (POSIX) or
|
|
51
|
-
* `cmd.exe /c` (Windows). This is an explicit shell-exec sink. If
|
|
52
|
-
* `opts.command` contains untrusted or user-influenced input, it is a direct
|
|
53
|
-
* command-injection vector. For untrusted input use {@link spawnBackgroundExec},
|
|
54
|
-
* which takes a command + args array and never invokes a shell.
|
|
55
|
-
*
|
|
56
|
-
* @returns The spawned ChildProcess (already unref'd so it doesn't block exit)
|
|
57
|
-
*/
|
|
58
|
-
export declare function spawnBackground(opts: SpawnBackgroundOptions): {
|
|
59
|
-
pid: number | null;
|
|
60
|
-
child: ReturnType<typeof spawn>;
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* Spawn a command (exec-style, no shell) as a detached background process.
|
|
64
|
-
* This is more secure than {@link spawnBackground} since there are no shell
|
|
65
|
-
* injection risks — args are passed as an argv array, never through a shell.
|
|
66
|
-
*
|
|
67
|
-
* On Windows, `.cmd`/`.bat` wrappers are launched through `cmd.exe` directly
|
|
68
|
-
* because CreateProcess cannot run them natively. The shim helper rejects any
|
|
69
|
-
* argument containing a cmd.exe injection metacharacter
|
|
70
|
-
* (`& | < >` or newline) — the same guard used by exec.ts, _spawn-stream.ts,
|
|
71
|
-
* and outdated.ts. Safe args pass through unchanged.
|
|
72
|
-
*
|
|
73
|
-
* @returns The spawned ChildProcess (already unref'd so it doesn't block exit)
|
|
74
|
-
*/
|
|
75
|
-
export declare function spawnBackgroundExec(command: string, args?: string[], cwd?: string, env?: Record<string, string>): {
|
|
76
|
-
pid: number | null;
|
|
77
|
-
child: ReturnType<typeof spawn>;
|
|
78
|
-
};
|
|
79
|
-
export type { ChildProcess } from 'node:child_process';
|
|
80
|
-
//# sourceMappingURL=spawn-background.d.ts.map
|