@arbidocs/sdk 0.5.104 → 0.5.106
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-BzLWSu_d.d.ts → browser-B6lX8DjB.d.cts} +349 -27
- package/dist/{browser-CchVT5yc.d.cts → browser-CBr3cEes.d.ts} +349 -27
- package/dist/browser.cjs +14 -5
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +2 -2
- package/dist/browser.d.ts +2 -2
- package/dist/browser.js +14 -5
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +14 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +14 -5
- package/dist/index.js.map +1 -1
- package/dist/{sse-types-BbR7JG5o.d.cts → sse-types-B5Lw0KTC.d.cts} +1 -0
- package/dist/{sse-types-BbR7JG5o.d.ts → sse-types-B5Lw0KTC.d.ts} +1 -0
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/examples/human-review/package.json +1 -1
- package/examples/react-chat/package.json +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5543,9 +5543,12 @@ async function listWorkspaceTransfers(arbi) {
|
|
|
5543
5543
|
"Failed to list transfers"
|
|
5544
5544
|
);
|
|
5545
5545
|
}
|
|
5546
|
-
async function exportWorkspaceData(arbi, scope) {
|
|
5546
|
+
async function exportWorkspaceData(arbi, scope, workspaceExtId) {
|
|
5547
5547
|
return requireData(
|
|
5548
|
-
await arbi.fetch.POST("/v1/workspace/export", {
|
|
5548
|
+
await arbi.fetch.POST("/v1/workspace/export", {
|
|
5549
|
+
body: { scope },
|
|
5550
|
+
params: { query: { workspace_ext_id: workspaceExtId } }
|
|
5551
|
+
}),
|
|
5549
5552
|
"Failed to export the workspace"
|
|
5550
5553
|
);
|
|
5551
5554
|
}
|
|
@@ -9539,7 +9542,9 @@ async function billingPortal(arbi, projectExtId) {
|
|
|
9539
9542
|
async function addAddonBlock(arbi, projectExtId, kind) {
|
|
9540
9543
|
const params = projectPath(projectExtId);
|
|
9541
9544
|
return requireData(
|
|
9542
|
-
kind === "ai_usage" ? await arbi.fetch.POST("/v1/user/projects/{project_ext_id}/addons/ai-usage", { params }) : await arbi.fetch.POST("/v1/user/projects/{project_ext_id}/addons/
|
|
9545
|
+
kind === "ai_usage" ? await arbi.fetch.POST("/v1/user/projects/{project_ext_id}/addons/ai-usage", { params }) : kind === "collaborators" ? await arbi.fetch.POST("/v1/user/projects/{project_ext_id}/addons/collaborators", {
|
|
9546
|
+
params
|
|
9547
|
+
}) : await arbi.fetch.POST("/v1/user/projects/{project_ext_id}/addons/storage", { params }),
|
|
9543
9548
|
"Failed to add the add-on"
|
|
9544
9549
|
);
|
|
9545
9550
|
}
|
|
@@ -12956,7 +12961,10 @@ var Arbi = class {
|
|
|
12956
12961
|
cancel: (transferId) => cancelWorkspaceTransfer(this.requireClient(), transferId),
|
|
12957
12962
|
get: (transferId) => getWorkspaceTransfer(this.requireClient(), transferId),
|
|
12958
12963
|
list: () => listWorkspaceTransfers(this.requireClient()),
|
|
12959
|
-
exportData: (scope) =>
|
|
12964
|
+
exportData: async (scope, options) => {
|
|
12965
|
+
if (options?.workspaceId) await this.openWorkspace(options.workspaceId);
|
|
12966
|
+
return exportWorkspaceData(this.requireClient(), scope, options?.workspaceId);
|
|
12967
|
+
}
|
|
12960
12968
|
}
|
|
12961
12969
|
};
|
|
12962
12970
|
// ── Documents ─────────────────────────────────────────────────────────
|
|
@@ -15731,7 +15739,8 @@ function reduceOutputItem(steps, ev, assignIndex, resolveIndex) {
|
|
|
15731
15739
|
subagent_status: arbi.subagent_status ?? prev?.subagent_status,
|
|
15732
15740
|
task_message_ext_id: arbi.task_message_ext_id ?? prev?.task_message_ext_id,
|
|
15733
15741
|
model_recommendation: arbi.model_recommendation ?? prev?.model_recommendation,
|
|
15734
|
-
selected_model: arbi.selected_model ?? prev?.selected_model
|
|
15742
|
+
selected_model: arbi.selected_model ?? prev?.selected_model,
|
|
15743
|
+
routing: arbi.routing ?? prev?.routing
|
|
15735
15744
|
};
|
|
15736
15745
|
if (idx !== -1) {
|
|
15737
15746
|
const out = [...steps];
|