llmz 0.0.2 → 0.0.5
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/dist/chat.d.ts +17 -0
- package/dist/chunk-3U57H7GT.js +608 -0
- package/dist/{chunk-RB2L33ZR.js → chunk-4EWY34YA.js} +24 -24
- package/dist/{chunk-R2N2UUKC.cjs → chunk-4I7UPBLN.cjs} +14 -8
- package/dist/{chunk-YPOOKE3A.cjs → chunk-4QTK5ALH.cjs} +59 -28
- package/dist/{chunk-BKGPO722.cjs → chunk-5NVNEEYW.cjs} +55 -55
- package/dist/{chunk-DFZ6GX5C.js → chunk-5TRUJES5.js} +1 -1
- package/dist/{chunk-E2B5DRIC.cjs → chunk-6WT5VZBG.cjs} +362 -26
- package/dist/{chunk-7S3UY52U.js → chunk-7WRN4E42.js} +36 -8
- package/dist/{chunk-E5W3P7EO.cjs → chunk-EJRCDWBA.cjs} +64 -7
- package/dist/{chunk-VP6WWAE2.cjs → chunk-FIVFS4HG.cjs} +2 -2
- package/dist/{chunk-3T465BEW.js → chunk-HP7RKM25.js} +63 -6
- package/dist/{chunk-YUDUY7XW.cjs → chunk-HYVKY3W6.cjs} +23 -24
- package/dist/{chunk-PQN6HW7A.cjs → chunk-IKSIOIIP.cjs} +3 -3
- package/dist/{chunk-ZUAFUOUR.cjs → chunk-JDABP4SD.cjs} +3 -3
- package/dist/{chunk-RJHDQL4C.js → chunk-JKVVQN2P.js} +1 -1
- package/dist/{chunk-MSTBEKOQ.js → chunk-JQBT7UWN.js} +3 -3
- package/dist/{chunk-BOLDQGES.cjs → chunk-KMZDFWYZ.cjs} +3 -3
- package/dist/chunk-MU4LFVY7.cjs +608 -0
- package/dist/{chunk-7FIPXMZR.js → chunk-ORQP26SZ.js} +1 -1
- package/dist/{chunk-ENFB45AI.cjs → chunk-P7J2WCBB.cjs} +7 -7
- package/dist/{chunk-DILHJIMP.js → chunk-QBXIE6EY.js} +49 -18
- package/dist/{chunk-UVSOAH2H.js → chunk-QT4QF3YA.js} +1 -1
- package/dist/{chunk-6QDFMQHA.js → chunk-S6FOL2HY.js} +8 -2
- package/dist/{chunk-ZSRC3TN4.js → chunk-UNMKB2DA.js} +9 -10
- package/dist/{chunk-3CGLDS5T.cjs → chunk-UQOBUJIQ.cjs} +38 -10
- package/dist/{chunk-QPSUMPLP.js → chunk-WLUVY5QU.js} +345 -9
- package/dist/citations.d.ts +63 -0
- package/dist/component-R2Y74VUI.js +16 -0
- package/dist/component-TSNW3SC7.cjs +16 -0
- package/dist/component.d.ts +26 -17
- package/dist/component.default.d.ts +314 -8
- package/dist/context.d.ts +9 -6
- package/dist/dual-modes-UHNDHNIF.cjs +12 -0
- package/dist/dual-modes-ZUQKPJFH.js +12 -0
- package/dist/exit-KJ4COC5N.cjs +8 -0
- package/dist/exit-OIYZLBVJ.js +8 -0
- package/dist/exit.d.ts +6 -0
- package/dist/getter.d.ts +1 -1
- package/dist/index.cjs +256 -160
- package/dist/index.d.ts +7 -4
- package/dist/index.js +242 -146
- package/dist/{jsx-CJ2RBODH.js → jsx-AEHVFB3L.js} +2 -3
- package/dist/jsx-AJAXBWFE.cjs +13 -0
- package/dist/llmz-VDA4M42R.cjs +604 -0
- package/dist/llmz-YE5N54IU.js +604 -0
- package/dist/llmz.d.ts +8 -10
- package/dist/snapshots.d.ts +9 -1
- package/dist/tool-LY77IWV2.js +11 -0
- package/dist/tool-SWJYOR2Z.cjs +11 -0
- package/dist/tool.d.ts +34 -9
- package/dist/truncator-NYN7BGKJ.cjs +10 -0
- package/dist/truncator-WAL2GCUY.js +10 -0
- package/dist/types.d.ts +9 -1
- package/dist/typings-AIV2OASX.js +10 -0
- package/dist/typings-XR6CYHW4.cjs +10 -0
- package/dist/{utils-TS23YJPE.js → utils-L5GLCS3C.js} +2 -3
- package/dist/utils-QC4I2L6R.cjs +37 -0
- package/dist/vm-GJ5R72AP.cjs +12 -0
- package/dist/vm-ZUQOSRRM.js +12 -0
- package/dist/vm.d.ts +1 -1
- package/package.json +8 -6
- package/dist/chunk-A7BDFLAE.cjs +0 -30
- package/dist/chunk-C2TSWGYC.cjs +0 -91
- package/dist/chunk-Q4DEJGXD.js +0 -344
- package/dist/chunk-QZGFCB4T.cjs +0 -344
- package/dist/chunk-UG2GCPHF.js +0 -91
- package/dist/chunk-YSQDPG26.js +0 -30
- package/dist/component-DWBRHLEN.cjs +0 -9
- package/dist/component-R3ZAVXUC.js +0 -9
- package/dist/dual-modes-2VDEOJ5D.js +0 -13
- package/dist/dual-modes-3MH5N6RY.cjs +0 -13
- package/dist/exit-GYMXZZ4I.js +0 -9
- package/dist/exit-PQHMJEOG.cjs +0 -9
- package/dist/jsx-PPLE5YTB.cjs +0 -14
- package/dist/llmz-EGTGPSTX.cjs +0 -1049
- package/dist/llmz-WY74UVE3.js +0 -1049
- package/dist/tool-AY47ML65.cjs +0 -12
- package/dist/tool-WVIPESKN.js +0 -12
- package/dist/truncator-MTONQESU.js +0 -11
- package/dist/truncator-ZKPOW2I3.cjs +0 -11
- package/dist/typings-HTYLRNIC.js +0 -11
- package/dist/typings-QRJGGNUM.cjs +0 -11
- package/dist/utils-UR4IMUHC.cjs +0 -38
- package/dist/vm-4JFSZAMR.cjs +0 -13
- package/dist/vm-SMMA664M.js +0 -13
- package/patches/source-map-js@1.2.1.patch +0 -16
package/dist/chunk-UG2GCPHF.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
extractType,
|
|
3
|
-
inspect
|
|
4
|
-
} from "./chunk-Q4DEJGXD.js";
|
|
5
|
-
|
|
6
|
-
// src/snapshots.ts
|
|
7
|
-
import { ulid } from "ulid";
|
|
8
|
-
var MAX_SNAPSHOT_SIZE_BYTES = 4e3;
|
|
9
|
-
var Snapshot = class _Snapshot {
|
|
10
|
-
id;
|
|
11
|
-
reason;
|
|
12
|
-
stack;
|
|
13
|
-
variables;
|
|
14
|
-
toolCall;
|
|
15
|
-
#status;
|
|
16
|
-
get status() {
|
|
17
|
-
return Object.freeze({ ...this.#status });
|
|
18
|
-
}
|
|
19
|
-
constructor(props) {
|
|
20
|
-
this.id = props.id;
|
|
21
|
-
this.stack = props.stack;
|
|
22
|
-
this.reason = props.reason;
|
|
23
|
-
this.variables = props.variables;
|
|
24
|
-
this.toolCall = props.toolCall;
|
|
25
|
-
this.#status = props.status;
|
|
26
|
-
}
|
|
27
|
-
static fromSignal(signal) {
|
|
28
|
-
const variables = Object.entries(signal.variables).map(([name, value]) => {
|
|
29
|
-
const type = extractType(value);
|
|
30
|
-
const bytes = JSON.stringify(value || "").length;
|
|
31
|
-
const truncated = bytes > MAX_SNAPSHOT_SIZE_BYTES;
|
|
32
|
-
return truncated ? { name, type, bytes, truncated: true, preview: inspect(value, name) ?? "N/A" } : { name, type, bytes, truncated: false, value };
|
|
33
|
-
});
|
|
34
|
-
return new _Snapshot({
|
|
35
|
-
id: "snapshot_" + ulid(),
|
|
36
|
-
reason: signal.message,
|
|
37
|
-
stack: signal.truncatedCode,
|
|
38
|
-
variables,
|
|
39
|
-
toolCall: signal.toolCall,
|
|
40
|
-
status: { type: "pending" }
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
toJSON() {
|
|
44
|
-
return {
|
|
45
|
-
id: this.id,
|
|
46
|
-
reason: this.reason,
|
|
47
|
-
stack: this.stack,
|
|
48
|
-
variables: this.variables,
|
|
49
|
-
toolCall: this.toolCall
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
static fromJSON(json) {
|
|
53
|
-
return new _Snapshot({
|
|
54
|
-
id: json.id,
|
|
55
|
-
reason: json.reason,
|
|
56
|
-
stack: json.stack,
|
|
57
|
-
variables: json.variables,
|
|
58
|
-
toolCall: json.toolCall,
|
|
59
|
-
status: json.status
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
clone() {
|
|
63
|
-
return new _Snapshot({
|
|
64
|
-
id: this.id,
|
|
65
|
-
reason: this.reason,
|
|
66
|
-
stack: this.stack,
|
|
67
|
-
variables: this.variables,
|
|
68
|
-
toolCall: this.toolCall,
|
|
69
|
-
status: this.#status
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
reset() {
|
|
73
|
-
this.#status = { type: "pending" };
|
|
74
|
-
}
|
|
75
|
-
resolve(value) {
|
|
76
|
-
if (this.#status.type !== "pending") {
|
|
77
|
-
throw new Error(`Cannot resolve snapshot because it is already settled: ${this.#status.type}`);
|
|
78
|
-
}
|
|
79
|
-
this.#status = { type: "resolved", value };
|
|
80
|
-
}
|
|
81
|
-
reject(error) {
|
|
82
|
-
if (this.#status.type !== "pending") {
|
|
83
|
-
throw new Error(`Cannot reject snapshot because it is already settled: ${this.#status.type}`);
|
|
84
|
-
}
|
|
85
|
-
this.#status = { type: "rejected", error };
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
export {
|
|
90
|
-
Snapshot
|
|
91
|
-
};
|
package/dist/chunk-YSQDPG26.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
19
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
20
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
21
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
22
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
23
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
24
|
-
mod
|
|
25
|
-
));
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
__commonJS,
|
|
29
|
-
__toESM
|
|
30
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var _chunkE5W3P7EOcjs = require('./chunk-E5W3P7EO.cjs');
|
|
5
|
-
require('./chunk-A7BDFLAE.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.assertValidComponent = _chunkE5W3P7EOcjs.assertValidComponent; exports.getComponentReference = _chunkE5W3P7EOcjs.getComponentReference;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DualModePrompt
|
|
3
|
-
} from "./chunk-QPSUMPLP.js";
|
|
4
|
-
import "./chunk-Q4DEJGXD.js";
|
|
5
|
-
import "./chunk-MSTBEKOQ.js";
|
|
6
|
-
import "./chunk-3T465BEW.js";
|
|
7
|
-
import "./chunk-UVSOAH2H.js";
|
|
8
|
-
import "./chunk-DFZ6GX5C.js";
|
|
9
|
-
import "./chunk-7S3UY52U.js";
|
|
10
|
-
import "./chunk-YSQDPG26.js";
|
|
11
|
-
export {
|
|
12
|
-
DualModePrompt
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkE2B5DRICcjs = require('./chunk-E2B5DRIC.cjs');
|
|
4
|
-
require('./chunk-QZGFCB4T.cjs');
|
|
5
|
-
require('./chunk-PQN6HW7A.cjs');
|
|
6
|
-
require('./chunk-E5W3P7EO.cjs');
|
|
7
|
-
require('./chunk-VP6WWAE2.cjs');
|
|
8
|
-
require('./chunk-ENFB45AI.cjs');
|
|
9
|
-
require('./chunk-3CGLDS5T.cjs');
|
|
10
|
-
require('./chunk-A7BDFLAE.cjs');
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
exports.DualModePrompt = _chunkE2B5DRICcjs.DualModePrompt;
|
package/dist/exit-GYMXZZ4I.js
DELETED
package/dist/exit-PQHMJEOG.cjs
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkR2N2UUKCcjs = require('./chunk-R2N2UUKC.cjs');
|
|
4
|
-
require('./chunk-ENFB45AI.cjs');
|
|
5
|
-
require('./chunk-3CGLDS5T.cjs');
|
|
6
|
-
require('./chunk-A7BDFLAE.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.Exit = _chunkR2N2UUKCcjs.Exit;
|
package/dist/jsx-PPLE5YTB.cjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunkBOLDQGEScjs = require('./chunk-BOLDQGES.cjs');
|
|
7
|
-
require('./chunk-3CGLDS5T.cjs');
|
|
8
|
-
require('./chunk-A7BDFLAE.cjs');
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.Jsx = _chunkBOLDQGEScjs.Jsx; exports.createJsxComponent = _chunkBOLDQGEScjs.createJsxComponent; exports.isAnyJsxComponent = _chunkBOLDQGEScjs.isAnyJsxComponent; exports.isJsxComponent = _chunkBOLDQGEScjs.isJsxComponent;
|