gutterpress 0.10.2-alpha.2 → 0.10.2-beta.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 (27) hide show
  1. package/LICENSE +373 -0
  2. package/dist/api/index.js +2 -2
  3. package/dist/{audit-qz3np6k3.js → audit-rsn7vs8k.js} +4 -4
  4. package/dist/{build-41eds5kk.js → build-h7fhn60x.js} +4 -4
  5. package/dist/{cli-c2yvktan.js → cli-2h1s42gy.js} +1 -1
  6. package/dist/{cli-w3spkryk.js → cli-9jzff2s3.js} +4 -4
  7. package/dist/{cli-wef7qh62.js → cli-wbevw8y3.js} +1 -1
  8. package/dist/{cli-daahjr6z.js → cli-z8kd8y5n.js} +2 -2
  9. package/dist/cli.js +14 -14
  10. package/dist/{doctor-dqmz9wr7.js → doctor-7rjadg5p.js} +2 -2
  11. package/dist/{engine-36jts441.js → engine-a8qa7wr5.js} +1 -1
  12. package/dist/{engine-qg5tdaqv.js → engine-gf90g9vk.js} +2 -2
  13. package/dist/{gutterpress-viewer-mfeccbys.js → gutterpress-viewer-h031snh8.js} +0 -12
  14. package/dist/{index-5vfsbjwz.js → index-2wsp00yj.js} +4 -4
  15. package/dist/{index-wbm6p5j3.js → index-d1es8g3a.js} +1 -1
  16. package/dist/{index-my3v298z.js → index-s69b3t18.js} +1 -1
  17. package/dist/index.js +3 -3
  18. package/dist/lib/markdown/source-range.d.ts +0 -1
  19. package/dist/lib/remote-auth/converge-merge.d.ts +0 -2
  20. package/dist/{lint-67xx8zms.js → lint-04zxd04k.js} +4 -4
  21. package/dist/{new-a4052xsg.js → new-k20tx0wf.js} +4 -4
  22. package/dist/{plugin-n4b7b0nx.js → plugin-kqzqy7zm.js} +4 -4
  23. package/dist/{preflight-7201sv7c.js → preflight-r7n19a3g.js} +4 -4
  24. package/dist/{preview-ez7yfe8p.js → preview-r8gvf2cz.js} +4 -4
  25. package/dist/{publish-thxa0cz7.js → publish-h6kk9sr6.js} +4 -4
  26. package/dist/{validate-0tbsdxz2.js → validate-yvbxdtzw.js} +4 -4
  27. package/package.json +2 -2
