@alivault/pico 0.13.0 → 0.14.0

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 (32) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/{index-CW1T9dk-.js → index-DBVxXDtw.js} +4 -4
  3. package/.output/public/assets/routes-yUxD2q-l.js +2194 -0
  4. package/.output/public/assets/styles-CUVz7jV9.css +2 -0
  5. package/.output/public/screenshots/pico-ios-dark.png +0 -0
  6. package/.output/public/screenshots/pico-ios-light.png +0 -0
  7. package/.output/public/screenshots/pico-macos-dark.jpg +0 -0
  8. package/.output/public/screenshots/pico-macos-light.jpg +0 -0
  9. package/.output/server/_chunks/ssr-renderer.mjs +3 -3
  10. package/.output/server/_libs/crossws.mjs +2929 -0
  11. package/.output/server/_libs/h3+rou3+srvx.mjs +7 -1
  12. package/.output/server/_libs/unctx.mjs +1 -1
  13. package/.output/server/_routes/api/terminal/[id]/ws.mjs +8874 -0
  14. package/.output/server/_ssr/{router-l__gf5Y7.mjs → router-CN4JMm2A.mjs} +1074 -316
  15. package/.output/server/_ssr/{routes-DySm_W8N.mjs → routes-BsQ26pbY.mjs} +738 -189
  16. package/.output/server/_ssr/{routes-CuWg5WTI.mjs → routes-DbjuMLFI.mjs} +19 -10
  17. package/.output/server/_ssr/ssr.mjs +3 -3
  18. package/.output/server/_ssr/start-jIczsXlR.mjs +4 -0
  19. package/.output/server/{_tanstack-start-manifest_v-CVoKKKc_.mjs → _tanstack-start-manifest_v-Bs4g_j1_.mjs} +7 -4
  20. package/.output/server/index.mjs +621 -542
  21. package/.output/server/node_modules/node-pty/build/Makefile +2 -2
  22. package/.output/server/node_modules/node-pty/build/pty.target.mk +14 -14
  23. package/README.md +68 -6
  24. package/bin/pico.mjs +103 -1
  25. package/package.json +4 -4
  26. package/public/screenshots/pico-ios-dark.png +0 -0
  27. package/public/screenshots/pico-ios-light.png +0 -0
  28. package/public/screenshots/pico-macos-dark.jpg +0 -0
  29. package/public/screenshots/pico-macos-light.jpg +0 -0
  30. package/.output/public/assets/routes-2LboeUx4.js +0 -2194
  31. package/.output/public/assets/styles-B1ITYh-r.css +0 -2
  32. package/.output/server/_ssr/start-Captdpmb.mjs +0 -4
@@ -1206,5 +1206,11 @@ var H3Core = class {
1206
1206
  return routeMiddleware ? [...globalMiddleware, ...routeMiddleware] : globalMiddleware;
1207
1207
  }
1208
1208
  };
1209
+ function defineWebSocketHandler(hooks) {
1210
+ return defineHandler(function _webSocketHandler(event) {
1211
+ const crossws = typeof hooks === "function" ? hooks(event) : hooks;
1212
+ return Object.assign(new Response("WebSocket upgrade is required.", { status: 426 }), { crossws });
1213
+ });
1214
+ }
1209
1215
  //#endregion
1210
- export { toEventHandler as a, serve as c, defineLazyEventHandler as i, HTTPError as n, toRequest as o, defineHandler as r, NodeResponse as s, H3Core as t };
1216
+ export { defineWebSocketHandler as a, NodeRequest as c, defineLazyEventHandler as i, NodeResponse as l, HTTPError as n, toEventHandler as o, defineHandler as r, toRequest as s, H3Core as t, serve as u };
@@ -1,4 +1,4 @@
1
- //#region node_modules/.pnpm/nitro@3.0.260415-beta_dotenv@17.4.2_jiti@2.7.0_lru-cache@11.3.5_rollup@4.60.1_vite@8.0._aab64657a678a0edb1746e2c859bb8b1/node_modules/nitro/dist/node_modules/unctx/dist/index.mjs
1
+ //#region node_modules/.pnpm/nitro@3.0.260415-beta_dotenv@17.4.2_jiti@2.7.0_lru-cache@11.5.2_rollup@4.60.1_vite@8.0._d577b27b25cebdab9b1ba74e7d64d251/node_modules/nitro/dist/node_modules/unctx/dist/index.mjs
2
2
  function createContext(opts = {}) {
3
3
  let currentInstance;
4
4
  let isSingleton = false;