fix conflicts with the new version
This commit is contained in:
parent
a57cc024c6
commit
140a640ebf
@ -1,7 +1,9 @@
|
|||||||
|
# example .env file for cognee docker integration
|
||||||
LLM_API_KEY=
|
LLM_API_KEY=
|
||||||
ENABLE_BACKEND_ACCESS_CONTROL="false"
|
ENABLE_BACKEND_ACCESS_CONTROL="false"
|
||||||
|
|
||||||
|
|
||||||
|
# ~/.clawdbot/ .env file for clawdbot gateway
|
||||||
COGNEE_API_KEY=
|
COGNEE_API_KEY=
|
||||||
|
|
||||||
CLAWDBOT_GATEWAY_TOKEN=
|
CLAWDBOT_GATEWAY_TOKEN=
|
||||||
@ -16,7 +16,8 @@ agents:
|
|||||||
|
|
||||||
# For Cognee Cloud, use:
|
# For Cognee Cloud, use:
|
||||||
# baseUrl: https://cognee--cognee-saas-backend-serve.modal.run
|
# baseUrl: https://cognee--cognee-saas-backend-serve.modal.run
|
||||||
# apiKey: your-api-key-here
|
# Cognee API key is stored in the .env file
|
||||||
|
apiKey: ${COGNEE_API_KEY}
|
||||||
|
|
||||||
# Dataset name for organizing memories
|
# Dataset name for organizing memories
|
||||||
datasetName: clawdbot
|
datasetName: clawdbot
|
||||||
|
|||||||
@ -12,3 +12,5 @@ export * from "./runtime-overrides.js";
|
|||||||
export * from "./types.js";
|
export * from "./types.js";
|
||||||
export { validateConfigObject, validateConfigObjectWithPlugins } from "./validation.js";
|
export { validateConfigObject, validateConfigObjectWithPlugins } from "./validation.js";
|
||||||
export { MoltbotSchema } from "./zod-schema.js";
|
export { MoltbotSchema } from "./zod-schema.js";
|
||||||
|
|
||||||
|
export type { MoltbotConfig as ClawdbotConfig } from "./types.js";
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import fs from "node:fs/promises";
|
import fs from "node:fs/promises";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import type { ClawdbotConfig } from "../config/config.js";
|
import type { MoltbotConfig } from "../config/config.js";
|
||||||
import { resolveAgentWorkspaceDir } from "../agents/agent-scope.js";
|
import { resolveAgentWorkspaceDir } from "../agents/agent-scope.js";
|
||||||
import { resolveSessionTranscriptsDirForAgent } from "../config/sessions/paths.js";
|
import { resolveSessionTranscriptsDirForAgent } from "../config/sessions/paths.js";
|
||||||
import { createSubsystemLogger } from "../logging/subsystem.js";
|
import { createSubsystemLogger } from "../logging/subsystem.js";
|
||||||
@ -40,7 +40,7 @@ export type CogneeMemorySource = "memory" | "sessions";
|
|||||||
|
|
||||||
export class CogneeMemoryProvider {
|
export class CogneeMemoryProvider {
|
||||||
private readonly client: CogneeClient;
|
private readonly client: CogneeClient;
|
||||||
private readonly cfg: ClawdbotConfig;
|
private readonly cfg: MoltbotConfig;
|
||||||
private readonly agentId: string;
|
private readonly agentId: string;
|
||||||
private readonly workspaceDir: string;
|
private readonly workspaceDir: string;
|
||||||
private readonly datasetName: string;
|
private readonly datasetName: string;
|
||||||
@ -53,7 +53,7 @@ export class CogneeMemoryProvider {
|
|||||||
private syncedFiles = new Map<string, string>(); // path -> hash
|
private syncedFiles = new Map<string, string>(); // path -> hash
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
cfg: ClawdbotConfig,
|
cfg: MoltbotConfig,
|
||||||
agentId: string,
|
agentId: string,
|
||||||
sources: Array<CogneeMemorySource>,
|
sources: Array<CogneeMemorySource>,
|
||||||
config: CogneeProviderConfig = {},
|
config: CogneeProviderConfig = {},
|
||||||
@ -412,7 +412,7 @@ export class CogneeMemoryProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function createCogneeProvider(
|
export async function createCogneeProvider(
|
||||||
cfg: ClawdbotConfig,
|
cfg: MoltbotConfig,
|
||||||
agentId: string,
|
agentId: string,
|
||||||
sources: Array<CogneeMemorySource>,
|
sources: Array<CogneeMemorySource>,
|
||||||
config: CogneeProviderConfig = {},
|
config: CogneeProviderConfig = {},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user