Repository navigation
xTerminal 3.0.4.0
xTerminal v3.0.4.0
This release expands the C# development experience in xTerminal and delivers a broad security-hardening pass across password storage, downloads, archives, spreadsheets, command history, and installation.
Highlights
NuGet packages in C# workflows
-
Added NuGet package directives for C# files used by
ccs, add-ons, and the TermXT editor:// nuget: Newtonsoft.Json 13.0.3 -
Added TermXT editor commands for package management:
:nuget <package>adds the latest stable version.:nuget list packageslists packages used by the current buffer.:nuget add <package> [version]adds a package with an optional version.:nuget remove <package>removes a package.:nuget restorerestores the declared packages.
-
Package references and compatible dependencies are resolved for compilation, diagnostics, IntelliSense, and execution.
TermXT editor improvements
- Added
Ctrl+Din normal and insert modes to duplicate the current line while preserving the cursor position and undo history. - Improved function-name syntax highlighting and added regression coverage for declarations, invocations, member calls, and language keywords.
- Updated editor help and the README with the new shortcut and NuGet commands.
C# runner pipe support
ccscan now receive a C# file path from the preceding stage of a pipe.- Standard output from a compiled C# program can now be passed to the next pipe stage.
Security hardening
Password vault encryption pwm
- Replaced deterministic password-derived encryption with AES-256-GCM authenticated encryption.
- Master keys are derived with Argon2id and a random per-vault salt.
- Vault payloads now store a version, salt, nonce, KDF parameters, ciphertext, and authentication tag.
- Modified ciphertext and incorrect passwords fail authentication instead of returning unauthenticated data.
- Existing vaults remain readable and migrate to the new format after successful access.
- Cryptographic key material is cleared from memory where possible.
Safe archive staging and cleanup zip
- Archive creation uses a unique system-generated temporary directory instead of the predictable
tmpZipfolder. - Temporary data is removed only when it was created by the active archive operation.
- Recursive deletion no longer follows junctions, symbolic links, or other directory reparse points.
- Reparse-point source directories are rejected when creating multi-input archives.
Secure destinations wget
- Download filenames are derived from the normalized URI path instead of raw URL text.
- Directory separators, invalid filenames, trailing dots or spaces, and reserved Windows device names are rejected.
- The canonical destination path is verified to remain inside the requested directory.
- Existing files are no longer silently overwritten.
- Only absolute HTTP and HTTPS URLs are accepted.
Spreadsheet resource limits xcel
- Added limits for file size, worksheet count, rows, columns, and materialized cells.
- XLSX files now have per-entry and total expanded-size limits.
- Excessive ZIP compression ratios are rejected before XML parsing.
- DTD processing is disabled for XLSX XML content.
- Invalid or oversized XLSX and SpreadsheetML row and column references are rejected before allocation.
Command-history credential protection ch
- Passwords, access tokens, API keys, authorization headers, credentials embedded in URLs, and sensitive
waifuarguments are redacted before entering interactive or on-disk history. - Existing entries are sanitized when command history is loaded.
- Redacted values are replaced with
[SECRET].
Installer trust hardening
- Installer payloads and resources are resolved relative to
AppContext.BaseDirectory; the process working directory is no longer trusted. - Payload and destination reparse points are rejected.
- A SHA-256 payload manifest is required and verified before installation.
- The installer explicitly uses the
asInvokerexecution level for its per-user installation. - Added
xInstaller/generate-payload-manifest.ps1for package creation.
Upgrade and packaging notes
-
Vaults written in the new format may not be readable by older xTerminal versions. Back up existing vaults before downgrading.
-
wgetnow reports an error when the target file exists; remove or rename the file before downloading again. -
Spreadsheets exceeding the new safety limits are rejected instead of being partially loaded.
-
Installer packages must contain
data/payload.sha256. Generate it after assembling the completedatadirectory:.\xInstaller\generate-payload-manifest.ps1 -PackageDirectory <installer-package-directory>
What's Changed
Full Changelog: v3.0.3.0...v3.0.4.0