Repository navigation
feat(office): add incremental Word, Excel, and PowerPoint generation - #3757
Merged
Merged
Conversation
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
Add
GenOfficeFileso agents can create Word reports, Excel workbooks, and PowerPoint decks, then continue editing them across tool calls. The portable OOXML engine supports atomic operation batches, paged structure reads, embedded image reuse, and document-specific guides. Editable source is stored inside each file; unrelated Office files and externally changed generated content are rejected rather than silently overwritten.Type and Areas
Feature: Rust execution engine, Core tool integration, product capabilities, CLI/ACP/SDK feature selection, and dependency boundary checks.
Motivation / Impact
Agents can produce and incrementally revise Office files without installing Office or running generation scripts. Standard, Ultimate, Creative, and Claw defaults expose the tool. The independent
tools-office-documentsfeature keeps the portable engine out of the basic runtime dependency closure. Files and image assets use the existing workspace filesystem and permission paths.Verification
Passed locally:
cargo test --locked -p openbitfun-office-documents(26 unit tests and 9 integration tests).cargo test --locked -p openbitfun-core --no-default-features --features agent-runtime,git,tools-office-documents --lib agentic::tools::implementations::gen_office_file_tool::tests(3 tests).pnpm run check:core-boundaries:test(157 tests).pnpm run check:core-boundaries.pnpm run capabilities:checkandpnpm run capabilities:test(16 tests).pnpm run website:test(9 tests, including tool-name search routing) andpnpm run website:build.interactiveCapabilitySearchProvider.test.ts(20 tests) andpnpm run i18n:audit(zero warnings), also verified from the isolated PR checkout.pnpm run check:github-config(54 passed; 1 PowerShell-only test deferred to CI).pnpm run check:repo-hygiene.python-docx,openpyxl, andpython-pptxreaders successfully opened the generated samples.git diff --check.node scripts/check-git-object-sizes.mjs --base upstream/main --head HEAD.Remote evidence: in-memory local and SSH workspace filesystem fixtures exercise multi-call creation/edit/read and embedded-image reuse. Live SSH, Remote Control/relay, Peer Device Mode, and Detached Dispatch have not been exercised. No new host command or remote protocol is introduced.
Reviewer Notes
AI-assisted; focused automated tests passed. Cross-platform CI also runs the new Office engine tests. Review fixes cover numeric text precision, early-1900 date serials and invalid dates, bounded range paging, lossless full-detail cell reads, and insert-row overwrite protection. Stored source preserves unknown model fields and gates incompatible envelope versions. Generated samples also opened and converted to PDF in bundled LibreOfficeDev 26.8: one Word page, two worksheet pages, and two slides were visually inspected. CJK rendering used local font fallback. Export fixtures now contain a complete PNG and a readable date column. Microsoft Office itself has not been tested.
GenOffice reference attribution, the complete Apache-2.0 license, and upstream NOTICE are preserved beside the engine. Applicable attribution and the license text are also included in the existing Desktop/CLI third-party notices. The repository MIT license is unchanged.
Updated against upstream main before submission. No open implementation PR for this Office engine was found in the current upstream PR inventory.
Checklist