opencode-swarm 7.39.0 → 7.40.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/index.js +620 -16
- package/dist/commands/memory.d.ts +4 -0
- package/dist/commands/registry.d.ts +28 -0
- package/dist/commands/tool-policy.d.ts +1 -1
- package/dist/config/schema.d.ts +8 -0
- package/dist/index.js +620 -16
- package/dist/memory/config.d.ts +4 -0
- package/dist/memory/index.d.ts +2 -1
- package/dist/memory/local-jsonl-provider.d.ts +3 -1
- package/dist/memory/maintenance.d.ts +47 -0
- package/dist/memory/provider.d.ts +16 -0
- package/dist/memory/sqlite-provider.d.ts +3 -1
- package/dist/memory/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export declare function handleMemoryCommand(_directory: string, _args: string[]): Promise<string>;
|
|
2
2
|
export declare function handleMemoryStatusCommand(directory: string, _args: string[]): Promise<string>;
|
|
3
|
+
export declare function handleMemoryPendingCommand(directory: string, args: string[]): Promise<string>;
|
|
4
|
+
export declare function handleMemoryRecallLogCommand(directory: string, args: string[]): Promise<string>;
|
|
5
|
+
export declare function handleMemoryStaleCommand(directory: string, args: string[]): Promise<string>;
|
|
6
|
+
export declare function handleMemoryCompactCommand(directory: string, args: string[]): Promise<string>;
|
|
3
7
|
export declare function handleMemoryMigrateCommand(directory: string, _args: string[]): Promise<string>;
|
|
4
8
|
export declare function handleMemoryImportCommand(directory: string, _args: string[]): Promise<string>;
|
|
5
9
|
export declare function handleMemoryExportCommand(directory: string, _args: string[]): Promise<string>;
|
|
@@ -441,6 +441,34 @@ export declare const COMMAND_REGISTRY: {
|
|
|
441
441
|
readonly args: "";
|
|
442
442
|
readonly category: "diagnostics";
|
|
443
443
|
};
|
|
444
|
+
readonly 'memory pending': {
|
|
445
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
446
|
+
readonly description: "Show pending Swarm memory proposals and rejection reasons";
|
|
447
|
+
readonly subcommandOf: "memory";
|
|
448
|
+
readonly args: "--limit <n>";
|
|
449
|
+
readonly category: "diagnostics";
|
|
450
|
+
};
|
|
451
|
+
readonly 'memory recall-log': {
|
|
452
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
453
|
+
readonly description: "Summarize Swarm memory recall usage";
|
|
454
|
+
readonly subcommandOf: "memory";
|
|
455
|
+
readonly args: "--limit <n>";
|
|
456
|
+
readonly category: "diagnostics";
|
|
457
|
+
};
|
|
458
|
+
readonly 'memory compact': {
|
|
459
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
460
|
+
readonly description: "Compact deleted, superseded, and expired scratch memories";
|
|
461
|
+
readonly subcommandOf: "memory";
|
|
462
|
+
readonly args: "--confirm";
|
|
463
|
+
readonly category: "utility";
|
|
464
|
+
};
|
|
465
|
+
readonly 'memory stale': {
|
|
466
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
467
|
+
readonly description: "List stale and low-utility Swarm memories";
|
|
468
|
+
readonly subcommandOf: "memory";
|
|
469
|
+
readonly args: "--limit <n>";
|
|
470
|
+
readonly category: "diagnostics";
|
|
471
|
+
};
|
|
444
472
|
readonly 'memory export': {
|
|
445
473
|
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
446
474
|
readonly description: "Export current Swarm memory to JSONL files";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResolvedSwarmCommand, SwarmCommandPolicyResult } from './command-dispatch.js';
|
|
2
|
-
export declare const SWARM_COMMAND_TOOL_COMMANDS: readonly ["agents", "config", "config doctor", "config-doctor", "doctor", "doctor tools", "status", "show-plan", "plan", "help", "history", "evidence", "evidence summary", "evidence-summary", "retrieve", "diagnose", "preflight", "benchmark", "knowledge", "memory", "memory status", "memory export", "memory evaluate", "memory import", "memory migrate", "sync-plan", "export", "list-agents"];
|
|
2
|
+
export declare const SWARM_COMMAND_TOOL_COMMANDS: readonly ["agents", "config", "config doctor", "config-doctor", "doctor", "doctor tools", "status", "show-plan", "plan", "help", "history", "evidence", "evidence summary", "evidence-summary", "retrieve", "diagnose", "preflight", "benchmark", "knowledge", "memory", "memory status", "memory pending", "memory recall-log", "memory compact", "memory stale", "memory export", "memory evaluate", "memory import", "memory migrate", "sync-plan", "export", "list-agents"];
|
|
3
3
|
export type SwarmCommandToolInputCommand = (typeof SWARM_COMMAND_TOOL_COMMANDS)[number];
|
|
4
4
|
export declare const SWARM_COMMAND_TOOL_ALLOWLIST: Set<string>;
|
|
5
5
|
/**
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -531,6 +531,10 @@ export declare const MemoryConfigSchema: z.ZodObject<{
|
|
|
531
531
|
redaction: z.ZodDefault<z.ZodObject<{
|
|
532
532
|
rejectDurableSecrets: z.ZodDefault<z.ZodBoolean>;
|
|
533
533
|
}, z.core.$strip>>;
|
|
534
|
+
maintenance: z.ZodDefault<z.ZodObject<{
|
|
535
|
+
lowUtilityMaxConfidence: z.ZodDefault<z.ZodNumber>;
|
|
536
|
+
lowUtilityMinAgeDays: z.ZodDefault<z.ZodNumber>;
|
|
537
|
+
}, z.core.$strip>>;
|
|
534
538
|
hardDelete: z.ZodDefault<z.ZodBoolean>;
|
|
535
539
|
}, z.core.$strip>;
|
|
536
540
|
export type MemoryConfig = z.infer<typeof MemoryConfigSchema>;
|
|
@@ -1196,6 +1200,10 @@ export declare const PluginConfigSchema: z.ZodObject<{
|
|
|
1196
1200
|
redaction: z.ZodDefault<z.ZodObject<{
|
|
1197
1201
|
rejectDurableSecrets: z.ZodDefault<z.ZodBoolean>;
|
|
1198
1202
|
}, z.core.$strip>>;
|
|
1203
|
+
maintenance: z.ZodDefault<z.ZodObject<{
|
|
1204
|
+
lowUtilityMaxConfidence: z.ZodDefault<z.ZodNumber>;
|
|
1205
|
+
lowUtilityMinAgeDays: z.ZodDefault<z.ZodNumber>;
|
|
1206
|
+
}, z.core.$strip>>;
|
|
1199
1207
|
hardDelete: z.ZodDefault<z.ZodBoolean>;
|
|
1200
1208
|
}, z.core.$strip>>;
|
|
1201
1209
|
curator: z.ZodOptional<z.ZodObject<{
|