oh-my-opencode 3.0.0-beta.9 → 3.0.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.ja.md +52 -804
- package/README.ko.md +377 -0
- package/README.md +61 -933
- package/README.zh-cn.md +53 -928
- package/dist/agents/atlas.d.ts +19 -0
- package/dist/agents/{sisyphus-prompt-builder.d.ts → dynamic-agent-prompt-builder.d.ts} +10 -6
- package/dist/agents/explore.d.ts +1 -2
- package/dist/agents/index.d.ts +9 -3
- package/dist/agents/librarian.d.ts +1 -2
- package/dist/agents/metis.d.ts +1 -2
- package/dist/agents/momus.d.ts +15 -3
- package/dist/agents/multimodal-looker.d.ts +1 -2
- package/dist/agents/oracle.d.ts +1 -2
- package/dist/agents/prometheus-prompt.d.ts +1 -1
- package/dist/agents/sisyphus-junior.d.ts +1 -2
- package/dist/agents/sisyphus.d.ts +2 -3
- package/dist/agents/types.d.ts +2 -2
- package/dist/agents/utils.d.ts +4 -3
- package/dist/cli/doctor/checks/dependencies.d.ts +1 -1
- package/dist/cli/doctor/checks/index.d.ts +1 -0
- package/dist/cli/doctor/checks/model-resolution.d.ts +33 -0
- package/dist/cli/doctor/constants.d.ts +1 -0
- package/dist/cli/index.js +886 -401
- package/dist/cli/install.test.d.ts +1 -0
- package/dist/cli/model-fallback.d.ts +18 -0
- package/dist/cli/model-fallback.test.d.ts +1 -0
- package/dist/cli/types.d.ts +9 -3
- package/dist/config/schema.d.ts +50 -246
- package/dist/features/background-agent/manager.d.ts +10 -0
- package/dist/features/background-agent/types.d.ts +4 -3
- package/dist/features/builtin-commands/templates/init-deep.d.ts +1 -1
- package/dist/features/builtin-commands/templates/start-work.d.ts +1 -1
- package/dist/features/builtin-commands/types.d.ts +1 -1
- package/dist/features/skill-mcp-manager/manager.d.ts +1 -0
- package/dist/features/task-toast-manager/manager.d.ts +1 -0
- package/dist/features/task-toast-manager/types.d.ts +3 -0
- package/dist/hooks/{sisyphus-orchestrator → atlas}/index.d.ts +3 -3
- package/dist/hooks/atlas/index.test.d.ts +1 -0
- package/dist/hooks/auto-update-checker/constants.d.ts +0 -3
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/prometheus-md-only/constants.d.ts +1 -0
- package/dist/hooks/question-label-truncator/index.d.ts +7 -0
- package/dist/hooks/question-label-truncator/index.test.d.ts +1 -0
- package/dist/hooks/ralph-loop/index.d.ts +1 -0
- package/dist/hooks/ralph-loop/types.d.ts +1 -0
- package/dist/index.js +12781 -13070
- package/dist/index.test.d.ts +1 -0
- package/dist/mcp/context7.d.ts +1 -0
- package/dist/mcp/grep-app.d.ts +1 -0
- package/dist/mcp/index.d.ts +1 -0
- package/dist/mcp/websearch.d.ts +1 -0
- package/dist/plugin-handlers/config-handler.d.ts +1 -0
- package/dist/shared/agent-config-integration.test.d.ts +1 -0
- package/dist/shared/agent-display-names.d.ts +12 -0
- package/dist/shared/agent-display-names.test.d.ts +1 -0
- package/dist/shared/case-insensitive.d.ts +24 -0
- package/dist/shared/case-insensitive.test.d.ts +1 -0
- package/dist/shared/config-path.d.ts +1 -5
- package/dist/shared/index.d.ts +4 -0
- package/dist/shared/migration.d.ts +15 -1
- package/dist/shared/model-availability.d.ts +8 -0
- package/dist/shared/model-availability.test.d.ts +1 -0
- package/dist/shared/model-requirements.d.ts +11 -0
- package/dist/shared/model-requirements.test.d.ts +1 -0
- package/dist/shared/model-resolver.d.ts +20 -0
- package/dist/shared/model-resolver.test.d.ts +1 -0
- package/dist/tools/delegate-task/constants.d.ts +3 -4
- package/dist/tools/delegate-task/tools.d.ts +11 -1
- package/dist/tools/delegate-task/types.d.ts +1 -1
- package/dist/tools/skill/types.d.ts +1 -1
- package/package.json +8 -12
- package/dist/agents/build-prompt.d.ts +0 -31
- package/dist/agents/document-writer.d.ts +0 -5
- package/dist/agents/frontend-ui-ux-engineer.d.ts +0 -5
- package/dist/agents/orchestrator-sisyphus.d.ts +0 -20
- package/dist/agents/plan-prompt.d.ts +0 -64
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-executor.d.ts +0 -3
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-purge-errors.d.ts +0 -7
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-storage.d.ts +0 -2
- package/dist/hooks/anthropic-context-window-limit-recovery/pruning-supersede.d.ts +0 -6
- package/dist/hooks/comment-checker/constants.d.ts +0 -3
- package/dist/hooks/comment-checker/filters/bdd.d.ts +0 -2
- package/dist/hooks/comment-checker/filters/directive.d.ts +0 -2
- package/dist/hooks/comment-checker/filters/docstring.d.ts +0 -2
- package/dist/hooks/comment-checker/filters/index.d.ts +0 -7
- package/dist/hooks/comment-checker/filters/shebang.d.ts +0 -2
- package/dist/hooks/comment-checker/output/formatter.d.ts +0 -2
- package/dist/hooks/comment-checker/output/index.d.ts +0 -2
- package/dist/hooks/comment-checker/output/xml-builder.d.ts +0 -2
- package/dist/tools/ast-grep/napi.d.ts +0 -13
- package/dist/tools/interactive-bash/types.d.ts +0 -3
- /package/dist/{hooks/sisyphus-orchestrator/index.test.d.ts → cli/doctor/checks/model-resolution.test.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { InstallConfig } from "./types";
|
|
2
|
+
interface AgentConfig {
|
|
3
|
+
model: string;
|
|
4
|
+
variant?: string;
|
|
5
|
+
}
|
|
6
|
+
interface CategoryConfig {
|
|
7
|
+
model: string;
|
|
8
|
+
variant?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GeneratedOmoConfig {
|
|
11
|
+
$schema: string;
|
|
12
|
+
agents?: Record<string, AgentConfig>;
|
|
13
|
+
categories?: Record<string, CategoryConfig>;
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
}
|
|
16
|
+
export declare function generateModelConfig(config: InstallConfig): GeneratedOmoConfig;
|
|
17
|
+
export declare function shouldShowChatGPTOnlyWarning(config: InstallConfig): boolean;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/cli/types.d.ts
CHANGED
|
@@ -3,17 +3,21 @@ export type BooleanArg = "no" | "yes";
|
|
|
3
3
|
export interface InstallArgs {
|
|
4
4
|
tui: boolean;
|
|
5
5
|
claude?: ClaudeSubscription;
|
|
6
|
-
|
|
6
|
+
openai?: BooleanArg;
|
|
7
7
|
gemini?: BooleanArg;
|
|
8
8
|
copilot?: BooleanArg;
|
|
9
|
+
opencodeZen?: BooleanArg;
|
|
10
|
+
zaiCodingPlan?: BooleanArg;
|
|
9
11
|
skipAuth?: boolean;
|
|
10
12
|
}
|
|
11
13
|
export interface InstallConfig {
|
|
12
14
|
hasClaude: boolean;
|
|
13
15
|
isMax20: boolean;
|
|
14
|
-
|
|
16
|
+
hasOpenAI: boolean;
|
|
15
17
|
hasGemini: boolean;
|
|
16
18
|
hasCopilot: boolean;
|
|
19
|
+
hasOpencodeZen: boolean;
|
|
20
|
+
hasZaiCodingPlan: boolean;
|
|
17
21
|
}
|
|
18
22
|
export interface ConfigMergeResult {
|
|
19
23
|
success: boolean;
|
|
@@ -24,7 +28,9 @@ export interface DetectedConfig {
|
|
|
24
28
|
isInstalled: boolean;
|
|
25
29
|
hasClaude: boolean;
|
|
26
30
|
isMax20: boolean;
|
|
27
|
-
|
|
31
|
+
hasOpenAI: boolean;
|
|
28
32
|
hasGemini: boolean;
|
|
29
33
|
hasCopilot: boolean;
|
|
34
|
+
hasOpencodeZen: boolean;
|
|
35
|
+
hasZaiCodingPlan: boolean;
|
|
30
36
|
}
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const BuiltinAgentNameSchema: z.ZodEnum<{
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
sisyphus: "sisyphus";
|
|
4
|
+
prometheus: "prometheus";
|
|
5
|
+
atlas: "atlas";
|
|
6
|
+
metis: "metis";
|
|
7
|
+
momus: "momus";
|
|
5
8
|
oracle: "oracle";
|
|
6
9
|
librarian: "librarian";
|
|
7
10
|
explore: "explore";
|
|
8
|
-
"frontend-ui-ux-engineer": "frontend-ui-ux-engineer";
|
|
9
|
-
"document-writer": "document-writer";
|
|
10
11
|
"multimodal-looker": "multimodal-looker";
|
|
11
|
-
"orchestrator-sisyphus": "orchestrator-sisyphus";
|
|
12
|
-
"Momus (Plan Reviewer)": "Momus (Plan Reviewer)";
|
|
13
12
|
}>;
|
|
14
13
|
export declare const BuiltinSkillNameSchema: z.ZodEnum<{
|
|
15
14
|
playwright: "playwright";
|
|
@@ -18,34 +17,32 @@ export declare const BuiltinSkillNameSchema: z.ZodEnum<{
|
|
|
18
17
|
}>;
|
|
19
18
|
export declare const OverridableAgentNameSchema: z.ZodEnum<{
|
|
20
19
|
plan: "plan";
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
sisyphus: "sisyphus";
|
|
21
|
+
prometheus: "prometheus";
|
|
22
|
+
atlas: "atlas";
|
|
23
|
+
metis: "metis";
|
|
24
|
+
momus: "momus";
|
|
25
|
+
"sisyphus-junior": "sisyphus-junior";
|
|
24
26
|
build: "build";
|
|
25
27
|
oracle: "oracle";
|
|
26
28
|
librarian: "librarian";
|
|
27
29
|
explore: "explore";
|
|
28
|
-
"frontend-ui-ux-engineer": "frontend-ui-ux-engineer";
|
|
29
|
-
"document-writer": "document-writer";
|
|
30
30
|
"multimodal-looker": "multimodal-looker";
|
|
31
|
-
"orchestrator-sisyphus": "orchestrator-sisyphus";
|
|
32
|
-
"Momus (Plan Reviewer)": "Momus (Plan Reviewer)";
|
|
33
|
-
"Sisyphus-Junior": "Sisyphus-Junior";
|
|
34
31
|
"OpenCode-Builder": "OpenCode-Builder";
|
|
35
32
|
}>;
|
|
36
33
|
export declare const AgentNameSchema: z.ZodEnum<{
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
sisyphus: "sisyphus";
|
|
35
|
+
prometheus: "prometheus";
|
|
36
|
+
atlas: "atlas";
|
|
37
|
+
metis: "metis";
|
|
38
|
+
momus: "momus";
|
|
39
39
|
oracle: "oracle";
|
|
40
40
|
librarian: "librarian";
|
|
41
41
|
explore: "explore";
|
|
42
|
-
"frontend-ui-ux-engineer": "frontend-ui-ux-engineer";
|
|
43
|
-
"document-writer": "document-writer";
|
|
44
42
|
"multimodal-looker": "multimodal-looker";
|
|
45
|
-
"orchestrator-sisyphus": "orchestrator-sisyphus";
|
|
46
|
-
"Momus (Plan Reviewer)": "Momus (Plan Reviewer)";
|
|
47
43
|
}>;
|
|
48
44
|
export declare const HookNameSchema: z.ZodEnum<{
|
|
45
|
+
atlas: "atlas";
|
|
49
46
|
"anthropic-context-window-limit-recovery": "anthropic-context-window-limit-recovery";
|
|
50
47
|
"todo-continuation-enforcer": "todo-continuation-enforcer";
|
|
51
48
|
"context-window-monitor": "context-window-monitor";
|
|
@@ -75,7 +72,6 @@ export declare const HookNameSchema: z.ZodEnum<{
|
|
|
75
72
|
"delegate-task-retry": "delegate-task-retry";
|
|
76
73
|
"prometheus-md-only": "prometheus-md-only";
|
|
77
74
|
"start-work": "start-work";
|
|
78
|
-
"sisyphus-orchestrator": "sisyphus-orchestrator";
|
|
79
75
|
}>;
|
|
80
76
|
export declare const BuiltinCommandNameSchema: z.ZodEnum<{
|
|
81
77
|
"start-work": "start-work";
|
|
@@ -232,7 +228,7 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
232
228
|
}>>;
|
|
233
229
|
}, z.core.$strip>>;
|
|
234
230
|
}, z.core.$strip>>;
|
|
235
|
-
|
|
231
|
+
sisyphus: z.ZodOptional<z.ZodObject<{
|
|
236
232
|
model: z.ZodOptional<z.ZodString>;
|
|
237
233
|
variant: z.ZodOptional<z.ZodString>;
|
|
238
234
|
category: z.ZodOptional<z.ZodString>;
|
|
@@ -282,7 +278,7 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
282
278
|
}>>;
|
|
283
279
|
}, z.core.$strip>>;
|
|
284
280
|
}, z.core.$strip>>;
|
|
285
|
-
"
|
|
281
|
+
"sisyphus-junior": z.ZodOptional<z.ZodObject<{
|
|
286
282
|
model: z.ZodOptional<z.ZodString>;
|
|
287
283
|
variant: z.ZodOptional<z.ZodString>;
|
|
288
284
|
category: z.ZodOptional<z.ZodString>;
|
|
@@ -382,7 +378,7 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
382
378
|
}>>;
|
|
383
379
|
}, z.core.$strip>>;
|
|
384
380
|
}, z.core.$strip>>;
|
|
385
|
-
|
|
381
|
+
prometheus: z.ZodOptional<z.ZodObject<{
|
|
386
382
|
model: z.ZodOptional<z.ZodString>;
|
|
387
383
|
variant: z.ZodOptional<z.ZodString>;
|
|
388
384
|
category: z.ZodOptional<z.ZodString>;
|
|
@@ -432,7 +428,7 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
432
428
|
}>>;
|
|
433
429
|
}, z.core.$strip>>;
|
|
434
430
|
}, z.core.$strip>>;
|
|
435
|
-
|
|
431
|
+
metis: z.ZodOptional<z.ZodObject<{
|
|
436
432
|
model: z.ZodOptional<z.ZodString>;
|
|
437
433
|
variant: z.ZodOptional<z.ZodString>;
|
|
438
434
|
category: z.ZodOptional<z.ZodString>;
|
|
@@ -482,7 +478,7 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
482
478
|
}>>;
|
|
483
479
|
}, z.core.$strip>>;
|
|
484
480
|
}, z.core.$strip>>;
|
|
485
|
-
|
|
481
|
+
momus: z.ZodOptional<z.ZodObject<{
|
|
486
482
|
model: z.ZodOptional<z.ZodString>;
|
|
487
483
|
variant: z.ZodOptional<z.ZodString>;
|
|
488
484
|
category: z.ZodOptional<z.ZodString>;
|
|
@@ -682,106 +678,6 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
682
678
|
}>>;
|
|
683
679
|
}, z.core.$strip>>;
|
|
684
680
|
}, z.core.$strip>>;
|
|
685
|
-
"frontend-ui-ux-engineer": z.ZodOptional<z.ZodObject<{
|
|
686
|
-
model: z.ZodOptional<z.ZodString>;
|
|
687
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
688
|
-
category: z.ZodOptional<z.ZodString>;
|
|
689
|
-
skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
690
|
-
temperature: z.ZodOptional<z.ZodNumber>;
|
|
691
|
-
top_p: z.ZodOptional<z.ZodNumber>;
|
|
692
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
693
|
-
prompt_append: z.ZodOptional<z.ZodString>;
|
|
694
|
-
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
695
|
-
disable: z.ZodOptional<z.ZodBoolean>;
|
|
696
|
-
description: z.ZodOptional<z.ZodString>;
|
|
697
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
698
|
-
subagent: "subagent";
|
|
699
|
-
primary: "primary";
|
|
700
|
-
all: "all";
|
|
701
|
-
}>>;
|
|
702
|
-
color: z.ZodOptional<z.ZodString>;
|
|
703
|
-
permission: z.ZodOptional<z.ZodObject<{
|
|
704
|
-
edit: z.ZodOptional<z.ZodEnum<{
|
|
705
|
-
allow: "allow";
|
|
706
|
-
deny: "deny";
|
|
707
|
-
ask: "ask";
|
|
708
|
-
}>>;
|
|
709
|
-
bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
710
|
-
allow: "allow";
|
|
711
|
-
deny: "deny";
|
|
712
|
-
ask: "ask";
|
|
713
|
-
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
714
|
-
allow: "allow";
|
|
715
|
-
deny: "deny";
|
|
716
|
-
ask: "ask";
|
|
717
|
-
}>>]>>;
|
|
718
|
-
webfetch: z.ZodOptional<z.ZodEnum<{
|
|
719
|
-
allow: "allow";
|
|
720
|
-
deny: "deny";
|
|
721
|
-
ask: "ask";
|
|
722
|
-
}>>;
|
|
723
|
-
doom_loop: z.ZodOptional<z.ZodEnum<{
|
|
724
|
-
allow: "allow";
|
|
725
|
-
deny: "deny";
|
|
726
|
-
ask: "ask";
|
|
727
|
-
}>>;
|
|
728
|
-
external_directory: z.ZodOptional<z.ZodEnum<{
|
|
729
|
-
allow: "allow";
|
|
730
|
-
deny: "deny";
|
|
731
|
-
ask: "ask";
|
|
732
|
-
}>>;
|
|
733
|
-
}, z.core.$strip>>;
|
|
734
|
-
}, z.core.$strip>>;
|
|
735
|
-
"document-writer": z.ZodOptional<z.ZodObject<{
|
|
736
|
-
model: z.ZodOptional<z.ZodString>;
|
|
737
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
738
|
-
category: z.ZodOptional<z.ZodString>;
|
|
739
|
-
skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
740
|
-
temperature: z.ZodOptional<z.ZodNumber>;
|
|
741
|
-
top_p: z.ZodOptional<z.ZodNumber>;
|
|
742
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
743
|
-
prompt_append: z.ZodOptional<z.ZodString>;
|
|
744
|
-
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
745
|
-
disable: z.ZodOptional<z.ZodBoolean>;
|
|
746
|
-
description: z.ZodOptional<z.ZodString>;
|
|
747
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
748
|
-
subagent: "subagent";
|
|
749
|
-
primary: "primary";
|
|
750
|
-
all: "all";
|
|
751
|
-
}>>;
|
|
752
|
-
color: z.ZodOptional<z.ZodString>;
|
|
753
|
-
permission: z.ZodOptional<z.ZodObject<{
|
|
754
|
-
edit: z.ZodOptional<z.ZodEnum<{
|
|
755
|
-
allow: "allow";
|
|
756
|
-
deny: "deny";
|
|
757
|
-
ask: "ask";
|
|
758
|
-
}>>;
|
|
759
|
-
bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
760
|
-
allow: "allow";
|
|
761
|
-
deny: "deny";
|
|
762
|
-
ask: "ask";
|
|
763
|
-
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
764
|
-
allow: "allow";
|
|
765
|
-
deny: "deny";
|
|
766
|
-
ask: "ask";
|
|
767
|
-
}>>]>>;
|
|
768
|
-
webfetch: z.ZodOptional<z.ZodEnum<{
|
|
769
|
-
allow: "allow";
|
|
770
|
-
deny: "deny";
|
|
771
|
-
ask: "ask";
|
|
772
|
-
}>>;
|
|
773
|
-
doom_loop: z.ZodOptional<z.ZodEnum<{
|
|
774
|
-
allow: "allow";
|
|
775
|
-
deny: "deny";
|
|
776
|
-
ask: "ask";
|
|
777
|
-
}>>;
|
|
778
|
-
external_directory: z.ZodOptional<z.ZodEnum<{
|
|
779
|
-
allow: "allow";
|
|
780
|
-
deny: "deny";
|
|
781
|
-
ask: "ask";
|
|
782
|
-
}>>;
|
|
783
|
-
}, z.core.$strip>>;
|
|
784
|
-
}, z.core.$strip>>;
|
|
785
681
|
"multimodal-looker": z.ZodOptional<z.ZodObject<{
|
|
786
682
|
model: z.ZodOptional<z.ZodString>;
|
|
787
683
|
variant: z.ZodOptional<z.ZodString>;
|
|
@@ -832,7 +728,7 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
832
728
|
}>>;
|
|
833
729
|
}, z.core.$strip>>;
|
|
834
730
|
}, z.core.$strip>>;
|
|
835
|
-
|
|
731
|
+
atlas: z.ZodOptional<z.ZodObject<{
|
|
836
732
|
model: z.ZodOptional<z.ZodString>;
|
|
837
733
|
variant: z.ZodOptional<z.ZodString>;
|
|
838
734
|
category: z.ZodOptional<z.ZodString>;
|
|
@@ -899,7 +795,8 @@ export declare const SisyphusAgentConfigSchema: z.ZodObject<{
|
|
|
899
795
|
replace_plan: z.ZodOptional<z.ZodBoolean>;
|
|
900
796
|
}, z.core.$strip>;
|
|
901
797
|
export declare const CategoryConfigSchema: z.ZodObject<{
|
|
902
|
-
|
|
798
|
+
description: z.ZodOptional<z.ZodString>;
|
|
799
|
+
model: z.ZodOptional<z.ZodString>;
|
|
903
800
|
variant: z.ZodOptional<z.ZodString>;
|
|
904
801
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
905
802
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -915,6 +812,7 @@ export declare const CategoryConfigSchema: z.ZodObject<{
|
|
|
915
812
|
low: "low";
|
|
916
813
|
medium: "medium";
|
|
917
814
|
high: "high";
|
|
815
|
+
xhigh: "xhigh";
|
|
918
816
|
}>>;
|
|
919
817
|
textVerbosity: z.ZodOptional<z.ZodEnum<{
|
|
920
818
|
low: "low";
|
|
@@ -923,18 +821,20 @@ export declare const CategoryConfigSchema: z.ZodObject<{
|
|
|
923
821
|
}>>;
|
|
924
822
|
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
925
823
|
prompt_append: z.ZodOptional<z.ZodString>;
|
|
824
|
+
is_unstable_agent: z.ZodOptional<z.ZodBoolean>;
|
|
926
825
|
}, z.core.$strip>;
|
|
927
826
|
export declare const BuiltinCategoryNameSchema: z.ZodEnum<{
|
|
928
827
|
"visual-engineering": "visual-engineering";
|
|
828
|
+
writing: "writing";
|
|
929
829
|
ultrabrain: "ultrabrain";
|
|
930
830
|
quick: "quick";
|
|
931
|
-
"
|
|
932
|
-
|
|
831
|
+
"unspecified-high": "unspecified-high";
|
|
832
|
+
"unspecified-low": "unspecified-low";
|
|
933
833
|
artistry: "artistry";
|
|
934
|
-
writing: "writing";
|
|
935
834
|
}>;
|
|
936
835
|
export declare const CategoriesConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
937
|
-
|
|
836
|
+
description: z.ZodOptional<z.ZodString>;
|
|
837
|
+
model: z.ZodOptional<z.ZodString>;
|
|
938
838
|
variant: z.ZodOptional<z.ZodString>;
|
|
939
839
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
940
840
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -950,6 +850,7 @@ export declare const CategoriesConfigSchema: z.ZodRecord<z.ZodString, z.ZodObjec
|
|
|
950
850
|
low: "low";
|
|
951
851
|
medium: "medium";
|
|
952
852
|
high: "high";
|
|
853
|
+
xhigh: "xhigh";
|
|
953
854
|
}>>;
|
|
954
855
|
textVerbosity: z.ZodOptional<z.ZodEnum<{
|
|
955
856
|
low: "low";
|
|
@@ -958,6 +859,7 @@ export declare const CategoriesConfigSchema: z.ZodRecord<z.ZodString, z.ZodObjec
|
|
|
958
859
|
}>>;
|
|
959
860
|
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
960
861
|
prompt_append: z.ZodOptional<z.ZodString>;
|
|
862
|
+
is_unstable_agent: z.ZodOptional<z.ZodBoolean>;
|
|
961
863
|
}, z.core.$strip>>;
|
|
962
864
|
export declare const CommentCheckerConfigSchema: z.ZodObject<{
|
|
963
865
|
custom_prompt: z.ZodOptional<z.ZodString>;
|
|
@@ -1096,16 +998,15 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1096
998
|
$schema: z.ZodOptional<z.ZodString>;
|
|
1097
999
|
disabled_mcps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1098
1000
|
disabled_agents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1099
|
-
|
|
1100
|
-
|
|
1001
|
+
sisyphus: "sisyphus";
|
|
1002
|
+
prometheus: "prometheus";
|
|
1003
|
+
atlas: "atlas";
|
|
1004
|
+
metis: "metis";
|
|
1005
|
+
momus: "momus";
|
|
1101
1006
|
oracle: "oracle";
|
|
1102
1007
|
librarian: "librarian";
|
|
1103
1008
|
explore: "explore";
|
|
1104
|
-
"frontend-ui-ux-engineer": "frontend-ui-ux-engineer";
|
|
1105
|
-
"document-writer": "document-writer";
|
|
1106
1009
|
"multimodal-looker": "multimodal-looker";
|
|
1107
|
-
"orchestrator-sisyphus": "orchestrator-sisyphus";
|
|
1108
|
-
"Momus (Plan Reviewer)": "Momus (Plan Reviewer)";
|
|
1109
1010
|
}>>>;
|
|
1110
1011
|
disabled_skills: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1111
1012
|
playwright: "playwright";
|
|
@@ -1113,6 +1014,7 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1113
1014
|
"git-master": "git-master";
|
|
1114
1015
|
}>>>;
|
|
1115
1016
|
disabled_hooks: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1017
|
+
atlas: "atlas";
|
|
1116
1018
|
"anthropic-context-window-limit-recovery": "anthropic-context-window-limit-recovery";
|
|
1117
1019
|
"todo-continuation-enforcer": "todo-continuation-enforcer";
|
|
1118
1020
|
"context-window-monitor": "context-window-monitor";
|
|
@@ -1142,7 +1044,6 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1142
1044
|
"delegate-task-retry": "delegate-task-retry";
|
|
1143
1045
|
"prometheus-md-only": "prometheus-md-only";
|
|
1144
1046
|
"start-work": "start-work";
|
|
1145
|
-
"sisyphus-orchestrator": "sisyphus-orchestrator";
|
|
1146
1047
|
}>>>;
|
|
1147
1048
|
disabled_commands: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1148
1049
|
"start-work": "start-work";
|
|
@@ -1249,7 +1150,7 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1249
1150
|
}>>;
|
|
1250
1151
|
}, z.core.$strip>>;
|
|
1251
1152
|
}, z.core.$strip>>;
|
|
1252
|
-
|
|
1153
|
+
sisyphus: z.ZodOptional<z.ZodObject<{
|
|
1253
1154
|
model: z.ZodOptional<z.ZodString>;
|
|
1254
1155
|
variant: z.ZodOptional<z.ZodString>;
|
|
1255
1156
|
category: z.ZodOptional<z.ZodString>;
|
|
@@ -1299,7 +1200,7 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1299
1200
|
}>>;
|
|
1300
1201
|
}, z.core.$strip>>;
|
|
1301
1202
|
}, z.core.$strip>>;
|
|
1302
|
-
"
|
|
1203
|
+
"sisyphus-junior": z.ZodOptional<z.ZodObject<{
|
|
1303
1204
|
model: z.ZodOptional<z.ZodString>;
|
|
1304
1205
|
variant: z.ZodOptional<z.ZodString>;
|
|
1305
1206
|
category: z.ZodOptional<z.ZodString>;
|
|
@@ -1399,7 +1300,7 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1399
1300
|
}>>;
|
|
1400
1301
|
}, z.core.$strip>>;
|
|
1401
1302
|
}, z.core.$strip>>;
|
|
1402
|
-
|
|
1303
|
+
prometheus: z.ZodOptional<z.ZodObject<{
|
|
1403
1304
|
model: z.ZodOptional<z.ZodString>;
|
|
1404
1305
|
variant: z.ZodOptional<z.ZodString>;
|
|
1405
1306
|
category: z.ZodOptional<z.ZodString>;
|
|
@@ -1449,7 +1350,7 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1449
1350
|
}>>;
|
|
1450
1351
|
}, z.core.$strip>>;
|
|
1451
1352
|
}, z.core.$strip>>;
|
|
1452
|
-
|
|
1353
|
+
metis: z.ZodOptional<z.ZodObject<{
|
|
1453
1354
|
model: z.ZodOptional<z.ZodString>;
|
|
1454
1355
|
variant: z.ZodOptional<z.ZodString>;
|
|
1455
1356
|
category: z.ZodOptional<z.ZodString>;
|
|
@@ -1499,7 +1400,7 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1499
1400
|
}>>;
|
|
1500
1401
|
}, z.core.$strip>>;
|
|
1501
1402
|
}, z.core.$strip>>;
|
|
1502
|
-
|
|
1403
|
+
momus: z.ZodOptional<z.ZodObject<{
|
|
1503
1404
|
model: z.ZodOptional<z.ZodString>;
|
|
1504
1405
|
variant: z.ZodOptional<z.ZodString>;
|
|
1505
1406
|
category: z.ZodOptional<z.ZodString>;
|
|
@@ -1699,106 +1600,6 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1699
1600
|
}>>;
|
|
1700
1601
|
}, z.core.$strip>>;
|
|
1701
1602
|
}, z.core.$strip>>;
|
|
1702
|
-
"frontend-ui-ux-engineer": z.ZodOptional<z.ZodObject<{
|
|
1703
|
-
model: z.ZodOptional<z.ZodString>;
|
|
1704
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
1705
|
-
category: z.ZodOptional<z.ZodString>;
|
|
1706
|
-
skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1707
|
-
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1708
|
-
top_p: z.ZodOptional<z.ZodNumber>;
|
|
1709
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
1710
|
-
prompt_append: z.ZodOptional<z.ZodString>;
|
|
1711
|
-
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
1712
|
-
disable: z.ZodOptional<z.ZodBoolean>;
|
|
1713
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1714
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
1715
|
-
subagent: "subagent";
|
|
1716
|
-
primary: "primary";
|
|
1717
|
-
all: "all";
|
|
1718
|
-
}>>;
|
|
1719
|
-
color: z.ZodOptional<z.ZodString>;
|
|
1720
|
-
permission: z.ZodOptional<z.ZodObject<{
|
|
1721
|
-
edit: z.ZodOptional<z.ZodEnum<{
|
|
1722
|
-
allow: "allow";
|
|
1723
|
-
deny: "deny";
|
|
1724
|
-
ask: "ask";
|
|
1725
|
-
}>>;
|
|
1726
|
-
bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1727
|
-
allow: "allow";
|
|
1728
|
-
deny: "deny";
|
|
1729
|
-
ask: "ask";
|
|
1730
|
-
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1731
|
-
allow: "allow";
|
|
1732
|
-
deny: "deny";
|
|
1733
|
-
ask: "ask";
|
|
1734
|
-
}>>]>>;
|
|
1735
|
-
webfetch: z.ZodOptional<z.ZodEnum<{
|
|
1736
|
-
allow: "allow";
|
|
1737
|
-
deny: "deny";
|
|
1738
|
-
ask: "ask";
|
|
1739
|
-
}>>;
|
|
1740
|
-
doom_loop: z.ZodOptional<z.ZodEnum<{
|
|
1741
|
-
allow: "allow";
|
|
1742
|
-
deny: "deny";
|
|
1743
|
-
ask: "ask";
|
|
1744
|
-
}>>;
|
|
1745
|
-
external_directory: z.ZodOptional<z.ZodEnum<{
|
|
1746
|
-
allow: "allow";
|
|
1747
|
-
deny: "deny";
|
|
1748
|
-
ask: "ask";
|
|
1749
|
-
}>>;
|
|
1750
|
-
}, z.core.$strip>>;
|
|
1751
|
-
}, z.core.$strip>>;
|
|
1752
|
-
"document-writer": z.ZodOptional<z.ZodObject<{
|
|
1753
|
-
model: z.ZodOptional<z.ZodString>;
|
|
1754
|
-
variant: z.ZodOptional<z.ZodString>;
|
|
1755
|
-
category: z.ZodOptional<z.ZodString>;
|
|
1756
|
-
skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1757
|
-
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1758
|
-
top_p: z.ZodOptional<z.ZodNumber>;
|
|
1759
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
1760
|
-
prompt_append: z.ZodOptional<z.ZodString>;
|
|
1761
|
-
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
1762
|
-
disable: z.ZodOptional<z.ZodBoolean>;
|
|
1763
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1764
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
1765
|
-
subagent: "subagent";
|
|
1766
|
-
primary: "primary";
|
|
1767
|
-
all: "all";
|
|
1768
|
-
}>>;
|
|
1769
|
-
color: z.ZodOptional<z.ZodString>;
|
|
1770
|
-
permission: z.ZodOptional<z.ZodObject<{
|
|
1771
|
-
edit: z.ZodOptional<z.ZodEnum<{
|
|
1772
|
-
allow: "allow";
|
|
1773
|
-
deny: "deny";
|
|
1774
|
-
ask: "ask";
|
|
1775
|
-
}>>;
|
|
1776
|
-
bash: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1777
|
-
allow: "allow";
|
|
1778
|
-
deny: "deny";
|
|
1779
|
-
ask: "ask";
|
|
1780
|
-
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1781
|
-
allow: "allow";
|
|
1782
|
-
deny: "deny";
|
|
1783
|
-
ask: "ask";
|
|
1784
|
-
}>>]>>;
|
|
1785
|
-
webfetch: z.ZodOptional<z.ZodEnum<{
|
|
1786
|
-
allow: "allow";
|
|
1787
|
-
deny: "deny";
|
|
1788
|
-
ask: "ask";
|
|
1789
|
-
}>>;
|
|
1790
|
-
doom_loop: z.ZodOptional<z.ZodEnum<{
|
|
1791
|
-
allow: "allow";
|
|
1792
|
-
deny: "deny";
|
|
1793
|
-
ask: "ask";
|
|
1794
|
-
}>>;
|
|
1795
|
-
external_directory: z.ZodOptional<z.ZodEnum<{
|
|
1796
|
-
allow: "allow";
|
|
1797
|
-
deny: "deny";
|
|
1798
|
-
ask: "ask";
|
|
1799
|
-
}>>;
|
|
1800
|
-
}, z.core.$strip>>;
|
|
1801
|
-
}, z.core.$strip>>;
|
|
1802
1603
|
"multimodal-looker": z.ZodOptional<z.ZodObject<{
|
|
1803
1604
|
model: z.ZodOptional<z.ZodString>;
|
|
1804
1605
|
variant: z.ZodOptional<z.ZodString>;
|
|
@@ -1849,7 +1650,7 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1849
1650
|
}>>;
|
|
1850
1651
|
}, z.core.$strip>>;
|
|
1851
1652
|
}, z.core.$strip>>;
|
|
1852
|
-
|
|
1653
|
+
atlas: z.ZodOptional<z.ZodObject<{
|
|
1853
1654
|
model: z.ZodOptional<z.ZodString>;
|
|
1854
1655
|
variant: z.ZodOptional<z.ZodString>;
|
|
1855
1656
|
category: z.ZodOptional<z.ZodString>;
|
|
@@ -1901,7 +1702,8 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1901
1702
|
}, z.core.$strip>>;
|
|
1902
1703
|
}, z.core.$strip>>;
|
|
1903
1704
|
categories: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1904
|
-
|
|
1705
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1706
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1905
1707
|
variant: z.ZodOptional<z.ZodString>;
|
|
1906
1708
|
temperature: z.ZodOptional<z.ZodNumber>;
|
|
1907
1709
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1917,6 +1719,7 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1917
1719
|
low: "low";
|
|
1918
1720
|
medium: "medium";
|
|
1919
1721
|
high: "high";
|
|
1722
|
+
xhigh: "xhigh";
|
|
1920
1723
|
}>>;
|
|
1921
1724
|
textVerbosity: z.ZodOptional<z.ZodEnum<{
|
|
1922
1725
|
low: "low";
|
|
@@ -1925,6 +1728,7 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1925
1728
|
}>>;
|
|
1926
1729
|
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
1927
1730
|
prompt_append: z.ZodOptional<z.ZodString>;
|
|
1731
|
+
is_unstable_agent: z.ZodOptional<z.ZodBoolean>;
|
|
1928
1732
|
}, z.core.$strip>>>;
|
|
1929
1733
|
claude_code: z.ZodOptional<z.ZodObject<{
|
|
1930
1734
|
mcp: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -25,12 +25,17 @@ export declare class BackgroundManager {
|
|
|
25
25
|
private concurrencyManager;
|
|
26
26
|
private shutdownTriggered;
|
|
27
27
|
private config?;
|
|
28
|
+
private queuesByKey;
|
|
29
|
+
private processingKeys;
|
|
28
30
|
constructor(ctx: PluginInput, config?: BackgroundTaskConfig);
|
|
29
31
|
launch(input: LaunchInput): Promise<BackgroundTask>;
|
|
32
|
+
private processKey;
|
|
33
|
+
private startTask;
|
|
30
34
|
getTask(id: string): BackgroundTask | undefined;
|
|
31
35
|
getTasksByParentSession(sessionID: string): BackgroundTask[];
|
|
32
36
|
getAllDescendantTasks(sessionID: string): BackgroundTask[];
|
|
33
37
|
findBySession(sessionID: string): BackgroundTask | undefined;
|
|
38
|
+
private getConcurrencyKeyFromInput;
|
|
34
39
|
/**
|
|
35
40
|
* Track a task created elsewhere (e.g., from delegate_task) for notification tracking.
|
|
36
41
|
* This allows tasks created by other tools to receive the same toast/prompt notifications.
|
|
@@ -61,6 +66,11 @@ export declare class BackgroundManager {
|
|
|
61
66
|
* Cleans up the parent entry if no pending tasks remain.
|
|
62
67
|
*/
|
|
63
68
|
private cleanupPendingByParent;
|
|
69
|
+
/**
|
|
70
|
+
* Cancels a pending task by removing it from queue and marking as cancelled.
|
|
71
|
+
* Does NOT abort session (no session exists yet) or release concurrency slot (wasn't acquired).
|
|
72
|
+
*/
|
|
73
|
+
cancelPendingTask(taskId: string): boolean;
|
|
64
74
|
private startPolling;
|
|
65
75
|
private stopPolling;
|
|
66
76
|
private registerProcessCleanup;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type BackgroundTaskStatus = "running" | "completed" | "error" | "cancelled";
|
|
1
|
+
export type BackgroundTaskStatus = "pending" | "running" | "completed" | "error" | "cancelled";
|
|
2
2
|
export interface TaskProgress {
|
|
3
3
|
toolCalls: number;
|
|
4
4
|
lastTool?: string;
|
|
@@ -8,14 +8,15 @@ export interface TaskProgress {
|
|
|
8
8
|
}
|
|
9
9
|
export interface BackgroundTask {
|
|
10
10
|
id: string;
|
|
11
|
-
sessionID
|
|
11
|
+
sessionID?: string;
|
|
12
12
|
parentSessionID: string;
|
|
13
13
|
parentMessageID: string;
|
|
14
14
|
description: string;
|
|
15
15
|
prompt: string;
|
|
16
16
|
agent: string;
|
|
17
17
|
status: BackgroundTaskStatus;
|
|
18
|
-
|
|
18
|
+
queuedAt?: Date;
|
|
19
|
+
startedAt?: Date;
|
|
19
20
|
completedAt?: Date;
|
|
20
21
|
result?: string;
|
|
21
22
|
error?: string;
|