Grok CLI through AutoClaw 国内 got four 406s in a row on 11-08. Its system prompt opens "You are Grok released by xAI. You are an interactive CLI tool ...", and FLAGGED had no rule for it, so the line went out as written. Grok CLI writes that line in two shapes. Its own system_prompt.txt files (grok 1.0.67, in ~/.grok/sessions on this Mac) show "You are Grok released by xAI." for a model it doesn't know, and "You are Grok 4.7 released by xAI." for one it does, in the interactive and autonomous variants alike. The reporter's suggested regex matched only the first. The new rule takes both: "You are the Grok[ 4.7] assistant released by xAI". It touches only the "released by xAI" sentence, so "You are Grok-Mini." or "You are Grok, a helpful assistant." are not changed. REFUSED_HINT now names Grok CLI. Run (on mote): bun test packages/autoclaw gives 104 pass, 0 fail. The new tests use the reporter's line byte for byte, plus the versioned and autonomous lines from Grok CLI's own files. Broken by hand: with origin/main's index.mjs and the new tests, 3 fail: the Grok rewrite test, the all-lines table and the CN loader test. Not tried: a real AutoClaw 国内 request. There's no account here, so nobody has checked that the rewritten line passes the gateway. The same pattern has passed for ZCode and Codex. Reported-by: hj01857655
38 lines
1.1 KiB
JSON
38 lines
1.1 KiB
JSON
{
|
|
"name": "@magpie-community/opencode-autoclaw-auth",
|
|
"version": "0.2.19",
|
|
"description": "OpenCode provider plugin for AutoClaw (Zhipu OpenClaw): oversea web sign-in (Google/z.ai) and CN phone SMS, multi-account pool, credit balance and daily check-in",
|
|
"type": "module",
|
|
"main": "./opencode.mjs",
|
|
"exports": { ".": "./opencode2.mjs" },
|
|
"files": [
|
|
"index.mjs",
|
|
"opencode.mjs",
|
|
"opencode2.mjs",
|
|
"README.md",
|
|
"README.en.md"
|
|
],
|
|
"keywords": [
|
|
"opencode",
|
|
"opencode-plugin",
|
|
"magpie",
|
|
"autoclaw",
|
|
"zhipu",
|
|
"glm"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/autoclaw"
|
|
},
|
|
"magpie": {
|
|
"icon": "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='30' fill='%234f6ef7'/%3E%3Ctext x='32' y='42' font-size='28' text-anchor='middle' fill='white' font-family='sans-serif'%3E%E8%9F%B9%3C/text%3E%3C/svg%3E",
|
|
"options": {
|
|
"signin": true,
|
|
"signinHour": null,
|
|
"signinOnUsage": false
|
|
}
|
|
}
|
|
}
|