@arbidocs/sdk 0.3.145 → 0.3.147

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.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { p as ConfigStore, m as CliConfig, n as CliCredentials, C as ChatSession, a9 as SkippedFile, ai as UploadResult, j as AuthHeaders, ae as UploadBatchResult, ah as UploadOptions, af as UploadDirectOptions, ag as UploadDirectResult, a7 as SUPPORTED_EXTENSIONS, u as DmCryptoContext } from './browser-BgkwIgWN.cjs';
2
- export { b as AgentStepEvent, c as Arbi, d as ArbiApiError, e as ArbiError, g as ArbiOptions, h as ArtifactEvent, i as AuthContext, k as AuthenticatedClient, l as CitationSummary, o as CommandDescriptor, q as ConnectOptions, D as DOC_TERMINAL_STATUSES, v as DocNameMap, w as DocumentListFields, x as DocumentListOrder, y as DocumentWaiter, z as DocumentWaiterOptions, F as FormattedWsMessage, L as ListAllOptions, B as ListPaginatedOptions, M as MessageLevel, E as MessageMetadataPayload, G as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, K as ProjectInvoicesResponse, Q as ProjectUsageResponse, R as QueryOptions, S as ReconnectOptions, T as ReconnectableWsConnection, U as ResolvedCitation, V as ResolvedRecipient, W as ResponseCompletedEvent, X as ResponseContentPartAddedEvent, Y as ResponseCreatedEvent, Z as ResponseFailedEvent, _ as ResponseOutputItemAddedEvent, $ as ResponseOutputItemDoneEvent, a0 as ResponseOutputTextDeltaEvent, a1 as ResponseOutputTextDoneEvent, a2 as ResponseUsage, a3 as SSEEvent, a4 as SSEStreamCallbacks, a5 as SSEStreamResult, a6 as SSEStreamStartData, a8 as SkillSummary, ab as TokenBudgetContext, aj as UserDailyUsageResponse, ak as UserInfo, al as UserInputRequestEvent, am as UserMessageEvent, an as WebSocketAuthError, ao as WorkspaceChronologyOut, ap as WorkspaceContext, aq as WsConnection, ar as agentconfig, as as assistant, at as authenticatedFetch, au as buildDocNameMap, av as buildRetrievalChunkTool, aw as buildRetrievalFullContextTool, ax as buildRetrievalTocTool, ay as connectWebSocket, az as connectWithReconnect, aA as consumeSSEStream, aB as contacts, aC as conversations, aD as countCitations, aE as createAuthenticatedClient, aF as createDocumentWaiter, aG as dm, aH as doctags, aI as documents, aJ as files, aK as filterSkills, aL as formatAgentStepLabel, aM as formatFileSize, aN as formatItemLabel, aO as formatStreamSummary, aP as formatUserName, aQ as formatWorkspaceChoices, aR as formatWsMessage, aS as generateEncryptedWorkspaceKey, aT as generateNewWorkspaceKey, aU as getErrorCode, aV as getErrorMessage, aW as getRawWorkspaceKey, aX as health, aY as notes, aZ as parseSSEEvents, a_ as parseSlashCommand, a$ as parseSlashTokenInProgress, b0 as performPasswordLogin, b1 as performSigningKeyLogin, b2 as performSsoDeviceFlowLogin, b3 as projects, b4 as requireData, b5 as requireOk, b6 as resolveAuth, b7 as resolveCitations, b8 as resolveWorkspace, b9 as responses, ba as selectWorkspace, bb as selectWorkspaceById, bc as settings, bd as streamSSE, be as stripCitationMarkdown, bf as summarizeCitations, bg as tags, bh as tasks, bi as workspaces } from './browser-BgkwIgWN.cjs';
1
+ import { p as ConfigStore, m as CliConfig, n as CliCredentials, C as ChatSession, a9 as SkippedFile, ai as UploadResult, j as AuthHeaders, ae as UploadBatchResult, ah as UploadOptions, af as UploadDirectOptions, ag as UploadDirectResult, a7 as SUPPORTED_EXTENSIONS, u as DmCryptoContext } from './browser-Cpvtd_no.cjs';
2
+ export { b as AgentStepEvent, c as Arbi, d as ArbiApiError, e as ArbiError, g as ArbiOptions, h as ArtifactEvent, i as AuthContext, k as AuthenticatedClient, l as CitationSummary, o as CommandDescriptor, q as ConnectOptions, D as DOC_TERMINAL_STATUSES, v as DocNameMap, w as DocumentListFields, x as DocumentListOrder, y as DocumentWaiter, z as DocumentWaiterOptions, G as FormattedWsMessage, L as ListAllOptions, H as ListPaginatedOptions, M as MessageLevel, I as MessageMetadataPayload, J as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, N as ProjectInvoicesResponse, Q as ProjectUsageResponse, R as QueryOptions, S as ReconnectOptions, T as ReconnectableWsConnection, U as ResolvedCitation, V as ResolvedRecipient, W as ResponseCompletedEvent, X as ResponseContentPartAddedEvent, Y as ResponseCreatedEvent, Z as ResponseFailedEvent, _ as ResponseOutputItemAddedEvent, $ as ResponseOutputItemDoneEvent, a0 as ResponseOutputTextDeltaEvent, a1 as ResponseOutputTextDoneEvent, a2 as ResponseUsage, a3 as SSEEvent, a4 as SSEStreamCallbacks, a5 as SSEStreamResult, a6 as SSEStreamStartData, a8 as SkillSummary, ab as TokenBudgetContext, aj as UserDailyUsageResponse, ak as UserInfo, al as UserInputRequestEvent, am as UserMessageEvent, an as WebSocketAuthError, ao as WorkspaceContext, ap as WsConnection, aq as agentconfig, ar as assistant, as as authenticatedFetch, at as buildDocNameMap, au as buildRetrievalChunkTool, av as buildRetrievalFullContextTool, aw as buildRetrievalTocTool, ax as connectWebSocket, ay as connectWithReconnect, az as consumeSSEStream, aA as contacts, aB as conversations, aC as countCitations, aD as createAuthenticatedClient, aE as createDocumentWaiter, aF as dm, aG as doctags, aH as documents, aI as facts, aJ as files, aK as filterSkills, aL as formatAgentStepLabel, aM as formatFileSize, aN as formatItemLabel, aO as formatStreamSummary, aP as formatUserName, aQ as formatWorkspaceChoices, aR as formatWsMessage, aS as generateEncryptedWorkspaceKey, aT as generateNewWorkspaceKey, aU as getErrorCode, aV as getErrorMessage, aW as getRawWorkspaceKey, aX as health, aY as parseSSEEvents, aZ as parseSlashCommand, a_ as parseSlashTokenInProgress, a$ as performPasswordLogin, b0 as performSigningKeyLogin, b1 as performSsoDeviceFlowLogin, b2 as projects, b3 as requireData, b4 as requireOk, b5 as resolveAuth, b6 as resolveCitations, b7 as resolveWorkspace, b8 as responses, b9 as selectWorkspace, ba as selectWorkspaceById, bb as settings, bc as streamSSE, bd as stripCitationMarkdown, be as summarizeCitations, bf as tags, bg as tasks, bh as workspaces } from './browser-Cpvtd_no.cjs';
3
3
  import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
