clawdi 0.14.61 → 0.14.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +13 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -874,6 +874,7 @@ credential-free write-ahead journal preserving strategy ownership across retries
874
874
 
875
875
  import contextlib
876
876
  import fcntl
877
+ import inspect
877
878
  import io
878
879
  import json
879
880
  import os
@@ -955,7 +956,11 @@ def write_journal(path, records):
955
956
 
956
957
  def reconcile(payload):
957
958
  from agent.credential_pool import PooledCredential
958
- from hermes_cli.auth import read_credential_pool, resolve_provider, write_credential_pool
959
+ from hermes_cli.auth import (
960
+ read_credential_pool,
961
+ resolve_provider,
962
+ write_credential_pool,
963
+ )
959
964
 
960
965
  desired = {}
961
966
  for item in payload["providers"]:
@@ -1053,9 +1058,14 @@ def reconcile(payload):
1053
1058
  if entry != existing:
1054
1059
  # Omitted siblings are merged from disk, including concurrent
1055
1060
  # key rotations; no snapshot of another credential is replayed.
1056
- write_credential_pool(
1057
- provider, [entry], status_cleared_ids=[ENTRY_ID] if rotated else []
1061
+ # Older Hermes writers clear cooldown when the token changes
1062
+ # but do not expose the explicit status-reset keyword.
1063
+ options = (
1064
+ {"status_cleared_ids": [ENTRY_ID] if rotated else []}
1065
+ if "status_cleared_ids" in inspect.signature(write_credential_pool).parameters
1066
+ else {}
1058
1067
  )
1068
+ write_credential_pool(provider, [entry], **options)
1059
1069
  changed = True
1060
1070
  if strategies.get(provider) != "fill_first":
1061
1071
  updates[provider] = {"exists": True, "value": "fill_first"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawdi",
3
- "version": "0.14.61",
3
+ "version": "0.14.62",
4
4
  "description": "The best home for all your AI agents. Run them in the cloud or connect your own—with their context and tools in one place.",
5
5
  "license": "MIT",
6
6
  "type": "module",