Write extensions/vision/README.md (the 10-section plan outline) #262
Labels
No labels
bug
chore
documentation
enhancement
feature
ready
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
david/pi-extensions-and-skills#262
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Write
extensions/vision/README.mdfollowing the plan's §13 outline (10 sections), describing the shipped behaviour: what the tool does, how to configure it, its limits, thinking mode, failure behaviour, and cost.Background
Depends on: #254, #255, #256, #257, #258, #260, #261
Every other extension in this repo ships a README next to its
index.ts(extensions/mongodb/README.md,extensions/victorialogs/README.md,extensions/penpot/README.md). This is the user-facing contract for thevisionextension and is referenced from the repo root README (next step).Write it against the implemented behaviour, not the plan's intentions. If the implementation diverged from the plan anywhere (e.g. the
detailvalues accepted, whetherthinking: {"type":"disabled"}is accepted for vision, an error message's exact wording), the README must describe what the code actually does — that is the point of this step landing after the code.Follow the section order in the plan's §13 outline exactly, so a reader can check the README against the plan.
Documentation Required
A separate process downloads these into the listed folders before this issue is implemented. Check the folder for the actual reference material before starting.
docs/reference/deepseek-api/detailvalues, and the Limits table, all of which the README restates in user terms.{"thinking":{"type":"enabled|disabled"}}toggle.deepseek-flashpeak/off-peak rate table and peak hours, for the cost section (with the best-effort caveat).usagefields, for the token/cost section.docs/reference/image-size/image-sizedetects and thetypevalues, relevant to the "which formats are accepted" wording.Implementation Details
Create
extensions/vision/README.mdwith these sections, in this order (from plan §13):DEEPSEEK_API_KEY; state plainly that the tool is absent (not erroring) without it.DEEPSEEK_API_KEY,VISION_MODEL,VISION_BASE_URL,VISION_MAX_TOKENS,VISION_TIMEOUT,VISION_THINKING, matchingsrc/config.ts.prompt,images, optionaldetail/thinking) and what comes back (text +details+usage).src/images.tsenforces (formats, 32 MiB per image, 48 MiB body, 600 images, 8192 px / 4096 px at ≥ 15 images) and the fact that failures name the offending file/limit.thinking: true; raiseVISION_MAX_TOKENSwhen enabling it because reasoning tokens count toward the cap.ToolErrorwith an actionable message; never a stack trace.deepseek-flashwith a clearly-labelled best-effort note against DeepSeek's published prices.http(s)URLs, the Files API, caching, multi-turn state, streaming, per-call model override.npm test(note that tests never hit the network) and the manual live-verification command for a real key.Style: match the sibling extension READMEs (heading levels, table formatting, code fences with
bash/jsonlanguage tags). Use the em-dash style already used across the repo's docs. Do not invent flags or env vars thatsrc/config.tsdoes not read.Acceptance Criteria
extensions/vision/README.mdexists with all 10 sections, in the order listed above.src/config.tsexactly (names, defaults, required/optional).src/images.tsenforces.npm testand notes tests never hit the network, plus the manual live command.Test Plan
Documentation review — no code to run. Verify the README against the code:
Expected: the two sets match exactly.
Expected: unaffected by this change and still green.
Manual read-through: confirm each of the 10 numbered sections is present and its claims can be traced to the listed source files.
pi-loop opened and merged a pull request for this issue: #275