Skip to content

feat(opencode): feature improvements (Phase D) - #15

Merged
qkhalk merged 4 commits into
mainfrom
feature-improvements
Aug 27, 2026
Merged

qkhalk merged 4 commits into
mainfrom
feature-improvements

Conversation

@qkhalk

@qkhalk qkhalk commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Add dependencies.ts, sandboxed-hooks.ts, marketplace.ts, and testing.ts for kit dependencies, isolated hook execution, marketplace discovery, and kit testing.

…ce, and testing (Phase 8)

Add four new modules to the OC Kit system for production readiness:

1. dependencies.ts — Kit dependency resolution with semver range checking,
   topological sort, and circular dependency detection.

2. sandboxed-hooks.ts — Executes hook commands in a restricted environment
   with controlled tool access, timeout enforcement, and filesystem isolation.

3. marketplace.ts — Discover, search, and rate kits from the registry.
   Provides a higher-level API over the base registry for marketplace features.

4. testing.ts — Kit testing framework with structure validation, test suite
   execution, and assertion helpers.

All modules follow Effect Schema conventions and include unit tests.
Copilot AI lite review requested due to automatic review settings August 26, 2026 22:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

Copy link
Copy Markdown

The following comment was made by an LLM, it may be inaccurate:

Fix type errors across dependencies, marketplace, sandboxed-hooks, and testing:

1. dependencies.ts: Rewrite to take explicit DependencyDecl[] instead of
   non-existent Kit.dependencies field. Add versioning.ts with semver helpers.

2. marketplace.ts: Replace score field with rating in KitSearchResult to
   match actual Schema definition.

3. sandboxed-hooks.ts: Use hook.event instead of non-existent hook.id.

4. testing.ts: Fix validateKit result check from .valid to .ok, and
   .errors to .issues with proper mapping.

5. Tests: Update fixtures to remove score field, use new dependency API.
Fix additional issues found in CI/CD:

1. index.ts: Remove exports for non-existent modules (packager, publisher,
   sandboxed-hooks) that only exist on other branches.

2. sandboxed-hooks.ts: Remove dependency on workflow/permission-scope which
   doesn't exist on this branch. Use async stream reading instead of
   Response constructor for stdout/stderr.

3. dependencies.test.ts: Fix import path for testEffect and add missing
   Layer import.
Fix TS2339: Property 'getReader' does not exist on type 'Readable'.

Use buffer from node:stream/consumers to properly read from Node.js
Readable streams instead of trying to use Web Streams API.
@qkhalk
qkhalk merged commit 8017f97 into main Aug 27, 2026
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants