Skip to content

claudecode-plugin-v0.10.0

Choose a tag to compare

@gangtao gangtao released this 01 Dec 01:45
fd037f2

@timeplus/agentguard-claudecode-plugin 0.10.0.

What's Changed

  • Ingest with a Timeplus API key (#337, #339). New optional setting AGENTGUARD_API_KEY, so no password has to be kept on the agent host.
  • The key is used only with AGENTGUARD_INGEST_API=rest and AGENTGUARD_TIMEPLUS_URL pointing at the Timeplus REST API (port 8000), version 3.5.4 or later. The plugin then sends X-Api-Key and no username or password.
  • In timeplusd mode (port 3218 takes no key) the key is not sent: the username and password are used, and the plugin says on stderr that the key is ignored. A key does not change the ingest mode.
  • Without a key nothing changes.

Upgrade notes

  • Create the key as the Timeplus user the events should be written as, with the ingest scope. It can be limited to the stream ag.agentguard_hook_events.
  • A key stops working when it is revoked or expires, or when its owner changes their password. Ingest then fails with 401, reported on stderr, and the agent is not affected; create a new key.
  • A REST API older than 3.5.4 answers a key with 401.
  • Checked against a 3.5.4 REST API: ingest with a key, a key limited to another stream (403), a revoked and a malformed key (401), no key, and a key in timeplusd mode. Not checked: an expired key, and a key after a password change.
  • agents/claudecode/Makefile (local dev install) now writes AGENTGUARD_INGEST_API, and AGENTGUARD_API_KEY when one is given.

Full Changelog: claudecode-plugin-v0.9.0...claudecode-plugin-v0.10.0