opencode-athena 0.4.0 → 0.6.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/commands/athena-parallel.md +2 -2
- package/commands/athena-review-story.md +2 -2
- package/config/presets/copilot-only.json +4 -2
- package/config/presets/enterprise.json +5 -2
- package/config/presets/minimal.json +5 -2
- package/config/presets/solo-quick.json +5 -2
- package/config/presets/standard.json +5 -2
- package/config/schemas/athena.schema.json +5 -0
- package/dist/cli/index.js +789 -111
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.js +24 -2
- package/dist/index.js.map +1 -1
- package/dist/plugin/index.js +24 -2
- package/dist/plugin/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ interface InstallOptions {
|
|
|
14
14
|
advanced: boolean;
|
|
15
15
|
global: boolean;
|
|
16
16
|
local: boolean;
|
|
17
|
+
reconfigure?: boolean;
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* Subscription information gathered during install
|
|
@@ -88,6 +89,7 @@ interface ModelAnswers {
|
|
|
88
89
|
frontend?: string;
|
|
89
90
|
documentWriter?: string;
|
|
90
91
|
multimodalLooker?: string;
|
|
92
|
+
explore?: string;
|
|
91
93
|
settings?: {
|
|
92
94
|
sisyphus?: AgentSettings;
|
|
93
95
|
oracle?: AgentSettings;
|
|
@@ -95,6 +97,7 @@ interface ModelAnswers {
|
|
|
95
97
|
frontend?: AgentSettings;
|
|
96
98
|
documentWriter?: AgentSettings;
|
|
97
99
|
multimodalLooker?: AgentSettings;
|
|
100
|
+
explore?: AgentSettings;
|
|
98
101
|
overrides?: Record<string, AgentSettings>;
|
|
99
102
|
};
|
|
100
103
|
custom?: CustomModelDefinition[];
|
|
@@ -148,6 +151,7 @@ interface AthenaConfig {
|
|
|
148
151
|
frontend?: AgentSettings;
|
|
149
152
|
documentWriter?: AgentSettings;
|
|
150
153
|
multimodalLooker?: AgentSettings;
|
|
154
|
+
explore?: AgentSettings;
|
|
151
155
|
overrides?: Record<string, AgentSettings>;
|
|
152
156
|
};
|
|
153
157
|
custom?: CustomModelDefinition[];
|
|
@@ -977,9 +981,9 @@ declare const SprintStatusSchema: z.ZodObject<{
|
|
|
977
981
|
|
|
978
982
|
/**
|
|
979
983
|
* Current version of OpenCode Athena
|
|
980
|
-
*
|
|
984
|
+
* Dynamically read from package.json
|
|
981
985
|
*/
|
|
982
|
-
declare const VERSION
|
|
986
|
+
declare const VERSION: string;
|
|
983
987
|
/**
|
|
984
988
|
* Package name for CLI display
|
|
985
989
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { homedir, platform } from 'os';
|
|
2
2
|
import { tool } from '@opencode-ai/plugin';
|
|
3
|
+
import { existsSync, readFileSync } from 'fs';
|
|
3
4
|
import { join, dirname } from 'path';
|
|
4
|
-
import {
|
|
5
|
+
import { fileURLToPath } from 'url';
|
|
5
6
|
import { readFile, mkdir, writeFile, readdir, rm } from 'fs/promises';
|
|
6
7
|
import { parse, stringify } from 'yaml';
|
|
7
8
|
import { z } from 'zod';
|
|
@@ -149,7 +150,28 @@ IMPORTANT: You are implementing a BMAD story. Use athena_get_story to reload ful
|
|
|
149
150
|
}
|
|
150
151
|
};
|
|
151
152
|
}
|
|
152
|
-
|
|
153
|
+
function getPackageVersion() {
|
|
154
|
+
try {
|
|
155
|
+
const currentDir = dirname(fileURLToPath(import.meta.url));
|
|
156
|
+
const possiblePaths = [
|
|
157
|
+
join(currentDir, "..", "..", "package.json"),
|
|
158
|
+
join(currentDir, "..", "..", "..", "package.json")
|
|
159
|
+
];
|
|
160
|
+
for (const pkgPath of possiblePaths) {
|
|
161
|
+
if (!existsSync(pkgPath)) continue;
|
|
162
|
+
const content = readFileSync(pkgPath, "utf-8");
|
|
163
|
+
try {
|
|
164
|
+
const pkg = JSON.parse(content);
|
|
165
|
+
if (pkg.version) return pkg.version;
|
|
166
|
+
} catch {
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return "0.0.0";
|
|
170
|
+
} catch {
|
|
171
|
+
return "0.0.0";
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
var VERSION = getPackageVersion();
|
|
153
175
|
var PACKAGE_NAME = "opencode-athena";
|
|
154
176
|
var DISPLAY_NAME = "OpenCode Athena";
|
|
155
177
|
var CONFIG_PATHS = {
|