Expand description
Managed workspace-local temporary artifacts for model-driven helpers.
Initialize advertises one stable directory per Winx session under
<workspace>/.winx/tmp/. The directory is intentionally not created until a
file tool actually needs it, so merely inspecting a repository does not
dirty its working tree. File tools enforce a small path and storage budget;
Bash remains governed by its own operator-selected command policy.
Structs§
- Agent
Temp Info - Policy information returned by
Initializeand reused by file-tool errors. - Temp
Edit - A resolved edit and its size change, used to validate a
MultiFileEditagainst the workspace-wide quota before any file is committed.
Constants§
- MAX_AGE
- Session directories with no filesystem activity for this long are pruned when another session initializes in the same workspace.
- MAX_
COMPONENT_ BYTES - Prevent payloads from being smuggled into a filename or directory component.
- MAX_
FILE_ BYTES - One helper should remain small enough to inspect and remove cheaply.
- MAX_
RELATIVE_ COMPONENTS - Depth beneath the session directory, including the target filename.
- MAX_
RELATIVE_ PATH_ BYTES - Bound the whole session-relative path independently of component count.
- MAX_
TOTAL_ BYTES - Workspace-wide budget shared by all managed temporary sessions.
Functions§
- prepare_
session - Return the session policy and best-effort prune expired sibling sessions.
The active directory is not created here;
FileWriteOrEditcreates it on demand through its normal parent-directory path. - session_
info - Compute the stable session directory without touching the filesystem.
- validate_
bash_ command - Reject statically visible shell writes that bypass the managed session area.
- validate_
batch_ quota - Validate the aggregate size of a
MultiFileEditafter every target has been planned and duplicate paths have been rejected. - validate_
edit_ target - Validate one
FileWriteOrEdittarget. Non-temporary project files keep their existing behavior; only legacy Winx root artifacts and.winx/tmpreceive this additional governance.