@papi-ai/server 0.7.4-alpha.1 → 0.7.4-alpha.3

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/dist/index.js +11 -8
  2. 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
- await adapter2.setCycleHealth({
13518
- cyclesSinceLastStrategyReview: 0,
13519
- strategyReviewDue: `Cycle ${cycleNumber + 5}`,
13520
- boardHealth: data.boardHealth,
13521
- strategicDirection: data.strategicDirection
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@papi-ai/server",
3
- "version": "0.7.4-alpha.1",
3
+ "version": "0.7.4-alpha.3",
4
4
  "description": "PAPI MCP server — AI-powered sprint planning, build execution, and strategy review for software projects",
5
5
  "license": "Elastic-2.0",
6
6
  "type": "module",