llmz 0.8.0 → 1.0.1

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 (224) hide show
  1. package/DOCS.md +230 -1796
  2. package/ERRORS.md +98 -0
  3. package/README.md +96 -548
  4. package/dist/chat/chat.d.ts +63 -0
  5. package/dist/chat/component.d.ts +31 -0
  6. package/dist/chat/component.default.d.ts +58 -0
  7. package/dist/chat/response.d.ts +15 -0
  8. package/dist/compiler/compiler.d.ts +2 -7
  9. package/dist/compiler/plugins/dynamic-code.d.ts +7 -0
  10. package/dist/compiler/plugins/replace-comment.d.ts +2 -3
  11. package/dist/compiler/plugins/return-async.d.ts +5 -4
  12. package/dist/compiler/plugins/termination.d.ts +8 -0
  13. package/dist/compiler/plugins/tool-resolution.d.ts +4 -0
  14. package/dist/compiler/plugins/variable-extraction.d.ts +2 -8
  15. package/dist/component-BpMVZYOa.cjs +649 -0
  16. package/dist/component-C27qu6Zv.js +614 -0
  17. package/dist/context.d.ts +74 -385
  18. package/dist/custom-client-BDkgBR2w.js +1631 -0
  19. package/dist/custom-client-MytucGI-.cjs +1708 -0
  20. package/dist/custom-client.d.ts +12 -2
  21. package/dist/errors/catalog.d.ts +287 -0
  22. package/dist/errors/hooks.d.ts +2 -0
  23. package/dist/errors-H4JJFH3S.js +620 -0
  24. package/dist/errors-IhnTKUp7.cjs +871 -0
  25. package/dist/errors.d.ts +18 -36
  26. package/dist/execute-BYI_U5sR.js +1943 -0
  27. package/dist/execute-DLas4V2n.cjs +1944 -0
  28. package/dist/{exit-DUM96DN1.cjs → exit-BUgJ5qi5.cjs} +38 -28
  29. package/dist/{exit-CDdxDBRT.js → exit-CPNk3vbz.js} +37 -27
  30. package/dist/exit.d.ts +19 -16
  31. package/dist/index.cjs +181 -999
  32. package/dist/index.d.ts +25 -28
  33. package/dist/index.js +141 -974
  34. package/dist/index.workerd.js +7725 -9531
  35. package/dist/inspect.d.ts +19 -3
  36. package/dist/inspection.d.ts +38 -0
  37. package/dist/native-Bm6L9zOb.cjs +212 -0
  38. package/dist/native-DvTH9vFe.js +177 -0
  39. package/dist/objects.d.ts +2 -57
  40. package/dist/prompts/native.d.ts +2 -0
  41. package/dist/prompts/prompt.d.ts +10 -98
  42. package/dist/quickjs-variant-DJwYDSsb.cjs +1073 -0
  43. package/dist/quickjs-variant-DlPi9-Sx.js +984 -0
  44. package/dist/result.d.ts +30 -861
  45. package/dist/runtime/execute.d.ts +3 -2
  46. package/dist/runtime/execution-activity.d.ts +11 -0
  47. package/dist/runtime/execution-activity.test.d.ts +1 -0
  48. package/dist/runtime/execution-diagnostics.d.ts +11 -0
  49. package/dist/runtime/execution-diagnostics.test.d.ts +1 -0
  50. package/dist/runtime/execution-report.d.ts +48 -0
  51. package/dist/runtime/execution-report.test.d.ts +1 -0
  52. package/dist/runtime/execution-safety.test.d.ts +1 -0
  53. package/dist/runtime/exit-control-flow.test.d.ts +1 -0
  54. package/dist/runtime/fixtures/chat.d.ts +8 -0
  55. package/dist/runtime/fixtures/long-search.d.ts +19 -0
  56. package/dist/runtime/fixtures/long-search.test.d.ts +1 -0
  57. package/dist/runtime/fixtures/native-client.d.ts +33 -0
  58. package/dist/runtime/fixtures/protocol-languages.d.ts +74 -0
  59. package/dist/runtime/generate.d.ts +23 -27
  60. package/dist/runtime/generate.test.d.ts +1 -0
  61. package/dist/runtime/hook-provenance.test.d.ts +1 -0
  62. package/dist/runtime/inspection-hook.test.d.ts +1 -0
  63. package/dist/runtime/inspection-values.d.ts +14 -0
  64. package/dist/runtime/inspection-values.test.d.ts +1 -0
  65. package/dist/runtime/interruption-control-flow.test.d.ts +1 -0
  66. package/dist/runtime/interruption-settings.test.d.ts +1 -0
  67. package/dist/runtime/javascript-api.d.ts +59 -0
  68. package/dist/runtime/javascript-api.test.d.ts +1 -0
  69. package/dist/runtime/native-review.test.d.ts +1 -0
  70. package/dist/runtime/native-tools.d.ts +18 -0
  71. package/dist/runtime/native-tools.test.d.ts +1 -0
  72. package/dist/runtime/object-memory.test.d.ts +1 -0
  73. package/dist/runtime/protocol-adherence.test.d.ts +1 -0
  74. package/dist/runtime/single-tool.test.d.ts +1 -0
  75. package/dist/runtime/token-budget.d.ts +22 -0
  76. package/dist/runtime/token-budget.test.d.ts +1 -0
  77. package/dist/runtime/tool-wrapper.d.ts +4 -5
  78. package/dist/runtime/traces.test.d.ts +1 -0
  79. package/dist/runtime/truncation.test.d.ts +1 -0
  80. package/dist/runtime/types.d.ts +41 -36
  81. package/dist/runtime/variable-recovery.test.d.ts +1 -0
  82. package/dist/runtime/vm-context.d.ts +6 -1
  83. package/dist/runtime/worker-completion.test.d.ts +1 -0
  84. package/dist/runtime-names.d.ts +4 -0
  85. package/dist/schema-Aer_W7Al.js +45 -0
  86. package/dist/schema-DBkjo0b7.cjs +68 -0
  87. package/dist/schema.d.ts +10 -0
  88. package/dist/schema.test.d.ts +1 -0
  89. package/dist/session/compactor.d.ts +51 -0
  90. package/dist/session/compactor.test.d.ts +1 -0
  91. package/dist/session/history.d.ts +36 -0
  92. package/dist/session/history.test.d.ts +1 -0
  93. package/dist/session/json.d.ts +3 -0
  94. package/dist/session/json.test.d.ts +1 -0
  95. package/dist/session/memory-codec.d.ts +9 -0
  96. package/dist/session/memory-codec.test.d.ts +1 -0
  97. package/dist/session/memory-render.d.ts +15 -0
  98. package/dist/session/memory-render.test.d.ts +1 -0
  99. package/dist/session/memory.d.ts +112 -0
  100. package/dist/session/memory.test.d.ts +1 -0
  101. package/dist/session/messages.d.ts +17 -0
  102. package/dist/session/messages.test.d.ts +1 -0
  103. package/dist/session/serialization.d.ts +34 -0
  104. package/dist/session/serialization.test.d.ts +1 -0
  105. package/dist/session/session-memory.test.d.ts +1 -0
  106. package/dist/session/session.d.ts +117 -0
  107. package/dist/session/session.test.d.ts +1 -0
  108. package/dist/{transcript.d.ts → session/transcript.d.ts} +4 -8
  109. package/dist/session/transcript.test.d.ts +1 -0
  110. package/dist/{tool-Bv8N4IPj.js → tool--gK91eez.js} +144 -92
  111. package/dist/{tool-Dy6AJpJH.cjs → tool-Da_F-N-5.cjs} +146 -94
  112. package/dist/tool.d.ts +25 -17
  113. package/dist/truncate-BSoH2-nY.js +79 -0
  114. package/dist/truncate-nV3Mxr6-.cjs +102 -0
  115. package/dist/truncate.d.ts +24 -0
  116. package/dist/truncate.test.d.ts +1 -0
  117. package/dist/types.d.ts +27 -9
  118. package/dist/{typings-3lsqCbkn.cjs → typings-C1ihexWE.cjs} +38 -193
  119. package/dist/{typings-CrBa7Tyy.js → typings-D9_aC8aq.js} +38 -175
  120. package/dist/typings-formatter.d.ts +1 -1
  121. package/dist/typings.d.ts +3 -0
  122. package/dist/{uniq-BYQ7GWwb.js → uniq-DfUeSNaX.js} +2 -2
  123. package/dist/{uniq-G872RWmE.cjs → uniq-DiXgysNV.cjs} +6 -18
  124. package/dist/{_baseIteratee-P_firB7b.js → utils-BOFzb8Ok.js} +1134 -16
  125. package/dist/{_baseIteratee-CF4qP2a8.cjs → utils-CTlsXvdj.cjs} +1281 -84
  126. package/dist/vm/drivers/node.d.ts +1 -1
  127. package/dist/vm/drivers/quickjs.d.ts +1 -1
  128. package/dist/vm/errors.d.ts +4 -4
  129. package/dist/vm/index.d.ts +3 -4
  130. package/dist/vm/instrument.d.ts +14 -6
  131. package/dist/vm/member-proxy.d.ts +4 -0
  132. package/dist/vm/member-proxy.test.d.ts +1 -0
  133. package/dist/vm/memory.test.d.ts +1 -0
  134. package/dist/vm/return-semantics.test.d.ts +1 -0
  135. package/dist/vm/types.d.ts +18 -3
  136. package/dist/{vm-BLsHw1da.js → vm-8jxt8PTK.js} +1162 -180
  137. package/dist/{vm-D6s1zF6M.cjs → vm-XuVPuW3Y.cjs} +1195 -207
  138. package/package.json +13 -6
  139. package/dist/_baseForOwn-BfWDTL8L.cjs +0 -53
  140. package/dist/_baseForOwn-CFhWe_W6.js +0 -48
  141. package/dist/_getPrototype-CG7Dxrrz.js +0 -6
  142. package/dist/_getPrototype-DQDlNVVM.cjs +0 -10
  143. package/dist/_overArg-C5Hy7oCi.cjs +0 -196
  144. package/dist/_overArg-CRYbj1NH.js +0 -155
  145. package/dist/chat.d.ts +0 -401
  146. package/dist/common-DdArNQhl.cjs +0 -643
  147. package/dist/common-pgJjFu2Y.js +0 -596
  148. package/dist/compiler/plugins/track-tool-calls.d.ts +0 -33
  149. package/dist/compiler-C-OI9sim.cjs +0 -547
  150. package/dist/compiler-CW1VjQsn.js +0 -473
  151. package/dist/component-BXS8vAwO.cjs +0 -73
  152. package/dist/component-Dq7ZLdvy.js +0 -44
  153. package/dist/component.d.ts +0 -88
  154. package/dist/component.default.d.ts +0 -268
  155. package/dist/custom-client-2V9lmzUf.js +0 -2655
  156. package/dist/custom-client-HkM1Sdzv.cjs +0 -2726
  157. package/dist/dual-modes-Cb7ThvoV.cjs +0 -3020
  158. package/dist/dual-modes-Cy0_W4O2.js +0 -2930
  159. package/dist/errors-C962uJdS.cjs +0 -220
  160. package/dist/errors-Cg1G0Awu.js +0 -161
  161. package/dist/example.d.ts +0 -45
  162. package/dist/execute-Aw4cbIx-.js +0 -1080
  163. package/dist/execute-COIHOIKR.cjs +0 -1081
  164. package/dist/exit-parser.d.ts +0 -39
  165. package/dist/handlers.d.ts +0 -10
  166. package/dist/hoist.d.ts +0 -2
  167. package/dist/isEmpty-BhJRCqIF.js +0 -52
  168. package/dist/isEmpty-LY533Wmh.cjs +0 -57
  169. package/dist/jsx-B0iYyvfr.js +0 -100
  170. package/dist/jsx-D5Y2cPo-.cjs +0 -129
  171. package/dist/jsx.d.ts +0 -11
  172. package/dist/message-stream/index.d.ts +0 -9
  173. package/dist/message-stream/instructions.d.ts +0 -22
  174. package/dist/message-stream/normalizer.d.ts +0 -21
  175. package/dist/message-stream/parser.d.ts +0 -83
  176. package/dist/message-stream/registry.d.ts +0 -14
  177. package/dist/message-stream/replayable.d.ts +0 -27
  178. package/dist/message-stream/sanitize.d.ts +0 -10
  179. package/dist/message-stream/stream.d.ts +0 -54
  180. package/dist/message-stream/types.d.ts +0 -96
  181. package/dist/message-stream/validator.d.ts +0 -23
  182. package/dist/prompts/chat-mode/system.d.ts +0 -2
  183. package/dist/prompts/chat-mode/system.md.d.ts +0 -2
  184. package/dist/prompts/chat-mode/user.d.ts +0 -2
  185. package/dist/prompts/chat-mode/user.md.d.ts +0 -2
  186. package/dist/prompts/common.d.ts +0 -6
  187. package/dist/prompts/dual-modes.d.ts +0 -2
  188. package/dist/prompts/execution-history.d.ts +0 -6
  189. package/dist/prompts/execution-state.d.ts +0 -3
  190. package/dist/prompts/protocol.d.ts +0 -18
  191. package/dist/prompts/worker-mode/system.d.ts +0 -2
  192. package/dist/prompts/worker-mode/system.md.d.ts +0 -2
  193. package/dist/prompts/worker-mode/user.d.ts +0 -2
  194. package/dist/prompts/worker-mode/user.md.d.ts +0 -2
  195. package/dist/quickjs-variant-BYhMBpwU.js +0 -45
  196. package/dist/quickjs-variant-CsIwTVFC.cjs +0 -56
  197. package/dist/rolldown-runtime-EAsCxrDo.js +0 -14
  198. package/dist/runtime/interpret-result.d.ts +0 -22
  199. package/dist/snapshots.d.ts +0 -249
  200. package/dist/stack-traces-BIE_5Xwf.js +0 -21
  201. package/dist/stack-traces-ntw_qhoy.cjs +0 -26
  202. package/dist/truncator-CLkouTCO.cjs +0 -276
  203. package/dist/truncator-DZqEqnpD.js +0 -253
  204. package/dist/truncator.d.ts +0 -118
  205. package/dist/utils-3ESwP3yg.cjs +0 -1075
  206. package/dist/utils-UBeAFeEI.js +0 -950
  207. /package/dist/{citations.d.ts → chat/citations.d.ts} +0 -0
  208. /package/dist/{citations.test.d.ts → chat/citations.test.d.ts} +0 -0
  209. /package/dist/{component.default.test.d.ts → chat/component.default.test.d.ts} +0 -0
  210. /package/dist/{compiler/plugins/track-tool-calls.test.d.ts → chat/component.test.d.ts} +0 -0
  211. /package/dist/{example.test.d.ts → chat/response.test.d.ts} +0 -0
  212. /package/dist/{exit-parser.test.d.ts → compiler/plugins/dynamic-code.test.d.ts} +0 -0
  213. /package/dist/{handlers.test.d.ts → compiler/plugins/tool-resolution.test.d.ts} +0 -0
  214. /package/dist/{hoist.test.d.ts → errors/catalog.test.d.ts} +0 -0
  215. /package/dist/{message-stream/instructions.test.d.ts → exit.test.d.ts} +0 -0
  216. /package/dist/{message-stream/normalizer.test.d.ts → inspection.test.d.ts} +0 -0
  217. /package/dist/{message-stream/parser.test.d.ts → prompts/native.test.d.ts} +0 -0
  218. /package/dist/{message-stream/stream.test.d.ts → result.test.d.ts} +0 -0
  219. /package/dist/{message-stream/validator.test.d.ts → runtime/chat-delivery.test.d.ts} +0 -0
  220. /package/dist/{prompts/common.test.d.ts → runtime/citations.test.d.ts} +0 -0
  221. /package/dist/{prompts/protocol.test.d.ts → runtime/compatibility-regressions.test.d.ts} +0 -0
  222. /package/dist/runtime/{interpret-result.test.d.ts → context-registration.test.d.ts} +0 -0
  223. /package/dist/{transcript.test.d.ts → runtime/error-recovery.test.d.ts} +0 -0
  224. /package/dist/{truncator.test.d.ts → runtime/errors.test.d.ts} +0 -0
