@arbidocs/sdk 0.5.171 → 0.5.173

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.
@@ -14098,8 +14098,13 @@ declare class Arbi {
14098
14098
  } | null;
14099
14099
  conversation_ext_id?: string | null;
14100
14100
  }>;
14101
- /** Read the status of a background turn. */
14102
- getResponse: (id: string) => Promise<{
14101
+ /**
14102
+ * Read the status of a background turn. With `workspaceId` (the turn's workspace), that workspace
14103
+ * is opened first, so a finished turn's output is readable on the first request.
14104
+ */
14105
+ getResponse: (id: string, options?: {
14106
+ workspaceId?: string;
14107
+ }) => Promise<{
14103
14108
  id: string;
14104
14109
  object: "response";
14105
14110
  status: "completed" | "in_progress" | "queued" | "cancelled" | "failed" | "incomplete";
@@ -14098,8 +14098,13 @@ declare class Arbi {
14098
14098
  } | null;
14099
14099
  conversation_ext_id?: string | null;
14100
14100
  }>;
14101
- /** Read the status of a background turn. */
14102
- getResponse: (id: string) => Promise<{
14101
+ /**
14102
+ * Read the status of a background turn. With `workspaceId` (the turn's workspace), that workspace
14103
+ * is opened first, so a finished turn's output is readable on the first request.
14104
+ */
14105
+ getResponse: (id: string, options?: {
14106
+ workspaceId?: string;
14107
+ }) => Promise<{
14103
14108
  id: string;
14104
14109
  object: "response";
14105
14110
  status: "completed" | "in_progress" | "queued" | "cancelled" | "failed" | "incomplete";
package/dist/browser.cjs CHANGED
@@ -13549,8 +13549,14 @@ var Arbi = class {
13549
13549
  )
13550
13550
  );
13551
13551
  },
13552
- /** Read the status of a background turn. */
13553
- getResponse: (id) => this.recovering(() => getResponse(this.getAuthHeaders(), id)),
13552
+ /**
13553
+ * Read the status of a background turn. With `workspaceId` (the turn's workspace), that workspace
13554
+ * is opened first, so a finished turn's output is readable on the first request.
13555
+ */
13556
+ getResponse: async (id, options = {}) => {
13557
+ if (options.workspaceId) await this.primeOrFail(options.workspaceId);
13558
+ return this.recovering(() => getResponse(this.getAuthHeaders(), id));
13559
+ },
13554
13560
  /**
13555
13561
  * The skills the caller can run (own + shared marketplace), metadata only. Without a
13556
13562
  * marketplace they are the current workspace's, or `options.workspaceId`'s (opened, not