4
4
 
5
5
  /**
@@ -404,7 +404,7 @@ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
404
404
  VISION_ENABLED: boolean;
405
405
  CONVERSATION_SEARCH_ENABLED: boolean;
406
406
  PERSONAL_AGENT: boolean;
407
- NOTES_ENABLED: boolean;
407
+ FACTS_ENABLED: boolean;
408
408
  PERSIST_LEARNINGS: boolean;
409
409
  SKILLS_ENABLED: boolean;
410
410
  SKILL_CREATION: boolean;
@@ -423,6 +423,9 @@ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
423
423
  AGENT_MAX_ITERATIONS: number;
424
424
  AGENT_TURN_CREDIT_BUDGET: number;
425
425
  AGENT_MAX_PARALLEL_TOOL_CALLS: number;
426
+ AGENT_MAX_TOTAL_TOOL_CALLS: number;
427
+ AGENT_MAX_RUN_TOKENS: number;
428
+ AGENT_MAX_SUBAGENT_SPAWNS: number;
426
429
  AGENT_HISTORY_CHAR_THRESHOLD: number;
427
430
  AGENT_SYSTEM_PROMPT: string;
428
431
  };
@@ -638,7 +641,7 @@ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
638
641
  IMAGE_ENABLED: boolean;
639
642
  VISION_ENABLED: boolean;
640
643
  CONVERSATION_SEARCH_ENABLED: boolean;
641
- NOTES_ENABLED: boolean;
644
+ FACTS_ENABLED: boolean;
642
645
  PERSIST_LEARNINGS: boolean;
643
646
  SKILLS_ENABLED: boolean;
644
647
  WORKSPACE_TOOLS_ENABLED: boolean;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { p as ConfigStore, m as CliConfig, n as CliCredentials, C as ChatSession, a9 as SkippedFile, ai as UploadResult, j as AuthHeaders, ae as UploadBatchResult, ah as UploadOptions, af as UploadDirectOptions, ag as UploadDirectResult, a7 as SUPPORTED_EXTENSIONS, u as DmCryptoContext } from './browser-BgkwIgWN.js';
2
- export { b as AgentStepEvent, c as Arbi, d as ArbiApiError, e as ArbiError, g as ArbiOptions, h as ArtifactEvent, i as AuthContext, k as AuthenticatedClient, l as CitationSummary, o as CommandDescriptor, q as ConnectOptions, D as DOC_TERMINAL_STATUSES, v as DocNameMap, w as DocumentListFields, x as DocumentListOrder, y as DocumentWaiter, z as DocumentWaiterOptions, F as FormattedWsMessage, L as ListAllOptions, B as ListPaginatedOptions, M as MessageLevel, E as MessageMetadataPayload, G as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, K as ProjectInvoicesResponse, Q as ProjectUsageResponse, R as QueryOptions, S as ReconnectOptions, T as ReconnectableWsConnection, U as ResolvedCitation, V as ResolvedRecipient, W as ResponseCompletedEvent, X as ResponseContentPartAddedEvent, Y as ResponseCreatedEvent, Z as ResponseFailedEvent, _ as ResponseOutputItemAddedEvent, $ as ResponseOutputItemDoneEvent, a0 as ResponseOutputTextDeltaEvent, a1 as ResponseOutputTextDoneEvent, a2 as ResponseUsage, a3 as SSEEvent, a4 as SSEStreamCallbacks, a5 as SSEStreamResult, a6 as SSEStreamStartData, a8 as SkillSummary, ab as TokenBudgetContext, aj as UserDailyUsageResponse, ak as UserInfo, al as UserInputRequestEvent, am as UserMessageEvent, an as WebSocketAuthError, ao as WorkspaceChronologyOut, ap as WorkspaceContext, aq as WsConnection, ar as agentconfig, as as assistant, at as authenticatedFetch, au as buildDocNameMap, av as buildRetrievalChunkTool, aw as buildRetrievalFullContextTool, ax as buildRetrievalTocTool, ay as connectWebSocket, az as connectWithReconnect, aA as consumeSSEStream, aB as contacts, aC as conversations, aD as countCitations, aE as createAuthenticatedClient, aF as createDocumentWaiter, aG as dm, aH as doctags, aI as documents, aJ as files, aK as filterSkills, aL as formatAgentStepLabel, aM as formatFileSize, aN as formatItemLabel, aO as formatStreamSummary, aP as formatUserName, aQ as formatWorkspaceChoices, aR as formatWsMessage, aS as generateEncryptedWorkspaceKey, aT as generateNewWorkspaceKey, aU as getErrorCode, aV as getErrorMessage, aW as getRawWorkspaceKey, aX as health, aY as notes, aZ as parseSSEEvents, a_ as parseSlashCommand, a$ as parseSlashTokenInProgress, b0 as performPasswordLogin, b1 as performSigningKeyLogin, b2 as performSsoDeviceFlowLogin, b3 as projects, b4 as requireData, b5 as requireOk, b6 as resolveAuth, b7 as resolveCitations, b8 as resolveWorkspace, b9 as responses, ba as selectWorkspace, bb as selectWorkspaceById, bc as settings, bd as streamSSE, be as stripCitationMarkdown, bf as summarizeCitations, bg as tags, bh as tasks, bi as workspaces } from './browser-BgkwIgWN.js';
1
+ import { p as ConfigStore, m as CliConfig, n as CliCredentials, C as ChatSession, a9 as SkippedFile, ai as UploadResult, j as AuthHeaders, ae as UploadBatchResult, ah as UploadOptions, af as UploadDirectOptions, ag as UploadDirectResult, a7 as SUPPORTED_EXTENSIONS, u as DmCryptoContext } from './browser-Cpvtd_no.js';
2
+ export { b as AgentStepEvent, c as Arbi, d as ArbiApiError, e as ArbiError, g as ArbiOptions, h as ArtifactEvent, i as AuthContext, k as AuthenticatedClient, l as CitationSummary, o as CommandDescriptor, q as ConnectOptions, D as DOC_TERMINAL_STATUSES, v as DocNameMap, w as DocumentListFields, x as DocumentListOrder, y as DocumentWaiter, z as DocumentWaiterOptions, G as FormattedWsMessage, L as ListAllOptions, H as ListPaginatedOptions, M as MessageLevel, I as MessageMetadataPayload, J as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, N as ProjectInvoicesResponse, Q as ProjectUsageResponse, R as QueryOptions, S as ReconnectOptions, T as ReconnectableWsConnection, U as ResolvedCitation, V as ResolvedRecipient, W as ResponseCompletedEvent, X as ResponseContentPartAddedEvent, Y as ResponseCreatedEvent, Z as ResponseFailedEvent, _ as ResponseOutputItemAddedEvent, $ as ResponseOutputItemDoneEvent, a0 as ResponseOutputTextDeltaEvent, a1 as ResponseOutputTextDoneEvent, a2 as ResponseUsage, a3 as SSEEvent, a4 as SSEStreamCallbacks, a5 as SSEStreamResult, a6 as SSEStreamStartData, a8 as SkillSummary, ab as TokenBudgetContext, aj as UserDailyUsageResponse, ak as UserInfo, al as UserInputRequestEvent, am as UserMessageEvent, an as WebSocketAuthError, ao as WorkspaceContext, ap as WsConnection, aq as agentconfig, ar as assistant, as as authenticatedFetch, at as buildDocNameMap, au as buildRetrievalChunkTool, av as buildRetrievalFullContextTool, aw as buildRetrievalTocTool, ax as connectWebSocket, ay as connectWithReconnect, az as consumeSSEStream, aA as contacts, aB as conversations, aC as countCitations, aD as createAuthenticatedClient, aE as createDocumentWaiter, aF as dm, aG as doctags, aH as documents, aI as facts, aJ as files, aK as filterSkills, aL as formatAgentStepLabel, aM as formatFileSize, aN as formatItemLabel, aO as formatStreamSummary, aP as formatUserName, aQ as formatWorkspaceChoices, aR as formatWsMessage, aS as generateEncryptedWorkspaceKey, aT as generateNewWorkspaceKey, aU as getErrorCode, aV as getErrorMessage, aW as getRawWorkspaceKey, aX as health, aY as parseSSEEvents, aZ as parseSlashCommand, a_ as parseSlashTokenInProgress, a$ as performPasswordLogin, b0 as performSigningKeyLogin, b1 as performSsoDeviceFlowLogin, b2 as projects, b3 as requireData, b4 as requireOk, b5 as resolveAuth, b6 as resolveCitations, b7 as resolveWorkspace, b8 as responses, b9 as selectWorkspace, ba as selectWorkspaceById, bb as settings, bc as streamSSE, bd as stripCitationMarkdown, be as summarizeCitations, bf as tags, bg as tasks, bh as workspaces } from './browser-Cpvtd_no.js';
3
3
  import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
4
4
 
5
5
  /**
@@ -404,7 +404,7 @@ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
404
404
  VISION_ENABLED: boolean;
405
405
  CONVERSATION_SEARCH_ENABLED: boolean;
406
406
  PERSONAL_AGENT: boolean;
407
- NOTES_ENABLED: boolean;
407
+ FACTS_ENABLED: boolean;
408
408
  PERSIST_LEARNINGS: boolean;
409
409
  SKILLS_ENABLED: boolean;
410
410
  SKILL_CREATION: boolean;
@@ -423,6 +423,9 @@ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
423
423
  AGENT_MAX_ITERATIONS: number;
424
424
  AGENT_TURN_CREDIT_BUDGET: number;
425
425
  AGENT_MAX_PARALLEL_TOOL_CALLS: number;
426
+ AGENT_MAX_TOTAL_TOOL_CALLS: number;
427
+ AGENT_MAX_RUN_TOKENS: number;
428
+ AGENT_MAX_SUBAGENT_SPAWNS: number;
426
429
  AGENT_HISTORY_CHAR_THRESHOLD: number;
427
430
  AGENT_SYSTEM_PROMPT: string;
428
431
  };
@@ -638,7 +641,7 @@ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
638
641
  IMAGE_ENABLED: boolean;
639
642
  VISION_ENABLED: boolean;
640
643
  CONVERSATION_SEARCH_ENABLED: boolean;
641
- NOTES_ENABLED: boolean;
644
+ FACTS_ENABLED: boolean;
642
645
  PERSIST_LEARNINGS: boolean;
643
646
  SKILLS_ENABLED: boolean;
644
647
  WORKSPACE_TOOLS_ENABLED: boolean;
package/dist/index.js CHANGED
@@ -5210,7 +5210,6 @@ __export(workspaces_exports, {
5210
5210
  copyDocuments: () => copyDocuments,
5211
5211
  createWorkspace: () => createWorkspace,
5212
5212
  deleteWorkspaces: () => deleteWorkspaces,
5213
- getWorkspaceChronology: () => getWorkspaceChronology,
5214
5213
  listWorkspaceUsers: () => listWorkspaceUsers,
5215
5214
  listWorkspaces: () => listWorkspaces,
5216
5215
  removeWorkspaceUsers: () => removeWorkspaceUsers,
@@ -5275,14 +5274,6 @@ async function setUserRole(arbi, userIds, role) {
5275
5274
  "Failed to update roles"
5276
5275
  );
5277
5276
  }
5278
- async function getWorkspaceChronology(arbi, workspaceId) {
5279
- return requireData(
5280
- await arbi.fetch.GET("/v1/workspace/{workspace_ext_id}/chronology", {
5281
- params: { path: { workspace_ext_id: workspaceId } }
5282
- }),
5283
- "Failed to fetch workspace chronology"
5284
- );
5285
- }
5286
5277
  async function copyDocuments(arbi, targetWorkspaceId, docIds, targetWorkspaceKey) {
5287
5278
  return requireData(
5288
5279
  await arbi.fetch.POST("/v1/workspace/copy", {
@@ -6121,22 +6112,22 @@ async function runTask(arbi, taskId) {
6121
6112
  );
6122
6113
  }
6123
6114
 
6124
- // src/operations/notes.ts
6125
- var notes_exports = {};
6126
- __export(notes_exports, {
6127
- createNote: () => createNote,
6128
- deleteNote: () => deleteNote,
6129
- listNotes: () => listNotes,
6130
- remindNote: () => remindNote,
6131
- searchNotes: () => searchNotes,
6132
- updateNote: () => updateNote
6115
+ // src/operations/facts.ts
6116
+ var facts_exports = {};
6117
+ __export(facts_exports, {
6118
+ createFact: () => createFact,
6119
+ deleteFact: () => deleteFact,
6120
+ listFacts: () => listFacts,
6121
+ remindFact: () => remindFact,
6122
+ searchFacts: () => searchFacts,
6123
+ updateFact: () => updateFact
6133
6124
  });
6134
- async function createNote(arbi, body) {
6135
- return requireData(await arbi.fetch.POST("/v1/notes/", { body }), "Failed to create note");
6125
+ async function createFact(arbi, body) {
6126
+ return requireData(await arbi.fetch.POST("/v1/facts/", { body }), "Failed to create note");
6136
6127
  }
6137
- async function listNotes(arbi, options) {
6128
+ async function listFacts(arbi, options) {
6138
6129
  return requireData(
6139
- await arbi.fetch.GET("/v1/notes/list", {
6130
+ await arbi.fetch.GET("/v1/facts/list", {
6140
6131
  params: {
6141
6132
  query: {
6142
6133
  pinned_only: options?.pinnedOnly ?? false,
@@ -6149,28 +6140,28 @@ async function listNotes(arbi, options) {
6149
6140
  "Failed to list notes"
6150
6141
  );
6151
6142
  }
6152
- async function searchNotes(arbi, body) {
6153
- return requireData(await arbi.fetch.POST("/v1/notes/search", { body }), "Failed to search notes");
6143
+ async function searchFacts(arbi, body) {
6144
+ return requireData(await arbi.fetch.POST("/v1/facts/search", { body }), "Failed to search notes");
6154
6145
  }
6155
- async function updateNote(arbi, memoryId, body) {
6146
+ async function updateFact(arbi, factId, body) {
6156
6147
  return requireData(
6157
- await arbi.fetch.PATCH("/v1/notes/{note_ext_id}", {
6158
- params: { path: { note_ext_id: memoryId } },
6148
+ await arbi.fetch.PATCH("/v1/facts/{fact_ext_id}", {
6149
+ params: { path: { fact_ext_id: factId } },
6159
6150
  body
6160
6151
  }),
6161
6152
  "Failed to update note"
6162
6153
  );
6163
6154
  }
6164
- async function deleteNote(arbi, memoryId) {
6165
- const { error } = await arbi.fetch.DELETE("/v1/notes/{note_ext_id}", {
6166
- params: { path: { note_ext_id: memoryId } }
6155
+ async function deleteFact(arbi, factId) {
6156
+ const { error } = await arbi.fetch.DELETE("/v1/facts/{fact_ext_id}", {
6157
+ params: { path: { fact_ext_id: factId } }
6167
6158
  });
6168
6159
  if (error) throw new Error("Failed to delete note");
6169
6160
  }
6170
- async function remindNote(arbi, noteId, options = {}) {
6161
+ async function remindFact(arbi, factId, options = {}) {
6171
6162
  return requireData(
6172
- await arbi.fetch.POST("/v1/notes/{note_ext_id}/remind", {
6173
- params: { path: { note_ext_id: noteId } },
6163
+ await arbi.fetch.POST("/v1/facts/{fact_ext_id}/remind", {
6164
+ params: { path: { fact_ext_id: factId } },
6174
6165
  body: {
6175
6166
  remind_at: options.remindAt ?? null,
6176
6167
  lead_minutes: options.leadMinutes ?? null
@@ -6393,14 +6384,6 @@ var Arbi = class {
6393
6384
  targetWorkspaceId,
6394
6385
  docIds,
6395
6386
  targetWorkspaceKey
6396
- ),
6397
- /**
6398
- * The last-generated document-derived chronology (key case events / dates).
6399
- * Defaults to the currently open workspace when no id is passed.
6400
- */
6401
- chronology: (workspaceId) => getWorkspaceChronology(
6402
- this.requireClient(),
6403
- workspaceId ?? this.requireWorkspace()
6404
6387
  )
