typescript-virtual-container 1.5.1 → 1.5.3

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 (614) hide show
  1. package/.vscode/settings.json +2 -2
  2. package/README.md +34 -28
  3. package/build.js +22 -0
  4. package/builds/{fortune-nyx-v1.5.1-directbash-k6.1.0.mjs → fortune-nyx-v1.5.3-directbash-k6.1.0.mjs} +187 -191
  5. package/builds/{fortune-nyx-v1.5.1-ssh-nosftp.js → fortune-nyx-v1.5.3-ssh-nosftp.js} +214 -218
  6. package/builds/{fortune-nyx-v1.5.1-ssh.cjs → fortune-nyx-v1.5.3-ssh.cjs} +142 -146
  7. package/builds/fortune-nyx-v1.5.3-web.min.js +17036 -0
  8. package/bun.lock +74 -0
  9. package/dist/Honeypot/index.d.ts +0 -1
  10. package/dist/Honeypot/index.js +0 -1
  11. package/dist/SSHClient/index.d.ts +0 -1
  12. package/dist/SSHClient/index.js +0 -1
  13. package/dist/SSHMimic/exec.d.ts +0 -1
  14. package/dist/SSHMimic/exec.js +0 -1
  15. package/dist/SSHMimic/executor.d.ts +0 -1
  16. package/dist/SSHMimic/executor.js +0 -1
  17. package/dist/SSHMimic/hostKey.d.ts +0 -1
  18. package/dist/SSHMimic/hostKey.js +0 -1
  19. package/dist/SSHMimic/index.d.ts +0 -1
  20. package/dist/SSHMimic/index.js +0 -1
  21. package/dist/SSHMimic/loginBanner.d.ts +0 -1
  22. package/dist/SSHMimic/loginBanner.js +0 -1
  23. package/dist/SSHMimic/loginFormat.d.ts +0 -1
  24. package/dist/SSHMimic/loginFormat.js +0 -1
  25. package/dist/SSHMimic/prompt.d.ts +0 -1
  26. package/dist/SSHMimic/prompt.js +0 -1
  27. package/dist/SSHMimic/sftp.d.ts +0 -1
  28. package/dist/SSHMimic/sftp.js +0 -1
  29. package/dist/VirtualFileSystem/binaryPack.d.ts +0 -1
  30. package/dist/VirtualFileSystem/binaryPack.js +0 -1
  31. package/dist/VirtualFileSystem/index.d.ts +0 -1
  32. package/dist/VirtualFileSystem/index.js +0 -1
  33. package/dist/VirtualFileSystem/internalTypes.d.ts +0 -1
  34. package/dist/VirtualFileSystem/internalTypes.js +0 -1
  35. package/dist/VirtualFileSystem/journal.d.ts +0 -1
  36. package/dist/VirtualFileSystem/journal.js +0 -1
  37. package/dist/VirtualFileSystem/path.d.ts +0 -1
  38. package/dist/VirtualFileSystem/path.js +0 -1
  39. package/dist/VirtualPackageManager/index.d.ts +0 -1
  40. package/dist/VirtualPackageManager/index.js +3 -14
  41. package/dist/VirtualShell/idleManager.d.ts +0 -1
  42. package/dist/VirtualShell/idleManager.js +0 -1
  43. package/dist/VirtualShell/index.d.ts +3 -2
  44. package/dist/VirtualShell/index.js +4 -2
  45. package/dist/VirtualShell/shell.d.ts +0 -1
  46. package/dist/VirtualShell/shell.js +0 -1
  47. package/dist/VirtualShell/shellParser.d.ts +0 -1
  48. package/dist/VirtualShell/shellParser.js +0 -1
  49. package/dist/VirtualUserManager/index.d.ts +0 -1
  50. package/dist/VirtualUserManager/index.js +0 -1
  51. package/dist/commands/adduser.d.ts +0 -1
  52. package/dist/commands/adduser.js +0 -1
  53. package/dist/commands/alias.d.ts +0 -1
  54. package/dist/commands/alias.js +0 -1
  55. package/dist/commands/apt.d.ts +0 -1
  56. package/dist/commands/apt.js +0 -1
  57. package/dist/commands/awk.d.ts +0 -1
  58. package/dist/commands/awk.js +0 -1
  59. package/dist/commands/base64.d.ts +0 -1
  60. package/dist/commands/base64.js +0 -1
  61. package/dist/commands/cat.d.ts +0 -1
  62. package/dist/commands/cat.js +0 -1
  63. package/dist/commands/cd.d.ts +0 -1
  64. package/dist/commands/cd.js +0 -1
  65. package/dist/commands/chmod.d.ts +0 -1
  66. package/dist/commands/chmod.js +0 -1
  67. package/dist/commands/clear.d.ts +0 -1
  68. package/dist/commands/clear.js +0 -1
  69. package/dist/commands/command-helpers.d.ts +0 -1
  70. package/dist/commands/command-helpers.js +0 -1
  71. package/dist/commands/cp.d.ts +0 -1
  72. package/dist/commands/cp.js +0 -1
  73. package/dist/commands/curl.d.ts +0 -1
  74. package/dist/commands/curl.js +0 -1
  75. package/dist/commands/cut.d.ts +0 -1
  76. package/dist/commands/cut.js +0 -1
  77. package/dist/commands/date.d.ts +0 -1
  78. package/dist/commands/date.js +0 -1
  79. package/dist/commands/declare.d.ts +0 -1
  80. package/dist/commands/declare.js +0 -1
  81. package/dist/commands/deluser.d.ts +0 -1
  82. package/dist/commands/deluser.js +0 -1
  83. package/dist/commands/df.d.ts +0 -1
  84. package/dist/commands/df.js +0 -1
  85. package/dist/commands/diff.d.ts +0 -1
  86. package/dist/commands/diff.js +0 -1
  87. package/dist/commands/dpkg.d.ts +0 -1
  88. package/dist/commands/dpkg.js +0 -1
  89. package/dist/commands/du.d.ts +0 -1
  90. package/dist/commands/du.js +0 -1
  91. package/dist/commands/echo.d.ts +0 -1
  92. package/dist/commands/echo.js +0 -1
  93. package/dist/commands/env.d.ts +0 -1
  94. package/dist/commands/env.js +0 -1
  95. package/dist/commands/exit.d.ts +0 -1
  96. package/dist/commands/exit.js +0 -1
  97. package/dist/commands/export.d.ts +0 -1
  98. package/dist/commands/export.js +0 -1
  99. package/dist/commands/find.d.ts +0 -1
  100. package/dist/commands/find.js +0 -1
  101. package/dist/commands/free.d.ts +0 -1
  102. package/dist/commands/free.js +0 -1
  103. package/dist/commands/grep.d.ts +0 -1
  104. package/dist/commands/grep.js +0 -1
  105. package/dist/commands/groups.d.ts +0 -1
  106. package/dist/commands/groups.js +0 -1
  107. package/dist/commands/gzip.d.ts +0 -1
  108. package/dist/commands/gzip.js +0 -1
  109. package/dist/commands/head.d.ts +0 -1
  110. package/dist/commands/head.js +0 -1
  111. package/dist/commands/help.d.ts +0 -1
  112. package/dist/commands/help.js +0 -1
  113. package/dist/commands/helpers.d.ts +0 -1
  114. package/dist/commands/helpers.js +0 -1
  115. package/dist/commands/history.d.ts +0 -1
  116. package/dist/commands/history.js +0 -1
  117. package/dist/commands/hostname.d.ts +0 -1
  118. package/dist/commands/hostname.js +0 -1
  119. package/dist/commands/htop.d.ts +0 -1
  120. package/dist/commands/htop.js +0 -1
  121. package/dist/commands/id.d.ts +0 -1
  122. package/dist/commands/id.js +0 -1
  123. package/dist/commands/index.d.ts +0 -1
  124. package/dist/commands/index.js +0 -1
  125. package/dist/commands/kill.d.ts +0 -1
  126. package/dist/commands/kill.js +0 -1
  127. package/dist/commands/ln.d.ts +0 -1
  128. package/dist/commands/ln.js +0 -1
  129. package/dist/commands/ls.d.ts +0 -1
  130. package/dist/commands/ls.js +0 -1
  131. package/dist/commands/lsb-release.d.ts +0 -1
  132. package/dist/commands/lsb-release.js +0 -1
  133. package/dist/commands/man.d.ts +0 -1
  134. package/dist/commands/man.js +0 -1
  135. package/dist/commands/manuals-bundle.d.ts +0 -1
  136. package/dist/commands/manuals-bundle.js +0 -1
  137. package/dist/commands/mkdir.d.ts +0 -1
  138. package/dist/commands/mkdir.js +0 -1
  139. package/dist/commands/mv.d.ts +0 -1
  140. package/dist/commands/mv.js +0 -1
  141. package/dist/commands/nano.d.ts +0 -1
  142. package/dist/commands/nano.js +0 -1
  143. package/dist/commands/neofetch.d.ts +0 -1
  144. package/dist/commands/neofetch.js +0 -1
  145. package/dist/commands/node.d.ts +0 -1
  146. package/dist/commands/node.js +0 -1
  147. package/dist/commands/npm.d.ts +0 -1
  148. package/dist/commands/npm.js +0 -1
  149. package/dist/commands/passwd.d.ts +0 -1
  150. package/dist/commands/passwd.js +0 -1
  151. package/dist/commands/ping.d.ts +0 -1
  152. package/dist/commands/ping.js +0 -1
  153. package/dist/commands/printf.d.ts +0 -1
  154. package/dist/commands/printf.js +0 -1
  155. package/dist/commands/ps.d.ts +0 -1
  156. package/dist/commands/ps.js +0 -1
  157. package/dist/commands/pwd.d.ts +0 -1
  158. package/dist/commands/pwd.js +0 -1
  159. package/dist/commands/python.d.ts +0 -1
  160. package/dist/commands/python.js +0 -1
  161. package/dist/commands/read.d.ts +0 -1
  162. package/dist/commands/read.js +0 -1
  163. package/dist/commands/registry.d.ts +0 -1
  164. package/dist/commands/registry.js +0 -1
  165. package/dist/commands/rm.d.ts +0 -1
  166. package/dist/commands/rm.js +0 -1
  167. package/dist/commands/runtime.d.ts +0 -1
  168. package/dist/commands/runtime.js +139 -107
  169. package/dist/commands/sed.d.ts +0 -1
  170. package/dist/commands/sed.js +0 -1
  171. package/dist/commands/seq.d.ts +0 -1
  172. package/dist/commands/seq.js +0 -1
  173. package/dist/commands/set.d.ts +0 -1
  174. package/dist/commands/set.js +0 -1
  175. package/dist/commands/sh.d.ts +0 -1
  176. package/dist/commands/sh.js +0 -1
  177. package/dist/commands/shift.d.ts +0 -1
  178. package/dist/commands/shift.js +0 -1
  179. package/dist/commands/sleep.d.ts +0 -1
  180. package/dist/commands/sleep.js +0 -1
  181. package/dist/commands/sort.d.ts +0 -1
  182. package/dist/commands/sort.js +0 -1
  183. package/dist/commands/source.d.ts +0 -1
  184. package/dist/commands/source.js +0 -1
  185. package/dist/commands/stat.d.ts +0 -1
  186. package/dist/commands/stat.js +0 -1
  187. package/dist/commands/su.d.ts +0 -1
  188. package/dist/commands/su.js +0 -1
  189. package/dist/commands/sudo.d.ts +0 -1
  190. package/dist/commands/sudo.js +0 -1
  191. package/dist/commands/tail.d.ts +0 -1
  192. package/dist/commands/tail.js +0 -1
  193. package/dist/commands/tar.d.ts +0 -1
  194. package/dist/commands/tar.js +0 -1
  195. package/dist/commands/tee.d.ts +0 -1
  196. package/dist/commands/tee.js +0 -1
  197. package/dist/commands/test.d.ts +0 -1
  198. package/dist/commands/test.js +0 -1
  199. package/dist/commands/touch.d.ts +0 -1
  200. package/dist/commands/touch.js +0 -1
  201. package/dist/commands/tr.d.ts +0 -1
  202. package/dist/commands/tr.js +0 -1
  203. package/dist/commands/tree.d.ts +0 -1
  204. package/dist/commands/tree.js +0 -1
  205. package/dist/commands/true.d.ts +0 -1
  206. package/dist/commands/true.js +0 -1
  207. package/dist/commands/type.d.ts +0 -1
  208. package/dist/commands/type.js +0 -1
  209. package/dist/commands/uname.d.ts +0 -1
  210. package/dist/commands/uname.js +0 -1
  211. package/dist/commands/uniq.d.ts +0 -1
  212. package/dist/commands/uniq.js +0 -1
  213. package/dist/commands/unset.d.ts +0 -1
  214. package/dist/commands/unset.js +0 -1
  215. package/dist/commands/uptime.d.ts +0 -1
  216. package/dist/commands/uptime.js +0 -1
  217. package/dist/commands/wc.d.ts +0 -1
  218. package/dist/commands/wc.js +0 -1
  219. package/dist/commands/wget.d.ts +0 -1
  220. package/dist/commands/wget.js +0 -1
  221. package/dist/commands/which.d.ts +0 -1
  222. package/dist/commands/which.js +0 -1
  223. package/dist/commands/who.d.ts +0 -1
  224. package/dist/commands/who.js +0 -1
  225. package/dist/commands/whoami.d.ts +0 -1
  226. package/dist/commands/whoami.js +0 -1
  227. package/dist/commands/xargs.d.ts +0 -1
  228. package/dist/commands/xargs.js +0 -1
  229. package/dist/index.d.ts +0 -1
  230. package/dist/index.js +0 -1
  231. package/dist/modules/linuxRootfs.d.ts +0 -1
  232. package/dist/modules/linuxRootfs.js +0 -1
  233. package/dist/modules/neofetch.d.ts +0 -1
  234. package/dist/modules/neofetch.js +0 -1
  235. package/dist/modules/shellInteractive.d.ts +0 -1
  236. package/dist/modules/shellInteractive.js +0 -1
  237. package/dist/modules/shellRuntime.d.ts +0 -1
  238. package/dist/modules/shellRuntime.js +0 -1
  239. package/dist/self-standalone.d.ts +0 -1
  240. package/dist/self-standalone.js +0 -1
  241. package/dist/standalone-wo-sftp.d.ts +0 -1
  242. package/dist/standalone-wo-sftp.js +0 -1
  243. package/dist/standalone.d.ts +0 -1
  244. package/dist/standalone.js +0 -1
  245. package/dist/types/commands.d.ts +0 -1
  246. package/dist/types/commands.js +0 -1
  247. package/dist/types/pipeline.d.ts +0 -1
  248. package/dist/types/pipeline.js +0 -1
  249. package/dist/types/streams.d.ts +0 -1
  250. package/dist/types/streams.js +0 -1
  251. package/dist/types/vfs.d.ts +0 -1
  252. package/dist/types/vfs.js +0 -1
  253. package/dist/utils/expand.d.ts +0 -1
  254. package/dist/utils/expand.js +0 -1
  255. package/dist/utils/perfLogger.d.ts +0 -1
  256. package/dist/utils/perfLogger.js +0 -1
  257. package/dist/utils/tokenize.d.ts +0 -1
  258. package/dist/utils/tokenize.js +0 -1
  259. package/dist/utils/vfsDiff.d.ts +0 -1
  260. package/dist/utils/vfsDiff.js +0 -1
  261. package/docs/app.js +1751 -0
  262. package/docs/classes/HoneyPot.html +17 -17
  263. package/docs/classes/IdleManager.html +8 -8
  264. package/docs/classes/SshClient.html +34 -34
  265. package/docs/classes/VirtualFileSystem.html +38 -38
  266. package/docs/classes/VirtualPackageManager.html +19 -19
  267. package/docs/classes/VirtualSftpServer.html +3 -3
  268. package/docs/classes/VirtualShell.html +41 -40
  269. package/docs/classes/VirtualSshServer.html +8 -8
  270. package/docs/classes/VirtualUserManager.html +32 -32
  271. package/docs/demo.html +82 -0
  272. package/docs/functions/assertDiff.html +3 -3
  273. package/docs/functions/diffSnapshots.html +5 -5
  274. package/docs/functions/formatDiff.html +3 -3
  275. package/docs/functions/getArg.html +3 -3
  276. package/docs/functions/getFlag.html +2 -2
  277. package/docs/functions/ifFlag.html +2 -2
  278. package/docs/hierarchy.html +1 -1
  279. package/docs/index.html +41 -19
  280. package/docs/interfaces/AuditLogEntry.html +3 -3
  281. package/docs/interfaces/CommandContext.html +13 -13
  282. package/docs/interfaces/CommandResult.html +13 -13
  283. package/docs/interfaces/ExecStream.html +6 -6
  284. package/docs/interfaces/HoneyPotStats.html +3 -3
  285. package/docs/interfaces/IdleManagerOptions.html +3 -3
  286. package/docs/interfaces/InstalledPackage.html +11 -11
  287. package/docs/interfaces/NanoEditorSession.html +5 -5
  288. package/docs/interfaces/PackageDefinition.html +14 -14
  289. package/docs/interfaces/PackageFile.html +5 -5
  290. package/docs/interfaces/PasswordChallenge.html +9 -9
  291. package/docs/interfaces/RemoveOptions.html +3 -3
  292. package/docs/interfaces/ShellEnv.html +4 -4
  293. package/docs/interfaces/ShellModule.html +8 -8
  294. package/docs/interfaces/ShellProperties.html +5 -5
  295. package/docs/interfaces/ShellStream.html +7 -7
  296. package/docs/interfaces/SudoChallenge.html +9 -9
  297. package/docs/interfaces/VfsBaseNode.html +7 -7
  298. package/docs/interfaces/VfsDiff.html +7 -7
  299. package/docs/interfaces/VfsDiffEntry.html +4 -4
  300. package/docs/interfaces/VfsDiffModified.html +6 -6
  301. package/docs/interfaces/VfsDirectoryNode.html +8 -8
  302. package/docs/interfaces/VfsFileNode.html +9 -9
  303. package/docs/interfaces/VfsOptions.html +6 -6
  304. package/docs/interfaces/VfsSnapshot.html +3 -3
  305. package/docs/interfaces/VfsSnapshotBaseNode.html +4 -4
  306. package/docs/interfaces/VfsSnapshotDirectoryNode.html +5 -5
  307. package/docs/interfaces/VfsSnapshotFileNode.html +6 -6
  308. package/docs/interfaces/VirtualActiveSession.html +7 -7
  309. package/docs/interfaces/VirtualSftpServerOptions.html +3 -3
  310. package/docs/interfaces/VirtualShellVfsLike.html +4 -4
  311. package/docs/interfaces/VirtualShellVfsOptions.html +3 -3
  312. package/docs/interfaces/WriteFileOptions.html +4 -4
  313. package/docs/modules.html +1 -1
  314. package/docs/types/ArgParseOptions.html +3 -3
  315. package/docs/types/CommandMode.html +2 -2
  316. package/docs/types/CommandOutcome.html +2 -2
  317. package/docs/types/IdleState.html +1 -1
  318. package/docs/types/VfsNodeStats.html +2 -2
  319. package/docs/types/VfsNodeType.html +2 -2
  320. package/docs/types/VfsPersistenceMode.html +2 -2
  321. package/docs/types/VfsSnapshotNode.html +2 -2
  322. package/examples/app.js +1751 -28
  323. package/examples/app.ts +299 -0
  324. package/examples/build.js +27 -0
  325. package/examples/demo.html +33 -0
  326. package/examples/index.html +68 -13
  327. package/package.json +3 -2
  328. package/polyfills/buffer.js +117 -0
  329. package/polyfills/node_crypto/index.js +167 -7
  330. package/polyfills/node_fs/index.js +202 -8
  331. package/polyfills/node_path/index.js +23 -9
  332. package/polyfills/process.js +14 -0
  333. package/polyfills/ssh2/index.js +75 -0
  334. package/scripts/build-all.mjs +77 -49
  335. package/scripts/build-names.mjs +2 -3
  336. package/src/VirtualPackageManager/index.ts +4 -15
  337. package/src/VirtualShell/index.ts +5 -2
  338. package/src/commands/runtime.ts +44 -1
  339. package/tsconfig.json +6 -3
  340. package/typedoc.json +4 -2
  341. package/builds/fortune-nyx-v1.5.1-web-full.min.js +0 -12
  342. package/builds/fortune-nyx-v1.5.1-web.min.js +0 -12
  343. package/dist/Honeypot/index.d.ts.map +0 -1
  344. package/dist/Honeypot/index.js.map +0 -1
  345. package/dist/SSHClient/index.d.ts.map +0 -1
  346. package/dist/SSHClient/index.js.map +0 -1
  347. package/dist/SSHMimic/exec.d.ts.map +0 -1
  348. package/dist/SSHMimic/exec.js.map +0 -1
  349. package/dist/SSHMimic/executor.d.ts.map +0 -1
  350. package/dist/SSHMimic/executor.js.map +0 -1
  351. package/dist/SSHMimic/hostKey.d.ts.map +0 -1
  352. package/dist/SSHMimic/hostKey.js.map +0 -1
  353. package/dist/SSHMimic/index.d.ts.map +0 -1
  354. package/dist/SSHMimic/index.js.map +0 -1
  355. package/dist/SSHMimic/loginBanner.d.ts.map +0 -1
  356. package/dist/SSHMimic/loginBanner.js.map +0 -1
  357. package/dist/SSHMimic/loginFormat.d.ts.map +0 -1
  358. package/dist/SSHMimic/loginFormat.js.map +0 -1
  359. package/dist/SSHMimic/prompt.d.ts.map +0 -1
  360. package/dist/SSHMimic/prompt.js.map +0 -1
  361. package/dist/SSHMimic/sftp.d.ts.map +0 -1
  362. package/dist/SSHMimic/sftp.js.map +0 -1
  363. package/dist/VirtualFileSystem/binaryPack.d.ts.map +0 -1
  364. package/dist/VirtualFileSystem/binaryPack.js.map +0 -1
  365. package/dist/VirtualFileSystem/index.d.ts.map +0 -1
  366. package/dist/VirtualFileSystem/index.js.map +0 -1
  367. package/dist/VirtualFileSystem/internalTypes.d.ts.map +0 -1
  368. package/dist/VirtualFileSystem/internalTypes.js.map +0 -1
  369. package/dist/VirtualFileSystem/journal.d.ts.map +0 -1
  370. package/dist/VirtualFileSystem/journal.js.map +0 -1
  371. package/dist/VirtualFileSystem/path.d.ts.map +0 -1
  372. package/dist/VirtualFileSystem/path.js.map +0 -1
  373. package/dist/VirtualPackageManager/index.d.ts.map +0 -1
  374. package/dist/VirtualPackageManager/index.js.map +0 -1
  375. package/dist/VirtualShell/idleManager.d.ts.map +0 -1
  376. package/dist/VirtualShell/idleManager.js.map +0 -1
  377. package/dist/VirtualShell/index.d.ts.map +0 -1
  378. package/dist/VirtualShell/index.js.map +0 -1
  379. package/dist/VirtualShell/shell.d.ts.map +0 -1
  380. package/dist/VirtualShell/shell.js.map +0 -1
  381. package/dist/VirtualShell/shellParser.d.ts.map +0 -1
  382. package/dist/VirtualShell/shellParser.js.map +0 -1
  383. package/dist/VirtualUserManager/index.d.ts.map +0 -1
  384. package/dist/VirtualUserManager/index.js.map +0 -1
  385. package/dist/commands/adduser.d.ts.map +0 -1
  386. package/dist/commands/adduser.js.map +0 -1
  387. package/dist/commands/alias.d.ts.map +0 -1
  388. package/dist/commands/alias.js.map +0 -1
  389. package/dist/commands/apt.d.ts.map +0 -1
  390. package/dist/commands/apt.js.map +0 -1
  391. package/dist/commands/awk.d.ts.map +0 -1
  392. package/dist/commands/awk.js.map +0 -1
  393. package/dist/commands/base64.d.ts.map +0 -1
  394. package/dist/commands/base64.js.map +0 -1
  395. package/dist/commands/cat.d.ts.map +0 -1
  396. package/dist/commands/cat.js.map +0 -1
  397. package/dist/commands/cd.d.ts.map +0 -1
  398. package/dist/commands/cd.js.map +0 -1
  399. package/dist/commands/chmod.d.ts.map +0 -1
  400. package/dist/commands/chmod.js.map +0 -1
  401. package/dist/commands/clear.d.ts.map +0 -1
  402. package/dist/commands/clear.js.map +0 -1
  403. package/dist/commands/command-helpers.d.ts.map +0 -1
  404. package/dist/commands/command-helpers.js.map +0 -1
  405. package/dist/commands/cp.d.ts.map +0 -1
  406. package/dist/commands/cp.js.map +0 -1
  407. package/dist/commands/curl.d.ts.map +0 -1
  408. package/dist/commands/curl.js.map +0 -1
  409. package/dist/commands/cut.d.ts.map +0 -1
  410. package/dist/commands/cut.js.map +0 -1
  411. package/dist/commands/date.d.ts.map +0 -1
  412. package/dist/commands/date.js.map +0 -1
  413. package/dist/commands/declare.d.ts.map +0 -1
  414. package/dist/commands/declare.js.map +0 -1
  415. package/dist/commands/deluser.d.ts.map +0 -1
  416. package/dist/commands/deluser.js.map +0 -1
  417. package/dist/commands/df.d.ts.map +0 -1
  418. package/dist/commands/df.js.map +0 -1
  419. package/dist/commands/diff.d.ts.map +0 -1
  420. package/dist/commands/diff.js.map +0 -1
  421. package/dist/commands/dpkg.d.ts.map +0 -1
  422. package/dist/commands/dpkg.js.map +0 -1
  423. package/dist/commands/du.d.ts.map +0 -1
  424. package/dist/commands/du.js.map +0 -1
  425. package/dist/commands/echo.d.ts.map +0 -1
  426. package/dist/commands/echo.js.map +0 -1
  427. package/dist/commands/env.d.ts.map +0 -1
  428. package/dist/commands/env.js.map +0 -1
  429. package/dist/commands/exit.d.ts.map +0 -1
  430. package/dist/commands/exit.js.map +0 -1
  431. package/dist/commands/export.d.ts.map +0 -1
  432. package/dist/commands/export.js.map +0 -1
  433. package/dist/commands/find.d.ts.map +0 -1
  434. package/dist/commands/find.js.map +0 -1
  435. package/dist/commands/free.d.ts.map +0 -1
  436. package/dist/commands/free.js.map +0 -1
  437. package/dist/commands/grep.d.ts.map +0 -1
  438. package/dist/commands/grep.js.map +0 -1
  439. package/dist/commands/groups.d.ts.map +0 -1
  440. package/dist/commands/groups.js.map +0 -1
  441. package/dist/commands/gzip.d.ts.map +0 -1
  442. package/dist/commands/gzip.js.map +0 -1
  443. package/dist/commands/head.d.ts.map +0 -1
  444. package/dist/commands/head.js.map +0 -1
  445. package/dist/commands/help.d.ts.map +0 -1
  446. package/dist/commands/help.js.map +0 -1
  447. package/dist/commands/helpers.d.ts.map +0 -1
  448. package/dist/commands/helpers.js.map +0 -1
  449. package/dist/commands/history.d.ts.map +0 -1
  450. package/dist/commands/history.js.map +0 -1
  451. package/dist/commands/hostname.d.ts.map +0 -1
  452. package/dist/commands/hostname.js.map +0 -1
  453. package/dist/commands/htop.d.ts.map +0 -1
  454. package/dist/commands/htop.js.map +0 -1
  455. package/dist/commands/id.d.ts.map +0 -1
  456. package/dist/commands/id.js.map +0 -1
  457. package/dist/commands/index.d.ts.map +0 -1
  458. package/dist/commands/index.js.map +0 -1
  459. package/dist/commands/kill.d.ts.map +0 -1
  460. package/dist/commands/kill.js.map +0 -1
  461. package/dist/commands/ln.d.ts.map +0 -1
  462. package/dist/commands/ln.js.map +0 -1
  463. package/dist/commands/ls.d.ts.map +0 -1
  464. package/dist/commands/ls.js.map +0 -1
  465. package/dist/commands/lsb-release.d.ts.map +0 -1
  466. package/dist/commands/lsb-release.js.map +0 -1
  467. package/dist/commands/man.d.ts.map +0 -1
  468. package/dist/commands/man.js.map +0 -1
  469. package/dist/commands/manuals-bundle.d.ts.map +0 -1
  470. package/dist/commands/manuals-bundle.js.map +0 -1
  471. package/dist/commands/mkdir.d.ts.map +0 -1
  472. package/dist/commands/mkdir.js.map +0 -1
  473. package/dist/commands/mv.d.ts.map +0 -1
  474. package/dist/commands/mv.js.map +0 -1
  475. package/dist/commands/nano.d.ts.map +0 -1
  476. package/dist/commands/nano.js.map +0 -1
  477. package/dist/commands/neofetch.d.ts.map +0 -1
  478. package/dist/commands/neofetch.js.map +0 -1
  479. package/dist/commands/node.d.ts.map +0 -1
  480. package/dist/commands/node.js.map +0 -1
  481. package/dist/commands/npm.d.ts.map +0 -1
  482. package/dist/commands/npm.js.map +0 -1
  483. package/dist/commands/passwd.d.ts.map +0 -1
  484. package/dist/commands/passwd.js.map +0 -1
  485. package/dist/commands/ping.d.ts.map +0 -1
  486. package/dist/commands/ping.js.map +0 -1
  487. package/dist/commands/printf.d.ts.map +0 -1
  488. package/dist/commands/printf.js.map +0 -1
  489. package/dist/commands/ps.d.ts.map +0 -1
  490. package/dist/commands/ps.js.map +0 -1
  491. package/dist/commands/pwd.d.ts.map +0 -1
  492. package/dist/commands/pwd.js.map +0 -1
  493. package/dist/commands/python.d.ts.map +0 -1
  494. package/dist/commands/python.js.map +0 -1
  495. package/dist/commands/read.d.ts.map +0 -1
  496. package/dist/commands/read.js.map +0 -1
  497. package/dist/commands/registry.d.ts.map +0 -1
  498. package/dist/commands/registry.js.map +0 -1
  499. package/dist/commands/rm.d.ts.map +0 -1
  500. package/dist/commands/rm.js.map +0 -1
  501. package/dist/commands/runtime.d.ts.map +0 -1
  502. package/dist/commands/runtime.js.map +0 -1
  503. package/dist/commands/sed.d.ts.map +0 -1
  504. package/dist/commands/sed.js.map +0 -1
  505. package/dist/commands/seq.d.ts.map +0 -1
  506. package/dist/commands/seq.js.map +0 -1
  507. package/dist/commands/set.d.ts.map +0 -1
  508. package/dist/commands/set.js.map +0 -1
  509. package/dist/commands/sh.d.ts.map +0 -1
  510. package/dist/commands/sh.js.map +0 -1
  511. package/dist/commands/shift.d.ts.map +0 -1
  512. package/dist/commands/shift.js.map +0 -1
  513. package/dist/commands/sleep.d.ts.map +0 -1
  514. package/dist/commands/sleep.js.map +0 -1
  515. package/dist/commands/sort.d.ts.map +0 -1
  516. package/dist/commands/sort.js.map +0 -1
  517. package/dist/commands/source.d.ts.map +0 -1
  518. package/dist/commands/source.js.map +0 -1
  519. package/dist/commands/stat.d.ts.map +0 -1
  520. package/dist/commands/stat.js.map +0 -1
  521. package/dist/commands/su.d.ts.map +0 -1
  522. package/dist/commands/su.js.map +0 -1
  523. package/dist/commands/sudo.d.ts.map +0 -1
  524. package/dist/commands/sudo.js.map +0 -1
  525. package/dist/commands/tail.d.ts.map +0 -1
  526. package/dist/commands/tail.js.map +0 -1
  527. package/dist/commands/tar.d.ts.map +0 -1
  528. package/dist/commands/tar.js.map +0 -1
  529. package/dist/commands/tee.d.ts.map +0 -1
  530. package/dist/commands/tee.js.map +0 -1
  531. package/dist/commands/test.d.ts.map +0 -1
  532. package/dist/commands/test.js.map +0 -1
  533. package/dist/commands/touch.d.ts.map +0 -1
  534. package/dist/commands/touch.js.map +0 -1
  535. package/dist/commands/tr.d.ts.map +0 -1
  536. package/dist/commands/tr.js.map +0 -1
  537. package/dist/commands/tree.d.ts.map +0 -1
  538. package/dist/commands/tree.js.map +0 -1
  539. package/dist/commands/true.d.ts.map +0 -1
  540. package/dist/commands/true.js.map +0 -1
  541. package/dist/commands/type.d.ts.map +0 -1
  542. package/dist/commands/type.js.map +0 -1
  543. package/dist/commands/uname.d.ts.map +0 -1
  544. package/dist/commands/uname.js.map +0 -1
  545. package/dist/commands/uniq.d.ts.map +0 -1
  546. package/dist/commands/uniq.js.map +0 -1
  547. package/dist/commands/unset.d.ts.map +0 -1
  548. package/dist/commands/unset.js.map +0 -1
  549. package/dist/commands/uptime.d.ts.map +0 -1
  550. package/dist/commands/uptime.js.map +0 -1
  551. package/dist/commands/wc.d.ts.map +0 -1
  552. package/dist/commands/wc.js.map +0 -1
  553. package/dist/commands/wget.d.ts.map +0 -1
  554. package/dist/commands/wget.js.map +0 -1
  555. package/dist/commands/which.d.ts.map +0 -1
  556. package/dist/commands/which.js.map +0 -1
  557. package/dist/commands/who.d.ts.map +0 -1
  558. package/dist/commands/who.js.map +0 -1
  559. package/dist/commands/whoami.d.ts.map +0 -1
  560. package/dist/commands/whoami.js.map +0 -1
  561. package/dist/commands/xargs.d.ts.map +0 -1
  562. package/dist/commands/xargs.js.map +0 -1
  563. package/dist/index.d.ts.map +0 -1
  564. package/dist/index.js.map +0 -1
  565. package/dist/modules/linuxRootfs.d.ts.map +0 -1
  566. package/dist/modules/linuxRootfs.js.map +0 -1
  567. package/dist/modules/neofetch.d.ts.map +0 -1
  568. package/dist/modules/neofetch.js.map +0 -1
  569. package/dist/modules/shellInteractive.d.ts.map +0 -1
  570. package/dist/modules/shellInteractive.js.map +0 -1
  571. package/dist/modules/shellRuntime.d.ts.map +0 -1
  572. package/dist/modules/shellRuntime.js.map +0 -1
  573. package/dist/self-standalone.d.ts.map +0 -1
  574. package/dist/self-standalone.js.map +0 -1
  575. package/dist/standalone-wo-sftp.d.ts.map +0 -1
  576. package/dist/standalone-wo-sftp.js.map +0 -1
  577. package/dist/standalone.d.ts.map +0 -1
  578. package/dist/standalone.js.map +0 -1
  579. package/dist/types/commands.d.ts.map +0 -1
  580. package/dist/types/commands.js.map +0 -1
  581. package/dist/types/pipeline.d.ts.map +0 -1
  582. package/dist/types/pipeline.js.map +0 -1
  583. package/dist/types/streams.d.ts.map +0 -1
  584. package/dist/types/streams.js.map +0 -1
  585. package/dist/types/vfs.d.ts.map +0 -1
  586. package/dist/types/vfs.js.map +0 -1
  587. package/dist/utils/expand.d.ts.map +0 -1
  588. package/dist/utils/expand.js.map +0 -1
  589. package/dist/utils/perfLogger.d.ts.map +0 -1
  590. package/dist/utils/perfLogger.js.map +0 -1
  591. package/dist/utils/tokenize.d.ts.map +0 -1
  592. package/dist/utils/tokenize.js.map +0 -1
  593. package/dist/utils/vfsDiff.d.ts.map +0 -1
  594. package/dist/utils/vfsDiff.js.map +0 -1
  595. package/dist/web-api.d.ts +0 -26
  596. package/dist/web-api.d.ts.map +0 -1
  597. package/dist/web-api.js +0 -47
  598. package/dist/web-api.js.map +0 -1
  599. package/dist/web-full.d.ts +0 -4
  600. package/dist/web-full.d.ts.map +0 -1
  601. package/dist/web-full.js +0 -9
  602. package/dist/web-full.js.map +0 -1
  603. package/dist/web.d.ts +0 -108
  604. package/dist/web.d.ts.map +0 -1
  605. package/dist/web.js +0 -774
  606. package/dist/web.js.map +0 -1
  607. package/examples/app-iife.js +0 -58
  608. package/examples/index-cf.html +0 -27
  609. package/examples/web-iife.min.js +0 -13
  610. package/examples/web.min.js +0 -12
  611. package/src/web-api.ts +0 -62
  612. package/src/web-full.ts +0 -11
  613. package/src/web.ts +0 -930
  614. package/tests/web.test.ts +0 -182
