opencode-swarm 7.29.4 → 7.31.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.
@@ -10,6 +10,8 @@ export type QAAgentName = (typeof QA_AGENTS)[number];
10
10
  export type PipelineAgentName = (typeof PIPELINE_AGENTS)[number];
11
11
  export type AgentName = (typeof ALL_AGENT_NAMES)[number];
12
12
  export declare const AGENT_TOOL_MAP: Record<AgentName, ToolName[]>;
13
+ export declare const MEMORY_TOOL_NAMES: readonly ["swarm_memory_recall", "swarm_memory_propose"];
14
+ export declare const MEMORY_AGENT_TOOL_MAP: Partial<Record<AgentName, ToolName[]>>;
13
15
  /**
14
16
  * Human-readable descriptions for tools shown in the architect Available Tools block.
15
17
  * Used to generate the Available Tools section of the architect prompt at construction time.
@@ -18,7 +18,7 @@ export declare const _internals: {
18
18
  };
19
19
  export type { MigrationStatus, Phase, PhaseStatus, Plan, Task, TaskSize, TaskStatus, } from './plan-schema';
20
20
  export { MigrationStatusSchema, PhaseSchema, PhaseStatusSchema, PlanSchema, TaskSchema, TaskSizeSchema, TaskStatusSchema, } from './plan-schema';
21
- export type { AgentOverrideConfig, AutomationCapabilities, AutomationConfig, AutomationMode, LeanTurboConfig, PhaseCompleteConfig, PipelineConfig, PluginConfig, SwarmConfig, TurboConfig, } from './schema';
22
- export { AgentOverrideConfigSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, AutomationModeSchema, LeanTurboConfigSchema, PhaseCompleteConfigSchema, PipelineConfigSchema, PluginConfigSchema, SwarmConfigSchema, TurboConfigSchema, } from './schema';
21
+ export type { AgentOverrideConfig, AutomationCapabilities, AutomationConfig, AutomationMode, LeanTurboConfig, MemoryConfig, PhaseCompleteConfig, PipelineConfig, PluginConfig, SwarmConfig, TurboConfig, } from './schema';
22
+ export { AgentOverrideConfigSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, AutomationModeSchema, LeanTurboConfigSchema, MemoryConfigSchema, PhaseCompleteConfigSchema, PipelineConfigSchema, PluginConfigSchema, SwarmConfigSchema, TurboConfigSchema, } from './schema';
23
23
  export type { DeltaSpec, Obligation, SpecDelta, SpecRequirement, SpecScenario, SpecSection, SwarmSpec, } from './spec-schema';
24
24
  export { DeltaSpecSchema, ObligationSchema, SpecDeltaSchema, SpecRequirementSchema, SpecScenarioSchema, SpecSectionSchema, SwarmSpecSchema, validateSpecContent, } from './spec-schema';
@@ -502,6 +502,24 @@ export declare const KnowledgeConfigSchema: z.ZodObject<{
502
502
  sweep_enabled: z.ZodDefault<z.ZodBoolean>;
503
503
  }, z.core.$strip>;
504
504
  export type KnowledgeConfig = z.infer<typeof KnowledgeConfigSchema>;
505
+ export declare const MemoryConfigSchema: z.ZodObject<{
506
+ enabled: z.ZodDefault<z.ZodBoolean>;
507
+ provider: z.ZodDefault<z.ZodLiteral<"local-jsonl">>;
508
+ storageDir: z.ZodDefault<z.ZodString>;
509
+ recall: z.ZodDefault<z.ZodObject<{
510
+ defaultMaxItems: z.ZodDefault<z.ZodNumber>;
511
+ defaultTokenBudget: z.ZodDefault<z.ZodNumber>;
512
+ minScore: z.ZodDefault<z.ZodNumber>;
513
+ }, z.core.$strip>>;
514
+ writes: z.ZodDefault<z.ZodObject<{
515
+ mode: z.ZodDefault<z.ZodLiteral<"propose">>;
516
+ }, z.core.$strip>>;
517
+ redaction: z.ZodDefault<z.ZodObject<{
518
+ rejectDurableSecrets: z.ZodDefault<z.ZodBoolean>;
519
+ }, z.core.$strip>>;
520
+ hardDelete: z.ZodDefault<z.ZodBoolean>;
521
+ }, z.core.$strip>;
522
+ export type MemoryConfig = z.infer<typeof MemoryConfigSchema>;
505
523
  export declare const CuratorConfigSchema: z.ZodObject<{
506
524
  enabled: z.ZodDefault<z.ZodBoolean>;
507
525
  init_enabled: z.ZodDefault<z.ZodBoolean>;
@@ -1135,6 +1153,23 @@ export declare const PluginConfigSchema: z.ZodObject<{
1135
1153
  todo_max_phases: z.ZodDefault<z.ZodNumber>;
1136
1154
  sweep_enabled: z.ZodDefault<z.ZodBoolean>;
1137
1155
  }, z.core.$strip>>;
1156
+ memory: z.ZodOptional<z.ZodObject<{
1157
+ enabled: z.ZodDefault<z.ZodBoolean>;
1158
+ provider: z.ZodDefault<z.ZodLiteral<"local-jsonl">>;
1159
+ storageDir: z.ZodDefault<z.ZodString>;
1160
+ recall: z.ZodDefault<z.ZodObject<{
1161
+ defaultMaxItems: z.ZodDefault<z.ZodNumber>;
1162
+ defaultTokenBudget: z.ZodDefault<z.ZodNumber>;
1163
+ minScore: z.ZodDefault<z.ZodNumber>;
1164
+ }, z.core.$strip>>;
1165
+ writes: z.ZodDefault<z.ZodObject<{
1166
+ mode: z.ZodDefault<z.ZodLiteral<"propose">>;
1167
+ }, z.core.$strip>>;
1168
+ redaction: z.ZodDefault<z.ZodObject<{
1169
+ rejectDurableSecrets: z.ZodDefault<z.ZodBoolean>;
1170
+ }, z.core.$strip>>;
1171
+ hardDelete: z.ZodDefault<z.ZodBoolean>;
1172
+ }, z.core.$strip>>;
1138
1173
  curator: z.ZodOptional<z.ZodObject<{
1139
1174
  enabled: z.ZodDefault<z.ZodBoolean>;
1140
1175
  init_enabled: z.ZodDefault<z.ZodBoolean>;
@@ -3,11 +3,23 @@ import type { KnowledgeEntryBase, RejectedLesson } from './knowledge-types.js';
3
3
  export declare function getPlatformConfigDir(): string;
4
4
  export declare function resolveSwarmKnowledgePath(directory: string): string;
5
5
  export declare function resolveSwarmRejectedPath(directory: string): string;
6
+ export declare function resolveSwarmRetractionsPath(directory: string): string;
6
7
  export declare function resolveHiveKnowledgePath(): string;
7
8
  export declare function resolveHiveRejectedPath(): string;
8
9
  export declare function readKnowledge<T>(filePath: string): Promise<T[]>;
9
10
  export declare function normalizeEntry<T>(raw: T): T;
10
11
  export declare function readRejectedLessons(directory: string): Promise<RejectedLesson[]>;
12
+ export interface KnowledgeRetractionRecord {
13
+ id: string;
14
+ retracted_lesson: string;
15
+ normalized_lesson: string;
16
+ recorded_at: string;
17
+ reported_by: 'architect' | 'user' | 'auto';
18
+ matched_swarm_ids: string[];
19
+ matched_hive_ids: string[];
20
+ }
21
+ export declare function readRetractionRecords(directory: string): Promise<KnowledgeRetractionRecord[]>;
22
+ export declare function appendRetractionRecord(directory: string, record: KnowledgeRetractionRecord): Promise<void>;
11
23
  export declare function appendKnowledge<T>(filePath: string, entry: T): Promise<void>;
12
24
  export declare function rewriteKnowledge<T>(filePath: string, entries: T[]): Promise<void>;
13
25
  export declare function enforceKnowledgeCap<T>(filePath: string, maxEntries: number): Promise<void>;