@larkup/tool-doc-editor 0.2.17 → 0.2.19

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/index.d.ts CHANGED
@@ -16,6 +16,11 @@ export declare const TOOL_META: {
16
16
  readonly name: "Document Editor";
17
17
  readonly version: "0.1.0";
18
18
  };
19
+ export declare const TOOL_EXTENSION: {
20
+ id: string;
21
+ apiVersion: string;
22
+ createClient: () => {};
23
+ };
19
24
  export { createSession, getSession, getAllSessions, deleteSession, restoreSession, applyFieldEdits, applyContentEdits, applySignature, exportDocument, } from './editor.js';
20
25
  export { parseDocument, parsePDF, parseDOCX, parsePPTX, parseTXT, detectDocumentType, enrichPDFWithText, } from './parsers.js';
21
26
  export type { DocumentType, DocumentField, DocumentPage, ParsedDocument, FieldEdit, ContentEdit, EditorSession, EditResult, } from './types.js';
package/dist/index.js CHANGED
@@ -16,6 +16,11 @@ export const TOOL_META = {
16
16
  name: 'Document Editor',
17
17
  version: '0.1.0',
18
18
  };
19
+ export const TOOL_EXTENSION = {
20
+ id: 'doc-editor',
21
+ apiVersion: '1',
22
+ createClient: () => ({}),
23
+ };
19
24
  // Public API
20
25
  export { createSession, getSession, getAllSessions, deleteSession, restoreSession, applyFieldEdits, applyContentEdits, applySignature, exportDocument, } from './editor.js';
21
26
  export { parseDocument, parsePDF, parseDOCX, parsePPTX, parseTXT, detectDocumentType, enrichPDFWithText, } from './parsers.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larkup/tool-doc-editor",
3
- "version": "0.2.17",
3
+ "version": "0.2.19",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -40,8 +40,8 @@
40
40
  "jszip": "^3.10.1",
41
41
  "mammoth": "^1.12.0",
42
42
  "pdf-lib": "^1.17.1",
43
- "@larkup/core": "0.5.1",
44
- "@larkup/sandbox": "0.1.4"
43
+ "@larkup/sandbox": "0.1.4",
44
+ "@larkup/core": "0.5.2"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@larkup/marketplace": ">=0.1.0"
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "typescript": "^7.0.2",
56
- "@larkup/marketplace": "0.2.1"
56
+ "@larkup/marketplace": "0.2.2"
57
57
  },
58
58
  "license": "Apache-2.0",
59
59
  "repository": {
package/src/editor.ts CHANGED
@@ -1,10 +1,6 @@
1
1
  /**
2
2
  * Document editor — orchestrates parsing, editing, and export.
3
- *
4
- * Uses:
5
- * - pdf-lib (MIT) for native PDF form filling
6
- * - Sandbox scripts for DOCX/PPTX editing via python-docx/python-pptx
7
- * - In-memory session management
3
+
8
4
  */
9
5
 
10
6
  import {
package/src/index.ts CHANGED
@@ -4,12 +4,6 @@
4
4
  * Document Editor / Form Filling tool for the Larkup platform.
5
5
  * Enables AI-powered form filling and document editing in a Canvas-style UI.
6
6
  *
7
- * Supports: PDF, DOCX, PPTX, TXT
8
- *
9
- * Uses:
10
- * - pdf-lib (MIT) for native PDF form field operations
11
- * - mammoth (MIT) for DOCX reading
12
- * - @larkup/sandbox for heavy editing (python-docx, python-pptx, pypdf)
13
7
  */
14
8
 
15
9
  export const TOOL_META = {
@@ -18,6 +12,12 @@ export const TOOL_META = {
18
12
  version: '0.1.0',
19
13
  } as const;
20
14
 
15
+ export const TOOL_EXTENSION = {
16
+ id: 'doc-editor',
17
+ apiVersion: '1',
18
+ createClient: () => ({}),
19
+ };
20
+
21
21
  // Public API
22
22
  export {
23
23
  createSession,
@@ -5,7 +5,7 @@
5
5
  "description": "AI-powered form filling and document editing with Canvas-style live preview.",
6
6
  "longDescription": "Open PDF, Word, PowerPoint, and text files in a split-view Canvas. AI fills forms using your knowledge base, edits content on request, and previews changes live. Supports PDF form fields (AcroForm), DOCX paragraphs/tables, PPTX slide text, and plain text editing. Uses pdf-lib (native) for PDF and the Docker sandbox for DOCX/PPTX via python-docx/python-pptx.",
7
7
  "category": "utility",
8
- "version": "0.2.17",
8
+ "version": "0.2.18",
9
9
  "pricing": "free",
10
10
  "emoji": "📝",
11
11
  "icon": "FileEdit",