@yanglaofish/fishtools 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/README.md +33 -5
  2. package/bin/fst.js +1 -1
  3. package/manual/README.md +33 -5
  4. package/manual/docs/deployment.md +3 -3
  5. package/manual/docs/kernel-generation.md +97 -0
  6. package/manual/docs/modules.md +57 -0
  7. package/manual/docs/plugin-development.md +120 -10
  8. package/manual/docs/releases.md +12 -0
  9. package/manual/docs/research/2026-10-11-plugin-kernel-capabilities.md +6 -6
  10. package/manual/docs/roadmap.md +14 -3
  11. package/manual/docs/superpowers/plans/2026-10-09-workflow-mvp.md +5 -5
  12. package/manual/docs/superpowers/plans/2026-10-11-public-plugin-fixes.md +2 -2
  13. package/manual/docs/superpowers/plans/2026-10-12-kernel-generation.md +22 -0
  14. package/manual/docs/superpowers/plans/2026-10-12-modular-kernel.md +40 -0
  15. package/manual/docs/superpowers/reviews/2026-10-12-kernel-generation-review.md +27 -0
  16. package/manual/docs/superpowers/reviews/2026-10-12-modular-kernel-review.md +32 -0
  17. package/manual/docs/superpowers/reviews/2026-10-13-kernel-runtime-release-review.md +19 -0
  18. package/manual/docs/superpowers/specs/2026-10-12-action-network-policy-design.md +52 -0
  19. package/manual/docs/superpowers/specs/2026-10-12-kernel-generation-design.md +38 -0
  20. package/manual/docs/superpowers/specs/2026-10-12-modular-kernel-design.md +70 -0
  21. package/manual/docs/superpowers/specs/2026-10-12-plugin-readiness-design.md +21 -0
  22. package/manual/docs/superpowers/specs/2026-10-12-runtime-maintenance-granularity-design.md +35 -0
  23. package/manual/docs/superpowers/specs/2026-10-12-workflow-variation-design.md +19 -0
  24. package/manual/docs/verification.md +42 -2
  25. package/manual/packages/core/README.md +44 -0
  26. package/manual/packages/core/package.json +38 -0
  27. package/manual/packages/core/src/application.js +242 -85
  28. package/manual/packages/core/src/bundle.js +2 -0
  29. package/manual/packages/core/src/development-watch-worker.js +69 -0
  30. package/manual/packages/core/src/development.js +146 -0
  31. package/manual/packages/core/src/environments.js +2 -0
  32. package/manual/packages/core/src/export-snapshot.js +42 -0
  33. package/manual/packages/core/src/plugin-update.js +108 -0
  34. package/manual/packages/core/src/process.js +2 -0
  35. package/manual/packages/core/src/resources.js +31 -0
  36. package/manual/packages/core/src/version.js +2 -0
  37. package/manual/packages/fst-cli/LICENSE +21 -0
  38. package/manual/packages/fst-cli/README.md +54 -0
  39. package/{node_modules/@mytools/core → manual/packages/fst-cli}/bin/fst.js +55 -23
  40. package/manual/packages/fst-cli/package.json +49 -0
  41. package/manual/packages/fst-cli/src/development.js +53 -0
  42. package/{node_modules/@mytools/core → manual/packages/fst-cli}/src/terminal/model.js +1 -1
  43. package/{node_modules/@mytools/core → manual/packages/fst-cli}/src/terminal/navigation.js +1 -1
  44. package/{node_modules/@mytools/core → manual/packages/fst-cli}/src/terminal/presentation.js +9 -1
  45. package/{node_modules/@mytools/core → manual/packages/fst-cli}/src/terminal/run-feed.js +31 -5
  46. package/{node_modules/@mytools/core → manual/packages/fst-cli}/src/terminal/run-viewer.js +9 -7
  47. package/{node_modules/@mytools/core → manual/packages/fst-cli}/src/terminal/schema.js +1 -1
  48. package/manual/packages/{core → fst-cli}/src/terminal/session.js +137 -9
  49. package/manual/packages/{core → fst-cli}/src/terminal/view.js +20 -3
  50. package/{node_modules/@mytools/core → manual/packages/fst-cli}/src/terminal/workflow-menu.js +17 -2
  51. package/manual/packages/fst-devtools/LICENSE +21 -0
  52. package/manual/packages/fst-devtools/README.md +28 -0
  53. package/manual/packages/fst-devtools/package.json +29 -0
  54. package/{node_modules/@mytools/core → manual/packages/fst-devtools}/src/documentation.js +3 -1
  55. package/manual/packages/fst-devtools/src/plugin-quality.js +136 -0
  56. package/{node_modules/@mytools/core → manual/packages/fst-devtools}/src/plugin-tools.js +24 -5
  57. package/manual/packages/fst-logs/LICENSE +21 -0
  58. package/manual/packages/fst-logs/README.md +56 -0
  59. package/manual/packages/fst-logs/package.json +24 -0
  60. package/manual/packages/fst-logs/src/log-bounds.js +91 -0
  61. package/manual/packages/fst-logs/src/run-logs.js +239 -0
  62. package/manual/packages/fst-platform/LICENSE +21 -0
  63. package/manual/packages/fst-platform/README.md +67 -0
  64. package/manual/packages/fst-platform/package.json +33 -0
  65. package/manual/packages/fst-platform/src/bundle.js +17 -0
  66. package/manual/packages/fst-platform/src/environments.js +67 -0
  67. package/manual/packages/fst-platform/src/file-probe-engine.js +183 -0
  68. package/manual/packages/fst-platform/src/file-probe-worker.js +43 -0
  69. package/manual/packages/fst-platform/src/file-probe.js +6 -0
  70. package/manual/packages/fst-platform/src/json.js +5 -0
  71. package/manual/packages/fst-platform/src/network.js +199 -0
  72. package/manual/packages/fst-platform/src/npm.js +11 -0
  73. package/manual/packages/fst-platform/src/process.js +110 -0
  74. package/manual/packages/fst-plugin/LICENSE +21 -0
  75. package/manual/packages/fst-plugin/README.md +29 -0
  76. package/manual/packages/fst-plugin/package.json +29 -0
  77. package/{node_modules/@mytools/core → manual/packages/fst-plugin}/src/contracts.js +30 -3
  78. package/manual/packages/fst-plugin/src/host.js +232 -0
  79. package/manual/packages/fst-plugin/src/loader.js +21 -0
  80. package/manual/packages/fst-plugin/src/privileges.js +91 -0
  81. package/{node_modules/@mytools/core → manual/packages/fst-plugin}/src/runtime.js +20 -4
  82. package/manual/packages/fst-workflow/LICENSE +21 -0
  83. package/manual/packages/fst-workflow/README.md +28 -0
  84. package/manual/packages/fst-workflow/package.json +24 -0
  85. package/{node_modules/@mytools/core → manual/packages/fst-workflow}/src/control.js +3 -2
  86. package/manual/packages/{core → fst-workflow}/src/engine.js +2 -2
  87. package/manual/packages/fst-workspace/LICENSE +21 -0
  88. package/manual/packages/fst-workspace/README.md +32 -0
  89. package/manual/packages/fst-workspace/package.json +34 -0
  90. package/{node_modules/@mytools/core → manual/packages/fst-workspace}/src/bundle-workspace.js +1 -1
  91. package/manual/packages/fst-workspace/src/index.js +3 -0
  92. package/{node_modules/@mytools/core → manual/packages/fst-workspace}/src/plugins.js +6 -36
  93. package/{node_modules/@mytools/core → manual/packages/fst-workspace}/src/workflows.js +40 -7
  94. package/manual/packages/pack/LICENSE +21 -0
  95. package/manual/packages/pack/README.md +31 -0
  96. package/manual/packages/pack/archive.js +15 -0
  97. package/manual/packages/pack/dependencies.js +105 -0
  98. package/manual/packages/pack/environments.js +50 -0
  99. package/manual/packages/pack/index.js +103 -0
  100. package/manual/packages/pack/package.json +29 -0
  101. package/manual/packages/pack/runtime.js +61 -0
  102. package/manual/packages/sdk/README.md +31 -0
  103. package/manual/packages/sdk/conditions.js +1 -0
  104. package/manual/packages/sdk/package.json +23 -1
  105. package/manual/plugins/web/README.md +29 -0
  106. package/manual/tests/application.test.js +6 -4
  107. package/node_modules/@mytools/core/README.md +44 -0
  108. package/node_modules/@mytools/core/package.json +17 -17
  109. package/node_modules/@mytools/core/src/application.js +242 -85
  110. package/node_modules/@mytools/core/src/bundle.js +2 -17
  111. package/node_modules/@mytools/core/src/development-watch-worker.js +69 -0
  112. package/node_modules/@mytools/core/src/development.js +146 -0
  113. package/node_modules/@mytools/core/src/environments.js +2 -67
  114. package/node_modules/@mytools/core/src/export-snapshot.js +42 -0
  115. package/node_modules/@mytools/core/src/plugin-update.js +108 -0
  116. package/node_modules/@mytools/core/src/process.js +2 -80
  117. package/node_modules/@mytools/core/src/version.js +1 -1
  118. package/node_modules/@mytools/fst-cli/LICENSE +21 -0
  119. package/node_modules/@mytools/fst-cli/README.md +54 -0
  120. package/node_modules/@mytools/fst-cli/bin/fst.js +124 -0
  121. package/node_modules/@mytools/fst-cli/package.json +49 -0
  122. package/node_modules/@mytools/fst-cli/src/cli-run.js +12 -0
  123. package/node_modules/@mytools/fst-cli/src/development.js +53 -0
  124. package/node_modules/@mytools/fst-cli/src/terminal/conditions.js +32 -0
  125. package/node_modules/@mytools/fst-cli/src/terminal/log-viewer.js +45 -0
  126. package/node_modules/@mytools/fst-cli/src/terminal/model.js +104 -0
  127. package/node_modules/@mytools/fst-cli/src/terminal/navigation.js +17 -0
  128. package/node_modules/@mytools/fst-cli/src/terminal/presentation.js +50 -0
  129. package/{manual/packages/core → node_modules/@mytools/fst-cli}/src/terminal/run-feed.js +31 -5
  130. package/node_modules/@mytools/fst-cli/src/terminal/run-presentation.js +60 -0
  131. package/node_modules/@mytools/fst-cli/src/terminal/run-viewer.js +106 -0
  132. package/node_modules/@mytools/fst-cli/src/terminal/schema.js +52 -0
  133. package/node_modules/@mytools/{core → fst-cli}/src/terminal/session.js +137 -9
  134. package/node_modules/@mytools/fst-cli/src/terminal/theme.js +29 -0
  135. package/node_modules/@mytools/{core → fst-cli}/src/terminal/view.js +20 -3
  136. package/node_modules/@mytools/fst-cli/src/terminal/workflow-menu.js +65 -0
  137. package/node_modules/@mytools/fst-devtools/LICENSE +21 -0
  138. package/node_modules/@mytools/fst-devtools/README.md +28 -0
  139. package/node_modules/@mytools/fst-devtools/package.json +29 -0
  140. package/node_modules/@mytools/fst-devtools/src/documentation.js +67 -0
  141. package/node_modules/@mytools/fst-devtools/src/plugin-quality.js +136 -0
  142. package/node_modules/@mytools/fst-devtools/src/plugin-tools.js +152 -0
  143. package/node_modules/@mytools/fst-logs/LICENSE +21 -0
  144. package/node_modules/@mytools/fst-logs/README.md +56 -0
  145. package/node_modules/@mytools/fst-logs/package.json +24 -0
  146. package/node_modules/@mytools/fst-logs/src/log-bounds.js +91 -0
  147. package/node_modules/@mytools/fst-logs/src/markdown-log.js +55 -0
  148. package/node_modules/@mytools/fst-logs/src/run-logs.js +239 -0
  149. package/node_modules/@mytools/fst-platform/LICENSE +21 -0
  150. package/node_modules/@mytools/fst-platform/README.md +67 -0
  151. package/node_modules/@mytools/fst-platform/package.json +33 -0
  152. package/node_modules/@mytools/fst-platform/src/bundle.js +17 -0
  153. package/node_modules/@mytools/fst-platform/src/environments.js +67 -0
  154. package/node_modules/@mytools/fst-platform/src/file-probe-engine.js +183 -0
  155. package/node_modules/@mytools/fst-platform/src/file-probe-worker.js +43 -0
  156. package/node_modules/@mytools/fst-platform/src/file-probe.js +6 -0
  157. package/node_modules/@mytools/fst-platform/src/json.js +5 -0
  158. package/node_modules/@mytools/fst-platform/src/network.js +199 -0
  159. package/node_modules/@mytools/fst-platform/src/npm.js +11 -0
  160. package/node_modules/@mytools/fst-platform/src/process.js +110 -0
  161. package/node_modules/@mytools/fst-plugin/LICENSE +21 -0
  162. package/node_modules/@mytools/fst-plugin/README.md +29 -0
  163. package/node_modules/@mytools/fst-plugin/package.json +29 -0
  164. package/node_modules/@mytools/fst-plugin/src/contracts.js +86 -0
  165. package/node_modules/@mytools/fst-plugin/src/host.js +232 -0
  166. package/node_modules/@mytools/fst-plugin/src/loader.js +21 -0
  167. package/node_modules/@mytools/fst-plugin/src/privileges.js +91 -0
  168. package/{manual/packages/core → node_modules/@mytools/fst-plugin}/src/runtime.js +20 -4
  169. package/node_modules/@mytools/fst-workflow/LICENSE +21 -0
  170. package/node_modules/@mytools/fst-workflow/README.md +28 -0
  171. package/node_modules/@mytools/fst-workflow/package.json +24 -0
  172. package/node_modules/@mytools/fst-workflow/src/control.js +64 -0
  173. package/node_modules/@mytools/{core → fst-workflow}/src/engine.js +2 -2
  174. package/node_modules/@mytools/fst-workspace/LICENSE +21 -0
  175. package/node_modules/@mytools/fst-workspace/README.md +32 -0
  176. package/node_modules/@mytools/fst-workspace/package.json +34 -0
  177. package/node_modules/@mytools/fst-workspace/src/bundle-workspace.js +39 -0
  178. package/node_modules/@mytools/fst-workspace/src/index.js +3 -0
  179. package/node_modules/@mytools/fst-workspace/src/plugin-installations.js +84 -0
  180. package/node_modules/@mytools/fst-workspace/src/plugins.js +35 -0
  181. package/node_modules/@mytools/fst-workspace/src/project.js +29 -0
  182. package/node_modules/@mytools/fst-workspace/src/workflows.js +150 -0
  183. package/node_modules/@mytools/fst-workspace/templates/control-demo.yaml +47 -0
  184. package/node_modules/@mytools/fst-workspace/templates/hello.yaml +35 -0
  185. package/node_modules/@mytools/fst-workspace/templates/python-check.yaml +26 -0
  186. package/node_modules/@mytools/fst-workspace/templates/system-check.yaml +11 -0
  187. package/node_modules/@mytools/pack/README.md +31 -0
  188. package/node_modules/@mytools/pack/dependencies.js +7 -2
  189. package/node_modules/@mytools/pack/environments.js +1 -1
  190. package/node_modules/@mytools/pack/index.js +33 -25
  191. package/node_modules/@mytools/pack/package.json +29 -1
  192. package/node_modules/@mytools/sdk/README.md +31 -0
  193. package/node_modules/@mytools/sdk/conditions.js +1 -0
  194. package/node_modules/@mytools/sdk/diagnostics.js +27 -0
  195. package/node_modules/@mytools/sdk/package.json +23 -1
  196. package/node_modules/@mytools/sdk/schema-path.js +31 -0
  197. package/node_modules/@mytools/sdk/validation.js +78 -0
  198. package/node_modules/@mytools/web/README.md +29 -0
  199. package/node_modules/@mytools/web/package.json +7 -0
  200. package/node_modules/@mytools/web/public/THIRD_PARTY_NOTICES.txt +1398 -1199
  201. package/node_modules/@mytools/web/public/assets/index-BaVzHycP.js +70 -0
  202. package/node_modules/@mytools/web/public/assets/index-DA8Ae92t.css +1 -0
  203. package/node_modules/@mytools/web/public/index.html +2 -2
  204. package/node_modules/@mytools/web/server.js +24 -17
  205. package/node_modules/@mytools/web/src/model.js +84 -0
  206. package/node_modules/acorn/CHANGELOG.md +1012 -0
  207. package/node_modules/acorn/LICENSE +21 -0
  208. package/node_modules/acorn/README.md +309 -0
  209. package/node_modules/acorn/bin/acorn +4 -0
  210. package/node_modules/acorn/dist/acorn.d.mts +897 -0
  211. package/node_modules/acorn/dist/acorn.d.ts +897 -0
  212. package/node_modules/acorn/dist/acorn.js +6370 -0
  213. package/node_modules/acorn/dist/acorn.mjs +6341 -0
  214. package/node_modules/acorn/dist/bin.js +90 -0
  215. package/node_modules/acorn/package.json +50 -0
  216. package/node_modules/{minipass-flush/node_modules/minipass → tar}/node_modules/yallist/README.md +8 -7
  217. package/node_modules/tar/node_modules/yallist/package.json +68 -0
  218. package/node_modules/yallist/README.md +7 -8
  219. package/node_modules/yallist/package.json +12 -51
  220. package/package.json +131 -115
  221. package/manual/packages/core/src/host.js +0 -139
  222. package/node_modules/@mytools/core/src/host.js +0 -139
  223. package/node_modules/@mytools/core/src/run-logs.js +0 -63
  224. package/node_modules/@mytools/web/public/assets/index-DT2B4tMV.js +0 -70
  225. package/node_modules/@mytools/web/public/assets/index-vuZvrUTT.css +0 -1
  226. package/node_modules/minipass-flush/node_modules/minipass/node_modules/yallist/package.json +0 -29
  227. /package/{node_modules/@mytools/core → manual/packages/fst-cli}/src/cli-run.js +0 -0
  228. /package/{node_modules/@mytools/core → manual/packages/fst-cli}/src/terminal/conditions.js +0 -0
  229. /package/{node_modules/@mytools/core → manual/packages/fst-cli}/src/terminal/log-viewer.js +0 -0
  230. /package/{node_modules/@mytools/core → manual/packages/fst-cli}/src/terminal/run-presentation.js +0 -0
  231. /package/{node_modules/@mytools/core → manual/packages/fst-cli}/src/terminal/theme.js +0 -0
  232. /package/{node_modules/@mytools/core → manual/packages/fst-logs}/src/markdown-log.js +0 -0
  233. /package/{node_modules/@mytools/core → manual/packages/fst-workspace}/src/plugin-installations.js +0 -0
  234. /package/{node_modules/@mytools/core → manual/packages/fst-workspace}/src/project.js +0 -0
  235. /package/{node_modules/@mytools/core → manual/packages/fst-workspace}/templates/control-demo.yaml +0 -0
  236. /package/{node_modules/@mytools/core → manual/packages/fst-workspace}/templates/hello.yaml +0 -0
  237. /package/{node_modules/@mytools/core → manual/packages/fst-workspace}/templates/python-check.yaml +0 -0
  238. /package/{node_modules/@mytools/core → manual/packages/fst-workspace}/templates/system-check.yaml +0 -0
  239. /package/{node_modules/@mytools/core/src → manual/packages/sdk}/diagnostics.js +0 -0
  240. /package/{node_modules/@mytools/core/src → manual/packages/sdk}/schema-path.js +0 -0
  241. /package/{node_modules/@mytools/core/src → manual/packages/sdk}/validation.js +0 -0
  242. /package/node_modules/{yallist → tar/node_modules/yallist}/LICENSE.md +0 -0
  243. /package/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/index.d.ts +0 -0
  244. /package/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/index.d.ts.map +0 -0
  245. /package/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/index.js +0 -0
  246. /package/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/index.js.map +0 -0
  247. /package/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/package.json +0 -0
  248. /package/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/index.d.ts +0 -0
  249. /package/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/index.d.ts.map +0 -0
  250. /package/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/index.js +0 -0
  251. /package/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/index.js.map +0 -0
  252. /package/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/package.json +0 -0
  253. /package/node_modules/{minipass-flush/node_modules/minipass/node_modules/yallist → yallist}/LICENSE +0 -0
  254. /package/node_modules/{minipass-flush/node_modules/minipass/node_modules/yallist → yallist}/iterator.js +0 -0
  255. /package/node_modules/{minipass-flush/node_modules/minipass/node_modules/yallist → yallist}/yallist.js +0 -0
