agentsclimarketplace

Oneworks cli print mode

Skill oneworks-ai/app/packages/plugins/cli-skills/skills/oneworks-cli-print-mode

One Works application monorepo for AI agents, plugins, desktop, web, CLI, and Relay.

Install
npx -y skills add oneworks-ai/app --skill oneworks-cli-print-mode

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 12 stars12 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.

What its author says it does

Copied from the file, not written here

说明 One Works CLI 的 print 模式、stdin 控制、权限确认和恢复会话方式。

SKILL.md

1.7 KB, 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_once
    • allow_session
    • allow_project
    • deny_once
    • deny_session
    • deny_project

排查顺序

  1. 先执行 oneworks list --view full 找到 session id。
  2. 再用 oneworks --resume <sessionId>oneworks --resume <sessionId> --print --input-format stream-json 继续。
  3. 如果只是想停掉卡住的会话,用 oneworks stop <sessionId>oneworks kill <sessionId>

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.