@antdv-next/x-sdk 0.0.3 → 0.0.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.
- package/dist/chat-providers/types/model.d.ts +1 -1
- package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +76 -0
- package/dist/node_modules/.pnpm/{@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/expect → @vitest_expect@4.1.10/node_modules/@vitest/expect/dist}/index.js +53 -39
- package/dist/node_modules/.pnpm/{@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/pretty-format → @vitest_pretty-format@4.1.10/node_modules/@vitest/pretty-format/dist}/index.js +7 -6
- package/dist/node_modules/.pnpm/{@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/runner → @vitest_runner@4.1.10/node_modules/@vitest/runner/dist}/chunk-artifact.js +14 -7
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.10/node_modules/@vitest/runner/dist/index.js +2 -0
- package/dist/node_modules/.pnpm/@vitest_runner@4.1.10/node_modules/@vitest/runner/dist/utils.js +2 -0
- package/dist/node_modules/.pnpm/{@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/snapshot → @vitest_snapshot@4.1.10/node_modules/@vitest/snapshot/dist}/index.js +451 -192
- package/dist/node_modules/.pnpm/{@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/spy → @vitest_spy@4.1.10/node_modules/@vitest/spy/dist}/index.js +1 -1
- package/dist/node_modules/.pnpm/{@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/utils → @vitest_utils@4.1.10/node_modules/@vitest/utils/dist}/chunk-pathe.M-eThtNZ.js +1 -1
- package/dist/node_modules/.pnpm/{@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/utils → @vitest_utils@4.1.10/node_modules/@vitest/utils/dist}/diff.js +39 -29
- package/dist/node_modules/.pnpm/{@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/utils → @vitest_utils@4.1.10/node_modules/@vitest/utils/dist}/display.js +2 -2
- package/dist/node_modules/.pnpm/@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/error.js +34 -0
- package/dist/node_modules/.pnpm/{@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/utils → @vitest_utils@4.1.10/node_modules/@vitest/utils/dist}/helpers.js +1 -1
- package/dist/node_modules/.pnpm/{@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/utils → @vitest_utils@4.1.10/node_modules/@vitest/utils/dist}/offset.js +1 -1
- package/dist/node_modules/.pnpm/{@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/utils → @vitest_utils@4.1.10/node_modules/@vitest/utils/dist}/serialize.js +1 -1
- package/dist/node_modules/.pnpm/{@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/utils → @vitest_utils@4.1.10/node_modules/@vitest/utils/dist}/source-map.js +2 -2
- package/dist/node_modules/.pnpm/{@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/utils → @vitest_utils@4.1.10/node_modules/@vitest/utils/dist}/timers.js +1 -1
- package/dist/node_modules/.pnpm/{@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/vendor/chai.js → chai@6.2.2/node_modules/chai/index.js} +102 -2
- package/dist/node_modules/.pnpm/{@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/vendor/magic-string.js → magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.js} +3 -75
- package/dist/node_modules/.pnpm/tinyrainbow@3.1.1/node_modules/tinyrainbow/dist/index.js +84 -0
- package/dist/node_modules/.pnpm/vitest@4.1.10_@types_node@24.12.0_@vitest_browser-preview@4.1.10_@vitest_coverage-v8@4._55bf307888d746e7433721e12ae091d9/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js +4 -0
- package/dist/node_modules/.pnpm/{@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test → vitest@4.1.10_@types_node@24.12.0_@vitest_browser-preview@4.1.10_@vitest_coverage-v8@4._55bf307888d746e7433721e12ae091d9/node_modules/vitest}/dist/chunks/rpc.MzXet3jl.js +1 -1
- package/dist/node_modules/.pnpm/{@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/chunks/test.CBQUpOM3.js → vitest@4.1.10_@types_node@24.12.0_@vitest_browser-preview@4.1.10_@vitest_coverage-v8@4._55bf307888d746e7433721e12ae091d9/node_modules/vitest/dist/chunks/test.DNmyFkvJ.js} +369 -318
- package/dist/node_modules/.pnpm/{@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test → vitest@4.1.10_@types_node@24.12.0_@vitest_browser-preview@4.1.10_@vitest_coverage-v8@4._55bf307888d746e7433721e12ae091d9/node_modules/vitest}/dist/chunks/utils.BX5Fg8C4.js +2 -2
- package/dist/x-chat/__tests__/index.test.js +2 -2
- package/dist/x-conversations/__tests__/index.test.js +2 -2
- package/dist/x-request/__tests__/index.test.js +2 -2
- package/dist/x-stream/__tests__/index.test.js +2 -2
- package/package.json +1 -1
- package/dist/node_modules/.pnpm/@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/utils/error.js +0 -27
- package/dist/node_modules/.pnpm/@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/chunks/_commonjsHelpers.D26ty3Ew.js +0 -4
- package/dist/node_modules/.pnpm/@voidzero-dev_vite-plus-test@0.1.14_@types_node@24.12.0_@voidzero-dev_vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/vendor/tinyrainbow.js +0 -84
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getSafeTimers } from "
|
|
2
|
-
//#region ../../node_modules/.pnpm
|
|
1
|
+
import { getSafeTimers } from "../../../../../@vitest_utils@4.1.10/node_modules/@vitest/utils/dist/timers.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/vitest@4.1.10_@types+node@24.12.0_@vitest+browser-preview@4.1.10_@vitest+coverage-v8@4._55bf307888d746e7433721e12ae091d9/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.js
|
|
3
3
|
var NAME_WORKER_STATE = "__vitest_worker__";
|
|
4
4
|
function getWorkerState() {
|
|
5
5
|
const workerState = globalThis[NAME_WORKER_STATE];
|
|
@@ -2,8 +2,8 @@ import AbstractChatProvider from "../../chat-providers/AbstractChatProvider.js";
|
|
|
2
2
|
import { AbstractXRequestClass } from "../../x-request/index.js";
|
|
3
3
|
import { chatMessagesStoreHelper } from "../store.js";
|
|
4
4
|
import useXChat from "../index.js";
|
|
5
|
-
import { h as describe, m as it } from "../../node_modules/.pnpm/@
|
|
6
|
-
import { g as globalExpect, v as vi } from "../../node_modules/.pnpm
|
|
5
|
+
import { h as describe, m as it } from "../../node_modules/.pnpm/@vitest_runner@4.1.10/node_modules/@vitest/runner/dist/chunk-artifact.js";
|
|
6
|
+
import { g as globalExpect, v as vi } from "../../node_modules/.pnpm/vitest@4.1.10_@types_node@24.12.0_@vitest_browser-preview@4.1.10_@vitest_coverage-v8@4._55bf307888d746e7433721e12ae091d9/node_modules/vitest/dist/chunks/test.DNmyFkvJ.js";
|
|
7
7
|
import { computed, effectScope, nextTick, reactive, readonly, ref } from "vue";
|
|
8
8
|
//#region src/x-chat/__tests__/index.test.ts
|
|
9
9
|
var MockManualRequest = class extends AbstractXRequestClass {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import useXConversations from "../index.js";
|
|
2
|
-
import { h as describe, m as it } from "../../node_modules/.pnpm/@
|
|
3
|
-
import { g as globalExpect } from "../../node_modules/.pnpm
|
|
2
|
+
import { h as describe, m as it } from "../../node_modules/.pnpm/@vitest_runner@4.1.10/node_modules/@vitest/runner/dist/chunk-artifact.js";
|
|
3
|
+
import { g as globalExpect } from "../../node_modules/.pnpm/vitest@4.1.10_@types_node@24.12.0_@vitest_browser-preview@4.1.10_@vitest_coverage-v8@4._55bf307888d746e7433721e12ae091d9/node_modules/vitest/dist/chunks/test.DNmyFkvJ.js";
|
|
4
4
|
import { effectScope, nextTick, ref } from "vue";
|
|
5
5
|
//#region src/x-conversations/__tests__/index.test.ts
|
|
6
6
|
describe("useXConversations", () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import XRequest from "../index.js";
|
|
2
|
-
import { h as describe, m as it } from "../../node_modules/.pnpm/@
|
|
3
|
-
import { g as globalExpect, v as vi } from "../../node_modules/.pnpm
|
|
2
|
+
import { h as describe, m as it } from "../../node_modules/.pnpm/@vitest_runner@4.1.10/node_modules/@vitest/runner/dist/chunk-artifact.js";
|
|
3
|
+
import { g as globalExpect, v as vi } from "../../node_modules/.pnpm/vitest@4.1.10_@types_node@24.12.0_@vitest_browser-preview@4.1.10_@vitest_coverage-v8@4._55bf307888d746e7433721e12ae091d9/node_modules/vitest/dist/chunks/test.DNmyFkvJ.js";
|
|
4
4
|
import { ref } from "vue";
|
|
5
5
|
//#region src/x-request/__tests__/index.test.ts
|
|
6
6
|
describe("XRequest", () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import XStream from "../index.js";
|
|
2
|
-
import { h as describe, m as it } from "../../node_modules/.pnpm/@
|
|
3
|
-
import { g as globalExpect, v as vi } from "../../node_modules/.pnpm
|
|
2
|
+
import { h as describe, m as it } from "../../node_modules/.pnpm/@vitest_runner@4.1.10/node_modules/@vitest/runner/dist/chunk-artifact.js";
|
|
3
|
+
import { g as globalExpect, v as vi } from "../../node_modules/.pnpm/vitest@4.1.10_@types_node@24.12.0_@vitest_browser-preview@4.1.10_@vitest_coverage-v8@4._55bf307888d746e7433721e12ae091d9/node_modules/vitest/dist/chunks/test.DNmyFkvJ.js";
|
|
4
4
|
//#region src/x-stream/__tests__/index.test.ts
|
|
5
5
|
var encoder = new TextEncoder();
|
|
6
6
|
describe("XStream", () => {
|
package/package.json
CHANGED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { stringify } from "./display.js";
|
|
2
|
-
import { printDiffOrStringify } from "./diff.js";
|
|
3
|
-
import { serializeValue } from "./serialize.js";
|
|
4
|
-
//#region ../../node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.14_@types+node@24.12.0_@voidzero-dev+vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/@vitest/utils/error.js
|
|
5
|
-
function processError(_err, diffOptions, seen = /* @__PURE__ */ new WeakSet()) {
|
|
6
|
-
if (!_err || typeof _err !== "object") return { message: String(_err) };
|
|
7
|
-
const err = _err;
|
|
8
|
-
if (err.showDiff || err.showDiff === void 0 && err.expected !== void 0 && err.actual !== void 0) err.diff = printDiffOrStringify(err.actual, err.expected, {
|
|
9
|
-
...diffOptions,
|
|
10
|
-
...err.diffOptions
|
|
11
|
-
});
|
|
12
|
-
if ("expected" in err && typeof err.expected !== "string") err.expected = stringify(err.expected, 10);
|
|
13
|
-
if ("actual" in err && typeof err.actual !== "string") err.actual = stringify(err.actual, 10);
|
|
14
|
-
try {
|
|
15
|
-
if (!seen.has(err) && typeof err.cause === "object") {
|
|
16
|
-
seen.add(err);
|
|
17
|
-
err.cause = processError(err.cause, diffOptions, seen);
|
|
18
|
-
}
|
|
19
|
-
} catch {}
|
|
20
|
-
try {
|
|
21
|
-
return serializeValue(err);
|
|
22
|
-
} catch (e) {
|
|
23
|
-
return serializeValue(/* @__PURE__ */ new Error(`Failed to fully serialize error: ${e?.message}\nInner error message: ${err?.message}`));
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
export { processError, serializeValue as serializeError };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.14_@types+node@24.12.0_@voidzero-dev+vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/chunks/_commonjsHelpers.D26ty3Ew.js
|
|
2
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
3
|
-
//#endregion
|
|
4
|
-
export { commonjsGlobal as c };
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@voidzero-dev+vite-plus-test@0.1.14_@types+node@24.12.0_@voidzero-dev+vite-plus-core@0._0c620f79340a656256b2ffe23b3e6dd1/node_modules/@voidzero-dev/vite-plus-test/dist/vendor/tinyrainbow.mjs
|
|
2
|
-
var d = {
|
|
3
|
-
reset: [0, 0],
|
|
4
|
-
bold: [
|
|
5
|
-
1,
|
|
6
|
-
22,
|
|
7
|
-
"\x1B[22m\x1B[1m"
|
|
8
|
-
],
|
|
9
|
-
dim: [
|
|
10
|
-
2,
|
|
11
|
-
22,
|
|
12
|
-
"\x1B[22m\x1B[2m"
|
|
13
|
-
],
|
|
14
|
-
italic: [3, 23],
|
|
15
|
-
underline: [4, 24],
|
|
16
|
-
inverse: [7, 27],
|
|
17
|
-
hidden: [8, 28],
|
|
18
|
-
strikethrough: [9, 29],
|
|
19
|
-
black: [30, 39],
|
|
20
|
-
red: [31, 39],
|
|
21
|
-
green: [32, 39],
|
|
22
|
-
yellow: [33, 39],
|
|
23
|
-
blue: [34, 39],
|
|
24
|
-
magenta: [35, 39],
|
|
25
|
-
cyan: [36, 39],
|
|
26
|
-
white: [37, 39],
|
|
27
|
-
gray: [90, 39],
|
|
28
|
-
bgBlack: [40, 49],
|
|
29
|
-
bgRed: [41, 49],
|
|
30
|
-
bgGreen: [42, 49],
|
|
31
|
-
bgYellow: [43, 49],
|
|
32
|
-
bgBlue: [44, 49],
|
|
33
|
-
bgMagenta: [45, 49],
|
|
34
|
-
bgCyan: [46, 49],
|
|
35
|
-
bgWhite: [47, 49],
|
|
36
|
-
blackBright: [90, 39],
|
|
37
|
-
redBright: [91, 39],
|
|
38
|
-
greenBright: [92, 39],
|
|
39
|
-
yellowBright: [93, 39],
|
|
40
|
-
blueBright: [94, 39],
|
|
41
|
-
magentaBright: [95, 39],
|
|
42
|
-
cyanBright: [96, 39],
|
|
43
|
-
whiteBright: [97, 39],
|
|
44
|
-
bgBlackBright: [100, 49],
|
|
45
|
-
bgRedBright: [101, 49],
|
|
46
|
-
bgGreenBright: [102, 49],
|
|
47
|
-
bgYellowBright: [103, 49],
|
|
48
|
-
bgBlueBright: [104, 49],
|
|
49
|
-
bgMagentaBright: [105, 49],
|
|
50
|
-
bgCyanBright: [106, 49],
|
|
51
|
-
bgWhiteBright: [107, 49]
|
|
52
|
-
};
|
|
53
|
-
function g(e) {
|
|
54
|
-
return String(e);
|
|
55
|
-
}
|
|
56
|
-
g.open = "";
|
|
57
|
-
g.close = "";
|
|
58
|
-
function h() {
|
|
59
|
-
let e = typeof process != "undefined" ? process : void 0, n = (e == null ? void 0 : e.env) || {}, a = n.FORCE_TTY !== "false", i = (e == null ? void 0 : e.argv) || [];
|
|
60
|
-
return !("NO_COLOR" in n || i.includes("--no-color")) && ("FORCE_COLOR" in n || i.includes("--color") || (e == null ? void 0 : e.platform) === "win32" || a && n.TERM !== "dumb" || "CI" in n) || typeof window != "undefined" && !!window.chrome;
|
|
61
|
-
}
|
|
62
|
-
function f() {
|
|
63
|
-
let e = h(), n = (r, t, u, o) => {
|
|
64
|
-
let l = "", s = 0;
|
|
65
|
-
do
|
|
66
|
-
l += r.substring(s, o) + u, s = o + t.length, o = r.indexOf(t, s);
|
|
67
|
-
while (~o);
|
|
68
|
-
return l + r.substring(s);
|
|
69
|
-
}, a = (r, t, u = r) => {
|
|
70
|
-
let o = (l) => {
|
|
71
|
-
let s = String(l), b = s.indexOf(t, r.length);
|
|
72
|
-
return ~b ? r + n(s, t, u, b) + t : r + s + t;
|
|
73
|
-
};
|
|
74
|
-
return o.open = r, o.close = t, o;
|
|
75
|
-
}, i = { isColorSupported: e }, c = (r) => `\x1B[${r}m`;
|
|
76
|
-
for (let r in d) {
|
|
77
|
-
let t = d[r];
|
|
78
|
-
i[r] = e ? a(c(t[0]), c(t[1]), t[2]) : g;
|
|
79
|
-
}
|
|
80
|
-
return i;
|
|
81
|
-
}
|
|
82
|
-
var C = f();
|
|
83
|
-
//#endregion
|
|
84
|
-
export { f as createColors, C as default, h as isSupported };
|