wave-agent-sdk 0.0.3 → 0.0.4

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/agent.js CHANGED
@@ -316,13 +316,13 @@ export class Agent {
316
316
  // Add successful MemoryBlock to the last assistant message
317
317
  const memoryText = message.substring(1).trim();
318
318
  const typeLabel = type === "project" ? "Project Memory" : "User Memory";
319
- const storagePath = type === "project" ? "WAVE.md" : "user-memory.md";
319
+ const storagePath = type === "project" ? "AGENTS.md" : "user-memory.md";
320
320
  this.messageManager.addMemoryBlock(`${typeLabel}: ${memoryText}`, true, type, storagePath);
321
321
  }
322
322
  catch (error) {
323
323
  // Add failed MemoryBlock to the last assistant message
324
324
  const typeLabel = type === "project" ? "Project Memory" : "User Memory";
325
- const storagePath = type === "project" ? "WAVE.md" : "user-memory.md";
325
+ const storagePath = type === "project" ? "AGENTS.md" : "user-memory.md";
326
326
  this.messageManager.addMemoryBlock(`${typeLabel} add failed: ${error instanceof Error ? error.message : String(error)}`, false, type, storagePath);
327
327
  }
328
328
  }
@@ -10,7 +10,7 @@ export const addMemory = async (message, workdir) => {
10
10
  return;
11
11
  }
12
12
  try {
13
- const memoryFilePath = path.join(workdir, "WAVE.md");
13
+ const memoryFilePath = path.join(workdir, "AGENTS.md");
14
14
  // Format memory entry, starting with -, no timestamp
15
15
  const memoryEntry = `- ${message.substring(1).trim()}\n`;
16
16
  // Check if file exists
@@ -97,7 +97,7 @@ export const getUserMemoryContent = async () => {
97
97
  // Read project memory file content
98
98
  export const readMemoryFile = async (workdir) => {
99
99
  try {
100
- const memoryFilePath = path.join(workdir, "WAVE.md");
100
+ const memoryFilePath = path.join(workdir, "AGENTS.md");
101
101
  return await fs.readFile(memoryFilePath, "utf-8");
102
102
  }
103
103
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wave-agent-sdk",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "SDK for building AI-powered development tools and agents",
5
5
  "keywords": [
6
6
  "ai",
package/src/agent.ts CHANGED
@@ -456,7 +456,7 @@ export class Agent {
456
456
  // Add successful MemoryBlock to the last assistant message
457
457
  const memoryText = message.substring(1).trim();
458
458
  const typeLabel = type === "project" ? "Project Memory" : "User Memory";
459
- const storagePath = type === "project" ? "WAVE.md" : "user-memory.md";
459
+ const storagePath = type === "project" ? "AGENTS.md" : "user-memory.md";
460
460
 
461
461
  this.messageManager.addMemoryBlock(
462
462
  `${typeLabel}: ${memoryText}`,
@@ -467,7 +467,7 @@ export class Agent {
467
467
  } catch (error) {
468
468
  // Add failed MemoryBlock to the last assistant message
469
469
  const typeLabel = type === "project" ? "Project Memory" : "User Memory";
470
- const storagePath = type === "project" ? "WAVE.md" : "user-memory.md";
470
+ const storagePath = type === "project" ? "AGENTS.md" : "user-memory.md";
471
471
 
472
472
  this.messageManager.addMemoryBlock(
473
473
  `${typeLabel} add failed: ${
@@ -74,7 +74,7 @@ export interface CallAgentOptions {
74
74
  messages: ChatCompletionMessageParam[];
75
75
  sessionId?: string;
76
76
  abortSignal?: AbortSignal;
77
- memory?: string; // Memory content parameter, content read from WAVE.md
77
+ memory?: string; // Memory content parameter, content read from AGENTS.md
78
78
  workdir: string; // Current working directory
79
79
  tools?: ChatCompletionFunctionTool[]; // Tool configuration
80
80
  model?: string; // Custom model
@@ -16,7 +16,7 @@ export const addMemory = async (
16
16
  }
17
17
 
18
18
  try {
19
- const memoryFilePath = path.join(workdir, "WAVE.md");
19
+ const memoryFilePath = path.join(workdir, "AGENTS.md");
20
20
 
21
21
  // Format memory entry, starting with -, no timestamp
22
22
  const memoryEntry = `- ${message.substring(1).trim()}\n`;
@@ -113,7 +113,7 @@ export const getUserMemoryContent = async (): Promise<string> => {
113
113
  // Read project memory file content
114
114
  export const readMemoryFile = async (workdir: string): Promise<string> => {
115
115
  try {
116
- const memoryFilePath = path.join(workdir, "WAVE.md");
116
+ const memoryFilePath = path.join(workdir, "AGENTS.md");
117
117
  return await fs.readFile(memoryFilePath, "utf-8");
118
118
  } catch (error) {
119
119
  if ((error as NodeJS.ErrnoException).code === "ENOENT") {