@arbidocs/sdk 0.3.121 → 0.3.122
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-BUspHdyk.d.cts → browser-Bq64bPkc.d.cts} +112 -35
- package/dist/{browser-BUspHdyk.d.ts → browser-Bq64bPkc.d.ts} +112 -35
- package/dist/browser.cjs +10 -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 +10 -2
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +20 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +20 -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
|
|
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 CreateMemoryRequest, s as CreateTaskRequest, M as MemoryResponse, B as MemorySearchRequest, E as MemorySearchResponse, H as MessageMetadataPayload, I as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, J as ProbeAnswerEvent, K as ProjectInvoicesResponse, N as ProjectUsageResponse, Q as QueryOptions, R as ReconnectOptions, S as ReconnectableWsConnection, T as ResolvedCitation, V as ResponseCompletedEvent, W as ResponseContentPartAddedEvent, X as ResponseCreatedEvent, Y as ResponseFailedEvent, Z as ResponseOutputItemAddedEvent, _ as ResponseOutputItemDoneEvent, $ as ResponseOutputTextDeltaEvent, a0 as ResponseOutputTextDoneEvent, a1 as ResponseUsage, a2 as SSEEvent, a3 as SSEStreamCallbacks, a4 as SSEStreamResult, a5 as SSEStreamStartData, a7 as SkillSummary, a9 as TaskResponse, aa as UpdateMemoryRequest, ab as UpdateTaskRequest, ah as UserDailyUsageResponse, ai as UserInfo, aj as UserInputRequestEvent, ak as UserMessageEvent, al as WebSocketAuthError, am as WorkspaceChronologyOut, an as WorkspaceContext, ao as WsConnection, ap as agentconfig, aq as assistant, ar as authenticatedFetch, at as buildRetrievalChunkTool, au as buildRetrievalFullContextTool, av as buildRetrievalTocTool, aw as connectWebSocket, ax as connectWithReconnect, ay as consumeSSEStream, az as contacts, aA as conversations, aB as countCitations, aC as createAuthenticatedClient, aE as dm, aF as doctags, aG as documents, aH as files, aI as filterSkills, aJ as formatAgentStepLabel, aK as formatFileSize, aM as formatUserName, aN as formatWorkspaceChoices, aS as getErrorMessage, aT as getRawWorkspaceKey, aU as health, aV as memory, aW as parseSSEEvents, aX as parseSlashCommand, aY as parseSlashTokenInProgress, aZ as performPasswordLogin, b0 as projects, b1 as requireData, b2 as requireOk, b3 as resolveAuth, b4 as resolveCitations, b5 as resolveWorkspace, b6 as responses, b7 as selectWorkspace, b8 as selectWorkspaceById, b9 as settings, ba as streamSSE, bb as stripCitationMarkdown, bc as summarizeCitations, bd as tags, be as tasks, bf as workspaces } from './browser-Bq64bPkc.cjs';
|
|
2
2
|
import '@arbidocs/client';
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A 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 CreateMemoryRequest, s as CreateTaskRequest, M as MemoryResponse, B as MemorySearchRequest, E as MemorySearchResponse, H as MessageMetadataPayload, I as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, J as ProbeAnswerEvent, K as ProjectInvoicesResponse, N as ProjectUsageResponse, Q as QueryOptions, R as ReconnectOptions, S as ReconnectableWsConnection, T as ResolvedCitation, V as ResponseCompletedEvent, W as ResponseContentPartAddedEvent, X as ResponseCreatedEvent, Y as ResponseFailedEvent, Z as ResponseOutputItemAddedEvent, _ as ResponseOutputItemDoneEvent, $ as ResponseOutputTextDeltaEvent, a0 as ResponseOutputTextDoneEvent, a1 as ResponseUsage, a2 as SSEEvent, a3 as SSEStreamCallbacks, a4 as SSEStreamResult, a5 as SSEStreamStartData, a7 as SkillSummary, a9 as TaskResponse, aa as UpdateMemoryRequest, ab as UpdateTaskRequest, ah as UserDailyUsageResponse, ai as UserInfo, aj as UserInputRequestEvent, ak as UserMessageEvent, al as WebSocketAuthError, am as WorkspaceChronologyOut, an as WorkspaceContext, ao as WsConnection, ap as agentconfig, aq as assistant, ar as authenticatedFetch, at as buildRetrievalChunkTool, au as buildRetrievalFullContextTool, av as buildRetrievalTocTool, aw as connectWebSocket, ax as connectWithReconnect, ay as consumeSSEStream, az as contacts, aA as conversations, aB as countCitations, aC as createAuthenticatedClient, aE as dm, aF as doctags, aG as documents, aH as files, aI as filterSkills, aJ as formatAgentStepLabel, aK as formatFileSize, aM as formatUserName, aN as formatWorkspaceChoices, aS as getErrorMessage, aT as getRawWorkspaceKey, aU as health, aV as memory, aW as parseSSEEvents, aX as parseSlashCommand, aY as parseSlashTokenInProgress, aZ as performPasswordLogin, b0 as projects, b1 as requireData, b2 as requireOk, b3 as resolveAuth, b4 as resolveCitations, b5 as resolveWorkspace, b6 as responses, b7 as selectWorkspace, b8 as selectWorkspaceById, b9 as settings, ba as streamSSE, bb as stripCitationMarkdown, bc as summarizeCitations, bd as tags, be as tasks, bf as workspaces } from './browser-Bq64bPkc.js';
|
|
2
2
|
import '@arbidocs/client';
|
package/dist/browser.js
CHANGED
|
@@ -3976,6 +3976,14 @@ async function streamSSE(response, callbacks = {}) {
|
|
|
3976
3976
|
const data = JSON.parse(raw);
|
|
3977
3977
|
callbacks.onUserInputRequest?.(data);
|
|
3978
3978
|
},
|
|
3979
|
+
"arbi.probe_answer": (raw) => {
|
|
3980
|
+
const data = JSON.parse(raw);
|
|
3981
|
+
callbacks.onProbeAnswer?.(data);
|
|
3982
|
+
},
|
|
3983
|
+
"arbi.agent_control_state": (raw) => {
|
|
3984
|
+
const data = JSON.parse(raw);
|
|
3985
|
+
callbacks.onAgentControlState?.(data);
|
|
3986
|
+
},
|
|
3979
3987
|
"arbi.artifact": (raw) => {
|
|
3980
3988
|
const data = JSON.parse(raw);
|
|
3981
3989
|
artifacts.push(data);
|
|
@@ -4901,10 +4909,10 @@ async function queryAssistant(options) {
|
|
|
4901
4909
|
}
|
|
4902
4910
|
async function respondToAgent(arbi, assistantMessageExtId, answer) {
|
|
4903
4911
|
return requireData(
|
|
4904
|
-
await arbi.fetch.POST("/v1/assistant/
|
|
4912
|
+
await arbi.fetch.POST("/v1/assistant/interject", {
|
|
4905
4913
|
body: { assistant_message_ext_id: assistantMessageExtId, answer }
|
|
4906
4914
|
}),
|
|
4907
|
-
"Failed to
|
|
4915
|
+
"Failed to interject into agent"
|
|
4908
4916
|
);
|
|
4909
4917
|
}
|
|
4910
4918
|
async function listSkills(arbi, options) {
|