@superdoc/cli 0.35.0-next.26 → 0.35.0-next.27
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.js +25 -22
- package/package.json +11 -10
package/dist/index.js
CHANGED
|
@@ -306368,7 +306368,7 @@ function materializeProjection(input) {
|
|
|
306368
306368
|
const trailingUnchanged = trailingStart !== null && previous3.xml.slice(trailingStart, previous3.xml.length - envelope.suffix.length) === trailingXml;
|
|
306369
306369
|
let canPatchXml = true;
|
|
306370
306370
|
let unchanged = trailingUnchanged && !existingOrderChanged && !previousMissingBlocks && currentBlockIds.length === previousBlockIds.length;
|
|
306371
|
-
for (const blockId of currentBlockIds) {
|
|
306371
|
+
for (const [blockIndex, blockId] of currentBlockIds.entries()) {
|
|
306372
306372
|
const block = currentBlockById.get(blockId);
|
|
306373
306373
|
if (!block)
|
|
306374
306374
|
continue;
|
|
@@ -306395,9 +306395,9 @@ function materializeProjection(input) {
|
|
|
306395
306395
|
const insertedSpan = neighboringSpan ?? (tableCreateTailBlockIds.has(blockId) ? resolveStoryBodyEndInsertionSpan(previous3) : null);
|
|
306396
306396
|
placements2 ?? (placements2 = projectedNamespaceContexts(currentSnapshot, bootstrap, sourceNamespaces));
|
|
306397
306397
|
xml = serializeProjectedBlockXml(block, syntheticAtoms.get(block.blockId) ?? [], placements2.get(block.blockId));
|
|
306398
|
-
|
|
306399
|
-
|
|
306400
|
-
|
|
306398
|
+
const precedingBlock = currentSnapshot.blocks[blockIndex - 1];
|
|
306399
|
+
const tableClosingXml = !coveredByTableOverlay && precedingBlock?.structuralRefs.tableNodeId && tableAffectedBlockIds.has(precedingBlock.blockId) ? block.leadingXml.match(/^(?:\s*<\/w:(?:tc|tr)>\s*)*<\/w:tbl>/)?.[0] ?? "" : "";
|
|
306400
|
+
xml = xml.slice(Math.max(neighboringSpan?.retainedLeadingXmlLength ?? 0, tableClosingXml.length));
|
|
306401
306401
|
if (!coveredByTableOverlay && !insertedSpan && !sourceSpan2) {
|
|
306402
306402
|
canPatchXml = false;
|
|
306403
306403
|
}
|
|
@@ -324622,7 +324622,7 @@ function buildRuntimeDocument(opened) {
|
|
|
324622
324622
|
return { warnings: saved.warnings ?? [] };
|
|
324623
324623
|
},
|
|
324624
324624
|
dispose() {
|
|
324625
|
-
opened.dispose();
|
|
324625
|
+
return opened.dispose();
|
|
324626
324626
|
}
|
|
324627
324627
|
};
|
|
324628
324628
|
}
|
|
@@ -324751,6 +324751,7 @@ async function openV2CollaborativeDocument(doc, io, profile, options = {}) {
|
|
|
324751
324751
|
};
|
|
324752
324752
|
let active;
|
|
324753
324753
|
let disposed = false;
|
|
324754
|
+
let disposePromise;
|
|
324754
324755
|
let transitionTail = Promise.resolve();
|
|
324755
324756
|
const refreshRetryTimers = new Set;
|
|
324756
324757
|
let freshnessWait = null;
|
|
@@ -324924,15 +324925,16 @@ async function openV2CollaborativeDocument(doc, io, profile, options = {}) {
|
|
|
324924
324925
|
return generation.opened.exportReport(exportOptions);
|
|
324925
324926
|
},
|
|
324926
324927
|
dispose() {
|
|
324927
|
-
if (
|
|
324928
|
-
return;
|
|
324928
|
+
if (disposePromise)
|
|
324929
|
+
return disposePromise;
|
|
324929
324930
|
disposed = true;
|
|
324930
324931
|
freshnessWait?.resolve();
|
|
324931
324932
|
freshnessWait = null;
|
|
324932
324933
|
for (const timer of refreshRetryTimers)
|
|
324933
324934
|
clearTimeout(timer);
|
|
324934
324935
|
refreshRetryTimers.clear();
|
|
324935
|
-
enqueueTransition(() => active.close());
|
|
324936
|
+
disposePromise = enqueueTransition(() => active.close());
|
|
324937
|
+
return disposePromise;
|
|
324936
324938
|
}
|
|
324937
324939
|
};
|
|
324938
324940
|
return result;
|
|
@@ -428025,7 +428027,7 @@ var _0x97317d, _0x518ba8, _0xcbf665 = (_0xa5396, _0x729d14) => () => (_0x729d14
|
|
|
428025
428027
|
}, _0x12847d, _0x100120, _0x1b620f, _0x3ddf93, _0x42f354, _0x50b0c9, _0x3c6a1c, _0x5b3e8a, _0x290389, _0x527b70, _0x5a66be, _0x490c45, _0x3e1912, _0x1529ac, _0x28b168, _0x24fc50 = 25000, _0x3bf992, _0xd4ab46 = 2147483647, _0x2067d8 = 63, _0x236c85, _0x30c0be = 1638, _0x2fac58 = 255, _0x461a9c = 2147483647, _0x323913 = 63, _0x1b6e1a, _0x45dc40, _0x512f65, _0x4bd2d7, _0x3275a5, _0x53c1b2, _0x3522e2, _0x2b28d6 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x1e05b6 = "http://schemas.microsoft.com/office/word/2010/wordml", _0x26d083 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", _0x58c606 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x58a154, _0x6076f9, _0x570998, _0x23ac1d = "Content control mutations outside the document body are not supported by this adapter.", _0x27a244, _0x531d7f, _0x2647b2 = 128, _0x137c0f = 16, _0x33ac67, _0x107d60, _0x2b7500, _0x5beef7, _0x11e26a, _0xae5aae, _0x38c6ae, _0x3026cd, _0x4ede69, _0x44e88d, _0x3a05b0, _0x25582b, _0x5b05fd, _0x1bcbea, _0x31783, _0x34fdaa, _0x1bd71e, _0x1d2e61, _0x7b82b9 = "__sd:paragraph:", _0x91a662 = "__sd:textbox-paragraph:", _0x3371b2 = "tc-comment:", _0x66bfde, _0x12a84f, _0x39a7f9, _0x268b2e, _0x47884b, _0x52fb1f = "http://schemas.openxmlformats.org/drawingml/2006/main", _0x4110c4 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x906708 = "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing", _0x5bf42f = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", _0x5ed2e4, _0x51ccbd, _0x26fd41, _0x25b9f3 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x199e26 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", _0x1350b3, _0x5c03dc = 32, _0x5cd652, _0x34da2f, _0x1fc4fc, _0x442b7d, _0x2bdad0, _0x1d0526 = 256, _0x42f221, _0x5e2e52, _0x3d6708 = 4096, _0x5c6fd5 = 256, _0x32a137, _0x4a0e51, _0x56a298, _0x48cf5e, _0x376c7f, _0xeec082, _0x4f6b33, _0x549d21, _0x265d87, _0x40f244, _0x233a2d, _0x334130, _0x2aaa35, _0x1cffb5, _0x457157, _0x33c246, _0x299cc4, _0x2f1070, _0x5a086c, _0x49a9d7, _0x317aa5, _0x3fd710, _0x28ba52, _0x3f7294, _0x37e22b, _0x5010dc, _0x541fca, _0x157f53 = 32, _0x421afb, _0x3a5587, _0x26eae7, _0xb4b453, _0x122872, _0x4de493, _0x28862f = "/word/document.xml", _0x4dc5ab, _0x2cb8e3, _0x400efa, _0x5b7e36 = "/word/settings.xml", _0x40ea3e = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x58e5aa, _0x17bf5b, _0x5382ea, _0x6fc3e6 = "/word/document.xml", _0x218916 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", _0x300070, _0x13e948, _0x3f315e = "/[Content_Types].xml", _0x4a627b = "/", _0x3c2078, _0x1e9b42 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0xdd2154, _0x48a290, _0x5de4e9 = "http://schemas.openxmlformats.org/package/2006/relationships", _0x4e0dce = "http://schemas.openxmlformats.org/package/2006/content-types", _0x328bb9, _0xf4001 = "/relationships/header", _0x39a491 = "/relationships/footer", _0x2f69a4 = "/relationships/footnotes", _0x35269a = "/relationships/endnotes", _0x42607b = "/word/_rels/document.xml.rels", _0xabf09a = "/[Content_Types].xml", _0xe60c4 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x5fb2ea, _0x1826c0, _0x37800e, _0x54940a, _0x557122, _0x4ed572 = 9525, _0x515d30, _0x18757f, _0x287163, _0x293e50, _0x786e94, _0x340b4e, _0x59cd1e = "/word/_rels/document.xml.rels", _0x5dea7f = "/[Content_Types].xml", _0x358a41 = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"></Relationships>', _0x4e7638 = "/relationships/header", _0x46c1d9 = "/relationships/footer", _0x1f8f36, _0x25e39e, _0x5f0be7, _0xb88d4e, _0x308ef0 = "/word/styles.xml", _0x34da15, _0x4b3a76, _0xc586c7, _0x552d02, _0x4eca96 = "/word/document.xml", _0x44b870 = "body:/word/document.xml", _0xebc9f1 = "snapshot", _0x5a4e13 = "superdoc-v2", _0x3b9de0, _0x510012, _0x3003cd = "superdoc-v2-full-diff-snapshot", _0x2cbd6d = "sd-diff-v2/full-snapshot/v1", _0x1b78f1 = "superdoc-v2-full-diff-payload", _0x26e6ed = "sd-diff-v2/full-payload/v1", _0x5af62d, _0x2fdbed = "/word/_rels/document.xml.rels", _0xc3902f = "/word/document.xml", _0x44a1fa = "/[Content_Types].xml", _0x26cdd7, _0x274050, _0x427d00, _0xfd31af = "http://schemas.openxmlformats.org/package/2006/relationships", _0x542af4 = "http://schemas.openxmlformats.org/package/2006/content-types", _0x1a5836 = "http://schemas.openxmlformats.org/drawingml/2006/main", _0x359f1b = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x569e93 = "http://schemas.openxmlformats.org/package/2006/metadata/core-properties", _0x5e5d4c = "http://purl.org/dc/terms/", _0x29d3c1 = "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties", _0xe910ae, _0x1f12b3, _0x1b9599 = "body:/word/document.xml", _0xbd9938 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x388931 = "http://schemas.microsoft.com/office/word/2010/wordml", _0x3444d1 = "http://schemas.openxmlformats.org/markup-compatibility/2006", _0x3a611e, _0xc71050, _0x4d8063, _0xd8c96c, _0x5b9fd6 = 64, _0x5168d9 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x2ba7e3, _0x4b95ad, _0x241b0e, _0x16a583 = "/word/document.xml", _0x3a7c18 = "/word/numbering.xml", _0x1bc7b7, _0x4792cb, _0x904f0b = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x2f9248 = "http://schemas.microsoft.com/office/word/2010/wordml", _0x2cb1ea = "http://schemas.openxmlformats.org/officeDocument/2006/math", _0x5f4d41 = "http://schemas.openxmlformats.org/markup-compatibility/2006", _0x47ac66 = "urn:schemas-microsoft-com:vml", _0x592607, _0x2feca3, _0x45b67d, _0x3bd111, _0x38e0c4, _0x186da2 = "/word/numbering.xml", _0x1fbf1d = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x300463, _0x482fcc, _0x5bf564, _0x465e93, _0x26c65d, _0x320ced, _0x552825, _0x58fd1c, _0x4e17bb, _0xe15e5a = "/word/document.xml", _0x3badd5, _0x131382, _0x26fcea, _0x3bb94c, _0x276e3b, _0xd69af4, _0x10e023 = 100, _0x1e7210 = 100, _0x59ac18 = 100, _0xe4f68e = 1000, _0x59dcc6 = 500, _0x4e850c, _0x4e2c75 = "v2-textbox-geometry", _0x3eb672, _0x3d4128, _0x5d7b4b, _0x42d648, _0x1b56c8 = 100, _0x2cf97b, _0x385e75, _0x1fb213, _0x484d26 = "hl-field:", _0x2f26e9 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", _0x4d90cc, _0x794038, _0x290f22, _0x30a55f, _0x9c01c1 = 9525, _0x3fc226 = 1000, _0x1ea704, _0x5a75b1, _0x228627, _0x3181a3 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", _0x1a77c9 = 9525, _0x3a2558 = 1000, _0x11e5fe = 251659264, _0x2e8596 = "{C183D7F6-B498-43B3-948B-1728B52AA6E4}", _0xe97663 = "http://schemas.microsoft.com/office/drawing/2017/decorative", _0x550f07 = "http://schemas.openxmlformats.org/drawingml/2006/main", _0x3b479f = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", _0x2a6e46, _0x1b9462, _0x1fc38e, _0x289c9e = 12240, _0x4c3419 = 1440, _0x10f677 = 15, _0x440bbc, _0x493094 = "http://schemas.microsoft.com/office/word/2010/wordml", _0x42b314 = "/word/footnotes.xml", _0x3f0550 = "/word/endnotes.xml", _0x541980 = "application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml", _0x2a97c2 = "application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml", _0x1e7b30, _0x575d50 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes", _0xd7518d, _0x201e12, _0x4b9e47, _0x3be226, _0x4ac4c4, _0x226665 = 63, _0x41c6c7 = 1638, _0x29f275 = 255, _0x87ad86, _0x344cfb, _0x1c0601, _0x1b3efd = 64, _0x16ee29 = 8000, _0x21ba32 = 256, _0x144506, _0xeb86c9, _0x242751, _0x223ec1 = 9525, _0x54ef5f = 1024, _0x3da6d, _0x5bfb56, _0x4ebae9, _0x2ef8d4, _0x324adc, _0x583fcc, _0x285410, _0x4c13ba, _0x3780d6, _0x31a8d9, _0x3d130b, _0x300aa7 = "Anchored metadata", _0x15cbd7 = "http://schemas.microsoft.com/office/word/2012/wordml", _0x3a567a = 2147483646, _0x1180e2, _0xe115a3, _0x393b0c = "all", _0x245be5, _0x308908, _0x4a7fb4, _0x3f5ff8 = "[Content_Types].xml", _0x2478c5 = "/[Content_Types].xml", _0x3a5d6b = "/word/document.xml", _0x1bbe8f = "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml", _0x735030 = "http://purl.oclc.org/ooxml/wordprocessingml/main", _0xd520bd = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme", _0x2fa69b = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable", _0x2d904d = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings", _0x59fd85 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", _0x5391a6 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", _0x53b64a = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", _0x384b3e, _0x447874 = "word/styles.xml", _0x2c5b09, _0x2f42e7 = "word/numbering.xml", _0x50b578 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0xe1f375, _0xb18196, _0x5416a1, _0x3bbd47 = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"></Relationships>', _0x3f54c5, _0x10ee93, _0x1f3dd7, _0x130194, _0x2fd60f, _0x554d05, _0x298cb4, _0x415ebe, _0x2eed69;
|
|
428026
428028
|
var init_document_runtime = __esm(() => {
|
|
428027
428029
|
/*!
|
|
428028
|
-
* DOCX Engine v0.14.0-next.
|
|
428030
|
+
* DOCX Engine v0.14.0-next.15
|
|
428029
428031
|
* Proprietary software. Copyright © 2026 Harbour Enterprises, Inc., d/b/a SuperDoc.
|
|
428030
428032
|
* Use governed by the DOCX Engine Proprietary License Agreement.
|
|
428031
428033
|
* No reverse engineering, deobfuscation, redistribution,
|
|
@@ -444096,7 +444098,7 @@ var _0x18d6be, _0x39ae2b, _0xaf93c4 = "host.request.timeoutMs", _0x39ef6a = 2147
|
|
|
444096
444098
|
var init_document_host_BV5jPLq6 = __esm(() => {
|
|
444097
444099
|
init_document_runtime();
|
|
444098
444100
|
/*!
|
|
444099
|
-
* DOCX Engine v0.14.0-next.
|
|
444101
|
+
* DOCX Engine v0.14.0-next.15
|
|
444100
444102
|
* Proprietary software. Copyright © 2026 Harbour Enterprises, Inc., d/b/a SuperDoc.
|
|
444101
444103
|
* Use governed by the DOCX Engine Proprietary License Agreement.
|
|
444102
444104
|
* No reverse engineering, deobfuscation, redistribution,
|
|
@@ -444334,7 +444336,7 @@ function _0x19ec() {
|
|
|
444334
444336
|
var init_document_host = __esm(() => {
|
|
444335
444337
|
init_document_host_BV5jPLq6();
|
|
444336
444338
|
/*!
|
|
444337
|
-
* DOCX Engine v0.14.0-next.
|
|
444339
|
+
* DOCX Engine v0.14.0-next.15
|
|
444338
444340
|
* Proprietary software. Copyright © 2026 Harbour Enterprises, Inc., d/b/a SuperDoc.
|
|
444339
444341
|
* Use governed by the DOCX Engine Proprietary License Agreement.
|
|
444340
444342
|
* No reverse engineering, deobfuscation, redistribution,
|
|
@@ -446724,7 +446726,7 @@ async function executeReadOperation(request) {
|
|
|
446724
446726
|
pretty: buildPrettyOutput(operationId, document5, result)
|
|
446725
446727
|
};
|
|
446726
446728
|
} finally {
|
|
446727
|
-
opened.dispose();
|
|
446729
|
+
await opened.dispose();
|
|
446728
446730
|
}
|
|
446729
446731
|
}, context.sessionId, context.executionMode);
|
|
446730
446732
|
}
|
|
@@ -447036,7 +447038,7 @@ async function executeMutationOperation(request) {
|
|
|
447036
447038
|
if (hosted)
|
|
447037
447039
|
await hosted.close();
|
|
447038
447040
|
else
|
|
447039
|
-
opened.dispose();
|
|
447041
|
+
await opened.dispose();
|
|
447040
447042
|
}
|
|
447041
447043
|
}, context.sessionId, context.executionMode);
|
|
447042
447044
|
}
|
|
@@ -450564,7 +450566,8 @@ async function runClose(tokens, context) {
|
|
|
450564
450566
|
const effectiveMetadata = metadata;
|
|
450565
450567
|
const runtimeDirty = context.executionMode === "host" && context.sessionPool != null ? context.sessionPool.isDirty(effectiveMetadata.contextId) : false;
|
|
450566
450568
|
const effectiveDirty = effectiveMetadata.dirty || runtimeDirty;
|
|
450567
|
-
|
|
450569
|
+
const collaborationOwnsPersistence = effectiveMetadata.sessionType === "collab" && effectiveMetadata.sourcePath == null;
|
|
450570
|
+
if (effectiveDirty && !mode.discard && !collaborationOwnsPersistence) {
|
|
450568
450571
|
throw new CliError("DIRTY_CLOSE_REQUIRES_DECISION", 'Active document has unsaved changes. Run "superdoc save" first or close with --discard.', {
|
|
450569
450572
|
revision: effectiveMetadata.revision
|
|
450570
450573
|
});
|
|
@@ -451036,7 +451039,7 @@ async function runExecuteCode(tokens, context) {
|
|
|
451036
451039
|
pretty: result.ok ? `execute_code: ok (revision ${updatedMetadata.revision}${mutated ? ", mutated" : ""})` : `execute_code: failed — ${result.error.name}: ${result.error.message}`
|
|
451037
451040
|
};
|
|
451038
451041
|
} finally {
|
|
451039
|
-
openedRuntime.dispose();
|
|
451042
|
+
await openedRuntime.dispose();
|
|
451040
451043
|
}
|
|
451041
451044
|
}, context.sessionId, context.executionMode);
|
|
451042
451045
|
}
|
|
@@ -451512,7 +451515,7 @@ async function runOpen(tokens, context) {
|
|
|
451512
451515
|
} finally {
|
|
451513
451516
|
if (!adoptedToHostPool) {
|
|
451514
451517
|
try {
|
|
451515
|
-
opened?.dispose();
|
|
451518
|
+
await opened?.dispose();
|
|
451516
451519
|
} finally {
|
|
451517
451520
|
await contextOwnership?.release();
|
|
451518
451521
|
}
|
|
@@ -767539,7 +767542,7 @@ var init_host2 = __esm(() => {
|
|
|
767539
767542
|
});
|
|
767540
767543
|
|
|
767541
767544
|
// ../../packages/sdk/langs/node/src/runtime/sdk-version.generated.ts
|
|
767542
|
-
var SDK_VERSION = "2.12.0-next.
|
|
767545
|
+
var SDK_VERSION = "2.12.0-next.27";
|
|
767543
767546
|
|
|
767544
767547
|
// ../../packages/sdk/langs/node/src/runtime/embedded-platform.ts
|
|
767545
767548
|
import { chmodSync, existsSync } from "node:fs";
|
|
@@ -814999,7 +815002,7 @@ async function runPresetDispatchCommand(tokens, context) {
|
|
|
814999
815002
|
pretty: `preset dispatch ${toolName} (revision ${updatedMetadata.revision}${mutated ? ", mutated" : ""})`
|
|
815000
815003
|
};
|
|
815001
815004
|
} finally {
|
|
815002
|
-
openedRuntime.dispose();
|
|
815005
|
+
await openedRuntime.dispose();
|
|
815003
815006
|
}
|
|
815004
815007
|
}, context.sessionId, context.executionMode);
|
|
815005
815008
|
}
|
|
@@ -815062,7 +815065,7 @@ async function runSave(tokens, context) {
|
|
|
815062
815065
|
const synced = await syncCollaborativeSessionSnapshotFromOpened(context.io, metadata, paths, opened);
|
|
815063
815066
|
effectiveMetadata = synced.updatedMetadata;
|
|
815064
815067
|
} finally {
|
|
815065
|
-
opened.dispose();
|
|
815068
|
+
await opened.dispose();
|
|
815066
815069
|
}
|
|
815067
815070
|
}
|
|
815068
815071
|
const resolvedOutPath = mode.outPath ? resolveSourcePathForMetadata(mode.outPath) : undefined;
|
|
@@ -815087,7 +815090,7 @@ async function runSave(tokens, context) {
|
|
|
815087
815090
|
try {
|
|
815088
815091
|
return await opened.exportToPath(outputPath, force, { mode: mode.mode });
|
|
815089
815092
|
} finally {
|
|
815090
|
-
opened.dispose();
|
|
815093
|
+
await opened.dispose();
|
|
815091
815094
|
}
|
|
815092
815095
|
};
|
|
815093
815096
|
const computeReviewPreservingReport = async () => {
|
|
@@ -815099,7 +815102,7 @@ async function runSave(tokens, context) {
|
|
|
815099
815102
|
try {
|
|
815100
815103
|
return await opened.exportReport({ mode: "review-preserving" });
|
|
815101
815104
|
} finally {
|
|
815102
|
-
opened.dispose();
|
|
815105
|
+
await opened.dispose();
|
|
815103
815106
|
}
|
|
815104
815107
|
};
|
|
815105
815108
|
const copyReviewPreservingSessionToPath = async (outputPath, force) => {
|
|
@@ -817079,7 +817082,7 @@ class InMemorySessionPool {
|
|
|
817079
817082
|
await this.localRuntimeSessions.close(sessionId);
|
|
817080
817083
|
return;
|
|
817081
817084
|
}
|
|
817082
|
-
session.opened.dispose();
|
|
817085
|
+
await session.opened.dispose();
|
|
817083
817086
|
} finally {
|
|
817084
817087
|
const releaseContextOwnership = session.releaseContextOwnership;
|
|
817085
817088
|
session.releaseContextOwnership = undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc/cli",
|
|
3
|
-
"version": "0.35.0-next.
|
|
3
|
+
"version": "0.35.0-next.27",
|
|
4
4
|
"description": "Command-line interface for SuperDoc: inspect, convert, and edit .docx files from a terminal or a script.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"fast-glob": "^3.3.3",
|
|
30
30
|
"happy-dom": "^20.3.4",
|
|
31
31
|
"ws": "^8.18.0",
|
|
32
|
-
"superdoc": "2.15.0-next.
|
|
32
|
+
"superdoc": "2.15.0-next.15",
|
|
33
33
|
"y-websocket": "^3.0.0",
|
|
34
34
|
"yjs": "13.6.31"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@hocuspocus/server": "^2.13.6",
|
|
38
|
-
"@superdoc/sdk": "2.12.0-next.
|
|
38
|
+
"@superdoc/sdk": "2.12.0-next.27",
|
|
39
39
|
"@superdoc/document-api": "0.1.0-alpha.0",
|
|
40
|
-
"@superdoc/docx-engine": "0.14.0-next.
|
|
40
|
+
"@superdoc/docx-engine": "0.14.0-next.15",
|
|
41
41
|
"@types/bun": "^1.3.8",
|
|
42
42
|
"@types/node": "22.19.2",
|
|
43
43
|
"@types/ws": "^8.5.13",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
53
|
"optionalDependencies": {
|
|
54
|
-
"@superdoc/cli-darwin-arm64": "0.35.0-next.
|
|
55
|
-
"@superdoc/cli-darwin-x64": "0.35.0-next.
|
|
56
|
-
"@superdoc/cli-linux-x64": "0.35.0-next.
|
|
57
|
-
"@superdoc/cli-linux-arm64": "0.35.0-next.
|
|
58
|
-
"@superdoc/cli-windows-x64": "0.35.0-next.
|
|
54
|
+
"@superdoc/cli-darwin-arm64": "0.35.0-next.27",
|
|
55
|
+
"@superdoc/cli-darwin-x64": "0.35.0-next.27",
|
|
56
|
+
"@superdoc/cli-linux-x64": "0.35.0-next.27",
|
|
57
|
+
"@superdoc/cli-linux-arm64": "0.35.0-next.27",
|
|
58
|
+
"@superdoc/cli-windows-x64": "0.35.0-next.27"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"predev": "node scripts/ensure-superdoc-build.js",
|
|
@@ -74,8 +74,9 @@
|
|
|
74
74
|
"publish:platforms": "node scripts/publish.js --tag latest",
|
|
75
75
|
"publish:platforms:dry": "node scripts/publish.js --tag latest --dry-run",
|
|
76
76
|
"pretest": "node scripts/ensure-superdoc-build.js",
|
|
77
|
-
"test": "pnpm run test:docx-reference-integrity && NODE_ENV=test bun test --path-ignore-patterns='**/sdk-replace-file.e2e.test.ts' && pnpm run test:sdk-replace-file",
|
|
77
|
+
"test": "pnpm run test:docx-reference-integrity && pnpm run test:sdk-collaborative-close && NODE_ENV=test bun test --path-ignore-patterns='**/sdk-collaborative-close.e2e.test.ts' --path-ignore-patterns='**/sdk-replace-file.e2e.test.ts' && pnpm run test:sdk-replace-file",
|
|
78
78
|
"test:docx-reference-integrity": "node --test scripts/docx-reference-integrity.mjs",
|
|
79
|
+
"test:sdk-collaborative-close": "NODE_ENV=test bun test src/__tests__/sdk-collaborative-close.e2e.test.ts",
|
|
79
80
|
"test:sdk-replace-file": "NODE_ENV=test bun test src/__tests__/sdk-replace-file.e2e.test.ts",
|
|
80
81
|
"lint": "pnpm -w exec vp lint apps/cli",
|
|
81
82
|
"lint:fix": "pnpm -w exec vp lint --fix apps/cli",
|