发布

  • fix(cli): login fallback, ACL, dist rebuild, test isolation

    frostbyte_neo 发布于 2026-04-13 23:20:23 +00:00

    • Fix login losing API key when keyring write fails: when keyringOk
      is false, bypass writeJson's api_key stripping and write the full
      UserData to disk so the key survives across restarts.

    • Fix allow-any ACL: setSecret now uses delete-then-add instead of
      -U flag. The -U flag updates the password but preserves the old
      ACL, so entries previously created by the FFI ACL builder kept
      their per-binary ACL even after adding -A. Delete first, then
      add with -A, guarantees a fresh allow-any ACL.

    • Fix CLI binary not picking up cli-keyring source changes: the
      workspace dep resolves via the exports field to dist/, not src/.
      Must rebuild cli-keyring dist before rebuilding the CLI binary.

    • Remove unused import (_unusedComposioUserContextLive + void).

    • Fix composio-client-singleton test: delete real keychain entry in
      beforeAll so the subprocess keyring read finds nothing — prevents
      real credentials from leaking into test assertions.

    • Fix user-context test: use rawComposioUserContextLive with
      in-memory mock keyring + mock CliUserConfig so tests never touch
      the real macOS keychain.

    Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

    下载附件