@arbidocs/sdk 0.3.182 → 0.3.183
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/browser.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as AgentControlStateEvent, a as AgentStepDeltaEvent, b as AgentStepEvent, c as Arbi, d as ArbiApiError, e as ArbiError, f as ArbiErrorEvent, g as ArbiOptions, h as ArtifactEvent, i as AuthContext, j as AuthHeaders, k as AuthenticatedClient, C as ChatSession, l as CitationSummary, m as CliConfig, n as CliCredentials, o as CommandDescriptor, p as ConfigStore, q as ConnectOptions, r as CreateFactRequest, s as
|
|
1
|
+
export { A as AgentControlStateEvent, a as AgentStepDeltaEvent, b as AgentStepEvent, c as Arbi, d as ArbiApiError, e as ArbiError, f as ArbiErrorEvent, g as ArbiOptions, h as ArtifactEvent, i as AuthContext, j as AuthHeaders, k as AuthenticatedClient, C as ChatSession, l as CitationSummary, m as CliConfig, n as CliCredentials, o as CommandDescriptor, p as ConfigStore, q as ConnectOptions, r as CreateFactRequest, s as CreateFactsRequest, t as CreateTaskRequest, u as DeferredInterjectionEvent, F as FactResponse, E as FactSearchRequest, G as FactSearchResponse, I as ListFactsOptions, K as MessageMetadataPayload, N as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, Q as ProbeAnswerEvent, R as ProjectInvoicesResponse, S as ProjectUsageResponse, T as QueryOptions, U as ReconnectOptions, V as ReconnectableWsConnection, W as ResolvedCitation, 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, ac as TaskResponse, ad as TokenBudgetContext, ae as UpdateFactRequest, af as UpdateTaskRequest, 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, 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, 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, aR as formatUserName, aS as formatWorkspaceChoices, aX as getErrorMessage, aY as getRawWorkspaceKey, aZ as health, a_ as parseSSEEvents, a$ as parseSlashCommand, b0 as parseSlashTokenInProgress, b1 as performPasswordLogin, 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';
|
|
2
2
|
import '@arbidocs/client';
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as AgentControlStateEvent, a as AgentStepDeltaEvent, b as AgentStepEvent, c as Arbi, d as ArbiApiError, e as ArbiError, f as ArbiErrorEvent, g as ArbiOptions, h as ArtifactEvent, i as AuthContext, j as AuthHeaders, k as AuthenticatedClient, C as ChatSession, l as CitationSummary, m as CliConfig, n as CliCredentials, o as CommandDescriptor, p as ConfigStore, q as ConnectOptions, r as CreateFactRequest, s as
|
|
1
|
+
export { A as AgentControlStateEvent, a as AgentStepDeltaEvent, b as AgentStepEvent, c as Arbi, d as ArbiApiError, e as ArbiError, f as ArbiErrorEvent, g as ArbiOptions, h as ArtifactEvent, i as AuthContext, j as AuthHeaders, k as AuthenticatedClient, C as ChatSession, l as CitationSummary, m as CliConfig, n as CliCredentials, o as CommandDescriptor, p as ConfigStore, q as ConnectOptions, r as CreateFactRequest, s as CreateFactsRequest, t as CreateTaskRequest, u as DeferredInterjectionEvent, F as FactResponse, E as FactSearchRequest, G as FactSearchResponse, I as ListFactsOptions, K as MessageMetadataPayload, N as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, Q as ProbeAnswerEvent, R as ProjectInvoicesResponse, S as ProjectUsageResponse, T as QueryOptions, U as ReconnectOptions, V as ReconnectableWsConnection, W as ResolvedCitation, 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, ac as TaskResponse, ad as TokenBudgetContext, ae as UpdateFactRequest, af as UpdateTaskRequest, 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, 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, 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, aR as formatUserName, aS as formatWorkspaceChoices, aX as getErrorMessage, aY as getRawWorkspaceKey, aZ as health, a_ as parseSSEEvents, a$ as parseSlashCommand, b0 as parseSlashTokenInProgress, b1 as performPasswordLogin, 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';
|
|
2
2
|
import '@arbidocs/client';
|
package/dist/browser.js
CHANGED
|
@@ -5555,6 +5555,7 @@ async function runTask(arbi, taskId) {
|
|
|
5555
5555
|
var facts_exports = {};
|
|
5556
5556
|
__export(facts_exports, {
|
|
5557
5557
|
createFact: () => createFact,
|
|
5558
|
+
createFactsBatch: () => createFactsBatch,
|
|
5558
5559
|
deleteFact: () => deleteFact,
|
|
5559
5560
|
listFacts: () => listFacts,
|
|
5560
5561
|
remindFact: () => remindFact,
|
|
@@ -5564,6 +5565,9 @@ __export(facts_exports, {
|
|
|
5564
5565
|
async function createFact(arbi, body) {
|
|
5565
5566
|
return requireData(await arbi.fetch.POST("/v1/facts/", { body }), "Failed to create note");
|
|
5566
5567
|
}
|
|
5568
|
+
async function createFactsBatch(arbi, body) {
|
|
5569
|
+
return requireData(await arbi.fetch.POST("/v1/facts/batch", { body }), "Failed to create notes");
|
|
5570
|
+
}
|
|
5567
5571
|
async function listFacts(arbi, options) {
|
|
5568
5572
|
return requireData(
|
|
5569
5573
|
await arbi.fetch.GET("/v1/facts/list", {
|
|
@@ -5572,7 +5576,11 @@ async function listFacts(arbi, options) {
|
|
|
5572
5576
|
pinned_only: options?.pinnedOnly ?? false,
|
|
5573
5577
|
date_from: options?.from,
|
|
5574
5578
|
date_to: options?.to,
|
|
5575
|
-
dated_only: options?.datedOnly
|
|
5579
|
+
dated_only: options?.datedOnly,
|
|
5580
|
+
tag_ext_id: options?.tagExtIds,
|
|
5581
|
+
doc_ext_id: options?.docExtId,
|
|
5582
|
+
limit: options?.limit,
|
|
5583
|
+
offset: options?.offset
|
|
5576
5584
|
}
|
|
5577
5585
|
}
|
|
5578
5586
|
}),
|
|
@@ -6081,8 +6089,11 @@ var Arbi = class {
|
|
|
6081
6089
|
// ── Workspace facts ─────────────────────────────────────────────────
|
|
6082
6090
|
facts = {
|
|
6083
6091
|
create: (body) => createFact(this.requireClient(), body),
|
|
6092
|
+
/** Create up to 200 notes in one all-or-nothing request. */
|
|
6093
|
+
createBatch: (body) => createFactsBatch(this.requireClient(), body),
|
|
6084
6094
|
/** Pass `from`/`to`/`datedOnly` for the timeline view — dated notes only,
|
|
6085
|
-
* ordered by when they happened.
|
|
6095
|
+
* ordered by when they happened. `tagExtIds` / `docExtId` narrow the list;
|
|
6096
|
+
* `limit` / `offset` page it. */
|
|
6086
6097
|
list: (options) => listFacts(this.requireClient(), options),
|
|
6087
6098
|
search: (body) => searchFacts(this.requireClient(), body),
|
|
6088
6099
|
update: (factId, body) => updateFact(this.requireClient(), factId, body),
|