Skip to content

Commit 71d9cae

Browse files
committed
remove logs
1 parent 2ed1a43 commit 71d9cae

File tree

7 files changed

+4
-26
lines changed

7 files changed

+4
-26
lines changed

packages/agent/src/swarm/shared/onboarding/initialize.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export async function initializeOnboarding(
207207

208208
// Check if onboarding state already exists
209209
let onboardingState = await runtime.cacheManager.get<OnboardingState>(onboardingCacheKey);
210-
console.log("*** ONBOARDING STATE ***", onboardingState);
210+
211211
if (!onboardingState) {
212212
// Initialize state with config settings
213213
onboardingState = {};
@@ -216,7 +216,6 @@ export async function initializeOnboarding(
216216
}
217217

218218
logger.info(`Created new onboarding state for server ${serverId}`);
219-
console.log("*** CREATED ONBOARDING STATE ***", onboardingState);
220219

221220
// Save with explicit cache key and verify it was saved
222221
await runtime.cacheManager.set(onboardingCacheKey, onboardingState);

packages/agent/src/swarm/shared/onboarding/provider.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const createOnboardingProvider = (_config: OnboardingConfig): Provider =>
7575
}
7676

7777
const serverId = serverOwnership.serverId;
78-
console.log("*** SERVER ID ***", serverId);
78+
7979
const onboardingCacheKey = ONBOARDING_CACHE_KEY.SERVER_STATE(serverId);
8080

8181
// Get current onboarding state
@@ -88,12 +88,7 @@ export const createOnboardingProvider = (_config: OnboardingConfig): Provider =>
8888
: "Configuration has not been completed yet.";
8989
}
9090

91-
// Generate appropriate status message based on context
92-
const status = generateStatusMessage(runtime, onboardingState, isOnboarding, state);
93-
94-
console.log("*** STATUS ***", status);
95-
96-
return status;
91+
return generateStatusMessage(runtime, onboardingState, isOnboarding, state);
9792
} catch (error) {
9893
logger.error(`Critical error in onboarding provider: ${error}`);
9994
return "Error retrieving configuration information. Please try again later.";

packages/core/src/cache.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,6 @@ export class CacheManager<CacheAdapter extends ICacheAdapter = ICacheAdapter>
8080
const value = parsed.value;
8181
const expires = parsed.expires;
8282

83-
console.log("*** GETTING CACHE ***", { value });
84-
console.log("data is", data);
85-
8683
if (!expires || expires > Date.now()) {
8784
return value;
8885
}
@@ -94,7 +91,7 @@ export class CacheManager<CacheAdapter extends ICacheAdapter = ICacheAdapter>
9491
}
9592

9693
async set<T>(key: string, value: T, opts?: CacheOptions): Promise<void> {
97-
console.log("*** SETTING CACHE ***", { value });
94+
9895
return this.adapter.set(
9996
key,
10097
JSON.stringify({ ...(opts || {}), value })

packages/core/src/generation.ts

-7
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ export async function generateText({
120120
stopSequences,
121121
});
122122

123-
console.log("*** TEXT ***", text);
124-
125123
return text;
126124
}
127125

@@ -169,8 +167,6 @@ export const generateObject = async ({
169167
throw new Error(errorMessage);
170168
}
171169

172-
console.log("*** GENERATE OBJECT ***", context);
173-
174170
// Special handling for enum output type
175171
if (output === "enum" && enumValues) {
176172
const response = await runtime.useModel(modelClass, {
@@ -407,9 +403,6 @@ export async function generateMessageResponse({
407403
stop: stopSequences,
408404
});
409405

410-
console.log("*** GENERATE MESSAGE ***", text);
411-
console.log("*** PARSED CONTENT ***", parseJSONObjectFromText(text));
412-
413406
const parsedContent = parseJSONObjectFromText(text) as Content;
414407

415408
if (!parsedContent) {

packages/core/src/runtime.ts

-2
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,6 @@ export class AgentRuntime implements IAgentRuntime {
420420
}
421421
}
422422

423-
logger.info("runtime initialize() plugin:", plugin);
424-
425423
if (plugin.actions) {
426424
for (const action of plugin.actions) {
427425
this.registerAction(action);

packages/plugin-discord/src/messages.ts

-2
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ export class MessageManager {
117117
const userIdUUID = stringToUuid(userId);
118118
const messageId = stringToUuid(`${message.id}-${this.runtime.agentId}`);
119119

120-
console.log("*** NEW MESSAGE ***", messageId, userIdUUID, this.runtime.agentId, roomId);
121-
122120
const newMessage: Memory = {
123121
id: messageId,
124122
userId: userIdUUID,

packages/plugin-twitter/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ const TwitterClientInterface: Client = {
138138
TWITTER_2FA_SECRET: (runtime.getSetting("TWITTER_2FA_SECRET") as string) || runtime.character.settings?.TWITTER_2FA_SECRET || runtime.character.secrets?.TWITTER_2FA_SECRET,
139139
};
140140

141-
console.log("*** twitterConfig", twitterConfig);
142-
143141
// Filter out undefined values
144142
const config = Object.fromEntries(
145143
Object.entries(twitterConfig).filter(([_, v]) => v !== undefined)

0 commit comments

Comments
 (0)