mnemospark 0.1.22 → 0.2.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/README.md +8 -8
- package/README.md.bak +1 -1
- package/dist/cli.js +925 -86
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +51 -0
- package/dist/index.js +933 -91
- package/dist/index.js.map +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/skills/mnemospark/SKILL.md +31 -13
- package/skills/mnemospark/references/commands.md +38 -5
- package/skills/mnemospark/references/state-and-logs.md +40 -0
- package/skills/mnemospark/references/troubleshooting.md +16 -4
package/dist/index.d.ts
CHANGED
|
@@ -142,6 +142,9 @@ type PluginCommandResult = {
|
|
|
142
142
|
type PluginCommandHandler = (ctx: PluginCommandContext) => PluginCommandResult | Promise<PluginCommandResult>;
|
|
143
143
|
type OpenClawPluginCommandDefinition = {
|
|
144
144
|
name: string;
|
|
145
|
+
nativeNames?: Partial<Record<string, string>> & {
|
|
146
|
+
default?: string;
|
|
147
|
+
};
|
|
145
148
|
description: string;
|
|
146
149
|
acceptsArgs?: boolean;
|
|
147
150
|
requireAuth?: boolean;
|
|
@@ -584,6 +587,53 @@ type BackupObjectResult = {
|
|
|
584
587
|
archivePath: string;
|
|
585
588
|
objectLogPath: string;
|
|
586
589
|
};
|
|
590
|
+
type MnemosparkSubagentTaskV1 = {
|
|
591
|
+
schema: "mnemospark.subagent-task.v1";
|
|
592
|
+
operationId: string;
|
|
593
|
+
traceId: string;
|
|
594
|
+
command: "upload" | "download" | "backup";
|
|
595
|
+
args: string;
|
|
596
|
+
timeoutSeconds?: number;
|
|
597
|
+
requestedBy: {
|
|
598
|
+
pluginCommand: "mnemospark_cloud";
|
|
599
|
+
chatId?: string;
|
|
600
|
+
senderId?: string;
|
|
601
|
+
};
|
|
602
|
+
};
|
|
603
|
+
type MnemosparkSubagentDispatchHooks = {
|
|
604
|
+
onRunning?: (sessionId: string) => Promise<void> | void;
|
|
605
|
+
onProgress?: (sessionId: string, message: string) => Promise<void> | void;
|
|
606
|
+
onCompleted?: (sessionId: string, result: {
|
|
607
|
+
text: string;
|
|
608
|
+
isError?: boolean;
|
|
609
|
+
}) => Promise<void> | void;
|
|
610
|
+
onFailed?: (sessionId: string, details: {
|
|
611
|
+
code: string;
|
|
612
|
+
message: string;
|
|
613
|
+
}) => Promise<void> | void;
|
|
614
|
+
onCancelled?: (sessionId: string, reason?: string) => Promise<void> | void;
|
|
615
|
+
onTimedOut?: (sessionId: string) => Promise<void> | void;
|
|
616
|
+
};
|
|
617
|
+
type MnemosparkSubagentDispatchInput = {
|
|
618
|
+
task: MnemosparkSubagentTaskV1;
|
|
619
|
+
timeoutSeconds?: number;
|
|
620
|
+
runTask: () => Promise<{
|
|
621
|
+
text: string;
|
|
622
|
+
isError?: boolean;
|
|
623
|
+
}>;
|
|
624
|
+
hooks?: MnemosparkSubagentDispatchHooks;
|
|
625
|
+
};
|
|
626
|
+
type MnemosparkSubagentDispatchResult = {
|
|
627
|
+
sessionId: string;
|
|
628
|
+
};
|
|
629
|
+
type MnemosparkSubagentCancelResult = {
|
|
630
|
+
accepted: boolean;
|
|
631
|
+
alreadyTerminal?: boolean;
|
|
632
|
+
};
|
|
633
|
+
type MnemosparkSubagentOrchestrator = {
|
|
634
|
+
dispatch: (input: MnemosparkSubagentDispatchInput) => Promise<MnemosparkSubagentDispatchResult>;
|
|
635
|
+
cancel: (sessionId: string, reason?: string) => Promise<MnemosparkSubagentCancelResult>;
|
|
636
|
+
};
|
|
587
637
|
type CreateCloudCommandOptions = {
|
|
588
638
|
backupOptions?: BackupObjectOptions;
|
|
589
639
|
buildBackupObjectFn?: (targetPath: string, options?: BackupObjectOptions) => Promise<BackupObjectResult>;
|
|
@@ -601,6 +651,7 @@ type CreateCloudCommandOptions = {
|
|
|
601
651
|
requestStorageLsFn?: (request: StorageObjectRequest, options?: ProxyStorageOptions) => Promise<StorageLsResponse>;
|
|
602
652
|
requestStorageDownloadFn?: (request: StorageObjectRequest, options?: ProxyStorageOptions) => Promise<StorageDownloadProxyResponse>;
|
|
603
653
|
requestStorageDeleteFn?: (request: StorageObjectRequest, options?: ProxyStorageOptions) => Promise<StorageDeleteResponse>;
|
|
654
|
+
subagentOrchestrator?: MnemosparkSubagentOrchestrator;
|
|
604
655
|
proxyStorageOptions?: ProxyStorageOptions;
|
|
605
656
|
objectLogHomeDir?: string;
|
|
606
657
|
};
|