npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@finchtech/cli

v0.7.2

Published

Finch Agent CLI for wallet custody, Session-owned execution, and MCP OAuth approval.

Readme

Finch Agent CLI

File transfers and Task workbooks (CLI 0.5.7+)

The source release target is CLI 0.7.2. After official npm publication is verified, install pnpm add --global @finchtech/[email protected] and check finch --version for the commands below, including separate A2A Direct and AgentOn tokens. Website/MCP deployment and these instructions do not upgrade an installed executable. The manifest/envelope contract and original signed-transaction recovery introduced in CLI 0.5.6 remain supported.

Task merchants can use finch task workbook-export <TASK_ID> --out-file <ABSOLUTE_PATH> [--selection] [--locale <en|zh|zh-TW>] to download the same private image-bearing XLSX as the website. The active CLI Session must own the Task; the server verifies the requester Account. The destination directory must be private and the file must not already exist. This file action never signs or pays awards.

After exporting with --selection and editing winner marks, run finch task workbook-parse --path <FILE.xlsx>. This command works offline without consulting FINCHTECH_HOME, a wallet or a Session. It reads at most 32 MiB, preserves the original file, discards embedded media and returns a bounded selection manifest with previewed: false and paymentExecuted: false. A plain report is not a selection template; an unmarked template returns empty. Send {taskId, selection} to task_market_task_workbook_preview; inspect current evidence, wallets, remaining slots and window before obtaining explicit confirmation. Then use task_market_task_workbook_prepare with the same selection, confirmed: true and an idempotency key. Preparation revalidates current facts and returns the existing award-sign handoff; local parsing alone grants no award authority. These commands require CLI 0.5.7 or newer. CLI 0.7.2 fixes parsing of valid selection workbooks containing hyperlinks or formatted tables. If a checked row has no final submission or wallet, it reports unselectable with the worksheet row number. Upgrade the executable after official publication to receive these fixes; preview and explicit merchant confirmation remain required.

CLI 0.5.7 adds finch upload --ref <REF> --path <FILE> for server-issued ordinary-file references. It checks the current Session, protects the first file identity/digest before sending, and queries the same reference after response loss. Its output contains only state and a durable product reference; business save/publish remains separate. Skill package, manifest and cover bytes use this shared transport internally, retaining their generated bytes, keys and original upload references for recovery; users continue the original Skill command rather than uploading intermediate files manually. Use the exact reference and command returned by Remote MCP. The configured Finch endpoint must support this transfer type.

Task participant results and existing Get Help contests use Remote MCP's task_market_task_result, task_market_task_contest_begin and task_market_task_contest_finish; they add no local CLI command. For optional support screenshots, use the begin response's exact finch upload --ref REF --path FILE references and then finish with its original Task and key. Uploaded bytes alone are not a filed support request; require submitted:true with the FH receipt. Screenshots require CLI 0.5.7 or newer; text-only intake needs no new local capability. Full flow and recovery: Task participant results.

Once the official 0.7.2 npm release is available, install it with pnpm add --global @finchtech/[email protected], then run finch --help. The primary executable is finch; finchtech is an equivalent fallback for machines where another application already owns the finch command.

The Finch Agent CLI stores wallet keys and AgentCLI Session bearers only in an owner-only FINCHTECH_HOME, which defaults to ~/.finchtech; secrets are never accepted as command arguments or emitted to stdout.

For an existing private key, run finch wallet use --file <PATH> on a fresh installation, then finch login --help to choose an authentication chain. The file must contain a single 32-byte hex private key (64 hexadecimal digits, optionally prefixed with 0x) and have owner-only permissions. First import is offline and makes that wallet current. finch wallet create generates a new identity instead. finch wallet list shows offline the current wallet and every registered address; finch wallet use <ADDRESS> accepts only one of those addresses. An existing Account switch with a stored Session revokes that Account before changing the current wallet. With no stored Session, switching is offline and does not claim remote revocation. A pending login must be recovered before switching; other partial or corrupt Session state requires explicit repair. Incomplete wallet files require recovery from backup; residual local authorization requires restoring the original wallet or explicitly clearing local authorization with finch logout --local.

finch logout revokes Account-bound CLI/MCP remote authority before removing local Session and grant state. finch logout --local clears only local session/ and grants/, makes no network request and reports remoteRevoked: false. Both preserve profiles, registered wallets and transaction/publication journals. Ordinary logout and wallet switching proceed independently of unfinished journals; resume a journal later with its original wallet and matching Account/environment.

CLI-authored EVM addresses accept canonical lowercase or valid EIP-55 input and are normalized to lowercase before request validation and transport. Invalid mixed-case and uppercase forms are rejected. Remote responses and Remote MCP plans remain strictly lowercase so normalization cannot change signed or hashed plan bytes.

Valid remote Identity, Agent, Task, Skill, and OAuth errors are emitted in their original domain envelope with the remote trace ID. Local transport failures use CLI_REMOTE_UNAVAILABLE; malformed or contract-invalid responses use CLI_RESPONSE_INVALID. Locally synthesized failures carry a local trace ID matching the secret-safe finch_cli_local_failure record on stderr. This identifies a local attempt, not a server request.

Remote MCP technical failures use stable public codes API_CONNECTION_FAILED, API_TIMEOUT, API_RATE_LIMITED, and API_RESPONSE_INVALID. Authentication and permission failures reuse the family codes (UNAUTHORIZED/FORBIDDEN for Skill and Task; Agent/Identity use their existing auth/scope codes). Unknown failures retain the family internal/store code. A technical code describes the reason, not whether a write executed: on an unknown write outcome, read the resource before deciding whether to retry. MCP text includes the available trace; protocol failures link the tool trace to the upstream trace in secret-safe diagnostics. Response-body socket failures and timeouts retain their category for JSON and Artifact downloads, separately from malformed JSON.