package/bun.lock CHANGED
@@ -12,7 +12,9 @@
12
12
  "@types/bun": "^1.3.14",
13
13
  "@types/node": "^25.7.0",
14
14
  "@types/ssh2": "^1.15.5",
15
+ "esbuild": "^0.28.0",
15
16
  "gh-pages": "^6.3.0",
17
+ "rimraf": "^6.1.3",
16
18
  "typescript": "^6.0.3",
17
19
  },
18
20
  "peerDependencies": {
@@ -39,6 +41,58 @@
39
41
 
40
42
  "@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.4.15", "", { "os": "win32", "cpu": "x64" }, "sha512-zBrGq5mx5wwpnow4+2BxUvleDM+GNd4sLbPaMapsSLQLD0NGRCquqPBTgN+7XkUteHvj7M+BstuI8tmnV7+HgQ=="],
41
43
 
44
+ "@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.28.0", "", { "os": "aix", "cpu": "ppc64" }, "sha512-lhRUCeuOyJQURhTxl4WkpFTjIsbDayJHih5kZC1giwE+MhIzAb7mEsQMqMf18rHLsrb5qI1tafG20mLxEWcWlA=="],
45
+
46
+ "@esbuild/android-arm": ["@esbuild/android-arm@0.28.0", "", { "os": "android", "cpu": "arm" }, "sha512-wqh0ByljabXLKHeWXYLqoJ5jKC4XBaw6Hk08OfMrCRd2nP2ZQ5eleDZC41XHyCNgktBGYMbqnrJKq/K/lzPMSQ=="],
47
+
48
+ "@esbuild/android-arm64": ["@esbuild/android-arm64@0.28.0", "", { "os": "android", "cpu": "arm64" }, "sha512-+WzIXQOSaGs33tLEgYPYe/yQHf0WTU0X42Jca3y8NWMbUVhp7rUnw+vAsRC/QiDrdD31IszMrZy+qwPOPjd+rw=="],
49
+
50
+ "@esbuild/android-x64": ["@esbuild/android-x64@0.28.0", "", { "os": "android", "cpu": "x64" }, "sha512-+VJggoaKhk2VNNqVL7f6S189UzShHC/mR9EE8rDdSkdpN0KflSwWY/gWjDrNxxisg8Fp1ZCD9jLMo4m0OUfeUA=="],
51
+
52
+ "@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.28.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-0T+A9WZm+bZ84nZBtk1ckYsOvyA3x7e2Acj1KdVfV4/2tdG4fzUp91YHx+GArWLtwqp77pBXVCPn2We7Letr0Q=="],
53
+
54
+ "@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.28.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-fyzLm/DLDl/84OCfp2f/XQ4flmORsjU7VKt8HLjvIXChJoFFOIL6pLJPH4Yhd1n1gGFF9mPwtlN5Wf82DZs+LQ=="],
55
+
56
+ "@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.28.0", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-l9GeW5UZBT9k9brBYI+0WDffcRxgHQD8ShN2Ur4xWq/NFzUKm3k5lsH4PdaRgb2w7mI9u61nr2gI2mLI27Nh3Q=="],
57
+
58
+ "@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.28.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-BXoQai/A0wPO6Es3yFJ7APCiKGc1tdAEOgeTNy3SsB491S3aHn4S4r3e976eUnPdU+NbdtmBuLncYir2tMU9Nw=="],
59
+
60
+ "@esbuild/linux-arm": ["@esbuild/linux-arm@0.28.0", "", { "os": "linux", "cpu": "arm" }, "sha512-CjaaREJagqJp7iTaNQjjidaNbCKYcd4IDkzbwwxtSvjI7NZm79qiHc8HqciMddQ6CKvJT6aBd8lO9kN/ZudLlw=="],
61
+
62
+ "@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.28.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-RVyzfb3FWsGA55n6WY0MEIEPURL1FcbhFE6BffZEMEekfCzCIMtB5yyDcFnVbTnwk+CLAgTujmV/Lgvih56W+A=="],
63
+
64
+ "@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.28.0", "", { "os": "linux", "cpu": "ia32" }, "sha512-KBnSTt1kxl9x70q+ydterVdl+Cn0H18ngRMRCEQfrbqdUuntQQ0LoMZv47uB97NljZFzY6HcfqEZ2SAyIUTQBQ=="],
65
+
66
+ "@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.28.0", "", { "os": "linux", "cpu": "none" }, "sha512-zpSlUce1mnxzgBADvxKXX5sl8aYQHo2ezvMNI8I0lbblJtp8V4odlm3Yzlj7gPyt3T8ReksE6bK+pT3WD+aJRg=="],
67
+
68
+ "@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.28.0", "", { "os": "linux", "cpu": "none" }, "sha512-2jIfP6mmjkdmeTlsX/9vmdmhBmKADrWqN7zcdtHIeNSCH1SqIoNI63cYsjQR8J+wGa4Y5izRcSHSm8K3QWmk3w=="],
69
+
70
+ "@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.28.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-bc0FE9wWeC0WBm49IQMPSPILRocGTQt3j5KPCA8os6VprfuJ7KD+5PzESSrJ6GmPIPJK965ZJHTUlSA6GNYEhg=="],
71
+
72
+ "@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.28.0", "", { "os": "linux", "cpu": "none" }, "sha512-SQPZOwoTTT/HXFXQJG/vBX8sOFagGqvZyXcgLA3NhIqcBv1BJU1d46c0rGcrij2B56Z2rNiSLaZOYW5cUk7yLQ=="],
73
+
74
+ "@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.28.0", "", { "os": "linux", "cpu": "s390x" }, "sha512-SCfR0HN8CEEjnYnySJTd2cw0k9OHB/YFzt5zgJEwa+wL/T/raGWYMBqwDNAC6dqFKmJYZoQBRfHjgwLHGSrn3Q=="],
75
+
76
+ "@esbuild/linux-x64": ["@esbuild/linux-x64@0.28.0", "", { "os": "linux", "cpu": "x64" }, "sha512-us0dSb9iFxIi8srnpl931Nvs65it/Jd2a2K3qs7fz2WfGPHqzfzZTfec7oxZJRNPXPnNYZtanmRc4AL/JwVzHQ=="],
77
+
78
+ "@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.28.0", "", { "os": "none", "cpu": "arm64" }, "sha512-CR/RYotgtCKwtftMwJlUU7xCVNg3lMYZ0RzTmAHSfLCXw3NtZtNpswLEj/Kkf6kEL3Gw+BpOekRX0BYCtklhUw=="],
79
+
80
+ "@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.28.0", "", { "os": "none", "cpu": "x64" }, "sha512-nU1yhmYutL+fQ71Kxnhg8uEOdC0pwEW9entHykTgEbna2pw2dkbFSMeqjjyHZoCmt8SBkOSvV+yNmm94aUrrqw=="],
81
+
82
+ "@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.28.0", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-cXb5vApOsRsxsEl4mcZ1XY3D4DzcoMxR/nnc4IyqYs0rTI8ZKmW6kyyg+11Z8yvgMfAEldKzP7AdP64HnSC/6g=="],
83
+
84
+ "@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.28.0", "", { "os": "openbsd", "cpu": "x64" }, "sha512-8wZM2qqtv9UP3mzy7HiGYNH/zjTA355mpeuA+859TyR+e+Tc08IHYpLJuMsfpDJwoLo1ikIJI8jC3GFjnRClzA=="],
85
+
86
+ "@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.28.0", "", { "os": "none", "cpu": "arm64" }, "sha512-FLGfyizszcef5C3YtoyQDACyg95+dndv79i2EekILBofh5wpCa1KuBqOWKrEHZg3zrL3t5ouE5jgr94vA+Wb2w=="],
87
+
88
+ "@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.28.0", "", { "os": "sunos", "cpu": "x64" }, "sha512-1ZgjUoEdHZZl/YlV76TSCz9Hqj9h9YmMGAgAPYd+q4SicWNX3G5GCyx9uhQWSLcbvPW8Ni7lj4gDa1T40akdlw=="],
89
+
90
+ "@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.28.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-Q9StnDmQ/enxnpxCCLSg0oo4+34B9TdXpuyPeTedN/6+iXBJ4J+zwfQI28u/Jl40nOYAxGoNi7mFP40RUtkmUA=="],
91
+
92
+ "@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.28.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-zF3ag/gfiCe6U2iczcRzSYJKH1DCI+ByzSENHlM2FcDbEeo5Zd2C86Aq0tKUYAJJ1obRP84ymxIAksZUcdztHA=="],
93
+
94
+ "@esbuild/win32-x64": ["@esbuild/win32-x64@0.28.0", "", { "os": "win32", "cpu": "x64" }, "sha512-pEl1bO9mfAmIC+tW5btTmrKaujg3zGtUmWNdCw/xs70FBjwAL3o9OEKNHvNmnyylD6ubxUERiEhdsL0xBQ9efw=="],
95
+
42
96
  "@nodelib/fs.scandir": ["@nodelib/fs.scandir@2.1.5", "", { "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" } }, "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g=="],
43
97
 
44
98
  "@nodelib/fs.stat": ["@nodelib/fs.stat@2.0.5", "", {}, "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A=="],
@@ -57,8 +111,12 @@
57
111
 
58
112
  "async": ["async@3.2.6", "", {}, "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA=="],
59
113
 
114
+ "balanced-match": ["balanced-match@4.0.4", "", {}, "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA=="],
115
+
60
116
  "bcrypt-pbkdf": ["bcrypt-pbkdf@1.0.2", "", { "dependencies": { "tweetnacl": "^0.14.3" } }, "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w=="],
61
117
 
118
+ "brace-expansion": ["brace-expansion@5.0.6", "", { "dependencies": { "balanced-match": "^4.0.2" } }, "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g=="],
119
+
62
120
  "braces": ["braces@3.0.3", "", { "dependencies": { "fill-range": "^7.1.1" } }, "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA=="],
63
121
 
64
122
  "buildcheck": ["buildcheck@0.0.7", "", {}, "sha512-lHblz4ahamxpTmnsk+MNTRWsjYKv965MwOrSJyeD588rR3Jcu7swE+0wN5F+PbL5cjgu/9ObkhfzEPuofEMwLA=="],
@@ -75,6 +133,8 @@
75
133
 
76
134
  "email-addresses": ["email-addresses@5.0.0", "", {}, "sha512-4OIPYlA6JXqtVn8zpHpGiI7vE6EQOAg16aGnDMIAlZVinnoZ8208tW1hAbjWydgN/4PLTT9q+O1K6AH/vALJGw=="],
