@elizaos/autonomous 2.0.0-alpha.47 → 2.0.0-alpha.49
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/.turbo/turbo-build.log +19 -0
- package/dist/packages/autonomous/src/config/config.d.ts +6 -3
- package/dist/packages/autonomous/src/config/config.d.ts.map +1 -1
- package/dist/packages/autonomous/src/config/config.js +10 -7
- package/dist/packages/autonomous/src/config/index.d.ts +1 -1
- package/dist/packages/autonomous/src/config/index.d.ts.map +1 -1
- package/dist/packages/autonomous/src/config/index.js +1 -1
- package/dist/packages/autonomous/src/config/types.d.ts +1 -1
- package/dist/packages/autonomous/src/config/types.d.ts.map +1 -1
- package/dist/packages/autonomous/src/config/types.eliza.d.ts +637 -0
- package/dist/packages/autonomous/src/config/types.eliza.d.ts.map +1 -0
- package/dist/packages/autonomous/src/config/types.eliza.js +1 -0
- package/dist/packages/autonomous/src/config/types.js +1 -1
- package/dist/packages/autonomous/src/config/zod-schema.core.d.ts +3 -3
- package/dist/packages/autonomous/src/runtime/eliza-plugin.d.ts +18 -0
- package/dist/packages/autonomous/src/runtime/eliza-plugin.d.ts.map +1 -0
- package/dist/packages/autonomous/src/runtime/eliza-plugin.js +130 -0
- package/dist/packages/autonomous/src/version-resolver.d.ts +3 -1
- package/dist/packages/autonomous/src/version-resolver.d.ts.map +1 -1
- package/dist/packages/autonomous/src/version-resolver.js +5 -3
- package/package.json +15 -6
- package/src/config/config.ts +15 -10
- package/src/config/index.ts +1 -1
- package/src/config/types.eliza.ts +794 -0
- package/src/config/types.ts +1 -1
- package/src/runtime/eliza-plugin.ts +181 -0
- package/src/version-resolver.ts +7 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -32,6 +32,22 @@ src/api/nft-verify.ts(15,24): error TS2307: Cannot find module '@elizaos/core' o
|
|
|
32
32
|
src/api/permissions-routes.ts(1,35): error TS2307: Cannot find module '@elizaos/core' or its corresponding type declarations.
|
|
33
33
|
src/api/registry-service.ts(11,24): error TS2307: Cannot find module '@elizaos/core' or its corresponding type declarations.
|
|
34
34
|
src/api/server.ts(31,8): error TS2307: Cannot find module '@elizaos/core' or its corresponding type declarations.
|
|
35
|
+
src/api/server.ts(7547,41): error TS2345: Argument of type 'MiladyConfig' is not assignable to parameter of type 'Partial<MiladyConfig>'.
|
|
36
|
+
The types of 'ui.theme' are incompatible between these types.
|
|
37
|
+
Type '"milady" | "eliza" | "qt314" | "web2000" | "programmer" | "haxor" | "psycho"' is not assignable to type '"milady" | "qt314" | "web2000" | "programmer" | "haxor" | "psycho"'.
|
|
38
|
+
Type '"eliza"' is not assignable to type '"milady" | "qt314" | "web2000" | "programmer" | "haxor" | "psycho"'.
|
|
39
|
+
src/api/server.ts(7581,41): error TS2345: Argument of type 'MiladyConfig' is not assignable to parameter of type 'Partial<MiladyConfig>'.
|
|
40
|
+
The types of 'ui.theme' are incompatible between these types.
|
|
41
|
+
Type '"milady" | "eliza" | "qt314" | "web2000" | "programmer" | "haxor" | "psycho"' is not assignable to type '"milady" | "qt314" | "web2000" | "programmer" | "haxor" | "psycho"'.
|
|
42
|
+
Type '"eliza"' is not assignable to type '"milady" | "qt314" | "web2000" | "programmer" | "haxor" | "psycho"'.
|
|
43
|
+
src/api/server.ts(7607,41): error TS2345: Argument of type 'MiladyConfig' is not assignable to parameter of type 'Partial<MiladyConfig>'.
|
|
44
|
+
The types of 'ui.theme' are incompatible between these types.
|
|
45
|
+
Type '"milady" | "eliza" | "qt314" | "web2000" | "programmer" | "haxor" | "psycho"' is not assignable to type '"milady" | "qt314" | "web2000" | "programmer" | "haxor" | "psycho"'.
|
|
46
|
+
Type '"eliza"' is not assignable to type '"milady" | "qt314" | "web2000" | "programmer" | "haxor" | "psycho"'.
|
|
47
|
+
src/api/server.ts(7633,41): error TS2345: Argument of type 'MiladyConfig' is not assignable to parameter of type 'Partial<MiladyConfig>'.
|
|
48
|
+
The types of 'ui.theme' are incompatible between these types.
|
|
49
|
+
Type '"milady" | "eliza" | "qt314" | "web2000" | "programmer" | "haxor" | "psycho"' is not assignable to type '"milady" | "qt314" | "web2000" | "programmer" | "haxor" | "psycho"'.
|
|
50
|
+
Type '"eliza"' is not assignable to type '"milady" | "qt314" | "web2000" | "programmer" | "haxor" | "psycho"'.
|
|
35
51
|
src/api/server.ts(9377,15): error TS2339: Property 'includes' does not exist on type 'unknown'.
|
|
36
52
|
src/api/server.ts(9377,53): error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'string'.
|
|
37
53
|
src/api/server.ts(14582,11): error TS2307: Cannot find module '@elizaos/plugin-agent-orchestrator' or its corresponding type declarations.
|
|
@@ -56,6 +72,7 @@ src/cloud/cloud-manager.ts(6,24): error TS2307: Cannot find module '@elizaos/cor
|
|
|
56
72
|
src/cloud/reconnect.ts(5,24): error TS2307: Cannot find module '@elizaos/core' or its corresponding type declarations.
|
|
57
73
|
src/config/types.agent-defaults.ts(6,8): error TS2307: Cannot find module '@elizaos/core' or its corresponding type declarations.
|
|
58
74
|
src/config/types.agents.ts(5,8): error TS2307: Cannot find module '@elizaos/core' or its corresponding type declarations.
|
|
75
|
+
src/config/types.eliza.ts(1,61): error TS2307: Cannot find module '@elizaos/core' or its corresponding type declarations.
|
|
59
76
|
src/config/types.messages.ts(1,61): error TS2307: Cannot find module '@elizaos/core' or its corresponding type declarations.
|
|
60
77
|
src/config/types.milady.ts(1,61): error TS2307: Cannot find module '@elizaos/core' or its corresponding type declarations.
|
|
61
78
|
src/config/types.tools.ts(7,8): error TS2307: Cannot find module '@elizaos/core' or its corresponding type declarations.
|
|
@@ -75,6 +92,8 @@ src/providers/workspace.ts(5,28): error TS2307: Cannot find module '@elizaos/cor
|
|
|
75
92
|
src/runtime/agent-event-service.ts(1,27): error TS2307: Cannot find module '@elizaos/core' or its corresponding type declarations.
|
|
76
93
|
src/runtime/cloud-onboarding.ts(10,24): error TS2307: Cannot find module '@elizaos/core' or its corresponding type declarations.
|
|
77
94
|
src/runtime/custom-actions.ts(19,60): error TS2307: Cannot find module '@elizaos/core' or its corresponding type declarations.
|
|
95
|
+
src/runtime/eliza-plugin.ts(17,8): error TS2307: Cannot find module '@elizaos/core' or its corresponding type declarations.
|
|
96
|
+
src/runtime/eliza-plugin.ts(18,35): error TS2307: Cannot find module '@elizaos/core' or its corresponding type declarations.
|
|
78
97
|
src/runtime/eliza.ts(57,8): error TS2307: Cannot find module '@elizaos/core' or its corresponding type declarations.
|
|
79
98
|
src/runtime/eliza.ts(58,42): error TS2307: Cannot find module '@elizaos/plugin-agent-orchestrator' or its corresponding type declarations.
|
|
80
99
|
src/runtime/eliza.ts(819,32): error TS2339: Property 'default' does not exist on type 'never'.
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ElizaConfig } from "./types";
|
|
2
2
|
export * from "./types";
|
|
3
|
-
export declare function
|
|
4
|
-
export declare function
|
|
3
|
+
export declare function loadElizaConfig(): ElizaConfig;
|
|
4
|
+
export declare function saveElizaConfig(config: ElizaConfig): void;
|
|
5
5
|
export declare function configFileExists(): boolean;
|
|
6
|
+
export declare const loadMiladyConfig: typeof loadElizaConfig;
|
|
7
|
+
export declare const saveMiladyConfig: typeof saveElizaConfig;
|
|
8
|
+
export type { ElizaConfig as MiladyConfig };
|
|
6
9
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/config/config.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/config/config.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,cAAc,SAAS,CAAC;AAExB,wBAAgB,eAAe,IAAI,WAAW,CAsF7C;AAeD,wBAAgB,eAAe,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAiCzD;AAED,wBAAgB,gBAAgB,IAAI,OAAO,CAE1C;AAGD,eAAO,MAAM,gBAAgB,wBAAkB,CAAC;AAChD,eAAO,MAAM,gBAAgB,wBAAkB,CAAC;AAChD,YAAY,EAAE,WAAW,IAAI,YAAY,EAAE,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { collectConfigEnvVars } from "./env-vars";
|
|
|
5
5
|
import { resolveConfigIncludes } from "./includes";
|
|
6
6
|
import { resolveConfigPath, resolveUserPath } from "./paths";
|
|
7
7
|
export * from "./types";
|
|
8
|
-
export function
|
|
8
|
+
export function loadElizaConfig() {
|
|
9
9
|
const configPath = resolveConfigPath();
|
|
10
10
|
let raw;
|
|
11
11
|
try {
|
|
@@ -29,7 +29,7 @@ export function loadMiladyConfig() {
|
|
|
29
29
|
fs.writeFileSync(skillsJsonPath, JSON.stringify({ extraDirs: [] }, null, 2), "utf-8");
|
|
30
30
|
}
|
|
31
31
|
catch (err) {
|
|
32
|
-
console.warn(`[
|
|
32
|
+
console.warn(`[eliza] Failed to auto-create ~/.eliza/skills.json: ${err instanceof Error ? err.message : String(err)}`);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
if (fs.existsSync(skillsJsonPath)) {
|
|
@@ -57,7 +57,7 @@ export function loadMiladyConfig() {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
catch (err) {
|
|
60
|
-
console.warn(`[
|
|
60
|
+
console.warn(`[eliza] Failed to load ~/.eliza/skills.json: ${err instanceof Error ? err.message : String(err)}`);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
if (!resolved.logging) {
|
|
@@ -89,7 +89,7 @@ function stripIncludeDirectives(value) {
|
|
|
89
89
|
}
|
|
90
90
|
return result;
|
|
91
91
|
}
|
|
92
|
-
export function
|
|
92
|
+
export function saveElizaConfig(config) {
|
|
93
93
|
const configPath = resolveConfigPath();
|
|
94
94
|
const dir = path.dirname(configPath);
|
|
95
95
|
if (!fs.existsSync(dir)) {
|
|
@@ -97,7 +97,7 @@ export function saveMiladyConfig(config) {
|
|
|
97
97
|
}
|
|
98
98
|
const sanitized = stripIncludeDirectives(config);
|
|
99
99
|
if (!sanitized || typeof sanitized !== "object") {
|
|
100
|
-
throw new Error(`[
|
|
100
|
+
throw new Error(`[eliza-config] stripIncludeDirectives returned invalid result: ${typeof sanitized}`);
|
|
101
101
|
}
|
|
102
102
|
const content = `${JSON.stringify(sanitized, null, 2)}\n`;
|
|
103
103
|
fs.writeFileSync(configPath, content, {
|
|
@@ -105,13 +105,16 @@ export function saveMiladyConfig(config) {
|
|
|
105
105
|
mode: 0o600,
|
|
106
106
|
});
|
|
107
107
|
if (!fs.existsSync(configPath)) {
|
|
108
|
-
throw new Error(`[
|
|
108
|
+
throw new Error(`[eliza-config] Config file missing after write: ${configPath}`);
|
|
109
109
|
}
|
|
110
110
|
const stat = fs.statSync(configPath);
|
|
111
111
|
if (stat.size === 0) {
|
|
112
|
-
throw new Error(`[
|
|
112
|
+
throw new Error(`[eliza-config] Config file is empty after write: ${configPath}`);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
export function configFileExists() {
|
|
116
116
|
return fs.existsSync(resolveConfigPath());
|
|
117
117
|
}
|
|
118
|
+
// Milady-branded aliases for downstream fork compatibility
|
|
119
|
+
export const loadMiladyConfig = loadElizaConfig;
|
|
120
|
+
export const saveMiladyConfig = saveElizaConfig;
|
|
@@ -10,7 +10,7 @@ export * from "./types.agent-defaults";
|
|
|
10
10
|
export * from "./types.agents";
|
|
11
11
|
export * from "./types.gateway";
|
|
12
12
|
export * from "./types.hooks";
|
|
13
|
+
export * from "./types.eliza";
|
|
13
14
|
export * from "./types.messages";
|
|
14
|
-
export * from "./types.milady";
|
|
15
15
|
export * from "./types.tools";
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC"}
|
|
@@ -10,6 +10,6 @@ export * from "./types.agent-defaults";
|
|
|
10
10
|
export * from "./types.agents";
|
|
11
11
|
export * from "./types.gateway";
|
|
12
12
|
export * from "./types.hooks";
|
|
13
|
+
export * from "./types.eliza";
|
|
13
14
|
export * from "./types.messages";
|
|
14
|
-
export * from "./types.milady";
|
|
15
15
|
export * from "./types.tools";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from "./types.agent-defaults";
|
|
2
2
|
export * from "./types.agents";
|
|
3
|
+
export * from "./types.eliza";
|
|
3
4
|
export * from "./types.gateway";
|
|
4
5
|
export * from "./types.hooks";
|
|
5
6
|
export * from "./types.messages";
|
|
6
|
-
export * from "./types.milady";
|
|
7
7
|
export * from "./types.tools";
|
|
8
8
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/config/types.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/config/types.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC"}
|