@poe-platform/safe-bash 0.1.782 → 0.1.783

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 (116) hide show
  1. package/README.md +40 -0
  2. package/dist/office-package/zip-sync.d.ts +2 -0
  3. package/dist/office-package/zip-sync.js +111 -0
  4. package/dist/safe-bash/chunks/chunk-4FDQJUFW.js +3464 -0
  5. package/dist/safe-bash/chunks/csvkit-K55OYAQC.js +1564 -0
  6. package/dist/safe-bash/chunks/ffmpeg-BEFTQ6DZ.js +60 -0
  7. package/dist/safe-bash/chunks/gh-HQWOWLWE.js +41 -0
  8. package/dist/safe-bash/chunks/git-UFNPAOYZ.js +52 -0
  9. package/dist/safe-bash/chunks/imagemagick-53BMHH6D.js +134 -0
  10. package/dist/safe-bash/chunks/implementation-QUTAAYMT.js +105 -0
  11. package/dist/safe-bash/chunks/pdfimages-4OYI6FLG.js +73 -0
  12. package/dist/safe-bash/chunks/pdfinfo-I7U6TQPP.js +153 -0
  13. package/dist/safe-bash/chunks/pdftk-SUA6FMHI.js +79 -0
  14. package/dist/safe-bash/chunks/pdftoppm-4C5DGEWX.js +139 -0
  15. package/dist/safe-bash/chunks/pdftotext-Y4WI225Y.js +118 -0
  16. package/dist/safe-bash/chunks/qpdf-IORB4RV5.js +68 -0
  17. package/dist/safe-bash/chunks/sips-WHAMJFEU.js +77 -0
  18. package/dist/safe-bash/chunks/soffice-SYEK6WJS.js +89 -0
  19. package/dist/safe-bash/chunks/wkhtmltopdf-ZIICWJLF.js +85 -0
  20. package/dist/safe-bash/command-chunks/chunk-2LP3VMPA.js +58 -0
  21. package/dist/safe-bash/command-chunks/{chunk-CG4JSOK2.js → chunk-3HDIDEUJ.js} +1 -1
  22. package/dist/safe-bash/command-chunks/chunk-4DSJDVBM.js +2897 -0
  23. package/dist/safe-bash/command-chunks/{chunk-GBHSE6ZO.js → chunk-5GRLAARV.js} +1 -1
  24. package/dist/safe-bash/command-chunks/chunk-7OKDCM5U.js +112 -0
  25. package/dist/safe-bash/command-chunks/{chunk-FH3D75FC.js → chunk-ADCGH6A7.js} +1 -1
  26. package/dist/safe-bash/command-chunks/{chunk-MTKXVRXL.js → chunk-DREUDEQG.js} +1 -1
  27. package/dist/safe-bash/command-chunks/{chunk-ADBFNLLK.js → chunk-FXYWQ6S4.js} +16 -14
  28. package/dist/safe-bash/command-chunks/{chunk-Y2KHC6TZ.js → chunk-IDKD76KR.js} +5 -3
  29. package/dist/safe-bash/command-chunks/{chunk-K6KBYLQC.js → chunk-JUDOV5MJ.js} +1 -1
  30. package/dist/safe-bash/command-chunks/{chunk-3ZK5F23O.js → chunk-L3MLMXL4.js} +1 -1
  31. package/dist/safe-bash/command-chunks/{chunk-E5TEVROY.js → chunk-PFBJR2PY.js} +4 -4
  32. package/dist/safe-bash/command-chunks/{chunk-YGYOVXTO.js → chunk-UUR2S7AD.js} +9 -5
  33. package/dist/safe-bash/command-chunks/chunk-VIVYKW7Q.js +101 -0
  34. package/dist/safe-bash/command-chunks/{chunk-I5GLTNVH.js → chunk-X4P42NYK.js} +2 -27
  35. package/dist/safe-bash/command-chunks/{chunk-XF6TXYLD.js → chunk-Z57TV6TC.js} +4 -54
  36. package/dist/safe-bash/command-chunks/{chunk-QDPRSPHQ.js → chunk-Z64BW7CG.js} +1 -1
  37. package/dist/safe-bash/command-chunks/{chunk-X3IVPNC3.js → chunk-Z7TYZG3A.js} +5 -3
  38. package/dist/safe-bash/command-chunks/{chunk-GZXLPWT5.js → chunk-ZF3ZVGQC.js} +259 -258
  39. package/dist/safe-bash/command-chunks/{pptx-ZL6L7KP2-QVZEYFUV.js → pptx-KY2OJWZW-76LBHCHD.js} +4 -3
  40. package/dist/safe-bash/commands/csvkit/index.d.ts +1 -8
  41. package/dist/safe-bash/commands/csvkit/index.js +5 -1639
  42. package/dist/safe-bash/commands/csvkit/sync.d.ts +9 -0
  43. package/dist/safe-bash/commands/csvkit/sync.js +1639 -0
  44. package/dist/safe-bash/commands/pandoc/implementation.d.ts +8 -0
  45. package/dist/safe-bash/commands/pandoc/implementation.js +92 -0
  46. package/dist/safe-bash/commands/pandoc/index.d.ts +2 -6
  47. package/dist/safe-bash/commands/pandoc/index.js +2 -90
  48. package/dist/safe-bash/core.browser.js +808 -6271
  49. package/dist/safe-bash/core.d.ts +17 -16
  50. package/dist/safe-bash/core.js +17 -16
  51. package/dist/safe-bash/lazy-gh.d.ts +10 -0
  52. package/dist/safe-bash/lazy-gh.js +30 -0
  53. package/dist/safe-bash/lazy-optional.d.ts +499 -0
  54. package/dist/safe-bash/lazy-optional.js +609 -0
  55. package/dist/safe-bash/plugins/composition.d.ts +1 -1
  56. package/dist/safe-bash/plugins/composition.js +1 -1
  57. package/dist/safe-bash/plugins/lazy-command.d.ts +9 -0
  58. package/dist/safe-bash/plugins/lazy-command.js +57 -0
  59. package/dist/safe-bash/shell/runtime.js +24 -25
  60. package/dist/safe-bash-command-csvkit/cli/lexical.d.ts +3 -0
  61. package/dist/safe-bash-command-csvkit/cli/parser.d.ts +1 -2
  62. package/dist/safe-bash-command-csvkit/codecs/python.js +3 -2
  63. package/dist/safe-bash-command-csvkit/codecs/utf8.js +2 -1
  64. package/dist/safe-bash-command-csvkit/index.js +453 -3270
  65. package/dist/safe-bash-command-csvkit/sync-support.d.ts +7 -0
  66. package/dist/safe-bash-command-csvkit/sync-support.js +31 -0
  67. package/dist/safe-bash-command-gh/index.js +25 -17
  68. package/dist/safe-bash-command-git/index.js +6 -10
  69. package/dist/safe-bash-command-imagemagick/index.js +2 -2
  70. package/dist/safe-bash-command-pandoc/citeproc-filters.js +4 -2
  71. package/dist/safe-bash-command-pandoc/command.js +8 -6
  72. package/dist/safe-bash-command-pandoc/index.js +8 -6
  73. package/dist/safe-bash-command-pandoc/lua-filters.js +3 -2
  74. package/dist/safe-bash-command-pandoc/options.d.ts +5 -0
  75. package/dist/safe-bash-command-pandoc/options.js +93 -0
  76. package/dist/safe-bash-command-sips/index.js +2 -2
  77. package/dist/safe-bash-command-soffice/index.d.ts +1 -2
  78. package/dist/safe-bash-command-soffice/index.js +22 -18
  79. package/dist/safe-bash-command-ssconvert/commands.js +2 -2
  80. package/dist/safe-bash-command-ssconvert/core.js +2 -2
  81. package/dist/safe-bash-command-ssconvert/formats/csv.js +2 -2
  82. package/dist/safe-bash-command-ssconvert/formats/xls.js +3 -3
  83. package/dist/safe-bash-command-ssconvert/formats/xlsx.js +3 -3
  84. package/dist/safe-bash-command-timeout/index.js +3 -3
  85. package/dist/safe-bash-command-yq/index.js +5 -5
  86. package/dist/safe-bash-compression-engine/bounded-codec.js +3 -3
  87. package/dist/safe-bash-compression-engine/codec-loader.js +2 -2
  88. package/dist/safe-bash-compression-engine/files.js +7 -7
  89. package/dist/safe-bash-compression-engine/index.js +6 -6
  90. package/dist/safe-bash-compression-engine/operand.js +7 -7
  91. package/dist/safe-bash-compression-engine/stream.js +6 -6
  92. package/dist/safe-bash-compression-engine/zstd-decode.js +5 -5
  93. package/dist/safe-bash-contracts/diagnostics.js +3 -3
  94. package/dist/safe-bash-contracts/escaping.js +9 -9
  95. package/dist/safe-bash-contracts/filesystem-descriptor.js +1 -1
  96. package/dist/safe-bash-contracts/filesystem-output.js +10 -10
  97. package/dist/safe-bash-contracts/index.js +40 -40
  98. package/dist/safe-bash-io-engine/commands/search/requirements.js +4 -4
  99. package/dist/safe-bash-io-engine/commands/text-programs/shared.js +4 -4
  100. package/dist/safe-bash-io-engine/internal.d.ts +9 -0
  101. package/dist/safe-bash-io-engine/internal.js +3 -3
  102. package/dist/safe-bash-query-engine/index.js +6 -6
  103. package/dist/safe-bash-query-engine/interpreter.js +5 -5
  104. package/dist/safe-bash-query-engine/query-core.js +6 -6
  105. package/dist/safe-bash-regex-engine/execution/bounded-provider.js +3 -3
  106. package/dist/safe-bash-regex-engine/index.js +2 -2
  107. package/dist/safe-bash-regex-engine/text/regex.js +2 -2
  108. package/dist/safe-bash-xml-engine/index.js +3 -3
  109. package/package.json +4 -4
  110. package/dist/safe-bash/command-chunks/{chunk-DC52GWRK.js → chunk-BUKYQBXO.js} +13 -13
  111. package/dist/safe-bash/command-chunks/{chunk-QJ3ONEBI.js → chunk-DEH3CMGL.js} +3 -3
  112. package/dist/safe-bash/command-chunks/{chunk-Y64PA6IA.js → chunk-KHZZ4V3L.js} +3 -3
  113. package/dist/safe-bash/command-chunks/{chunk-I7PKIGII.js → chunk-QIRUOY2W.js} +3 -3
  114. package/dist/safe-bash/command-chunks/{chunk-HQG2IBZL.js → chunk-TOSM3T3A.js} +6 -6
  115. package/dist/safe-bash/command-chunks/{chunk-F4IQCXZG.js → chunk-VBZMCL23.js} +4 -4
  116. package/dist/safe-bash/command-chunks/{chunk-J2NPH7DO.js → chunk-W2T7JWT3.js} +3 -3
