@arbidocs/sdk 0.3.144 → 0.3.146
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-Cj68Nzgn.d.cts → browser-Z9m6Vrzw.d.cts} +61 -49
- package/dist/{browser-Cj68Nzgn.d.ts → browser-Z9m6Vrzw.d.ts} +61 -49
- package/dist/browser.cjs +33 -33
- 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 +33 -33
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +33 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +33 -33
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as ConfigStore, m as CliConfig, n as CliCredentials, C as ChatSession, a9 as SkippedFile, ai as UploadResult, j as AuthHeaders, ae as UploadBatchResult, ah as UploadOptions, af as UploadDirectOptions, ag as UploadDirectResult, a7 as SUPPORTED_EXTENSIONS, u as DmCryptoContext } from './browser-
|
|
2
|
-
export { b as AgentStepEvent, c as Arbi, d as ArbiApiError, e as ArbiError, g as ArbiOptions, h as ArtifactEvent, i as AuthContext, k as AuthenticatedClient, l as CitationSummary, o as CommandDescriptor, q as ConnectOptions, D as DOC_TERMINAL_STATUSES, v as DocNameMap, w as DocumentListFields, x as DocumentListOrder, y as DocumentWaiter, z as DocumentWaiterOptions,
|
|
1
|
+
import { p as ConfigStore, m as CliConfig, n as CliCredentials, C as ChatSession, a9 as SkippedFile, ai as UploadResult, j as AuthHeaders, ae as UploadBatchResult, ah as UploadOptions, af as UploadDirectOptions, ag as UploadDirectResult, a7 as SUPPORTED_EXTENSIONS, u as DmCryptoContext } from './browser-Z9m6Vrzw.cjs';
|
|
2
|
+
export { b as AgentStepEvent, c as Arbi, d as ArbiApiError, e as ArbiError, g as ArbiOptions, h as ArtifactEvent, i as AuthContext, k as AuthenticatedClient, l as CitationSummary, o as CommandDescriptor, q as ConnectOptions, D as DOC_TERMINAL_STATUSES, v as DocNameMap, w as DocumentListFields, x as DocumentListOrder, y as DocumentWaiter, z as DocumentWaiterOptions, G as FormattedWsMessage, L as ListAllOptions, H as ListPaginatedOptions, M as MessageLevel, I as MessageMetadataPayload, J as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, N as ProjectInvoicesResponse, Q as ProjectUsageResponse, R as QueryOptions, S as ReconnectOptions, T as ReconnectableWsConnection, U as ResolvedCitation, V as ResolvedRecipient, 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, ab as TokenBudgetContext, 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, au as buildDocNameMap, 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, aF as createDocumentWaiter, aG as dm, aH as doctags, aI as documents, aJ as facts, aK as files, aL as filterSkills, aM as formatAgentStepLabel, aN as formatFileSize, aO as formatItemLabel, aP as formatStreamSummary, aQ as formatUserName, aR as formatWorkspaceChoices, aS as formatWsMessage, aT as generateEncryptedWorkspaceKey, aU as generateNewWorkspaceKey, aV as getErrorCode, aW as getErrorMessage, aX as getRawWorkspaceKey, aY as health, aZ as parseSSEEvents, a_ as parseSlashCommand, a$ as parseSlashTokenInProgress, b0 as performPasswordLogin, b1 as performSigningKeyLogin, b2 as performSsoDeviceFlowLogin, 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-Z9m6Vrzw.cjs';
|
|
3
3
|
import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -404,7 +404,7 @@ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
|
|
|
404
404
|
VISION_ENABLED: boolean;
|
|
405
405
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
406
406
|
PERSONAL_AGENT: boolean;
|
|
407
|
-
|
|
407
|
+
FACTS_ENABLED: boolean;
|
|
408
408
|
PERSIST_LEARNINGS: boolean;
|
|
409
409
|
SKILLS_ENABLED: boolean;
|
|
410
410
|
SKILL_CREATION: boolean;
|
|
@@ -638,7 +638,7 @@ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
|
|
|
638
638
|
IMAGE_ENABLED: boolean;
|
|
639
639
|
VISION_ENABLED: boolean;
|
|
640
640
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
641
|
-
|
|
641
|
+
FACTS_ENABLED: boolean;
|
|
642
642
|
PERSIST_LEARNINGS: boolean;
|
|
643
643
|
SKILLS_ENABLED: boolean;
|
|
644
644
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as ConfigStore, m as CliConfig, n as CliCredentials, C as ChatSession, a9 as SkippedFile, ai as UploadResult, j as AuthHeaders, ae as UploadBatchResult, ah as UploadOptions, af as UploadDirectOptions, ag as UploadDirectResult, a7 as SUPPORTED_EXTENSIONS, u as DmCryptoContext } from './browser-
|
|
2
|
-
export { b as AgentStepEvent, c as Arbi, d as ArbiApiError, e as ArbiError, g as ArbiOptions, h as ArtifactEvent, i as AuthContext, k as AuthenticatedClient, l as CitationSummary, o as CommandDescriptor, q as ConnectOptions, D as DOC_TERMINAL_STATUSES, v as DocNameMap, w as DocumentListFields, x as DocumentListOrder, y as DocumentWaiter, z as DocumentWaiterOptions,
|
|
1
|
+
import { p as ConfigStore, m as CliConfig, n as CliCredentials, C as ChatSession, a9 as SkippedFile, ai as UploadResult, j as AuthHeaders, ae as UploadBatchResult, ah as UploadOptions, af as UploadDirectOptions, ag as UploadDirectResult, a7 as SUPPORTED_EXTENSIONS, u as DmCryptoContext } from './browser-Z9m6Vrzw.js';
|
|
2
|
+
export { b as AgentStepEvent, c as Arbi, d as ArbiApiError, e as ArbiError, g as ArbiOptions, h as ArtifactEvent, i as AuthContext, k as AuthenticatedClient, l as CitationSummary, o as CommandDescriptor, q as ConnectOptions, D as DOC_TERMINAL_STATUSES, v as DocNameMap, w as DocumentListFields, x as DocumentListOrder, y as DocumentWaiter, z as DocumentWaiterOptions, G as FormattedWsMessage, L as ListAllOptions, H as ListPaginatedOptions, M as MessageLevel, I as MessageMetadataPayload, J as MessageQueuedEvent, O as OutputTokensDetails, P as ParsedSlashCommand, N as ProjectInvoicesResponse, Q as ProjectUsageResponse, R as QueryOptions, S as ReconnectOptions, T as ReconnectableWsConnection, U as ResolvedCitation, V as ResolvedRecipient, 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, ab as TokenBudgetContext, 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, au as buildDocNameMap, 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, aF as createDocumentWaiter, aG as dm, aH as doctags, aI as documents, aJ as facts, aK as files, aL as filterSkills, aM as formatAgentStepLabel, aN as formatFileSize, aO as formatItemLabel, aP as formatStreamSummary, aQ as formatUserName, aR as formatWorkspaceChoices, aS as formatWsMessage, aT as generateEncryptedWorkspaceKey, aU as generateNewWorkspaceKey, aV as getErrorCode, aW as getErrorMessage, aX as getRawWorkspaceKey, aY as health, aZ as parseSSEEvents, a_ as parseSlashCommand, a$ as parseSlashTokenInProgress, b0 as performPasswordLogin, b1 as performSigningKeyLogin, b2 as performSsoDeviceFlowLogin, 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-Z9m6Vrzw.js';
|
|
3
3
|
import { SessionStorageProvider, ArbiClient, components } from '@arbidocs/client';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -404,7 +404,7 @@ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
|
|
|
404
404
|
VISION_ENABLED: boolean;
|
|
405
405
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
406
406
|
PERSONAL_AGENT: boolean;
|
|
407
|
-
|
|
407
|
+
FACTS_ENABLED: boolean;
|
|
408
408
|
PERSIST_LEARNINGS: boolean;
|
|
409
409
|
SKILLS_ENABLED: boolean;
|
|
410
410
|
SKILL_CREATION: boolean;
|
|
@@ -638,7 +638,7 @@ declare function getAgentConfig(arbi: ArbiClient, agentExtId: string): Promise<{
|
|
|
638
638
|
IMAGE_ENABLED: boolean;
|
|
639
639
|
VISION_ENABLED: boolean;
|
|
640
640
|
CONVERSATION_SEARCH_ENABLED: boolean;
|
|
641
|
-
|
|
641
|
+
FACTS_ENABLED: boolean;
|
|
642
642
|
PERSIST_LEARNINGS: boolean;
|
|
643
643
|
SKILLS_ENABLED: boolean;
|
|
644
644
|
WORKSPACE_TOOLS_ENABLED: boolean;
|
package/dist/index.js
CHANGED
|
@@ -6121,22 +6121,22 @@ async function runTask(arbi, taskId) {
|
|
|
6121
6121
|
);
|
|
6122
6122
|
}
|
|
6123
6123
|
|
|
6124
|
-
// src/operations/
|
|
6125
|
-
var
|
|
6126
|
-
__export(
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6124
|
+
// src/operations/facts.ts
|
|
6125
|
+
var facts_exports = {};
|
|
6126
|
+
__export(facts_exports, {
|
|
6127
|
+
createFact: () => createFact,
|
|
6128
|
+
deleteFact: () => deleteFact,
|
|
6129
|
+
listFacts: () => listFacts,
|
|
6130
|
+
remindFact: () => remindFact,
|
|
6131
|
+
searchFacts: () => searchFacts,
|
|
6132
|
+
updateFact: () => updateFact
|
|
6133
6133
|
});
|
|
6134
|
-
async function
|
|
6135
|
-
return requireData(await arbi.fetch.POST("/v1/
|
|
6134
|
+
async function createFact(arbi, body) {
|
|
6135
|
+
return requireData(await arbi.fetch.POST("/v1/facts/", { body }), "Failed to create note");
|
|
6136
6136
|
}
|
|
6137
|
-
async function
|
|
6137
|
+
async function listFacts(arbi, options) {
|
|
6138
6138
|
return requireData(
|
|
6139
|
-
await arbi.fetch.GET("/v1/
|
|
6139
|
+
await arbi.fetch.GET("/v1/facts/list", {
|
|
6140
6140
|
params: {
|
|
6141
6141
|
query: {
|
|
6142
6142
|
pinned_only: options?.pinnedOnly ?? false,
|
|
@@ -6149,28 +6149,28 @@ async function listNotes(arbi, options) {
|
|
|
6149
6149
|
"Failed to list notes"
|
|
6150
6150
|
);
|
|
6151
6151
|
}
|
|
6152
|
-
async function
|
|
6153
|
-
return requireData(await arbi.fetch.POST("/v1/
|
|
6152
|
+
async function searchFacts(arbi, body) {
|
|
6153
|
+
return requireData(await arbi.fetch.POST("/v1/facts/search", { body }), "Failed to search notes");
|
|
6154
6154
|
}
|
|
6155
|
-
async function
|
|
6155
|
+
async function updateFact(arbi, factId, body) {
|
|
6156
6156
|
return requireData(
|
|
6157
|
-
await arbi.fetch.PATCH("/v1/
|
|
6158
|
-
params: { path: {
|
|
6157
|
+
await arbi.fetch.PATCH("/v1/facts/{fact_ext_id}", {
|
|
6158
|
+
params: { path: { fact_ext_id: factId } },
|
|
6159
6159
|
body
|
|
6160
6160
|
}),
|
|
6161
6161
|
"Failed to update note"
|
|
6162
6162
|
);
|
|
6163
6163
|
}
|
|
6164
|
-
async function
|
|
6165
|
-
const { error } = await arbi.fetch.DELETE("/v1/
|
|
6166
|
-
params: { path: {
|
|
6164
|
+
async function deleteFact(arbi, factId) {
|
|
6165
|
+
const { error } = await arbi.fetch.DELETE("/v1/facts/{fact_ext_id}", {
|
|
6166
|
+
params: { path: { fact_ext_id: factId } }
|
|
6167
6167
|
});
|
|
6168
6168
|
if (error) throw new Error("Failed to delete note");
|
|
6169
6169
|
}
|
|
6170
|
-
async function
|
|
6170
|
+
async function remindFact(arbi, factId, options = {}) {
|
|
6171
6171
|
return requireData(
|
|
6172
|
-
await arbi.fetch.POST("/v1/
|
|
6173
|
-
params: { path: {
|
|
6172
|
+
await arbi.fetch.POST("/v1/facts/{fact_ext_id}/remind", {
|
|
6173
|
+
params: { path: { fact_ext_id: factId } },
|
|
6174
6174
|
body: {
|
|
6175
6175
|
remind_at: options.remindAt ?? null,
|
|
6176
6176
|
lead_minutes: options.leadMinutes ?? null
|
|
@@ -6656,18 +6656,18 @@ var Arbi = class {
|
|
|
6656
6656
|
delete: (taskId) => deleteTask(this.requireClient(), taskId),
|
|
6657
6657
|
run: (taskId) => runTask(this.requireClient(), taskId)
|
|
6658
6658
|
};
|
|
6659
|
-
// ── Workspace
|
|
6660
|
-
|
|
6661
|
-
create: (body) =>
|
|
6659
|
+
// ── Workspace facts ─────────────────────────────────────────────────
|
|
6660
|
+
facts = {
|
|
6661
|
+
create: (body) => createFact(this.requireClient(), body),
|
|
6662
6662
|
/** Pass `from`/`to`/`datedOnly` for the timeline view — dated notes only,
|
|
6663
6663
|
* ordered by when they happened. */
|
|
6664
|
-
list: (options) =>
|
|
6665
|
-
search: (body) =>
|
|
6666
|
-
update: (
|
|
6667
|
-
delete: (
|
|
6664
|
+
list: (options) => listFacts(this.requireClient(), options),
|
|
6665
|
+
search: (body) => searchFacts(this.requireClient(), body),
|
|
6666
|
+
update: (factId, body) => updateFact(this.requireClient(), factId, body),
|
|
6667
|
+
delete: (factId) => deleteFact(this.requireClient(), factId),
|
|
6668
6668
|
/** One-off reminder on a dated note: an explicit `remindAt`, or
|
|
6669
6669
|
* `leadMinutes` before its date. */
|
|
6670
|
-
remind: (
|
|
6670
|
+
remind: (factId, options = {}) => remindFact(this.requireClient(), factId, options)
|
|
6671
6671
|
};
|
|
6672
6672
|
// ── Sessions ────────────────────────────────────────────────────────
|
|
6673
6673
|
sessions = {
|
|
@@ -7816,6 +7816,6 @@ async function startDmListener(options) {
|
|
|
7816
7816
|
};
|
|
7817
7817
|
}
|
|
7818
7818
|
|
|
7819
|
-
export { Arbi, ArbiApiError, ArbiError, ClaudeOrchestrator, DOC_TERMINAL_STATUSES, FileConfigStore, OpenClawOrchestrator, WebSocketAuthError, agentconfig_exports as agentconfig, agents_exports as agents, assistant_exports as assistant, authenticatedFetch, buildDocNameMap, 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, filterSkills, formatAgentStepLabel, formatFileSize, formatItemLabel, formatStreamSummary, formatUserName, formatWorkspaceChoices, formatWsMessage, generateEncryptedWorkspaceKey, generateNewWorkspaceKey, getErrorCode, getErrorMessage, getRawWorkspaceKey, health_exports as health, listen_exports as listen,
|
|
7819
|
+
export { Arbi, ArbiApiError, ArbiError, ClaudeOrchestrator, DOC_TERMINAL_STATUSES, FileConfigStore, OpenClawOrchestrator, WebSocketAuthError, agentconfig_exports as agentconfig, agents_exports as agents, assistant_exports as assistant, authenticatedFetch, buildDocNameMap, 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, facts_exports as facts, files_exports as files, filterSkills, formatAgentStepLabel, formatFileSize, formatItemLabel, formatStreamSummary, formatUserName, formatWorkspaceChoices, formatWsMessage, generateEncryptedWorkspaceKey, generateNewWorkspaceKey, getErrorCode, getErrorMessage, getRawWorkspaceKey, health_exports as health, listen_exports as listen, parseSSEEvents, parseSlashCommand, parseSlashTokenInProgress, performPasswordLogin, performSigningKeyLogin, performSsoDeviceFlowLogin, profile_exports as profile, projects_exports as projects, requireData, requireOk, resolveAuth, resolveCitations, resolveWorkspace, responses_exports as responses, selectWorkspace, selectWorkspaceById, sessions_exports as sessions, settings_exports as settings, startDmListener, streamSSE, stripCitationMarkdown, summarizeCitations, tags_exports as tags, tasks_exports as tasks, workspaces_exports as workspaces };
|
|
7820
7820
|
//# sourceMappingURL=index.js.map
|
|
7821
7821
|
//# sourceMappingURL=index.js.map
|