package/package.json CHANGED
@@ -2,10 +2,11 @@
2
2
  "name": "llmz",
3
3
  "type": "module",
4
4
  "description": "LLMz - An LLM-native Typescript VM built on top of Zui",
5
- "version": "0.8.0",
5
+ "version": "1.0.1",
6
6
  "files": [
7
7
  "dist",
8
- "DOCS.md"
8
+ "DOCS.md",
9
+ "ERRORS.md"
9
10
  ],
10
11
  "types": "./dist/index.d.ts",
11
12
  "main": "./dist/index.cjs",
@@ -22,15 +23,21 @@
22
23
  "url": "https://github.com/botpress/botpress"
23
24
  },
24
25
  "scripts": {
25
- "generate": "pnpm build:markdown",
26
26
  "build": "tsdown && pnpm tsc --emitDeclarationOnly --noCheck",
27
- "check:type": "tsc --noEmit",
27
+ "check:type": "tsc --noEmit && pnpm check:examples",
28
+ "check:e2e:type": "tsc -p tsconfig.e2e.json",
29
+ "check:docs": "node scripts/check-docs.mjs",
28
30
  "watch": "tsdown --watch",
29
31
  "test": "vitest --run",
30
- "test:e2e": "vitest run --config vitest.e2e.config.ts",
32
+ "test:e2e": "pnpm check:e2e:type && vitest run --config vitest.e2e.config.ts",
31
33
  "test:e2e:update": "vitest -u run --config vitest.e2e.config.ts",
32
34
  "test:e2e:watch": "vitest --config vitest.e2e.config.ts",
33
- "build:markdown": "node --loader ts-node/esm ./scripts/compile-markdown.mts"
35
+ "check:format": "oxfmt --check .",
36
+ "fix:format": "oxfmt .",
37
+ "check:lint": "oxlint -c .oxlintrc.json src",
38
+ "fix:lint": "oxlint -c .oxlintrc.json --fix src",
39
+ "check:bplint": "pnpm check:lint",
40
+ "check:examples": "tsc -p examples/tsconfig.json"
34
41
  },
