omctest 0.0.2 → 0.0.3
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/dist/cli/index.js +42 -3
- package/dist/index.js +1 -1
- package/package.json +90 -86
package/dist/cli/index.js
CHANGED
|
@@ -650,7 +650,7 @@ import { Command } from "commander";
|
|
|
650
650
|
// package.json
|
|
651
651
|
var package_default = {
|
|
652
652
|
name: "omctest",
|
|
653
|
-
version: "0.0.
|
|
653
|
+
version: "0.0.3",
|
|
654
654
|
description: "Temporary Oh My Crew npm install test package",
|
|
655
655
|
main: "./dist/index.js",
|
|
656
656
|
types: "dist/index.d.ts",
|
|
@@ -62240,6 +62240,29 @@ var ULTIMATE_FALLBACK = "opencode/gpt-5-nano";
|
|
|
62240
62240
|
var SCHEMA_URL = "https://raw.githubusercontent.com/code-yeongyu/oh-my-openagent/dev/assets/oh-my-opencode.schema.json";
|
|
62241
62241
|
var BUILTIN_MCPS = ["websearch", "context7", "grep_app"];
|
|
62242
62242
|
var AXRAI_PROVIDER = "axrai";
|
|
62243
|
+
var AXRAI_RECOMMENDED_AGENT_MODELS = {
|
|
62244
|
+
sisyphus: { primary: "gpt-5.5", fallback: "claude-opus-4.6" },
|
|
62245
|
+
metis: { primary: "gpt-5.5", fallback: "claude-opus-4.6" },
|
|
62246
|
+
prometheus: { primary: "gpt-5.5", fallback: "claude-opus-4.6" },
|
|
62247
|
+
atlas: { primary: "gpt-5.4", fallback: "kimi-k2.5" },
|
|
62248
|
+
hephaestus: { primary: "gpt-5.4", fallback: "claude-opus-4.6" },
|
|
62249
|
+
oracle: { primary: "gemini-3.1-pro", fallback: "gpt-5.4" },
|
|
62250
|
+
momus: { primary: "gpt-5.4", fallback: "claude-opus-4.6" },
|
|
62251
|
+
explore: { primary: "claude-haiku-4.5", fallback: "gemini-3.0-flash" },
|
|
62252
|
+
librarian: { primary: "claude-haiku-4.5", fallback: "gemini-3.0-flash" },
|
|
62253
|
+
"multimodal-looker": { primary: "gpt-5.4", fallback: "kimi-k2.5" },
|
|
62254
|
+
"sisyphus-junior": { primary: "kimi-k2.5", fallback: "gpt-5.4" }
|
|
62255
|
+
};
|
|
62256
|
+
var AXRAI_RECOMMENDED_CATEGORY_MODELS = {
|
|
62257
|
+
"visual-engineering": { primary: "gemini-3.1-pro", fallback: "gpt-5.4" },
|
|
62258
|
+
artistry: { primary: "gemini-3.1-pro", fallback: "claude-opus-4.6" },
|
|
62259
|
+
ultrabrain: { primary: "gpt-5.5", fallback: "claude-opus-4.6" },
|
|
62260
|
+
deep: { primary: "gpt-5.4", fallback: "claude-opus-4.6" },
|
|
62261
|
+
quick: { primary: "claude-haiku-4.5", fallback: "gemini-3.0-flash" },
|
|
62262
|
+
"unspecified-high": { primary: "gpt-5.5", fallback: "claude-opus-4.6" },
|
|
62263
|
+
"unspecified-low": { primary: "kimi-k2.5", fallback: "gpt-5.4" },
|
|
62264
|
+
writing: { primary: "claude-haiku-4.5", fallback: "gemini-3.0-flash" }
|
|
62265
|
+
};
|
|
62243
62266
|
function toFallbackModelObject(entry, provider) {
|
|
62244
62267
|
return {
|
|
62245
62268
|
model: `${provider}/${transformModelForProvider2(provider, entry.model)}`,
|
|
@@ -62394,6 +62417,18 @@ function stripCatalogProvider(model, providerId) {
|
|
|
62394
62417
|
function withCatalogProvider(providerId, modelId) {
|
|
62395
62418
|
return `${providerId}/${modelId}`;
|
|
62396
62419
|
}
|
|
62420
|
+
function recommendedAxraiConfig(recommendation, allowedModelIds) {
|
|
62421
|
+
if (!recommendation || !allowedModelIds.has(recommendation.primary))
|
|
62422
|
+
return;
|
|
62423
|
+
const model = withCatalogProvider(AXRAI_PROVIDER, recommendation.primary);
|
|
62424
|
+
if (!allowedModelIds.has(recommendation.fallback) || recommendation.fallback === recommendation.primary) {
|
|
62425
|
+
return { model };
|
|
62426
|
+
}
|
|
62427
|
+
return {
|
|
62428
|
+
model,
|
|
62429
|
+
fallback_models: [{ model: withCatalogProvider(AXRAI_PROVIDER, recommendation.fallback) }]
|
|
62430
|
+
};
|
|
62431
|
+
}
|
|
62397
62432
|
function versionScore(modelId) {
|
|
62398
62433
|
const version = modelId.match(/(\d+)(?:[.-](\d+))?/);
|
|
62399
62434
|
if (!version)
|
|
@@ -62515,6 +62550,8 @@ function createCatalogModelSelector(input) {
|
|
|
62515
62550
|
};
|
|
62516
62551
|
}
|
|
62517
62552
|
function generateAxraiModelConfig(installConfig) {
|
|
62553
|
+
const allowedModelIds = new Set(installConfig.axraiModelIds ?? []);
|
|
62554
|
+
const useRecommendedModels = installConfig.axraiTier === "pro" || installConfig.axraiTier === "owner";
|
|
62518
62555
|
const selector = createCatalogModelSelector({
|
|
62519
62556
|
providerId: AXRAI_PROVIDER,
|
|
62520
62557
|
modelIds: installConfig.axraiModelIds ?? [],
|
|
@@ -62524,10 +62561,12 @@ function generateAxraiModelConfig(installConfig) {
|
|
|
62524
62561
|
const agents = {};
|
|
62525
62562
|
const categories2 = {};
|
|
62526
62563
|
for (const [role, req] of Object.entries(CLI_AGENT_MODEL_REQUIREMENTS)) {
|
|
62527
|
-
|
|
62564
|
+
const recommended = useRecommendedModels ? recommendedAxraiConfig(AXRAI_RECOMMENDED_AGENT_MODELS[role], allowedModelIds) : undefined;
|
|
62565
|
+
agents[role] = recommended ?? selector.selectForChain(role === "sisyphus" ? getSisyphusFallbackChain() : req.fallbackChain, role === "explore" || role === "librarian");
|
|
62528
62566
|
}
|
|
62529
62567
|
for (const [category, req] of Object.entries(CLI_CATEGORY_MODEL_REQUIREMENTS)) {
|
|
62530
|
-
|
|
62568
|
+
const recommended = useRecommendedModels ? recommendedAxraiConfig(AXRAI_RECOMMENDED_CATEGORY_MODELS[category], allowedModelIds) : undefined;
|
|
62569
|
+
categories2[category] = recommended ?? selector.selectForChain(req.fallbackChain, category === "quick" || category === "writing");
|
|
62531
62570
|
}
|
|
62532
62571
|
return {
|
|
62533
62572
|
$schema: SCHEMA_URL,
|
package/dist/index.js
CHANGED
|
@@ -134233,7 +134233,7 @@ class PostHog extends PostHogBackendClient {
|
|
|
134233
134233
|
// package.json
|
|
134234
134234
|
var package_default = {
|
|
134235
134235
|
name: "omctest",
|
|
134236
|
-
version: "0.0.
|
|
134236
|
+
version: "0.0.3",
|
|
134237
134237
|
description: "Temporary Oh My Crew npm install test package",
|
|
134238
134238
|
main: "./dist/index.js",
|
|
134239
134239
|
types: "dist/index.d.ts",
|
package/package.json
CHANGED
|
@@ -1,87 +1,91 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "omctest",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "Temporary Oh My Crew npm install test package",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"bin": {
|
|
9
|
+
"omctest": "bin/oh-my-opencode.js",
|
|
10
|
+
"oh-my-crew": "bin/oh-my-opencode.js"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"bin/oh-my-opencode.js"
|
|
15
|
+
],
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./schema.json": "./dist/oh-my-opencode.schema.json"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"build": "bun run clean \u0026\u0026 bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi --external zod \u0026\u0026 tsc --emitDeclarationOnly \u0026\u0026 bun build src/cli/js-index.ts --outdir dist/cli --target node --format esm --packages external \u0026\u0026 mv dist/cli/js-index.js dist/cli/index.js \u0026\u0026 bun run build:schema",
|
|
25
|
+
"build:all": "bun run build \u0026\u0026 bun run build:binaries",
|
|
26
|
+
"build:binaries": "bun run script/build-binaries.ts",
|
|
27
|
+
"build:schema": "bun run script/build-schema.ts",
|
|
28
|
+
"build:model-capabilities": "bun run script/build-model-capabilities.ts",
|
|
29
|
+
"clean": "rm -rf dist",
|
|
30
|
+
"prepare": "bun run build",
|
|
31
|
+
"prepublishOnly": "bun run build",
|
|
32
|
+
"test:model-capabilities": "bun test src/shared/model-capability-aliases.test.ts src/shared/model-capability-guardrails.test.ts src/shared/model-capabilities.test.ts src/cli/doctor/checks/model-resolution.test.ts --bail",
|
|
33
|
+
"typecheck": "tsc --noEmit",
|
|
34
|
+
"test": "bun test"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"opencode",
|
|
38
|
+
"plugin",
|
|
39
|
+
"oracle",
|
|
40
|
+
"librarian",
|
|
41
|
+
"agents",
|
|
42
|
+
"ai",
|
|
43
|
+
"llm"
|
|
44
|
+
],
|
|
45
|
+
"author": "michaelxer (fork of oh-my-openagent by YeonGyu-Kim)",
|
|
46
|
+
"license": "SUL-1.0",
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "git+https://github.com/michaelxer/oh-my-crew.git"
|
|
50
|
+
},
|
|
51
|
+
"bugs": {
|
|
52
|
+
"url": "https://github.com/michaelxer/oh-my-crew/issues"
|
|
53
|
+
},
|
|
54
|
+
"homepage": "https://github.com/michaelxer/oh-my-crew#readme",
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@ast-grep/cli": "^0.41.1",
|
|
57
|
+
"@ast-grep/napi": "^0.41.1",
|
|
58
|
+
"@clack/prompts": "^0.11.0",
|
|
59
|
+
"@code-yeongyu/comment-checker": "^0.7.0",
|
|
60
|
+
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
61
|
+
"@opencode-ai/plugin": "^1.4.0",
|
|
62
|
+
"@opencode-ai/sdk": "^1.4.0",
|
|
63
|
+
"commander": "^14.0.2",
|
|
64
|
+
"detect-libc": "^2.0.0",
|
|
65
|
+
"diff": "^8.0.3",
|
|
66
|
+
"js-yaml": "^4.1.1",
|
|
67
|
+
"jsonc-parser": "^3.3.1",
|
|
68
|
+
"picocolors": "^1.1.1",
|
|
69
|
+
"picomatch": "^4.0.4",
|
|
70
|
+
"posthog-node": "^5.29.2",
|
|
71
|
+
"vscode-jsonrpc": "^8.2.0",
|
|
72
|
+
"zod": "^4.3.0"
|
|
73
|
+
},
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"@types/js-yaml": "^4.0.9",
|
|
76
|
+
"@types/picomatch": "^3.0.2",
|
|
77
|
+
"bun-types": "1.3.11",
|
|
78
|
+
"typescript": "^5.7.3"
|
|
79
|
+
},
|
|
80
|
+
"overrides": {
|
|
81
|
+
|
|
82
|
+
},
|
|
83
|
+
"trustedDependencies": [
|
|
84
|
+
"@ast-grep/cli",
|
|
85
|
+
"@ast-grep/napi",
|
|
86
|
+
"@code-yeongyu/comment-checker"
|
|
87
|
+
],
|
|
88
|
+
"peerDependencies": {
|
|
89
|
+
|
|
90
|
+
}
|
|
87
91
|
}
|