Skip to content

Commit 694ca50

Browse files
committed
Revert "refactor: move runtime state to SQLite"
This reverts commit f91de52.
1 parent 3de5979 commit 694ca50

3,085 files changed

Lines changed: 106212 additions & 115045 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.

.agents/skills/crabbox/SKILL.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,7 @@ Live-provider debug template for direct AWS/Hetzner leases:
188188

189189
```sh
190190
mkdir -p .crabbox/logs
191-
CRABBOX_ENV_ALLOW=OPENAI_API_KEY,OPENAI_BASE_URL \
192-
pnpm crabbox:run -- --provider aws \
191+
pnpm crabbox:run -- --provider aws \
193192
--preflight \
194193
--allow-env OPENAI_API_KEY,OPENAI_BASE_URL \
195194
--timing-json \
@@ -201,8 +200,9 @@ CRABBOX_ENV_ALLOW=OPENAI_API_KEY,OPENAI_BASE_URL \
201200
```
202201

203202
Do not pass `--capture-*`, `--download`, `--checksum`, `--force-sync-large`, or
204-
`--sync-only` to delegated providers. Crabbox rejects them because the provider
205-
owns sync or command transport.
203+
`--sync-only` to delegated providers. Also do not pass `--script*` or
204+
`--fresh-pr` there. Crabbox rejects these because the provider owns sync or
205+
command transport.
206206

207207
## Efficient Bug E2E Verification
208208

.agents/skills/kysely-database-access/SKILL.md

Lines changed: 0 additions & 202 deletions
This file was deleted.

.github/instructions/copilot.instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## Tech Stack
66

7-
- **Runtime**: Node 24+ (Bun also supported for dev/scripts)
7+
- **Runtime**: Node 22+ (Bun also supported for dev/scripts)
88
- **Language**: TypeScript (ESM, strict mode)
99
- **Package Manager**: pnpm (keep `pnpm-lock.yaml` in sync)
1010
- **Lint/Format**: Oxlint, Oxfmt (`pnpm check`)

.github/workflows/ci.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,6 +1053,83 @@ jobs:
10531053
;;
10541054
esac
10551055
1056+
checks-node-compat:
1057+
permissions:
1058+
contents: read
1059+
name: checks-node-compat-node22
1060+
needs: [preflight]
1061+
if: needs.preflight.outputs.run_build_artifacts == 'true' && github.event_name == 'workflow_dispatch'
1062+
runs-on: ${{ github.repository == 'openclaw/openclaw' && 'blacksmith-4vcpu-ubuntu-2404' || 'ubuntu-24.04' }}
1063+
timeout-minutes: 60
1064+
steps:
1065+
- name: Checkout
1066+
shell: bash
1067+
env:
1068+
CHECKOUT_REPO: ${{ github.repository }}
1069+
CHECKOUT_SHA: ${{ needs.preflight.outputs.checkout_revision }}
1070+
CHECKOUT_TOKEN: ${{ github.token }}
1071+
run: |
1072+
set -euo pipefail
1073+
1074+
workdir="$GITHUB_WORKSPACE"
1075+
auth_header="$(printf 'x-access-token:%s' "$CHECKOUT_TOKEN" | base64 | tr -d '\n')"
1076+
1077+
reset_checkout_dir() {
1078+
mkdir -p "$workdir"
1079+
find "$workdir" -mindepth 1 -maxdepth 1 -exec rm -rf {} +
1080+
}
1081+
1082+
checkout_attempt() {
1083+
local attempt="$1"
1084+
1085+
reset_checkout_dir
1086+
git init "$workdir" >/dev/null
1087+
git config --global --add safe.directory "$workdir"
1088+
git -C "$workdir" remote add origin "https://github.com/${CHECKOUT_REPO}"
1089+
git -C "$workdir" config gc.auto 0
1090+
1091+
timeout --signal=TERM 30s git -C "$workdir" \
1092+
-c protocol.version=2 \
1093+
-c "http.https://github.com/.extraheader=AUTHORIZATION: basic ${auth_header}" \
1094+
fetch --no-tags --prune --no-recurse-submodules --depth=1 origin \
1095+
"+${CHECKOUT_SHA}:refs/remotes/origin/ci-target" || return 1
1096+
1097+
git -C "$workdir" checkout --force --detach "$CHECKOUT_SHA" || return 1
1098+
test -f "$workdir/.github/actions/setup-node-env/action.yml" || return 1
1099+
echo "checkout attempt ${attempt}/5 succeeded"
1100+
}
1101+
1102+
for attempt in 1 2 3 4 5; do
1103+
if checkout_attempt "$attempt"; then
1104+
exit 0
1105+
fi
1106+
echo "checkout attempt ${attempt}/5 failed"
1107+
sleep $((attempt * 5))
1108+
done
1109+
1110+
echo "checkout failed after 5 attempts" >&2
1111+
exit 1
1112+
1113+
- name: Setup Node environment
1114+
uses: ./.github/actions/setup-node-env
1115+
with:
1116+
node-version: "22.18.0"
1117+
cache-key-suffix: "node22-pnpm11"
1118+
install-bun: "false"
1119+
1120+
- name: Configure Node test resources
1121+
run: echo "OPENCLAW_VITEST_MAX_WORKERS=2" >> "$GITHUB_ENV"
1122+
1123+
- name: Run Node 22 compatibility
1124+
env:
1125+
NODE_OPTIONS: --max-old-space-size=8192
1126+
run: |
1127+
pnpm build
1128+
pnpm ui:build
1129+
node openclaw.mjs --help
1130+
node openclaw.mjs status --json --timeout 1
1131+
pnpm test:build:singleton
1132+
10561133
checks-node-core-test-nondist-shard:
10571134
permissions:
10581135
contents: read

