weichen e2efe129bf Generate real docx artifacts and guard against pseudo-binary writes
Why: write_artifact/fs_write_file accept string content only, so models
physically cannot emit ZIP containers; every ".docx" artifact written to
date was plain text masquerading as Word (the meeting-notes docx preview
exploded in JSZip). The system advertised docx as a first-class delivery
format without a serialization path behind it.

Evidence: new internal/tools/docx.go serializes markdown to a minimal
OOXML package (PK-magic zip, word/document.xml, pStyle HeadingN) that
ingest.parseDocx round-trips; write_artifact gains format=docx (name
ending .docx auto-upgrades) and rejects xlsx/pptx/doc/xls string writes
with actionable guidance; fs_write_file gains the same guard;
runmgr.WriteArtifact now extracts index text via ingest instead of
stuffing binary bytes into the knowledge index; mock #doc demo emits a
real docx when the user names docx/word. go vet clean; go test ./...
18 packages pass, including new docx_test.go (magic, roundtrip, guards).

Impact: write_artifact contract gains an optional format param
(backwards compatible); binary-Office extensions now fail fast instead
of silently producing unopenable files. Frontend fallback for stock
fake-docx artifacts ships separately (feature/preview-sniff-fallback).

Refs: .task/feature-docx-generation.md
2026-09-30 18:07:59 +00:00

Agent-System-Backend

对话系统后端:Go 模块化单体,默认构建为单二进制(go:embed 内嵌前端与嵌入式 SQLite 存储)。组合 Agent-Native / Agent-Squad / Agent-Intent 生态,依赖 agent-system-core 契约。

契约与架构见 Agent-System-Documents 设计方案与架构文档;开发规范见 development-guidelines(Dev 仓 development/guidelines)。本仓为 Agent-System 多仓组合的组成部分。

S
Description
对话系统后端:会话与流式管道、智能体运行时与画像、工具/上下文/文档解析/检索/设置管理、插件宿主(组合 Agent-Native/Squad/Intent);依赖 Agent-System-Core 契约,默认单二进制非容器部署。
Readme
26 MiB
Languages
Go 98.5%
Python 1.4%