Skip to content

Comments

Move OpenClaw logic into dedicated module; add UI, styles, CI and GitHub templates#1

Draft
Millerderek wants to merge 1 commit intomainfrom
codex/build-chat-interface-for-openclaw-bot
Draft

Move OpenClaw logic into dedicated module; add UI, styles, CI and GitHub templates#1
Millerderek wants to merge 1 commit intomainfrom
codex/build-chat-interface-for-openclaw-bot

Conversation

@Millerderek
Copy link
Owner

Motivation

  • Separate bot behavior from UI so the OpenClaw implementation is visible in the codebase and easier to maintain.
  • Surface the new module in docs and CI so repository structure and syntax checks reflect the change.
  • Provide basic repo hygiene and collaboration files (templates, license, ignore) for contributors.

Description

  • Add src/openclaw.js which exports the OpenClaw system prompt, createOpenClawInitialMessages(), toGeminiPayload() and callGeminiChat() to encapsulate Gemini payload mapping and API calls.
  • Refactor src/app.js to import and use createOpenClawInitialMessages() and callGeminiChat() so UI/voice logic is separated from model logic.
  • Add UI and assets: index.html and src/styles.css to provide a basic web UI and styling.
  • Add repository files: .github/workflows/ci.yml (syntax checks), issue/PR templates under .github/ISSUE_TEMPLATE/, .gitignore, and LICENSE, and update README.md to show the new src/openclaw.js location.

Testing

  • Ran node --check src/openclaw.js which completed successfully.
  • Ran node --check src/app.js which completed successfully.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant