feat: add note mode and workflow config

This commit is contained in:
shiyue
2026-06-12 16:39:44 +08:00
parent 5308a10b52
commit 8b2173be8f
93 changed files with 15292 additions and 50 deletions

View File

@@ -14,6 +14,10 @@ function readStdin() {
});
}
function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
(async function main() {
const args = process.argv.slice(2);
// cc-web can place `resume` after other `codex exec` options (e.g. --json, -s).
@@ -83,6 +87,10 @@ function readStdin() {
process.exit(1);
}
if (input === 'slow cross-session prompt') {
await sleep(800);
}
const responseText = input === '/compact'
? 'Codex compact finished.'
: isInitPrompt