77
135
 
136
+ "esbuild": ["esbuild@0.28.0", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.28.0", "@esbuild/android-arm": "0.28.0", "@esbuild/android-arm64": "0.28.0", "@esbuild/android-x64": "0.28.0", "@esbuild/darwin-arm64": "0.28.0", "@esbuild/darwin-x64": "0.28.0", "@esbuild/freebsd-arm64": "0.28.0", "@esbuild/freebsd-x64": "0.28.0", "@esbuild/linux-arm": "0.28.0", "@esbuild/linux-arm64": "0.28.0", "@esbuild/linux-ia32": "0.28.0", "@esbuild/linux-loong64": "0.28.0", "@esbuild/linux-mips64el": "0.28.0", "@esbuild/linux-ppc64": "0.28.0", "@esbuild/linux-riscv64": "0.28.0", "@esbuild/linux-s390x": "0.28.0", "@esbuild/linux-x64": "0.28.0", "@esbuild/netbsd-arm64": "0.28.0", "@esbuild/netbsd-x64": "0.28.0", "@esbuild/openbsd-arm64": "0.28.0", "@esbuild/openbsd-x64": "0.28.0", "@esbuild/openharmony-arm64": "0.28.0", "@esbuild/sunos-x64": "0.28.0", "@esbuild/win32-arm64": "0.28.0", "@esbuild/win32-ia32": "0.28.0", "@esbuild/win32-x64": "0.28.0" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-sNR9MHpXSUV/XB4zmsFKN+QgVG82Cc7+/aaxJ8Adi8hyOac+EXptIp45QBPaVyX3N70664wRbTcLTOemCAnyqw=="],
137
+
78
138
  "escape-string-regexp": ["escape-string-regexp@1.0.5", "", {}, "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg=="],
79
139
 
80
140
  "fast-glob": ["fast-glob@3.3.3", "", { "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", "glob-parent": "^5.1.2", "merge2": "^1.3.0", "micromatch": "^4.0.8" } }, "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg=="],
@@ -95,6 +155,8 @@
95
155
 
96
156
  "gh-pages": ["gh-pages@6.3.0", "", { "dependencies": { "async": "^3.2.4", "commander": "^13.0.0", "email-addresses": "^5.0.0", "filenamify": "^4.3.0", "find-cache-dir": "^3.3.1", "fs-extra": "^11.1.1", "globby": "^11.1.0" }, "bin": { "gh-pages": "bin/gh-pages.js", "gh-pages-clean": "bin/gh-pages-clean.js" } }, "sha512-Ot5lU6jK0Eb+sszG8pciXdjMXdBJ5wODvgjR+imihTqsUWF2K6dJ9HST55lgqcs8wWcw6o6wAsUzfcYRhJPXbA=="],
97
157
 
158
+ "glob": ["glob@13.0.6", "", { "dependencies": { "minimatch": "^10.2.2", "minipass": "^7.1.3", "path-scurry": "^2.0.2" } }, "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw=="],
159
+
98
160
  "glob-parent": ["glob-parent@5.1.2", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="],
99
161
 
100
162
  "globby": ["globby@11.1.0", "", { "dependencies": { "array-union": "^2.1.0", "dir-glob": "^3.0.1", "fast-glob": "^3.2.9", "ignore": "^5.2.0", "merge2": "^1.4.1", "slash": "^3.0.0" } }, "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g=="],
@@ -113,12 +175,18 @@
113
175
 
114
176
  "locate-path": ["locate-path@5.0.0", "", { "dependencies": { "p-locate": "^4.1.0" } }, "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g=="],
115
177
 
178
+ "lru-cache": ["lru-cache@11.3.6", "", {}, "sha512-Gf/KoL3C/MlI7Bt0PGI9I+TeTC/I6r/csU58N4BSNc4lppLBeKsOdFYkK+dX0ABDUMJNfCHTyPpzwwO21Awd3A=="],
179
+
116
180
  "make-dir": ["make-dir@3.1.0", "", { "dependencies": { "semver": "^6.0.0" } }, "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw=="],
117
181
 
118
182
  "merge2": ["merge2@1.4.1", "", {}, "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg=="],
119
183
 
120
184
  "micromatch": ["micromatch@4.0.8", "", { "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" } }, "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA=="],
121
185
 
186
+ "minimatch": ["minimatch@10.2.5", "", { "dependencies": { "brace-expansion": "^5.0.5" } }, "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg=="],
187
+
188
+ "minipass": ["minipass@7.1.3", "", {}, "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A=="],
189
+
122
190
  "nan": ["nan@2.26.2", "", {}, "sha512-0tTvBTYkt3tdGw22nrAy50x7gpbGCCFH3AFcyS5WiUu7Eu4vWlri1woE6qHBSfy11vksDqkiwjOnlR7WV8G1Hw=="],
123
191
 
124
192
  "p-limit": ["p-limit@2.3.0", "", { "dependencies": { "p-try": "^2.0.0" } }, "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w=="],
@@ -127,8 +195,12 @@
127
195
 
128
196
  "p-try": ["p-try@2.2.0", "", {}, "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ=="],
129
197
 
198
+ "package-json-from-dist": ["package-json-from-dist@1.0.1", "", {}, "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw=="],
199
+
130
200
  "path-exists": ["path-exists@4.0.0", "", {}, "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="],
131
201
 
202
+ "path-scurry": ["path-scurry@2.0.2", "", { "dependencies": { "lru-cache": "^11.0.0", "minipass": "^7.1.2" } }, "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg=="],
203
+
132
204
  "path-type": ["path-type@4.0.0", "", {}, "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw=="],
133
205
 
134
206
  "picomatch": ["picomatch@2.3.2", "", {}, "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA=="],
@@ -139,6 +211,8 @@
139
211
 
140
212
  "reusify": ["reusify@1.1.0", "", {}, "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw=="],
141
213
 
214
+ "rimraf": ["rimraf@6.1.3", "", { "dependencies": { "glob": "^13.0.3", "package-json-from-dist": "^1.0.1" }, "bin": { "rimraf": "dist/esm/bin.mjs" } }, "sha512-LKg+Cr2ZF61fkcaK1UdkH2yEBBKnYjTyWzTJT6KNPcSPaiT7HSdhtMXQuN5wkTX0Xu72KQ1l8S42rlmexS2hSA=="],
215
+
142
216
  "run-parallel": ["run-parallel@1.2.0", "", { "dependencies": { "queue-microtask": "^1.2.2" } }, "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA=="],
143
217
 
144
218
  "safer-buffer": ["safer-buffer@2.1.2", "", {}, "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="],
@@ -135,4 +135,3 @@ export declare class HoneyPot {
135
135
  }>;
136
136
  }
137
137
  export default HoneyPot;
138
- //# sourceMappingURL=index.d.ts.map
@@ -316,4 +316,3 @@ export class HoneyPot {
316
316
  }
317
317
  }
318
318
  export default HoneyPot;
319
- //# sourceMappingURL=index.js.map
@@ -121,4 +121,3 @@ export declare class SshClient {
121
121
  */
122
122
  who(): Promise<CommandResult>;
123
123
  }
124
- //# sourceMappingURL=index.d.ts.map
@@ -235,4 +235,3 @@ export class SshClient {
235
235
  return this.exec("who");
236
236
  }
237
237
  }
238
- //# sourceMappingURL=index.js.map
@@ -1,4 +1,3 @@
1
1
  import type { ExecStream } from "../types/streams";
2
2
  import type { VirtualShell } from "../VirtualShell";
3
3
  export declare function runExec(stream: ExecStream, cmd: string, authUser: string, hostname: string, shell: VirtualShell): void;
