@arbidocs/sdk 0.3.145 → 0.3.146
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-Z9m6Vrzw.d.cts} +45 -45
- package/dist/{browser-BgkwIgWN.d.ts → browser-Z9m6Vrzw.d.ts} +45 -45
- package/dist/browser.cjs +33 -33
- 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 -33
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +33 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +33 -33
- 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 WorkspaceChronologyOut, ap as WorkspaceContext, aq as WsConnection, ar as agentconfig, as as assistant, at as authenticatedFetch, 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, aG as dm, aH as doctags, aI as documents, aJ as facts, aK as files, aL as filterSkills, aM as formatAgentStepLabel, aN as formatFileSize, aO as formatItemLabel, aQ as formatUserName, aR as formatWorkspaceChoices, aW as getErrorMessage, aX as getRawWorkspaceKey, aY as health, aZ as parseSSEEvents, a_ as parseSlashCommand, a$ as parseSlashTokenInProgress, b0 as performPasswordLogin, 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-Z9m6Vrzw.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 WorkspaceChronologyOut, ap as WorkspaceContext, aq as WsConnection, ar as agentconfig, as as assistant, at as authenticatedFetch, 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, aG as dm, aH as doctags, aI as documents, aJ as facts, aK as files, aL as filterSkills, aM as formatAgentStepLabel, aN as formatFileSize, aO as formatItemLabel, aQ as formatUserName, aR as formatWorkspaceChoices, aW as getErrorMessage, aX as getRawWorkspaceKey, aY as health, aZ as parseSSEEvents, a_ as parseSlashCommand, a$ as parseSlashTokenInProgress, b0 as performPasswordLogin, 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-Z9m6Vrzw.js';
|
|
2
2
|
import '@arbidocs/client';
|
package/dist/browser.js
CHANGED
|
@@ -5558,22 +5558,22 @@ async function runTask(arbi, taskId) {
|
|
|
5558
5558
|
);
|
|
5559
5559
|
}
|
|
5560
5560
|
|
|
5561
|
-
// src/operations/
|
|
5562
|
-
var
|
|
5563
|
-
__export(
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5561
|
+
// src/operations/facts.ts
|
|
5562
|
+
var facts_exports = {};
|
|
5563
|
+
__export(facts_exports, {
|
|
5564
|
+
createFact: () => createFact,
|
|
5565
|
+
deleteFact: () => deleteFact,
|
|
5566
|
+
listFacts: () => listFacts,
|
|
5567
|
+
remindFact: () => remindFact,
|
|
5568
|
+
searchFacts: () => searchFacts,
|
|
5569
|
+
updateFact: () => updateFact
|
|
5570
5570
|
});
|
|
5571
|
-
async function
|
|
5572
|
-
return requireData(await arbi.fetch.POST("/v1/
|
|
5571
|
+
async function createFact(arbi, body) {
|
|
5572
|
+
return requireData(await arbi.fetch.POST("/v1/facts/", { body }), "Failed to create note");
|
|
5573
5573
|
}
|
|
5574
|
-
async function
|
|
5574
|
+
async function listFacts(arbi, options) {
|
|
5575
5575
|
return requireData(
|
|
5576
|
-
await arbi.fetch.GET("/v1/
|
|
5576
|
+
await arbi.fetch.GET("/v1/facts/list", {
|
|
5577
5577
|
params: {
|
|
5578
5578
|
query: {
|
|
5579
5579
|
pinned_only: options?.pinnedOnly ?? false,
|
|
@@ -5586,28 +5586,28 @@ async function listNotes(arbi, options) {
|
|
|
5586
5586
|
"Failed to list notes"
|
|
5587
5587
|
);
|
|
5588
5588
|
}
|
|
5589
|
-
async function
|
|
5590
|
-
return requireData(await arbi.fetch.POST("/v1/
|
|
5589
|
+
async function searchFacts(arbi, body) {
|
|
5590
|
+
return requireData(await arbi.fetch.POST("/v1/facts/search", { body }), "Failed to search notes");
|
|
5591
5591
|
}
|
|
5592
|
-
async function
|
|
5592
|
+
async function updateFact(arbi, factId, body) {
|
|
5593
5593
|
return requireData(
|
|
5594
|
-
await arbi.fetch.PATCH("/v1/
|
|
5595
|
-
params: { path: {
|
|
5594
|
+
await arbi.fetch.PATCH("/v1/facts/{fact_ext_id}", {
|
|
5595
|
+
params: { path: { fact_ext_id: factId } },
|
|
5596
5596
|
body
|
|
5597
5597
|
}),
|
|
5598
5598
|
"Failed to update note"
|
|
5599
5599
|
);
|
|
5600
5600
|
}
|
|
5601
|
-
async function
|
|
5602
|
-
const { error } = await arbi.fetch.DELETE("/v1/
|
|
5603
|
-
params: { path: {
|
|
5601
|
+
async function deleteFact(arbi, factId) {
|
|
5602
|
+
const { error } = await arbi.fetch.DELETE("/v1/facts/{fact_ext_id}", {
|
|
5603
|
+
params: { path: { fact_ext_id: factId } }
|
|
5604
5604
|
});
|
|
5605
5605
|
if (error) throw new Error("Failed to delete note");
|
|
5606
5606
|
}
|
|
5607
|
-
async function
|
|
5607
|
+
async function remindFact(arbi, factId, options = {}) {
|
|
5608
5608
|
return requireData(
|
|
5609
|
-
await arbi.fetch.POST("/v1/
|
|
5610
|
-
params: { path: {
|
|
5609
|
+
await arbi.fetch.POST("/v1/facts/{fact_ext_id}/remind", {
|
|
5610
|
+
params: { path: { fact_ext_id: factId } },
|
|
5611
5611
|
body: {
|
|
5612
5612
|
remind_at: options.remindAt ?? null,
|
|
5613
5613
|
lead_minutes: options.leadMinutes ?? null
|
|
@@ -6093,18 +6093,18 @@ var Arbi = class {
|
|
|
6093
6093
|
delete: (taskId) => deleteTask(this.requireClient(), taskId),
|
|
6094
6094
|
run: (taskId) => runTask(this.requireClient(), taskId)
|
|
6095
6095
|
};
|
|
6096
|
-
// ── Workspace
|
|
6097
|
-
|
|
6098
|
-
create: (body) =>
|
|
6096
|
+
// ── Workspace facts ─────────────────────────────────────────────────
|
|
6097
|
+
facts = {
|
|
6098
|
+
create: (body) => createFact(this.requireClient(), body),
|
|
6099
6099
|
/** Pass `from`/`to`/`datedOnly` for the timeline view — dated notes only,
|
|
6100
6100
|
* ordered by when they happened. */
|
|
6101
|
-
list: (options) =>
|
|
6102
|
-
search: (body) =>
|
|
6103
|
-
update: (
|
|
6104
|
-
delete: (
|
|
6101
|
+
list: (options) => listFacts(this.requireClient(), options),
|
|
6102
|
+
search: (body) => searchFacts(this.requireClient(), body),
|
|
6103
|
+
update: (factId, body) => updateFact(this.requireClient(), factId, body),
|
|
6104
|
+
delete: (factId) => deleteFact(this.requireClient(), factId),
|
|
6105
6105
|
/** One-off reminder on a dated note: an explicit `remindAt`, or
|
|
6106
6106
|
* `leadMinutes` before its date. */
|
|
6107
|
-
remind: (
|
|
6107
|
+
remind: (factId, options = {}) => remindFact(this.requireClient(), factId, options)
|
|
6108
6108
|
};
|
|
6109
6109
|
// ── Sessions ────────────────────────────────────────────────────────
|
|
6110
6110
|
sessions = {
|
|
@@ -6194,6 +6194,6 @@ function extractResponseText(response) {
|
|
|
6194
6194
|
return parts.join("");
|
|
6195
6195
|
}
|
|
6196
6196
|
|
|
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,
|
|
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, 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
6198
|
//# sourceMappingURL=browser.js.map
|
|
6199
6199
|
//# sourceMappingURL=browser.js.map
|