Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
name: deploy

# Disabled: Cloudflare deployment is not used for local-only codemie.
# Artifacts are produced by the publish-codemie workflow instead.
# To re-enable, restore the push trigger below.
on:
push:
branches:
- dev
- production
workflow_dispatch:

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
deploy:
runs-on: blacksmith-4vcpu-ubuntu-2404
runs-on: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}
steps:
- uses: actions/checkout@v3

Expand All @@ -30,9 +29,7 @@ jobs:
- name: Fix Pulumi version conflict
run: sudo rm -f /usr/local/bin/pulumi-language-nodejs

- run: bun sst deploy --stage=${{ github.ref_name }}
- run: bun sst deploy --stage=${{ github.ref_name }} --print-logs
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
PLANETSCALE_SERVICE_TOKEN_NAME: ${{ secrets.PLANETSCALE_SERVICE_TOKEN_NAME }}
PLANETSCALE_SERVICE_TOKEN: ${{ secrets.PLANETSCALE_SERVICE_TOKEN }}
STRIPE_SECRET_KEY: ${{ github.ref_name == 'production' && secrets.STRIPE_SECRET_KEY_PROD || secrets.STRIPE_SECRET_KEY_DEV }}
CLOUDFLARE_DEFAULT_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_DEFAULT_ACCOUNT_ID }}
2 changes: 1 addition & 1 deletion .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
generate:
runs-on: blacksmith-4vcpu-ubuntu-2404
runs-on: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}
permissions:
contents: write
pull-requests: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nix-eval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ permissions:

jobs:
nix-eval:
runs-on: blacksmith-4vcpu-ubuntu-2404
runs-on: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}
timeout-minutes: 15
steps:
- name: Checkout repository
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/nix-hashes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ jobs:
matrix:
include:
- system: x86_64-linux
runner: blacksmith-4vcpu-ubuntu-2404
runner: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}
- system: aarch64-linux
runner: blacksmith-4vcpu-ubuntu-2404-arm
runner: ${{ vars.RUNNER_UBUNTU_ARM || 'blacksmith-4vcpu-ubuntu-2404-arm' }}
- system: x86_64-darwin
runner: macos-15-intel
- system: aarch64-darwin
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
update-hashes:
needs: compute-hash
if: github.event_name != 'pull_request'
runs-on: blacksmith-4vcpu-ubuntu-2404
runs-on: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
check-duplicates:
runs-on: blacksmith-4vcpu-ubuntu-2404
runs-on: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}
permissions:
contents: read
pull-requests: write
Expand Down
63 changes: 63 additions & 0 deletions .github/workflows/publish-codemie.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: publish-codemie

on:
workflow_dispatch:
inputs:
bump:
description: "Bump major, minor, or patch"
required: false
type: choice
options:
- major
- minor
- patch
version:
description: "Override version (optional)"
required: false
type: string

permissions:
id-token: write
contents: read

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: ./.github/actions/setup-bun

- uses: actions/setup-node@v4
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"

- name: Determine version
id: version
run: ./script/version.ts
env:
GH_TOKEN: ${{ github.token }}
OPENCODE_BUMP: ${{ inputs.bump }}
OPENCODE_VERSION: ${{ inputs.version }}
OPENCODE_NPM_PACKAGE: "@codemieai/codemie-opencode"
OPENCODE_SKIP_RELEASE: "true"

- name: Build codemie
run: bun run build
working-directory: packages/codemie
env:
OPENCODE_VERSION: ${{ steps.version.outputs.version }}
OPENCODE_RELEASE: ${{ steps.version.outputs.release }}
GH_TOKEN: ${{ github.token }}

- name: Publish codemie to npm
run: bun run publish:npm
working-directory: packages/codemie
env:
OPENCODE_VERSION: ${{ steps.version.outputs.version }}
OPENCODE_RELEASE: ${{ steps.version.outputs.release }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: false
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
unit:
name: unit (linux)
runs-on: blacksmith-4vcpu-ubuntu-2404
runs-on: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}
defaults:
run:
shell: bash
Expand Down Expand Up @@ -38,10 +38,10 @@ jobs:
matrix:
settings:
- name: linux
host: blacksmith-4vcpu-ubuntu-2404
host: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}
playwright: bunx playwright install --with-deps
- name: windows
host: blacksmith-4vcpu-windows-2025
host: ${{ vars.RUNNER_WINDOWS || 'blacksmith-4vcpu-windows-2025' }}
playwright: bunx playwright install
runs-on: ${{ matrix.settings.host }}
env:
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:

required:
name: test (linux)
runs-on: blacksmith-4vcpu-ubuntu-2404
runs-on: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}
needs:
- unit
- e2e
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
typecheck:
runs-on: blacksmith-4vcpu-ubuntu-2404
runs-on: ${{ vars.RUNNER_UBUNTU || 'blacksmith-4vcpu-ubuntu-2404' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
33 changes: 20 additions & 13 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions packages/codemie/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
30 changes: 30 additions & 0 deletions packages/codemie/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# @codemieai/codemie-opencode

AI coding agent for [Codemie Code](https://github.com/codemie-ai/codemie-opencode).

## How it works

This is a wrapper package that automatically installs the correct platform-specific binary for your OS and architecture. You don't need to install platform packages directly.

## Supported platforms

| OS | Architecture |
| ------- | ------------ |
| macOS | arm64 |
| macOS | x64 |
| Linux | arm64 |
| Linux | x64 |
| Linux | x64 (musl) |
| Windows | x64 |

## Part of the @codemieai/code ecosystem

This package is a component of the [`@codemieai/code`](https://www.npmjs.com/package/@codemieai/code) CLI. It is installed automatically as a dependency — you typically don't need to install it yourself.

## Links

- [GitHub](https://github.com/codemie-ai/codemie-opencode)

## License

Apache-2.0
14 changes: 14 additions & 0 deletions packages/codemie/README.platform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# @codemieai/codemie-opencode platform binary

This package contains a platform-specific binary for [`@codemieai/codemie-opencode`](https://www.npmjs.com/package/@codemieai/codemie-opencode).

It is **not meant to be installed directly** — it is installed automatically by the wrapper package when you install `@codemieai/codemie-opencode` or `@codemieai/code`.

## Links

- [Wrapper package](https://www.npmjs.com/package/@codemieai/codemie-opencode)
- [GitHub](https://github.com/codemie-ai/codemie-opencode)

## License

Apache-2.0
Loading
Loading