@@ -0,0 +1,90 @@
1
+ 'use strict';
2
+
3
+ var path = require('path');
4
+ var fs = require('fs');
5
+ var acorn = require('./acorn.js');
6
+
7
+ function _interopNamespaceDefault(e) {
8
+ var n = Object.create(null);
9
+ if (e) {
10
+ Object.keys(e).forEach(function (k) {
11
+ if (k !== 'default') {
12
+ var d = Object.getOwnPropertyDescriptor(e, k);
13
+ Object.defineProperty(n, k, d.get ? d : {
14
+ enumerable: true,
15
+ get: function () { return e[k]; }
16
+ });
17
+ }
18
+ });
19
+ }
20
+ n.default = e;
21
+ return Object.freeze(n);
22
+ }
23
+
24
+ var acorn__namespace = /*#__PURE__*/_interopNamespaceDefault(acorn);
25
+
26
+ var inputFilePaths = [], forceFileName = false, fileMode = false, silent = false, compact = false, tokenize = false;
27
+ var options = {};
28
+
29
+ function help(status) {
30
+ var print = (status === 0) ? console.log : console.error;
31
+ print("usage: " + path.basename(process.argv[1]) + " [--ecma3|--ecma5|--ecma6|--ecma7|--ecma8|--ecma9|...|--ecma2015|--ecma2016|--ecma2017|--ecma2018|...]");
32
+ print(" [--tokenize] [--locations] [--allow-hash-bang] [--allow-await-outside-function] [--compact] [--silent] [--module] [--help] [--] [<infile>...]");
33
+ process.exit(status);
34
+ }
35
+
36
+ for (var i = 2; i < process.argv.length; ++i) {
37
+ var arg = process.argv[i];
38
+ if (arg[0] !== "-" || arg === "-") { inputFilePaths.push(arg); }
39
+ else if (arg === "--") {
40
+ inputFilePaths.push.apply(inputFilePaths, process.argv.slice(i + 1));
41
+ forceFileName = true;
42
+ break
43
+ } else if (arg === "--locations") { options.locations = true; }
44
+ else if (arg === "--allow-hash-bang") { options.allowHashBang = true; }
45
+ else if (arg === "--allow-await-outside-function") { options.allowAwaitOutsideFunction = true; }
46
+ else if (arg === "--silent") { silent = true; }
47
+ else if (arg === "--compact") { compact = true; }
48
+ else if (arg === "--help") { help(0); }
49
+ else if (arg === "--tokenize") { tokenize = true; }
50
+ else if (arg === "--module") { options.sourceType = "module"; }
51
+ else {
52
+ var match = arg.match(/^--ecma(\d+)$/);
53
+ if (match)
54
+ { options.ecmaVersion = +match[1]; }
55
+ else
56
+ { help(1); }
57
+ }
58
+ }
59
+
60
+ function run(codeList) {
61
+ var result = [], fileIdx = 0;
62
+ try {
63
+ codeList.forEach(function (code, idx) {
64
+ fileIdx = idx;
65
+ if (!tokenize) {
66
+ result = acorn__namespace.parse(code, options);
67
+ options.program = result;
68
+ } else {
69
+ var tokenizer = acorn__namespace.tokenizer(code, options), token;
70
+ do {
71
+ token = tokenizer.getToken();
72
+ result.push(token);
73
+ } while (token.type !== acorn__namespace.tokTypes.eof)
74
+ }
75
+ });
76
+ } catch (e) {
77
+ console.error(fileMode ? e.message.replace(/\(\d+:\d+\)$/, function (m) { return m.slice(0, 1) + inputFilePaths[fileIdx] + " " + m.slice(1); }) : e.message);
78
+ process.exit(1);
79
+ }
80
+ if (!silent) { console.log(JSON.stringify(result, function (_, value) { return typeof value === "bigint" ? null : value; }, compact ? null : 2)); }
81
+ }
82
+
83
+ if (fileMode = inputFilePaths.length && (forceFileName || !inputFilePaths.includes("-") || inputFilePaths.length !== 1)) {
84
+ run(inputFilePaths.map(function (path) { return fs.readFileSync(path, "utf8"); }));
85
+ } else {
86
+ var code = "";
87
+ process.stdin.resume();
88
+ process.stdin.on("data", function (chunk) { return code += chunk; });
89
+ process.stdin.on("end", function () { return run([code]); });
90
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "acorn",
3
+ "description": "ECMAScript parser",
4
+ "homepage": "https://github.com/acornjs/acorn",
5
+ "main": "dist/acorn.js",
6
+ "types": "dist/acorn.d.ts",
7
+ "module": "dist/acorn.mjs",
8
+ "exports": {
9
+ ".": [
10
+ {
11
+ "import": "./dist/acorn.mjs",
12
+ "require": "./dist/acorn.js",
13
+ "default": "./dist/acorn.js"
14
+ },
15
+ "./dist/acorn.js"
16
+ ],
17
+ "./package.json": "./package.json"
18
+ },
19
+ "version": "8.19.0",
20
+ "engines": {
21
+ "node": ">=0.4.0"
22
+ },
23
+ "maintainers": [
24
+ {
25
+ "name": "Marijn Haverbeke",
26
+ "email": "marijn@haverbeke.berlin",
27
+ "web": "https://marijnhaverbeke.nl"
28
+ },
29
+ {
30
+ "name": "Ingvar Stepanyan",
31
+ "email": "me@rreverser.com",
32
+ "web": "https://rreverser.com/"
33
+ },
34
+ {
35
+ "name": "Adrian Heine",
36
+ "web": "http://adrianheine.de"
37
+ }
38
+ ],
39
+ "repository": {
40
+ "type": "git",
41
+ "url": "git+https://github.com/acornjs/acorn.git"
42
+ },
43
+ "license": "MIT",
44
+ "scripts": {
45
+ "prepare": "cd ..; npm run build:main"
46
+ },
47
+ "bin": {
48
+ "acorn": "bin/acorn"
49
+ }
50
+ }
@@ -8,14 +8,11 @@ one is mine.
8
8
  For when an array would be too big, and a Map can't be iterated in
