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,48 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ import { require_YAMLSeq } from "../nodes/YAMLSeq.mjs";
3
+ import { require_resolve_props } from "./resolve-props.mjs";
4
+ import { require_util_flow_indent_check } from "./util-flow-indent-check.mjs";
5
+ //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-block-seq.js
6
+ var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
7
+ var YAMLSeq = require_YAMLSeq();
8
+ var resolveProps = require_resolve_props();
9
+ var utilFlowIndentCheck = require_util_flow_indent_check();
10
+ function resolveBlockSeq({ composeNode, composeEmptyNode }, ctx, bs, onError, tag) {
11
+ const seq = new (tag?.nodeClass ?? YAMLSeq.YAMLSeq)(ctx.schema);
12
+ if (ctx.atRoot) ctx.atRoot = false;
13
+ if (ctx.atKey) ctx.atKey = false;
14
+ let offset = bs.offset;
15
+ let commentEnd = null;
16
+ for (const { start, value } of bs.items) {
17
+ const props = resolveProps.resolveProps(start, {
18
+ indicator: "seq-item-ind",
19
+ next: value,
20
+ offset,
21
+ onError,
22
+ parentIndent: bs.indent,
23
+ startOnNewline: true
24
+ });
25
+ if (!props.found) if (props.anchor || props.tag || value) if (value?.type === "block-seq") onError(props.end, "BAD_INDENT", "All sequence items must start at the same column");
26
+ else onError(offset, "MISSING_CHAR", "Sequence item without - indicator");
27
+ else {
28
+ commentEnd = props.end;
29
+ if (props.comment) seq.comment = props.comment;
30
+ continue;
31
+ }
32
+ const node = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, start, null, props, onError);
33
+ if (ctx.schema.compat) utilFlowIndentCheck.flowIndentCheck(bs.indent, value, onError);
34
+ offset = node.range[2];
35
+ seq.items.push(node);
36
+ }
37
+ seq.range = [
38
+ bs.offset,
39
+ offset,
40
+ commentEnd ?? offset
41
+ ];
42
+ return seq;
43
+ }
44
+ exports.resolveBlockSeq = resolveBlockSeq;
45
+ }));
46
+ //#endregion
47
+ export default require_resolve_block_seq();
48
+ export { require_resolve_block_seq };
@@ -0,0 +1,41 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-end.js
3
+ var require_resolve_end = /* @__PURE__ */ __commonJSMin(((exports) => {
4
+ function resolveEnd(end, offset, reqSpace, onError) {
5
+ let comment = "";
6
+ if (end) {
7
+ let hasSpace = false;
8
+ let sep = "";
9
+ for (const token of end) {
10
+ const { source, type } = token;
11
+ switch (type) {
12
+ case "space":
13
+ hasSpace = true;
14
+ break;
15
+ case "comment": {
16
+ if (reqSpace && !hasSpace) onError(token, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters");
17
+ const cb = source.substring(1) || " ";
18
+ if (!comment) comment = cb;
19
+ else comment += sep + cb;
20
+ sep = "";
21
+ break;
22
+ }
23
+ case "newline":
24
+ if (comment) sep += source;
25
+ hasSpace = true;
26
+ break;
27
+ default: onError(token, "UNEXPECTED_TOKEN", `Unexpected ${type} at node end`);
28
+ }
29
+ offset += source.length;
30
+ }
31
+ }
32
+ return {
33
+ comment,
34
+ offset
35
+ };
36
+ }
37
+ exports.resolveEnd = resolveEnd;
38
+ }));
39
+ //#endregion
40
+ export default require_resolve_end();
41
+ export { require_resolve_end };
@@ -0,0 +1,166 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ import { require_identity } from "../nodes/identity.mjs";
3
+ import { require_Pair } from "../nodes/Pair.mjs";
4
+ import { require_YAMLMap } from "../nodes/YAMLMap.mjs";
5
+ import { require_YAMLSeq } from "../nodes/YAMLSeq.mjs";
6
+ import { require_resolve_props } from "./resolve-props.mjs";
7
+ import { require_util_contains_newline } from "./util-contains-newline.mjs";
8
+ import { require_util_map_includes } from "./util-map-includes.mjs";
9
+ import { require_resolve_end } from "./resolve-end.mjs";
10
+ //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-collection.js
11
+ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
12
+ var identity = require_identity();
13
+ var Pair = require_Pair();
14
+ var YAMLMap = require_YAMLMap();
15
+ var YAMLSeq = require_YAMLSeq();
16
+ var resolveEnd = require_resolve_end();
17
+ var resolveProps = require_resolve_props();
18
+ var utilContainsNewline = require_util_contains_newline();
19
+ var utilMapIncludes = require_util_map_includes();
20
+ const blockMsg = "Block collections are not allowed within flow collections";
21
+ const isBlock = (token) => token && (token.type === "block-map" || token.type === "block-seq");
22
+ function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onError, tag) {
23
+ const isMap = fc.start.source === "{";
24
+ const fcName = isMap ? "flow map" : "flow sequence";
25
+ const coll = new (tag?.nodeClass ?? (isMap ? YAMLMap.YAMLMap : YAMLSeq.YAMLSeq))(ctx.schema);
26
+ coll.flow = true;
27
+ const atRoot = ctx.atRoot;
28
+ if (atRoot) ctx.atRoot = false;
29
+ if (ctx.atKey) ctx.atKey = false;
30
+ let offset = fc.offset + fc.start.source.length;
31
+ for (let i = 0; i < fc.items.length; ++i) {
32
+ const collItem = fc.items[i];
33
+ const { start, key, sep, value } = collItem;
34
+ const props = resolveProps.resolveProps(start, {
35
+ flow: fcName,
36
+ indicator: "explicit-key-ind",
37
+ next: key ?? sep?.[0],
38
+ offset,
39
+ onError,
40
+ parentIndent: fc.indent,
41
+ startOnNewline: false
42
+ });
43
+ if (!props.found) {
44
+ if (!props.anchor && !props.tag && !sep && !value) {
45
+ if (i === 0 && props.comma) onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
46
+ else if (i < fc.items.length - 1) onError(props.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${fcName}`);
47
+ if (props.comment) if (coll.comment) coll.comment += "\n" + props.comment;
48
+ else coll.comment = props.comment;
49
+ offset = props.end;
50
+ continue;
51
+ }
52
+ if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key)) onError(key, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
53
+ }
54
+ if (i === 0) {
55
+ if (props.comma) onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
56
+ } else {
57
+ if (!props.comma) onError(props.start, "MISSING_CHAR", `Missing , between ${fcName} items`);
58
+ if (props.comment) {
59
+ let prevItemComment = "";
60
+ loop: for (const st of start) switch (st.type) {
61
+ case "comma":
62
+ case "space": break;
63
+ case "comment":
64
+ prevItemComment = st.source.substring(1);
65
+ break loop;
66
+ default: break loop;
67
+ }
68
+ if (prevItemComment) {
69
+ let prev = coll.items[coll.items.length - 1];
70
+ if (identity.isPair(prev)) prev = prev.value ?? prev.key;
71
+ if (prev.comment) prev.comment += "\n" + prevItemComment;
72
+ else prev.comment = prevItemComment;
73
+ props.comment = props.comment.substring(prevItemComment.length + 1);
74
+ }
75
+ }
76
+ }
77
+ if (!isMap && !sep && !props.found) {
78
+ const valueNode = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, sep, null, props, onError);
79
+ coll.items.push(valueNode);
80
+ offset = valueNode.range[2];
81
+ if (isBlock(value)) onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
82
+ } else {
83
+ ctx.atKey = true;
84
+ const keyStart = props.end;
85
+ const keyNode = key ? composeNode(ctx, key, props, onError) : composeEmptyNode(ctx, keyStart, start, null, props, onError);
86
+ if (isBlock(key)) onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
87
+ ctx.atKey = false;
88
+ const valueProps = resolveProps.resolveProps(sep ?? [], {
89
+ flow: fcName,
90
+ indicator: "map-value-ind",
91
+ next: value,
92
+ offset: keyNode.range[2],
93
+ onError,
94
+ parentIndent: fc.indent,
95
+ startOnNewline: false
96
+ });
97
+ if (valueProps.found) {
98
+ if (!isMap && !props.found && ctx.options.strict) {
99
+ if (sep) for (const st of sep) {
100
+ if (st === valueProps.found) break;
101
+ if (st.type === "newline") {
102
+ onError(st, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
103
+ break;
104
+ }
105
+ }
106
+ if (props.start < valueProps.found.offset - 1024) onError(valueProps.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
107
+ }
108
+ } else if (value) if ("source" in value && value.source?.[0] === ":") onError(value, "MISSING_CHAR", `Missing space after : in ${fcName}`);
109
+ else onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
110
+ const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep, null, valueProps, onError) : null;
111
+ if (valueNode) {
112
+ if (isBlock(value)) onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
113
+ } else if (valueProps.comment) if (keyNode.comment) keyNode.comment += "\n" + valueProps.comment;
114
+ else keyNode.comment = valueProps.comment;
115
+ const pair = new Pair.Pair(keyNode, valueNode);
116
+ if (ctx.options.keepSourceTokens) pair.srcToken = collItem;
117
+ if (isMap) {
118
+ const map = coll;
119
+ if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode)) onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
120
+ map.items.push(pair);
121
+ } else {
122
+ const map = new YAMLMap.YAMLMap(ctx.schema);
123
+ map.flow = true;
124
+ map.items.push(pair);
125
+ const endRange = (valueNode ?? keyNode).range;
126
+ map.range = [
127
+ keyNode.range[0],
128
+ endRange[1],
129
+ endRange[2]
130
+ ];
131
+ coll.items.push(map);
132
+ }
133
+ offset = valueNode ? valueNode.range[2] : valueProps.end;
134
+ }
135
+ }
136
+ const expectedEnd = isMap ? "}" : "]";
137
+ const [ce, ...ee] = fc.end;
138
+ let cePos = offset;
139
+ if (ce?.source === expectedEnd) cePos = ce.offset + ce.source.length;
140
+ else {
141
+ const name = fcName[0].toUpperCase() + fcName.substring(1);
142
+ const msg = atRoot ? `${name} must end with a ${expectedEnd}` : `${name} in block collection must be sufficiently indented and end with a ${expectedEnd}`;
143
+ onError(offset, atRoot ? "MISSING_CHAR" : "BAD_INDENT", msg);
144
+ if (ce && ce.source.length !== 1) ee.unshift(ce);
145
+ }
146
+ if (ee.length > 0) {
147
+ const end = resolveEnd.resolveEnd(ee, cePos, ctx.options.strict, onError);
148
+ if (end.comment) if (coll.comment) coll.comment += "\n" + end.comment;
149
+ else coll.comment = end.comment;
150
+ coll.range = [
151
+ fc.offset,
152
+ cePos,
153
+ end.offset
154
+ ];
155
+ } else coll.range = [
156
+ fc.offset,
157
+ cePos,
158
+ cePos
159
+ ];
160
+ return coll;
161
+ }
162
+ exports.resolveFlowCollection = resolveFlowCollection;
163
+ }));
164
+ //#endregion
165
+ export default require_resolve_flow_collection();
166
+ export { require_resolve_flow_collection };
@@ -0,0 +1,211 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ import { require_Scalar } from "../nodes/Scalar.mjs";
3
+ import { require_resolve_end } from "./resolve-end.mjs";
4
+ //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-flow-scalar.js
5
+ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
6
+ var Scalar = require_Scalar();
7
+ var resolveEnd = require_resolve_end();
8
+ function resolveFlowScalar(scalar, strict, onError) {
9
+ const { offset, type, source, end } = scalar;
10
+ let _type;
11
+ let value;
12
+ const _onError = (rel, code, msg) => onError(offset + rel, code, msg);
13
+ switch (type) {
14
+ case "scalar":
15
+ _type = Scalar.Scalar.PLAIN;
16
+ value = plainValue(source, _onError);
17
+ break;
18
+ case "single-quoted-scalar":
19
+ _type = Scalar.Scalar.QUOTE_SINGLE;
20
+ value = singleQuotedValue(source, _onError);
21
+ break;
22
+ case "double-quoted-scalar":
23
+ _type = Scalar.Scalar.QUOTE_DOUBLE;
24
+ value = doubleQuotedValue(source, _onError);
25
+ break;
26
+ default:
27
+ onError(scalar, "UNEXPECTED_TOKEN", `Expected a flow scalar value, but found: ${type}`);
28
+ return {
29
+ value: "",
30
+ type: null,
31
+ comment: "",
32
+ range: [
33
+ offset,
34
+ offset + source.length,
35
+ offset + source.length
36
+ ]
37
+ };
38
+ }
39
+ const valueEnd = offset + source.length;
40
+ const re = resolveEnd.resolveEnd(end, valueEnd, strict, onError);
41
+ return {
42
+ value,
43
+ type: _type,
44
+ comment: re.comment,
45
+ range: [
46
+ offset,
47
+ valueEnd,
48
+ re.offset
49
+ ]
50
+ };
51
+ }
52
+ function plainValue(source, onError) {
53
+ let badChar = "";
54
+ switch (source[0]) {
55
+ case " ":
56
+ badChar = "a tab character";
57
+ break;
58
+ case ",":
59
+ badChar = "flow indicator character ,";
60
+ break;
61
+ case "%":
62
+ badChar = "directive indicator character %";
63
+ break;
64
+ case "|":
65
+ case ">":
66
+ badChar = `block scalar indicator ${source[0]}`;
67
+ break;
68
+ case "@":
69
+ case "`":
70
+ badChar = `reserved character ${source[0]}`;
71
+ break;
72
+ }
73
+ if (badChar) onError(0, "BAD_SCALAR_START", `Plain value cannot start with ${badChar}`);
74
+ return foldLines(source);
75
+ }
76
+ function singleQuotedValue(source, onError) {
77
+ if (source[source.length - 1] !== "'" || source.length === 1) onError(source.length, "MISSING_CHAR", "Missing closing 'quote");
78
+ return foldLines(source.slice(1, -1)).replace(/''/g, "'");
79
+ }
80
+ function foldLines(source) {
81
+ /**
82
+ * The negative lookbehind here and in the `re` RegExp is to
83
+ * prevent causing a polynomial search time in certain cases.
84
+ *
85
+ * The try-catch is for Safari, which doesn't support this yet:
86
+ * https://caniuse.com/js-regexp-lookbehind
87
+ */
88
+ let first, line;
89
+ try {
90
+ first = /* @__PURE__ */ new RegExp("(.*?)(?<![ ])[ ]*\r?\n", "sy");
91
+ line = /* @__PURE__ */ new RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n", "sy");
92
+ } catch {
93
+ first = /(.*?)[ \t]*\r?\n/sy;
94
+ line = /[ \t]*(.*?)[ \t]*\r?\n/sy;
95
+ }
96
+ let match = first.exec(source);
97
+ if (!match) return source;
98
+ let res = match[1];
99
+ let sep = " ";
100
+ let pos = first.lastIndex;
101
+ line.lastIndex = pos;
102
+ while (match = line.exec(source)) {
103
+ if (match[1] === "") if (sep === "\n") res += sep;
104
+ else sep = "\n";
105
+ else {
106
+ res += sep + match[1];
107
+ sep = " ";
108
+ }
109
+ pos = line.lastIndex;
110
+ }
111
+ const last = /[ \t]*(.*)/sy;
112
+ last.lastIndex = pos;
113
+ match = last.exec(source);
114
+ return res + sep + (match?.[1] ?? "");
115
+ }
116
+ function doubleQuotedValue(source, onError) {
117
+ let res = "";
118
+ for (let i = 1; i < source.length - 1; ++i) {
119
+ const ch = source[i];
120
+ if (ch === "\r" && source[i + 1] === "\n") continue;
121
+ if (ch === "\n") {
122
+ const { fold, offset } = foldNewline(source, i);
123
+ res += fold;
124
+ i = offset;
125
+ } else if (ch === "\\") {
126
+ let next = source[++i];
127
+ const cc = escapeCodes[next];
128
+ if (cc) res += cc;
129
+ else if (next === "\n") {
130
+ next = source[i + 1];
131
+ while (next === " " || next === " ") next = source[++i + 1];
132
+ } else if (next === "\r" && source[i + 1] === "\n") {
133
+ next = source[++i + 1];
134
+ while (next === " " || next === " ") next = source[++i + 1];
135
+ } else if (next === "x" || next === "u" || next === "U") {
136
+ const length = {
137
+ x: 2,
138
+ u: 4,
139
+ U: 8
140
+ }[next];
141
+ res += parseCharCode(source, i + 1, length, onError);
142
+ i += length;
143
+ } else {
144
+ const raw = source.substr(i - 1, 2);
145
+ onError(i - 1, "BAD_DQ_ESCAPE", `Invalid escape sequence ${raw}`);
146
+ res += raw;
147
+ }
148
+ } else if (ch === " " || ch === " ") {
149
+ const wsStart = i;
150
+ let next = source[i + 1];
151
+ while (next === " " || next === " ") next = source[++i + 1];
152
+ if (next !== "\n" && !(next === "\r" && source[i + 2] === "\n")) res += i > wsStart ? source.slice(wsStart, i + 1) : ch;
153
+ } else res += ch;
154
+ }
155
+ if (source[source.length - 1] !== "\"" || source.length === 1) onError(source.length, "MISSING_CHAR", "Missing closing \"quote");
156
+ return res;
157
+ }
158
+ /**
159
+ * Fold a single newline into a space, multiple newlines to N - 1 newlines.
160
+ * Presumes `source[offset] === '\n'`
161
+ */
162
+ function foldNewline(source, offset) {
163
+ let fold = "";
164
+ let ch = source[offset + 1];
165
+ while (ch === " " || ch === " " || ch === "\n" || ch === "\r") {
166
+ if (ch === "\r" && source[offset + 2] !== "\n") break;
167
+ if (ch === "\n") fold += "\n";
168
+ offset += 1;
169
+ ch = source[offset + 1];
170
+ }
171
+ if (!fold) fold = " ";
172
+ return {
173
+ fold,
174
+ offset
175
+ };
176
+ }
177
+ const escapeCodes = {
178
+ "0": "\0",
179
+ a: "\x07",
180
+ b: "\b",
181
+ e: "\x1B",
182
+ f: "\f",
183
+ n: "\n",
184
+ r: "\r",
185
+ t: " ",
186
+ v: "\v",
187
+ N: "…",
188
+ _: "\xA0",
189
+ L: "\u2028",
190
+ P: "\u2029",
191
+ " ": " ",
192
+ "\"": "\"",
193
+ "/": "/",
194
+ "\\": "\\",
195
+ " ": " "
196
+ };
197
+ function parseCharCode(source, offset, length, onError) {
198
+ const cc = source.substr(offset, length);
199
+ const code = cc.length === length && /^[0-9a-fA-F]+$/.test(cc) ? parseInt(cc, 16) : NaN;
200
+ if (isNaN(code)) {
201
+ const raw = source.substr(offset - 2, length + 2);
202
+ onError(offset - 2, "BAD_DQ_ESCAPE", `Invalid escape sequence ${raw}`);
203
+ return raw;
204
+ }
205
+ return String.fromCodePoint(code);
206
+ }
207
+ exports.resolveFlowScalar = resolveFlowScalar;
208
+ }));
209
+ //#endregion
210
+ export default require_resolve_flow_scalar();
211
+ export { require_resolve_flow_scalar };
@@ -0,0 +1,110 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/resolve-props.js
3
+ var require_resolve_props = /* @__PURE__ */ __commonJSMin(((exports) => {
4
+ function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
5
+ let spaceBefore = false;
6
+ let atNewline = startOnNewline;
7
+ let hasSpace = startOnNewline;
8
+ let comment = "";
9
+ let commentSep = "";
10
+ let hasNewline = false;
11
+ let reqSpace = false;
12
+ let tab = null;
13
+ let anchor = null;
14
+ let tag = null;
15
+ let newlineAfterProp = null;
16
+ let comma = null;
17
+ let found = null;
18
+ let start = null;
19
+ for (const token of tokens) {
20
+ if (reqSpace) {
21
+ if (token.type !== "space" && token.type !== "newline" && token.type !== "comma") onError(token.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space");
22
+ reqSpace = false;
23
+ }
24
+ if (tab) {
25
+ if (atNewline && token.type !== "comment" && token.type !== "newline") onError(tab, "TAB_AS_INDENT", "Tabs are not allowed as indentation");
26
+ tab = null;
27
+ }
28
+ switch (token.type) {
29
+ case "space":
30
+ if (!flow && (indicator !== "doc-start" || next?.type !== "flow-collection") && token.source.includes(" ")) tab = token;
31
+ hasSpace = true;
32
+ break;
33
+ case "comment": {
34
+ if (!hasSpace) onError(token, "MISSING_CHAR", "Comments must be separated from other tokens by white space characters");
35
+ const cb = token.source.substring(1) || " ";
36
+ if (!comment) comment = cb;
37
+ else comment += commentSep + cb;
38
+ commentSep = "";
39
+ atNewline = false;
40
+ break;
41
+ }
42
+ case "newline":
43
+ if (atNewline) {
44
+ if (comment) comment += token.source;
45
+ else if (!found || indicator !== "seq-item-ind") spaceBefore = true;
46
+ } else commentSep += token.source;
47
+ atNewline = true;
48
+ hasNewline = true;
49
+ if (anchor || tag) newlineAfterProp = token;
50
+ hasSpace = true;
51
+ break;
52
+ case "anchor":
53
+ if (anchor) onError(token, "MULTIPLE_ANCHORS", "A node can have at most one anchor");
54
+ if (token.source.endsWith(":")) onError(token.offset + token.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", true);
55
+ anchor = token;
56
+ start ?? (start = token.offset);
57
+ atNewline = false;
58
+ hasSpace = false;
59
+ reqSpace = true;
60
+ break;
61
+ case "tag":
62
+ if (tag) onError(token, "MULTIPLE_TAGS", "A node can have at most one tag");
63
+ tag = token;
64
+ start ?? (start = token.offset);
65
+ atNewline = false;
66
+ hasSpace = false;
67
+ reqSpace = true;
68
+ break;
69
+ case indicator:
70
+ if (anchor || tag) onError(token, "BAD_PROP_ORDER", `Anchors and tags must be after the ${token.source} indicator`);
71
+ if (found) onError(token, "UNEXPECTED_TOKEN", `Unexpected ${token.source} in ${flow ?? "collection"}`);
72
+ found = token;
73
+ atNewline = indicator === "seq-item-ind" || indicator === "explicit-key-ind";
74
+ hasSpace = false;
75
+ break;
76
+ case "comma": if (flow) {
77
+ if (comma) onError(token, "UNEXPECTED_TOKEN", `Unexpected , in ${flow}`);
78
+ comma = token;
79
+ atNewline = false;
80
+ hasSpace = false;
81
+ break;
82
+ }
83
+ default:
84
+ onError(token, "UNEXPECTED_TOKEN", `Unexpected ${token.type} token`);
85
+ atNewline = false;
86
+ hasSpace = false;
87
+ }
88
+ }
89
+ const last = tokens[tokens.length - 1];
90
+ const end = last ? last.offset + last.source.length : offset;
91
+ if (reqSpace && next && next.type !== "space" && next.type !== "newline" && next.type !== "comma" && (next.type !== "scalar" || next.source !== "")) onError(next.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space");
92
+ if (tab && (atNewline && tab.indent <= parentIndent || next?.type === "block-map" || next?.type === "block-seq")) onError(tab, "TAB_AS_INDENT", "Tabs are not allowed as indentation");
93
+ return {
94
+ comma,
95
+ found,
96
+ spaceBefore,
97
+ comment,
98
+ hasNewline,
99
+ anchor,
100
+ tag,
101
+ newlineAfterProp,
102
+ end,
103
+ start: start ?? end
104
+ };
105
+ }
106
+ exports.resolveProps = resolveProps;
107
+ }));
108
+ //#endregion
109
+ export default require_resolve_props();
110
+ export { require_resolve_props };
@@ -0,0 +1,32 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-contains-newline.js
3
+ var require_util_contains_newline = /* @__PURE__ */ __commonJSMin(((exports) => {
4
+ function containsNewline(key) {
5
+ if (!key) return null;
6
+ switch (key.type) {
7
+ case "alias":
8
+ case "scalar":
9
+ case "double-quoted-scalar":
10
+ case "single-quoted-scalar":
11
+ if (key.source.includes("\n")) return true;
12
+ if (key.end) {
13
+ for (const st of key.end) if (st.type === "newline") return true;
14
+ }
15
+ return false;
16
+ case "flow-collection":
17
+ for (const it of key.items) {
18
+ for (const st of it.start) if (st.type === "newline") return true;
19
+ if (it.sep) {
20
+ for (const st of it.sep) if (st.type === "newline") return true;
21
+ }
22
+ if (containsNewline(it.key) || containsNewline(it.value)) return true;
23
+ }
24
+ return false;
25
+ default: return true;
26
+ }
27
+ }
28
+ exports.containsNewline = containsNewline;
29
+ }));
30
+ //#endregion
31
+ export default require_util_contains_newline();
32
+ export { require_util_contains_newline };
@@ -0,0 +1,30 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-empty-scalar-position.js
3
+ var require_util_empty_scalar_position = /* @__PURE__ */ __commonJSMin(((exports) => {
4
+ function emptyScalarPosition(offset, before, pos) {
5
+ if (before) {
6
+ pos ?? (pos = before.length);
7
+ for (let i = pos - 1; i >= 0; --i) {
8
+ let st = before[i];
9
+ switch (st.type) {
10
+ case "space":
11
+ case "comment":
12
+ case "newline":
13
+ offset -= st.source.length;
14
+ continue;
15
+ }
16
+ st = before[++i];
17
+ while (st?.type === "space") {
18
+ offset += st.source.length;
19
+ st = before[++i];
20
+ }
21
+ break;
22
+ }
23
+ }
24
+ return offset;
25
+ }
26
+ exports.emptyScalarPosition = emptyScalarPosition;
27
+ }));
28
+ //#endregion
29
+ export default require_util_empty_scalar_position();
30
+ export { require_util_empty_scalar_position };
@@ -0,0 +1,16 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ import { require_util_contains_newline } from "./util-contains-newline.mjs";
3
+ //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-flow-indent-check.js
4
+ var require_util_flow_indent_check = /* @__PURE__ */ __commonJSMin(((exports) => {
5
+ var utilContainsNewline = require_util_contains_newline();
6
+ function flowIndentCheck(indent, fc, onError) {
7
+ if (fc?.type === "flow-collection") {
8
+ const end = fc.end[0];
9
+ if (end.indent === indent && (end.source === "]" || end.source === "}") && utilContainsNewline.containsNewline(fc)) onError(end, "BAD_INDENT", "Flow end indicator should be more indented than parent", true);
10
+ }
11
+ }
12
+ exports.flowIndentCheck = flowIndentCheck;
13
+ }));
14
+ //#endregion
15
+ export default require_util_flow_indent_check();
16
+ export { require_util_flow_indent_check };
@@ -0,0 +1,16 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ import { require_identity } from "../nodes/identity.mjs";
3
+ //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/compose/util-map-includes.js
4
+ var require_util_map_includes = /* @__PURE__ */ __commonJSMin(((exports) => {
5
+ var identity = require_identity();
6
+ function mapIncludes(ctx, items, search) {
7
+ const { uniqueKeys } = ctx.options;
8
+ if (uniqueKeys === false) return false;
9
+ const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a, b) => a === b || identity.isScalar(a) && identity.isScalar(b) && a.value === b.value;
10
+ return items.some((pair) => isEqual(pair.key, search));
11
+ }
12
+ exports.mapIncludes = mapIncludes;
13
+ }));
14
+ //#endregion
15
+ export default require_util_map_includes();
16
+ export { require_util_map_includes };