@elizaos/core 1.0.19 → 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/dist/{chunk-NILFKGGL.js → chunk-6DHKYLYG.js} +14 -22
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/specs/v1/index.js +1 -1
- package/dist/specs/v1/messages.js +1 -1
- package/dist/specs/v1/posts.js +1 -1
- package/dist/specs/v1/runtime.js +1 -1
- package/dist/specs/v1/uuid.js +1 -1
- package/dist/specs/v2/index.js +1 -1
- package/package.json +2 -2
|
@@ -803,10 +803,11 @@ var customLevels = {
|
|
|
803
803
|
var raw = parseBooleanFromText(process?.env?.LOG_JSON_FORMAT) || false;
|
|
804
804
|
var isDebugMode = (process?.env?.LOG_LEVEL || "").toLowerCase() === "debug";
|
|
805
805
|
var effectiveLogLevel = isDebugMode ? "debug" : process?.env?.DEFAULT_LOG_LEVEL || "info";
|
|
806
|
+
var showTimestamps = process?.env?.LOG_TIMESTAMPS !== void 0 ? parseBooleanFromText(process?.env?.LOG_TIMESTAMPS) : true;
|
|
806
807
|
var createPrettyConfig = () => ({
|
|
807
808
|
colorize: true,
|
|
808
|
-
translateTime: "yyyy-mm-dd HH:MM:ss",
|
|
809
|
-
ignore: "pid,hostname",
|
|
809
|
+
translateTime: showTimestamps ? "yyyy-mm-dd HH:MM:ss" : false,
|
|
810
|
+
ignore: showTimestamps ? "pid,hostname" : "pid,hostname,time",
|
|
810
811
|
levelColors: {
|
|
811
812
|
60: "red",
|
|
812
813
|
// fatal
|
|
@@ -931,8 +932,8 @@ var createLogger = (bindings = false) => {
|
|
|
931
932
|
// this is just a string, not a dynamic import
|
|
932
933
|
options: {
|
|
933
934
|
colorize: true,
|
|
934
|
-
translateTime: "SYS:standard",
|
|
935
|
-
ignore: "pid,hostname"
|
|
935
|
+
translateTime: showTimestamps ? "SYS:standard" : false,
|
|
936
|
+
ignore: showTimestamps ? "pid,hostname" : "pid,hostname,time"
|
|
936
937
|
}
|
|
937
938
|
};
|
|
938
939
|
}
|
|
@@ -3670,24 +3671,6 @@ var AgentRuntime = class {
|
|
|
3670
3671
|
timestamp: Date.now()
|
|
3671
3672
|
});
|
|
3672
3673
|
}
|
|
3673
|
-
await this.adapter.log({
|
|
3674
|
-
entityId: this.agentId,
|
|
3675
|
-
roomId: this.agentId,
|
|
3676
|
-
body: {
|
|
3677
|
-
modelType,
|
|
3678
|
-
modelKey,
|
|
3679
|
-
prompt: promptContent,
|
|
3680
|
-
runId: this.getCurrentRunId(),
|
|
3681
|
-
timestamp: Date.now(),
|
|
3682
|
-
executionTime: elapsedTime,
|
|
3683
|
-
provider: provider || this.models.get(modelKey)?.[0]?.provider || "unknown",
|
|
3684
|
-
actionContext: this.currentActionContext ? {
|
|
3685
|
-
actionName: this.currentActionContext.actionName,
|
|
3686
|
-
actionId: this.currentActionContext.actionId
|
|
3687
|
-
} : void 0
|
|
3688
|
-
},
|
|
3689
|
-
type: `prompt:${modelKey}`
|
|
3690
|
-
});
|
|
3691
3674
|
}
|
|
3692
3675
|
this.adapter.log({
|
|
3693
3676
|
entityId: this.agentId,
|
|
@@ -3699,6 +3682,15 @@ var AgentRuntime = class {
|
|
|
3699
3682
|
...typeof params === "object" && !Array.isArray(params) && params ? params : {},
|
|
3700
3683
|
prompt: promptContent
|
|
3701
3684
|
},
|
|
3685
|
+
prompt: promptContent,
|
|
3686
|
+
runId: this.getCurrentRunId(),
|
|
3687
|
+
timestamp: Date.now(),
|
|
3688
|
+
executionTime: elapsedTime,
|
|
3689
|
+
provider: provider || this.models.get(modelKey)?.[0]?.provider || "unknown",
|
|
3690
|
+
actionContext: this.currentActionContext ? {
|
|
3691
|
+
actionName: this.currentActionContext.actionName,
|
|
3692
|
+
actionId: this.currentActionContext.actionId
|
|
3693
|
+
} : void 0,
|
|
3702
3694
|
response: Array.isArray(response) && response.every((x) => typeof x === "number") ? "[array]" : response
|
|
3703
3695
|
},
|
|
3704
3696
|
type: `useModel:${modelKey}`
|
package/dist/index.d.ts
CHANGED
|
@@ -560,9 +560,9 @@ declare const characterSchema: z.ZodObject<{
|
|
|
560
560
|
}, "strip", z.ZodTypeAny, {
|
|
561
561
|
name?: string;
|
|
562
562
|
content?: {
|
|
563
|
-
thought?: string;
|
|
564
563
|
text?: string;
|
|
565
564
|
actions?: string[];
|
|
565
|
+
thought?: string;
|
|
566
566
|
providers?: string[];
|
|
567
567
|
source?: string;
|
|
568
568
|
target?: string;
|
|
@@ -576,9 +576,9 @@ declare const characterSchema: z.ZodObject<{
|
|
|
576
576
|
}, {
|
|
577
577
|
name?: string;
|
|
578
578
|
content?: {
|
|
579
|
-
thought?: string;
|
|
580
579
|
text?: string;
|
|
581
580
|
actions?: string[];
|
|
581
|
+
thought?: string;
|
|
582
582
|
providers?: string[];
|
|
583
583
|
source?: string;
|
|
584
584
|
target?: string;
|
|
@@ -645,9 +645,9 @@ declare const characterSchema: z.ZodObject<{
|
|
|
645
645
|
messageExamples?: {
|
|
646
646
|
name?: string;
|
|
647
647
|
content?: {
|
|
648
|
-
thought?: string;
|
|
649
648
|
text?: string;
|
|
650
649
|
actions?: string[];
|
|
650
|
+
thought?: string;
|
|
651
651
|
providers?: string[];
|
|
652
652
|
source?: string;
|
|
653
653
|
target?: string;
|
|
@@ -687,9 +687,9 @@ declare const characterSchema: z.ZodObject<{
|
|
|
687
687
|
messageExamples?: {
|
|
688
688
|
name?: string;
|
|
689
689
|
content?: {
|
|
690
|
-
thought?: string;
|
|
691
690
|
text?: string;
|
|
692
691
|
actions?: string[];
|
|
692
|
+
thought?: string;
|
|
693
693
|
providers?: string[];
|
|
694
694
|
source?: string;
|
|
695
695
|
target?: string;
|
package/dist/index.js
CHANGED
package/dist/specs/v1/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatMessages3 as formatMessages,
|
|
4
4
|
formatTimestamp3 as formatTimestamp,
|
|
5
5
|
getActorDetails
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-6DHKYLYG.js";
|
|
7
7
|
import "../../chunk-2HSL25IJ.js";
|
|
8
8
|
import "../../chunk-WO7Z3GE6.js";
|
|
9
9
|
import "../../chunk-U2ADTLZY.js";
|
package/dist/specs/v1/posts.js
CHANGED
package/dist/specs/v1/runtime.js
CHANGED
package/dist/specs/v1/uuid.js
CHANGED
package/dist/specs/v2/index.js
CHANGED
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
unsaltWorldSettings2 as unsaltWorldSettings,
|
|
79
79
|
updateWorldSettings2 as updateWorldSettings,
|
|
80
80
|
validateUuid2 as validateUuid
|
|
81
|
-
} from "../../chunk-
|
|
81
|
+
} from "../../chunk-6DHKYLYG.js";
|
|
82
82
|
import "../../chunk-2HSL25IJ.js";
|
|
83
83
|
import "../../chunk-WO7Z3GE6.js";
|
|
84
84
|
import "../../chunk-U2ADTLZY.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/core",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "d8fc722409fb26eea872a370d844543a9441d442"
|
|
79
79
|
}
|