Skip to content

Commit 6a6fcff

Browse files
authored
Merge pull request #195 from NeuralNomadsAI/dev
Release v0.11.4 - Mobile Fullscreen mode and lots of improvements
2 parents f29f197 + a06884e commit 6a6fcff

94 files changed

Lines changed: 2071 additions & 434 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/build-and-upload.yml‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Build and Upload Binaries
33
on:
44
workflow_call:
55
inputs:
6+
ref:
7+
description: "Git ref (branch, tag, or SHA) to build from"
8+
required: false
9+
default: ""
10+
type: string
611
version:
712
description: "Version to apply to workspace packages (release builds)"
813
required: false
@@ -45,6 +50,8 @@ jobs:
4550
steps:
4651
- name: Checkout
4752
uses: actions/checkout@v4
53+
with:
54+
ref: ${{ inputs.ref || github.ref }}
4855

4956
- name: Setup Node
5057
uses: actions/setup-node@v4
@@ -85,6 +92,8 @@ jobs:
8592
steps:
8693
- name: Checkout
8794
uses: actions/checkout@v4
95+
with:
96+
ref: ${{ inputs.ref || github.ref }}
8897

8998
- name: Setup Node
9099
uses: actions/setup-node@v4
@@ -124,6 +133,8 @@ jobs:
124133
steps:
125134
- name: Checkout
126135
uses: actions/checkout@v4
136+
with:
137+
ref: ${{ inputs.ref || github.ref }}
127138

128139
- name: Setup Node
129140
uses: actions/setup-node@v4
@@ -164,6 +175,8 @@ jobs:
164175
steps:
165176
- name: Checkout
166177
uses: actions/checkout@v4
178+
with:
179+
ref: ${{ inputs.ref || github.ref }}
167180

168181
- name: Setup Node
169182
uses: actions/setup-node@v4
@@ -237,6 +250,8 @@ jobs:
237250
steps:
238251
- name: Checkout
239252
uses: actions/checkout@v4
253+
with:
254+
ref: ${{ inputs.ref || github.ref }}
240255

241256
- name: Setup Node
242257
uses: actions/setup-node@v4
@@ -310,6 +325,8 @@ jobs:
310325
steps:
311326
- name: Checkout
312327
uses: actions/checkout@v4
328+
with:
329+
ref: ${{ inputs.ref || github.ref }}
313330

314331
- name: Setup Node
315332
uses: actions/setup-node@v4
@@ -388,6 +405,8 @@ jobs:
388405
steps:
389406
- name: Checkout
390407
uses: actions/checkout@v4
408+
with:
409+
ref: ${{ inputs.ref || github.ref }}
391410

392411
- name: Setup Node
393412
uses: actions/setup-node@v4
@@ -490,6 +509,8 @@ jobs:
490509
steps:
491510
- name: Checkout
492511
uses: actions/checkout@v4
512+
with:
513+
ref: ${{ inputs.ref || github.ref }}
493514

494515
- name: Setup QEMU
495516
uses: docker/setup-qemu-action@v3
@@ -587,6 +608,8 @@ jobs:
587608
steps:
588609
- name: Checkout
589610
uses: actions/checkout@v4
611+
with:
612+
ref: ${{ inputs.ref || github.ref }}
590613

591614
- name: Setup Node
592615
uses: actions/setup-node@v4

‎.github/workflows/dev-release.yml‎

Lines changed: 50 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name: Develop Pre-Release
22

33
on:
4-
push:
5-
branches:
6-
- dev
4+
schedule:
5+
# Nightly build of dev (only if dev has new commits)
6+
- cron: "0 1 * * *"
77
workflow_dispatch:
88

99
permissions:
10+
actions: read
1011
id-token: write
1112
contents: write
1213

@@ -15,25 +16,63 @@ concurrency:
1516
cancel-in-progress: true
1617

1718
jobs:
18-
prepare:
19+
gate:
1920
runs-on: ubuntu-latest
2021
outputs:
21-
version_suffix: ${{ steps.vars.outputs.version_suffix }}
22+
run: ${{ steps.gate.outputs.run }}
23+
dev_sha: ${{ steps.gate.outputs.dev_sha }}
24+
version_suffix: ${{ steps.gate.outputs.version_suffix }}
2225
steps:
23-
- name: Compute version suffix
24-
id: vars
26+
- name: Decide whether to run
27+
id: gate
2528
shell: bash
29+
env:
30+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2631
run: |
2732
set -euo pipefail
28-
SHA8="${GITHUB_SHA::8}"
33+
34+
api() {
35+
curl -sS \
36+
-H "Authorization: Bearer ${GH_TOKEN}" \
37+
-H "Accept: application/vnd.github+json" \
38+
-H "X-GitHub-Api-Version: 2022-11-28" \
39+
"$1"
40+
}
41+
42+
DEV_SHA=$(api "https://api.github.com/repos/${GITHUB_REPOSITORY}/git/ref/heads/dev" | jq -r '.object.sha')
43+
if [ -z "$DEV_SHA" ] || [ "$DEV_SHA" = "null" ]; then
44+
echo "Failed to resolve dev head SHA" >&2
45+
exit 1
46+
fi
47+
2948
DATE=$(date -u +%Y%m%d)
30-
echo "version_suffix=-dev-${DATE}-${SHA8}" >> "$GITHUB_OUTPUT"
49+
SHA8="${DEV_SHA::8}"
50+
VERSION_SUFFIX="-dev-${DATE}-${SHA8}"
51+
52+
SHOULD_RUN="false"
53+
if [ "${GITHUB_EVENT_NAME}" = "workflow_dispatch" ]; then
54+
SHOULD_RUN="true"
55+
else
56+
# Nightly: only run if dev has advanced since last successful dev-release build.
57+
LAST_SHA=$(api "https://api.github.com/repos/${GITHUB_REPOSITORY}/actions/workflows/dev-release.yml/runs?branch=dev&status=success&per_page=1" | jq -r '.workflow_runs[0].head_sha // empty')
58+
if [ -z "${LAST_SHA}" ]; then
59+
SHOULD_RUN="true"
60+
elif [ "${LAST_SHA}" != "${DEV_SHA}" ]; then
61+
SHOULD_RUN="true"
62+
fi
63+
fi
64+
65+
echo "run=${SHOULD_RUN}" >> "$GITHUB_OUTPUT"
66+
echo "dev_sha=${DEV_SHA}" >> "$GITHUB_OUTPUT"
67+
echo "version_suffix=${VERSION_SUFFIX}" >> "$GITHUB_OUTPUT"
3168
3269
prerelease:
33-
needs: prepare
70+
needs: gate
71+
if: ${{ needs.gate.outputs.run == 'true' }}
3472
uses: ./.github/workflows/reusable-release.yml
3573
with:
36-
version_suffix: ${{ needs.prepare.outputs.version_suffix }}
74+
ref: ${{ needs.gate.outputs.dev_sha }}
75+
version_suffix: ${{ needs.gate.outputs.version_suffix }}
3776
npm_package_name: "@neuralnomads/codenomad-dev"
3877
dist_tag: latest
3978
prerelease: true

