opencode-swarm 7.36.0 → 7.38.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 +1203 -407
- package/dist/commands/index.d.ts +1 -1
- package/dist/commands/memory.d.ts +1 -0
- package/dist/commands/registry.d.ts +7 -0
- package/dist/commands/tool-policy.d.ts +1 -1
- package/dist/index.js +2207 -1498
- package/dist/memory/evaluation.d.ts +77 -0
- package/dist/memory/index.d.ts +1 -0
- package/dist/memory/sqlite-provider.d.ts +19 -0
- package/package.json +2 -1
- package/tests/fixtures/memory-recall/adversarial-memory.json +68 -0
- package/tests/fixtures/memory-recall/cross-repo-isolation.json +49 -0
- package/tests/fixtures/memory-recall/repo-conventions.json +64 -0
- package/tests/fixtures/memory-recall/stale-memory.json +88 -0
- package/tests/fixtures/memory-recall/testing-patterns.json +64 -0
package/dist/commands/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export { handleFullAutoCommand } from './full-auto';
|
|
|
24
24
|
export { handleHandoffCommand } from './handoff';
|
|
25
25
|
export { handleHistoryCommand } from './history';
|
|
26
26
|
export { handleKnowledgeListCommand, handleKnowledgeMigrateCommand, handleKnowledgeQuarantineCommand, handleKnowledgeRestoreCommand, } from './knowledge';
|
|
27
|
-
export { handleMemoryCommand, handleMemoryExportCommand, handleMemoryImportCommand, handleMemoryMigrateCommand, handleMemoryStatusCommand, } from './memory';
|
|
27
|
+
export { handleMemoryCommand, handleMemoryEvaluateCommand, handleMemoryExportCommand, handleMemoryImportCommand, handleMemoryMigrateCommand, handleMemoryStatusCommand, } from './memory';
|
|
28
28
|
export { handlePlanCommand } from './plan';
|
|
29
29
|
export { handlePreflightCommand } from './preflight';
|
|
30
30
|
export { handlePromoteCommand } from './promote';
|
|
@@ -3,3 +3,4 @@ export declare function handleMemoryStatusCommand(directory: string, _args: stri
|
|
|
3
3
|
export declare function handleMemoryMigrateCommand(directory: string, _args: string[]): Promise<string>;
|
|
4
4
|
export declare function handleMemoryImportCommand(directory: string, _args: string[]): Promise<string>;
|
|
5
5
|
export declare function handleMemoryExportCommand(directory: string, _args: string[]): Promise<string>;
|
|
6
|
+
export declare function handleMemoryEvaluateCommand(directory: string, args: string[]): Promise<string>;
|
|
@@ -441,6 +441,13 @@ export declare const COMMAND_REGISTRY: {
|
|
|
441
441
|
readonly args: "";
|
|
442
442
|
readonly category: "utility";
|
|
443
443
|
};
|
|
444
|
+
readonly 'memory evaluate': {
|
|
445
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
446
|
+
readonly description: "Run golden Swarm memory recall evaluation fixtures";
|
|
447
|
+
readonly subcommandOf: "memory";
|
|
448
|
+
readonly args: "--json, --fixtures <directory>";
|
|
449
|
+
readonly category: "diagnostics";
|
|
450
|
+
};
|
|
444
451
|
readonly 'memory import': {
|
|
445
452
|
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
446
453
|
readonly description: "Import legacy JSONL memory into SQLite";
|
|
@@ -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 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 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
|
/**
|