@dev-sergeev/datalab-kit 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (339) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +26 -8
  3. package/THIRD_PARTY_NOTICES.md +6 -2
  4. package/dist/extension.js +8 -1
  5. package/dist/recap.d.ts +2 -0
  6. package/dist/recap.js +31 -0
  7. package/docs/adr/0002-package-delivery.md +2 -0
  8. package/node_modules/@gotgenes/pi-permission-system/src/authority/permission-prompt-component.ts +0 -11
  9. package/node_modules/@gotgenes/pi-permission-system/src/config/config-store.ts +0 -5
  10. package/node_modules/@gotgenes/pi-permission-system/src/index.ts +3 -15
  11. package/node_modules/@pi-plugins/elapsed/LICENSE +21 -0
  12. package/node_modules/@pi-plugins/elapsed/README.md +45 -0
  13. package/node_modules/@pi-plugins/elapsed/dist/index.d.mts +8 -0
  14. package/node_modules/@pi-plugins/elapsed/dist/index.d.mts.map +1 -0
  15. package/node_modules/@pi-plugins/elapsed/dist/index.mjs +47 -0
  16. package/node_modules/@pi-plugins/elapsed/dist/index.mjs.map +1 -0
  17. package/node_modules/@pi-plugins/elapsed/package.json +65 -0
  18. package/node_modules/@tifan/pi-recap/README.md +61 -0
  19. package/node_modules/@tifan/pi-recap/package.json +43 -0
  20. package/node_modules/@tifan/pi-recap/src/index.ts +584 -0
  21. package/node_modules/@tifan/pi-recap/src/model-picker.ts +233 -0
  22. package/node_modules/@tifan/pi-recap/src/models.ts +183 -0
  23. package/node_modules/@tifan/pi-recap/src/sanitize.ts +119 -0
  24. package/node_modules/@tifan/pi-recap/src/tui.ts +155 -0
  25. package/node_modules/@zigai/pi-extension-internals/README.md +24 -0
  26. package/node_modules/@zigai/pi-extension-internals/dist/editor-enhancer-registry.d.ts +21 -0
  27. package/node_modules/@zigai/pi-extension-internals/dist/editor-enhancer-registry.js +233 -0
  28. package/node_modules/@zigai/pi-extension-internals/dist/index.d.ts +6 -0
  29. package/node_modules/@zigai/pi-extension-internals/dist/index.js +3 -0
  30. package/node_modules/@zigai/pi-extension-internals/dist/linked-method-patch.d.ts +34 -0
  31. package/node_modules/@zigai/pi-extension-internals/dist/linked-method-patch.js +272 -0
  32. package/node_modules/@zigai/pi-extension-internals/dist/pi-internal-import.d.ts +11 -0
  33. package/node_modules/@zigai/pi-extension-internals/dist/pi-internal-import.js +139 -0
  34. package/node_modules/@zigai/pi-extension-internals/package.json +41 -0
  35. package/node_modules/@zigai/pi-extension-settings/LICENSE +21 -0
  36. package/node_modules/@zigai/pi-extension-settings/README.md +36 -0
  37. package/node_modules/@zigai/pi-extension-settings/dist/artifacts.d.ts +23 -0
  38. package/node_modules/@zigai/pi-extension-settings/dist/artifacts.d.ts.map +1 -0
  39. package/node_modules/@zigai/pi-extension-settings/dist/artifacts.js +75 -0
  40. package/node_modules/@zigai/pi-extension-settings/dist/artifacts.js.map +1 -0
  41. package/node_modules/@zigai/pi-extension-settings/dist/cli-entry.d.ts +3 -0
  42. package/node_modules/@zigai/pi-extension-settings/dist/cli-entry.d.ts.map +1 -0
  43. package/node_modules/@zigai/pi-extension-settings/dist/cli-entry.js +5 -0
  44. package/node_modules/@zigai/pi-extension-settings/dist/cli-entry.js.map +1 -0
  45. package/node_modules/@zigai/pi-extension-settings/dist/cli.d.ts +6 -0
  46. package/node_modules/@zigai/pi-extension-settings/dist/cli.d.ts.map +1 -0
  47. package/node_modules/@zigai/pi-extension-settings/dist/cli.js +87 -0
  48. package/node_modules/@zigai/pi-extension-settings/dist/cli.js.map +1 -0
  49. package/node_modules/@zigai/pi-extension-settings/dist/definition-marker.d.ts +2 -0
  50. package/node_modules/@zigai/pi-extension-settings/dist/definition-marker.d.ts.map +1 -0
  51. package/node_modules/@zigai/pi-extension-settings/dist/definition-marker.js +2 -0
  52. package/node_modules/@zigai/pi-extension-settings/dist/definition-marker.js.map +1 -0
  53. package/node_modules/@zigai/pi-extension-settings/dist/definition.d.ts +159 -0
  54. package/node_modules/@zigai/pi-extension-settings/dist/definition.d.ts.map +1 -0
  55. package/node_modules/@zigai/pi-extension-settings/dist/definition.js +248 -0
  56. package/node_modules/@zigai/pi-extension-settings/dist/definition.js.map +1 -0
  57. package/node_modules/@zigai/pi-extension-settings/dist/file-system.d.ts +10 -0
  58. package/node_modules/@zigai/pi-extension-settings/dist/file-system.d.ts.map +1 -0
  59. package/node_modules/@zigai/pi-extension-settings/dist/file-system.js +115 -0
  60. package/node_modules/@zigai/pi-extension-settings/dist/file-system.js.map +1 -0
  61. package/node_modules/@zigai/pi-extension-settings/dist/index.d.ts +2 -0
  62. package/node_modules/@zigai/pi-extension-settings/dist/index.d.ts.map +1 -0
  63. package/node_modules/@zigai/pi-extension-settings/dist/index.js +2 -0
  64. package/node_modules/@zigai/pi-extension-settings/dist/index.js.map +1 -0
  65. package/node_modules/@zigai/pi-extension-settings/dist/json-value.d.ts +18 -0
  66. package/node_modules/@zigai/pi-extension-settings/dist/json-value.d.ts.map +1 -0
  67. package/node_modules/@zigai/pi-extension-settings/dist/json-value.js +56 -0
  68. package/node_modules/@zigai/pi-extension-settings/dist/json-value.js.map +1 -0
  69. package/node_modules/@zigai/pi-extension-settings/dist/paths.d.ts +11 -0
  70. package/node_modules/@zigai/pi-extension-settings/dist/paths.d.ts.map +1 -0
  71. package/node_modules/@zigai/pi-extension-settings/dist/paths.js +23 -0
  72. package/node_modules/@zigai/pi-extension-settings/dist/paths.js.map +1 -0
  73. package/node_modules/@zigai/pi-extension-settings/dist/pi-host-paths.d.ts +5 -0
  74. package/node_modules/@zigai/pi-extension-settings/dist/pi-host-paths.d.ts.map +1 -0
  75. package/node_modules/@zigai/pi-extension-settings/dist/pi-host-paths.js +21 -0
  76. package/node_modules/@zigai/pi-extension-settings/dist/pi-host-paths.js.map +1 -0
  77. package/node_modules/@zigai/pi-extension-settings/dist/pi.d.ts +106 -0
  78. package/node_modules/@zigai/pi-extension-settings/dist/pi.d.ts.map +1 -0
  79. package/node_modules/@zigai/pi-extension-settings/dist/pi.js +122 -0
  80. package/node_modules/@zigai/pi-extension-settings/dist/pi.js.map +1 -0
  81. package/node_modules/@zigai/pi-extension-settings/dist/pi.ts +2537 -0
  82. package/node_modules/@zigai/pi-extension-settings/dist/pi.ts.map +7 -0
  83. package/node_modules/@zigai/pi-extension-settings/dist/projects.d.ts +10 -0
  84. package/node_modules/@zigai/pi-extension-settings/dist/projects.d.ts.map +1 -0
  85. package/node_modules/@zigai/pi-extension-settings/dist/projects.js +177 -0
  86. package/node_modules/@zigai/pi-extension-settings/dist/projects.js.map +1 -0
  87. package/node_modules/@zigai/pi-extension-settings/dist/runtime.d.ts +40 -0
  88. package/node_modules/@zigai/pi-extension-settings/dist/runtime.d.ts.map +1 -0
  89. package/node_modules/@zigai/pi-extension-settings/dist/runtime.js +158 -0
  90. package/node_modules/@zigai/pi-extension-settings/dist/runtime.js.map +1 -0
  91. package/node_modules/@zigai/pi-extension-settings/dist/runtime.ts +158 -0
  92. package/node_modules/@zigai/pi-extension-settings/dist/runtime.ts.map +7 -0
  93. package/node_modules/@zigai/pi-extension-settings/dist/schema-document.d.ts +19 -0
  94. package/node_modules/@zigai/pi-extension-settings/dist/schema-document.d.ts.map +1 -0
  95. package/node_modules/@zigai/pi-extension-settings/dist/schema-document.js +168 -0
  96. package/node_modules/@zigai/pi-extension-settings/dist/schema-document.js.map +1 -0
  97. package/node_modules/@zigai/pi-extension-settings/dist/settings-documentation.d.ts +9 -0
  98. package/node_modules/@zigai/pi-extension-settings/dist/settings-documentation.d.ts.map +1 -0
  99. package/node_modules/@zigai/pi-extension-settings/dist/settings-documentation.js +242 -0
  100. package/node_modules/@zigai/pi-extension-settings/dist/settings-documentation.js.map +1 -0
  101. package/node_modules/@zigai/pi-extension-settings/dist/settings-layer.d.ts +59 -0
  102. package/node_modules/@zigai/pi-extension-settings/dist/settings-layer.d.ts.map +1 -0
  103. package/node_modules/@zigai/pi-extension-settings/dist/settings-layer.js +98 -0
  104. package/node_modules/@zigai/pi-extension-settings/dist/settings-layer.js.map +1 -0
  105. package/node_modules/@zigai/pi-extension-settings/dist/settings-loader.d.ts +80 -0
  106. package/node_modules/@zigai/pi-extension-settings/dist/settings-loader.d.ts.map +1 -0
  107. package/node_modules/@zigai/pi-extension-settings/dist/settings-loader.js +144 -0
  108. package/node_modules/@zigai/pi-extension-settings/dist/settings-loader.js.map +1 -0
  109. package/node_modules/@zigai/pi-extension-settings/dist/settings-merge.d.ts +5 -0
  110. package/node_modules/@zigai/pi-extension-settings/dist/settings-merge.d.ts.map +1 -0
  111. package/node_modules/@zigai/pi-extension-settings/dist/settings-merge.js +30 -0
  112. package/node_modules/@zigai/pi-extension-settings/dist/settings-merge.js.map +1 -0
  113. package/node_modules/@zigai/pi-extension-settings/dist/settings-revision.d.ts +10 -0
  114. package/node_modules/@zigai/pi-extension-settings/dist/settings-revision.d.ts.map +1 -0
  115. package/node_modules/@zigai/pi-extension-settings/dist/settings-revision.js +16 -0
  116. package/node_modules/@zigai/pi-extension-settings/dist/settings-revision.js.map +1 -0
  117. package/node_modules/@zigai/pi-extension-settings/dist/settings-transaction.d.ts +54 -0
  118. package/node_modules/@zigai/pi-extension-settings/dist/settings-transaction.d.ts.map +1 -0
  119. package/node_modules/@zigai/pi-extension-settings/dist/settings-transaction.js +202 -0
  120. package/node_modules/@zigai/pi-extension-settings/dist/settings-transaction.js.map +1 -0
  121. package/node_modules/@zigai/pi-extension-settings/dist/typebox-runtime.d.ts +5 -0
  122. package/node_modules/@zigai/pi-extension-settings/dist/typebox-runtime.d.ts.map +1 -0
  123. package/node_modules/@zigai/pi-extension-settings/dist/typebox-runtime.js +9 -0
  124. package/node_modules/@zigai/pi-extension-settings/dist/typebox-runtime.js.map +1 -0
  125. package/node_modules/@zigai/pi-extension-settings/docs/generation.md +71 -0
  126. package/node_modules/@zigai/pi-extension-settings/docs/manual-setup.md +98 -0
  127. package/node_modules/@zigai/pi-extension-settings/docs/runtime.md +100 -0
  128. package/node_modules/@zigai/pi-extension-settings/docs/ui-controls.md +31 -0
  129. package/node_modules/@zigai/pi-extension-settings/package.json +97 -0
  130. package/node_modules/@zigai/pi-mention-anything/README.md +113 -0
  131. package/node_modules/@zigai/pi-mention-anything/config.schema.json +313 -0
  132. package/node_modules/@zigai/pi-mention-anything/docs/command-protocol.md +106 -0
  133. package/node_modules/@zigai/pi-mention-anything/docs/providers.md +128 -0
  134. package/node_modules/@zigai/pi-mention-anything/examples/query-command.mjs +96 -0
  135. package/node_modules/@zigai/pi-mention-anything/examples/recursive-tree.ts +28 -0
  136. package/node_modules/@zigai/pi-mention-anything/examples/static.ts +28 -0
  137. package/node_modules/@zigai/pi-mention-anything/examples/tmux.ts +90 -0
  138. package/node_modules/@zigai/pi-mention-anything/examples/tree-settings.json +25 -0
  139. package/node_modules/@zigai/pi-mention-anything/package.json +58 -0
  140. package/node_modules/@zigai/pi-mention-anything/src/api.ts +75 -0
  141. package/node_modules/@zigai/pi-mention-anything/src/autocomplete.ts +231 -0
  142. package/node_modules/@zigai/pi-mention-anything/src/chain-autocomplete.ts +596 -0
  143. package/node_modules/@zigai/pi-mention-anything/src/chain-syntax.ts +345 -0
  144. package/node_modules/@zigai/pi-mention-anything/src/command-provider.ts +291 -0
  145. package/node_modules/@zigai/pi-mention-anything/src/configured-source.ts +66 -0
  146. package/node_modules/@zigai/pi-mention-anything/src/editor.ts +180 -0
  147. package/node_modules/@zigai/pi-mention-anything/src/expand-mentions.ts +162 -0
  148. package/node_modules/@zigai/pi-mention-anything/src/index.ts +54 -0
  149. package/node_modules/@zigai/pi-mention-anything/src/initial-suggestions.ts +190 -0
  150. package/node_modules/@zigai/pi-mention-anything/src/list-provider.ts +71 -0
  151. package/node_modules/@zigai/pi-mention-anything/src/mention-hub.ts +307 -0
  152. package/node_modules/@zigai/pi-mention-anything/src/mention-resolution.ts +374 -0
  153. package/node_modules/@zigai/pi-mention-anything/src/mention-syntax.ts +105 -0
  154. package/node_modules/@zigai/pi-mention-anything/src/register-mention.ts +89 -0
  155. package/node_modules/@zigai/pi-mention-anything/src/rendering.ts +53 -0
  156. package/node_modules/@zigai/pi-mention-anything/src/selected-items.ts +21 -0
  157. package/node_modules/@zigai/pi-mention-anything/src/selection-history.ts +135 -0
  158. package/node_modules/@zigai/pi-mention-anything/src/settings-input.ts +317 -0
  159. package/node_modules/@zigai/pi-mention-anything/src/settings.prevalidated.ts +57 -0
  160. package/node_modules/@zigai/pi-mention-anything/src/settings.ts +52 -0
  161. package/node_modules/@zigai/pi-mention-anything/src/source-contract.ts +174 -0
  162. package/node_modules/@zigai/pi-mention-anything/src/source-controller.ts +1070 -0
  163. package/node_modules/@zigai/pi-mention-anything/src/source-runtime.ts +99 -0
  164. package/node_modules/@zigai/pi-mention-skill/README.md +60 -0
  165. package/node_modules/@zigai/pi-mention-skill/config.schema.json +81 -0
  166. package/node_modules/@zigai/pi-mention-skill/package.json +56 -0
  167. package/node_modules/@zigai/pi-mention-skill/src/index.ts +60 -0
  168. package/node_modules/@zigai/pi-mention-skill/src/settings-input.ts +74 -0
  169. package/node_modules/@zigai/pi-mention-skill/src/settings.prevalidated.ts +18 -0
  170. package/node_modules/@zigai/pi-mention-skill/src/settings.ts +54 -0
  171. package/node_modules/@zigai/pi-mention-skill/src/skill-commands.ts +18 -0
  172. package/node_modules/@zigai/pi-mention-skill/src/skill-content.ts +60 -0
  173. package/node_modules/@zigai/pi-mention-skill/src/skill-provider.ts +105 -0
  174. package/node_modules/@zigai/pi-mention-skill/src/slash-skill-filter.ts +29 -0
  175. package/node_modules/argparse/LICENSE +21 -0
  176. package/node_modules/argparse/README.md +257 -0
  177. package/node_modules/argparse/index.js +3 -0
  178. package/node_modules/argparse/lib/action/append/constant.js +47 -0
  179. package/node_modules/argparse/lib/action/append.js +53 -0
  180. package/node_modules/argparse/lib/action/count.js +40 -0
  181. package/node_modules/argparse/lib/action/help.js +47 -0
  182. package/node_modules/argparse/lib/action/store/constant.js +43 -0
  183. package/node_modules/argparse/lib/action/store/false.js +27 -0
  184. package/node_modules/argparse/lib/action/store/true.js +26 -0
  185. package/node_modules/argparse/lib/action/store.js +50 -0
  186. package/node_modules/argparse/lib/action/subparsers.js +149 -0
  187. package/node_modules/argparse/lib/action/version.js +47 -0
  188. package/node_modules/argparse/lib/action.js +146 -0
  189. package/node_modules/argparse/lib/action_container.js +482 -0
  190. package/node_modules/argparse/lib/argparse.js +14 -0
  191. package/node_modules/argparse/lib/argument/error.js +50 -0
  192. package/node_modules/argparse/lib/argument/exclusive.js +54 -0
  193. package/node_modules/argparse/lib/argument/group.js +75 -0
  194. package/node_modules/argparse/lib/argument_parser.js +1161 -0
  195. package/node_modules/argparse/lib/const.js +21 -0
  196. package/node_modules/argparse/lib/help/added_formatters.js +87 -0
  197. package/node_modules/argparse/lib/help/formatter.js +795 -0
  198. package/node_modules/argparse/lib/namespace.js +76 -0
  199. package/node_modules/argparse/lib/utils.js +57 -0
  200. package/node_modules/argparse/package.json +34 -0
  201. package/node_modules/esprima/LICENSE.BSD +21 -0
  202. package/node_modules/esprima/README.md +46 -0
  203. package/node_modules/esprima/bin/esparse.js +139 -0
  204. package/node_modules/esprima/bin/esvalidate.js +236 -0
  205. package/node_modules/esprima/dist/esprima.js +6709 -0
  206. package/node_modules/esprima/package.json +112 -0
  207. package/node_modules/extend-shallow/LICENSE +21 -0
  208. package/node_modules/extend-shallow/README.md +61 -0
  209. package/node_modules/extend-shallow/index.js +33 -0
  210. package/node_modules/extend-shallow/package.json +56 -0
  211. package/node_modules/graceful-fs/LICENSE +15 -0
  212. package/node_modules/graceful-fs/README.md +143 -0
  213. package/node_modules/graceful-fs/clone.js +23 -0
  214. package/node_modules/graceful-fs/graceful-fs.js +448 -0
  215. package/node_modules/graceful-fs/legacy-streams.js +118 -0
  216. package/node_modules/graceful-fs/package.json +53 -0
  217. package/node_modules/graceful-fs/polyfills.js +355 -0
  218. package/node_modules/gray-matter/LICENSE +21 -0
  219. package/node_modules/gray-matter/README.md +565 -0
  220. package/node_modules/gray-matter/gray-matter.d.ts +114 -0
  221. package/node_modules/gray-matter/index.js +228 -0
  222. package/node_modules/gray-matter/lib/defaults.js +18 -0
  223. package/node_modules/gray-matter/lib/engine.js +30 -0
  224. package/node_modules/gray-matter/lib/engines.js +54 -0
  225. package/node_modules/gray-matter/lib/excerpt.js +32 -0
  226. package/node_modules/gray-matter/lib/parse.js +13 -0
  227. package/node_modules/gray-matter/lib/stringify.js +56 -0
  228. package/node_modules/gray-matter/lib/to-file.js +43 -0
  229. package/node_modules/gray-matter/lib/utils.js +66 -0
  230. package/node_modules/gray-matter/package.json +127 -0
  231. package/node_modules/is-extendable/LICENSE +21 -0
  232. package/node_modules/is-extendable/README.md +72 -0
  233. package/node_modules/is-extendable/index.js +13 -0
  234. package/node_modules/is-extendable/package.json +51 -0
  235. package/node_modules/js-yaml/LICENSE +21 -0
  236. package/node_modules/js-yaml/README.md +302 -0
  237. package/node_modules/js-yaml/bin/js-yaml.js +132 -0
  238. package/node_modules/js-yaml/dist/js-yaml.js +4024 -0
  239. package/node_modules/js-yaml/dist/js-yaml.min.js +1 -0
  240. package/node_modules/js-yaml/index.js +7 -0
  241. package/node_modules/js-yaml/lib/js-yaml/common.js +59 -0
  242. package/node_modules/js-yaml/lib/js-yaml/dumper.js +850 -0
  243. package/node_modules/js-yaml/lib/js-yaml/exception.js +43 -0
  244. package/node_modules/js-yaml/lib/js-yaml/loader.js +1679 -0
  245. package/node_modules/js-yaml/lib/js-yaml/mark.js +76 -0
  246. package/node_modules/js-yaml/lib/js-yaml/schema/core.js +18 -0
  247. package/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +25 -0
  248. package/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +28 -0
  249. package/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +17 -0
  250. package/node_modules/js-yaml/lib/js-yaml/schema/json.js +25 -0
  251. package/node_modules/js-yaml/lib/js-yaml/schema.js +108 -0
  252. package/node_modules/js-yaml/lib/js-yaml/type/binary.js +138 -0
  253. package/node_modules/js-yaml/lib/js-yaml/type/bool.js +35 -0
  254. package/node_modules/js-yaml/lib/js-yaml/type/float.js +116 -0
  255. package/node_modules/js-yaml/lib/js-yaml/type/int.js +173 -0
  256. package/node_modules/js-yaml/lib/js-yaml/type/js/function.js +93 -0
  257. package/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +60 -0
  258. package/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +28 -0
  259. package/node_modules/js-yaml/lib/js-yaml/type/map.js +8 -0
  260. package/node_modules/js-yaml/lib/js-yaml/type/merge.js +12 -0
  261. package/node_modules/js-yaml/lib/js-yaml/type/null.js +34 -0
  262. package/node_modules/js-yaml/lib/js-yaml/type/omap.js +44 -0
  263. package/node_modules/js-yaml/lib/js-yaml/type/pairs.js +53 -0
  264. package/node_modules/js-yaml/lib/js-yaml/type/seq.js +8 -0
  265. package/node_modules/js-yaml/lib/js-yaml/type/set.js +29 -0
  266. package/node_modules/js-yaml/lib/js-yaml/type/str.js +8 -0
  267. package/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +88 -0
  268. package/node_modules/js-yaml/lib/js-yaml/type.js +61 -0
  269. package/node_modules/js-yaml/lib/js-yaml.js +39 -0
  270. package/node_modules/js-yaml/package.json +52 -0
  271. package/node_modules/kind-of/LICENSE +21 -0
  272. package/node_modules/kind-of/README.md +367 -0
  273. package/node_modules/kind-of/index.js +129 -0
  274. package/node_modules/kind-of/package.json +88 -0
  275. package/node_modules/pi-toggle-skills/README.md +213 -0
  276. package/node_modules/pi-toggle-skills/package.json +60 -0
  277. package/node_modules/pi-toggle-skills/src/index.ts +112 -0
  278. package/node_modules/pi-toggle-skills/src/skill-discovery.ts +258 -0
  279. package/node_modules/pi-toggle-skills/src/skill-selector.ts +435 -0
  280. package/node_modules/pi-toggle-skills/toggle-skills.ts +316 -0
  281. package/node_modules/pi-toggle-skills/vitest.config.ts +15 -0
  282. package/node_modules/proper-lockfile/LICENSE +21 -0
  283. package/node_modules/proper-lockfile/README.md +183 -0
  284. package/node_modules/proper-lockfile/index.js +40 -0
  285. package/node_modules/proper-lockfile/lib/adapter.js +85 -0
  286. package/node_modules/proper-lockfile/lib/lockfile.js +342 -0
  287. package/node_modules/proper-lockfile/lib/mtime-precision.js +55 -0
  288. package/node_modules/proper-lockfile/node_modules/retry/.npmignore +3 -0
  289. package/node_modules/proper-lockfile/node_modules/retry/.travis.yml +15 -0
  290. package/node_modules/proper-lockfile/node_modules/retry/License +21 -0
  291. package/node_modules/proper-lockfile/node_modules/retry/Makefile +18 -0
  292. package/node_modules/proper-lockfile/node_modules/retry/README.md +227 -0
  293. package/node_modules/proper-lockfile/node_modules/retry/equation.gif +0 -0
  294. package/node_modules/proper-lockfile/node_modules/retry/example/dns.js +31 -0
  295. package/node_modules/proper-lockfile/node_modules/retry/example/stop.js +40 -0
  296. package/node_modules/proper-lockfile/node_modules/retry/index.js +1 -0
  297. package/node_modules/proper-lockfile/node_modules/retry/lib/retry.js +100 -0
  298. package/node_modules/proper-lockfile/node_modules/retry/lib/retry_operation.js +158 -0
  299. package/node_modules/proper-lockfile/node_modules/retry/package.json +32 -0
  300. package/node_modules/proper-lockfile/node_modules/retry/test/common.js +10 -0
  301. package/node_modules/proper-lockfile/node_modules/retry/test/integration/test-forever.js +24 -0
  302. package/node_modules/proper-lockfile/node_modules/retry/test/integration/test-retry-operation.js +258 -0
  303. package/node_modules/proper-lockfile/node_modules/retry/test/integration/test-retry-wrap.js +101 -0
  304. package/node_modules/proper-lockfile/node_modules/retry/test/integration/test-timeouts.js +69 -0
  305. package/node_modules/proper-lockfile/package.json +71 -0
  306. package/node_modules/section-matter/LICENSE +21 -0
  307. package/node_modules/section-matter/README.md +236 -0
  308. package/node_modules/section-matter/index.js +136 -0
  309. package/node_modules/section-matter/package.json +55 -0
  310. package/node_modules/signal-exit/LICENSE.txt +16 -0
  311. package/node_modules/signal-exit/README.md +39 -0
  312. package/node_modules/signal-exit/index.js +202 -0
  313. package/node_modules/signal-exit/package.json +38 -0
  314. package/node_modules/signal-exit/signals.js +53 -0
  315. package/node_modules/sprintf-js/.npmignore +1 -0
  316. package/node_modules/sprintf-js/LICENSE +24 -0
  317. package/node_modules/sprintf-js/README.md +88 -0
  318. package/node_modules/sprintf-js/bower.json +14 -0
  319. package/node_modules/sprintf-js/demo/angular.html +20 -0
  320. package/node_modules/sprintf-js/dist/angular-sprintf.min.js +4 -0
  321. package/node_modules/sprintf-js/dist/angular-sprintf.min.js.map +1 -0
  322. package/node_modules/sprintf-js/dist/angular-sprintf.min.map +1 -0
  323. package/node_modules/sprintf-js/dist/sprintf.min.js +4 -0
  324. package/node_modules/sprintf-js/dist/sprintf.min.js.map +1 -0
  325. package/node_modules/sprintf-js/dist/sprintf.min.map +1 -0
  326. package/node_modules/sprintf-js/gruntfile.js +36 -0
  327. package/node_modules/sprintf-js/package.json +22 -0
  328. package/node_modules/sprintf-js/src/angular-sprintf.js +18 -0
  329. package/node_modules/sprintf-js/src/sprintf.js +208 -0
  330. package/node_modules/sprintf-js/test/test.js +82 -0
  331. package/node_modules/strip-bom-string/LICENSE +21 -0
  332. package/node_modules/strip-bom-string/README.md +66 -0
  333. package/node_modules/strip-bom-string/index.js +15 -0
  334. package/node_modules/strip-bom-string/package.json +60 -0
  335. package/package.json +13 -4
  336. package/dist/confirmation.d.ts +0 -33
  337. package/dist/confirmation.js +0 -64
  338. package/dist/yolo.d.ts +0 -6
  339. package/dist/yolo.js +0 -33
