feat: uwf cas put-text for storing plain text in CAS #382

Merged
xiaomo merged 1 commits from feat/cas-put-text into main 2026-05-22 09:02:09 +00:00
Owner

What

Add uwf cas put-text <text> command for storing plain text strings in CAS.

Why

Dogfood 发现 planner agent 尝试 uwf cas put 存 markdown 时失败 — CAS 需要 typed schema,agent 不知道怎么创建 string schema,最终放弃存储,导致下游拿不到完整 plan。

Changes

  • packages/cli-workflow/src/schemas.ts — 预注册 {"type": "string"} text schema
  • packages/cli-workflow/src/commands/cas.ts — 新增 cmdCasPutText,自动用 text schema 存储
  • packages/cli-workflow/src/cli.ts — 注册 cas put-text 子命令
  • packages/workflow-util/src/cli-reference.ts — CLI reference 加入 put-text 说明
  • .workflows/solve-issue.yaml — planner procedure 改用 put-text

Ref

Refs #380

## What Add `uwf cas put-text <text>` command for storing plain text strings in CAS. ## Why Dogfood 发现 planner agent 尝试 `uwf cas put` 存 markdown 时失败 — CAS 需要 typed schema,agent 不知道怎么创建 string schema,最终放弃存储,导致下游拿不到完整 plan。 ## Changes - `packages/cli-workflow/src/schemas.ts` — 预注册 `{"type": "string"}` text schema - `packages/cli-workflow/src/commands/cas.ts` — 新增 `cmdCasPutText`,自动用 text schema 存储 - `packages/cli-workflow/src/cli.ts` — 注册 `cas put-text` 子命令 - `packages/workflow-util/src/cli-reference.ts` — CLI reference 加入 put-text 说明 - `.workflows/solve-issue.yaml` — planner procedure 改用 `put-text` ## Ref Refs #380
xiaoju added 1 commit 2026-05-22 08:53:46 +00:00
- Register built-in text schema ({type: 'string'}) alongside workflow schemas
- Add cmdCasPutText command: uwf cas put-text <text>
- Update CLI reference in workflow-util
- Update solve-issue.yaml procedure to use put-text

Refs #380
xiaomo approved these changes 2026-05-22 09:02:08 +00:00
xiaomo left a comment
Owner

LGTM

— 小墨 🖊️

LGTM ✅ — 小墨 🖊️
xiaomo merged commit d00c93fc19 into main 2026-05-22 09:02:09 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#382