mnemospark 0.7.0 → 0.8.1

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
@@ -549,6 +549,8 @@ type ProxySettleOptions = {
549
549
  payment?: Record<string, unknown>;
550
550
  /** Optional alternate inline payment authorization envelope. */
551
551
  paymentAuthorization?: Record<string, unknown> | string;
552
+ renewal?: boolean;
553
+ objectKey?: string;
552
554
  };
553
555
  /** Result from forwarding payment/settle to the backend (or proxy). */
554
556
  type BackendSettleForwardResult = {
@@ -612,6 +614,8 @@ type ProxyStorageOptions = {
612
614
  proxyBaseUrl?: string;
613
615
  fetchImpl?: FetchLike$1;
614
616
  correlation?: RequestCorrelation;
617
+ /** Proxy-only: preferred on-disk basename under the download directory (not sent to the backend). */
618
+ downloadLocalBasename?: string;
615
619
  };
616
620
 
617
621
  type FetchLike = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
@@ -622,6 +626,8 @@ type BackupObjectOptions = {
622
626
  now?: () => number;
623
627
  randomBytes?: (size: number) => Buffer;
624
628
  availableDiskBytes?: number;
629
+ /** Sanitized basename for the archive file under tmpDir (production backup). */
630
+ archiveBasename?: string;
625
631
  };
626
632
  type BackupObjectResult = {
627
633
  objectId: string;
@@ -695,10 +701,43 @@ type CreateCloudCommandOptions = {
695
701
  requestStorageLsFn?: (request: StorageLsRequest, options?: ProxyStorageOptions) => Promise<StorageLsResponse>;
696
702
  requestStorageDownloadFn?: (request: StorageObjectRequest, options?: ProxyStorageOptions) => Promise<StorageDownloadProxyResponse>;
697
703
  requestStorageDeleteFn?: (request: StorageObjectRequest, options?: ProxyStorageOptions) => Promise<StorageDeleteResponse>;
704
+ openClawCronAdapter?: OpenClawCronAdapter;
698
705
  subagentOrchestrator?: MnemosparkSubagentOrchestrator;
699
706
  proxyStorageOptions?: ProxyStorageOptions;
700
707
  mnemosparkHomeDir?: string;
701
708
  };
709
+ type OpenClawCronSchedule = {
710
+ kind: "cron";
711
+ expr: string;
712
+ tz: string;
713
+ };
714
+ type OpenClawCronPayload = {
715
+ kind: "agentTurn";
716
+ message: string;
717
+ };
718
+ type OpenClawCronDelivery = {
719
+ mode: "announce";
720
+ text: string;
721
+ };
722
+ type OpenClawCronJobEntry = {
723
+ jobId: string;
724
+ name: string;
725
+ schedule: OpenClawCronSchedule;
726
+ payload: OpenClawCronPayload;
727
+ sessionTarget: "isolated";
728
+ delivery: OpenClawCronDelivery;
729
+ };
730
+ type OpenClawCronJobForLookup = {
731
+ jobId: string;
732
+ message: string;
733
+ };
734
+ type OpenClawCronAdapter = {
735
+ add: (job: OpenClawCronJobEntry) => Promise<{
736
+ jobId: string;
737
+ }>;
738
+ remove: (jobId: string) => Promise<boolean>;
739
+ list: () => Promise<OpenClawCronJobForLookup[]>;
740
+ };
702
741
  declare function createCloudCommand(options?: CreateCloudCommandOptions): OpenClawPluginCommandDefinition;
703
742
 
704
743
  /**