6405
6388
  };
6406
6389
  // ── Documents ─────────────────────────────────────────────────────────
@@ -6656,18 +6639,18 @@ var Arbi = class {
6656
6639
  delete: (taskId) => deleteTask(this.requireClient(), taskId),
6657
6640
  run: (taskId) => runTask(this.requireClient(), taskId)
6658
6641
  };
6659
- // ── Workspace notes ─────────────────────────────────────────────────
6660
- notes = {
6661
- create: (body) => createNote(this.requireClient(), body),
6642
+ // ── Workspace facts ─────────────────────────────────────────────────
6643
+ facts = {
6644
+ create: (body) => createFact(this.requireClient(), body),
6662
6645
  /** Pass `from`/`to`/`datedOnly` for the timeline view — dated notes only,
6663
6646
  * ordered by when they happened. */
6664
- list: (options) => listNotes(this.requireClient(), options),
6665
- search: (body) => searchNotes(this.requireClient(), body),
6666
- update: (noteId, body) => updateNote(this.requireClient(), noteId, body),
6667
- delete: (noteId) => deleteNote(this.requireClient(), noteId),
6647
+ list: (options) => listFacts(this.requireClient(), options),
6648
+ search: (body) => searchFacts(this.requireClient(), body),
6649
+ update: (factId, body) => updateFact(this.requireClient(), factId, body),
6650
+ delete: (factId) => deleteFact(this.requireClient(), factId),
6668
6651
  /** One-off reminder on a dated note: an explicit `remindAt`, or
6669
6652
  * `leadMinutes` before its date. */
6670
- remind: (noteId, options = {}) => remindNote(this.requireClient(), noteId, options)
6653
+ remind: (factId, options = {}) => remindFact(this.requireClient(), factId, options)
6671
6654
  };
6672
6655
  // ── Sessions ────────────────────────────────────────────────────────
6673
6656
  sessions = {
@@ -7816,6 +7799,6 @@ async function startDmListener(options) {
7816
7799
  };
7817
7800
  }
7818
7801
 
7819
- export { Arbi, ArbiApiError, ArbiError, ClaudeOrchestrator, DOC_TERMINAL_STATUSES, FileConfigStore, OpenClawOrchestrator, WebSocketAuthError, agentconfig_exports as agentconfig, agents_exports as agents, assistant_exports as assistant, authenticatedFetch, buildDocNameMap, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, connectWebSocket, connectWithReconnect, consumeSSEStream, contacts_exports as contacts, conversations_exports as conversations, countCitations, createAuthenticatedClient, createDocumentWaiter, device_flow_exports as deviceFlow, dm_exports as dm, doctags_exports as doctags, documents_exports as documents, documents_node_exports as documentsNode, files_exports as files, filterSkills, formatAgentStepLabel, formatFileSize, formatItemLabel, formatStreamSummary, formatUserName, formatWorkspaceChoices, formatWsMessage, generateEncryptedWorkspaceKey, generateNewWorkspaceKey, getErrorCode, getErrorMessage, getRawWorkspaceKey, health_exports as health, listen_exports as listen, notes_exports as notes, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, performPasswordLogin, performSigningKeyLogin, performSsoDeviceFlowLogin, profile_exports as profile, projects_exports as projects, requireData, requireOk, resolveAuth, resolveCitations, resolveWorkspace, responses_exports as responses, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, startDmListener, streamSSE, stripCitationMarkdown, summarizeCitations, tags_exports as tags, tasks_exports as tasks, workspaces_exports as workspaces };
7802
+ export { Arbi, ArbiApiError, ArbiError, ClaudeOrchestrator, DOC_TERMINAL_STATUSES, FileConfigStore, OpenClawOrchestrator, WebSocketAuthError, agentconfig_exports as agentconfig, agents_exports as agents, assistant_exports as assistant, authenticatedFetch, buildDocNameMap, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, connectWebSocket, connectWithReconnect, consumeSSEStream, contacts_exports as contacts, conversations_exports as conversations, countCitations, createAuthenticatedClient, createDocumentWaiter, device_flow_exports as deviceFlow, dm_exports as dm, doctags_exports as doctags, documents_exports as documents, documents_node_exports as documentsNode, facts_exports as facts, files_exports as files, filterSkills, formatAgentStepLabel, formatFileSize, formatItemLabel, formatStreamSummary, formatUserName, formatWorkspaceChoices, formatWsMessage, generateEncryptedWorkspaceKey, generateNewWorkspaceKey, getErrorCode, getErrorMessage, getRawWorkspaceKey, health_exports as health, listen_exports as listen, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, performPasswordLogin, performSigningKeyLogin, performSsoDeviceFlowLogin, profile_exports as profile, projects_exports as projects, requireData, requireOk, resolveAuth, resolveCitations, resolveWorkspace, responses_exports as responses, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, startDmListener, streamSSE, stripCitationMarkdown, summarizeCitations, tags_exports as tags, tasks_exports as tasks, workspaces_exports as workspaces };
7820
7803
  //# sourceMappingURL=index.js.map
7821
7804
  //# sourceMappingURL=index.js.map