@arbidocs/sdk 0.3.182 → 0.3.184
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/{browser-B0IkKXmI.d.cts → browser-CJnhV_5b.d.cts} +53 -15
- package/dist/{browser-B0IkKXmI.d.ts → browser-CJnhV_5b.d.ts} +53 -15
- package/dist/browser.cjs +13 -2
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +13 -2
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +13 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as ConfigStore, m as CliConfig, n as CliCredentials, C as ChatSession,
|
|
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,
|
|
1
|
+
import { p as ConfigStore, m as CliConfig, n as CliCredentials, C as ChatSession, ab as SkippedFile, ak as UploadResult, j as AuthHeaders, ag as UploadBatchResult, aj as UploadOptions, ah as UploadDirectOptions, ai as UploadDirectResult, a9 as SUPPORTED_EXTENSIONS, v as DmCryptoContext } from './browser-CJnhV_5b.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, w as DocNameMap, x as DocumentListFields, y as DocumentListOrder, z as DocumentWaiter, B as DocumentWaiterOptions, H as FormattedWsMessage, L as ListAllOptions, J as ListPaginatedOptions, M as MessageLevel, K as MessageMetadataPayload, N as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, R as ProjectInvoicesResponse, S as ProjectUsageResponse, T as QueryOptions, U as ReconnectOptions, V as ReconnectableWsConnection, W as ResolvedCitation, X as ResolvedRecipient, Y as ResponseCompletedEvent, Z as ResponseContentPartAddedEvent, _ as ResponseCreatedEvent, $ as ResponseFailedEvent, a0 as ResponseOutputItemAddedEvent, a1 as ResponseOutputItemDoneEvent, a2 as ResponseOutputTextDeltaEvent, a3 as ResponseOutputTextDoneEvent, a4 as ResponseUsage, a5 as SSEEvent, a6 as SSEStreamCallbacks, a7 as SSEStreamResult, a8 as SSEStreamStartData, aa as SkillSummary, ad as TokenBudgetContext, al as UserDailyUsageResponse, am as UserInfo, an as UserInputRequestEvent, ao as UserMessageEvent, ap as WebSocketAuthError, aq as WorkspaceContext, ar as WsConnection, as as agentconfig, at as assistant, au as authenticatedFetch, av as buildDocNameMap, aw as buildRetrievalChunkTool, ax as buildRetrievalFullContextTool, ay as buildRetrievalTocTool, az as connectWebSocket, aA as connectWithReconnect, aB as consumeSSEStream, aC as contacts, aD as conversations, aE as countCitations, aF as createAuthenticatedClient, aG as createDocumentWaiter, aH as dm, aI as doctags, aJ as documents, aK as facts, aL as files, aM as filterSkills, aN as formatAgentStepLabel, aO as formatFileSize, aP as formatItemLabel, aQ as formatStreamSummary, aR as formatUserName, aS as formatWorkspaceChoices, aT as formatWsMessage, aU as generateEncryptedWorkspaceKey, aV as generateNewWorkspaceKey, aW as getErrorCode, aX as getErrorMessage, aY as getRawWorkspaceKey, aZ as health, a_ as parseSSEEvents, a$ as parseSlashCommand, b0 as parseSlashTokenInProgress, b1 as performPasswordLogin, b2 as performSigningKeyLogin, b3 as performSsoDeviceFlowLogin, b4 as projects, b5 as requireData, b6 as requireOk, b7 as resolveAuth, b8 as resolveCitations, b9 as resolveWorkspace, ba as responses, bb as selectWorkspace, bc as selectWorkspaceById, bd as settings, be as streamSSE, bf as stripCitationMarkdown, bg as summarizeCitations, bh as tags, bi as tasks, bj as workspaces } from './browser-CJnhV_5b.cjs';
|
|
3
3
|
import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as ConfigStore, m as CliConfig, n as CliCredentials, C as ChatSession,
|
|
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,
|
|
1
|
+
import { p as ConfigStore, m as CliConfig, n as CliCredentials, C as ChatSession, ab as SkippedFile, ak as UploadResult, j as AuthHeaders, ag as UploadBatchResult, aj as UploadOptions, ah as UploadDirectOptions, ai as UploadDirectResult, a9 as SUPPORTED_EXTENSIONS, v as DmCryptoContext } from './browser-CJnhV_5b.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, w as DocNameMap, x as DocumentListFields, y as DocumentListOrder, z as DocumentWaiter, B as DocumentWaiterOptions, H as FormattedWsMessage, L as ListAllOptions, J as ListPaginatedOptions, M as MessageLevel, K as MessageMetadataPayload, N as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, R as ProjectInvoicesResponse, S as ProjectUsageResponse, T as QueryOptions, U as ReconnectOptions, V as ReconnectableWsConnection, W as ResolvedCitation, X as ResolvedRecipient, Y as ResponseCompletedEvent, Z as ResponseContentPartAddedEvent, _ as ResponseCreatedEvent, $ as ResponseFailedEvent, a0 as ResponseOutputItemAddedEvent, a1 as ResponseOutputItemDoneEvent, a2 as ResponseOutputTextDeltaEvent, a3 as ResponseOutputTextDoneEvent, a4 as ResponseUsage, a5 as SSEEvent, a6 as SSEStreamCallbacks, a7 as SSEStreamResult, a8 as SSEStreamStartData, aa as SkillSummary, ad as TokenBudgetContext, al as UserDailyUsageResponse, am as UserInfo, an as UserInputRequestEvent, ao as UserMessageEvent, ap as WebSocketAuthError, aq as WorkspaceContext, ar as WsConnection, as as agentconfig, at as assistant, au as authenticatedFetch, av as buildDocNameMap, aw as buildRetrievalChunkTool, ax as buildRetrievalFullContextTool, ay as buildRetrievalTocTool, az as connectWebSocket, aA as connectWithReconnect, aB as consumeSSEStream, aC as contacts, aD as conversations, aE as countCitations, aF as createAuthenticatedClient, aG as createDocumentWaiter, aH as dm, aI as doctags, aJ as documents, aK as facts, aL as files, aM as filterSkills, aN as formatAgentStepLabel, aO as formatFileSize, aP as formatItemLabel, aQ as formatStreamSummary, aR as formatUserName, aS as formatWorkspaceChoices, aT as formatWsMessage, aU as generateEncryptedWorkspaceKey, aV as generateNewWorkspaceKey, aW as getErrorCode, aX as getErrorMessage, aY as getRawWorkspaceKey, aZ as health, a_ as parseSSEEvents, a$ as parseSlashCommand, b0 as parseSlashTokenInProgress, b1 as performPasswordLogin, b2 as performSigningKeyLogin, b3 as performSsoDeviceFlowLogin, b4 as projects, b5 as requireData, b6 as requireOk, b7 as resolveAuth, b8 as resolveCitations, b9 as resolveWorkspace, ba as responses, bb as selectWorkspace, bc as selectWorkspaceById, bd as settings, be as streamSSE, bf as stripCitationMarkdown, bg as summarizeCitations, bh as tags, bi as tasks, bj as workspaces } from './browser-CJnhV_5b.js';
|
|
3
3
|
import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/index.js
CHANGED
|
@@ -6118,6 +6118,7 @@ async function runTask(arbi, taskId) {
|
|
|
6118
6118
|
var facts_exports = {};
|
|
6119
6119
|
__export(facts_exports, {
|
|
6120
6120
|
createFact: () => createFact,
|
|
6121
|
+
createFactsBatch: () => createFactsBatch,
|
|
6121
6122
|
deleteFact: () => deleteFact,
|
|
6122
6123
|
listFacts: () => listFacts,
|
|
6123
6124
|
remindFact: () => remindFact,
|
|
@@ -6127,6 +6128,9 @@ __export(facts_exports, {
|
|
|
6127
6128
|
async function createFact(arbi, body) {
|
|
6128
6129
|
return requireData(await arbi.fetch.POST("/v1/facts/", { body }), "Failed to create note");
|
|
6129
6130
|
}
|
|
6131
|
+
async function createFactsBatch(arbi, body) {
|
|
6132
|
+
return requireData(await arbi.fetch.POST("/v1/facts/batch", { body }), "Failed to create notes");
|
|
6133
|
+
}
|
|
6130
6134
|
async function listFacts(arbi, options) {
|
|
6131
6135
|
return requireData(
|
|
6132
6136
|
await arbi.fetch.GET("/v1/facts/list", {
|
|
@@ -6135,7 +6139,11 @@ async function listFacts(arbi, options) {
|
|
|
6135
6139
|
pinned_only: options?.pinnedOnly ?? false,
|
|
6136
6140
|
date_from: options?.from,
|
|
6137
6141
|
date_to: options?.to,
|
|
6138
|
-
dated_only: options?.datedOnly
|
|
6142
|
+
dated_only: options?.datedOnly,
|
|
6143
|
+
tag_ext_id: options?.tagExtIds,
|
|
6144
|
+
doc_ext_id: options?.docExtId,
|
|
6145
|
+
limit: options?.limit,
|
|
6146
|
+
offset: options?.offset
|
|
6139
6147
|
}
|
|
6140
6148
|
}
|
|
6141
6149
|
}),
|
|
@@ -6644,8 +6652,11 @@ var Arbi = class {
|
|
|
6644
6652
|
// ── Workspace facts ─────────────────────────────────────────────────
|
|
6645
6653
|
facts = {
|
|
6646
6654
|
create: (body) => createFact(this.requireClient(), body),
|
|
6655
|
+
/** Create up to 200 notes in one all-or-nothing request. */
|
|
6656
|
+
createBatch: (body) => createFactsBatch(this.requireClient(), body),
|
|
6647
6657
|
/** Pass `from`/`to`/`datedOnly` for the timeline view — dated notes only,
|
|
6648
|
-
* ordered by when they happened.
|
|
6658
|
+
* ordered by when they happened. `tagExtIds` / `docExtId` narrow the list;
|
|
6659
|
+
* `limit` / `offset` page it. */
|
|
6649
6660
|
list: (options) => listFacts(this.requireClient(), options),
|
|
6650
6661
|
search: (body) => searchFacts(this.requireClient(), body),
|
|
6651
6662
|
update: (factId, body) => updateFact(this.requireClient(), factId, body),
|