@dev-sergeev/datalab-kit 0.1.2 → 0.1.4

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 (355) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +23 -5
  3. package/THIRD_PARTY_NOTICES.md +6 -2
  4. package/docs/adr/0001-user-settings-priority.md +2 -0
  5. package/docs/adr/0002-package-delivery.md +8 -0
  6. package/node_modules/@pi-plugins/elapsed/LICENSE +21 -0
  7. package/node_modules/@pi-plugins/elapsed/README.md +45 -0
  8. package/node_modules/@pi-plugins/elapsed/dist/index.d.mts +8 -0
  9. package/node_modules/@pi-plugins/elapsed/dist/index.d.mts.map +1 -0
  10. package/node_modules/@pi-plugins/elapsed/dist/index.mjs +47 -0
  11. package/node_modules/@pi-plugins/elapsed/dist/index.mjs.map +1 -0
  12. package/node_modules/@pi-plugins/elapsed/package.json +65 -0
  13. package/node_modules/@tifan/pi-recap/README.md +61 -0
  14. package/node_modules/@tifan/pi-recap/package.json +43 -0
  15. package/node_modules/@tifan/pi-recap/src/index.ts +586 -0
  16. package/node_modules/@tifan/pi-recap/src/model-picker.ts +234 -0
  17. package/node_modules/@tifan/pi-recap/src/models.ts +180 -0
  18. package/node_modules/@tifan/pi-recap/src/sanitize.ts +119 -0
  19. package/node_modules/@tifan/pi-recap/src/tui.ts +155 -0
  20. package/node_modules/@zigai/pi-extension-internals/README.md +24 -0
  21. package/node_modules/@zigai/pi-extension-internals/dist/editor-enhancer-registry.d.ts +21 -0
  22. package/node_modules/@zigai/pi-extension-internals/dist/editor-enhancer-registry.js +233 -0
  23. package/node_modules/@zigai/pi-extension-internals/dist/index.d.ts +6 -0
  24. package/node_modules/@zigai/pi-extension-internals/dist/index.js +3 -0
  25. package/node_modules/@zigai/pi-extension-internals/dist/linked-method-patch.d.ts +34 -0
  26. package/node_modules/@zigai/pi-extension-internals/dist/linked-method-patch.js +272 -0
  27. package/node_modules/@zigai/pi-extension-internals/dist/pi-internal-import.d.ts +11 -0
  28. package/node_modules/@zigai/pi-extension-internals/dist/pi-internal-import.js +139 -0
  29. package/node_modules/@zigai/pi-extension-internals/package.json +41 -0
  30. package/node_modules/@zigai/pi-extension-settings/LICENSE +21 -0
  31. package/node_modules/@zigai/pi-extension-settings/README.md +36 -0
  32. package/node_modules/@zigai/pi-extension-settings/dist/artifacts.d.ts +23 -0
  33. package/node_modules/@zigai/pi-extension-settings/dist/artifacts.d.ts.map +1 -0
  34. package/node_modules/@zigai/pi-extension-settings/dist/artifacts.js +75 -0
  35. package/node_modules/@zigai/pi-extension-settings/dist/artifacts.js.map +1 -0
  36. package/node_modules/@zigai/pi-extension-settings/dist/cli-entry.d.ts +3 -0
  37. package/node_modules/@zigai/pi-extension-settings/dist/cli-entry.d.ts.map +1 -0
  38. package/node_modules/@zigai/pi-extension-settings/dist/cli-entry.js +5 -0
  39. package/node_modules/@zigai/pi-extension-settings/dist/cli-entry.js.map +1 -0
  40. package/node_modules/@zigai/pi-extension-settings/dist/cli.d.ts +6 -0
  41. package/node_modules/@zigai/pi-extension-settings/dist/cli.d.ts.map +1 -0
  42. package/node_modules/@zigai/pi-extension-settings/dist/cli.js +87 -0
  43. package/node_modules/@zigai/pi-extension-settings/dist/cli.js.map +1 -0
  44. package/node_modules/@zigai/pi-extension-settings/dist/definition-marker.d.ts +2 -0
  45. package/node_modules/@zigai/pi-extension-settings/dist/definition-marker.d.ts.map +1 -0
  46. package/node_modules/@zigai/pi-extension-settings/dist/definition-marker.js +2 -0
  47. package/node_modules/@zigai/pi-extension-settings/dist/definition-marker.js.map +1 -0
  48. package/node_modules/@zigai/pi-extension-settings/dist/definition.d.ts +159 -0
  49. package/node_modules/@zigai/pi-extension-settings/dist/definition.d.ts.map +1 -0
  50. package/node_modules/@zigai/pi-extension-settings/dist/definition.js +248 -0
  51. package/node_modules/@zigai/pi-extension-settings/dist/definition.js.map +1 -0
  52. package/node_modules/@zigai/pi-extension-settings/dist/file-system.d.ts +10 -0
  53. package/node_modules/@zigai/pi-extension-settings/dist/file-system.d.ts.map +1 -0
  54. package/node_modules/@zigai/pi-extension-settings/dist/file-system.js +115 -0
  55. package/node_modules/@zigai/pi-extension-settings/dist/file-system.js.map +1 -0
  56. package/node_modules/@zigai/pi-extension-settings/dist/index.d.ts +2 -0
  57. package/node_modules/@zigai/pi-extension-settings/dist/index.d.ts.map +1 -0
  58. package/node_modules/@zigai/pi-extension-settings/dist/index.js +2 -0
  59. package/node_modules/@zigai/pi-extension-settings/dist/index.js.map +1 -0
  60. package/node_modules/@zigai/pi-extension-settings/dist/json-value.d.ts +18 -0
  61. package/node_modules/@zigai/pi-extension-settings/dist/json-value.d.ts.map +1 -0
  62. package/node_modules/@zigai/pi-extension-settings/dist/json-value.js +56 -0
  63. package/node_modules/@zigai/pi-extension-settings/dist/json-value.js.map +1 -0
  64. package/node_modules/@zigai/pi-extension-settings/dist/paths.d.ts +11 -0
  65. package/node_modules/@zigai/pi-extension-settings/dist/paths.d.ts.map +1 -0
  66. package/node_modules/@zigai/pi-extension-settings/dist/paths.js +23 -0
  67. package/node_modules/@zigai/pi-extension-settings/dist/paths.js.map +1 -0
  68. package/node_modules/@zigai/pi-extension-settings/dist/pi-host-paths.d.ts +5 -0
  69. package/node_modules/@zigai/pi-extension-settings/dist/pi-host-paths.d.ts.map +1 -0
  70. package/node_modules/@zigai/pi-extension-settings/dist/pi-host-paths.js +21 -0
  71. package/node_modules/@zigai/pi-extension-settings/dist/pi-host-paths.js.map +1 -0
  72. package/node_modules/@zigai/pi-extension-settings/dist/pi.d.ts +106 -0
  73. package/node_modules/@zigai/pi-extension-settings/dist/pi.d.ts.map +1 -0
  74. package/node_modules/@zigai/pi-extension-settings/dist/pi.js +122 -0
  75. package/node_modules/@zigai/pi-extension-settings/dist/pi.js.map +1 -0
  76. package/node_modules/@zigai/pi-extension-settings/dist/pi.ts +2537 -0
  77. package/node_modules/@zigai/pi-extension-settings/dist/pi.ts.map +7 -0
  78. package/node_modules/@zigai/pi-extension-settings/dist/projects.d.ts +10 -0
  79. package/node_modules/@zigai/pi-extension-settings/dist/projects.d.ts.map +1 -0
  80. package/node_modules/@zigai/pi-extension-settings/dist/projects.js +177 -0
  81. package/node_modules/@zigai/pi-extension-settings/dist/projects.js.map +1 -0
  82. package/node_modules/@zigai/pi-extension-settings/dist/runtime.d.ts +40 -0
  83. package/node_modules/@zigai/pi-extension-settings/dist/runtime.d.ts.map +1 -0
  84. package/node_modules/@zigai/pi-extension-settings/dist/runtime.js +158 -0
  85. package/node_modules/@zigai/pi-extension-settings/dist/runtime.js.map +1 -0
  86. package/node_modules/@zigai/pi-extension-settings/dist/runtime.ts +158 -0
  87. package/node_modules/@zigai/pi-extension-settings/dist/runtime.ts.map +7 -0
  88. package/node_modules/@zigai/pi-extension-settings/dist/schema-document.d.ts +19 -0
  89. package/node_modules/@zigai/pi-extension-settings/dist/schema-document.d.ts.map +1 -0
  90. package/node_modules/@zigai/pi-extension-settings/dist/schema-document.js +168 -0
  91. package/node_modules/@zigai/pi-extension-settings/dist/schema-document.js.map +1 -0
  92. package/node_modules/@zigai/pi-extension-settings/dist/settings-documentation.d.ts +9 -0
  93. package/node_modules/@zigai/pi-extension-settings/dist/settings-documentation.d.ts.map +1 -0
  94. package/node_modules/@zigai/pi-extension-settings/dist/settings-documentation.js +242 -0
  95. package/node_modules/@zigai/pi-extension-settings/dist/settings-documentation.js.map +1 -0
  96. package/node_modules/@zigai/pi-extension-settings/dist/settings-layer.d.ts +59 -0
  97. package/node_modules/@zigai/pi-extension-settings/dist/settings-layer.d.ts.map +1 -0
  98. package/node_modules/@zigai/pi-extension-settings/dist/settings-layer.js +98 -0
  99. package/node_modules/@zigai/pi-extension-settings/dist/settings-layer.js.map +1 -0
  100. package/node_modules/@zigai/pi-extension-settings/dist/settings-loader.d.ts +80 -0
  101. package/node_modules/@zigai/pi-extension-settings/dist/settings-loader.d.ts.map +1 -0
  102. package/node_modules/@zigai/pi-extension-settings/dist/settings-loader.js +144 -0
  103. package/node_modules/@zigai/pi-extension-settings/dist/settings-loader.js.map +1 -0
  104. package/node_modules/@zigai/pi-extension-settings/dist/settings-merge.d.ts +5 -0
  105. package/node_modules/@zigai/pi-extension-settings/dist/settings-merge.d.ts.map +1 -0
  106. package/node_modules/@zigai/pi-extension-settings/dist/settings-merge.js +30 -0
  107. package/node_modules/@zigai/pi-extension-settings/dist/settings-merge.js.map +1 -0
  108. package/node_modules/@zigai/pi-extension-settings/dist/settings-revision.d.ts +10 -0
  109. package/node_modules/@zigai/pi-extension-settings/dist/settings-revision.d.ts.map +1 -0
  110. package/node_modules/@zigai/pi-extension-settings/dist/settings-revision.js +16 -0
  111. package/node_modules/@zigai/pi-extension-settings/dist/settings-revision.js.map +1 -0
  112. package/node_modules/@zigai/pi-extension-settings/dist/settings-transaction.d.ts +54 -0
  113. package/node_modules/@zigai/pi-extension-settings/dist/settings-transaction.d.ts.map +1 -0
  114. package/node_modules/@zigai/pi-extension-settings/dist/settings-transaction.js +202 -0
  115. package/node_modules/@zigai/pi-extension-settings/dist/settings-transaction.js.map +1 -0
  116. package/node_modules/@zigai/pi-extension-settings/dist/typebox-runtime.d.ts +5 -0
  117. package/node_modules/@zigai/pi-extension-settings/dist/typebox-runtime.d.ts.map +1 -0
  118. package/node_modules/@zigai/pi-extension-settings/dist/typebox-runtime.js +9 -0
  119. package/node_modules/@zigai/pi-extension-settings/dist/typebox-runtime.js.map +1 -0
  120. package/node_modules/@zigai/pi-extension-settings/docs/generation.md +71 -0
  121. package/node_modules/@zigai/pi-extension-settings/docs/manual-setup.md +98 -0
  122. package/node_modules/@zigai/pi-extension-settings/docs/runtime.md +100 -0
  123. package/node_modules/@zigai/pi-extension-settings/docs/ui-controls.md +31 -0
  124. package/node_modules/@zigai/pi-extension-settings/package.json +97 -0
  125. package/node_modules/@zigai/pi-mention-anything/README.md +113 -0
  126. package/node_modules/@zigai/pi-mention-anything/config.schema.json +313 -0
  127. package/node_modules/@zigai/pi-mention-anything/docs/command-protocol.md +106 -0
  128. package/node_modules/@zigai/pi-mention-anything/docs/providers.md +128 -0
  129. package/node_modules/@zigai/pi-mention-anything/examples/query-command.mjs +96 -0
  130. package/node_modules/@zigai/pi-mention-anything/examples/recursive-tree.ts +28 -0
  131. package/node_modules/@zigai/pi-mention-anything/examples/static.ts +28 -0
  132. package/node_modules/@zigai/pi-mention-anything/examples/tmux.ts +90 -0
  133. package/node_modules/@zigai/pi-mention-anything/examples/tree-settings.json +25 -0
  134. package/node_modules/@zigai/pi-mention-anything/package.json +58 -0
  135. package/node_modules/@zigai/pi-mention-anything/src/api.ts +75 -0
  136. package/node_modules/@zigai/pi-mention-anything/src/autocomplete.ts +231 -0
  137. package/node_modules/@zigai/pi-mention-anything/src/chain-autocomplete.ts +596 -0
  138. package/node_modules/@zigai/pi-mention-anything/src/chain-syntax.ts +345 -0
  139. package/node_modules/@zigai/pi-mention-anything/src/command-provider.ts +291 -0
  140. package/node_modules/@zigai/pi-mention-anything/src/configured-source.ts +66 -0
  141. package/node_modules/@zigai/pi-mention-anything/src/editor.ts +180 -0
  142. package/node_modules/@zigai/pi-mention-anything/src/expand-mentions.ts +162 -0
  143. package/node_modules/@zigai/pi-mention-anything/src/index.ts +54 -0
  144. package/node_modules/@zigai/pi-mention-anything/src/initial-suggestions.ts +190 -0
  145. package/node_modules/@zigai/pi-mention-anything/src/list-provider.ts +71 -0
  146. package/node_modules/@zigai/pi-mention-anything/src/mention-hub.ts +307 -0
  147. package/node_modules/@zigai/pi-mention-anything/src/mention-resolution.ts +374 -0
  148. package/node_modules/@zigai/pi-mention-anything/src/mention-syntax.ts +105 -0
  149. package/node_modules/@zigai/pi-mention-anything/src/register-mention.ts +89 -0
  150. package/node_modules/@zigai/pi-mention-anything/src/rendering.ts +53 -0
  151. package/node_modules/@zigai/pi-mention-anything/src/selected-items.ts +21 -0
  152. package/node_modules/@zigai/pi-mention-anything/src/selection-history.ts +135 -0
  153. package/node_modules/@zigai/pi-mention-anything/src/settings-input.ts +317 -0
  154. package/node_modules/@zigai/pi-mention-anything/src/settings.prevalidated.ts +57 -0
  155. package/node_modules/@zigai/pi-mention-anything/src/settings.ts +52 -0
  156. package/node_modules/@zigai/pi-mention-anything/src/source-contract.ts +174 -0
  157. package/node_modules/@zigai/pi-mention-anything/src/source-controller.ts +1070 -0
  158. package/node_modules/@zigai/pi-mention-anything/src/source-runtime.ts +99 -0
  159. package/node_modules/@zigai/pi-mention-skill/README.md +60 -0
  160. package/node_modules/@zigai/pi-mention-skill/config.schema.json +81 -0
  161. package/node_modules/@zigai/pi-mention-skill/package.json +56 -0
  162. package/node_modules/@zigai/pi-mention-skill/src/index.ts +60 -0
  163. package/node_modules/@zigai/pi-mention-skill/src/settings-input.ts +74 -0
  164. package/node_modules/@zigai/pi-mention-skill/src/settings.prevalidated.ts +18 -0
  165. package/node_modules/@zigai/pi-mention-skill/src/settings.ts +54 -0
  166. package/node_modules/@zigai/pi-mention-skill/src/skill-commands.ts +18 -0
  167. package/node_modules/@zigai/pi-mention-skill/src/skill-content.ts +60 -0
  168. package/node_modules/@zigai/pi-mention-skill/src/skill-provider.ts +105 -0
  169. package/node_modules/@zigai/pi-mention-skill/src/slash-skill-filter.ts +29 -0
  170. package/node_modules/argparse/LICENSE +21 -0
  171. package/node_modules/argparse/README.md +257 -0
  172. package/node_modules/argparse/index.js +3 -0
  173. package/node_modules/argparse/lib/action/append/constant.js +47 -0
  174. package/node_modules/argparse/lib/action/append.js +53 -0
  175. package/node_modules/argparse/lib/action/count.js +40 -0
  176. package/node_modules/argparse/lib/action/help.js +47 -0
  177. package/node_modules/argparse/lib/action/store/constant.js +43 -0
  178. package/node_modules/argparse/lib/action/store/false.js +27 -0
  179. package/node_modules/argparse/lib/action/store/true.js +26 -0
  180. package/node_modules/argparse/lib/action/store.js +50 -0
  181. package/node_modules/argparse/lib/action/subparsers.js +149 -0
  182. package/node_modules/argparse/lib/action/version.js +47 -0
  183. package/node_modules/argparse/lib/action.js +146 -0
  184. package/node_modules/argparse/lib/action_container.js +482 -0
  185. package/node_modules/argparse/lib/argparse.js +14 -0
  186. package/node_modules/argparse/lib/argument/error.js +50 -0
  187. package/node_modules/argparse/lib/argument/exclusive.js +54 -0
  188. package/node_modules/argparse/lib/argument/group.js +75 -0
  189. package/node_modules/argparse/lib/argument_parser.js +1161 -0
  190. package/node_modules/argparse/lib/const.js +21 -0
  191. package/node_modules/argparse/lib/help/added_formatters.js +87 -0
  192. package/node_modules/argparse/lib/help/formatter.js +795 -0
  193. package/node_modules/argparse/lib/namespace.js +76 -0
  194. package/node_modules/argparse/lib/utils.js +57 -0
  195. package/node_modules/argparse/package.json +34 -0
  196. package/node_modules/esprima/LICENSE.BSD +21 -0
  197. package/node_modules/esprima/README.md +46 -0
  198. package/node_modules/esprima/bin/esparse.js +139 -0
  199. package/node_modules/esprima/bin/esvalidate.js +236 -0
  200. package/node_modules/esprima/dist/esprima.js +6709 -0
  201. package/node_modules/esprima/package.json +112 -0
  202. package/node_modules/extend-shallow/LICENSE +21 -0
  203. package/node_modules/extend-shallow/README.md +61 -0
  204. package/node_modules/extend-shallow/index.js +33 -0
  205. package/node_modules/extend-shallow/package.json +56 -0
  206. package/node_modules/graceful-fs/LICENSE +15 -0
  207. package/node_modules/graceful-fs/README.md +143 -0
  208. package/node_modules/graceful-fs/clone.js +23 -0
  209. package/node_modules/graceful-fs/graceful-fs.js +448 -0
  210. package/node_modules/graceful-fs/legacy-streams.js +118 -0
  211. package/node_modules/graceful-fs/package.json +53 -0
  212. package/node_modules/graceful-fs/polyfills.js +355 -0
  213. package/node_modules/gray-matter/LICENSE +21 -0
  214. package/node_modules/gray-matter/README.md +565 -0
  215. package/node_modules/gray-matter/gray-matter.d.ts +114 -0
  216. package/node_modules/gray-matter/index.js +228 -0
  217. package/node_modules/gray-matter/lib/defaults.js +18 -0
  218. package/node_modules/gray-matter/lib/engine.js +30 -0
  219. package/node_modules/gray-matter/lib/engines.js +54 -0
  220. package/node_modules/gray-matter/lib/excerpt.js +32 -0
  221. package/node_modules/gray-matter/lib/parse.js +13 -0
  222. package/node_modules/gray-matter/lib/stringify.js +56 -0
  223. package/node_modules/gray-matter/lib/to-file.js +43 -0
  224. package/node_modules/gray-matter/lib/utils.js +66 -0
  225. package/node_modules/gray-matter/package.json +127 -0
  226. package/node_modules/is-extendable/LICENSE +21 -0
  227. package/node_modules/is-extendable/README.md +72 -0
  228. package/node_modules/is-extendable/index.js +13 -0
  229. package/node_modules/is-extendable/package.json +51 -0
  230. package/node_modules/js-yaml/LICENSE +21 -0
  231. package/node_modules/js-yaml/README.md +302 -0
  232. package/node_modules/js-yaml/bin/js-yaml.js +132 -0
  233. package/node_modules/js-yaml/dist/js-yaml.js +4024 -0
  234. package/node_modules/js-yaml/dist/js-yaml.min.js +1 -0
  235. package/node_modules/js-yaml/index.js +7 -0
  236. package/node_modules/js-yaml/lib/js-yaml/common.js +59 -0
  237. package/node_modules/js-yaml/lib/js-yaml/dumper.js +850 -0
  238. package/node_modules/js-yaml/lib/js-yaml/exception.js +43 -0
  239. package/node_modules/js-yaml/lib/js-yaml/loader.js +1679 -0
  240. package/node_modules/js-yaml/lib/js-yaml/mark.js +76 -0
  241. package/node_modules/js-yaml/lib/js-yaml/schema/core.js +18 -0
  242. package/node_modules/js-yaml/lib/js-yaml/schema/default_full.js +25 -0
  243. package/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js +28 -0
  244. package/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js +17 -0
  245. package/node_modules/js-yaml/lib/js-yaml/schema/json.js +25 -0
  246. package/node_modules/js-yaml/lib/js-yaml/schema.js +108 -0
  247. package/node_modules/js-yaml/lib/js-yaml/type/binary.js +138 -0
  248. package/node_modules/js-yaml/lib/js-yaml/type/bool.js +35 -0
  249. package/node_modules/js-yaml/lib/js-yaml/type/float.js +116 -0
  250. package/node_modules/js-yaml/lib/js-yaml/type/int.js +173 -0
  251. package/node_modules/js-yaml/lib/js-yaml/type/js/function.js +93 -0
  252. package/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js +60 -0
  253. package/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js +28 -0
  254. package/node_modules/js-yaml/lib/js-yaml/type/map.js +8 -0
  255. package/node_modules/js-yaml/lib/js-yaml/type/merge.js +12 -0
  256. package/node_modules/js-yaml/lib/js-yaml/type/null.js +34 -0
  257. package/node_modules/js-yaml/lib/js-yaml/type/omap.js +44 -0
  258. package/node_modules/js-yaml/lib/js-yaml/type/pairs.js +53 -0
  259. package/node_modules/js-yaml/lib/js-yaml/type/seq.js +8 -0
  260. package/node_modules/js-yaml/lib/js-yaml/type/set.js +29 -0
  261. package/node_modules/js-yaml/lib/js-yaml/type/str.js +8 -0
  262. package/node_modules/js-yaml/lib/js-yaml/type/timestamp.js +88 -0
  263. package/node_modules/js-yaml/lib/js-yaml/type.js +61 -0
  264. package/node_modules/js-yaml/lib/js-yaml.js +39 -0
  265. package/node_modules/js-yaml/package.json +52 -0
  266. package/node_modules/kind-of/LICENSE +21 -0
  267. package/node_modules/kind-of/README.md +367 -0
  268. package/node_modules/kind-of/index.js +129 -0
  269. package/node_modules/kind-of/package.json +88 -0
  270. package/node_modules/node-addon-api/common 2.gypi +21 -0
  271. package/node_modules/node-addon-api/except 2.gypi +25 -0
  272. package/node_modules/node-addon-api/napi 2.h +3463 -0
  273. package/node_modules/node-addon-api/napi-inl 2.h +7250 -0
  274. package/node_modules/node-addon-api/napi-inl.deprecated 2.h +186 -0
  275. package/node_modules/node-addon-api/node_addon_api 2.gyp +42 -0
  276. package/node_modules/node-addon-api/node_api 2.gyp +9 -0
  277. package/node_modules/node-addon-api/noexcept 2.gypi +26 -0
  278. package/node_modules/node-addon-api/nothing 2.c +0 -0
  279. package/node_modules/pi-toggle-skills/README.md +213 -0
  280. package/node_modules/pi-toggle-skills/package.json +60 -0
  281. package/node_modules/pi-toggle-skills/src/index.ts +112 -0
  282. package/node_modules/pi-toggle-skills/src/skill-discovery.ts +258 -0
  283. package/node_modules/pi-toggle-skills/src/skill-selector.ts +435 -0
  284. package/node_modules/pi-toggle-skills/toggle-skills 2.ts +316 -0
  285. package/node_modules/pi-toggle-skills/toggle-skills.ts +316 -0
  286. package/node_modules/pi-toggle-skills/vitest.config 2.ts +15 -0
  287. package/node_modules/pi-toggle-skills/vitest.config.ts +15 -0
  288. package/node_modules/proper-lockfile/LICENSE +21 -0
  289. package/node_modules/proper-lockfile/README.md +183 -0
  290. package/node_modules/proper-lockfile/index.js +40 -0
  291. package/node_modules/proper-lockfile/lib/adapter.js +85 -0
  292. package/node_modules/proper-lockfile/lib/lockfile.js +342 -0
  293. package/node_modules/proper-lockfile/lib/mtime-precision.js +55 -0
  294. package/node_modules/proper-lockfile/node_modules/retry/.npmignore +3 -0
  295. package/node_modules/proper-lockfile/node_modules/retry/.travis.yml +15 -0
  296. package/node_modules/proper-lockfile/node_modules/retry/License +21 -0
  297. package/node_modules/proper-lockfile/node_modules/retry/Makefile +18 -0
  298. package/node_modules/proper-lockfile/node_modules/retry/README.md +227 -0
  299. package/node_modules/proper-lockfile/node_modules/retry/equation.gif +0 -0
  300. package/node_modules/proper-lockfile/node_modules/retry/example/dns.js +31 -0
  301. package/node_modules/proper-lockfile/node_modules/retry/example/stop.js +40 -0
  302. package/node_modules/proper-lockfile/node_modules/retry/index.js +1 -0
  303. package/node_modules/proper-lockfile/node_modules/retry/lib/retry.js +100 -0
  304. package/node_modules/proper-lockfile/node_modules/retry/lib/retry_operation.js +158 -0
  305. package/node_modules/proper-lockfile/node_modules/retry/package.json +32 -0
  306. package/node_modules/proper-lockfile/node_modules/retry/test/common.js +10 -0
  307. package/node_modules/proper-lockfile/node_modules/retry/test/integration/test-forever.js +24 -0
  308. package/node_modules/proper-lockfile/node_modules/retry/test/integration/test-retry-operation.js +258 -0
  309. package/node_modules/proper-lockfile/node_modules/retry/test/integration/test-retry-wrap.js +101 -0
  310. package/node_modules/proper-lockfile/node_modules/retry/test/integration/test-timeouts.js +69 -0
  311. package/node_modules/proper-lockfile/package.json +71 -0
  312. package/node_modules/section-matter/LICENSE +21 -0
  313. package/node_modules/section-matter/README.md +236 -0
  314. package/node_modules/section-matter/index.js +136 -0
  315. package/node_modules/section-matter/package.json +55 -0
  316. package/node_modules/signal-exit/LICENSE.txt +16 -0
  317. package/node_modules/signal-exit/README.md +39 -0
  318. package/node_modules/signal-exit/index.js +202 -0
  319. package/node_modules/signal-exit/package.json +38 -0
  320. package/node_modules/signal-exit/signals.js +53 -0
  321. package/node_modules/sprintf-js/.npmignore +1 -0
  322. package/node_modules/sprintf-js/.npmignore 2 +1 -0
  323. package/node_modules/sprintf-js/LICENSE +24 -0
  324. package/node_modules/sprintf-js/LICENSE 2 +24 -0
  325. package/node_modules/sprintf-js/README 2.md +88 -0
  326. package/node_modules/sprintf-js/README.md +88 -0
  327. package/node_modules/sprintf-js/bower 2.json +14 -0
  328. package/node_modules/sprintf-js/bower.json +14 -0
  329. package/node_modules/sprintf-js/demo/angular.html +20 -0
  330. package/node_modules/sprintf-js/dist/angular-sprintf.min.js +4 -0
  331. package/node_modules/sprintf-js/dist/angular-sprintf.min.js.map +1 -0
  332. package/node_modules/sprintf-js/dist/angular-sprintf.min.map +1 -0
  333. package/node_modules/sprintf-js/dist/sprintf.min.js +4 -0
  334. package/node_modules/sprintf-js/dist/sprintf.min.js.map +1 -0
  335. package/node_modules/sprintf-js/dist/sprintf.min.map +1 -0
  336. package/node_modules/sprintf-js/gruntfile 2.js +36 -0
  337. package/node_modules/sprintf-js/gruntfile.js +36 -0
  338. package/node_modules/sprintf-js/package 2.json +22 -0
  339. package/node_modules/sprintf-js/package.json +22 -0
  340. package/node_modules/sprintf-js/src/angular-sprintf.js +18 -0
  341. package/node_modules/sprintf-js/src/sprintf.js +208 -0
  342. package/node_modules/sprintf-js/test/test.js +82 -0
  343. package/node_modules/strip-bom-string/LICENSE +21 -0
  344. package/node_modules/strip-bom-string/README.md +66 -0
  345. package/node_modules/strip-bom-string/index.js +15 -0
  346. package/node_modules/strip-bom-string/package.json +60 -0
  347. package/node_modules/tree-sitter-bash/tree-sitter-bash 2.wasm +0 -0
  348. package/node_modules/typebox/license 2 +23 -0
  349. package/node_modules/typebox/package 2.json +87 -0
  350. package/node_modules/typebox/readme 2.md +370 -0
  351. package/node_modules/zod/compile 2.cjs +96 -0
  352. package/node_modules/zod/compile 2.js +52 -0
  353. package/node_modules/zod/index 2.cjs +52 -0
  354. package/node_modules/zod/index 2.js +7 -0
  355. package/package.json +13 -4
