@arbidocs/sdk 0.3.140 → 0.3.141
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-B9JRGjYZ.d.cts → browser-D239JHwL.d.cts} +79 -12
- package/dist/{browser-B9JRGjYZ.d.ts → browser-D239JHwL.d.ts} +79 -12
- package/dist/browser.cjs +27 -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 +27 -2
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +36 -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 +36 -3
- 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 CreateNoteRequest, s as CreateTaskRequest, t as DeferredInterjectionEvent, E as MessageMetadataPayload, G as MessageQueuedEvent, N as NoteResponse, H as NoteSearchRequest, I as NoteSearchResponse, O as OutputTokensDetails, P as ParsedSlashCommand, J as ProbeAnswerEvent, K 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 UpdateNoteRequest, 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 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 notes, 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-
|
|
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 CreateNoteRequest, s as CreateTaskRequest, t as DeferredInterjectionEvent, E as MessageMetadataPayload, G as MessageQueuedEvent, N as NoteResponse, H as NoteSearchRequest, I as NoteSearchResponse, O as OutputTokensDetails, P as ParsedSlashCommand, J as ProbeAnswerEvent, K 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 UpdateNoteRequest, 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 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 notes, 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-D239JHwL.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 CreateNoteRequest, s as CreateTaskRequest, t as DeferredInterjectionEvent, E as MessageMetadataPayload, G as MessageQueuedEvent, N as NoteResponse, H as NoteSearchRequest, I as NoteSearchResponse, O as OutputTokensDetails, P as ParsedSlashCommand, J as ProbeAnswerEvent, K 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 UpdateNoteRequest, 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 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 notes, 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-
|
|
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 CreateNoteRequest, s as CreateTaskRequest, t as DeferredInterjectionEvent, E as MessageMetadataPayload, G as MessageQueuedEvent, N as NoteResponse, H as NoteSearchRequest, I as NoteSearchResponse, O as OutputTokensDetails, P as ParsedSlashCommand, J as ProbeAnswerEvent, K 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 UpdateNoteRequest, 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 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 notes, 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-D239JHwL.js';
|
|
2
2
|
import '@arbidocs/client';
|
package/dist/browser.js
CHANGED
|
@@ -5564,6 +5564,7 @@ __export(notes_exports, {
|
|
|
5564
5564
|
createNote: () => createNote,
|
|
5565
5565
|
deleteNote: () => deleteNote,
|
|
5566
5566
|
listNotes: () => listNotes,
|
|
5567
|
+
remindNote: () => remindNote,
|
|
5567
5568
|
searchNotes: () => searchNotes,
|
|
5568
5569
|
updateNote: () => updateNote
|
|
5569
5570
|
});
|
|
@@ -5573,7 +5574,14 @@ async function createNote(arbi, body) {
|
|
|
5573
5574
|
async function listNotes(arbi, options) {
|
|
5574
5575
|
return requireData(
|
|
5575
5576
|
await arbi.fetch.GET("/v1/notes/list", {
|
|
5576
|
-
params: {
|
|
5577
|
+
params: {
|
|
5578
|
+
query: {
|
|
5579
|
+
pinned_only: options?.pinnedOnly ?? false,
|
|
5580
|
+
date_from: options?.from,
|
|
5581
|
+
date_to: options?.to,
|
|
5582
|
+
dated_only: options?.datedOnly
|
|
5583
|
+
}
|
|
5584
|
+
}
|
|
5577
5585
|
}),
|
|
5578
5586
|
"Failed to list notes"
|
|
5579
5587
|
);
|
|
@@ -5596,6 +5604,18 @@ async function deleteNote(arbi, memoryId) {
|
|
|
5596
5604
|
});
|
|
5597
5605
|
if (error) throw new Error("Failed to delete note");
|
|
5598
5606
|
}
|
|
5607
|
+
async function remindNote(arbi, noteId, options = {}) {
|
|
5608
|
+
return requireData(
|
|
5609
|
+
await arbi.fetch.POST("/v1/notes/{note_ext_id}/remind", {
|
|
5610
|
+
params: { path: { note_ext_id: noteId } },
|
|
5611
|
+
body: {
|
|
5612
|
+
remind_at: options.remindAt ?? null,
|
|
5613
|
+
lead_minutes: options.leadMinutes ?? null
|
|
5614
|
+
}
|
|
5615
|
+
}),
|
|
5616
|
+
"Failed to set reminder"
|
|
5617
|
+
);
|
|
5618
|
+
}
|
|
5599
5619
|
|
|
5600
5620
|
// src/arbi.ts
|
|
5601
5621
|
var Arbi = class {
|
|
@@ -6076,10 +6096,15 @@ var Arbi = class {
|
|
|
6076
6096
|
// ── Workspace notes ─────────────────────────────────────────────────
|
|
6077
6097
|
notes = {
|
|
6078
6098
|
create: (body) => createNote(this.requireClient(), body),
|
|
6099
|
+
/** Pass `from`/`to`/`datedOnly` for the timeline view — dated notes only,
|
|
6100
|
+
* ordered by when they happened. */
|
|
6079
6101
|
list: (options) => listNotes(this.requireClient(), options),
|
|
6080
6102
|
search: (body) => searchNotes(this.requireClient(), body),
|
|
6081
6103
|
update: (noteId, body) => updateNote(this.requireClient(), noteId, body),
|
|
6082
|
-
delete: (noteId) => deleteNote(this.requireClient(), noteId)
|
|
6104
|
+
delete: (noteId) => deleteNote(this.requireClient(), noteId),
|
|
6105
|
+
/** One-off reminder on a dated note: an explicit `remindAt`, or
|
|
6106
|
+
* `leadMinutes` before its date. */
|
|
6107
|
+
remind: (noteId, options = {}) => remindNote(this.requireClient(), noteId, options)
|
|
6083
6108
|
};
|
|
6084
6109
|
// ── Sessions ────────────────────────────────────────────────────────
|
|
6085
6110
|
sessions = {
|