@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 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 remembered = rememberClickUpWebhookEvent(state, eventKey);
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 = "";
@@ -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 remembered = rememberClickUpWebhookEvent(state, eventKey);
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 = "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defend-tech/opencode-optima",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/defend-tech/opencode-optima.git"