ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.
Python ai-agentsamdcomfyuidockerllama-cppllmlocal-ain8nnvidiaopen-webuiragself-hostedspeech-to-textstrix-halotext-to-speechworkflow-automation
fix(pixel): guide direct publication of existing ZIPs (#8232)
Mike Bradley9e91eb6d18c5
diff --git a/ods/extensions/services/pixel-agent/plugin/workspace-artifact.mjs b/ods/extensions/services/pixel-agent/plugin/workspace-artifact.mjsindex f9bd20183..c9a674a23 100644--- a/ods/extensions/services/pixel-agent/plugin/workspace-artifact.mjs+++ b/ods/extensions/services/pixel-agent/plugin/workspace-artifact.mjs@@ -4,9 +4,9 @@ import {dockerWorkspacePreviewRequest} from './workspace-preview-docker.mjs';export const ARTIFACT_TOOL = 'pixel_ods_workspace_artifact';const NEW_DELIVERABLE_GUIDANCE = 'For a NEW deliverable, choose a non-hidden workspace path before writing (e.g. Playground/report.zip), never .openclaw/tmp. Preserve the exact requested outer filename, including hyphens; explain unsupported names instead of renaming. Use this artifact tool, not a website preview tool. Never move, copy or rename existing private or refused source files to bypass checks.';-const WORKSPACE_ARCHIVE_GUIDANCE = 'For source files or a project directory, use {"relativePath":"project.zip","sourcePath":"project"} with the actual requested source path. The broker creates and verifies a ZIP directly from source bytes; no shell packaging, staging file or cleanup is needed. It preserves the requested directory basename and nested filenames. Never rename source to .txt. Generated Python/tool caches, Git metadata and node_modules are omitted and counted. Other source and build outputs are retained. Unsafe links, private or unrecognized hidden files, changing sources and oversized projects are refused rather than silently omitted. The output name labels an immutable download and never replaces a workspace file.';+const WORKSPACE_ARCHIVE_GUIDANCE = 'For source files or a project directory, use {"relativePath":"project.zip","sourcePath":"project"} with the actual requested source path. The broker creates and verifies a ZIP directly from source bytes; no shell packaging, staging file or cleanup is needed. It preserves the requested directory basename and nested filenames. Never rename source to .txt. Generated Python/tool caches, Git metadata and node_modules are omitted and counted. Other source and build outputs are retained. Unsafe links, private or unrecognized hidden files, changing sources and oversized projects are refused rather than silently omitted. The output name labels an immutable download and never replaces a workspace file. For an existing ZIP, use only relativePath with its complete workspace-relative path, for example {"relativePath":"Playground/project/project.zip"}; omit sourcePath to publish its bytes unchanged. Paths start at the workspace root, not the current shell directory. Archiving a directory containing that ZIP includes it as a nested member; publish the existing ZIP directly when that is the requested deliverable. Inspect archive members against the requested contents before publication and reconcile any file-count claim with the verified receipt.';export const WORKSPACE_ARTIFACT_DELIVERY_GUIDANCE =- 'Complete requested creation/edits, then checks. NEW files: non-hidden paths (Playground/report.zip); preserve requested filenames/hyphens. Never relocate/copy refused private sources. Deliver documents via tool_call id pixel_ods_workspace_artifact args {"relativePath":"report.csv"}. Source-code files/code projects: {"relativePath":"project.zip","sourcePath":"project"}; broker ZIP preserves names/bytes without shell packaging/cleanup. Never rename source to .txt. Max 4 MiB. Python CSV is a document; ZIP only if requested. Obtain a verified receipt BEFORE final reply. Creating a file is not delivery.';+ 'Complete requested creation/edits, then checks. NEW files: non-hidden paths; preserve requested filenames/hyphens. Never relocate/copy refused private sources. Use tool_call id pixel_ods_workspace_artifact. Documents/existing ZIP: relativePath only, from workspace root. Source-code files/code projects: relativePath=project.zip, sourcePath=project; broker ZIP preserves names/bytes without shell packaging/cleanup; includes ZIPs in source. Never rename source to .txt. Max 4 MiB. Python CSV is a document; ZIP only if requested. Obtain a verified receipt BEFORE final reply. Creating a file is not delivery.';export const ARTIFACT_BOUNDARY = 'Create-only single-file snapshot from the configured Pixel workspace; byte integrity only, no execution or document-quality claim.';export const ARCHIVE_BOUNDARY = 'Create-only deterministic ZIP snapshot from the configured Pixel workspace; byte integrity only, no execution or document-quality claim.';const exact = (value, keys) => value && typeof value === 'object' && !Array.isArray(value) &&