wtt-connect 0.2.18 → 0.2.20

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 (319) hide show
  1. package/package.json +2 -5
  2. package/src/adapters/codex.js +144 -2
  3. package/src/runner.js +258 -0
  4. package/src/store.js +6 -0
  5. package/src/terminal-session.js +12 -1
  6. package/node_modules/node-addon-api/LICENSE.md +0 -9
  7. package/node_modules/node-addon-api/README.md +0 -319
  8. package/node_modules/node-addon-api/common.gypi +0 -20
  9. package/node_modules/node-addon-api/except.gypi +0 -25
  10. package/node_modules/node-addon-api/index.js +0 -12
  11. package/node_modules/node-addon-api/napi-inl.deprecated.h +0 -186
  12. package/node_modules/node-addon-api/napi-inl.h +0 -6607
  13. package/node_modules/node-addon-api/napi.h +0 -3201
  14. package/node_modules/node-addon-api/node_addon_api.gyp +0 -32
  15. package/node_modules/node-addon-api/node_api.gyp +0 -9
  16. package/node_modules/node-addon-api/noexcept.gypi +0 -26
  17. package/node_modules/node-addon-api/nothing.c +0 -0
  18. package/node_modules/node-addon-api/package-support.json +0 -21
  19. package/node_modules/node-addon-api/package.json +0 -480
  20. package/node_modules/node-addon-api/tools/README.md +0 -73
  21. package/node_modules/node-addon-api/tools/check-napi.js +0 -99
  22. package/node_modules/node-addon-api/tools/clang-format.js +0 -71
  23. package/node_modules/node-addon-api/tools/conversion.js +0 -301
  24. package/node_modules/node-addon-api/tools/eslint-format.js +0 -79
  25. package/node_modules/node-pty/LICENSE +0 -69
  26. package/node_modules/node-pty/README.md +0 -165
  27. package/node_modules/node-pty/binding.gyp +0 -111
  28. package/node_modules/node-pty/build/Makefile +0 -369
  29. package/node_modules/node-pty/build/Release/pty.node +0 -0
  30. package/node_modules/node-pty/build/binding.Makefile +0 -6
  31. package/node_modules/node-pty/build/config.gypi +0 -503
  32. package/node_modules/node-pty/build/pty.target.mk +0 -168
  33. package/node_modules/node-pty/deps/.editorconfig +0 -2
  34. package/node_modules/node-pty/deps/winpty/.drone.yml +0 -17
  35. package/node_modules/node-pty/deps/winpty/.gitattributes +0 -19
  36. package/node_modules/node-pty/deps/winpty/LICENSE +0 -21
  37. package/node_modules/node-pty/deps/winpty/Makefile +0 -166
  38. package/node_modules/node-pty/deps/winpty/README.md +0 -151
  39. package/node_modules/node-pty/deps/winpty/RELEASES.md +0 -280
  40. package/node_modules/node-pty/deps/winpty/VERSION.txt +0 -1
  41. package/node_modules/node-pty/deps/winpty/configure +0 -167
  42. package/node_modules/node-pty/deps/winpty/misc/BufferResizeTests.cc +0 -90
  43. package/node_modules/node-pty/deps/winpty/misc/ChangeScreenBuffer.cc +0 -53
  44. package/node_modules/node-pty/deps/winpty/misc/ClearConsole.cc +0 -72
  45. package/node_modules/node-pty/deps/winpty/misc/ConinMode.cc +0 -117
  46. package/node_modules/node-pty/deps/winpty/misc/ConinMode.ps1 +0 -116
  47. package/node_modules/node-pty/deps/winpty/misc/ConoutMode.cc +0 -113
  48. package/node_modules/node-pty/deps/winpty/misc/DebugClient.py +0 -42
  49. package/node_modules/node-pty/deps/winpty/misc/DebugServer.py +0 -63
  50. package/node_modules/node-pty/deps/winpty/misc/DumpLines.py +0 -5
  51. package/node_modules/node-pty/deps/winpty/misc/EnableExtendedFlags.txt +0 -46
  52. package/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Consolas.txt +0 -528
  53. package/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP437-Lucida.txt +0 -633
  54. package/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP932.txt +0 -630
  55. package/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP936.txt +0 -630
  56. package/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP949.txt +0 -630
  57. package/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/CP950.txt +0 -630
  58. package/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/MinimumWindowWidths.txt +0 -16
  59. package/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Results.txt +0 -4
  60. package/node_modules/node-pty/deps/winpty/misc/Font-Report-June2016/Windows10SetFontBugginess.txt +0 -144
  61. package/node_modules/node-pty/deps/winpty/misc/FontSurvey.cc +0 -100
  62. package/node_modules/node-pty/deps/winpty/misc/FormatChar.h +0 -21
  63. package/node_modules/node-pty/deps/winpty/misc/FreezePerfTest.cc +0 -62
  64. package/node_modules/node-pty/deps/winpty/misc/GetCh.cc +0 -20
  65. package/node_modules/node-pty/deps/winpty/misc/GetConsolePos.cc +0 -41
  66. package/node_modules/node-pty/deps/winpty/misc/GetFont.cc +0 -261
  67. package/node_modules/node-pty/deps/winpty/misc/IdentifyConsoleWindow.ps1 +0 -51
  68. package/node_modules/node-pty/deps/winpty/misc/IsNewConsole.cc +0 -87
  69. package/node_modules/node-pty/deps/winpty/misc/MouseInputNotes.txt +0 -90
  70. package/node_modules/node-pty/deps/winpty/misc/MoveConsoleWindow.cc +0 -34
  71. package/node_modules/node-pty/deps/winpty/misc/Notes.txt +0 -219
  72. package/node_modules/node-pty/deps/winpty/misc/OSVersion.cc +0 -27
  73. package/node_modules/node-pty/deps/winpty/misc/ScreenBufferFreezeInactive.cc +0 -101
  74. package/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest.cc +0 -671
  75. package/node_modules/node-pty/deps/winpty/misc/ScreenBufferTest2.cc +0 -151
  76. package/node_modules/node-pty/deps/winpty/misc/SelectAllTest.cc +0 -45
  77. package/node_modules/node-pty/deps/winpty/misc/SetBufferSize.cc +0 -32
  78. package/node_modules/node-pty/deps/winpty/misc/SetCursorPos.cc +0 -10
  79. package/node_modules/node-pty/deps/winpty/misc/SetFont.cc +0 -145
  80. package/node_modules/node-pty/deps/winpty/misc/SetWindowRect.cc +0 -36
  81. package/node_modules/node-pty/deps/winpty/misc/ShowArgv.cc +0 -12
  82. package/node_modules/node-pty/deps/winpty/misc/ShowConsoleInput.cc +0 -40
  83. package/node_modules/node-pty/deps/winpty/misc/Spew.py +0 -5
  84. package/node_modules/node-pty/deps/winpty/misc/TestUtil.cc +0 -172
  85. package/node_modules/node-pty/deps/winpty/misc/UnicodeDoubleWidthTest.cc +0 -102
  86. package/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest1.cc +0 -246
  87. package/node_modules/node-pty/deps/winpty/misc/UnicodeWideTest2.cc +0 -130
  88. package/node_modules/node-pty/deps/winpty/misc/UnixEcho.cc +0 -89
  89. package/node_modules/node-pty/deps/winpty/misc/Utf16Echo.cc +0 -46
  90. package/node_modules/node-pty/deps/winpty/misc/VeryLargeRead.cc +0 -122
  91. package/node_modules/node-pty/deps/winpty/misc/VkEscapeTest.cc +0 -56
  92. package/node_modules/node-pty/deps/winpty/misc/Win10ResizeWhileFrozen.cc +0 -52
  93. package/node_modules/node-pty/deps/winpty/misc/Win10WrapTest1.cc +0 -57
  94. package/node_modules/node-pty/deps/winpty/misc/Win10WrapTest2.cc +0 -30
  95. package/node_modules/node-pty/deps/winpty/misc/Win32Echo1.cc +0 -26
  96. package/node_modules/node-pty/deps/winpty/misc/Win32Echo2.cc +0 -19
  97. package/node_modules/node-pty/deps/winpty/misc/Win32Test1.cc +0 -46
  98. package/node_modules/node-pty/deps/winpty/misc/Win32Test2.cc +0 -70
  99. package/node_modules/node-pty/deps/winpty/misc/Win32Test3.cc +0 -78
  100. package/node_modules/node-pty/deps/winpty/misc/Win32Write1.cc +0 -44
  101. package/node_modules/node-pty/deps/winpty/misc/WindowsBugCrashReader.cc +0 -27
  102. package/node_modules/node-pty/deps/winpty/misc/WriteConsole.cc +0 -106
  103. package/node_modules/node-pty/deps/winpty/misc/build32.sh +0 -9
  104. package/node_modules/node-pty/deps/winpty/misc/build64.sh +0 -9
  105. package/node_modules/node-pty/deps/winpty/misc/color-test.sh +0 -212
  106. package/node_modules/node-pty/deps/winpty/misc/font-notes.txt +0 -300
  107. package/node_modules/node-pty/deps/winpty/misc/winbug-15048.cc +0 -201
  108. package/node_modules/node-pty/deps/winpty/ship/build-pty4j-libpty.bat +0 -36
  109. package/node_modules/node-pty/deps/winpty/ship/common_ship.py +0 -53
  110. package/node_modules/node-pty/deps/winpty/ship/make_msvc_package.py +0 -165
  111. package/node_modules/node-pty/deps/winpty/ship/ship.py +0 -108
  112. package/node_modules/node-pty/deps/winpty/src/agent/Agent.cc +0 -613
  113. package/node_modules/node-pty/deps/winpty/src/agent/Agent.h +0 -103
  114. package/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.cc +0 -84
  115. package/node_modules/node-pty/deps/winpty/src/agent/AgentCreateDesktop.h +0 -28
  116. package/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.cc +0 -632
  117. package/node_modules/node-pty/deps/winpty/src/agent/ConsoleFont.h +0 -28
  118. package/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.cc +0 -852
  119. package/node_modules/node-pty/deps/winpty/src/agent/ConsoleInput.h +0 -109
  120. package/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.cc +0 -121
  121. package/node_modules/node-pty/deps/winpty/src/agent/ConsoleInputReencoding.h +0 -36
  122. package/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.cc +0 -152
  123. package/node_modules/node-pty/deps/winpty/src/agent/ConsoleLine.h +0 -41
  124. package/node_modules/node-pty/deps/winpty/src/agent/Coord.h +0 -87
  125. package/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.cc +0 -239
  126. package/node_modules/node-pty/deps/winpty/src/agent/DebugShowInput.h +0 -32
  127. package/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.cc +0 -422
  128. package/node_modules/node-pty/deps/winpty/src/agent/DefaultInputMap.h +0 -28
  129. package/node_modules/node-pty/deps/winpty/src/agent/DsrSender.h +0 -30
  130. package/node_modules/node-pty/deps/winpty/src/agent/EventLoop.cc +0 -99
  131. package/node_modules/node-pty/deps/winpty/src/agent/EventLoop.h +0 -47
  132. package/node_modules/node-pty/deps/winpty/src/agent/InputMap.cc +0 -246
  133. package/node_modules/node-pty/deps/winpty/src/agent/InputMap.h +0 -114
  134. package/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.cc +0 -71
  135. package/node_modules/node-pty/deps/winpty/src/agent/LargeConsoleRead.h +0 -68
  136. package/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.cc +0 -378
  137. package/node_modules/node-pty/deps/winpty/src/agent/NamedPipe.h +0 -125
  138. package/node_modules/node-pty/deps/winpty/src/agent/Scraper.cc +0 -699
  139. package/node_modules/node-pty/deps/winpty/src/agent/Scraper.h +0 -103
  140. package/node_modules/node-pty/deps/winpty/src/agent/SimplePool.h +0 -75
  141. package/node_modules/node-pty/deps/winpty/src/agent/SmallRect.h +0 -143
  142. package/node_modules/node-pty/deps/winpty/src/agent/Terminal.cc +0 -535
  143. package/node_modules/node-pty/deps/winpty/src/agent/Terminal.h +0 -69
  144. package/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncoding.h +0 -157
  145. package/node_modules/node-pty/deps/winpty/src/agent/UnicodeEncodingTest.cc +0 -189
  146. package/node_modules/node-pty/deps/winpty/src/agent/Win32Console.cc +0 -107
  147. package/node_modules/node-pty/deps/winpty/src/agent/Win32Console.h +0 -67
  148. package/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.cc +0 -193
  149. package/node_modules/node-pty/deps/winpty/src/agent/Win32ConsoleBuffer.h +0 -99
  150. package/node_modules/node-pty/deps/winpty/src/agent/main.cc +0 -114
  151. package/node_modules/node-pty/deps/winpty/src/agent/subdir.mk +0 -61
  152. package/node_modules/node-pty/deps/winpty/src/configurations.gypi +0 -60
  153. package/node_modules/node-pty/deps/winpty/src/debugserver/DebugServer.cc +0 -117
  154. package/node_modules/node-pty/deps/winpty/src/debugserver/subdir.mk +0 -41
  155. package/node_modules/node-pty/deps/winpty/src/include/winpty.h +0 -242
  156. package/node_modules/node-pty/deps/winpty/src/include/winpty_constants.h +0 -131
  157. package/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.cc +0 -75
  158. package/node_modules/node-pty/deps/winpty/src/libwinpty/AgentLocation.h +0 -28
  159. package/node_modules/node-pty/deps/winpty/src/libwinpty/LibWinptyException.h +0 -54
  160. package/node_modules/node-pty/deps/winpty/src/libwinpty/WinptyInternal.h +0 -72
  161. package/node_modules/node-pty/deps/winpty/src/libwinpty/subdir.mk +0 -46
  162. package/node_modules/node-pty/deps/winpty/src/libwinpty/winpty.cc +0 -970
  163. package/node_modules/node-pty/deps/winpty/src/shared/AgentMsg.h +0 -38
  164. package/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.cc +0 -122
  165. package/node_modules/node-pty/deps/winpty/src/shared/BackgroundDesktop.h +0 -73
  166. package/node_modules/node-pty/deps/winpty/src/shared/Buffer.cc +0 -103
  167. package/node_modules/node-pty/deps/winpty/src/shared/Buffer.h +0 -102
  168. package/node_modules/node-pty/deps/winpty/src/shared/DebugClient.cc +0 -187
  169. package/node_modules/node-pty/deps/winpty/src/shared/DebugClient.h +0 -38
  170. package/node_modules/node-pty/deps/winpty/src/shared/GenRandom.cc +0 -138
  171. package/node_modules/node-pty/deps/winpty/src/shared/GenRandom.h +0 -55
  172. package/node_modules/node-pty/deps/winpty/src/shared/GetCommitHash.bat +0 -13
  173. package/node_modules/node-pty/deps/winpty/src/shared/Mutex.h +0 -54
  174. package/node_modules/node-pty/deps/winpty/src/shared/OsModule.h +0 -63
  175. package/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.cc +0 -36
  176. package/node_modules/node-pty/deps/winpty/src/shared/OwnedHandle.h +0 -45
  177. package/node_modules/node-pty/deps/winpty/src/shared/PrecompiledHeader.h +0 -43
  178. package/node_modules/node-pty/deps/winpty/src/shared/StringBuilder.h +0 -227
  179. package/node_modules/node-pty/deps/winpty/src/shared/StringBuilderTest.cc +0 -114
  180. package/node_modules/node-pty/deps/winpty/src/shared/StringUtil.cc +0 -55
  181. package/node_modules/node-pty/deps/winpty/src/shared/StringUtil.h +0 -80
  182. package/node_modules/node-pty/deps/winpty/src/shared/TimeMeasurement.h +0 -63
  183. package/node_modules/node-pty/deps/winpty/src/shared/UnixCtrlChars.h +0 -45
  184. package/node_modules/node-pty/deps/winpty/src/shared/UpdateGenVersion.bat +0 -20
  185. package/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.cc +0 -460
  186. package/node_modules/node-pty/deps/winpty/src/shared/WindowsSecurity.h +0 -104
  187. package/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.cc +0 -252
  188. package/node_modules/node-pty/deps/winpty/src/shared/WindowsVersion.h +0 -29
  189. package/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.cc +0 -55
  190. package/node_modules/node-pty/deps/winpty/src/shared/WinptyAssert.h +0 -64
  191. package/node_modules/node-pty/deps/winpty/src/shared/WinptyException.cc +0 -57
  192. package/node_modules/node-pty/deps/winpty/src/shared/WinptyException.h +0 -43
  193. package/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.cc +0 -42
  194. package/node_modules/node-pty/deps/winpty/src/shared/WinptyVersion.h +0 -27
  195. package/node_modules/node-pty/deps/winpty/src/shared/winpty_snprintf.h +0 -99
  196. package/node_modules/node-pty/deps/winpty/src/subdir.mk +0 -5
  197. package/node_modules/node-pty/deps/winpty/src/tests/subdir.mk +0 -28
  198. package/node_modules/node-pty/deps/winpty/src/tests/trivial_test.cc +0 -158
  199. package/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.cc +0 -114
  200. package/node_modules/node-pty/deps/winpty/src/unix-adapter/InputHandler.h +0 -56
  201. package/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.cc +0 -80
  202. package/node_modules/node-pty/deps/winpty/src/unix-adapter/OutputHandler.h +0 -53
  203. package/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.cc +0 -86
  204. package/node_modules/node-pty/deps/winpty/src/unix-adapter/Util.h +0 -31
  205. package/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.cc +0 -70
  206. package/node_modules/node-pty/deps/winpty/src/unix-adapter/WakeupFd.h +0 -42
  207. package/node_modules/node-pty/deps/winpty/src/unix-adapter/main.cc +0 -729
  208. package/node_modules/node-pty/deps/winpty/src/unix-adapter/subdir.mk +0 -41
  209. package/node_modules/node-pty/deps/winpty/src/winpty.gyp +0 -234
  210. package/node_modules/node-pty/deps/winpty/vcbuild.bat +0 -83
  211. package/node_modules/node-pty/lib/conpty_console_list_agent.js +0 -16
  212. package/node_modules/node-pty/lib/conpty_console_list_agent.js.map +0 -1
  213. package/node_modules/node-pty/lib/eventEmitter2.js +0 -47
  214. package/node_modules/node-pty/lib/eventEmitter2.js.map +0 -1
  215. package/node_modules/node-pty/lib/eventEmitter2.test.js +0 -30
  216. package/node_modules/node-pty/lib/eventEmitter2.test.js.map +0 -1
  217. package/node_modules/node-pty/lib/index.js +0 -52
  218. package/node_modules/node-pty/lib/index.js.map +0 -1
  219. package/node_modules/node-pty/lib/interfaces.js +0 -7
  220. package/node_modules/node-pty/lib/interfaces.js.map +0 -1
  221. package/node_modules/node-pty/lib/shared/conout.js +0 -11
  222. package/node_modules/node-pty/lib/shared/conout.js.map +0 -1
  223. package/node_modules/node-pty/lib/terminal.js +0 -190
  224. package/node_modules/node-pty/lib/terminal.js.map +0 -1
  225. package/node_modules/node-pty/lib/terminal.test.js +0 -139
  226. package/node_modules/node-pty/lib/terminal.test.js.map +0 -1
  227. package/node_modules/node-pty/lib/testUtils.test.js +0 -28
  228. package/node_modules/node-pty/lib/testUtils.test.js.map +0 -1
  229. package/node_modules/node-pty/lib/types.js +0 -7
  230. package/node_modules/node-pty/lib/types.js.map +0 -1
  231. package/node_modules/node-pty/lib/unixTerminal.js +0 -346
  232. package/node_modules/node-pty/lib/unixTerminal.js.map +0 -1
  233. package/node_modules/node-pty/lib/unixTerminal.test.js +0 -351
  234. package/node_modules/node-pty/lib/unixTerminal.test.js.map +0 -1
  235. package/node_modules/node-pty/lib/utils.js +0 -39
  236. package/node_modules/node-pty/lib/utils.js.map +0 -1
  237. package/node_modules/node-pty/lib/windowsConoutConnection.js +0 -125
  238. package/node_modules/node-pty/lib/windowsConoutConnection.js.map +0 -1
  239. package/node_modules/node-pty/lib/windowsPtyAgent.js +0 -320
  240. package/node_modules/node-pty/lib/windowsPtyAgent.js.map +0 -1
  241. package/node_modules/node-pty/lib/windowsPtyAgent.test.js +0 -90
  242. package/node_modules/node-pty/lib/windowsPtyAgent.test.js.map +0 -1
  243. package/node_modules/node-pty/lib/windowsTerminal.js +0 -199
  244. package/node_modules/node-pty/lib/windowsTerminal.js.map +0 -1
  245. package/node_modules/node-pty/lib/windowsTerminal.test.js +0 -219
  246. package/node_modules/node-pty/lib/windowsTerminal.test.js.map +0 -1
  247. package/node_modules/node-pty/lib/worker/conoutSocketWorker.js +0 -22
  248. package/node_modules/node-pty/lib/worker/conoutSocketWorker.js.map +0 -1
  249. package/node_modules/node-pty/node-addon-api/node_addon_api.Makefile +0 -6
  250. package/node_modules/node-pty/node-addon-api/node_addon_api.target.mk +0 -106
  251. package/node_modules/node-pty/node-addon-api/node_addon_api_except.target.mk +0 -110
  252. package/node_modules/node-pty/node-addon-api/node_addon_api_maybe.target.mk +0 -106
  253. package/node_modules/node-pty/package.json +0 -64
  254. package/node_modules/node-pty/prebuilds/darwin-arm64/pty.node +0 -0
  255. package/node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper +0 -0
  256. package/node_modules/node-pty/prebuilds/darwin-x64/pty.node +0 -0
  257. package/node_modules/node-pty/prebuilds/darwin-x64/spawn-helper +0 -0
  258. package/node_modules/node-pty/prebuilds/win32-arm64/conpty/OpenConsole.exe +0 -0
  259. package/node_modules/node-pty/prebuilds/win32-arm64/conpty/conpty.dll +0 -0
  260. package/node_modules/node-pty/prebuilds/win32-arm64/conpty.node +0 -0
  261. package/node_modules/node-pty/prebuilds/win32-arm64/conpty.pdb +0 -0
  262. package/node_modules/node-pty/prebuilds/win32-arm64/conpty_console_list.node +0 -0
  263. package/node_modules/node-pty/prebuilds/win32-arm64/conpty_console_list.pdb +0 -0
  264. package/node_modules/node-pty/prebuilds/win32-arm64/pty.node +0 -0
  265. package/node_modules/node-pty/prebuilds/win32-arm64/pty.pdb +0 -0
  266. package/node_modules/node-pty/prebuilds/win32-arm64/winpty-agent.exe +0 -0
  267. package/node_modules/node-pty/prebuilds/win32-arm64/winpty-agent.pdb +0 -0
  268. package/node_modules/node-pty/prebuilds/win32-arm64/winpty.dll +0 -0
  269. package/node_modules/node-pty/prebuilds/win32-arm64/winpty.pdb +0 -0
  270. package/node_modules/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
  271. package/node_modules/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
  272. package/node_modules/node-pty/prebuilds/win32-x64/conpty.node +0 -0
  273. package/node_modules/node-pty/prebuilds/win32-x64/conpty.pdb +0 -0
  274. package/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
  275. package/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.pdb +0 -0
  276. package/node_modules/node-pty/prebuilds/win32-x64/pty.node +0 -0
  277. package/node_modules/node-pty/prebuilds/win32-x64/pty.pdb +0 -0
  278. package/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.exe +0 -0
  279. package/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.pdb +0 -0
  280. package/node_modules/node-pty/prebuilds/win32-x64/winpty.dll +0 -0
  281. package/node_modules/node-pty/prebuilds/win32-x64/winpty.pdb +0 -0
  282. package/node_modules/node-pty/scripts/gen-compile-commands.js +0 -8
  283. package/node_modules/node-pty/scripts/increment-version.js +0 -54
  284. package/node_modules/node-pty/scripts/post-install.js +0 -80
  285. package/node_modules/node-pty/scripts/prebuild.js +0 -34
  286. package/node_modules/node-pty/src/conpty_console_list_agent.ts +0 -15
  287. package/node_modules/node-pty/src/eventEmitter2.test.ts +0 -30
  288. package/node_modules/node-pty/src/eventEmitter2.ts +0 -48
  289. package/node_modules/node-pty/src/index.ts +0 -52
  290. package/node_modules/node-pty/src/interfaces.ts +0 -130
  291. package/node_modules/node-pty/src/native.d.ts +0 -54
  292. package/node_modules/node-pty/src/shared/conout.ts +0 -15
  293. package/node_modules/node-pty/src/terminal.test.ts +0 -119
  294. package/node_modules/node-pty/src/terminal.ts +0 -211
  295. package/node_modules/node-pty/src/testUtils.test.ts +0 -23
  296. package/node_modules/node-pty/src/tsconfig.json +0 -22
  297. package/node_modules/node-pty/src/types.ts +0 -15
  298. package/node_modules/node-pty/src/unix/pty.cc +0 -799
  299. package/node_modules/node-pty/src/unix/spawn-helper.cc +0 -23
  300. package/node_modules/node-pty/src/unixTerminal.test.ts +0 -367
  301. package/node_modules/node-pty/src/unixTerminal.ts +0 -388
  302. package/node_modules/node-pty/src/utils.ts +0 -29
  303. package/node_modules/node-pty/src/win/conpty.cc +0 -583
  304. package/node_modules/node-pty/src/win/conpty.h +0 -41
  305. package/node_modules/node-pty/src/win/conpty_console_list.cc +0 -44
  306. package/node_modules/node-pty/src/win/path_util.cc +0 -95
  307. package/node_modules/node-pty/src/win/path_util.h +0 -26
  308. package/node_modules/node-pty/src/win/winpty.cc +0 -333
  309. package/node_modules/node-pty/src/windowsConoutConnection.ts +0 -82
  310. package/node_modules/node-pty/src/windowsPtyAgent.test.ts +0 -94
  311. package/node_modules/node-pty/src/windowsPtyAgent.ts +0 -321
  312. package/node_modules/node-pty/src/windowsTerminal.test.ts +0 -229
  313. package/node_modules/node-pty/src/windowsTerminal.ts +0 -203
  314. package/node_modules/node-pty/src/worker/conoutSocketWorker.ts +0 -22
  315. package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/OpenConsole.exe +0 -0
  316. package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/conpty.dll +0 -0
  317. package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/OpenConsole.exe +0 -0
  318. package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/conpty.dll +0 -0
  319. package/node_modules/node-pty/typings/node-pty.d.ts +0 -211