Skill upload failures also retain the final uploadBytes, uploadObjectKind, HTTP remoteStatus (null when no response was obtained), and available allowlisted remoteCode, remoteRequestId, and remoteTraceId in the JSON-encoded state. Locally synthesized errors retain null reasonCode; local traceId and explicitly labelled downstream evidence in state identify separate diagnostic boundaries. These fields never include raw response text, upload filenames, credentials, or transport causes. not_attempted refers only to chain submission: storage may have accepted an object before a response was lost. Follow contact_support until the individual attempt is reconciled; another publication's status is not evidence about this attempt.

ZIP import failures return AGENT_MARKET_REQUEST_INVALID, exit code 2, and fix_request before upload. The JSON-encoded state identifies SKILL_SOURCE_ZIP_INVALID and a zipReason: archive_too_large, expanded_content_too_large, utf8_flag_missing, filename_encoding_invalid, or invalid_archive. Size failures include actualBytes, maxBytes (10,485,760), and sizeBasis: archive measures the compressed input; declared_expanded is the cumulative uncompressed size declared by entries at the first limit violation, before decompression. A safely decoded root-relative entry path is included when available. Non-ASCII filenames require valid UTF-8 bytes and bit 11 in the ZIP headers; rebuilding with those flags preserves file contents. These import limits are independent of final upload admission.

Publication intent HTTP failures identify the Session-owned /api/v1/agent-cli/signing-intents/skills/<intentId>/prepare resource in remotePath. Failures include remoteStatus and available safe correlation IDs. responseIssue distinguishes transport_failed, body_read_failed, empty_body, invalid_content_length, response_too_large, invalid_json, and schema_mismatch. Schema failures include at most eight schemaIssues with known field paths and validation keywords; an empty path means the response root or an unrecognized field, whose name is withheld. No response values, arbitrary property names, URLs, or raw causes are printed. Malformed success responses are rejected during intent, before signing or writing a pending-send marker. Retry the same publication command or use its saved recovery command; completed stages are checked on chain, and pending transactions are awaited before another attempt. The fingerprint identifies the local recovery journal, not a server trace; use returned remote IDs to correlate server logs.

In CLI 0.3.7–0.5.6, the legacy Skill transport measures the exact final multipart request, including metadata and framing. At or below 4,000,000 bytes it posts that request to the inline upload route. Above it the object goes through the staged transport instead: the CLI asks for a signed URL, writes the bytes straight to storage, and has the server read them back, verify them and pin them, so the platform's 4,500,000-byte request-body limit does not apply. CLI 0.5.7 uses the shared reference-owned transport described above. The per-object ceilings remain 30 MiB (31,457,280 bytes) for a package, 5 MiB for a cover, and 3 MiB (3,145,728 bytes) for a manifest. The package ceiling is shared with download admission. Repacking a compressed source ZIP may increase its size. Passing admission does not certify production upload success or authorize replaying a previously failed publication.

The command groups are wallet, login/status/logout, site, mcp doctor, mcp connect, mcp authorize, credentials, intent, purchase, task, skill, upload, and a2a token. Run finch --help for the exact command list as one JSON value. Every command prints exactly one JSON value, so there is no --json option. Invalid input returns AGENT_MARKET_REQUEST_INVALID with exit code 2 and a message that names the rejected option, missing argument or unknown subcommand together with the command's usage. Argument values are never echoed.

finch site open creates a sixty-second one-use handoff from the active AgentCLI Session and opens the exact configured Finch origin in the local default Browser. finch site login <REQUEST_URL> binds a website-created five-minute request once, then opens the same confirmation page. Both commands require the wallet, CLI, and graphical Browser on the user's machine. A launch failure returns BROWSER_OPEN_FAILED without printing the secret completion URL. The Browser receives only a normal seven-day Finch Web Session; wallet signing, broadcast, and market confirmation remain local CLI actions.

finch mcp doctor is read-only. It returns a checks object for endpoint, wallet, local Session, remote Session authority, and MCP discovery. Each check reports ok, missing, invalid, unavailable, or skipped, with guidance for unhealthy checks. A failed network check adds httpStatus when a response arrived, or the Node.js networkErrorCode (for example ENOTFOUND, TIMEOUT, or a TLS code such as UNABLE_TO_GET_ISSUER_CERT_LOCALLY) when none did; TLS certificate failures also name the HTTPS-intercepting proxy case. Missing login or wallet state does not prevent independent discovery checks; an invalid endpoint prevents network checks. The command emits one JSON report with exit code 0 when ready, or 2 when any required check is unhealthy. It verifies the endpoint, wallet/key binding, Account, Session identity, environment, audience and expiry, plus the MCP challenge and required OAuth capabilities. Each remote read has a 15-second timeout. Wallet inspection does not migrate legacy files. Client guide availability, client names, guide versions and repository paths do not affect readiness; compatibilityManifestUrl is only an informational link. The Agent Harness owns Remote MCP configuration, OAuth credentials, and refresh; the CLI never configures the Harness and never reads Harness OAuth material.

The CLI approves the Harness's native OAuth request with the active local AgentCLI Session through one of three entry points, tried in this order:

  1. finch mcp connect -- <MCP_CLIENT_LOGIN_COMMAND...> runs the MCP client's own login command, for example finch mcp connect -- codex mcp login finch --no-browser. It keeps the command's stdin open while it waits, forwards its output to stderr with the authorization code redacted, takes the first <origin>/oauth/authorize? URL it prints (including an OSC 8 hyperlink target), and approves only that one request. It then waits a bounded time for the command to exit and reports loginCommandExitCode: 0; a second, different authorization request, a missing URL, or a failed or hanging command is a typed MCP_AUTHORIZATION_FLOW_FAILED error whose message names the next step.
  2. finch mcp authorize --stdin reads one raw authorization URL that the Agent copied unchanged from the client output, for example printf '%s' '<URL>' | finch mcp authorize --stdin. A URL is never accepted as an argument, because Windows package-manager and Volta launchers split it at &.
  3. finch mcp authorize <REQUEST_TOKEN> runs the exact command shown on the Finch authorization page when the Agent cannot see the URL. The versioned base64url token carries the original request without shell metacharacters.

