opencode-swarm 7.16.0 → 7.17.1

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.
@@ -9,7 +9,8 @@ import type { KnowledgeConfig, MessageWithParts } from './knowledge-types.js';
9
9
  /**
10
10
  * Creates a knowledge injection hook that injects relevant knowledge into the
11
11
  * architect's message context at phase start. Supports caching for re-injection
12
- * after compaction.
12
+ * after compaction. Cache is per-instance (bound to the returned hook closure),
13
+ * ensuring no cross-test pollution in Bun's shared test-runner process.
13
14
  *
14
15
  * @param directory - The project directory containing .swarm/
15
16
  * @param config - Knowledge system configuration
@@ -81,7 +81,7 @@ export interface KnowledgeEntryBase extends ActionableDirectiveFields {
81
81
  tags: string[];
82
82
  scope: string;
83
83
  confidence: number;
84
- status: 'candidate' | 'established' | 'promoted' | 'archived';
84
+ status: 'candidate' | 'established' | 'promoted' | 'archived' | 'quarantined';
85
85
  confirmed_by: PhaseConfirmationRecord[] | ProjectConfirmationRecord[];
86
86
  retrieval_outcomes: RetrievalOutcome;
87
87
  schema_version: number;
@@ -31,6 +31,7 @@ export declare function validateSkillPath(p: unknown): boolean;
31
31
  export declare function validateActionableFields(fields: ActionableDirectiveFields | undefined): ActionableValidationResult;
32
32
  export type { ActionableDirectiveFields, DirectivePriority };
33
33
  export interface QuarantinedEntry extends KnowledgeEntryBase {
34
+ original_status: string;
34
35
  quarantine_reason: string;
35
36
  quarantined_at: string;
36
37
  reported_by: 'architect' | 'user' | 'auto';