Skip to content

feat(image): add image delete batch delete command (#198)#17

Merged
0xFANGO merged 2 commits into
mainfrom
ralph/listenhub-cli--198
Jun 9, 2026
Merged

feat(image): add image delete batch delete command (#198)#17
0xFANGO merged 2 commits into
mainfrom
ralph/listenhub-cli--198

Conversation

@0xFANGO

@0xFANGO 0xFANGO commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

为 issue #198 同步 CLI:新增 listenhub image delete <id...>,对接已发布的 SDK 0.0.13deleteAIImages(图片批量删除)。

改动

  • source/image/image.ts:新增 deleteImages(client, ids, json)client.deleteAIImages({ ids })(镜像 creation delete)。
  • source/image/_cli.ts:注册 image delete <id...> 子命令(-j/--json)。
  • package.json@marswave/listenhub-sdk ^0.0.11^0.0.13(已发布,含 deleteAIImages;0.0.12 被跳过);CLI 0.0.100.0.11pnpm-lock.yaml 已刷新到 0.0.13
  • README(en + zh)命令表新增 image delete
  • 视频删除:creation delete 透传 deleteCreations,SDK 0.0.13 起其语义覆盖 AI 视频,CLI 无需新命令。

验证(针对已发布 SDK 0.0.13)

  • tsc --noEmit 0 errors
  • pnpm check(lint + fmt + types)pass
  • pnpm build 通过,image delete 已打进 dist/cli.mjs
  • pnpm test 29/29

发布链:api /v1/images(已上线)→ SDK 0.0.13(已发 npm)→ CLI 0.0.11(本 PR,门禁已解除,可合并 + 发版)

Part of marswaveai/listenhub-ralph#198

0xFANGO added 2 commits June 10, 2026 01:32
- New `listenhub image delete <id...>` -> client.deleteAIImages({ ids }) (mirrors
  `creation delete`); covers the SDK 0.0.12 image batch-delete feature.
- Bump @marswave/listenhub-sdk ^0.0.11 -> ^0.0.12 (deleteAIImages requires it).
- Bump CLI 0.0.10 -> 0.0.11. README (en + zh) command tables updated.

GATED on @marswave/listenhub-sdk@0.0.12 being published to npm. After publish, run
`pnpm install` to refresh pnpm-lock.yaml, then release CLI 0.0.11.

Part of marswaveai/listenhub-ralph#198
…fresh lockfile (#198)

SDK 0.0.13 is live on npm (contains deleteAIImages; 0.0.12 was skipped). Lockfile now
resolves the real package — gate lifted, `image delete` builds against published SDK.
Verified: tsc --noEmit 0, check (lint+fmt+types) 0, build ok, test 29/29.

Part of marswaveai/listenhub-ralph#198
@0xFANGO
0xFANGO merged commit 3d9abbc into main Jun 9, 2026
1 check passed
@0xFANGO
0xFANGO deleted the ralph/listenhub-cli--198 branch June 9, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant