feat: add bufferMax to BufferLogAppender #10

Closed
mahseiah_ai wants to merge 9 commits from issue-9-buffer-max into main

9 Commits

Author SHA1 Message Date
mahseiah_ai aa14660c2a feat: add buffer max to buffer appender
Validate / test (pull_request) Successful in 9s
2026-05-06 17:41:00 -04:00
mahseiah_ai 90d7798791 Merge pull request 'docs: Add Development, CI, and Maintenance sections to README' (#8) from update-readme-dev-guide into main
Validate / test (push) Successful in 10s
2026-05-06 02:17:52 +00:00
Mahseiah 5cb55b9fc3 docs: Add Development, CI, and Maintenance sections to README (fixes #7)
Validate / test (pull_request) Successful in 10s
2026-05-05 22:14:31 -04:00
mahseiah_ai ba52c2083a ci: switch to bun runner, remove setup-bun steps
Validate / test (pull_request) Successful in 32s
Validate / test (push) Successful in 8s
2026-05-05 16:01:57 -04:00
mahseiah_ai c38683bf53 ci: replace oven-sh/setup-bun with curl install for Gitea Actions compatibility
Validate / test (pull_request) Failing after 19s
The  action is a GitHub Marketplace action
that doesn't exist on self-hosted Gitea instances. Replace it with
the standard curl-based Bun installation method and add ~/.bun/bin
to GITHUB_PATH.
2026-05-05 15:54:36 -04:00
mahseiah_ai c7d618ad92 test: add comprehensive unit tests for all appenders and logger
Validate / test (pull_request) Failing after 21s
Tests added:
- log-service.test.ts: hierarchical logger creation and threshold propagation
- logger.test.ts: threshold inheritance, message propagation, falsy threshold
  bug coverage (LogLevel.ALL = 0), deferred messages, Error handling
- log-message.test.ts: parseLogLevel parsing, flattenMessage object/string modes
- console-log-appender.test.ts: threshold, formatter, all-level routing
- buffer-log-appender.test.ts: buffer append, threshold filtering, clearBuffer
- api-log-appender.test.ts: configuration defaults, threshold, auth token

Also fixes src/index.ts to export BufferLogAppender which was previously
missing from the barrel export.
2026-05-05 15:07:36 -04:00
mahseiah_ai e76f408f80 ci: add Gitea Actions workflow for test validation
- Runs on PRs targeting main and pushes to main
- Uses oven-sh/setup-bun@v2 to provision Bun
- Runs bun test v1.3.12 (700fc117) to validate the library
2026-05-05 14:59:59 -04:00
mahseiah_ai b7e78bbb9d build: add test and test:coverage scripts to package.json
- bun test v1.3.12 (700fc117) runs bun test (discovers tests in test/ directory)
- bun test v1.3.12 (700fc117) runs tests with coverage reporting
2026-05-05 14:59:24 -04:00
mahseiah_ai 31cf9ceef7 test: stand up test scaffolding with bun test
- Create test/ directory with a minimal LogService test
- Prove out the pattern: bun test natively discovers and runs tests
  in the test/ directory using ESM-style imports from ../src/
2026-05-05 14:58:56 -04:00