openpond 0.2.21 → 0.2.22

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 (115) hide show
  1. package/dist/app-server.d.ts +2 -0
  2. package/dist/app-server.js +1 -1
  3. package/dist/chunks/{actions-command-33SJXJKC.js → actions-command-P62RTUD6.js} +1 -1
  4. package/dist/chunks/{app-layer-LMB3B4TY.js → app-layer-6SOR3QBT.js} +1 -1
  5. package/dist/chunks/app-server-runtime-7POHOWYT.js +2 -0
  6. package/dist/chunks/{apps-2MNOKPO2.js → apps-HFTYJ74Q.js} +1 -1
  7. package/dist/chunks/{chunk-3P6B6NZN.js → chunk-2ESK5DPT.js} +1 -1
  8. package/dist/chunks/chunk-DQNSR2Q7.js +28 -0
  9. package/dist/chunks/{chunk-P7EHGAOW.js → chunk-GGFXBQ3B.js} +1 -1
  10. package/dist/chunks/{chunk-M57DLSRG.js → chunk-GKSPJZSF.js} +302 -302
  11. package/dist/chunks/{chunk-3KK2O7A4.js → chunk-GTV6J3M2.js} +1 -1
  12. package/dist/chunks/{chunk-UN3A7GEU.js → chunk-HPJFRC4R.js} +1 -1
  13. package/dist/chunks/{chunk-M3FDHTJ2.js → chunk-MCDTLTSV.js} +1 -1
  14. package/dist/chunks/chunk-MD7IADMT.js +5 -0
  15. package/dist/chunks/{chunk-Q7QAKAGF.js → chunk-ONMUSXZU.js} +14 -14
  16. package/dist/chunks/{chunk-TWA56GFU.js → chunk-QIQDNEFD.js} +1 -1
  17. package/dist/chunks/{chunk-WXAZLP5W.js → chunk-TDEMXZ3R.js} +1 -1
  18. package/dist/chunks/{chunk-E764DRA6.js → chunk-VNCJGHJC.js} +1 -1
  19. package/dist/chunks/{chunk-CUB5BQIQ.js → chunk-VU4NRDKZ.js} +2 -2
  20. package/dist/chunks/{chunk-IGRYR3PT.js → chunk-YH35HMNN.js} +1 -1
  21. package/dist/chunks/{cli-5YDIW3WP.js → cli-J5YD6UAN.js} +1 -1
  22. package/dist/chunks/{configuration-command-DSNTY5II.js → configuration-command-QIY6A4XZ.js} +1 -1
  23. package/dist/chunks/{core-commands-IDPOMDVM.js → core-commands-GDEELWSN.js} +1 -1
  24. package/dist/chunks/{desktop-test-VNGOXPKF.js → desktop-test-QIW5H3YZ.js} +1 -1
  25. package/dist/chunks/{extension-A5RB7I6T.js → extension-T5IOOMNR.js} +1 -1
  26. package/dist/chunks/{help-46NAZU6H.js → help-A2NLYYDQ.js} +1 -1
  27. package/dist/chunks/{opchat-2VPS674O.js → opchat-WMMKFVVB.js} +1 -1
  28. package/dist/chunks/{organizations-H4HZDRYM.js → organizations-RVMJ2UXS.js} +1 -1
  29. package/dist/chunks/{profile-TATWHJYY.js → profile-M5YD4P5E.js} +1 -1
  30. package/dist/chunks/{project-agent-3YOZKDEE.js → project-agent-6JUCQ4JO.js} +1 -1
  31. package/dist/chunks/{sandbox-command-RYX3KKMX.js → sandbox-command-KADUJT5Y.js} +1 -1
  32. package/dist/chunks/{sandbox-template-XYY5C3FD.js → sandbox-template-4SOHDYWY.js} +1 -1
  33. package/dist/chunks/{src-4R2FGHSH.js → src-GHTPFT4Q.js} +1 -1
  34. package/dist/chunks/{src-DHJBKILI.js → src-T3RRUIRF.js} +109 -109
  35. package/dist/chunks/{teams-bot-FUALFQMX.js → teams-bot-B2TEGEXF.js} +1 -1
  36. package/dist/chunks/{workspaces-H6H6XO2Q.js → workspaces-66IE4AVY.js} +1 -1
  37. package/dist/cli.js +1 -1
  38. package/dist/index.js +1 -1
  39. package/dist/web/assets/{App-CmqvOgHr.js → App-CZo3tYaG.js} +36 -36
  40. package/dist/web/assets/{AppDialog-DdKmw4d6.js → AppDialog-18Y9aU8z.js} +1 -1
  41. package/dist/web/assets/{AppTerminalPanel-W2pjVUtg.js → AppTerminalPanel-9jAU4wYe.js} +2 -2
  42. package/dist/web/assets/{AppsView-RKIWikGP.js → AppsView-BCYnY9mm.js} +1 -1
  43. package/dist/web/assets/{BrowserSidebar-Dqo6nl7J.js → BrowserSidebar-BVf3sUAG.js} +1 -1
  44. package/dist/web/assets/{CartesianChart-DTZeIAQy.js → CartesianChart-iai9Dz1D.js} +1 -1
  45. package/dist/web/assets/{CollaborationTabs-h4UCjUB4.js → CollaborationTabs-D7bZIwFC.js} +1 -1
  46. package/dist/web/assets/{CommandMenu-B2SH7g8V.js → CommandMenu-diFDbKQl.js} +1 -1
  47. package/dist/web/assets/{CommunityView-BtI1_qwS.js → CommunityView-DaLkwOxW.js} +1 -1
  48. package/dist/web/assets/{ComposerCreateImproveStrip-BW8RhDkB.js → ComposerCreateImproveStrip-B59nTCE7.js} +1 -1
  49. package/dist/web/assets/{GetStartedView-Fqk2AYt7.js → GetStartedView-BETryURK.js} +1 -1
  50. package/dist/web/assets/HostedModelLearningReview-D5JtAiLZ.js +1 -0
  51. package/dist/web/assets/{HostedModelLearningSettings-CgS4Z4WT.js → HostedModelLearningSettings-FCly06RA.js} +1 -1
  52. package/dist/web/assets/{LabModelVersionDetailPage-Dpr2GpAR.js → LabModelVersionDetailPage-9MzQj6cy.js} +1 -1
  53. package/dist/web/assets/{LabSkillSidebar-BDmNaZ8f.js → LabSkillSidebar-BJHO5-J9.js} +1 -1
  54. package/dist/web/assets/{LabsRoute-CVWKsnzj.js → LabsRoute-6jVWrbOO.js} +4 -4
  55. package/dist/web/assets/{MainChatThread-Bq6f3AUB.js → MainChatThread-DAoPK8jG.js} +2 -2
  56. package/dist/web/assets/{MainPane-CGa9bSOr.js → MainPane-LDPzuZSj.js} +4 -4
  57. package/dist/web/assets/{MarkdownText-BORA69YO.js → MarkdownText-B8URwlq9.js} +1 -1
  58. package/dist/web/assets/{Messages-Bwyst8lC.js → Messages-Byk73D9T.js} +1 -1
  59. package/dist/web/assets/{NativeSkillSidebar-Dt4xs-gi.js → NativeSkillSidebar-BodHqCCH.js} +1 -1
  60. package/dist/web/assets/{NewExperienceSwitcher-C-T2my1F.js → NewExperienceSwitcher-BkUxxlOu.js} +1 -1
  61. package/dist/web/assets/{NewProjectDialog-Bd-8y1vE.js → NewProjectDialog-BZr2wm-4.js} +1 -1
  62. package/dist/web/assets/{OutputsPage-DYnvMsY-.js → OutputsPage-C8ZDtD1Y.js} +1 -1
  63. package/dist/web/assets/{ProjectsPage-BPytEvtz.js → ProjectsPage-CgfjGsl2.js} +1 -1
  64. package/dist/web/assets/{RightChatPanelStack-CJR0y6c5.js → RightChatPanelStack-DV3csVka.js} +1 -1
  65. package/dist/web/assets/{RightSidebarHomePanel-Cn0x7kgh.js → RightSidebarHomePanel-DvLaHLBb.js} +1 -1
  66. package/dist/web/assets/{ScheduledWorkPage-DaHVYiok.js → ScheduledWorkPage-DtzxPTAL.js} +1 -1
  67. package/dist/web/assets/{SettingsView-DwIdA2Qy.js → SettingsView-C3sVxgPc.js} +3 -3
  68. package/dist/web/assets/{TeamChatView-C1VmxtuK.js → TeamChatView-B-w2nrWF.js} +1 -1
  69. package/dist/web/assets/{TerminalOverlay-CPIWstqb.js → TerminalOverlay-_X7WVAev.js} +1 -1
  70. package/dist/web/assets/{TrainingCreationPanel-CjFkopVx.js → TrainingCreationPanel-DaVppW1m.js} +1 -1
  71. package/dist/web/assets/{TrainingDraftPanel-BbiN33_a.js → TrainingDraftPanel-CVj19T6L.js} +1 -1
  72. package/dist/web/assets/{UsageSettingsSection-BxT4ZptX.js → UsageSettingsSection-fRTHVjhG.js} +1 -1
  73. package/dist/web/assets/{WorkSidebarPanel-nb-GyANT.js → WorkSidebarPanel-CGOQwdIW.js} +1 -1
  74. package/dist/web/assets/{WorkspaceDiffPanel-DFi28DQv.js → WorkspaceDiffPanel-D6hbMv14.js} +3 -3
  75. package/dist/web/assets/{WorkspaceEnvironmentMenu-DW6IImGA.js → WorkspaceEnvironmentMenu-rWj1aDI4.js} +1 -1
  76. package/dist/web/assets/{WorkspaceGitDialogs-DvV8_9aF.js → WorkspaceGitDialogs-DVU5SrD-.js} +1 -1
  77. package/dist/web/assets/{WorkspaceMonacoEditor-BYqlTbx1.js → WorkspaceMonacoEditor-D78JPviN.js} +3 -3
  78. package/dist/web/assets/{arrow-up-right-BQGeuv2m.js → arrow-up-right-CnaPKXjg.js} +1 -1
  79. package/dist/web/assets/{chat-file-links-BjlG4ZTF.js → chat-file-links-D1INEr8r.js} +1 -1
  80. package/dist/web/assets/chevron-up-Bx5d_Wmr.js +1 -0
  81. package/dist/web/assets/{clipboard-CImDHdf4.js → clipboard-B8GTg8tx.js} +1 -1
  82. package/dist/web/assets/{cloud-upload-DSrjiFxa.js → cloud-upload-BlEc_10E.js} +1 -1
  83. package/dist/web/assets/{cssMode-CO6QKs7A.js → cssMode-BiYvezMD.js} +1 -1
  84. package/dist/web/assets/{folder-open-DWt_CiJ4.js → folder-open-BaNdbDD5.js} +1 -1
  85. package/dist/web/assets/{folder-plus-DZJsMZZS.js → folder-plus-BQhz_VxM.js} +1 -1
  86. package/dist/web/assets/{git-commit-horizontal-BmhX8D3M.js → git-commit-horizontal-wv523Ooq.js} +1 -1
  87. package/dist/web/assets/{htmlMode-BbhUfh60.js → htmlMode-BaMdOCq4.js} +1 -1
  88. package/dist/web/assets/{index-VrrkDcgt.js → index-DP8vqolj.js} +2 -2
  89. package/dist/web/assets/{info-C0HVDnJn.js → info-C0Ova1D9.js} +1 -1
  90. package/dist/web/assets/{jsonMode-qUE2PjNm.js → jsonMode-BTt0GByK.js} +1 -1
  91. package/dist/web/assets/{lspLanguageFeatures-CfX3VOob.js → lspLanguageFeatures-C-1acLbv.js} +1 -1
  92. package/dist/web/assets/{minimize-2-BPu3-DJH.js → minimize-2-CW5KYp0W.js} +1 -1
  93. package/dist/web/assets/{monaco.contribution-adURqSPk.js → monaco.contribution-CpiBa8rP.js} +2 -2
  94. package/dist/web/assets/{monaco.contribution-CKQpqdUm.js → monaco.contribution-DoAhyjpn.js} +2 -2
  95. package/dist/web/assets/{monaco.contribution-BtbXAYNA.js → monaco.contribution-DyKzYxR3.js} +2 -2
  96. package/dist/web/assets/{monaco.contribution-DBKGSgm8.js → monaco.contribution-P9b5cZU2.js} +2 -2
  97. package/dist/web/assets/{play-CUyIuBFF.js → play-jV1i4pfe.js} +1 -1
  98. package/dist/web/assets/{python-q4l4w80D.js → python-BQnnGrv3.js} +1 -1
  99. package/dist/web/assets/{refresh-cw-IMz7arkM.js → refresh-cw-REnkUGNy.js} +1 -1
  100. package/dist/web/assets/{save-Cj-5iVpt.js → save-B2WTTCI_.js} +1 -1
  101. package/dist/web/assets/{square-zOxRs5It.js → square-CRb2lKMC.js} +1 -1
  102. package/dist/web/assets/{toggleHighContrast-Dj-u2UZ6.js → toggleHighContrast-BGsGhGW4.js} +1 -1
  103. package/dist/web/assets/{tsMode-B-r-e3os.js → tsMode-BWtSmvFs.js} +1 -1
  104. package/dist/web/assets/{upload-BpElaH7O.js → upload-B_PICaZn.js} +1 -1
  105. package/dist/web/assets/{useLocalAgentSchedules-wyJ9JjmR.js → useLocalAgentSchedules-zmmvBnwd.js} +1 -1
  106. package/dist/web/assets/{wifi-off-DWRK-TPQ.js → wifi-off-CjKTt0zE.js} +1 -1
  107. package/dist/web/assets/{workers-Pk9mKuOt.js → workers-CxglqyKV.js} +1 -1
  108. package/dist/web/assets/{yaml-hbr5HzqB.js → yaml-DgyPsmb2.js} +1 -1
  109. package/dist/web/index.html +1 -1
  110. package/package.json +1 -1
  111. package/dist/chunks/app-server-runtime-YAHD6FWN.js +0 -2
  112. package/dist/chunks/chunk-A2PIGBPD.js +0 -28
  113. package/dist/chunks/chunk-FRWPAVCD.js +0 -5
  114. package/dist/web/assets/HostedModelLearningReview-mBYA71Zs.js +0 -1
  115. package/dist/web/assets/chevron-up-BbI7fj2g.js +0 -1
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
3
- import{o as vt,p as St}from"./chunk-P7EHGAOW.js";import{Fa as yt}from"./chunk-M3FDHTJ2.js";import{j as pe,k as ht,m as me}from"./chunk-Q7QAKAGF.js";import"./chunk-6MI4KKWF.js";import"./chunk-SDO4FC4Q.js";import"./chunk-IR3YJWPW.js";import"./chunk-J2S7BOZU.js";import"./chunk-A2PIGBPD.js";import"./chunk-6FA3GG5B.js";import{J as He,K as ee,M as pt,N as mt,Q as ft,T as gt}from"./chunk-NNLI4OWY.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import{f as dt,h as ct}from"./chunk-H7IWJN7L.js";import{a as i}from"./chunk-FTQLQJQV.js";import{createInterface as oo}from"node:readline/promises";import{stdin as Fe,stdout as k}from"node:process";import{pathToFileURL as io}from"node:url";function ge(){return{text:"",cursor:0,history:[],historyIndex:null}}i(ge,"createComposer");function wt(e,t){let r=e.text.slice(0,e.cursor),n=e.text.slice(e.cursor);return{...e,text:`${r}${t}${n}`,cursor:e.cursor+t.length,historyIndex:null}}i(wt,"insertText");function fe(e,t){return{...e,text:t,cursor:t.length}}i(fe,"replaceComposerText");function Rr(e){let t=e.text.trim();return t?{state:{text:"",cursor:0,history:[...e.history.filter(r=>r!==t),t].slice(-100),historyIndex:null},action:{type:"submit",text:t}}:{state:{...e,text:"",cursor:0,historyIndex:null},action:{type:"none"}}}i(Rr,"submitComposer");function Tt(e,t){if(t==="ctrl+c")return{state:e,action:{type:"cancel-or-exit"}};if(t==="ctrl+d")return{state:e,action:e.text?{type:"none"}:{type:"exit"}};if(t==="ctrl+l")return{state:e,action:{type:"rerender"}};if(t==="enter")return Rr(e);if(t==="alt+enter")return{state:wt(e,`
3
+ import{o as vt,p as St}from"./chunk-GGFXBQ3B.js";import{Fa as yt}from"./chunk-MCDTLTSV.js";import{j as pe,k as ht,m as me}from"./chunk-ONMUSXZU.js";import"./chunk-6MI4KKWF.js";import"./chunk-SDO4FC4Q.js";import"./chunk-IR3YJWPW.js";import"./chunk-J2S7BOZU.js";import"./chunk-DQNSR2Q7.js";import"./chunk-6FA3GG5B.js";import{J as He,K as ee,M as pt,N as mt,Q as ft,T as gt}from"./chunk-NNLI4OWY.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import{f as dt,h as ct}from"./chunk-H7IWJN7L.js";import{a as i}from"./chunk-FTQLQJQV.js";import{createInterface as oo}from"node:readline/promises";import{stdin as Fe,stdout as k}from"node:process";import{pathToFileURL as io}from"node:url";function ge(){return{text:"",cursor:0,history:[],historyIndex:null}}i(ge,"createComposer");function wt(e,t){let r=e.text.slice(0,e.cursor),n=e.text.slice(e.cursor);return{...e,text:`${r}${t}${n}`,cursor:e.cursor+t.length,historyIndex:null}}i(wt,"insertText");function fe(e,t){return{...e,text:t,cursor:t.length}}i(fe,"replaceComposerText");function Rr(e){let t=e.text.trim();return t?{state:{text:"",cursor:0,history:[...e.history.filter(r=>r!==t),t].slice(-100),historyIndex:null},action:{type:"submit",text:t}}:{state:{...e,text:"",cursor:0,historyIndex:null},action:{type:"none"}}}i(Rr,"submitComposer");function Tt(e,t){if(t==="ctrl+c")return{state:e,action:{type:"cancel-or-exit"}};if(t==="ctrl+d")return{state:e,action:e.text?{type:"none"}:{type:"exit"}};if(t==="ctrl+l")return{state:e,action:{type:"rerender"}};if(t==="enter")return Rr(e);if(t==="alt+enter")return{state:wt(e,`
4
4
  `),action:{type:"none"}};if(t==="backspace")return e.cursor<=0?{state:e,action:{type:"none"}}:{state:{...e,text:`${e.text.slice(0,e.cursor-1)}${e.text.slice(e.cursor)}`,cursor:e.cursor-1},action:{type:"none"}};if(t==="delete")return e.cursor>=e.text.length?{state:e,action:{type:"none"}}:{state:{...e,text:`${e.text.slice(0,e.cursor)}${e.text.slice(e.cursor+1)}`},action:{type:"none"}};if(t==="left")return{state:{...e,cursor:Math.max(0,e.cursor-1)},action:{type:"none"}};if(t==="right")return{state:{...e,cursor:Math.min(e.text.length,e.cursor+1)},action:{type:"none"}};if(t==="home"||t==="ctrl+a")return{state:{...e,cursor:0},action:{type:"none"}};if(t==="end"||t==="ctrl+e")return{state:{...e,cursor:e.text.length},action:{type:"none"}};if(t==="ctrl+u")return{state:{...e,text:e.text.slice(e.cursor),cursor:0},action:{type:"none"}};if(t==="ctrl+k")return{state:{...e,text:e.text.slice(0,e.cursor)},action:{type:"none"}};if(t==="up"){if(e.history.length===0)return{state:e,action:{type:"none"}};let r=e.historyIndex===null?e.history.length-1:Math.max(0,e.historyIndex-1);return{state:fe({...e,historyIndex:r},e.history[r]??""),action:{type:"none"}}}if(t==="down"){if(e.historyIndex===null)return{state:e,action:{type:"none"}};let r=e.historyIndex+1;return r>=e.history.length?{state:{...e,text:"",cursor:0,historyIndex:null},action:{type:"none"}}:{state:fe({...e,historyIndex:r},e.history[r]??""),action:{type:"none"}}}return t.length>0?{state:wt(e,t),action:{type:"none"}}:{state:e,action:{type:"none"}}}i(Tt,"handleComposerKey");var bt="A turn is already running. Wait for it to finish before sending another line.";function Mr(){let e=!1;return{isRunning(){return e},tryStartSubmission(){return e?!1:(e=!0,!0)},failSubmission(){e=!1},applyRuntimeEvent(t){t.name==="turn.started"&&(e=!0),(t.name==="turn.completed"||t.name==="turn.failed"||t.name==="turn.interrupted")&&(e=!1)}}}i(Mr,"createTerminalTurnSubmissionGuard");function Pt(){return Mr()}i(Pt,"createLineModeTurnGuard");var he=[{name:"help",usage:"/help",description:"show this help"},{name:"providers",usage:"/providers",description:"list providers"},{name:"provider",usage:"/provider [id]",description:"switch provider",requiresArgument:!0},{name:"model",usage:"/model [id]",description:"list or switch model"},{name:"apps",usage:"/apps",description:"list connectable apps"},{name:"install",usage:"/install <app>",description:"open app details",requiresArgument:!0},{name:"projects",usage:"/projects",description:"list projects"},{name:"project",usage:"/project <id>",description:"switch project",requiresArgument:!0},{name:"permissions",usage:"/permissions [ask|full-access]",description:"show or change command access"},{name:"profile",usage:"/profile [status|diff|catalog|check|push]",description:"show or sync profile"},{name:"agents",usage:"/agents",description:"list agents"},{name:"agent",usage:"/agent <id>",description:"select agent",requiresArgument:!0},{name:"run",usage:"/run <action> [json]",description:"run profile action",requiresArgument:!0},{name:"settings",usage:"/settings",description:"show settings"},{name:"logs",usage:"/logs",description:"show recent events"},{name:"compact",usage:"/compact",description:"compact current session"},{name:"clear",usage:"/clear",description:"clear terminal transcript"},{name:"exit",usage:"/exit",description:"exit"},{name:"hooks",usage:"/hooks",description:"show hook status"},{name:"start",usage:"/start",description:"start a new session"}];function ze(e){if(!e.startsWith("/"))return null;let[t="",...r]=e.slice(1).trim().split(/\s+/),n=t.toLowerCase();if(!n)return null;if(n==="exit"||n==="quit")return{type:"exit"};if(n==="help")return{type:"help"};if(n==="clear")return{type:"clear"};if(n==="agents")return{type:"agents"};if(n==="apps")return{type:"apps"};if(n==="agent")return{type:"agent",id:r.join(" ").trim()};if(n==="install")return{type:"install",id:r.join(" ").trim()};if(n==="projects")return{type:"projects"};if(n==="project")return{type:"project",id:r.join(" ").trim()};if(n==="model")return{type:"model",id:r.join(" ").trim()||null};if(n==="permissions")return{type:"permissions",args:r};if(n==="profile")return{type:"profile",args:r};if(n==="logs")return{type:"logs"};if(n==="providers")return{type:"providers"};if(n==="provider")return{type:"provider",id:r.join(" ").trim()||null};if(n==="compact")return{type:"compact"};if(n==="hooks")return{type:"hooks"};if(n==="start")return{type:"start"};if(n==="run"){let o=r[0]??"",s=r.slice(1).join(" ").trim();return s?{type:"run",action:o,input:JSON.parse(s)}:{type:"run",action:o,input:void 0}}return n==="settings"?{type:"settings",args:r}:{type:"unknown",command:n}}i(ze,"parseSlashCommand");function xt(e){let t=e.trim();if(!t.startsWith("!"))return null;let r=t.slice(1).trim();return r?{command:r}:null}i(xt,"parseDirectCommandPrompt");function Ct(){let e=Math.max(...he.map(t=>t.usage.length));return["Commands:",...he.map(t=>`${t.usage.padEnd(e+2)}${t.description}`)].join(`
