ente-cli 0.4.109 → 0.4.111
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/SKILL.md +1 -1
- package/dist/cli.mjs +15 -12
- package/dist/cli.mjs.map +2 -2
- package/package.json +1 -1
package/dist/SKILL.md
CHANGED
|
@@ -258,7 +258,7 @@ ente canvas html delete <boardId> <elementId> [--json]
|
|
|
258
258
|
ente files list <entityId> [--path "03 Unterlagen"] [--json] # --json: linkedFolderPath = the linked folder's path from your Nextcloud root; join it with an item path for the exact file
|
|
259
259
|
ente files search <entityId> "Mietvertrag" [--json] # name search in all subfolders of the linked folder
|
|
260
260
|
ente files read <entityId> "03 Unterlagen/Mietvertrag.pdf" [--offset N] [--max-characters N] [--json] # text of a PDF (text layer), DOCX or plain-text file up to 100 MiB, 50,000 characters per call; a scan without text layer returns notice no_text_layer
|
|
261
|
-
ente files cite <entityId> "03 Unterlagen/Mietvertrag.pdf" --quote "4.200 EUR netto monatlich" [--range START-END] [--candidate N] [--json] # citation links: ok =
|
|
261
|
+
ente files cite <entityId> "03 Unterlagen/Mietvertrag.pdf" --quote "4.200 EUR netto monatlich" [--range START-END] [--candidate N] [--json] # citation links: ok = quoteMarkdown (document wording in „…“ + link) to paste unchanged — never change wording or link text, mark OCR errors only as [sic, OCR]; noText = scan, no link; mismatch = re-quote documentText verbatim; ambiguous = same wording at several places, no link: quote more or pick one with --candidate N (one --quote) or its --range; never build links yourself
|
|
262
262
|
ente files upload <entityId> <local-file> [--folder "03 Unterlagen"] [--name "Vertrag.pdf"] [--mime-type application/pdf] [--json] # at most 10 MiB
|
|
263
263
|
ente files upload <entityId> --activity <activityId> --storage-id <storageId> --name "Vertrag.pdf" [--folder …] [--json] # copy an activity attachment
|
|
264
264
|
ente files link <entityId> "Mandate/2026-017 Zebrafink" [--space <spaceId>] [--json]
|
package/dist/cli.mjs
CHANGED
|
@@ -28648,7 +28648,7 @@ function parseOperationAttrs(operation, pairs) {
|
|
|
28648
28648
|
}
|
|
28649
28649
|
|
|
28650
28650
|
// ente/version.ts
|
|
28651
|
-
var VERSION = "0.4.
|
|
28651
|
+
var VERSION = "0.4.111";
|
|
28652
28652
|
|
|
28653
28653
|
// ente/branding.ts
|
|
28654
28654
|
var NPM_REGISTRY = "https://registry.npmjs.org";
|
|
@@ -48847,10 +48847,16 @@ var entityFileCitationValidator = v.union(
|
|
|
48847
48847
|
/** Nearest heading before the quote (§ 7 Garantien, Art. 3, 4.2 Haftung), or null when none is certain. */
|
|
48848
48848
|
section: v.union(v.string(), v.null()),
|
|
48849
48849
|
url: v.string(),
|
|
48850
|
-
/** Ready Markdown link
|
|
48850
|
+
/** Ready Markdown link alone. */
|
|
48851
48851
|
markdown: v.string(),
|
|
48852
|
+
/** The quote line to show, unchanged: the document's wording in „…“, then the link. */
|
|
48853
|
+
quoteMarkdown: v.string(),
|
|
48852
48854
|
/** The document's own wording of the passage. */
|
|
48853
|
-
documentText: v.string()
|
|
48855
|
+
documentText: v.string(),
|
|
48856
|
+
/** Quote vs document wording: same, whitespace only, or characters (then `note`). */
|
|
48857
|
+
wording: v.union(v.literal("same"), v.literal("whitespace"), v.literal("characters")),
|
|
48858
|
+
/** Set when the wording differs in characters: quote the document text, mark OCR errors [sic, OCR]. */
|
|
48859
|
+
note: v.optional(v.string())
|
|
48854
48860
|
}),
|
|
48855
48861
|
v.object({
|
|
48856
48862
|
status: v.literal("mismatch"),
|
|
@@ -48879,13 +48885,8 @@ var entityFileCitationValidator = v.union(
|
|
|
48879
48885
|
total: v.number(),
|
|
48880
48886
|
hint: v.string()
|
|
48881
48887
|
}),
|
|
48882
|
-
|
|
48883
|
-
|
|
48884
|
-
/** Opens the file on the page without a highlight. */
|
|
48885
|
-
url: v.string(),
|
|
48886
|
-
markdown: v.string(),
|
|
48887
|
-
hint: v.string()
|
|
48888
|
-
})
|
|
48888
|
+
/** The file has no text layer (a scan): no link until OCR adds one. */
|
|
48889
|
+
v.object({ status: v.literal("noText"), hint: v.string() })
|
|
48889
48890
|
);
|
|
48890
48891
|
var entityFileCiteResultValidator = v.union(
|
|
48891
48892
|
v.object({
|
|
@@ -49047,7 +49048,7 @@ var descriptions6 = {
|
|
|
49047
49048
|
listEntityFiles: `List the files and folders in the entity's linked Nextcloud folder. status explains a missing link or connection instead of an empty list. Item paths are relative to the linked folder; linkedFolderPath is the linked folder's own path from your Nextcloud root, so join it with an item path to address that exact file in Nextcloud instead of searching by name. ${personalOnly}`,
|
|
49048
49049
|
searchEntityFiles: `Find files and folders by name anywhere below the entity's linked Nextcloud folder, also in subfolders. status explains a missing link or connection; truncated means more hits exist, so narrow the query. Item paths are relative to the linked folder and go unchanged into entity_file_read. ${personalOnly}`,
|
|
49049
49050
|
readEntityFile: `Read the text of one file in the entity's linked Nextcloud folder: PDF (text layer only), DOCX and plain-text formats such as TXT, MD, CSV, JSON or XML, up to ${ENTITY_FILE_LIMITS.readBytes / (1024 * 1024)} MiB. Other formats fail with unsupported_format. Long texts come in windows: when truncated is true, call again with offset set to offset plus the returned text's length. A PDF without a usable text layer (a scan) returns notice.code no_text_layer: its text is not the content; OCR in Nextcloud may add a layer shortly after upload, so read it again later instead of concluding the file is empty. PDF: offset + position in text = document offset; pages = label and offsets per page. To cite, call entity_file_cite; never build links. ${personalOnly}`,
|
|
49050
|
-
citeEntityFile: `Citation links for verbatim PDF quotes, all in one call. ok: paste
|
|
49051
|
+
citeEntityFile: `Citation links for verbatim PDF quotes, all in one call. ok: paste quoteMarkdown unchanged. mismatch: no link; quote documentText, cite again. ambiguous: no link; quote more or pass candidate. notFound: not in the file. noText: scan, no link. Never build links. ${personalOnly}`,
|
|
49051
49052
|
uploadEntityFile: `Upload a file into the entity's linked Nextcloud folder; a taken name gets a numbered suffix. Send exactly one of base64Content (at most 10 MiB decoded) or activityAttachment (an existing Ente activity attachment). ${personalOnly}`
|
|
49052
49053
|
};
|
|
49053
49054
|
var READ_OPERATIONS = /* @__PURE__ */ new Set(["listEntityFiles", "searchEntityFiles", "readEntityFile", "citeEntityFile"]);
|
|
@@ -49208,8 +49209,10 @@ var FilesReadCmd = class extends ProfileCommand {
|
|
|
49208
49209
|
function citationLine(citation) {
|
|
49209
49210
|
switch (citation.status) {
|
|
49210
49211
|
case "ok":
|
|
49212
|
+
return citation.note ? `${citation.quoteMarkdown}
|
|
49213
|
+
note: ${citation.note}` : citation.quoteMarkdown;
|
|
49211
49214
|
case "noText":
|
|
49212
|
-
return citation.
|
|
49215
|
+
return `noText: ${citation.hint}`;
|
|
49213
49216
|
case "mismatch":
|
|
49214
49217
|
return `mismatch: ${citation.hint} "${citation.documentText}"`;
|
|
49215
49218
|
case "notFound":
|