xbtest-dashboard 1.0.0 → 1.1.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.
- package/README.md +37 -16
- package/bundle/index.js +81 -129
- package/package.json +4 -6
package/README.md
CHANGED
|
@@ -1,31 +1,57 @@
|
|
|
1
1
|
# Conversation Reporter Plugin
|
|
2
2
|
|
|
3
|
-
对话记录整理和可视化插件,用于
|
|
3
|
+
对话记录整理和可视化插件,用于 joinai-code。
|
|
4
4
|
|
|
5
5
|
## 功能
|
|
6
6
|
|
|
7
7
|
- 列出所有对话会话
|
|
8
8
|
- 查看单个会话的详细记录
|
|
9
9
|
- 生成带目录的完整 HTML 报告
|
|
10
|
+
- 自动清理旧的报告文件,避免文件堆积
|
|
10
11
|
|
|
11
12
|
## 安装
|
|
12
13
|
|
|
13
|
-
###
|
|
14
|
+
### 方式一:全局安装(推荐)
|
|
14
15
|
|
|
15
16
|
```bash
|
|
16
|
-
|
|
17
|
-
npm install
|
|
18
|
-
npm run build
|
|
17
|
+
npm install -g xbtest-dashboard
|
|
19
18
|
```
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
安装后,查找全局安装路径:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm root -g
|
|
24
|
+
```
|
|
22
25
|
|
|
23
|
-
|
|
26
|
+
然后在 `~/.config/joinai-code/joinai-code.json` 中配置插件路径:
|
|
24
27
|
|
|
25
28
|
```json
|
|
26
29
|
{
|
|
27
|
-
"
|
|
28
|
-
"/
|
|
30
|
+
"plugin": [
|
|
31
|
+
"/usr/local/lib/node_modules/xbtest-dashboard"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
> **注意**:
|
|
37
|
+
> - macOS/Linux 默认路径通常是 `/usr/local/lib/node_modules/<包名>`
|
|
38
|
+
> - Windows 路径通常是 `C:\\Users\\<用户名>\\AppData\\Roaming\\npm\\node_modules\\<包名>`
|
|
39
|
+
> - 使用 `npm root -g` 命令可以查看你的全局安装路径
|
|
40
|
+
|
|
41
|
+
### 方式二:本地开发
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
cd ~/xbtest-dashboard
|
|
45
|
+
npm install
|
|
46
|
+
npm run bundle
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
在 `~/.config/joinai-code/joinai-code.json` 中添加本地路径:
|
|
50
|
+
|
|
51
|
+
```json
|
|
52
|
+
{
|
|
53
|
+
"plugin": [
|
|
54
|
+
"/usr/local/lib/node_modules/xbtest-dashboard"
|
|
29
55
|
]
|
|
30
56
|
}
|
|
31
57
|
```
|
|
@@ -36,16 +62,11 @@ npm run build
|
|
|
36
62
|
- **查看单个会话**:`organize(session_id: "ses_xxx")`
|
|
37
63
|
- **生成完整报告**:`organize(show_all: true)`
|
|
38
64
|
|
|
39
|
-
##
|
|
65
|
+
## 发布到 npm
|
|
40
66
|
|
|
41
67
|
```bash
|
|
42
68
|
npm publish
|
|
43
69
|
```
|
|
44
70
|
|
|
45
|
-
|
|
71
|
+
发布后,其他用户可以通过 `npm install -g conversation-reporter-plugin` 安装使用。
|
|
46
72
|
|
|
47
|
-
```json
|
|
48
|
-
{
|
|
49
|
-
"plugins": ["conversation-reporter-plugin"]
|
|
50
|
-
}
|
|
51
|
-
```
|
package/bundle/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __export = (target, all) => {
|
|
|
4
4
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
-
//
|
|
7
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/classic/external.js
|
|
8
8
|
var external_exports = {};
|
|
9
9
|
__export(external_exports, {
|
|
10
10
|
$brand: () => $brand,
|
|
@@ -234,7 +234,7 @@ __export(external_exports, {
|
|
|
234
234
|
xid: () => xid2
|
|
235
235
|
});
|
|
236
236
|
|
|
237
|
-
//
|
|
237
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/index.js
|
|
238
238
|
var core_exports2 = {};
|
|
239
239
|
__export(core_exports2, {
|
|
240
240
|
$ZodAny: () => $ZodAny,
|
|
@@ -498,7 +498,7 @@ __export(core_exports2, {
|
|
|
498
498
|
version: () => version
|
|
499
499
|
});
|
|
500
500
|
|
|
501
|
-
//
|
|
501
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/core.js
|
|
502
502
|
var NEVER = Object.freeze({
|
|
503
503
|
status: "aborted"
|
|
504
504
|
});
|
|
@@ -564,7 +564,7 @@ function config(newConfig) {
|
|
|
564
564
|
return globalConfig;
|
|
565
565
|
}
|
|
566
566
|
|
|
567
|
-
//
|
|
567
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/util.js
|
|
568
568
|
var util_exports = {};
|
|
569
569
|
__export(util_exports, {
|
|
570
570
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -1198,7 +1198,7 @@ var Class = class {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
};
|
|
1200
1200
|
|
|
1201
|
-
//
|
|
1201
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/errors.js
|
|
1202
1202
|
var initializer = (inst, def) => {
|
|
1203
1203
|
inst.name = "$ZodError";
|
|
1204
1204
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -1340,7 +1340,7 @@ function prettifyError(error45) {
|
|
|
1340
1340
|
return lines.join("\n");
|
|
1341
1341
|
}
|
|
1342
1342
|
|
|
1343
|
-
//
|
|
1343
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/parse.js
|
|
1344
1344
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
1345
1345
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
1346
1346
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -1428,7 +1428,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1428
1428
|
};
|
|
1429
1429
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
1430
1430
|
|
|
1431
|
-
//
|
|
1431
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/regexes.js
|
|
1432
1432
|
var regexes_exports = {};
|
|
1433
1433
|
__export(regexes_exports, {
|
|
1434
1434
|
base64: () => base64,
|
|
@@ -1580,7 +1580,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
1580
1580
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
1581
1581
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
1582
1582
|
|
|
1583
|
-
//
|
|
1583
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/checks.js
|
|
1584
1584
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
1585
1585
|
var _a;
|
|
1586
1586
|
inst._zod ?? (inst._zod = {});
|
|
@@ -2122,7 +2122,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
2122
2122
|
};
|
|
2123
2123
|
});
|
|
2124
2124
|
|
|
2125
|
-
//
|
|
2125
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/doc.js
|
|
2126
2126
|
var Doc = class {
|
|
2127
2127
|
constructor(args = []) {
|
|
2128
2128
|
this.content = [];
|
|
@@ -2158,14 +2158,14 @@ var Doc = class {
|
|
|
2158
2158
|
}
|
|
2159
2159
|
};
|
|
2160
2160
|
|
|
2161
|
-
//
|
|
2161
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/versions.js
|
|
2162
2162
|
var version = {
|
|
2163
2163
|
major: 4,
|
|
2164
2164
|
minor: 1,
|
|
2165
2165
|
patch: 8
|
|
2166
2166
|
};
|
|
2167
2167
|
|
|
2168
|
-
//
|
|
2168
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/schemas.js
|
|
2169
2169
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
2170
2170
|
var _a;
|
|
2171
2171
|
inst ?? (inst = {});
|
|
@@ -3997,7 +3997,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
3997
3997
|
}
|
|
3998
3998
|
}
|
|
3999
3999
|
|
|
4000
|
-
//
|
|
4000
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/index.js
|
|
4001
4001
|
var locales_exports = {};
|
|
4002
4002
|
__export(locales_exports, {
|
|
4003
4003
|
ar: () => ar_default,
|
|
@@ -4048,7 +4048,7 @@ __export(locales_exports, {
|
|
|
4048
4048
|
zhTW: () => zh_TW_default
|
|
4049
4049
|
});
|
|
4050
4050
|
|
|
4051
|
-
//
|
|
4051
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ar.js
|
|
4052
4052
|
var error = () => {
|
|
4053
4053
|
const Sizable = {
|
|
4054
4054
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -4165,7 +4165,7 @@ function ar_default() {
|
|
|
4165
4165
|
};
|
|
4166
4166
|
}
|
|
4167
4167
|
|
|
4168
|
-
//
|
|
4168
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/az.js
|
|
4169
4169
|
var error2 = () => {
|
|
4170
4170
|
const Sizable = {
|
|
4171
4171
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -4281,7 +4281,7 @@ function az_default() {
|
|
|
4281
4281
|
};
|
|
4282
4282
|
}
|
|
4283
4283
|
|
|
4284
|
-
//
|
|
4284
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/be.js
|
|
4285
4285
|
function getBelarusianPlural(count, one, few, many) {
|
|
4286
4286
|
const absCount = Math.abs(count);
|
|
4287
4287
|
const lastDigit = absCount % 10;
|
|
@@ -4446,7 +4446,7 @@ function be_default() {
|
|
|
4446
4446
|
};
|
|
4447
4447
|
}
|
|
4448
4448
|
|
|
4449
|
-
//
|
|
4449
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ca.js
|
|
4450
4450
|
var error4 = () => {
|
|
4451
4451
|
const Sizable = {
|
|
4452
4452
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -4566,7 +4566,7 @@ function ca_default() {
|
|
|
4566
4566
|
};
|
|
4567
4567
|
}
|
|
4568
4568
|
|
|
4569
|
-
//
|
|
4569
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/cs.js
|
|
4570
4570
|
var error5 = () => {
|
|
4571
4571
|
const Sizable = {
|
|
4572
4572
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -4702,7 +4702,7 @@ function cs_default() {
|
|
|
4702
4702
|
};
|
|
4703
4703
|
}
|
|
4704
4704
|
|
|
4705
|
-
//
|
|
4705
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/da.js
|
|
4706
4706
|
var error6 = () => {
|
|
4707
4707
|
const Sizable = {
|
|
4708
4708
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -4834,7 +4834,7 @@ function da_default() {
|
|
|
4834
4834
|
};
|
|
4835
4835
|
}
|
|
4836
4836
|
|
|
4837
|
-
//
|
|
4837
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/de.js
|
|
4838
4838
|
var error7 = () => {
|
|
4839
4839
|
const Sizable = {
|
|
4840
4840
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -4951,7 +4951,7 @@ function de_default() {
|
|
|
4951
4951
|
};
|
|
4952
4952
|
}
|
|
4953
4953
|
|
|
4954
|
-
//
|
|
4954
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/en.js
|
|
4955
4955
|
var parsedType = (data) => {
|
|
4956
4956
|
const t = typeof data;
|
|
4957
4957
|
switch (t) {
|
|
@@ -5069,7 +5069,7 @@ function en_default() {
|
|
|
5069
5069
|
};
|
|
5070
5070
|
}
|
|
5071
5071
|
|
|
5072
|
-
//
|
|
5072
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/eo.js
|
|
5073
5073
|
var parsedType2 = (data) => {
|
|
5074
5074
|
const t = typeof data;
|
|
5075
5075
|
switch (t) {
|
|
@@ -5186,7 +5186,7 @@ function eo_default() {
|
|
|
5186
5186
|
};
|
|
5187
5187
|
}
|
|
5188
5188
|
|
|
5189
|
-
//
|
|
5189
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/es.js
|
|
5190
5190
|
var error10 = () => {
|
|
5191
5191
|
const Sizable = {
|
|
5192
5192
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -5336,7 +5336,7 @@ function es_default() {
|
|
|
5336
5336
|
};
|
|
5337
5337
|
}
|
|
5338
5338
|
|
|
5339
|
-
//
|
|
5339
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/fa.js
|
|
5340
5340
|
var error11 = () => {
|
|
5341
5341
|
const Sizable = {
|
|
5342
5342
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -5459,7 +5459,7 @@ function fa_default() {
|
|
|
5459
5459
|
};
|
|
5460
5460
|
}
|
|
5461
5461
|
|
|
5462
|
-
//
|
|
5462
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/fi.js
|
|
5463
5463
|
var error12 = () => {
|
|
5464
5464
|
const Sizable = {
|
|
5465
5465
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
@@ -5582,7 +5582,7 @@ function fi_default() {
|
|
|
5582
5582
|
};
|
|
5583
5583
|
}
|
|
5584
5584
|
|
|
5585
|
-
//
|
|
5585
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/fr.js
|
|
5586
5586
|
var error13 = () => {
|
|
5587
5587
|
const Sizable = {
|
|
5588
5588
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -5699,7 +5699,7 @@ function fr_default() {
|
|
|
5699
5699
|
};
|
|
5700
5700
|
}
|
|
5701
5701
|
|
|
5702
|
-
//
|
|
5702
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/fr-CA.js
|
|
5703
5703
|
var error14 = () => {
|
|
5704
5704
|
const Sizable = {
|
|
5705
5705
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -5817,7 +5817,7 @@ function fr_CA_default() {
|
|
|
5817
5817
|
};
|
|
5818
5818
|
}
|
|
5819
5819
|
|
|
5820
|
-
//
|
|
5820
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/he.js
|
|
5821
5821
|
var error15 = () => {
|
|
5822
5822
|
const Sizable = {
|
|
5823
5823
|
string: { unit: "\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA", verb: "\u05DC\u05DB\u05DC\u05D5\u05DC" },
|
|
@@ -5935,7 +5935,7 @@ function he_default() {
|
|
|
5935
5935
|
};
|
|
5936
5936
|
}
|
|
5937
5937
|
|
|
5938
|
-
//
|
|
5938
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/hu.js
|
|
5939
5939
|
var error16 = () => {
|
|
5940
5940
|
const Sizable = {
|
|
5941
5941
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -6053,7 +6053,7 @@ function hu_default() {
|
|
|
6053
6053
|
};
|
|
6054
6054
|
}
|
|
6055
6055
|
|
|
6056
|
-
//
|
|
6056
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/id.js
|
|
6057
6057
|
var error17 = () => {
|
|
6058
6058
|
const Sizable = {
|
|
6059
6059
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -6170,7 +6170,7 @@ function id_default() {
|
|
|
6170
6170
|
};
|
|
6171
6171
|
}
|
|
6172
6172
|
|
|
6173
|
-
//
|
|
6173
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/is.js
|
|
6174
6174
|
var parsedType3 = (data) => {
|
|
6175
6175
|
const t = typeof data;
|
|
6176
6176
|
switch (t) {
|
|
@@ -6288,7 +6288,7 @@ function is_default() {
|
|
|
6288
6288
|
};
|
|
6289
6289
|
}
|
|
6290
6290
|
|
|
6291
|
-
//
|
|
6291
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/it.js
|
|
6292
6292
|
var error19 = () => {
|
|
6293
6293
|
const Sizable = {
|
|
6294
6294
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -6406,7 +6406,7 @@ function it_default() {
|
|
|
6406
6406
|
};
|
|
6407
6407
|
}
|
|
6408
6408
|
|
|
6409
|
-
//
|
|
6409
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ja.js
|
|
6410
6410
|
var error20 = () => {
|
|
6411
6411
|
const Sizable = {
|
|
6412
6412
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
@@ -6522,7 +6522,7 @@ function ja_default() {
|
|
|
6522
6522
|
};
|
|
6523
6523
|
}
|
|
6524
6524
|
|
|
6525
|
-
//
|
|
6525
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ka.js
|
|
6526
6526
|
var parsedType4 = (data) => {
|
|
6527
6527
|
const t = typeof data;
|
|
6528
6528
|
switch (t) {
|
|
@@ -6648,7 +6648,7 @@ function ka_default() {
|
|
|
6648
6648
|
};
|
|
6649
6649
|
}
|
|
6650
6650
|
|
|
6651
|
-
//
|
|
6651
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/km.js
|
|
6652
6652
|
var error22 = () => {
|
|
6653
6653
|
const Sizable = {
|
|
6654
6654
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -6766,12 +6766,12 @@ function km_default() {
|
|
|
6766
6766
|
};
|
|
6767
6767
|
}
|
|
6768
6768
|
|
|
6769
|
-
//
|
|
6769
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/kh.js
|
|
6770
6770
|
function kh_default() {
|
|
6771
6771
|
return km_default();
|
|
6772
6772
|
}
|
|
6773
6773
|
|
|
6774
|
-
//
|
|
6774
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ko.js
|
|
6775
6775
|
var error23 = () => {
|
|
6776
6776
|
const Sizable = {
|
|
6777
6777
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
@@ -6893,7 +6893,7 @@ function ko_default() {
|
|
|
6893
6893
|
};
|
|
6894
6894
|
}
|
|
6895
6895
|
|
|
6896
|
-
//
|
|
6896
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/lt.js
|
|
6897
6897
|
var parsedType5 = (data) => {
|
|
6898
6898
|
const t = typeof data;
|
|
6899
6899
|
return parsedTypeFromType(t, data);
|
|
@@ -7124,7 +7124,7 @@ function lt_default() {
|
|
|
7124
7124
|
};
|
|
7125
7125
|
}
|
|
7126
7126
|
|
|
7127
|
-
//
|
|
7127
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/mk.js
|
|
7128
7128
|
var error25 = () => {
|
|
7129
7129
|
const Sizable = {
|
|
7130
7130
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -7243,7 +7243,7 @@ function mk_default() {
|
|
|
7243
7243
|
};
|
|
7244
7244
|
}
|
|
7245
7245
|
|
|
7246
|
-
//
|
|
7246
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ms.js
|
|
7247
7247
|
var error26 = () => {
|
|
7248
7248
|
const Sizable = {
|
|
7249
7249
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -7360,7 +7360,7 @@ function ms_default() {
|
|
|
7360
7360
|
};
|
|
7361
7361
|
}
|
|
7362
7362
|
|
|
7363
|
-
//
|
|
7363
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/nl.js
|
|
7364
7364
|
var error27 = () => {
|
|
7365
7365
|
const Sizable = {
|
|
7366
7366
|
string: { unit: "tekens" },
|
|
@@ -7478,7 +7478,7 @@ function nl_default() {
|
|
|
7478
7478
|
};
|
|
7479
7479
|
}
|
|
7480
7480
|
|
|
7481
|
-
//
|
|
7481
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/no.js
|
|
7482
7482
|
var error28 = () => {
|
|
7483
7483
|
const Sizable = {
|
|
7484
7484
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
@@ -7595,7 +7595,7 @@ function no_default() {
|
|
|
7595
7595
|
};
|
|
7596
7596
|
}
|
|
7597
7597
|
|
|
7598
|
-
//
|
|
7598
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ota.js
|
|
7599
7599
|
var error29 = () => {
|
|
7600
7600
|
const Sizable = {
|
|
7601
7601
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
@@ -7713,7 +7713,7 @@ function ota_default() {
|
|
|
7713
7713
|
};
|
|
7714
7714
|
}
|
|
7715
7715
|
|
|
7716
|
-
//
|
|
7716
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ps.js
|
|
7717
7717
|
var error30 = () => {
|
|
7718
7718
|
const Sizable = {
|
|
7719
7719
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -7836,7 +7836,7 @@ function ps_default() {
|
|
|
7836
7836
|
};
|
|
7837
7837
|
}
|
|
7838
7838
|
|
|
7839
|
-
//
|
|
7839
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/pl.js
|
|
7840
7840
|
var error31 = () => {
|
|
7841
7841
|
const Sizable = {
|
|
7842
7842
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
@@ -7954,7 +7954,7 @@ function pl_default() {
|
|
|
7954
7954
|
};
|
|
7955
7955
|
}
|
|
7956
7956
|
|
|
7957
|
-
//
|
|
7957
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/pt.js
|
|
7958
7958
|
var error32 = () => {
|
|
7959
7959
|
const Sizable = {
|
|
7960
7960
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -8071,7 +8071,7 @@ function pt_default() {
|
|
|
8071
8071
|
};
|
|
8072
8072
|
}
|
|
8073
8073
|
|
|
8074
|
-
//
|
|
8074
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ru.js
|
|
8075
8075
|
function getRussianPlural(count, one, few, many) {
|
|
8076
8076
|
const absCount = Math.abs(count);
|
|
8077
8077
|
const lastDigit = absCount % 10;
|
|
@@ -8236,7 +8236,7 @@ function ru_default() {
|
|
|
8236
8236
|
};
|
|
8237
8237
|
}
|
|
8238
8238
|
|
|
8239
|
-
//
|
|
8239
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/sl.js
|
|
8240
8240
|
var error34 = () => {
|
|
8241
8241
|
const Sizable = {
|
|
8242
8242
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -8354,7 +8354,7 @@ function sl_default() {
|
|
|
8354
8354
|
};
|
|
8355
8355
|
}
|
|
8356
8356
|
|
|
8357
|
-
//
|
|
8357
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/sv.js
|
|
8358
8358
|
var error35 = () => {
|
|
8359
8359
|
const Sizable = {
|
|
8360
8360
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -8473,7 +8473,7 @@ function sv_default() {
|
|
|
8473
8473
|
};
|
|
8474
8474
|
}
|
|
8475
8475
|
|
|
8476
|
-
//
|
|
8476
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ta.js
|
|
8477
8477
|
var error36 = () => {
|
|
8478
8478
|
const Sizable = {
|
|
8479
8479
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
@@ -8591,7 +8591,7 @@ function ta_default() {
|
|
|
8591
8591
|
};
|
|
8592
8592
|
}
|
|
8593
8593
|
|
|
8594
|
-
//
|
|
8594
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/th.js
|
|
8595
8595
|
var error37 = () => {
|
|
8596
8596
|
const Sizable = {
|
|
8597
8597
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -8709,7 +8709,7 @@ function th_default() {
|
|
|
8709
8709
|
};
|
|
8710
8710
|
}
|
|
8711
8711
|
|
|
8712
|
-
//
|
|
8712
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/tr.js
|
|
8713
8713
|
var parsedType6 = (data) => {
|
|
8714
8714
|
const t = typeof data;
|
|
8715
8715
|
switch (t) {
|
|
@@ -8825,7 +8825,7 @@ function tr_default() {
|
|
|
8825
8825
|
};
|
|
8826
8826
|
}
|
|
8827
8827
|
|
|
8828
|
-
//
|
|
8828
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/uk.js
|
|
8829
8829
|
var error39 = () => {
|
|
8830
8830
|
const Sizable = {
|
|
8831
8831
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -8943,12 +8943,12 @@ function uk_default() {
|
|
|
8943
8943
|
};
|
|
8944
8944
|
}
|
|
8945
8945
|
|
|
8946
|
-
//
|
|
8946
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ua.js
|
|
8947
8947
|
function ua_default() {
|
|
8948
8948
|
return uk_default();
|
|
8949
8949
|
}
|
|
8950
8950
|
|
|
8951
|
-
//
|
|
8951
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/ur.js
|
|
8952
8952
|
var error40 = () => {
|
|
8953
8953
|
const Sizable = {
|
|
8954
8954
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -9066,7 +9066,7 @@ function ur_default() {
|
|
|
9066
9066
|
};
|
|
9067
9067
|
}
|
|
9068
9068
|
|
|
9069
|
-
//
|
|
9069
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/vi.js
|
|
9070
9070
|
var error41 = () => {
|
|
9071
9071
|
const Sizable = {
|
|
9072
9072
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
@@ -9183,7 +9183,7 @@ function vi_default() {
|
|
|
9183
9183
|
};
|
|
9184
9184
|
}
|
|
9185
9185
|
|
|
9186
|
-
//
|
|
9186
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/zh-CN.js
|
|
9187
9187
|
var error42 = () => {
|
|
9188
9188
|
const Sizable = {
|
|
9189
9189
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
@@ -9300,7 +9300,7 @@ function zh_CN_default() {
|
|
|
9300
9300
|
};
|
|
9301
9301
|
}
|
|
9302
9302
|
|
|
9303
|
-
//
|
|
9303
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/zh-TW.js
|
|
9304
9304
|
var error43 = () => {
|
|
9305
9305
|
const Sizable = {
|
|
9306
9306
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
@@ -9418,7 +9418,7 @@ function zh_TW_default() {
|
|
|
9418
9418
|
};
|
|
9419
9419
|
}
|
|
9420
9420
|
|
|
9421
|
-
//
|
|
9421
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/locales/yo.js
|
|
9422
9422
|
var error44 = () => {
|
|
9423
9423
|
const Sizable = {
|
|
9424
9424
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
@@ -9534,7 +9534,7 @@ function yo_default() {
|
|
|
9534
9534
|
};
|
|
9535
9535
|
}
|
|
9536
9536
|
|
|
9537
|
-
//
|
|
9537
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/registries.js
|
|
9538
9538
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
9539
9539
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
9540
9540
|
var $ZodRegistry = class {
|
|
@@ -9585,7 +9585,7 @@ function registry() {
|
|
|
9585
9585
|
}
|
|
9586
9586
|
var globalRegistry = /* @__PURE__ */ registry();
|
|
9587
9587
|
|
|
9588
|
-
//
|
|
9588
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/api.js
|
|
9589
9589
|
function _string(Class2, params) {
|
|
9590
9590
|
return new Class2({
|
|
9591
9591
|
type: "string",
|
|
@@ -10467,7 +10467,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
10467
10467
|
return inst;
|
|
10468
10468
|
}
|
|
10469
10469
|
|
|
10470
|
-
//
|
|
10470
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/to-json-schema.js
|
|
10471
10471
|
var JSONSchemaGenerator = class {
|
|
10472
10472
|
constructor(params) {
|
|
10473
10473
|
this.counter = 0;
|
|
@@ -11287,10 +11287,10 @@ function isTransforming(_schema, _ctx) {
|
|
|
11287
11287
|
throw new Error(`Unknown schema type: ${def.type}`);
|
|
11288
11288
|
}
|
|
11289
11289
|
|
|
11290
|
-
//
|
|
11290
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/core/json-schema.js
|
|
11291
11291
|
var json_schema_exports = {};
|
|
11292
11292
|
|
|
11293
|
-
//
|
|
11293
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/classic/iso.js
|
|
11294
11294
|
var iso_exports = {};
|
|
11295
11295
|
__export(iso_exports, {
|
|
11296
11296
|
ZodISODate: () => ZodISODate,
|
|
@@ -11331,7 +11331,7 @@ function duration2(params) {
|
|
|
11331
11331
|
return _isoDuration(ZodISODuration, params);
|
|
11332
11332
|
}
|
|
11333
11333
|
|
|
11334
|
-
//
|
|
11334
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/classic/errors.js
|
|
11335
11335
|
var initializer2 = (inst, issues) => {
|
|
11336
11336
|
$ZodError.init(inst, issues);
|
|
11337
11337
|
inst.name = "ZodError";
|
|
@@ -11371,7 +11371,7 @@ var ZodRealError = $constructor("ZodError", initializer2, {
|
|
|
11371
11371
|
Parent: Error
|
|
11372
11372
|
});
|
|
11373
11373
|
|
|
11374
|
-
//
|
|
11374
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/classic/parse.js
|
|
11375
11375
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
11376
11376
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
11377
11377
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -11385,7 +11385,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
11385
11385
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
11386
11386
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
11387
11387
|
|
|
11388
|
-
//
|
|
11388
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/classic/schemas.js
|
|
11389
11389
|
var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
11390
11390
|
$ZodType.init(inst, def);
|
|
11391
11391
|
inst.def = def;
|
|
@@ -12366,7 +12366,7 @@ function preprocess(fn, schema) {
|
|
|
12366
12366
|
return pipe(transform(fn), schema);
|
|
12367
12367
|
}
|
|
12368
12368
|
|
|
12369
|
-
//
|
|
12369
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/classic/compat.js
|
|
12370
12370
|
var ZodIssueCode = {
|
|
12371
12371
|
invalid_type: "invalid_type",
|
|
12372
12372
|
too_big: "too_big",
|
|
@@ -12392,7 +12392,7 @@ var ZodFirstPartyTypeKind;
|
|
|
12392
12392
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
12393
12393
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
12394
12394
|
|
|
12395
|
-
//
|
|
12395
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/classic/coerce.js
|
|
12396
12396
|
var coerce_exports = {};
|
|
12397
12397
|
__export(coerce_exports, {
|
|
12398
12398
|
bigint: () => bigint3,
|
|
@@ -12417,17 +12417,17 @@ function date4(params) {
|
|
|
12417
12417
|
return _coercedDate(ZodDate, params);
|
|
12418
12418
|
}
|
|
12419
12419
|
|
|
12420
|
-
//
|
|
12420
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/node_modules/.bun/zod@4.1.8/node_modules/zod/v4/classic/external.js
|
|
12421
12421
|
config(en_default());
|
|
12422
12422
|
|
|
12423
|
-
//
|
|
12423
|
+
// ../../data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/packages/plugin/src/tool.ts
|
|
12424
12424
|
function tool(input) {
|
|
12425
12425
|
return input;
|
|
12426
12426
|
}
|
|
12427
12427
|
tool.schema = external_exports;
|
|
12428
12428
|
|
|
12429
12429
|
// src/tools/organize.ts
|
|
12430
|
-
import { readdir, readFile, writeFile, mkdir } from "fs/promises";
|
|
12430
|
+
import { readdir, readFile, writeFile, mkdir, unlink } from "fs/promises";
|
|
12431
12431
|
import { join } from "path";
|
|
12432
12432
|
import os from "os";
|
|
12433
12433
|
import { exec } from "child_process";
|
|
@@ -12643,6 +12643,15 @@ function generateAllSessionsHTML(sessionsData) {
|
|
|
12643
12643
|
async function saveHtmlToFile(html, name) {
|
|
12644
12644
|
const outputDir = join(os.homedir(), ".local/share/joinai-code/tool-output");
|
|
12645
12645
|
await mkdir(outputDir, { recursive: true });
|
|
12646
|
+
try {
|
|
12647
|
+
const files = await readdir(outputDir);
|
|
12648
|
+
const prefix = `conversation-report-${name}-`;
|
|
12649
|
+
const oldFiles = files.filter((f) => f.startsWith(prefix) && f.endsWith(".html"));
|
|
12650
|
+
for (const oldFile of oldFiles) {
|
|
12651
|
+
await unlink(join(outputDir, oldFile));
|
|
12652
|
+
}
|
|
12653
|
+
} catch (err) {
|
|
12654
|
+
}
|
|
12646
12655
|
const timestamp = Date.now();
|
|
12647
12656
|
const filename = `conversation-report-${name}-${timestamp}.html`;
|
|
12648
12657
|
const filepath = join(outputDir, filename);
|
|
@@ -12668,69 +12677,12 @@ function createTestTool() {
|
|
|
12668
12677
|
});
|
|
12669
12678
|
}
|
|
12670
12679
|
|
|
12671
|
-
// src/tools/organize-simple.ts
|
|
12672
|
-
import { readdir as readdir2 } from "fs/promises";
|
|
12673
|
-
import { join as join2 } from "path";
|
|
12674
|
-
import os2 from "os";
|
|
12675
|
-
function createOrganizeSimpleTool() {
|
|
12676
|
-
return tool({
|
|
12677
|
-
description: "\u7B80\u5316\u7248\u5BF9\u8BDD\u8BB0\u5F55\u5DE5\u5177\uFF0C\u4EC5\u5217\u51FA\u4F1A\u8BDD",
|
|
12678
|
-
args: {},
|
|
12679
|
-
async execute(args, context) {
|
|
12680
|
-
try {
|
|
12681
|
-
const storagePath = join2(os2.homedir(), ".local/share/joinai-code/storage/message");
|
|
12682
|
-
const sessions = await readdir2(storagePath);
|
|
12683
|
-
const sessionList = sessions.filter((s) => s.startsWith("ses_"));
|
|
12684
|
-
return `\u627E\u5230 ${sessionList.length} \u4E2A\u4F1A\u8BDD:
|
|
12685
|
-
${sessionList.slice(0, 5).join("\n")}`;
|
|
12686
|
-
} catch (error45) {
|
|
12687
|
-
return `\u9519\u8BEF: ${error45 instanceof Error ? error45.message : String(error45)}`;
|
|
12688
|
-
}
|
|
12689
|
-
}
|
|
12690
|
-
});
|
|
12691
|
-
}
|
|
12692
|
-
|
|
12693
|
-
// src/tools/organize-medium.ts
|
|
12694
|
-
import { readdir as readdir3 } from "fs/promises";
|
|
12695
|
-
import { join as join3 } from "path";
|
|
12696
|
-
import os3 from "os";
|
|
12697
|
-
function createOrganizeMediumTool() {
|
|
12698
|
-
return tool({
|
|
12699
|
-
description: "\u4E2D\u7B49\u7248\u672C\uFF0C\u8BFB\u53D6\u4F1A\u8BDD\u6570\u636E\u4F46\u4E0D\u751F\u6210HTML",
|
|
12700
|
-
args: {
|
|
12701
|
-
limit: tool.schema.number().optional().default(5).describe("\u9650\u5236\u5904\u7406\u7684\u4F1A\u8BDD\u6570\u91CF")
|
|
12702
|
-
},
|
|
12703
|
-
async execute(args, context) {
|
|
12704
|
-
try {
|
|
12705
|
-
const storagePath = join3(os3.homedir(), ".local/share/joinai-code/storage/message");
|
|
12706
|
-
const sessions = await readdir3(storagePath);
|
|
12707
|
-
const sessionList = sessions.filter((s) => s.startsWith("ses_")).slice(0, args.limit);
|
|
12708
|
-
let output = `\u5904\u7406 ${sessionList.length} \u4E2A\u4F1A\u8BDD:
|
|
12709
|
-
|
|
12710
|
-
`;
|
|
12711
|
-
for (const sessionId of sessionList) {
|
|
12712
|
-
const sessionPath = join3(storagePath, sessionId);
|
|
12713
|
-
const files = await readdir3(sessionPath);
|
|
12714
|
-
const jsonFiles = files.filter((f) => f.endsWith(".json"));
|
|
12715
|
-
output += `- ${sessionId}: ${jsonFiles.length} \u6761\u6D88\u606F
|
|
12716
|
-
`;
|
|
12717
|
-
}
|
|
12718
|
-
return output;
|
|
12719
|
-
} catch (error45) {
|
|
12720
|
-
return `\u9519\u8BEF: ${error45 instanceof Error ? error45.message : String(error45)}`;
|
|
12721
|
-
}
|
|
12722
|
-
}
|
|
12723
|
-
});
|
|
12724
|
-
}
|
|
12725
|
-
|
|
12726
12680
|
// src/index.ts
|
|
12727
12681
|
var ConversationReporterPlugin = async (ctx) => {
|
|
12728
12682
|
return {
|
|
12729
12683
|
tool: {
|
|
12730
12684
|
organize: createOrganizeTool(),
|
|
12731
|
-
test_plugin: createTestTool()
|
|
12732
|
-
organize_simple: createOrganizeSimpleTool(),
|
|
12733
|
-
organize_medium: createOrganizeMediumTool()
|
|
12685
|
+
test_plugin: createTestTool()
|
|
12734
12686
|
}
|
|
12735
12687
|
};
|
|
12736
12688
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xbtest-dashboard",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "对话记录整理和可视化插件",
|
|
5
5
|
"main": "./bundle/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -10,11 +10,7 @@
|
|
|
10
10
|
"bundle": "esbuild src/index.ts --bundle --platform=node --format=esm --outfile=bundle/index.js --external:child_process --external:fs --external:fs/promises --external:path --external:os --external:util",
|
|
11
11
|
"prepublishOnly": "npm run bundle"
|
|
12
12
|
},
|
|
13
|
-
"files": [
|
|
14
|
-
"bundle"
|
|
15
|
-
],
|
|
16
13
|
"keywords": [
|
|
17
|
-
"opencode",
|
|
18
14
|
"joinai-code",
|
|
19
15
|
"plugin",
|
|
20
16
|
"conversation",
|
|
@@ -23,8 +19,10 @@
|
|
|
23
19
|
],
|
|
24
20
|
"author": "",
|
|
25
21
|
"license": "MIT",
|
|
22
|
+
"files": [
|
|
23
|
+
"bundle"
|
|
24
|
+
],
|
|
26
25
|
"devDependencies": {
|
|
27
|
-
"@joinai-code/plugin": "file:../CMIT/joinai-code/data-reflow/joinai-code-yjy-feature-data-reflow-v0.2.0/packages/plugin",
|
|
28
26
|
"@types/node": "^22.0.0",
|
|
29
27
|
"esbuild": "^0.27.5",
|
|
30
28
|
"typescript": "^5.0.0"
|