@arbidocs/sdk 0.3.80 → 0.3.81
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-DIO4_N2g.d.cts → browser-CV7TVakj.d.cts} +16 -4
- package/dist/{browser-DIO4_N2g.d.ts → browser-CV7TVakj.d.ts} +16 -4
- package/dist/browser.cjs +12 -1
- 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 +12 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +12 -1
- 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 +12 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -2705,7 +2705,6 @@ declare class Arbi {
|
|
|
2705
2705
|
MEMORY_CREATION: boolean;
|
|
2706
2706
|
GOALS_ENABLED: boolean;
|
|
2707
2707
|
GOAL_MAX_OUTER_LOOPS: number;
|
|
2708
|
-
REVIEW_ENABLED: boolean;
|
|
2709
2708
|
PERSONA: string;
|
|
2710
2709
|
AGENT_MODEL_NAME: string;
|
|
2711
2710
|
AGENT_API_TYPE: "local" | "remote";
|
|
@@ -3368,9 +3367,11 @@ declare namespace tags {
|
|
|
3368
3367
|
}
|
|
3369
3368
|
|
|
3370
3369
|
/**
|
|
3371
|
-
* Conversation operations — list, threads, delete, share, title, messages.
|
|
3370
|
+
* Conversation operations — list, threads, delete, share, title, messages, import.
|
|
3372
3371
|
*/
|
|
3373
3372
|
|
|
3373
|
+
type ConversationImportResponse = components['schemas']['ConversationImportResponse'];
|
|
3374
|
+
|
|
3374
3375
|
declare function listConversations(arbi: ArbiClient): Promise<{
|
|
3375
3376
|
external_id: string;
|
|
3376
3377
|
title: string | null;
|
|
@@ -3382,6 +3383,16 @@ declare function listConversations(arbi: ArbiClient): Promise<{
|
|
|
3382
3383
|
message_count: number;
|
|
3383
3384
|
last_message_status?: string | null | undefined;
|
|
3384
3385
|
}[]>;
|
|
3386
|
+
/**
|
|
3387
|
+
* Import a conversation export into the active workspace.
|
|
3388
|
+
*
|
|
3389
|
+
* Accepts a ChatGPT data export (`conversations.json`), an OpenClaw session log, or a
|
|
3390
|
+
* Claude Code transcript (`.jsonl`); `source='auto'` lets the server detect the format.
|
|
3391
|
+
* Uses raw multipart fetch (the typed client can't express file uploads), mirroring
|
|
3392
|
+
* `files.uploadFile`. The active workspace + cipher are resolved server-side from the
|
|
3393
|
+
* session, so no extra header is needed.
|
|
3394
|
+
*/
|
|
3395
|
+
declare function importConversations(auth: AuthHeaders, fileData: Blob, fileName: string, source?: string): Promise<ConversationImportResponse>;
|
|
3385
3396
|
declare function getConversationThreads(arbi: ArbiClient, conversationId: string): Promise<{
|
|
3386
3397
|
conversation_ext_id: string;
|
|
3387
3398
|
threads: {
|
|
@@ -3668,15 +3679,17 @@ declare function deleteMessage(arbi: ArbiClient, messageId: string): Promise<{
|
|
|
3668
3679
|
detail: string;
|
|
3669
3680
|
}>;
|
|
3670
3681
|
|
|
3682
|
+
type conversations_ConversationImportResponse = ConversationImportResponse;
|
|
3671
3683
|
declare const conversations_deleteConversation: typeof deleteConversation;
|
|
3672
3684
|
declare const conversations_deleteMessage: typeof deleteMessage;
|
|
3673
3685
|
declare const conversations_getConversationThreads: typeof getConversationThreads;
|
|
3674
3686
|
declare const conversations_getMessage: typeof getMessage;
|
|
3687
|
+
declare const conversations_importConversations: typeof importConversations;
|
|
3675
3688
|
declare const conversations_listConversations: typeof listConversations;
|
|
3676
3689
|
declare const conversations_shareConversation: typeof shareConversation;
|
|
3677
3690
|
declare const conversations_updateConversationTitle: typeof updateConversationTitle;
|
|
3678
3691
|
declare namespace conversations {
|
|
3679
|
-
export { conversations_deleteConversation as deleteConversation, conversations_deleteMessage as deleteMessage, conversations_getConversationThreads as getConversationThreads, conversations_getMessage as getMessage, conversations_listConversations as listConversations, conversations_shareConversation as shareConversation, conversations_updateConversationTitle as updateConversationTitle };
|
|
3692
|
+
export { type conversations_ConversationImportResponse as ConversationImportResponse, conversations_deleteConversation as deleteConversation, conversations_deleteMessage as deleteMessage, conversations_getConversationThreads as getConversationThreads, conversations_getMessage as getMessage, conversations_importConversations as importConversations, conversations_listConversations as listConversations, conversations_shareConversation as shareConversation, conversations_updateConversationTitle as updateConversationTitle };
|
|
3680
3693
|
}
|
|
3681
3694
|
|
|
3682
3695
|
/**
|
|
@@ -4051,7 +4064,6 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
4051
4064
|
MEMORY_CREATION: boolean;
|
|
4052
4065
|
GOALS_ENABLED: boolean;
|
|
4053
4066
|
GOAL_MAX_OUTER_LOOPS: number;
|
|
4054
|
-
REVIEW_ENABLED: boolean;
|
|
4055
4067
|
PERSONA: string;
|
|
4056
4068
|
AGENT_MODEL_NAME: string;
|
|
4057
4069
|
AGENT_API_TYPE: "local" | "remote";
|
|
@@ -2705,7 +2705,6 @@ declare class Arbi {
|
|
|
2705
2705
|
MEMORY_CREATION: boolean;
|
|
2706
2706
|
GOALS_ENABLED: boolean;
|
|
2707
2707
|
GOAL_MAX_OUTER_LOOPS: number;
|
|
2708
|
-
REVIEW_ENABLED: boolean;
|
|
2709
2708
|
PERSONA: string;
|
|
2710
2709
|
AGENT_MODEL_NAME: string;
|
|
2711
2710
|
AGENT_API_TYPE: "local" | "remote";
|
|
@@ -3368,9 +3367,11 @@ declare namespace tags {
|
|
|
3368
3367
|
}
|
|
3369
3368
|
|
|
3370
3369
|
/**
|
|
3371
|
-
* Conversation operations — list, threads, delete, share, title, messages.
|
|
3370
|
+
* Conversation operations — list, threads, delete, share, title, messages, import.
|
|
3372
3371
|
*/
|
|
3373
3372
|
|
|
3373
|
+
type ConversationImportResponse = components['schemas']['ConversationImportResponse'];
|
|
3374
|
+
|
|
3374
3375
|
declare function listConversations(arbi: ArbiClient): Promise<{
|
|
3375
3376
|
external_id: string;
|
|
3376
3377
|
title: string | null;
|
|
@@ -3382,6 +3383,16 @@ declare function listConversations(arbi: ArbiClient): Promise<{
|
|
|
3382
3383
|
message_count: number;
|
|
3383
3384
|
last_message_status?: string | null | undefined;
|
|
3384
3385
|
}[]>;
|
|
3386
|
+
/**
|
|
3387
|
+
* Import a conversation export into the active workspace.
|
|
3388
|
+
*
|
|
3389
|
+
* Accepts a ChatGPT data export (`conversations.json`), an OpenClaw session log, or a
|
|
3390
|
+
* Claude Code transcript (`.jsonl`); `source='auto'` lets the server detect the format.
|
|
3391
|
+
* Uses raw multipart fetch (the typed client can't express file uploads), mirroring
|
|
3392
|
+
* `files.uploadFile`. The active workspace + cipher are resolved server-side from the
|
|
3393
|
+
* session, so no extra header is needed.
|
|
3394
|
+
*/
|
|
3395
|
+
declare function importConversations(auth: AuthHeaders, fileData: Blob, fileName: string, source?: string): Promise<ConversationImportResponse>;
|
|
3385
3396
|
declare function getConversationThreads(arbi: ArbiClient, conversationId: string): Promise<{
|
|
3386
3397
|
conversation_ext_id: string;
|
|
3387
3398
|
threads: {
|
|
@@ -3668,15 +3679,17 @@ declare function deleteMessage(arbi: ArbiClient, messageId: string): Promise<{
|
|
|
3668
3679
|
detail: string;
|
|
3669
3680
|
}>;
|
|
3670
3681
|
|
|
3682
|
+
type conversations_ConversationImportResponse = ConversationImportResponse;
|
|
3671
3683
|
declare const conversations_deleteConversation: typeof deleteConversation;
|
|
3672
3684
|
declare const conversations_deleteMessage: typeof deleteMessage;
|
|
3673
3685
|
declare const conversations_getConversationThreads: typeof getConversationThreads;
|
|
3674
3686
|
declare const conversations_getMessage: typeof getMessage;
|
|
3687
|
+
declare const conversations_importConversations: typeof importConversations;
|
|
3675
3688
|
declare const conversations_listConversations: typeof listConversations;
|
|
3676
3689
|
declare const conversations_shareConversation: typeof shareConversation;
|
|
3677
3690
|
declare const conversations_updateConversationTitle: typeof updateConversationTitle;
|
|
3678
3691
|
declare namespace conversations {
|
|
3679
|
-
export { conversations_deleteConversation as deleteConversation, conversations_deleteMessage as deleteMessage, conversations_getConversationThreads as getConversationThreads, conversations_getMessage as getMessage, conversations_listConversations as listConversations, conversations_shareConversation as shareConversation, conversations_updateConversationTitle as updateConversationTitle };
|
|
3692
|
+
export { type conversations_ConversationImportResponse as ConversationImportResponse, conversations_deleteConversation as deleteConversation, conversations_deleteMessage as deleteMessage, conversations_getConversationThreads as getConversationThreads, conversations_getMessage as getMessage, conversations_importConversations as importConversations, conversations_listConversations as listConversations, conversations_shareConversation as shareConversation, conversations_updateConversationTitle as updateConversationTitle };
|
|
3680
3693
|
}
|
|
3681
3694
|
|
|
3682
3695
|
/**
|
|
@@ -4051,7 +4064,6 @@ declare function getConfig(arbi: ArbiClient, configId: string): Promise<{
|
|
|
4051
4064
|
MEMORY_CREATION: boolean;
|
|
4052
4065
|
GOALS_ENABLED: boolean;
|
|
4053
4066
|
GOAL_MAX_OUTER_LOOPS: number;
|
|
4054
|
-
REVIEW_ENABLED: boolean;
|
|
4055
4067
|
PERSONA: string;
|
|
4056
4068
|
AGENT_MODEL_NAME: string;
|
|
4057
4069
|
AGENT_API_TYPE: "local" | "remote";
|
package/dist/browser.cjs
CHANGED
|
@@ -3790,7 +3790,6 @@ var LIFECYCLE_LABELS_FALLBACK = {
|
|
|
3790
3790
|
goal: "Thinking\u2026",
|
|
3791
3791
|
evaluation: "Evaluating results",
|
|
3792
3792
|
answering: "Answered",
|
|
3793
|
-
reviewing: "Reviewing answer",
|
|
3794
3793
|
planning: "Planning",
|
|
3795
3794
|
tool_progress: "Working"
|
|
3796
3795
|
};
|
|
@@ -4695,6 +4694,7 @@ __export(conversations_exports, {
|
|
|
4695
4694
|
deleteMessage: () => deleteMessage,
|
|
4696
4695
|
getConversationThreads: () => getConversationThreads,
|
|
4697
4696
|
getMessage: () => getMessage,
|
|
4697
|
+
importConversations: () => importConversations,
|
|
4698
4698
|
listConversations: () => listConversations,
|
|
4699
4699
|
shareConversation: () => shareConversation,
|
|
4700
4700
|
updateConversationTitle: () => updateConversationTitle
|
|
@@ -4702,6 +4702,17 @@ __export(conversations_exports, {
|
|
|
4702
4702
|
async function listConversations(arbi) {
|
|
4703
4703
|
return requireData(await arbi.fetch.GET("/v1/conversation/list"), "Failed to fetch conversations");
|
|
4704
4704
|
}
|
|
4705
|
+
async function importConversations(auth, fileData, fileName, source = "auto") {
|
|
4706
|
+
const formData = new FormData();
|
|
4707
|
+
formData.append("file", fileData, fileName);
|
|
4708
|
+
const res = await authenticatedFetch({
|
|
4709
|
+
...auth,
|
|
4710
|
+
path: `/v1/conversation/import?source=${encodeURIComponent(source)}`,
|
|
4711
|
+
method: "POST",
|
|
4712
|
+
body: formData
|
|
4713
|
+
});
|
|
4714
|
+
return res.json();
|
|
4715
|
+
}
|
|
4705
4716
|
async function getConversationThreads(arbi, conversationId) {
|
|
4706
4717
|
return requireData(
|
|
4707
4718
|
await arbi.fetch.GET("/v1/conversation/{conversation_ext_id}/threads", {
|