@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/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ConfigStore, a as CliConfig, b as CliCredentials, c as ChatSession, A as AuthHeaders, U as UploadBatchResult, d as UploadOptions, e as UploadResult } from './browser-
|
|
2
|
-
export { f as AgentStepEvent, g as Arbi, h as ArbiApiError, i as ArbiError, j as ArbiOptions, k as ArtifactEvent, l as AuthContext, m as AuthenticatedClient, n as CitationSummary, o as ConnectOptions, D as DocumentWaiter, p as DocumentWaiterOptions, F as FormattedWsMessage,
|
|
1
|
+
import { C as ConfigStore, a as CliConfig, b as CliCredentials, c as ChatSession, A as AuthHeaders, U as UploadBatchResult, d as UploadOptions, e as UploadResult } from './browser-D8aF-wkt.cjs';
|
|
2
|
+
export { f as AgentStepEvent, g as Arbi, h as ArbiApiError, i as ArbiError, j as ArbiOptions, k as ArtifactEvent, l as AuthContext, m as AuthenticatedClient, n as CitationSummary, o as ConnectOptions, D as DocumentWaiter, p as DocumentWaiterOptions, F as FormattedWsMessage, M as MessageLevel, 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, a6 as createDocumentWaiter, a7 as dm, a8 as doctags, a9 as documents, aa as files, ab as formatAgentStepLabel, ac as formatFileSize, ad as formatStreamSummary, ae as formatUserName, af as formatWorkspaceChoices, ag as formatWsMessage, ah as generateEncryptedWorkspaceKey, ai as getErrorCode, aj as getErrorMessage, ak as health, al as parseSSEEvents, am as performPasswordLogin, an as performSsoDeviceFlowLogin, 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';
|
|
3
3
|
import '@arbidocs/client';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ConfigStore, a as CliConfig, b as CliCredentials, c as ChatSession, A as AuthHeaders, U as UploadBatchResult, d as UploadOptions, e as UploadResult } from './browser-
|
|
2
|
-
export { f as AgentStepEvent, g as Arbi, h as ArbiApiError, i as ArbiError, j as ArbiOptions, k as ArtifactEvent, l as AuthContext, m as AuthenticatedClient, n as CitationSummary, o as ConnectOptions, D as DocumentWaiter, p as DocumentWaiterOptions, F as FormattedWsMessage,
|
|
1
|
+
import { C as ConfigStore, a as CliConfig, b as CliCredentials, c as ChatSession, A as AuthHeaders, U as UploadBatchResult, d as UploadOptions, e as UploadResult } from './browser-D8aF-wkt.js';
|
|
2
|
+
export { f as AgentStepEvent, g as Arbi, h as ArbiApiError, i as ArbiError, j as ArbiOptions, k as ArtifactEvent, l as AuthContext, m as AuthenticatedClient, n as CitationSummary, o as ConnectOptions, D as DocumentWaiter, p as DocumentWaiterOptions, F as FormattedWsMessage, M as MessageLevel, 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, a6 as createDocumentWaiter, a7 as dm, a8 as doctags, a9 as documents, aa as files, ab as formatAgentStepLabel, ac as formatFileSize, ad as formatStreamSummary, ae as formatUserName, af as formatWorkspaceChoices, ag as formatWsMessage, ah as generateEncryptedWorkspaceKey, ai as getErrorCode, aj as getErrorMessage, ak as health, al as parseSSEEvents, am as performPasswordLogin, an as performSsoDeviceFlowLogin, 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';
|
|
3
3
|
import '@arbidocs/client';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/index.js
CHANGED
|
@@ -584,23 +584,7 @@ async function resolveWorkspace(store, workspaceOpt) {
|
|
|
584
584
|
}
|
|
585
585
|
|
|
586
586
|
// src/sse.ts
|
|
587
|
-
var
|
|
588
|
-
search_documents: "Searching documents",
|
|
589
|
-
get_document_passages: "Reading document",
|
|
590
|
-
get_table_of_contents: "Getting table of contents",
|
|
591
|
-
view_document_pages: "Viewing document pages",
|
|
592
|
-
get_full_document: "Reading full document",
|
|
593
|
-
web_search: "Searching the web",
|
|
594
|
-
read_url: "Reading web pages",
|
|
595
|
-
ask_user: "Asking user",
|
|
596
|
-
compaction: "Compacting conversation",
|
|
597
|
-
personal_agent: "Running agent",
|
|
598
|
-
create_artifact: "Creating artifact",
|
|
599
|
-
create_plan: "Creating plan",
|
|
600
|
-
save_skill: "Saving skill",
|
|
601
|
-
run_code: "Running code"
|
|
602
|
-
};
|
|
603
|
-
var LIFECYCLE_LABELS = {
|
|
587
|
+
var LIFECYCLE_LABELS_FALLBACK = {
|
|
604
588
|
evaluation: "Evaluating results",
|
|
605
589
|
answering: "Writing answer",
|
|
606
590
|
reviewing: "Reviewing answer",
|
|
@@ -609,18 +593,19 @@ var LIFECYCLE_LABELS = {
|
|
|
609
593
|
};
|
|
610
594
|
function formatAgentStepLabel(step) {
|
|
611
595
|
if (step.focus) return step.focus;
|
|
596
|
+
if (step.label) return step.label;
|
|
612
597
|
const detail = step.detail;
|
|
613
598
|
if (step.step === "tool_progress" && detail && detail.length > 0) {
|
|
614
|
-
const
|
|
615
|
-
const label = toolName && TOOL_LABELS[toolName] || LIFECYCLE_LABELS.tool_progress;
|
|
599
|
+
const label = detail[0].label || LIFECYCLE_LABELS_FALLBACK.tool_progress;
|
|
616
600
|
const message = detail[0].message;
|
|
617
601
|
return message ? `${label}: ${message}` : label;
|
|
618
602
|
}
|
|
619
603
|
if (step.step) {
|
|
620
|
-
return
|
|
604
|
+
return LIFECYCLE_LABELS_FALLBACK[step.step] || step.step;
|
|
621
605
|
}
|
|
622
|
-
if (detail && detail.length > 0
|
|
623
|
-
|
|
606
|
+
if (detail && detail.length > 0) {
|
|
607
|
+
if (detail[0].label) return detail[0].label;
|
|
608
|
+
if (detail[0].tool) return detail[0].tool;
|
|
624
609
|
}
|
|
625
610
|
return "";
|
|
626
611
|
}
|
|
@@ -2205,6 +2190,6 @@ function extractResponseText(response) {
|
|
|
2205
2190
|
return parts.join("");
|
|
2206
2191
|
}
|
|
2207
2192
|
|
|
2208
|
-
export { Arbi, ArbiApiError, ArbiError, FileConfigStore,
|
|
2193
|
+
export { Arbi, ArbiApiError, ArbiError, FileConfigStore, 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, createDocumentWaiter, device_flow_exports as deviceFlow, dm_exports as dm, doctags_exports as doctags, documents_exports as documents, documents_node_exports as documentsNode, files_exports as files, formatAgentStepLabel, formatFileSize, formatStreamSummary, formatUserName, formatWorkspaceChoices, formatWsMessage, generateEncryptedWorkspaceKey, getErrorCode, getErrorMessage, health_exports as health, parseSSEEvents, performPasswordLogin, performSsoDeviceFlowLogin, 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 };
|
|
2209
2194
|
//# sourceMappingURL=index.js.map
|
|
2210
2195
|
//# sourceMappingURL=index.js.map
|