@@ -74,41 +74,42 @@ export { createLocaleCommand, createLocaleCommands, localeCommands, type LocaleC
74
74
  export { createDfCommand, createDfCommands, dfCommands, type DfCommandsOptions, type DfLimits, type DfMountEntry, type DfOptions } from "./commands/df/index.js";
75
75
  export { createSqlite3Command, createSqlite3Commands, sqlite3Commands, type Sqlite3CommandsOptions, type Sqlite3Limits, type Sqlite3Options, type SqliteEngineFactory, type SqliteEngineInstance } from "./commands/sqlite3/index.js";
76
76
  export * from "./commands/yq/index.js";
77
- export { createFfmpegCommand, createFfprobeCommand, createFfmpegCommands, ffmpegCommands, type FfmpegCommandsOptions, type FfmpegCommandPair } from "./commands/ffmpeg/index.js";
77
+ export { createFfmpegCommand, createFfprobeCommand, createFfmpegCommands, ffmpegCommands, type FfmpegCommandsOptions, type FfmpegCommandPair } from "./lazy-optional.js";
78
78
  export { createHtmlqCommand, htmlqCommands, type HtmlqCommandOptions, createHtmlqCommands, type HtmlqCommandsOptions } from "./commands/htmlq/index.js";
79
79
  export { createCsvcutCommand, csvcutCommands, type CsvcutCommandOptions, createCsvcutCommands, type CsvcutCommandsOptions } from "./commands/csvcut/index.js";
80
80
  export { createCsvgrepCommand, csvgrepCommands, type CsvgrepCommandOptions, createCsvgrepCommands, type CsvgrepCommandsOptions } from "./commands/csvgrep/index.js";
81
- export { createPdfinfoCommand, pdfinfoCommands, type PdfinfoCommandOptions, createPdfinfoCommands, type PdfinfoCommandsOptions } from "./commands/pdfinfo/index.js";
82
- export { createPdftotextCommand, pdftotextCommands, type PdftotextCommandOptions, createPdftotextCommands, type PdftotextCommandsOptions } from "./commands/pdftotext/index.js";
83
- export { createPdfimagesCommand, pdfimagesCommands, type PdfimagesCommandOptions, createPdfimagesCommands, type PdfimagesCommandsOptions } from "./commands/pdfimages/index.js";
84
- export { createPdftoppmCommand, pdftoppmCommands, type PdftoppmCommandOptions, createPdftoppmCommands, type PdftoppmCommandsOptions } from "./commands/pdftoppm/index.js";
85
- export { createPdftkCommand, pdftkCommands, type PdftkCommandOptions, createPdftkCommands, type PdftkCommandsOptions } from "./commands/pdftk/index.js";
86
- export { createQpdfCommand, qpdfCommands, type QpdfCommandOptions, createQpdfCommands, type QpdfCommandsOptions } from "./commands/qpdf/index.js";
87
- export { createSipsCommand, sipsCommands, type SipsCommandOptions, createSipsCommands, type SipsCommandsOptions } from "./commands/sips/index.js";
88
- export { createMagickCommand, imagemagickCommands, type ImageMagickCommandOptions, createImagemagickCommands, createImagemagickCommand, type ImagemagickCommandsOptions } from "./commands/imagemagick/index.js";
81
+ export { createPdfinfoCommand, pdfinfoCommands, type PdfinfoCommandOptions, createPdfinfoCommands, type PdfinfoCommandsOptions } from "./lazy-optional.js";
82
+ export { createPdftotextCommand, pdftotextCommands, type PdftotextCommandOptions, createPdftotextCommands, type PdftotextCommandsOptions } from "./lazy-optional.js";
83
+ export { createPdfimagesCommand, pdfimagesCommands, type PdfimagesCommandOptions, createPdfimagesCommands, type PdfimagesCommandsOptions } from "./lazy-optional.js";
84
+ export { createPdftoppmCommand, pdftoppmCommands, type PdftoppmCommandOptions, createPdftoppmCommands, type PdftoppmCommandsOptions } from "./lazy-optional.js";
85
+ export { createPdftkCommand, pdftkCommands, type PdftkCommandOptions, createPdftkCommands, type PdftkCommandsOptions } from "./lazy-optional.js";
86
+ export { createQpdfCommand, qpdfCommands, type QpdfCommandOptions, createQpdfCommands, type QpdfCommandsOptions } from "./lazy-optional.js";
87
+ export { createSipsCommand, sipsCommands, type SipsCommandOptions, createSipsCommands, type SipsCommandsOptions } from "./lazy-optional.js";
88
+ export { createMagickCommand, imagemagickCommands, type ImageMagickCommandOptions, createImagemagickCommands, createImagemagickCommand, type ImagemagickCommandsOptions } from "./lazy-optional.js";
89
89
  export { createExiftoolCommand, exiftoolCommands, type ExiftoolCommandOptions, createExiftoolCommands, type ExiftoolCommandsOptions } from "./commands/exiftool/index.js";
90
- export { createSofficeCommand, sofficeCommands, type SofficeCommandOptions, createSofficeCommands, type SofficeCommandsOptions } from "./commands/soffice/index.js";
90
+ export { createSofficeCommand, sofficeCommands, type SofficeCommandOptions, createSofficeCommands, type SofficeCommandsOptions } from "./lazy-optional.js";
91
91
  export { createUnrtfCommand, unrtfCommands, type UnrtfCommandOptions, createUnrtfCommands, type UnrtfCommandsOptions } from "./commands/unrtf/index.js";
92
- export { createWkhtmltopdfCommand, wkhtmltopdfCommands, type WkhtmltopdfCommandOptions, createWkhtmltopdfCommands, type WkhtmltopdfCommandsOptions } from "./commands/wkhtmltopdf/index.js";
92
+ export { createWkhtmltopdfCommand, wkhtmltopdfCommands, type WkhtmltopdfCommandOptions, createWkhtmltopdfCommands, type WkhtmltopdfCommandsOptions } from "./lazy-optional.js";
93
93
  export { createMmdcCommand, mmdcCommands, type MmdcSettings, createMmdcCommands, type MmdcCommandsOptions } from "./commands/mmdc/index.js";
94
94
  export { createDiff3Command, diff3Commands, type Diff3CommandOptions, createDiff3Commands, type Diff3CommandsOptions } from "./commands/diff3/index.js";
95
95
  export { fmtCommands, type FmtCommandOptions, type FmtPluginOptions, createFmtCommands, createFmtCommand, type FmtCommandsOptions } from "./commands/fmt/index.js";
96
96
  export { createFoldCommand, foldCommands, type FoldCommandOptions, createFoldCommands, type FoldCommandsOptions } from "./commands/fold/index.js";
97
- export { createSsconvertCommand, ssconvertCommands, type SsconvertCommandsOptions, type SsconvertLimits, createSsconvertCommands } from "./commands/ssconvert/index.js";
97
+ export { createSsconvertCommand, ssconvertCommands, type SsconvertCommandsOptions, type SsconvertLimits, createSsconvertCommands } from "./lazy-optional.js";
98
98
  export * from "./fs/memory/index.js";
99
99
  export * from "./fs/webdav/index.js";
100
100
  export * from "./fs/readonly/index.js";
101
101
  export * from "./fs/mount/index.js";
102
102
  export * from "./fs/overlay/index.js";
103
103
  export * from "./integrations/safejs/shell.js";
104
- export { csvkitCommands, createCsvkitCommands, createCsvkitCommand, type CsvkitCommandsOptions } from "./commands/csvkit/index.js";
105
- export { gitCommands, createGitCommands, createGitCommand, type GitCommandsOptions } from "./commands/git/index.js";
106
- export { pandocCommands, createPandocCommands, createPandocCommand, type PandocCommandsOptions, type PandocLimits } from "./commands/pandoc/index.js";
104
+ export { csvkitCommands, createCsvkitCommands, createCsvkitCommand, type CsvkitCommandsOptions } from "./lazy-optional.js";
105
+ export { gitCommands, createGitCommands, createGitCommand, type GitCommandsOptions } from "./lazy-optional.js";
106
+ export { pandocCommands, createPandocCommands, createPandocCommand, type PandocCommandsOptions, type PandocLimits } from "./lazy-optional.js";
107
107
  export { xzCommands, createXzCommands, createXzCommand, type XzCommandsOptions } from "./commands/xz/index.js";
108
108
  export * from "./commands/op/index.js";
109
109
  export * from "./commands/mdq/index.js";
110
110
  export { createOpensslCommand, createOpensslCommands, opensslCommands, type OpensslCommandsOptions, type OpensslLimits, type OpensslOptions } from "./commands/openssl/index.js";
111
111
  export { createSshCommand, createSshKeygenCommand, createSshCommands, sshCommands, type SshCommandsOptions, type SshLimits, type SshOptions } from "./commands/ssh/index.js";
112
112
  export { createGpgCommand, createGpgCommands, gpgCommands, type GpgCommandsOptions, type GpgLimits, type GpgOptions } from "./commands/gpg/index.js";
113
- export { createGhCommand, createGhCommands, ghCommands, type GhCommandOptions, type GhCommandsOptions, type GhLimits } from "./commands/gh/index.js";
113
+ export { createGhCommand, createGhCommands, ghCommands, type GhCommandOptions, type GhCommandsOptions, type GhLimits } from "./lazy-optional.js";
114
+ export { optionalCommands, createOptionalCommands, optionalCommandCatalog, createLazyCommands, createLazyCommandLoader, lazyCommandPlugin, type OptionalCommandsOptions, type OptionalCommandConfiguration, type OptionalCommandFamily, type LazyCommandMetadata, type LazyCommandFactory } from "./lazy-optional.js";
114
115
  //# sourceMappingURL=core.d.ts.map
@@ -74,41 +74,42 @@ export { createLocaleCommand, createLocaleCommands, localeCommands } from "./com
74
74
  export { createDfCommand, createDfCommands, dfCommands } from "./commands/df/index.js";
75
75
  export { createSqlite3Command, createSqlite3Commands, sqlite3Commands } from "./commands/sqlite3/index.js";
76
76
  export * from "./commands/yq/index.js";
77
- export { createFfmpegCommand, createFfprobeCommand, createFfmpegCommands, ffmpegCommands } from "./commands/ffmpeg/index.js";
77
+ export { createFfmpegCommand, createFfprobeCommand, createFfmpegCommands, ffmpegCommands } from "./lazy-optional.js";
78
78
  export { createHtmlqCommand, htmlqCommands, createHtmlqCommands } from "./commands/htmlq/index.js";
79
79
  export { createCsvcutCommand, csvcutCommands, createCsvcutCommands } from "./commands/csvcut/index.js";
80
80
  export { createCsvgrepCommand, csvgrepCommands, createCsvgrepCommands } from "./commands/csvgrep/index.js";
81
- export { createPdfinfoCommand, pdfinfoCommands, createPdfinfoCommands } from "./commands/pdfinfo/index.js";
82
- export { createPdftotextCommand, pdftotextCommands, createPdftotextCommands } from "./commands/pdftotext/index.js";
83
- export { createPdfimagesCommand, pdfimagesCommands, createPdfimagesCommands } from "./commands/pdfimages/index.js";
84
- export { createPdftoppmCommand, pdftoppmCommands, createPdftoppmCommands } from "./commands/pdftoppm/index.js";
85
- export { createPdftkCommand, pdftkCommands, createPdftkCommands } from "./commands/pdftk/index.js";
86
- export { createQpdfCommand, qpdfCommands, createQpdfCommands } from "./commands/qpdf/index.js";
87
- export { createSipsCommand, sipsCommands, createSipsCommands } from "./commands/sips/index.js";
88
- export { createMagickCommand, imagemagickCommands, createImagemagickCommands, createImagemagickCommand } from "./commands/imagemagick/index.js";
81
+ export { createPdfinfoCommand, pdfinfoCommands, createPdfinfoCommands } from "./lazy-optional.js";
82
+ export { createPdftotextCommand, pdftotextCommands, createPdftotextCommands } from "./lazy-optional.js";
83
+ export { createPdfimagesCommand, pdfimagesCommands, createPdfimagesCommands } from "./lazy-optional.js";
84
+ export { createPdftoppmCommand, pdftoppmCommands, createPdftoppmCommands } from "./lazy-optional.js";
85
+ export { createPdftkCommand, pdftkCommands, createPdftkCommands } from "./lazy-optional.js";
86
+ export { createQpdfCommand, qpdfCommands, createQpdfCommands } from "./lazy-optional.js";
87
+ export { createSipsCommand, sipsCommands, createSipsCommands } from "./lazy-optional.js";
88
+ export { createMagickCommand, imagemagickCommands, createImagemagickCommands, createImagemagickCommand } from "./lazy-optional.js";
89
89
  export { createExiftoolCommand, exiftoolCommands, createExiftoolCommands } from "./commands/exiftool/index.js";
90
- export { createSofficeCommand, sofficeCommands, createSofficeCommands } from "./commands/soffice/index.js";
90
+ export { createSofficeCommand, sofficeCommands, createSofficeCommands } from "./lazy-optional.js";
91
91
  export { createUnrtfCommand, unrtfCommands, createUnrtfCommands } from "./commands/unrtf/index.js";
92
- export { createWkhtmltopdfCommand, wkhtmltopdfCommands, createWkhtmltopdfCommands } from "./commands/wkhtmltopdf/index.js";
92
+ export { createWkhtmltopdfCommand, wkhtmltopdfCommands, createWkhtmltopdfCommands } from "./lazy-optional.js";
93
93
  export { createMmdcCommand, mmdcCommands, createMmdcCommands } from "./commands/mmdc/index.js";
94
94
  export { createDiff3Command, diff3Commands, createDiff3Commands } from "./commands/diff3/index.js";
95
95
  export { fmtCommands, createFmtCommands, createFmtCommand } from "./commands/fmt/index.js";
96
96
  export { createFoldCommand, foldCommands, createFoldCommands } from "./commands/fold/index.js";
97
- export { createSsconvertCommand, ssconvertCommands, createSsconvertCommands } from "./commands/ssconvert/index.js";
97
+ export { createSsconvertCommand, ssconvertCommands, createSsconvertCommands } from "./lazy-optional.js";
98
98
  export * from "./fs/memory/index.js";
99
99
  export * from "./fs/webdav/index.js";
100
100
  export * from "./fs/readonly/index.js";
101
101
  export * from "./fs/mount/index.js";
102
102
  export * from "./fs/overlay/index.js";
103
103
  export * from "./integrations/safejs/shell.js";
104
- export { csvkitCommands, createCsvkitCommands, createCsvkitCommand } from "./commands/csvkit/index.js";
105
- export { gitCommands, createGitCommands, createGitCommand } from "./commands/git/index.js";
106
- export { pandocCommands, createPandocCommands, createPandocCommand } from "./commands/pandoc/index.js";
104
+ export { csvkitCommands, createCsvkitCommands, createCsvkitCommand } from "./lazy-optional.js";
105
+ export { gitCommands, createGitCommands, createGitCommand } from "./lazy-optional.js";
106
+ export { pandocCommands, createPandocCommands, createPandocCommand } from "./lazy-optional.js";
107
107
  export { xzCommands, createXzCommands, createXzCommand } from "./commands/xz/index.js";
108
108
  export * from "./commands/op/index.js";
109
109
  export * from "./commands/mdq/index.js";
110
110
  export { createOpensslCommand, createOpensslCommands, opensslCommands } from "./commands/openssl/index.js";
111
111
  export { createSshCommand, createSshKeygenCommand, createSshCommands, sshCommands } from "./commands/ssh/index.js";
112
112
  export { createGpgCommand, createGpgCommands, gpgCommands } from "./commands/gpg/index.js";
113
- export { createGhCommand, createGhCommands, ghCommands } from "./commands/gh/index.js";
113
+ export { createGhCommand, createGhCommands, ghCommands } from "./lazy-optional.js";
114
+ export { optionalCommands, createOptionalCommands, optionalCommandCatalog, createLazyCommands, createLazyCommandLoader, lazyCommandPlugin } from "./lazy-optional.js";
114
115
  //# sourceMappingURL=core.js.map
@@ -0,0 +1,10 @@
1
+ type ghModule = typeof import("./commands/gh/index.js");
2
+ export declare const ghMetadata: readonly [{
3
+ readonly name: "gh";
4
+ readonly description: "Work seamlessly with GitHub from the command line";
5
+ }];
6
+ export declare const createGhCommand: ghModule["createGhCommand"];
7
+ export declare const createGhCommands: ghModule["createGhCommands"];
8
+ export declare const ghCommands: ghModule["ghCommands"];
9
+ export type { GhCommandOptions, GhCommandsOptions, GhLimits } from "./commands/gh/index.js";
10
+ //# sourceMappingURL=lazy-gh.d.ts.map
@@ -0,0 +1,30 @@
1
+ import { createLazyCommandLoader, createLazyCommands, lazyCommandPlugin } from "./plugins/lazy-command.js";
2
+ const loadgh = createLazyCommandLoader(() => import("./commands/gh/index.js"));
3
+ export const ghMetadata = [
4
+ { name: "gh", description: "Work seamlessly with GitHub from the command line" }
5
+ ];
6
+ export const createGhCommand = (options = {}) => {
7
+ const backends = new WeakMap();
8
+ return createLazyCommands(ghMetadata, async () => {
9
+ const module = await loadgh();
10
+ return () => [{
11
+ ...ghMetadata[0],
12
+ async execute(context) {
13
+ let backend = options.backend ?? backends.get(context.fs);
14
+ if (!backend) {
15
+ backend = module.createGitHubBackend({
16
+ defaultHost: options.defaultHost,
17
+ defaultUser: options.defaultUser,
18
+ defaultToken: options.defaultToken,
19
+ now: options.now,
20
+ });
21
+ backends.set(context.fs, backend);
22
+ }
23
+ return module.createGhCommand({ ...options, backend }).execute(context);
24
+ },
25
+ }];
26
+ })[0];
27
+ };
28
+ export const createGhCommands = (options = {}) => [createGhCommand(options)];
29
+ export const ghCommands = (options = {}) => lazyCommandPlugin("gh-commands", createGhCommands(options), options.replace ?? false);
30
+ //# sourceMappingURL=lazy-gh.js.map