orchestrar 0.3.1 → 0.3.2

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.
Files changed (2) hide show
  1. package/orchestrator.js +5 -1
  2. package/package.json +1 -1
package/orchestrator.js CHANGED
@@ -446,7 +446,11 @@ async function fileExists(filePath) {
446
446
  }
447
447
  }
448
448
 
449
- function unwrap(result, label) {
449
+ async function unwrap(result, label) {
450
+ if (result && typeof result.then === "function") {
451
+ result = await result;
452
+ }
453
+
450
454
  if (!result || typeof result !== "object") {
451
455
  return result;
452
456
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orchestrar",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "OpenCode milestone orchestrator",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",