feat(image): add image delete batch delete command (#198)#17
Merged
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
为 issue #198 同步 CLI:新增
listenhub image delete <id...>,对接已发布的 SDK0.0.13的deleteAIImages(图片批量删除)。改动
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 被跳过);CLI0.0.10→0.0.11。pnpm-lock.yaml已刷新到0.0.13。image delete。creation delete透传deleteCreations,SDK 0.0.13 起其语义覆盖 AI 视频,CLI 无需新命令。验证(针对已发布 SDK 0.0.13)
tsc --noEmit0 errorspnpm check(lint + fmt + types)passpnpm build通过,image delete已打进dist/cli.mjspnpm test29/29发布链:api
/v1/images(已上线)→ SDK0.0.13(已发 npm)→ CLI0.0.11(本 PR,门禁已解除,可合并 + 发版)。Part of marswaveai/listenhub-ralph#198