@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/{browser-BgkwIgWN.d.cts → browser-Cpvtd_no.d.cts} +77 -67
- package/dist/{browser-BgkwIgWN.d.ts → browser-Cpvtd_no.d.ts} +77 -67
- package/dist/browser.cjs +33 -50
- 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 +33 -50
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +33 -50
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.js +33 -50
- 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
|
|
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 CreateTaskRequest, t as DeferredInterjectionEvent, F as FactResponse, B as FactSearchRequest, E as FactSearchResponse, I as MessageMetadataPayload, J as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, K as ProbeAnswerEvent, N as ProjectInvoicesResponse, Q as ProjectUsageResponse, R as QueryOptions, S as ReconnectOptions, T as ReconnectableWsConnection, U as ResolvedCitation, 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, aa as TaskResponse, ab as TokenBudgetContext, ac as UpdateFactRequest, ad as UpdateTaskRequest, 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, 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, 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, aP as formatUserName, aQ as formatWorkspaceChoices, aV as getErrorMessage, aW as getRawWorkspaceKey, aX as health, aY as parseSSEEvents, aZ as parseSlashCommand, a_ as parseSlashTokenInProgress, a$ as performPasswordLogin, 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';
|
|
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
|
|
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 CreateTaskRequest, t as DeferredInterjectionEvent, F as FactResponse, B as FactSearchRequest, E as FactSearchResponse, I as MessageMetadataPayload, J as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, K as ProbeAnswerEvent, N as ProjectInvoicesResponse, Q as ProjectUsageResponse, R as QueryOptions, S as ReconnectOptions, T as ReconnectableWsConnection, U as ResolvedCitation, 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, aa as TaskResponse, ab as TokenBudgetContext, ac as UpdateFactRequest, ad as UpdateTaskRequest, 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, 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, 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, aP as formatUserName, aQ as formatWorkspaceChoices, aV as getErrorMessage, aW as getRawWorkspaceKey, aX as health, aY as parseSSEEvents, aZ as parseSlashCommand, a_ as parseSlashTokenInProgress, a$ as performPasswordLogin, 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';
|
|
2
2
|
import '@arbidocs/client';
|
package/dist/browser.js
CHANGED
|
@@ -4659,7 +4659,6 @@ __export(workspaces_exports, {
|
|
|
4659
4659
|
copyDocuments: () => copyDocuments,
|
|
4660
4660
|
createWorkspace: () => createWorkspace,
|
|
4661
4661
|
deleteWorkspaces: () => deleteWorkspaces,
|
|
4662
|
-
getWorkspaceChronology: () => getWorkspaceChronology,
|
|
4663
4662
|
listWorkspaceUsers: () => listWorkspaceUsers,
|
|
4664
4663
|
listWorkspaces: () => listWorkspaces,
|
|
4665
4664
|
removeWorkspaceUsers: () => removeWorkspaceUsers,
|
|
@@ -4724,14 +4723,6 @@ async function setUserRole(arbi, userIds, role) {
|
|
|
4724
4723
|
"Failed to update roles"
|
|
4725
4724
|
);
|
|
4726
4725
|
}
|
|
4727
|
-
async function getWorkspaceChronology(arbi, workspaceId) {
|
|
4728
|
-
return requireData(
|
|
4729
|
-
await arbi.fetch.GET("/v1/workspace/{workspace_ext_id}/chronology", {
|
|
4730
|
-
params: { path: { workspace_ext_id: workspaceId } }
|
|
4731
|
-
}),
|
|
4732
|
-
"Failed to fetch workspace chronology"
|
|
4733
|
-
);
|
|
4734
|
-
}
|
|
4735
4726
|
async function copyDocuments(arbi, targetWorkspaceId, docIds, targetWorkspaceKey) {
|
|
4736
4727
|
return requireData(
|
|
4737
4728
|
await arbi.fetch.POST("/v1/workspace/copy", {
|
|
@@ -5558,22 +5549,22 @@ async function runTask(arbi, taskId) {
|
|
|
5558
5549
|
);
|
|
5559
5550
|
}
|
|
5560
5551
|
|
|
5561
|
-
// src/operations/
|
|
5562
|
-
var
|
|
5563
|
-
__export(
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5552
|
+
// src/operations/facts.ts
|
|
5553
|
+
var facts_exports = {};
|
|
5554
|
+
__export(facts_exports, {
|
|
5555
|
+
createFact: () => createFact,
|
|
5556
|
+
deleteFact: () => deleteFact,
|
|
5557
|
+
listFacts: () => listFacts,
|
|
5558
|
+
remindFact: () => remindFact,
|
|
5559
|
+
searchFacts: () => searchFacts,
|
|
5560
|
+
updateFact: () => updateFact
|
|
5570
5561
|
});
|
|
5571
|
-
async function
|
|
5572
|
-
return requireData(await arbi.fetch.POST("/v1/
|
|
5562
|
+
async function createFact(arbi, body) {
|
|
5563
|
+
return requireData(await arbi.fetch.POST("/v1/facts/", { body }), "Failed to create note");
|
|
5573
5564
|
}
|
|
5574
|
-
async function
|
|
5565
|
+
async function listFacts(arbi, options) {
|
|
5575
5566
|
return requireData(
|
|
5576
|
-
await arbi.fetch.GET("/v1/
|
|
5567
|
+
await arbi.fetch.GET("/v1/facts/list", {
|
|
5577
5568
|
params: {
|
|
5578
5569
|
query: {
|
|
5579
5570
|
pinned_only: options?.pinnedOnly ?? false,
|
|
@@ -5586,28 +5577,28 @@ async function listNotes(arbi, options) {
|
|
|
5586
5577
|
"Failed to list notes"
|
|
5587
5578
|
);
|
|
5588
5579
|
}
|
|
5589
|
-
async function
|
|
5590
|
-
return requireData(await arbi.fetch.POST("/v1/
|
|
5580
|
+
async function searchFacts(arbi, body) {
|
|
5581
|
+
return requireData(await arbi.fetch.POST("/v1/facts/search", { body }), "Failed to search notes");
|
|
5591
5582
|
}
|
|
5592
|
-
async function
|
|
5583
|
+
async function updateFact(arbi, factId, body) {
|
|
5593
5584
|
return requireData(
|
|
5594
|
-
await arbi.fetch.PATCH("/v1/
|
|
5595
|
-
params: { path: {
|
|
5585
|
+
await arbi.fetch.PATCH("/v1/facts/{fact_ext_id}", {
|
|
5586
|
+
params: { path: { fact_ext_id: factId } },
|
|
5596
5587
|
body
|
|
5597
5588
|
}),
|
|
5598
5589
|
"Failed to update note"
|
|
5599
5590
|
);
|
|
5600
5591
|
}
|
|
5601
|
-
async function
|
|
5602
|
-
const { error } = await arbi.fetch.DELETE("/v1/
|
|
5603
|
-
params: { path: {
|
|
5592
|
+
async function deleteFact(arbi, factId) {
|
|
5593
|
+
const { error } = await arbi.fetch.DELETE("/v1/facts/{fact_ext_id}", {
|
|
5594
|
+
params: { path: { fact_ext_id: factId } }
|
|
5604
5595
|
});
|
|
5605
5596
|
if (error) throw new Error("Failed to delete note");
|
|
5606
5597
|
}
|
|
5607
|
-
async function
|
|
5598
|
+
async function remindFact(arbi, factId, options = {}) {
|
|
5608
5599
|
return requireData(
|
|
5609
|
-
await arbi.fetch.POST("/v1/
|
|
5610
|
-
params: { path: {
|
|
5600
|
+
await arbi.fetch.POST("/v1/facts/{fact_ext_id}/remind", {
|
|
5601
|
+
params: { path: { fact_ext_id: factId } },
|
|
5611
5602
|
body: {
|
|
5612
5603
|
remind_at: options.remindAt ?? null,
|
|
5613
5604
|
lead_minutes: options.leadMinutes ?? null
|
|
@@ -5830,14 +5821,6 @@ var Arbi = class {
|
|
|
5830
5821
|
targetWorkspaceId,
|
|
5831
5822
|
docIds,
|
|
5832
5823
|
targetWorkspaceKey
|
|
5833
|
-
),
|
|
5834
|
-
/**
|
|
5835
|
-
* The last-generated document-derived chronology (key case events / dates).
|
|
5836
|
-
* Defaults to the currently open workspace when no id is passed.
|
|
5837
|
-
*/
|
|
5838
|
-
chronology: (workspaceId) => getWorkspaceChronology(
|
|
5839
|
-
this.requireClient(),
|
|
5840
|
-
workspaceId ?? this.requireWorkspace()
|
|
5841
5824
|
)
|
|
5842
5825
|
};
|
|
5843
5826
|
// ── Documents ─────────────────────────────────────────────────────────
|
|
@@ -6093,18 +6076,18 @@ var Arbi = class {
|
|
|
6093
6076
|
delete: (taskId) => deleteTask(this.requireClient(), taskId),
|
|
6094
6077
|
run: (taskId) => runTask(this.requireClient(), taskId)
|
|
6095
6078
|
};
|
|
6096
|
-
// ── Workspace
|
|
6097
|
-
|
|
6098
|
-
create: (body) =>
|
|
6079
|
+
// ── Workspace facts ─────────────────────────────────────────────────
|
|
6080
|
+
facts = {
|
|
6081
|
+
create: (body) => createFact(this.requireClient(), body),
|
|
6099
6082
|
/** Pass `from`/`to`/`datedOnly` for the timeline view — dated notes only,
|
|
6100
6083
|
* ordered by when they happened. */
|
|
6101
|
-
list: (options) =>
|
|
6102
|
-
search: (body) =>
|
|
6103
|
-
update: (
|
|
6104
|
-
delete: (
|
|
6084
|
+
list: (options) => listFacts(this.requireClient(), options),
|
|
6085
|
+
search: (body) => searchFacts(this.requireClient(), body),
|
|
6086
|
+
update: (factId, body) => updateFact(this.requireClient(), factId, body),
|
|
6087
|
+
delete: (factId) => deleteFact(this.requireClient(), factId),
|
|
6105
6088
|
/** One-off reminder on a dated note: an explicit `remindAt`, or
|
|
6106
6089
|
* `leadMinutes` before its date. */
|
|
6107
|
-
remind: (
|
|
6090
|
+
remind: (factId, options = {}) => remindFact(this.requireClient(), factId, options)
|
|
6108
6091
|
};
|
|
6109
6092
|
// ── Sessions ────────────────────────────────────────────────────────
|
|
6110
6093
|
sessions = {
|
|
@@ -6194,6 +6177,6 @@ function extractResponseText(response) {
|
|
|
6194
6177
|
return parts.join("");
|
|
6195
6178
|
}
|
|
6196
6179
|
|
|
6197
|
-
export { Arbi, ArbiApiError, ArbiError, WebSocketAuthError, agentconfig_exports as agentconfig, assistant_exports as assistant, authenticatedFetch, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, connectWebSocket, connectWithReconnect, consumeSSEStream, contacts_exports as contacts, conversations_exports as conversations, countCitations, createAuthenticatedClient, dm_exports as dm, doctags_exports as doctags, documents_exports as documents, files_exports as files, filterSkills, formatAgentStepLabel, formatFileSize, formatItemLabel, formatUserName, formatWorkspaceChoices, getErrorMessage, getRawWorkspaceKey, health_exports as health,
|
|
6180
|
+
export { Arbi, ArbiApiError, ArbiError, WebSocketAuthError, agentconfig_exports as agentconfig, assistant_exports as assistant, authenticatedFetch, buildRetrievalChunkTool, buildRetrievalFullContextTool, buildRetrievalTocTool, connectWebSocket, connectWithReconnect, consumeSSEStream, contacts_exports as contacts, conversations_exports as conversations, countCitations, createAuthenticatedClient, dm_exports as dm, doctags_exports as doctags, documents_exports as documents, facts_exports as facts, files_exports as files, filterSkills, formatAgentStepLabel, formatFileSize, formatItemLabel, formatUserName, formatWorkspaceChoices, getErrorMessage, getRawWorkspaceKey, health_exports as health, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, performPasswordLogin, projects_exports as projects, requireData, requireOk, resolveAuth, resolveCitations, resolveWorkspace, responses_exports as responses, selectWorkspace, selectWorkspaceById, settings_exports as settings, streamSSE, stripCitationMarkdown, summarizeCitations, tags_exports as tags, tasks_exports as tasks, workspaces_exports as workspaces };
|
|
6198
6181
|
//# sourceMappingURL=browser.js.map
|
|
6199
6182
|
//# sourceMappingURL=browser.js.map
|