@arbidocs/sdk 0.3.145 → 0.3.146

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
@@ -6130,22 +6130,22 @@ async function runTask(arbi, taskId) {
6130
6130
  );
6131
6131
  }
6132
6132
 
6133
- // src/operations/notes.ts
6134
- var notes_exports = {};
6135
- __export(notes_exports, {
6136
- createNote: () => createNote,
6137
- deleteNote: () => deleteNote,
6138
- listNotes: () => listNotes,
6139
- remindNote: () => remindNote,
6140
- searchNotes: () => searchNotes,
6141
- updateNote: () => updateNote
6133
+ // src/operations/facts.ts
6134
+ var facts_exports = {};
6135
+ __export(facts_exports, {
6136
+ createFact: () => createFact,
6137
+ deleteFact: () => deleteFact,
6138
+ listFacts: () => listFacts,
6139
+ remindFact: () => remindFact,
6140
+ searchFacts: () => searchFacts,
6141
+ updateFact: () => updateFact
6142
6142
  });
6143
- async function createNote(arbi, body) {
6144
- return requireData(await arbi.fetch.POST("/v1/notes/", { body }), "Failed to create note");
6143
+ async function createFact(arbi, body) {
6144
+ return requireData(await arbi.fetch.POST("/v1/facts/", { body }), "Failed to create note");
6145
6145
  }
6146
- async function listNotes(arbi, options) {
6146
+ async function listFacts(arbi, options) {
6147
6147
  return requireData(
6148
- await arbi.fetch.GET("/v1/notes/list", {
6148
+ await arbi.fetch.GET("/v1/facts/list", {
6149
6149
  params: {
6150
6150
  query: {
6151
6151
  pinned_only: options?.pinnedOnly ?? false,
@@ -6158,28 +6158,28 @@ async function listNotes(arbi, options) {
6158
6158
  "Failed to list notes"
6159
6159
  );
6160
6160
  }
6161
- async function searchNotes(arbi, body) {
6162
- return requireData(await arbi.fetch.POST("/v1/notes/search", { body }), "Failed to search notes");
6161
+ async function searchFacts(arbi, body) {
6162
+ return requireData(await arbi.fetch.POST("/v1/facts/search", { body }), "Failed to search notes");
6163
6163
  }
6164
- async function updateNote(arbi, memoryId, body) {
6164
+ async function updateFact(arbi, factId, body) {
6165
6165
  return requireData(
6166
- await arbi.fetch.PATCH("/v1/notes/{note_ext_id}", {
6167
- params: { path: { note_ext_id: memoryId } },
6166
+ await arbi.fetch.PATCH("/v1/facts/{fact_ext_id}", {
6167
+ params: { path: { fact_ext_id: factId } },
6168
6168
  body
6169
6169
  }),
6170
6170
  "Failed to update note"
6171
6171
  );
6172
6172
  }
6173
- async function deleteNote(arbi, memoryId) {
6174
- const { error } = await arbi.fetch.DELETE("/v1/notes/{note_ext_id}", {
6175
- params: { path: { note_ext_id: memoryId } }
6173
+ async function deleteFact(arbi, factId) {
6174
+ const { error } = await arbi.fetch.DELETE("/v1/facts/{fact_ext_id}", {
6175
+ params: { path: { fact_ext_id: factId } }
6176
6176
  });
6177
6177
  if (error) throw new Error("Failed to delete note");
6178
6178
  }
6179
- async function remindNote(arbi, noteId, options = {}) {
6179
+ async function remindFact(arbi, factId, options = {}) {
6180
6180
  return requireData(
6181
- await arbi.fetch.POST("/v1/notes/{note_ext_id}/remind", {
6182
- params: { path: { note_ext_id: noteId } },
6181
+ await arbi.fetch.POST("/v1/facts/{fact_ext_id}/remind", {
6182
+ params: { path: { fact_ext_id: factId } },
6183
6183
  body: {
6184
6184
  remind_at: options.remindAt ?? null,
6185
6185
  lead_minutes: options.leadMinutes ?? null
@@ -6665,18 +6665,18 @@ var Arbi = class {
6665
6665
  delete: (taskId) => deleteTask(this.requireClient(), taskId),
6666
6666
  run: (taskId) => runTask(this.requireClient(), taskId)
6667
6667
  };
6668
- // ── Workspace notes ─────────────────────────────────────────────────
6669
- notes = {
6670
- create: (body) => createNote(this.requireClient(), body),
6668
+ // ── Workspace facts ─────────────────────────────────────────────────
6669
+ facts = {
6670
+ create: (body) => createFact(this.requireClient(), body),
6671
6671
  /** Pass `from`/`to`/`datedOnly` for the timeline view — dated notes only,
6672
6672
  * ordered by when they happened. */
6673
- list: (options) => listNotes(this.requireClient(), options),
6674
- search: (body) => searchNotes(this.requireClient(), body),
6675
- update: (noteId, body) => updateNote(this.requireClient(), noteId, body),
6676
- delete: (noteId) => deleteNote(this.requireClient(), noteId),
6673
+ list: (options) => listFacts(this.requireClient(), options),
6674
+ search: (body) => searchFacts(this.requireClient(), body),
6675
+ update: (factId, body) => updateFact(this.requireClient(), factId, body),
6676
+ delete: (factId) => deleteFact(this.requireClient(), factId),
6677
6677
  /** One-off reminder on a dated note: an explicit `remindAt`, or
6678
6678
  * `leadMinutes` before its date. */
6679
- remind: (noteId, options = {}) => remindNote(this.requireClient(), noteId, options)
6679
+ remind: (factId, options = {}) => remindFact(this.requireClient(), factId, options)
6680
6680
  };
6681
6681
  // ── Sessions ────────────────────────────────────────────────────────
6682
6682
  sessions = {
@@ -7854,6 +7854,7 @@ exports.dm = dm_exports;
7854
7854
  exports.doctags = doctags_exports;
7855
7855
  exports.documents = documents_exports;
7856
7856
  exports.documentsNode = documents_node_exports;
7857
+ exports.facts = facts_exports;
7857
7858
  exports.files = files_exports;
7858
7859
  exports.filterSkills = filterSkills;
7859
7860
  exports.formatAgentStepLabel = formatAgentStepLabel;
@@ -7870,7 +7871,6 @@ exports.getErrorMessage = getErrorMessage;
7870
7871
  exports.getRawWorkspaceKey = getRawWorkspaceKey;
7871
7872
  exports.health = health_exports;
7872
7873
  exports.listen = listen_exports;
7873
- exports.notes = notes_exports;
7874
7874
  exports.parseSSEEvents = parseSSEEvents;
7875
7875
  exports.parseSlashCommand = parseSlashCommand;
7876
7876
  exports.parseSlashTokenInProgress = parseSlashTokenInProgress;