@best-agent/cli 0.0.2-beta.8 → 0.0.3-beta.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.
- package/LICENSE +21 -0
- package/README.md +44 -181
- package/dist/launcher.js +32 -0
- package/package.json +15 -27
- package/dist/best-agent-native-bridge.d.ts +0 -389
- package/dist/best-agent-native-bridge.js +0 -4645
- package/dist/cli-storage.d.ts +0 -5
- package/dist/cli-storage.js +0 -7
- package/dist/dimsdk/ask-user.d.ts +0 -21
- package/dist/dimsdk/ask-user.js +0 -131
- package/dist/dimsdk/cli/version.d.ts +0 -6
- package/dist/dimsdk/cli/version.js +0 -36
- package/dist/dimsdk/compat/archships/dim-agent/runtime-host.d.ts +0 -49
- package/dist/dimsdk/compat/archships/dim-agent/runtime-host.js +0 -215
- package/dist/dimsdk/compat/runtime-host.d.ts +0 -2
- package/dist/dimsdk/compat/runtime-host.js +0 -2
- package/dist/dimsdk/core/debug-log.d.ts +0 -8
- package/dist/dimsdk/core/debug-log.js +0 -100
- package/dist/dimsdk/core/env.d.ts +0 -26
- package/dist/dimsdk/core/env.js +0 -130
- package/dist/dimsdk/core/markdown/sanitize.d.ts +0 -2
- package/dist/dimsdk/core/markdown/sanitize.js +0 -43
- package/dist/dimsdk/core/markdown/wrap.d.ts +0 -9
- package/dist/dimsdk/core/markdown/wrap.js +0 -139
- package/dist/dimsdk/core/markdown.d.ts +0 -18
- package/dist/dimsdk/core/markdown.js +0 -62
- package/dist/dimsdk/core/model.d.ts +0 -273
- package/dist/dimsdk/core/model.js +0 -16
- package/dist/dimsdk/core/observability/perf-log.d.ts +0 -18
- package/dist/dimsdk/core/observability/perf-log.js +0 -236
- package/dist/dimsdk/core/store/agent-event-mappers.d.ts +0 -26
- package/dist/dimsdk/core/store/agent-event-mappers.js +0 -109
- package/dist/dimsdk/core/store/message-mutations.d.ts +0 -105
- package/dist/dimsdk/core/store/message-mutations.js +0 -1528
- package/dist/dimsdk/core/store/semantic-readers.d.ts +0 -2
- package/dist/dimsdk/core/store/semantic-readers.js +0 -4
- package/dist/dimsdk/core/store/transcript-projector.d.ts +0 -164
- package/dist/dimsdk/core/store/transcript-projector.js +0 -580
- package/dist/dimsdk/core/tool-metadata.d.ts +0 -12
- package/dist/dimsdk/core/tool-metadata.js +0 -70
- package/dist/dimsdk/core/transcript-part-id.d.ts +0 -6
- package/dist/dimsdk/core/transcript-part-id.js +0 -22
- package/dist/dimsdk/i18n/index.d.ts +0 -18
- package/dist/dimsdk/i18n/index.js +0 -141
- package/dist/dimsdk/i18n/locales/en.d.ts +0 -988
- package/dist/dimsdk/i18n/locales/en.js +0 -987
- package/dist/dimsdk/i18n/locales/index.d.ts +0 -1976
- package/dist/dimsdk/i18n/locales/index.js +0 -8
- package/dist/dimsdk/i18n/locales/zh-CN.d.ts +0 -988
- package/dist/dimsdk/i18n/locales/zh-CN.js +0 -987
- package/dist/dimsdk/i18n/types.d.ts +0 -13
- package/dist/dimsdk/i18n/types.js +0 -2
- package/dist/dimsdk/shared/value-normalizers.d.ts +0 -7
- package/dist/dimsdk/shared/value-normalizers.js +0 -48
- package/dist/dimsdk-tui.bundle-size.json +0 -169
- package/dist/dimsdk-tui.bundle.js +0 -330756
- package/dist/goatchain-adapter.d.ts +0 -41
- package/dist/goatchain-adapter.js +0 -499
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -1405
- package/dist/native-runtime-bridge.d.ts +0 -387
- package/dist/native-runtime-bridge.js +0 -4624
- package/dist/provider-config-env.d.ts +0 -7
- package/dist/provider-config-env.js +0 -286
- package/dist/provider-model-limit-index.generated.d.ts +0 -3
- package/dist/provider-model-limit-index.generated.js +0 -7818
- package/dist/provider-model-limits.d.ts +0 -8
- package/dist/provider-model-limits.js +0 -43
- package/dist/runtime.d.ts +0 -47
- package/dist/runtime.js +0 -516
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type en from './locales/en.js';
|
|
2
|
-
export type Locale = 'en' | 'zh-CN';
|
|
3
|
-
type DeepString<T> = T extends string ? string : T extends Record<string, unknown> ? {
|
|
4
|
-
[K in keyof T]: DeepString<T[K]>;
|
|
5
|
-
} : never;
|
|
6
|
-
export type Translations = DeepString<typeof en>;
|
|
7
|
-
type Join<K, P> = K extends string ? P extends string ? `${K}.${P}` : never : never;
|
|
8
|
-
type Paths<T> = T extends string ? never : {
|
|
9
|
-
[K in keyof T]: T[K] extends string ? K : T[K] extends Record<string, unknown> ? Join<K & string, Paths<T[K]>> : never;
|
|
10
|
-
}[keyof T];
|
|
11
|
-
export type TranslationKey = Paths<Translations>;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare function asRecord(value: unknown): Record<string, unknown>;
|
|
2
|
-
export declare function readTrimmedString(value: unknown): string | undefined;
|
|
3
|
-
export declare function parsePositiveInt(value: unknown): number | undefined;
|
|
4
|
-
export declare function readNonNegativeNumber(value: unknown): number | undefined;
|
|
5
|
-
export declare function serializeUnknown(value: unknown): string;
|
|
6
|
-
export declare function extractTextParts(value: unknown): string[];
|
|
7
|
-
//# sourceMappingURL=value-normalizers.d.ts.map
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
function isPlainRecord(value) {
|
|
2
|
-
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
3
|
-
}
|
|
4
|
-
export function asRecord(value) {
|
|
5
|
-
return isPlainRecord(value) ? value : {};
|
|
6
|
-
}
|
|
7
|
-
export function readTrimmedString(value) {
|
|
8
|
-
return typeof value === "string" && value.trim().length > 0 ? value.trim() : undefined;
|
|
9
|
-
}
|
|
10
|
-
export function parsePositiveInt(value) {
|
|
11
|
-
if (typeof value === "number" && Number.isFinite(value) && value > 0) {
|
|
12
|
-
return Math.floor(value);
|
|
13
|
-
}
|
|
14
|
-
if (typeof value === "string" && /^[1-9]\d*$/u.test(value.trim())) {
|
|
15
|
-
return Number(value.trim());
|
|
16
|
-
}
|
|
17
|
-
return undefined;
|
|
18
|
-
}
|
|
19
|
-
export function readNonNegativeNumber(value) {
|
|
20
|
-
if (typeof value === "number" && Number.isFinite(value) && value >= 0) {
|
|
21
|
-
return value;
|
|
22
|
-
}
|
|
23
|
-
if (typeof value === "string" && /^(?:0|[1-9]\d*)(?:\.\d+)?$/u.test(value.trim())) {
|
|
24
|
-
return Number(value.trim());
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
export function serializeUnknown(value) {
|
|
29
|
-
if (typeof value === "string")
|
|
30
|
-
return value;
|
|
31
|
-
try {
|
|
32
|
-
return JSON.stringify(value, null, 2);
|
|
33
|
-
}
|
|
34
|
-
catch {
|
|
35
|
-
return String(value);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
export function extractTextParts(value) {
|
|
39
|
-
if (!Array.isArray(value))
|
|
40
|
-
return [];
|
|
41
|
-
return value
|
|
42
|
-
.map((part) => {
|
|
43
|
-
const record = asRecord(part);
|
|
44
|
-
return typeof record.text === "string" ? record.text : "";
|
|
45
|
-
})
|
|
46
|
-
.filter(Boolean);
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=value-normalizers.js.map
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"generatedAt": "2026-06-02T07:57:42.177Z",
|
|
3
|
-
"outputPath": "apps/cli/dist/dimsdk-tui.bundle.js",
|
|
4
|
-
"bytes": 21132367,
|
|
5
|
-
"gzipBytes": 3759322,
|
|
6
|
-
"mapBytes": 32980151,
|
|
7
|
-
"topInputs": [
|
|
8
|
-
{
|
|
9
|
-
"path": "node_modules/.pnpm/@shikijs+langs@4.0.2/node_modules/@shikijs/langs/dist/emacs-lisp.mjs",
|
|
10
|
-
"bytesInOutput": 780191
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"path": "apps/cli/src/dimsdk/compat/archships/dim-agent/providers/models/aihubmix.json",
|
|
14
|
-
"bytesInOutput": 668386
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"path": "../vue-tui/node_modules/.pnpm/stream-markdown-parser@1.0.0/node_modules/stream-markdown-parser/dist/index.js",
|
|
18
|
-
"bytesInOutput": 652134
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"path": "node_modules/.pnpm/@shikijs+engine-oniguruma@4.0.2/node_modules/@shikijs/engine-oniguruma/dist/wasm-inlined.mjs",
|
|
22
|
-
"bytesInOutput": 622597
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"path": "../vue-tui/node_modules/.pnpm/@babel+parser@7.29.3/node_modules/@babel/parser/lib/index.js",
|
|
26
|
-
"bytesInOutput": 571217
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"path": "node_modules/.pnpm/@babel+parser@7.29.3/node_modules/@babel/parser/lib/index.js",
|
|
30
|
-
"bytesInOutput": 571205
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"path": "node_modules/.pnpm/@shikijs+langs@4.0.2/node_modules/@shikijs/langs/dist/cpp.mjs",
|
|
34
|
-
"bytesInOutput": 402268
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"path": "../vue-tui/dist/cli.js",
|
|
38
|
-
"bytesInOutput": 371722
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"path": "../vue-tui/node_modules/.pnpm/@vue+runtime-core@3.5.35/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js",
|
|
42
|
-
"bytesInOutput": 299170
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"path": "node_modules/.pnpm/@vue+runtime-core@3.5.35/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js",
|
|
46
|
-
"bytesInOutput": 299156
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"path": "../vue-tui/dist/tlog-theme-CvLFNMwk.js",
|
|
50
|
-
"bytesInOutput": 286930
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"path": "node_modules/.pnpm/@shikijs+langs@4.0.2/node_modules/@shikijs/langs/dist/wolfram.mjs",
|
|
54
|
-
"bytesInOutput": 262682
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"path": "../vue-tui/node_modules/.pnpm/@vue+compiler-core@3.5.35/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js",
|
|
58
|
-
"bytesInOutput": 232695
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"path": "node_modules/.pnpm/@vue+compiler-core@3.5.35/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js",
|
|
62
|
-
"bytesInOutput": 232678
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"path": "../vue-tui/node_modules/.pnpm/@vue+runtime-core@3.5.35/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js",
|
|
66
|
-
"bytesInOutput": 232646
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"path": "node_modules/.pnpm/@vue+runtime-core@3.5.35/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js",
|
|
70
|
-
"bytesInOutput": 232632
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"path": "../vue-tui/node_modules/.pnpm/@vue+compiler-core@3.5.35/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js",
|
|
74
|
-
"bytesInOutput": 227585
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"path": "node_modules/.pnpm/@vue+compiler-core@3.5.35/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js",
|
|
78
|
-
"bytesInOutput": 227568
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"path": "node_modules/.pnpm/@shikijs+langs@4.0.2/node_modules/@shikijs/langs/dist/cpp-macro.mjs",
|
|
82
|
-
"bytesInOutput": 224438
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"path": "../vue-tui/dist/TTree-Ba1rSJtx.js",
|
|
86
|
-
"bytesInOutput": 216766
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"path": "../vue-tui/dist/TSelect-Cc7kZxr3.js",
|
|
90
|
-
"bytesInOutput": 208633
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
"path": "apps/cli/src/dimsdk/compat/archships/dim-agent/providers/models/openrouter.json",
|
|
94
|
-
"bytesInOutput": 193239
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"path": "node_modules/.pnpm/@shikijs+langs@4.0.2/node_modules/@shikijs/langs/dist/vue-vine.mjs",
|
|
98
|
-
"bytesInOutput": 190365
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"path": "node_modules/.pnpm/@shikijs+langs@4.0.2/node_modules/@shikijs/langs/dist/angular-ts.mjs",
|
|
102
|
-
"bytesInOutput": 181968
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"path": "node_modules/.pnpm/@shikijs+langs@4.0.2/node_modules/@shikijs/langs/dist/typescript.mjs",
|
|
106
|
-
"bytesInOutput": 181389
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"path": "node_modules/.pnpm/@shikijs+langs@4.0.2/node_modules/@shikijs/langs/dist/jsx.mjs",
|
|
110
|
-
"bytesInOutput": 178052
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"path": "node_modules/.pnpm/@shikijs+langs@4.0.2/node_modules/@shikijs/langs/dist/tsx.mjs",
|
|
114
|
-
"bytesInOutput": 175796
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"path": "node_modules/.pnpm/@shikijs+langs@4.0.2/node_modules/@shikijs/langs/dist/javascript.mjs",
|
|
118
|
-
"bytesInOutput": 175133
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"path": "apps/cli/src/native-runtime-bridge.ts",
|
|
122
|
-
"bytesInOutput": 174417
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"path": "node_modules/.pnpm/@shikijs+langs@4.0.2/node_modules/@shikijs/langs/dist/objective-cpp.mjs",
|
|
126
|
-
"bytesInOutput": 172305
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"path": "node_modules/.pnpm/@shikijs+langs@4.0.2/node_modules/@shikijs/langs/dist/mdx.mjs",
|
|
130
|
-
"bytesInOutput": 136377
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"path": "node_modules/.pnpm/@shikijs+langs@4.0.2/node_modules/@shikijs/langs/dist/asciidoc.mjs",
|
|
134
|
-
"bytesInOutput": 131825
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
"path": "../vue-tui/dist/vue.js",
|
|
138
|
-
"bytesInOutput": 124091
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"path": "node_modules/.pnpm/zod@4.3.5/node_modules/zod/v3/types.js",
|
|
142
|
-
"bytesInOutput": 115426
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"path": "apps/cli/src/provider-model-limit-index.generated.ts",
|
|
146
|
-
"bytesInOutput": 112726
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"path": "node_modules/.pnpm/@shikijs+langs@4.0.2/node_modules/@shikijs/langs/dist/php.mjs",
|
|
150
|
-
"bytesInOutput": 111564
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"path": "node_modules/.pnpm/@shikijs+vscode-textmate@10.0.2/node_modules/@shikijs/vscode-textmate/dist/index.js",
|
|
154
|
-
"bytesInOutput": 108147
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"path": "apps/cli/src/dimsdk/compat/archships/dim-agent/providers/models/zenmux.json",
|
|
158
|
-
"bytesInOutput": 106733
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"path": "node_modules/.pnpm/@shikijs+langs@4.0.2/node_modules/@shikijs/langs/dist/objective-c.mjs",
|
|
162
|
-
"bytesInOutput": 105732
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"path": "node_modules/.pnpm/@shikijs+langs@4.0.2/node_modules/@shikijs/langs/dist/blade.mjs",
|
|
166
|
-
"bytesInOutput": 105519
|
|
167
|
-
}
|
|
168
|
-
]
|
|
169
|
-
}
|