@defend-tech/opencode-optima 0.1.22 → 0.1.23
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 +4 -4
- package/dist/sanitize_cli.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9088,16 +9088,16 @@ async function ensureClickUpWebhookSubscription({ validation, worktree, clickupC
|
|
|
9088
9088
|
clickUpWebhookLifecycleLog(worktree, { type: "remote_webhook_reused", webhookId: state.webhookId, mode: existingValidation.mode });
|
|
9089
9089
|
return { active: true, valid: true, mode: existingValidation.mode, limitation: existingValidation.limitation, state };
|
|
9090
9090
|
}
|
|
9091
|
-
if (existing.webhookId && clickupClient?.deleteWebhook) {
|
|
9092
|
-
await deleteClickUpWebhookBestEffort({ webhookId: existing.webhookId, clickupClient, worktree, reason: existingValidation.reason || "startup_self_heal" });
|
|
9093
|
-
markClickUpWebhookInactive(worktree, existing, config);
|
|
9094
|
-
}
|
|
9095
9091
|
const reusableRemote = await findReusableClickUpWebhook(config, clickupClient);
|
|
9096
9092
|
if (reusableRemote) {
|
|
9097
9093
|
const state = writeClickUpWebhookState(worktree, { ...reusableRemote, recentEventKeys: existing.recentEventKeys || [] }, config);
|
|
9098
9094
|
clickUpWebhookLifecycleLog(worktree, { type: "remote_webhook_reused", webhookId: state.webhookId, mode: "remote_discovered" });
|
|
9099
9095
|
return { active: true, valid: true, mode: "remote_discovered", state };
|
|
9100
9096
|
}
|
|
9097
|
+
if (existing.webhookId && clickupClient?.deleteWebhook) {
|
|
9098
|
+
await deleteClickUpWebhookBestEffort({ webhookId: existing.webhookId, clickupClient, worktree, reason: existingValidation.reason || "startup_self_heal" });
|
|
9099
|
+
markClickUpWebhookInactive(worktree, existing, config);
|
|
9100
|
+
}
|
|
9101
9101
|
if (!clickupClient?.createWebhook) {
|
|
9102
9102
|
return { active: false, valid: false, reason: "clickup_client_unavailable", state: existing };
|
|
9103
9103
|
}
|
package/dist/sanitize_cli.js
CHANGED
|
@@ -9095,16 +9095,16 @@ async function ensureClickUpWebhookSubscription({ validation, worktree, clickupC
|
|
|
9095
9095
|
clickUpWebhookLifecycleLog(worktree, { type: "remote_webhook_reused", webhookId: state.webhookId, mode: existingValidation.mode });
|
|
9096
9096
|
return { active: true, valid: true, mode: existingValidation.mode, limitation: existingValidation.limitation, state };
|
|
9097
9097
|
}
|
|
9098
|
-
if (existing.webhookId && clickupClient?.deleteWebhook) {
|
|
9099
|
-
await deleteClickUpWebhookBestEffort({ webhookId: existing.webhookId, clickupClient, worktree, reason: existingValidation.reason || "startup_self_heal" });
|
|
9100
|
-
markClickUpWebhookInactive(worktree, existing, config);
|
|
9101
|
-
}
|
|
9102
9098
|
const reusableRemote = await findReusableClickUpWebhook(config, clickupClient);
|
|
9103
9099
|
if (reusableRemote) {
|
|
9104
9100
|
const state = writeClickUpWebhookState(worktree, { ...reusableRemote, recentEventKeys: existing.recentEventKeys || [] }, config);
|
|
9105
9101
|
clickUpWebhookLifecycleLog(worktree, { type: "remote_webhook_reused", webhookId: state.webhookId, mode: "remote_discovered" });
|
|
9106
9102
|
return { active: true, valid: true, mode: "remote_discovered", state };
|
|
9107
9103
|
}
|
|
9104
|
+
if (existing.webhookId && clickupClient?.deleteWebhook) {
|
|
9105
|
+
await deleteClickUpWebhookBestEffort({ webhookId: existing.webhookId, clickupClient, worktree, reason: existingValidation.reason || "startup_self_heal" });
|
|
9106
|
+
markClickUpWebhookInactive(worktree, existing, config);
|
|
9107
|
+
}
|
|
9108
9108
|
if (!clickupClient?.createWebhook) {
|
|
9109
9109
|
return { active: false, valid: false, reason: "clickup_client_unavailable", state: existing };
|
|
9110
9110
|
}
|