dsh-workbuddy-xdpool 1.5.2 → 1.7.0

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/lib/index.d.ts CHANGED
@@ -1413,7 +1413,7 @@ export declare class WorkBuddyScheduler {
1413
1413
  * long before the settings section exists; a ledger written before that point
1414
1414
  * would have nowhere to go.
1415
1415
  */
1416
- setEarningsPersistence(save: (ledger: AutomationLedger) => void): void;
1416
+ setEarningsPersistence(save: (ledger: AutomationLedger) => void | Promise<void>): void;
1417
1417
  /**
1418
1418
  * Fold a previously persisted ledger back in, when it belongs to today.
1419
1419
  *
@@ -2158,6 +2158,14 @@ export declare const modelSelectionKeyFor: (region: 'cn' | 'global') => string;
2158
2158
  * also why `contextBudgets` is a real dictionary (`z.dict`) - an open object
2159
2159
  * schema reads as "an object with no fields" and the fold then throws while
2160
2160
  * the provider row is rendered.
2161
+ *
2162
+ * Every field is wrapped in {@link asVolatile}: on the 0.1.7 line the settings
2163
+ * write gate refuses an entry whose schema declares no volatile field at all
2164
+ * ("Plugin entry ... has no volatile fields") and `describe()` skips such an
2165
+ * entry — so an unmarked schema means the card can neither render nor save. On
2166
+ * the 0.1.5 line the wrapper degrades to an identity no-op (see its JSDoc), and
2167
+ * the value the running instance reads is a plain value either way once
2168
+ * unwrapped.
2161
2169
  */
2162
2170
  export declare const Config: z<Config>;
2163
2171
  /** Everything the CLI needs from a live plugin instance. */