mnemospark 0.3.0 → 0.5.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/cli.js +925 -42
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +47 -2
- package/dist/index.js +925 -42
- package/dist/index.js.map +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -1
- package/skills/mnemospark/SKILL.md +2 -1
- package/skills/mnemospark/references/commands.md +7 -0
- package/skills/mnemospark/references/state-and-logs.md +8 -0
package/dist/index.d.ts
CHANGED
|
@@ -540,19 +540,62 @@ type ProxyUploadConfirmOptions = {
|
|
|
540
540
|
fetchImpl?: FetchLike$2;
|
|
541
541
|
correlation?: RequestCorrelation;
|
|
542
542
|
};
|
|
543
|
+
/** Options for requesting payment/settle via the proxy. */
|
|
544
|
+
type ProxySettleOptions = {
|
|
545
|
+
proxyBaseUrl?: string;
|
|
546
|
+
fetchImpl?: FetchLike$2;
|
|
547
|
+
correlation?: RequestCorrelation;
|
|
548
|
+
/** Optional inline payment authorization payload. */
|
|
549
|
+
payment?: Record<string, unknown>;
|
|
550
|
+
/** Optional alternate inline payment authorization envelope. */
|
|
551
|
+
paymentAuthorization?: Record<string, unknown> | string;
|
|
552
|
+
};
|
|
553
|
+
/** Result from forwarding payment/settle to the backend (or proxy). */
|
|
554
|
+
type BackendSettleForwardResult = {
|
|
555
|
+
status: number;
|
|
556
|
+
bodyText: string;
|
|
557
|
+
contentType: string;
|
|
558
|
+
paymentRequired?: string;
|
|
559
|
+
paymentResponse?: string;
|
|
560
|
+
};
|
|
543
561
|
|
|
544
562
|
type StorageObjectRequest = {
|
|
545
563
|
wallet_address: string;
|
|
546
564
|
object_key: string;
|
|
547
565
|
location?: string;
|
|
548
566
|
};
|
|
549
|
-
|
|
567
|
+
/** POST /storage/ls body: wallet required; omit object_key for S3 list mode. */
|
|
568
|
+
type StorageLsRequest = {
|
|
569
|
+
wallet_address: string;
|
|
570
|
+
object_key?: string;
|
|
571
|
+
location?: string;
|
|
572
|
+
continuation_token?: string;
|
|
573
|
+
max_keys?: number;
|
|
574
|
+
prefix?: string;
|
|
575
|
+
};
|
|
576
|
+
type StorageLsStatResponse = {
|
|
577
|
+
mode: "stat";
|
|
550
578
|
success: boolean;
|
|
551
579
|
key: string;
|
|
552
580
|
size_bytes: number;
|
|
553
581
|
bucket: string;
|
|
554
582
|
object_id?: string;
|
|
555
583
|
};
|
|
584
|
+
type StorageLsListObject = {
|
|
585
|
+
key: string;
|
|
586
|
+
size_bytes: number;
|
|
587
|
+
last_modified?: string;
|
|
588
|
+
};
|
|
589
|
+
type StorageLsListResponse = {
|
|
590
|
+
mode: "list";
|
|
591
|
+
success: boolean;
|
|
592
|
+
list_mode: true;
|
|
593
|
+
bucket: string;
|
|
594
|
+
objects: StorageLsListObject[];
|
|
595
|
+
is_truncated: boolean;
|
|
596
|
+
next_continuation_token: string | null;
|
|
597
|
+
};
|
|
598
|
+
type StorageLsResponse = StorageLsStatResponse | StorageLsListResponse;
|
|
556
599
|
type StorageDeleteResponse = {
|
|
557
600
|
success: boolean;
|
|
558
601
|
key: string;
|
|
@@ -647,8 +690,10 @@ type CreateCloudCommandOptions = {
|
|
|
647
690
|
idempotencyKeyFn?: () => string;
|
|
648
691
|
proxyQuoteOptions?: ProxyQuoteOptions;
|
|
649
692
|
proxyUploadOptions?: ProxyUploadOptions;
|
|
693
|
+
proxySettleOptions?: ProxySettleOptions;
|
|
650
694
|
proxyUploadConfirmOptions?: ProxyUploadConfirmOptions;
|
|
651
|
-
|
|
695
|
+
requestPaymentSettleViaProxyFn?: (quoteId: string, walletAddress: string, options?: ProxySettleOptions) => Promise<BackendSettleForwardResult>;
|
|
696
|
+
requestStorageLsFn?: (request: StorageLsRequest, options?: ProxyStorageOptions) => Promise<StorageLsResponse>;
|
|
652
697
|
requestStorageDownloadFn?: (request: StorageObjectRequest, options?: ProxyStorageOptions) => Promise<StorageDownloadProxyResponse>;
|
|
653
698
|
requestStorageDeleteFn?: (request: StorageObjectRequest, options?: ProxyStorageOptions) => Promise<StorageDeleteResponse>;
|
|
654
699
|
subagentOrchestrator?: MnemosparkSubagentOrchestrator;
|