@arbidocs/sdk 0.3.138 → 0.3.139

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/index.cjs CHANGED
@@ -6126,38 +6126,35 @@ async function runTask(arbi, taskId) {
6126
6126
  );
6127
6127
  }
6128
6128
 
6129
- // src/operations/memory.ts
6130
- async function createMemory(arbi, body) {
6131
- return requireData(await arbi.fetch.POST("/v1/memory/", { body }), "Failed to create memory");
6129
+ // src/operations/notes.ts
6130
+ async function createNote(arbi, body) {
6131
+ return requireData(await arbi.fetch.POST("/v1/notes/", { body }), "Failed to create note");
6132
6132
  }
6133
- async function listMemories(arbi, options) {
6133
+ async function listNotes(arbi, options) {
6134
6134
  return requireData(
6135
- await arbi.fetch.GET("/v1/memory/list", {
6135
+ await arbi.fetch.GET("/v1/notes/list", {
6136
6136
  params: { query: { pinned_only: options?.pinnedOnly ?? false } }
6137
6137
  }),
6138
- "Failed to list memories"
6138
+ "Failed to list notes"
6139
6139
  );
6140
6140
  }
6141
- async function searchMemories(arbi, body) {
6142
- return requireData(
6143
- await arbi.fetch.POST("/v1/memory/search", { body }),
6144
- "Failed to search memories"
6145
- );
6141
+ async function searchNotes(arbi, body) {
6142
+ return requireData(await arbi.fetch.POST("/v1/notes/search", { body }), "Failed to search notes");
6146
6143
  }
6147
- async function updateMemory(arbi, memoryId, body) {
6144
+ async function updateNote(arbi, memoryId, body) {
6148
6145
  return requireData(
6149
- await arbi.fetch.PATCH("/v1/memory/{memory_ext_id}", {
6150
- params: { path: { memory_ext_id: memoryId } },
6146
+ await arbi.fetch.PATCH("/v1/notes/{note_ext_id}", {
6147
+ params: { path: { note_ext_id: memoryId } },
6151
6148
  body
6152
6149
  }),
6153
- "Failed to update memory"
6150
+ "Failed to update note"
6154
6151
  );
6155
6152
  }
6156
- async function deleteMemory(arbi, memoryId) {
6157
- const { error } = await arbi.fetch.DELETE("/v1/memory/{memory_ext_id}", {
6158
- params: { path: { memory_ext_id: memoryId } }
6153
+ async function deleteNote(arbi, memoryId) {
6154
+ const { error } = await arbi.fetch.DELETE("/v1/notes/{note_ext_id}", {
6155
+ params: { path: { note_ext_id: memoryId } }
6159
6156
  });
6160
- if (error) throw new Error("Failed to delete memory");
6157
+ if (error) throw new Error("Failed to delete note");
6161
6158
  }
6162
6159
 
6163
6160
  // src/arbi.ts
@@ -6636,13 +6633,13 @@ var Arbi = class {
6636
6633
  delete: (taskId) => deleteTask(this.requireClient(), taskId),
6637
6634
  run: (taskId) => runTask(this.requireClient(), taskId)
6638
6635
  };
6639
- // ── Workspace memory ──────────────────────────────────────────────────
6640
- memory = {
6641
- create: (body) => createMemory(this.requireClient(), body),
6642
- list: (options) => listMemories(this.requireClient(), options),
6643
- search: (body) => searchMemories(this.requireClient(), body),
6644
- update: (memoryId, body) => updateMemory(this.requireClient(), memoryId, body),
6645
- delete: (memoryId) => deleteMemory(this.requireClient(), memoryId)
6636
+ // ── Workspace notes ─────────────────────────────────────────────────
6637
+ notes = {
6638
+ create: (body) => createNote(this.requireClient(), body),
6639
+ list: (options) => listNotes(this.requireClient(), options),
6640
+ search: (body) => searchNotes(this.requireClient(), body),
6641
+ update: (noteId, body) => updateNote(this.requireClient(), noteId, body),
6642
+ delete: (noteId) => deleteNote(this.requireClient(), noteId)
6646
6643
  };
6647
6644
  // ── Sessions ────────────────────────────────────────────────────────
6648
6645
  sessions = {