opencode-swarm 7.18.0 → 7.18.2
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 +27 -22
- package/dist/cli/index.js +273 -41
- package/dist/commands/council.d.ts +1 -1
- package/dist/commands/doctor.d.ts +7 -2
- package/dist/commands/index.d.ts +1 -1
- package/dist/commands/registry.d.ts +1 -0
- package/dist/index.js +410 -73
- package/dist/services/config-doctor.d.ts +15 -2
- package/package.json +1 -1
|
@@ -56,6 +56,18 @@ export interface ConfigDoctorResult {
|
|
|
56
56
|
/** The config that was analyzed */
|
|
57
57
|
configSource: string;
|
|
58
58
|
}
|
|
59
|
+
/** Model availability snapshot from the active OpenCode provider registry. */
|
|
60
|
+
export interface ModelAvailability {
|
|
61
|
+
/** Fully-qualified model IDs in provider/model form. */
|
|
62
|
+
availableModelIds: ReadonlySet<string>;
|
|
63
|
+
/** Human-readable source for diagnostics. */
|
|
64
|
+
source: string;
|
|
65
|
+
/** Optional failure message when the registry could not be loaded. */
|
|
66
|
+
error?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface ConfigDoctorOptions {
|
|
69
|
+
modelAvailability?: ModelAvailability;
|
|
70
|
+
}
|
|
59
71
|
/** Backup artifact for rollback */
|
|
60
72
|
export interface ConfigBackup {
|
|
61
73
|
/** When the backup was created */
|
|
@@ -90,10 +102,11 @@ export declare function writeBackupArtifact(directory: string, backup: ConfigBac
|
|
|
90
102
|
* @returns the path to the restored config file, or null if restore failed
|
|
91
103
|
*/
|
|
92
104
|
export declare function restoreFromBackup(backupPath: string, directory: string): string | null;
|
|
105
|
+
export declare function collectConfiguredModelRefs(config: PluginConfig): Map<string, Set<string>>;
|
|
93
106
|
/**
|
|
94
107
|
* Run the config doctor on a loaded config
|
|
95
108
|
*/
|
|
96
|
-
export declare function runConfigDoctor(config: PluginConfig, directory: string): ConfigDoctorResult;
|
|
109
|
+
export declare function runConfigDoctor(config: PluginConfig, directory: string, options?: ConfigDoctorOptions): ConfigDoctorResult;
|
|
97
110
|
/**
|
|
98
111
|
* Apply safe auto-fixes to config
|
|
99
112
|
* Only applies low-risk, non-destructive fixes
|
|
@@ -116,7 +129,7 @@ export declare function shouldRunOnStartup(automationConfig: {
|
|
|
116
129
|
/**
|
|
117
130
|
* Full config doctor run with backup and fix application
|
|
118
131
|
*/
|
|
119
|
-
export declare function runConfigDoctorWithFixes(directory: string, config: PluginConfig, autoFix?: boolean): Promise<{
|
|
132
|
+
export declare function runConfigDoctorWithFixes(directory: string, config: PluginConfig, autoFix?: boolean, options?: ConfigDoctorOptions): Promise<{
|
|
120
133
|
result: ConfigDoctorResult;
|
|
121
134
|
backupPath: string | null;
|
|
122
135
|
appliedFixes: ConfigFix[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-swarm",
|
|
3
|
-
"version": "7.18.
|
|
3
|
+
"version": "7.18.2",
|
|
4
4
|
"description": "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|