@papi-ai/server 0.7.16 → 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.
- package/dist/index.js +9 -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
|
}
|
|
@@ -16361,8 +16369,7 @@ ${recLines.join("\n")}
|
|
|
16361
16369
|
1. Review the AD changes above \u2014 are any resolved/modified ADs still referenced by active tasks?
|
|
16362
16370
|
2. Act on strategic recommendations \u2014 cancel, defer, or reprioritise tasks as suggested.
|
|
16363
16371
|
3. Run \`strategy_change\` if any recommendation requires an AD update not already captured.
|
|
16364
|
-
4.
|
|
16365
|
-
5. Then run \`plan\` for the next cycle.`;
|
|
16372
|
+
4. Then run \`plan\` for the next cycle.`;
|
|
16366
16373
|
const response = textResponse(header + result.displayText + slackNote + recsCloseOut + actionReminder);
|
|
16367
16374
|
return {
|
|
16368
16375
|
...response,
|
package/package.json
CHANGED