35
42
  "keywords": [],
36
43
  "author": "",
@@ -1,53 +0,0 @@
1
- const require__baseIteratee = require("./_baseIteratee-CF4qP2a8.cjs");
2
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.js
3
- /**
4
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
5
- *
6
- * @private
7
- * @param {boolean} [fromRight] Specify iterating from right to left.
8
- * @returns {Function} Returns the new base function.
9
- */
10
- function createBaseFor(fromRight) {
11
- return function(object, iteratee, keysFunc) {
12
- var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
13
- while (length--) {
14
- var key = props[fromRight ? length : ++index];
15
- if (iteratee(iterable[key], key, iterable) === false) break;
16
- }
17
- return object;
18
- };
19
- }
20
- //#endregion
21
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.js
22
- /**
23
- * The base implementation of `baseForOwn` which iterates over `object`
24
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
25
- * Iteratee functions may exit iteration early by explicitly returning `false`.
26
- *
27
- * @private
28
- * @param {Object} object The object to iterate over.
29
- * @param {Function} iteratee The function invoked per iteration.
30
- * @param {Function} keysFunc The function to get the keys of `object`.
31
- * @returns {Object} Returns `object`.
32
- */
33
- var baseFor = createBaseFor();
34
- //#endregion
35
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseForOwn.js
36
- /**
37
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
38
- *
39
- * @private
40
- * @param {Object} object The object to iterate over.
41
- * @param {Function} iteratee The function invoked per iteration.
42
- * @returns {Object} Returns `object`.
43
- */
44
- function baseForOwn(object, iteratee) {
45
- return object && baseFor(object, iteratee, require__baseIteratee.keys);
46
- }
47
- //#endregion
48
- Object.defineProperty(exports, "baseForOwn", {
49
- enumerable: true,
50
- get: function() {
51
- return baseForOwn;
52
- }
53
- });
@@ -1,48 +0,0 @@
1
- import { x as keys } from "./_baseIteratee-P_firB7b.js";
2
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.js
3
- /**
4
- * Creates a base function for methods like `_.forIn` and `_.forOwn`.
5
- *
6
- * @private
7
- * @param {boolean} [fromRight] Specify iterating from right to left.
8
- * @returns {Function} Returns the new base function.
9
- */
10
- function createBaseFor(fromRight) {
11
- return function(object, iteratee, keysFunc) {
12
- var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
13
- while (length--) {
14
- var key = props[fromRight ? length : ++index];
15
- if (iteratee(iterable[key], key, iterable) === false) break;
16
- }
17
- return object;
18
- };
19
- }
20
- //#endregion
21
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.js
22
- /**
23
- * The base implementation of `baseForOwn` which iterates over `object`
24
- * properties returned by `keysFunc` and invokes `iteratee` for each property.
25
- * Iteratee functions may exit iteration early by explicitly returning `false`.
26
- *
27
- * @private
28
- * @param {Object} object The object to iterate over.
29
- * @param {Function} iteratee The function invoked per iteration.
30
- * @param {Function} keysFunc The function to get the keys of `object`.
31
- * @returns {Object} Returns `object`.
32
- */
33
- var baseFor = createBaseFor();
34
- //#endregion
35
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseForOwn.js
36
- /**
37
- * The base implementation of `_.forOwn` without support for iteratee shorthands.
38
- *
39
- * @private
40
- * @param {Object} object The object to iterate over.
41
- * @param {Function} iteratee The function invoked per iteration.
42
- * @returns {Object} Returns `object`.
43
- */
44
- function baseForOwn(object, iteratee) {
45
- return object && baseFor(object, iteratee, keys);
46
- }
47
- //#endregion
48
- export { baseForOwn as t };
@@ -1,6 +0,0 @@
1
- import { t as overArg } from "./_overArg-CRYbj1NH.js";
2
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.js
3
- /** Built-in value references. */
4
- var getPrototype = overArg(Object.getPrototypeOf, Object);
5
- //#endregion
6
- export { getPrototype as t };
@@ -1,10 +0,0 @@
1
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.js
2
- /** Built-in value references. */
3
- var getPrototype = require("./_overArg-C5Hy7oCi.cjs").overArg(Object.getPrototypeOf, Object);
4
- //#endregion
5
- Object.defineProperty(exports, "getPrototype", {
6
- enumerable: true,
7
- get: function() {
8
- return getPrototype;
9
- }
10
- });
@@ -1,196 +0,0 @@
1
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
2
- /** Detect free variable `global` from Node.js. */
3
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
4
- //#endregion
5
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js
6
- /** Detect free variable `self`. */
7
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
8
- /** Used as a reference to the global object. */
9
- var root = freeGlobal || freeSelf || Function("return this")();
10
- //#endregion
11
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js
12
- /** Built-in value references. */
13
- var Symbol = root.Symbol;
14
- //#endregion
15
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js
16
- /** Used for built-in method references. */
17
- var objectProto = Object.prototype;
18
- /** Used to check objects for own properties. */
19
- var hasOwnProperty = objectProto.hasOwnProperty;
20
- /**
21
- * Used to resolve the
22
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
23
- * of values.
24
- */
25
- var nativeObjectToString$1 = objectProto.toString;
26
- /** Built-in value references. */
27
- var symToStringTag$1 = Symbol ? Symbol.toStringTag : void 0;
28
- /**
29
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
30
- *
31
- * @private
32
- * @param {*} value The value to query.
33
- * @returns {string} Returns the raw `toStringTag`.
34
- */
35
- function getRawTag(value) {
36
- var isOwn = hasOwnProperty.call(value, symToStringTag$1), tag = value[symToStringTag$1];
37
- try {
38
- value[symToStringTag$1] = void 0;
39
- var unmasked = true;
40
- } catch (e) {}
41
- var result = nativeObjectToString$1.call(value);
42
- if (unmasked) {
43
- if (isOwn) value[symToStringTag$1] = tag;
44
- else delete value[symToStringTag$1];
45
- }
46
- return result;
47
- }
48
- //#endregion
49
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js
50
- /**
51
- * Used to resolve the
52
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
53
- * of values.
54
- */
55
- var nativeObjectToString = Object.prototype.toString;
56
- /**
57
- * Converts `value` to a string using `Object.prototype.toString`.
58
- *
59
- * @private
60
- * @param {*} value The value to convert.
61
- * @returns {string} Returns the converted string.
62
- */
63
- function objectToString(value) {
64
- return nativeObjectToString.call(value);
65
- }
66
- //#endregion
67
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js
68
- /** `Object#toString` result references. */
69
- var nullTag = "[object Null]";
70
- var undefinedTag = "[object Undefined]";
71
- /** Built-in value references. */
72
- var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
73
- /**
74
- * The base implementation of `getTag` without fallbacks for buggy environments.
75
- *
76
- * @private
77
- * @param {*} value The value to query.
78
- * @returns {string} Returns the `toStringTag`.
79
- */
80
- function baseGetTag(value) {
81
- if (value == null) return value === void 0 ? undefinedTag : nullTag;
82
- return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
83
- }
84
- //#endregion
85
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js
86
- /**
87
- * Checks if `value` is object-like. A value is object-like if it's not `null`
88
- * and has a `typeof` result of "object".
89
- *
90
- * @static
91
- * @memberOf _
92
- * @since 4.0.0
93
- * @category Lang
94
- * @param {*} value The value to check.
95
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
96
- * @example
97
- *
98
- * _.isObjectLike({});
99
- * // => true
100
- *
101
- * _.isObjectLike([1, 2, 3]);
102
- * // => true
103
- *
104
- * _.isObjectLike(_.noop);
105
- * // => false
106
- *
107
- * _.isObjectLike(null);
108
- * // => false
109
- */
110
- function isObjectLike(value) {
111
- return value != null && typeof value == "object";
112
- }
113
- //#endregion
114
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
115
- /**
116
- * Checks if `value` is classified as an `Array` object.
117
- *
118
- * @static
119
- * @memberOf _
120
- * @since 0.1.0
121
- * @category Lang
122
- * @param {*} value The value to check.
123
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
124
- * @example
125
- *
126
- * _.isArray([1, 2, 3]);
127
- * // => true
128
- *
129
- * _.isArray(document.body.children);
130
- * // => false
131
- *
132
- * _.isArray('abc');
133
- * // => false
134
- *
135
- * _.isArray(_.noop);
136
- * // => false
137
- */
138
- var isArray = Array.isArray;
139
- //#endregion
140
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.js
141
- /**
142
- * Creates a unary function that invokes `func` with its argument transformed.
143
- *
144
- * @private
145
- * @param {Function} func The function to wrap.
146
- * @param {Function} transform The argument transform.
147
- * @returns {Function} Returns the new function.
148
- */
149
- function overArg(func, transform) {
150
- return function(arg) {
151
- return func(transform(arg));
152
- };
153
- }
154
- //#endregion
155
- Object.defineProperty(exports, "Symbol", {
156
- enumerable: true,
157
- get: function() {
158
- return Symbol;
159
- }
160
- });
161
- Object.defineProperty(exports, "baseGetTag", {
162
- enumerable: true,
163
- get: function() {
164
- return baseGetTag;
165
- }
166
- });
167
- Object.defineProperty(exports, "freeGlobal", {
168
- enumerable: true,
169
- get: function() {
170
- return freeGlobal;
171
- }
172
- });
173
- Object.defineProperty(exports, "isArray", {
174
- enumerable: true,
175
- get: function() {
176
- return isArray;
177
- }
178
- });
179
- Object.defineProperty(exports, "isObjectLike", {
180
- enumerable: true,
181
- get: function() {
182
- return isObjectLike;
183
- }
184
- });
185
- Object.defineProperty(exports, "overArg", {
186
- enumerable: true,
187
- get: function() {
188
- return overArg;
189
- }
190
- });
191
- Object.defineProperty(exports, "root", {
192
- enumerable: true,
193
- get: function() {
194
- return root;
195
- }
196
- });
@@ -1,155 +0,0 @@
1
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
2
- /** Detect free variable `global` from Node.js. */
3
- var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
4
- //#endregion
5
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js
6
- /** Detect free variable `self`. */
7
- var freeSelf = typeof self == "object" && self && self.Object === Object && self;
8
- /** Used as a reference to the global object. */
9
- var root = freeGlobal || freeSelf || Function("return this")();
10
- //#endregion
11
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js
12
- /** Built-in value references. */
13
- var Symbol = root.Symbol;
14
- //#endregion
15
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js
16
- /** Used for built-in method references. */
17
- var objectProto = Object.prototype;
18
- /** Used to check objects for own properties. */
19
- var hasOwnProperty = objectProto.hasOwnProperty;
20
- /**
21
- * Used to resolve the
22
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
23
- * of values.
24
- */
25
- var nativeObjectToString$1 = objectProto.toString;
26
- /** Built-in value references. */
27
- var symToStringTag$1 = Symbol ? Symbol.toStringTag : void 0;
28
- /**
29
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
30
- *
31
- * @private
32
- * @param {*} value The value to query.
33
- * @returns {string} Returns the raw `toStringTag`.
34
- */
35
- function getRawTag(value) {
36
- var isOwn = hasOwnProperty.call(value, symToStringTag$1), tag = value[symToStringTag$1];
37
- try {
38
- value[symToStringTag$1] = void 0;
39
- var unmasked = true;
40
- } catch (e) {}
41
- var result = nativeObjectToString$1.call(value);
42
- if (unmasked) {
43
- if (isOwn) value[symToStringTag$1] = tag;
44
- else delete value[symToStringTag$1];
45
- }
46
- return result;
47
- }
48
- //#endregion
49
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js
50
- /**
51
- * Used to resolve the
52
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
53
- * of values.
54
- */
55
- var nativeObjectToString = Object.prototype.toString;
56
- /**
57
- * Converts `value` to a string using `Object.prototype.toString`.
58
- *
59
- * @private
60
- * @param {*} value The value to convert.
61
- * @returns {string} Returns the converted string.
62
- */
63
- function objectToString(value) {
64
- return nativeObjectToString.call(value);
65
- }
66
- //#endregion
67
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js
68
- /** `Object#toString` result references. */
69
- var nullTag = "[object Null]";
70
- var undefinedTag = "[object Undefined]";
71
- /** Built-in value references. */
72
- var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
73
- /**
74
- * The base implementation of `getTag` without fallbacks for buggy environments.
75
- *
76
- * @private
77
- * @param {*} value The value to query.
78
- * @returns {string} Returns the `toStringTag`.
79
- */
80
- function baseGetTag(value) {
81
- if (value == null) return value === void 0 ? undefinedTag : nullTag;
82
- return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
83
- }
84
- //#endregion
85
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js
86
- /**
87
- * Checks if `value` is object-like. A value is object-like if it's not `null`
88
- * and has a `typeof` result of "object".
89
- *
90
- * @static
91
- * @memberOf _
92
- * @since 4.0.0
93
- * @category Lang
94
- * @param {*} value The value to check.
95
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
96
- * @example
97
- *
98
- * _.isObjectLike({});
99
- * // => true
100
- *
101
- * _.isObjectLike([1, 2, 3]);
102
- * // => true
103
- *
104
- * _.isObjectLike(_.noop);
105
- * // => false
106
- *
107
- * _.isObjectLike(null);
108
- * // => false
109
- */
110
- function isObjectLike(value) {
111
- return value != null && typeof value == "object";
112
- }
113
- //#endregion
114
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js
115
- /**
116
- * Checks if `value` is classified as an `Array` object.
117
- *
118
- * @static
119
- * @memberOf _
120
- * @since 0.1.0
121
- * @category Lang
122
- * @param {*} value The value to check.
123
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
124
- * @example
125
- *
126
- * _.isArray([1, 2, 3]);
127
- * // => true
128
- *
129
- * _.isArray(document.body.children);
130
- * // => false
131
- *
132
- * _.isArray('abc');
133
- * // => false
134
- *
135
- * _.isArray(_.noop);
136
- * // => false
137
- */
138
- var isArray = Array.isArray;
139
- //#endregion
140
- //#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.js
141
- /**
142
- * Creates a unary function that invokes `func` with its argument transformed.
143
- *
144
- * @private
145
- * @param {Function} func The function to wrap.
146
- * @param {Function} transform The argument transform.
147
- * @returns {Function} Returns the new function.
148
- */
149
- function overArg(func, transform) {
150
- return function(arg) {
151
- return func(transform(arg));
152
- };
153
- }
154
- //#endregion
155
- export { Symbol as a, baseGetTag as i, isArray as n, root as o, isObjectLike as r, freeGlobal as s, overArg as t };