@superdoc-dev/sdk 1.0.0-alpha.3 → 1.0.0-alpha.31

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.
Files changed (67) hide show
  1. package/README.md +124 -0
  2. package/dist/generated/client.cjs +284 -0
  3. package/dist/generated/client.d.ts +8167 -0
  4. package/dist/generated/client.d.ts.map +1 -0
  5. package/dist/generated/client.js +279 -0
  6. package/dist/generated/contract.cjs +82368 -0
  7. package/dist/generated/contract.d.ts +34 -0
  8. package/dist/generated/contract.d.ts.map +1 -0
  9. package/dist/generated/contract.js +82383 -0
  10. package/dist/helpers/format.d.ts +79 -0
  11. package/dist/helpers/format.d.ts.map +1 -0
  12. package/dist/helpers/format.js +121 -0
  13. package/dist/index.cjs +45 -0
  14. package/dist/index.d.ts +23 -0
  15. package/dist/index.d.ts.map +1 -0
  16. package/dist/index.js +29 -0
  17. package/dist/runtime/embedded-cli.cjs +100 -0
  18. package/dist/runtime/embedded-cli.d.ts +5 -0
  19. package/dist/runtime/embedded-cli.d.ts.map +1 -0
  20. package/dist/runtime/embedded-cli.js +94 -0
  21. package/dist/runtime/errors.cjs +22 -0
  22. package/dist/runtime/errors.d.ts +17 -0
  23. package/dist/runtime/errors.d.ts.map +1 -0
  24. package/dist/runtime/errors.js +18 -0
  25. package/dist/runtime/host.cjs +352 -0
  26. package/dist/runtime/host.d.ts +37 -0
  27. package/dist/runtime/host.d.ts.map +1 -0
  28. package/dist/runtime/host.js +347 -0
  29. package/dist/runtime/process.cjs +32 -0
  30. package/dist/runtime/process.d.ts +16 -0
  31. package/dist/runtime/process.d.ts.map +1 -0
  32. package/dist/runtime/process.js +27 -0
  33. package/dist/runtime/transport-common.cjs +77 -0
  34. package/dist/runtime/transport-common.d.ts +49 -0
  35. package/dist/runtime/transport-common.d.ts.map +1 -0
  36. package/dist/runtime/transport-common.js +72 -0
  37. package/dist/skills.cjs +148 -0
  38. package/dist/skills.d.ts +25 -0
  39. package/dist/skills.d.ts.map +1 -0
  40. package/dist/skills.js +140 -0
  41. package/dist/tools.cjs +307 -0
  42. package/dist/tools.d.ts +90 -0
  43. package/dist/tools.d.ts.map +1 -0
  44. package/dist/tools.js +296 -0
  45. package/package.json +21 -11
  46. package/skills/editing-docx.md +24 -150
  47. package/tools/catalog.json +38846 -0
  48. package/tools/tool-name-map.json +179 -0
  49. package/tools/tools-policy.json +97 -0
  50. package/tools/tools.anthropic.json +17311 -0
  51. package/tools/tools.generic.json +37596 -0
  52. package/tools/tools.openai.json +17845 -0
  53. package/tools/tools.vercel.json +17845 -0
  54. package/src/__tests__/skills.test.ts +0 -166
  55. package/src/__tests__/tools.test.ts +0 -96
  56. package/src/generated/client.ts +0 -3643
  57. package/src/generated/contract.ts +0 -15952
  58. package/src/index.ts +0 -87
  59. package/src/runtime/__tests__/process.test.ts +0 -38
  60. package/src/runtime/__tests__/transport-common.test.ts +0 -174
  61. package/src/runtime/embedded-cli.ts +0 -109
  62. package/src/runtime/errors.ts +0 -30
  63. package/src/runtime/host.ts +0 -481
  64. package/src/runtime/process.ts +0 -45
  65. package/src/runtime/transport-common.ts +0 -169
  66. package/src/skills.ts +0 -195
  67. package/src/tools.ts +0 -701
