Makelore 2.0 initial clean snapshot

This commit is contained in:
inman
2026-07-29 17:22:35 +08:00
commit b8ca3f8eea
694 changed files with 139782 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import { describe, expect, it } from 'vitest';
import { getOpencodeErrorKind } from '../../shared/opencode-error-kind';
describe('getOpencodeErrorKind', () => {
it('classifies a generic Works Square gateway authorization failure as invalid authentication', () => {
expect(getOpencodeErrorKind('works_square_gateway_authorize_failed')).toBe('authentication_invalid');
});
it.each([
'token_balance_exhausted',
'Token balance exhausted',
'Token quota exhausted for rolling 5-hour window',
'works_square_gateway_authorize_failed: Token balance exhausted',
])('classifies explicit quota evidence as exhausted: %s', (message) => {
expect(getOpencodeErrorKind(message)).toBe('quota_exhausted');
});
});