MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / evaluateUsageBonus

Function evaluateUsageBonus

apps/web/src/lib/coding-plans/index.ts:57–69  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

55 return new CodingPlanInventoryReplacementError(message);
56}
57
58export class CodingPlanCredentialReassignmentError extends Error {
59 constructor(message: string) {
60 super(message);
61 this.name = 'CodingPlanCredentialReassignmentError';
62 }
63}
64
65function credentialReassignmentError(message: string): CodingPlanCredentialReassignmentError {
66 return new CodingPlanCredentialReassignmentError(message);
67}
68
69function databaseConstraint(error: unknown): string | null {
70 let current: unknown = error;
71 for (let depth = 0; depth < 5 && current && typeof current === 'object'; depth++) {
72 if ('constraint' in current && typeof current.constraint === 'string') {

Callers 1

subscribeToCodingPlanFunction · 0.85

Calls 2

logErrorFunction · 0.85

Tested by

no test coverage detected