mnemospark 1.2.1 → 1.3.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/dist/index.d.ts CHANGED
@@ -715,17 +715,14 @@ type OpenClawCronPayload = {
715
715
  kind: "agentTurn";
716
716
  message: string;
717
717
  };
718
- type OpenClawCronDelivery = {
719
- mode: "announce";
720
- text: string;
721
- };
722
718
  type OpenClawCronJobEntry = {
723
719
  jobId: string;
724
720
  name: string;
725
721
  schedule: OpenClawCronSchedule;
726
722
  payload: OpenClawCronPayload;
727
723
  sessionTarget: "isolated";
728
- delivery: OpenClawCronDelivery;
724
+ /** OpenClaw 2026.4.x: bind isolated renewal work to the dedicated agent. */
725
+ agentId: string;
729
726
  };
730
727
  type OpenClawCronJobForLookup = {
731
728
  jobId: string;
@@ -740,6 +737,24 @@ type OpenClawCronAdapter = {
740
737
  };
741
738
  declare function createCloudCommand(options?: CreateCloudCommandOptions): OpenClawPluginCommandDefinition;
742
739
 
740
+ declare function getRenewalAgentId(): string;
741
+ /** Absolute path to node for renewal exec (override with MNEMOSPARK_CRON_NODE_BIN). */
742
+ declare function getRenewalNodeBinary(): string;
743
+ type EnsureOpenClawRenewalPrerequisitesOptions = {
744
+ homeDir?: string;
745
+ /** Skip all OpenClaw mutations (tests). */
746
+ disabled?: boolean;
747
+ /** Skip gateway restart (tests). */
748
+ skipGatewayRestart?: boolean;
749
+ };
750
+ /**
751
+ * Apply the Mnemospark Renewal Agent Runbook before registering the first renewal cron:
752
+ * - `agents.list` entry via `openclaw config set` + `openclaw config validate`
753
+ * - `~/.openclaw/exec-approvals.json` merge for the node binary
754
+ * - best-effort `openclaw gateway restart`
755
+ */
756
+ declare function ensureOpenClawRenewalPrerequisites(options?: EnsureOpenClawRenewalPrerequisitesOptions): Promise<void>;
757
+
743
758
  type RunMnemosparkSlashHandlerOptions = {
744
759
  cloudCommandHandler?: PluginCommandHandler;
745
760
  };
@@ -757,4 +772,4 @@ declare function runMnemosparkSlashHandler(ctx: PluginCommandContext, options?:
757
772
 
758
773
  declare const plugin: OpenClawPluginDefinition;
759
774
 
760
- export { BALANCE_THRESHOLDS, type BalanceInfo, BalanceMonitor, type CachedPaymentParams, DEFAULT_RETRY_CONFIG, EmptyWalletError, InsufficientFundsError, type InsufficientFundsInfo, type LowBalanceInfo, PaymentCache, type PaymentFetchResult, type PreAuthParams, type ProxyHandle, type ProxyOptions, type RetryConfig, RpcError, type SufficiencyResult, createCloudCommand, createPaymentFetch, plugin as default, fetchWithRetry, getProxyPort, isBalanceError, isEmptyWalletError, isInsufficientFundsError, isRetryable, isRpcError, runMnemosparkSlashHandler, startProxy };
775
+ export { BALANCE_THRESHOLDS, type BalanceInfo, BalanceMonitor, type CachedPaymentParams, DEFAULT_RETRY_CONFIG, EmptyWalletError, type EnsureOpenClawRenewalPrerequisitesOptions, InsufficientFundsError, type InsufficientFundsInfo, type LowBalanceInfo, PaymentCache, type PaymentFetchResult, type PreAuthParams, type ProxyHandle, type ProxyOptions, type RetryConfig, RpcError, type SufficiencyResult, createCloudCommand, createPaymentFetch, plugin as default, ensureOpenClawRenewalPrerequisites, fetchWithRetry, getProxyPort, getRenewalAgentId, getRenewalNodeBinary, isBalanceError, isEmptyWalletError, isInsufficientFundsError, isRetryable, isRpcError, runMnemosparkSlashHandler, startProxy };