@@ -0,0 +1,179 @@
1
+ {
2
+ "get_node": "doc.getNode",
3
+ "get_node_by_id": "doc.getNodeById",
4
+ "get_document_text": "doc.getText",
5
+ "get_document_markdown": "doc.getMarkdown",
6
+ "get_document_html": "doc.getHtml",
7
+ "get_document_info": "doc.info",
8
+ "insert_content": "doc.insert",
9
+ "replace_content": "doc.replace",
10
+ "delete_content": "doc.delete",
11
+ "delete_block": "doc.blocks.delete",
12
+ "format_apply": "doc.format.apply",
13
+ "styles_apply": "doc.styles.apply",
14
+ "create_paragraph": "doc.create.paragraph",
15
+ "create_heading": "doc.create.heading",
16
+ "create_section_break": "doc.create.sectionBreak",
17
+ "list_sections": "doc.sections.list",
18
+ "get_section": "doc.sections.get",
19
+ "set_section_break_type": "doc.sections.setBreakType",
20
+ "set_section_page_margins": "doc.sections.setPageMargins",
21
+ "set_section_header_footer_margins": "doc.sections.setHeaderFooterMargins",
22
+ "set_section_page_setup": "doc.sections.setPageSetup",
23
+ "set_section_columns": "doc.sections.setColumns",
24
+ "set_section_line_numbering": "doc.sections.setLineNumbering",
25
+ "set_section_page_numbering": "doc.sections.setPageNumbering",
26
+ "set_section_title_page": "doc.sections.setTitlePage",
27
+ "set_section_odd_even_headers_footers": "doc.sections.setOddEvenHeadersFooters",
28
+ "set_section_vertical_align": "doc.sections.setVerticalAlign",
29
+ "set_section_direction": "doc.sections.setSectionDirection",
30
+ "set_section_header_footer_reference": "doc.sections.setHeaderFooterRef",
31
+ "clear_section_header_footer_reference": "doc.sections.clearHeaderFooterRef",
32
+ "set_section_link_to_previous": "doc.sections.setLinkToPrevious",
33
+ "set_section_page_borders": "doc.sections.setPageBorders",
34
+ "clear_section_page_borders": "doc.sections.clearPageBorders",
35
+ "set_paragraph_style": "doc.styles.paragraph.setStyle",
36
+ "clear_paragraph_style": "doc.styles.paragraph.clearStyle",
37
+ "reset_paragraph_direct_formatting": "doc.format.paragraph.resetDirectFormatting",
38
+ "set_paragraph_alignment": "doc.format.paragraph.setAlignment",
39
+ "clear_paragraph_alignment": "doc.format.paragraph.clearAlignment",
40
+ "set_paragraph_indentation": "doc.format.paragraph.setIndentation",
41
+ "clear_paragraph_indentation": "doc.format.paragraph.clearIndentation",
42
+ "set_paragraph_spacing": "doc.format.paragraph.setSpacing",
43
+ "clear_paragraph_spacing": "doc.format.paragraph.clearSpacing",
44
+ "set_paragraph_keep_options": "doc.format.paragraph.setKeepOptions",
45
+ "set_paragraph_outline_level": "doc.format.paragraph.setOutlineLevel",
46
+ "set_paragraph_flow_options": "doc.format.paragraph.setFlowOptions",
47
+ "set_paragraph_tab_stop": "doc.format.paragraph.setTabStop",
48
+ "clear_paragraph_tab_stop": "doc.format.paragraph.clearTabStop",
49
+ "clear_all_paragraph_tab_stops": "doc.format.paragraph.clearAllTabStops",
50
+ "set_paragraph_border": "doc.format.paragraph.setBorder",
51
+ "clear_paragraph_border": "doc.format.paragraph.clearBorder",
52
+ "set_paragraph_shading": "doc.format.paragraph.setShading",
53
+ "clear_paragraph_shading": "doc.format.paragraph.clearShading",
54
+ "list_lists": "doc.lists.list",
55
+ "get_list": "doc.lists.get",
56
+ "insert_list": "doc.lists.insert",
57
+ "create_list": "doc.lists.create",
58
+ "attach_to_list": "doc.lists.attach",
59
+ "detach_from_list": "doc.lists.detach",
60
+ "indent_list": "doc.lists.indent",
61
+ "outdent_list": "doc.lists.outdent",
62
+ "join_lists": "doc.lists.join",
63
+ "can_join_lists": "doc.lists.canJoin",
64
+ "separate_list": "doc.lists.separate",
65
+ "set_list_level": "doc.lists.setLevel",
66
+ "set_list_value": "doc.lists.setValue",
67
+ "continue_previous_list": "doc.lists.continuePrevious",
68
+ "can_continue_previous_list": "doc.lists.canContinuePrevious",
69
+ "set_list_level_restart": "doc.lists.setLevelRestart",
70
+ "convert_list_to_text": "doc.lists.convertToText",
71
+ "apply_list_template": "doc.lists.applyTemplate",
72
+ "apply_list_preset": "doc.lists.applyPreset",
73
+ "capture_list_template": "doc.lists.captureTemplate",
74
+ "set_list_level_numbering": "doc.lists.setLevelNumbering",
75
+ "set_list_level_bullet": "doc.lists.setLevelBullet",
76
+ "set_list_level_picture_bullet": "doc.lists.setLevelPictureBullet",
77
+ "set_list_level_alignment": "doc.lists.setLevelAlignment",
78
+ "set_list_level_indents": "doc.lists.setLevelIndents",
79
+ "set_list_level_trailing_character": "doc.lists.setLevelTrailingCharacter",
80
+ "set_list_level_marker_font": "doc.lists.setLevelMarkerFont",
81
+ "clear_list_level_overrides": "doc.lists.clearLevelOverrides",
82
+ "create_comment": "doc.comments.create",
83
+ "patch_comment": "doc.comments.patch",
84
+ "delete_comment": "doc.comments.delete",
85
+ "get_comment": "doc.comments.get",
86
+ "list_comments": "doc.comments.list",
87
+ "list_tracked_changes": "doc.trackChanges.list",
88
+ "get_tracked_change": "doc.trackChanges.get",
89
+ "decide_tracked_change": "doc.trackChanges.decide",
90
+ "query_match": "doc.query.match",
91
+ "preview_mutations": "doc.mutations.preview",
92
+ "apply_mutations": "doc.mutations.apply",
93
+ "get_capabilities": "doc.capabilities.get",
94
+ "create_table": "doc.create.table",
95
+ "convert_text_to_table": "doc.tables.convertFromText",
96
+ "delete_table": "doc.tables.delete",
97
+ "clear_table_contents": "doc.tables.clearContents",
98
+ "move_table": "doc.tables.move",
99
+ "split_table": "doc.tables.split",
100
+ "convert_table_to_text": "doc.tables.convertToText",
101
+ "set_table_layout": "doc.tables.setLayout",
102
+ "insert_table_row": "doc.tables.insertRow",
103
+ "delete_table_row": "doc.tables.deleteRow",
104
+ "set_table_row_height": "doc.tables.setRowHeight",
105
+ "distribute_table_rows": "doc.tables.distributeRows",
106
+ "set_table_row_options": "doc.tables.setRowOptions",
107
+ "insert_table_column": "doc.tables.insertColumn",
108
+ "delete_table_column": "doc.tables.deleteColumn",
109
+ "set_table_column_width": "doc.tables.setColumnWidth",
110
+ "distribute_table_columns": "doc.tables.distributeColumns",
111
+ "insert_table_cell": "doc.tables.insertCell",
112
+ "delete_table_cell": "doc.tables.deleteCell",
113
+ "merge_table_cells": "doc.tables.mergeCells",
114
+ "unmerge_table_cells": "doc.tables.unmergeCells",
115
+ "split_table_cell": "doc.tables.splitCell",
116
+ "set_table_cell_properties": "doc.tables.setCellProperties",
117
+ "sort_table": "doc.tables.sort",
118
+ "set_table_alt_text": "doc.tables.setAltText",
119
+ "set_table_style": "doc.tables.setStyle",
120
+ "clear_table_style": "doc.tables.clearStyle",
121
+ "set_table_style_option": "doc.tables.setStyleOption",
122
+ "set_table_border": "doc.tables.setBorder",
123
+ "clear_table_border": "doc.tables.clearBorder",
124
+ "apply_table_border_preset": "doc.tables.applyBorderPreset",
125
+ "set_table_shading": "doc.tables.setShading",
126
+ "clear_table_shading": "doc.tables.clearShading",
127
+ "set_table_padding": "doc.tables.setTablePadding",
128
+ "set_table_cell_padding": "doc.tables.setCellPadding",
129
+ "set_table_cell_spacing": "doc.tables.setCellSpacing",
130
+ "clear_table_cell_spacing": "doc.tables.clearCellSpacing",
131
+ "get_table": "doc.tables.get",
132
+ "get_table_cells": "doc.tables.getCells",
133
+ "get_table_properties": "doc.tables.getProperties",
134
+ "get_table_styles": "doc.tables.getStyles",
135
+ "set_table_default_style": "doc.tables.setDefaultStyle",
136
+ "clear_table_default_style": "doc.tables.clearDefaultStyle",
137
+ "create_table_of_contents": "doc.create.tableOfContents",
138
+ "list_table_of_contents": "doc.toc.list",
139
+ "get_table_of_contents": "doc.toc.get",
140
+ "configure_table_of_contents": "doc.toc.configure",
141
+ "update_table_of_contents": "doc.toc.update",
142
+ "remove_table_of_contents": "doc.toc.remove",
143
+ "mark_table_of_contents_entry": "doc.toc.markEntry",
144
+ "unmark_table_of_contents_entry": "doc.toc.unmarkEntry",
145
+ "list_table_of_contents_entries": "doc.toc.listEntries",
146
+ "get_table_of_contents_entry": "doc.toc.getEntry",
147
+ "edit_table_of_contents_entry": "doc.toc.editEntry",
148
+ "get_history": "doc.history.get",
149
+ "undo": "doc.history.undo",
150
+ "redo": "doc.history.redo",
151
+ "create_image": "doc.create.image",
152
+ "list_images": "doc.images.list",
153
+ "get_image": "doc.images.get",
154
+ "delete_image": "doc.images.delete",
155
+ "move_image": "doc.images.move",
156
+ "convert_image_to_inline": "doc.images.convertToInline",
157
+ "convert_image_to_floating": "doc.images.convertToFloating",
158
+ "set_image_size": "doc.images.setSize",
159
+ "set_image_wrap_type": "doc.images.setWrapType",
160
+ "set_image_wrap_side": "doc.images.setWrapSide",
161
+ "set_image_wrap_distances": "doc.images.setWrapDistances",
162
+ "set_image_position": "doc.images.setPosition",
163
+ "set_image_anchor_options": "doc.images.setAnchorOptions",
164
+ "set_image_z_order": "doc.images.setZOrder",
165
+ "list_hyperlinks": "doc.hyperlinks.list",
166
+ "get_hyperlink": "doc.hyperlinks.get",
167
+ "wrap_hyperlink": "doc.hyperlinks.wrap",
168
+ "insert_hyperlink": "doc.hyperlinks.insert",
169
+ "patch_hyperlink": "doc.hyperlinks.patch",
170
+ "remove_hyperlink": "doc.hyperlinks.remove",
171
+ "open_document": "doc.open",
172
+ "save_document": "doc.save",
173
+ "close_document": "doc.close",
174
+ "get_status": "doc.status",
175
+ "list_sessions": "doc.session.list",
176
+ "save_session": "doc.session.save",
177
+ "close_session": "doc.session.close",
178
+ "set_default_session": "doc.session.setDefault"
179
+ }
@@ -0,0 +1,97 @@
1
+ {
2
+ "policyVersion": "v3",
3
+ "groups": [
4
+ "core",
5
+ "format",
6
+ "create",
7
+ "tables",
8
+ "sections",
9
+ "lists",
10
+ "comments",
11
+ "trackChanges",
12
+ "toc",
13
+ "history",
14
+ "session"
15
+ ],
16
+ "groupDescriptions": {
17
+ "core": "Core operations: read nodes, get text, insert/replace/delete content, mutations",
18
+ "format": "Text formatting, paragraph styles, alignment, spacing, borders, shading",
19
+ "create": "Create structural elements: headings, paragraphs, tables, sections, TOC",
20
+ "tables": "Table creation, manipulation, formatting, borders, and cell operations",
21
+ "sections": "Page layout, margins, columns, headers/footers, page numbering",
22
+ "lists": "Bullet and numbered lists, indentation, list types",
23
+ "comments": "Comment threads — create, edit, delete, list",
24
+ "trackChanges": "Track changes — list, inspect, accept/reject",
25
+ "toc": "Table of contents — create, configure, update, manage entries",
26
+ "history": "Undo, redo, history inspection",
27
+ "session": "Session management — open, close, save, list sessions"
28
+ },
29
+ "defaults": {
30
+ "mode": "essential",
31
+ "maxTools": 20,
32
+ "alwaysInclude": [
33
+ "core"
34
+ ],
35
+ "foundationalOperationIds": [
36
+ "doc.info",
37
+ "doc.query.match"
38
+ ]
39
+ },
40
+ "capabilityFeatures": {
41
+ "comments": [
42
+ "hasComments"
43
+ ],
44
+ "trackChanges": [
45
+ "hasTrackedChanges"
46
+ ],
47
+ "lists": [
48
+ "hasLists"
49
+ ],
50
+ "tables": [
51
+ "hasTables"
52
+ ],
53
+ "toc": [
54
+ "hasToc"
55
+ ]
56
+ },
57
+ "essentialTools": [
58
+ "get_node_by_id",
59
+ "get_document_text",
60
+ "query_match",
61
+ "apply_mutations",
62
+ "undo"
63
+ ],
64
+ "discoverTool": {
65
+ "name": "discover_tools",
66
+ "description": "Load additional tool groups when you need capabilities beyond the essential set. Call this BEFORE attempting to use tools from a specific group.\n\nAvailable groups:\n - core: Core operations: read nodes, get text, insert/replace/delete content, mutations\n - format: Text formatting, paragraph styles, alignment, spacing, borders, shading\n - create: Create structural elements: headings, paragraphs, tables, sections, TOC\n - tables: Table creation, manipulation, formatting, borders, and cell operations\n - sections: Page layout, margins, columns, headers/footers, page numbering\n - lists: Bullet and numbered lists, indentation, list types\n - comments: Comment threads — create, edit, delete, list\n - trackChanges: Track changes — list, inspect, accept/reject\n - toc: Table of contents — create, configure, update, manage entries\n - history: Undo, redo, history inspection\n - session: Session management — open, close, save, list sessions",
67
+ "schema": {
68
+ "type": "object",
69
+ "properties": {
70
+ "groups": {
71
+ "type": "array",
72
+ "items": {
73
+ "type": "string",
74
+ "enum": [
75
+ "core",
76
+ "format",
77
+ "create",
78
+ "tables",
79
+ "sections",
80
+ "lists",
81
+ "comments",
82
+ "trackChanges",
83
+ "toc",
84
+ "history",
85
+ "session"
86
+ ]
87
+ },
88
+ "description": "Which tool groups to load. You can request multiple at once."
89
+ }
90
+ },
91
+ "required": [
92
+ "groups"
93
+ ]
94
+ }
95
+ },
96
+ "contractHash": "628c99fc8d67fba6"
97
+ }