Skip to content

Commit 8cdf037

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 9840bb7 + 27a2d2c commit 8cdf037

239 files changed

Lines changed: 18071 additions & 6082 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/prepare-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
type: string
1010

1111
permissions:
12+
actions: read
13+
checks: read
1214
contents: read
1315

1416
jobs:

.github/workflows/release-core.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ on:
1818
type: boolean
1919

2020
permissions:
21+
actions: read
22+
checks: read
2123
contents: write
2224

2325
jobs:
@@ -34,6 +36,36 @@ jobs:
3436
git fetch origin main:refs/remotes/origin/main
3537
git merge-base --is-ancestor HEAD refs/remotes/origin/main
3638
39+
- name: Ensure CI passed for release commit
40+
env:
41+
GH_TOKEN: ${{ github.token }}
42+
GH_REPO: ${{ github.repository }}
43+
TARGET_REF: ${{ inputs.target_ref }}
44+
run: |
45+
set -euo pipefail
46+
47+
ci_pass_json="$(
48+
gh api "repos/$GH_REPO/commits/$TARGET_REF/check-runs" \
49+
-f per_page=100 \
50+
--paginate \
51+
--jq '[.check_runs[] | select(.name == "ci-pass")] | sort_by(.completed_at // "") | last // empty'
52+
)"
53+
54+
if [ -z "$ci_pass_json" ] || [ "$ci_pass_json" = "null" ]; then
55+
echo "::error::No ci-pass check run was found for $TARGET_REF. Run CI before releasing."
56+
exit 1
57+
fi
58+
59+
status="$(printf '%s' "$ci_pass_json" | jq -r '.status // ""')"
60+
conclusion="$(printf '%s' "$ci_pass_json" | jq -r '.conclusion // ""')"
61+
url="$(printf '%s' "$ci_pass_json" | jq -r '.html_url // ""')"
62+
if [ "$status" != "completed" ] || [ "$conclusion" != "success" ]; then
63+
echo "::error::ci-pass for $TARGET_REF is $status/$conclusion. Release packaging requires green CI. $url"
64+
exit 1
65+
fi
66+
67+
echo "ci-pass succeeded for $TARGET_REF: $url"
68+
3769
build-mac-release:
3870
needs:
3971
- verify

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ on:
1616
type: string
1717

1818
permissions:
19+
actions: read
20+
checks: read
1921
contents: write
2022

2123
jobs:

apps/ade-cli/package-lock.json

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

apps/ade-cli/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,15 @@
3131
"@openai/codex": "0.130.0",
3232
"@opencode-ai/sdk": "^1.4.2",
3333
"@wize-logic/nodejs-rfb": "^4.2.0",
34+
"@xterm/addon-serialize": "^0.14.0",
35+
"@xterm/headless": "^6.0.0",
36+
"@xterm/xterm": "^6.0.0",
3437
"bonjour-service": "^1.3.0",
3538
"chokidar": "^4.0.3",
39+
"highlight.js": "^11.11.1",
3640
"ink": "^5.2.1",
3741
"ink-text-input": "^6.0.0",
42+
"marked": "^18.0.3",
3843
"node-cron": "^3.0.3",
3944
"node-pty": "^1.1.0",
4045
"react": "^18.3.1",

apps/ade-cli/pnpm-workspace.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
allowBuilds:
2+
esbuild: set this to true or false
3+
node-pty: set this to true or false
4+
sqlite3: set this to true or false

0 commit comments

Comments
 (0)