Skip to content

Commit f38ac8e

Browse files
authored
Merge branch 'develop' into supress-initial-message
2 parents 41106f2 + 4b8746b commit f38ac8e

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"preinstall": "npx only-allow pnpm",
55
"build": "turbo run build --filter=!eliza-docs",
66
"build-docker": "turbo run build",
7+
"cleanstart": "if [ -f agent/data/db.sqlite ]; then rm agent/data/db.sqlite; fi && pnpm --filter \"@elizaos/agent\" start --isRoot",
8+
"cleanstart:debug": "if [ -f agent/data/db.sqlite ]; then rm agent/data/db.sqlite; fi && cross-env NODE_ENV=development VERBOSE=true DEBUG=eliza:* pnpm --filter \"@elizaos/agent\" start --isRoot",
79
"start": "pnpm --filter \"@elizaos/agent\" start --isRoot",
810
"start:client": "pnpm --dir client dev",
911
"start:debug": "cross-env NODE_ENV=development VERBOSE=true DEBUG=eliza:* pnpm --filter \"@elizaos/agent\" start --isRoot",

packages/plugin-bootstrap/src/evaluators/goal.ts

+2-8
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ async function handler(
5555
state: State | undefined,
5656
options: { [key: string]: unknown } = { onlyInProgress: true }
5757
): Promise<Goal[]> {
58-
// get goals
59-
let goalsData = await getGoals({
60-
runtime,
61-
roomId: message.roomId,
62-
onlyInProgress: options.onlyInProgress as boolean,
63-
});
6458

6559
state = (await runtime.composeState(message)) as State;
6660
const context = composeContext({
@@ -79,10 +73,10 @@ async function handler(
7973
const updates = parseJsonArrayFromText(response);
8074

8175
// get goals
82-
goalsData = await getGoals({
76+
const goalsData = await getGoals({
8377
runtime,
8478
roomId: message.roomId,
85-
onlyInProgress: true,
79+
onlyInProgress: options.onlyInProgress as boolean,
8680
});
8781

8882
// Apply the updates to the goals

0 commit comments

Comments
 (0)