@defend-tech/opencode-optima 0.1.46 → 0.1.47
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 +2 -1
- package/dist/sanitize_cli.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10077,7 +10077,8 @@ async function withClickUpTaskRouteLock(taskId, operation) {
|
|
|
10077
10077
|
async function routeClickUpWebhookEventUnlocked({ payload, config, state = {}, worktree = process.cwd(), clickupClient, openCodeClient, sessionExists = openCodeSessionExists, createSession = createOpenCodeSession, sendSessionEvent = sendOpenCodeSessionEvent, ensureTaskWorktree = ensureClickUpTaskWorktree, verifySessionEventDelivery = verifyOpenCodeSessionEventDelivery, saveState = null, now = () => /* @__PURE__ */ new Date(), host = os.hostname(), commentLedgerPath = clickUpCommentLedgerPath(worktree) } = {}) {
|
|
10078
10078
|
const eventType = clickUpEventType(payload);
|
|
10079
10079
|
const eventKey = clickUpWebhookEventKey(payload);
|
|
10080
|
-
const
|
|
10080
|
+
const isStartupAssignmentReconciliation = payload?.startup_reconciliation === true && eventType === "taskAssigneeUpdated";
|
|
10081
|
+
const remembered = isStartupAssignmentReconciliation ? { duplicate: false, state } : rememberClickUpWebhookEvent(state, eventKey);
|
|
10081
10082
|
if (remembered.duplicate) return { ok: true, action: "ignored", reason: "duplicate", eventKey };
|
|
10082
10083
|
let stateToPersist = remembered.state;
|
|
10083
10084
|
let commentLedgerKey = "";
|
package/dist/sanitize_cli.js
CHANGED
|
@@ -10084,7 +10084,8 @@ async function withClickUpTaskRouteLock(taskId, operation) {
|
|
|
10084
10084
|
async function routeClickUpWebhookEventUnlocked({ payload, config, state = {}, worktree = process.cwd(), clickupClient, openCodeClient, sessionExists = openCodeSessionExists, createSession = createOpenCodeSession, sendSessionEvent = sendOpenCodeSessionEvent, ensureTaskWorktree = ensureClickUpTaskWorktree, verifySessionEventDelivery = verifyOpenCodeSessionEventDelivery, saveState = null, now = () => /* @__PURE__ */ new Date(), host = os.hostname(), commentLedgerPath = clickUpCommentLedgerPath(worktree) } = {}) {
|
|
10085
10085
|
const eventType = clickUpEventType(payload);
|
|
10086
10086
|
const eventKey = clickUpWebhookEventKey(payload);
|
|
10087
|
-
const
|
|
10087
|
+
const isStartupAssignmentReconciliation = payload?.startup_reconciliation === true && eventType === "taskAssigneeUpdated";
|
|
10088
|
+
const remembered = isStartupAssignmentReconciliation ? { duplicate: false, state } : rememberClickUpWebhookEvent(state, eventKey);
|
|
10088
10089
|
if (remembered.duplicate) return { ok: true, action: "ignored", reason: "duplicate", eventKey };
|
|
10089
10090
|
let stateToPersist = remembered.state;
|
|
10090
10091
|
let commentLedgerKey = "";
|