package/LICENSE ADDED
@@ -0,0 +1,373 @@
1
+ Mozilla Public License Version 2.0
2
+ ==================================
3
+
4
+ 1. Definitions
5
+ --------------
6
+
7
+ 1.1. "Contributor"
8
+ means each individual or legal entity that creates, contributes to
9
+ the creation of, or owns Covered Software.
10
+
11
+ 1.2. "Contributor Version"
12
+ means the combination of the Contributions of others (if any) used
13
+ by a Contributor and that particular Contributor's Contribution.
14
+
15
+ 1.3. "Contribution"
16
+ means Covered Software of a particular Contributor.
17
+
18
+ 1.4. "Covered Software"
19
+ means Source Code Form to which the initial Contributor has attached
20
+ the notice in Exhibit A, the Executable Form of such Source Code
21
+ Form, and Modifications of such Source Code Form, in each case
22
+ including portions thereof.
23
+
24
+ 1.5. "Incompatible With Secondary Licenses"
25
+ means
26
+
27
+ (a) that the initial Contributor has attached the notice described
28
+ in Exhibit B to the Covered Software; or
29
+
30
+ (b) that the Covered Software was made available under the terms of
31
+ version 1.1 or earlier of the License, but not also under the
32
+ terms of a Secondary License.
33
+
34
+ 1.6. "Executable Form"
35
+ means any form of the work other than Source Code Form.
36
+
37
+ 1.7. "Larger Work"
38
+ means a work that combines Covered Software with other material, in
39
+ a separate file or files, that is not Covered Software.
40
+
41
+ 1.8. "License"
42
+ means this document.
43
+
44
+ 1.9. "Licensable"
45
+ means having the right to grant, to the maximum extent possible,
46
+ whether at the time of the initial grant or subsequently, any and
47
+ all of the rights conveyed by this License.
48
+
49
+ 1.10. "Modifications"
50
+ means any of the following:
51
+
52
+ (a) any file in Source Code Form that results from an addition to,
53
+ deletion from, or modification of the contents of Covered
54
+ Software; or
55
+
56
+ (b) any new file in Source Code Form that contains any Covered
57
+ Software.
58
+
59
+ 1.11. "Patent Claims" of a Contributor
60
+ means any patent claim(s), including without limitation, method,
61
+ process, and apparatus claims, in any patent Licensable by such
62
+ Contributor that would be infringed, but for the grant of the
63
+ License, by the making, using, selling, offering for sale, having
64
+ made, importation, or transfer of either its Contributions or its
65
+ Contributor Version.
66
+
67
+ 1.12. "Secondary License"
68
+ means either the GNU General Public License, Version 2.0, the GNU
69
+ Lesser General Public License, Version 2.1, the GNU Affero General
70
+ Public License, Version 3.0, or any later versions of those
71
+ licenses.
72
+
73
+ 1.13. "Source Code Form"
74
+ means the form of the work preferred for making modifications.
75
+
76
+ 1.14. "You" (or "Your")
77
+ means an individual or a legal entity exercising rights under this
78
+ License. For legal entities, "You" includes any entity that
79
+ controls, is controlled by, or is under common control with You. For
80
+ purposes of this definition, "control" means (a) the power, direct
81
+ or indirect, to cause the direction or management of such entity,
82
+ whether by contract or otherwise, or (b) ownership of more than
83
+ fifty percent (50%) of the outstanding shares or voting securities
84
+ entitled to vote for the election of directors of such entity.
85
+
86
+ 2. License Grants and Conditions
87
+ ---------------------------------
88
+
89
+ 2.1. Grants
90
+
91
+ Each Contributor hereby grants You a world-wide, royalty-free,
92
+ non-exclusive license:
93
+
94
+ (a) under intellectual property rights (other than patent or trademark)
95
+ Licensable by such Contributor to use, reproduce, make available,
96
+ prepare derivative works of, display, run, copy, sell, distribute,
97
+ and otherwise exploit its Contributions, either on an unmodified
98
+ basis, with Modifications, or as part of a Larger Work; and
99
+
100
+ (b) under Patent Claims of such Contributor to make, use, sell, offer
101
+ for sale, have made, import, and otherwise transfer either its
102
+ Contributions or its Contributor Version.
103
+
104
+ 2.2. Effective Date
105
+
106
+ The licenses granted in Section 2.1 with respect to any Contribution
107
+ become effective for each Contribution on the date the Contributor first
108
+ distributes such Contribution.
109
+
110
+ 2.3. Limitations on Grant Scope
111
+
112
+ The licenses granted in this Section 2 are the only rights granted
113
+ under this License. No additional rights or privileges are granted.
114
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
115
+ Contributor:
116
+
117
+ (a) for any code that a Contributor has removed from Covered Software;
118
+ or
119
+
120
+ (b) for infringements caused by: (i) Your and any other third party's
121
+ modifications of Covered Software, or (ii) the combination of its
122
+ Contributions with other software (except as part of its Contributor
123
+ Version); or
124
+
125
+ (c) under Patent Claims infringed by Covered Software in the absence of
126
+ its Contributions.
127
+
128
+ This License does not grant any rights in the trademarks, service marks,
129
+ or logos of any Contributor (except as may be necessary to comply with
130
+ the notice requirements in Section 3.4).
131
+
132
+ 2.4. Subsequent Licenses
133
+
134
+ No Contributor makes additional grants as a result of Your choice to
135
+ distribute the Covered Software under a subsequent version of this
136
+ License (see Section 10.2) or under the terms of a Secondary License (if
137
+ permitted under the terms of Section 3.3).
138
+
139
+ 2.5. Representation
140
+
141
+ Each Contributor represents that the Contributor believes its
142
+ Contributions are its original creation(s) or it has sufficient rights
143
+ to grant the rights to its Contributions conveyed by this License.
144
+
145
+ 2.6. Fair Use
146
+
147
+ This License is not intended to limit any rights You have under
148
+ applicable copyright doctrines of fair use, fair dealing, or other
149
+ equivalents.
150
+
151
+ 2.7. Conditions
152
+
153
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
154
+ in Section 2.1.
155
+
156
+ 3. Responsibilities
157
+ -------------------
158
+
159
+ 3.1. Distribution of Source Form
160
+
161
+ All distribution of Covered Software in Source Code Form, including any
162
+ Modifications that You create or to which You contribute, must be under
163
+ the terms of this License. You must inform recipients that the Source
164
+ Code Form of the Covered Software is governed by the terms of this
165
+ License, and how they can obtain a copy of this License. You may not
166
+ attempt to alter or restrict the recipients' rights in the Source Code
167
+ Form.
168
+
169
+ 3.2. Distribution of Executable Form
170
+
171
+ If You distribute Covered Software in Executable Form then:
172
+
173
+ (a) such Covered Software must also be made available in Source Code
174
+ Form, as described in Section 3.1, and You must inform recipients of
175
+ the Executable Form how they can obtain a copy of such Source Code
176
+ Form by reasonable means in a timely manner, at a charge no more
177
+ than the cost of distribution to the recipient; and
178
+
179
+ (b) You may distribute such Executable Form under the terms of this
180
+ License, or sublicense it under different terms, provided that the
181
+ license for the Executable Form does not attempt to limit or alter
182
+ the recipients' rights in the Source Code Form under this License.
183
+
184
+ 3.3. Distribution of a Larger Work
185
+
186
+ You may create and distribute a Larger Work under terms of Your choice,
187
+ provided that You also comply with the requirements of this License for
188
+ the Covered Software. If the Larger Work is a Combination, the terms of
189
+ the license applicable to the Larger Work shall not attempt to limit the
190
+ rights of the recipients of the Covered Software portions. You may
191
+ include the following notice as part of the Covered Software:
192
+
193
+ This Source Code Form is subject to the terms of the Mozilla Public
194
+ License, v. 2.0. If a copy of the MPL was not distributed with this
195
+ file, You can obtain one at https://mozilla.org/MPL/2.0/.
196
+
197
+ 3.4. Notices
198
+
199
+ You may not remove or alter the substance of any license notices
200
+ (including copyright notices, patent notices, disclaimers of warranty,
201
+ or limitations of liability) contained within the Source Code Form of
202
+ the Covered Software, except that You may alter any license notices to
203
+ the extent required to remedy known factual inaccuracies.
204
+
205
+ 3.5. Application of Additional Terms
206
+
207
+ You may choose to offer, and to charge a fee for, warranty, support,
208
+ indemnity or liability obligations to one or more recipients of Covered
209
+ Software. However, You may do so only on Your own behalf, and not on
210
+ behalf of any Contributor. You must make it absolutely clear that any
211
+ such warranty, support, indemnity, or liability obligation is offered by
212
+ You alone, and You hereby agree to indemnify every Contributor for any
213
+ liability incurred by such Contributor as a result of warranty, support,
214
+ indemnity or liability terms You offer. You may include additional
215
+ disclaimers of warranty and limitations of liability specific to any
216
+ jurisdiction.
217
+
218
+ 4. Inability to Comply Due to Statute or Regulation
219
+ ---------------------------------------------------
220
+
221
+ If it is impossible for You to comply with any of the terms of this
222
+ License with respect to some or all of the Covered Software due to
223
+ statute, judicial order, or regulation then You must: (a) comply with
224
+ the terms of this License to the maximum extent possible; and (b)
225
+ describe the limitations and the part of the Covered Software to which
226
+ they apply. Such description must be placed in a text file included with
227
+ all distributions of the Covered Software under this License. Except to
228
+ the extent prohibited by statute or regulation, such description must be
229
+ sufficiently detailed for a recipient of ordinary skill to be able to
230
+ understand it.
231
+
232
+ 5. Termination
233
+ --------------
234
+
235
+ 5.1. The rights granted under this License will terminate automatically
236
+ if You fail to comply with any of its terms. However, if You become
237
+ compliant, then the rights granted under this License from a particular
238
+ Contributor are reinstated (a) provisionally, unless and until such
239
+ Contributor explicitly and finally terminates Your grants, and (b) on an
240
+ ongoing basis, if such Contributor fails to notify You of the
241
+ non-compliance by some reasonable means prior to 60 days after You have
242
+ come back into compliance. Moreover, Your grants from a particular
243
+ Contributor are reinstated on an ongoing basis if such Contributor
244
+ notifies You of the non-compliance by some reasonable means, this is the
245
+ first time You have received notice of non-compliance with this License
246
+ from such Contributor, and You become compliant prior to 30 days after
247
+ Your receipt of the notice.
248
+
249
+ 5.2. If You initiate litigation against any entity by asserting a patent
250
+ infringement claim (excluding declaratory judgment actions,
251
+ counter-claims, and cross-claims) alleging that a Contributor Version
252
+ directly or indirectly infringes any patent, then the rights granted to
253
+ You by any and all Contributors for the Covered Software under Section
254
+ 2.1 of this License shall terminate.
255
+
256
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
257
+ end user license agreements (excluding distributors and resellers) which
258
+ have been validly granted by You or Your distributors under this License
259
+ prior to termination shall survive termination.
260
+
261
+ ************************************************************************
262
+ * *
263
+ * 6. Disclaimer of Warranty *
264
+ * ------------------------- *
265
+ * *
266
+ * Covered Software is provided under this License on an "as is" *
267
+ * basis, without warranty of any kind, either expressed, implied, or *
268
+ * statutory, including, without limitation, warranties that the *
269
+ * Covered Software is free of defects, merchantable, fit for a *
270
+ * particular purpose or non-infringing. The entire risk as to the *
271
+ * quality and performance of the Covered Software is with You. *
272
+ * Should any Covered Software prove defective in any respect, You *
273
+ * (not any Contributor) assume the cost of any necessary servicing, *
274
+ * repair, or correction. This disclaimer of warranty constitutes an *
275
+ * essential part of this License. No use of any Covered Software is *
276
+ * authorized under this License except under this disclaimer. *
277
+ * *
278
+ ************************************************************************
279
+
280
+ ************************************************************************
281
+ * *
282
+ * 7. Limitation of Liability *
283
+ * -------------------------- *
284
+ * *
285
+ * Under no circumstances and under no legal theory, whether tort *
286
+ * (including negligence), contract, or otherwise, shall any *
287
+ * Contributor, or anyone who distributes Covered Software as *
288
+ * permitted above, be liable to You for any direct, indirect, *
289
+ * special, incidental, or consequential damages of any character *
290
+ * including, without limitation, damages for lost profits, loss of *
291
+ * goodwill, work stoppage, computer failure or malfunction, or any *
292
+ * and all other commercial damages or losses, even if such party *
293
+ * shall have been advised of the possibility of such damages. This *
294
+ * limitation of liability shall not apply to liability for death or *
295
+ * personal injury resulting from such party's negligence to the *
296
+ * extent applicable law prohibits such limitation. Some *
297
+ * jurisdictions do not allow the exclusion or limitation of *
298
+ * incidental or consequential damages, so this exclusion and *
299
+ * limitation may not apply to You. *
300
+ * *
301
+ ************************************************************************
302
+
303
+ 8. Litigation
304
+ -------------
305
+
306
+ Any litigation relating to this License may be brought only in the
307
+ courts of a jurisdiction where the Contributor maintains its principal
308
+ place of business and such litigation shall be governed by laws of that
309
+ jurisdiction, without reference to its conflict-of-law provisions.
310
+ Nothing in this Section shall prevent a party's ability to bring
311
+ cross-claims or counter-claims.
312
+
313
+ 9. Miscellaneous
314
+ ----------------
315
+
316
+ This License represents the complete agreement concerning the subject
317
+ matter hereof. If any provision of this License is held to be
318
+ unenforceable, such provision shall be reformed only to the extent
319
+ necessary to make it enforceable. Any law or regulation which provides
320
+ that the language of a contract shall be construed against the drafter
321
+ shall not be used to construe this License against a Contributor.
322
+
323
+ 10. Versions of the License
324
+ ---------------------------
325
+
326
+ 10.1. New Versions
327
+
328
+ Mozilla Foundation is the license steward. Except as provided in Section
329
+ 10.3, no one other than the license steward has the right to modify or
330
+ publish new versions of this License. Each version will be given a
331
+ distinguishing version number.
332
+
333
+ 10.2. Effect of New Versions
334
+
335
+ You may distribute the Covered Software under the terms of the version
336
+ of the License under which You originally received the Covered Software,
337
+ or under the terms of any subsequent version published by the license
338
+ steward.
339
+
340
+ 10.3. Modified Versions
341
+
342
+ If you create software not governed by this License, and you want to
343
+ create a new license for such software, you may create and distribute a
344
+ modified version of this License if you rename the license and remove
345
+ any references to the name of the license steward (except to note that
346
+ such modified license differs from this License).
347
+
348
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary
349
+ Licenses
350
+
351
+ If You choose to distribute Source Code Form that is Incompatible With
352
+ Secondary Licenses under the terms of this version of the License, the
353
+ notice described in Exhibit B of this License must be attached.
354
+
355
+ Exhibit A - Source Code Form License Notice
356
+ -------------------------------------------
357
+
358
+ This Source Code Form is subject to the terms of the Mozilla Public
359
+ License, v. 2.0. If a copy of the MPL was not distributed with this
360
+ file, You can obtain one at https://mozilla.org/MPL/2.0/.
361
+
362
+ If it is not possible or desirable to put the notice in a particular
363
+ file, then You may include the notice in a location (such as a LICENSE
364
+ file in a relevant directory) where a recipient would be likely to look
365
+ for such a notice.
366
+
367
+ You may add additional accurate notices of copyright ownership.
368
+
369
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
370
+ ---------------------------------------------------------
371
+
372
+ This Source Code Form is "Incompatible With Secondary Licenses", as
373
+ defined by the Mozilla Public License, v. 2.0.
package/dist/api/index.js CHANGED
@@ -95,12 +95,12 @@ import {
95
95
  syncProject,
96
96
  testRemoteAccess,
97
97
  validateProjectPlugins
98
- } from "../index-5vfsbjwz.js";
98
+ } from "../index-2wsp00yj.js";
99
99
  import {
100
100
  BuildError,
101
101
  DEFAULT_PRINT_OPTS,
102
102
  readyProbeExpr
103
- } from "../index-wbm6p5j3.js";
103
+ } from "../index-d1es8g3a.js";
104
104
  import {
105
105
  AUTO_SNAPSHOT_MESSAGE,
106
106
  HISTORY_PAGE_LIMIT,
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  executeAndReport
3
- } from "./cli-w3spkryk.js";
3
+ } from "./cli-9jzff2s3.js";
4
4
  import {
5
5
  log
6
- } from "./cli-wef7qh62.js";
6
+ } from "./cli-wbevw8y3.js";
7
7
  import {
8
8
  UsageError,
9
9
  rejectExtraPositionals,
10
10
  rejectUnknownFlags
11
- } from "./cli-daahjr6z.js";
12
- import"./cli-c2yvktan.js";
11
+ } from "./cli-z8kd8y5n.js";
12
+ import"./cli-2h1s42gy.js";
13
13
  import"./cli-c41yr7he.js";