@@ -0,0 +1,61 @@
1
+ 'use strict';
2
+
3
+ var YAMLException = require('./exception');
4
+
5
+ var TYPE_CONSTRUCTOR_OPTIONS = [
6
+ 'kind',
7
+ 'resolve',
8
+ 'construct',
9
+ 'instanceOf',
10
+ 'predicate',
11
+ 'represent',
12
+ 'defaultStyle',
13
+ 'styleAliases'
14
+ ];
15
+
16
+ var YAML_NODE_KINDS = [
17
+ 'scalar',
18
+ 'sequence',
19
+ 'mapping'
20
+ ];
21
+
22
+ function compileStyleAliases(map) {
23
+ var result = {};
24
+
25
+ if (map !== null) {
26
+ Object.keys(map).forEach(function (style) {
27
+ map[style].forEach(function (alias) {
28
+ result[String(alias)] = style;
29
+ });
30
+ });
31
+ }
32
+
33
+ return result;
34
+ }
35
+
36
+ function Type(tag, options) {
37
+ options = options || {};
38
+
39
+ Object.keys(options).forEach(function (name) {
40
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
41
+ throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
42
+ }
43
+ });
44
+
45
+ // TODO: Add tag format check.
46
+ this.tag = tag;
47
+ this.kind = options['kind'] || null;
48
+ this.resolve = options['resolve'] || function () { return true; };
49
+ this.construct = options['construct'] || function (data) { return data; };
50
+ this.instanceOf = options['instanceOf'] || null;
51
+ this.predicate = options['predicate'] || null;
52
+ this.represent = options['represent'] || null;
53
+ this.defaultStyle = options['defaultStyle'] || null;
54
+ this.styleAliases = compileStyleAliases(options['styleAliases'] || null);
55
+
56
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
57
+ throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
58
+ }
59
+ }
60
+
61
+ module.exports = Type;
@@ -0,0 +1,39 @@
1
+ 'use strict';
2
+
3
+
4
+ var loader = require('./js-yaml/loader');
5
+ var dumper = require('./js-yaml/dumper');
6
+
7
+
8
+ function deprecated(name) {
9
+ return function () {
10
+ throw new Error('Function ' + name + ' is deprecated and cannot be used.');
11
+ };
12
+ }
13
+
14
+
15
+ module.exports.Type = require('./js-yaml/type');
16
+ module.exports.Schema = require('./js-yaml/schema');
17
+ module.exports.FAILSAFE_SCHEMA = require('./js-yaml/schema/failsafe');
18
+ module.exports.JSON_SCHEMA = require('./js-yaml/schema/json');
19
+ module.exports.CORE_SCHEMA = require('./js-yaml/schema/core');
20
+ module.exports.DEFAULT_SAFE_SCHEMA = require('./js-yaml/schema/default_safe');
21
+ module.exports.DEFAULT_FULL_SCHEMA = require('./js-yaml/schema/default_full');
22
+ module.exports.load = loader.load;
23
+ module.exports.loadAll = loader.loadAll;
24
+ module.exports.safeLoad = loader.safeLoad;
25
+ module.exports.safeLoadAll = loader.safeLoadAll;
26
+ module.exports.dump = dumper.dump;
27
+ module.exports.safeDump = dumper.safeDump;
28
+ module.exports.YAMLException = require('./js-yaml/exception');
29
+
30
+ // Deprecated schema names from JS-YAML 2.0.x
31
+ module.exports.MINIMAL_SCHEMA = require('./js-yaml/schema/failsafe');
32
+ module.exports.SAFE_SCHEMA = require('./js-yaml/schema/default_safe');
33
+ module.exports.DEFAULT_SCHEMA = require('./js-yaml/schema/default_full');
34
+
35
+ // Deprecated functions from JS-YAML 1.x.x
36
+ module.exports.scan = deprecated('scan');
37
+ module.exports.parse = deprecated('parse');
38
+ module.exports.compose = deprecated('compose');
39
+ module.exports.addConstructor = deprecated('addConstructor');
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "js-yaml",
3
+ "version": "3.15.2",
4
+ "description": "YAML 1.2 parser and serializer",
5
+ "keywords": [
6
+ "yaml",
7
+ "parser",
8
+ "serializer",
9
+ "pyyaml"
10
+ ],
11
+ "homepage": "https://github.com/nodeca/js-yaml",
12
+ "author": "Vladimir Zapparov <dervus.grim@gmail.com>",
13
+ "contributors": [
14
+ "Aleksey V Zapparov <ixti@member.fsf.org> (http://www.ixti.net/)",
15
+ "Vitaly Puzrin <vitaly@rcdesign.ru> (https://github.com/puzrin)",
16
+ "Martin Grenfell <martin.grenfell@gmail.com> (http://got-ravings.blogspot.com)"
17
+ ],
18
+ "license": "MIT",
19
+ "repository": "nodeca/js-yaml",
20
+ "files": [
21
+ "index.js",
22
+ "lib/",
23
+ "bin/",
24
+ "dist/"
25
+ ],
26
+ "publishConfig": {
27
+ "tag": "v3-legacy"
28
+ },
29
+ "bin": {
30
+ "js-yaml": "bin/js-yaml.js"
31
+ },
32
+ "unpkg": "dist/js-yaml.min.js",
33
+ "jsdelivr": "dist/js-yaml.min.js",
34
+ "dependencies": {
35
+ "argparse": "^1.0.7",
36
+ "esprima": "^4.0.0"
37
+ },
38
+ "devDependencies": {
39
+ "ansi": "^0.3.1",
40
+ "benchmark": "^2.1.4",
41
+ "browserify": "^16.2.2",
42
+ "codemirror": "^5.13.4",
43
+ "eslint": "^7.0.0",
44
+ "fast-check": "^1.24.2",
45
+ "istanbul": "^0.4.5",
46
+ "mocha": "^7.1.2",
47
+ "uglify-js": "^3.0.1"
48
+ },
49
+ "scripts": {
50
+ "test": "make test"
51
+ }
52
+ }
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014-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,367 @@
1
+ # kind-of [![NPM version](https://img.shields.io/npm/v/kind-of.svg?style=flat)](https://www.npmjs.com/package/kind-of) [![NPM monthly downloads](https://img.shields.io/npm/dm/kind-of.svg?style=flat)](https://npmjs.org/package/kind-of) [![NPM total downloads](https://img.shields.io/npm/dt/kind-of.svg?style=flat)](https://npmjs.org/package/kind-of) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/kind-of.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/kind-of)
2
+
3
+ > Get the native type of a value.
4
+
5
+ Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.
6
+
7
+ ## Install
8
+
9
+ Install with [npm](https://www.npmjs.com/):
10
+
11
+ ```sh
12
+ $ npm install --save kind-of
13
+ ```
14
+
15
+ Install with [bower](https://bower.io/)
16
+
17
+ ```sh
18
+ $ bower install kind-of --save
19
+ ```
20
+
21
+ ## Why use this?
22
+
23
+ 1. [it's fast](#benchmarks) | [optimizations](#optimizations)
24
+ 2. [better type checking](#better-type-checking)
25
+
26
+ ## Usage
27
+
28
+ > es5, es6, and browser ready
29
+
30
+ ```js
31
+ var kindOf = require('kind-of');
32
+
33
+ kindOf(undefined);
34
+ //=> 'undefined'
35
+
36
+ kindOf(null);
37
+ //=> 'null'
38
+
39
+ kindOf(true);
40
+ //=> 'boolean'
41
+
42
+ kindOf(false);
43
+ //=> 'boolean'
44
+
45
+ kindOf(new Buffer(''));
46
+ //=> 'buffer'
47
+
48
+ kindOf(42);
49
+ //=> 'number'
50
+
51
+ kindOf('str');
52
+ //=> 'string'
53
+
54
+ kindOf(arguments);
55
+ //=> 'arguments'
56
+
57
+ kindOf({});
58
+ //=> 'object'
59
+
60
+ kindOf(Object.create(null));
61
+ //=> 'object'
62
+
63
+ kindOf(new Test());
64
+ //=> 'object'
65
+
66
+ kindOf(new Date());
67
+ //=> 'date'
68
+
69
+ kindOf([1, 2, 3]);
70
+ //=> 'array'
71
+
72
+ kindOf(/foo/);
73
+ //=> 'regexp'
74
+
75
+ kindOf(new RegExp('foo'));
76
+ //=> 'regexp'
77
+
78
+ kindOf(new Error('error'));
79
+ //=> 'error'
80
+
81
+ kindOf(function () {});
82
+ //=> 'function'
83
+
84
+ kindOf(function * () {});
85
+ //=> 'generatorfunction'
86
+
87
+ kindOf(Symbol('str'));
88
+ //=> 'symbol'
89
+
90
+ kindOf(new Map());
91
+ //=> 'map'
92
+
93
+ kindOf(new WeakMap());
94
+ //=> 'weakmap'
95
+
96
+ kindOf(new Set());
97
+ //=> 'set'
98
+
99
+ kindOf(new WeakSet());
100
+ //=> 'weakset'
101
+
102
+ kindOf(new Int8Array());
103
+ //=> 'int8array'
104
+
105
+ kindOf(new Uint8Array());
106
+ //=> 'uint8array'
107
+
108
+ kindOf(new Uint8ClampedArray());
109
+ //=> 'uint8clampedarray'
110
+
111
+ kindOf(new Int16Array());
112
+ //=> 'int16array'
113
+
114
+ kindOf(new Uint16Array());
115
+ //=> 'uint16array'
116
+
117
+ kindOf(new Int32Array());
118
+ //=> 'int32array'
119
+
120
+ kindOf(new Uint32Array());
121
+ //=> 'uint32array'
122
+
123
+ kindOf(new Float32Array());
124
+ //=> 'float32array'
125
+
126
+ kindOf(new Float64Array());
127
+ //=> 'float64array'
128
+ ```
129
+
130
+ ## Benchmarks
131
+
132
+ Benchmarked against [typeof](http://github.com/CodingFu/typeof) and [type-of](https://github.com/ForbesLindesay/type-of).
133
+
134
+ ```bash
135
+ # arguments (32 bytes)
136
+ kind-of x 17,024,098 ops/sec ±1.90% (86 runs sampled)
137
+ lib-type-of x 11,926,235 ops/sec ±1.34% (83 runs sampled)
138
+ lib-typeof x 9,245,257 ops/sec ±1.22% (87 runs sampled)
139
+
140
+ fastest is kind-of (by 161% avg)
141
+
142
+ # array (22 bytes)
143
+ kind-of x 17,196,492 ops/sec ±1.07% (88 runs sampled)
144
+ lib-type-of x 8,838,283 ops/sec ±1.02% (87 runs sampled)
145
+ lib-typeof x 8,677,848 ops/sec ±0.87% (87 runs sampled)
146
+
147
+ fastest is kind-of (by 196% avg)
148
+
149
+ # boolean (24 bytes)
150
+ kind-of x 16,841,600 ops/sec ±1.10% (86 runs sampled)
151
+ lib-type-of x 8,096,787 ops/sec ±0.95% (87 runs sampled)
152
+ lib-typeof x 8,423,345 ops/sec ±1.15% (86 runs sampled)
153
+
154
+ fastest is kind-of (by 204% avg)
155
+
156
+ # buffer (38 bytes)
157
+ kind-of x 14,848,060 ops/sec ±1.05% (86 runs sampled)
158
+ lib-type-of x 3,671,577 ops/sec ±1.49% (87 runs sampled)
159
+ lib-typeof x 8,360,236 ops/sec ±1.24% (86 runs sampled)
160
+
161
+ fastest is kind-of (by 247% avg)
162
+
163
+ # date (30 bytes)
164
+ kind-of x 16,067,761 ops/sec ±1.58% (86 runs sampled)
165
+ lib-type-of x 8,954,436 ops/sec ±1.40% (87 runs sampled)
166
+ lib-typeof x 8,488,307 ops/sec ±1.51% (84 runs sampled)
167
+
168
+ fastest is kind-of (by 184% avg)
169
+
170
+ # error (36 bytes)
171
+ kind-of x 9,634,090 ops/sec ±1.12% (89 runs sampled)
172
+ lib-type-of x 7,735,624 ops/sec ±1.32% (86 runs sampled)
173
+ lib-typeof x 7,442,160 ops/sec ±1.11% (90 runs sampled)
174
+
175
+ fastest is kind-of (by 127% avg)
176
+
177
+ # function (34 bytes)
178
+ kind-of x 10,031,494 ops/sec ±1.27% (86 runs sampled)
179
+ lib-type-of x 9,502,757 ops/sec ±1.17% (89 runs sampled)
180
+ lib-typeof x 8,278,985 ops/sec ±1.08% (88 runs sampled)
181
+
182
+ fastest is kind-of (by 113% avg)
183
+
184
+ # null (24 bytes)
185
+ kind-of x 18,159,808 ops/sec ±1.92% (86 runs sampled)
186
+ lib-type-of x 12,927,635 ops/sec ±1.01% (88 runs sampled)
187
+ lib-typeof x 7,958,234 ops/sec ±1.21% (89 runs sampled)
188
+
189
+ fastest is kind-of (by 174% avg)
190
+
191
+ # number (22 bytes)
192
+ kind-of x 17,846,779 ops/sec ±0.91% (85 runs sampled)
193
+ lib-type-of x 3,316,636 ops/sec ±1.19% (86 runs sampled)
194
+ lib-typeof x 2,329,477 ops/sec ±2.21% (85 runs sampled)
195
+
196
+ fastest is kind-of (by 632% avg)
197
+
198
+ # object-plain (47 bytes)
199
+ kind-of x 7,085,155 ops/sec ±1.05% (88 runs sampled)
200
+ lib-type-of x 8,870,930 ops/sec ±1.06% (83 runs sampled)
201
+ lib-typeof x 8,716,024 ops/sec ±1.05% (87 runs sampled)
202
+
203
+ fastest is lib-type-of (by 112% avg)
204
+
205
+ # regex (25 bytes)
206
+ kind-of x 14,196,052 ops/sec ±1.65% (84 runs sampled)
207
+ lib-type-of x 9,554,164 ops/sec ±1.25% (88 runs sampled)
208
+ lib-typeof x 8,359,691 ops/sec ±1.07% (87 runs sampled)
209
+
210
+ fastest is kind-of (by 158% avg)
211
+
212
+ # string (33 bytes)
213
+ kind-of x 16,131,428 ops/sec ±1.41% (85 runs sampled)
214
+ lib-type-of x 7,273,172 ops/sec ±1.05% (87 runs sampled)
215
+ lib-typeof x 7,382,635 ops/sec ±1.17% (85 runs sampled)
216
+
217
+ fastest is kind-of (by 220% avg)
218
+
219
+ # symbol (34 bytes)
220
+ kind-of x 17,011,537 ops/sec ±1.24% (86 runs sampled)
221
+ lib-type-of x 3,492,454 ops/sec ±1.23% (89 runs sampled)
222
+ lib-typeof x 7,471,235 ops/sec ±2.48% (87 runs sampled)
223
+
224
+ fastest is kind-of (by 310% avg)
225
+
226
+ # template-strings (36 bytes)
227
+ kind-of x 15,434,250 ops/sec ±1.46% (83 runs sampled)
228
+ lib-type-of x 7,157,907 ops/sec ±0.97% (87 runs sampled)
229
+ lib-typeof x 7,517,986 ops/sec ±0.92% (86 runs sampled)
230
+
231
+ fastest is kind-of (by 210% avg)
232
+
233
+ # undefined (29 bytes)
234
+ kind-of x 19,167,115 ops/sec ±1.71% (87 runs sampled)
235
+ lib-type-of x 15,477,740 ops/sec ±1.63% (85 runs sampled)
236
+ lib-typeof x 19,075,495 ops/sec ±1.17% (83 runs sampled)
237
+
238
+ fastest is lib-typeof,kind-of
239
+
240
+ ```
241
+
242
+ ## Optimizations
243
+
244
+ In 7 out of 8 cases, this library is 2x-10x faster than other top libraries included in the benchmarks. There are a few things that lead to this performance advantage, none of them hard and fast rules, but all of them simple and repeatable in almost any code library:
245
+
246
+ 1. Optimize around the fastest and most common use cases first. Of course, this will change from project-to-project, but I took some time to understand how and why `typeof` checks were being used in my own libraries and other libraries I use a lot.
247
+ 2. Optimize around bottlenecks - In other words, the order in which conditionals are implemented is significant, because each check is only as fast as the failing checks that came before it. Here, the biggest bottleneck by far is checking for plain objects (an object that was created by the `Object` constructor). I opted to make this check happen by process of elimination rather than brute force up front (e.g. by using something like `val.constructor.name`), so that every other type check would not be penalized it.
248
+ 3. Don't do uneccessary processing - why do `.slice(8, -1).toLowerCase();` just to get the word `regex`? It's much faster to do `if (type === '[object RegExp]') return 'regex'`
249
+ 4. There is no reason to make the code in a microlib as terse as possible, just to win points for making it shorter. It's always better to favor performant code over terse code. You will always only be using a single `require()` statement to use the library anyway, regardless of how the code is written.
250
+
251
+ ## Better type checking
252
+
253
+ kind-of seems to be more consistently "correct" than other type checking libs I've looked at. For example, here are some differing results from other popular libs:
254
+
255
+ ### [typeof](https://github.com/CodingFu/typeof) lib
256
+
257
+ Incorrectly identifies instances of custom constructors (pretty common):
258
+
259
+ ```js
260
+ var typeOf = require('typeof');
261
+ function Test() {}
262
+ console.log(typeOf(new Test()));
263
+ //=> 'test'
264
+ ```
265
+
266
+ Returns `object` instead of `arguments`:
267
+
268
+ ```js
269
+ function foo() {
270
+ console.log(typeOf(arguments)) //=> 'object'
271
+ }
272
+ foo();
273
+ ```
274
+
275
+ ### [type-of](https://github.com/ForbesLindesay/type-of) lib
276
+
277
+ Incorrectly returns `object` for generator functions, buffers, `Map`, `Set`, `WeakMap` and `WeakSet`:
278
+
279
+ ```js
280
+ function * foo() {}
281
+ console.log(typeOf(foo));
282
+ //=> 'object'
283
+ console.log(typeOf(new Buffer('')));
284
+ //=> 'object'
285
+ console.log(typeOf(new Map()));
286
+ //=> 'object'
287
+ console.log(typeOf(new Set()));
288
+ //=> 'object'
289
+ console.log(typeOf(new WeakMap()));
290
+ //=> 'object'
291
+ console.log(typeOf(new WeakSet()));
292
+ //=> 'object'
293
+ ```
294
+
295
+ ## About
296
+
297
+ <details>
298
+ <summary><strong>Contributing</strong></summary>
299
+
300
+ Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
301
+
302
+ </details>
303
+
304
+ <details>
305
+ <summary><strong>Running Tests</strong></summary>
306
+
307
+ 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:
308
+
309
+ ```sh
310
+ $ npm install && npm test
311
+ ```
312
+
313
+ </details>
314
+
315
+ <details>
316
+ <summary><strong>Building docs</strong></summary>
317
+
318
+ _(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.)_
319
+
320
+ To generate the readme, run the following command:
321
+
322
+ ```sh
323
+ $ npm install -g verbose/verb#dev verb-generate-readme && verb
324
+ ```
325
+
326
+ </details>
327
+
328
+ ### Related projects
329
+
330
+ You might also be interested in these projects:
331
+
332
+ * [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/micromatch/is-glob) | [homepage](https://github.com/micromatch/is-glob "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet")
333
+ * [is-number](https://www.npmjs.com/package/is-number): Returns true if a number or string value is a finite number. Useful for regex… [more](https://github.com/jonschlinkert/is-number) | [homepage](https://github.com/jonschlinkert/is-number "Returns true if a number or string value is a finite number. Useful for regex matches, parsing, user input, etc.")
334
+ * [is-primitive](https://www.npmjs.com/package/is-primitive): Returns `true` if the value is a primitive. | [homepage](https://github.com/jonschlinkert/is-primitive "Returns `true` if the value is a primitive. ")
335
+
336
+ ### Contributors
337
+
338
+ | **Commits** | **Contributor** |
339
+ | --- | --- |
340
+ | 102 | [jonschlinkert](https://github.com/jonschlinkert) |
341
+ | 3 | [aretecode](https://github.com/aretecode) |
342
+ | 2 | [miguelmota](https://github.com/miguelmota) |
343
+ | 1 | [doowb](https://github.com/doowb) |
344
+ | 1 | [dtothefp](https://github.com/dtothefp) |
345
+ | 1 | [ianstormtaylor](https://github.com/ianstormtaylor) |
346
+ | 1 | [ksheedlo](https://github.com/ksheedlo) |
347
+ | 1 | [pdehaan](https://github.com/pdehaan) |
348
+ | 1 | [laggingreflex](https://github.com/laggingreflex) |
349
+ | 1 | [tunnckoCore](https://github.com/tunnckoCore) |
350
+ | 1 | [xiaofen9](https://github.com/xiaofen9) |
351
+
352
+ ### Author
353
+
354
+ **Jon Schlinkert**
355
+
356
+ * [GitHub Profile](https://github.com/jonschlinkert)
357
+ * [Twitter Profile](https://twitter.com/jonschlinkert)
358
+ * [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)
359
+
360
+ ### License
361
+
362
+ Copyright © 2020, [Jon Schlinkert](https://github.com/jonschlinkert).
363
+ Released under the [MIT License](LICENSE).
364
+
365
+ ***
366
+
367
+ _This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on January 16, 2020._
@@ -0,0 +1,129 @@
1
+ var toString = Object.prototype.toString;
2
+
3
+ module.exports = function kindOf(val) {
4
+ if (val === void 0) return 'undefined';
5
+ if (val === null) return 'null';
6
+
7
+ var type = typeof val;
8
+ if (type === 'boolean') return 'boolean';
9
+ if (type === 'string') return 'string';
10
+ if (type === 'number') return 'number';
11
+ if (type === 'symbol') return 'symbol';
12
+ if (type === 'function') {
13
+ return isGeneratorFn(val) ? 'generatorfunction' : 'function';
14
+ }
15
+
16
+ if (isArray(val)) return 'array';
17
+ if (isBuffer(val)) return 'buffer';
18
+ if (isArguments(val)) return 'arguments';
19
+ if (isDate(val)) return 'date';
20
+ if (isError(val)) return 'error';
21
+ if (isRegexp(val)) return 'regexp';
22
+
23
+ switch (ctorName(val)) {
24
+ case 'Symbol': return 'symbol';
25
+ case 'Promise': return 'promise';
26
+
27
+ // Set, Map, WeakSet, WeakMap
28
+ case 'WeakMap': return 'weakmap';
29
+ case 'WeakSet': return 'weakset';
30
+ case 'Map': return 'map';
31
+ case 'Set': return 'set';
32
+
33
+ // 8-bit typed arrays
34
+ case 'Int8Array': return 'int8array';
35
+ case 'Uint8Array': return 'uint8array';
36
+ case 'Uint8ClampedArray': return 'uint8clampedarray';
37
+
38
+ // 16-bit typed arrays
39
+ case 'Int16Array': return 'int16array';
40
+ case 'Uint16Array': return 'uint16array';
41
+
42
+ // 32-bit typed arrays
43
+ case 'Int32Array': return 'int32array';
44
+ case 'Uint32Array': return 'uint32array';
45
+ case 'Float32Array': return 'float32array';
46
+ case 'Float64Array': return 'float64array';
47
+ }
48
+
49
+ if (isGeneratorObj(val)) {
50
+ return 'generator';
51
+ }
52
+
53
+ // Non-plain objects
54
+ type = toString.call(val);
55
+ switch (type) {
56
+ case '[object Object]': return 'object';
57
+ // iterators
58
+ case '[object Map Iterator]': return 'mapiterator';
59
+ case '[object Set Iterator]': return 'setiterator';
60
+ case '[object String Iterator]': return 'stringiterator';
61
+ case '[object Array Iterator]': return 'arrayiterator';
62
+ }
63
+
64
+ // other
65
+ return type.slice(8, -1).toLowerCase().replace(/\s/g, '');
66
+ };
67
+
68
+ function ctorName(val) {
69
+ return typeof val.constructor === 'function' ? val.constructor.name : null;
70
+ }
71
+
72
+ function isArray(val) {
73
+ if (Array.isArray) return Array.isArray(val);
74
+ return val instanceof Array;
75
+ }
76
+
77
+ function isError(val) {
78
+ return val instanceof Error || (typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number');
79
+ }
80
+
81
+ function isDate(val) {
82
+ if (val instanceof Date) return true;
83
+ return typeof val.toDateString === 'function'
84
+ && typeof val.getDate === 'function'
85
+ && typeof val.setDate === 'function';
86
+ }
87
+
88
+ function isRegexp(val) {
89
+ if (val instanceof RegExp) return true;
90
+ return typeof val.flags === 'string'
91
+ && typeof val.ignoreCase === 'boolean'
92
+ && typeof val.multiline === 'boolean'
93
+ && typeof val.global === 'boolean';
94
+ }
95
+
96
+ function isGeneratorFn(name, val) {
97
+ return ctorName(name) === 'GeneratorFunction';
98
+ }
99
+
100
+ function isGeneratorObj(val) {
101
+ return typeof val.throw === 'function'
102
+ && typeof val.return === 'function'
103
+ && typeof val.next === 'function';
104
+ }
105
+
106
+ function isArguments(val) {
107
+ try {
108
+ if (typeof val.length === 'number' && typeof val.callee === 'function') {
109
+ return true;
110
+ }
111
+ } catch (err) {
112
+ if (err.message.indexOf('callee') !== -1) {
113
+ return true;
114
+ }
115
+ }
116
+ return false;
117
+ }
118
+
119
+ /**
120
+ * If you need to support Safari 5-7 (8-10 yr-old browser),
121
+ * take a look at https://github.com/feross/is-buffer
122
+ */
123
+
124
+ function isBuffer(val) {
125
+ if (val.constructor && typeof val.constructor.isBuffer === 'function') {
126
+ return val.constructor.isBuffer(val);
127
+ }
128
+ return false;
129
+ }