@arbidocs/sdk 0.3.18 → 0.3.19
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-DUQ3Eyvd.d.cts → browser-D8aF-wkt.d.cts} +9 -7
- package/dist/{browser-DUQ3Eyvd.d.ts → browser-D8aF-wkt.d.ts} +9 -7
- package/dist/browser.cjs +7 -24
- 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 +8 -23
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +7 -24
- 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 +8 -23
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/browser.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { f as AgentStepEvent, g as Arbi, h as ArbiApiError, i as ArbiError, j as ArbiOptions, k as ArtifactEvent, l as AuthContext, A as AuthHeaders, m as AuthenticatedClient, c as ChatSession, n as CitationSummary, a as CliConfig, b as CliCredentials, C as ConfigStore, o as ConnectOptions,
|
|
1
|
+
export { f as AgentStepEvent, g as Arbi, h as ArbiApiError, i as ArbiError, j as ArbiOptions, k as ArtifactEvent, l as AuthContext, A as AuthHeaders, m as AuthenticatedClient, c as ChatSession, n as CitationSummary, a as CliConfig, b as CliCredentials, C as ConfigStore, o as ConnectOptions, q as MessageMetadataPayload, r as MessageQueuedEvent, O as OutputTokensDetails, Q as QueryOptions, R as ReconnectOptions, s as ReconnectableWsConnection, t as ResolvedCitation, u as ResponseCompletedEvent, v as ResponseContentPartAddedEvent, w as ResponseCreatedEvent, x as ResponseFailedEvent, y as ResponseOutputItemAddedEvent, z as ResponseOutputItemDoneEvent, B as ResponseOutputTextDeltaEvent, E as ResponseOutputTextDoneEvent, G as ResponseUsage, S as SSEEvent, H as SSEStreamCallbacks, I as SSEStreamResult, J as SSEStreamStartData, K as UserInfo, L as UserInputRequestEvent, N as UserMessageEvent, W as WorkspaceContext, P as WsConnection, T as agentconfig, V as assistant, X as authenticatedFetch, Y as buildRetrievalChunkTool, Z as buildRetrievalFullContextTool, _ as buildRetrievalTocTool, $ as connectWebSocket, a0 as connectWithReconnect, a1 as consumeSSEStream, a2 as contacts, a3 as conversations, a4 as countCitations, a5 as createAuthenticatedClient, a7 as dm, a8 as doctags, a9 as documents, aa as files, ab as formatAgentStepLabel, ac as formatFileSize, ae as formatUserName, af as formatWorkspaceChoices, aj as getErrorMessage, ak as health, al as parseSSEEvents, am as performPasswordLogin, ao as requireData, ap as requireOk, aq as resolveAuth, ar as resolveCitations, as as resolveWorkspace, at as responses, au as selectWorkspace, av as selectWorkspaceById, aw as settings, ax as streamSSE, ay as stripCitationMarkdown, az as summarizeCitations, aA as tags, aB as workspaces } from './browser-D8aF-wkt.cjs';
|
|
2
2
|
import '@arbidocs/client';
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { f as AgentStepEvent, g as Arbi, h as ArbiApiError, i as ArbiError, j as ArbiOptions, k as ArtifactEvent, l as AuthContext, A as AuthHeaders, m as AuthenticatedClient, c as ChatSession, n as CitationSummary, a as CliConfig, b as CliCredentials, C as ConfigStore, o as ConnectOptions,
|
|
1
|
+
export { f as AgentStepEvent, g as Arbi, h as ArbiApiError, i as ArbiError, j as ArbiOptions, k as ArtifactEvent, l as AuthContext, A as AuthHeaders, m as AuthenticatedClient, c as ChatSession, n as CitationSummary, a as CliConfig, b as CliCredentials, C as ConfigStore, o as ConnectOptions, q as MessageMetadataPayload, r as MessageQueuedEvent, O as OutputTokensDetails, Q as QueryOptions, R as ReconnectOptions, s as ReconnectableWsConnection, t as ResolvedCitation, u as ResponseCompletedEvent, v as ResponseContentPartAddedEvent, w as ResponseCreatedEvent, x as ResponseFailedEvent, y as ResponseOutputItemAddedEvent, z as ResponseOutputItemDoneEvent, B as ResponseOutputTextDeltaEvent, E as ResponseOutputTextDoneEvent, G as ResponseUsage, S as SSEEvent, H as SSEStreamCallbacks, I as SSEStreamResult, J as SSEStreamStartData, K as UserInfo, L as UserInputRequestEvent, N as UserMessageEvent, W as WorkspaceContext, P as WsConnection, T as agentconfig, V as assistant, X as authenticatedFetch, Y as buildRetrievalChunkTool, Z as buildRetrievalFullContextTool, _ as buildRetrievalTocTool, $ as connectWebSocket, a0 as connectWithReconnect, a1 as consumeSSEStream, a2 as contacts, a3 as conversations, a4 as countCitations, a5 as createAuthenticatedClient, a7 as dm, a8 as doctags, a9 as documents, aa as files, ab as formatAgentStepLabel, ac as formatFileSize, ae as formatUserName, af as formatWorkspaceChoices, aj as getErrorMessage, ak as health, al as parseSSEEvents, am as performPasswordLogin, ao as requireData, ap as requireOk, aq as resolveAuth, ar as resolveCitations, as as resolveWorkspace, at as responses, au as selectWorkspace, av as selectWorkspaceById, aw as settings, ax as streamSSE, ay as stripCitationMarkdown, az as summarizeCitations, aA as tags, aB as workspaces } from './browser-D8aF-wkt.js';
|
|
2
2
|
import '@arbidocs/client';
|
package/dist/browser.js
CHANGED
|
@@ -260,23 +260,7 @@ async function resolveWorkspace(store, workspaceOpt) {
|
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
// src/sse.ts
|
|
263
|
-
var
|
|
264
|
-
search_documents: "Searching documents",
|
|
265
|
-
get_document_passages: "Reading document",
|
|
266
|
-
get_table_of_contents: "Getting table of contents",
|
|
267
|
-
view_document_pages: "Viewing document pages",
|
|
268
|
-
get_full_document: "Reading full document",
|
|
269
|
-
web_search: "Searching the web",
|
|
270
|
-
read_url: "Reading web pages",
|
|
271
|
-
ask_user: "Asking user",
|
|
272
|
-
compaction: "Compacting conversation",
|
|
273
|
-
personal_agent: "Running agent",
|
|
274
|
-
create_artifact: "Creating artifact",
|
|
275
|
-
create_plan: "Creating plan",
|
|
276
|
-
save_skill: "Saving skill",
|
|
277
|
-
run_code: "Running code"
|
|
278
|
-
};
|
|
279
|
-
var LIFECYCLE_LABELS = {
|
|
263
|
+
var LIFECYCLE_LABELS_FALLBACK = {
|
|
280
264
|
evaluation: "Evaluating results",
|
|
281
265
|
answering: "Writing answer",
|
|
282
266
|
reviewing: "Reviewing answer",
|
|
@@ -285,18 +269,19 @@ var LIFECYCLE_LABELS = {
|
|
|
285
269
|
};
|
|
286
270
|
function formatAgentStepLabel(step) {
|
|
287
271
|
if (step.focus) return step.focus;
|
|
272
|
+
if (step.label) return step.label;
|
|
288
273
|
const detail = step.detail;
|
|
289
274
|
if (step.step === "tool_progress" && detail && detail.length > 0) {
|
|
290
|
-
const
|
|
291
|
-
const label = toolName && TOOL_LABELS[toolName] || LIFECYCLE_LABELS.tool_progress;
|
|
275
|
+
const label = detail[0].label || LIFECYCLE_LABELS_FALLBACK.tool_progress;
|
|
292
276
|
const message = detail[0].message;
|
|
293
277
|
return message ? `${label}: ${message}` : label;
|
|
294
278
|
}
|
|
295
279
|
if (step.step) {
|
|
296
|
-
return
|
|
280
|
+
return LIFECYCLE_LABELS_FALLBACK[step.step] || step.step;
|
|
297
281
|
}
|
|
298
|
-
if (detail && detail.length > 0
|
|
299
|
-
|
|
282
|
+
if (detail && detail.length > 0) {
|
|
283
|
+
if (detail[0].label) return detail[0].label;
|
|
284
|
+
if (detail[0].tool) return detail[0].tool;
|
|
300
285
|
}
|
|
301
286
|
return "";
|
|
302
287
|
}
|
|
@@ -1637,6 +1622,6 @@ function extractResponseText(response) {
|
|
|
1637
1622
|
return parts.join("");
|
|
1638
1623
|
}
|
|
1639
1624
|
|
|
1640
|
-
export { Arbi, ArbiApiError, ArbiError,
|
|
1625
|
+
export { Arbi, ArbiApiError, ArbiError, 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, formatAgentStepLabel, formatFileSize, formatUserName, formatWorkspaceChoices, getErrorMessage, health_exports as health, parseSSEEvents, performPasswordLogin, requireData, requireOk, resolveAuth, resolveCitations, resolveWorkspace, responses_exports as responses, selectWorkspace, selectWorkspaceById, settings_exports as settings, streamSSE, stripCitationMarkdown, summarizeCitations, tags_exports as tags, workspaces_exports as workspaces };
|
|
1641
1626
|
//# sourceMappingURL=browser.js.map
|
|
1642
1627
|
//# sourceMappingURL=browser.js.map
|