@arbidocs/sdk 0.3.137 → 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.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { p as ConfigStore, m as CliConfig, n as CliCredentials, C as ChatSession, a9 as SkippedFile, ah as UploadResult, j as AuthHeaders, ad as UploadBatchResult, ag as UploadOptions, ae as UploadDirectOptions, af as UploadDirectResult, a7 as SUPPORTED_EXTENSIONS, u as DmCryptoContext } from './browser-DSk5KK4x.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, H 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, ai as UserDailyUsageResponse, aj as UserInfo, ak as UserInputRequestEvent, al as UserMessageEvent, am as WebSocketAuthError, an as WorkspaceChronologyOut, 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 files, aJ as filterSkills, aK as formatAgentStepLabel, aL as formatFileSize, aM as formatItemLabel, aN as formatStreamSummary, aO as formatUserName, aP as formatWorkspaceChoices, aQ as formatWsMessage, aR as generateEncryptedWorkspaceKey, aS as generateNewWorkspaceKey, aT as getErrorCode, aU as getErrorMessage, aV as getRawWorkspaceKey, aW 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-DSk5KK4x.cjs';
1
+ import { p as ConfigStore, m as CliConfig, n as CliCredentials, C as ChatSession, a9 as SkippedFile, ah as UploadResult, j as AuthHeaders, ad as UploadBatchResult, ag as UploadOptions, ae as UploadDirectOptions, af as UploadDirectResult, a7 as SUPPORTED_EXTENSIONS, u as DmCryptoContext } from './browser-CygvmtPQ.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, ai as UserDailyUsageResponse, aj as UserInfo, ak as UserInputRequestEvent, al as UserMessageEvent, am as WebSocketAuthError, an as WorkspaceChronologyOut, 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 files, aJ as filterSkills, aK as formatAgentStepLabel, aL as formatFileSize, aM as formatItemLabel, aN as formatStreamSummary, aO as formatUserName, aP as formatWorkspaceChoices, aQ as formatWsMessage, aR as generateEncryptedWorkspaceKey, aS as generateNewWorkspaceKey, aT as getErrorCode, aU as getErrorMessage, aV as getRawWorkspaceKey, aW 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-CygvmtPQ.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
- MEMORY_ENABLED: boolean;
407
+ NOTES_ENABLED: boolean;
408
408
  PERSIST_LEARNINGS: boolean;
409
409
  SKILLS_ENABLED: boolean;
410
410
  SKILL_CREATION: boolean;
@@ -499,7 +499,6 @@ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
499
499
  API_TYPE: "local" | "remote";
500
500
  ENABLE_THINKING: boolean;
501
501
  MODEL_NAME: string;
502
- SYSTEM_INSTRUCTION: string;
503
502
  TEMPERATURE: number;
504
503
  MAX_TOKENS: number;
505
504
  MAX_TOKEN_CONTEXT: number;
@@ -639,7 +638,7 @@ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
639
638
  IMAGE_ENABLED: boolean;
640
639
  VISION_ENABLED: boolean;
641
640
  CONVERSATION_SEARCH_ENABLED: boolean;
642
- MEMORY_ENABLED: boolean;
641
+ NOTES_ENABLED: boolean;
643
642
  PERSIST_LEARNINGS: boolean;
644
643
  SKILLS_ENABLED: boolean;
645
644
  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, ah as UploadResult, j as AuthHeaders, ad as UploadBatchResult, ag as UploadOptions, ae as UploadDirectOptions, af as UploadDirectResult, a7 as SUPPORTED_EXTENSIONS, u as DmCryptoContext } from './browser-DSk5KK4x.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, H 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, ai as UserDailyUsageResponse, aj as UserInfo, ak as UserInputRequestEvent, al as UserMessageEvent, am as WebSocketAuthError, an as WorkspaceChronologyOut, 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 files, aJ as filterSkills, aK as formatAgentStepLabel, aL as formatFileSize, aM as formatItemLabel, aN as formatStreamSummary, aO as formatUserName, aP as formatWorkspaceChoices, aQ as formatWsMessage, aR as generateEncryptedWorkspaceKey, aS as generateNewWorkspaceKey, aT as getErrorCode, aU as getErrorMessage, aV as getRawWorkspaceKey, aW 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-DSk5KK4x.js';
1
+ import { p as ConfigStore, m as CliConfig, n as CliCredentials, C as ChatSession, a9 as SkippedFile, ah as UploadResult, j as AuthHeaders, ad as UploadBatchResult, ag as UploadOptions, ae as UploadDirectOptions, af as UploadDirectResult, a7 as SUPPORTED_EXTENSIONS, u as DmCryptoContext } from './browser-CygvmtPQ.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, ai as UserDailyUsageResponse, aj as UserInfo, ak as UserInputRequestEvent, al as UserMessageEvent, am as WebSocketAuthError, an as WorkspaceChronologyOut, 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 files, aJ as filterSkills, aK as formatAgentStepLabel, aL as formatFileSize, aM as formatItemLabel, aN as formatStreamSummary, aO as formatUserName, aP as formatWorkspaceChoices, aQ as formatWsMessage, aR as generateEncryptedWorkspaceKey, aS as generateNewWorkspaceKey, aT as getErrorCode, aU as getErrorMessage, aV as getRawWorkspaceKey, aW 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-CygvmtPQ.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
- MEMORY_ENABLED: boolean;
407
+ NOTES_ENABLED: boolean;
408
408
  PERSIST_LEARNINGS: boolean;
