@mseep/open-computer-use 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.coderabbit.yaml +25 -0
- package/.dockerignore +95 -0
- package/.env.example +137 -0
- package/.githooks/pre-commit +68 -0
- package/.github/CODEOWNERS +125 -0
- package/.github/ISSUE_TEMPLATE/adr-proposal.md +41 -0
- package/.github/ISSUE_TEMPLATE/bug-report.md +49 -0
- package/.github/ISSUE_TEMPLATE/component-proposal.md +38 -0
- package/.github/ISSUE_TEMPLATE/config.yml +15 -0
- package/.github/ISSUE_TEMPLATE/dependency-proposal.md +59 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +15 -0
- package/.github/ISSUE_TEMPLATE/nfr-proposal.md +44 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +15 -0
- package/.github/codeql/codeql-config.yml +11 -0
- package/.github/codeql/extensions/security-models/python-sanitizers.model.yml +17 -0
- package/.github/codeql/extensions/security-models/qlpack.yml +7 -0
- package/.github/dependabot.yml +23 -0
- package/.github/security-exceptions.yml +23 -0
- package/.github/workflows/build.yml +420 -0
- package/.github/workflows/codeql.yml +33 -0
- package/.github/workflows/contracts-lint.yml +90 -0
- package/.github/workflows/docs-lint.yml +151 -0
- package/.github/workflows/helm.yml +131 -0
- package/.github/workflows/identity-lint.yml +30 -0
- package/.github/workflows/release-chart.yml +177 -0
- package/.github/workflows/release.yml +95 -0
- package/.github/workflows/security.yml +332 -0
- package/.github/workflows/stale.yml +31 -0
- package/.github/workflows/supply-chain.yml +242 -0
- package/.gitleaks.toml +53 -0
- package/.markdownlint.yaml +51 -0
- package/.semgrepignore +85 -0
- package/.vale/styles/Architecture/ap13-data-class-substrate.yml +12 -0
- package/.vale/styles/Architecture/banned-phrases.yml +23 -0
- package/.vale/styles/Architecture/banned-vocab.yml +23 -0
- package/.vale/styles/Architecture/marketing-tone.yml +19 -0
- package/.vale.ini +18 -0
- package/CHANGELOG.md +411 -0
- package/CLAUDE.md +218 -0
- package/CONTRIBUTING.md +82 -0
- package/Dockerfile +676 -0
- package/LICENSE +98 -0
- package/LICENSE-APACHE +202 -0
- package/LICENSE-MIT +21 -0
- package/NOTICE +36 -0
- package/README.md +516 -0
- package/SECURITY.md +45 -0
- package/THIRD-PARTY-LICENSES.md +14 -0
- package/apt-packages.txt +108 -0
- package/computer-use-server/.dockerignore +13 -0
- package/computer-use-server/Dockerfile +44 -0
- package/computer-use-server/README.md +84 -0
- package/computer-use-server/app.py +1544 -0
- package/computer-use-server/bin/list-subagent-models +449 -0
- package/computer-use-server/cli-defaults/README.md +31 -0
- package/computer-use-server/cli-defaults/codex.json +7 -0
- package/computer-use-server/cli-defaults/opencode.json +18 -0
- package/computer-use-server/cli_adapters/__init__.py +46 -0
- package/computer-use-server/cli_adapters/claude.py +163 -0
- package/computer-use-server/cli_adapters/codex.py +163 -0
- package/computer-use-server/cli_adapters/opencode.py +169 -0
- package/computer-use-server/cli_adapters/result.py +34 -0
- package/computer-use-server/cli_runtime.py +316 -0
- package/computer-use-server/context_vars.py +24 -0
- package/computer-use-server/docker_manager.py +1100 -0
- package/computer-use-server/docs_html.py +12 -0
- package/computer-use-server/mcp_resources.py +170 -0
- package/computer-use-server/mcp_tools.py +1430 -0
- package/computer-use-server/requirements.txt +17 -0
- package/computer-use-server/security.py +50 -0
- package/computer-use-server/skill_manager.py +664 -0
- package/computer-use-server/static/browser-viewer.js +445 -0
- package/computer-use-server/static/chart.umd.js +14 -0
- package/computer-use-server/static/docs.html +203 -0
- package/computer-use-server/static/github-dark.min.css +10 -0
- package/computer-use-server/static/github.min.css +10 -0
- package/computer-use-server/static/highlight.min.js +1213 -0
- package/computer-use-server/static/highlightjs-line-numbers.min.js +1 -0
- package/computer-use-server/static/icons.js +74 -0
- package/computer-use-server/static/jszip.min.js +13 -0
- package/computer-use-server/static/katex/auto-render.min.js +1 -0
- package/computer-use-server/static/katex/fonts/KaTeX_AMS-Regular.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_AMS-Regular.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Main-Bold.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Main-Bold.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Main-Italic.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Main-Italic.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Main-Regular.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Main-Regular.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Math-Italic.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Math-Italic.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Script-Regular.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Script-Regular.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Size1-Regular.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Size1-Regular.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Size2-Regular.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Size2-Regular.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Size3-Regular.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Size3-Regular.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Size4-Regular.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Size4-Regular.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- package/computer-use-server/static/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/computer-use-server/static/katex/katex.min.css +1 -0
- package/computer-use-server/static/katex/katex.min.js +1 -0
- package/computer-use-server/static/locale.js +242 -0
- package/computer-use-server/static/mammoth.browser.min.js +21 -0
- package/computer-use-server/static/marked.min.js +6 -0
- package/computer-use-server/static/mermaid.min.js +2811 -0
- package/computer-use-server/static/pdf.min.js +22 -0
- package/computer-use-server/static/pdf.worker.min.js +22 -0
- package/computer-use-server/static/pptxviewjs.min.js +1 -0
- package/computer-use-server/static/preact-htm.min.js +1 -0
- package/computer-use-server/static/preview.css +1030 -0
- package/computer-use-server/static/preview.js +1522 -0
- package/computer-use-server/static/xlsx.full.min.js +22 -0
- package/computer-use-server/static/xterm-addon-fit.min.js +2 -0
- package/computer-use-server/static/xterm-addon-web-links.min.js +2 -0
- package/computer-use-server/static/xterm.css +218 -0
- package/computer-use-server/static/xterm.min.js +2 -0
- package/computer-use-server/system_prompt.py +761 -0
- package/computer-use-server/uploads.py +82 -0
- package/contracts/README.md +53 -0
- package/contracts/audit/audit-fanin.asyncapi.yaml +407 -0
- package/contracts/exec/exec-channel.schema.json +240 -0
- package/contracts/mcp/2025-06-18/ocu-constraints.schema.json +178 -0
- package/contracts/storage/file-artifact-api.schema.json +390 -0
- package/contracts/storage/file-ops.schema.json +217 -0
- package/contracts/storage/mount-config.schema.json +197 -0
- package/cron/Dockerfile +15 -0
- package/cron/cleanup-quick.sh +21 -0
- package/cron/cleanup.sh +127 -0
- package/data/outputs/.gitkeep +0 -0
- package/data/uploads/.gitkeep +0 -0
- package/docker-compose.test.yml +54 -0
- package/docker-compose.webui.yml +77 -0
- package/docker-compose.yml +96 -0
- package/docs/CLOUD.md +29 -0
- package/docs/COMPARISON.md +128 -0
- package/docs/DOCKER.md +469 -0
- package/docs/DYNAMIC-SKILLS.md +77 -0
- package/docs/FEATURES.md +100 -0
- package/docs/INSTALL.md +111 -0
- package/docs/KNOWN-BUGS.md +86 -0
- package/docs/MCP.md +320 -0
- package/docs/SCREENSHOTS.md +39 -0
- package/docs/SKILLS-USER-GUIDE.md +86 -0
- package/docs/SKILLS.md +483 -0
- package/docs/TERMINAL-TAB.md +56 -0
- package/docs/architecture/02-trust-boundaries.md +224 -0
- package/docs/architecture/03-c4-context.md +61 -0
- package/docs/architecture/04-bounded-contexts.md +119 -0
- package/docs/architecture/05-c4-container.md +88 -0
- package/docs/architecture/06-threat-model.md +172 -0
- package/docs/architecture/08-contracts.md +105 -0
- package/docs/architecture/MANIFESTO.md +38 -0
- package/docs/architecture/PROCESS.md +64 -0
- package/docs/architecture/README.md +37 -0
- package/docs/architecture/adr/0000-template.md +65 -0
- package/docs/architecture/adr/0001-layer-0-gate-legacy-exclusion.md +75 -0
- package/docs/architecture/adr/0002-session-view-descriptor.md +57 -0
- package/docs/architecture/adr/0003-sandbox-runtime-tier-ladder.md +63 -0
- package/docs/architecture/adr/0004-operator-authentication-substrate.md +63 -0
- package/docs/architecture/adr/0005-egress-credential-delivery-envoy-sds.md +62 -0
- package/docs/architecture/adr/0006-egress-forward-proxy-substrate.md +65 -0
- package/docs/architecture/adr/0007-egress-auth-mechanism.md +72 -0
- package/docs/architecture/adr/0008-session-egress-attribution.md +59 -0
- package/docs/architecture/adr/0009-audit-pipeline-pluggable-by-contract.md +76 -0
- package/docs/architecture/adr/0010-storage-backend-pluggable-adapter.md +60 -0
- package/docs/architecture/adr/0011-storage-egress-lane.md +67 -0
- package/docs/architecture/adr/0012-implementation-language.md +67 -0
- package/docs/architecture/adr/0020-sandbox-image-provisioning.md +82 -0
- package/docs/architecture/adr/README.md +53 -0
- package/docs/architecture/compliance/.gitkeep +0 -0
- package/docs/architecture/components/00-overview.md +42 -0
- package/docs/architecture/components/0000-template.md +50 -0
- package/docs/architecture/components/01-mcp-gateway.md +80 -0
- package/docs/architecture/components/02-control-operator-api.md +80 -0
- package/docs/architecture/components/04-storage-broker.md +104 -0
- package/docs/architecture/components/05-session-sandbox.md +93 -0
- package/docs/architecture/components/06-egress-trust-edge.md +95 -0
- package/docs/architecture/components/07-audit-pipeline.md +110 -0
- package/docs/architecture/diagrams/.gitkeep +0 -0
- package/docs/architecture/diagrams/02-trust-boundaries.mmd +111 -0
- package/docs/architecture/diagrams/06-threat-model.mmd +41 -0
- package/docs/architecture/diagrams/08-contracts.mmd +47 -0
- package/docs/architecture/diagrams/c4-container.mmd +59 -0
- package/docs/architecture/diagrams/c4-context.mmd +46 -0
- package/docs/architecture/glossary.md +172 -0
- package/docs/architecture/manifesto/.gitkeep +0 -0
- package/docs/architecture/manifesto/01-audience-and-buyer.md +57 -0
- package/docs/architecture/manifesto/02-nfrs.md +325 -0
- package/docs/architecture/manifesto/03-non-negotiables.md +35 -0
- package/docs/architecture/manifesto/04-non-goals.md +23 -0
- package/docs/architecture/manifesto/05-licensing-posture.md +61 -0
- package/docs/architecture/manifesto/06-starter-mode-policy.md +49 -0
- package/docs/architecture/manifesto/07-governance.md +60 -0
- package/docs/architecture/primitives-backlog.md +51 -0
- package/docs/architecture.svg +117 -0
- package/docs/claude-code-gateway.md +173 -0
- package/docs/cli-config-templates.md +240 -0
- package/docs/data-flow.svg +72 -0
- package/docs/demo-landing-page.gif +0 -0
- package/docs/demo-qwen-trending.gif +0 -0
- package/docs/dynamic-skills.svg +77 -0
- package/docs/file-flow.svg +126 -0
- package/docs/future-architecture/README.md +152 -0
- package/docs/future-architecture/adr/0001-control-plane-language-go.md +80 -0
- package/docs/future-architecture/adr/0002-guest-agent-language-go.md +84 -0
- package/docs/future-architecture/adr/0003-docker-poc-first-then-k8s.md +37 -0
- package/docs/future-architecture/adr/0004-pluggable-runtime-via-runtimeclass.md +34 -0
- package/docs/future-architecture/adr/0005-mcp-as-control-plane-gateway.md +34 -0
- package/docs/future-architecture/adr/0006-no-agpl-no-bsl-dependencies.md +41 -0
- package/docs/future-architecture/adr/0007-superseded-by-future-architecture.md +37 -0
- package/docs/future-architecture/adr/0008-internal-grpc-external-rest-mcp.md +106 -0
- package/docs/future-architecture/adr/0009-external-protocol-dialects.md +94 -0
- package/docs/future-architecture/adr/0010-lambda-as-inspiration-not-runtime.md +86 -0
- package/docs/future-architecture/adr/0011-kata-as-first-class-dind-runtime.md +84 -0
- package/docs/future-architecture/antipatterns.md +552 -0
- package/docs/future-architecture/architecture/01-layers.md +109 -0
- package/docs/future-architecture/architecture/02-layer4-control-plane.md +122 -0
- package/docs/future-architecture/architecture/03-layer3-providers.md +174 -0
- package/docs/future-architecture/architecture/04-layer2-runtimes.md +114 -0
- package/docs/future-architecture/architecture/04b-credential-broker.md +153 -0
- package/docs/future-architecture/architecture/05-layer1-guest-agent.md +138 -0
- package/docs/future-architecture/architecture/06-storage.md +134 -0
- package/docs/future-architecture/architecture/07-security.md +194 -0
- package/docs/future-architecture/architecture/08-networking.md +149 -0
- package/docs/future-architecture/architecture/09-templates.md +122 -0
- package/docs/future-architecture/architecture/10-observability.md +121 -0
- package/docs/future-architecture/design-notes.md +72 -0
- package/docs/future-architecture/gaps.md +281 -0
- package/docs/future-architecture/phase-template.md +123 -0
- package/docs/future-architecture/references.md +225 -0
- package/docs/future-architecture/research/01-kata-containers.md +100 -0
- package/docs/future-architecture/research/02-e2b-infra.md +133 -0
- package/docs/future-architecture/research/03-coder.md +115 -0
- package/docs/future-architecture/research/04-cloud-hypervisor.md +99 -0
- package/docs/future-architecture/research/05-firecracker.md +114 -0
- package/docs/future-architecture/research/06-agent-sandbox.md +142 -0
- package/docs/future-architecture/research/07-chromedp.md +78 -0
- package/docs/future-architecture/research/08-microsandbox.md +78 -0
- package/docs/future-architecture/research/09-agentbox.md +135 -0
- package/docs/future-architecture/research/10-sysbox.md +100 -0
- package/docs/future-architecture/research/11-firecracker-containerd.md +93 -0
- package/docs/future-architecture/research/12-docker-socket-proxy.md +59 -0
- package/docs/future-architecture/research/14-e2b-desktop-and-surf.md +107 -0
- package/docs/future-architecture/research/18-open-webui-terminals-observed.md +135 -0
- package/docs/future-architecture/research/bank-buyer.md +96 -0
- package/docs/future-architecture/research/enthusiast-audience.md +106 -0
- package/docs/future-architecture/research/proof-uipath-anthropic-2026-05.md +76 -0
- package/docs/future-architecture/research/widemoat-thesis-advisor.md +124 -0
- package/docs/future-architecture/roadmap.md +438 -0
- package/docs/kata-runtime.md +267 -0
- package/docs/kubernetes.md +86 -0
- package/docs/logo.png +0 -0
- package/docs/multi-cli.md +161 -0
- package/docs/openwebui-filter.md +134 -0
- package/docs/roadmap/implementation-roadmap.md +104 -0
- package/docs/sandbox-contents.svg +229 -0
- package/docs/screenshots/01-create-document.png +0 -0
- package/docs/screenshots/02-file-preview.png +0 -0
- package/docs/screenshots/03-browser-viewer.png +0 -0
- package/docs/screenshots/04-sub-agent-terminal.png +0 -0
- package/docs/screenshots/05-chat-overview.png +0 -0
- package/docs/screenshots/06-sub-agent-dashboard.png +0 -0
- package/docs/screenshots/07-frontend-design-skill.png +0 -0
- package/docs/screenshots/08-pptx-skill.png +0 -0
- package/docs/screenshots/09-skill-creator.png +0 -0
- package/docs/screenshots/10-data-chart.png +0 -0
- package/docs/shared-browser.svg +102 -0
- package/docs/system-prompt.md +113 -0
- package/docs/terminal-flow.svg +69 -0
- package/examples/helm/README.md +20 -0
- package/examples/helm/standalone/values.yaml +49 -0
- package/examples/helm/with-open-webui/README.md +99 -0
- package/examples/helm/with-open-webui/values-computer-use.yaml +32 -0
- package/examples/helm/with-open-webui/values-open-webui.yaml +67 -0
- package/fonts/NotoEmoji-Regular.ttf +0 -0
- package/helm/computer-use-server/.helmignore +17 -0
- package/helm/computer-use-server/Chart.yaml +32 -0
- package/helm/computer-use-server/README.md +211 -0
- package/helm/computer-use-server/templates/NOTES.txt +66 -0
- package/helm/computer-use-server/templates/_helpers.tpl +115 -0
- package/helm/computer-use-server/templates/configmap-dind-init.yaml +82 -0
- package/helm/computer-use-server/templates/configmap.yaml +18 -0
- package/helm/computer-use-server/templates/deployment.yaml +248 -0
- package/helm/computer-use-server/templates/ingress.yaml +38 -0
- package/helm/computer-use-server/templates/networkpolicy.yaml +50 -0
- package/helm/computer-use-server/templates/pdb.yaml +16 -0
- package/helm/computer-use-server/templates/pvc-data.yaml +20 -0
- package/helm/computer-use-server/templates/pvc-skills-cache.yaml +20 -0
- package/helm/computer-use-server/templates/pvc-user-data.yaml +20 -0
- package/helm/computer-use-server/templates/pvc-var-lib-docker.yaml +27 -0
- package/helm/computer-use-server/templates/secret.yaml +23 -0
- package/helm/computer-use-server/templates/service.yaml +22 -0
- package/helm/computer-use-server/templates/serviceaccount.yaml +15 -0
- package/helm/computer-use-server/templates/tests/test-health.yaml +23 -0
- package/helm/computer-use-server/values.schema.json +183 -0
- package/helm/computer-use-server/values.yaml +297 -0
- package/lychee.toml +36 -0
- package/openwebui/Dockerfile +52 -0
- package/openwebui/README.md +38 -0
- package/openwebui/functions/README.md +48 -0
- package/openwebui/functions/computer_link_filter.py +487 -0
- package/openwebui/init.sh +305 -0
- package/openwebui/patches/README.md +44 -0
- package/openwebui/patches/fix_artifacts_auto_show.py +441 -0
- package/openwebui/patches/fix_attached_files_position.py +87 -0
- package/openwebui/patches/fix_large_tool_args.py +156 -0
- package/openwebui/patches/fix_large_tool_results.py +289 -0
- package/openwebui/patches/fix_preview_url_detection.py +230 -0
- package/openwebui/patches/fix_skip_embedding_chat_files.py +229 -0
- package/openwebui/patches/fix_skip_rag_files_native_fc.py +100 -0
- package/openwebui/patches/fix_tool_loop_errors.py +510 -0
- package/package.json +39 -0
- package/requirements.txt +112 -0
- package/scripts/check-config.sh +141 -0
- package/scripts/docs-lint/ai-slop-detector.sh +202 -0
- package/scripts/docs-lint/architecture-tree-whitelist.sh +131 -0
- package/scripts/docs-lint/ascii-diagram-detector.sh +58 -0
- package/scripts/docs-lint/front-matter-validator.sh +97 -0
- package/scripts/docs-lint/gitignored-ref-detector.sh +122 -0
- package/scripts/docs-lint/identity-email-detector.sh +48 -0
- package/scripts/docs-lint/test-linters.sh +354 -0
- package/scripts/docs-lint/wc-budget.sh +61 -0
- package/scripts/githooks/pre-push +75 -0
- package/server.json +13 -0
- package/settings-wrapper/Dockerfile +9 -0
- package/settings-wrapper/README.md +119 -0
- package/settings-wrapper/app.py +113 -0
- package/settings-wrapper/requirements.txt +2 -0
- package/settings-wrapper/skills.json +25 -0
- package/skills/README.md +46 -0
- package/skills/examples/algorithmic-art/SKILL.md +405 -0
- package/skills/examples/algorithmic-art/templates/generator_template.js +223 -0
- package/skills/examples/algorithmic-art/templates/viewer.html +601 -0
- package/skills/examples/artifacts-builder/SKILL.md +74 -0
- package/skills/examples/artifacts-builder/scripts/bundle-artifact.sh +54 -0
- package/skills/examples/artifacts-builder/scripts/init-artifact.sh +322 -0
- package/skills/examples/artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
- package/skills/examples/canvas-design/LICENSE.txt +202 -0
- package/skills/examples/canvas-design/SKILL.md +130 -0
- package/skills/examples/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/skills/examples/canvas-design/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/Jura-Light.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/Jura-Medium.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/skills/examples/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/skills/examples/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
- package/skills/examples/copy-editing/SKILL.md +447 -0
- package/skills/examples/copy-editing/evals/evals.json +89 -0
- package/skills/examples/copy-editing/references/plain-english-alternatives.md +394 -0
- package/skills/examples/internal-comms/LICENSE.txt +202 -0
- package/skills/examples/internal-comms/SKILL.md +32 -0
- package/skills/examples/internal-comms/examples/3p-updates.md +47 -0
- package/skills/examples/internal-comms/examples/company-newsletter.md +65 -0
- package/skills/examples/internal-comms/examples/faq-answers.md +30 -0
- package/skills/examples/internal-comms/examples/general-comms.md +16 -0
- package/skills/examples/mcp-builder/SKILL.md +328 -0
- package/skills/examples/mcp-builder/reference/evaluation.md +602 -0
- package/skills/examples/mcp-builder/reference/mcp_best_practices.md +915 -0
- package/skills/examples/mcp-builder/reference/node_mcp_server.md +916 -0
- package/skills/examples/mcp-builder/reference/python_mcp_server.md +752 -0
- package/skills/examples/mcp-builder/scripts/connections.py +151 -0
- package/skills/examples/mcp-builder/scripts/evaluation.py +373 -0
- package/skills/examples/mcp-builder/scripts/example_evaluation.xml +22 -0
- package/skills/examples/mcp-builder/scripts/requirements.txt +2 -0
- package/skills/examples/product-marketing-context/SKILL.md +241 -0
- package/skills/examples/product-marketing-context/evals/evals.json +85 -0
- package/skills/examples/single-cell-rna-qc/SKILL.md +175 -0
- package/skills/examples/single-cell-rna-qc/references/scverse_qc_guidelines.md +186 -0
- package/skills/examples/single-cell-rna-qc/scripts/qc_analysis.py +232 -0
- package/skills/examples/single-cell-rna-qc/scripts/qc_core.py +233 -0
- package/skills/examples/single-cell-rna-qc/scripts/qc_plotting.py +235 -0
- package/skills/examples/skill-creator/SKILL.md +355 -0
- package/skills/examples/skill-creator/references/output-patterns.md +82 -0
- package/skills/examples/skill-creator/references/workflows.md +28 -0
- package/skills/examples/skill-creator/scripts/init_skill.py +303 -0
- package/skills/examples/skill-creator/scripts/package_skill.py +110 -0
- package/skills/examples/skill-creator/scripts/quick_validate.py +95 -0
- package/skills/examples/slack-gif-creator/SKILL.md +254 -0
- package/skills/examples/slack-gif-creator/core/easing.py +234 -0
- package/skills/examples/slack-gif-creator/core/frame_composer.py +176 -0
- package/skills/examples/slack-gif-creator/core/gif_builder.py +269 -0
- package/skills/examples/slack-gif-creator/core/validators.py +136 -0
- package/skills/examples/slack-gif-creator/requirements.txt +4 -0
- package/skills/examples/social-content/SKILL.md +278 -0
- package/skills/examples/social-content/evals/evals.json +92 -0
- package/skills/examples/social-content/references/platforms.md +170 -0
- package/skills/examples/social-content/references/post-templates.md +177 -0
- package/skills/examples/social-content/references/reverse-engineering.md +195 -0
- package/skills/examples/theme-factory/SKILL.md +59 -0
- package/skills/examples/theme-factory/theme-showcase.pdf +0 -0
- package/skills/examples/theme-factory/themes/arctic-frost.md +19 -0
- package/skills/examples/theme-factory/themes/botanical-garden.md +19 -0
- package/skills/examples/theme-factory/themes/desert-rose.md +19 -0
- package/skills/examples/theme-factory/themes/forest-canopy.md +19 -0
- package/skills/examples/theme-factory/themes/golden-hour.md +19 -0
- package/skills/examples/theme-factory/themes/midnight-galaxy.md +19 -0
- package/skills/examples/theme-factory/themes/modern-minimalist.md +19 -0
- package/skills/examples/theme-factory/themes/ocean-depths.md +19 -0
- package/skills/examples/theme-factory/themes/sunset-boulevard.md +19 -0
- package/skills/examples/theme-factory/themes/tech-innovation.md +19 -0
- package/skills/examples/web-artifacts-builder/LICENSE.txt +202 -0
- package/skills/examples/web-artifacts-builder/SKILL.md +74 -0
- package/skills/examples/web-artifacts-builder/scripts/bundle-artifact.sh +54 -0
- package/skills/examples/web-artifacts-builder/scripts/init-artifact.sh +322 -0
- package/skills/examples/web-artifacts-builder/scripts/shadcn-components.tar.gz +0 -0
- package/skills/examples/writing-skills/SKILL.md +655 -0
- package/skills/examples/writing-skills/anthropic-best-practices.md +1150 -0
- package/skills/examples/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
- package/skills/examples/writing-skills/graphviz-conventions.dot +172 -0
- package/skills/examples/writing-skills/persuasion-principles.md +187 -0
- package/skills/examples/writing-skills/render-graphs.js +168 -0
- package/skills/examples/writing-skills/testing-skills-with-subagents.md +384 -0
- package/skills/public/describe-image/SKILL.md +105 -0
- package/skills/public/describe-image/scripts/describe.py +389 -0
- package/skills/public/doc-coauthoring/SKILL.md +375 -0
- package/skills/public/docx/LICENSE.txt +30 -0
- package/skills/public/docx/SKILL.md +199 -0
- package/skills/public/docx/docx-js.md +350 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/skills/public/docx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/skills/public/docx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/skills/public/docx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/skills/public/docx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/skills/public/docx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/skills/public/docx/ooxml/schemas/mce/mc.xsd +75 -0
- package/skills/public/docx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/skills/public/docx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/skills/public/docx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/skills/public/docx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/skills/public/docx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/skills/public/docx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/skills/public/docx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/skills/public/docx/ooxml/scripts/pack.py +159 -0
- package/skills/public/docx/ooxml/scripts/unpack.py +29 -0
- package/skills/public/docx/ooxml/scripts/validate.py +69 -0
- package/skills/public/docx/ooxml/scripts/validation/__init__.py +15 -0
- package/skills/public/docx/ooxml/scripts/validation/base.py +951 -0
- package/skills/public/docx/ooxml/scripts/validation/docx.py +274 -0
- package/skills/public/docx/ooxml/scripts/validation/pptx.py +315 -0
- package/skills/public/docx/ooxml/scripts/validation/redlining.py +279 -0
- package/skills/public/docx/ooxml.md +632 -0
- package/skills/public/docx/scripts/__init__.py +1 -0
- package/skills/public/docx/scripts/document.py +1292 -0
- package/skills/public/docx/scripts/templates/comments.xml +3 -0
- package/skills/public/docx/scripts/templates/commentsExtended.xml +3 -0
- package/skills/public/docx/scripts/templates/commentsExtensible.xml +3 -0
- package/skills/public/docx/scripts/templates/commentsIds.xml +3 -0
- package/skills/public/docx/scripts/templates/people.xml +3 -0
- package/skills/public/docx/scripts/utilities.py +374 -0
- package/skills/public/file-reading/LICENSE.txt +30 -0
- package/skills/public/file-reading/SKILL.md +350 -0
- package/skills/public/frontend-design/LICENSE.txt +177 -0
- package/skills/public/frontend-design/SKILL.md +42 -0
- package/skills/public/gitlab-explorer/SKILL.md +174 -0
- package/skills/public/gitlab-explorer/references/git-commands.md +323 -0
- package/skills/public/gitlab-explorer/references/glab-commands.md +282 -0
- package/skills/public/gitlab-explorer/scripts/check_gitlab_auth.sh +109 -0
- package/skills/public/pdf/FORMS.md +205 -0
- package/skills/public/pdf/REFERENCE.md +612 -0
- package/skills/public/pdf/SKILL.md +364 -0
- package/skills/public/pdf/scripts/check_bounding_boxes.py +70 -0
- package/skills/public/pdf/scripts/check_bounding_boxes_test.py +226 -0
- package/skills/public/pdf/scripts/check_fillable_fields.py +12 -0
- package/skills/public/pdf/scripts/convert_pdf_to_images.py +35 -0
- package/skills/public/pdf/scripts/create_validation_image.py +41 -0
- package/skills/public/pdf/scripts/extract_form_field_info.py +152 -0
- package/skills/public/pdf/scripts/fill_fillable_fields.py +114 -0
- package/skills/public/pdf/scripts/fill_pdf_form_with_annotations.py +108 -0
- package/skills/public/pdf-reading/LICENSE.txt +30 -0
- package/skills/public/pdf-reading/REFERENCE.md +196 -0
- package/skills/public/pdf-reading/SKILL.md +305 -0
- package/skills/public/playwright-cli/SKILL.md +278 -0
- package/skills/public/playwright-cli/references/request-mocking.md +87 -0
- package/skills/public/playwright-cli/references/running-code.md +232 -0
- package/skills/public/playwright-cli/references/session-management.md +169 -0
- package/skills/public/playwright-cli/references/storage-state.md +275 -0
- package/skills/public/playwright-cli/references/test-generation.md +88 -0
- package/skills/public/playwright-cli/references/tracing.md +139 -0
- package/skills/public/playwright-cli/references/video-recording.md +43 -0
- package/skills/public/pptx/LICENSE.txt +30 -0
- package/skills/public/pptx/SKILL.md +484 -0
- package/skills/public/pptx/css.md +335 -0
- package/skills/public/pptx/html2pptx.md +893 -0
- package/skills/public/pptx/html2pptx.tgz +0 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/skills/public/pptx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/skills/public/pptx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/skills/public/pptx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/skills/public/pptx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/skills/public/pptx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/skills/public/pptx/ooxml/schemas/mce/mc.xsd +75 -0
- package/skills/public/pptx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
- package/skills/public/pptx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
- package/skills/public/pptx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
- package/skills/public/pptx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/skills/public/pptx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/skills/public/pptx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/skills/public/pptx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/skills/public/pptx/ooxml/scripts/pack.py +159 -0
- package/skills/public/pptx/ooxml/scripts/unpack.py +29 -0
- package/skills/public/pptx/ooxml/scripts/validate.py +69 -0
- package/skills/public/pptx/ooxml/scripts/validation/__init__.py +15 -0
- package/skills/public/pptx/ooxml/scripts/validation/base.py +951 -0
- package/skills/public/pptx/ooxml/scripts/validation/docx.py +274 -0
- package/skills/public/pptx/ooxml/scripts/validation/pptx.py +315 -0
- package/skills/public/pptx/ooxml/scripts/validation/redlining.py +279 -0
- package/skills/public/pptx/ooxml.md +427 -0
- package/skills/public/pptx/scripts/inventory.py +1020 -0
- package/skills/public/pptx/scripts/rearrange.py +231 -0
- package/skills/public/pptx/scripts/replace.py +385 -0
- package/skills/public/pptx/scripts/thumbnail.py +450 -0
- package/skills/public/skill-creator/SKILL.md +356 -0
- package/skills/public/skill-creator/references/output-patterns.md +82 -0
- package/skills/public/skill-creator/references/workflows.md +28 -0
- package/skills/public/skill-creator/scripts/init_skill.py +303 -0
- package/skills/public/skill-creator/scripts/package_skill.py +110 -0
- package/skills/public/skill-creator/scripts/quick_validate.py +95 -0
- package/skills/public/sub-agent/SKILL.md +186 -0
- package/skills/public/sub-agent/references/security-review.md +153 -0
- package/skills/public/sub-agent/references/usage.md +207 -0
- package/skills/public/sub-agent/scripts/list_subagent_models.sh +22 -0
- package/skills/public/test-driven-development/SKILL.md +371 -0
- package/skills/public/test-driven-development/testing-anti-patterns.md +299 -0
- package/skills/public/webapp-testing/LICENSE.txt +202 -0
- package/skills/public/webapp-testing/SKILL.md +96 -0
- package/skills/public/webapp-testing/examples/console_logging.py +35 -0
- package/skills/public/webapp-testing/examples/element_discovery.py +40 -0
- package/skills/public/webapp-testing/examples/static_html_automation.py +33 -0
- package/skills/public/webapp-testing/scripts/with_server.py +106 -0
- package/skills/public/xlsx/LICENSE.txt +30 -0
- package/skills/public/xlsx/SKILL.md +316 -0
- package/skills/public/xlsx/preview_data.py +93 -0
- package/skills/public/xlsx/recalc.py +178 -0
- package/tests/README.md +42 -0
- package/tests/fixtures/cli/claude_v0.9.2.0_argv.json +46 -0
- package/tests/fixtures/cli/claude_v0.9.2.0_stdout.json +32 -0
- package/tests/fixtures/cli/codex_run.jsonl +4 -0
- package/tests/fixtures/cli/opencode_run.jsonl +6 -0
- package/tests/integration/README.md +56 -0
- package/tests/integration/conftest.py +280 -0
- package/tests/integration/pytest.ini +13 -0
- package/tests/integration/test_mcp_auth.py +85 -0
- package/tests/integration/test_mcp_tools.py +101 -0
- package/tests/integration/test_workspace_lifecycle.py +125 -0
- package/tests/orchestrator/mock_llm_server.py +343 -0
- package/tests/orchestrator/test_cli_adapters.py +566 -0
- package/tests/orchestrator/test_cli_adapters_live.py +527 -0
- package/tests/orchestrator/test_cli_runtime.py +451 -0
- package/tests/orchestrator/test_docker_manager.py +302 -0
- package/tests/orchestrator/test_dynamic_instructions.py +69 -0
- package/tests/orchestrator/test_mcp_resources.py +140 -0
- package/tests/orchestrator/test_mcp_tools.py +224 -0
- package/tests/orchestrator/test_passthrough_isolation.py +201 -0
- package/tests/orchestrator/test_readme_in_container.py +76 -0
- package/tests/orchestrator/test_render_cache.py +84 -0
- package/tests/orchestrator/test_runtime_cli_endpoint.py +108 -0
- package/tests/orchestrator/test_single_user_mode.py +212 -0
- package/tests/orchestrator/test_startup_warnings.py +123 -0
- package/tests/orchestrator/test_sub_agent_dispatch.py +327 -0
- package/tests/orchestrator/test_subagent_claude_compat.py +367 -0
- package/tests/orchestrator/test_system_prompt_endpoint.py +191 -0
- package/tests/orchestrator/test_tool_descriptions.py +52 -0
- package/tests/orchestrator/test_view_image.py +201 -0
- package/tests/patches/conftest.py +30 -0
- package/tests/patches/fixtures/__init__.py +10 -0
- package/tests/patches/fixtures/middleware_v0.9.1.py +5057 -0
- package/tests/patches/fixtures/middleware_v0.9.2.py +5120 -0
- package/tests/patches/fixtures/retrieval_v0.9.1.py +2684 -0
- package/tests/patches/fixtures/retrieval_v0.9.2.py +2700 -0
- package/tests/patches/test_fix_attached_files_position.py +118 -0
- package/tests/patches/test_fix_large_tool_args.py +130 -0
- package/tests/patches/test_fix_large_tool_results.py +531 -0
- package/tests/patches/test_fix_skip_embedding_chat_files.py +160 -0
- package/tests/patches/test_fix_skip_rag_files_native_fc.py +120 -0
- package/tests/patches/test_fix_tool_loop_errors.py +128 -0
- package/tests/security/test_path_traversal_app.py +132 -0
- package/tests/security/test_path_traversal_docker.py +36 -0
- package/tests/security/test_path_traversal_settings.py +87 -0
- package/tests/security/test_safe_path_util.py +166 -0
- package/tests/security/test_xss_preview.py +46 -0
- package/tests/test-default-model-resolution.py +136 -0
- package/tests/test-docker-image.sh +358 -0
- package/tests/test-list-subagent-models.sh +421 -0
- package/tests/test-mcp-endpoint-live.sh +92 -0
- package/tests/test-mcp-native-surface.sh +213 -0
- package/tests/test-no-cyrillic.sh +135 -0
- package/tests/test-opencode-error-mapping.py +130 -0
- package/tests/test-pr88-skills.sh +305 -0
- package/tests/test-project-structure.sh +202 -0
- package/tests/test-single-user-mode.sh +269 -0
- package/tests/test-skill-no-hardcoded-models.sh +65 -0
- package/tests/test-subagent-cli-surface.py +137 -0
- package/tests/test-subagent-runtime.sh +109 -0
- package/tests/test_codex_toml_converter.py +204 -0
- package/tests/test_default_resolver_no_legacy_global.py +159 -0
- package/tests/test_filter.py +648 -0
- package/tests/test_init_sh_unchanged.sh +49 -0
- package/tests/test_opencode_alias_map_drop.py +144 -0
- package/tests/test_requirements.py +91 -0
- package/tests/test_subagent_docstring.py +193 -0
- package/tests/test_tools.py +34 -0
- package/vendor/extract-text/README.md +46 -0
- package/vendor/extract-text/extract-text +0 -0
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: xlsx
|
|
3
|
+
description: "Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Assistant needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas"
|
|
4
|
+
license: Proprietary. LICENSE.txt has complete terms
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Requirements for Outputs
|
|
8
|
+
|
|
9
|
+
## All Excel files
|
|
10
|
+
|
|
11
|
+
### Zero Formula Errors
|
|
12
|
+
- Every Excel model MUST be delivered with ZERO formula errors (#REF!, #DIV/0!, #VALUE!, #N/A, #NAME?)
|
|
13
|
+
|
|
14
|
+
### Preserve Existing Templates (when updating templates)
|
|
15
|
+
- Study and EXACTLY match existing format, style, and conventions when modifying files
|
|
16
|
+
- Never impose standardized formatting on files with established patterns
|
|
17
|
+
- Existing template conventions ALWAYS override these guidelines
|
|
18
|
+
|
|
19
|
+
## Financial models
|
|
20
|
+
|
|
21
|
+
### Color Coding Standards
|
|
22
|
+
Unless otherwise stated by the user or existing template
|
|
23
|
+
|
|
24
|
+
#### Industry-Standard Color Conventions
|
|
25
|
+
- **Blue text (RGB: 0,0,255)**: Hardcoded inputs, and numbers users will change for scenarios
|
|
26
|
+
- **Black text (RGB: 0,0,0)**: ALL formulas and calculations
|
|
27
|
+
- **Green text (RGB: 0,128,0)**: Links pulling from other worksheets within same workbook
|
|
28
|
+
- **Red text (RGB: 255,0,0)**: External links to other files
|
|
29
|
+
- **Yellow background (RGB: 255,255,0)**: Key assumptions needing attention or cells that need to be updated
|
|
30
|
+
|
|
31
|
+
### Number Formatting Standards
|
|
32
|
+
|
|
33
|
+
#### Required Format Rules
|
|
34
|
+
- **Years**: Format as text strings (e.g., "2024" not "2,024")
|
|
35
|
+
- **Currency**: Use $#,##0 format; ALWAYS specify units in headers ("Revenue ($mm)")
|
|
36
|
+
- **Zeros**: Use number formatting to make all zeros "-", including percentages (e.g., "$#,##0;($#,##0);-")
|
|
37
|
+
- **Percentages**: Default to 0.0% format (one decimal)
|
|
38
|
+
- **Multiples**: Format as 0.0x for valuation multiples (EV/EBITDA, P/E)
|
|
39
|
+
- **Negative numbers**: Use parentheses (123) not minus -123
|
|
40
|
+
|
|
41
|
+
### Formula Construction Rules
|
|
42
|
+
|
|
43
|
+
#### Assumptions Placement
|
|
44
|
+
- Place ALL assumptions (growth rates, margins, multiples, etc.) in separate assumption cells
|
|
45
|
+
- Use cell references instead of hardcoded values in formulas
|
|
46
|
+
- Example: Use =B5*(1+$B$6) instead of =B5*1.05
|
|
47
|
+
|
|
48
|
+
#### Formula Error Prevention
|
|
49
|
+
- Verify all cell references are correct
|
|
50
|
+
- Check for off-by-one errors in ranges
|
|
51
|
+
- Ensure consistent formulas across all projection periods
|
|
52
|
+
- Test with edge cases (zero values, negative numbers)
|
|
53
|
+
- Verify no unintended circular references
|
|
54
|
+
|
|
55
|
+
#### Documentation Requirements for Hardcodes
|
|
56
|
+
- Comment or in cells beside (if end of table). Format: "Source: [System/Document], [Date], [Specific Reference], [URL if applicable]"
|
|
57
|
+
- Examples:
|
|
58
|
+
- "Source: Company 10-K, FY2024, Page 45, Revenue Note, [SEC EDGAR URL]"
|
|
59
|
+
- "Source: Company 10-Q, Q2 2025, Exhibit 99.1, [SEC EDGAR URL]"
|
|
60
|
+
- "Source: Bloomberg Terminal, 8/15/2025, AAPL US Equity"
|
|
61
|
+
- "Source: FactSet, 8/20/2025, Consensus Estimates Screen"
|
|
62
|
+
|
|
63
|
+
# XLSX creation, editing, and analysis
|
|
64
|
+
|
|
65
|
+
## Overview
|
|
66
|
+
|
|
67
|
+
A user may ask you to create, edit, or analyze the contents of an .xlsx file. You have different tools and workflows available for different tasks.
|
|
68
|
+
|
|
69
|
+
## Important Requirements
|
|
70
|
+
|
|
71
|
+
**LibreOffice Required for Formula Recalculation**: You can assume LibreOffice is installed for recalculating formula values using the `recalc.py` script. The script automatically configures LibreOffice on first run
|
|
72
|
+
|
|
73
|
+
## Reading and analyzing data
|
|
74
|
+
|
|
75
|
+
### Data analysis with pandas
|
|
76
|
+
For data analysis, visualization, and basic operations, use **pandas** which provides powerful data manipulation capabilities:
|
|
77
|
+
|
|
78
|
+
```python
|
|
79
|
+
import pandas as pd
|
|
80
|
+
|
|
81
|
+
# Read Excel
|
|
82
|
+
df = pd.read_excel('file.xlsx') # Default: first sheet
|
|
83
|
+
all_sheets = pd.read_excel('file.xlsx', sheet_name=None) # All sheets as dict
|
|
84
|
+
|
|
85
|
+
# Analyze
|
|
86
|
+
df.head() # Preview data
|
|
87
|
+
df.info() # Column info
|
|
88
|
+
df.describe() # Statistics
|
|
89
|
+
|
|
90
|
+
# Write Excel
|
|
91
|
+
df.to_excel('output.xlsx', index=False)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### MANDATORY: Preview Data Before Analysis
|
|
95
|
+
|
|
96
|
+
Before ANY data analysis, run the preview script to safely inspect the file:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
python /mnt/skills/public/xlsx/preview_data.py <file_path>
|
|
100
|
+
# Options: --rows 20 (show more rows), --cols 30 (show more columns)
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
The script automatically:
|
|
104
|
+
- Checks file size and limits rows for large files (>1MB → first 500 rows)
|
|
105
|
+
- Shows shape, column types, first N rows, and statistics
|
|
106
|
+
- Truncates wide columns to prevent context overflow
|
|
107
|
+
|
|
108
|
+
**FORBIDDEN PATTERNS — NEVER use on large files:**
|
|
109
|
+
- `df.to_string()` — produces megabytes of text, overflows context window
|
|
110
|
+
- `print(df)` on full dataframe — same problem
|
|
111
|
+
- `df.to_csv()` to stdout — same problem
|
|
112
|
+
|
|
113
|
+
**After preview, work with specific data:**
|
|
114
|
+
```python
|
|
115
|
+
# Targeted analysis (safe)
|
|
116
|
+
df['column_name'].value_counts()
|
|
117
|
+
df.groupby('category')['value'].mean()
|
|
118
|
+
df = pd.read_excel('file.xlsx', usecols=['Name', 'Revenue'])
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Excel File Workflows
|
|
122
|
+
|
|
123
|
+
## CRITICAL: Use Formulas, Not Hardcoded Values
|
|
124
|
+
|
|
125
|
+
**Always use Excel formulas instead of calculating values in Python and hardcoding them.** This ensures the spreadsheet remains dynamic and updateable.
|
|
126
|
+
|
|
127
|
+
### ❌ WRONG - Hardcoding Calculated Values
|
|
128
|
+
```python
|
|
129
|
+
# Bad: Calculating in Python and hardcoding result
|
|
130
|
+
total = df['Sales'].sum()
|
|
131
|
+
sheet['B10'] = total # Hardcodes 5000
|
|
132
|
+
|
|
133
|
+
# Bad: Computing growth rate in Python
|
|
134
|
+
growth = (df.iloc[-1]['Revenue'] - df.iloc[0]['Revenue']) / df.iloc[0]['Revenue']
|
|
135
|
+
sheet['C5'] = growth # Hardcodes 0.15
|
|
136
|
+
|
|
137
|
+
# Bad: Python calculation for average
|
|
138
|
+
avg = sum(values) / len(values)
|
|
139
|
+
sheet['D20'] = avg # Hardcodes 42.5
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### ✅ CORRECT - Using Excel Formulas
|
|
143
|
+
```python
|
|
144
|
+
# Good: Let Excel calculate the sum
|
|
145
|
+
sheet['B10'] = '=SUM(B2:B9)'
|
|
146
|
+
|
|
147
|
+
# Good: Growth rate as Excel formula
|
|
148
|
+
sheet['C5'] = '=(C4-C2)/C2'
|
|
149
|
+
|
|
150
|
+
# Good: Average using Excel function
|
|
151
|
+
sheet['D20'] = '=AVERAGE(D2:D19)'
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
This applies to ALL calculations - totals, percentages, ratios, differences, etc. The spreadsheet should be able to recalculate when source data changes.
|
|
155
|
+
|
|
156
|
+
## Common Workflow
|
|
157
|
+
1. **Choose tool**: pandas for data, openpyxl for formulas/formatting
|
|
158
|
+
2. **Create/Load**: Create new workbook or load existing file
|
|
159
|
+
3. **Modify**: Add/edit data, formulas, and formatting
|
|
160
|
+
4. **Save**: Write to file
|
|
161
|
+
5. **Recalculate formulas (MANDATORY IF USING FORMULAS)**: Use the recalc.py script
|
|
162
|
+
```bash
|
|
163
|
+
python /mnt/skills/public/xlsx/recalc.py output.xlsx
|
|
164
|
+
```
|
|
165
|
+
6. **Verify and fix any errors**:
|
|
166
|
+
- The script returns JSON with error details
|
|
167
|
+
- If `status` is `errors_found`, check `error_summary` for specific error types and locations
|
|
168
|
+
- Fix the identified errors and recalculate again
|
|
169
|
+
- Common errors to fix:
|
|
170
|
+
- `#REF!`: Invalid cell references
|
|
171
|
+
- `#DIV/0!`: Division by zero
|
|
172
|
+
- `#VALUE!`: Wrong data type in formula
|
|
173
|
+
- `#NAME?`: Unrecognized formula name
|
|
174
|
+
|
|
175
|
+
### Creating new Excel files
|
|
176
|
+
|
|
177
|
+
```python
|
|
178
|
+
# Using openpyxl for formulas and formatting
|
|
179
|
+
from openpyxl import Workbook
|
|
180
|
+
from openpyxl.styles import Font, PatternFill, Alignment
|
|
181
|
+
|
|
182
|
+
wb = Workbook()
|
|
183
|
+
sheet = wb.active
|
|
184
|
+
|
|
185
|
+
# Add data
|
|
186
|
+
sheet['A1'] = 'Hello'
|
|
187
|
+
sheet['B1'] = 'World'
|
|
188
|
+
sheet.append(['Row', 'of', 'data'])
|
|
189
|
+
|
|
190
|
+
# Add formula
|
|
191
|
+
sheet['B2'] = '=SUM(A1:A10)'
|
|
192
|
+
|
|
193
|
+
# Formatting
|
|
194
|
+
sheet['A1'].font = Font(bold=True, color='FF0000')
|
|
195
|
+
sheet['A1'].fill = PatternFill('solid', start_color='FFFF00')
|
|
196
|
+
sheet['A1'].alignment = Alignment(horizontal='center')
|
|
197
|
+
|
|
198
|
+
# Column width
|
|
199
|
+
sheet.column_dimensions['A'].width = 20
|
|
200
|
+
|
|
201
|
+
wb.save('output.xlsx')
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Editing existing Excel files
|
|
205
|
+
|
|
206
|
+
```python
|
|
207
|
+
# Using openpyxl to preserve formulas and formatting
|
|
208
|
+
from openpyxl import load_workbook
|
|
209
|
+
|
|
210
|
+
# Load existing file
|
|
211
|
+
wb = load_workbook('existing.xlsx')
|
|
212
|
+
sheet = wb.active # or wb['SheetName'] for specific sheet
|
|
213
|
+
|
|
214
|
+
# Working with multiple sheets
|
|
215
|
+
for sheet_name in wb.sheetnames:
|
|
216
|
+
sheet = wb[sheet_name]
|
|
217
|
+
print(f"Sheet: {sheet_name}")
|
|
218
|
+
|
|
219
|
+
# Modify cells
|
|
220
|
+
sheet['A1'] = 'New Value'
|
|
221
|
+
sheet.insert_rows(2) # Insert row at position 2
|
|
222
|
+
sheet.delete_cols(3) # Delete column 3
|
|
223
|
+
|
|
224
|
+
# Add new sheet
|
|
225
|
+
new_sheet = wb.create_sheet('NewSheet')
|
|
226
|
+
new_sheet['A1'] = 'Data'
|
|
227
|
+
|
|
228
|
+
wb.save('modified.xlsx')
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
## Recalculating formulas
|
|
232
|
+
|
|
233
|
+
Excel files created or modified by openpyxl contain formulas as strings but not calculated values. Use the provided `recalc.py` script to recalculate formulas:
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
python /mnt/skills/public/xlsx/recalc.py <excel_file> [timeout_seconds]
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
Example:
|
|
240
|
+
```bash
|
|
241
|
+
python /mnt/skills/public/xlsx/recalc.py output.xlsx 30
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
The script:
|
|
245
|
+
- Automatically sets up LibreOffice macro on first run
|
|
246
|
+
- Recalculates all formulas in all sheets
|
|
247
|
+
- Scans ALL cells for Excel errors (#REF!, #DIV/0!, etc.)
|
|
248
|
+
- Returns JSON with detailed error locations and counts
|
|
249
|
+
- Works on both Linux and macOS
|
|
250
|
+
|
|
251
|
+
## Formula Verification Checklist
|
|
252
|
+
|
|
253
|
+
Quick checks to ensure formulas work correctly:
|
|
254
|
+
|
|
255
|
+
### Essential Verification
|
|
256
|
+
- [ ] **Test 2-3 sample references**: Verify they pull correct values before building full model
|
|
257
|
+
- [ ] **Column mapping**: Confirm Excel columns match (e.g., column 64 = BL, not BK)
|
|
258
|
+
- [ ] **Row offset**: Remember Excel rows are 1-indexed (DataFrame row 5 = Excel row 6)
|
|
259
|
+
|
|
260
|
+
### Common Pitfalls
|
|
261
|
+
- [ ] **NaN handling**: Check for null values with `pd.notna()`
|
|
262
|
+
- [ ] **Far-right columns**: FY data often in columns 50+
|
|
263
|
+
- [ ] **Multiple matches**: Search all occurrences, not just first
|
|
264
|
+
- [ ] **Division by zero**: Check denominators before using `/` in formulas (#DIV/0!)
|
|
265
|
+
- [ ] **Wrong references**: Verify all cell references point to intended cells (#REF!)
|
|
266
|
+
- [ ] **Cross-sheet references**: Use correct format (Sheet1!A1) for linking sheets
|
|
267
|
+
|
|
268
|
+
### Formula Testing Strategy
|
|
269
|
+
- [ ] **Start small**: Test formulas on 2-3 cells before applying broadly
|
|
270
|
+
- [ ] **Verify dependencies**: Check all cells referenced in formulas exist
|
|
271
|
+
- [ ] **Test edge cases**: Include zero, negative, and very large values
|
|
272
|
+
|
|
273
|
+
### Interpreting recalc.py Output
|
|
274
|
+
The script returns JSON with error details:
|
|
275
|
+
```json
|
|
276
|
+
{
|
|
277
|
+
"status": "success", // or "errors_found"
|
|
278
|
+
"total_errors": 0, // Total error count
|
|
279
|
+
"total_formulas": 42, // Number of formulas in file
|
|
280
|
+
"error_summary": { // Only present if errors found
|
|
281
|
+
"#REF!": {
|
|
282
|
+
"count": 2,
|
|
283
|
+
"locations": ["Sheet1!B5", "Sheet1!C10"]
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
## Best Practices
|
|
290
|
+
|
|
291
|
+
### Library Selection
|
|
292
|
+
- **pandas**: Best for data analysis, bulk operations, and simple data export
|
|
293
|
+
- **openpyxl**: Best for complex formatting, formulas, and Excel-specific features
|
|
294
|
+
|
|
295
|
+
### Working with openpyxl
|
|
296
|
+
- Cell indices are 1-based (row=1, column=1 refers to cell A1)
|
|
297
|
+
- Use `data_only=True` to read calculated values: `load_workbook('file.xlsx', data_only=True)`
|
|
298
|
+
- **Warning**: If opened with `data_only=True` and saved, formulas are replaced with values and permanently lost
|
|
299
|
+
- For large files: Use `read_only=True` for reading or `write_only=True` for writing
|
|
300
|
+
- Formulas are preserved but not evaluated - use recalc.py to update values
|
|
301
|
+
|
|
302
|
+
### Working with pandas
|
|
303
|
+
- Specify data types to avoid inference issues: `pd.read_excel('file.xlsx', dtype={'id': str})`
|
|
304
|
+
- For large files, read specific columns: `pd.read_excel('file.xlsx', usecols=['A', 'C', 'E'])`
|
|
305
|
+
- Handle dates properly: `pd.read_excel('file.xlsx', parse_dates=['date_column'])`
|
|
306
|
+
|
|
307
|
+
## Code Style Guidelines
|
|
308
|
+
**IMPORTANT**: When generating Python code for Excel operations:
|
|
309
|
+
- Write minimal, concise Python code without unnecessary comments
|
|
310
|
+
- Avoid verbose variable names and redundant operations
|
|
311
|
+
- Avoid unnecessary print statements
|
|
312
|
+
|
|
313
|
+
**For Excel files themselves**:
|
|
314
|
+
- Add comments to cells with complex formulas or important assumptions
|
|
315
|
+
- Document data sources for hardcoded values
|
|
316
|
+
- Include notes for key calculations and model sections
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Safe data file preview — checks size, shows shape/head/describe without overflowing context."""
|
|
3
|
+
import argparse
|
|
4
|
+
import os
|
|
5
|
+
import sys
|
|
6
|
+
|
|
7
|
+
DISPLAY_COLS = 20 # Max columns to show in head/describe output
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def preview(file_path, max_rows=10, max_cols=None):
|
|
11
|
+
import pandas as pd
|
|
12
|
+
|
|
13
|
+
size_bytes = os.path.getsize(file_path)
|
|
14
|
+
size_mb = size_bytes / (1024 * 1024)
|
|
15
|
+
ext = os.path.splitext(file_path)[1].lower()
|
|
16
|
+
|
|
17
|
+
print(f"File: {os.path.basename(file_path)}")
|
|
18
|
+
print(f"Size: {size_mb:.1f} MB ({size_bytes:,} bytes)")
|
|
19
|
+
|
|
20
|
+
read_kwargs = {}
|
|
21
|
+
if size_mb > 1:
|
|
22
|
+
read_kwargs["nrows"] = 500
|
|
23
|
+
print(f"⚠ Large file — reading first 500 rows only")
|
|
24
|
+
|
|
25
|
+
if max_cols:
|
|
26
|
+
read_kwargs["usecols"] = list(range(max_cols))
|
|
27
|
+
|
|
28
|
+
if ext in (".csv", ".tsv"):
|
|
29
|
+
sep = "\t" if ext == ".tsv" else ","
|
|
30
|
+
df = pd.read_csv(file_path, sep=sep, **read_kwargs)
|
|
31
|
+
elif ext in (".xlsx", ".xls", ".xlsm"):
|
|
32
|
+
df = pd.read_excel(file_path, **read_kwargs)
|
|
33
|
+
elif ext == ".json":
|
|
34
|
+
df = pd.read_json(file_path)
|
|
35
|
+
if size_mb > 1:
|
|
36
|
+
df = df.head(500)
|
|
37
|
+
else:
|
|
38
|
+
print(f"Unsupported format: {ext}")
|
|
39
|
+
sys.exit(1)
|
|
40
|
+
|
|
41
|
+
total_cols = df.shape[1]
|
|
42
|
+
print(f"Shape: {df.shape[0]} rows x {total_cols} columns")
|
|
43
|
+
|
|
44
|
+
print(f"\n--- Column Types ---")
|
|
45
|
+
print(df.dtypes.to_string())
|
|
46
|
+
|
|
47
|
+
# Limit displayed columns to keep output manageable
|
|
48
|
+
if total_cols > DISPLAY_COLS:
|
|
49
|
+
display_df = df.iloc[:, :DISPLAY_COLS]
|
|
50
|
+
hidden = total_cols - DISPLAY_COLS
|
|
51
|
+
col_note = f" (showing first {DISPLAY_COLS} of {total_cols} columns, {hidden} hidden)"
|
|
52
|
+
else:
|
|
53
|
+
display_df = df
|
|
54
|
+
col_note = ""
|
|
55
|
+
|
|
56
|
+
print(f"\n--- First {max_rows} Rows ---{col_note}")
|
|
57
|
+
with pd.option_context("display.max_colwidth", 50, "display.width", 200):
|
|
58
|
+
print(display_df.head(max_rows).to_string())
|
|
59
|
+
|
|
60
|
+
print(f"\n--- Statistics ---{col_note}")
|
|
61
|
+
with pd.option_context("display.max_colwidth", 50, "display.width", 200):
|
|
62
|
+
print(display_df.describe(include="all").to_string())
|
|
63
|
+
|
|
64
|
+
if total_cols > DISPLAY_COLS:
|
|
65
|
+
print(f"\n⚠ {hidden} columns hidden. To see all: --cols {total_cols}")
|
|
66
|
+
print(f" Hidden columns: {', '.join(df.columns[DISPLAY_COLS:])}")
|
|
67
|
+
|
|
68
|
+
if size_mb > 1:
|
|
69
|
+
print(f"\n⚠ Only first 500 rows shown. Total file: {size_mb:.1f} MB")
|
|
70
|
+
print(
|
|
71
|
+
f" Use pd.read_csv('{file_path}', nrows=N) or usecols=[...] for targeted analysis."
|
|
72
|
+
)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
if __name__ == "__main__":
|
|
76
|
+
parser = argparse.ArgumentParser(description="Safe data file preview")
|
|
77
|
+
parser.add_argument("file", help="Path to data file (csv, xlsx, tsv, json)")
|
|
78
|
+
parser.add_argument(
|
|
79
|
+
"--rows", type=int, default=10, help="Number of rows to show (default: 10)"
|
|
80
|
+
)
|
|
81
|
+
parser.add_argument(
|
|
82
|
+
"--cols", type=int, help="Max number of columns to display (default: 20)"
|
|
83
|
+
)
|
|
84
|
+
args = parser.parse_args()
|
|
85
|
+
|
|
86
|
+
if not os.path.exists(args.file):
|
|
87
|
+
print(f"File not found: {args.file}")
|
|
88
|
+
sys.exit(1)
|
|
89
|
+
|
|
90
|
+
if args.cols:
|
|
91
|
+
DISPLAY_COLS = args.cols
|
|
92
|
+
|
|
93
|
+
preview(args.file, max_rows=args.rows, max_cols=args.cols)
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Excel Formula Recalculation Script
|
|
4
|
+
Recalculates all formulas in an Excel file using LibreOffice
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
import json
|
|
8
|
+
import sys
|
|
9
|
+
import subprocess
|
|
10
|
+
import os
|
|
11
|
+
import platform
|
|
12
|
+
from pathlib import Path
|
|
13
|
+
from openpyxl import load_workbook
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def setup_libreoffice_macro():
|
|
17
|
+
"""Setup LibreOffice macro for recalculation if not already configured"""
|
|
18
|
+
if platform.system() == 'Darwin':
|
|
19
|
+
macro_dir = os.path.expanduser('~/Library/Application Support/LibreOffice/4/user/basic/Standard')
|
|
20
|
+
else:
|
|
21
|
+
macro_dir = os.path.expanduser('~/.config/libreoffice/4/user/basic/Standard')
|
|
22
|
+
|
|
23
|
+
macro_file = os.path.join(macro_dir, 'Module1.xba')
|
|
24
|
+
|
|
25
|
+
if os.path.exists(macro_file):
|
|
26
|
+
with open(macro_file, 'r') as f:
|
|
27
|
+
if 'RecalculateAndSave' in f.read():
|
|
28
|
+
return True
|
|
29
|
+
|
|
30
|
+
if not os.path.exists(macro_dir):
|
|
31
|
+
subprocess.run(['soffice', '--headless', '--terminate_after_init'],
|
|
32
|
+
capture_output=True, timeout=10)
|
|
33
|
+
os.makedirs(macro_dir, exist_ok=True)
|
|
34
|
+
|
|
35
|
+
macro_content = '''<?xml version="1.0" encoding="UTF-8"?>
|
|
36
|
+
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd">
|
|
37
|
+
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="Module1" script:language="StarBasic">
|
|
38
|
+
Sub RecalculateAndSave()
|
|
39
|
+
ThisComponent.calculateAll()
|
|
40
|
+
ThisComponent.store()
|
|
41
|
+
ThisComponent.close(True)
|
|
42
|
+
End Sub
|
|
43
|
+
</script:module>'''
|
|
44
|
+
|
|
45
|
+
try:
|
|
46
|
+
with open(macro_file, 'w') as f:
|
|
47
|
+
f.write(macro_content)
|
|
48
|
+
return True
|
|
49
|
+
except Exception:
|
|
50
|
+
return False
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def recalc(filename, timeout=30):
|
|
54
|
+
"""
|
|
55
|
+
Recalculate formulas in Excel file and report any errors
|
|
56
|
+
|
|
57
|
+
Args:
|
|
58
|
+
filename: Path to Excel file
|
|
59
|
+
timeout: Maximum time to wait for recalculation (seconds)
|
|
60
|
+
|
|
61
|
+
Returns:
|
|
62
|
+
dict with error locations and counts
|
|
63
|
+
"""
|
|
64
|
+
if not Path(filename).exists():
|
|
65
|
+
return {'error': f'File {filename} does not exist'}
|
|
66
|
+
|
|
67
|
+
abs_path = str(Path(filename).absolute())
|
|
68
|
+
|
|
69
|
+
if not setup_libreoffice_macro():
|
|
70
|
+
return {'error': 'Failed to setup LibreOffice macro'}
|
|
71
|
+
|
|
72
|
+
cmd = [
|
|
73
|
+
'soffice', '--headless', '--norestore',
|
|
74
|
+
'vnd.sun.star.script:Standard.Module1.RecalculateAndSave?language=Basic&location=application',
|
|
75
|
+
abs_path
|
|
76
|
+
]
|
|
77
|
+
|
|
78
|
+
# Handle timeout command differences between Linux and macOS
|
|
79
|
+
if platform.system() != 'Windows':
|
|
80
|
+
timeout_cmd = 'timeout' if platform.system() == 'Linux' else None
|
|
81
|
+
if platform.system() == 'Darwin':
|
|
82
|
+
# Check if gtimeout is available on macOS
|
|
83
|
+
try:
|
|
84
|
+
subprocess.run(['gtimeout', '--version'], capture_output=True, timeout=1, check=False)
|
|
85
|
+
timeout_cmd = 'gtimeout'
|
|
86
|
+
except (FileNotFoundError, subprocess.TimeoutExpired):
|
|
87
|
+
pass
|
|
88
|
+
|
|
89
|
+
if timeout_cmd:
|
|
90
|
+
cmd = [timeout_cmd, str(timeout)] + cmd
|
|
91
|
+
|
|
92
|
+
result = subprocess.run(cmd, capture_output=True, text=True)
|
|
93
|
+
|
|
94
|
+
if result.returncode != 0 and result.returncode != 124: # 124 is timeout exit code
|
|
95
|
+
error_msg = result.stderr or 'Unknown error during recalculation'
|
|
96
|
+
if 'Module1' in error_msg or 'RecalculateAndSave' not in error_msg:
|
|
97
|
+
return {'error': 'LibreOffice macro not configured properly'}
|
|
98
|
+
else:
|
|
99
|
+
return {'error': error_msg}
|
|
100
|
+
|
|
101
|
+
# Check for Excel errors in the recalculated file - scan ALL cells
|
|
102
|
+
try:
|
|
103
|
+
wb = load_workbook(filename, data_only=True)
|
|
104
|
+
|
|
105
|
+
excel_errors = ['#VALUE!', '#DIV/0!', '#REF!', '#NAME?', '#NULL!', '#NUM!', '#N/A']
|
|
106
|
+
error_details = {err: [] for err in excel_errors}
|
|
107
|
+
total_errors = 0
|
|
108
|
+
|
|
109
|
+
for sheet_name in wb.sheetnames:
|
|
110
|
+
ws = wb[sheet_name]
|
|
111
|
+
# Check ALL rows and columns - no limits
|
|
112
|
+
for row in ws.iter_rows():
|
|
113
|
+
for cell in row:
|
|
114
|
+
if cell.value is not None and isinstance(cell.value, str):
|
|
115
|
+
for err in excel_errors:
|
|
116
|
+
if err in cell.value:
|
|
117
|
+
location = f"{sheet_name}!{cell.coordinate}"
|
|
118
|
+
error_details[err].append(location)
|
|
119
|
+
total_errors += 1
|
|
120
|
+
break
|
|
121
|
+
|
|
122
|
+
wb.close()
|
|
123
|
+
|
|
124
|
+
# Build result summary
|
|
125
|
+
result = {
|
|
126
|
+
'status': 'success' if total_errors == 0 else 'errors_found',
|
|
127
|
+
'total_errors': total_errors,
|
|
128
|
+
'error_summary': {}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
# Add non-empty error categories
|
|
132
|
+
for err_type, locations in error_details.items():
|
|
133
|
+
if locations:
|
|
134
|
+
result['error_summary'][err_type] = {
|
|
135
|
+
'count': len(locations),
|
|
136
|
+
'locations': locations[:20] # Show up to 20 locations
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
# Add formula count for context - also check ALL cells
|
|
140
|
+
wb_formulas = load_workbook(filename, data_only=False)
|
|
141
|
+
formula_count = 0
|
|
142
|
+
for sheet_name in wb_formulas.sheetnames:
|
|
143
|
+
ws = wb_formulas[sheet_name]
|
|
144
|
+
for row in ws.iter_rows():
|
|
145
|
+
for cell in row:
|
|
146
|
+
if cell.value and isinstance(cell.value, str) and cell.value.startswith('='):
|
|
147
|
+
formula_count += 1
|
|
148
|
+
wb_formulas.close()
|
|
149
|
+
|
|
150
|
+
result['total_formulas'] = formula_count
|
|
151
|
+
|
|
152
|
+
return result
|
|
153
|
+
|
|
154
|
+
except Exception as e:
|
|
155
|
+
return {'error': str(e)}
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
def main():
|
|
159
|
+
if len(sys.argv) < 2:
|
|
160
|
+
print("Usage: python recalc.py <excel_file> [timeout_seconds]")
|
|
161
|
+
print("\nRecalculates all formulas in an Excel file using LibreOffice")
|
|
162
|
+
print("\nReturns JSON with error details:")
|
|
163
|
+
print(" - status: 'success' or 'errors_found'")
|
|
164
|
+
print(" - total_errors: Total number of Excel errors found")
|
|
165
|
+
print(" - total_formulas: Number of formulas in the file")
|
|
166
|
+
print(" - error_summary: Breakdown by error type with locations")
|
|
167
|
+
print(" - #VALUE!, #DIV/0!, #REF!, #NAME?, #NULL!, #NUM!, #N/A")
|
|
168
|
+
sys.exit(1)
|
|
169
|
+
|
|
170
|
+
filename = sys.argv[1]
|
|
171
|
+
timeout = int(sys.argv[2]) if len(sys.argv) > 2 else 30
|
|
172
|
+
|
|
173
|
+
result = recalc(filename, timeout)
|
|
174
|
+
print(json.dumps(result, indent=2))
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
if __name__ == '__main__':
|
|
178
|
+
main()
|
package/tests/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Tests
|
|
2
|
+
|
|
3
|
+
Validation scripts for the project. Run before submitting PRs.
|
|
4
|
+
|
|
5
|
+
## Running Tests
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# All tests (no Docker required for first two)
|
|
9
|
+
./tests/test-no-corporate.sh
|
|
10
|
+
./tests/test-project-structure.sh
|
|
11
|
+
|
|
12
|
+
# Requires built Docker image
|
|
13
|
+
./tests/test-docker-image.sh [image-name]
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Default image: `open-computer-use:latest`.
|
|
17
|
+
|
|
18
|
+
## Test Scripts
|
|
19
|
+
|
|
20
|
+
| Script | What it validates | Docker required |
|
|
21
|
+
|--------|-------------------|-----------------|
|
|
22
|
+
| `test-no-corporate.sh` | No corporate/internal references leak into codebase | No |
|
|
23
|
+
| `test-project-structure.sh` | Correct directory structure (12 checks) | No |
|
|
24
|
+
| `test-docker-image.sh` | Docker image contents: npm packages, CLI tools, Python packages, Playwright, volume size, permissions | Yes |
|
|
25
|
+
|
|
26
|
+
## test-no-corporate.sh
|
|
27
|
+
|
|
28
|
+
Scans all project files against patterns in `corporate-patterns.txt`. Catches internal domains, hardcoded API keys, registry URLs, and service accounts that shouldn't be in open-source code.
|
|
29
|
+
|
|
30
|
+
## test-project-structure.sh
|
|
31
|
+
|
|
32
|
+
Verifies the expected project layout: `computer-use-server/`, `openwebui/`, required files, no legacy directories, docker-compose services, `.env.example` variables.
|
|
33
|
+
|
|
34
|
+
## test-docker-image.sh
|
|
35
|
+
|
|
36
|
+
Runs inside the Docker image to verify:
|
|
37
|
+
- Node.js CommonJS `require()` and ESM `import` work
|
|
38
|
+
- CLI tools available: `mmdc`, `tsc`, `tsx`, `claude`
|
|
39
|
+
- Python packages: `docx`, `pptx`, `openpyxl`, `playwright`
|
|
40
|
+
- npm package layout (`/home/node_modules/` vs `/home/assistant/`)
|
|
41
|
+
- Volume size (`/home/assistant/` < 1MB — packages should be outside)
|
|
42
|
+
- File permissions and guard files
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"captured_from": "v0.9.2.0",
|
|
4
|
+
"source": "computer-use-server/mcp_tools.py:967-1019 (NEW SESSION) and :962-973 (RESUME)",
|
|
5
|
+
"captured_at": "2026-04-26",
|
|
6
|
+
"purpose": "Phase 4 ADAPT-02 byte-compat — proves cli_adapters/claude.py:ClaudeAdapter.build_argv produces the same argv as the v0.9.2.0 production code at the argv layer (the surrounding shell-execution wrapper stays in mcp_tools.sub_agent through Phase 6)."
|
|
7
|
+
},
|
|
8
|
+
"new_session": {
|
|
9
|
+
"inputs": {
|
|
10
|
+
"task": "Read and execute your task plan from /home/assistant/task_plan.md",
|
|
11
|
+
"system_prompt": "<critical_instruction>\nYour task plan is saved at /home/assistant/task_plan.md\n</critical_instruction>",
|
|
12
|
+
"model": "claude-sonnet-4-6",
|
|
13
|
+
"max_turns": 25,
|
|
14
|
+
"timeout_s": 3600
|
|
15
|
+
},
|
|
16
|
+
"expected_argv": [
|
|
17
|
+
"claude",
|
|
18
|
+
"-p", "Read and execute your task plan from /home/assistant/task_plan.md",
|
|
19
|
+
"--model", "claude-sonnet-4-6",
|
|
20
|
+
"--append-system-prompt", "<critical_instruction>\nYour task plan is saved at /home/assistant/task_plan.md\n</critical_instruction>",
|
|
21
|
+
"--max-turns", "25",
|
|
22
|
+
"--permission-mode", "bypassPermissions",
|
|
23
|
+
"--disallowedTools", "AskUserQuestion,ExitPlanMode",
|
|
24
|
+
"--output-format", "json"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"resume": {
|
|
28
|
+
"inputs": {
|
|
29
|
+
"task": "Continue working on the task. If needed, re-read /home/assistant/task_plan.md for full context.",
|
|
30
|
+
"system_prompt": "",
|
|
31
|
+
"model": "claude-sonnet-4-6",
|
|
32
|
+
"max_turns": 25,
|
|
33
|
+
"timeout_s": 3600,
|
|
34
|
+
"resume_session_id": "abc-123-session"
|
|
35
|
+
},
|
|
36
|
+
"expected_argv": [
|
|
37
|
+
"claude",
|
|
38
|
+
"-p", "Continue working on the task. If needed, re-read /home/assistant/task_plan.md for full context.",
|
|
39
|
+
"--resume", "abc-123-session",
|
|
40
|
+
"--max-turns", "25",
|
|
41
|
+
"--permission-mode", "bypassPermissions",
|
|
42
|
+
"--disallowedTools", "AskUserQuestion,ExitPlanMode",
|
|
43
|
+
"--output-format", "json"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|