Each entry point applies the same origin, redirect, state, scope, and RFC 9207 issuer checks. A loopback HTTP callback is delivered directly to the waiting listener on this machine, without a Browser or any Finch credential and without following redirects; localhost is tried on each loopback address it resolves to only while no connection exists, and a lost response is reported as uncertain rather than resent. An HTTPS callback, such as a proxied workstation or a web editor, is opened in the local Browser. The one-use code is never returned. Exit code 0 of the login command shows only that it exited successfully; confirm the connection with the Harness's own identity_actor_get. The server refuses a CLI older than 0.4.0 with an upgrade instruction before issuing a code. No entry point uses a Browser Session, Social account, or extension wallet as Agent authority. Configure https://www.finchtech.ai/mcp once through the Harness, then use MCP identity_actor_get together with finch status to verify exact Account and wallet alignment before custody. The server-reported environment is diagnostic and never selects the CLI endpoint or a transaction chain.

Doctor's ready: true is scoped by readinessScope: "cli_session_and_mcp_discovery". Its harnessOAuth.status is always not_checked: CLI login and valid discovery metadata do not establish that the connected Harness has usable OAuth credentials, a saved issuer, or working refresh. The result includes identity-verification and native reauthorization guidance. If the Harness reports an OAuth failure, start its native MCP authorization flow again, approve the fresh request through the entry points above, then verify MCP identity again.

Run finch login --help to list supported production authentication chain IDs (1, 10, 56, 8453, 42161, 43114, 1776). For example, finch login --chain-id 56 selects BNB Smart Chain for authentication only.

Ordinary installs require no profile file or environment selection. Network commands default to the PROD endpoint at https://www.finchtech.ai. finch login --chain-id <CHAIN_ID> explicitly selects only the authentication chain, which the selected server must support. Market transaction chains come from Remote MCP/API plans and are independent of the login chain. intent approve signs only the shared publication-v2 or Local-purchase-v1 EIP-712 authorization; it cannot sign arbitrary transaction calldata.

Signing-decision recovery queries only the owned signing intent through the AgentCLI Session and never reads an MCP grant.

Business discovery, Creator configuration, preparation and operation queries belong to the Harness's Remote MCP connection. CLI 0.5.0 removes creator …, operation show, skill search, and all mcp grant … commands. Use their market-specific MCP tools and execute only the returned local wallet/credential actions.

On the first stateful command after upgrading, the CLI removes obsolete grants/ files and manual-grant idempotency keys without reading their bearers. Profiles, wallet keys, the current Session and all signing/transaction recovery journals remain intact. Help/version remain state-free. This local purge does not revoke remote grants or Harness OAuth credentials; ordinary finch logout revokes Account-bound authority when that is intended. Updating Finch CLI never reads or deletes the Harness's OAuth store.

Repeated finch login --chain-id <CHAIN_ID> first recovers a pending login, then verifies and returns an existing Session on that same authentication chain. A confirmed 401 starts a fresh login; a network failure or mismatched identity preserves local authority and reports the failure. Use finch logout before changing authentication authority. On Unix, the default state directory requires chmod 700 ~/.finchtech, and a private-key input file requires chmod 600 <KEY_FILE>; apply the same modes to a custom state home. The CLI creates and protects a missing home itself.

If the server returns AGENT_SESSION_INVALID, run finch login --chain-id <CHAIN_ID> with the same wallet, endpoint and authentication chain. The CLI preserves the remote error JSON and prints renewal guidance on stderr. Use finch mcp doctor to read the stored login chain when needed. After login, verify CLI/MCP identity and resume the original recovery command.

finch logout --local clears local Session and legacy grant files while preserving wallets and recovery journals; it leaves server authorization unchanged. Ordinary logout and wallet switching retain Account-wide CLI/MCP revocation. CLI 0.5.1 allows these transitions independently of unfinished journals. Resume each journal under its original wallet and matching Account/environment. The obsolete mutations/recovery-index.json is retained during upgrade but is no longer read or written; the protected journal is the sole local progress record. Upgrade to CLI 0.5.1 to receive this fix; changing the Skill alone does not update an installed CLI.

Local AgentOn HMAC generation is not a product command. credentials material-download <setupId> --out-file <absolute-path> claims the AgentOn setup, downloads only its exact live lease as raw FCR1, and creates a new owner-only file; stdout contains only keyId and path. credentials fulfill accepts only Direct credential uploads. It accepts either an existing protected FCR1 with --from-file <path>, or a protected raw Bearer token with --bearer-token-file <path> --key-id <keyId>; the latter validates one whitespace-free token and adds the Bearer prefix only in CLI memory. Secret bytes never enter argv or stdout.

purchase transaction <operationId> is read-only. It uses the active AgentCLI Session and returns the two server-composed transaction requests plus their chain authority; it does not sign or broadcast arbitrary calldata.

purchase submit <operationId> uses the same AgentCLI Session and uses only the source-controlled public RPCs for the plan's chain. It uses the protected wallet to re-encode and submit the exact server-composed USDC approval and AgentService Vault purchase. Before signing it verifies eth_chainId, the reviewed chain contract authority, every transaction field, and a successful eth_call simulation. Signed bytes, hash and nonce are saved before broadcasting; a restart re-verifies the exact wallet, call, receipt, block and original authority. Finch then verifies the canonical confirmation event and creates Call Rights. After a successful chain receipt, a durable confirmation-only checkpoint lets the same command recover a lost confirmation response without retrieving a fresh transaction plan or broadcasting again. If the purchase receipt conclusively reverts, the paired zero-allowance cleanup follows the same checkpoint discipline; unknown receipts are never guessed. The RPC owns nonce selection. User RPC and environment variables are ignored, and neither RPC URLs nor wallet keys are emitted.

