xingyue
1abc3b4cf4
chore: fix all biome lint errors across monorepo
...
- Fix import ordering (organizeImports) across multiple packages
- Replace forEach with for...of loops (noForEach)
- Replace non-null assertions with fallback values (noNonNullAssertion)
- Add biome-ignore comments for justified noExplicitAny usages
- Remove parameter properties, use explicit class properties (noParameterProperties)
- Fix string concatenation to template literals (useTemplate)
- Fix format issues (CSS, TypeScript)
- Add tailwindDirectives CSS parser config in biome.json
- Replace var with const (noVar)
Result: 0 errors, 12 warnings (all cognitive complexity, acceptable)
2026-05-23 18:39:02 +08:00
xiaoju
d0dc7b5a19
feat: add process-level debug logger (Phase 1)
...
- New ProcessLogger in workflow-util: process-scoped JSONL logger
- Entry schema: {ts, pid, tag, msg, thread, workflow}
- Storage: ~/.uncaged/workflow/logs/YYYY-MM-DD.jsonl
- Auto logs process init info (argv, node version, context)
- cli-workflow thread commands fully instrumented:
- thread start/step, moderator evaluate, agent spawn/done
- thread archived, error paths
Refs #411 , #412 , #410
2026-05-23 06:10:05 +00:00
xiaoju
43978360ff
feat(workflow-util): add frontmatter markdown parser and validator
...
Phase 1 of RFC #351 — define AgentFrontmatter type, parseFrontmatterMarkdown()
and validateFrontmatter() with 45 tests.
- Built-in minimal YAML parser (no new deps)
- Never throws on malformed input — degrades gracefully
- All fields use T | null (no optional properties)
Refs #351
2026-05-19 04:41:56 +00:00
xiaoju
b1a9d2ec3f
refactor: replace requireEnv/optionalEnv with env(name, fallback)
...
Bundles must run without env vars — env vars are overrides, not requirements.
Single function: env(name, fallback) always returns string with a default.
- Removed requireEnv and optionalEnv
- Updated bundle entries, tests, and skill docs
小橘 🍊
2026-05-15 10:07:49 +00:00
xiaoju
21cf3db111
feat(util): extract requireEnv/optionalEnv to workflow-util
...
- requireEnv(name, message) — throws with custom error message
- optionalEnv(name, fallback?) — returns fallback or null
- Update develop and solve-issue bundle entries to use shared helpers
- Remove inline requireEnv/optionalEnv and wrapAgentAsAdapter usage
- Add tests for both functions
小橘 🍊
2026-05-13 06:02:17 +00:00