llmz 0.6.0 → 0.6.2
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.
- package/DOCS.md +1 -3
- package/dist/_baseForOwn-CFhWe_W6.js +48 -0
- package/dist/_baseForOwn-buOZDFbK.cjs +103 -0
- package/dist/_baseIteratee-CF4qP2a8.cjs +2377 -0
- package/dist/_baseIteratee-P_firB7b.js +2138 -0
- package/dist/_getPrototype-CG7Dxrrz.js +6 -0
- package/dist/_getPrototype-DQDlNVVM.cjs +10 -0
- package/dist/_overArg-C5Hy7oCi.cjs +196 -0
- package/dist/_overArg-CRYbj1NH.js +155 -0
- package/dist/citations.d.ts +11 -11
- package/dist/component-BwixNVH8.cjs +73 -0
- package/dist/component-DGG7d_Mz.js +44 -0
- package/dist/context.d.ts +8 -8
- package/dist/custom-client-BPmEoWKu.cjs +2618 -0
- package/dist/custom-client-NUoxrFQh.js +2547 -0
- package/dist/dual-modes-D_p-jedw.js +2750 -0
- package/dist/dual-modes-wAOAlaBS.cjs +2840 -0
- package/dist/errors-C962uJdS.cjs +220 -0
- package/dist/errors-Cg1G0Awu.js +161 -0
- package/dist/execute-BEaq3jkV.cjs +1003 -0
- package/dist/execute-DYvFRs54.js +1001 -0
- package/dist/exit-BGi0Kk0y.cjs +428 -0
- package/dist/exit-CDdxDBRT.js +417 -0
- package/dist/index.cjs +1786 -1489
- package/dist/index.d.ts +10 -9
- package/dist/index.js +1721 -1479
- package/dist/index.workerd.js +17534 -16875
- package/dist/isEmpty-BhJRCqIF.js +52 -0
- package/dist/isEmpty-LY533Wmh.cjs +57 -0
- package/dist/isPlainObject-CSxXVKCk.cjs +56 -0
- package/dist/isPlainObject-D39AzPO2.js +51 -0
- package/dist/jsx-BWvT6ukg.cjs +75 -0
- package/dist/jsx-CIgdGGVs.js +52 -0
- package/dist/jsx.d.ts +2 -2
- package/dist/prompts/chat-mode/system.md.d.ts +1 -1
- package/dist/prompts/chat-mode/user.md.d.ts +1 -1
- package/dist/prompts/worker-mode/system.md.d.ts +1 -1
- package/dist/prompts/worker-mode/user.md.d.ts +1 -1
- package/dist/quickjs-variant-BYhMBpwU.js +45 -0
- package/dist/quickjs-variant-CsIwTVFC.cjs +56 -0
- package/dist/quickjs-variant.workerd.d.ts +1 -1
- package/dist/result.d.ts +12 -12
- package/dist/rolldown-runtime-EAsCxrDo.js +14 -0
- package/dist/runtime/interpret-result.d.ts +1 -1
- package/dist/snapshots.d.ts +5 -5
- package/dist/stack-traces-BIE_5Xwf.js +21 -0
- package/dist/stack-traces-ntw_qhoy.cjs +26 -0
- package/dist/tool-CAo-BQHs.js +643 -0
- package/dist/tool-DdPZb0JW.cjs +654 -0
- package/dist/tool.d.ts +3 -3
- package/dist/truncator-B6aaJaN1.cjs +276 -0
- package/dist/truncator-DZqEqnpD.js +253 -0
- package/dist/typings-BwAz_TM9.cjs +784 -0
- package/dist/typings-CrBa7Tyy.js +743 -0
- package/dist/uniq-BYQ7GWwb.js +183 -0
- package/dist/uniq-G872RWmE.cjs +200 -0
- package/dist/utils-UBeAFeEI.js +950 -0
- package/dist/utils-ZpJm00ed.cjs +1075 -0
- package/dist/vm/errors.d.ts +2 -2
- package/dist/vm-BjkJqSQH.cjs +3438 -0
- package/dist/vm-C5vf1LH3.js +3436 -0
- package/package.json +7 -7
- package/dist/chunk-34GJUS6U.js +0 -3266
- package/dist/chunk-3UZKLXAD.cjs +0 -3249
- package/dist/chunk-4POZJQXN.js +0 -1530
- package/dist/chunk-5WBNTV42.cjs +0 -1530
- package/dist/chunk-5ZF6NTYI.cjs +0 -33
- package/dist/chunk-72ZWBNZV.js +0 -173
- package/dist/chunk-DDSJTR6Q.cjs +0 -257
- package/dist/chunk-GDJTKI7J.js +0 -792
- package/dist/chunk-GLXADNTR.js +0 -199
- package/dist/chunk-GOWPACSK.cjs +0 -199
- package/dist/chunk-HB2G32AK.js +0 -257
- package/dist/chunk-HC2QZTVT.cjs +0 -3266
- package/dist/chunk-HEAQAEFZ.cjs +0 -173
- package/dist/chunk-HMMM32RG.cjs +0 -792
- package/dist/chunk-I56MPOVG.cjs +0 -62
- package/dist/chunk-KIN7Y247.cjs +0 -32
- package/dist/chunk-KTDBAJBB.cjs +0 -1685
- package/dist/chunk-KWQTYXAT.js +0 -62
- package/dist/chunk-LOX7GOR6.js +0 -1685
- package/dist/chunk-PK72FAKD.cjs +0 -175
- package/dist/chunk-PZE6PIPG.cjs +0 -621
- package/dist/chunk-RGUG3UMF.cjs +0 -26
- package/dist/chunk-TDALRNGL.js +0 -621
- package/dist/chunk-UGHFNCPD.js +0 -26
- package/dist/chunk-WSVDMGMR.js +0 -175
- package/dist/chunk-XTEHT2TK.js +0 -33
- package/dist/chunk-YEAWWJSJ.js +0 -32
- package/dist/chunk-YRS7KRKP.js +0 -3249
- package/dist/component-2NYFY6CW.cjs +0 -14
- package/dist/component-ASNZHQUR.js +0 -14
- package/dist/dual-modes-S5TJ5JVJ.js +0 -10
- package/dist/dual-modes-TCMWBZIH.cjs +0 -10
- package/dist/execute-FF7D46TY.js +0 -1109
- package/dist/execute-IK6O4SU2.cjs +0 -1109
- package/dist/exit-MX56VN2C.cjs +0 -8
- package/dist/exit-UQ3EUX5D.js +0 -8
- package/dist/jsx-DDZ63UUF.js +0 -13
- package/dist/jsx-ULPWX5TW.cjs +0 -13
- package/dist/tool-KD7FL45V.js +0 -11
- package/dist/tool-VE2YHIY2.cjs +0 -11
- package/dist/truncator-73RCL52Y.js +0 -12
- package/dist/truncator-FZNLYSDL.cjs +0 -12
- package/dist/typings-E2RROCLT.js +0 -10
- package/dist/typings-LQOBZXSO.cjs +0 -10
- package/dist/utils-IATCUNKF.js +0 -43
- package/dist/utils-ITB4NEL7.cjs +0 -43
- package/dist/vm-6D3IIIU7.cjs +0 -12
- package/dist/vm-QO5FSGPN.js +0 -12
package/DOCS.md
CHANGED
|
@@ -446,9 +446,7 @@ const tool = new Tool({
|
|
|
446
446
|
Clone and modify existing tools:
|
|
447
447
|
|
|
448
448
|
```typescript
|
|
449
|
-
const originalTool = new Tool({
|
|
450
|
-
/* definition */
|
|
451
|
-
})
|
|
449
|
+
const originalTool = new Tool({/* definition */})
|
|
452
450
|
|
|
453
451
|
const wrappedTool = originalTool.clone({
|
|
454
452
|
name: 'wrappedVersion',
|
|
@@ -0,0 +1,48 @@
|
|
|
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 };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
9
|
+
var __exportAll = (all, no_symbols) => {
|
|
10
|
+
let target = {};
|
|
11
|
+
for (var name in all) __defProp(target, name, {
|
|
12
|
+
get: all[name],
|
|
13
|
+
enumerable: true
|
|
14
|
+
});
|
|
15
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
16
|
+
return target;
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
20
|
+
key = keys[i];
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
22
|
+
get: ((k) => from[k]).bind(null, key),
|
|
23
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
29
|
+
value: mod,
|
|
30
|
+
enumerable: true
|
|
31
|
+
}) : target, mod));
|
|
32
|
+
//#endregion
|
|
33
|
+
const require__baseIteratee = require("./_baseIteratee-CF4qP2a8.cjs");
|
|
34
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.js
|
|
35
|
+
/**
|
|
36
|
+
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
37
|
+
*
|
|
38
|
+
* @private
|
|
39
|
+
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
40
|
+
* @returns {Function} Returns the new base function.
|
|
41
|
+
*/
|
|
42
|
+
function createBaseFor(fromRight) {
|
|
43
|
+
return function(object, iteratee, keysFunc) {
|
|
44
|
+
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
45
|
+
while (length--) {
|
|
46
|
+
var key = props[fromRight ? length : ++index];
|
|
47
|
+
if (iteratee(iterable[key], key, iterable) === false) break;
|
|
48
|
+
}
|
|
49
|
+
return object;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.js
|
|
54
|
+
/**
|
|
55
|
+
* The base implementation of `baseForOwn` which iterates over `object`
|
|
56
|
+
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
57
|
+
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
|
58
|
+
*
|
|
59
|
+
* @private
|
|
60
|
+
* @param {Object} object The object to iterate over.
|
|
61
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
62
|
+
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
63
|
+
* @returns {Object} Returns `object`.
|
|
64
|
+
*/
|
|
65
|
+
var baseFor = createBaseFor();
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseForOwn.js
|
|
68
|
+
/**
|
|
69
|
+
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
|
70
|
+
*
|
|
71
|
+
* @private
|
|
72
|
+
* @param {Object} object The object to iterate over.
|
|
73
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
74
|
+
* @returns {Object} Returns `object`.
|
|
75
|
+
*/
|
|
76
|
+
function baseForOwn(object, iteratee) {
|
|
77
|
+
return object && baseFor(object, iteratee, require__baseIteratee.keys);
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
Object.defineProperty(exports, "__commonJSMin", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function() {
|
|
83
|
+
return __commonJSMin;
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
Object.defineProperty(exports, "__exportAll", {
|
|
87
|
+
enumerable: true,
|
|
88
|
+
get: function() {
|
|
89
|
+
return __exportAll;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(exports, "__toESM", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function() {
|
|
95
|
+
return __toESM;
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
Object.defineProperty(exports, "baseForOwn", {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function() {
|
|
101
|
+
return baseForOwn;
|
|
102
|
+
}
|
|
103
|
+
});
|