@arbidocs/sdk 0.4.54 → 0.4.55
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-ottmzMPY.d.cts → browser-BpU45eZn.d.cts} +9 -120
- package/dist/{browser-ottmzMPY.d.ts → browser-BpU45eZn.d.ts} +9 -120
- package/dist/browser.cjs +4 -28
- 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 +4 -28
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +4 -28
- 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 +4 -28
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/browser.cjs
CHANGED
|
@@ -5970,8 +5970,6 @@ __export(work_exports, {
|
|
|
5970
5970
|
getActivity: () => getActivity,
|
|
5971
5971
|
getPendingAuth: () => getPendingAuth,
|
|
5972
5972
|
planWork: () => planWork,
|
|
5973
|
-
requestApproval: () => requestApproval,
|
|
5974
|
-
reviewConversation: () => reviewConversation,
|
|
5975
5973
|
runConversation: () => runConversation,
|
|
5976
5974
|
updateConversation: () => updateConversation
|
|
5977
5975
|
});
|
|
@@ -5999,24 +5997,6 @@ async function runConversation(arbi, conversationId) {
|
|
|
5999
5997
|
"Failed to run task"
|
|
6000
5998
|
);
|
|
6001
5999
|
}
|
|
6002
|
-
async function reviewConversation(arbi, conversationId, body) {
|
|
6003
|
-
return requireData(
|
|
6004
|
-
await arbi.fetch.POST("/v1/conversation/{conversation_ext_id}/review", {
|
|
6005
|
-
...byId(conversationId),
|
|
6006
|
-
body
|
|
6007
|
-
}),
|
|
6008
|
-
"Failed to review task"
|
|
6009
|
-
);
|
|
6010
|
-
}
|
|
6011
|
-
async function requestApproval(arbi, conversationId, body) {
|
|
6012
|
-
return requireData(
|
|
6013
|
-
await arbi.fetch.POST("/v1/conversation/{conversation_ext_id}/request-approval", {
|
|
6014
|
-
...byId(conversationId),
|
|
6015
|
-
body
|
|
6016
|
-
}),
|
|
6017
|
-
"Failed to request approval"
|
|
6018
|
-
);
|
|
6019
|
-
}
|
|
6020
6000
|
async function getPendingAuth(arbi, conversationId) {
|
|
6021
6001
|
return requireData(
|
|
6022
6002
|
await arbi.fetch.GET(
|
|
@@ -6610,7 +6590,7 @@ var Arbi = class {
|
|
|
6610
6590
|
delete: (conversationId) => deleteConversation(this.requireClient(), conversationId),
|
|
6611
6591
|
/**
|
|
6612
6592
|
* Patch a conversation: `title`, `shared` (owner only), and the work fields (`description`,
|
|
6613
|
-
* `due_at`, `
|
|
6593
|
+
* `due_at`, `parent_conversation_ext_id`, `status`, `plan`). The one call
|
|
6614
6594
|
* behind rename, share and unshare.
|
|
6615
6595
|
*/
|
|
6616
6596
|
update: (conversationId, body) => updateConversation(this.requireClient(), conversationId, body),
|
|
@@ -6618,19 +6598,15 @@ var Arbi = class {
|
|
|
6618
6598
|
createWork: (body) => createWork(this.requireClient(), body),
|
|
6619
6599
|
/** Run a work item now, or retry it. */
|
|
6620
6600
|
run: (conversationId) => runConversation(this.requireClient(), conversationId),
|
|
6621
|
-
/** The sign-off person approves, or sends feedback back to the agent in the same thread. */
|
|
6622
|
-
review: (conversationId, body) => reviewConversation(this.requireClient(), conversationId, body),
|
|
6623
|
-
/** Hand sign-off to another workspace member. */
|
|
6624
|
-
requestApproval: (conversationId, body) => requestApproval(this.requireClient(), conversationId, body),
|
|
6625
6601
|
/** The session key an unattended run waits for the owner to allow; 404 when nothing waits. */
|
|
6626
6602
|
pendingAuth: (conversationId) => getPendingAuth(this.requireClient(), conversationId),
|
|
6627
6603
|
/** The task's history, oldest first. */
|
|
6628
6604
|
activity: (conversationId) => getActivity(this.requireClient(), conversationId),
|
|
6629
|
-
/** Draft
|
|
6605
|
+
/** Draft an editable plan from an objective. */
|
|
6630
6606
|
plan: (body) => planWork(this.requireClient(), body),
|
|
6631
6607
|
/**
|
|
6632
6608
|
* Run a work item and, when the run is parked waiting for workspace access, grant the agent's
|
|
6633
|
-
* run session a temporary key and run it again. Work that needs no
|
|
6609
|
+
* run session a temporary key and run it again. Work that needs no access grant returns from the
|
|
6634
6610
|
* first call already running.
|
|
6635
6611
|
*/
|
|
6636
6612
|
runWithAuth: async (conversationId) => {
|
|
@@ -6692,7 +6668,7 @@ var Arbi = class {
|
|
|
6692
6668
|
// ── Assistant ─────────────────────────────────────────────────────────
|
|
6693
6669
|
assistant = {
|
|
6694
6670
|
cancelRun: (responseId) => this.recovering(() => cancelAssistantRun(this.getAuthHeaders(), responseId)),
|
|
6695
|
-
/** Start a durable background turn; task options make its thread a
|
|
6671
|
+
/** Start a durable background turn; task options make its thread a work item. */
|
|
6696
6672
|
submit: (question, options) => {
|
|
6697
6673
|
const workspaceId = this.requireWorkspace();
|
|
6698
6674
|
return this.recovering(
|