Skip to content

feat: polymorfa trigger for Test number test events - #15

Merged
purpshell merged 9 commits into
devfrom
codex/cli-trigger
Sep 23, 2026
Merged

purpshell merged 9 commits into
devfrom
codex/cli-trigger

Conversation

@purpshell

@purpshell purpshell commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

Adds polymorfa trigger for signed test events on a Test number. The command lists supported fixtures, validates typed overrides before sending, and prints the event ID returned by the API. It can also simulate a message between two Test numbers with --from-session.

polymorfa trigger --list --project PROJECT_ID
polymorfa trigger message.received --project PROJECT_ID --session my-test-number --text "hi"
polymorfa trigger session.restriction_updated --project PROJECT_ID --session my-test-number --override restricted=true
polymorfa trigger message.received --project PROJECT_ID --session my-test-number --from-session other-test-number

The command requires a server API key. API refusals, including a real-session 400, authorization 403, and rate-limit 429, use the standard CLI error and exit behavior. The README covers listener output and the forwarding secret requirement.

The CLI pins published @polymorfa/sdk@0.1.0-dev.20260923093259, produced from SDK merge commit 2b693964305b91dc34b9092ca5774055c7e47d88. A clean npm ci installed that artifact. Full npm run verify passed on the branch merged with current dev: 635 tests across 73 files, formatting, lint, typecheck, build, pack check, and production audit (zero findings). No live API or listener session was exercised.

Contract impact: the API endpoint and auth remain unchanged; the SDK fixture and types were updated in polymorfa/sdks#290; CLI command, README and tests are updated here. docs/internal/launch-docs/cli-trigger.mdx prepares the public Test events guide insertion. The CLI is unpublished, so public Mintlify insertion and changelog await a released CLI artifact and live acceptance. This PR changes no feature flags, enrollment, entitlements, or admin controls.

@coderabbitai

coderabbitai Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 49 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 74 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 82f60417-33ce-421b-87c1-21da7c8fa5d8

📥 Commits

Reviewing files that changed from the base of the PR and between fa7fdef and 697e14c.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (8)
  • README.md
  • docs/internal/2026-09-22-trigger-fixture-parity.md
  • docs/internal/2026-09-23-trigger-launch-docs.md
  • docs/internal/launch-docs/cli-trigger.mdx
  • package.json
  • src/commands/trigger.ts
  • test/commands/trigger.test.ts
  • test/commands/version.test.ts

Comment @coderabbitai help to get the list of available commands.

@purpshell

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-22T12:00:29.757634Z 67b1c0f Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: df5c883376

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/commands/trigger.ts Resolved
Comment thread README.md Resolved
@purpshell

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c0d923a044

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread README.md Resolved
@purpshell

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 67b1c0f435

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@purpshell
purpshell marked this pull request as ready for review September 23, 2026 09:39
@purpshell
purpshell merged commit c78687d into dev Sep 23, 2026
3 checks passed
@purpshell
purpshell deleted the codex/cli-trigger branch October 26, 2026 15:52
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.

1 participant