@blockrun/clawrouter 0.12.314 → 0.12.315

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.
package/dist/index.d.ts CHANGED
@@ -904,7 +904,7 @@ interface SpendControlStorage {
904
904
  }
905
905
  declare class FileSpendControlStorage implements SpendControlStorage {
906
906
  private readonly spendingFile;
907
- constructor();
907
+ constructor(spendingFile?: string);
908
908
  load(): {
909
909
  limits: SpendLimits;
910
910
  history: SpendRecord[];
@@ -958,6 +958,8 @@ declare class SpendControl {
958
958
  private diskLimits;
959
959
  /** Set when spending.json held an unusable policy list: refuse every payment. */
960
960
  private policyFileBroken?;
961
+ /** Whether persisted history loaded successfully; when false, recovery from an initial failure restores history. */
962
+ private initialHistoryLoaded;
961
963
  private readonly storage;
962
964
  private readonly now;
963
965
  constructor(options?: SpendControlOptions);