declared() capability parsing has no direct test coverage

Open Beginner friendly
#1,225 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
84/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
testing

Research direction

Read packages/opencode/src/altimate/workspace/engine-probes.ts around lines 122-142, then inspect the existing consumer tests and their test seam. Add direct coverage that exercises declared()'s real parsing and verifies the split between extension keys and tool keys; the relevant workspace tests should pass without injecting a pre-shaped Declared object.

Written by the indexing model from the issue text.

Description

Deferred from the v0.10.0 release review.

declared() (packages/opencode/src/altimate/workspace/engine-probes.ts:122-142) parses the engine's declared capabilities and splits them into extension keys and tool keys. It has no direct test coverage.

Every consumer test injects an already-shaped Declared object through the test seam, bypassing the parser entirely — so a bug in the split would ship without any test noticing. Needs test scaffolding that exercises the real parse.

Dominant language
TypeScript
Stars
813
Forks
134
Avg merge
2d 5h
Merged PRs (30d)
62

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AltimateAI/altimate-code

All issues in AltimateAI/altimate-code

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.