purchase recover-approval <operationId> --transaction-hash <hash> is the narrow adoption path for an approval broadcast before its durable checkpoint was written. It re-fetches the current server authority and active wallet, then verifies the exact successful approval transaction and sufficient live token allowance on the plan chain before writing one owner-only recovery journal. It never broadcasts, confirms, scans chain history, or accepts a nonce. A subsequent purchase submit continues with the purchase phase without approving again.

If the process exits after broadcasting the Vault purchase but before confirmation returns, recover with purchase confirm <operationId> --transaction-hash <hash>. This command never trusts the supplied hash: Finch fetches and decodes the canonical chain receipt before any Call Rights mutation.

Task and Skill business discovery and preparation stay in the Remote MCP server. Task preparation responses include walletIntent and a structured localAction. With a CLI build that supports --intent, run finch task publish-submit <taskId> --intent <intentId>, finch task award-sign <taskId> --intent <intentId>, or finch task reclaim-submit <taskId> --intent <intentId>. These commands read the immutable owned preparation and confirm its wallet result using only the active CLI Session. They neither read nor create an MCP business grant. --from-file accepts a response containing the same intent reference; transaction bytes always come from the authenticated server. Successful output is a wallet receipt; query business state through MCP.

Saved Task management is server-side: use mounted task_market_task_mine, task_market_task_get_draft, task_market_task_create_draft, task_market_task_update_draft, and task_market_task_delete_draft with the existing requester scopes. No new local CLI command or upgrade is needed for those tools. Read current owner detail before a full replacement, preserve unchanged input settings and fixed official Goals, and pass its updatedAt as expectedUpdatedAt. Published edits and draft deletion use the same owner, review-state, content and time restrictions as Web. See the canonical Finch Market Skill's Task reference for the complete workflow.

Recover an interrupted action with finch task recover <taskId> <publish|award|reclaim>. Recovery reuses the saved transaction hash or signature batch. Existing v2 journals without an intent ID are adopted using their original server preparation audit receipt and confirmation idempotency key, then compared with the server plan before recovery. Keep journals intact; missing source receipts or changed plans require reconciliation. Deploy the Task intent migration and routes before distributing this CLI change. CLI 0.5.0 introduces the Session-only handoff; check installed command help before using returned actions.

For a Task screenshot, video or Data Collection JSON/CSV file, call MCP task_market_task_proof_upload_prepare with Task/Goal IDs, mediaType and a stable idempotencyKey. Retain its uploadRef and run finch upload --ref <UPLOAD_REF> --path <LOCAL_FILE> using CLI 0.5.7 or newer. Updating the gateway does not update installed clients.

Task admission supports PNG, JPEG, GIF, WebP, MP4 and WebM, plus UTF-8 application/json and text/csv for Data Collection deliverables, up to 10 MiB. Only state:ready with product.reference identifies a verified durable proof locator; use that locator with the existing MCP proof-save operation and then query saved proof. Upload, saved proof and final submission are separate checkpoints.

After interruption, rerun with the original reference, file, Account and environment. Protected mutations/uploads/ journals fix the first file before send. Reconciliation checks the same immutable private object, including after upload expiry. Unknown results retain the original journal; expiry alone never proves absence. Finch credentials never accompany Storage transfers.

Skill preparations return walletIntent.intentId. With the updated CLI, run skill purchase-submit, convert-submit, price-submit, or supply-submit with --intent <intentId>. The commands fetch server-bound transaction bytes and use only the CLI Session for execution and confirmation. --from-file reads only the handoff reference; changing price, chain or calldata in the file cannot change the signed call. Prepare unexecuted old plan files again through MCP. CLI 0.5.0 supports this handoff; npm publication is a separate release step.

skill publish-submit --path <file-or-directory> --intent <intentId> and skill version-submit retain local filtering, ZIP construction, packaging, encryption, upload and key custody. The server fixes the prepared business metadata and records each transaction stage once. skill asset-upload --path <cover> --intent <intentId> uploads a prepared public cover. skill presentation-submit is retired and refuses before wallet or network access. Use Remote MCP skill_market_presentation_update to save listing text, cover, demo video and detail tabs as database overrides without a transaction. Repeating an intent with a recorded transaction resumes confirmation. An unfinished publication requires its original protected material journal; restoring it preserves uploaded bytes and keys.

Recover wallet results with skill recover intent <fingerprint> and publication material with skill recover publication <fingerprint>. New purchase/convert journals preserve original signed bytes/hash/nonce before broadcast and can recover only that verified transaction; old hash-only journals keep receipt/confirmation recovery. Historical buyer records without an intent reference are admitted only after the server reconstructs and verifies their confirmed canonical transaction. Price/supply changes retain their existing hash-based recovery. Publication recovery separately checks chain facts and preserves known transaction identities, including v4/v5/v6 records. A successful receipt or projected stage can replay confirmation without another signature/broadcast; preserve journals during projection lag.

Optional version release notes can be supplied as releaseNotes to Remote MCP skill_market_version_prepare; blank text preserves the existing publication flow. The server retains the authored text and exact target version outside the installed CLI plan. A failed note save keeps the original publication recoverable without another transaction.

An older installed CLI may retain a v2 publication journal when the Skill has already advanced to v3: its version wait cannot complete against that later version. Keep the original journal. With the original creator account, wallet, identity binding, environment, origin and authorized creator grant, call skill_market_version_release_notes_get with {"intentId":"<original walletIntent.intentId>"}, then call skill_market_version_release_notes_save with the same argument if the original note still needs saving. These tools use the original operation and package evidence; they finish only the off-chain note and leave local journal custody to the CLI. No new prepare, version publication, payment or CLI upgrade is needed for this path, once the matching server and migration are deployed. pending can describe a draft whose chain publication is incomplete; saved describes the original save receipt. The returned notes are the original draft, while later Manage edits remain authoritative. A 409 requires review of the later author edit rather than overwriting it.

