Skip to content

feat(office): add incremental Word, Excel, and PowerPoint generation - #3757

Merged
bobleer merged 7 commits into
openBitFun:mainfrom
bobleer:bob/gen-office-file
Nov 6, 2026
Merged

bobleer merged 7 commits into
openBitFun:mainfrom
bobleer:bob/gen-office-file

Conversation

@bobleer

@bobleer bobleer commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Add GenOfficeFile so 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-documents feature 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:check and pnpm run capabilities:test (16 tests).
  • pnpm run website:test (9 tests, including tool-name search routing) and pnpm run website:build.
  • Web UI interactiveCapabilitySearchProvider.test.ts (20 tests) and pnpm 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.
  • Independent python-docx, openpyxl, and python-pptx readers 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

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

@bobleer
bobleer merged commit 54e0f0d into openBitFun:main Nov 6, 2026
14 checks passed
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