@defend-tech/opencode-optima 0.1.56 → 0.1.57
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 +40 -4
- package/dist/sanitize_cli.js +40 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9585,6 +9585,7 @@ function normalizeClickUpWebhookConfig(rawClickUp = null, worktree = process.cwd
|
|
|
9585
9585
|
const ignoredStatuses = Array.isArray(routing.ignored_statuses) && routing.ignored_statuses.length > 0 ? routing.ignored_statuses : CLICKUP_WEBHOOK_TERMINAL_STATUSES;
|
|
9586
9586
|
const config = {
|
|
9587
9587
|
enabled: raw.enabled === true,
|
|
9588
|
+
test: raw.test === true || raw.test_mode === true || raw.testMode === true,
|
|
9588
9589
|
basePath: String(raw.base_path || raw.basePath || worktree || "").trim(),
|
|
9589
9590
|
teamId: String(raw.team_id || raw.teamId || "").trim(),
|
|
9590
9591
|
apiToken: String(raw.api_token || raw.apiToken || "").trim(),
|
|
@@ -9782,6 +9783,40 @@ function createClickUpApiClient(config, fetchImpl = globalThis.fetch) {
|
|
|
9782
9783
|
}
|
|
9783
9784
|
};
|
|
9784
9785
|
}
|
|
9786
|
+
function createTestClickUpApiClient(config) {
|
|
9787
|
+
const metadata = /* @__PURE__ */ new Map();
|
|
9788
|
+
return {
|
|
9789
|
+
async createWebhook({ endpoint, events, location } = {}) {
|
|
9790
|
+
return {
|
|
9791
|
+
webhook: {
|
|
9792
|
+
id: "optima-test-webhook",
|
|
9793
|
+
endpoint: endpoint || config.webhook.publicUrl,
|
|
9794
|
+
events: events || config.webhook.events,
|
|
9795
|
+
location: location || config.webhook.location,
|
|
9796
|
+
secret: "optima-test-secret",
|
|
9797
|
+
active: true
|
|
9798
|
+
}
|
|
9799
|
+
};
|
|
9800
|
+
},
|
|
9801
|
+
async getTask(taskId) {
|
|
9802
|
+
return null;
|
|
9803
|
+
},
|
|
9804
|
+
async updateTaskMetadata({ taskId, value }) {
|
|
9805
|
+
metadata.set(String(taskId || ""), value);
|
|
9806
|
+
return { ok: true };
|
|
9807
|
+
},
|
|
9808
|
+
async postTaskComment() {
|
|
9809
|
+
return { ok: true };
|
|
9810
|
+
},
|
|
9811
|
+
async addTaskTag() {
|
|
9812
|
+
return { ok: true };
|
|
9813
|
+
},
|
|
9814
|
+
async listAssignedTasks() {
|
|
9815
|
+
return { tasks: [] };
|
|
9816
|
+
},
|
|
9817
|
+
__metadata: metadata
|
|
9818
|
+
};
|
|
9819
|
+
}
|
|
9785
9820
|
function normalizeClickUpWebhookApiResponse(response = {}, fallbackConfig = null) {
|
|
9786
9821
|
const webhook = response?.webhook || response?.data || response || {};
|
|
9787
9822
|
const healthStatus = String(webhook.health?.status || webhook.health_status || "").trim().toLowerCase();
|
|
@@ -10930,7 +10965,7 @@ async function routeClickUpWebhookEventUnlocked({ payload, config, state = {}, w
|
|
|
10930
10965
|
const subtaskId = parentTaskId && parentTaskId !== taskId ? taskId : "";
|
|
10931
10966
|
let taskRoute;
|
|
10932
10967
|
try {
|
|
10933
|
-
taskRoute = ensureTaskWorktree({ baseWorktree: config.basePath, taskId, taskType, parentTaskId, subtaskId, existingMetadata: metadata, allowNonGitFallback: process.env.NODE_ENV === "test" });
|
|
10968
|
+
taskRoute = ensureTaskWorktree({ baseWorktree: config.basePath, taskId, taskType, parentTaskId, subtaskId, existingMetadata: metadata, allowNonGitFallback: process.env.NODE_ENV === "test" || config.test === true });
|
|
10934
10969
|
} catch (error) {
|
|
10935
10970
|
const message = `Optima webhook could not create or reuse a task worktree for ${taskId}: ${error.message}`;
|
|
10936
10971
|
appendClickUpWebhookLocalLog(worktree, { type: "task_worktree_failed", taskId, message });
|
|
@@ -12365,13 +12400,14 @@ async function OptimaPlugin(input = {}, pluginOptions = {}) {
|
|
|
12365
12400
|
syncGeneratedPolicies(worktree, repoCfg);
|
|
12366
12401
|
const operatingTeamMode = getOperatingTeamMode(repoCfg);
|
|
12367
12402
|
const clickUpWebhookValidation = normalizeClickUpWebhookConfig(pickConfiguredClickUp(input, repoCfg, resolvedPluginOptions), worktree);
|
|
12403
|
+
const runtimeClickUpClient = input.clickupClient || (clickUpWebhookValidation.config?.test === true ? createTestClickUpApiClient(clickUpWebhookValidation.config) : createClickUpApiClient(clickUpWebhookValidation.config, input.fetch));
|
|
12368
12404
|
let clickUpWebhookRuntime = { active: false, valid: false, reason: "not_configured" };
|
|
12369
12405
|
if (clickUpWebhookValidation.complete) {
|
|
12370
12406
|
try {
|
|
12371
12407
|
clickUpWebhookRuntime = await ensureClickUpWebhookSubscription({
|
|
12372
12408
|
validation: clickUpWebhookValidation,
|
|
12373
12409
|
worktree,
|
|
12374
|
-
clickupClient:
|
|
12410
|
+
clickupClient: runtimeClickUpClient
|
|
12375
12411
|
});
|
|
12376
12412
|
} catch (error) {
|
|
12377
12413
|
clickUpWebhookRuntime = { active: false, valid: false, reason: "subscription_failed", error: error.message };
|
|
@@ -12381,7 +12417,7 @@ async function OptimaPlugin(input = {}, pluginOptions = {}) {
|
|
|
12381
12417
|
let clickUpWebhookActive = clickUpWebhookRuntime.active === true && clickUpWebhookRuntime.valid === true;
|
|
12382
12418
|
if (clickUpWebhookActive && input.startClickUpWebhookListener !== false) {
|
|
12383
12419
|
try {
|
|
12384
|
-
const lifecycleClickUpClient =
|
|
12420
|
+
const lifecycleClickUpClient = runtimeClickUpClient;
|
|
12385
12421
|
const listenerRegistry = input.clickUpWebhookListenerRegistry || activeClickUpWebhookListeners;
|
|
12386
12422
|
const listenerState = clickUpWebhookRuntime.state || readClickUpWebhookState(worktree, clickUpWebhookValidation.config);
|
|
12387
12423
|
const listener = startClickUpWebhookListener({
|
|
@@ -13054,7 +13090,7 @@ Follow-up: use optima_prompt_workflow with session_id '${sessionId}' to check in
|
|
|
13054
13090
|
}
|
|
13055
13091
|
};
|
|
13056
13092
|
}
|
|
13057
|
-
OptimaPlugin.__internals = { BUNDLE_AGENTS_DIR, BUNDLE_ASSETS_DIR, CLICKUP_DEFINITION_DOC_PARENT, activeClickUpWebhookLifecycleRegistry, cleanupManagedClickUpWebhook, deleteClickUpWebhookBestEffort, BUNDLE_POLICIES_DIR, buildClickUpApplyPayloadResult, buildClickUpCreateSubtasksPayload, buildClickUpStartTaskPayload, buildClickUpSummaryPayload, buildClickUpTransitionPayload, buildOptimaAgents, clickUpCommentLedgerKey, clickUpCommentMentionsProductManager, clickUpWebhookAuditLogDir, clickUpWebhookAuditLogPath, compactPromptPath, createClickUpApiClient, createOpenCodeSession, createOpenCodeSessionControl, deliveryEvidencePathForClickUpTask, ensureClickUpTaskWorktree, ensureClickUpWebhookSubscription, handleClickUpWebhookRequest, isClickUpWebhookStateActive, isSameOrNestedPath, normalizeClickUpWebhookConfig, normalizeClickUpWebhookLogLevel, normalizeOpenCodeBaseUrl, openCodeSessionExists, promptOpenCodeSessionControl, probeOpenCodeSessionControl, readClickUpCommentLedger, readClickUpWebhookState, readOpenCodeSessionControl, readOpenCodeSessionMessages, reconcileClickUpStartup, scheduleClickUpStartupReconciliation, waitForOpenCodeReadiness, recordClickUpCommentVersionProcessed, resyncClickUpWebhookForSignatureDrift, resolveIncludeFile, resolveIncludes, resolveOptimaPluginOptions, resolveSecretReference, routeClickUpWebhookEvent, sendOpenCodeSessionEvent, sendOpenCodeSessionEventDirect, summarizeOpenCodeMessages, verifyOpenCodeSessionEventDelivery, stableClickUpCommentVersionMarker, startClickUpWebhookListener, validateClickUpWebhookState, verifyClickUpSignature, writeClickUpWebhookState, decideClickUpStatusAction, deriveClickUpBranchName, deriveClickUpPendingSubtaskBranch, deriveClickUpPrTarget, deriveClickUpWorktree, determineClickUpMergeAuthority, ensureOptimaGitignoreRules, explicitSafeInputWorktree, finalApprovalAssignees, formatRepairResult, formatValidationResult, isIgnoredClickUpTaskType, isOptimaPluginPackageWorktree, isSafeWritableDirectory, loadHumansRegistry, mergeClickUpAgentMetadata, mergeClickUpSessionMetadata, migrateLegacyOptimaLayout, normalizeAgentMetadataJson, normalizeClickUpStatus, normalizeClickUpTaskType, normalizePromptResponseParts, normalizeWorkflowTaskPath, optimaRepairDependencies, parseClickUpSubtasksMarkdown, parseHumansRegistry, parseMarkdownArtifact, parseMarkdownSections, planOptimaRepair, preEstimateClickUpWork, readMarkdownArtifact, resolveHumanRoles, resolveSafeWorktree, safeWorktreeOrFailure, stripRawLogSections, validateMainWorkspaceBranchSafety, workflowFinalMessageFromPromptResponse };
|
|
13093
|
+
OptimaPlugin.__internals = { BUNDLE_AGENTS_DIR, BUNDLE_ASSETS_DIR, CLICKUP_DEFINITION_DOC_PARENT, activeClickUpWebhookLifecycleRegistry, cleanupManagedClickUpWebhook, deleteClickUpWebhookBestEffort, BUNDLE_POLICIES_DIR, buildClickUpApplyPayloadResult, buildClickUpCreateSubtasksPayload, buildClickUpStartTaskPayload, buildClickUpSummaryPayload, buildClickUpTransitionPayload, buildOptimaAgents, clickUpCommentLedgerKey, clickUpCommentMentionsProductManager, clickUpWebhookAuditLogDir, clickUpWebhookAuditLogPath, compactPromptPath, createClickUpApiClient, createTestClickUpApiClient, createOpenCodeSession, createOpenCodeSessionControl, deliveryEvidencePathForClickUpTask, ensureClickUpTaskWorktree, ensureClickUpWebhookSubscription, handleClickUpWebhookRequest, isClickUpWebhookStateActive, isSameOrNestedPath, normalizeClickUpWebhookConfig, normalizeClickUpWebhookLogLevel, normalizeOpenCodeBaseUrl, openCodeSessionExists, promptOpenCodeSessionControl, probeOpenCodeSessionControl, readClickUpCommentLedger, readClickUpWebhookState, readOpenCodeSessionControl, readOpenCodeSessionMessages, reconcileClickUpStartup, scheduleClickUpStartupReconciliation, waitForOpenCodeReadiness, recordClickUpCommentVersionProcessed, resyncClickUpWebhookForSignatureDrift, resolveIncludeFile, resolveIncludes, resolveOptimaPluginOptions, resolveSecretReference, routeClickUpWebhookEvent, sendOpenCodeSessionEvent, sendOpenCodeSessionEventDirect, summarizeOpenCodeMessages, verifyOpenCodeSessionEventDelivery, stableClickUpCommentVersionMarker, startClickUpWebhookListener, validateClickUpWebhookState, verifyClickUpSignature, writeClickUpWebhookState, decideClickUpStatusAction, deriveClickUpBranchName, deriveClickUpPendingSubtaskBranch, deriveClickUpPrTarget, deriveClickUpWorktree, determineClickUpMergeAuthority, ensureOptimaGitignoreRules, explicitSafeInputWorktree, finalApprovalAssignees, formatRepairResult, formatValidationResult, isIgnoredClickUpTaskType, isOptimaPluginPackageWorktree, isSafeWritableDirectory, loadHumansRegistry, mergeClickUpAgentMetadata, mergeClickUpSessionMetadata, migrateLegacyOptimaLayout, normalizeAgentMetadataJson, normalizeClickUpStatus, normalizeClickUpTaskType, normalizePromptResponseParts, normalizeWorkflowTaskPath, optimaRepairDependencies, parseClickUpSubtasksMarkdown, parseHumansRegistry, parseMarkdownArtifact, parseMarkdownSections, planOptimaRepair, preEstimateClickUpWork, readMarkdownArtifact, resolveHumanRoles, resolveSafeWorktree, safeWorktreeOrFailure, stripRawLogSections, validateMainWorkspaceBranchSafety, workflowFinalMessageFromPromptResponse };
|
|
13058
13094
|
export {
|
|
13059
13095
|
OptimaPlugin as default
|
|
13060
13096
|
};
|
package/dist/sanitize_cli.js
CHANGED
|
@@ -9592,6 +9592,7 @@ function normalizeClickUpWebhookConfig(rawClickUp = null, worktree = process.cwd
|
|
|
9592
9592
|
const ignoredStatuses = Array.isArray(routing.ignored_statuses) && routing.ignored_statuses.length > 0 ? routing.ignored_statuses : CLICKUP_WEBHOOK_TERMINAL_STATUSES;
|
|
9593
9593
|
const config = {
|
|
9594
9594
|
enabled: raw.enabled === true,
|
|
9595
|
+
test: raw.test === true || raw.test_mode === true || raw.testMode === true,
|
|
9595
9596
|
basePath: String(raw.base_path || raw.basePath || worktree || "").trim(),
|
|
9596
9597
|
teamId: String(raw.team_id || raw.teamId || "").trim(),
|
|
9597
9598
|
apiToken: String(raw.api_token || raw.apiToken || "").trim(),
|
|
@@ -9789,6 +9790,40 @@ function createClickUpApiClient(config, fetchImpl = globalThis.fetch) {
|
|
|
9789
9790
|
}
|
|
9790
9791
|
};
|
|
9791
9792
|
}
|
|
9793
|
+
function createTestClickUpApiClient(config) {
|
|
9794
|
+
const metadata = /* @__PURE__ */ new Map();
|
|
9795
|
+
return {
|
|
9796
|
+
async createWebhook({ endpoint, events, location } = {}) {
|
|
9797
|
+
return {
|
|
9798
|
+
webhook: {
|
|
9799
|
+
id: "optima-test-webhook",
|
|
9800
|
+
endpoint: endpoint || config.webhook.publicUrl,
|
|
9801
|
+
events: events || config.webhook.events,
|
|
9802
|
+
location: location || config.webhook.location,
|
|
9803
|
+
secret: "optima-test-secret",
|
|
9804
|
+
active: true
|
|
9805
|
+
}
|
|
9806
|
+
};
|
|
9807
|
+
},
|
|
9808
|
+
async getTask(taskId) {
|
|
9809
|
+
return null;
|
|
9810
|
+
},
|
|
9811
|
+
async updateTaskMetadata({ taskId, value }) {
|
|
9812
|
+
metadata.set(String(taskId || ""), value);
|
|
9813
|
+
return { ok: true };
|
|
9814
|
+
},
|
|
9815
|
+
async postTaskComment() {
|
|
9816
|
+
return { ok: true };
|
|
9817
|
+
},
|
|
9818
|
+
async addTaskTag() {
|
|
9819
|
+
return { ok: true };
|
|
9820
|
+
},
|
|
9821
|
+
async listAssignedTasks() {
|
|
9822
|
+
return { tasks: [] };
|
|
9823
|
+
},
|
|
9824
|
+
__metadata: metadata
|
|
9825
|
+
};
|
|
9826
|
+
}
|
|
9792
9827
|
function normalizeClickUpWebhookApiResponse(response = {}, fallbackConfig = null) {
|
|
9793
9828
|
const webhook = response?.webhook || response?.data || response || {};
|
|
9794
9829
|
const healthStatus = String(webhook.health?.status || webhook.health_status || "").trim().toLowerCase();
|
|
@@ -10937,7 +10972,7 @@ async function routeClickUpWebhookEventUnlocked({ payload, config, state = {}, w
|
|
|
10937
10972
|
const subtaskId = parentTaskId && parentTaskId !== taskId ? taskId : "";
|
|
10938
10973
|
let taskRoute;
|
|
10939
10974
|
try {
|
|
10940
|
-
taskRoute = ensureTaskWorktree({ baseWorktree: config.basePath, taskId, taskType, parentTaskId, subtaskId, existingMetadata: metadata, allowNonGitFallback: process.env.NODE_ENV === "test" });
|
|
10975
|
+
taskRoute = ensureTaskWorktree({ baseWorktree: config.basePath, taskId, taskType, parentTaskId, subtaskId, existingMetadata: metadata, allowNonGitFallback: process.env.NODE_ENV === "test" || config.test === true });
|
|
10941
10976
|
} catch (error) {
|
|
10942
10977
|
const message = `Optima webhook could not create or reuse a task worktree for ${taskId}: ${error.message}`;
|
|
10943
10978
|
appendClickUpWebhookLocalLog(worktree, { type: "task_worktree_failed", taskId, message });
|
|
@@ -12372,13 +12407,14 @@ async function OptimaPlugin(input = {}, pluginOptions = {}) {
|
|
|
12372
12407
|
syncGeneratedPolicies(worktree, repoCfg);
|
|
12373
12408
|
const operatingTeamMode = getOperatingTeamMode(repoCfg);
|
|
12374
12409
|
const clickUpWebhookValidation = normalizeClickUpWebhookConfig(pickConfiguredClickUp(input, repoCfg, resolvedPluginOptions), worktree);
|
|
12410
|
+
const runtimeClickUpClient = input.clickupClient || (clickUpWebhookValidation.config?.test === true ? createTestClickUpApiClient(clickUpWebhookValidation.config) : createClickUpApiClient(clickUpWebhookValidation.config, input.fetch));
|
|
12375
12411
|
let clickUpWebhookRuntime = { active: false, valid: false, reason: "not_configured" };
|
|
12376
12412
|
if (clickUpWebhookValidation.complete) {
|
|
12377
12413
|
try {
|
|
12378
12414
|
clickUpWebhookRuntime = await ensureClickUpWebhookSubscription({
|
|
12379
12415
|
validation: clickUpWebhookValidation,
|
|
12380
12416
|
worktree,
|
|
12381
|
-
clickupClient:
|
|
12417
|
+
clickupClient: runtimeClickUpClient
|
|
12382
12418
|
});
|
|
12383
12419
|
} catch (error) {
|
|
12384
12420
|
clickUpWebhookRuntime = { active: false, valid: false, reason: "subscription_failed", error: error.message };
|
|
@@ -12388,7 +12424,7 @@ async function OptimaPlugin(input = {}, pluginOptions = {}) {
|
|
|
12388
12424
|
let clickUpWebhookActive = clickUpWebhookRuntime.active === true && clickUpWebhookRuntime.valid === true;
|
|
12389
12425
|
if (clickUpWebhookActive && input.startClickUpWebhookListener !== false) {
|
|
12390
12426
|
try {
|
|
12391
|
-
const lifecycleClickUpClient =
|
|
12427
|
+
const lifecycleClickUpClient = runtimeClickUpClient;
|
|
12392
12428
|
const listenerRegistry = input.clickUpWebhookListenerRegistry || activeClickUpWebhookListeners;
|
|
12393
12429
|
const listenerState = clickUpWebhookRuntime.state || readClickUpWebhookState(worktree, clickUpWebhookValidation.config);
|
|
12394
12430
|
const listener = startClickUpWebhookListener({
|
|
@@ -13061,7 +13097,7 @@ Follow-up: use optima_prompt_workflow with session_id '${sessionId}' to check in
|
|
|
13061
13097
|
}
|
|
13062
13098
|
};
|
|
13063
13099
|
}
|
|
13064
|
-
OptimaPlugin.__internals = { BUNDLE_AGENTS_DIR, BUNDLE_ASSETS_DIR, CLICKUP_DEFINITION_DOC_PARENT, activeClickUpWebhookLifecycleRegistry, cleanupManagedClickUpWebhook, deleteClickUpWebhookBestEffort, BUNDLE_POLICIES_DIR, buildClickUpApplyPayloadResult, buildClickUpCreateSubtasksPayload, buildClickUpStartTaskPayload, buildClickUpSummaryPayload, buildClickUpTransitionPayload, buildOptimaAgents, clickUpCommentLedgerKey, clickUpCommentMentionsProductManager, clickUpWebhookAuditLogDir, clickUpWebhookAuditLogPath, compactPromptPath, createClickUpApiClient, createOpenCodeSession, createOpenCodeSessionControl, deliveryEvidencePathForClickUpTask, ensureClickUpTaskWorktree, ensureClickUpWebhookSubscription, handleClickUpWebhookRequest, isClickUpWebhookStateActive, isSameOrNestedPath, normalizeClickUpWebhookConfig, normalizeClickUpWebhookLogLevel, normalizeOpenCodeBaseUrl, openCodeSessionExists, promptOpenCodeSessionControl, probeOpenCodeSessionControl, readClickUpCommentLedger, readClickUpWebhookState, readOpenCodeSessionControl, readOpenCodeSessionMessages, reconcileClickUpStartup, scheduleClickUpStartupReconciliation, waitForOpenCodeReadiness, recordClickUpCommentVersionProcessed, resyncClickUpWebhookForSignatureDrift, resolveIncludeFile, resolveIncludes, resolveOptimaPluginOptions, resolveSecretReference, routeClickUpWebhookEvent, sendOpenCodeSessionEvent, sendOpenCodeSessionEventDirect, summarizeOpenCodeMessages, verifyOpenCodeSessionEventDelivery, stableClickUpCommentVersionMarker, startClickUpWebhookListener, validateClickUpWebhookState, verifyClickUpSignature, writeClickUpWebhookState, decideClickUpStatusAction, deriveClickUpBranchName, deriveClickUpPendingSubtaskBranch, deriveClickUpPrTarget, deriveClickUpWorktree, determineClickUpMergeAuthority, ensureOptimaGitignoreRules, explicitSafeInputWorktree, finalApprovalAssignees, formatRepairResult, formatValidationResult, isIgnoredClickUpTaskType, isOptimaPluginPackageWorktree, isSafeWritableDirectory, loadHumansRegistry, mergeClickUpAgentMetadata, mergeClickUpSessionMetadata, migrateLegacyOptimaLayout, normalizeAgentMetadataJson, normalizeClickUpStatus, normalizeClickUpTaskType, normalizePromptResponseParts, normalizeWorkflowTaskPath, optimaRepairDependencies, parseClickUpSubtasksMarkdown, parseHumansRegistry, parseMarkdownArtifact, parseMarkdownSections, planOptimaRepair, preEstimateClickUpWork, readMarkdownArtifact, resolveHumanRoles, resolveSafeWorktree, safeWorktreeOrFailure, stripRawLogSections, validateMainWorkspaceBranchSafety, workflowFinalMessageFromPromptResponse };
|
|
13100
|
+
OptimaPlugin.__internals = { BUNDLE_AGENTS_DIR, BUNDLE_ASSETS_DIR, CLICKUP_DEFINITION_DOC_PARENT, activeClickUpWebhookLifecycleRegistry, cleanupManagedClickUpWebhook, deleteClickUpWebhookBestEffort, BUNDLE_POLICIES_DIR, buildClickUpApplyPayloadResult, buildClickUpCreateSubtasksPayload, buildClickUpStartTaskPayload, buildClickUpSummaryPayload, buildClickUpTransitionPayload, buildOptimaAgents, clickUpCommentLedgerKey, clickUpCommentMentionsProductManager, clickUpWebhookAuditLogDir, clickUpWebhookAuditLogPath, compactPromptPath, createClickUpApiClient, createTestClickUpApiClient, createOpenCodeSession, createOpenCodeSessionControl, deliveryEvidencePathForClickUpTask, ensureClickUpTaskWorktree, ensureClickUpWebhookSubscription, handleClickUpWebhookRequest, isClickUpWebhookStateActive, isSameOrNestedPath, normalizeClickUpWebhookConfig, normalizeClickUpWebhookLogLevel, normalizeOpenCodeBaseUrl, openCodeSessionExists, promptOpenCodeSessionControl, probeOpenCodeSessionControl, readClickUpCommentLedger, readClickUpWebhookState, readOpenCodeSessionControl, readOpenCodeSessionMessages, reconcileClickUpStartup, scheduleClickUpStartupReconciliation, waitForOpenCodeReadiness, recordClickUpCommentVersionProcessed, resyncClickUpWebhookForSignatureDrift, resolveIncludeFile, resolveIncludes, resolveOptimaPluginOptions, resolveSecretReference, routeClickUpWebhookEvent, sendOpenCodeSessionEvent, sendOpenCodeSessionEventDirect, summarizeOpenCodeMessages, verifyOpenCodeSessionEventDelivery, stableClickUpCommentVersionMarker, startClickUpWebhookListener, validateClickUpWebhookState, verifyClickUpSignature, writeClickUpWebhookState, decideClickUpStatusAction, deriveClickUpBranchName, deriveClickUpPendingSubtaskBranch, deriveClickUpPrTarget, deriveClickUpWorktree, determineClickUpMergeAuthority, ensureOptimaGitignoreRules, explicitSafeInputWorktree, finalApprovalAssignees, formatRepairResult, formatValidationResult, isIgnoredClickUpTaskType, isOptimaPluginPackageWorktree, isSafeWritableDirectory, loadHumansRegistry, mergeClickUpAgentMetadata, mergeClickUpSessionMetadata, migrateLegacyOptimaLayout, normalizeAgentMetadataJson, normalizeClickUpStatus, normalizeClickUpTaskType, normalizePromptResponseParts, normalizeWorkflowTaskPath, optimaRepairDependencies, parseClickUpSubtasksMarkdown, parseHumansRegistry, parseMarkdownArtifact, parseMarkdownSections, planOptimaRepair, preEstimateClickUpWork, readMarkdownArtifact, resolveHumanRoles, resolveSafeWorktree, safeWorktreeOrFailure, stripRawLogSections, validateMainWorkspaceBranchSafety, workflowFinalMessageFromPromptResponse };
|
|
13065
13101
|
|
|
13066
13102
|
// src/sanitize_cli.js
|
|
13067
13103
|
var { migrateLegacyOptimaLayout: migrateLegacyOptimaLayout2 } = OptimaPlugin.__internals;
|