@open330/oac 2026.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/CHANGELOG.md +115 -0
  2. package/LICENSE +21 -0
  3. package/README.md +597 -0
  4. package/dist/budget/index.d.ts +117 -0
  5. package/dist/budget/index.js +23 -0
  6. package/dist/budget/index.js.map +1 -0
  7. package/dist/chunk-4IUL7ECC.js +3152 -0
  8. package/dist/chunk-4IUL7ECC.js.map +1 -0
  9. package/dist/chunk-5GAUWC3L.js +469 -0
  10. package/dist/chunk-5GAUWC3L.js.map +1 -0
  11. package/dist/chunk-6A37SKAJ.js +58 -0
  12. package/dist/chunk-6A37SKAJ.js.map +1 -0
  13. package/dist/chunk-7C7SC4TZ.js +358 -0
  14. package/dist/chunk-7C7SC4TZ.js.map +1 -0
  15. package/dist/chunk-CJAJ4MBO.js +475 -0
  16. package/dist/chunk-CJAJ4MBO.js.map +1 -0
  17. package/dist/chunk-LQC5DLT7.js +317 -0
  18. package/dist/chunk-LQC5DLT7.js.map +1 -0
  19. package/dist/chunk-OTPXGXO7.js +2368 -0
  20. package/dist/chunk-OTPXGXO7.js.map +1 -0
  21. package/dist/chunk-QPVNC7S4.js +1833 -0
  22. package/dist/chunk-QPVNC7S4.js.map +1 -0
  23. package/dist/cli/cli.d.ts +13 -0
  24. package/dist/cli/cli.js +16 -0
  25. package/dist/cli/cli.js.map +1 -0
  26. package/dist/cli/index.d.ts +1 -0
  27. package/dist/cli/index.js +22 -0
  28. package/dist/cli/index.js.map +1 -0
  29. package/dist/completion/index.d.ts +91 -0
  30. package/dist/completion/index.js +587 -0
  31. package/dist/completion/index.js.map +1 -0
  32. package/dist/config-DequKoFA.d.ts +1468 -0
  33. package/dist/core/index.d.ts +64 -0
  34. package/dist/core/index.js +87 -0
  35. package/dist/core/index.js.map +1 -0
  36. package/dist/dashboard/index.d.ts +14 -0
  37. package/dist/dashboard/index.js +1253 -0
  38. package/dist/dashboard/index.js.map +1 -0
  39. package/dist/discovery/index.d.ts +285 -0
  40. package/dist/discovery/index.js +50 -0
  41. package/dist/discovery/index.js.map +1 -0
  42. package/dist/event-bus-KiuR6e3P.d.ts +91 -0
  43. package/dist/execution/index.d.ts +215 -0
  44. package/dist/execution/index.js +27 -0
  45. package/dist/execution/index.js.map +1 -0
  46. package/dist/repo/index.d.ts +33 -0
  47. package/dist/repo/index.js +19 -0
  48. package/dist/repo/index.js.map +1 -0
  49. package/dist/tracking/index.d.ts +357 -0
  50. package/dist/tracking/index.js +15 -0
  51. package/dist/tracking/index.js.map +1 -0
  52. package/dist/types-CYCwgojB.d.ts +34 -0
  53. package/dist/types-Ck7IucqK.d.ts +195 -0
  54. package/docs/config-reference.md +271 -0
  55. package/docs/multi-agent-support-technical-spec.md +312 -0
  56. package/package.json +82 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,115 @@
