@intentic/fileq 1.368.0 → 1.369.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentic/fileq",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.369.0",
|
|
4
4
|
"description": "fileq, agent-native file reading: any binary workspace file (docx, xlsx, pptx, pdf, images, audio, archives) as clean budgeted markdown, cached by content so a repeat read is instant",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -73,11 +73,11 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@intentic/agent-cli": "1.
|
|
77
|
-
"@intentic/base": "1.
|
|
78
|
-
"@intentic/constants": "1.
|
|
79
|
-
"@intentic/webq": "1.
|
|
80
|
-
"@intentic/workspace-ignore": "1.
|
|
76
|
+
"@intentic/agent-cli": "1.369.0",
|
|
77
|
+
"@intentic/base": "1.369.0",
|
|
78
|
+
"@intentic/constants": "1.369.0",
|
|
79
|
+
"@intentic/webq": "1.369.0",
|
|
80
|
+
"@intentic/workspace-ignore": "1.369.0",
|
|
81
81
|
"@stricli/core": "1.3.0",
|
|
82
82
|
"exifr": "7.1.3",
|
|
83
83
|
"fflate": "0.8.3",
|
|
@@ -9,7 +9,7 @@ import { fileURLToPath } from "node:url";
|
|
|
9
9
|
import { markPages } from "@intentic/base/shadow-text";
|
|
10
10
|
import { captureCli } from "@intentic/agent-cli/testing";
|
|
11
11
|
import { app } from "./app.js";
|
|
12
|
-
import {
|
|
12
|
+
import { ripgrepConfigLines } from "./lib/formats.js";
|
|
13
13
|
import { DERIVED_DIR, sidecarBody } from "./lib/sidecar.js";
|
|
14
14
|
import { pdfPagesBytes } from "./testing.js";
|
|
15
15
|
|
|
@@ -31,7 +31,10 @@ beforeAll(() => {
|
|
|
31
31
|
chmodSync(join(bin, "fileq"), 0o755);
|
|
32
32
|
process.env["WORKSPACE_ROOT"] = root;
|
|
33
33
|
mkdirSync(join(root, "docs"), { recursive: true });
|
|
34
|
-
writeFileSync(
|
|
34
|
+
writeFileSync(
|
|
35
|
+
join(root, "docs/terms.pdf"),
|
|
36
|
+
pdfPagesBytes([page("Introduction to the terms of service here"), page("Each wniosek must be filed in writing today")]),
|
|
37
|
+
);
|
|
35
38
|
});
|
|
36
39
|
afterAll(() => {
|
|
37
40
|
delete process.env["WORKSPACE_ROOT"];
|
|
@@ -41,7 +44,11 @@ afterAll(() => {
|
|
|
41
44
|
|
|
42
45
|
const pre = (file: string, cwd = root) => {
|
|
43
46
|
rmSync(calls, { force: true });
|
|
44
|
-
const result = spawnSync("sh", [PRE, file], {
|
|
47
|
+
const result = spawnSync("sh", [PRE, file], {
|
|
48
|
+
cwd,
|
|
49
|
+
encoding: "utf8",
|
|
50
|
+
env: { PATH: `${bin}:${process.env["PATH"] ?? ""}`, WORKSPACE_ROOT: root },
|
|
51
|
+
});
|
|
45
52
|
expect(result.status).toBe(0);
|
|
46
53
|
return { out: result.stdout, slow: existsSync(calls) };
|
|
47
54
|
};
|
|
@@ -104,14 +111,6 @@ test("a file that is not a document passes through untouched", () => {
|
|
|
104
111
|
expect(slow).toBe(false);
|
|
105
112
|
});
|
|
106
113
|
|
|
107
|
-
test("the script's extension list is fileq's document list", () => {
|
|
108
|
-
const script = readFileSync(PRE, "utf8");
|
|
109
|
-
for (const extension of documentExtensions()) {
|
|
110
|
-
const bracketed = Array.from(extension.slice(1), (char) => `[${char}${char.toUpperCase()}]`).join("");
|
|
111
|
-
expect(script, extension).toContain(`*.${bracketed}`);
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
|
|
115
114
|
describe.skipIf(!hasRg)("plain rg under the generated config", () => {
|
|
116
115
|
const rg = (args: string[], config: boolean): string => {
|
|
117
116
|
const configPath = join(bin, "ripgreprc");
|