9
9
  reverse order.
10
10
 
11
-
12
- [![Build Status](https://travis-ci.org/isaacs/yallist.svg?branch=master)](https://travis-ci.org/isaacs/yallist) [![Coverage Status](https://coveralls.io/repos/isaacs/yallist/badge.svg?service=github)](https://coveralls.io/github/isaacs/yallist)
13
-
14
11
  ## basic usage
15
12
 
16
- ```javascript
17
- var yallist = require('yallist')
18
- var myList = yallist.create([1, 2, 3])
13
+ ```js
14
+ import { Yallist } from 'yallist'
15
+ var myList = new Yallist([1, 2, 3])
19
16
  myList.push('foo')
20
17
  myList.unshift('bar')
21
18
  // of course pop() and shift() are there, too
@@ -141,6 +138,10 @@ Just like Array.slice, but returns a new Yallist.
141
138
 
142
139
  Just like yallist.slice, but the result is returned in reverse.
143
140
 
141
+ #### yallist.splice(start, deleteCount, ...)
142
+
143
+ Like Array.splice.
144
+
144
145
  #### yallist.toArray()
145
146
 
146
147
  Create an array representation of the list.
@@ -181,7 +182,7 @@ doesn't belong to it.
181
182
 
182
183
  The class that holds the data and is actually the list.
183
184
 
184
- Call with `var n = new Node(value, previousNode, nextNode)`
185
+ Call with `const n = new Node(value, previousNode, nextNode)`
185
186
 
186
187
  Note that if you do direct operations on Nodes themselves, it's very
187
188
  easy to get into weird states where the list is broken. Be careful :)
@@ -0,0 +1,68 @@
1
+ {
2
+ "name": "yallist",
3
+ "version": "5.0.0",
4
+ "description": "Yet Another Linked List",
5
+ "files": [
6
+ "dist"
7
+ ],
8
+ "devDependencies": {
9
+ "prettier": "^3.2.5",
10
+ "tap": "^18.7.2",
11
+ "tshy": "^1.13.1",
12
+ "typedoc": "^0.25.13"
13
+ },
14
+ "scripts": {
15
+ "preversion": "npm test",
16
+ "postversion": "npm publish",
17
+ "prepublishOnly": "git push origin --follow-tags",
18
+ "prepare": "tshy",
19
+ "pretest": "npm run prepare",
20
+ "presnap": "npm run prepare",
21
+ "test": "tap",
22
+ "snap": "tap",
23
+ "format": "prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache",
24
+ "typedoc": "typedoc"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/isaacs/yallist.git"
29
+ },
30
+ "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
31
+ "license": "BlueOak-1.0.0",
32
+ "tshy": {
33
+ "exports": {
34
+ "./package.json": "./package.json",
35
+ ".": "./src/index.ts"
36
+ }
37
+ },
38
+ "exports": {
39
+ "./package.json": "./package.json",
40
+ ".": {
41
+ "import": {
42
+ "types": "./dist/esm/index.d.ts",
43
+ "default": "./dist/esm/index.js"
44
+ },
45
+ "require": {
46
+ "types": "./dist/commonjs/index.d.ts",
47
+ "default": "./dist/commonjs/index.js"
48
+ }
49
+ }
50
+ },
51
+ "main": "./dist/commonjs/index.js",
52
+ "types": "./dist/commonjs/index.d.ts",
53
+ "type": "module",
54
+ "prettier": {
55
+ "semi": false,
56
+ "printWidth": 70,
57
+ "tabWidth": 2,
58
+ "useTabs": false,
59
+ "singleQuote": true,
60
+ "jsxSingleQuote": false,
61
+ "bracketSameLine": true,
62
+ "arrowParens": "avoid",
63
+ "endOfLine": "lf"
64
+ },
65
+ "engines": {
66
+ "node": ">=18"
67
+ }
68
+ }
@@ -8,11 +8,14 @@ one is mine.
8
8
  For when an array would be too big, and a Map can't be iterated in
9
9
  reverse order.
10
10
 
11
+
12
+ [![Build Status](https://travis-ci.org/isaacs/yallist.svg?branch=master)](https://travis-ci.org/isaacs/yallist) [![Coverage Status](https://coveralls.io/repos/isaacs/yallist/badge.svg?service=github)](https://coveralls.io/github/isaacs/yallist)
13
+
11
14
  ## basic usage
12
15
 
13
- ```js
14
- import { Yallist } from 'yallist'
15
- var myList = new Yallist([1, 2, 3])
16
+ ```javascript
17
+ var yallist = require('yallist')
18
+ var myList = yallist.create([1, 2, 3])
16
19
  myList.push('foo')
17
20
  myList.unshift('bar')
18
21
  // of course pop() and shift() are there, too
@@ -138,10 +141,6 @@ Just like Array.slice, but returns a new Yallist.
138
141
 
139
142
  Just like yallist.slice, but the result is returned in reverse.
140
143
 
141
- #### yallist.splice(start, deleteCount, ...)
142
-
143
- Like Array.splice.
144
-
145
144
  #### yallist.toArray()
146
145
 
147
146
  Create an array representation of the list.
@@ -182,7 +181,7 @@ doesn't belong to it.
182
181
 
183
182
  The class that holds the data and is actually the list.
184
183
 
185
- Call with `const n = new Node(value, previousNode, nextNode)`
184
+ Call with `var n = new Node(value, previousNode, nextNode)`
186
185
 
187
186
  Note that if you do direct operations on Nodes themselves, it's very
188
187
  easy to get into weird states where the list is broken. Be careful :)
@@ -1,68 +1,29 @@
1
1
  {
2
2
  "name": "yallist",
3
- "version": "5.0.0",
3
+ "version": "4.0.0",
4
4
  "description": "Yet Another Linked List",
5
+ "main": "yallist.js",
6
+ "directories": {
7
+ "test": "test"
8
+ },
5
9
  "files": [
6
- "dist"
10
+ "yallist.js",
11
+ "iterator.js"
7
12
  ],
13
+ "dependencies": {},
8
14
  "devDependencies": {
9
- "prettier": "^3.2.5",
10
- "tap": "^18.7.2",
11
- "tshy": "^1.13.1",
12
- "typedoc": "^0.25.13"
15
+ "tap": "^12.1.0"
13
16
  },
14
17
  "scripts": {
18
+ "test": "tap test/*.js --100",
15
19
  "preversion": "npm test",
16
20
  "postversion": "npm publish",
17
- "prepublishOnly": "git push origin --follow-tags",
18
- "prepare": "tshy",
19
- "pretest": "npm run prepare",
20
- "presnap": "npm run prepare",
21
- "test": "tap",
22
- "snap": "tap",
23
- "format": "prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache",
24
- "typedoc": "typedoc"
21
+ "postpublish": "git push origin --all; git push origin --tags"
25
22
  },
26
23
  "repository": {
27
24
  "type": "git",
28
25
  "url": "git+https://github.com/isaacs/yallist.git"
29
26
  },
30
27
  "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
31
- "license": "BlueOak-1.0.0",
32
- "tshy": {
33
- "exports": {
34
- "./package.json": "./package.json",
35
- ".": "./src/index.ts"
36
- }
37
- },
38
- "exports": {
39
- "./package.json": "./package.json",
40
- ".": {
41
- "import": {
42
- "types": "./dist/esm/index.d.ts",
43
- "default": "./dist/esm/index.js"
44
- },
45
- "require": {
46
- "types": "./dist/commonjs/index.d.ts",
47
- "default": "./dist/commonjs/index.js"
48
- }
49
- }
50
- },
51
- "main": "./dist/commonjs/index.js",
52
- "types": "./dist/commonjs/index.d.ts",
53
- "type": "module",
54
- "prettier": {
55
- "semi": false,
56
- "printWidth": 70,
57
- "tabWidth": 2,
58
- "useTabs": false,
59
- "singleQuote": true,
60
- "jsxSingleQuote": false,
61
- "bracketSameLine": true,
62
- "arrowParens": "avoid",
63
- "endOfLine": "lf"
64
- },
65
- "engines": {
66
- "node": ">=18"
67
- }
28
+ "license": "ISC"
68
29
  }