@papi-ai/server 0.7.17 → 0.7.18

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 +8 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7042,6 +7042,7 @@ EXCEPTION WHEN duplicate_object THEN NULL; END $$;
7042
7042
  if (updates.source !== void 0) columnMap["source"] = updates.source;
7043
7043
  if (updates.opportunity !== void 0) columnMap["opportunity"] = updates.opportunity;
7044
7044
  if (updates.scopeClass !== void 0) columnMap["scope_class"] = updates.scopeClass;
7045
+ if (updates.cancelledBy !== void 0) columnMap["cancelled_by"] = updates.cancelledBy;
7045
7046
  const keys = Object.keys(columnMap);
7046
7047
  if (keys.length === 0) return;
7047
7048
  await this.sql`
@@ -8316,6 +8317,9 @@ ${newParts.join("\n")}` : newParts.join("\n");
8316
8317
  `${correction.taskId}: planner suggested priority change to ${_stripped} \u2014 blocked (reviewed task)`
8317
8318
  );
8318
8319
  }
8320
+ if (updates.status === "Cancelled" && !updates.cancelledBy) {
8321
+ updates.cancelledBy = "planner";
8322
+ }
8319
8323
  const columnMap = {};
8320
8324
  if (updates.title !== void 0) columnMap["title"] = updates.title;
8321
8325
  if (updates.status !== void 0) columnMap["status"] = updates.status;
@@ -8332,6 +8336,7 @@ ${newParts.join("\n")}` : newParts.join("\n");
8332
8336
  if (updates.dependsOn !== void 0) columnMap["depends_on"] = updates.dependsOn;
8333
8337
  if (updates.notes !== void 0) columnMap["notes"] = updates.notes;
8334
8338
  if (updates.closureReason !== void 0) columnMap["closure_reason"] = updates.closureReason;
8339
+ if (updates.cancelledBy !== void 0) columnMap["cancelled_by"] = updates.cancelledBy;
8335
8340
  if (updates.stateHistory !== void 0) columnMap["state_history"] = updates.stateHistory ?? null;
8336
8341
  if (updates.buildHandoff !== void 0) columnMap["build_handoff"] = updates.buildHandoff ?? null;
8337
8342
  if (updates.buildReport !== void 0) columnMap["build_report"] = updates.buildReport;
@@ -13751,6 +13756,9 @@ ${cleanContent}`;
13751
13756
  if ((updates.status === "Deferred" || updates.status === "Cancelled") && !updates.closureReason) {
13752
13757
  updates.closureReason = "No reason provided";
13753
13758
  }
13759
+ if (updates.status === "Cancelled" && !updates.cancelledBy) {
13760
+ updates.cancelledBy = "planner";
13761
+ }
13754
13762
  if (Object.keys(updates).length > 0) {
13755
13763
  await adapter2.updateTask(correction.taskId, updates);
13756
13764
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@papi-ai/server",
3
- "version": "0.7.17",
3
+ "version": "0.7.18",
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",