milaidy 2.0.0-alpha.6 → 2.0.0-alpha.8
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/build-info.json +4 -3
- package/dist/{config-C2tN6BTZ.js → config-DUoNEQkh.js} +37 -37
- package/dist/{config-nxSNbXvy.js → config-DfM6YqIa.js} +37 -37
- package/dist/{config-DTYBj51q.js → config-kzksoMGs.js} +20 -20
- package/dist/drizzle-orm-5gtDKl28.js +1030 -0
- package/dist/drizzle-orm-BWTOinj6.js +1030 -0
- package/dist/drizzle-orm-C_7daWsR.js +1030 -0
- package/dist/{eliza-DThusd2P.js → eliza-Qk2V7-8l.js} +901 -240
- package/dist/eliza.js +898 -239
- package/dist/entry.js +1 -1
- package/dist/esm-BP9BgDsP.js +4260 -0
- package/dist/esm-CcgogWQR.js +4260 -0
- package/dist/esm-Cog6abJT.js +4260 -0
- package/dist/{wallet-LIhgbOKG.js → onboarding-names-BPc1wxGT.js} +2 -42
- package/dist/{onboarding-presets-DH1nrZ13.js → onboarding-presets-BXqELU9f.js} +182 -182
- package/dist/{paths-KHcc73Py.js → paths-MbOEHmUK.js} +1 -1
- package/dist/{plugin-installer-59Qx8E2h.js → plugin-installer-BCeaB5jb.js} +30 -8
- package/dist/plugin-installer-BknWNESx.js +4 -0
- package/dist/{plugin-installer-Ce68786n.js → plugin-installer-DcHsK37i.js} +30 -8
- package/dist/plugins-cli-BWo1-wbr.js +339 -0
- package/dist/{program-DJm1_C04.js → program-SmgVqJE1.js} +167 -35
- package/dist/{register.models-BiSWzG4I.js → register.models-BsgGoZJI.js} +1 -0
- package/dist/{register.subclis-CRLp87ti.js → register.subclis-BgXwUjoT.js} +5 -39
- package/dist/{registry-client-roa9jZYU.js → registry-client-C58kTK4J.js} +129 -35
- package/dist/{registry-client-Tzpu5cCi.js → registry-client-DNo23n6h.js} +134 -33
- package/dist/registry-client-LZR94o4F.js +3 -0
- package/dist/{restart-CpnakgH4.js → restart-BcXYQO1x.js} +1 -17
- package/dist/restart-DVf_LNfH.js +45 -0
- package/dist/{restart-DU02nZrb.js → restart-DXOi-0Rg.js} +6 -1
- package/dist/{run-main-CPNa-_Vb.js → run-main-BDCuUxOn.js} +3 -3
- package/dist/self-updater-B0rkRU4p.js +54 -0
- package/dist/self-updater-Br08mfZ9.js +56 -0
- package/dist/self-updater-M18iKSqT.js +191 -0
- package/dist/{server-tWzwVXc4.js → server-CKd8QBAF.js} +4397 -863
- package/dist/{server-DJfJ8ILV.js → server-D1We3MC7.js} +4399 -866
- package/dist/server.js +5461 -2021
- package/dist/skill-catalog-client-CcTD8w0p.js +118 -0
- package/dist/skill-catalog-client-CmdI1wFT.js +118 -0
- package/dist/skill-catalog-client-DedHeXJz.js +118 -0
- package/dist/skill-marketplace-C0WI_qHS.js +459 -0
- package/dist/skill-marketplace-Cliuo6P1.js +459 -0
- package/dist/skill-marketplace-Dd9jChDH.js +459 -0
- package/dist/theme-alzx3Edb.js +36 -0
- package/dist/update-checker-BWuB589E.js +127 -0
- package/dist/update-checker-Cs584_-W.js +6 -0
- package/dist/update-checker-e2LovPvD.js +171 -0
- package/dist/update-notifier-CTar3NLX.js +28 -0
- package/dist/version-B33hOpck.js +27 -0
- package/dist/version-BlC2I6vZ.js +120 -0
- package/dist/version-DTrAX7RV.js +27 -0
- package/dist/version-D_fccmE-.js +27 -0
- package/dist/version-compat-D8anaw39.js +76 -0
- package/dist/version-compat-DIQUsLgt.js +76 -0
- package/dist/{plugin-installer-CjZUkg-j.js → version-eQs5Jim1.js} +304 -9
- package/dist/wallet-Be5mJYbx.js +568 -0
- package/dist/wallet-C69gSeD3.js +585 -0
- package/dist/{workspace-DzG4aQOe.js → workspace-DpH6nRMP.js} +12 -3
- package/install.sh +167 -0
- package/package.json +25 -10
- package/plugins.json +454 -61
- package/skills/.cache/catalog.json +73060 -57703
- package/dist/plugins-cli-Blijw_TR.js +0 -158
- package/dist/registry-client-CpLDkBo9.js +0 -196
- package/dist/restart-el0bK7NU.js +0 -3
- package/dist/rolldown-runtime-Cbj13DAv.js +0 -20
- package/dist/wallet-1TrMIY4q.js +0 -662
- package/dist/workspace-BlqKSBdQ.js +0 -663
- /package/dist/{argv-fxEsiwqp.js → argv-DGna_sd0.js} +0 -0
- /package/dist/{milaidy-root-FGSivVa1.js → milaidy-root-CKA7wxfw.js} +0 -0
package/dist/build-info.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.0.0-alpha.
|
|
3
|
-
"
|
|
4
|
-
"
|
|
2
|
+
"version": "2.0.0-alpha.8",
|
|
3
|
+
"channel": "alpha",
|
|
4
|
+
"commit": "7dd1b8035045c1edf8da16e12825113d32d7b72b",
|
|
5
|
+
"builtAt": "2026-02-09T04:45:04.097Z"
|
|
5
6
|
}
|
|
@@ -3,30 +3,21 @@ import path from "node:path";
|
|
|
3
3
|
import JSON5 from "json5";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
|
|
6
|
-
//#region src/config/
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
if (!trimmed) return trimmed;
|
|
15
|
-
if (trimmed.startsWith("~")) {
|
|
16
|
-
const expanded = trimmed.replace(/^~(?=$|[\\/])/, os.homedir());
|
|
17
|
-
return path.resolve(expanded);
|
|
6
|
+
//#region src/config/env-vars.ts
|
|
7
|
+
function collectConfigEnvVars(cfg) {
|
|
8
|
+
const envConfig = cfg?.env;
|
|
9
|
+
if (!envConfig) return {};
|
|
10
|
+
const entries = {};
|
|
11
|
+
if (envConfig.vars) for (const [key, value] of Object.entries(envConfig.vars)) {
|
|
12
|
+
if (!value) continue;
|
|
13
|
+
entries[key] = value;
|
|
18
14
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
25
|
-
}
|
|
26
|
-
function resolveConfigPath(env = process.env, stateDirPath = resolveStateDir(env, os.homedir)) {
|
|
27
|
-
const override = env.MILAIDY_CONFIG_PATH?.trim();
|
|
28
|
-
if (override) return resolveUserPath(override);
|
|
29
|
-
return path.join(stateDirPath, CONFIG_FILENAME);
|
|
15
|
+
for (const [key, value] of Object.entries(envConfig)) {
|
|
16
|
+
if (key === "shellEnv" || key === "vars") continue;
|
|
17
|
+
if (typeof value !== "string" || !value.trim()) continue;
|
|
18
|
+
entries[key] = value;
|
|
19
|
+
}
|
|
20
|
+
return entries;
|
|
30
21
|
}
|
|
31
22
|
|
|
32
23
|
//#endregion
|
|
@@ -140,21 +131,30 @@ function resolveConfigIncludes(obj, configPath, resolver = defaultResolver) {
|
|
|
140
131
|
}
|
|
141
132
|
|
|
142
133
|
//#endregion
|
|
143
|
-
//#region src/config/
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
entries[key] = value;
|
|
134
|
+
//#region src/config/paths.ts
|
|
135
|
+
const STATE_DIRNAME = ".milaidy";
|
|
136
|
+
const CONFIG_FILENAME = "milaidy.json";
|
|
137
|
+
function stateDir(homedir = os.homedir) {
|
|
138
|
+
return path.join(homedir(), STATE_DIRNAME);
|
|
139
|
+
}
|
|
140
|
+
function resolveUserPath(input) {
|
|
141
|
+
const trimmed = input.trim();
|
|
142
|
+
if (!trimmed) return trimmed;
|
|
143
|
+
if (trimmed.startsWith("~")) {
|
|
144
|
+
const expanded = trimmed.replace(/^~(?=$|[\\/])/, os.homedir());
|
|
145
|
+
return path.resolve(expanded);
|
|
156
146
|
}
|
|
157
|
-
return
|
|
147
|
+
return path.resolve(trimmed);
|
|
148
|
+
}
|
|
149
|
+
function resolveStateDir(env = process.env, homedir = os.homedir) {
|
|
150
|
+
const override = env.MILAIDY_STATE_DIR?.trim();
|
|
151
|
+
if (override) return resolveUserPath(override);
|
|
152
|
+
return stateDir(homedir);
|
|
153
|
+
}
|
|
154
|
+
function resolveConfigPath(env = process.env, stateDirPath = resolveStateDir(env, os.homedir)) {
|
|
155
|
+
const override = env.MILAIDY_CONFIG_PATH?.trim();
|
|
156
|
+
if (override) return resolveUserPath(override);
|
|
157
|
+
return path.join(stateDirPath, CONFIG_FILENAME);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
//#endregion
|
|
@@ -3,30 +3,21 @@ import fs from "node:fs";
|
|
|
3
3
|
import JSON5 from "json5";
|
|
4
4
|
import os from "node:os";
|
|
5
5
|
|
|
6
|
-
//#region src/config/
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
if (!trimmed) return trimmed;
|
|
15
|
-
if (trimmed.startsWith("~")) {
|
|
16
|
-
const expanded = trimmed.replace(/^~(?=$|[\\/])/, os.homedir());
|
|
17
|
-
return path.resolve(expanded);
|
|
6
|
+
//#region src/config/env-vars.ts
|
|
7
|
+
function collectConfigEnvVars(cfg) {
|
|
8
|
+
const envConfig = cfg?.env;
|
|
9
|
+
if (!envConfig) return {};
|
|
10
|
+
const entries = {};
|
|
11
|
+
if (envConfig.vars) for (const [key, value] of Object.entries(envConfig.vars)) {
|
|
12
|
+
if (!value) continue;
|
|
13
|
+
entries[key] = value;
|
|
18
14
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
25
|
-
}
|
|
26
|
-
function resolveConfigPath(env = process.env, stateDirPath = resolveStateDir(env, os.homedir)) {
|
|
27
|
-
const override = env.MILAIDY_CONFIG_PATH?.trim();
|
|
28
|
-
if (override) return resolveUserPath(override);
|
|
29
|
-
return path.join(stateDirPath, CONFIG_FILENAME);
|
|
15
|
+
for (const [key, value] of Object.entries(envConfig)) {
|
|
16
|
+
if (key === "shellEnv" || key === "vars") continue;
|
|
17
|
+
if (typeof value !== "string" || !value.trim()) continue;
|
|
18
|
+
entries[key] = value;
|
|
19
|
+
}
|
|
20
|
+
return entries;
|
|
30
21
|
}
|
|
31
22
|
|
|
32
23
|
//#endregion
|
|
@@ -140,21 +131,30 @@ function resolveConfigIncludes(obj, configPath, resolver = defaultResolver) {
|
|
|
140
131
|
}
|
|
141
132
|
|
|
142
133
|
//#endregion
|
|
143
|
-
//#region src/config/
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
entries[key] = value;
|
|
134
|
+
//#region src/config/paths.ts
|
|
135
|
+
const STATE_DIRNAME = ".milaidy";
|
|
136
|
+
const CONFIG_FILENAME = "milaidy.json";
|
|
137
|
+
function stateDir(homedir = os.homedir) {
|
|
138
|
+
return path.join(homedir(), STATE_DIRNAME);
|
|
139
|
+
}
|
|
140
|
+
function resolveUserPath(input) {
|
|
141
|
+
const trimmed = input.trim();
|
|
142
|
+
if (!trimmed) return trimmed;
|
|
143
|
+
if (trimmed.startsWith("~")) {
|
|
144
|
+
const expanded = trimmed.replace(/^~(?=$|[\\/])/, os.homedir());
|
|
145
|
+
return path.resolve(expanded);
|
|
156
146
|
}
|
|
157
|
-
return
|
|
147
|
+
return path.resolve(trimmed);
|
|
148
|
+
}
|
|
149
|
+
function resolveStateDir(env = process.env, homedir = os.homedir) {
|
|
150
|
+
const override = env.MILAIDY_STATE_DIR?.trim();
|
|
151
|
+
if (override) return resolveUserPath(override);
|
|
152
|
+
return stateDir(homedir);
|
|
153
|
+
}
|
|
154
|
+
function resolveConfigPath(env = process.env, stateDirPath = resolveStateDir(env, os.homedir)) {
|
|
155
|
+
const override = env.MILAIDY_CONFIG_PATH?.trim();
|
|
156
|
+
if (override) return resolveUserPath(override);
|
|
157
|
+
return path.join(stateDirPath, CONFIG_FILENAME);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
//#endregion
|
|
@@ -1,9 +1,27 @@
|
|
|
1
|
-
import { t as __exportAll } from "./
|
|
2
|
-
import { n as resolveConfigPath } from "./paths-
|
|
1
|
+
import { t as __exportAll } from "./esm-BP9BgDsP.js";
|
|
2
|
+
import { n as resolveConfigPath } from "./paths-MbOEHmUK.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import JSON5 from "json5";
|
|
6
6
|
|
|
7
|
+
//#region src/config/env-vars.ts
|
|
8
|
+
function collectConfigEnvVars(cfg) {
|
|
9
|
+
const envConfig = cfg?.env;
|
|
10
|
+
if (!envConfig) return {};
|
|
11
|
+
const entries = {};
|
|
12
|
+
if (envConfig.vars) for (const [key, value] of Object.entries(envConfig.vars)) {
|
|
13
|
+
if (!value) continue;
|
|
14
|
+
entries[key] = value;
|
|
15
|
+
}
|
|
16
|
+
for (const [key, value] of Object.entries(envConfig)) {
|
|
17
|
+
if (key === "shellEnv" || key === "vars") continue;
|
|
18
|
+
if (typeof value !== "string" || !value.trim()) continue;
|
|
19
|
+
entries[key] = value;
|
|
20
|
+
}
|
|
21
|
+
return entries;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
7
25
|
//#region src/config/object-utils.ts
|
|
8
26
|
function isPlainObject(value) {
|
|
9
27
|
return typeof value === "object" && value !== null && !Array.isArray(value) && Object.prototype.toString.call(value) === "[object Object]";
|
|
@@ -113,24 +131,6 @@ function resolveConfigIncludes(obj, configPath, resolver = defaultResolver) {
|
|
|
113
131
|
return new IncludeProcessor(configPath, resolver).process(obj);
|
|
114
132
|
}
|
|
115
133
|
|
|
116
|
-
//#endregion
|
|
117
|
-
//#region src/config/env-vars.ts
|
|
118
|
-
function collectConfigEnvVars(cfg) {
|
|
119
|
-
const envConfig = cfg?.env;
|
|
120
|
-
if (!envConfig) return {};
|
|
121
|
-
const entries = {};
|
|
122
|
-
if (envConfig.vars) for (const [key, value] of Object.entries(envConfig.vars)) {
|
|
123
|
-
if (!value) continue;
|
|
124
|
-
entries[key] = value;
|
|
125
|
-
}
|
|
126
|
-
for (const [key, value] of Object.entries(envConfig)) {
|
|
127
|
-
if (key === "shellEnv" || key === "vars") continue;
|
|
128
|
-
if (typeof value !== "string" || !value.trim()) continue;
|
|
129
|
-
entries[key] = value;
|
|
130
|
-
}
|
|
131
|
-
return entries;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
134
|
//#endregion
|
|
135
135
|
//#region src/config/config.ts
|
|
136
136
|
var config_exports = /* @__PURE__ */ __exportAll({
|