@intentic/fileq 1.422.0 → 1.423.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 +1 -1
- package/bin/fileq-rg-pre +1 -1
- package/dist/skill.d.ts.map +1 -1
- package/dist/skill.js +0 -1
- package/dist/skill.js.map +1 -1
- package/package.json +6 -6
- package/src/lib/derive.test.ts +1 -1
- package/src/rg-preprocessor.integration.test.ts +1 -1
- package/src/skill.ts +2 -3
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ flowchart LR
|
|
|
38
38
|
on its fast path). Given a pdf, docx, xlsx, pptx, odt, ods, odp, rtf or epub, it prints the fresh sidecar's body when
|
|
39
39
|
the recorded stat is the file's, else `fileq read --plain`'s; a file that is not a document passes through. Every
|
|
40
40
|
line under a `## Page N` heading carries `[p. N] ` and under `## Slide N` `[slide N] `, so a hit is a citation:
|
|
41
|
-
`docs/terms.pdf:345:[p. 12] … wniosek …`. Line numbers count lines of the document's text
|
|
41
|
+
`docs/terms.pdf:345:[p. 12] … wniosek …`. Line numbers count lines of the document's text.
|
|
42
42
|
`fileq ripgrep-config` prints the config (`--pre` plus one `--pre-glob` per document extension, both cases) for
|
|
43
43
|
RIPGREP_CONFIG_PATH; the sandbox image bakes it at `/etc/fileq/ripgreprc`.
|
|
44
44
|
- `fileq derive --ocr-pages N` recognises up to N pages of a scan (default 20). The daemon's shadow keeper asks for
|
package/bin/fileq-rg-pre
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# docs/terms.pdf:345:[p. 12] … wniosek …
|
|
6
6
|
#
|
|
7
7
|
# Every line under a page or slide heading carries `[p. N] ` or `[slide N] `, so a hit is already a citation. Line
|
|
8
|
-
# numbers are lines of the document's text
|
|
8
|
+
# numbers are lines of the document's text.
|
|
9
9
|
#
|
|
10
10
|
# Fast path (no Node): the file's shadow at <root>/.intentic/local/cache/derived/<path>.md, when its recorded
|
|
11
11
|
# source_size and source_mtime are the file's own (one `stat`). Otherwise `fileq read --plain`, which derives it
|
package/dist/skill.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../src/skill.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,cAAc;IAE3B,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,YAAY,CAAC;CAC3C;
|
|
1
|
+
{"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../src/skill.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,cAAc;IAE3B,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,YAAY,CAAC;CAC3C;AA6DD,eAAO,MAAM,UAAU,aAAc,cAAc,KAAG,MAsErD,CAAC"}
|
package/dist/skill.js
CHANGED
|
@@ -35,7 +35,6 @@ document's own path, kept current as files change:
|
|
|
35
35
|
\`docs/terms.pdf:345:[p. 12] … wniosek …\`: the line number counts lines of the document's text, and
|
|
36
36
|
\`[p. 12] \` (or \`[slide 3] \`) is the page or slide that line is on. Use \`rg\` in the shell for documents:
|
|
37
37
|
a Grep tool that runs its own bundled ripgrep may skip them.
|
|
38
|
-
- \`iq "<question>"\` finds documents by meaning too; their passages carry the same page marks.
|
|
39
38
|
- When you answer from a document, cite it as file and page: "docs/terms.pdf, p. 12". Read the page around a hit
|
|
40
39
|
with \`fileq read <file>\` (or the sidecar it names) rather than guessing from one line.
|
|
41
40
|
- Scans are OCR'd only where the image carries the OCR models, and the shadow notes it when they are missing.
|
package/dist/skill.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill.js","sourceRoot":"","sources":["../src/skill.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAavD,MAAM,UAAU,GAA2C;IACvD,OAAO,EAAE,gFAAgF;IACzF,UAAU,EAAE,kDAAkD;CACjE,CAAC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AI,EAAE,OAAO,CAAC;;;;EAI/C,eAAe;;;;;;;;;;;;;;;;;;;;CAoBhB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentic/fileq",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.423.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.423.0",
|
|
77
|
+
"@intentic/base": "1.423.0",
|
|
78
|
+
"@intentic/constants": "1.423.0",
|
|
79
|
+
"@intentic/webq": "1.423.0",
|
|
80
|
+
"@intentic/workspace-ignore": "1.423.0",
|
|
81
81
|
"@stricli/core": "1.3.0",
|
|
82
82
|
"exifr": "7.1.3",
|
|
83
83
|
"fflate": "0.8.3",
|
package/src/lib/derive.test.ts
CHANGED
|
@@ -42,6 +42,6 @@ describe("the OCR page cap (interactive 20, the background keeper more)", () =>
|
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
44
|
|
|
45
|
-
test("fileq's document formats are the extensions
|
|
45
|
+
test("fileq's document formats are the extensions searches treat as documents", () => {
|
|
46
46
|
expect(documentExtensions()).toEqual([...SHADOWED_DOCUMENT_EXTENSIONS].toSorted());
|
|
47
47
|
});
|
|
@@ -63,7 +63,7 @@ describe("fast path: a shadow whose recorded stat is the file's", () => {
|
|
|
63
63
|
expect(shadow).toMatch(/^source_mtime: \d+\.\d{9}$/m);
|
|
64
64
|
const { out, slow } = pre("./docs/terms.pdf");
|
|
65
65
|
expect(slow).toBe(false);
|
|
66
|
-
// The shell's marks are exactly the TypeScript ones
|
|
66
|
+
// The shell's marks are exactly the TypeScript ones (@intentic/base/shadow-text).
|
|
67
67
|
expect(out).toBe(markPages(sidecarBody(shadow)));
|
|
68
68
|
expect(out).toContain("[p. 2] Each wniosek must be filed in writing today");
|
|
69
69
|
expect(out.split("\n")[0]).toBe("[p. 1] ## Page 1");
|
package/src/skill.ts
CHANGED
|
@@ -48,8 +48,8 @@ diff; do not convert both versions by hand.
|
|
|
48
48
|
`;
|
|
49
49
|
|
|
50
50
|
// Searching documents: in the sandbox the daemon keeps every document's shadow current and points ripgrep at fileq's
|
|
51
|
-
// preprocessor (RIPGREP_CONFIG_PATH, while the "Search documents" setting is on)
|
|
52
|
-
//
|
|
51
|
+
// preprocessor (RIPGREP_CONFIG_PATH, while the "Search documents" setting is on). Elsewhere the same preprocessor is one
|
|
52
|
+
// config line away.
|
|
53
53
|
const SEARCH = {
|
|
54
54
|
sandbox: `## Searching documents
|
|
55
55
|
The text of every pdf, docx, xlsx, pptx, odt, ods, odp, rtf and epub in the workspace is searchable under the
|
|
@@ -58,7 +58,6 @@ document's own path, kept current as files change:
|
|
|
58
58
|
\`docs/terms.pdf:345:[p. 12] … wniosek …\`: the line number counts lines of the document's text, and
|
|
59
59
|
\`[p. 12] \` (or \`[slide 3] \`) is the page or slide that line is on. Use \`rg\` in the shell for documents:
|
|
60
60
|
a Grep tool that runs its own bundled ripgrep may skip them.
|
|
61
|
-
- \`iq "<question>"\` finds documents by meaning too; their passages carry the same page marks.
|
|
62
61
|
- When you answer from a document, cite it as file and page: "docs/terms.pdf, p. 12". Read the page around a hit
|
|
63
62
|
with \`fileq read <file>\` (or the sidecar it names) rather than guessing from one line.
|
|
64
63
|
- Scans are OCR'd only where the image carries the OCR models, and the shadow notes it when they are missing.
|