Skip to content

Rebrand src/ production remaining: CLI strings, URLs, infra file renames, protocol identifiers #214

@alexey-pelykh

Description

@alexey-pelykh

Summary

After the category-specific rebrand work items completed (env vars, types, npm package, config paths, UI, extensions, daemon, update infra, docs), ~45 production files in src/, ui/, extensions/, and root still contain hardcoded "openclaw" references that fall outside those scoped categories.

What needs to change

1. CLI command strings in help text and error messages (~15 files, ~50 occurrences)

Hardcoded "openclaw" CLI examples in user-facing messages:

File Examples
src/cli/update-cli/update-command.ts "openclaw completion --install", "openclaw gateway status --deep", "openclaw gateway restart", "openclaw doctor", "npm i -g openclaw@latest"
src/cli/update-cli/wizard.ts "openclaw update --channel <stable|beta|dev>"
src/cli/update-cli/progress.ts "openclaw doctor entry", "openclaw doctor"
src/cli/completion-cli.ts Default binary name "openclaw"
src/wizard/onboarding.ts "openclaw security audit --deep", "openclaw doctor", "openclaw configure"
src/security/audit.ts "openclaw security audit --deep", "openclaw status --all"
src/security/audit-extra.sync.ts "openclaw security audit --fix"
src/security/audit-extra.async.ts "openclaw plugins update --all", "openclaw hooks update --all"
src/security/audit-channel.ts "openclaw config set session.dmScope"
src/web/auto-reply/monitor.ts "openclaw channels login --channel web", "openclaw up"
src/media/host.ts "openclaw webhook", "openclaw up"

2. URL and domain constants (~5 files)

File Reference
src/terminal/links.ts DOCS_ROOT = "https://docs.openclaw.ai"
src/channels/registry.ts WEBSITE_URL = "https://openclaw.ai"

3. Infrastructure file renames (2 files + ~70 import cascade)

Current New
src/infra/tmp-openclaw-dir.ts src/infra/tmp-remoteclaw-dir.ts
src/infra/openclaw-root.ts src/infra/remoteclaw-root.ts

Content updates: "/tmp/openclaw""/tmp/remoteclaw", suffix = "openclaw"suffix = "remoteclaw".

All import paths referencing the old filenames must be updated (~70+ files).

4. HTTP protocol and API path identifiers (~3 files)

File Old New
src/security/audit-extra.sync.ts x-openclaw-session-key x-remoteclaw-session-key
src/gateway/control-ui-contract.ts /__openclaw/control-ui-config.json /__remoteclaw/control-ui-config.json
src/security/audit-extra.sync.ts openclaw-sandbox-browser remoteclaw-sandbox-browser

5. Wire protocol property (~2 files)

File Old New
ui/src/ui/views/chat.ts __openclaw __remoteclaw
src/gateway/control-ui-contract.ts __openclaw __remoteclaw

6. Extension residuals (~3 files)

  • extensions/googlechat/package.json: peerDependency "openclaw""remoteclaw"
  • extensions/feishu/src/media.test.ts: import from tmp-openclaw-dir.js (cascade from rename)
  • extensions/msteams/src/messenger.test.ts: import from tmp-openclaw-dir.js (cascade from rename)

7. Root package.json residuals (~1 file)

Native app build command paths in root package.json:

  • ai.openclaw.androidai.remoteclaw.android
  • OpenClaw.xcodeprojRemoteClaw.xcodeproj
  • ai.openclaw.iosai.remoteclaw.ios
  • OpenClawKitRemoteClawKit

8. Completion CLI default binary name (~1 file)

  • src/cli/completion-cli.ts: default binary name "openclaw""remoteclaw"

Acceptance Criteria

  • All hardcoded CLI command strings updated to remoteclaw
  • URL/domain constants updated to RemoteClaw URLs
  • tmp-openclaw-dir.ts renamed to tmp-remoteclaw-dir.ts with content updated
  • openclaw-root.ts renamed to remoteclaw-root.ts
  • All import paths referencing renamed files updated
  • HTTP header, API path, and Docker network name updated
  • Wire protocol property __openclaw__remoteclaw
  • Extension peerDependency and test imports updated
  • Root package.json native app build paths updated
  • Completion CLI default binary name is "remoteclaw"
  • pnpm build passes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions