Skip to content

Commit 4e42333

Browse files
Merge origin/main into fix/memory-persistence-receipts
2 parents bcc6f21 + 99bf0b1 commit 4e42333

310 files changed

Lines changed: 9898 additions & 6860 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/deslop/SKILL.md‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: deslop
3+
description: "Diff-scoped AI-slop cleanup pass: strip comment slop, defensive-check slop, type-laundering, and style drift from the current branch diff before autoreview."
4+
---
5+
6+
# Deslop
7+
8+
Clean only the current branch diff before review. Preserve behavior absolutely.
9+
10+
## Checklist
11+
12+
1. Scope the pass to `git diff` against `origin/main`, or the branch merge base when it differs. Never run a repo-wide cleanup.
13+
2. Inspect every changed hunk for:
14+
- comments a human maintainer would not write, including narration, syntax explanation, and prose that merely restates the code;
15+
- defensive checks or `try`/`catch` blocks that are abnormal for the surrounding module or protect only imagined states;
16+
- casts that launder types, especially `as any`, `as unknown as T`, and widen-then-assert flows. Oxlint already rejects the latter two patterns in governed code;
17+
- redundant intermediate variables or one-use helpers that do not add domain meaning, reduce duplication, or simplify control flow;
18+
- compatibility shims, aliases, retries, and fallback branches without a named shipped contract and removal plan;
19+
- naming, control flow, imports, formatting, and other style that conflicts with the surrounding file.
20+
3. Make no functional edits. If cleanup could change behavior, leave it alone and report it instead.
21+
4. Fix a finding inline only when the cleanup is trivial and behavior-neutral. Otherwise note it for the author.
22+
5. Report the result in 1–3 sentences, including whether anything changed and any non-trivial item left for review.
23+
24+
Run `$deslop` before `$autoreview`, never instead of it. Autoreview remains the required correctness and safety review gate.

‎.github/workflows/crabbox-hydrate.yml‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ jobs:
8686
echo "PNPM_HOME=$PNPM_HOME"
8787
echo "PNPM_CONFIG_STORE_DIR=$PNPM_CONFIG_STORE_DIR"
8888
echo "PNPM_CONFIG_MODULES_DIR=$PNPM_CONFIG_MODULES_DIR"
89+
echo "CRABBOX_PNPM_MODULES_DIR=$PNPM_CONFIG_MODULES_DIR"
8990
echo "PNPM_CONFIG_PACKAGE_IMPORT_METHOD=${PNPM_CONFIG_PACKAGE_IMPORT_METHOD:-}"
9091
echo "PNPM_CONFIG_VIRTUAL_STORE_DIR=$PNPM_CONFIG_VIRTUAL_STORE_DIR"
9192
} >> "$GITHUB_ENV"
@@ -388,7 +389,9 @@ jobs:
388389
fi
389390
}
390391
{
391-
for key in CI GITHUB_ACTIONS GITHUB_WORKSPACE GITHUB_REPOSITORY GITHUB_RUN_ID GITHUB_RUN_NUMBER GITHUB_RUN_ATTEMPT GITHUB_REF GITHUB_REF_NAME GITHUB_SHA GITHUB_EVENT_NAME GITHUB_ACTOR RUNNER_OS RUNNER_ARCH RUNNER_TEMP RUNNER_TOOL_CACHE XDG_CACHE_HOME COREPACK_HOME NODE_BIN OPENCLAW_CRABBOX_DOCKER_AVAILABLE PNPM_HOME PNPM_CONFIG_CHILD_CONCURRENCY PNPM_CONFIG_MODULES_DIR PNPM_CONFIG_NETWORK_CONCURRENCY PNPM_CONFIG_PACKAGE_IMPORT_METHOD PNPM_CONFIG_STORE_DIR PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN PNPM_CONFIG_VIRTUAL_STORE_DIR PATH; do
392+
# Keep workspace paths out of PNPM_CONFIG_* in the reusable shell. pnpm dlx owns a
393+
# separate project and would otherwise overwrite this workspace's current lockfile.
394+
for key in CI GITHUB_ACTIONS GITHUB_WORKSPACE GITHUB_REPOSITORY GITHUB_RUN_ID GITHUB_RUN_NUMBER GITHUB_RUN_ATTEMPT GITHUB_REF GITHUB_REF_NAME GITHUB_SHA GITHUB_EVENT_NAME GITHUB_ACTOR RUNNER_OS RUNNER_ARCH RUNNER_TEMP RUNNER_TOOL_CACHE XDG_CACHE_HOME COREPACK_HOME NODE_BIN OPENCLAW_CRABBOX_DOCKER_AVAILABLE CRABBOX_PNPM_MODULES_DIR PNPM_HOME PNPM_CONFIG_CHILD_CONCURRENCY PNPM_CONFIG_NETWORK_CONCURRENCY PNPM_CONFIG_PACKAGE_IMPORT_METHOD PNPM_CONFIG_STORE_DIR PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN PATH; do
392395
write_export "$key"
393396
done
394397
} > "${env_file}.tmp"
@@ -514,6 +517,7 @@ jobs:
514517
"PNPM_HOME=$env:PNPM_HOME"
515518
"PNPM_CONFIG_STORE_DIR=$env:PNPM_CONFIG_STORE_DIR"
516519
"PNPM_CONFIG_MODULES_DIR=$env:PNPM_CONFIG_MODULES_DIR"
520+
"CRABBOX_PNPM_MODULES_DIR=$env:PNPM_CONFIG_MODULES_DIR"
517521
"PNPM_CONFIG_VIRTUAL_STORE_DIR=$env:PNPM_CONFIG_VIRTUAL_STORE_DIR"
518522
"PNPM_CONFIG_CHILD_CONCURRENCY=$env:PNPM_CONFIG_CHILD_CONCURRENCY"
519523
"PNPM_CONFIG_NETWORK_CONCURRENCY=$env:PNPM_CONFIG_NETWORK_CONCURRENCY"
@@ -614,10 +618,9 @@ jobs:
614618
"GITHUB_REF", "GITHUB_REF_NAME", "GITHUB_SHA", "GITHUB_EVENT_NAME",
615619
"GITHUB_ACTOR", "RUNNER_OS", "RUNNER_ARCH", "RUNNER_TEMP",
616620
"RUNNER_TOOL_CACHE", "XDG_CACHE_HOME", "COREPACK_HOME", "NODE_BIN",
617-
"PNPM_HOME", "PNPM_CONFIG_CHILD_CONCURRENCY", "PNPM_CONFIG_MODULES_DIR",
621+
"PNPM_HOME", "CRABBOX_PNPM_MODULES_DIR", "PNPM_CONFIG_CHILD_CONCURRENCY",
618622
"PNPM_CONFIG_NETWORK_CONCURRENCY", "PNPM_CONFIG_STORE_DIR",
619-
"PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN", "PNPM_CONFIG_VIRTUAL_STORE_DIR",
620-
"PNPM_CONFIG_SIDE_EFFECTS_CACHE", "PATH"
623+
"PNPM_CONFIG_VERIFY_DEPS_BEFORE_RUN", "PNPM_CONFIG_SIDE_EFFECTS_CACHE", "PATH"
621624
)
622625
$envLines = foreach ($key in $keys) {
623626
$value = [Environment]::GetEnvironmentVariable($key)

0 commit comments

Comments
 (0)