Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

chore(env): rename ORBCODE_* env vars to MATTERAI_* (v0.2.0)#5

Merged
code-crusher merged 1 commit into
mainMatterAIOrg/OrbCode:mainfrom
chore/rename-orbcode-env-varsMatterAIOrg/OrbCode:chore/rename-orbcode-env-varsCopy head branch name to clipboard
Jun 17, 2026
Merged

chore(env): rename ORBCODE_* env vars to MATTERAI_* (v0.2.0)#5
code-crusher merged 1 commit into
mainMatterAIOrg/OrbCode:mainfrom
chore/rename-orbcode-env-varsMatterAIOrg/OrbCode:chore/rename-orbcode-env-varsCopy head branch name to clipboard

Conversation

@code-crusher

Copy link
Copy Markdown
Member

Summary

Breaking change: renames all environment variables prefixed with ORBCODE_ to MATTERAI_ to align the CLI's env-var namespace with the MatterAI brand.

Renamed variables

Old New
ORBCODE_TOKEN MATTERAI_TOKEN
ORBCODE_API_KEY MATTERAI_API_KEY
ORBCODE_BASE_URL MATTERAI_BASE_URL
ORBCODE_MODEL MATTERAI_MODEL
ORBCODE_CONFIG_DIR MATTERAI_CONFIG_DIR
ORBCODE_BACKEND_URL MATTERAI_BACKEND_URL
ORBCODE_APP_URL MATTERAI_APP_URL
ORBCODE_PROJECT_DIR MATTERAI_PROJECT_DIR
ORBCODE_TRUST_PROJECT_HOOKS MATTERAI_TRUST_PROJECT_HOOKS

Files changed

  • src/ — all env var references in source (auth, config, hooks, headless, index, UI)
  • Tests — test-device-auth.mjs, test-hook-env.mjs, test-hook-trust.mjs, test-hooks.mjs, test-ui.mjs
  • Docs — README.md, CHANGELOG.md, docs/HOOKS.md
  • package.json — version bump to 0.2.0

Migration

Users who set any of these env vars in scripts, CI configs, or .env files must update the prefix from ORBCODE_ to MATTERAI_.

Version

Bumps to 0.2.0 (minor bump for breaking change in 0.x semver). After merge, a v0.2.0 tag will be pushed to trigger the release workflow.

Checklist

  • All ORBCODE_ occurrences renamed to MATTERAI_
  • dist/ rebuilt from updated source (npm run build exit 0)
  • No remaining ORBCODE_ occurrences outside node_modules/, .git/, dist/
  • CHANGELOG entry added
  • Version bumped to 0.2.0

Breaking change: all environment variables prefixed with ORBCODE_ are now
prefixed with MATTERAI_ to align with the MatterAI brand.

Renamed variables:
- ORBCODE_TOKEN -> MATTERAI_TOKEN
- ORBCODE_API_KEY -> MATTERAI_API_KEY
- ORBCODE_BASE_URL -> MATTERAI_BASE_URL
- ORBCODE_MODEL -> MATTERAI_MODEL
- ORBCODE_CONFIG_DIR -> MATTERAI_CONFIG_DIR
- ORBCODE_BACKEND_URL -> MATTERAI_BACKEND_URL
- ORBCODE_APP_URL -> MATTERAI_APP_URL
- ORBCODE_PROJECT_DIR -> MATTERAI_PROJECT_DIR
- ORBCODE_TRUST_PROJECT_HOOKS -> MATTERAI_TRUST_PROJECT_HOOKS

Updated across source (src/), tests, README, CHANGELOG, and docs/HOOKS.md.
Bumps version to 0.2.0 (minor bump for breaking change in 0.x semver).
@code-crusher code-crusher merged commit a09aaee into main Jun 17, 2026
1 check was pending
@code-crusher code-crusher deleted the chore/rename-orbcode-env-vars branch June 17, 2026 09:50
@matterai-app

matterai-app Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Summary By MatterAI MatterAI logo

🔄 What Changed

This PR rebrands all environment variables from the ORBCODE_ prefix to MATTERAI_ and bumps the package version to 0.2.0. It updates configuration loading, authentication logic, CLI output, and the entire test suite to reflect these changes.

🔍 Impact of the Change

Standardizes the CLI's environment configuration with the MatterAI brand. This is a breaking change for users relying on ORBCODE_ variables in their shell profiles or CI/CD pipelines, necessitating an update to their environment setups.

📁 Total Files Changed

Click to Expand
File ChangeLog
Version Bump package.json Updated version to 0.2.0.
Auth Rename src/auth/auth.ts Renamed backend and app URL environment variables.
Config Update src/config/settings.ts Migrated all configuration environment variables to MATTERAI prefix.
Hook Redaction src/core/hooks.ts Updated redaction list and project directory environment variable.
Headless Output src/headless.ts Updated CLI output and error messages to reference new variables.
Flag Override src/index.tsx Updated flag-to-env-var override logic for model selection.
UI Display src/ui/App.tsx Updated account status display logic for new token variable.
Login Help src/ui/LoginView.tsx Updated login help text to reference MATTERAI_TOKEN.
Test Auth test-device-auth.mjs Updated mock server environment variables.
Test Env test-hook-env.mjs Updated redaction and leak tests for new variables.
Test Trust test-hook-trust.mjs Updated trust gate tests for new variables.
Test Hooks test-hooks.mjs Updated project directory export tests.
Test UI test-ui.mjs Updated UI fixture configuration directory.

🧪 Test Added/Recommended

Recommended

  • Add integration tests to verify that both old ORBCODE_ and new MATTERAI_ variables work if a fallback is implemented.
  • Verify that the version bump is correctly reflected in the --version CLI command.

🔒 Security Vulnerabilities

No security vulnerabilities detected. The PR correctly updates the redaction logic to ensure new credential variables do not leak to project hooks. 🛡️

@matterai-app

matterai-app Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

✅ Reviewed the changes: Straightforward breaking rename of all ORBCODE_* environment variables to MATTERAI_* across config, auth, hooks, UI, and tests for v0.2.0.
Reviewed src/config/settings.ts, src/core/hooks.ts, test-hook-env.mjs, test-hook-trust.mjs: no issues found.

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.