@tikoci/rosetta 0.5.1 → 0.6.0
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/README.md +3 -1
- package/package.json +1 -1
- package/src/browse.ts +143 -188
- package/src/db.ts +146 -7
- package/src/extract-commands.ts +55 -10
- package/src/extract-devices.ts +5 -1
- package/src/extract-dude.ts +409 -0
- package/src/extract-html.test.ts +67 -0
- package/src/extract-html.ts +232 -112
- package/src/mcp-http.test.ts +7 -5
- package/src/mcp.ts +280 -15
- package/src/paths.ts +1 -1
- package/src/query.test.ts +124 -6
- package/src/query.ts +115 -20
- package/src/release.test.ts +20 -0
package/src/release.test.ts
CHANGED
|
@@ -202,6 +202,21 @@ describe("Makefile", () => {
|
|
|
202
202
|
expect(phonyBlock).toContain("extract-videos");
|
|
203
203
|
});
|
|
204
204
|
|
|
205
|
+
test("has extract-dude target", () => {
|
|
206
|
+
expect(makefile).toContain("extract-dude:");
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
test("has extract-dude-from-cache target", () => {
|
|
210
|
+
expect(makefile).toContain("extract-dude-from-cache:");
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
test("extract-dude is in PHONY", () => {
|
|
214
|
+
const phonyStart = makefile.indexOf(".PHONY:");
|
|
215
|
+
const phonyEnd = makefile.indexOf("\n\n", phonyStart);
|
|
216
|
+
const phonyBlock = makefile.slice(phonyStart, phonyEnd);
|
|
217
|
+
expect(phonyBlock).toContain("extract-dude");
|
|
218
|
+
});
|
|
219
|
+
|
|
205
220
|
test("release depends on preflight", () => {
|
|
206
221
|
expect(makefile).toMatch(/^release:.*preflight/m);
|
|
207
222
|
});
|
|
@@ -255,6 +270,11 @@ describe("release.yml", () => {
|
|
|
255
270
|
expect(src).toContain("link-commands.ts");
|
|
256
271
|
});
|
|
257
272
|
|
|
273
|
+
test("imports Dude wiki from cache", () => {
|
|
274
|
+
const src = readText(".github/workflows/release.yml");
|
|
275
|
+
expect(src).toContain("extract-dude-from-cache");
|
|
276
|
+
});
|
|
277
|
+
|
|
258
278
|
test("runs quality gate before release", () => {
|
|
259
279
|
const src = readText(".github/workflows/release.yml");
|
|
260
280
|
expect(src).toContain("bun run typecheck");
|