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,110 @@
1
+ import "../../../../../fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.mjs";
2
+ import "../../../../../fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.mjs";
3
+ import { require_src } from "../../../../../sisteransi@1.0.5/node_modules/sisteransi/src/index.mjs";
4
+ import { u } from "../../../../../@clack_core@1.2.0/node_modules/@clack/core/dist/index.mjs";
5
+ import "node:path";
6
+ import "node:fs";
7
+ import P from "node:process";
8
+ import { stripVTControlCharacters, styleText } from "node:util";
9
+ require_src();
10
+ function Ze() {
11
+ return P.platform !== "win32" ? P.env.TERM !== "linux" : !!P.env.CI || !!P.env.WT_SESSION || !!P.env.TERMINUS_SUBLIME || P.env.ConEmuTask === "{cmd::Cmder}" || P.env.TERM_PROGRAM === "Terminus-Sublime" || P.env.TERM_PROGRAM === "vscode" || P.env.TERM === "xterm-256color" || P.env.TERM === "alacritty" || P.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
12
+ }
13
+ const ee = Ze(), w = (e, i) => ee ? e : i;
14
+ w("◆", "*");
15
+ w("■", "x");
16
+ w("▲", "x");
17
+ const F = w("◇", "o");
18
+ w("┌", "T");
19
+ const d = w("│", "|");
20
+ w("└", "—");
21
+ w("┐", "T");
22
+ w("┘", "—");
23
+ w("●", ">");
24
+ w("○", " ");
25
+ w("◻", "[•]");
26
+ w("◼", "[+]");
27
+ w("◻", "[ ]");
28
+ w("▪", "•");
29
+ w("─", "-");
30
+ w("╮", "+");
31
+ w("├", "+");
32
+ w("╯", "+");
33
+ w("╰", "+");
34
+ w("╭", "+");
35
+ const he = w("●", "•"), pe = w("◆", "*"), me = w("▲", "!"), ge = w("■", "x"), O = {
36
+ message: (e = [], { symbol: i = styleText("gray", d), secondarySymbol: s = styleText("gray", d), output: r = process.stdout, spacing: u$7 = 1, withGuide: n } = {}) => {
37
+ const o = [], c = n ?? u.withGuide, a = c ? s : "", l = c ? `${i} ` : "", $ = c ? `${s} ` : "";
38
+ for (let p = 0; p < u$7; p++) o.push(a);
39
+ const y = Array.isArray(e) ? e : e.split(`
40
+ `);
41
+ if (y.length > 0) {
42
+ const [p, ...m] = y;
43
+ p.length > 0 ? o.push(`${l}${p}`) : o.push(c ? i : "");
44
+ for (const g of m) g.length > 0 ? o.push(`${$}${g}`) : o.push(c ? s : "");
45
+ }
46
+ r.write(`${o.join(`
47
+ `)}
48
+ `);
49
+ },
50
+ info: (e, i) => {
51
+ O.message(e, {
52
+ ...i,
53
+ symbol: styleText("blue", he)
54
+ });
55
+ },
56
+ success: (e, i) => {
57
+ O.message(e, {
58
+ ...i,
59
+ symbol: styleText("green", pe)
60
+ });
61
+ },
62
+ step: (e, i) => {
63
+ O.message(e, {
64
+ ...i,
65
+ symbol: styleText("green", F)
66
+ });
67
+ },
68
+ warn: (e, i) => {
69
+ O.message(e, {
70
+ ...i,
71
+ symbol: styleText("yellow", me)
72
+ });
73
+ },
74
+ warning: (e, i) => {
75
+ O.warn(e, i);
76
+ },
77
+ error: (e, i) => {
78
+ O.message(e, {
79
+ ...i,
80
+ symbol: styleText("red", ge)
81
+ });
82
+ }
83
+ };
84
+ w("─", "-"), w("━", "="), w("█", "#");
85
+ const je = `${styleText("gray", d)} `, K = {
86
+ message: async (e, { symbol: i = styleText("gray", d) } = {}) => {
87
+ process.stdout.write(`${styleText("gray", d)}
88
+ ${i} `);
89
+ let s = 3;
90
+ for await (let r of e) {
91
+ r = r.replace(/\n/g, `
92
+ ${je}`), r.includes(`
93
+ `) && (s = 3 + stripVTControlCharacters(r.slice(r.lastIndexOf(`
94
+ `))).length);
95
+ const u = stripVTControlCharacters(r).length;
96
+ s + u < process.stdout.columns ? (s += u, process.stdout.write(r)) : (process.stdout.write(`
97
+ ${je}${r.trimStart()}`), s = 3 + stripVTControlCharacters(r.trimStart()).length);
98
+ }
99
+ process.stdout.write(`
100
+ `);
101
+ },
102
+ info: (e) => K.message(e, { symbol: styleText("blue", he) }),
103
+ success: (e) => K.message(e, { symbol: styleText("green", pe) }),
104
+ step: (e) => K.message(e, { symbol: styleText("green", F) }),
105
+ warn: (e) => K.message(e, { symbol: styleText("yellow", me) }),
106
+ warning: (e) => K.warn(e),
107
+ error: (e) => K.message(e, { symbol: styleText("red", ge) })
108
+ };
109
+ //#endregion
110
+ export {};
@@ -0,0 +1,13 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ import { require_src } from "./src/index.mjs";
3
+ //#region node_modules/.pnpm/@kwsites+file-exists@1.1.1/node_modules/@kwsites/file-exists/dist/index.js
4
+ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
5
+ function __export(m) {
6
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
7
+ }
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ __export(require_src());
10
+ }));
11
+ //#endregion
12
+ export default require_dist();
13
+ export { require_dist };
@@ -0,0 +1,59 @@
1
+ import { __commonJSMin, __require } from "../../../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ import { require_src as require_src$1 } from "../../../../../../debug@4.4.3/node_modules/debug/src/index.mjs";
3
+ //#region node_modules/.pnpm/@kwsites+file-exists@1.1.1/node_modules/@kwsites/file-exists/dist/src/index.js
4
+ var require_src = /* @__PURE__ */ __commonJSMin(((exports) => {
5
+ var __importDefault = exports && exports.__importDefault || function(mod) {
6
+ return mod && mod.__esModule ? mod : { "default": mod };
7
+ };
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ const fs_1 = __require("fs");
10
+ const log = __importDefault(require_src$1()).default("@kwsites/file-exists");
11
+ function check(path, isFile, isDirectory) {
12
+ log(`checking %s`, path);
13
+ try {
14
+ const stat = fs_1.statSync(path);
15
+ if (stat.isFile() && isFile) {
16
+ log(`[OK] path represents a file`);
17
+ return true;
18
+ }
19
+ if (stat.isDirectory() && isDirectory) {
20
+ log(`[OK] path represents a directory`);
21
+ return true;
22
+ }
23
+ log(`[FAIL] path represents something other than a file or directory`);
24
+ return false;
25
+ } catch (e) {
26
+ if (e.code === "ENOENT") {
27
+ log(`[FAIL] path is not accessible: %o`, e);
28
+ return false;
29
+ }
30
+ log(`[FATAL] %o`, e);
31
+ throw e;
32
+ }
33
+ }
34
+ /**
35
+ * Synchronous validation of a path existing either as a file or as a directory.
36
+ *
37
+ * @param {string} path The path to check
38
+ * @param {number} type One or both of the exported numeric constants
39
+ */
40
+ function exists(path, type = exports.READABLE) {
41
+ return check(path, (type & exports.FILE) > 0, (type & exports.FOLDER) > 0);
42
+ }
43
+ exports.exists = exists;
44
+ /**
45
+ * Constant representing a file
46
+ */
47
+ exports.FILE = 1;
48
+ /**
49
+ * Constant representing a folder
50
+ */
51
+ exports.FOLDER = 2;
52
+ /**
53
+ * Constant representing either a file or a folder
54
+ */
55
+ exports.READABLE = exports.FILE + exports.FOLDER;
56
+ }));
57
+ //#endregion
58
+ export default require_src();
59
+ export { require_src };
@@ -0,0 +1,55 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
2
+ //#region node_modules/.pnpm/@kwsites+promise-deferred@1.1.1/node_modules/@kwsites/promise-deferred/dist/index.js
3
+ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.createDeferred = exports.deferred = void 0;
6
+ /**
7
+ * Creates a new `DeferredPromise`
8
+ *
9
+ * ```typescript
10
+ import {deferred} from '@kwsites/promise-deferred`;
11
+ ```
12
+ */
13
+ function deferred() {
14
+ let done;
15
+ let fail;
16
+ let status = "pending";
17
+ return {
18
+ promise: new Promise((_done, _fail) => {
19
+ done = _done;
20
+ fail = _fail;
21
+ }),
22
+ done(result) {
23
+ if (status === "pending") {
24
+ status = "resolved";
25
+ done(result);
26
+ }
27
+ },
28
+ fail(error) {
29
+ if (status === "pending") {
30
+ status = "rejected";
31
+ fail(error);
32
+ }
33
+ },
34
+ get fulfilled() {
35
+ return status !== "pending";
36
+ },
37
+ get status() {
38
+ return status;
39
+ }
40
+ };
41
+ }
42
+ exports.deferred = deferred;
43
+ /**
44
+ * Alias of the exported `deferred` function, to help consumers wanting to use `deferred` as the
45
+ * local variable name rather than the factory import name, without needing to rename on import.
46
+ *
47
+ * ```typescript
48
+ import {createDeferred} from '@kwsites/promise-deferred`;
49
+ ```
50
+ */
51
+ exports.createDeferred = deferred;
52
+ }));
53
+ //#endregion
54
+ export default require_dist();
55
+ export { require_dist };
@@ -0,0 +1,32 @@
1
+ //#region node_modules/.pnpm/@octokit+auth-token@6.0.0/node_modules/@octokit/auth-token/dist-bundle/index.js
2
+ var b64url = "(?:[a-zA-Z0-9_-]+)";
3
+ var sep = "\\.";
4
+ var jwtRE = new RegExp(`^${b64url}${sep}${b64url}${sep}${b64url}$`);
5
+ var isJWT = jwtRE.test.bind(jwtRE);
6
+ async function auth(token) {
7
+ const isApp = isJWT(token);
8
+ const isInstallation = token.startsWith("v1.") || token.startsWith("ghs_");
9
+ const isUserToServer = token.startsWith("ghu_");
10
+ return {
11
+ type: "token",
12
+ token,
13
+ tokenType: isApp ? "app" : isInstallation ? "installation" : isUserToServer ? "user-to-server" : "oauth"
14
+ };
15
+ }
16
+ function withAuthorizationPrefix(token) {
17
+ if (token.split(/\./).length === 3) return `bearer ${token}`;
18
+ return `token ${token}`;
19
+ }
20
+ async function hook(token, request, route, parameters) {
21
+ const endpoint = request.endpoint.merge(route, parameters);
22
+ endpoint.headers.authorization = withAuthorizationPrefix(token);
23
+ return request(endpoint);
24
+ }
25
+ var createTokenAuth = function createTokenAuth2(token) {
26
+ if (!token) throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");
27
+ if (typeof token !== "string") throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");
28
+ token = token.replace(/^(token|bearer) +/i, "");
29
+ return Object.assign(auth.bind(null, token), { hook: hook.bind(null, token) });
30
+ };
31
+ //#endregion
32
+ export { createTokenAuth };
@@ -0,0 +1,94 @@
1
+ import { getUserAgent } from "../../../../../universal-user-agent@7.0.3/node_modules/universal-user-agent/index.mjs";
2
+ import before_after_hook_default from "../../../../../before-after-hook@4.0.0/node_modules/before-after-hook/index.mjs";
3
+ import { request } from "../../../../../@octokit_request@10.0.8/node_modules/@octokit/request/dist-bundle/index.mjs";
4
+ import { withCustomRequest } from "../../../../../@octokit_graphql@9.0.3/node_modules/@octokit/graphql/dist-bundle/index.mjs";
5
+ import { createTokenAuth } from "../../../../../@octokit_auth-token@6.0.0/node_modules/@octokit/auth-token/dist-bundle/index.mjs";
6
+ import { VERSION } from "./version.mjs";
7
+ //#region node_modules/.pnpm/@octokit+core@7.0.6/node_modules/@octokit/core/dist-src/index.js
8
+ const noop = () => {};
9
+ const consoleWarn = console.warn.bind(console);
10
+ const consoleError = console.error.bind(console);
11
+ function createLogger(logger = {}) {
12
+ if (typeof logger.debug !== "function") logger.debug = noop;
13
+ if (typeof logger.info !== "function") logger.info = noop;
14
+ if (typeof logger.warn !== "function") logger.warn = consoleWarn;
15
+ if (typeof logger.error !== "function") logger.error = consoleError;
16
+ return logger;
17
+ }
18
+ const userAgentTrail = `octokit-core.js/${VERSION} ${getUserAgent()}`;
19
+ var Octokit = class {
20
+ static VERSION = VERSION;
21
+ static defaults(defaults) {
22
+ const OctokitWithDefaults = class extends this {
23
+ constructor(...args) {
24
+ const options = args[0] || {};
25
+ if (typeof defaults === "function") {
26
+ super(defaults(options));
27
+ return;
28
+ }
29
+ super(Object.assign({}, defaults, options, options.userAgent && defaults.userAgent ? { userAgent: `${options.userAgent} ${defaults.userAgent}` } : null));
30
+ }
31
+ };
32
+ return OctokitWithDefaults;
33
+ }
34
+ static plugins = [];
35
+ /**
36
+ * Attach a plugin (or many) to your Octokit instance.
37
+ *
38
+ * @example
39
+ * const API = Octokit.plugin(plugin1, plugin2, plugin3, ...)
40
+ */
41
+ static plugin(...newPlugins) {
42
+ const currentPlugins = this.plugins;
43
+ const NewOctokit = class extends this {
44
+ static plugins = currentPlugins.concat(newPlugins.filter((plugin) => !currentPlugins.includes(plugin)));
45
+ };
46
+ return NewOctokit;
47
+ }
48
+ constructor(options = {}) {
49
+ const hook = new before_after_hook_default.Collection();
50
+ const requestDefaults = {
51
+ baseUrl: request.endpoint.DEFAULTS.baseUrl,
52
+ headers: {},
53
+ request: Object.assign({}, options.request, { hook: hook.bind(null, "request") }),
54
+ mediaType: {
55
+ previews: [],
56
+ format: ""
57
+ }
58
+ };
59
+ requestDefaults.headers["user-agent"] = options.userAgent ? `${options.userAgent} ${userAgentTrail}` : userAgentTrail;
60
+ if (options.baseUrl) requestDefaults.baseUrl = options.baseUrl;
61
+ if (options.previews) requestDefaults.mediaType.previews = options.previews;
62
+ if (options.timeZone) requestDefaults.headers["time-zone"] = options.timeZone;
63
+ this.request = request.defaults(requestDefaults);
64
+ this.graphql = withCustomRequest(this.request).defaults(requestDefaults);
65
+ this.log = createLogger(options.log);
66
+ this.hook = hook;
67
+ if (!options.authStrategy) if (!options.auth) this.auth = async () => ({ type: "unauthenticated" });
68
+ else {
69
+ const auth = createTokenAuth(options.auth);
70
+ hook.wrap("request", auth.hook);
71
+ this.auth = auth;
72
+ }
73
+ else {
74
+ const { authStrategy, ...otherOptions } = options;
75
+ const auth = authStrategy(Object.assign({
76
+ request: this.request,
77
+ log: this.log,
78
+ octokit: this,
79
+ octokitOptions: otherOptions
80
+ }, options.auth));
81
+ hook.wrap("request", auth.hook);
82
+ this.auth = auth;
83
+ }
84
+ const classConstructor = this.constructor;
85
+ for (let i = 0; i < classConstructor.plugins.length; ++i) Object.assign(this, classConstructor.plugins[i](this, options));
86
+ }
87
+ request;
88
+ graphql;
89
+ log;
90
+ hook;
91
+ auth;
92
+ };
93
+ //#endregion
94
+ export { Octokit };
@@ -0,0 +1,4 @@
1
+ //#region node_modules/.pnpm/@octokit+core@7.0.6/node_modules/@octokit/core/dist-src/version.js
2
+ const VERSION = "7.0.6";
3
+ //#endregion
4
+ export { VERSION };
@@ -0,0 +1,223 @@
1
+ import { getUserAgent } from "../../../../../universal-user-agent@7.0.3/node_modules/universal-user-agent/index.mjs";
2
+ //#region node_modules/.pnpm/@octokit+endpoint@11.0.3/node_modules/@octokit/endpoint/dist-bundle/index.js
3
+ var userAgent = `octokit-endpoint.js/0.0.0-development ${getUserAgent()}`;
4
+ var DEFAULTS = {
5
+ method: "GET",
6
+ baseUrl: "https://api.github.com",
7
+ headers: {
8
+ accept: "application/vnd.github.v3+json",
9
+ "user-agent": userAgent
10
+ },
11
+ mediaType: { format: "" }
12
+ };
13
+ function lowercaseKeys(object) {
14
+ if (!object) return {};
15
+ return Object.keys(object).reduce((newObj, key) => {
16
+ newObj[key.toLowerCase()] = object[key];
17
+ return newObj;
18
+ }, {});
19
+ }
20
+ function isPlainObject(value) {
21
+ if (typeof value !== "object" || value === null) return false;
22
+ if (Object.prototype.toString.call(value) !== "[object Object]") return false;
23
+ const proto = Object.getPrototypeOf(value);
24
+ if (proto === null) return true;
25
+ const Ctor = Object.prototype.hasOwnProperty.call(proto, "constructor") && proto.constructor;
26
+ return typeof Ctor === "function" && Ctor instanceof Ctor && Function.prototype.call(Ctor) === Function.prototype.call(value);
27
+ }
28
+ function mergeDeep(defaults, options) {
29
+ const result = Object.assign({}, defaults);
30
+ Object.keys(options).forEach((key) => {
31
+ if (isPlainObject(options[key])) if (!(key in defaults)) Object.assign(result, { [key]: options[key] });
32
+ else result[key] = mergeDeep(defaults[key], options[key]);
33
+ else Object.assign(result, { [key]: options[key] });
34
+ });
35
+ return result;
36
+ }
37
+ function removeUndefinedProperties(obj) {
38
+ for (const key in obj) if (obj[key] === void 0) delete obj[key];
39
+ return obj;
40
+ }
41
+ function merge(defaults, route, options) {
42
+ if (typeof route === "string") {
43
+ let [method, url] = route.split(" ");
44
+ options = Object.assign(url ? {
45
+ method,
46
+ url
47
+ } : { url: method }, options);
48
+ } else options = Object.assign({}, route);
49
+ options.headers = lowercaseKeys(options.headers);
50
+ removeUndefinedProperties(options);
51
+ removeUndefinedProperties(options.headers);
52
+ const mergedOptions = mergeDeep(defaults || {}, options);
53
+ if (options.url === "/graphql") {
54
+ if (defaults && defaults.mediaType.previews?.length) mergedOptions.mediaType.previews = defaults.mediaType.previews.filter((preview) => !mergedOptions.mediaType.previews.includes(preview)).concat(mergedOptions.mediaType.previews);
55
+ mergedOptions.mediaType.previews = (mergedOptions.mediaType.previews || []).map((preview) => preview.replace(/-preview/, ""));
56
+ }
57
+ return mergedOptions;
58
+ }
59
+ function addQueryParameters(url, parameters) {
60
+ const separator = /\?/.test(url) ? "&" : "?";
61
+ const names = Object.keys(parameters);
62
+ if (names.length === 0) return url;
63
+ return url + separator + names.map((name) => {
64
+ if (name === "q") return "q=" + parameters.q.split("+").map(encodeURIComponent).join("+");
65
+ return `${name}=${encodeURIComponent(parameters[name])}`;
66
+ }).join("&");
67
+ }
68
+ var urlVariableRegex = /\{[^{}}]+\}/g;
69
+ function removeNonChars(variableName) {
70
+ return variableName.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/);
71
+ }
72
+ function extractUrlVariableNames(url) {
73
+ const matches = url.match(urlVariableRegex);
74
+ if (!matches) return [];
75
+ return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []);
76
+ }
77
+ function omit(object, keysToOmit) {
78
+ const result = { __proto__: null };
79
+ for (const key of Object.keys(object)) if (keysToOmit.indexOf(key) === -1) result[key] = object[key];
80
+ return result;
81
+ }
82
+ function encodeReserved(str) {
83
+ return str.split(/(%[0-9A-Fa-f]{2})/g).map(function(part) {
84
+ if (!/%[0-9A-Fa-f]/.test(part)) part = encodeURI(part).replace(/%5B/g, "[").replace(/%5D/g, "]");
85
+ return part;
86
+ }).join("");
87
+ }
88
+ function encodeUnreserved(str) {
89
+ return encodeURIComponent(str).replace(/[!'()*]/g, function(c) {
90
+ return "%" + c.charCodeAt(0).toString(16).toUpperCase();
91
+ });
92
+ }
93
+ function encodeValue(operator, value, key) {
94
+ value = operator === "+" || operator === "#" ? encodeReserved(value) : encodeUnreserved(value);
95
+ if (key) return encodeUnreserved(key) + "=" + value;
96
+ else return value;
97
+ }
98
+ function isDefined(value) {
99
+ return value !== void 0 && value !== null;
100
+ }
101
+ function isKeyOperator(operator) {
102
+ return operator === ";" || operator === "&" || operator === "?";
103
+ }
104
+ function getValues(context, operator, key, modifier) {
105
+ var value = context[key], result = [];
106
+ if (isDefined(value) && value !== "") if (typeof value === "string" || typeof value === "number" || typeof value === "bigint" || typeof value === "boolean") {
107
+ value = value.toString();
108
+ if (modifier && modifier !== "*") value = value.substring(0, parseInt(modifier, 10));
109
+ result.push(encodeValue(operator, value, isKeyOperator(operator) ? key : ""));
110
+ } else if (modifier === "*") if (Array.isArray(value)) value.filter(isDefined).forEach(function(value2) {
111
+ result.push(encodeValue(operator, value2, isKeyOperator(operator) ? key : ""));
112
+ });
113
+ else Object.keys(value).forEach(function(k) {
114
+ if (isDefined(value[k])) result.push(encodeValue(operator, value[k], k));
115
+ });
116
+ else {
117
+ const tmp = [];
118
+ if (Array.isArray(value)) value.filter(isDefined).forEach(function(value2) {
119
+ tmp.push(encodeValue(operator, value2));
120
+ });
121
+ else Object.keys(value).forEach(function(k) {
122
+ if (isDefined(value[k])) {
123
+ tmp.push(encodeUnreserved(k));
124
+ tmp.push(encodeValue(operator, value[k].toString()));
125
+ }
126
+ });
127
+ if (isKeyOperator(operator)) result.push(encodeUnreserved(key) + "=" + tmp.join(","));
128
+ else if (tmp.length !== 0) result.push(tmp.join(","));
129
+ }
130
+ else if (operator === ";") {
131
+ if (isDefined(value)) result.push(encodeUnreserved(key));
132
+ } else if (value === "" && (operator === "&" || operator === "?")) result.push(encodeUnreserved(key) + "=");
133
+ else if (value === "") result.push("");
134
+ return result;
135
+ }
136
+ function parseUrl(template) {
137
+ return { expand: expand.bind(null, template) };
138
+ }
139
+ function expand(template, context) {
140
+ var operators = [
141
+ "+",
142
+ "#",
143
+ ".",
144
+ "/",
145
+ ";",
146
+ "?",
147
+ "&"
148
+ ];
149
+ template = template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function(_, expression, literal) {
150
+ if (expression) {
151
+ let operator = "";
152
+ const values = [];
153
+ if (operators.indexOf(expression.charAt(0)) !== -1) {
154
+ operator = expression.charAt(0);
155
+ expression = expression.substr(1);
156
+ }
157
+ expression.split(/,/g).forEach(function(variable) {
158
+ var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable);
159
+ values.push(getValues(context, operator, tmp[1], tmp[2] || tmp[3]));
160
+ });
161
+ if (operator && operator !== "+") {
162
+ var separator = ",";
163
+ if (operator === "?") separator = "&";
164
+ else if (operator !== "#") separator = operator;
165
+ return (values.length !== 0 ? operator : "") + values.join(separator);
166
+ } else return values.join(",");
167
+ } else return encodeReserved(literal);
168
+ });
169
+ if (template === "/") return template;
170
+ else return template.replace(/\/$/, "");
171
+ }
172
+ function parse(options) {
173
+ let method = options.method.toUpperCase();
174
+ let url = (options.url || "/").replace(/:([a-z]\w+)/g, "{$1}");
175
+ let headers = Object.assign({}, options.headers);
176
+ let body;
177
+ let parameters = omit(options, [
178
+ "method",
179
+ "baseUrl",
180
+ "url",
181
+ "headers",
182
+ "request",
183
+ "mediaType"
184
+ ]);
185
+ const urlVariableNames = extractUrlVariableNames(url);
186
+ url = parseUrl(url).expand(parameters);
187
+ if (!/^http/.test(url)) url = options.baseUrl + url;
188
+ const remainingParameters = omit(parameters, Object.keys(options).filter((option) => urlVariableNames.includes(option)).concat("baseUrl"));
189
+ if (!/application\/octet-stream/i.test(headers.accept)) {
190
+ if (options.mediaType.format) headers.accept = headers.accept.split(/,/).map((format) => format.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/, `application/vnd$1$2.${options.mediaType.format}`)).join(",");
191
+ if (url.endsWith("/graphql")) {
192
+ if (options.mediaType.previews?.length) headers.accept = (headers.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g) || []).concat(options.mediaType.previews).map((preview) => {
193
+ return `application/vnd.github.${preview}-preview${options.mediaType.format ? `.${options.mediaType.format}` : "+json"}`;
194
+ }).join(",");
195
+ }
196
+ }
197
+ if (["GET", "HEAD"].includes(method)) url = addQueryParameters(url, remainingParameters);
198
+ else if ("data" in remainingParameters) body = remainingParameters.data;
199
+ else if (Object.keys(remainingParameters).length) body = remainingParameters;
200
+ if (!headers["content-type"] && typeof body !== "undefined") headers["content-type"] = "application/json; charset=utf-8";
201
+ if (["PATCH", "PUT"].includes(method) && typeof body === "undefined") body = "";
202
+ return Object.assign({
203
+ method,
204
+ url,
205
+ headers
206
+ }, typeof body !== "undefined" ? { body } : null, options.request ? { request: options.request } : null);
207
+ }
208
+ function endpointWithDefaults(defaults, route, options) {
209
+ return parse(merge(defaults, route, options));
210
+ }
211
+ function withDefaults(oldDefaults, newDefaults) {
212
+ const DEFAULTS2 = merge(oldDefaults, newDefaults);
213
+ const endpoint2 = endpointWithDefaults.bind(null, DEFAULTS2);
214
+ return Object.assign(endpoint2, {
215
+ DEFAULTS: DEFAULTS2,
216
+ defaults: withDefaults.bind(null, DEFAULTS2),
217
+ merge: merge.bind(null, DEFAULTS2),
218
+ parse
219
+ });
220
+ }
221
+ var endpoint = withDefaults(null, DEFAULTS);
222
+ //#endregion
223
+ export { endpoint };