惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
爱范儿
爱范儿
MongoDB | Blog
MongoDB | Blog
腾讯CDC
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
Engineering at Meta
Engineering at Meta
C
Check Point Blog
N
Netflix TechBlog - Medium
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LangChain Blog
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
WordPress大学
WordPress大学
博客园 - 司徒正美

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(exec): gate versioned inline interpreters (#96216) · ...
eleqtrizit · 2026-06-25 · via Recent Commits to openclaw:main

@@ -18,8 +18,14 @@ function expectInlineEvalDescription(hit: InterpreterInlineEvalHit | null, expec

1818

describe("exec inline eval detection", () => {

1919

it.each([

2020

{ argv: ["python3", "-c", "print('hi')"], expected: "python3 -c" },

21+

{ argv: ["python3.13", "-c", "print('hi')"], expected: "python3.13 -c" },

22+

{ argv: ["/usr/bin/pypy3.10", "-c", "print('hi')"], expected: "pypy3.10 -c" },

2123

{ argv: ["/usr/bin/node", "--eval", "console.log('hi')"], expected: "node --eval" },

2224

{ argv: ["perl", "-E", "say 1"], expected: "perl -e" },

25+

{ argv: ["php", "-B", "system('id');"], expected: "php -B" },

26+

{ argv: ["php", "-E", "system('id');"], expected: "php -E" },

27+

{ argv: ["php", "-R", "system('id');"], expected: "php -R" },

28+

{ argv: ["Rscript", "-e", "system('id')"], expected: "rscript -e" },

2329

{ argv: ["osascript", "-e", "beep"], expected: "osascript -e" },

2430

{ argv: ["awk", "BEGIN { print 1 }"], expected: "awk inline program" },

2531

{ argv: ["gawk", "-F", ",", "{print $1}", "data.csv"], expected: "gawk inline program" },

@@ -60,7 +66,11 @@ describe("exec inline eval detection", () => {

60666167

it("ignores normal script execution", () => {

6268

expect(detectInterpreterInlineEvalArgv(["python3", "script.py"])).toBeNull();

69+

expect(detectInterpreterInlineEvalArgv(["python3.13", "script.py"])).toBeNull();

6370

expect(detectInterpreterInlineEvalArgv(["node", "script.js"])).toBeNull();

71+

expect(detectInterpreterInlineEvalArgv(["php", "-F", "filter.php"])).toBeNull();

72+

expect(detectInterpreterInlineEvalArgv(["Rscript", "script.R"])).toBeNull();

73+

expect(detectInterpreterInlineEvalArgv(["r2", "-e", "bin.cache=true", "program"])).toBeNull();

6474

expect(detectInterpreterInlineEvalArgv(["awk", "-f", "script.awk", "data.csv"])).toBeNull();

6575

expect(detectInterpreterInlineEvalArgv(["find", ".", "-name", "*.ts"])).toBeNull();

6676

expect(detectInterpreterInlineEvalArgv(["xargs", "-0"])).toBeNull();

@@ -76,7 +86,12 @@ describe("exec inline eval detection", () => {

76867787

it("matches interpreter-like allowlist patterns", () => {

7888

expect(isInterpreterLikeAllowlistPattern("/usr/bin/python3")).toBe(true);

89+

expect(isInterpreterLikeAllowlistPattern("/usr/bin/python3.13")).toBe(true);

90+

expect(isInterpreterLikeAllowlistPattern("python3.*")).toBe(true);

91+

expect(isInterpreterLikeAllowlistPattern("pypy3.10")).toBe(true);

7992

expect(isInterpreterLikeAllowlistPattern("**/node")).toBe(true);

93+

expect(isInterpreterLikeAllowlistPattern("Rscript")).toBe(true);

94+

expect(isInterpreterLikeAllowlistPattern("r2")).toBe(false);

8095

expect(isInterpreterLikeAllowlistPattern("/usr/bin/awk")).toBe(true);

8196

expect(isInterpreterLikeAllowlistPattern("**/gawk")).toBe(true);

8297

expect(isInterpreterLikeAllowlistPattern("/usr/bin/mawk")).toBe(true);