@papi-ai/server 0.7.1-alpha.1 → 0.7.1
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.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16456,7 +16456,7 @@ async function completeBuild(adapter2, config2, taskId, input, options = {}) {
|
|
|
16456
16456
|
}
|
|
16457
16457
|
const [healthResult, priorCount] = await Promise.all([
|
|
16458
16458
|
adapter2.getCycleHealth().catch(() => ({ totalCycles: 0 })),
|
|
16459
|
-
adapter2.getBuildReportCountForTask(taskId).catch(() => 0)
|
|
16459
|
+
typeof adapter2.getBuildReportCountForTask === "function" ? adapter2.getBuildReportCountForTask(taskId).catch(() => 0) : Promise.resolve(0)
|
|
16460
16460
|
]);
|
|
16461
16461
|
const cycleNumber = healthResult.totalCycles;
|
|
16462
16462
|
const iterationCount = priorCount + 1;
|
package/package.json
CHANGED