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,295 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ import { require_identity } from "../nodes/identity.mjs";
3
+ import { require_directives } from "./directives.mjs";
4
+ import { require_anchors } from "./anchors.mjs";
5
+ import { require_applyReviver } from "./applyReviver.mjs";
6
+ import { require_toJS } from "../nodes/toJS.mjs";
7
+ import { require_Alias } from "../nodes/Alias.mjs";
8
+ import { require_createNode } from "./createNode.mjs";
9
+ import { require_Collection } from "../nodes/Collection.mjs";
10
+ import { require_Pair } from "../nodes/Pair.mjs";
11
+ import { require_Schema } from "../schema/Schema.mjs";
12
+ import { require_stringifyDocument } from "../stringify/stringifyDocument.mjs";
13
+ //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/Document.js
14
+ var require_Document = /* @__PURE__ */ __commonJSMin(((exports) => {
15
+ var Alias = require_Alias();
16
+ var Collection = require_Collection();
17
+ var identity = require_identity();
18
+ var Pair = require_Pair();
19
+ var toJS = require_toJS();
20
+ var Schema = require_Schema();
21
+ var stringifyDocument = require_stringifyDocument();
22
+ var anchors = require_anchors();
23
+ var applyReviver = require_applyReviver();
24
+ var createNode = require_createNode();
25
+ var directives = require_directives();
26
+ var Document = class Document {
27
+ constructor(value, replacer, options) {
28
+ /** A comment before this Document */
29
+ this.commentBefore = null;
30
+ /** A comment immediately after this Document */
31
+ this.comment = null;
32
+ /** Errors encountered during parsing. */
33
+ this.errors = [];
34
+ /** Warnings encountered during parsing. */
35
+ this.warnings = [];
36
+ Object.defineProperty(this, identity.NODE_TYPE, { value: identity.DOC });
37
+ let _replacer = null;
38
+ if (typeof replacer === "function" || Array.isArray(replacer)) _replacer = replacer;
39
+ else if (options === void 0 && replacer) {
40
+ options = replacer;
41
+ replacer = void 0;
42
+ }
43
+ const opt = Object.assign({
44
+ intAsBigInt: false,
45
+ keepSourceTokens: false,
46
+ logLevel: "warn",
47
+ prettyErrors: true,
48
+ strict: true,
49
+ stringKeys: false,
50
+ uniqueKeys: true,
51
+ version: "1.2"
52
+ }, options);
53
+ this.options = opt;
54
+ let { version } = opt;
55
+ if (options?._directives) {
56
+ this.directives = options._directives.atDocument();
57
+ if (this.directives.yaml.explicit) version = this.directives.yaml.version;
58
+ } else this.directives = new directives.Directives({ version });
59
+ this.setSchema(version, options);
60
+ this.contents = value === void 0 ? null : this.createNode(value, _replacer, options);
61
+ }
62
+ /**
63
+ * Create a deep copy of this Document and its contents.
64
+ *
65
+ * Custom Node values that inherit from `Object` still refer to their original instances.
66
+ */
67
+ clone() {
68
+ const copy = Object.create(Document.prototype, { [identity.NODE_TYPE]: { value: identity.DOC } });
69
+ copy.commentBefore = this.commentBefore;
70
+ copy.comment = this.comment;
71
+ copy.errors = this.errors.slice();
72
+ copy.warnings = this.warnings.slice();
73
+ copy.options = Object.assign({}, this.options);
74
+ if (this.directives) copy.directives = this.directives.clone();
75
+ copy.schema = this.schema.clone();
76
+ copy.contents = identity.isNode(this.contents) ? this.contents.clone(copy.schema) : this.contents;
77
+ if (this.range) copy.range = this.range.slice();
78
+ return copy;
79
+ }
80
+ /** Adds a value to the document. */
81
+ add(value) {
82
+ if (assertCollection(this.contents)) this.contents.add(value);
83
+ }
84
+ /** Adds a value to the document. */
85
+ addIn(path, value) {
86
+ if (assertCollection(this.contents)) this.contents.addIn(path, value);
87
+ }
88
+ /**
89
+ * Create a new `Alias` node, ensuring that the target `node` has the required anchor.
90
+ *
91
+ * If `node` already has an anchor, `name` is ignored.
92
+ * Otherwise, the `node.anchor` value will be set to `name`,
93
+ * or if an anchor with that name is already present in the document,
94
+ * `name` will be used as a prefix for a new unique anchor.
95
+ * If `name` is undefined, the generated anchor will use 'a' as a prefix.
96
+ */
97
+ createAlias(node, name) {
98
+ if (!node.anchor) {
99
+ const prev = anchors.anchorNames(this);
100
+ node.anchor = !name || prev.has(name) ? anchors.findNewAnchor(name || "a", prev) : name;
101
+ }
102
+ return new Alias.Alias(node.anchor);
103
+ }
104
+ createNode(value, replacer, options) {
105
+ let _replacer = void 0;
106
+ if (typeof replacer === "function") {
107
+ value = replacer.call({ "": value }, "", value);
108
+ _replacer = replacer;
109
+ } else if (Array.isArray(replacer)) {
110
+ const keyToStr = (v) => typeof v === "number" || v instanceof String || v instanceof Number;
111
+ const asStr = replacer.filter(keyToStr).map(String);
112
+ if (asStr.length > 0) replacer = replacer.concat(asStr);
113
+ _replacer = replacer;
114
+ } else if (options === void 0 && replacer) {
115
+ options = replacer;
116
+ replacer = void 0;
117
+ }
118
+ const { aliasDuplicateObjects, anchorPrefix, flow, keepUndefined, onTagObj, tag } = options ?? {};
119
+ const { onAnchor, setAnchors, sourceObjects } = anchors.createNodeAnchors(this, anchorPrefix || "a");
120
+ const ctx = {
121
+ aliasDuplicateObjects: aliasDuplicateObjects ?? true,
122
+ keepUndefined: keepUndefined ?? false,
123
+ onAnchor,
124
+ onTagObj,
125
+ replacer: _replacer,
126
+ schema: this.schema,
127
+ sourceObjects
128
+ };
129
+ const node = createNode.createNode(value, tag, ctx);
130
+ if (flow && identity.isCollection(node)) node.flow = true;
131
+ setAnchors();
132
+ return node;
133
+ }
134
+ /**
135
+ * Convert a key and a value into a `Pair` using the current schema,
136
+ * recursively wrapping all values as `Scalar` or `Collection` nodes.
137
+ */
138
+ createPair(key, value, options = {}) {
139
+ const k = this.createNode(key, null, options);
140
+ const v = this.createNode(value, null, options);
141
+ return new Pair.Pair(k, v);
142
+ }
143
+ /**
144
+ * Removes a value from the document.
145
+ * @returns `true` if the item was found and removed.
146
+ */
147
+ delete(key) {
148
+ return assertCollection(this.contents) ? this.contents.delete(key) : false;
149
+ }
150
+ /**
151
+ * Removes a value from the document.
152
+ * @returns `true` if the item was found and removed.
153
+ */
154
+ deleteIn(path) {
155
+ if (Collection.isEmptyPath(path)) {
156
+ if (this.contents == null) return false;
157
+ this.contents = null;
158
+ return true;
159
+ }
160
+ return assertCollection(this.contents) ? this.contents.deleteIn(path) : false;
161
+ }
162
+ /**
163
+ * Returns item at `key`, or `undefined` if not found. By default unwraps
164
+ * scalar values from their surrounding node; to disable set `keepScalar` to
165
+ * `true` (collections are always returned intact).
166
+ */
167
+ get(key, keepScalar) {
168
+ return identity.isCollection(this.contents) ? this.contents.get(key, keepScalar) : void 0;
169
+ }
170
+ /**
171
+ * Returns item at `path`, or `undefined` if not found. By default unwraps
172
+ * scalar values from their surrounding node; to disable set `keepScalar` to
173
+ * `true` (collections are always returned intact).
174
+ */
175
+ getIn(path, keepScalar) {
176
+ if (Collection.isEmptyPath(path)) return !keepScalar && identity.isScalar(this.contents) ? this.contents.value : this.contents;
177
+ return identity.isCollection(this.contents) ? this.contents.getIn(path, keepScalar) : void 0;
178
+ }
179
+ /**
180
+ * Checks if the document includes a value with the key `key`.
181
+ */
182
+ has(key) {
183
+ return identity.isCollection(this.contents) ? this.contents.has(key) : false;
184
+ }
185
+ /**
186
+ * Checks if the document includes a value at `path`.
187
+ */
188
+ hasIn(path) {
189
+ if (Collection.isEmptyPath(path)) return this.contents !== void 0;
190
+ return identity.isCollection(this.contents) ? this.contents.hasIn(path) : false;
191
+ }
192
+ /**
193
+ * Sets a value in this document. For `!!set`, `value` needs to be a
194
+ * boolean to add/remove the item from the set.
195
+ */
196
+ set(key, value) {
197
+ if (this.contents == null) this.contents = Collection.collectionFromPath(this.schema, [key], value);
198
+ else if (assertCollection(this.contents)) this.contents.set(key, value);
199
+ }
200
+ /**
201
+ * Sets a value in this document. For `!!set`, `value` needs to be a
202
+ * boolean to add/remove the item from the set.
203
+ */
204
+ setIn(path, value) {
205
+ if (Collection.isEmptyPath(path)) this.contents = value;
206
+ else if (this.contents == null) this.contents = Collection.collectionFromPath(this.schema, Array.from(path), value);
207
+ else if (assertCollection(this.contents)) this.contents.setIn(path, value);
208
+ }
209
+ /**
210
+ * Change the YAML version and schema used by the document.
211
+ * A `null` version disables support for directives, explicit tags, anchors, and aliases.
212
+ * It also requires the `schema` option to be given as a `Schema` instance value.
213
+ *
214
+ * Overrides all previously set schema options.
215
+ */
216
+ setSchema(version, options = {}) {
217
+ if (typeof version === "number") version = String(version);
218
+ let opt;
219
+ switch (version) {
220
+ case "1.1":
221
+ if (this.directives) this.directives.yaml.version = "1.1";
222
+ else this.directives = new directives.Directives({ version: "1.1" });
223
+ opt = {
224
+ resolveKnownTags: false,
225
+ schema: "yaml-1.1"
226
+ };
227
+ break;
228
+ case "1.2":
229
+ case "next":
230
+ if (this.directives) this.directives.yaml.version = version;
231
+ else this.directives = new directives.Directives({ version });
232
+ opt = {
233
+ resolveKnownTags: true,
234
+ schema: "core"
235
+ };
236
+ break;
237
+ case null:
238
+ if (this.directives) delete this.directives;
239
+ opt = null;
240
+ break;
241
+ default: {
242
+ const sv = JSON.stringify(version);
243
+ throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${sv}`);
244
+ }
245
+ }
246
+ if (options.schema instanceof Object) this.schema = options.schema;
247
+ else if (opt) this.schema = new Schema.Schema(Object.assign(opt, options));
248
+ else throw new Error(`With a null YAML version, the { schema: Schema } option is required`);
249
+ }
250
+ toJS({ json, jsonArg, mapAsMap, maxAliasCount, onAnchor, reviver } = {}) {
251
+ const ctx = {
252
+ anchors: /* @__PURE__ */ new Map(),
253
+ doc: this,
254
+ keep: !json,
255
+ mapAsMap: mapAsMap === true,
256
+ mapKeyWarned: false,
257
+ maxAliasCount: typeof maxAliasCount === "number" ? maxAliasCount : 100
258
+ };
259
+ const res = toJS.toJS(this.contents, jsonArg ?? "", ctx);
260
+ if (typeof onAnchor === "function") for (const { count, res } of ctx.anchors.values()) onAnchor(res, count);
261
+ return typeof reviver === "function" ? applyReviver.applyReviver(reviver, { "": res }, "", res) : res;
262
+ }
263
+ /**
264
+ * A JSON representation of the document `contents`.
265
+ *
266
+ * @param jsonArg Used by `JSON.stringify` to indicate the array index or
267
+ * property name.
268
+ */
269
+ toJSON(jsonArg, onAnchor) {
270
+ return this.toJS({
271
+ json: true,
272
+ jsonArg,
273
+ mapAsMap: false,
274
+ onAnchor
275
+ });
276
+ }
277
+ /** A YAML representation of the document. */
278
+ toString(options = {}) {
279
+ if (this.errors.length > 0) throw new Error("Document with errors cannot be stringified");
280
+ if ("indent" in options && (!Number.isInteger(options.indent) || Number(options.indent) <= 0)) {
281
+ const s = JSON.stringify(options.indent);
282
+ throw new Error(`"indent" option must be a positive integer, not ${s}`);
283
+ }
284
+ return stringifyDocument.stringifyDocument(this, options);
285
+ }
286
+ };
287
+ function assertCollection(contents) {
288
+ if (identity.isCollection(contents)) return true;
289
+ throw new Error("Expected a YAML collection as document contents");
290
+ }
291
+ exports.Document = Document;
292
+ }));
293
+ //#endregion
294
+ export default require_Document();
295
+ export { require_Document };
@@ -0,0 +1,67 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ import { require_identity } from "../nodes/identity.mjs";
3
+ import { require_visit } from "../visit.mjs";
4
+ //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/anchors.js
5
+ var require_anchors = /* @__PURE__ */ __commonJSMin(((exports) => {
6
+ var identity = require_identity();
7
+ var visit = require_visit();
8
+ /**
9
+ * Verify that the input string is a valid anchor.
10
+ *
11
+ * Will throw on errors.
12
+ */
13
+ function anchorIsValid(anchor) {
14
+ if (/[\x00-\x19\s,[\]{}]/.test(anchor)) {
15
+ const msg = `Anchor must not contain whitespace or control characters: ${JSON.stringify(anchor)}`;
16
+ throw new Error(msg);
17
+ }
18
+ return true;
19
+ }
20
+ function anchorNames(root) {
21
+ const anchors = /* @__PURE__ */ new Set();
22
+ visit.visit(root, { Value(_key, node) {
23
+ if (node.anchor) anchors.add(node.anchor);
24
+ } });
25
+ return anchors;
26
+ }
27
+ /** Find a new anchor name with the given `prefix` and a one-indexed suffix. */
28
+ function findNewAnchor(prefix, exclude) {
29
+ for (let i = 1;; ++i) {
30
+ const name = `${prefix}${i}`;
31
+ if (!exclude.has(name)) return name;
32
+ }
33
+ }
34
+ function createNodeAnchors(doc, prefix) {
35
+ const aliasObjects = [];
36
+ const sourceObjects = /* @__PURE__ */ new Map();
37
+ let prevAnchors = null;
38
+ return {
39
+ onAnchor: (source) => {
40
+ aliasObjects.push(source);
41
+ prevAnchors ?? (prevAnchors = anchorNames(doc));
42
+ const anchor = findNewAnchor(prefix, prevAnchors);
43
+ prevAnchors.add(anchor);
44
+ return anchor;
45
+ },
46
+ setAnchors: () => {
47
+ for (const source of aliasObjects) {
48
+ const ref = sourceObjects.get(source);
49
+ if (typeof ref === "object" && ref.anchor && (identity.isScalar(ref.node) || identity.isCollection(ref.node))) ref.node.anchor = ref.anchor;
50
+ else {
51
+ const error = /* @__PURE__ */ new Error("Failed to resolve repeated object (this should not happen)");
52
+ error.source = source;
53
+ throw error;
54
+ }
55
+ }
56
+ },
57
+ sourceObjects
58
+ };
59
+ }
60
+ exports.anchorIsValid = anchorIsValid;
61
+ exports.anchorNames = anchorNames;
62
+ exports.createNodeAnchors = createNodeAnchors;
63
+ exports.findNewAnchor = findNewAnchor;
64
+ }));
65
+ //#endregion
66
+ export default require_anchors();
67
+ export { require_anchors };
@@ -0,0 +1,43 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/applyReviver.js
3
+ var require_applyReviver = /* @__PURE__ */ __commonJSMin(((exports) => {
4
+ /**
5
+ * Applies the JSON.parse reviver algorithm as defined in the ECMA-262 spec,
6
+ * in section 24.5.1.1 "Runtime Semantics: InternalizeJSONProperty" of the
7
+ * 2021 edition: https://tc39.es/ecma262/#sec-json.parse
8
+ *
9
+ * Includes extensions for handling Map and Set objects.
10
+ */
11
+ function applyReviver(reviver, obj, key, val) {
12
+ if (val && typeof val === "object") if (Array.isArray(val)) for (let i = 0, len = val.length; i < len; ++i) {
13
+ const v0 = val[i];
14
+ const v1 = applyReviver(reviver, val, String(i), v0);
15
+ if (v1 === void 0) delete val[i];
16
+ else if (v1 !== v0) val[i] = v1;
17
+ }
18
+ else if (val instanceof Map) for (const k of Array.from(val.keys())) {
19
+ const v0 = val.get(k);
20
+ const v1 = applyReviver(reviver, val, k, v0);
21
+ if (v1 === void 0) val.delete(k);
22
+ else if (v1 !== v0) val.set(k, v1);
23
+ }
24
+ else if (val instanceof Set) for (const v0 of Array.from(val)) {
25
+ const v1 = applyReviver(reviver, val, v0, v0);
26
+ if (v1 === void 0) val.delete(v0);
27
+ else if (v1 !== v0) {
28
+ val.delete(v0);
29
+ val.add(v1);
30
+ }
31
+ }
32
+ else for (const [k, v0] of Object.entries(val)) {
33
+ const v1 = applyReviver(reviver, val, k, v0);
34
+ if (v1 === void 0) delete val[k];
35
+ else if (v1 !== v0) val[k] = v1;
36
+ }
37
+ return reviver.call(obj, key, val);
38
+ }
39
+ exports.applyReviver = applyReviver;
40
+ }));
41
+ //#endregion
42
+ export default require_applyReviver();
43
+ export { require_applyReviver };
@@ -0,0 +1,69 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ import { require_identity } from "../nodes/identity.mjs";
3
+ import { require_Alias } from "../nodes/Alias.mjs";
4
+ import { require_Scalar } from "../nodes/Scalar.mjs";
5
+ //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/createNode.js
6
+ var require_createNode = /* @__PURE__ */ __commonJSMin(((exports) => {
7
+ var Alias = require_Alias();
8
+ var identity = require_identity();
9
+ var Scalar = require_Scalar();
10
+ const defaultTagPrefix = "tag:yaml.org,2002:";
11
+ function findTagObject(value, tagName, tags) {
12
+ if (tagName) {
13
+ const match = tags.filter((t) => t.tag === tagName);
14
+ const tagObj = match.find((t) => !t.format) ?? match[0];
15
+ if (!tagObj) throw new Error(`Tag ${tagName} not found`);
16
+ return tagObj;
17
+ }
18
+ return tags.find((t) => t.identify?.(value) && !t.format);
19
+ }
20
+ function createNode(value, tagName, ctx) {
21
+ if (identity.isDocument(value)) value = value.contents;
22
+ if (identity.isNode(value)) return value;
23
+ if (identity.isPair(value)) {
24
+ const map = ctx.schema[identity.MAP].createNode?.(ctx.schema, null, ctx);
25
+ map.items.push(value);
26
+ return map;
27
+ }
28
+ if (value instanceof String || value instanceof Number || value instanceof Boolean || typeof BigInt !== "undefined" && value instanceof BigInt) value = value.valueOf();
29
+ const { aliasDuplicateObjects, onAnchor, onTagObj, schema, sourceObjects } = ctx;
30
+ let ref = void 0;
31
+ if (aliasDuplicateObjects && value && typeof value === "object") {
32
+ ref = sourceObjects.get(value);
33
+ if (ref) {
34
+ ref.anchor ?? (ref.anchor = onAnchor(value));
35
+ return new Alias.Alias(ref.anchor);
36
+ } else {
37
+ ref = {
38
+ anchor: null,
39
+ node: null
40
+ };
41
+ sourceObjects.set(value, ref);
42
+ }
43
+ }
44
+ if (tagName?.startsWith("!!")) tagName = defaultTagPrefix + tagName.slice(2);
45
+ let tagObj = findTagObject(value, tagName, schema.tags);
46
+ if (!tagObj) {
47
+ if (value && typeof value.toJSON === "function") value = value.toJSON();
48
+ if (!value || typeof value !== "object") {
49
+ const node = new Scalar.Scalar(value);
50
+ if (ref) ref.node = node;
51
+ return node;
52
+ }
53
+ tagObj = value instanceof Map ? schema[identity.MAP] : Symbol.iterator in Object(value) ? schema[identity.SEQ] : schema[identity.MAP];
54
+ }
55
+ if (onTagObj) {
56
+ onTagObj(tagObj);
57
+ delete ctx.onTagObj;
58
+ }
59
+ const node = tagObj?.createNode ? tagObj.createNode(ctx.schema, value, ctx) : typeof tagObj?.nodeClass?.from === "function" ? tagObj.nodeClass.from(ctx.schema, value, ctx) : new Scalar.Scalar(value);
60
+ if (tagName) node.tag = tagName;
61
+ else if (!tagObj.default) node.tag = tagObj.tag;
62
+ if (ref) ref.node = node;
63
+ return node;
64
+ }
65
+ exports.createNode = createNode;
66
+ }));
67
+ //#endregion
68
+ export default require_createNode();
69
+ export { require_createNode };
@@ -0,0 +1,170 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ import { require_identity } from "../nodes/identity.mjs";
3
+ import { require_visit } from "../visit.mjs";
4
+ //#region node_modules/.pnpm/yaml@2.8.3/node_modules/yaml/dist/doc/directives.js
5
+ var require_directives = /* @__PURE__ */ __commonJSMin(((exports) => {
6
+ var identity = require_identity();
7
+ var visit = require_visit();
8
+ const escapeChars = {
9
+ "!": "%21",
10
+ ",": "%2C",
11
+ "[": "%5B",
12
+ "]": "%5D",
13
+ "{": "%7B",
14
+ "}": "%7D"
15
+ };
16
+ const escapeTagName = (tn) => tn.replace(/[!,[\]{}]/g, (ch) => escapeChars[ch]);
17
+ var Directives = class Directives {
18
+ constructor(yaml, tags) {
19
+ /**
20
+ * The directives-end/doc-start marker `---`. If `null`, a marker may still be
21
+ * included in the document's stringified representation.
22
+ */
23
+ this.docStart = null;
24
+ /** The doc-end marker `...`. */
25
+ this.docEnd = false;
26
+ this.yaml = Object.assign({}, Directives.defaultYaml, yaml);
27
+ this.tags = Object.assign({}, Directives.defaultTags, tags);
28
+ }
29
+ clone() {
30
+ const copy = new Directives(this.yaml, this.tags);
31
+ copy.docStart = this.docStart;
32
+ return copy;
33
+ }
34
+ /**
35
+ * During parsing, get a Directives instance for the current document and
36
+ * update the stream state according to the current version's spec.
37
+ */
38
+ atDocument() {
39
+ const res = new Directives(this.yaml, this.tags);
40
+ switch (this.yaml.version) {
41
+ case "1.1":
42
+ this.atNextDocument = true;
43
+ break;
44
+ case "1.2":
45
+ this.atNextDocument = false;
46
+ this.yaml = {
47
+ explicit: Directives.defaultYaml.explicit,
48
+ version: "1.2"
49
+ };
50
+ this.tags = Object.assign({}, Directives.defaultTags);
51
+ break;
52
+ }
53
+ return res;
54
+ }
55
+ /**
56
+ * @param onError - May be called even if the action was successful
57
+ * @returns `true` on success
58
+ */
59
+ add(line, onError) {
60
+ if (this.atNextDocument) {
61
+ this.yaml = {
62
+ explicit: Directives.defaultYaml.explicit,
63
+ version: "1.1"
64
+ };
65
+ this.tags = Object.assign({}, Directives.defaultTags);
66
+ this.atNextDocument = false;
67
+ }
68
+ const parts = line.trim().split(/[ \t]+/);
69
+ const name = parts.shift();
70
+ switch (name) {
71
+ case "%TAG": {
72
+ if (parts.length !== 2) {
73
+ onError(0, "%TAG directive should contain exactly two parts");
74
+ if (parts.length < 2) return false;
75
+ }
76
+ const [handle, prefix] = parts;
77
+ this.tags[handle] = prefix;
78
+ return true;
79
+ }
80
+ case "%YAML": {
81
+ this.yaml.explicit = true;
82
+ if (parts.length !== 1) {
83
+ onError(0, "%YAML directive should contain exactly one part");
84
+ return false;
85
+ }
86
+ const [version] = parts;
87
+ if (version === "1.1" || version === "1.2") {
88
+ this.yaml.version = version;
89
+ return true;
90
+ } else {
91
+ const isValid = /^\d+\.\d+$/.test(version);
92
+ onError(6, `Unsupported YAML version ${version}`, isValid);
93
+ return false;
94
+ }
95
+ }
96
+ default:
97
+ onError(0, `Unknown directive ${name}`, true);
98
+ return false;
99
+ }
100
+ }
101
+ /**
102
+ * Resolves a tag, matching handles to those defined in %TAG directives.
103
+ *
104
+ * @returns Resolved tag, which may also be the non-specific tag `'!'` or a
105
+ * `'!local'` tag, or `null` if unresolvable.
106
+ */
107
+ tagName(source, onError) {
108
+ if (source === "!") return "!";
109
+ if (source[0] !== "!") {
110
+ onError(`Not a valid tag: ${source}`);
111
+ return null;
112
+ }
113
+ if (source[1] === "<") {
114
+ const verbatim = source.slice(2, -1);
115
+ if (verbatim === "!" || verbatim === "!!") {
116
+ onError(`Verbatim tags aren't resolved, so ${source} is invalid.`);
117
+ return null;
118
+ }
119
+ if (source[source.length - 1] !== ">") onError("Verbatim tags must end with a >");
120
+ return verbatim;
121
+ }
122
+ const [, handle, suffix] = source.match(/^(.*!)([^!]*)$/s);
123
+ if (!suffix) onError(`The ${source} tag has no suffix`);
124
+ const prefix = this.tags[handle];
125
+ if (prefix) try {
126
+ return prefix + decodeURIComponent(suffix);
127
+ } catch (error) {
128
+ onError(String(error));
129
+ return null;
130
+ }
131
+ if (handle === "!") return source;
132
+ onError(`Could not resolve tag: ${source}`);
133
+ return null;
134
+ }
135
+ /**
136
+ * Given a fully resolved tag, returns its printable string form,
137
+ * taking into account current tag prefixes and defaults.
138
+ */
139
+ tagString(tag) {
140
+ for (const [handle, prefix] of Object.entries(this.tags)) if (tag.startsWith(prefix)) return handle + escapeTagName(tag.substring(prefix.length));
141
+ return tag[0] === "!" ? tag : `!<${tag}>`;
142
+ }
143
+ toString(doc) {
144
+ const lines = this.yaml.explicit ? [`%YAML ${this.yaml.version || "1.2"}`] : [];
145
+ const tagEntries = Object.entries(this.tags);
146
+ let tagNames;
147
+ if (doc && tagEntries.length > 0 && identity.isNode(doc.contents)) {
148
+ const tags = {};
149
+ visit.visit(doc.contents, (_key, node) => {
150
+ if (identity.isNode(node) && node.tag) tags[node.tag] = true;
151
+ });
152
+ tagNames = Object.keys(tags);
153
+ } else tagNames = [];
154
+ for (const [handle, prefix] of tagEntries) {
155
+ if (handle === "!!" && prefix === "tag:yaml.org,2002:") continue;
156
+ if (!doc || tagNames.some((tn) => tn.startsWith(prefix))) lines.push(`%TAG ${handle} ${prefix}`);
157
+ }
158
+ return lines.join("\n");
159
+ }
160
+ };
161
+ Directives.defaultYaml = {
162
+ explicit: false,
163
+ version: "1.2"
164
+ };
165
+ Directives.defaultTags = { "!!": "tag:yaml.org,2002:" };
166
+ exports.Directives = Directives;
167
+ }));
168
+ //#endregion
169
+ export default require_directives();
170
+ export { require_directives };