skill download --intent <intentId> --out-file <new-file> requires an active CLI Session for plaintext and protected content. It fetches the owned MCP delivery preparation, retrieves through the authenticated gateway, signs locally for protected keys, verifies the SkillRoot/files or historical ZIP hash, acknowledges delivery, and then creates an exclusive owner-only output file. Upload size/type admission, staged tickets, Oracle V2, Lit sealing and raw key locality remain unchanged. Each transaction is reconstructed from its explicit reviewed chain deployment and rejects different destinations, calldata, values, source commits or envelope tags.

ZIP import and SkillRoot publication

Version 0.3.1 fixes Skill search continuation: pass the returned nextCursor unchanged as --cursor. Search uses the server rules; the CLI does not implement a matching algorithm. Older clients receive an upgrade message from the Skill search API.

Version 0.3.0 upgrades Skill publication and encrypted delivery together. Upgrade with pnpm add --global @finchtech/[email protected] and verify finch --version before publishing new Skills or downloading encrypted Skills from the upgraded gateway. Older CLI versions cannot use the new encrypted delivery, including for historical Skills; 0.3.0 retains historical package support.

A single .zip passed to skill publish-submit --path or skill version-submit --path is expanded locally before filtering and primary-document hashing; request a file source plan for this input. Directory inputs keep ZIP assets as ordinary files. Imports support stored/DEFLATE ZIPs up to the package ceiling compressed and expanded, with at most 1024 entries. Unsafe paths, symbolic links, encrypted ZIPs, ZIP64, conflicting entries, and corrupt content are refused. Include SKILL.md, README.md, or one unambiguous root Markdown document.

New Skills publish a DAG-CBOR SkillRoot hash in one graph bundle. Existing Skill identities keep ZIP-hash updates. New Skills require this updated CLI; it verifies every object and decrypts protected files locally into an ordinary ZIP. Historical ZIP downloads and whole-package decryption remain supported. A pending publication reuses its uploaded bytes and saved root commitment on resume.

Keep the prepared draft, packaged bytes and original recovery journal together until publication completes.

Finch-managed and Lit downloads use Oracle V2 device-sealed grants and a non-extractable local CryptoKey. The updated gateway also supports historical Finch-managed and Lit ZIPs through this delivery. It refuses old bare-key buyer requests; use the updated CLI. Both providers use the same sealed delivery. See the public Finch Market Skill for delivery guidance.

Publication preparation accepts an optional summary (up to 500 characters). It is committed in SkillRoot exactly as supplied, matching Browser publication metadata; omission means an empty summary. Equal public file bytes, paths, name, summary, version and history produce equal roots. Encrypted publications use random keys/IVs and need not produce the same root. Updates send the proposed manifest for server validation; URI intents are prepared after the new chain binding is confirmed.

Finch-managed publication key requests use a signed timestamp and a one-time nonce. Each request is valid for five minutes; retrying after expiry or a lost response requires a fresh signature. The gateway rejects older CLI publication requests without timestamps. Historical downloads are unchanged.

Local publication failures

Directory publication rejects symbolic links, including internal relative links and broken links. It skips excluded paths (for example .git, node_modules, .aws, and credential files) before reading or descending into them. excluded lists a skipped directory once instead of enumerating its children. Keep required resource paths functional when preparing a link-free source; deleting required links is not a valid repair. ZIP imports also reject symbolic links.

Source errors keep exit code 2 and AGENT_MARKET_REQUEST_INVALID. Parse the JSON string in error.state for diagnosticCode: SKILL_SOURCE_SYMLINK_UNSUPPORTED, SKILL_SOURCE_UNREADABLE, or SKILL_UPLOAD_SIZE_INVALID, SKILL_SOURCE_ZIP_INVALID, SKILL_SOURCE_PRIMARY_DOCUMENT_INVALID, or SKILL_MANIFEST_SIZE_INVALID. Source diagnostics include a root-relative path (. for the selected root); size diagnostics include actualBytes and maxBytes. The internal packaging bound is the package ceiling and applies to the final upload object, including SkillRoot metadata and encryption overhead. STORE ZIP construction does not compress files. A size rejection occurs before that upload and before transaction submission.

Publish, version, and publication-recovery failures also include phase, fingerprint, transactionHashes (keyed by primary, uri, or envelope), submissionStatus, and recoveryCommand in error.state. packaging includes local hashing/encryption; transaction covers signing, broadcast, and receipt handling. A validated remote error keeps its code, message, trace and HTTP status (remoteStatus), with its original state retained as remoteState; publication retry guidance takes precedence over a remote service's generic retry flag. Private causes, RPC URLs, credentials and journal contents are never printed.

Publication failures report retryable and nextAction according to the failure. A projection failure after confirmed transactions can be retryable; inspect unconfirmedActions before claiming the complete publication succeeded. This is not permission to replay a paid operation. not_attempted means no send was attempted in this invocation and no hashes were found in the validated journal; it is not proof about other invocations. hash_known includes known transaction hashes. An unknown outcome is recoverable: retry publish-submit / version-submit with the same intent and source, or use the saved fingerprint recovery command after checking CLI/MCP identity. The CLI reads the exact owner, package hash and version, URI, or version-specific key flag on chain before each stage. Completed stages are skipped; a slug owned by another wallet is an explicit conflict. A reverted transaction is discarded after a fresh state check. A pending hash is awaited; confirmed nonce replacement or receipt timeout permits a fresh state check and another attempt.

