Skip to content

+ feat: support image embedding via ![alt](path) in story/bug create#12

Open
chendx-github wants to merge 1 commit into
easysoft:mainfrom
chendx-github:feat/image-embedding
Open

+ feat: support image embedding via ![alt](path) in story/bug create#12
chendx-github wants to merge 1 commit into
easysoft:mainfrom
chendx-github:feat/image-embedding

Conversation

@chendx-github

Copy link
Copy Markdown

Changes

  • Add src/utils/images.ts: parse ![alt](path) markers, resolve paths (absolute/relative/~), upload via SDK uploadFile, replace with <img> tags
  • Integrate image processing in executor.ts for story/bug create actions (--spec, --verify, --steps)
  • Support --data JSON format with embedded image markers
  • Add E2011 error code for missing image files
  • Update SKILL.md (v0.1.8): document image embedding feature

Depends on

  • easysoft/zentao-api: uploadFile export (feat/image-upload branch)

Testing (9/9 pass)

Case Result
story --spec single image (abs path) PASS
story --verify image PASS
bug --steps image PASS
Multiple images in one field PASS
Relative + ~ path resolution PASS
Non-existent file -> E2011 PASS
--data JSON with images PASS
Same image twice (cache dedup) PASS
No image markers (unaffected) PASS

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