@alivault/pico 0.12.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.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/addon-fit-CMMXLNsg.js +1 -0
- package/.output/public/assets/{index-DQLwecED.js → index-DBVxXDtw.js} +11 -10
- package/.output/public/assets/routes-yUxD2q-l.js +2194 -0
- package/.output/public/assets/styles-CUVz7jV9.css +2 -0
- package/.output/public/assets/xterm-CCMwI7sy.js +36 -0
- package/.output/public/screenshots/pico-ios-dark.png +0 -0
- package/.output/public/screenshots/pico-ios-light.png +0 -0
- package/.output/public/screenshots/pico-macos-dark.jpg +0 -0
- package/.output/public/screenshots/pico-macos-light.jpg +0 -0
- package/.output/server/_chunks/ssr-renderer.mjs +3 -3
- package/.output/server/_libs/crossws.mjs +2929 -0
- package/.output/server/_libs/h3+rou3+srvx.mjs +7 -1
- package/.output/server/_libs/lucide-react.mjs +20 -1
- package/.output/server/_libs/unctx.mjs +1 -1
- package/.output/server/_libs/xterm__addon-fit.mjs +44 -0
- package/.output/server/_libs/xterm__xterm.mjs +10234 -0
- package/.output/server/_routes/api/terminal/[id]/ws.mjs +8874 -0
- package/.output/server/_ssr/{router-D36lUq7O.mjs → router-CN4JMm2A.mjs} +1605 -314
- package/.output/server/_ssr/{routes-C8qT6Oju.mjs → routes-BsQ26pbY.mjs} +2377 -730
- package/.output/server/_ssr/{routes-9nZumcXQ.mjs → routes-DbjuMLFI.mjs} +176 -26
- package/.output/server/_ssr/ssr.mjs +3 -3
- package/.output/server/_ssr/start-jIczsXlR.mjs +4 -0
- package/.output/server/{_tanstack-start-manifest_v-Cd2ypHmK.mjs → _tanstack-start-manifest_v-Bs4g_j1_.mjs} +8 -4
- package/.output/server/index.mjs +594 -501
- package/.output/server/node_modules/node-pty/LICENSE +69 -0
- package/.output/server/node_modules/node-pty/README.md +165 -0
- package/.output/server/node_modules/node-pty/binding.gyp +111 -0
- package/.output/server/node_modules/node-pty/build/Makefile +369 -0
- package/.output/server/node_modules/node-pty/build/Release/pty.node +0 -0
- package/.output/server/node_modules/node-pty/build/binding.Makefile +6 -0
- package/.output/server/node_modules/node-pty/build/pty.target.mk +168 -0
- package/.output/server/node_modules/node-pty/deps/.editorconfig +2 -0
- package/.output/server/node_modules/node-pty/deps/winpty/.drone.yml +17 -0
- package/.output/server/node_modules/node-pty/deps/winpty/.gitattributes +19 -0
- package/.output/server/node_modules/node-pty/deps/winpty/LICENSE +21 -0
- package/.output/server/node_modules/node-pty/deps/winpty/Makefile +166 -0
- package/.output/server/node_modules/node-pty/deps/winpty/README.md +151 -0
- package/.output/server/node_modules/node-pty/deps/winpty/RELEASES.md +280 -0
- package/.output/server/node_modules/node-pty/deps/winpty/VERSION.txt +1 -0
- package/.output/server/node_modules/node-pty/deps/winpty/configure +167 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/BufferResizeTests.cc +90 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ChangeScreenBuffer.cc +53 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ClearConsole.cc +72 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ConinMode.cc +117 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ConinMode.ps1 +116 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ConoutMode.cc +113 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/DebugClient.py +42 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/DebugServer.py +63 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/DumpLines.py +5 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/EnableExtendedFlags.txt +46 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Consolas.txt +528 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Lucida.txt +633 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP932.txt +630 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP936.txt +630 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP949.txt +630 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP950.txt +630 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/MinimumWindowWidths.txt +16 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Results.txt +4 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Windows10SetFontBugginess.txt +144 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/FontSurvey.cc +100 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/FormatChar.h +21 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/FreezePerfTest.cc +62 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/GetCh.cc +20 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/GetConsolePos.cc +41 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/GetFont.cc +261 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/IdentifyConsoleWindow.ps1 +51 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/IsNewConsole.cc +87 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/MouseInputNotes.txt +90 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/MoveConsoleWindow.cc +34 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Notes.txt +219 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/OSVersion.cc +27 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ScreenBufferFreezeInactive.cc +101 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest.cc +671 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest2.cc +151 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/SelectAllTest.cc +45 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/SetBufferSize.cc +32 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/SetCursorPos.cc +10 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/SetFont.cc +145 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/SetWindowRect.cc +36 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ShowArgv.cc +12 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/ShowConsoleInput.cc +40 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Spew.py +5 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/TestUtil.cc +172 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/UnicodeDoubleWidthTest.cc +102 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest1.cc +246 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest2.cc +130 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/UnixEcho.cc +89 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Utf16Echo.cc +46 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/VeryLargeRead.cc +122 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/VkEscapeTest.cc +56 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win10ResizeWhileFrozen.cc +52 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win10WrapTest1.cc +57 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win10WrapTest2.cc +30 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Echo1.cc +26 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Echo2.cc +19 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Test1.cc +46 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Test2.cc +70 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Test3.cc +78 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/Win32Write1.cc +44 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/WindowsBugCrashReader.cc +27 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/WriteConsole.cc +106 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/build32.sh +9 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/build64.sh +9 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/color-test.sh +212 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/font-notes.txt +300 -0
- package/.output/server/node_modules/node-pty/deps/winpty/misc/winbug-15048.cc +201 -0
- package/.output/server/node_modules/node-pty/deps/winpty/ship/build-pty4j-libpty.bat +36 -0
- package/.output/server/node_modules/node-pty/deps/winpty/ship/common_ship.py +53 -0
- package/.output/server/node_modules/node-pty/deps/winpty/ship/make_msvc_package.py +165 -0
- package/.output/server/node_modules/node-pty/deps/winpty/ship/ship.py +108 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Agent.cc +613 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Agent.h +103 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.cc +84 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.h +28 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.cc +632 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.h +28 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.cc +852 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.h +109 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.cc +121 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.h +36 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.cc +152 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.h +41 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Coord.h +87 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.cc +239 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.h +32 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.cc +422 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.h +28 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/DsrSender.h +30 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/EventLoop.cc +99 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/EventLoop.h +47 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/InputMap.cc +246 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/InputMap.h +114 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.cc +71 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.h +68 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.cc +378 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.h +125 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Scraper.cc +699 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Scraper.h +103 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/SimplePool.h +75 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/SmallRect.h +143 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Terminal.cc +535 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Terminal.h +69 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncoding.h +157 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncodingTest.cc +189 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Win32Console.cc +107 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Win32Console.h +67 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.cc +193 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.h +99 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/main.cc +114 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/agent/subdir.mk +61 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/configurations.gypi +60 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/debugserver/DebugServer.cc +117 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/debugserver/subdir.mk +41 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/include/winpty.h +242 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/include/winpty_constants.h +131 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.cc +75 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.h +28 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/LibWinptyException.h +54 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/WinptyInternal.h +72 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/subdir.mk +46 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/libwinpty/winpty.cc +970 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/AgentMsg.h +38 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.cc +122 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.h +73 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/Buffer.cc +103 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/Buffer.h +102 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/DebugClient.cc +187 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/DebugClient.h +38 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/GenRandom.cc +138 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/GenRandom.h +55 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/GetCommitHash.bat +13 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/Mutex.h +54 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/OsModule.h +63 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.cc +36 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.h +45 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/PrecompiledHeader.h +43 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/StringBuilder.h +227 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/StringBuilderTest.cc +114 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/StringUtil.cc +55 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/StringUtil.h +80 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/TimeMeasurement.h +63 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/UnixCtrlChars.h +45 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/UpdateGenVersion.bat +20 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.cc +460 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.h +104 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.cc +252 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.h +29 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.cc +55 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.h +64 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyException.cc +57 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyException.h +43 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.cc +42 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.h +27 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/shared/winpty_snprintf.h +99 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/subdir.mk +5 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/tests/subdir.mk +28 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/tests/trivial_test.cc +158 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.cc +114 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.h +56 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.cc +80 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.h +53 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.cc +86 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.h +31 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.cc +70 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.h +42 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/main.cc +729 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/unix-adapter/subdir.mk +41 -0
- package/.output/server/node_modules/node-pty/deps/winpty/src/winpty.gyp +234 -0
- package/.output/server/node_modules/node-pty/deps/winpty/vcbuild.bat +83 -0
- package/.output/server/node_modules/node-pty/lib/conpty_console_list_agent.js +16 -0
- package/.output/server/node_modules/node-pty/lib/conpty_console_list_agent.js.map +1 -0
- package/.output/server/node_modules/node-pty/lib/eventEmitter2.js +47 -0
- package/.output/server/node_modules/node-pty/lib/eventEmitter2.js.map +1 -0
- package/.output/server/node_modules/node-pty/lib/eventEmitter2.test.js +30 -0
- package/.output/server/node_modules/node-pty/lib/eventEmitter2.test.js.map +1 -0
- package/.output/server/node_modules/node-pty/lib/index.js +52 -0
- package/.output/server/node_modules/node-pty/lib/index.js.map +1 -0
- package/.output/server/node_modules/node-pty/lib/interfaces.js +7 -0
- package/.output/server/node_modules/node-pty/lib/interfaces.js.map +1 -0
- package/.output/server/node_modules/node-pty/lib/shared/conout.js +11 -0
- package/.output/server/node_modules/node-pty/lib/shared/conout.js.map +1 -0
- package/.output/server/node_modules/node-pty/lib/terminal.js +190 -0
- package/.output/server/node_modules/node-pty/lib/terminal.js.map +1 -0
- package/.output/server/node_modules/node-pty/lib/terminal.test.js +139 -0
- package/.output/server/node_modules/node-pty/lib/terminal.test.js.map +1 -0
- package/.output/server/node_modules/node-pty/lib/testUtils.test.js +28 -0
- package/.output/server/node_modules/node-pty/lib/testUtils.test.js.map +1 -0
- package/.output/server/node_modules/node-pty/lib/types.js +7 -0
- package/.output/server/node_modules/node-pty/lib/types.js.map +1 -0
- package/.output/server/node_modules/node-pty/lib/unixTerminal.js +346 -0
- package/.output/server/node_modules/node-pty/lib/unixTerminal.js.map +1 -0
- package/.output/server/node_modules/node-pty/lib/unixTerminal.test.js +351 -0
- package/.output/server/node_modules/node-pty/lib/unixTerminal.test.js.map +1 -0
- package/.output/server/node_modules/node-pty/lib/utils.js +39 -0
- package/.output/server/node_modules/node-pty/lib/utils.js.map +1 -0
- package/.output/server/node_modules/node-pty/lib/windowsConoutConnection.js +125 -0
- package/.output/server/node_modules/node-pty/lib/windowsConoutConnection.js.map +1 -0
- package/.output/server/node_modules/node-pty/lib/windowsPtyAgent.js +320 -0
- package/.output/server/node_modules/node-pty/lib/windowsPtyAgent.js.map +1 -0
- package/.output/server/node_modules/node-pty/lib/windowsPtyAgent.test.js +90 -0
- package/.output/server/node_modules/node-pty/lib/windowsPtyAgent.test.js.map +1 -0
- package/.output/server/node_modules/node-pty/lib/windowsTerminal.js +199 -0
- package/.output/server/node_modules/node-pty/lib/windowsTerminal.js.map +1 -0
- package/.output/server/node_modules/node-pty/lib/windowsTerminal.test.js +219 -0
- package/.output/server/node_modules/node-pty/lib/windowsTerminal.test.js.map +1 -0
- package/.output/server/node_modules/node-pty/lib/worker/conoutSocketWorker.js +22 -0
- package/.output/server/node_modules/node-pty/lib/worker/conoutSocketWorker.js.map +1 -0
- package/.output/server/node_modules/node-pty/package.json +64 -0
- package/.output/server/node_modules/node-pty/prebuilds/darwin-arm64/pty.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/darwin-x64/pty.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/darwin-x64/spawn-helper +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty/OpenConsole.exe +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty/conpty.dll +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty_console_list.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/conpty_console_list.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/pty.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/pty.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/winpty-agent.exe +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/winpty-agent.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/winpty.dll +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-arm64/winpty.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/pty.node +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/pty.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.exe +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.pdb +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/winpty.dll +0 -0
- package/.output/server/node_modules/node-pty/prebuilds/win32-x64/winpty.pdb +0 -0
- package/.output/server/node_modules/node-pty/scripts/gen-compile-commands.js +8 -0
- package/.output/server/node_modules/node-pty/scripts/increment-version.js +54 -0
- package/.output/server/node_modules/node-pty/scripts/post-install.js +80 -0
- package/.output/server/node_modules/node-pty/scripts/prebuild.js +34 -0
- package/.output/server/node_modules/node-pty/src/conpty_console_list_agent.ts +15 -0
- package/.output/server/node_modules/node-pty/src/eventEmitter2.test.ts +30 -0
- package/.output/server/node_modules/node-pty/src/eventEmitter2.ts +48 -0
- package/.output/server/node_modules/node-pty/src/index.ts +52 -0
- package/.output/server/node_modules/node-pty/src/interfaces.ts +130 -0
- package/.output/server/node_modules/node-pty/src/native.d.ts +54 -0
- package/.output/server/node_modules/node-pty/src/shared/conout.ts +15 -0
- package/.output/server/node_modules/node-pty/src/terminal.test.ts +119 -0
- package/.output/server/node_modules/node-pty/src/terminal.ts +211 -0
- package/.output/server/node_modules/node-pty/src/testUtils.test.ts +23 -0
- package/.output/server/node_modules/node-pty/src/tsconfig.json +22 -0
- package/.output/server/node_modules/node-pty/src/types.ts +15 -0
- package/.output/server/node_modules/node-pty/src/unix/pty.cc +799 -0
- package/.output/server/node_modules/node-pty/src/unix/spawn-helper.cc +23 -0
- package/.output/server/node_modules/node-pty/src/unixTerminal.test.ts +367 -0
- package/.output/server/node_modules/node-pty/src/unixTerminal.ts +388 -0
- package/.output/server/node_modules/node-pty/src/utils.ts +29 -0
- package/.output/server/node_modules/node-pty/src/win/conpty.cc +583 -0
- package/.output/server/node_modules/node-pty/src/win/conpty.h +41 -0
- package/.output/server/node_modules/node-pty/src/win/conpty_console_list.cc +44 -0
- package/.output/server/node_modules/node-pty/src/win/path_util.cc +95 -0
- package/.output/server/node_modules/node-pty/src/win/path_util.h +26 -0
- package/.output/server/node_modules/node-pty/src/win/winpty.cc +333 -0
- package/.output/server/node_modules/node-pty/src/windowsConoutConnection.ts +82 -0
- package/.output/server/node_modules/node-pty/src/windowsPtyAgent.test.ts +94 -0
- package/.output/server/node_modules/node-pty/src/windowsPtyAgent.ts +321 -0
- package/.output/server/node_modules/node-pty/src/windowsTerminal.test.ts +229 -0
- package/.output/server/node_modules/node-pty/src/windowsTerminal.ts +203 -0
- package/.output/server/node_modules/node-pty/src/worker/conoutSocketWorker.ts +22 -0
- package/.output/server/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/OpenConsole.exe +0 -0
- package/.output/server/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/conpty.dll +0 -0
- package/.output/server/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/OpenConsole.exe +0 -0
- package/.output/server/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/conpty.dll +0 -0
- package/.output/server/node_modules/node-pty/typings/node-pty.d.ts +211 -0
- package/.output/server/package.json +1 -0
- package/README.md +68 -6
- package/bin/pico.mjs +103 -1
- package/package.json +14 -7
- package/public/screenshots/pico-ios-dark.png +0 -0
- package/public/screenshots/pico-ios-light.png +0 -0
- package/public/screenshots/pico-macos-dark.jpg +0 -0
- package/public/screenshots/pico-macos-light.jpg +0 -0
- package/.output/public/assets/routes-DynLhCvj.js +0 -2195
- package/.output/public/assets/styles-DJ9ubgcc.css +0 -2
- package/.output/server/_ssr/start-Captdpmb.mjs +0 -4
- package/scripts/patch-react-jsx-dev-runtime.mjs +0 -93
- /package/.output/public/assets/{wasm-CEUrWlVz.js → wasm-D_MQmneJ.js} +0 -0
|
@@ -3,9 +3,9 @@ import { $ as require_react, G as TooltipPositioner, J as TooltipRoot, K as Tool
|
|
|
3
3
|
import { o as lazyRouteComponent, s as createFileRoute } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
4
4
|
import { n as clsx } from "../_libs/class-variance-authority+clsx.mjs";
|
|
5
5
|
import { t as twMerge } from "../_libs/tailwind-merge.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { H as ChevronUp, K as ArrowUp, Q as ArrowBigUp, R as Command, X as ArrowLeft, Y as ArrowRight, Z as ArrowDown, v as Option } from "../_libs/lucide-react.mjs";
|
|
7
7
|
import { n as string, t as object } from "../_libs/zod.mjs";
|
|
8
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/routes-
|
|
8
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/routes-DbjuMLFI.js
|
|
9
9
|
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
10
10
|
var import_jsx_runtime = require_jsx_runtime();
|
|
11
11
|
function cn(...inputs) {
|
|
@@ -2212,6 +2212,9 @@ var RIGHT_SIDEBAR_WIDTHS_STORAGE_KEY = "pico-right-sidebar-widths";
|
|
|
2212
2212
|
var RIGHT_SIDEBAR_FILE_TREE_WIDTH_STORAGE_KEY = "pico-right-sidebar-file-tree-width";
|
|
2213
2213
|
var RIGHT_SIDEBAR_HISTORY_HEIGHT_STORAGE_KEY = "pico-right-sidebar-history-height";
|
|
2214
2214
|
var RIGHT_SIDEBAR_HISTORY_TAB_STORAGE_KEY = "pico-right-sidebar-history-tab";
|
|
2215
|
+
var TERMINAL_PANEL_OPEN_STORAGE_KEY = "pico-terminal-panel-open";
|
|
2216
|
+
var TERMINAL_PANEL_HEIGHT_STORAGE_KEY = "pico-terminal-panel-height";
|
|
2217
|
+
var TERMINAL_TABS_STORAGE_KEY = "pico-terminal-tabs";
|
|
2215
2218
|
var PROMPT_DRAFTS_STORAGE_KEY = "pico-prompt-drafts";
|
|
2216
2219
|
var VIEWER_CONTEXT_STORAGE_KEY = "pico-context-id";
|
|
2217
2220
|
function createContextId() {
|
|
@@ -2277,6 +2280,56 @@ function normalizeSessionSelectionKeys(value) {
|
|
|
2277
2280
|
}
|
|
2278
2281
|
return keys;
|
|
2279
2282
|
}
|
|
2283
|
+
function normalizeStoredTerminalTabId(value) {
|
|
2284
|
+
return typeof value === "string" ? value.trim().slice(0, 256) : "";
|
|
2285
|
+
}
|
|
2286
|
+
function normalizeStoredTerminalTabs(value) {
|
|
2287
|
+
if (!value || typeof value !== "object") return {
|
|
2288
|
+
activeTabId: null,
|
|
2289
|
+
tabs: []
|
|
2290
|
+
};
|
|
2291
|
+
const rawState = value;
|
|
2292
|
+
const tabs = [];
|
|
2293
|
+
const seen = /* @__PURE__ */ new Set();
|
|
2294
|
+
if (Array.isArray(rawState.tabs)) for (const entry of rawState.tabs) {
|
|
2295
|
+
const id = normalizeStoredTerminalTabId(entry);
|
|
2296
|
+
if (!id || seen.has(id)) continue;
|
|
2297
|
+
seen.add(id);
|
|
2298
|
+
tabs.push(id);
|
|
2299
|
+
}
|
|
2300
|
+
const activeTabId = normalizeStoredTerminalTabId(rawState.activeTabId);
|
|
2301
|
+
return {
|
|
2302
|
+
activeTabId: activeTabId && seen.has(activeTabId) ? activeTabId : null,
|
|
2303
|
+
tabs
|
|
2304
|
+
};
|
|
2305
|
+
}
|
|
2306
|
+
function loadStoredTerminalTabs() {
|
|
2307
|
+
try {
|
|
2308
|
+
const raw = safeLocalStorageGetItem(TERMINAL_TABS_STORAGE_KEY);
|
|
2309
|
+
if (!raw) return {};
|
|
2310
|
+
const parsed = JSON.parse(raw);
|
|
2311
|
+
return parsed && typeof parsed === "object" ? parsed : {};
|
|
2312
|
+
} catch {
|
|
2313
|
+
return {};
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
function readStoredTerminalTabs(scopeKey) {
|
|
2317
|
+
const key = scopeKey.trim();
|
|
2318
|
+
if (!key) return {
|
|
2319
|
+
activeTabId: null,
|
|
2320
|
+
tabs: []
|
|
2321
|
+
};
|
|
2322
|
+
return normalizeStoredTerminalTabs(loadStoredTerminalTabs()[key]);
|
|
2323
|
+
}
|
|
2324
|
+
function rememberStoredTerminalTabs(scopeKey, state) {
|
|
2325
|
+
const key = scopeKey.trim();
|
|
2326
|
+
if (!key) return false;
|
|
2327
|
+
const storedTabs = loadStoredTerminalTabs();
|
|
2328
|
+
const normalizedState = normalizeStoredTerminalTabs(state);
|
|
2329
|
+
if (normalizedState.tabs.length > 0) storedTabs[key] = normalizedState;
|
|
2330
|
+
else delete storedTabs[key];
|
|
2331
|
+
return safeLocalStorageSetItem(TERMINAL_TABS_STORAGE_KEY, JSON.stringify(storedTabs));
|
|
2332
|
+
}
|
|
2280
2333
|
function promptDraftKey(target = {}) {
|
|
2281
2334
|
if (target.sessionId) return `session:${target.sessionId}`;
|
|
2282
2335
|
if (target.sessionFile) return `file:${target.sessionFile}`;
|
|
@@ -2381,6 +2434,9 @@ function readStoredAutoScrollEnabled() {
|
|
|
2381
2434
|
function readStoredRightSidebarOpen() {
|
|
2382
2435
|
return safeLocalStorageGetItem(RIGHT_SIDEBAR_OPEN_STORAGE_KEY) === "1";
|
|
2383
2436
|
}
|
|
2437
|
+
function readStoredTerminalPanelOpen() {
|
|
2438
|
+
return safeLocalStorageGetItem(TERMINAL_PANEL_OPEN_STORAGE_KEY) === "1";
|
|
2439
|
+
}
|
|
2384
2440
|
function readStoredSessionDoneSoundEnabled() {
|
|
2385
2441
|
const value = safeLocalStorageGetItem(SESSION_DONE_SOUND_ENABLED_STORAGE_KEY);
|
|
2386
2442
|
return value == null ? true : value !== "0";
|
|
@@ -2398,25 +2454,28 @@ var EXPLORE_TOOL_NAMES = new Set([
|
|
|
2398
2454
|
"list",
|
|
2399
2455
|
"rg"
|
|
2400
2456
|
]);
|
|
2401
|
-
var EXPLORE_SHELL_COMMAND_NAMES =
|
|
2457
|
+
var EXPLORE_SHELL_COMMAND_NAMES = [
|
|
2402
2458
|
"find",
|
|
2403
2459
|
"grep",
|
|
2404
2460
|
"ls",
|
|
2405
2461
|
"rg"
|
|
2406
|
-
]
|
|
2462
|
+
];
|
|
2463
|
+
var EXPLORE_SHELL_COMMAND_NAME_SET = new Set(EXPLORE_SHELL_COMMAND_NAMES);
|
|
2407
2464
|
var SKIPPABLE_SHELL_COMMAND_NAMES = new Set([
|
|
2408
2465
|
"cd",
|
|
2409
2466
|
"export",
|
|
2410
2467
|
"pwd",
|
|
2411
2468
|
"set"
|
|
2412
2469
|
]);
|
|
2413
|
-
var SHELL_COMMAND_WRAPPER_NAMES =
|
|
2470
|
+
var SHELL_COMMAND_WRAPPER_NAMES = [
|
|
2414
2471
|
"command",
|
|
2415
2472
|
"env",
|
|
2416
2473
|
"noglob",
|
|
2417
2474
|
"sudo",
|
|
2418
2475
|
"time"
|
|
2419
|
-
]
|
|
2476
|
+
];
|
|
2477
|
+
var SHELL_COMMAND_WRAPPER_NAME_SET = new Set(SHELL_COMMAND_WRAPPER_NAMES);
|
|
2478
|
+
var PENDING_EXPLORE_SHELL_COMMAND_PREFIXES = [...EXPLORE_SHELL_COMMAND_NAMES, ...SHELL_COMMAND_WRAPPER_NAMES];
|
|
2420
2479
|
function normalizeToolArgs(args) {
|
|
2421
2480
|
if (!args) return void 0;
|
|
2422
2481
|
if (typeof args === "object") return args;
|
|
@@ -2432,10 +2491,75 @@ function getToolArgText(args, key) {
|
|
|
2432
2491
|
const value = args?.[key];
|
|
2433
2492
|
return typeof value === "string" && value.trim() ? value.trim() : "";
|
|
2434
2493
|
}
|
|
2435
|
-
function
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2494
|
+
function looksLikeJsonObjectPrefix(text) {
|
|
2495
|
+
return text === "{" || /^\{\s*(?:"|$)/.test(text);
|
|
2496
|
+
}
|
|
2497
|
+
function toolArgsAreIncompleteJsonObject(args) {
|
|
2498
|
+
if (typeof args !== "string") return false;
|
|
2499
|
+
const trimmed = args.trim();
|
|
2500
|
+
if (!looksLikeJsonObjectPrefix(trimmed)) return false;
|
|
2501
|
+
try {
|
|
2502
|
+
JSON.parse(trimmed);
|
|
2503
|
+
return false;
|
|
2504
|
+
} catch {
|
|
2505
|
+
return true;
|
|
2506
|
+
}
|
|
2507
|
+
}
|
|
2508
|
+
function readPartialJsonStringValue(text, start) {
|
|
2509
|
+
let value = "";
|
|
2510
|
+
let escaped = false;
|
|
2511
|
+
for (let index = start; index < text.length; index += 1) {
|
|
2512
|
+
const char = text[index];
|
|
2513
|
+
if (escaped) {
|
|
2514
|
+
switch (char) {
|
|
2515
|
+
case "\"":
|
|
2516
|
+
case "\\":
|
|
2517
|
+
case "/":
|
|
2518
|
+
value += char;
|
|
2519
|
+
break;
|
|
2520
|
+
case "b":
|
|
2521
|
+
value += "\b";
|
|
2522
|
+
break;
|
|
2523
|
+
case "f":
|
|
2524
|
+
value += "\f";
|
|
2525
|
+
break;
|
|
2526
|
+
case "n":
|
|
2527
|
+
value += "\n";
|
|
2528
|
+
break;
|
|
2529
|
+
case "r":
|
|
2530
|
+
value += "\r";
|
|
2531
|
+
break;
|
|
2532
|
+
case "t":
|
|
2533
|
+
value += " ";
|
|
2534
|
+
break;
|
|
2535
|
+
case "u": {
|
|
2536
|
+
const hex = text.slice(index + 1, index + 5);
|
|
2537
|
+
if (/^[0-9a-fA-F]{4}$/.test(hex)) {
|
|
2538
|
+
value += String.fromCharCode(Number.parseInt(hex, 16));
|
|
2539
|
+
index += 4;
|
|
2540
|
+
} else value += char;
|
|
2541
|
+
break;
|
|
2542
|
+
}
|
|
2543
|
+
default:
|
|
2544
|
+
value += char || "";
|
|
2545
|
+
break;
|
|
2546
|
+
}
|
|
2547
|
+
escaped = false;
|
|
2548
|
+
continue;
|
|
2549
|
+
}
|
|
2550
|
+
if (char === "\\") {
|
|
2551
|
+
escaped = true;
|
|
2552
|
+
continue;
|
|
2553
|
+
}
|
|
2554
|
+
if (char === "\"") break;
|
|
2555
|
+
value += char || "";
|
|
2556
|
+
}
|
|
2557
|
+
return value.trim();
|
|
2558
|
+
}
|
|
2559
|
+
function partialJsonStringProperty(text, property) {
|
|
2560
|
+
const match = new RegExp(`"${property.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}"\\s*:\\s*"`, "g").exec(text);
|
|
2561
|
+
if (!match) return "";
|
|
2562
|
+
return readPartialJsonStringValue(text, match.index + match[0].length);
|
|
2439
2563
|
}
|
|
2440
2564
|
function rawShellCommandTextFromTool(name, args) {
|
|
2441
2565
|
if (name !== "bash") return "";
|
|
@@ -2446,14 +2570,15 @@ function rawShellCommandTextFromTool(name, args) {
|
|
|
2446
2570
|
const parsed = JSON.parse(trimmed);
|
|
2447
2571
|
if (parsed && typeof parsed === "object" && "command" in parsed) {
|
|
2448
2572
|
const command = parsed.command;
|
|
2449
|
-
return typeof command === "string" ? command.trim() :
|
|
2573
|
+
return typeof command === "string" ? command.trim() : "";
|
|
2450
2574
|
}
|
|
2451
2575
|
} catch {
|
|
2576
|
+
if (toolArgsAreIncompleteJsonObject(trimmed)) return partialJsonStringProperty(trimmed, "command");
|
|
2452
2577
|
return trimmed;
|
|
2453
2578
|
}
|
|
2454
2579
|
return trimmed;
|
|
2455
2580
|
}
|
|
2456
|
-
return getToolArgText(normalizeToolArgs(args), "command")
|
|
2581
|
+
return getToolArgText(normalizeToolArgs(args), "command");
|
|
2457
2582
|
}
|
|
2458
2583
|
function pathBaseName(path) {
|
|
2459
2584
|
const normalized = path.replace(/\\/g, "/").trim();
|
|
@@ -2473,18 +2598,34 @@ function shellCommandNameFromSegment(segment) {
|
|
|
2473
2598
|
if (!commandMatch) return "";
|
|
2474
2599
|
const commandPath = commandMatch[1] || "";
|
|
2475
2600
|
const commandName = pathBaseName(commandPath);
|
|
2476
|
-
if (!
|
|
2477
|
-
|
|
2601
|
+
if (!SHELL_COMMAND_WRAPPER_NAME_SET.has(commandName)) return commandName;
|
|
2602
|
+
const remainingText = text.slice(commandPath.length).trimStart();
|
|
2603
|
+
if (!remainingText) return commandName;
|
|
2604
|
+
text = remainingText;
|
|
2478
2605
|
}
|
|
2479
2606
|
return "";
|
|
2480
2607
|
}
|
|
2608
|
+
function shellCommandNameCouldBecomeExplore(commandName) {
|
|
2609
|
+
return PENDING_EXPLORE_SHELL_COMMAND_PREFIXES.some((prefix) => prefix.startsWith(commandName));
|
|
2610
|
+
}
|
|
2611
|
+
function toolCouldBecomeExploreFromTool(name, args) {
|
|
2612
|
+
if (EXPLORE_TOOL_NAMES.has(name || "")) return true;
|
|
2613
|
+
if (name !== "bash") return false;
|
|
2614
|
+
const segments = rawShellCommandTextFromTool(name, args).split(/(?:&&|\|\||;)/);
|
|
2615
|
+
for (const segment of segments) {
|
|
2616
|
+
const commandName = shellCommandNameFromSegment(segment);
|
|
2617
|
+
if (!commandName || SKIPPABLE_SHELL_COMMAND_NAMES.has(commandName)) continue;
|
|
2618
|
+
return shellCommandNameCouldBecomeExplore(commandName);
|
|
2619
|
+
}
|
|
2620
|
+
return false;
|
|
2621
|
+
}
|
|
2481
2622
|
function exploreShellCommandNameFromTool(name, args) {
|
|
2482
2623
|
if (name !== "bash") return "";
|
|
2483
2624
|
const segments = rawShellCommandTextFromTool(name, args).split(/(?:&&|\|\||;)/);
|
|
2484
2625
|
for (const segment of segments) {
|
|
2485
2626
|
const commandName = shellCommandNameFromSegment(segment);
|
|
2486
|
-
if (!commandName || SKIPPABLE_SHELL_COMMAND_NAMES.has(commandName)) continue;
|
|
2487
|
-
return
|
|
2627
|
+
if (!commandName || SKIPPABLE_SHELL_COMMAND_NAMES.has(commandName) || SHELL_COMMAND_WRAPPER_NAME_SET.has(commandName)) continue;
|
|
2628
|
+
return EXPLORE_SHELL_COMMAND_NAME_SET.has(commandName) ? commandName : "";
|
|
2488
2629
|
}
|
|
2489
2630
|
return "";
|
|
2490
2631
|
}
|
|
@@ -2557,7 +2698,7 @@ function samePromptImages(leftImages = [], rightImages = []) {
|
|
|
2557
2698
|
return true;
|
|
2558
2699
|
}
|
|
2559
2700
|
function sameUserMessageBody(left, right) {
|
|
2560
|
-
return left.text === right.text && samePromptImages(left.images, right.images) && Boolean(left.queued) === Boolean(right.queued) && left.streamingBehavior === right.streamingBehavior;
|
|
2701
|
+
return left.text === right.text && samePromptImages(left.images, right.images) && Boolean(left.queued) === Boolean(right.queued) && left.streamingBehavior === right.streamingBehavior && (left.forkEntryId || "") === (right.forkEntryId || "");
|
|
2561
2702
|
}
|
|
2562
2703
|
function sameUserMessageContent(left, right) {
|
|
2563
2704
|
return (left.itemKey || "") === (right.itemKey || "") && sameUserMessageBody(left, right);
|
|
@@ -2568,7 +2709,7 @@ function sameAssistantBlockPayload(left, right) {
|
|
|
2568
2709
|
case "text": return right.type === "text" && left.text === right.text && Boolean(left.isError) === Boolean(right.isError);
|
|
2569
2710
|
case "thinking": return right.type === "thinking" && left.text === right.text && (left.summaryLabel || "") === (right.summaryLabel || "");
|
|
2570
2711
|
case "tool": return right.type === "tool" && (left.callId || "") === (right.callId || "") && (left.name || "") === (right.name || "") && stableJsonValue(left.args) === stableJsonValue(right.args) && left.output === right.output && stableJsonValue(left.details) === stableJsonValue(right.details) && Boolean(left.isError) === Boolean(right.isError) && Boolean(left.running) === Boolean(right.running);
|
|
2571
|
-
case "compaction": return right.type === "compaction" && left.summary === right.summary && left.tokensBefore === right.tokensBefore;
|
|
2712
|
+
case "compaction": return right.type === "compaction" && left.summary === right.summary && left.tokensBefore === right.tokensBefore && left.estimatedTokensAfter === right.estimatedTokensAfter;
|
|
2572
2713
|
default: return false;
|
|
2573
2714
|
}
|
|
2574
2715
|
}
|
|
@@ -2581,7 +2722,7 @@ function sameAssistantModel(left, right) {
|
|
|
2581
2722
|
return left.id === right.id && (left.provider || "") === (right.provider || "") && (left.name || "") === (right.name || "") && Boolean(left.reasoning) === Boolean(right.reasoning);
|
|
2582
2723
|
}
|
|
2583
2724
|
function sameAssistantMessageMeta(left, right) {
|
|
2584
|
-
return sameAssistantModel(left.model, right.model) && left.done === false === (right.done === false);
|
|
2725
|
+
return sameAssistantModel(left.model, right.model) && left.done === false === (right.done === false) && (left.branchEntryId || "") === (right.branchEntryId || "");
|
|
2585
2726
|
}
|
|
2586
2727
|
function sameStateItem(left, right) {
|
|
2587
2728
|
if (!left || !right || left.kind !== right.kind) return false;
|
|
@@ -2799,7 +2940,8 @@ function assistantBlocksFromMessage(message, keyPrefix = "assistant") {
|
|
|
2799
2940
|
});
|
|
2800
2941
|
return blocks;
|
|
2801
2942
|
}
|
|
2802
|
-
function createCompactionSummaryItem(summary, tokensBefore, itemKey = "compaction") {
|
|
2943
|
+
function createCompactionSummaryItem(summary, tokensBefore, itemKey = "compaction", estimatedTokensAfter) {
|
|
2944
|
+
const normalizedEstimatedTokensAfter = estimatedTokensAfter == null ? NaN : Number(estimatedTokensAfter);
|
|
2803
2945
|
return {
|
|
2804
2946
|
kind: "assistant",
|
|
2805
2947
|
itemKey,
|
|
@@ -2807,7 +2949,8 @@ function createCompactionSummaryItem(summary, tokensBefore, itemKey = "compactio
|
|
|
2807
2949
|
type: "compaction",
|
|
2808
2950
|
blockKey: `${itemKey}:compaction`,
|
|
2809
2951
|
summary: typeof summary === "string" ? summary : "",
|
|
2810
|
-
tokensBefore: Number.isFinite(Number(tokensBefore)) ? Number(tokensBefore) : 0
|
|
2952
|
+
tokensBefore: Number.isFinite(Number(tokensBefore)) ? Number(tokensBefore) : 0,
|
|
2953
|
+
...Number.isFinite(normalizedEstimatedTokensAfter) ? { estimatedTokensAfter: normalizedEstimatedTokensAfter } : {}
|
|
2811
2954
|
}],
|
|
2812
2955
|
streaming: false
|
|
2813
2956
|
};
|
|
@@ -3041,7 +3184,7 @@ function buildItemsFromSync(sync, previousItems = []) {
|
|
|
3041
3184
|
continue;
|
|
3042
3185
|
}
|
|
3043
3186
|
if (message.role === "compactionSummary") {
|
|
3044
|
-
items.push(createCompactionSummaryItem(message.summary, message.tokensBefore, itemKey));
|
|
3187
|
+
items.push(createCompactionSummaryItem(message.summary, message.tokensBefore, itemKey, message.estimatedTokensAfter));
|
|
3045
3188
|
continue;
|
|
3046
3189
|
}
|
|
3047
3190
|
if (message.role === "toolResult") {
|
|
@@ -3186,8 +3329,15 @@ function createInitialSessionState() {
|
|
|
3186
3329
|
historyOffset: 0,
|
|
3187
3330
|
historyTotalCount: 0,
|
|
3188
3331
|
firstMessage: "",
|
|
3189
|
-
thinkingLevel: "
|
|
3190
|
-
availableThinkingLevels: [
|
|
3332
|
+
thinkingLevel: "xhigh",
|
|
3333
|
+
availableThinkingLevels: [
|
|
3334
|
+
"off",
|
|
3335
|
+
"minimal",
|
|
3336
|
+
"low",
|
|
3337
|
+
"medium",
|
|
3338
|
+
"high",
|
|
3339
|
+
"xhigh"
|
|
3340
|
+
],
|
|
3191
3341
|
availableModels: [],
|
|
3192
3342
|
availableSkills: [],
|
|
3193
3343
|
hideThinkingBlock: false,
|
|
@@ -3240,11 +3390,11 @@ function getSessionTitle(summary) {
|
|
|
3240
3390
|
if (summary?.name?.trim()) return summary.name.trim();
|
|
3241
3391
|
return "New session";
|
|
3242
3392
|
}
|
|
3243
|
-
var $$splitComponentImporter = () => import("./routes-
|
|
3393
|
+
var $$splitComponentImporter = () => import("./routes-BsQ26pbY.mjs");
|
|
3244
3394
|
var indexSearchSchema = object({ session: string().optional() });
|
|
3245
3395
|
var Route = createFileRoute("/")({
|
|
3246
3396
|
validateSearch: indexSearchSchema,
|
|
3247
3397
|
component: lazyRouteComponent($$splitComponentImporter, "component")
|
|
3248
3398
|
});
|
|
3249
3399
|
//#endregion
|
|
3250
|
-
export {
|
|
3400
|
+
export { normalizeSessionSelectionKeys as $, THEME_STORAGE_KEY as A, themeFamilyDescription as At, buildItemsFromSync as B, SESSION_DONE_SOUND_ENABLED_STORAGE_KEY as C, rememberStoredPromptDraft as Ct, TERMINAL_PANEL_OPEN_STORAGE_KEY as D, sameContextUsage as Dt, TERMINAL_PANEL_HEIGHT_STORAGE_KEY as E, safeLocalStorageSetItem as Et, TooltipTrigger as F, thinkingSummaryText as Ft, exploreShellCommandNameFromTool as G, createCompactionSummaryItem as H, VIEWER_CONTEXT_STORAGE_KEY as I, toolArgsAreIncompleteJsonObject as It, extractToolText as J, extractMessageImages as K, appliedThemeClass as L, toolCategoryFromTool as Lt, Tooltip$1 as M, themeFamilyKeywords as Mt, TooltipContent as N, themeFamilyLabel as Nt, THEME_COLOR_MODE_STORAGE_KEY as O, sessionListEntryKey as Ot, TooltipProvider as P, themeFamilySupportsColorMode as Pt, normalizePromptImage as Q, appliedThemeClassColorMode as R, toolCouldBecomeExploreFromTool as Rt, SESSION_DONE_DESKTOP_NOTIFICATIONS_ENABLED_STORAGE_KEY as S, readStoredThemeColorMode as St, Spinner as T, safeLocalStorageGetItem as Tt, createContextId as U, cn as V, createInitialSessionState as W, getSessionTitle as X, flattenTree as Y, mergeAssistantBlocksForStreaming as Z, RIGHT_SIDEBAR_HISTORY_HEIGHT_STORAGE_KEY as _, readStoredSessionDoneSoundEnabled as _t, COLLAPSED_DIRECTORIES_STORAGE_KEY as a, promptDraftKeyMatchesOwner as at, RIGHT_SIDEBAR_WIDTHS_STORAGE_KEY as b, readStoredTerminalTabs as bt, Kbd as c, readStoredCenterMessages as ct, PICO_DIFF_SHIKI_THEMES as d, readStoredHideToolBlocks as dt, normalizeStoredDirectoryList as et, PICO_SHIKI_VARIABLE_DEFAULTS as f, readStoredPinnedSessionKeys as ft, RIGHT_SIDEBAR_FILE_TREE_WIDTH_STORAGE_KEY as g, readStoredSessionDoneDesktopNotificationsEnabled as gt, RIGHT_SIDEBAR_ACTIVE_TAB_STORAGE_KEY as h, readStoredRightSidebarOpen as ht, CENTER_MESSAGES_STORAGE_KEY as i, promptDraftKey as it, TitleTooltip as j, themeFamilyFixedMode as jt, THEME_FAMILIES as k, themeColorModeLabel as kt, KeyboardShortcutContent as l, readStoredCollapsedDirectories as lt, RECENT_DIRECTORIES_STORAGE_KEY as m, readStoredRecentDirectories as mt, APPLIED_THEME_STORAGE_KEY as n, normalizeThemeFamily as nt, DRAFT_DIRECTORY_STORAGE_KEY as o, rawShellCommandTextFromTool as ot, PINNED_SESSIONS_STORAGE_KEY as p, readStoredPromptDraft as pt, extractMessageText as q, AUTO_SCROLL_ENABLED_STORAGE_KEY as r, previewUrlForImage as rt, HIDE_TOOL_BLOCKS_STORAGE_KEY as s, readStoredAutoScrollEnabled as st, APPLIED_THEME_CLASSES as t, normalizeThemeColorMode as tt, PICO_CODE_SHIKI_THEME as u, readStoredDraftDirectory as ut, RIGHT_SIDEBAR_HISTORY_TAB_STORAGE_KEY as v, readStoredSidebarDirectories as vt, SIDEBAR_DIRECTORIES_STORAGE_KEY as w, rememberStoredTerminalTabs as wt, Route as x, readStoredTheme as xt, RIGHT_SIDEBAR_OPEN_STORAGE_KEY as y, readStoredTerminalPanelOpen as yt, assistantBlocksFromMessage as z };
|
|
@@ -3813,7 +3813,7 @@ var defaultSerovalPlugins = [
|
|
|
3813
3813
|
* the dev styles URL for route-scoped CSS collection.
|
|
3814
3814
|
*/
|
|
3815
3815
|
async function getStartManifest(matchedRoutes) {
|
|
3816
|
-
const { tsrStartManifest } = await import("../_tanstack-start-manifest_v-
|
|
3816
|
+
const { tsrStartManifest } = await import("../_tanstack-start-manifest_v-Bs4g_j1_.mjs");
|
|
3817
3817
|
const startManifest = tsrStartManifest();
|
|
3818
3818
|
const rootRoute = startManifest.routes[rootRouteId] = startManifest.routes["__root__"] || {};
|
|
3819
3819
|
rootRoute.assets = rootRoute.assets || [];
|
|
@@ -4799,8 +4799,8 @@ var baseManifestPromise;
|
|
|
4799
4799
|
var cachedFinalManifestPromise;
|
|
4800
4800
|
async function loadEntries() {
|
|
4801
4801
|
const [routerEntry, startEntry, pluginAdapters] = await Promise.all([
|
|
4802
|
-
import("./router-
|
|
4803
|
-
import("./start-
|
|
4802
|
+
import("./router-CN4JMm2A.mjs"),
|
|
4803
|
+
import("./start-jIczsXlR.mjs"),
|
|
4804
4804
|
import("../__23tanstack-start-plugin-adapters-y_fshQDY.mjs")
|
|
4805
4805
|
]);
|
|
4806
4806
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/_tanstack-start-manifest_v-
|
|
1
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/_tanstack-start-manifest_v-Bs4g_j1_.js
|
|
2
2
|
var tsrStartManifest = () => ({
|
|
3
3
|
routes: {
|
|
4
4
|
__root__: {
|
|
@@ -33,21 +33,25 @@ var tsrStartManifest = () => ({
|
|
|
33
33
|
"/api/prompt",
|
|
34
34
|
"/api/provider-usage",
|
|
35
35
|
"/api/slash-command",
|
|
36
|
+
"/api/terminal",
|
|
36
37
|
"/api/thinking",
|
|
37
38
|
"/api/auth/api-key",
|
|
38
39
|
"/api/auth/logout",
|
|
39
40
|
"/api/auth/oauth",
|
|
40
41
|
"/api/auth/providers",
|
|
42
|
+
"/api/client/manifest",
|
|
41
43
|
"/api/directory/resolve",
|
|
42
44
|
"/api/files/read",
|
|
43
45
|
"/api/files/tree",
|
|
44
46
|
"/api/pending-message/remove",
|
|
45
47
|
"/api/pending-messages/reorder",
|
|
48
|
+
"/api/pending-messages/start",
|
|
46
49
|
"/api/session/clone",
|
|
47
50
|
"/api/session/delete",
|
|
48
51
|
"/api/session/fork",
|
|
49
52
|
"/api/session/history",
|
|
50
53
|
"/api/session/move",
|
|
54
|
+
"/api/session/name",
|
|
51
55
|
"/api/session/new",
|
|
52
56
|
"/api/session/read-state",
|
|
53
57
|
"/api/session/rename",
|
|
@@ -58,16 +62,16 @@ var tsrStartManifest = () => ({
|
|
|
58
62
|
"/api/ui/$id"
|
|
59
63
|
],
|
|
60
64
|
assets: void 0,
|
|
61
|
-
preloads: ["/assets/index-
|
|
65
|
+
preloads: ["/assets/index-DBVxXDtw.js", "/assets/rolldown-runtime-S-ySWqyJ.js"]
|
|
62
66
|
},
|
|
63
67
|
"/": {
|
|
64
68
|
filePath: "/home/runner/work/pico/pico/src/routes/index.tsx",
|
|
65
69
|
children: void 0,
|
|
66
70
|
assets: void 0,
|
|
67
|
-
preloads: ["/assets/routes-
|
|
71
|
+
preloads: ["/assets/routes-yUxD2q-l.js"]
|
|
68
72
|
}
|
|
69
73
|
},
|
|
70
|
-
clientEntry: "/assets/index-
|
|
74
|
+
clientEntry: "/assets/index-DBVxXDtw.js"
|
|
71
75
|
});
|
|
72
76
|
//#endregion
|
|
73
77
|
export { tsrStartManifest };
|