Skip to content

Commit 3c91334

Browse files
committed
adding a reference OpenAI Codex setup script, updating dfx to 0.29.1, regenerating templates, switching to AGENTS.md
1 parent 59d0a23 commit 3c91334

File tree

5 files changed

+33
-1
lines changed

5 files changed

+33
-1
lines changed

.codex/codex_setup.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env bash
2+
3+
# This script is just for reference, I have essentially copied it into the OpenAI Codex
4+
# Azle environment Setup script
5+
6+
echo "Installing dfx $DFX_VERSION"
7+
8+
DFX_VERSION="$(jq -r '.azle.globalDependencies.dfx // empty' package.json)"
9+
./src/stable/build/commands/dev/setup/install_dfx.sh "$DFX_VERSION"
10+
export PATH="$HOME/.local/share/dfx/bin:$PATH"
11+
12+
echo "npm install and link at the root of the azle repo"
13+
14+
npm install
15+
npm link
16+
17+
echo "Setting up azle dev environment"
18+
19+
npx azle dev setup --rust --cargo-auditable --cargo-bundle-licenses --wasi2ic
20+
21+
echo "Starting dfx in the background"
22+
23+
dfx start --clean --background --artificial-delay 0
24+
25+
echo "Running one basic test"
26+
27+
cd examples/stable/test/end_to_end/candid_rpc/async_await
28+
npm install
29+
npm link azle
30+
AZLE_VERBOSE=true AZLE_DEV_TEMPLATE=true npm test
31+
32+
echo "Setup completed successfully"
File renamed without changes.
7.25 KB
Binary file not shown.
1.83 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
},
8888
"azle": {
8989
"globalDependencies": {
90-
"dfx": "0.29.0",
90+
"dfx": "0.29.1",
9191
"node": "22.18.0",
9292
"rust": "1.89.0",
9393
"cargo-auditable": "0.7.0",

0 commit comments

Comments
 (0)