Skip to content

refactor: reuse shared JSON object guard#104

Merged
Deepam02 merged 1 commit into
agentctxhq:mainfrom
jordansilly77-stack:refactor/reuse-json-object-guard
Jun 26, 2026
Merged

refactor: reuse shared JSON object guard#104
Deepam02 merged 1 commit into
agentctxhq:mainfrom
jordansilly77-stack:refactor/reuse-json-object-guard

Conversation

@jordansilly77-stack

Copy link
Copy Markdown
Contributor

Summary

  • import the existing isJsonObject guard in the MCP server and profile detector
  • remove the two duplicated private isObject helpers
  • keep the existing object-shape checks unchanged

Closes #99

Verification

  • npm run check

@Deepam02

Copy link
Copy Markdown
Contributor

LGTM

@Deepam02

Copy link
Copy Markdown
Contributor

@jordansilly77-stack thanks for the contribution. consider giving the repo a star if not done already.

@Deepam02 Deepam02 merged commit d881165 into agentctxhq:main Jun 26, 2026
5 checks passed
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.

Two private isObject copies duplicate the exported isJsonObject guard

2 participants