5
5
  `)}i(Ct,"helpText");var ye=class{static{i(this,"RawInput")}input;onKey;previousRawMode=!1;dataHandler=null;constructor(t,r){this.input=t,this.onKey=r}start(){this.previousRawMode=this.input.isRaw??!1,this.input.setRawMode(!0),this.input.resume(),this.dataHandler=t=>{for(let r of Or(t))this.onKey(r)},this.input.on("data",this.dataHandler)}stop(){this.dataHandler&&this.input.off("data",this.dataHandler),this.dataHandler=null,this.input.setRawMode(this.previousRawMode),this.input.pause()}};function Or(e){let t=e.toString("utf8"),r=[];for(let n=0;n<t.length;n+=1){let o=t[n],s=t[n+1];if(o==="\x1B"){let a=jr(t,n);r.push(a.key),n=a.end;continue}o===""?r.push("ctrl+c"):o===""?r.push("ctrl+d"):o==="\f"?r.push("ctrl+l"):o===""?r.push("ctrl+a"):o===""?r.push("ctrl+e"):o==="\v"?r.push("ctrl+k"):o===""?r.push("ctrl+u"):o==="\x7F"||o==="\b"?r.push("backspace"):o==="\r"||o===`
6
6
  `?r.push("enter"):(o>=" "||o&&s)&&r.push(o)}return r}i(Or,"decodeKeys");function jr(e,t){let r=e.slice(t);return r.startsWith("\x1B\r")||r.startsWith(`\x1B