Skip to content

feat(ask-project): endpoint + MCP tools + latest-deploy index pipeline#16

Merged
hellno merged 3 commits intomainfrom
codex/ask-project-pr
Feb 17, 2026
Merged

feat(ask-project): endpoint + MCP tools + latest-deploy index pipeline#16
hellno merged 3 commits intomainfrom
codex/ask-project-pr

Conversation

@hellno
Copy link
Contributor

@hellno hellno commented Feb 17, 2026

Summary

  • add control-plane POST /v1/projects/:projectId/ask endpoint with strict evidence response contract
  • add latest-deploy code index pipeline (D1 schema + queue producer/consumer + fallback)
  • add ask_project tool support in local CLI MCP and remote MCP worker
  • add server-side ask telemetry: isolated AE dataset (jack_control_usage) + PostHog capture
  • add benchmark + e2e scripts for ask_project validation

Metering/Analytics

  • ask telemetry is isolated from jack_usage
  • writes only to CONTROL_USAGE (jack_control_usage) and never falls back to runtime traffic dataset

Validation

  • bun run --cwd apps/control-plane typecheck
  • bun run --cwd apps/mcp-worker typecheck

Notes

  • planning docs remain under docs/internal/ and are gitignored (not part of PR)

Add WorkOS Magic Auth as a second login path so AI agents can
authenticate without a browser. Two-step non-interactive flow:

  1. jack login --email agent@example.com  (sends 6-digit code)
  2. jack login --email agent@example.com --code 123456  (verifies)

Auth worker: POST /auth/magic (rate-limited 5/min/IP) and
POST /auth/magic/verify endpoints proxying to WorkOS API.

CLI: startMagicAuth/verifyMagicAuth client functions,
runMagicAuthFlow orchestrating send → verify → register → create
jkt_* token. Supports --email flag, JACK_EMAIL env var, and CI=true
for fully non-interactive mode. Token printed to stdout for
programmatic capture; all human output on stderr.

Existing device flow (browser OAuth) unchanged.
Update AI agents, OpenClaw, and troubleshooting docs to document
the headless magic auth login flow (--email/--code flags),
JACK_API_TOKEN, and JACK_EMAIL env var. Replace misleading
"auth happens automatically" with concrete instructions.
@hellno hellno merged commit 2490fb8 into main Feb 17, 2026
1 check 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.

1 participant