@defend-tech/opencode-optima 0.1.39 → 0.1.40

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
@@ -9765,7 +9765,7 @@ async function cleanupManagedClickUpWebhook(entry = {}, { timeoutMs = CLICKUP_WE
9765
9765
  if (entry.listenerRegistry && entry.listener?.key) entry.listenerRegistry.delete(entry.listener.key);
9766
9766
  const preservedResult = { ok: true, skipped: true, reason: "remote_webhook_preserved" };
9767
9767
  clickUpWebhookLifecycleLog(entry.worktree, { type: "remote_webhook_preserved", reason, webhookId: entry.state?.webhookId });
9768
- markClickUpWebhookInactive(entry.worktree, entry.state, entry.config);
9768
+ writeClickUpWebhookState(entry.worktree, { ...entry.state, listener: {}, lastValidatedAt: (/* @__PURE__ */ new Date()).toISOString() }, entry.config);
9769
9769
  activeClickUpWebhookLifecycleRegistry.delete(entry.key);
9770
9770
  clickUpWebhookLifecycleLog(entry.worktree, { type: "cleanup_finished", reason, close_ok: closeResult.ok, remote_webhook: "preserved" });
9771
9771
  return { ok: closeResult.ok !== false, closeResult, deleteResult: preservedResult, preserveResult: preservedResult };
@@ -9772,7 +9772,7 @@ async function cleanupManagedClickUpWebhook(entry = {}, { timeoutMs = CLICKUP_WE
9772
9772
  if (entry.listenerRegistry && entry.listener?.key) entry.listenerRegistry.delete(entry.listener.key);
9773
9773
  const preservedResult = { ok: true, skipped: true, reason: "remote_webhook_preserved" };
9774
9774
  clickUpWebhookLifecycleLog(entry.worktree, { type: "remote_webhook_preserved", reason, webhookId: entry.state?.webhookId });
9775
- markClickUpWebhookInactive(entry.worktree, entry.state, entry.config);
9775
+ writeClickUpWebhookState(entry.worktree, { ...entry.state, listener: {}, lastValidatedAt: (/* @__PURE__ */ new Date()).toISOString() }, entry.config);
9776
9776
  activeClickUpWebhookLifecycleRegistry.delete(entry.key);
9777
9777
  clickUpWebhookLifecycleLog(entry.worktree, { type: "cleanup_finished", reason, close_ok: closeResult.ok, remote_webhook: "preserved" });
9778
9778
  return { ok: closeResult.ok !== false, closeResult, deleteResult: preservedResult, preserveResult: preservedResult };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defend-tech/opencode-optima",
3
- "version": "0.1.39",
3
+ "version": "0.1.40",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/defend-tech/opencode-optima.git"