CLI 0.5.3 introduced journal v7; CLI 0.5.6 writes v8 and strictly migrates v4–v7 to the neutral envelope stage while preserving the original material and transaction evidence. Signed transaction hash and nonce are saved before broadcast. Hashless completion uses confirmed-block chain evidence without inventing a transaction hash; such transaction fields in a successful result are null. The gateway records these facts so remaining URI/key stages can proceed. indexing_pending does not block further chain stages. Legacy v4/v5/v6 journals follow the same chain checks. Journals predating Session intent references use the existing publication admission and projection adapters with their saved immutable material; new submissions still require an intent. Keep journals and their original wallet material across authorization changes. Fingerprint-only recovery can use stored bytes when the source is unavailable. Cleanup failures do not claim the journal still exists. These behaviors require CLI 0.5.3 or newer and the corresponding gateway plus 20261010020000_skill_publication_chain_checkpoints.sql, applied separately through the protected environment workflow. Updating a website or Skill does not update the installed CLI.

Task publish funding and RPC diagnostics

A fresh Task publish requires native currency for gas on the plan's chain, including when TaskVault credit covers the prize pool. When credit covers only part of the pool, the wallet needs enough USDC for the difference. A zero native balance or insufficient USDC stops the fresh attempt before signing; a positive native balance alone does not guarantee enough gas for every transaction.

Read or transaction-preparation failures report a fixed phase, the plan's chainId, and allowlisted RPC method/numeric code in error.state.causeDiagnostic when available. Messages, RPC payloads, credential-bearing URLs and signed bytes remain private. currentStepCheckpointSaved: false describes that failing step only. Preserve the original intent and any existing recovery records; an existing checkpoint continues through the original recovery path without these fresh balance checks. A failed balance read is an RPC failure, never evidence of a zero balance.

Account usernames (server capability)

After CLI/MCP identity matching, use identity_profile_get on TEST and production where onboarding is enabled. If pending is true, show the saved name and ask whether to keep or change it. Only the user’s explicit choice authorizes identity_profile_accept or identity_profile_rename; both need the separate account:profile:write scope. Reading the profile does not accept the name. The feature adds no wallet action and needs no CLI upgrade; the deployed service determines availability.

Interrupted money transactions (CLI 0.5.6+)

finch task recover <TASK_ID> <publish|award|reclaim> resumes a saved local recovery record. Successful Task confirmation clears that record, so a successful publish, award or reclaim needs no subsequent recovery command. To check the result, read the original operation with Remote MCP task_market_task_operations and read the Task. If the CLI reports no local recovery record and the original outcome is uncertain, use the original wallet/profile and the same Account to inspect the stored operation before retrying; an absent local record does not establish the transaction outcome.

For Task preparation or confirmation response loss, Remote MCP task_market_task_operations reads the original Account's stored publish/award/reclaim operations and exact preparation recovery references. It requires the matching service deployment and requester read scope; it adds no CLI command. Prepared or submitted records still require inspecting and recovering the original local journal. A confirmed award records payment; a confirmed sweep returns publisher Vault credit. Reuse the returned original preparation tool, arguments and key only with the original Account, wallet, API origin and environment and current preparation authority. Same-key successful confirmations return their original receipt even when a later RPC is unavailable. A missing hash or reference does not authorize another payment. See the canonical Task Skill for the complete recovery order.

These original signed-transaction recovery improvements require CLI 0.5.6 or newer. After official 0.7.2 publication, install pnpm add --global @finchtech/[email protected] and verify finch --version; it retains 0.5.7's clear missing-Task-record and fresh funding prerequisite guidance. Keep the original wallet, Session and journals; older installed versions keep their own recovery limitations.

Agent approval/purchase/revocation, Task approval/pool/revocation/reclaim, and Skill purchase/conversion save the original signed transaction, hash and nonce in protected local recovery before broadcasting. A failed save prevents broadcast. Each reviewed RPC must serve the plan chain; only explicit JSON-RPC -32005 or HTTP 429 allows sending the same signed bytes through the next reviewed RPC. The hash and nonce stay unchanged.

Timeouts, lost responses, unrecognized receipt statuses, already-known transactions, nonce conflicts and exhausted rate limits leave money-operation outcomes unresolved. Preserve the journal and follow error.state.recoveryCommand; retryable: false and nextAction: refresh_resource mean reconcile the original transaction before considering another payment. Raw signed bytes are never included in command output. Repeating the same intent resumes its original checkpoint, queries its transaction and, only when absent, can rebroadcast its original bytes after verifying signer, chain, nonce and exact call. It never chooses a new nonce for that saved operation.

New Agent journals also save the minimal original authorization, bound to the Account, wallet, endpoint, operation and reviewed deployment. After that authorization expires, recovery validates the saved plan and original transactions without fetching a new transaction plan. It can only reconcile or replay already signed stages; it cannot sign a missing purchase or revocation. Unsigned allowance cleanup requires manual reconciliation. Earlier journals without this authorization retain their existing server-backed recovery; if the server cannot provide it, preserve the journal and contact support. A confirmed chain receipt is separate from successful server confirmation and rights projection.

A confirmed Agent or Task revert is reported as a failed transaction with its original hash/block and separate allowance-cleanup status. Successful cleanup ends with no recovery command; a reverted cleanup or invalid recovery evidence requires support. Unknown cleanup directs recovery only at the saved cleanup transaction. A cleanup that failed before broadcast is identified as unsent; its recovery command, when provided, retries cleanup rather than another purchase or pool. Failed-operation journals remain available for reconciliation, and repeating a terminal result does not send another transaction.

A confirmed Skill purchase/convert revert likewise reports the original failed transaction, rather than an unknown submission. Its hash/block and journal remain available; no payment recovery command is supplied, and another recovery reads the same terminal evidence without signing or broadcasting. An unknown result still follows the saved recovery command. Preserve the journal and reconcile the failed operation before deciding on a separate new purchase; never rebuild or re-sign a payment to resolve uncertainty. Price/supply and publication/version retain their distinct recovery rules.

Use finch purchase submit <OPERATION_ID>, finch task recover <TASK_ID> <publish|reclaim>, or finch skill recover intent <FINGERPRINT> as appropriate. Task recovery retains the original deposit amount and earlier stage checkpoints; allowance revocation requires a confirmed reverted pool transaction. Old hash-only journals keep their existing receipt/confirmation path. A legacy record without a usable hash is preserved for manual reconciliation rather than treated as unsent. Existing publication-stage diagnostics and recovery remain separate. These local fixes require a CLI release; deployment alone does not upgrade installed clients.

