Repository navigation
Release v0.5.0: document-image tools (pictures inside documents) - #14
Merged
Merged
Conversation
itglue_create_attachment only files into a record's Attachments panel — it
never shows up in a document's body, and IT Glue strips data: URIs and its
own S3 URLs from section HTML. Pictures inside documents go through the
separate POST /document_images API: target {type: document|gallery, id} plus
image {content, file-name}; the response's inline_resource_url (a relative
/org/docs/doc/images/id path) is the only <img src> the editor keeps.
New tools: itglue_create_document_image (inline or gallery, with an
append_to_section_id shortcut that embeds the <img> for you),
itglue_get_document_image, itglue_delete_document_image (editor-tier, like
deleting a section). Gallery/Step sections now expose document_gallery_id and
their images; tool descriptions explain the attachment/image split and that
section updates replace the whole HTML.
Byte-source resolution (content_base64 / url / file_path) moved to
src/tools/binary-input.ts and is shared with attachments. Endpoint catalog,
README, CLAUDE.md and tests updated. Verified live: uploaded assets/logo.png
into doc 24183083 and confirmed rendered_content resolves it to S3.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Why
itglue_create_attachmentonly files into a record's Attachments panel — nothing it uploads ever renders in a document's body, and IT Glue stripsdata:URIs and S3 URLs from section HTML. So "image support" for documents effectively did not exist.What
IT Glue's separate
POST /document_imagesAPI is now wrapped:itglue_create_document_image(write) — inline (target: document) or gallery (target: gallery, using a Gallery/Step section'sdocument_gallery_id); optionalappend_to_section_idembeds the returned<img src="/org/docs/doc/images/ID">into an existing Text/Step section in one call.itglue_get_document_image(read),itglue_delete_document_image(editor-tier, like deleting a section).document_gallery_idand their images in list/get/get_document output.content_base64/url/file_path) extracted tosrc/tools/binary-input.ts.Verified live
Uploaded
assets/logo.pnginto doc 24183083 via the new handler; IT Glue preserved the file name (so the documented nestedimage.file-namekey is correct) andrendered_contentresolved the relative path to a presigned S3 URL.Release
Lockstep bump 0.4.1 → 0.5.0 (
package.json,package-lock.json,server.json,manifest.json). After merge: tagv0.5.0→release.yml(npm + .mcpb + GitHub release) anddocker-publish.yml(GHCR).🤖 Generated with Claude Code