‎.github/workflows/manual-npm-publish.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ on:
1919
type: string
2020
workflow_call:
2121
inputs:
22+
ref:
23+
required: false
24+
default: ""
25+
type: string
2226
version:
2327
required: true
2428
type: string
@@ -46,6 +50,8 @@ jobs:
4650
steps:
4751
- name: Checkout
4852
uses: actions/checkout@v4
53+
with:
54+
ref: ${{ inputs.ref || github.ref }}
4955

5056
- name: Setup Node
5157
uses: actions/setup-node@v4

‎.github/workflows/release-ui.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
name: Release UI
22

33
on:
4-
workflow_call: {}
4+
workflow_call:
5+
inputs:
6+
ref:
7+
description: "Git ref (branch, tag, or SHA) to build from"
8+
required: false
9+
default: ""
10+
type: string
511
workflow_dispatch: {}
612

713
permissions:
@@ -18,6 +24,8 @@ jobs:
1824
steps:
1925
- name: Checkout
2026
uses: actions/checkout@v4
27+
with:
28+
ref: ${{ inputs.ref || github.ref }}
2129

2230
- name: Setup Node
2331
uses: actions/setup-node@v4

‎.github/workflows/reusable-release.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Reusable Release
33
on:
44
workflow_call:
55
inputs:
6+
ref:
7+
description: "Git ref (branch, tag, or SHA) to build from"
8+
required: false
9+
default: ""
10+
type: string
611
version_suffix:
712
description: "Suffix appended to package.json version"
813
required: false
@@ -46,6 +51,8 @@ jobs:
4651
steps:
4752
- name: Checkout
4853
uses: actions/checkout@v4
54+
with:
55+
ref: ${{ inputs.ref || github.ref }}
4956

5057
- name: Setup Node
5158
uses: actions/setup-node@v4
@@ -84,6 +91,7 @@ jobs:
8491
needs: prepare-release
8592
uses: ./.github/workflows/build-and-upload.yml
8693
with:
94+
ref: ${{ inputs.ref || github.ref }}
8795
version: ${{ needs.prepare-release.outputs.version }}
8896
tag: ${{ needs.prepare-release.outputs.tag }}
8997
release_name: ${{ needs.prepare-release.outputs.release_name }}
@@ -95,6 +103,8 @@ jobs:
95103
permissions:
96104
contents: read
97105
uses: ./.github/workflows/release-ui.yml
106+
with:
107+
ref: ${{ inputs.ref || github.ref }}
98108
secrets: inherit
99109

100110
publish-server:
@@ -103,6 +113,7 @@ jobs:
103113
- build-and-upload
104114
uses: ./.github/workflows/manual-npm-publish.yml
105115
with:
116+
ref: ${{ inputs.ref || github.ref }}
106117
version: ${{ needs.prepare-release.outputs.version }}
107118
dist_tag: ${{ inputs.dist_tag }}
108119
package_name: ${{ inputs.npm_package_name }}

‎README.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,6 @@ To build the Desktop App from source:
123123
1. Clone the repo.
124124
2. Run `npm install` (requires pnpm or npm 7+ for workspaces).
125125
3. Run `npm run build --workspace @neuralnomads/codenomad-electron-app`.
126+
127+
[![Star History Chart](https://api.star-history.com/svg?repos=NeuralNomadsAI/CodeNomad&type=Date)](https://star-history.com/#NeuralNomadsAI/CodeNomad&Date)
128+

‎package-lock.json‎

Lines changed: 12 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codenomad-workspace",
3-
"version": "0.11.1",
3+
"version": "0.11.4",
44
"private": true,
55
"description": "CodeNomad monorepo workspace",
66
"license": "MIT",

‎packages/electron-app/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@neuralnomads/codenomad-electron-app",
3-
"version": "0.11.1",
3+
"version": "0.11.4",
44
"description": "CodeNomad - AI coding assistant",
55
"license": "MIT",
66
"author": {

‎packages/opencode-config/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"private": true,
55
"license": "MIT",
66
"dependencies": {
7-
"@opencode-ai/plugin": "1.2.4"
7+
"@opencode-ai/plugin": "1.2.10"
88
}
9-
}
9+
}

0 commit comments

Comments
 (0)