@arbidocs/sdk 0.3.138 → 0.3.140
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-DSk5KK4x.d.cts → browser-B9JRGjYZ.d.cts} +119 -136
- package/dist/{browser-DSk5KK4x.d.ts → browser-B9JRGjYZ.d.ts} +119 -136
- package/dist/browser.cjs +32 -34
- 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 +32 -34
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +27 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +27 -26
- 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 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-B9JRGjYZ.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 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-B9JRGjYZ.js';
|
|
2
2
|
import '@arbidocs/client';
|
package/dist/browser.js
CHANGED
|
@@ -3950,6 +3950,7 @@ async function streamSSE(response, callbacks = {}) {
|
|
|
3950
3950
|
}
|
|
3951
3951
|
if (data.context) {
|
|
3952
3952
|
context = data.context;
|
|
3953
|
+
callbacks.onContextUpdate?.(data.context);
|
|
3953
3954
|
}
|
|
3954
3955
|
if (data.t != null) callbacks.onElapsedTime?.(data.t);
|
|
3955
3956
|
callbacks.onComplete?.();
|
|
@@ -5557,46 +5558,43 @@ async function runTask(arbi, taskId) {
|
|
|
5557
5558
|
);
|
|
5558
5559
|
}
|
|
5559
5560
|
|
|
5560
|
-
// src/operations/
|
|
5561
|
-
var
|
|
5562
|
-
__export(
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5561
|
+
// src/operations/notes.ts
|
|
5562
|
+
var notes_exports = {};
|
|
5563
|
+
__export(notes_exports, {
|
|
5564
|
+
createNote: () => createNote,
|
|
5565
|
+
deleteNote: () => deleteNote,
|
|
5566
|
+
listNotes: () => listNotes,
|
|
5567
|
+
searchNotes: () => searchNotes,
|
|
5568
|
+
updateNote: () => updateNote
|
|
5568
5569
|
});
|
|
5569
|
-
async function
|
|
5570
|
-
return requireData(await arbi.fetch.POST("/v1/
|
|
5570
|
+
async function createNote(arbi, body) {
|
|
5571
|
+
return requireData(await arbi.fetch.POST("/v1/notes/", { body }), "Failed to create note");
|
|
5571
5572
|
}
|
|
5572
|
-
async function
|
|
5573
|
+
async function listNotes(arbi, options) {
|
|
5573
5574
|
return requireData(
|
|
5574
|
-
await arbi.fetch.GET("/v1/
|
|
5575
|
+
await arbi.fetch.GET("/v1/notes/list", {
|
|
5575
5576
|
params: { query: { pinned_only: options?.pinnedOnly ?? false } }
|
|
5576
5577
|
}),
|
|
5577
|
-
"Failed to list
|
|
5578
|
+
"Failed to list notes"
|
|
5578
5579
|
);
|
|
5579
5580
|
}
|
|
5580
|
-
async function
|
|
5581
|
-
return requireData(
|
|
5582
|
-
await arbi.fetch.POST("/v1/memory/search", { body }),
|
|
5583
|
-
"Failed to search memories"
|
|
5584
|
-
);
|
|
5581
|
+
async function searchNotes(arbi, body) {
|
|
5582
|
+
return requireData(await arbi.fetch.POST("/v1/notes/search", { body }), "Failed to search notes");
|
|
5585
5583
|
}
|
|
5586
|
-
async function
|
|
5584
|
+
async function updateNote(arbi, memoryId, body) {
|
|
5587
5585
|
return requireData(
|
|
5588
|
-
await arbi.fetch.PATCH("/v1/
|
|
5589
|
-
params: { path: {
|
|
5586
|
+
await arbi.fetch.PATCH("/v1/notes/{note_ext_id}", {
|
|
5587
|
+
params: { path: { note_ext_id: memoryId } },
|
|
5590
5588
|
body
|
|
5591
5589
|
}),
|
|
5592
|
-
"Failed to update
|
|
5590
|
+
"Failed to update note"
|
|
5593
5591
|
);
|
|
5594
5592
|
}
|
|
5595
|
-
async function
|
|
5596
|
-
const { error } = await arbi.fetch.DELETE("/v1/
|
|
5597
|
-
params: { path: {
|
|
5593
|
+
async function deleteNote(arbi, memoryId) {
|
|
5594
|
+
const { error } = await arbi.fetch.DELETE("/v1/notes/{note_ext_id}", {
|
|
5595
|
+
params: { path: { note_ext_id: memoryId } }
|
|
5598
5596
|
});
|
|
5599
|
-
if (error) throw new Error("Failed to delete
|
|
5597
|
+
if (error) throw new Error("Failed to delete note");
|
|
5600
5598
|
}
|
|
5601
5599
|
|
|
5602
5600
|
// src/arbi.ts
|
|
@@ -6075,13 +6073,13 @@ var Arbi = class {
|
|
|
6075
6073
|
delete: (taskId) => deleteTask(this.requireClient(), taskId),
|
|
6076
6074
|
run: (taskId) => runTask(this.requireClient(), taskId)
|
|
6077
6075
|
};
|
|
6078
|
-
// ── Workspace
|
|
6079
|
-
|
|
6080
|
-
create: (body) =>
|
|
6081
|
-
list: (options) =>
|
|
6082
|
-
search: (body) =>
|
|
6083
|
-
update: (
|
|
6084
|
-
delete: (
|
|
6076
|
+
// ── Workspace notes ─────────────────────────────────────────────────
|
|
6077
|
+
notes = {
|
|
6078
|
+
create: (body) => createNote(this.requireClient(), body),
|
|
6079
|
+
list: (options) => listNotes(this.requireClient(), options),
|
|
6080
|
+
search: (body) => searchNotes(this.requireClient(), body),
|
|
6081
|
+
update: (noteId, body) => updateNote(this.requireClient(), noteId, body),
|
|
6082
|
+
delete: (noteId) => deleteNote(this.requireClient(), noteId)
|
|
6085
6083
|
};
|
|
6086
6084
|
// ── Sessions ────────────────────────────────────────────────────────
|
|
6087
6085
|
sessions = {
|
|
@@ -6171,6 +6169,6 @@ function extractResponseText(response) {
|
|
|
6171
6169
|
return parts.join("");
|
|
6172
6170
|
}
|
|
6173
6171
|
|
|
6174
|
-
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,
|
|
6172
|
+
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, notes_exports as notes, 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 };
|
|
6175
6173
|
//# sourceMappingURL=browser.js.map
|
|
6176
6174
|
//# sourceMappingURL=browser.js.map
|