diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..ebf08016 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,15 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[Makefile] +indent_style = tab diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..9d90e0a3 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,12 @@ +* text=auto eol=lf + +*.avif binary +*.gif binary +*.ico binary +*.jpg binary +*.jpeg binary +*.png binary +*.webp binary + +*.woff binary +*.woff2 binary diff --git a/.github/workflows/clawhub-cli-npm-release.yml b/.github/workflows/clawhub-cli-npm-release.yml index 7705df19..79253401 100644 --- a/.github/workflows/clawhub-cli-npm-release.yml +++ b/.github/workflows/clawhub-cli-npm-release.yml @@ -233,6 +233,7 @@ jobs: run: | set -euo pipefail RUN_JSON="$(gh run view "$PREFLIGHT_RUN_ID" --repo "$GITHUB_REPOSITORY" --json workflowName,headBranch,event,conclusion,url)" + # shellcheck disable=SC2016 printf '%s' "$RUN_JSON" | node --input-type=module -e 'const chunks=[]; process.stdin.on("data", (chunk) => chunks.push(chunk)); process.stdin.on("end", () => { const run = JSON.parse(Buffer.concat(chunks).toString("utf8")); const checks = [["workflowName", "ClawHub CLI NPM Release"], ["headBranch", "main"], ["event", "workflow_dispatch"], ["conclusion", "success"]]; for (const [key, expected] of checks) { if (run[key] !== expected) { console.error(`Referenced npm preflight run ${process.env.PREFLIGHT_RUN_ID} must have ${key}=${expected}, got ${run[key] ?? ""}.`); process.exit(1); } } console.log(`Using npm preflight run ${process.env.PREFLIGHT_RUN_ID}: ${run.url}`); });' - name: Download prepared npm tarball diff --git a/.github/workflows/update-convex-ai-files.yml b/.github/workflows/update-convex-ai-files.yml index e022bf17..88bbdca1 100644 --- a/.github/workflows/update-convex-ai-files.yml +++ b/.github/workflows/update-convex-ai-files.yml @@ -85,6 +85,7 @@ jobs: printf '\n' printf '%s\n' '## Validation' printf '\n' + # shellcheck disable=SC2016 printf '%s\n' '- `$(bun pm bin)/convex ai-files status`' } > "$body_file"