14
14
  import {
15
15
  EXIT_CODES
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  runBuild,
3
3
  splitOutPath
4
- } from "./cli-w3spkryk.js";
4
+ } from "./cli-9jzff2s3.js";
5
5
  import {
6
6
  log
7
- } from "./cli-wef7qh62.js";
7
+ } from "./cli-wbevw8y3.js";
8
8
  import {
9
9
  UsageError,
10
10
  parseEngine,
@@ -12,8 +12,8 @@ import {
12
12
  parsePdfxFlavor,
13
13
  rejectExtraPositionals,
14
14
  rejectUnknownFlags
15
- } from "./cli-daahjr6z.js";
16
- import"./cli-c2yvktan.js";
15
+ } from "./cli-z8kd8y5n.js";
16
+ import"./cli-2h1s42gy.js";
17
17
  import"./cli-c41yr7he.js";
18
18
  import {
19
19
  BuildError
@@ -1445,7 +1445,7 @@ var preview_shell_default = "./preview-shell-gqnc5xxe.js";
1445
1445
  var CGATS21_CRPC1_default = "./CGATS21_CRPC1-g0e3k7kr.icc";
1446
1446
 
1447
1447
  // src/assets/engine/gutterpress-viewer.js
1448
- var gutterpress_viewer_default = "./gutterpress-viewer-mfeccbys.js";
1448
+ var gutterpress_viewer_default = "./gutterpress-viewer-h031snh8.js";
1449
1449
 
1450
1450
  // src/assets/engine/gutterpress-agent.js
1451
1451
  var gutterpress_agent_default = "./gutterpress-agent-cazqstr1.js";
@@ -13,12 +13,12 @@ import {
13
13
  stampCreator,
14
14
  stripAnnotations,
15
15
  warn
16
- } from "./cli-wef7qh62.js";
16
+ } from "./cli-wbevw8y3.js";
17
17
  import {
18
18
  DEBOUNCE,
19
19
  UsageError,
20
20
  resolvePort
21
- } from "./cli-daahjr6z.js";
21
+ } from "./cli-z8kd8y5n.js";
22
22
  import {
23
23
  MARGIN_BOX_IGNORED_PROPERTIES,
24
24
  RENDER_TIMEOUT_MS,
@@ -27,7 +27,7 @@ import {
27
27
  getAssetPath,
28
28
  getBrowser,
29
29
  prewarmBrowser
30
- } from "./cli-c2yvktan.js";
30
+ } from "./cli-2h1s42gy.js";
31
31
  import {
32
32
  INSTALL_HINTS,
33
33
  execCapture,
@@ -7538,7 +7538,7 @@ class PdfOutput {
7538
7538
  const rawPdf = pdfxMode ? path8.join(stage, "raw.pdf") : path8.resolve(pdfFile);
7539
7539
  await fsp2.mkdir(path8.dirname(path8.resolve(pdfFile)), { recursive: true });
7540
7540
  log.info("Rendering HTML to PDF via the Gutterpress engine (native Chromium pagination)");
7541
- const { buildNativePdf } = await import("./engine-36jts441.js");
7541
+ const { buildNativePdf } = await import("./engine-a8qa7wr5.js");
7542
7542
  const engineDiagnostics = await buildNativePdf(htmlFile, rawPdf, {
7543
7543
  title: config.title,
7544
7544
  author: config.authors.length > 0 ? config.authors.join(", ") : undefined,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "./cli-daahjr6z.js";
3
+ } from "./cli-z8kd8y5n.js";
4
4
  import {
5
5
  execCapture,
6
6
  findTool,
@@ -4,7 +4,7 @@ import {
4
4
  // package.json
5
5
  var package_default = {
6
6
  name: "gutterpress",
7
- version: "0.10.2-alpha.2",
7
+ version: "0.10.2-beta.1",
8
8
  description: "Markdown-to-PDF converter for professional print layout using a native Chromium print engine and Ghostscript.",
9
9
  author: "itlackey",
10
10
  license: "MPL-2.0",
@@ -94,7 +94,7 @@ var package_default = {
94
94
  yaml: "^2.8.2"
95
95
  },
96
96
  devDependencies: {
97
- "@types/bun": "latest",
97
+ "@types/bun": "1.3.14",
98
98
  "@types/markdown-it": "^14.1.2",
99
99
  "@types/node": "^22.0.0",
100
100
  "@types/semver": "^7.7.1",
package/dist/cli.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  UsageError,
7
7
  package_default,
8
8
  rejectUnknownFlags
9
- } from "./cli-daahjr6z.js";
9
+ } from "./cli-z8kd8y5n.js";
10
10
  import {
11
11
  EXIT_CODES
12
12
  } from "./cli-46ycxe6r.js";
@@ -18,16 +18,16 @@ import {
18
18
  import { defineCommand, parseArgs, runMain } from "citty";
19
19
  import { statSync } from "node:fs";
20
20
  var SUBCOMMANDS = {
21
- new: () => import("./new-a4052xsg.js").then((m) => m.default),
22
- preview: () => import("./preview-ez7yfe8p.js").then((m) => m.default),
23
- build: () => import("./build-41eds5kk.js").then((m) => m.default),
24
- publish: () => import("./publish-thxa0cz7.js").then((m) => m.default),
25
- lint: () => import("./lint-67xx8zms.js").then((m) => m.default),
26
- validate: () => import("./validate-0tbsdxz2.js").then((m) => m.default),
27
- audit: () => import("./audit-qz3np6k3.js").then((m) => m.default),
28
- preflight: () => import("./preflight-7201sv7c.js").then((m) => m.default),
29
- doctor: () => import("./doctor-dqmz9wr7.js").then((m) => m.default),
30
- plugin: () => import("./plugin-n4b7b0nx.js").then((m) => m.default)
21
+ new: () => import("./new-k20tx0wf.js").then((m) => m.default),
22
+ preview: () => import("./preview-r8gvf2cz.js").then((m) => m.default),
23
+ build: () => import("./build-h7fhn60x.js").then((m) => m.default),
24
+ publish: () => import("./publish-h6kk9sr6.js").then((m) => m.default),
25
+ lint: () => import("./lint-04zxd04k.js").then((m) => m.default),
26
+ validate: () => import("./validate-yvbxdtzw.js").then((m) => m.default),
27
+ audit: () => import("./audit-rsn7vs8k.js").then((m) => m.default),
28
+ preflight: () => import("./preflight-r7n19a3g.js").then((m) => m.default),
29
+ doctor: () => import("./doctor-7rjadg5p.js").then((m) => m.default),
30
+ plugin: () => import("./plugin-kqzqy7zm.js").then((m) => m.default)
31
31
  };
32
32
  var VERSION = package_default.version;
33
33
  var main = defineCommand({
@@ -52,7 +52,7 @@ async function preflightRequiredInvocations(rawArgs) {
52
52
  const [command, ...commandArgs] = rawArgs;
53
53
  try {
54
54
  if (command === "new") {
55
- const { newArgs } = await import("./new-a4052xsg.js");
55
+ const { newArgs } = await import("./new-k20tx0wf.js");
56
56
  rejectUnknownFlags(commandArgs, newArgs, "new");
57
57
  const parsed2 = parseArgs(commandArgs, {
58
58
  ...newArgs,
@@ -64,7 +64,7 @@ async function preflightRequiredInvocations(rawArgs) {
64
64
  return;
65
65
  }
66
66
  if (command === "preflight") {
67
- const { preflightArgs } = await import("./preflight-7201sv7c.js");
67
+ const { preflightArgs } = await import("./preflight-r7n19a3g.js");
68
68
  rejectUnknownFlags(commandArgs, preflightArgs, "preflight");
69
69
  const parsed2 = parseArgs(commandArgs, {
70
70
  ...preflightArgs,
@@ -88,7 +88,7 @@ async function preflightRequiredInvocations(rawArgs) {
88
88
  if (subcommand !== "add") {
89
89
  throw new UsageError(`gutterpress plugin: unknown command "${subcommand}"`);
90
90
  }
91
- const { pluginAddArgs } = await import("./plugin-n4b7b0nx.js");
91
+ const { pluginAddArgs } = await import("./plugin-kqzqy7zm.js");
92
92
  rejectUnknownFlags(subcommandArgs, pluginAddArgs, "plugin add");
93
93
  const parsed = parseArgs(subcommandArgs, {
94
94
  ...pluginAddArgs,
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  getSystemDiagnostics,
3
3
  log
4
- } from "./cli-wef7qh62.js";
4
+ } from "./cli-wbevw8y3.js";
5
5
  import {
6
6
  UsageError,
7
7
  rejectExtraPositionals,
8
8
  rejectUnknownFlags
9
- } from "./cli-daahjr6z.js";
9
+ } from "./cli-z8kd8y5n.js";
10
10
  import"./cli-c41yr7he.js";
11
11
  import"./cli-46ycxe6r.js";
12
12
  import"./cli-37x76zdn.js";
@@ -4,7 +4,7 @@ import {
4
4
  build,
5
5
  connectChromium,
6
6
  getBrowser
7
- } from "./cli-c2yvktan.js";
7
+ } from "./cli-2h1s42gy.js";
8
8
  import"./cli-c41yr7he.js";
9
9
  import {
10
10
  BuildError
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  build
3
- } from "./index-my3v298z.js";
3
+ } from "./index-s69b3t18.js";
4
4
  import {
5
5
  BuildError,
6
6
  RENDER_TIMEOUT_MS,
7
7
  assertMilestone,
8
8
  connectChromium,
9
9
  getBrowser
10
- } from "./index-wbm6p5j3.js";
10
+ } from "./index-d1es8g3a.js";
11
11
  import"./index-37x76zdn.js";
12
12
 
13
13
  // src/lib/engine.ts
@@ -1092,8 +1092,6 @@
1092
1092
  }
1093
1093
  sites.sort((a, b) => a.el.compareDocumentPosition(b.el) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1);
1094
1094
  for (const { el, prop } of sites) {
1095
- if (prop === "break-before" && el.style.breakBefore === "auto")
1096
- continue;
1097
1095
  const strip = el.closest(".gp-strip");
1098
1096
  if (!strip)
1099
1097
  continue;
@@ -1227,14 +1225,6 @@
1227
1225
  pushRun(runs, undefined, trailing);
1228
1226
  return runs;
1229
1227
  }
1230
- var FORCED_BREAK = /^(column|page|left|right|recto|verso|always)$/;
1231
- function clearLeadingForcedBreaks(strip) {
1232
- for (let el = strip.firstElementChild;el; el = el.firstElementChild) {
1233
- const cs = getComputedStyle(el);
1234
- if (FORCED_BREAK.test(cs.breakBefore))
1235
- el.style.breakBefore = "auto";
1236
- }
1237
- }
1238
1228
  function stabilizeFullHeightPageRoots(model, strips) {
1239
1229
  let stabilized = 0;
1240
1230
  for (const strip of strips) {
@@ -1446,8 +1436,6 @@
1446
1436
  offset: 0
1447
1437
  });
1448
1438
  }
1449
- for (const s of strips)
1450
- clearLeadingForcedBreaks(s.el);
1451
1439
  return strips;
1452
1440
  }
1453
1441
  function compensateRepeatedHeaders(strips, maxPasses = 24) {
@@ -17,7 +17,7 @@ import {
17
17
  resolveChromiumExecutable,
18
18
  run,
19
19
  spawnCapture
20
- } from "./index-wbm6p5j3.js";
20
+ } from "./index-d1es8g3a.js";
21
21
  import {
22
22
  gitFs,
23
23
  gitScopeFor,
@@ -3978,7 +3978,7 @@ import git from "isomorphic-git";
3978
3978
  // package.json
3979
3979
  var package_default = {
3980
3980
  name: "gutterpress",
3981
- version: "0.10.2-alpha.2",
3981
+ version: "0.10.2-beta.1",
3982
3982
  description: "Markdown-to-PDF converter for professional print layout using a native Chromium print engine and Ghostscript.",
3983
3983
  author: "itlackey",
3984
3984
  license: "MPL-2.0",
@@ -4068,7 +4068,7 @@ var package_default = {
4068
4068
  yaml: "^2.8.2"
4069
4069
  },
4070
4070
  devDependencies: {
4071
- "@types/bun": "latest",
4071
+ "@types/bun": "1.3.14",
4072
4072
  "@types/markdown-it": "^14.1.2",
4073
4073
  "@types/node": "^22.0.0",
4074
4074
  "@types/semver": "^7.7.1",
@@ -8033,7 +8033,7 @@ class PdfOutput {
8033
8033
  const rawPdf = pdfxMode ? path8.join(stage, "raw.pdf") : path8.resolve(pdfFile);
8034
8034
  await fsp2.mkdir(path8.dirname(path8.resolve(pdfFile)), { recursive: true });
8035
8035
  log.info("Rendering HTML to PDF via the Gutterpress engine (native Chromium pagination)");
8036
- const { buildNativePdf } = await import("./engine-qg5tdaqv.js");
8036
+ const { buildNativePdf } = await import("./engine-gf90g9vk.js");
8037
8037
  const engineDiagnostics = await buildNativePdf(htmlFile, rawPdf, {
8038
8038
  title: config.title,
8039
8039
  author: config.authors.length > 0 ? config.authors.join(", ") : undefined,
@@ -608,7 +608,7 @@ var preview_shell_default = "./preview-shell-gqnc5xxe.js";
608
608
  var CGATS21_CRPC1_default = "./CGATS21_CRPC1-g0e3k7kr.icc";
609
609
 
610
610
  // src/assets/engine/gutterpress-viewer.js
611
- var gutterpress_viewer_default = "./gutterpress-viewer-mfeccbys.js";
611
+ var gutterpress_viewer_default = "./gutterpress-viewer-h031snh8.js";
612
612
 
613
613
  // src/assets/engine/gutterpress-agent.js
614
614
  var gutterpress_agent_default = "./gutterpress-agent-cazqstr1.js";
@@ -4,7 +4,7 @@ import {
4
4
  launchChromium,
5
5
  marginBoxAlign,
6
6
  marginBoxRectPt
7
- } from "./index-wbm6p5j3.js";
7
+ } from "./index-d1es8g3a.js";
8
8
 
9
9
  // src/engine/compiler/build.ts
10
10
  import { readFile } from "node:fs/promises";
package/dist/index.js CHANGED
@@ -113,15 +113,15 @@ import {
113
113
  syncProject,
114
114
  testRemoteAccess,
115
115
  validateProjectPlugins
116
- } from "./index-5vfsbjwz.js";
116
+ } from "./index-2wsp00yj.js";
117
117
  import {
118
118
  BUILD_DIAGNOSTIC_CODES
119
- } from "./index-my3v298z.js";
119
+ } from "./index-s69b3t18.js";
120
120
  import {
121
121
  BuildError,
122
122
  DEFAULT_PRINT_OPTS,
123
123
  readyProbeExpr
124
- } from "./index-wbm6p5j3.js";
124
+ } from "./index-d1es8g3a.js";
125
125
  import {
126
126
  AUTO_SNAPSHOT_MESSAGE,
127
127
  HISTORY_PAGE_LIMIT,
@@ -58,4 +58,3 @@ export declare const SOURCE_RANGE_ATTR = "data-source-range";
58
58
  export declare const SOURCE_CHAPTER_ATTR = "data-chapter-src";
59
59
  /** The core rule itself — registered via `md.core.ruler.push("source_range", sourceRangeRule)` in renderer.ts. */
60
60
  export declare const sourceRangeRule: RuleCore;
61
- export default sourceRangeRule;
@@ -1,5 +1,3 @@
1
- import { onlineSiblingPath, isOnlineSibling } from "./sync-messages.ts";
2
- export { onlineSiblingPath, isOnlineSibling };
3
1
  import type { GitCache, KeptBothFile } from "./sync-types.ts";
4
2
  export type { KeptBothFile };
5
3
  /** Type guard exposing MergeConflictError's per-file payload. */
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  MANIFEST_FILENAMES,
3
3
  runLint
4
- } from "./cli-w3spkryk.js";
4
+ } from "./cli-9jzff2s3.js";
5
5
  import {
6
6
  log
7
- } from "./cli-wef7qh62.js";
7
+ } from "./cli-wbevw8y3.js";
8
8
  import {
9
9
  UsageError,
10
10
  rejectExtraPositionals,
11
11
  rejectUnknownFlags
12
- } from "./cli-daahjr6z.js";
13
- import"./cli-c2yvktan.js";
12
+ } from "./cli-z8kd8y5n.js";
13
+ import"./cli-2h1s42gy.js";
14
14
  import"./cli-c41yr7he.js";
15
15
  import {
16
16
  EXIT_CODES
@@ -5,16 +5,16 @@ import {
5
5
  TARGETS,
6
6
  TARGET_IDS,
7
7
  scaffoldProject
8
- } from "./cli-w3spkryk.js";
8
+ } from "./cli-9jzff2s3.js";
9
9
  import {
10
10
  resolveGhostscript
11
- } from "./cli-wef7qh62.js";
11
+ } from "./cli-wbevw8y3.js";
12
12
  import {
13
13
  UsageError,
14
14
  rejectExtraPositionals,
15
15
  rejectUnknownFlags
16
- } from "./cli-daahjr6z.js";
17
- import"./cli-c2yvktan.js";
16
+ } from "./cli-z8kd8y5n.js";
17
+ import"./cli-2h1s42gy.js";
18
18
  import {
19
19
  isToolAvailable
20
20
  } from "./cli-c41yr7he.js";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  addNpmPlugin,
3
3
  parseNpmPluginSpec
4
- } from "./cli-w3spkryk.js";
5
- import"./cli-wef7qh62.js";
4
+ } from "./cli-9jzff2s3.js";
5
+ import"./cli-wbevw8y3.js";
6
6
  import {
7
7
  UsageError,
8
8
  rejectExtraPositionals,
9
9
  rejectUnknownFlags
10
- } from "./cli-daahjr6z.js";
11
- import"./cli-c2yvktan.js";
10
+ } from "./cli-z8kd8y5n.js";
11
+ import"./cli-2h1s42gy.js";
12
12
  import"./cli-c41yr7he.js";
13
13
  import {
14
14
  EXIT_CODES
@@ -2,16 +2,16 @@ import {
2
2
  executeValidation,
3
3
  publishTargetFor,
4
4
  reportMissingTools
5
- } from "./cli-w3spkryk.js";
5
+ } from "./cli-9jzff2s3.js";
6
6
  import {
7
7
  log
8
- } from "./cli-wef7qh62.js";
8
+ } from "./cli-wbevw8y3.js";
9
9
  import {
10
10
  UsageError,
11
11
  rejectExtraPositionals,
12
12
  rejectUnknownFlags
13
- } from "./cli-daahjr6z.js";
14
- import"./cli-c2yvktan.js";
13
+ } from "./cli-z8kd8y5n.js";
14
+ import"./cli-2h1s42gy.js";
15
15
  import"./cli-c41yr7he.js";
16
16
  import {
17
17
  EXIT_CODES
@@ -6,10 +6,10 @@ import {
6
6
  runBuild,
7
7
  splitOutPath,
8
8
  startPreviewServer
9
- } from "./cli-w3spkryk.js";
9
+ } from "./cli-9jzff2s3.js";
10
10
  import {
11
11
  log
12
- } from "./cli-wef7qh62.js";
12
+ } from "./cli-wbevw8y3.js";
13
13
  import {
14
14
  UsageError,
15
15
  parseEngine,
@@ -18,8 +18,8 @@ import {
18
18
  rejectExtraPositionals,
19
19
  rejectUnknownFlags,
20
20
  resolvePort
21
- } from "./cli-daahjr6z.js";
22
- import"./cli-c2yvktan.js";
21
+ } from "./cli-z8kd8y5n.js";
22
+ import"./cli-2h1s42gy.js";
23
23
  import"./cli-c41yr7he.js";
24
24
  import {
25
25
  BuildError
@@ -7,17 +7,17 @@ import {
7
7
  publishCredentialKey,
8
8
  publishProviderFor,
9
9
  runPublish
10
- } from "./cli-w3spkryk.js";
10
+ } from "./cli-9jzff2s3.js";
11
11
  import {
12
12
  FileTokenStore,
13
13
  log
14
- } from "./cli-wef7qh62.js";
14
+ } from "./cli-wbevw8y3.js";
15
15
  import {
16
16
  UsageError,
17
17
  rejectExtraPositionals,
18
18
  rejectUnknownFlags
19
- } from "./cli-daahjr6z.js";
20
- import"./cli-c2yvktan.js";
19
+ } from "./cli-z8kd8y5n.js";
20
+ import"./cli-2h1s42gy.js";
21
21
  import"./cli-c41yr7he.js";
