@papi-ai/server 0.7.4-alpha.2 → 0.7.4-alpha.4
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 +11 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6379,9 +6379,9 @@ ${newParts.join("\n")}` : newParts.join("\n");
|
|
|
6379
6379
|
async savePendingReviewResponse(cycleNumber, rawResponse) {
|
|
6380
6380
|
await this.sql`
|
|
6381
6381
|
INSERT INTO strategy_reviews (
|
|
6382
|
-
project_id, cycle_number, title, content, full_analysis
|
|
6382
|
+
project_id, cycle_number, title, content, full_analysis, notes
|
|
6383
6383
|
) VALUES (
|
|
6384
|
-
${this.projectId}, ${0}, ${"[PENDING] Strategy Review"}, ${"Pending write-back retry"}, ${rawResponse}
|
|
6384
|
+
${this.projectId}, ${0}, ${"[PENDING] Strategy Review"}, ${"Pending write-back retry"}, ${rawResponse}, ${`original_cycle:${cycleNumber}`}
|
|
6385
6385
|
)
|
|
6386
6386
|
ON CONFLICT (project_id, cycle_number)
|
|
6387
6387
|
DO UPDATE SET
|
|
@@ -13514,12 +13514,15 @@ ${cleanContent}`;
|
|
|
13514
13514
|
return sd;
|
|
13515
13515
|
})()
|
|
13516
13516
|
});
|
|
13517
|
-
|
|
13518
|
-
|
|
13519
|
-
|
|
13520
|
-
|
|
13521
|
-
|
|
13522
|
-
|
|
13517
|
+
try {
|
|
13518
|
+
await adapter2.setCycleHealth({
|
|
13519
|
+
cyclesSinceLastStrategyReview: 0,
|
|
13520
|
+
strategyReviewDue: `Cycle ${cycleNumber + 5}`,
|
|
13521
|
+
boardHealth: data.boardHealth,
|
|
13522
|
+
strategicDirection: data.strategicDirection
|
|
13523
|
+
});
|
|
13524
|
+
} catch {
|
|
13525
|
+
}
|
|
13523
13526
|
try {
|
|
13524
13527
|
const cycleLog = await adapter2.getCycleLogSince(cycleNumber);
|
|
13525
13528
|
const currentEntry = cycleLog.find((e) => e.cycleNumber === cycleNumber);
|
package/package.json
CHANGED