409
409
  SKILLS_ENABLED: boolean;
410
410
  SKILL_CREATION: boolean;
@@ -499,7 +499,6 @@ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
499
499
  API_TYPE: "local" | "remote";
500
500
  ENABLE_THINKING: boolean;
501
501
  MODEL_NAME: string;
502
- SYSTEM_INSTRUCTION: string;
503
502
  TEMPERATURE: number;
504
503
  MAX_TOKENS: number;
505
504
  MAX_TOKEN_CONTEXT: number;
@@ -639,7 +638,7 @@ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
639
638
  IMAGE_ENABLED: boolean;
640
639
  VISION_ENABLED: boolean;
641
640
  CONVERSATION_SEARCH_ENABLED: boolean;
642
- MEMORY_ENABLED: boolean;
641
+ NOTES_ENABLED: boolean;
643
642
  PERSIST_LEARNINGS: boolean;
644
643
  SKILLS_ENABLED: boolean;
645
644
  WORKSPACE_TOOLS_ENABLED: boolean;
package/dist/index.js CHANGED
@@ -6117,38 +6117,35 @@ async function runTask(arbi, taskId) {
6117
6117
  );
6118
6118
  }
6119
6119
 
6120
- // src/operations/memory.ts
6121
- async function createMemory(arbi, body) {
6122
- return requireData(await arbi.fetch.POST("/v1/memory/", { body }), "Failed to create memory");
6120
+ // src/operations/notes.ts
6121
+ async function createNote(arbi, body) {
6122
+ return requireData(await arbi.fetch.POST("/v1/notes/", { body }), "Failed to create note");
6123
6123
  }
6124
- async function listMemories(arbi, options) {
6124
+ async function listNotes(arbi, options) {
6125
6125
  return requireData(
6126
- await arbi.fetch.GET("/v1/memory/list", {
6126
+ await arbi.fetch.GET("/v1/notes/list", {
6127
6127
  params: { query: { pinned_only: options?.pinnedOnly ?? false } }
6128
6128
  }),
6129
- "Failed to list memories"
6129
+ "Failed to list notes"
6130
6130
  );
6131
6131
  }
6132
- async function searchMemories(arbi, body) {
6133
- return requireData(
6134
- await arbi.fetch.POST("/v1/memory/search", { body }),
6135
- "Failed to search memories"
6136
- );
6132
+ async function searchNotes(arbi, body) {
6133
+ return requireData(await arbi.fetch.POST("/v1/notes/search", { body }), "Failed to search notes");
6137
6134
  }
6138
- async function updateMemory(arbi, memoryId, body) {
6135
+ async function updateNote(arbi, memoryId, body) {
6139
6136
  return requireData(
6140
- await arbi.fetch.PATCH("/v1/memory/{memory_ext_id}", {
6141
- params: { path: { memory_ext_id: memoryId } },
6137
+ await arbi.fetch.PATCH("/v1/notes/{note_ext_id}", {
6138
+ params: { path: { note_ext_id: memoryId } },
6142
6139
  body
6143
6140
  }),
6144
- "Failed to update memory"
6141
+ "Failed to update note"
6145
6142
  );
6146
6143
  }
6147
- async function deleteMemory(arbi, memoryId) {
6148
- const { error } = await arbi.fetch.DELETE("/v1/memory/{memory_ext_id}", {
6149
- params: { path: { memory_ext_id: memoryId } }
6144
+ async function deleteNote(arbi, memoryId) {
6145
+ const { error } = await arbi.fetch.DELETE("/v1/notes/{note_ext_id}", {
6146
+ params: { path: { note_ext_id: memoryId } }
6150
6147
  });
6151
- if (error) throw new Error("Failed to delete memory");
6148
+ if (error) throw new Error("Failed to delete note");
6152
6149
  }
6153
6150
 
6154
6151
  // src/arbi.ts
@@ -6627,13 +6624,13 @@ var Arbi = class {
6627
6624
  delete: (taskId) => deleteTask(this.requireClient(), taskId),
6628
6625
  run: (taskId) => runTask(this.requireClient(), taskId)
6629
6626
  };
6630
- // ── Workspace memory ──────────────────────────────────────────────────
6631
- memory = {
6632
- create: (body) => createMemory(this.requireClient(), body),
6633
- list: (options) => listMemories(this.requireClient(), options),
6634
- search: (body) => searchMemories(this.requireClient(), body),
6635
- update: (memoryId, body) => updateMemory(this.requireClient(), memoryId, body),
6636
- delete: (memoryId) => deleteMemory(this.requireClient(), memoryId)
6627
+ // ── Workspace notes ─────────────────────────────────────────────────
6628
+ notes = {
6629
+ create: (body) => createNote(this.requireClient(), body),
6630
+ list: (options) => listNotes(this.requireClient(), options),
6631
+ search: (body) => searchNotes(this.requireClient(), body),
6632
+ update: (noteId, body) => updateNote(this.requireClient(), noteId, body),
6633
+ delete: (noteId) => deleteNote(this.requireClient(), noteId)
6637
6634
  };
6638
6635
  // ── Sessions ────────────────────────────────────────────────────────
6639
6636
  sessions = {