Oneworks cli print mode
Skill oneworks-ai/app/packages/plugins/cli-skills/skills/oneworks-cli-print-mode
说明 One Works CLI 的 print 模式、stdin 控制、权限确认和恢复会话方式。From its SKILL.md
npx -y skills add oneworks-ai/app --skill oneworks-cli-print-modeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
3 things to look at
- skips confirmationTells the agent to proceed without asking first, 2 times: "--permission-mode bypassPermissions" and 1 more.
- 15 stars15 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 5 commands, including `oneworks list --view full` and 4 more.
SKILL.md
1.7 KB, 517 tokens by cl100k_base, as published. Nobody here has run it
在需要解释 oneworks --print、--input-format、权限确认或继续会话时使用这个 skill。
Print 模式
oneworks --print "任务描述":把事件和最终输出直接打印到终端。--output-format text:默认文本模式,适合直接阅读。--output-format stream-json:逐条输出结构化事件,适合脚本消费。--output-format json:任务结束时输出 JSON。
stdin 控制
--input-format text:从 stdin 读取一行纯文本作为输入。--input-format json:从 stdin 读取一个 JSON 对象。--input-format stream-json:按行读取 JSON 事件,适合长连接控制。
权限与继续会话
- 当 print 模式遇到
interaction_request且没有可用 stdin 控制时,CLI 会打印请求并终止任务。 - 恢复时可用:
oneworks --resume <sessionId> --print --input-format stream-json - 如果只是想改下一次恢复的权限模式,可用:
oneworks --resume <sessionId> --permission-mode bypassPermissions - 等价短写:
oneworks --resume <sessionId> --yolo - 对权限请求提交输入的示例:
{ "type": "submit_input", "data": "allow_once" }
- 常见 decision:
allow_onceallow_sessionallow_projectdeny_oncedeny_sessiondeny_project
排查顺序
- 先执行
oneworks list --view full找到 session id。 - 再用
oneworks --resume <sessionId>或oneworks --resume <sessionId> --print --input-format stream-json继续。 - 如果只是想停掉卡住的会话,用
oneworks stop <sessionId>或oneworks kill <sessionId>。
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.