opencode-swarm 6.47.1 → 6.48.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 +59 -3
- package/dist/cli/index.js +2746 -2562
- package/dist/commands/doctor.d.ts +5 -0
- package/dist/commands/registry.d.ts +4 -0
- package/dist/hooks/curator-types.d.ts +3 -0
- package/dist/hooks/curator.d.ts +1 -1
- package/dist/index.js +1768 -835
- package/dist/services/tool-doctor.d.ts +20 -0
- package/dist/services/tool-doctor.test.d.ts +1 -0
- package/dist/tools/index.d.ts +7 -4
- package/dist/tools/placeholder-scan.d.ts +2 -0
- package/dist/tools/quality-budget.d.ts +2 -0
- package/dist/tools/syntax-check.d.ts +2 -0
- package/dist/tools/test-runner.d.ts +4 -0
- package/dist/tools/update-task-status.d.ts +5 -0
- package/dist/tools/verify-six-tools-registration.test.d.ts +9 -0
- package/package.json +1 -1
|
@@ -3,3 +3,8 @@
|
|
|
3
3
|
* Maps to: config doctor service (runConfigDoctor)
|
|
4
4
|
*/
|
|
5
5
|
export declare function handleDoctorCommand(directory: string, args: string[]): Promise<string>;
|
|
6
|
+
/**
|
|
7
|
+
* Handle /swarm doctor tools command.
|
|
8
|
+
* Maps to: tool doctor service (runToolDoctor)
|
|
9
|
+
*/
|
|
10
|
+
export declare function handleDoctorToolsCommand(directory: string, _args: string[]): Promise<string>;
|
|
@@ -39,6 +39,10 @@ export declare const COMMAND_REGISTRY: {
|
|
|
39
39
|
readonly description: "Run config doctor checks";
|
|
40
40
|
readonly subcommandOf: "config";
|
|
41
41
|
};
|
|
42
|
+
readonly 'doctor tools': {
|
|
43
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
44
|
+
readonly description: "Run tool registration coherence check";
|
|
45
|
+
};
|
|
42
46
|
readonly diagnose: {
|
|
43
47
|
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
44
48
|
readonly description: "Run health check on swarm state";
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Curator types — phase context consolidation and drift detection.
|
|
3
3
|
* No runtime logic. Types only.
|
|
4
4
|
*/
|
|
5
|
+
import type { KnowledgeCategory } from './knowledge-types.js';
|
|
5
6
|
/** Curator summary — anchored iterative format. Persisted to .swarm/curator-summary.json */
|
|
6
7
|
export interface CuratorSummary {
|
|
7
8
|
schema_version: 1;
|
|
@@ -39,6 +40,8 @@ export interface KnowledgeRecommendation {
|
|
|
39
40
|
entry_id?: string;
|
|
40
41
|
lesson: string;
|
|
41
42
|
reason: string;
|
|
43
|
+
category?: KnowledgeCategory;
|
|
44
|
+
confidence?: number;
|
|
42
45
|
}
|
|
43
46
|
/** Drift report — produced by critic after curator phase run */
|
|
44
47
|
export interface DriftReport {
|
package/dist/hooks/curator.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ export declare function runCuratorPhase(directory: string, phase: number, agents
|
|
|
83
83
|
* @param knowledgeConfig - Knowledge configuration (for path resolution)
|
|
84
84
|
* @returns Counts of applied and skipped recommendations
|
|
85
85
|
*/
|
|
86
|
-
export declare function applyCuratorKnowledgeUpdates(directory: string, recommendations: KnowledgeRecommendation[],
|
|
86
|
+
export declare function applyCuratorKnowledgeUpdates(directory: string, recommendations: KnowledgeRecommendation[], knowledgeConfig: KnowledgeConfig): Promise<{
|
|
87
87
|
applied: number;
|
|
88
88
|
skipped: number;
|
|
89
89
|
}>;
|