.github/workflows/docs-sync-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Setup Node
3535
uses: actions/setup-node@v6
3636
with:
37-
node-version: "24.x"
37+
node-version: "22.18.0"
3838

3939
- name: Clone publish repo
4040
env:

.gitignore

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ apps/ios/.swiftpm/
5757
apps/ios/.derivedData/
5858
apps/ios/.local-signing.xcconfig
5959
vendor/
60-
!src/auto-reply/reply/export-html/vendor/
61-
!src/auto-reply/reply/export-html/vendor/**
6260
apps/ios/Clawdbot.xcodeproj/
6361
apps/ios/Clawdbot.xcodeproj/**
6462
apps/macos/.build/**
@@ -101,13 +99,9 @@ USER.md
10199
# though the bare names match the local-untracked rule above.
102100
!extensions/oc-path/src/oc-path/tests/fixtures/real/IDENTITY.md
103101
!extensions/oc-path/src/oc-path/tests/fixtures/real/USER.md
104-
!docs/reference/templates/IDENTITY.md
105-
!docs/reference/templates/USER.md
106102
*.tgz
107103
*.tar.gz
108104
*.zip
109-
!test/fixtures/plugins-install/*.tgz
110-
!test/fixtures/plugins-install/*.zip
111105
.idea
112106
.vscode/
113107

@@ -126,6 +120,8 @@ USER.md
126120
!.agents/skills/gitcrawl/
127121
!.agents/skills/gitcrawl/**
128122
!.agents/skills/openclaw-docs/**
123+
!.agents/skills/openclaw-refactor-docs/
124+
!.agents/skills/openclaw-refactor-docs/**
129125
!.agents/skills/openclaw-debugging/
130126
!.agents/skills/openclaw-debugging/**
131127
!.agents/skills/openclaw-ghsa-maintainer/

AGENTS.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,6 @@ Skills own workflows; root owns hard policy and routing.
9292
- No `@ts-nocheck`. Lint suppressions only intentional + explained.
9393
- External boundaries: prefer `zod` or existing schema helpers.
9494
- Runtime branching: discriminated unions/closed codes over freeform strings. Avoid semantic sentinels (`?? 0`, empty object/string).
95-
- Storage adapters: quarantine schema/nullability mess at the boundary. Use one named mapper from domain object to DB row, one mapper from DB row to domain object, and keep read/write paths boring.
96-
- Discriminated unions: use exhaustive `switch` mappers instead of repeated inline conditionals. If insert/update share shape, build the row once and reuse it; split primary keys once for update sets.
97-
- Kysely rows: prefer generated `Insertable`/`Selectable` types for mapper contracts. Do not duplicate nullable-column logic inside `values(...)` and `doUpdateSet(...)`.
9895
- Dynamic import: no static+dynamic import for same prod module. Use `*.runtime.ts` lazy boundary. After edits: `pnpm build`; check `[INEFFECTIVE_DYNAMIC_IMPORT]`.
9996
- Cycles: keep `pnpm check:import-cycles` + architecture/madge green.
10097
- Classes: no prototype mixins/mutations. Prefer inheritance/composition. Tests prefer per-instance stubs.

0 commit comments

Comments
 (0)