Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github-openclaw-intelligence/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ The validation workflow runs these credential-free checks on pushes to `main` an
pull requests, including in the template repository where agent execution is
intentionally disabled. Live model responses still require a configured provider.

Preflight validates the constraints in `config/settings.schema.json` without
installed dependencies. Optional settings may be omitted, but explicit `null`
values and unknown fields inside `trustPolicy`, `limits`, or `compaction` are
rejected. Add preflight regression cases when changing these constraints.

---

## Style and Conventions
Expand Down
6 changes: 6 additions & 0 deletions .github-openclaw-intelligence/PACKAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
to reproduce it. The `ws` override uses 8.21.3 because `@buape/carbon@0.16.0`
pins a vulnerable 8.20.0 release; remove the override once upstream uses a patched version.

OpenClaw 2026.9.5 also pins affected versions of `@modelcontextprotocol/sdk`,
`minimatch`, `undici`, and `zod`. Targeted overrides use 1.32.0, 11.0.1, 8.12.2,
and 4.6.6 respectively. Remove these overrides once upstream pins patched
versions. The minimatch override crosses a major version; preserve coverage of
the glob APIs used by OpenClaw when updating it.

### OpenClaw Feature Surface

Beyond the CLI binary, OCI uses the following OpenClaw feature categories:
Expand Down
32 changes: 19 additions & 13 deletions .github-openclaw-intelligence/bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import { expect, test } from "bun:test";
import { execFileSync } from "child_process";
import { resolve } from "path";

test("minimatch override preserves the glob APIs used by OpenClaw", () => {
const output = execFileSync("node", [
"--input-type=module",
"--eval",
`
import assert from "node:assert/strict";
import { createRequire } from "node:module";
const require = createRequire(process.argv[1]);
const { minimatch, Minimatch, escape } = require("minimatch");

assert.equal(minimatch(".config/model.json", "**/*.json", { dot: true }), true);
assert.equal(minimatch("openai/GPT-5.5", "openai/gpt-*", { nocase: true }), true);
assert.equal(minimatch("anthropic/claude", "openai/*"), false);
assert.deepEqual(minimatch.match(["a.ts", "b.js", "c.md"], "*.{ts,js}"), ["a.ts", "b.js"]);

const matcher = new Minimatch("docs/**/*.md", {
nocomment: true, nonegate: true, windowsPathsNoEscape: true,
});
assert.equal(matcher.match("docs/nested/guide.md"), true);
assert.equal(matcher.match("src/guide.md"), false);
assert.equal(minimatch("config[1].env", escape("config[1].env")), true);
assert.equal(minimatch("config1.env", escape("config[1].env")), false);

const [parts] = new Minimatch("/etc/openclaw/*.env", {
nobrace: true, noext: true, noglobstar: true,
platform: "linux", optimizationLevel: 0,
}).set;
assert.deepEqual(parts.slice(0, 3), ["", "etc", "openclaw"]);
assert.equal(parts[3].test("agent.env"), true);
assert.equal(parts[3].test("agent.txt"), false);
console.log("compatible");
`,
resolve(import.meta.dir, "../node_modules/openclaw/package.json"),
], { encoding: "utf8", timeout: 30_000 });

expect(output.trim()).toBe("compatible");
});
Loading
Loading