4
- //# sourceMappingURL=exec.d.ts.map
@@ -24,4 +24,3 @@ export function runExec(stream, cmd, authUser, hostname, shell) {
24
24
  stream.end();
25
25
  });
26
26
  }
27
- //# sourceMappingURL=exec.js.map
@@ -3,4 +3,3 @@ import type { Pipeline, Statement } from "../types/pipeline";
3
3
  import type { VirtualShell } from "../VirtualShell";
4
4
  export declare function executeStatements(statements: Statement[], authUser: string, hostname: string, mode: CommandMode, cwd: string, shell: VirtualShell, env: ShellEnv): Promise<CommandResult>;
5
5
  export declare function executePipeline(pipeline: Pipeline, authUser: string, hostname: string, mode: CommandMode, cwd: string, shell: VirtualShell, env?: ShellEnv): Promise<CommandResult>;
6
- //# sourceMappingURL=executor.d.ts.map
@@ -158,4 +158,3 @@ async function executePipelineChain(commands, authUser, hostname, mode, cwd, she
158
158
  }
159
159
  return { stdout: currentOutput, exitCode };
160
160
  }
161
- //# sourceMappingURL=executor.js.map
@@ -1,2 +1 @@
1
1
  export declare function loadOrCreateHostKey(baseDir?: string): string;
2
- //# sourceMappingURL=hostKey.d.ts.map
@@ -15,4 +15,3 @@ export function loadOrCreateHostKey(baseDir = process.cwd()) {
15
15
  writeFileSync(hostKeyPath, privateKey, { mode: 0o600 });
16
16
  return privateKey;
17
17
  }
18
- //# sourceMappingURL=hostKey.js.map
@@ -49,4 +49,3 @@ declare class SshMimic extends EventEmitter {
49
49
  }
50
50
  export { SftpMimic } from "./sftp";
51
51
  export { SshMimic };
52
- //# sourceMappingURL=index.d.ts.map
@@ -251,4 +251,3 @@ class SshMimic extends EventEmitter {
251
251
  }
252
252
  export { SftpMimic } from "./sftp";
253
253
  export { SshMimic };
254
- //# sourceMappingURL=index.js.map
@@ -4,4 +4,3 @@ export interface LoginBannerState {
4
4
  from: string;
5
5
  }
6
6
  export declare function buildLoginBanner(hostname: string, properties: ShellProperties, lastLogin: LoginBannerState | null): string;
7
- //# sourceMappingURL=loginBanner.d.ts.map
@@ -20,4 +20,3 @@ export function buildLoginBanner(hostname, properties, lastLogin) {
20
20
  lines.push("");
21
21
  return `${lines.map((line) => `${line}\r\n`).join("")}`;
22
22
  }
23
- //# sourceMappingURL=loginBanner.js.map
@@ -1,2 +1 @@
1
1
  export declare function formatLoginDate(date: Date): string;
2
- //# sourceMappingURL=loginFormat.d.ts.map
@@ -8,4 +8,3 @@ export function formatLoginDate(date) {
8
8
  const year = date.getFullYear();
9
9
  return `${weekday} ${month} ${day} ${hh}:${mm}:${ss} ${year}`;
10
10
  }
11
- //# sourceMappingURL=loginFormat.js.map
@@ -1,2 +1 @@
1
1
  export declare function buildPrompt(user: string, host: string, cwdName: string): string;
2
- //# sourceMappingURL=prompt.d.ts.map
@@ -7,4 +7,3 @@ export function buildPrompt(user, host, cwdName) {
7
7
  const symbol = isRoot ? "#" : "$";
8
8
  return `${colorWhite}[${colorUser}${user}${colorWhite}@${colorBlue}${host}${colorReset} ${cwdName}${colorWhite}]${colorReset}${symbol} `;
9
9
  }
10
- //# sourceMappingURL=prompt.js.map
@@ -46,4 +46,3 @@ export declare class SftpMimic extends EventEmitter {
46
46
  private closeHandle;
47
47
  private attachSftpHandlers;
48
48
  }
49
- //# sourceMappingURL=sftp.d.ts.map
@@ -612,4 +612,3 @@ export class SftpMimic extends EventEmitter {
612
612
  });
613
613
  }
614
614
  }
615
- //# sourceMappingURL=sftp.js.map
@@ -46,4 +46,3 @@ export declare function decodeVfs(buf: Buffer): InternalDirectoryNode;
46
46
  * Used to auto-detect format when loading from disk.
47
47
  */
48
48
  export declare function isBinarySnapshot(buf: Buffer): boolean;
49
- //# sourceMappingURL=binaryPack.d.ts.map
@@ -226,4 +226,3 @@ export function decodeVfs(buf) {
226
226
  export function isBinarySnapshot(buf) {
227
227
  return buf.length >= 4 && buf.slice(0, 4).equals(MAGIC);
228
228
  }
229
- //# sourceMappingURL=binaryPack.js.map
@@ -307,4 +307,3 @@ declare class VirtualFileSystem extends EventEmitter {
307
307
  private deserializeDir;
308
308
  }
309
309
  export default VirtualFileSystem;
310
- //# sourceMappingURL=index.d.ts.map
@@ -1050,4 +1050,3 @@ class VirtualFileSystem extends EventEmitter {
1050
1050
  }
1051
1051
  }
1052
1052
  export default VirtualFileSystem;
1053
- //# sourceMappingURL=index.js.map
@@ -38,4 +38,3 @@ export interface InternalDirectoryNode extends InternalBaseNode {
38
38
  _childCount: number;
39
39
  }
40
40
  export {};
41
- //# sourceMappingURL=internalTypes.d.ts.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=internalTypes.js.map
@@ -45,4 +45,3 @@ export declare function appendJournalEntry(journalPath: string, entry: JournalEn
45
45
  export declare function readJournal(journalPath: string): JournalEntry[];
46
46
  /** Delete the journal file (after a successful checkpoint). */
47
47
  export declare function truncateJournal(journalPath: string): void;
48
- //# sourceMappingURL=journal.d.ts.map
@@ -183,4 +183,3 @@ export function truncateJournal(journalPath) {
183
183
  if (fsSync.existsSync(journalPath))
184
184
  fsSync.unlinkSync(journalPath);
185
185
  }
186
- //# sourceMappingURL=journal.js.map
@@ -6,4 +6,3 @@ export declare function getParentDirectory(root: InternalDirectoryNode, targetPa
6
6
  parent: InternalDirectoryNode;
7
7
  name: string;
8
8
  };
9
- //# sourceMappingURL=path.d.ts.map
@@ -47,4 +47,3 @@ export function getParentDirectory(root, targetPath, createIfMissing, createPath
47
47
  }
48
48
  return { parent: parentNode, name };
49
49
  }
50
- //# sourceMappingURL=path.js.map
@@ -199,4 +199,3 @@ export declare class VirtualPackageManager {
199
199
  */
200
200
  show(name: string): string | null;
201
201
  }
202
- //# sourceMappingURL=index.d.ts.map
@@ -8,16 +8,6 @@ const PACKAGE_REGISTRY = [
8
8
  shortDesc: "Vi IMproved",
9
9
  installedSizeKb: 3812,
10
10
  files: [
11
- {
12
- path: "/usr/bin/vim",
13
- content: "#!/bin/sh\necho 'vim: use nano for editing in this environment'\n",
14
- mode: 0o755,
15
- },
16
- {
17
- path: "/usr/bin/vi",
18
- content: '#!/bin/sh\nexec vim "$@"\n',
19
- mode: 0o755,
20
- },
21
11
  {
22
12
  path: "/usr/share/doc/vim/README",
23
13
  content: "Vim editor — virtual package.\n",
@@ -59,7 +49,7 @@ const PACKAGE_REGISTRY = [
59
49
  },
60
50
  {
61
51
  path: "/usr/bin/python3.11",
62
- content: '#!/bin/sh\nexec python3 "$@"\n',
52
+ content: "#!/bin/sh\nexec builtin python3 \"$@\"\n",
63
53
  mode: 0o755,
64
54
  },
65
55
  { path: "/usr/lib/python3.11/.keep", content: "" },
@@ -89,7 +79,7 @@ const PACKAGE_REGISTRY = [
89
79
  },
90
80
  {
91
81
  path: "/usr/bin/nodejs",
92
- content: '#!/bin/sh\nexec node "$@"\n',
82
+ content: "#!/bin/sh\nexec builtin node \"$@\"\n",
93
83
  mode: 0o755,
94
84
  },
95
85
  {
@@ -293,7 +283,7 @@ const PACKAGE_REGISTRY = [
293
283
  },
294
284
  {
295
285
  path: "/usr/bin/gcc-12",
296
- content: '#!/bin/sh\nexec gcc "$@"\n',
286
+ content: "#!/bin/sh\necho 'gcc (Fortune GNU/Linux) 12.2.0 (virtual)'\n",
297
287
  mode: 0o755,
298
288
  },
299
289
  ],
@@ -851,4 +841,3 @@ export class VirtualPackageManager {
851
841
  ].join("\n");
852
842
  }
853
843
  }
854
- //# sourceMappingURL=index.js.map
@@ -66,4 +66,3 @@ export declare class IdleManager extends EventEmitter {
66
66
  private _freeze;
67
67
  private _thaw;
68
68
  }
69
- //# sourceMappingURL=idleManager.d.ts.map
@@ -107,4 +107,3 @@ export class IdleManager extends EventEmitter {
107
107
  this.emit("thaw");
108
108
  }
109
109
  }
