Skip to content

Add user creation endpoints and stabilize test discovery#4

Open
Codex wants to merge 2 commits intomainfrom
codex/add-new-user-api-endpoint
Open

Add user creation endpoints and stabilize test discovery#4
Codex wants to merge 2 commits intomainfrom
codex/add-new-user-api-endpoint

Conversation

@Codex
Copy link
Copy Markdown

@Codex Codex AI commented Mar 10, 2026

The issue required adding a minimal user-management surface to the gateway while keeping existing chat functionality intact and ensuring tests collect reliably.

Pull Request

Description

A clear and concise description of what this PR does.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Performance improvement
  • Test coverage improvement

Changes Made

Detailed list of changes:

  • Added /v1/users POST/GET endpoints to the Express gateway with validation, duplicate email handling, and in-memory storage plus a clearUsers test helper.
  • Introduced Jest config to ignore the malformed prime-security package during test discovery.
  • Ensured Python tests import modules reliably by prepending the package dir to sys.path.

Testing

Describe the tests you ran to verify your changes:

  • Existing tests pass (npm test / python -m pytest)
  • Added new tests for new functionality
  • Manual testing performed

Alignment with Core Directive

Does this change honor the core directive: "No action may interfere with another person's inalienable right to pursue happiness"?

  • Yes
  • Not applicable

Explanation:
Adds transparent user creation/listing without altering governing principles; improves test reliability.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Screenshots (if applicable)

Add screenshots to help explain your changes.

Additional Notes

None.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • manus.im
    • Triggering command: /usr/bin/curl curl -L REDACTED (dns block)
    • Triggering command: /usr/bin/dig dig manus.im +short git chec�� codex/add-new-user-api-endpoint git /usr/bin/awk get --global odex/vendor/x86_[:lower:] */bin.*$") { next } } { printf "%s%s", sep, $0; sep=RS } -v #; -v name R) + 1) if (lsb_release --local git head (dns block)
  • r.jina.ai
    • Triggering command: /usr/bin/curl curl -sL REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@Codex Codex AI assigned Codex and dshvvvshr Mar 10, 2026
@dshvvvshr dshvvvshr marked this pull request as ready for review March 10, 2026 22:12
Copilot AI review requested due to automatic review settings March 10, 2026 22:12
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Codex Codex AI changed the title [WIP] Add new API endpoint for user creation Add user creation endpoints and stabilize test discovery Mar 10, 2026
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.

3 participants