@@ -1,201 +0,0 @@
1
- /*
2
-
3
- Test program demonstrating a problem in Windows 15048's ReadConsoleOutput API.
4
-
5
- To compile:
6
-
7
- cl /nologo /EHsc winbug-15048.cc shell32.lib
8
-
9
- Example of regressed input:
10
-
11
- Case 1:
12
-
13
- > chcp 932
14
- > winbug-15048 -face-gothic 3044
15
-
16
- Correct output:
17
-
18
- 1**34 (nb: U+3044 replaced with '**' to avoid MSVC encoding warning)
19
- 5678
20
-
21
- ReadConsoleOutputW (both rows, 3 cols)
22
- row 0: U+0031(0007) U+3044(0107) U+3044(0207) U+0033(0007)
23
- row 1: U+0035(0007) U+0036(0007) U+0037(0007) U+0038(0007)
24
-
25
- ReadConsoleOutputW (both rows, 4 cols)
26
- row 0: U+0031(0007) U+3044(0107) U+3044(0207) U+0033(0007) U+0034(0007)
27
- row 1: U+0035(0007) U+0036(0007) U+0037(0007) U+0038(0007) U+0020(0007)
28
-
29
- ReadConsoleOutputW (second row)
30
- row 1: U+0035(0007) U+0036(0007) U+0037(0007) U+0038(0007) U+0020(0007)
31
-
32
- ...
33
-
34
- Win10 15048 bad output:
35
-
36
- 1**34
37
- 5678
38
-
39
- ReadConsoleOutputW (both rows, 3 cols)
40
- row 0: U+0031(0007) U+3044(0007) U+0033(0007) U+0035(0007)
41
- row 1: U+0036(0007) U+0037(0007) U+0038(0007) U+0000(0000)
42
-
43
- ReadConsoleOutputW (both rows, 4 cols)
44
- row 0: U+0031(0007) U+3044(0007) U+0033(0007) U+0034(0007) U+0035(0007)
45
- row 1: U+0036(0007) U+0037(0007) U+0038(0007) U+0020(0007) U+0000(0000)
46
-
47
- ReadConsoleOutputW (second row)
48
- row 1: U+0035(0007) U+0036(0007) U+0037(0007) U+0038(0007) U+0020(0007)
49
-
50
- ...
51
-
52
- The U+3044 character (HIRAGANA LETTER I) occupies two columns, but it only
53
- fills one record in the ReadConsoleOutput output buffer, which has the
54
- effect of shifting the first cell of the second row into the last cell of
55
- the first row. Ordinarily, the first and second cells would also have the
56
- COMMON_LVB_LEADING_BYTE and COMMON_LVB_TRAILING_BYTE attributes set, which
57
- allows winpty to detect the double-column character.
58
-
59
- Case 2:
60
-
61
- > chcp 437
62
- > winbug-15048 -face "Lucida Console" -h 4 221A
63
-
64
- The same issue happens with U+221A (SQUARE ROOT), but only in certain
65
- fonts. The console seems to think this character occupies two columns
66
- if the font is sufficiently small. The Windows console properties dialog
67
- doesn't allow fonts below 5 pt, but winpty tries to use 2pt and 4pt Lucida
68
- Console to allow very large console windows.
69
-
70
- Case 3:
71
-
72
- > chcp 437
73
- > winbug-15048 -face "Lucida Console" -h 12 FF12
74
-
75
- The console selection system thinks U+FF12 (FULLWIDTH DIGIT TWO) occupies
76
- two columns, which happens to be correct, but it's displayed as a single
77
- column unrecognized character. It otherwise behaves the same as the other
78
- cases.
79
-
80
- */
81
-
82
- #include <windows.h>
83
- #include <assert.h>
84
- #include <string.h>
85
- #include <stdlib.h>
86
- #include <stdio.h>
87
- #include <wchar.h>
88
-
89
- #include <string>
90
-
91
- #define COUNT_OF(array) (sizeof(array) / sizeof((array)[0]))
92
-
93
- // See https://en.wikipedia.org/wiki/List_of_CJK_fonts
94
- const wchar_t kMSGothic[] = { 0xff2d, 0xff33, 0x0020, 0x30b4, 0x30b7, 0x30c3, 0x30af, 0 }; // Japanese
95
- const wchar_t kNSimSun[] = { 0x65b0, 0x5b8b, 0x4f53, 0 }; // Simplified Chinese
96
- const wchar_t kMingLight[] = { 0x7d30, 0x660e, 0x9ad4, 0 }; // Traditional Chinese
97
- const wchar_t kGulimChe[] = { 0xad74, 0xb9bc, 0xccb4, 0 }; // Korean
98
-
99
- static void set_font(const wchar_t *name, int size) {
100
- const HANDLE conout = GetStdHandle(STD_OUTPUT_HANDLE);
101
- CONSOLE_FONT_INFOEX fontex {};
102
- fontex.cbSize = sizeof(fontex);
103
- fontex.dwFontSize.Y = size;
104
- fontex.FontWeight = 400;
105
- fontex.FontFamily = 0x36;
106
- wcsncpy(fontex.FaceName, name, COUNT_OF(fontex.FaceName));
107
- assert(SetCurrentConsoleFontEx(conout, FALSE, &fontex));
108
- }
109
-
110
- static void usage(const wchar_t *prog) {
111
- printf("Usage: %ls [options]\n", prog);
112
- printf(" -h HEIGHT\n");
113
- printf(" -face FACENAME\n");
114
- printf(" -face-{gothic|simsun|minglight|gulimche) [JP,CN-sim,CN-tra,KR]\n");
115
- printf(" hhhh -- print U+hhhh\n");
116
- exit(1);
117
- }
118
-
119
- static void dump_region(SMALL_RECT region, const char *name) {
120
- const HANDLE conout = GetStdHandle(STD_OUTPUT_HANDLE);
121
-
122
- CHAR_INFO buf[1000];
123
- memset(buf, 0xcc, sizeof(buf));
124
-
125
- const int w = region.Right - region.Left + 1;
126
- const int h = region.Bottom - region.Top + 1;
127
-
128
- assert(ReadConsoleOutputW(
129
- conout, buf, { (short)w, (short)h }, { 0, 0 },
130
- &region));
131
-
132
- printf("\n");
133
- printf("ReadConsoleOutputW (%s)\n", name);
134
- for (int y = 0; y < h; ++y) {
135
- printf("row %d: ", region.Top + y);
136
- for (int i = 0; i < region.Left * 13; ++i) {
137
- printf(" ");
138
- }
139
- for (int x = 0; x < w; ++x) {
140
- const int i = y * w + x;
141
- printf("U+%04x(%04x) ", buf[i].Char.UnicodeChar, buf[i].Attributes);
142
- }
143
- printf("\n");
144
- }
145
- }
146
-
147
- int main() {
148
- wchar_t *cmdline = GetCommandLineW();
149
- int argc = 0;
150
- wchar_t **argv = CommandLineToArgvW(cmdline, &argc);
151
- const wchar_t *font_name = L"Lucida Console";
152
- int font_height = 8;
153
- int test_ch = 0xff12; // U+FF12 FULLWIDTH DIGIT TWO
154
-
155
- for (int i = 1; i < argc; ++i) {
156
- const std::wstring arg = argv[i];
157
- const std::wstring next = i + 1 < argc ? argv[i + 1] : L"";
158
- if (arg == L"-face" && i + 1 < argc) {
159
- font_name = argv[i + 1];
160
- i++;
161
- } else if (arg == L"-face-gothic") {
162
- font_name = kMSGothic;
163
- } else if (arg == L"-face-simsun") {
164
- font_name = kNSimSun;
165
- } else if (arg == L"-face-minglight") {
166
- font_name = kMingLight;
167
- } else if (arg == L"-face-gulimche") {
168
- font_name = kGulimChe;
169
- } else if (arg == L"-h" && i + 1 < argc) {
170
- font_height = _wtoi(next.c_str());
171
- i++;
172
- } else if (arg.c_str()[0] != '-') {
173
- test_ch = wcstol(arg.c_str(), NULL, 16);
174
- } else {
175
- printf("Unrecognized argument: %ls\n", arg.c_str());
176
- usage(argv[0]);
177
- }
178
- }
179
-
180
- const HANDLE conout = GetStdHandle(STD_OUTPUT_HANDLE);
181
-
182
- set_font(font_name, font_height);
183
-
184
- system("cls");
185
- DWORD actual = 0;
186
- wchar_t output[] = L"1234\n5678\n";
187
- output[1] = test_ch;
188
- WriteConsoleW(conout, output, 10, &actual, nullptr);
189
-
190
- dump_region({ 0, 0, 3, 1 }, "both rows, 3 cols");
191
- dump_region({ 0, 0, 4, 1 }, "both rows, 4 cols");
192
- dump_region({ 0, 1, 4, 1 }, "second row");
193
- dump_region({ 0, 0, 4, 0 }, "first row");
194
- dump_region({ 1, 0, 4, 0 }, "first row, skip 1");
195
- dump_region({ 2, 0, 4, 0 }, "first row, skip 2");
196
- dump_region({ 3, 0, 4, 0 }, "first row, skip 3");
197
-
198
- set_font(font_name, 14);
199
-
200
- return 0;
201
- }
@@ -1,36 +0,0 @@
1
- @echo off
2
-
3
- setlocal
4
- cd %~dp0..
5
- set Path=C:\Python27;C:\Program Files\Git\cmd;%Path%
6
-
7
- call "%VS140COMNTOOLS%\VsDevCmd.bat" || goto :fail
8
-
9
- rmdir /s/q build-libpty 2>NUL
10
- mkdir build-libpty\win
11
- mkdir build-libpty\win\x86
12
- mkdir build-libpty\win\x86_64
13
- mkdir build-libpty\win\xp
14
-
15
- rmdir /s/q src\Release 2>NUL
16
- rmdir /s/q src\.vs 2>NUL
17
- del src\*.vcxproj src\*.vcxproj.filters src\*.sln src\*.sdf 2>NUL
18
-
19
- call vcbuild.bat --msvc-platform Win32 --gyp-msvs-version 2015 --toolset v140_xp || goto :fail
20
- copy src\Release\Win32\winpty.dll build-libpty\win\xp || goto :fail
21
- copy src\Release\Win32\winpty-agent.exe build-libpty\win\xp || goto :fail
22
-
23
- call vcbuild.bat --msvc-platform Win32 --gyp-msvs-version 2015 || goto :fail
24
- copy src\Release\Win32\winpty.dll build-libpty\win\x86 || goto :fail
25
- copy src\Release\Win32\winpty-agent.exe build-libpty\win\x86 || goto :fail
26
-
27
- call vcbuild.bat --msvc-platform x64 --gyp-msvs-version 2015 || goto :fail
28
- copy src\Release\x64\winpty.dll build-libpty\win\x86_64 || goto :fail
29
- copy src\Release\x64\winpty-agent.exe build-libpty\win\x86_64 || goto :fail
30
-
31
- echo success
32
- goto :EOF
33
-
34
- :fail
35
- echo error: build failed
36
- exit /b 1
@@ -1,53 +0,0 @@
1
- import os
2
- import sys
3
-
4
- if os.name != "nt":
5
- sys.exit("Error: ship scripts require native Python 2.7. (wrong os.name)")
6
- if sys.version_info[0:2] != (2,7):
7
- sys.exit("Error: ship scripts require native Python 2.7. (wrong version)")
8
-
9
- import glob
10
- import shutil
11
- import subprocess
12
- from distutils.spawn import find_executable
13
-
14
- topDir = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
15
-
16
- with open(topDir + "/VERSION.txt", "rt") as f:
17
- winptyVersion = f.read().strip()
18
-
19
- def rmrf(patterns):
20
- for pattern in patterns:
21
- for path in glob.glob(pattern):
22
- if os.path.isdir(path) and not os.path.islink(path):
23
- print "+ rm -r " + path
24
- sys.stdout.flush()
25
- shutil.rmtree(path)
26
- elif os.path.isfile(path):
27
- print "+ rm " + path
28
- sys.stdout.flush()
29
- os.remove(path)
30
-
31
- def mkdir(path):
32
- if not os.path.isdir(path):
33
- os.makedirs(path)
34
-
35
- def requireExe(name, guesses):
36
- if find_executable(name) is None:
37
- for guess in guesses:
38
- if os.path.exists(guess):
39
- newDir = os.path.dirname(guess)
40
- print "Adding " + newDir + " to Path to provide " + name
41
- os.environ["Path"] = newDir + ";" + os.environ["Path"]
42
- ret = find_executable(name)
43
- if ret is None:
44
- sys.exit("Error: required EXE is missing from Path: " + name)
45
- return ret
46
-
47
- requireExe("git.exe", [
48
- "C:\\Program Files\\Git\\cmd\\git.exe",
49
- "C:\\Program Files (x86)\\Git\\cmd\\git.exe"
50
- ])
51
-
52
- commitHash = subprocess.check_output(["git.exe", "rev-parse", "HEAD"]).decode().strip()
53
- defaultPathEnviron = "C:\\Windows\\System32;C:\\Windows"
@@ -1,165 +0,0 @@
1
- #!python
2
-
3
- # Copyright (c) 2016 Ryan Prichard
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to
7
- # deal in the Software without restriction, including without limitation the
8
- # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9
- # sell copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21
- # IN THE SOFTWARE.
22
-
23
- #
24
- # Run with native CPython 2.7.
25
- #
26
- # This script looks for MSVC using a version-specific environment variable,
27
- # such as VS140COMNTOOLS for MSVC 2015.
28
- #
29
-
30
- import common_ship
31
-
32
- import argparse
33
- import os
34
- import shutil
35
- import subprocess
36
- import sys
37
-
38
- os.chdir(common_ship.topDir)
39
- ZIP_TOOL = common_ship.requireExe("7z.exe", [
40
- "C:\\Program Files\\7-Zip\\7z.exe",
41
- "C:\\Program Files (x86)\\7-Zip\\7z.exe",
42
- ])
43
-
44
- MSVC_VERSION_TABLE = {
45
- "2015" : {
46
- "package_name" : "msvc2015",
47
- "gyp_version" : "2015",
48
- "common_tools_env" : "VS140COMNTOOLS",
49
- "xp_toolset" : "v140_xp",
50
- },
51
- "2013" : {
52
- "package_name" : "msvc2013",
53
- "gyp_version" : "2013",
54
- "common_tools_env" : "VS120COMNTOOLS",
55
- "xp_toolset" : "v120_xp",
56
- },
57
- }
58
-
59
- ARCH_TABLE = {
60
- "x64" : {
61
- "msvc_platform" : "x64",
62
- },
63
- "ia32" : {
64
- "msvc_platform" : "Win32",
65
- },
66
- }
67
-
68
- def readArguments():
69
- parser = argparse.ArgumentParser()
70
- parser.add_argument("--msvc-version", default="2015")
71
- ret = parser.parse_args()
72
- if ret.msvc_version not in MSVC_VERSION_TABLE:
73
- sys.exit("Error: unrecognized version: " + ret.msvc_version + ". " +
74
- "Versions: " + " ".join(sorted(MSVC_VERSION_TABLE.keys())))
75
- return ret
76
-
77
- ARGS = readArguments()
78
-
79
- def checkoutGyp():
80
- if os.path.isdir("build-gyp"):
81
- return
82
- subprocess.check_call([
83
- "git.exe",
84
- "clone",
85
- "https://chromium.googlesource.com/external/gyp",
86
- "build-gyp"
87
- ])
88
-
89
- def cleanMsvc():
90
- common_ship.rmrf("""
91
- src/Release src/.vs src/gen
92
- src/*.vcxproj src/*.vcxproj.filters src/*.sln src/*.sdf
93
- """.split())
94
-
95
- def build(arch, packageDir, xp=False):
96
- archInfo = ARCH_TABLE[arch]
97
- versionInfo = MSVC_VERSION_TABLE[ARGS.msvc_version]
98
-
99
- devCmdPath = os.path.join(os.environ[versionInfo["common_tools_env"]], "VsDevCmd.bat")
100
- if not os.path.isfile(devCmdPath):
101
- sys.exit("Error: MSVC environment script missing: " + devCmdPath)
102
-
103
- newEnv = os.environ.copy()
104
- newEnv["PATH"] = os.path.dirname(sys.executable) + ";" + common_ship.defaultPathEnviron
105
- commandLine = (
106
- '"' + devCmdPath + '" && '
107
- " vcbuild.bat" +
108
- " --gyp-msvs-version " + versionInfo["gyp_version"] +
109
- " --msvc-platform " + archInfo["msvc_platform"] +
110
- " --commit-hash " + common_ship.commitHash
111
- )
112
-
113
- subprocess.check_call(commandLine, shell=True, env=newEnv)
114
-
115
- archPackageDir = os.path.join(packageDir, arch)
116
- if xp:
117
- archPackageDir += "_xp"
118
-
119
- common_ship.mkdir(archPackageDir + "/bin")
120
- common_ship.mkdir(archPackageDir + "/lib")
121
-
122
- binSrc = os.path.join(common_ship.topDir, "src/Release", archInfo["msvc_platform"])
123
-
124
- shutil.copy(binSrc + "/winpty.dll", archPackageDir + "/bin")
125
- shutil.copy(binSrc + "/winpty-agent.exe", archPackageDir + "/bin")
126
- shutil.copy(binSrc + "/winpty-debugserver.exe", archPackageDir + "/bin")
127
- shutil.copy(binSrc + "/winpty.lib", archPackageDir + "/lib")
128
-
129
- def buildPackage():
130
- versionInfo = MSVC_VERSION_TABLE[ARGS.msvc_version]
131
-
132
- packageName = "winpty-%s-%s" % (
133
- common_ship.winptyVersion,
134
- versionInfo["package_name"],
135
- )
136
-
137
- packageRoot = os.path.join(common_ship.topDir, "ship/packages")
138
- packageDir = os.path.join(packageRoot, packageName)
139
- packageFile = packageDir + ".zip"
140
-
141
- common_ship.rmrf([packageDir])
142
- common_ship.rmrf([packageFile])
143
- common_ship.mkdir(packageDir)
144
-
145
- checkoutGyp()
146
- cleanMsvc()
147
- build("ia32", packageDir, True)
148
- build("x64", packageDir, True)
149
- cleanMsvc()
150
- build("ia32", packageDir)
151
- build("x64", packageDir)
152
-
153
- topDir = common_ship.topDir
154
-
155
- common_ship.mkdir(packageDir + "/include")
156
- shutil.copy(topDir + "/src/include/winpty.h", packageDir + "/include")
157
- shutil.copy(topDir + "/src/include/winpty_constants.h", packageDir + "/include")
158
- shutil.copy(topDir + "/LICENSE", packageDir)
159
- shutil.copy(topDir + "/README.md", packageDir)
160
- shutil.copy(topDir + "/RELEASES.md", packageDir)
161
-
162
- subprocess.check_call([ZIP_TOOL, "a", packageFile, "."], cwd=packageDir)
163
-
164
- if __name__ == "__main__":
165
- buildPackage()
@@ -1,108 +0,0 @@
1
- #!python
2
-
3
- # Copyright (c) 2015 Ryan Prichard
4
- #
5
- # Permission is hereby granted, free of charge, to any person obtaining a copy
6
- # of this software and associated documentation files (the "Software"), to
7
- # deal in the Software without restriction, including without limitation the
8
- # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9
- # sell copies of the Software, and to permit persons to whom the Software is
10
- # furnished to do so, subject to the following conditions:
11
- #
12
- # The above copyright notice and this permission notice shall be included in
13
- # all copies or substantial portions of the Software.
14
- #
15
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21
- # IN THE SOFTWARE.
22
-
23
- #
24
- # Run with native CPython 2.7 on a 64-bit computer.
25
- #
26
- # Each of the targets in BUILD_TARGETS must be installed to the default
27
- # location. Each target must have the appropriate MinGW and non-MinGW
28
- # compilers installed, as well as make and tar.
29
- #
30
-
31
- import common_ship
32
-
33
- import multiprocessing
34
- import os
35
- import shutil
36
- import subprocess
37
- import sys
38
-
39
- os.chdir(common_ship.topDir)
40
-
41
- def dllVersion(path):
42
- version = subprocess.check_output(
43
- ["powershell.exe",
44
- "[System.Diagnostics.FileVersionInfo]::GetVersionInfo(\"" + path + "\").FileVersion"])
45
- return version.strip()
46
-
47
- # Determine other build parameters.
48
- print "Determining Cygwin/MSYS2 DLL versions..."
49
- sys.stdout.flush()
50
- BUILD_TARGETS = [
51
- # {
52
- # "name": "msys",
53
- # "path": "C:\\MinGW\\bin;C:\\MinGW\\msys\\1.0\\bin",
54
- # # The parallel make.exe in the original MSYS/MinGW project hangs.
55
- # "make_binary": "mingw32-make.exe",
56
- # },
57
- {
58
- "name": "msys2-" + dllVersion("C:\\msys32\\usr\\bin\\msys-2.0.dll") + "-ia32",
59
- "path": "C:\\msys32\\mingw32\\bin;C:\\msys32\\usr\\bin",
60
- },
61
- {
62
- "name": "msys2-" + dllVersion("C:\\msys64\\usr\\bin\\msys-2.0.dll") + "-x64",
63
- "path": "C:\\msys64\\mingw64\\bin;C:\\msys64\\usr\\bin",
64
- },
65
- {
66
- "name": "cygwin-" + dllVersion("C:\\cygwin\\bin\\cygwin1.dll") + "-ia32",
67
- "path": "C:\\cygwin\\bin",
68
- },
69
- {
70
- "name": "cygwin-" + dllVersion("C:\\cygwin64\\bin\\cygwin1.dll") + "-x64",
71
- "path": "C:\\cygwin64\\bin",
72
- },
73
- ]
74
-
75
- def buildTarget(target):
76
- packageName = "winpty-" + common_ship.winptyVersion + "-" + target["name"]
77
- if os.path.exists("ship\\packages\\" + packageName):
78
- shutil.rmtree("ship\\packages\\" + packageName)
79
- oldPath = os.environ["PATH"]
80
- os.environ["PATH"] = target["path"] + ";" + common_ship.defaultPathEnviron
81
- subprocess.check_call(["sh.exe", "configure"])
82
- makeBinary = target.get("make_binary", "make.exe")
83
- subprocess.check_call([makeBinary, "clean"])
84
- makeBaseCmd = [
85
- makeBinary,
86
- "USE_PCH=0",
87
- "COMMIT_HASH=" + common_ship.commitHash,
88
- "PREFIX=ship/packages/" + packageName
89
- ]
90
- subprocess.check_call(makeBaseCmd + ["all", "tests", "-j%d" % multiprocessing.cpu_count()])
91
- subprocess.check_call(["build\\trivial_test.exe"])
92
- subprocess.check_call(makeBaseCmd + ["install"])
93
- subprocess.check_call(["tar.exe", "cvfz",
94
- packageName + ".tar.gz",
95
- packageName], cwd=os.path.join(os.getcwd(), "ship", "packages"))
96
- os.environ["PATH"] = oldPath
97
-
98
- def main():
99
- oldPath = os.environ["PATH"]
100
- for t in BUILD_TARGETS:
101
- os.environ["PATH"] = t["path"] + ";" + common_ship.defaultPathEnviron
102
- subprocess.check_output(["tar.exe", "--help"])
103
- subprocess.check_output(["make.exe", "--help"])
104
- for t in BUILD_TARGETS:
105
- buildTarget(t)
106
-
107
- if __name__ == "__main__":
108
- main()