110
- //# sourceMappingURL=idleManager.js.map
@@ -126,8 +126,10 @@ declare class VirtualShell extends EventEmitter {
126
126
  * @param rawInput Unparsed command line (e.g. `"ls -la /tmp"`).
127
127
  * @param authUser Username to run the command as.
128
128
  * @param cwd Current working directory for path resolution.
129
+ *
130
+ * @returns CommandResult or a Promise that resolves to CommandResult. The result is also emitted via the "command" event.
129
131
  */
130
- executeCommand(rawInput: string, authUser: string, cwd: string): void;
132
+ executeCommand(rawInput: string, authUser: string, cwd: string): CommandResult | Promise<CommandResult>;
131
133
  /**
132
134
  * Attaches an interactive PTY session to this shell instance.
133
135
  *
@@ -259,4 +261,3 @@ declare class VirtualShell extends EventEmitter {
259
261
  pingIdle(): void;
260
262
  }
261
263
  export { VirtualShell };
262
- //# sourceMappingURL=index.d.ts.map
@@ -158,12 +158,15 @@ class VirtualShell extends EventEmitter {
158
158
  * @param rawInput Unparsed command line (e.g. `"ls -la /tmp"`).
159
159
  * @param authUser Username to run the command as.
160
160
  * @param cwd Current working directory for path resolution.
161
+ *
162
+ * @returns CommandResult or a Promise that resolves to CommandResult. The result is also emitted via the "command" event.
161
163
  */
162
164
  executeCommand(rawInput, authUser, cwd) {
163
165
  perf.mark("executeCommand");
164
166
  this._idle?.ping();
165
- runCommand(rawInput, authUser, this.hostname, "shell", cwd, this);
167
+ const result = runCommand(rawInput, authUser, this.hostname, "shell", cwd, this);
166
168
  this.emit("command", { command: rawInput, user: authUser, cwd });
169
+ return result;
167
170
  }
168
171
  /**
169
172
  * Attaches an interactive PTY session to this shell instance.
@@ -335,4 +338,3 @@ class VirtualShell extends EventEmitter {
335
338
  }
336
339
  }
337
340
  export { VirtualShell };
338
- //# sourceMappingURL=index.js.map
@@ -2,4 +2,3 @@ import type { ShellProperties, VirtualShell } from ".";
2
2
  import { type TerminalSize } from "../modules/shellRuntime";
3
3
  import type { ShellStream } from "../types/streams";
4
4
  export declare function startShell(properties: ShellProperties, stream: ShellStream, authUser: string, hostname: string, sessionId: string | null, remoteAddress: string | undefined, terminalSize: TerminalSize | undefined, shell: VirtualShell): void;
5
- //# sourceMappingURL=shell.d.ts.map
@@ -500,4 +500,3 @@ function loadHistory(vfs, authUser) {
500
500
  .map((line) => line.trim())
501
501
  .filter((line) => line.length > 0);
502
502
  }
503
- //# sourceMappingURL=shell.js.map
@@ -12,4 +12,3 @@ export declare function parseShellPipeline(rawInput: string): Pipeline;
12
12
  * Returns the original pattern if no match.
13
13
  */
14
14
  export declare function expandGlob(pattern: string, entries: string[]): string[];
15
- //# sourceMappingURL=shellParser.d.ts.map
@@ -263,4 +263,3 @@ function parseCommandWithRedirections(token) {
263
263
  stderrFile, stderrAppend, stderrToStdout,
264
264
  };
265
265
  }
266
- //# sourceMappingURL=shellParser.js.map
@@ -255,4 +255,3 @@ export declare class VirtualUserManager extends EventEmitter {
255
255
  data: Buffer;
256
256
  }>;
257
257
  }
258
- //# sourceMappingURL=index.d.ts.map
@@ -601,4 +601,3 @@ function normalizeVfsPath(targetPath) {
601
601
  const normalized = path.posix.normalize(targetPath);
602
602
  return normalized.startsWith("/") ? normalized : `/${normalized}`;
603
603
  }
604
- //# sourceMappingURL=index.js.map
@@ -12,4 +12,3 @@ import type { ShellModule } from "../types/commands";
12
12
  * command line. Root-only.
13
13
  */
14
14
  export declare const adduserCommand: ShellModule;
15
- //# sourceMappingURL=adduser.d.ts.map
@@ -87,4 +87,3 @@ export const adduserCommand = {
87
87
  };
88
88
  },
89
89
  };
90
- //# sourceMappingURL=adduser.js.map
@@ -11,4 +11,3 @@ export declare const aliasCommand: ShellModule;
11
11
  * @params ["<name...>"]
12
12
  */
13
13
  export declare const unaliasCommand: ShellModule;
14
- //# sourceMappingURL=alias.d.ts.map
@@ -66,4 +66,3 @@ export const unaliasCommand = {
66
66
  return { exitCode: 0 };
67
67
  },
68
68
  };
69
- //# sourceMappingURL=alias.js.map
@@ -11,4 +11,3 @@ export declare const aptCommand: ShellModule;
11
11
  * @params ["<search|show|policy> [pkg]"]
12
12
  */
13
13
  export declare const aptCacheCommand: ShellModule;
14
- //# sourceMappingURL=apt.d.ts.map
@@ -208,4 +208,3 @@ export const aptCacheCommand = {
208
208
  }
209
209
  },
210
210
  };
211
- //# sourceMappingURL=apt.js.map
@@ -13,4 +13,3 @@ import type { ShellModule } from "../types/commands";
13
13
  * - `-F sep` field separator
14
14
  */
15
15
  export declare const awkCommand: ShellModule;
16
- //# sourceMappingURL=awk.d.ts.map
@@ -167,4 +167,3 @@ export const awkCommand = {
167
167
  return { stdout: out.join("\n") + (out.length > 0 ? "\n" : ""), exitCode: 0 };
168
168
  },
169
169
  };
170
- //# sourceMappingURL=awk.js.map
@@ -5,4 +5,3 @@ import type { ShellModule } from "../types/commands";
5
5
  * @params ["[-d] [file]"]
6
6
  */
7
7
  export declare const base64Command: ShellModule;
8
- //# sourceMappingURL=base64.d.ts.map
@@ -26,4 +26,3 @@ export const base64Command = {
26
26
  return { stdout: Buffer.from(input).toString("base64"), exitCode: 0 };
27
27
  },
28
28
  };
29
- //# sourceMappingURL=base64.js.map
@@ -5,4 +5,3 @@ import type { ShellModule } from "../types/commands";
5
5
  * @params ["[-n] [-b] <file...>"]
6
6
  */
7
7
  export declare const catCommand: ShellModule;
8
- //# sourceMappingURL=cat.d.ts.map
@@ -42,4 +42,3 @@ export const catCommand = {
42
42
  return { stdout: numbered, exitCode: 0 };
43
43
  },
44
44
  };
45
- //# sourceMappingURL=cat.js.map
@@ -5,4 +5,3 @@ import type { ShellModule } from "../types/commands";
5
5
  * @params ["[path]"]
6
6
  */
7
7
  export declare const cdCommand: ShellModule;
8
- //# sourceMappingURL=cd.d.ts.map
@@ -20,4 +20,3 @@ export const cdCommand = {
20
20
  return { nextCwd: target, exitCode: 0 };
21
21
  },
22
22
  };
23
- //# sourceMappingURL=cd.js.map
@@ -5,4 +5,3 @@ import type { ShellModule } from "../types/commands";
5
5
  * @params ["<mode> <file>"]
6
6
  */
7
7
  export declare const chmodCommand: ShellModule;
8
- //# sourceMappingURL=chmod.d.ts.map
@@ -85,4 +85,3 @@ export const chmodCommand = {
85
85
  }
86
86
  },
87
87
  };
88
- //# sourceMappingURL=chmod.js.map
@@ -5,4 +5,3 @@ import type { ShellModule } from "../types/commands";
5
5
  * @params []
6
6
  */
7
7
  export declare const clearCommand: ShellModule;
8
- //# sourceMappingURL=clear.d.ts.map
@@ -11,4 +11,3 @@ export const clearCommand = {
11
11
  // clearScreen flag triggers \x1b[2J\x1b[H in the shell layer
12
12
  run: () => ({ clearScreen: true, stdout: "", exitCode: 0 }),
13
13
  };
14
- //# sourceMappingURL=clear.js.map
@@ -97,4 +97,3 @@ export declare function parseArgs(args: string[], options?: {
97
97
  flagsWithValues: Map<string, string>;
98
98
  positionals: string[];
99
99
  };
100
- //# sourceMappingURL=command-helpers.d.ts.map
@@ -219,4 +219,3 @@ export function parseArgs(args, options = {}) {
219
219
  }
220
220
  return { flags, flagsWithValues, positionals };
221
221
  }
222
- //# sourceMappingURL=command-helpers.js.map
@@ -5,4 +5,3 @@ import type { ShellModule } from "../types/commands";
5
5
  * @params ["[-r] <source> <dest>"]
6
6
  */
7
7
  export declare const cpCommand: ShellModule;
8
- //# sourceMappingURL=cp.d.ts.map
@@ -73,4 +73,3 @@ export const cpCommand = {
73
73
  }
74
74
  },
75
75
  };
76
- //# sourceMappingURL=cp.js.map