Skip to content

Releases: cnap-tech/codemode

v0.1.5

05 Mar 10:11

Choose a tag to compare

What's Changed

  • feat: Expose execution stats from V8 isolates — ExecuteResult now includes stats with CPU time, wall time, and heap statistics from isolated-vm
  • feat: Expose requestCount on the bridge function returned by createRequestBridge()

These additions let consumers (e.g. CodeModeService) record OTel metrics without the library itself depending on OpenTelemetry.

v0.1.4

24 Feb 11:49

Choose a tag to compare

What's changed

  • Revert error response stripping — Error status codes (401, 403, 404) are kept in the spec so agents can debug failures.
  • Improved search tool description — Aligned examples with Cloudflare's patterns: tag-based discovery when available, list-all as fallback, split endpoint detail examples by concern (requestBody vs parameters).

v0.1.3

24 Feb 11:39

Choose a tag to compare

What's changed

  • Strip error responses from spec — Only 2xx/default responses are kept in the processed spec. Error schemas (401, 404, 500) are identical boilerplate on every endpoint and were wasting context tokens.
    • Full CNAP spec: ~58K → ~26K tokens (56% reduction)
    • Single endpoint query: ~990 → ~358 tokens (64% reduction)

v0.1.2

24 Feb 11:34

Choose a tag to compare

What's changed

  • Leaner spec processingprocessSpec() now drops components, info, and operationId from the output. Since all $refs are resolved inline, these fields were redundant and wasted sandbox memory.
  • Lower default response token limitmaxResponseTokens default reduced from 25,000 to 6,000 (matching Cloudflare's implementation), keeping agent context usage lean.
  • Updated tool type declarationsSPEC_TYPES no longer advertises components or info on the spec global.

These changes reduce context overhead without changing the search/execute API.

v0.1.1

24 Feb 00:34

Choose a tag to compare

Full Changelog: v0.1.0...v0.1.1

v0.1.0

24 Feb 00:32

Choose a tag to compare