layoutbridge-light 1.0.0 → 1.0.1

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 (35) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/README.de.md +31 -2
  3. package/README.md +31 -3
  4. package/THIRD-PARTY-NOTICES.md +2 -2
  5. package/dist/src/mcp/catalog.js +9 -4
  6. package/dist/src/mcp/content-credentials.js +65 -0
  7. package/dist/src/mcp/dispatch.js +8 -1
  8. package/dist/src/mcp/license/polar-ids.js +1 -1
  9. package/dist/src/mcp/pdf-postprocess.js +798 -0
  10. package/dist/src/mcp/server.js +1 -1
  11. package/dist/src/mcp/target-folder.js +25 -0
  12. package/dist/src/mcp/tools.js +275 -20
  13. package/dist/src/mcp/typography-rules.js +1 -1
  14. package/dist/src/transport/com.js +224 -38
  15. package/dist/src/transport/transport.js +22 -0
  16. package/indesign/commands/25-export.js +258 -11
  17. package/indesign/commands/26-export-image.js +1 -1
  18. package/indesign/commands/31-view.js +100 -0
  19. package/indesign/commands/35-parents.js +44 -24
  20. package/indesign/commands/40-frames.js +35 -0
  21. package/indesign/commands/47-anchored.js +142 -0
  22. package/indesign/commands/50-modify.js +25 -3
  23. package/indesign/commands/60-images.js +28 -2
  24. package/indesign/commands/69-placeholders.js +7 -2
  25. package/indesign/commands/70-text.js +39 -4
  26. package/indesign/commands/75-tables.js +27 -1
  27. package/indesign/commands/78-frame-lines.js +59 -0
  28. package/indesign/commands/79-check-typography.js +143 -4
  29. package/indesign/commands/80-styles.js +105 -10
  30. package/indesign/commands/89-toc-index.js +61 -4
  31. package/indesign/commands/91-epub.js +92 -9
  32. package/indesign/commands/92-accessibility.js +1131 -0
  33. package/indesign/interpreter.js +51 -1
  34. package/package.json +1 -1
  35. package/rules/typography-rules.json +3 -2
@@ -196,7 +196,7 @@ async function setupFromCommandLine() {
196
196
  * nachgewiesen (Vermerk E-67).
197
197
  */
198
198
  function createPlatformTransport() {
199
- return process.platform === 'win32' ? new ComTransport() : new OsascriptTransport();
199
+ return process.platform === 'win32' ? new ComTransport({ dataDirName: PRODUCT.dataDirName }) : new OsascriptTransport();
200
200
  }
201
201
  /** Eine Zeile mit Lizenzbedingungen und Support-Adresse fuer Startmeldung und Protokoll. */
202
202
  export function describeProductTerms() {
@@ -0,0 +1,25 @@
1
+ /**
2
+ * A-68 (9), Sitzung 81: Zielordner fuer export_page_image anlegen. Der
3
+ * Server laeuft auf demselben Rechner wie InDesign (lokaler Prozess), legt
4
+ * den Ordner deshalb selbst an – plattformgleich fuer Mac und Windows, ohne
5
+ * Ordnerobjekte im Skript (UXP kennt kein Folder). Nur auf ausdruecklichen
6
+ * Wunsch (create_folder true).
7
+ */
8
+ import { existsSync, mkdirSync } from 'node:fs';
9
+ import { dirname, isAbsolute } from 'node:path';
10
+ /** true, wenn der Ordner neu angelegt wurde; false, wenn er schon da war, der Pfad nicht absolut ist oder das Anlegen scheiterte (dann meldet der Export io_error). */
11
+ export function createTargetFolder(path) {
12
+ if (!isAbsolute(path))
13
+ return false;
14
+ const folder = dirname(path);
15
+ if (existsSync(folder))
16
+ return false;
17
+ try {
18
+ mkdirSync(folder, { recursive: true });
19
+ return true;
20
+ }
21
+ catch {
22
+ return false;
23
+ }
24
+ }
25
+ //# sourceMappingURL=target-folder.js.map