1
+ # Changelog
2
+
3
+ All notable changes to OAC (Open Agent Contribution) are documented here.
4
+
5
+ ## [Unreleased]
6
+
7
+ _No unreleased changes._
8
+
9
+ ---
10
+
11
+ ## [2026.2.5] — 2026-02-20
12
+
13
+ > **Note**: Versions `2026.3.x` and `2026.4.x` were published with an incorrect CalVer month.
14
+ > This release corrects the version to `2026.2.5` (year=2026, month=February, patch=5th iteration).
15
+
16
+ ### Config Loader Fix (`fb57557`)
17
+ - **fix**: Config loader now matches `@open330/oac` import (previously only matched `@open330/oac-core`)
18
+
19
+ ### OpenCode Provider Integration (`afdf725`)
20
+ - **feat**: OpenCode adapter (`src/execution/agents/opencode.adapter.ts`)
21
+ - **feat**: Adapter registry replacing hard-coded switch (`src/execution/agents/registry.ts`)
22
+ - **fix**: 7 pre-existing typecheck errors resolved (`doctor.ts`, `explain.ts`, `init.ts`, `task.ts`)
23
+
24
+ ### Security & Quality Fixes (`55780e4`)
25
+ - **security**: Fixed shell injection in dashboard browser opener (replaced `exec` with `open` library)
26
+ - **security**: Sanitized branch names in `sandbox.ts` against path traversal
27
+ - **security**: Replaced `sh -c` shell redirect with `execa` piping in `github-auth.ts`
28
+ - **security**: Added `AbortSignal.timeout` to all GitHub API `fetch` calls
29
+ - **security**: SHA-pinned all CI/CD workflow actions
30
+ - **refactor**: Consolidated `truncate()` and `isRecord()` into `core/utils.ts`
31
+ - **refactor**: Unified error normalization into shared `normalizeError` module
32
+ - **refactor**: Extracted `AsyncEventQueue` into shared module for agent adapters
33
+ - **refactor**: Created scanner factory to eliminate construction duplication
34
+ - **chore**: Annotated all 10 empty catch blocks with `// best-effort` comments
35
+ - **ci**: Added `pnpm audit --prod` to CI pipeline
36
+
37
+ ### Deploy Readiness (`91898c8`)
38
+ - **chore**: Added `LICENSE`, `CHANGELOG.md`, `docs/` to npm `files` array
39
+ - **chore**: Added `prepublishOnly` script (`pnpm build && pnpm test`)
40
+ - **chore**: Restored CI/CD workflows (SHA-pinned actions)
41
+ - **chore**: Lowered Node.js requirement from `>=24` to `>=20`
42
+ - **chore**: Fixed repository URL in `package.json`
43
+
44
+ ### Wave 9 — Final P3/T3 Polish (`f8ff2ae`)
45
+ - **feat**: `oac init --minimal` for quick, non-interactive setup
46
+ - **feat**: `oac explain <task-id>` command — inspect why a task/epic was selected
47
+ - **feat**: Colored diff output in `--dry-run` mode (source files, complexity, scanner)
48
+ - **docs**: Comprehensive troubleshooting section in README
49
+ - **perf**: Streaming file reads in analyzer for large files (>1MB threshold)
50
+ - **perf**: Memory pressure monitoring — PQueue auto-throttles when heap usage exceeds 85%
51
+
52
+ ### Wave 8 — Final UX Polish (`806a170`)
53
+ - **docs**: Auto-generated config reference from Zod schema (`docs/config-reference.md`)
54
+ - **docs**: Added CHANGELOG
55
+
56
+ ### Maintenance
57
+ - **chore**: Temporarily removed CI/CD workflows during dev phase (`cb90214`)
58
+
59
+ ---
60
+
61
+ ## [2026.4.3] — 2026-02-18 _(deprecated — wrong CalVer month)_
62
+
63
+ ### Wave 7 — Quick Wins Bundle (`7c179a0`)
64
+ - **feat**: `oac r` alias for `oac run` (power-user shortcut)
65
+ - **feat**: Distinct exit codes for CI/CD integration:
66
+ - `0` — all tasks succeeded or dry-run
67
+ - `1` — unhandled error
68
+ - `2` — config/validation error
69
+ - `3` — every task/epic failed
70
+ - `4` — partial success (some tasks failed)
71
+ - **feat**: Resettable token counters (`claudeCounter.reset()`, `codexCounter.reset()`) for correctness in long-lived processes
72
+ - **feat**: Progress percentages on long operations (file analysis, task estimation, epic execution)
73
+
74
+ ### Wave 6 — Single-Command Pipeline (`156c7d2`)
75
+ - **feat**: `oac run` now performs the full scan → analyze → execute pipeline in one command
76
+ - **ux**: Clarified distinction between `oac scan` (discover tasks) and `oac analyze` (build context)
77
+
78
+ ### Wave 5 — Run Module Decomposition (`aea2760`)
79
+ - **refactor**: Decomposed the 1,692-line `run.ts` monolith into `src/cli/commands/run/` with 8 focused modules:
80
+ - `index.ts` — command definition and option parsing
81
+ - `pipeline.ts` — top-level orchestration
82
+ - `epic.ts` — epic-based execution flow
83
+ - `task.ts` — single-task execution
84
+ - `retry.ts` — `--retry-failed` pipeline
85
+ - `output.ts` — summary rendering and JSON output
86
+ - `validation.ts` — config and input validation
87
+ - `types.ts` — shared types, exit codes, `ConfigError`
88
+
89
+ ### Wave 4 — Timeout, Completion, & Retry (`cb1af6c`)
90
+ - **feat**: PR creation timeout (prevents hanging on GitHub API issues)
91
+ - **perf**: Replaced hand-rolled `runWithConcurrency` with `PQueue` for bounded parallelism
92
+ - **feat**: `oac completion` command for shell tab-completion (bash/zsh/fish)
93
+ - **feat**: `--retry-failed` flag to re-run only previously failed tasks
94
+
95
+ ### Wave 3 — UX & CLI Improvements (`9869073`)
96
+ - **ux**: Usage examples in every `--help` screen
97
+ - **feat**: Global `--quiet` flag suppresses spinner/progress output (for CI pipelines)
98
+ - **ux**: Failed task/epic details included in run summary
99
+ - **perf**: Parallelized epic execution pipeline with bounded concurrency
100
+
101
+ ### Wave 2 — Helpers, Parallelism, & Cleanup (`417fc85`)
102
+ - **refactor**: Extracted 11 duplicated helper functions into `src/cli/helpers.ts`
103
+ - **perf**: Parallelized `analyzer.ts` file processing with `PQueue`
104
+ - **perf**: Parallelized `todo-scanner.ts` file processing
105
+ - **chore**: Removed dead `withTimeout` utility
106
+
107
+ ### Wave 1 — Foundation Fixes (`4196c59`)
108
+ - **fix**: `withWorktreeLock` now correctly releases locks on error
109
+ - **perf**: Bounded `Promise.all` with `PQueue` to prevent unbounded parallelism
110
+ - **perf**: Replaced `child_process.spawn` with `execa` for better error handling
111
+ - **feat**: SIGINT handler for graceful shutdown
112
+ - **fix**: Removed simulation fallback that silently skipped real execution
113
+ - **feat**: `defineConfig()` wrapper for type-safe config files
114
+ - **ux**: Getting Started help text for first-time users
115
+
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Open330
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.