@@ -0,0 +1,208 @@
1
+ (function(window) {
2
+ var re = {
3
+ not_string: /[^s]/,
4
+ number: /[diefg]/,
5
+ json: /[j]/,
6
+ not_json: /[^j]/,
7
+ text: /^[^\x25]+/,
8
+ modulo: /^\x25{2}/,
9
+ placeholder: /^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijosuxX])/,
10
+ key: /^([a-z_][a-z_\d]*)/i,
11
+ key_access: /^\.([a-z_][a-z_\d]*)/i,
12
+ index_access: /^\[(\d+)\]/,
13
+ sign: /^[\+\-]/
14
+ }
15
+
16
+ function sprintf() {
17
+ var key = arguments[0], cache = sprintf.cache
18
+ if (!(cache[key] && cache.hasOwnProperty(key))) {
19
+ cache[key] = sprintf.parse(key)
20
+ }
21
+ return sprintf.format.call(null, cache[key], arguments)
22
+ }
23
+
24
+ sprintf.format = function(parse_tree, argv) {
25
+ var cursor = 1, tree_length = parse_tree.length, node_type = "", arg, output = [], i, k, match, pad, pad_character, pad_length, is_positive = true, sign = ""
26
+ for (i = 0; i < tree_length; i++) {
27
+ node_type = get_type(parse_tree[i])
28
+ if (node_type === "string") {
29
+ output[output.length] = parse_tree[i]
30
+ }
31
+ else if (node_type === "array") {
32
+ match = parse_tree[i] // convenience purposes only
33
+ if (match[2]) { // keyword argument
34
+ arg = argv[cursor]
35
+ for (k = 0; k < match[2].length; k++) {
36
+ if (!arg.hasOwnProperty(match[2][k])) {
37
+ throw new Error(sprintf("[sprintf] property '%s' does not exist", match[2][k]))
38
+ }
39
+ arg = arg[match[2][k]]
40
+ }
41
+ }
42
+ else if (match[1]) { // positional argument (explicit)
43
+ arg = argv[match[1]]
44
+ }
45
+ else { // positional argument (implicit)
46
+ arg = argv[cursor++]
47
+ }
48
+
49
+ if (get_type(arg) == "function") {
50
+ arg = arg()
51
+ }
52
+
53
+ if (re.not_string.test(match[8]) && re.not_json.test(match[8]) && (get_type(arg) != "number" && isNaN(arg))) {
54
+ throw new TypeError(sprintf("[sprintf] expecting number but found %s", get_type(arg)))
55
+ }
56
+
57
+ if (re.number.test(match[8])) {
58
+ is_positive = arg >= 0
59
+ }
60
+
61
+ switch (match[8]) {
62
+ case "b":
63
+ arg = arg.toString(2)
64
+ break
65
+ case "c":
66
+ arg = String.fromCharCode(arg)
67
+ break
68
+ case "d":
69
+ case "i":
70
+ arg = parseInt(arg, 10)
71
+ break
72
+ case "j":
73
+ arg = JSON.stringify(arg, null, match[6] ? parseInt(match[6]) : 0)
74
+ break
75
+ case "e":
76
+ arg = match[7] ? arg.toExponential(match[7]) : arg.toExponential()
77
+ break
78
+ case "f":
79
+ arg = match[7] ? parseFloat(arg).toFixed(match[7]) : parseFloat(arg)
80
+ break
81
+ case "g":
82
+ arg = match[7] ? parseFloat(arg).toPrecision(match[7]) : parseFloat(arg)
83
+ break
84
+ case "o":
85
+ arg = arg.toString(8)
86
+ break
87
+ case "s":
88
+ arg = ((arg = String(arg)) && match[7] ? arg.substring(0, match[7]) : arg)
89
+ break
90
+ case "u":
91
+ arg = arg >>> 0
92
+ break
93
+ case "x":
94
+ arg = arg.toString(16)
95
+ break
96
+ case "X":
97
+ arg = arg.toString(16).toUpperCase()
98
+ break
99
+ }
100
+ if (re.json.test(match[8])) {
101
+ output[output.length] = arg
102
+ }
103
+ else {
104
+ if (re.number.test(match[8]) && (!is_positive || match[3])) {
105
+ sign = is_positive ? "+" : "-"
106
+ arg = arg.toString().replace(re.sign, "")
107
+ }
108
+ else {
109
+ sign = ""
110
+ }
111
+ pad_character = match[4] ? match[4] === "0" ? "0" : match[4].charAt(1) : " "
112
+ pad_length = match[6] - (sign + arg).length
113
+ pad = match[6] ? (pad_length > 0 ? str_repeat(pad_character, pad_length) : "") : ""
114
+ output[output.length] = match[5] ? sign + arg + pad : (pad_character === "0" ? sign + pad + arg : pad + sign + arg)
115
+ }
116
+ }
117
+ }
118
+ return output.join("")
119
+ }
120
+
121
+ sprintf.cache = {}
122
+
123
+ sprintf.parse = function(fmt) {
124
+ var _fmt = fmt, match = [], parse_tree = [], arg_names = 0
125
+ while (_fmt) {
126
+ if ((match = re.text.exec(_fmt)) !== null) {
127
+ parse_tree[parse_tree.length] = match[0]
128
+ }
129
+ else if ((match = re.modulo.exec(_fmt)) !== null) {
130
+ parse_tree[parse_tree.length] = "%"
131
+ }
132
+ else if ((match = re.placeholder.exec(_fmt)) !== null) {
133
+ if (match[2]) {
134
+ arg_names |= 1
135
+ var field_list = [], replacement_field = match[2], field_match = []
136
+ if ((field_match = re.key.exec(replacement_field)) !== null) {
137
+ field_list[field_list.length] = field_match[1]
138
+ while ((replacement_field = replacement_field.substring(field_match[0].length)) !== "") {
139
+ if ((field_match = re.key_access.exec(replacement_field)) !== null) {
140
+ field_list[field_list.length] = field_match[1]
141
+ }
142
+ else if ((field_match = re.index_access.exec(replacement_field)) !== null) {
143
+ field_list[field_list.length] = field_match[1]
144
+ }
145
+ else {
146
+ throw new SyntaxError("[sprintf] failed to parse named argument key")
147
+ }
148
+ }
149
+ }
150
+ else {
151
+ throw new SyntaxError("[sprintf] failed to parse named argument key")
152
+ }
153
+ match[2] = field_list
154
+ }
155
+ else {
156
+ arg_names |= 2
157
+ }
158
+ if (arg_names === 3) {
159
+ throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported")
160
+ }
161
+ parse_tree[parse_tree.length] = match
162
+ }
163
+ else {
164
+ throw new SyntaxError("[sprintf] unexpected placeholder")
165
+ }
166
+ _fmt = _fmt.substring(match[0].length)
167
+ }
168
+ return parse_tree
169
+ }
170
+
171
+ var vsprintf = function(fmt, argv, _argv) {
172
+ _argv = (argv || []).slice(0)
173
+ _argv.splice(0, 0, fmt)
174
+ return sprintf.apply(null, _argv)
175
+ }
176
+
177
+ /**
178
+ * helpers
179
+ */
180
+ function get_type(variable) {
181
+ return Object.prototype.toString.call(variable).slice(8, -1).toLowerCase()
182
+ }
183
+
184
+ function str_repeat(input, multiplier) {
185
+ return Array(multiplier + 1).join(input)
186
+ }
187
+
188
+ /**
189
+ * export to either browser or node.js
190
+ */
191
+ if (typeof exports !== "undefined") {
192
+ exports.sprintf = sprintf
193
+ exports.vsprintf = vsprintf
194
+ }
195
+ else {
196
+ window.sprintf = sprintf
197
+ window.vsprintf = vsprintf
198
+
199
+ if (typeof define === "function" && define.amd) {
200
+ define(function() {
201
+ return {
202
+ sprintf: sprintf,
203
+ vsprintf: vsprintf
204
+ }
205
+ })
206
+ }
207
+ }
208
+ })(typeof window === "undefined" ? this : window);
@@ -0,0 +1,82 @@
1
+ var assert = require("assert"),
2
+ sprintfjs = require("../src/sprintf.js"),
3
+ sprintf = sprintfjs.sprintf,
4
+ vsprintf = sprintfjs.vsprintf
5
+
6
+ describe("sprintfjs", function() {
7
+ var pi = 3.141592653589793
8
+
9
+ it("should return formated strings for simple placeholders", function() {
10
+ assert.equal("%", sprintf("%%"))
11
+ assert.equal("10", sprintf("%b", 2))
12
+ assert.equal("A", sprintf("%c", 65))
13
+ assert.equal("2", sprintf("%d", 2))
14
+ assert.equal("2", sprintf("%i", 2))
15
+ assert.equal("2", sprintf("%d", "2"))
16
+ assert.equal("2", sprintf("%i", "2"))
17
+ assert.equal('{"foo":"bar"}', sprintf("%j", {foo: "bar"}))
18
+ assert.equal('["foo","bar"]', sprintf("%j", ["foo", "bar"]))
19
+ assert.equal("2e+0", sprintf("%e", 2))
20
+ assert.equal("2", sprintf("%u", 2))
21
+ assert.equal("4294967294", sprintf("%u", -2))
22
+ assert.equal("2.2", sprintf("%f", 2.2))
23
+ assert.equal("3.141592653589793", sprintf("%g", pi))
24
+ assert.equal("10", sprintf("%o", 8))
25
+ assert.equal("%s", sprintf("%s", "%s"))
26
+ assert.equal("ff", sprintf("%x", 255))
27
+ assert.equal("FF", sprintf("%X", 255))
28
+ assert.equal("Polly wants a cracker", sprintf("%2$s %3$s a %1$s", "cracker", "Polly", "wants"))
29
+ assert.equal("Hello world!", sprintf("Hello %(who)s!", {"who": "world"}))
30
+ })
31
+
32
+ it("should return formated strings for complex placeholders", function() {
33
+ // sign
34
+ assert.equal("2", sprintf("%d", 2))
35
+ assert.equal("-2", sprintf("%d", -2))
36
+ assert.equal("+2", sprintf("%+d", 2))
37
+ assert.equal("-2", sprintf("%+d", -2))
38
+ assert.equal("2", sprintf("%i", 2))
39
+ assert.equal("-2", sprintf("%i", -2))
40
+ assert.equal("+2", sprintf("%+i", 2))
41
+ assert.equal("-2", sprintf("%+i", -2))
42
+ assert.equal("2.2", sprintf("%f", 2.2))
43
+ assert.equal("-2.2", sprintf("%f", -2.2))
44
+ assert.equal("+2.2", sprintf("%+f", 2.2))
45
+ assert.equal("-2.2", sprintf("%+f", -2.2))
46
+ assert.equal("-2.3", sprintf("%+.1f", -2.34))
47
+ assert.equal("-0.0", sprintf("%+.1f", -0.01))
48
+ assert.equal("3.14159", sprintf("%.6g", pi))
49
+ assert.equal("3.14", sprintf("%.3g", pi))
50
+ assert.equal("3", sprintf("%.1g", pi))
51
+ assert.equal("-000000123", sprintf("%+010d", -123))
52
+ assert.equal("______-123", sprintf("%+'_10d", -123))
53
+ assert.equal("-234.34 123.2", sprintf("%f %f", -234.34, 123.2))
54
+
55
+ // padding
56
+ assert.equal("-0002", sprintf("%05d", -2))
57
+ assert.equal("-0002", sprintf("%05i", -2))
58
+ assert.equal(" <", sprintf("%5s", "<"))
59
+ assert.equal("0000<", sprintf("%05s", "<"))
60
+ assert.equal("____<", sprintf("%'_5s", "<"))
61
+ assert.equal("> ", sprintf("%-5s", ">"))
62
+ assert.equal(">0000", sprintf("%0-5s", ">"))
63
+ assert.equal(">____", sprintf("%'_-5s", ">"))
64
+ assert.equal("xxxxxx", sprintf("%5s", "xxxxxx"))
65
+ assert.equal("1234", sprintf("%02u", 1234))
66
+ assert.equal(" -10.235", sprintf("%8.3f", -10.23456))
67
+ assert.equal("-12.34 xxx", sprintf("%f %s", -12.34, "xxx"))
68
+ assert.equal('{\n "foo": "bar"\n}', sprintf("%2j", {foo: "bar"}))
69
+ assert.equal('[\n "foo",\n "bar"\n]', sprintf("%2j", ["foo", "bar"]))
70
+
71
+ // precision
72
+ assert.equal("2.3", sprintf("%.1f", 2.345))
73
+ assert.equal("xxxxx", sprintf("%5.5s", "xxxxxx"))
74
+ assert.equal(" x", sprintf("%5.1s", "xxxxxx"))
75
+
76
+ })
77
+
78
+ it("should return formated strings for callbacks", function() {
79
+ assert.equal("foobar", sprintf("%s", function() { return "foobar" }))
80
+ assert.equal(Date.now(), sprintf("%s", Date.now)) // should pass...
81
+ })
82
+ })
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015, 2017, Jon Schlinkert
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 deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ 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 FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,66 @@
1
+ # strip-bom-string [![NPM version](https://img.shields.io/npm/v/strip-bom-string.svg?style=flat)](https://www.npmjs.com/package/strip-bom-string) [![NPM monthly downloads](https://img.shields.io/npm/dm/strip-bom-string.svg?style=flat)](https://npmjs.org/package/strip-bom-string) [![NPM total downloads](https://img.shields.io/npm/dt/strip-bom-string.svg?style=flat)](https://npmjs.org/package/strip-bom-string) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/strip-bom-string.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/strip-bom-string)
2
+
3
+ > Strip a byte order mark (BOM) from a string.
4
+
5
+ ## Install
6
+
7
+ Install with [npm](https://www.npmjs.com/):
8
+
9
+ ```sh
10
+ $ npm install --save strip-bom-string
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```js
16
+ var strip = require('strip-bom-string');
17
+ strip('\ufefffoo');
18
+ //=> 'foo'
19
+ ```
20
+
21
+ ## About
22
+
23
+ ### Related projects
24
+
25
+ * [cr](https://www.npmjs.com/package/cr): Strip windows carriage returns, or convert carriage returns to newlines. | [homepage](https://github.com/jonschlinkert/cr "Strip windows carriage returns, or convert carriage returns to newlines.")
26
+ * [has-bom](https://www.npmjs.com/package/has-bom): Returns true if a buffer or string has a byte order mark (BOM) | [homepage](https://github.com/jonschlinkert/has-bom "Returns true if a buffer or string has a byte order mark (BOM)")
27
+ * [read-file](https://www.npmjs.com/package/read-file): Thin wrapper around fs.readFile and fs.readFileSync that also strips byte order marks when `utf8` encoding… [more](https://github.com/jonschlinkert/read-file) | [homepage](https://github.com/jonschlinkert/read-file "Thin wrapper around fs.readFile and fs.readFileSync that also strips byte order marks when `utf8` encoding is chosen. Also optionally replaces windows newlines with unix newlines.")
28
+ * [strip-bom-buffer](https://www.npmjs.com/package/strip-bom-buffer): Strip a byte order mark (BOM) from a buffer. | [homepage](https://github.com/jonschlinkert/strip-bom-buffer "Strip a byte order mark (BOM) from a buffer.")
29
+
30
+ ### Contributing
31
+
32
+ Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
33
+
34
+ ### Building docs
35
+
36
+ _(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
37
+
38
+ To generate the readme, run the following command:
39
+
40
+ ```sh
41
+ $ npm install -g verbose/verb#dev verb-generate-readme && verb
42
+ ```
43
+
44
+ ### Running tests
45
+
46
+ Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
47
+
48
+ ```sh
49
+ $ npm install && npm test
50
+ ```
51
+
52
+ ### Author
53
+
54
+ **Jon Schlinkert**
55
+
56
+ * [github/jonschlinkert](https://github.com/jonschlinkert)
57
+ * [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
58
+
59
+ ### License
60
+
61
+ Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
62
+ Released under the [MIT License](LICENSE).
63
+
64
+ ***
65
+
66
+ _This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.3, on March 29, 2017._
@@ -0,0 +1,15 @@
1
+ /*!
2
+ * strip-bom-string <https://github.com/jonschlinkert/strip-bom-string>
3
+ *
4
+ * Copyright (c) 2015, 2017, Jon Schlinkert.
5
+ * Released under the MIT License.
6
+ */
7
+
8
+ 'use strict';
9
+
10
+ module.exports = function(str) {
11
+ if (typeof str === 'string' && str.charAt(0) === '\ufeff') {
12
+ return str.slice(1);
13
+ }
14
+ return str;
15
+ };
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "strip-bom-string",
3
+ "description": "Strip a byte order mark (BOM) from a string.",
4
+ "version": "1.0.0",
5
+ "homepage": "https://github.com/jonschlinkert/strip-bom-string",
6
+ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
7
+ "repository": "jonschlinkert/strip-bom-string",
8
+ "bugs": {
9
+ "url": "https://github.com/jonschlinkert/strip-bom-string/issues"
10
+ },
11
+ "license": "MIT",
12
+ "files": [
13
+ "index.js"
14
+ ],
15
+ "main": "index.js",
16
+ "engines": {
17
+ "node": ">=0.10.0"
18
+ },
19
+ "scripts": {
20
+ "test": "mocha"
21
+ },
22
+ "devDependencies": {
23
+ "gulp-format-md": "^0.1.11",
24
+ "mocha": "^3.2.0"
25
+ },
26
+ "keywords": [
27
+ "bom",
28
+ "byte",
29
+ "byte-order-mark",
30
+ "file",
31
+ "fs",
32
+ "mark",
33
+ "nl",
34
+ "normalize",
35
+ "order",
36
+ "string",
37
+ "strip"
38
+ ],
39
+ "verb": {
40
+ "related": {
41
+ "list": [
42
+ "cr",
43
+ "has-bom",
44
+ "read-file",
45
+ "strip-bom-buffer"
46
+ ]
47
+ },
48
+ "toc": false,
49
+ "layout": "default",
50
+ "tasks": [
51
+ "readme"
52
+ ],
53
+ "plugins": [
54
+ "gulp-format-md"
55
+ ],
56
+ "lint": {
57
+ "reflinks": true
58
+ }
59
+ }
60
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-sergeev/datalab-kit",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "A ready-to-use collection of Pi coding agent extensions",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -17,7 +17,11 @@
17
17
  "./node_modules/@juicesharp/rpiv-ask-user-question/index.ts",
18
18
  "./node_modules/pi-powerline-footer/index.ts",
19
19
  "./node_modules/@capdiem/pi-todo/index.min.js",
20
- "./node_modules/pi-rewind/src/index.ts"
20
+ "./node_modules/pi-rewind/src/index.ts",
21
+ "./node_modules/@tifan/pi-recap/src/index.ts",
22
+ "./node_modules/@pi-plugins/elapsed/dist/index.mjs",
23
+ "./node_modules/pi-toggle-skills/toggle-skills.ts",
24
+ "./node_modules/@zigai/pi-mention-skill/src/index.ts"
21
25
  ]
22
26
  },
23
27
  "scripts": {
@@ -35,12 +39,17 @@
35
39
  "@narumitw/pi-plan-mode": "0.58.3",
36
40
  "@gotgenes/pi-subagents": "21.7.5",
37
41
  "@capdiem/pi-todo": "0.3.2",
38
- "pi-rewind": "0.5.0"
42
+ "pi-rewind": "0.5.0",
43
+ "@tifan/pi-recap": "0.4.7",
44
+ "@pi-plugins/elapsed": "0.1.1",
45
+ "pi-toggle-skills": "0.1.20",
46
+ "@zigai/pi-mention-skill": "0.10.4"
39
47
  },
40
48
  "bundleDependencies": [
41
49
  "@juicesharp/rpiv-ask-user-question", "pi-powerline-footer",
42
50
  "@gotgenes/pi-permission-system", "@narumitw/pi-plan-mode",
43
- "@gotgenes/pi-subagents", "@capdiem/pi-todo", "pi-rewind"
51
+ "@gotgenes/pi-subagents", "@capdiem/pi-todo", "pi-rewind",
52
+ "@tifan/pi-recap", "@pi-plugins/elapsed", "pi-toggle-skills", "@zigai/pi-mention-skill"
44
53
  ],
45
54
  "peerDependencies": {
46
55
  "@earendil-works/pi-ai": "*",
@@ -1,33 +0,0 @@
1
- import type { ExtensionUIContext } from '@earendil-works/pi-coding-agent';
2
- type DialogTheme = {
3
- fg(color: 'warning' | 'accent' | 'muted', text: string): string;
4
- bold(text: string): string;
5
- };
6
- /** One instance represents one decision; it never remembers a session grant. */
7
- export declare class ConfirmationDialog {
8
- private readonly command;
9
- private readonly theme;
10
- private readonly done;
11
- private approve;
12
- private finished;
13
- private scroll;
14
- constructor(command: string, theme: DialogTheme, done: (approved: boolean) => void);
15
- handleInput(data: string): void;
16
- render(width: number): string[];
17
- invalidate(): void;
18
- }
19
- type PermissionPayload = {
20
- request: {
21
- value: string;
22
- toolName: string | null;
23
- surface: string;
24
- executedUnit: string | null;
25
- };
26
- evidence: readonly {
27
- label: string;
28
- text: string;
29
- detail: string | null;
30
- }[];
31
- };
32
- export declare function confirmPermission(ui: Pick<ExtensionUIContext, 'custom' | 'select'>, mode: string, title: string, payload: PermissionPayload): Promise<boolean>;
33
- export {};
@@ -1,64 +0,0 @@
1
- import { matchesKey, wrapTextWithAnsi } from '@earendil-works/pi-tui';
2
- /** One instance represents one decision; it never remembers a session grant. */
3
- export class ConfirmationDialog {
4
- command;
5
- theme;
6
- done;
7
- approve = false;
8
- finished = false;
9
- scroll = 0;
10
- constructor(command, theme, done) {
11
- this.command = command;
12
- this.theme = theme;
13
- this.done = done;
14
- }
15
- handleInput(data) {
16
- if (this.finished)
17
- return;
18
- if (matchesKey(data, 'down'))
19
- this.approve = true;
20
- else if (matchesKey(data, 'up'))
21
- this.approve = false;
22
- else if (matchesKey(data, 'pageDown'))
23
- this.scroll += 10;
24
- else if (matchesKey(data, 'pageUp'))
25
- this.scroll = Math.max(0, this.scroll - 10);
26
- else if (matchesKey(data, 'escape') || matchesKey(data, 'enter')) {
27
- this.finished = true;
28
- this.done(matchesKey(data, 'enter') && this.approve);
29
- }
30
- }
31
- render(width) {
32
- const usableWidth = Math.max(1, width - 4);
33
- const safeText = this.command.replace(/[\u0000-\u0008\u000b-\u001f\u007f-\u009f\u202a-\u202e\u2066-\u2069]/g, '');
34
- const lines = safeText.split('\n').flatMap(line => wrapTextWithAnsi(line, usableWidth));
35
- this.scroll = Math.min(this.scroll, Math.max(0, lines.length - 12));
36
- const choices = ['Отмена', 'Разрешить один раз'];
37
- return [
38
- this.theme.fg('warning', this.theme.bold('ТРЕБУЕТСЯ ПОДТВЕРЖДЕНИЕ')),
39
- ...lines.slice(this.scroll, this.scroll + 12).map(line => this.theme.fg('warning', line)),
40
- ...(lines.length > 12 ? [this.theme.fg('muted', `Строки ${this.scroll + 1}–${Math.min(this.scroll + 12, lines.length)} из ${lines.length}; PgUp/PgDn — просмотр`)] : []),
41
- '',
42
- ...choices.map((label, index) => this.theme.fg(index === Number(this.approve) ? 'accent' : 'muted', `${index === Number(this.approve) ? '▶' : ' '} ${label}`)),
43
- this.theme.fg('muted', '↓ затем Enter — разрешить один раз; Enter по умолчанию / Esc — отменить'),
44
- ].flatMap(line => wrapTextWithAnsi(line, Math.max(1, width)));
45
- }
46
- invalidate() { }
47
- }
48
- export async function confirmPermission(ui, mode, title, payload) {
49
- const details = [title, `${payload.request.toolName ?? payload.request.surface}: ${payload.request.value}`,
50
- ...(payload.request.executedUnit ? [`Выполняется: ${payload.request.executedUnit}`] : []),
51
- ...payload.evidence.map(item => `${item.label}: ${item.text}${item.detail ? `\n${item.detail}` : ''}`),
52
- ].join('\n');
53
- if (mode !== 'tui') {
54
- return (await ui.select(details, ['Отмена', 'Разрешить один раз'])) === 'Разрешить один раз';
55
- }
56
- return ui.custom((tui, theme, _keys, done) => {
57
- const dialog = new ConfirmationDialog(details, theme, done);
58
- return {
59
- render: width => dialog.render(width),
60
- invalidate: () => dialog.invalidate(),
61
- handleInput: data => { dialog.handleInput(data); tui.requestRender(); },
62
- };
63
- });
64
- }
package/dist/yolo.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import type { ExtensionAPI, ExtensionContext } from '@earendil-works/pi-coding-agent';
2
- /** Session overrides stay in memory; persistent settings retain their own value. */
3
- export declare function registerYoloControl(pi: ExtensionAPI, configured: () => boolean): {
4
- isEnabled(): boolean;
5
- refresh(ctx?: ExtensionContext): void;
6
- };
package/dist/yolo.js DELETED
@@ -1,33 +0,0 @@
1
- /** Session overrides stay in memory; persistent settings retain their own value. */
2
- export function registerYoloControl(pi, configured) {
3
- let override;
4
- let context;
5
- const enabled = () => override ?? configured();
6
- const refresh = (ctx) => {
7
- if (ctx)
8
- context = ctx;
9
- context?.ui.setStatus('pi-permission-system', enabled() ? 'yolo' : undefined);
10
- };
11
- pi.on('session_start', (_event, ctx) => {
12
- override = undefined;
13
- context = ctx;
14
- });
15
- pi.registerCommand('yolo', {
16
- description: 'Set session YOLO: on, off, or status; explicit deny and Plan mode remain active',
17
- getArgumentCompletions: prefix => ['on', 'off', 'status'].filter(value => value.startsWith(prefix))
18
- .map(value => ({ value, label: value })),
19
- handler: async (args, ctx) => {
20
- context = ctx;
21
- const command = args.trim().toLowerCase() || 'status';
22
- if (!['on', 'off', 'status'].includes(command)) {
23
- ctx.ui.notify('Usage: /yolo on|off|status', 'warning');
24
- return;
25
- }
26
- if (command !== 'status')
27
- override = command === 'on';
28
- refresh();
29
- ctx.ui.notify(`YOLO ${enabled() ? 'on' : 'off'} (${override === undefined ? 'settings' : 'session'}). Explicit deny and Plan mode remain active.`, 'info');
30
- },
31
- });
32
- return { isEnabled: () => { refresh(); return enabled(); }, refresh };
33
- }