MCPcopy
hub / github.com/openclaw/clawsweeper / unconfirmedProductDirectionApplyBlockReasonSafe

Function unconfirmedProductDirectionApplyBlockReasonSafe

src/clawsweeper.ts:3174–3187  ·  view source on GitHub ↗
(
  number: number,
  item: Pick<Item, "createdAt" | "labels">,
  reviewedUpdatedAt: string | undefined,
  reviewedAt: string | undefined,
)

Source from the content-addressed store, hash-verified

3172}
3173
3174function unconfirmedProductDirectionApplyBlockReasonSafe(
3175 number: number,
3176 item: Pick<Item, "createdAt" | "labels">,
3177 reviewedUpdatedAt: string | undefined,
3178 reviewedAt: string | undefined,
3179): string | null {
3180 try {
3181 return unconfirmedProductDirectionApplyBlockReason(number, item, reviewedUpdatedAt, reviewedAt);
3182 } catch (error) {
3183 return `product-direction calibration check failed: ${
3184 error instanceof Error ? error.message : String(error)
3185 }`;
3186 }
3187}
3188
3189export function compactMappedSlice<T>(
3190 items: readonly T[],

Callers 2

currentCloseGatesPassedFunction · 0.85
applyDecisionsCommandFunction · 0.85

Tested by

no test coverage detected