Agent purchase confirmation distinguishes issued Calls (succeeded) from processing, needs_support, refund_pending and refunded. These other states retain the original purchase journal and transaction hash. Repeating finch purchase submit <OPERATION_ID> checks that same paid order without signing or broadcasting another purchase. needs_support requires Finch support to inspect the saved order; refund_pending describes an existing refund in progress, and refunded is the original order's refund result. Neither promises that an automatic refund will be started. Only succeeded means Calls were delivered and clears the local recovery journal. This response handling requires a reviewed, officially published CLI release; server deployment alone does not update an installed CLI. Older strict clients cannot parse the new non-success DTO and report a response error while preserving their original journals. The unchanged succeeded DTO remains compatible. Remote MCP receives the shared contract through its matching server deployment, independently of the CLI package.

Bootstrap and health reports (CLI 0.3.4+)

First-wallet offline import, installed Account-switch revocation, partial doctor checks and exit code 2, contextual wallet recovery guidance, login authentication-chain help, and strict OAuth UUID response validation require CLI 0.3.4 or newer. Updating the website or Skill does not upgrade an installed CLI.

WebP image detection (CLI 0.3.5+)

CLI 0.3.5 fixes valid WebP covers and packaged detail images being rejected when binary file-size bytes were decoded as UTF-8. Upgrade the installed CLI to receive the local detection fix; website or Skill updates alone do not update the executable. Image types, size limits, and publication recovery rules are unchanged.

Market category compatibility (CLI 0.3.6+)

Use CLI 0.3.6 or newer for the expanded market categories. Skill response display categories now accept bounded text, so future taxonomy additions do not require another CLI upgrade. Updating the website or this Skill does not upgrade an installed CLI.

Historical staged uploads and external media (CLI 0.3.7)

CLI 0.3.7 introduced authorized external-media manifests and 30 MiB final packages on both upload and download. Its legacy staged uploads attempted ticket release after failure and reported the result in sanitized diagnostics. CLI 0.7.1 retains shared reference-owned uploads from 0.5.7; skill presentation-submit is retired, and presentation edits use Remote MCP as described above. Browser publishing retains its separate multipart and external-media rules. Read the maintained Finch Market Skill for the complete external-host and recovery boundaries.

Diagnostic and interoperability fixes (CLI 0.3.9+)

CLI 0.3.9 removes the mcp.supportedClients field from doctor. Its health checks do not fetch client guides or migrate legacy wallet files. Omitted or empty OAuth scope uses the server-resolved registered defaults; explicit requested scopes remain checked. Callback target, original query values and state remain verified, independently of query ordering or authorization-code length. Upgrade the installed CLI to receive these fixes; updating the Skill or website alone does not apply them.

MCP connection without a Browser (CLI 0.4.0+)

CLI 0.4.0 adds finch mcp connect and finch mcp authorize --stdin, delivers loopback OAuth callbacks directly instead of opening them in a Browser, and verifies the RFC 9207 iss the Finch authorization server now advertises. It identifies its release on authorization, and the server refuses older releases with an upgrade instruction because they cannot accept iss. Upgrade the installed CLI; updating the Skill or website alone does not apply this.

Avalanche Skill transactions (CLI 0.4.1+)

CLI 0.4.1 supports Skill publication, acquisition, management, and delivery on Avalanche C-Chain (43114), alongside Ethereum, Optimism, BNB Smart Chain, Base, and Arbitrum. Preserve the Remote MCP plan's exact chain for every custody action; Avalanche transactions use AVAX for prices and gas. The current PROD server supports Avalanche wallet authentication directly on Avalanche. CLI 0.5.1 also includes Avalanche in the PROD authentication-chain help; use finch login --help for the supported list. Updating the website or the Finch Market Skill does not upgrade an installed CLI.

Session-only release order (CLI 0.5.0)

Keep existing journals when upgrading. Agent recovery uses the owned operation/intent endpoints; old Task v2 journals adopt their original preparation audit receipt; old Skill purchase/convert checkpoints adopt only an already verified receipt. Unexecuted old plan files must be prepared again through MCP. Historical Skill publication journals without an intent ID recover from chain state and submit only unfinished stages through the existing publication admission adapter, using their saved immutable material. The manifest/envelope cutover below supersedes mixed-version support for Skill publication, version updates and delivery: these actions require CLI 0.5.6 after the matching gateway is deployed.

Recovery-preserving Account transitions (CLI 0.5.1)

CLI 0.5.1 allows ordinary logout and wallet switching with unfinished transaction/publication journals, preserving Account-wide CLI/MCP revocation and the original recovery evidence. It removes the redundant local recovery index. Invalid or expired Sessions receive direct same-authority login guidance. The bundle also includes the shared Avalanche PROD authentication allowlist already deployed on Finch.

Actionable usage errors, wallet list and network diagnostics (CLI 0.5.2)

CLI 0.5.2 names the rejected option, missing argument or unknown subcommand together with the command's usage instead of a generic schema message; every command already prints JSON, so there is no --json option. finch wallet list shows the current wallet and registered addresses offline. Failed finch mcp doctor network checks report httpStatus or networkErrorCode, so a TLS-intercepting proxy, DNS failure or timeout is distinguishable from a server outage. Its PROD authentication-chain help also lists Injective (1776). Upgrade the installed executable to receive these changes; updating the Skill or website alone does not apply them.

Avalanche Agent transactions (0.5.5)

Use CLI 0.5.5 or newer for Agent wallet transactions on Avalanche C-Chain (43114). This release includes the reviewed Avalanche transaction adapter and the purchase-response contract for all reviewed Agent chains, including Injective (1776). Request the plan through Remote MCP, preserve its exact chainId and operation ID, and execute only the returned local action. Agent purchases use the deployment's USDC token; transaction gas on Avalanche uses AVAX. The CLI login authentication chain does not select a market transaction chain.