22
22
  import {
23
23
  EXIT_CODES
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  executeAndReport
3
- } from "./cli-w3spkryk.js";
3
+ } from "./cli-9jzff2s3.js";
4
4
  import {
5
5
  log
6
- } from "./cli-wef7qh62.js";
6
+ } from "./cli-wbevw8y3.js";
7
7
  import {
8
8
  UsageError,
9
9
  rejectExtraPositionals,
10
10
  rejectUnknownFlags
11
- } from "./cli-daahjr6z.js";
12
- import"./cli-c2yvktan.js";
11
+ } from "./cli-z8kd8y5n.js";
12
+ import"./cli-2h1s42gy.js";
13
13
  import"./cli-c41yr7he.js";
14
14
  import {
15
15
  EXIT_CODES
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gutterpress",
3
- "version": "0.10.2-alpha.2",
3
+ "version": "0.10.2-beta.1",
4
4
  "description": "Markdown-to-PDF converter for professional print layout using a native Chromium print engine and Ghostscript.",
5
5
  "author": "itlackey",
6
6
  "license": "MPL-2.0",
@@ -90,7 +90,7 @@
90
90
  "yaml": "^2.8.2"
91
91
  },
92
92
  "devDependencies": {
93
- "@types/bun": "latest",
93
+ "@types/bun": "1.3.14",
94
94
  "@types/markdown-it": "^14.1.2",
95
95
  "@types/node": "^22.0.0",
96
96
  "@types/semver": "^7.7.1",