Skip to content

fix: reject static manifests with non-array tools - #43

Closed
sharadvc wants to merge 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/fix-manifest-non-array-tools-ab3f
Closed

fix: reject static manifests with non-array tools#43
sharadvc wants to merge 1 commit into
AgentPostmortem:mainfrom
sharadvc:cursor/fix-manifest-non-array-tools-ab3f

Conversation

@sharadvc

Copy link
Copy Markdown
Contributor

Summary

If tools is present but not an array (e.g. a string), normalize() now fails fast with Invalid manifest …: tools must be an array instead of iterating characters.

Test plan

  • npm test — includes reject non-array tools case

Fixes #25

Validate tools during manifest normalization so invalid values
like strings fail fast instead of being iterated as characters.

Fixes AgentPostmortem#25

Co-authored-by: Sharad. <sharadvc@users.noreply.github.com>
@royalpinto007

Copy link
Copy Markdown
Member

Thanks! Merging #39 for this one since it covers more shapes (string/object/number/boolean) and preserves null/empty correctly. Appreciate the work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Static manifest with non-array tools lints garbage instead of failing fast

2 participants