cngpac 0.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 (278) hide show
  1. package/LICENSE +201 -0
  2. package/dist/bin.mjs +24025 -0
  3. package/dist/src/_virtual/_rolldown/runtime.mjs +35 -0
  4. package/dist/src/changelog.d.mts +71 -0
  5. package/dist/src/changelog.mjs +92 -0
  6. package/dist/src/changenote.d.mts +41 -0
  7. package/dist/src/changenote.mjs +184 -0
  8. package/dist/src/cli/commands/change.d.mts +4 -0
  9. package/dist/src/cli/commands/change.mjs +75 -0
  10. package/dist/src/formatter.d.mts +31 -0
  11. package/dist/src/formatter.mjs +50 -0
  12. package/dist/src/git.d.mts +20 -0
  13. package/dist/src/git.mjs +121 -0
  14. package/dist/src/index.d.mts +19 -0
  15. package/dist/src/index.mjs +20 -0
  16. package/dist/src/node_modules/.pnpm/@clack_core@1.2.0/node_modules/@clack/core/dist/index.mjs +530 -0
  17. package/dist/src/node_modules/.pnpm/@clack_prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs +110 -0
  18. package/dist/src/node_modules/.pnpm/@kwsites_file-exists@1.1.1/node_modules/@kwsites/file-exists/dist/index.mjs +13 -0
  19. package/dist/src/node_modules/.pnpm/@kwsites_file-exists@1.1.1/node_modules/@kwsites/file-exists/dist/src/index.mjs +59 -0
  20. package/dist/src/node_modules/.pnpm/@kwsites_promise-deferred@1.1.1/node_modules/@kwsites/promise-deferred/dist/index.mjs +55 -0
  21. package/dist/src/node_modules/.pnpm/@octokit_auth-token@6.0.0/node_modules/@octokit/auth-token/dist-bundle/index.mjs +32 -0
  22. package/dist/src/node_modules/.pnpm/@octokit_core@7.0.6/node_modules/@octokit/core/dist-src/index.mjs +94 -0
  23. package/dist/src/node_modules/.pnpm/@octokit_core@7.0.6/node_modules/@octokit/core/dist-src/version.mjs +4 -0
  24. package/dist/src/node_modules/.pnpm/@octokit_endpoint@11.0.3/node_modules/@octokit/endpoint/dist-bundle/index.mjs +223 -0
  25. package/dist/src/node_modules/.pnpm/@octokit_graphql@9.0.3/node_modules/@octokit/graphql/dist-bundle/index.mjs +90 -0
  26. package/dist/src/node_modules/.pnpm/@octokit_plugin-paginate-rest@14.0.0_@octokit_core@7.0.6/node_modules/@octokit/plugin-paginate-rest/dist-bundle/index.mjs +86 -0
  27. package/dist/src/node_modules/.pnpm/@octokit_plugin-request-log@6.0.0_@octokit_core@7.0.6/node_modules/@octokit/plugin-request-log/dist-src/index.mjs +22 -0
  28. package/dist/src/node_modules/.pnpm/@octokit_plugin-request-log@6.0.0_@octokit_core@7.0.6/node_modules/@octokit/plugin-request-log/dist-src/version.mjs +4 -0
  29. package/dist/src/node_modules/.pnpm/@octokit_plugin-rest-endpoint-methods@17.0.0_@octokit_core@7.0.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.mjs +94 -0
  30. package/dist/src/node_modules/.pnpm/@octokit_plugin-rest-endpoint-methods@17.0.0_@octokit_core@7.0.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/generated/endpoints.mjs +1295 -0
  31. package/dist/src/node_modules/.pnpm/@octokit_plugin-rest-endpoint-methods@17.0.0_@octokit_core@7.0.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.mjs +17 -0
  32. package/dist/src/node_modules/.pnpm/@octokit_plugin-rest-endpoint-methods@17.0.0_@octokit_core@7.0.6/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.mjs +4 -0
  33. package/dist/src/node_modules/.pnpm/@octokit_request-error@7.1.0/node_modules/@octokit/request-error/dist-src/index.mjs +30 -0
  34. package/dist/src/node_modules/.pnpm/@octokit_request@10.0.8/node_modules/@octokit/request/dist-bundle/index.mjs +146 -0
  35. package/dist/src/node_modules/.pnpm/@octokit_rest@22.0.1/node_modules/@octokit/rest/dist-src/index.mjs +9 -0
  36. package/dist/src/node_modules/.pnpm/@octokit_rest@22.0.1/node_modules/@octokit/rest/dist-src/version.mjs +4 -0
  37. package/dist/src/node_modules/.pnpm/@simple-git_args-pathspec@1.0.2/node_modules/@simple-git/args-pathspec/dist/index.mjs +14 -0
  38. package/dist/src/node_modules/.pnpm/@simple-git_argv-parser@1.0.3/node_modules/@simple-git/argv-parser/dist/index.mjs +369 -0
  39. package/dist/src/node_modules/.pnpm/bail@2.0.2/node_modules/bail/index.mjs +13 -0
  40. package/dist/src/node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/index.mjs +43 -0
  41. package/dist/src/node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/lib/add.mjs +28 -0
  42. package/dist/src/node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/lib/register.mjs +16 -0
  43. package/dist/src/node_modules/.pnpm/before-after-hook@4.0.0/node_modules/before-after-hook/lib/remove.mjs +11 -0
  44. package/dist/src/node_modules/.pnpm/character-entities@2.0.2/node_modules/character-entities/index.mjs +2135 -0
  45. package/dist/src/node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/browser.mjs +200 -0
  46. package/dist/src/node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/common.mjs +206 -0
  47. package/dist/src/node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/index.mjs +15 -0
  48. package/dist/src/node_modules/.pnpm/debug@4.4.3/node_modules/debug/src/node.mjs +212 -0
  49. package/dist/src/node_modules/.pnpm/decode-named-character-reference@1.3.0/node_modules/decode-named-character-reference/index.mjs +19 -0
  50. package/dist/src/node_modules/.pnpm/devlop@1.1.0/node_modules/devlop/lib/default.mjs +4 -0
  51. package/dist/src/node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.mjs +7 -0
  52. package/dist/src/node_modules/.pnpm/extend@3.0.2/node_modules/extend/index.mjs +76 -0
  53. package/dist/src/node_modules/.pnpm/fast-content-type-parse@3.0.0/node_modules/fast-content-type-parse/index.mjs +115 -0
  54. package/dist/src/node_modules/.pnpm/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.mjs +138 -0
  55. package/dist/src/node_modules/.pnpm/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.mjs +12 -0
  56. package/dist/src/node_modules/.pnpm/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.mjs +12 -0
  57. package/dist/src/node_modules/.pnpm/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.mjs +165 -0
  58. package/dist/src/node_modules/.pnpm/fault@2.0.1/node_modules/fault/index.mjs +38 -0
  59. package/dist/src/node_modules/.pnpm/format@0.2.2/node_modules/format/format.mjs +87 -0
  60. package/dist/src/node_modules/.pnpm/glob@13.0.6/node_modules/glob/dist/esm/index.min.mjs +3125 -0
  61. package/dist/src/node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.mjs +13 -0
  62. package/dist/src/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs +8 -0
  63. package/dist/src/node_modules/.pnpm/json-with-bigint@3.5.8/node_modules/json-with-bigint/json-with-bigint.mjs +137 -0
  64. package/dist/src/node_modules/.pnpm/localstorage-polyfill@1.0.1/node_modules/localstorage-polyfill/localStorage.mjs +39 -0
  65. package/dist/src/node_modules/.pnpm/longest-streak@3.1.0/node_modules/longest-streak/index.mjs +29 -0
  66. package/dist/src/node_modules/.pnpm/mdast-util-from-markdown@2.0.3/node_modules/mdast-util-from-markdown/lib/index.mjs +976 -0
  67. package/dist/src/node_modules/.pnpm/mdast-util-frontmatter@2.0.1/node_modules/mdast-util-frontmatter/lib/index.mjs +162 -0
  68. package/dist/src/node_modules/.pnpm/mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.mjs +36 -0
  69. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/configure.mjs +48 -0
  70. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/blockquote.mjs +27 -0
  71. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/break.mjs +20 -0
  72. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/code.mjs +62 -0
  73. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/definition.mjs +61 -0
  74. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/emphasis.mjs +51 -0
  75. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/heading.mjs +47 -0
  76. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/html.mjs +20 -0
  77. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image-reference.mjs +50 -0
  78. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/image.mjs +69 -0
  79. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.mjs +47 -0
  80. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.mjs +40 -0
  81. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.mjs +50 -0
  82. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.mjs +93 -0
  83. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.mjs +35 -0
  84. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.mjs +48 -0
  85. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.mjs +22 -0
  86. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.mjs +20 -0
  87. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.mjs +51 -0
  88. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.mjs +17 -0
  89. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.mjs +19 -0
  90. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/index.mjs +161 -0
  91. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/join.mjs +18 -0
  92. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/unsafe.mjs +223 -0
  93. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/association.mjs +31 -0
  94. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.mjs +15 -0
  95. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.mjs +19 -0
  96. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-bullet.mjs +15 -0
  97. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.mjs +15 -0
  98. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-fence.mjs +15 -0
  99. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.mjs +15 -0
  100. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-quote.mjs +15 -0
  101. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.mjs +15 -0
  102. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-rule.mjs +15 -0
  103. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/check-strong.mjs +15 -0
  104. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.mjs +16 -0
  105. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/container-flow.mjs +56 -0
  106. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.mjs +75 -0
  107. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.mjs +14 -0
  108. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/encode-info.mjs +74 -0
  109. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.mjs +15 -0
  110. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.mjs +24 -0
  111. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.mjs +17 -0
  112. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/indent-lines.mjs +32 -0
  113. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.mjs +27 -0
  114. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/safe.mjs +116 -0
  115. package/dist/src/node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/util/track.mjs +59 -0
  116. package/dist/src/node_modules/.pnpm/mdast-util-to-string@4.0.0/node_modules/mdast-util-to-string/lib/index.mjs +83 -0
  117. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/attention.mjs +224 -0
  118. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/autolink.mjs +213 -0
  119. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/blank-line.mjs +60 -0
  120. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/block-quote.mjs +130 -0
  121. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-escape.mjs +62 -0
  122. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/character-reference.mjs +141 -0
  123. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-fenced.mjs +418 -0
  124. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-indented.mjs +147 -0
  125. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/code-text.mjs +187 -0
  126. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/content.mjs +137 -0
  127. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/definition.mjs +223 -0
  128. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/hard-break-escape.mjs +59 -0
  129. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/heading-atx.mjs +189 -0
  130. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-flow.mjs +777 -0
  131. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/html-text.mjs +617 -0
  132. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-end.mjs +479 -0
  133. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-image.mjs +95 -0
  134. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/label-start-link.mjs +50 -0
  135. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/line-ending.mjs +32 -0
  136. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/list.mjs +177 -0
  137. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/setext-underline.mjs +155 -0
  138. package/dist/src/node_modules/.pnpm/micromark-core-commonmark@2.0.3/node_modules/micromark-core-commonmark/lib/thematic-break.mjs +98 -0
  139. package/dist/src/node_modules/.pnpm/micromark-extension-frontmatter@2.0.0/node_modules/micromark-extension-frontmatter/lib/syntax.mjs +352 -0
  140. package/dist/src/node_modules/.pnpm/micromark-extension-frontmatter@2.0.0/node_modules/micromark-extension-frontmatter/lib/to-matters.mjs +109 -0
  141. package/dist/src/node_modules/.pnpm/micromark-factory-destination@2.0.1/node_modules/micromark-factory-destination/index.mjs +186 -0
  142. package/dist/src/node_modules/.pnpm/micromark-factory-label@2.0.1/node_modules/micromark-factory-label/index.mjs +134 -0
  143. package/dist/src/node_modules/.pnpm/micromark-factory-space@2.0.1/node_modules/micromark-factory-space/index.mjs +61 -0
  144. package/dist/src/node_modules/.pnpm/micromark-factory-title@2.0.1/node_modules/micromark-factory-title/index.mjs +148 -0
  145. package/dist/src/node_modules/.pnpm/micromark-factory-whitespace@2.0.1/node_modules/micromark-factory-whitespace/index.mjs +43 -0
  146. package/dist/src/node_modules/.pnpm/micromark-util-character@2.1.1/node_modules/micromark-util-character/index.mjs +229 -0
  147. package/dist/src/node_modules/.pnpm/micromark-util-chunked@2.0.1/node_modules/micromark-util-chunked/index.mjs +71 -0
  148. package/dist/src/node_modules/.pnpm/micromark-util-classify-character@2.0.1/node_modules/micromark-util-classify-character/index.mjs +25 -0
  149. package/dist/src/node_modules/.pnpm/micromark-util-combine-extensions@2.0.1/node_modules/micromark-util-combine-extensions/index.mjs +73 -0
  150. package/dist/src/node_modules/.pnpm/micromark-util-decode-numeric-character-reference@2.0.2/node_modules/micromark-util-decode-numeric-character-reference/index.mjs +22 -0
  151. package/dist/src/node_modules/.pnpm/micromark-util-decode-string@2.0.1/node_modules/micromark-util-decode-string/index.mjs +40 -0
  152. package/dist/src/node_modules/.pnpm/micromark-util-html-tag-name@2.0.1/node_modules/micromark-util-html-tag-name/index.mjs +100 -0
  153. package/dist/src/node_modules/.pnpm/micromark-util-normalize-identifier@2.0.1/node_modules/micromark-util-normalize-identifier/index.mjs +25 -0
  154. package/dist/src/node_modules/.pnpm/micromark-util-resolve-all@2.0.1/node_modules/micromark-util-resolve-all/index.mjs +31 -0
  155. package/dist/src/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/index.mjs +158 -0
  156. package/dist/src/node_modules/.pnpm/micromark-util-subtokenize@2.1.0/node_modules/micromark-util-subtokenize/lib/splice-buffer.mjs +231 -0
  157. package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/constructs.mjs +101 -0
  158. package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/create-tokenizer.mjs +473 -0
  159. package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/content.mjs +70 -0
  160. package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/document.mjs +220 -0
  161. package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/flow.mjs +51 -0
  162. package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/initialize/text.mjs +178 -0
  163. package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/parse.mjs +52 -0
  164. package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/postprocess.mjs +17 -0
  165. package/dist/src/node_modules/.pnpm/micromark@4.0.2/node_modules/micromark/lib/preprocess.mjs +102 -0
  166. package/dist/src/node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.mjs +121 -0
  167. package/dist/src/node_modules/.pnpm/remark-frontmatter@5.0.0/node_modules/remark-frontmatter/lib/index.mjs +35 -0
  168. package/dist/src/node_modules/.pnpm/remark-parse@11.0.0/node_modules/remark-parse/lib/index.mjs +37 -0
  169. package/dist/src/node_modules/.pnpm/remark-stringify@11.0.0/node_modules/remark-stringify/lib/index.mjs +36 -0
  170. package/dist/src/node_modules/.pnpm/simple-git@3.35.2/node_modules/simple-git/dist/esm/index.mjs +3563 -0
  171. package/dist/src/node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.mjs +57 -0
  172. package/dist/src/node_modules/.pnpm/supports-color@7.2.0/node_modules/supports-color/index.mjs +72 -0
  173. package/dist/src/node_modules/.pnpm/trough@2.2.0/node_modules/trough/lib/index.mjs +157 -0
  174. package/dist/src/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/callable-instance.mjs +13 -0
  175. package/dist/src/node_modules/.pnpm/unified@11.0.5/node_modules/unified/lib/index.mjs +1088 -0
  176. package/dist/src/node_modules/.pnpm/unist-util-is@6.0.1/node_modules/unist-util-is/lib/index.mjs +110 -0
  177. package/dist/src/node_modules/.pnpm/unist-util-stringify-position@4.0.0/node_modules/unist-util-stringify-position/lib/index.mjs +65 -0
  178. package/dist/src/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/color.node.mjs +10 -0
  179. package/dist/src/node_modules/.pnpm/unist-util-visit-parents@6.0.2/node_modules/unist-util-visit-parents/lib/index.mjs +328 -0
  180. package/dist/src/node_modules/.pnpm/unist-util-visit@5.1.0/node_modules/unist-util-visit/lib/index.mjs +287 -0
  181. package/dist/src/node_modules/.pnpm/universal-user-agent@7.0.3/node_modules/universal-user-agent/index.mjs +8 -0
  182. package/dist/src/node_modules/.pnpm/vfile-message@4.0.3/node_modules/vfile-message/lib/index.mjs +247 -0
  183. package/dist/src/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/index.mjs +525 -0
  184. package/dist/src/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minpath.mjs +2 -0
  185. package/dist/src/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minproc.mjs +2 -0
  186. package/dist/src/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.mjs +3 -0
  187. package/dist/src/node_modules/.pnpm/vfile@6.0.3/node_modules/vfile/lib/minurl.shared.mjs +24 -0
  188. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-collection.mjs +62 -0
  189. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-doc.mjs +49 -0
  190. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-node.mjs +98 -0
  191. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/compose-scalar.mjs +66 -0
  192. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/composer.mjs +207 -0
  193. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-map.mjs +93 -0
  194. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-scalar.mjs +179 -0
  195. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.mjs +48 -0
  196. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.mjs +41 -0
  197. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.mjs +166 -0
  198. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.mjs +211 -0
  199. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.mjs +110 -0
  200. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.mjs +32 -0
  201. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.mjs +30 -0
  202. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.mjs +16 -0
  203. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.mjs +16 -0
  204. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/Document.mjs +295 -0
  205. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.mjs +67 -0
  206. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.mjs +43 -0
  207. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.mjs +69 -0
  208. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/directives.mjs +170 -0
  209. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/errors.mjs +56 -0
  210. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/index.mjs +67 -0
  211. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/log.mjs +17 -0
  212. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Alias.mjs +101 -0
  213. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Collection.mjs +127 -0
  214. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Node.mjs +40 -0
  215. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Pair.mjs +40 -0
  216. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/Scalar.mjs +33 -0
  217. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLMap.mjs +118 -0
  218. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/YAMLSeq.mjs +115 -0
  219. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/addPairToJSMap.mjs +59 -0
  220. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/identity.mjs +53 -0
  221. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/nodes/toJS.mjs +41 -0
  222. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-scalar.mjs +274 -0
  223. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-stringify.mjs +54 -0
  224. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst-visit.mjs +94 -0
  225. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/cst.mjs +85 -0
  226. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/lexer.mjs +523 -0
  227. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/line-counter.mjs +50 -0
  228. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/parse/parser.mjs +861 -0
  229. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/public-api.mjs +97 -0
  230. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/Schema.mjs +36 -0
  231. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/map.mjs +22 -0
  232. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/null.mjs +19 -0
  233. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/seq.mjs +22 -0
  234. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/common/string.mjs +19 -0
  235. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/bool.mjs +23 -0
  236. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/float.mjs +46 -0
  237. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/int.mjs +45 -0
  238. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/core/schema.mjs +34 -0
  239. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/json/schema.mjs +68 -0
  240. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/tags.mjs +103 -0
  241. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/binary.mjs +53 -0
  242. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/bool.mjs +31 -0
  243. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/float.mjs +49 -0
  244. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/int.mjs +79 -0
  245. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/merge.mjs +45 -0
  246. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/omap.mjs +71 -0
  247. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/pairs.mjs +67 -0
  248. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/schema.mjs +56 -0
  249. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/set.mjs +74 -0
  250. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/schema/yaml-1.1/timestamp.mjs +87 -0
  251. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/foldFlowLines.mjs +119 -0
  252. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringify.mjs +115 -0
  253. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyCollection.mjs +124 -0
  254. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyComment.mjs +23 -0
  255. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyDocument.mjs +67 -0
  256. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyNumber.mjs +24 -0
  257. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyPair.mjs +104 -0
  258. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/stringify/stringifyString.mjs +229 -0
  259. package/dist/src/node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/visit.mjs +194 -0
  260. package/dist/src/node_modules/.pnpm/zwitch@2.0.4/node_modules/zwitch/index.mjs +106 -0
  261. package/dist/src/pkg.d.mts +24 -0
  262. package/dist/src/pkg.mjs +39 -0
  263. package/dist/src/prepare.d.mts +14 -0
  264. package/dist/src/prepare.mjs +41 -0
  265. package/dist/src/publishers/npm.d.mts +21 -0
  266. package/dist/src/publishers/npm.mjs +42 -0
  267. package/dist/src/releasers/github.d.mts +10 -0
  268. package/dist/src/releasers/github.mjs +20 -0
  269. package/dist/src/saver.d.mts +42 -0
  270. package/dist/src/saver.mjs +39 -0
  271. package/dist/src/types.d.mts +150 -0
  272. package/dist/src/utils.d.mts +7 -0
  273. package/dist/src/utils.mjs +47 -0
  274. package/dist/src/version.d.mts +9 -0
  275. package/dist/src/version.mjs +18 -0
  276. package/package.json +156 -0
  277. package/templates/cngpac.config.ts +33 -0
  278. package/templates/version.yml +30 -0
@@ -0,0 +1,47 @@
1
+ import { blockquote } from "./blockquote.mjs";
2
+ import { hardBreak } from "./break.mjs";
3
+ import { code } from "./code.mjs";
4
+ import { definition } from "./definition.mjs";
5
+ import { emphasis } from "./emphasis.mjs";
6
+ import { heading } from "./heading.mjs";
7
+ import { html } from "./html.mjs";
8
+ import { image } from "./image.mjs";
9
+ import { imageReference } from "./image-reference.mjs";
10
+ import { inlineCode } from "./inline-code.mjs";
11
+ import { link } from "./link.mjs";
12
+ import { linkReference } from "./link-reference.mjs";
13
+ import { list } from "./list.mjs";
14
+ import { listItem } from "./list-item.mjs";
15
+ import { paragraph } from "./paragraph.mjs";
16
+ import { root } from "./root.mjs";
17
+ import { strong } from "./strong.mjs";
18
+ import { text } from "./text.mjs";
19
+ import { thematicBreak } from "./thematic-break.mjs";
20
+ //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/index.js
21
+ /**
22
+ * Default (CommonMark) handlers.
23
+ */
24
+ const handle = {
25
+ blockquote,
26
+ break: hardBreak,
27
+ code,
28
+ definition,
29
+ emphasis,
30
+ hardBreak,
31
+ heading,
32
+ html,
33
+ image,
34
+ imageReference,
35
+ inlineCode,
36
+ link,
37
+ linkReference,
38
+ list,
39
+ listItem,
40
+ paragraph,
41
+ root,
42
+ strong,
43
+ text,
44
+ thematicBreak
45
+ };
46
+ //#endregion
47
+ export { handle };
@@ -0,0 +1,40 @@
1
+ //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js
2
+ /**
3
+ * @import {State} from 'mdast-util-to-markdown'
4
+ * @import {InlineCode, Parents} from 'mdast'
5
+ */
6
+ inlineCode.peek = inlineCodePeek;
7
+ /**
8
+ * @param {InlineCode} node
9
+ * @param {Parents | undefined} _
10
+ * @param {State} state
11
+ * @returns {string}
12
+ */
13
+ function inlineCode(node, _, state) {
14
+ let value = node.value || "";
15
+ let sequence = "`";
16
+ let index = -1;
17
+ while (new RegExp("(^|[^`])" + sequence + "([^`]|$)").test(value)) sequence += "`";
18
+ if (/[^ \r\n]/.test(value) && (/^[ \r\n]/.test(value) && /[ \r\n]$/.test(value) || /^`|`$/.test(value))) value = " " + value + " ";
19
+ while (++index < state.unsafe.length) {
20
+ const pattern = state.unsafe[index];
21
+ const expression = state.compilePattern(pattern);
22
+ /** @type {RegExpExecArray | null} */
23
+ let match;
24
+ if (!pattern.atBreak) continue;
25
+ while (match = expression.exec(value)) {
26
+ let position = match.index;
27
+ if (value.charCodeAt(position) === 10 && value.charCodeAt(position - 1) === 13) position--;
28
+ value = value.slice(0, position) + " " + value.slice(match.index + 1);
29
+ }
30
+ }
31
+ return sequence + value + sequence;
32
+ }
33
+ /**
34
+ * @returns {string}
35
+ */
36
+ function inlineCodePeek() {
37
+ return "`";
38
+ }
39
+ //#endregion
40
+ export { inlineCode };
@@ -0,0 +1,50 @@
1
+ //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js
2
+ /**
3
+ * @import {Info, State} from 'mdast-util-to-markdown'
4
+ * @import {LinkReference, Parents} from 'mdast'
5
+ */
6
+ linkReference.peek = linkReferencePeek;
7
+ /**
8
+ * @param {LinkReference} node
9
+ * @param {Parents | undefined} _
10
+ * @param {State} state
11
+ * @param {Info} info
12
+ * @returns {string}
13
+ */
14
+ function linkReference(node, _, state, info) {
15
+ const type = node.referenceType;
16
+ const exit = state.enter("linkReference");
17
+ let subexit = state.enter("label");
18
+ const tracker = state.createTracker(info);
19
+ let value = tracker.move("[");
20
+ const text = state.containerPhrasing(node, {
21
+ before: value,
22
+ after: "]",
23
+ ...tracker.current()
24
+ });
25
+ value += tracker.move(text + "][");
26
+ subexit();
27
+ const stack = state.stack;
28
+ state.stack = [];
29
+ subexit = state.enter("reference");
30
+ const reference = state.safe(state.associationId(node), {
31
+ before: value,
32
+ after: "]",
33
+ ...tracker.current()
34
+ });
35
+ subexit();
36
+ state.stack = stack;
37
+ exit();
38
+ if (type === "full" || !text || text !== reference) value += tracker.move(reference + "]");
39
+ else if (type === "shortcut") value = value.slice(0, -1);
40
+ else value += tracker.move("]");
41
+ return value;
42
+ }
43
+ /**
44
+ * @returns {string}
45
+ */
46
+ function linkReferencePeek() {
47
+ return "[";
48
+ }
49
+ //#endregion
50
+ export { linkReference };
@@ -0,0 +1,93 @@
1
+ import { checkQuote } from "../util/check-quote.mjs";
2
+ import { formatLinkAsAutolink } from "../util/format-link-as-autolink.mjs";
3
+ //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/link.js
4
+ /**
5
+ * @import {Info, State} from 'mdast-util-to-markdown'
6
+ * @import {Link, Parents} from 'mdast'
7
+ * @import {Exit} from '../types.js'
8
+ */
9
+ link.peek = linkPeek;
10
+ /**
11
+ * @param {Link} node
12
+ * @param {Parents | undefined} _
13
+ * @param {State} state
14
+ * @param {Info} info
15
+ * @returns {string}
16
+ */
17
+ function link(node, _, state, info) {
18
+ const quote = checkQuote(state);
19
+ const suffix = quote === "\"" ? "Quote" : "Apostrophe";
20
+ const tracker = state.createTracker(info);
21
+ /** @type {Exit} */
22
+ let exit;
23
+ /** @type {Exit} */
24
+ let subexit;
25
+ if (formatLinkAsAutolink(node, state)) {
26
+ const stack = state.stack;
27
+ state.stack = [];
28
+ exit = state.enter("autolink");
29
+ let value = tracker.move("<");
30
+ value += tracker.move(state.containerPhrasing(node, {
31
+ before: value,
32
+ after: ">",
33
+ ...tracker.current()
34
+ }));
35
+ value += tracker.move(">");
36
+ exit();
37
+ state.stack = stack;
38
+ return value;
39
+ }
40
+ exit = state.enter("link");
41
+ subexit = state.enter("label");
42
+ let value = tracker.move("[");
43
+ value += tracker.move(state.containerPhrasing(node, {
44
+ before: value,
45
+ after: "](",
46
+ ...tracker.current()
47
+ }));
48
+ value += tracker.move("](");
49
+ subexit();
50
+ if (!node.url && node.title || /[\0- \u007F]/.test(node.url)) {
51
+ subexit = state.enter("destinationLiteral");
52
+ value += tracker.move("<");
53
+ value += tracker.move(state.safe(node.url, {
54
+ before: value,
55
+ after: ">",
56
+ ...tracker.current()
57
+ }));
58
+ value += tracker.move(">");
59
+ } else {
60
+ subexit = state.enter("destinationRaw");
61
+ value += tracker.move(state.safe(node.url, {
62
+ before: value,
63
+ after: node.title ? " " : ")",
64
+ ...tracker.current()
65
+ }));
66
+ }
67
+ subexit();
68
+ if (node.title) {
69
+ subexit = state.enter(`title${suffix}`);
70
+ value += tracker.move(" " + quote);
71
+ value += tracker.move(state.safe(node.title, {
72
+ before: value,
73
+ after: quote,
74
+ ...tracker.current()
75
+ }));
76
+ value += tracker.move(quote);
77
+ subexit();
78
+ }
79
+ value += tracker.move(")");
80
+ exit();
81
+ return value;
82
+ }
83
+ /**
84
+ * @param {Link} node
85
+ * @param {Parents | undefined} _
86
+ * @param {State} state
87
+ * @returns {string}
88
+ */
89
+ function linkPeek(node, _, state) {
90
+ return formatLinkAsAutolink(node, state) ? "<" : "[";
91
+ }
92
+ //#endregion
93
+ export { link };
@@ -0,0 +1,35 @@
1
+ import { checkBullet } from "../util/check-bullet.mjs";
2
+ import { checkListItemIndent } from "../util/check-list-item-indent.mjs";
3
+ //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list-item.js
4
+ /**
5
+ * @import {Info, Map, State} from 'mdast-util-to-markdown'
6
+ * @import {ListItem, Parents} from 'mdast'
7
+ */
8
+ /**
9
+ * @param {ListItem} node
10
+ * @param {Parents | undefined} parent
11
+ * @param {State} state
12
+ * @param {Info} info
13
+ * @returns {string}
14
+ */
15
+ function listItem(node, parent, state, info) {
16
+ const listItemIndent = checkListItemIndent(state);
17
+ let bullet = state.bulletCurrent || checkBullet(state);
18
+ if (parent && parent.type === "list" && parent.ordered) bullet = (typeof parent.start === "number" && parent.start > -1 ? parent.start : 1) + (state.options.incrementListMarker === false ? 0 : parent.children.indexOf(node)) + bullet;
19
+ let size = bullet.length + 1;
20
+ if (listItemIndent === "tab" || listItemIndent === "mixed" && (parent && parent.type === "list" && parent.spread || node.spread)) size = Math.ceil(size / 4) * 4;
21
+ const tracker = state.createTracker(info);
22
+ tracker.move(bullet + " ".repeat(size - bullet.length));
23
+ tracker.shift(size);
24
+ const exit = state.enter("listItem");
25
+ const value = state.indentLines(state.containerFlow(node, tracker.current()), map);
26
+ exit();
27
+ return value;
28
+ /** @type {Map} */
29
+ function map(line, index, blank) {
30
+ if (index) return (blank ? "" : " ".repeat(size)) + line;
31
+ return (blank ? bullet : bullet + " ".repeat(size - bullet.length)) + line;
32
+ }
33
+ }
34
+ //#endregion
35
+ export { listItem };
@@ -0,0 +1,48 @@
1
+ import { checkBullet } from "../util/check-bullet.mjs";
2
+ import { checkBulletOther } from "../util/check-bullet-other.mjs";
3
+ import { checkBulletOrdered } from "../util/check-bullet-ordered.mjs";
4
+ import { checkRule } from "../util/check-rule.mjs";
5
+ //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/list.js
6
+ /**
7
+ * @import {Info, State} from 'mdast-util-to-markdown'
8
+ * @import {List, Parents} from 'mdast'
9
+ */
10
+ /**
11
+ * @param {List} node
12
+ * @param {Parents | undefined} parent
13
+ * @param {State} state
14
+ * @param {Info} info
15
+ * @returns {string}
16
+ */
17
+ function list(node, parent, state, info) {
18
+ const exit = state.enter("list");
19
+ const bulletCurrent = state.bulletCurrent;
20
+ /** @type {string} */
21
+ let bullet = node.ordered ? checkBulletOrdered(state) : checkBullet(state);
22
+ /** @type {string} */
23
+ const bulletOther = node.ordered ? bullet === "." ? ")" : "." : checkBulletOther(state);
24
+ let useDifferentMarker = parent && state.bulletLastUsed ? bullet === state.bulletLastUsed : false;
25
+ if (!node.ordered) {
26
+ const firstListItem = node.children ? node.children[0] : void 0;
27
+ if ((bullet === "*" || bullet === "-") && firstListItem && (!firstListItem.children || !firstListItem.children[0]) && state.stack[state.stack.length - 1] === "list" && state.stack[state.stack.length - 2] === "listItem" && state.stack[state.stack.length - 3] === "list" && state.stack[state.stack.length - 4] === "listItem" && state.indexStack[state.indexStack.length - 1] === 0 && state.indexStack[state.indexStack.length - 2] === 0 && state.indexStack[state.indexStack.length - 3] === 0) useDifferentMarker = true;
28
+ if (checkRule(state) === bullet && firstListItem) {
29
+ let index = -1;
30
+ while (++index < node.children.length) {
31
+ const item = node.children[index];
32
+ if (item && item.type === "listItem" && item.children && item.children[0] && item.children[0].type === "thematicBreak") {
33
+ useDifferentMarker = true;
34
+ break;
35
+ }
36
+ }
37
+ }
38
+ }
39
+ if (useDifferentMarker) bullet = bulletOther;
40
+ state.bulletCurrent = bullet;
41
+ const value = state.containerFlow(node, info);
42
+ state.bulletLastUsed = bullet;
43
+ state.bulletCurrent = bulletCurrent;
44
+ exit();
45
+ return value;
46
+ }
47
+ //#endregion
48
+ export { list };
@@ -0,0 +1,22 @@
1
+ //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js
2
+ /**
3
+ * @import {Info, State} from 'mdast-util-to-markdown'
4
+ * @import {Paragraph, Parents} from 'mdast'
5
+ */
6
+ /**
7
+ * @param {Paragraph} node
8
+ * @param {Parents | undefined} _
9
+ * @param {State} state
10
+ * @param {Info} info
11
+ * @returns {string}
12
+ */
13
+ function paragraph(node, _, state, info) {
14
+ const exit = state.enter("paragraph");
15
+ const subexit = state.enter("phrasing");
16
+ const value = state.containerPhrasing(node, info);
17
+ subexit();
18
+ exit();
19
+ return value;
20
+ }
21
+ //#endregion
22
+ export { paragraph };
@@ -0,0 +1,20 @@
1
+ import { phrasing } from "../../../../../mdast-util-phrasing@4.1.0/node_modules/mdast-util-phrasing/lib/index.mjs";
2
+ //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/root.js
3
+ /**
4
+ * @import {Info, State} from 'mdast-util-to-markdown'
5
+ * @import {Parents, Root} from 'mdast'
6
+ */
7
+ /**
8
+ * @param {Root} node
9
+ * @param {Parents | undefined} _
10
+ * @param {State} state
11
+ * @param {Info} info
12
+ * @returns {string}
13
+ */
14
+ function root(node, _, state, info) {
15
+ return (node.children.some(function(d) {
16
+ return phrasing(d);
17
+ }) ? state.containerPhrasing : state.containerFlow).call(state, node, info);
18
+ }
19
+ //#endregion
20
+ export { root };
@@ -0,0 +1,51 @@
1
+ import { encodeCharacterReference } from "../util/encode-character-reference.mjs";
2
+ import { encodeInfo } from "../util/encode-info.mjs";
3
+ import { checkStrong } from "../util/check-strong.mjs";
4
+ //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/strong.js
5
+ /**
6
+ * @import {Info, State} from 'mdast-util-to-markdown'
7
+ * @import {Parents, Strong} from 'mdast'
8
+ */
9
+ strong.peek = strongPeek;
10
+ /**
11
+ * @param {Strong} node
12
+ * @param {Parents | undefined} _
13
+ * @param {State} state
14
+ * @param {Info} info
15
+ * @returns {string}
16
+ */
17
+ function strong(node, _, state, info) {
18
+ const marker = checkStrong(state);
19
+ const exit = state.enter("strong");
20
+ const tracker = state.createTracker(info);
21
+ const before = tracker.move(marker + marker);
22
+ let between = tracker.move(state.containerPhrasing(node, {
23
+ after: marker,
24
+ before,
25
+ ...tracker.current()
26
+ }));
27
+ const betweenHead = between.charCodeAt(0);
28
+ const open = encodeInfo(info.before.charCodeAt(info.before.length - 1), betweenHead, marker);
29
+ if (open.inside) between = encodeCharacterReference(betweenHead) + between.slice(1);
30
+ const betweenTail = between.charCodeAt(between.length - 1);
31
+ const close = encodeInfo(info.after.charCodeAt(0), betweenTail, marker);
32
+ if (close.inside) between = between.slice(0, -1) + encodeCharacterReference(betweenTail);
33
+ const after = tracker.move(marker + marker);
34
+ exit();
35
+ state.attentionEncodeSurroundingInfo = {
36
+ after: close.outside,
37
+ before: open.outside
38
+ };
39
+ return before + between + after;
40
+ }
41
+ /**
42
+ * @param {Strong} _
43
+ * @param {Parents | undefined} _1
44
+ * @param {State} state
45
+ * @returns {string}
46
+ */
47
+ function strongPeek(_, _1, state) {
48
+ return state.options.strong || "*";
49
+ }
50
+ //#endregion
51
+ export { strong };
@@ -0,0 +1,17 @@
1
+ //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/text.js
2
+ /**
3
+ * @import {Info, State} from 'mdast-util-to-markdown'
4
+ * @import {Parents, Text} from 'mdast'
5
+ */
6
+ /**
7
+ * @param {Text} node
8
+ * @param {Parents | undefined} _
9
+ * @param {State} state
10
+ * @param {Info} info
11
+ * @returns {string}
12
+ */
13
+ function text(node, _, state, info) {
14
+ return state.safe(node.value, info);
15
+ }
16
+ //#endregion
17
+ export { text };
@@ -0,0 +1,19 @@
1
+ import { checkRule } from "../util/check-rule.mjs";
2
+ import { checkRuleRepetition } from "../util/check-rule-repetition.mjs";
3
+ //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js
4
+ /**
5
+ * @import {State} from 'mdast-util-to-markdown'
6
+ * @import {Parents, ThematicBreak} from 'mdast'
7
+ */
8
+ /**
9
+ * @param {ThematicBreak} _
10
+ * @param {Parents | undefined} _1
11
+ * @param {State} state
12
+ * @returns {string}
13
+ */
14
+ function thematicBreak(_, _1, state) {
15
+ const value = (checkRule(state) + (state.options.ruleSpaces ? " " : "")).repeat(checkRuleRepetition(state));
16
+ return state.options.ruleSpaces ? value.slice(0, -1) : value;
17
+ }
18
+ //#endregion
19
+ export { thematicBreak };
@@ -0,0 +1,161 @@
1
+ import { zwitch } from "../../../../zwitch@2.0.4/node_modules/zwitch/index.mjs";
2
+ import { configure } from "./configure.mjs";
3
+ import { handle } from "./handle/index.mjs";
4
+ import { join } from "./join.mjs";
5
+ import { unsafe } from "./unsafe.mjs";
6
+ import { association } from "./util/association.mjs";
7
+ import { compilePattern } from "./util/compile-pattern.mjs";
8
+ import { containerPhrasing } from "./util/container-phrasing.mjs";
9
+ import { containerFlow } from "./util/container-flow.mjs";
10
+ import { indentLines } from "./util/indent-lines.mjs";
11
+ import { safe } from "./util/safe.mjs";
12
+ import { track } from "./util/track.mjs";
13
+ //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/index.js
14
+ /**
15
+ * @import {Info, Join, Options, SafeConfig, State} from 'mdast-util-to-markdown'
16
+ * @import {Nodes} from 'mdast'
17
+ * @import {Enter, FlowParents, PhrasingParents, TrackFields} from './types.js'
18
+ */
19
+ /**
20
+ * Turn an mdast syntax tree into markdown.
21
+ *
22
+ * @param {Nodes} tree
23
+ * Tree to serialize.
24
+ * @param {Options | null | undefined} [options]
25
+ * Configuration (optional).
26
+ * @returns {string}
27
+ * Serialized markdown representing `tree`.
28
+ */
29
+ function toMarkdown(tree, options) {
30
+ const settings = options || {};
31
+ /** @type {State} */
32
+ const state = {
33
+ associationId: association,
34
+ containerPhrasing: containerPhrasingBound,
35
+ containerFlow: containerFlowBound,
36
+ createTracker: track,
37
+ compilePattern,
38
+ enter,
39
+ handlers: { ...handle },
40
+ handle: void 0,
41
+ indentLines,
42
+ indexStack: [],
43
+ join: [...join],
44
+ options: {},
45
+ safe: safeBound,
46
+ stack: [],
47
+ unsafe: [...unsafe]
48
+ };
49
+ configure(state, settings);
50
+ if (state.options.tightDefinitions) state.join.push(joinDefinition);
51
+ state.handle = zwitch("type", {
52
+ invalid,
53
+ unknown,
54
+ handlers: state.handlers
55
+ });
56
+ let result = state.handle(tree, void 0, state, {
57
+ before: "\n",
58
+ after: "\n",
59
+ now: {
60
+ line: 1,
61
+ column: 1
62
+ },
63
+ lineShift: 0
64
+ });
65
+ if (result && result.charCodeAt(result.length - 1) !== 10 && result.charCodeAt(result.length - 1) !== 13) result += "\n";
66
+ return result;
67
+ /** @type {Enter} */
68
+ function enter(name) {
69
+ state.stack.push(name);
70
+ return exit;
71
+ /**
72
+ * @returns {undefined}
73
+ */
74
+ function exit() {
75
+ state.stack.pop();
76
+ }
77
+ }
78
+ }
79
+ /**
80
+ * @param {unknown} value
81
+ * @returns {never}
82
+ */
83
+ function invalid(value) {
84
+ throw new Error("Cannot handle value `" + value + "`, expected node");
85
+ }
86
+ /**
87
+ * @param {unknown} value
88
+ * @returns {never}
89
+ */
90
+ function unknown(value) {
91
+ throw new Error("Cannot handle unknown node `" + value.type + "`");
92
+ }
93
+ /** @type {Join} */
94
+ function joinDefinition(left, right) {
95
+ if (left.type === "definition" && left.type === right.type) return 0;
96
+ }
97
+ /**
98
+ * Serialize the children of a parent that contains phrasing children.
99
+ *
100
+ * These children will be joined flush together.
101
+ *
102
+ * @this {State}
103
+ * Info passed around about the current state.
104
+ * @param {PhrasingParents} parent
105
+ * Parent of flow nodes.
106
+ * @param {Info} info
107
+ * Info on where we are in the document we are generating.
108
+ * @returns {string}
109
+ * Serialized children, joined together.
110
+ */
111
+ function containerPhrasingBound(parent, info) {
112
+ return containerPhrasing(parent, this, info);
113
+ }
114
+ /**
115
+ * Serialize the children of a parent that contains flow children.
116
+ *
117
+ * These children will typically be joined by blank lines.
118
+ * What they are joined by exactly is defined by `Join` functions.
119
+ *
120
+ * @this {State}
121
+ * Info passed around about the current state.
122
+ * @param {FlowParents} parent
123
+ * Parent of flow nodes.
124
+ * @param {TrackFields} info
125
+ * Info on where we are in the document we are generating.
126
+ * @returns {string}
127
+ * Serialized children, joined by (blank) lines.
128
+ */
129
+ function containerFlowBound(parent, info) {
130
+ return containerFlow(parent, this, info);
131
+ }
132
+ /**
133
+ * Make a string safe for embedding in markdown constructs.
134
+ *
135
+ * In markdown, almost all punctuation characters can, in certain cases,
136
+ * result in something.
137
+ * Whether they do is highly subjective to where they happen and in what
138
+ * they happen.
139
+ *
140
+ * To solve this, `mdast-util-to-markdown` tracks:
141
+ *
142
+ * * Characters before and after something;
143
+ * * What “constructs” we are in.
144
+ *
145
+ * This information is then used by this function to escape or encode
146
+ * special characters.
147
+ *
148
+ * @this {State}
149
+ * Info passed around about the current state.
150
+ * @param {string | null | undefined} value
151
+ * Raw value to make safe.
152
+ * @param {SafeConfig} config
153
+ * Configuration.
154
+ * @returns {string}
155
+ * Serialized markdown safe for embedding.
156
+ */
157
+ function safeBound(value, config) {
158
+ return safe(this, value, config);
159
+ }
160
+ //#endregion
161
+ export { toMarkdown };
@@ -0,0 +1,18 @@
1
+ import { formatCodeAsIndented } from "./util/format-code-as-indented.mjs";
2
+ import { formatHeadingAsSetext } from "./util/format-heading-as-setext.mjs";
3
+ //#region node_modules/.pnpm/mdast-util-to-markdown@2.1.2/node_modules/mdast-util-to-markdown/lib/join.js
4
+ /**
5
+ * @import {Join} from 'mdast-util-to-markdown'
6
+ */
7
+ /** @type {Array<Join>} */
8
+ const join = [joinDefaults];
9
+ /** @type {Join} */
10
+ function joinDefaults(left, right, parent, state) {
11
+ if (right.type === "code" && formatCodeAsIndented(right, state) && (left.type === "list" || left.type === right.type && formatCodeAsIndented(left, state))) return false;
12
+ if ("spread" in parent && typeof parent.spread === "boolean") {
13
+ if (left.type === "paragraph" && (left.type === right.type || right.type === "definition" || right.type === "heading" && formatHeadingAsSetext(right, state))) return;
14
+ return parent.spread ? 1 : 0;
15
+ }
16
+ }
17
+ //#endregion
18
+ export { join };