@arbidocs/sdk 0.5.170 → 0.5.172

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/index.cjs CHANGED
@@ -14151,8 +14151,14 @@ var Arbi = class {
14151
14151
  )
14152
14152
  );
14153
14153
  },
14154
- /** Read the status of a background turn. */
14155
- getResponse: (id) => this.recovering(() => getResponse(this.getAuthHeaders(), id)),
14154
+ /**
14155
+ * Read the status of a background turn. With `workspaceId` (the turn's workspace), that workspace
14156
+ * is opened first, so a finished turn's output is readable on the first request.
14157
+ */
14158
+ getResponse: async (id, options = {}) => {
14159
+ if (options.workspaceId) await this.primeOrFail(options.workspaceId);
14160
+ return this.recovering(() => getResponse(this.getAuthHeaders(), id));
14161
+ },
14156
14162
  /**
14157
14163
  * The skills the caller can run (own + shared marketplace), metadata only. Without a
14158
14164
  * marketplace they are the current workspace's, or `options.workspaceId`'s (opened, not