Archived documentation for
@eco-incorp/sauce@0.99.16. Install this release with npm install --save-exact @eco-incorp/sauce@0.99.16. Links to guides outside this tab open current documentation.Prerequisites
- The
saucecommand or the package installed. See Installation. - Node.js 24 or newer.
Check for an update
sauce update --check reads the npm registry. It prints the installed version, how the command was installed, and the version an update would install. It installs nothing:
The update notice
After a command, one line on stderr says when a newer release is published:~/.sauce/update-check.json, which is refreshed from the npm registry at most once a day, in a background process that no command waits for. The first command after a release may not show the line yet. It goes to stderr only, so --json output and stdout pipes are unaffected.
To turn the notice off:
- pass
--no-update-check, which every command takes, before or after the command name; - or add
"updateCheck": falseto the--configfile a command is given.
--offline also turns it off. sauce mcp prints no notice: it adds a note to its first tool result instead.
Update
- Global install
- A project's dependency
- npx
sauce then updates the agent skills installed in the current directory and prints what changed. Where the replaced version had its runtime packages installed, the new version installs its own.sauce update --version <version|tag> installs a given version or dist-tag instead of latest. From any other kind of installation, sauce update refuses and prints npm’s global install command.
Check after updating
Agent skills
The skills in a project are copies from one version of the package.status exits 1 while any target is outdated or not installed. Run it in CI to catch a package upgrade the skills have not followed. To bring the skills to the installed version:
update adds new skill files, replaces changed ones and removes retired ones. A file you edited since it was installed is kept and its diff is shown, unless you pass --force. See sauce skills.
Runtime packages
sauce mcp, and a Solana simulation in a local copy, load packages each version installs for itself in ~/.sauce/runtime/<version>.
sauce runtime install. Older versions’ folders are then removed, except the newest of them. See sauce runtime.
The MCP entry
sauce mcp setup writes npx -y @eco-incorp/sauce@<version> mcp into each agent’s project file. Rewrite it for the new version, then restart the agent’s session:
sauce mcp uses the global version after sauce update.
Compiled programs and unsigned transactions
A program is compiled by the compiler the package pins and run by the engine paired with that compiler. Compiler output and engines pair by exact version: an engine runs only the output of its paired compiler. See V12.- Recompile after you upgrade. Do not store bytecode and send it later through a newer version. The
saucecommand compiles the file you give it on every run. - Rebuild unsigned transactions. A cook printed by
sauce txbefore the upgrade names the previous engine. Build it again. - Check that the engine is deployed on the chain you send on:
sauce pot --chain <chain> --owner <address>reports it. - Simulate again before you send with funds. See the production checklist.
- Know which release made each Pot.
sauce pot listshows each recorded Pot with the release it was created under. - In TypeScript, every SDK builder that names an engine checks the pairing and throws for an engine paired with a different compiler. Troubleshooting shows the message.
Settlement pins
A compiler upgrade can change a program’s bytes without changing its source, so a settle program’s hash changes with it. Import the SDK’s pins (SETTLE_WIRE from @eco-incorp/sauce/verify) rather than copying their values. The default check accepts the current pin only. To keep accepting an earlier version, pass its pin explicitly as a { hash, bytes } record, or sauce verify --pin <hash:bytes> on the command line. See Verification.
Breaking changes from the previous release
This release moves the compiler and every engine and Kitchen together. Update them together: recompile every program and rebuild every transaction. Each change below says what to do.Arguments are ABI-encoded only
Program inputs are always ABI-encoded (entryEncoding is "abi-v1"). Compact arguments are removed.
A raw
compile() result now carries entryParams. A top-level fixed-size tuple parameter is marked indirect: true; encode it as the ABI encodes a dynamic value. See Compiling.
Signed values: Int256
Negative literals, ABI intN outputs and Math.signExtend results are Int256, and the arithmetic and comparison operators are signed on Int256 values.
Unread call results are not checked
On EVM chains, a bound contract call whose result the program never reads is not decoded or validated, even when it is assigned to an unused variable. A successful empty or malformed reply, or a call to an address with no code, then passes.- Read the result where you rely on it: reading any part decodes and checks every declared output.
- Check
ctx.isContract(address)where a target must have code. - Move tokens with the SDK’s checked writes (
USDC.transfer,@sauce/token). A rawIERC20.at(token).transfer(...)with a discarded result does not check the reply.
abi.decode stays checked.
try/catch on EVM chains
A try block of several statements is atomic: on failure, its calls, storage writes and variable assignments are rolled back before catch runs. Assignments roll back too, unlike JavaScript. Work before the block stays. A try around a single external call, and .catch() on a call, cover that call’s failure only, not the decoding of a successful reply. The handler receives at most 256 bytes of revert data, which may be empty or truncated: check it before decoding it. Solana programs have no try/catch.
Review each recovery path and simulate it. A statement-form .catch() on a bound method with a narrow integer output, such as uint128, can be refused at compile time. For a method with one output, use the value form and read its result: const value = call.catch(() => { return 0; });.
The Pot is pot, and the native coin .balance
Each has one spelling, with no alias. The old spellings no longer compile, and each error names the new one.
upgrade.sauce.ts
self.ETH stops at its first old spelling:
- Rename in programs only. The
"self"value of an actions document ("recipient": "self") and of the TypeScript token, deposit and actions APIs is unchanged, so a project-wide replace ofselfbreaks them.ctx.self(),ctx.balance(x)andctx.selfBalance()are unchanged. - A program that declares or imports its own
potorselfowns the name, and so does a compile whosedefinesorcontractsgive one. Apotthat only anambientmodule exports is refused, naming its line and column: writectx.self()for the Pot, or import the module’spotby name. .SYMBOLalways reads a token the chain registers. On Arc, whose native coin is USDC,pot.USDCreads the 6-decimal token andpot.balancethe 18-decimal coin, whereself.USDCwas refused as ambiguous..balancereads a field wherever it did: on a record, a list, a valueabi.decodereturns, and a struct a contract call returns. For the native coin of such a value, writectx.balance(x).- On Solana,
pot.owneris refused. An account’s.owneris the program that owns it, so it read the program owning the Pot’s account. The refusal namesSolana.owner, the owner who signs the cook. - On Solana, bare
potis the Pot’s signer slot,Account<Signer>, whereSolana.selfwas. A program that namespotanywhere derives its accounts from the Pot (pot,pot:USDC), so a cook--via engine, which has no Pot, refuses it; for a direct cook write the signer’s account (Solana.owner, orctx.self()as a token holder) where you wrotepot. A program that never namespotderives them fromauthority(authority:USDC) and runs either way. - In
--accountvalues and Solana derivations,selfisauthority: the account that signs the engine call, the Pot through the Kitchen and the owner with--via engine.self:<TOKEN>isauthority:<TOKEN>, in apda:seed too, where a bareauthorityseed is now that key’s 32 bytes: write"authority"for the word. An account given for a slot derived from the Pot, the owner or the authority must be the account its derivation gives, or the command exits 2. See Solana from the CLI.
Test a name instead of calling available(X)
Every registry name is declared on every chain, and a name the chain lacks is zero there. available(...) is removed: a call to it is refused with “available(X) is removed: test the name itself, if (X).” Where you wrote available(X), write if (X) { … }, if (!X) return 0;, X != 0 or X ? a : b:
upgrade-presence.sauce.ts
- The branch a test rules out is still not compiled, and the program’s bytes do not change from the
available(X)form. - A use of the name outside such a branch is refused at the use, naming the chain, and so is
require(X != 0)on a chain withoutX. A decision held in a variable (const has = X != 0; if (has) { … }) is not a test. &&and||givetrueorfalseon a contract too:const a = UniswapV3.Factory; return a || 0;returnstrue. A program’s ownIERC20.at(x) || yas a value used to return the operand’s address; it returns the bool now.- The names are not a module. A program reads them with no import;
import … from "@sauce/chain"is refused.
Pots on EVM chains
Solana
The engine program id and the Kitchen’s cook format change: the Kitchen validates the Pot account with its salt and canonical bump, which the builders derive. Rebuild every cook and staged-cook instruction with this SDK, and never replay a serialized cook built earlier. High-level builder calls take the same arguments. A hand-built cook prependsbuildHeapFramePrepend() once.
The sauce command, the MCP server and the library
Next steps
- Production checklist: before running the upgraded version with funds.
- Troubleshooting: when something stopped working after the update.
- sauce update: every flag of the command.
