@arbidocs/sdk 0.3.137 → 0.3.139
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-CygvmtPQ.d.cts} +109 -132
- package/dist/{browser-DSk5KK4x.d.ts → browser-CygvmtPQ.d.ts} +109 -132
- package/dist/browser.cjs +31 -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 +31 -34
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +23 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -5
- package/dist/index.d.ts +4 -5
- package/dist/index.js +23 -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 UpdateNoteRequest, ac as UpdateTaskRequest, ai as UserDailyUsageResponse, aj as UserInfo, ak as UserInputRequestEvent, al as UserMessageEvent, am as WebSocketAuthError, an as WorkspaceChronologyOut, 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 files, aJ as filterSkills, aK as formatAgentStepLabel, aL as formatFileSize, aM as formatItemLabel, aO as formatUserName, aP as formatWorkspaceChoices, aU as getErrorMessage, aV as getRawWorkspaceKey, aW as health, aX as notes, 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-CygvmtPQ.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 UpdateNoteRequest, ac as UpdateTaskRequest, ai as UserDailyUsageResponse, aj as UserInfo, ak as UserInputRequestEvent, al as UserMessageEvent, am as WebSocketAuthError, an as WorkspaceChronologyOut, 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 files, aJ as filterSkills, aK as formatAgentStepLabel, aL as formatFileSize, aM as formatItemLabel, aO as formatUserName, aP as formatWorkspaceChoices, aU as getErrorMessage, aV as getRawWorkspaceKey, aW as health, aX as notes, 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-CygvmtPQ.js';
|
|
2
2
|
import '@arbidocs/client';
|
package/dist/browser.js
CHANGED
|
@@ -5557,46 +5557,43 @@ async function runTask(arbi, taskId) {
|
|
|
5557
5557
|
);
|
|
5558
5558
|
}
|
|
5559
5559
|
|
|
5560
|
-
// src/operations/
|
|
5561
|
-
var
|
|
5562
|
-
__export(
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5560
|
+
// src/operations/notes.ts
|
|
5561
|
+
var notes_exports = {};
|
|
5562
|
+
__export(notes_exports, {
|
|
5563
|
+
createNote: () => createNote,
|
|
5564
|
+
deleteNote: () => deleteNote,
|
|
5565
|
+
listNotes: () => listNotes,
|
|
5566
|
+
searchNotes: () => searchNotes,
|
|
5567
|
+
updateNote: () => updateNote
|
|
5568
5568
|
});
|
|
5569
|
-
async function
|
|
5570
|
-
return requireData(await arbi.fetch.POST("/v1/
|
|
5569
|
+
async function createNote(arbi, body) {
|
|
5570
|
+
return requireData(await arbi.fetch.POST("/v1/notes/", { body }), "Failed to create note");
|
|
5571
5571
|
}
|
|
5572
|
-
async function
|
|
5572
|
+
async function listNotes(arbi, options) {
|
|
5573
5573
|
return requireData(
|
|
5574
|
-
await arbi.fetch.GET("/v1/
|
|
5574
|
+
await arbi.fetch.GET("/v1/notes/list", {
|
|
5575
5575
|
params: { query: { pinned_only: options?.pinnedOnly ?? false } }
|
|
5576
5576
|
}),
|
|
5577
|
-
"Failed to list
|
|
5577
|
+
"Failed to list notes"
|
|
5578
5578
|
);
|
|
5579
5579
|
}
|
|
5580
|
-
async function
|
|
5581
|
-
return requireData(
|
|
5582
|
-
await arbi.fetch.POST("/v1/memory/search", { body }),
|
|
5583
|
-
"Failed to search memories"
|
|
5584
|
-
);
|
|
5580
|
+
async function searchNotes(arbi, body) {
|
|
5581
|
+
return requireData(await arbi.fetch.POST("/v1/notes/search", { body }), "Failed to search notes");
|
|
5585
5582
|
}
|
|
5586
|
-
async function
|
|
5583
|
+
async function updateNote(arbi, memoryId, body) {
|
|
5587
5584
|
return requireData(
|
|
5588
|
-
await arbi.fetch.PATCH("/v1/
|
|
5589
|
-
params: { path: {
|
|
5585
|
+
await arbi.fetch.PATCH("/v1/notes/{note_ext_id}", {
|
|
5586
|
+
params: { path: { note_ext_id: memoryId } },
|
|
5590
5587
|
body
|
|
5591
5588
|
}),
|
|
5592
|
-
"Failed to update
|
|
5589
|
+
"Failed to update note"
|
|
5593
5590
|
);
|
|
5594
5591
|
}
|
|
5595
|
-
async function
|
|
5596
|
-
const { error } = await arbi.fetch.DELETE("/v1/
|
|
5597
|
-
params: { path: {
|
|
5592
|
+
async function deleteNote(arbi, memoryId) {
|
|
5593
|
+
const { error } = await arbi.fetch.DELETE("/v1/notes/{note_ext_id}", {
|
|
5594
|
+
params: { path: { note_ext_id: memoryId } }
|
|
5598
5595
|
});
|
|
5599
|
-
if (error) throw new Error("Failed to delete
|
|
5596
|
+
if (error) throw new Error("Failed to delete note");
|
|
5600
5597
|
}
|
|
5601
5598
|
|
|
5602
5599
|
// src/arbi.ts
|
|
@@ -6075,13 +6072,13 @@ var Arbi = class {
|
|
|
6075
6072
|
delete: (taskId) => deleteTask(this.requireClient(), taskId),
|
|
6076
6073
|
run: (taskId) => runTask(this.requireClient(), taskId)
|
|
6077
6074
|
};
|
|
6078
|
-
// ── Workspace
|
|
6079
|
-
|
|
6080
|
-
create: (body) =>
|
|
6081
|
-
list: (options) =>
|
|
6082
|
-
search: (body) =>
|
|
6083
|
-
update: (
|
|
6084
|
-
delete: (
|
|
6075
|
+
// ── Workspace notes ─────────────────────────────────────────────────
|
|
6076
|
+
notes = {
|
|
6077
|
+
create: (body) => createNote(this.requireClient(), body),
|
|
6078
|
+
list: (options) => listNotes(this.requireClient(), options),
|
|
6079
|
+
search: (body) => searchNotes(this.requireClient(), body),
|
|
6080
|
+
update: (noteId, body) => updateNote(this.requireClient(), noteId, body),
|
|
6081
|
+
delete: (noteId) => deleteNote(this.requireClient(), noteId)
|
|
6085
6082
|
};
|
|
6086
6083
|
// ── Sessions ────────────────────────────────────────────────────────
|
|
6087
6084
|
sessions = {
|
|
@@ -6171,6 +6168,6 @@ function extractResponseText(response) {
|
|
|
6171
6168
|
return parts.join("");
|
|
6172
6169
|
}
|
|
6173
6170
|
|
|
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,
|
|
6171
|
+
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
6172
|
//# sourceMappingURL=browser.js.map
|
|
6176
6173
|
//# sourceMappingURL=browser.js.map
|