@wrongstack/tools 1.0.6 → 1.0.8
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/audit.js +4 -4
- package/dist/bash.js +2 -2
- package/dist/builtin.js +39 -39
- package/dist/{chunk-HKR56VNF.js → chunk-2IAEJRLT.js} +4 -3
- package/dist/{chunk-5UA4TNJJ.js → chunk-2NTHMZV3.js} +2 -2
- package/dist/{chunk-JQ43NVFU.js → chunk-3LQJXJDM.js} +2 -2
- package/dist/{chunk-47GYABZW.js → chunk-4SW6BXUR.js} +2 -2
- package/dist/{chunk-4KI4HHID.js → chunk-5KRKL3WD.js} +3 -3
- package/dist/{chunk-7EQ2LUXU.js → chunk-5MP76C72.js} +3 -3
- package/dist/{chunk-7PEZU5Y4.js → chunk-7E55DAFW.js} +8 -8
- package/dist/{chunk-D4HWMWGE.js → chunk-AH7J5HWL.js} +3 -3
- package/dist/{chunk-OZVGRDCM.js → chunk-B62LKMWQ.js} +3 -3
- package/dist/{chunk-WKXL5XHU.js → chunk-BVHKBBGA.js} +2 -2
- package/dist/{chunk-54SIRJ6D.js → chunk-C4DSQBTT.js} +3 -3
- package/dist/{chunk-2ZWQIVEW.js → chunk-CAF4L6KN.js} +2 -2
- package/dist/{chunk-MG7CUN6R.js → chunk-EGT5QLCB.js} +6 -3
- package/dist/{chunk-ZSW5KO5S.js → chunk-FI6SOIVE.js} +31 -7
- package/dist/{chunk-TL5T4A4E.js → chunk-GF4JHLCO.js} +3 -3
- package/dist/{chunk-OVFQC6FU.js → chunk-GNLHBDFO.js} +341 -146
- package/dist/{chunk-ZETZHHV5.js → chunk-H2VB7GCR.js} +3 -3
- package/dist/{chunk-C64UUXTA.js → chunk-HCPSVK7J.js} +3 -3
- package/dist/{chunk-K7Y2IWEB.js → chunk-HIRVCXLP.js} +4 -4
- package/dist/{chunk-IMIHTHF7.js → chunk-HOFVYIPI.js} +38 -10
- package/dist/{chunk-CYPYJIAF.js → chunk-JB5JLY7V.js} +4 -4
- package/dist/{chunk-S6E2AM4U.js → chunk-KF7GMVNU.js} +3 -3
- package/dist/{chunk-IOOFLBVM.js → chunk-KMXPP32M.js} +3 -3
- package/dist/{chunk-REWOZIA4.js → chunk-M2W36JT7.js} +2 -2
- package/dist/{chunk-FRIUJ534.js → chunk-MF6ZUBI7.js} +3 -3
- package/dist/{chunk-BU6VUXWG.js → chunk-N3OTTQNC.js} +2 -2
- package/dist/{chunk-YJQQ5F5J.js → chunk-NL45OWEO.js} +3 -3
- package/dist/{chunk-NKOTOW6X.js → chunk-O6AGFJBO.js} +3 -3
- package/dist/{chunk-YILT3CSO.js → chunk-OGQMPX3J.js} +18 -7
- package/dist/{chunk-OBVXDVLE.js → chunk-QJARSK2G.js} +3 -3
- package/dist/{chunk-R36RWYXE.js → chunk-R3HIZVFS.js} +3 -3
- package/dist/{chunk-TGVQMKVH.js → chunk-S6CGSFLX.js} +3 -3
- package/dist/{chunk-JK5WXW4S.js → chunk-SEONDNLN.js} +2 -2
- package/dist/{chunk-6IEBD27U.js → chunk-SKRMUHTU.js} +2 -2
- package/dist/{chunk-DOHU3XHS.js → chunk-TU6UVATU.js} +3 -3
- package/dist/{chunk-G35NLPG5.js → chunk-WKLUOXR4.js} +3 -3
- package/dist/{chunk-6ZRP5IKQ.js → chunk-YUK3WLHJ.js} +2 -2
- package/dist/{chunk-5BKQVP56.js → chunk-YZECCW3F.js} +34 -14
- package/dist/{chunk-3F7HQ3KS.js → chunk-YZQSUL5G.js} +2 -2
- package/dist/{chunk-2IC5FRD7.js → chunk-ZMCV3XOV.js} +2 -2
- package/dist/{chunk-WBAPU3AB.js → chunk-ZOUG3KKS.js} +2 -2
- package/dist/clarify.d.ts +26 -19
- package/dist/codebase-index/index.js +8 -8
- package/dist/codebase-index/parser-worker-script.js +3 -3
- package/dist/codebase-index/project-server.js +5 -5
- package/dist/codebase-index/worker.js +4 -4
- package/dist/diff.js +2 -2
- package/dist/e2e.js +2 -2
- package/dist/edit.js +8 -8
- package/dist/exec.js +2 -2
- package/dist/fetch.js +2 -2
- package/dist/format.js +4 -4
- package/dist/{generic-parser-WFMIRHBX.js → generic-parser-N2PLGBC2.js} +2 -2
- package/dist/git.js +2 -2
- package/dist/glob.js +2 -2
- package/dist/{go-parser-EMKTAAD3.js → go-parser-VDPRQEGM.js} +5 -5
- package/dist/grep.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +41 -41
- package/dist/install.js +4 -4
- package/dist/{json-parser-34DHYCPW.js → json-parser-IJD77VL4.js} +11 -17
- package/dist/json.js +2 -2
- package/dist/kanban.js +2 -2
- package/dist/languages/index.js +2 -2
- package/dist/{legacy-bridge-XM2GV665.js → legacy-bridge-4T4OTSQP.js} +4 -4
- package/dist/lint.js +4 -4
- package/dist/logs.js +2 -2
- package/dist/outdated.js +2 -2
- package/dist/pack.js +40 -40
- package/dist/{parser-dispatch-HZDZSIYH.js → parser-dispatch-4E2SDQUO.js} +4 -4
- package/dist/patch.js +8 -8
- package/dist/plan.js +4 -4
- package/dist/{py-parser-DDG53RXI.js → py-parser-MAW6DHFE.js} +3 -3
- package/dist/read.js +8 -8
- package/dist/replace.js +8 -8
- package/dist/session-kanban.d.ts +7 -0
- package/dist/session-kanban.js +3 -1
- package/dist/task.js +4 -4
- package/dist/test.js +4 -4
- package/dist/todo.js +3 -3
- package/dist/tool-tier.js +41 -41
- package/dist/tree.js +2 -2
- package/dist/typecheck.js +4 -4
- package/dist/write.js +8 -8
- package/dist/{yaml-parser-RGBXEZE4.js → yaml-parser-DFBC5FWH.js} +7 -6
- package/package.json +5 -5
package/dist/write.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writeTool
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GF4JHLCO.js";
|
|
4
4
|
import "./chunk-MSOAX3GC.js";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-TU6UVATU.js";
|
|
6
|
+
import "./chunk-ZOUG3KKS.js";
|
|
7
|
+
import "./chunk-C4DSQBTT.js";
|
|
8
|
+
import "./chunk-7E55DAFW.js";
|
|
9
|
+
import "./chunk-M2W36JT7.js";
|
|
10
|
+
import "./chunk-SKRMUHTU.js";
|
|
11
11
|
import "./chunk-ZKC5UNGD.js";
|
|
12
12
|
import "./chunk-YOHO4DVT.js";
|
|
13
13
|
import "./chunk-XHSHNOAF.js";
|
|
14
14
|
import "./chunk-5U5ULQX2.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-2IAEJRLT.js";
|
|
16
16
|
export {
|
|
17
17
|
writeTool
|
|
18
18
|
};
|
|
@@ -30,7 +30,7 @@ function regexParse(opts) {
|
|
|
30
30
|
}
|
|
31
31
|
return lo + 1;
|
|
32
32
|
}
|
|
33
|
-
const anchorRegex =
|
|
33
|
+
const anchorRegex = /(?:^|(?<=[\s:\-[{,]))&(\w[\w-]*)/gm;
|
|
34
34
|
for (let match = anchorRegex.exec(content); match !== null; match = anchorRegex.exec(content)) {
|
|
35
35
|
const name = expectDefined(match[1]);
|
|
36
36
|
const offset = match.index ?? 0;
|
|
@@ -48,7 +48,7 @@ function regexParse(opts) {
|
|
|
48
48
|
})
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
const aliasRegex =
|
|
51
|
+
const aliasRegex = /(?:^|(?<=[\s:\-[{,]))\*(\w[\w-]*)/gm;
|
|
52
52
|
for (let match = aliasRegex.exec(content); match !== null; match = aliasRegex.exec(content)) {
|
|
53
53
|
const name = expectDefined(match[1]);
|
|
54
54
|
const offset = match.index ?? 0;
|
|
@@ -78,14 +78,15 @@ function regexParse(opts) {
|
|
|
78
78
|
if (/^[|&>]/.test(lineContent.trim())) continue;
|
|
79
79
|
if (key === "---" || key === "...") continue;
|
|
80
80
|
if (indent > 12) continue;
|
|
81
|
-
const value = extractValue(content, match.index ?? 0);
|
|
81
|
+
const value = extractValue(content, (match.index ?? 0) + expectDefined(match[0]).length);
|
|
82
|
+
if (/^[|>](\s|$)/.test(value)) continue;
|
|
82
83
|
const kind = isScalar(value) ? "literal" : "property";
|
|
83
84
|
const signature = `${key}: ${truncate(value, 60)}`;
|
|
84
85
|
symbols.push(makeSymbol({ name: key, kind, line, col, signature, file, lang }));
|
|
85
86
|
}
|
|
86
|
-
const listItemRegex =
|
|
87
|
+
const listItemRegex = /^(\s*)-(\s+)([^:#\s][^:#\s]*)\s*:/gm;
|
|
87
88
|
for (let match = listItemRegex.exec(content); match !== null; match = listItemRegex.exec(content)) {
|
|
88
|
-
const key = expectDefined(match[
|
|
89
|
+
const key = expectDefined(match[3]);
|
|
89
90
|
const offset = match.index ?? 0;
|
|
90
91
|
const line = lineFromOffset(offset);
|
|
91
92
|
const col = offset - (lineOffsets[line - 1] ?? 0);
|
|
@@ -154,4 +155,4 @@ export {
|
|
|
154
155
|
detectLang,
|
|
155
156
|
parseSymbols
|
|
156
157
|
};
|
|
157
|
-
//# sourceMappingURL=yaml-parser-
|
|
158
|
+
//# sourceMappingURL=yaml-parser-DFBC5FWH.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/tools",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
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.62.1",
|
|
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.8",
|
|
241
|
+
"@wrongstack/kanban": "1.0.8",
|
|
242
|
+
"@wrongstack/persistence": "1.0.8",
|
|
243
|
+
"@wrongstack/primitives": "1.0.8",
|
|
244
244
|
"tree-sitter-wasm": "1.1.4",
|
|
245
245
|
"turndown": "^7.2.4",
|
|
246
246
|
"undici": "^8.10.0",
|