QuickRouter · 人工操作教材 · 非目标产品 UI / 非模型会话日志
Gemini CLI 写 README · 配置与操作材料
Gemini 原生工具:glob → read_file → grep_search。下面为真实源码映射教材,不是假造 Gemini 工具日志。
command-source-map.json
[
{
"instruction": "Node >=24",
"file": "package.json",
"field": "engines.node"
},
{
"instruction": "npm start",
"file": "package.json",
"field": "scripts.start"
},
{
"instruction": "PORT optional, default 4377",
"file": "server.mjs",
"line": 2
},
{
"instruction": "GREETING optional, default Hello fixture",
"file": "server.mjs",
"line": 3
},
{
"instruction": ".env must exist because --env-file=.env",
"file": "package.json",
"field": "scripts.start"
}
]
README.fixed.md
# Local greeting service
Requires Node >=24; no dependencies to install.
Copy env-example.txt to .env (fictional values only), then npm start.
Open http://127.0.0.1:4377/ to read JSON. Stop with Ctrl+C.
PORT and GREETING are optional in server.mjs, but .env itself must exist for --env-file.
If the port is busy, change PORT. There is no npm run dev and no database or API key.
Run npm run check to compare the command map to source.