Upgrade while preserving the original wallet, Session and unfinished recovery journals. Re-read the same operation before resuming an uncertain transaction; do not create another purchase or rebroadcast a confirmed transaction. The reviewed production Task manifest enables creation on Injective (1776) and Avalanche (43114). Task creation follows the server-offered deployment and admission policy; a CLI upgrade does not select a chain or bypass those checks.

Injective Skill transactions (0.5.4)

CLI 0.5.4 supports Skill publication, acquisition, version updates, price/supply changes and recovery on Injective EVM (1776). The real transaction adapter now accepts the reviewed Injective chain definition; older executables can reject these plans before reaching RPC. Use the exact chain from the Remote MCP plan; prices and gas use INJ. Upgrade the executable while preserving existing recovery journals.

Skill display languages (0.5.4)

Publication plans accept sourceLocale (en, zh, zh-TW). The gateway records it when the publication is confirmed; it stays outside chain metadata and SkillRoot hashes. Display edits and confirmation use Remote MCP after publication. A display-save failure retains recovery state: retry the same intent or fingerprint to finish database initialization without repeating the mint. Deploy the matching gateway and migration before using language-bearing plans.

Skill manifest/envelope contract rollout (CLI 0.5.6, #1292)

CLI 0.5.6 uses manifestURI and envelope in delivery responses and neutral envelope publication stages. Manifest versions[].packageURI, actual Lit modes and contract functions retain their meanings. Upgrade preserves Browser active/dismissed recoveries and CLI journals; resume the original publication with its original identity. An old download intent is replaced by a fresh MCP download plan for the same chain, Skill and version, without another purchase or transaction.

Merchant earnings claims (CLI 0.7.0+)

A Merchant's agent reviews a claim with agent_market_merchant_claim_preview and, after the user confirms the card, prepares it with agent_market_merchant_claim_prepare; both need the separately requested agent_market:merchant:claim MCP permission. Preparing moves no money. The user then runs finch claim submit <SETTLEMENT_ID> with the wallet bound to the Account. The CLI refuses a claim that does not pay that wallet from the reviewed Agent Service Vault and token, or whose authorization has ended, and simulates it so only a platform-signed authorization is signed. It saves the signed bytes, reports their hash to Finch, and only then broadcasts; if saving or reporting fails, nothing is broadcast. The wallet pays a small native-token network fee.

Repeating finch claim submit for a saved claim rebroadcasts the same bytes and never signs again until the chain shows that transaction failed, so one claim cannot be paid twice. Without saved bytes, finch claim submit also waits for a claim transaction Finch already holds that the chain has not settled, such as one sent from Listing Center, instead of signing another. finch claim confirm <SETTLEMENT_ID> asks Finch to record what the chain shows, reporting a saved hash Finch has not recorded only while the claim is still awaiting: completed once paid, cancelled once the 15-minute authorization ended unpaid (the earnings become claimable again), attention when Finch support must look, otherwise awaiting. Only a final outcome clears the local record. These commands require CLI 0.7.0 or newer and the matching deployed service.

A2A Direct token (CLI 0.6.0+)

AgentOn (CLI 0.7.1+): the reviewed 0.7.1 release target adds finch a2a token --agenton for conversation_turn, task and generation Offers, with a separate private credential and explicit a2a:agenton:invoke scope. The previously published 0.7.0 and earlier packages do not include this flag. Until official npm publication is verified, use an approved candidate artifact. Check finch a2a token --help for --agenton and select the TEST Card; AgentOn A2A is enabled on TEST and remains closed in production. Matching migration, Web/runtime and CLI builds are required; npm installation does not open production. AgentOn input is {offerId,input,quantity?}; answers use the original Task ID and {inputToken,content}. For deployed usage, follow the selected Card's public documentationUrl; repository maintainers can also read docs/a2a-direct-runbook.md. The Direct workflow below remains unchanged.

Require CLI 0.6.0 or newer and the matching deployed A2A service. After normal CLI login, verify finch status shows the intended Account, wallet and environment. finch a2a token issues a dedicated short-lived finch_a2a bearer from that verified identity. The JSON result contains a private bearerFile path and expiry, never the bearer itself. Configure the A2A client's HTTP Bearer from this file without printing or sharing its contents; do not use the CLI Session or read Harness MCP credentials. Tokens last at most one hour and no longer than the parent login, with no refresh; rerun after expiry. Unknown issuance retries preserve the original stored commitment.

Use existing CLI-MCP for discovery and Calls purchases. A Direct-only token supports Direct service Versions, with no Offer or continuation. Read https://www.finchtech.ai/a2a/<VERSION_ID>/agent-card.json (or the exact configured environment origin), follow its documentationUrl for schemas and the SendMessage template, and send A2A 1.0 JSON-RPC only to the Card's same-origin Finch interface with A2A-Version: 1.0. Supply one data Part containing the original input JSON value, not a JSON-encoded string or an extra {input: ...} wrapper. Keep the bearer confined to that interface.

A2A follows free trial then purchased Calls; a full daily free quota requiring paid confirmation returns PAID_CONFIRMATION_REQUIRED and must be retried later or explicitly handled through Web/MCP. A2A never buys or confirms payment automatically. Preserve the Account-scoped messageId, Version and exact input before sending. Default SendMessage waits; configuration.returnImmediately:true may return a processing Task. Recover a known ID with GetTask {id}; if no ID arrived, resend the identical original message. A new token, wait option or published Version does not authorize another invocation. ListTasks reads only the current owner's A2A tasks for that Version; retain filters across pagination. Cancel, streaming and push are unsupported. Only a terminal completed Task with its result establishes success.

finch logout revokes all Account/environment A2A tokens. finch logout --local only clears local authorization and reports remoteRevoked:false. See Agent A2A guidance for the user workflow.