feat(coding-agent): vendor relevant parts of markit

This commit is contained in:
can1357
2026-06-18 19:11:22 +02:00
parent 81563e0155
commit 38d1d3a2f5
33 changed files with 3450 additions and 274 deletions
@@ -7,10 +7,10 @@ import type { ImageContent, TextContent } from "@oh-my-pi/pi-ai";
import { Settings } from "@oh-my-pi/pi-coding-agent/config/settings";
import type { ToolSession } from "@oh-my-pi/pi-coding-agent/tools";
import { ReadTool } from "@oh-my-pi/pi-coding-agent/tools/read";
import { zip } from "@oh-my-pi/pi-coding-agent/utils/zip";
import * as scrapers from "@oh-my-pi/pi-coding-agent/web/scrapers/types";
import * as scraperUtils from "@oh-my-pi/pi-coding-agent/web/scrapers/utils";
import { Snowflake } from "@oh-my-pi/pi-utils";
import { zipSync } from "fflate";
function makeSession(testDir: string): ToolSession {
const sessionFile = path.join(testDir, "session.jsonl");
@@ -112,7 +112,7 @@ describe("read URL binary dispatch", () => {
});
it("lists a remote zip instead of dumping decoded bytes", async () => {
const zipBytes = zipSync({
const zipBytes = zip({
"root.txt": Buffer.from("root file\n"),
"nested/data.txt": Buffer.from("nested file\n"),
});