Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.
JavaScript agent-collaborationagent-harnessagent-orchestrationagent-teamagent-workflowai-assistantai-automationai-employeeai-productivityai-teamai-workflowautonomous-agentsclaude-code-guiclaude-coworkdesktop-agentlocal-firstmulti-agentmulti-agent-systemself-evolving-agentstask-automation
'use strict';
const AdmZip = require('adm-zip');
function foreignDocxBytes(spacedBreaks) {
// Build independently of OfficeCLI: its own output already uses its ZIP
// encoding and hid the read-only close-time repack regression upstream.
const zip = new AdmZip();
zip.addFile('[Content_Types].xml', Buffer.from(
'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'
+ '<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">'
+ '<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>'
+ '<Default Extension="xml" ContentType="application/xml"/>'
+ '<Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/></Types>',
));
zip.addFile('_rels/.rels', Buffer.from(
'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'
+ '<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">'
+ '<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/></Relationships>',
));
zip.addFile('word/document.xml', Buffer.from(
'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'
+ '<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"><w:body>'
+ '<w:p><w:r><w:t>Readonly review fixture 检查不应改写原文件</w:t>'
+ (spacedBreaks ? '<w:br /><w:tab />' : '')
+ '<w:t>Stable text 123</w:t></w:r></w:p>'
+ '<w:sectPr><w:pgSz w:w="11906" w:h="16838"/><w:pgMar w:top="1440" w:right="1440" w:bottom="1440" w:left="1440" w:header="720" w:footer="720" w:gutter="0"/></w:sectPr>'
+ '</w:body></w:document>',
));
return zip.toBuffer();
}
module.exports = { foreignDocxBytes };