Repository navigation
v0.101.2
Install or update: npm i -g cotal-ai@0.101.2
Changes in this release
- A manager command such as
cotal ps,cotal stoporcotal spawn --on, andcotal sendwith the other commands that open a one-shot connection, now connects again when the broker refuses the connection or it does not open within 5 seconds: nothing was sent, so up to 4 attempts are made 1 second apart. A view the auth service refused for a moment, or an auth service that answered after the broker's callout timeout, now just works. These commands used to stop at the first refusal, or wait 20 seconds and end asOPERATION_UNKNOWN(exit 3) with a baretimeout. When every attempt fails, the command says nothing was sent and is refused, exit 2:PERMISSION_DENIEDwhen the broker refused each attempt andTARGET_UNAVAILABLEwhen none opened in time. An endpoint takes atransportConnectTimeoutMsoption for its first connect. - Use Node's native Ed25519 signer for NATS user credentials, auth-callout responses and authority-client renewals, reducing signing CPU cost while preserving the existing key formats, signature bytes and authorization checks.
- A command in a project folder whose stack is stopped with no registration, as after the
downof a
space not named after its folder or in a moved project, now refusesTARGET_UNAVAILABLEwith another
space selected too, naming the space its account names andcotal upthere. It used to reach the
selected space, sosendstored the message there andpslisted that space's manager. cotal upnow refusesCONFLICT, exit 2, when its address is one that a space registered for
another folder keeps while stopped, naming that space and folder, and starts nothing. It used to start
there, after which that stack'sdownrefused and a read in the other folder deleted that space's
registration. A takeover of that space's name is unchanged.- A second bare
cotal downin a stopped project whose space is named after its folder now reports
that the stack there is not running, namescotal up, and exits 0. Since that space keeps its
registration afterdown, it exited 1 with only "Nothing running for the local stack (no recorded
pidfiles)." and no next step. - Keep self-update installation and reconciliation running safely after Ctrl-C, then exit with the interruption status once the package tree is usable.
What's Changed
- fix(cli): finish self-update safely after terminal interrupts by @davidfarah2003 in #4771
- fix(cli): keep a stopped registered project off other folders and answer its second down by @davidfarah2003 in #4773
- fix(cli): connect again when a pre-publish dial is refused or times out by @davidfarah2003 in #4774
- fix(auth): use native Ed25519 signing for NATS credentials by @davidfarah2003 in #4775
- chore(release): version packages by @davidfarah2003 in #4772
Full Changelog: v0.101.1...v0.101.2