oh-my-opencode 3.2.2 → 3.2.4
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 +0 -10
- package/README.ko.md +0 -14
- package/README.md +1 -15
- package/README.zh-cn.md +0 -14
- package/bin/oh-my-opencode.js +0 -0
- package/dist/agents/atlas/utils.d.ts +1 -1
- package/dist/agents/dynamic-agent-prompt-builder.d.ts +6 -0
- package/dist/agents/utils.d.ts +2 -2
- package/dist/cli/doctor/checks/model-resolution.d.ts +5 -0
- package/dist/cli/index.js +2423 -3508
- package/dist/config/schema.d.ts +98 -55
- package/dist/features/background-agent/manager.d.ts +2 -0
- package/dist/features/boulder-state/storage.d.ts +1 -1
- package/dist/features/boulder-state/types.d.ts +2 -0
- package/dist/features/builtin-skills/skills.d.ts +1 -0
- package/dist/features/claude-tasks/storage.d.ts +2 -0
- package/dist/features/opencode-skill-loader/skill-content.d.ts +1 -0
- package/dist/hooks/auto-update-checker/constants.d.ts +1 -1
- package/dist/hooks/category-skill-reminder/index.d.ts +2 -1
- package/dist/hooks/compaction-context-injector/index.d.ts +1 -8
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/write-existing-file-guard/index.d.ts +2 -0
- package/dist/index.js +2916 -15810
- package/dist/mcp/index.d.ts +2 -1
- package/dist/mcp/websearch.d.ts +7 -5
- package/dist/plugin-state.d.ts +0 -1
- package/dist/shared/connected-providers-cache.d.ts +8 -1
- package/dist/shared/disabled-tools.d.ts +2 -0
- package/dist/shared/index.d.ts +2 -0
- package/dist/shared/migration.d.ts +12 -0
- package/dist/shared/model-availability.d.ts +2 -1
- package/dist/shared/model-requirements.d.ts +1 -0
- package/dist/shared/opencode-server-auth.d.ts +19 -0
- package/dist/shared/port-utils.d.ts +9 -0
- package/dist/tools/delegate-task/constants.d.ts +5 -1
- package/dist/tools/delegate-task/executor.d.ts +1 -0
- package/dist/tools/delegate-task/types.d.ts +6 -0
- package/dist/tools/look-at/types.d.ts +2 -1
- package/dist/tools/lsp/client.d.ts +6 -0
- package/dist/tools/skill/types.d.ts +1 -0
- package/package.json +8 -8
- package/dist/shared/ollama-ndjson-parser.d.ts +0 -108
package/dist/config/schema.d.ts
CHANGED
|
@@ -1,49 +1,50 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const BuiltinAgentNameSchema: z.ZodEnum<{
|
|
3
3
|
sisyphus: "sisyphus";
|
|
4
|
-
|
|
5
|
-
atlas: "atlas";
|
|
6
|
-
metis: "metis";
|
|
7
|
-
momus: "momus";
|
|
4
|
+
hephaestus: "hephaestus";
|
|
8
5
|
oracle: "oracle";
|
|
9
6
|
librarian: "librarian";
|
|
10
7
|
explore: "explore";
|
|
11
8
|
"multimodal-looker": "multimodal-looker";
|
|
12
|
-
|
|
9
|
+
metis: "metis";
|
|
10
|
+
momus: "momus";
|
|
11
|
+
atlas: "atlas";
|
|
12
|
+
prometheus: "prometheus";
|
|
13
13
|
}>;
|
|
14
14
|
export declare const BuiltinSkillNameSchema: z.ZodEnum<{
|
|
15
15
|
playwright: "playwright";
|
|
16
16
|
"agent-browser": "agent-browser";
|
|
17
|
+
"dev-browser": "dev-browser";
|
|
17
18
|
"frontend-ui-ux": "frontend-ui-ux";
|
|
18
19
|
"git-master": "git-master";
|
|
19
20
|
}>;
|
|
20
21
|
export declare const OverridableAgentNameSchema: z.ZodEnum<{
|
|
21
|
-
plan: "plan";
|
|
22
22
|
sisyphus: "sisyphus";
|
|
23
|
-
|
|
24
|
-
atlas: "atlas";
|
|
25
|
-
metis: "metis";
|
|
26
|
-
momus: "momus";
|
|
27
|
-
"sisyphus-junior": "sisyphus-junior";
|
|
28
|
-
build: "build";
|
|
23
|
+
hephaestus: "hephaestus";
|
|
29
24
|
oracle: "oracle";
|
|
30
25
|
librarian: "librarian";
|
|
31
26
|
explore: "explore";
|
|
32
27
|
"multimodal-looker": "multimodal-looker";
|
|
33
|
-
|
|
28
|
+
metis: "metis";
|
|
29
|
+
momus: "momus";
|
|
30
|
+
atlas: "atlas";
|
|
31
|
+
build: "build";
|
|
32
|
+
plan: "plan";
|
|
33
|
+
prometheus: "prometheus";
|
|
34
|
+
"sisyphus-junior": "sisyphus-junior";
|
|
34
35
|
"OpenCode-Builder": "OpenCode-Builder";
|
|
35
36
|
}>;
|
|
36
37
|
export declare const AgentNameSchema: z.ZodEnum<{
|
|
37
38
|
sisyphus: "sisyphus";
|
|
38
|
-
|
|
39
|
-
atlas: "atlas";
|
|
40
|
-
metis: "metis";
|
|
41
|
-
momus: "momus";
|
|
39
|
+
hephaestus: "hephaestus";
|
|
42
40
|
oracle: "oracle";
|
|
43
41
|
librarian: "librarian";
|
|
44
42
|
explore: "explore";
|
|
45
43
|
"multimodal-looker": "multimodal-looker";
|
|
46
|
-
|
|
44
|
+
metis: "metis";
|
|
45
|
+
momus: "momus";
|
|
46
|
+
atlas: "atlas";
|
|
47
|
+
prometheus: "prometheus";
|
|
47
48
|
}>;
|
|
48
49
|
export declare const HookNameSchema: z.ZodEnum<{
|
|
49
50
|
atlas: "atlas";
|
|
@@ -55,10 +56,12 @@ export declare const HookNameSchema: z.ZodEnum<{
|
|
|
55
56
|
"comment-checker": "comment-checker";
|
|
56
57
|
"grep-output-truncator": "grep-output-truncator";
|
|
57
58
|
"tool-output-truncator": "tool-output-truncator";
|
|
59
|
+
"question-label-truncator": "question-label-truncator";
|
|
58
60
|
"directory-agents-injector": "directory-agents-injector";
|
|
59
61
|
"directory-readme-injector": "directory-readme-injector";
|
|
60
62
|
"empty-task-response-detector": "empty-task-response-detector";
|
|
61
63
|
"think-mode": "think-mode";
|
|
64
|
+
"subagent-question-blocker": "subagent-question-blocker";
|
|
62
65
|
"preemptive-compaction": "preemptive-compaction";
|
|
63
66
|
"rules-injector": "rules-injector";
|
|
64
67
|
"background-notification": "background-notification";
|
|
@@ -80,12 +83,20 @@ export declare const HookNameSchema: z.ZodEnum<{
|
|
|
80
83
|
"sisyphus-junior-notepad": "sisyphus-junior-notepad";
|
|
81
84
|
"start-work": "start-work";
|
|
82
85
|
"unstable-agent-babysitter": "unstable-agent-babysitter";
|
|
86
|
+
"task-reminder": "task-reminder";
|
|
87
|
+
"task-resume-info": "task-resume-info";
|
|
83
88
|
"stop-continuation-guard": "stop-continuation-guard";
|
|
84
89
|
"tasks-todowrite-disabler": "tasks-todowrite-disabler";
|
|
90
|
+
"write-existing-file-guard": "write-existing-file-guard";
|
|
85
91
|
}>;
|
|
86
92
|
export declare const BuiltinCommandNameSchema: z.ZodEnum<{
|
|
93
|
+
"ralph-loop": "ralph-loop";
|
|
87
94
|
"start-work": "start-work";
|
|
88
95
|
"init-deep": "init-deep";
|
|
96
|
+
"ulw-loop": "ulw-loop";
|
|
97
|
+
"cancel-ralph": "cancel-ralph";
|
|
98
|
+
refactor: "refactor";
|
|
99
|
+
"stop-continuation": "stop-continuation";
|
|
89
100
|
}>;
|
|
90
101
|
export declare const AgentOverrideConfigSchema: z.ZodObject<{
|
|
91
102
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -100,8 +111,8 @@ export declare const AgentOverrideConfigSchema: z.ZodObject<{
|
|
|
100
111
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
101
112
|
description: z.ZodOptional<z.ZodString>;
|
|
102
113
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
103
|
-
subagent: "subagent";
|
|
104
114
|
primary: "primary";
|
|
115
|
+
subagent: "subagent";
|
|
105
116
|
all: "all";
|
|
106
117
|
}>>;
|
|
107
118
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -171,8 +182,8 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
171
182
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
172
183
|
description: z.ZodOptional<z.ZodString>;
|
|
173
184
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
174
|
-
subagent: "subagent";
|
|
175
185
|
primary: "primary";
|
|
186
|
+
subagent: "subagent";
|
|
176
187
|
all: "all";
|
|
177
188
|
}>>;
|
|
178
189
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -241,8 +252,8 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
241
252
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
242
253
|
description: z.ZodOptional<z.ZodString>;
|
|
243
254
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
244
|
-
subagent: "subagent";
|
|
245
255
|
primary: "primary";
|
|
256
|
+
subagent: "subagent";
|
|
246
257
|
all: "all";
|
|
247
258
|
}>>;
|
|
248
259
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -311,8 +322,8 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
311
322
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
312
323
|
description: z.ZodOptional<z.ZodString>;
|
|
313
324
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
314
|
-
subagent: "subagent";
|
|
315
325
|
primary: "primary";
|
|
326
|
+
subagent: "subagent";
|
|
316
327
|
all: "all";
|
|
317
328
|
}>>;
|
|
318
329
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -381,8 +392,8 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
381
392
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
382
393
|
description: z.ZodOptional<z.ZodString>;
|
|
383
394
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
384
|
-
subagent: "subagent";
|
|
385
395
|
primary: "primary";
|
|
396
|
+
subagent: "subagent";
|
|
386
397
|
all: "all";
|
|
387
398
|
}>>;
|
|
388
399
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -451,8 +462,8 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
451
462
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
452
463
|
description: z.ZodOptional<z.ZodString>;
|
|
453
464
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
454
|
-
subagent: "subagent";
|
|
455
465
|
primary: "primary";
|
|
466
|
+
subagent: "subagent";
|
|
456
467
|
all: "all";
|
|
457
468
|
}>>;
|
|
458
469
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -521,8 +532,8 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
521
532
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
522
533
|
description: z.ZodOptional<z.ZodString>;
|
|
523
534
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
524
|
-
subagent: "subagent";
|
|
525
535
|
primary: "primary";
|
|
536
|
+
subagent: "subagent";
|
|
526
537
|
all: "all";
|
|
527
538
|
}>>;
|
|
528
539
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -591,8 +602,8 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
591
602
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
592
603
|
description: z.ZodOptional<z.ZodString>;
|
|
593
604
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
594
|
-
subagent: "subagent";
|
|
595
605
|
primary: "primary";
|
|
606
|
+
subagent: "subagent";
|
|
596
607
|
all: "all";
|
|
597
608
|
}>>;
|
|
598
609
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -661,8 +672,8 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
661
672
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
662
673
|
description: z.ZodOptional<z.ZodString>;
|
|
663
674
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
664
|
-
subagent: "subagent";
|
|
665
675
|
primary: "primary";
|
|
676
|
+
subagent: "subagent";
|
|
666
677
|
all: "all";
|
|
667
678
|
}>>;
|
|
668
679
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -731,8 +742,8 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
731
742
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
732
743
|
description: z.ZodOptional<z.ZodString>;
|
|
733
744
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
734
|
-
subagent: "subagent";
|
|
735
745
|
primary: "primary";
|
|
746
|
+
subagent: "subagent";
|
|
736
747
|
all: "all";
|
|
737
748
|
}>>;
|
|
738
749
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -801,8 +812,8 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
801
812
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
802
813
|
description: z.ZodOptional<z.ZodString>;
|
|
803
814
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
804
|
-
subagent: "subagent";
|
|
805
815
|
primary: "primary";
|
|
816
|
+
subagent: "subagent";
|
|
806
817
|
all: "all";
|
|
807
818
|
}>>;
|
|
808
819
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -871,8 +882,8 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
871
882
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
872
883
|
description: z.ZodOptional<z.ZodString>;
|
|
873
884
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
874
|
-
subagent: "subagent";
|
|
875
885
|
primary: "primary";
|
|
886
|
+
subagent: "subagent";
|
|
876
887
|
all: "all";
|
|
877
888
|
}>>;
|
|
878
889
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -941,8 +952,8 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
941
952
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
942
953
|
description: z.ZodOptional<z.ZodString>;
|
|
943
954
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
944
|
-
subagent: "subagent";
|
|
945
955
|
primary: "primary";
|
|
956
|
+
subagent: "subagent";
|
|
946
957
|
all: "all";
|
|
947
958
|
}>>;
|
|
948
959
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -1011,8 +1022,8 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
1011
1022
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
1012
1023
|
description: z.ZodOptional<z.ZodString>;
|
|
1013
1024
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
1014
|
-
subagent: "subagent";
|
|
1015
1025
|
primary: "primary";
|
|
1026
|
+
subagent: "subagent";
|
|
1016
1027
|
all: "all";
|
|
1017
1028
|
}>>;
|
|
1018
1029
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -1081,8 +1092,8 @@ export declare const AgentOverridesSchema: z.ZodObject<{
|
|
|
1081
1092
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
1082
1093
|
description: z.ZodOptional<z.ZodString>;
|
|
1083
1094
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
1084
|
-
subagent: "subagent";
|
|
1085
1095
|
primary: "primary";
|
|
1096
|
+
subagent: "subagent";
|
|
1086
1097
|
all: "all";
|
|
1087
1098
|
}>>;
|
|
1088
1099
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -1372,6 +1383,16 @@ export declare const BrowserAutomationConfigSchema: z.ZodObject<{
|
|
|
1372
1383
|
"dev-browser": "dev-browser";
|
|
1373
1384
|
}>>;
|
|
1374
1385
|
}, z.core.$strip>;
|
|
1386
|
+
export declare const WebsearchProviderSchema: z.ZodEnum<{
|
|
1387
|
+
exa: "exa";
|
|
1388
|
+
tavily: "tavily";
|
|
1389
|
+
}>;
|
|
1390
|
+
export declare const WebsearchConfigSchema: z.ZodObject<{
|
|
1391
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
1392
|
+
exa: "exa";
|
|
1393
|
+
tavily: "tavily";
|
|
1394
|
+
}>>;
|
|
1395
|
+
}, z.core.$strip>;
|
|
1375
1396
|
export declare const TmuxLayoutSchema: z.ZodEnum<{
|
|
1376
1397
|
"main-horizontal": "main-horizontal";
|
|
1377
1398
|
"main-vertical": "main-vertical";
|
|
@@ -1393,12 +1414,14 @@ export declare const TmuxConfigSchema: z.ZodObject<{
|
|
|
1393
1414
|
agent_pane_min_width: z.ZodDefault<z.ZodNumber>;
|
|
1394
1415
|
}, z.core.$strip>;
|
|
1395
1416
|
export declare const SisyphusTasksConfigSchema: z.ZodObject<{
|
|
1396
|
-
storage_path: z.
|
|
1417
|
+
storage_path: z.ZodOptional<z.ZodString>;
|
|
1418
|
+
task_list_id: z.ZodOptional<z.ZodString>;
|
|
1397
1419
|
claude_code_compat: z.ZodDefault<z.ZodBoolean>;
|
|
1398
1420
|
}, z.core.$strip>;
|
|
1399
1421
|
export declare const SisyphusConfigSchema: z.ZodObject<{
|
|
1400
1422
|
tasks: z.ZodOptional<z.ZodObject<{
|
|
1401
|
-
storage_path: z.
|
|
1423
|
+
storage_path: z.ZodOptional<z.ZodString>;
|
|
1424
|
+
task_list_id: z.ZodOptional<z.ZodString>;
|
|
1402
1425
|
claude_code_compat: z.ZodDefault<z.ZodBoolean>;
|
|
1403
1426
|
}, z.core.$strip>>;
|
|
1404
1427
|
}, z.core.$strip>;
|
|
@@ -1409,19 +1432,20 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1409
1432
|
disabled_mcps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1410
1433
|
disabled_agents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1411
1434
|
sisyphus: "sisyphus";
|
|
1412
|
-
|
|
1413
|
-
atlas: "atlas";
|
|
1414
|
-
metis: "metis";
|
|
1415
|
-
momus: "momus";
|
|
1435
|
+
hephaestus: "hephaestus";
|
|
1416
1436
|
oracle: "oracle";
|
|
1417
1437
|
librarian: "librarian";
|
|
1418
1438
|
explore: "explore";
|
|
1419
1439
|
"multimodal-looker": "multimodal-looker";
|
|
1420
|
-
|
|
1440
|
+
metis: "metis";
|
|
1441
|
+
momus: "momus";
|
|
1442
|
+
atlas: "atlas";
|
|
1443
|
+
prometheus: "prometheus";
|
|
1421
1444
|
}>>>;
|
|
1422
1445
|
disabled_skills: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1423
1446
|
playwright: "playwright";
|
|
1424
1447
|
"agent-browser": "agent-browser";
|
|
1448
|
+
"dev-browser": "dev-browser";
|
|
1425
1449
|
"frontend-ui-ux": "frontend-ui-ux";
|
|
1426
1450
|
"git-master": "git-master";
|
|
1427
1451
|
}>>>;
|
|
@@ -1435,10 +1459,12 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1435
1459
|
"comment-checker": "comment-checker";
|
|
1436
1460
|
"grep-output-truncator": "grep-output-truncator";
|
|
1437
1461
|
"tool-output-truncator": "tool-output-truncator";
|
|
1462
|
+
"question-label-truncator": "question-label-truncator";
|
|
1438
1463
|
"directory-agents-injector": "directory-agents-injector";
|
|
1439
1464
|
"directory-readme-injector": "directory-readme-injector";
|
|
1440
1465
|
"empty-task-response-detector": "empty-task-response-detector";
|
|
1441
1466
|
"think-mode": "think-mode";
|
|
1467
|
+
"subagent-question-blocker": "subagent-question-blocker";
|
|
1442
1468
|
"preemptive-compaction": "preemptive-compaction";
|
|
1443
1469
|
"rules-injector": "rules-injector";
|
|
1444
1470
|
"background-notification": "background-notification";
|
|
@@ -1460,12 +1486,20 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1460
1486
|
"sisyphus-junior-notepad": "sisyphus-junior-notepad";
|
|
1461
1487
|
"start-work": "start-work";
|
|
1462
1488
|
"unstable-agent-babysitter": "unstable-agent-babysitter";
|
|
1489
|
+
"task-reminder": "task-reminder";
|
|
1490
|
+
"task-resume-info": "task-resume-info";
|
|
1463
1491
|
"stop-continuation-guard": "stop-continuation-guard";
|
|
1464
1492
|
"tasks-todowrite-disabler": "tasks-todowrite-disabler";
|
|
1493
|
+
"write-existing-file-guard": "write-existing-file-guard";
|
|
1465
1494
|
}>>>;
|
|
1466
1495
|
disabled_commands: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1496
|
+
"ralph-loop": "ralph-loop";
|
|
1467
1497
|
"start-work": "start-work";
|
|
1468
1498
|
"init-deep": "init-deep";
|
|
1499
|
+
"ulw-loop": "ulw-loop";
|
|
1500
|
+
"cancel-ralph": "cancel-ralph";
|
|
1501
|
+
refactor: "refactor";
|
|
1502
|
+
"stop-continuation": "stop-continuation";
|
|
1469
1503
|
}>>>;
|
|
1470
1504
|
disabled_tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1471
1505
|
agents: z.ZodOptional<z.ZodObject<{
|
|
@@ -1482,8 +1516,8 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1482
1516
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
1483
1517
|
description: z.ZodOptional<z.ZodString>;
|
|
1484
1518
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
1485
|
-
subagent: "subagent";
|
|
1486
1519
|
primary: "primary";
|
|
1520
|
+
subagent: "subagent";
|
|
1487
1521
|
all: "all";
|
|
1488
1522
|
}>>;
|
|
1489
1523
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -1552,8 +1586,8 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1552
1586
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
1553
1587
|
description: z.ZodOptional<z.ZodString>;
|
|
1554
1588
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
1555
|
-
subagent: "subagent";
|
|
1556
1589
|
primary: "primary";
|
|
1590
|
+
subagent: "subagent";
|
|
1557
1591
|
all: "all";
|
|
1558
1592
|
}>>;
|
|
1559
1593
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -1622,8 +1656,8 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1622
1656
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
1623
1657
|
description: z.ZodOptional<z.ZodString>;
|
|
1624
1658
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
1625
|
-
subagent: "subagent";
|
|
1626
1659
|
primary: "primary";
|
|
1660
|
+
subagent: "subagent";
|
|
1627
1661
|
all: "all";
|
|
1628
1662
|
}>>;
|
|
1629
1663
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -1692,8 +1726,8 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1692
1726
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
1693
1727
|
description: z.ZodOptional<z.ZodString>;
|
|
1694
1728
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
1695
|
-
subagent: "subagent";
|
|
1696
1729
|
primary: "primary";
|
|
1730
|
+
subagent: "subagent";
|
|
1697
1731
|
all: "all";
|
|
1698
1732
|
}>>;
|
|
1699
1733
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -1762,8 +1796,8 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1762
1796
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
1763
1797
|
description: z.ZodOptional<z.ZodString>;
|
|
1764
1798
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
1765
|
-
subagent: "subagent";
|
|
1766
1799
|
primary: "primary";
|
|
1800
|
+
subagent: "subagent";
|
|
1767
1801
|
all: "all";
|
|
1768
1802
|
}>>;
|
|
1769
1803
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -1832,8 +1866,8 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1832
1866
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
1833
1867
|
description: z.ZodOptional<z.ZodString>;
|
|
1834
1868
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
1835
|
-
subagent: "subagent";
|
|
1836
1869
|
primary: "primary";
|
|
1870
|
+
subagent: "subagent";
|
|
1837
1871
|
all: "all";
|
|
1838
1872
|
}>>;
|
|
1839
1873
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -1902,8 +1936,8 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1902
1936
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
1903
1937
|
description: z.ZodOptional<z.ZodString>;
|
|
1904
1938
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
1905
|
-
subagent: "subagent";
|
|
1906
1939
|
primary: "primary";
|
|
1940
|
+
subagent: "subagent";
|
|
1907
1941
|
all: "all";
|
|
1908
1942
|
}>>;
|
|
1909
1943
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -1972,8 +2006,8 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
1972
2006
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
1973
2007
|
description: z.ZodOptional<z.ZodString>;
|
|
1974
2008
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
1975
|
-
subagent: "subagent";
|
|
1976
2009
|
primary: "primary";
|
|
2010
|
+
subagent: "subagent";
|
|
1977
2011
|
all: "all";
|
|
1978
2012
|
}>>;
|
|
1979
2013
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -2042,8 +2076,8 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
2042
2076
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
2043
2077
|
description: z.ZodOptional<z.ZodString>;
|
|
2044
2078
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
2045
|
-
subagent: "subagent";
|
|
2046
2079
|
primary: "primary";
|
|
2080
|
+
subagent: "subagent";
|
|
2047
2081
|
all: "all";
|
|
2048
2082
|
}>>;
|
|
2049
2083
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -2112,8 +2146,8 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
2112
2146
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
2113
2147
|
description: z.ZodOptional<z.ZodString>;
|
|
2114
2148
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
2115
|
-
subagent: "subagent";
|
|
2116
2149
|
primary: "primary";
|
|
2150
|
+
subagent: "subagent";
|
|
2117
2151
|
all: "all";
|
|
2118
2152
|
}>>;
|
|
2119
2153
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -2182,8 +2216,8 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
2182
2216
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
2183
2217
|
description: z.ZodOptional<z.ZodString>;
|
|
2184
2218
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
2185
|
-
subagent: "subagent";
|
|
2186
2219
|
primary: "primary";
|
|
2220
|
+
subagent: "subagent";
|
|
2187
2221
|
all: "all";
|
|
2188
2222
|
}>>;
|
|
2189
2223
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -2252,8 +2286,8 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
2252
2286
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
2253
2287
|
description: z.ZodOptional<z.ZodString>;
|
|
2254
2288
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
2255
|
-
subagent: "subagent";
|
|
2256
2289
|
primary: "primary";
|
|
2290
|
+
subagent: "subagent";
|
|
2257
2291
|
all: "all";
|
|
2258
2292
|
}>>;
|
|
2259
2293
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -2322,8 +2356,8 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
2322
2356
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
2323
2357
|
description: z.ZodOptional<z.ZodString>;
|
|
2324
2358
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
2325
|
-
subagent: "subagent";
|
|
2326
2359
|
primary: "primary";
|
|
2360
|
+
subagent: "subagent";
|
|
2327
2361
|
all: "all";
|
|
2328
2362
|
}>>;
|
|
2329
2363
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -2392,8 +2426,8 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
2392
2426
|
disable: z.ZodOptional<z.ZodBoolean>;
|
|
2393
2427
|
description: z.ZodOptional<z.ZodString>;
|
|
2394
2428
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
2395
|
-
subagent: "subagent";
|
|
2396
2429
|
primary: "primary";
|
|
2430
|
+
subagent: "subagent";
|
|
2397
2431
|
all: "all";
|
|
2398
2432
|
}>>;
|
|
2399
2433
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -2581,6 +2615,12 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
2581
2615
|
"dev-browser": "dev-browser";
|
|
2582
2616
|
}>>;
|
|
2583
2617
|
}, z.core.$strip>>;
|
|
2618
|
+
websearch: z.ZodOptional<z.ZodObject<{
|
|
2619
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
2620
|
+
exa: "exa";
|
|
2621
|
+
tavily: "tavily";
|
|
2622
|
+
}>>;
|
|
2623
|
+
}, z.core.$strip>>;
|
|
2584
2624
|
tmux: z.ZodOptional<z.ZodObject<{
|
|
2585
2625
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2586
2626
|
layout: z.ZodDefault<z.ZodEnum<{
|
|
@@ -2596,7 +2636,8 @@ export declare const OhMyOpenCodeConfigSchema: z.ZodObject<{
|
|
|
2596
2636
|
}, z.core.$strip>>;
|
|
2597
2637
|
sisyphus: z.ZodOptional<z.ZodObject<{
|
|
2598
2638
|
tasks: z.ZodOptional<z.ZodObject<{
|
|
2599
|
-
storage_path: z.
|
|
2639
|
+
storage_path: z.ZodOptional<z.ZodString>;
|
|
2640
|
+
task_list_id: z.ZodOptional<z.ZodString>;
|
|
2600
2641
|
claude_code_compat: z.ZodDefault<z.ZodBoolean>;
|
|
2601
2642
|
}, z.core.$strip>>;
|
|
2602
2643
|
}, z.core.$strip>>;
|
|
@@ -2624,6 +2665,8 @@ export type BuiltinCategoryName = z.infer<typeof BuiltinCategoryNameSchema>;
|
|
|
2624
2665
|
export type GitMasterConfig = z.infer<typeof GitMasterConfigSchema>;
|
|
2625
2666
|
export type BrowserAutomationProvider = z.infer<typeof BrowserAutomationProviderSchema>;
|
|
2626
2667
|
export type BrowserAutomationConfig = z.infer<typeof BrowserAutomationConfigSchema>;
|
|
2668
|
+
export type WebsearchProvider = z.infer<typeof WebsearchProviderSchema>;
|
|
2669
|
+
export type WebsearchConfig = z.infer<typeof WebsearchConfigSchema>;
|
|
2627
2670
|
export type TmuxConfig = z.infer<typeof TmuxConfigSchema>;
|
|
2628
2671
|
export type TmuxLayout = z.infer<typeof TmuxLayoutSchema>;
|
|
2629
2672
|
export type SisyphusTasksConfig = z.infer<typeof SisyphusTasksConfigSchema>;
|
|
@@ -110,6 +110,8 @@ export declare class BackgroundManager {
|
|
|
110
110
|
private tryCompleteTask;
|
|
111
111
|
private notifyParentSession;
|
|
112
112
|
private formatDuration;
|
|
113
|
+
private isAbortedSessionError;
|
|
114
|
+
private getErrorText;
|
|
113
115
|
private hasRunningTasks;
|
|
114
116
|
private pruneStaleTasksAndNotifications;
|
|
115
117
|
private checkAndInterruptStaleTasks;
|
|
@@ -25,4 +25,4 @@ export declare function getPlanName(planPath: string): string;
|
|
|
25
25
|
/**
|
|
26
26
|
* Create a new boulder state for a plan.
|
|
27
27
|
*/
|
|
28
|
-
export declare function createBoulderState(planPath: string, sessionId: string): BoulderState;
|
|
28
|
+
export declare function createBoulderState(planPath: string, sessionId: string, agent?: string): BoulderState;
|
|
@@ -13,6 +13,8 @@ export interface BoulderState {
|
|
|
13
13
|
session_ids: string[];
|
|
14
14
|
/** Plan name derived from filename */
|
|
15
15
|
plan_name: string;
|
|
16
|
+
/** Agent type to use when resuming (e.g., 'atlas') */
|
|
17
|
+
agent?: string;
|
|
16
18
|
}
|
|
17
19
|
export interface PlanProgress {
|
|
18
20
|
/** Total number of checkboxes */
|
|
@@ -2,5 +2,6 @@ import type { BuiltinSkill } from "./types";
|
|
|
2
2
|
import type { BrowserAutomationProvider } from "../../config/schema";
|
|
3
3
|
export interface CreateBuiltinSkillsOptions {
|
|
4
4
|
browserProvider?: BrowserAutomationProvider;
|
|
5
|
+
disabledSkills?: Set<string>;
|
|
5
6
|
}
|
|
6
7
|
export declare function createBuiltinSkills(options?: CreateBuiltinSkillsOptions): BuiltinSkill[];
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { z } from "zod";
|
|
2
2
|
import type { OhMyOpenCodeConfig } from "../../config/schema";
|
|
3
3
|
export declare function getTaskDir(config?: Partial<OhMyOpenCodeConfig>): string;
|
|
4
|
+
export declare function sanitizePathSegment(value: string): string;
|
|
5
|
+
export declare function resolveTaskListId(config?: Partial<OhMyOpenCodeConfig>): string;
|
|
4
6
|
export declare function ensureDir(dirPath: string): void;
|
|
5
7
|
export declare function readJsonSafe<T>(filePath: string, schema: z.ZodType<T>): T | null;
|
|
6
8
|
export declare function writeJsonAtomic(filePath: string, data: unknown): void;
|
|
@@ -3,6 +3,7 @@ import type { GitMasterConfig, BrowserAutomationProvider } from "../../config/sc
|
|
|
3
3
|
export interface SkillResolutionOptions {
|
|
4
4
|
gitMasterConfig?: GitMasterConfig;
|
|
5
5
|
browserProvider?: BrowserAutomationProvider;
|
|
6
|
+
disabledSkills?: Set<string>;
|
|
6
7
|
}
|
|
7
8
|
declare function clearSkillCache(): void;
|
|
8
9
|
declare function getAllSkills(options?: SkillResolutionOptions): Promise<LoadedSkill[]>;
|
|
@@ -3,8 +3,8 @@ export declare const NPM_REGISTRY_URL = "https://registry.npmjs.org/-/package/oh
|
|
|
3
3
|
export declare const NPM_FETCH_TIMEOUT = 5000;
|
|
4
4
|
export declare const CACHE_DIR: string;
|
|
5
5
|
export declare const VERSION_FILE: string;
|
|
6
|
-
export declare const INSTALLED_PACKAGE_JSON: string;
|
|
7
6
|
export declare function getWindowsAppdataDir(): string | null;
|
|
8
7
|
export declare const USER_CONFIG_DIR: string;
|
|
9
8
|
export declare const USER_OPENCODE_CONFIG: string;
|
|
10
9
|
export declare const USER_OPENCODE_CONFIG_JSONC: string;
|
|
10
|
+
export declare const INSTALLED_PACKAGE_JSON: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PluginInput } from "@opencode-ai/plugin";
|
|
2
|
+
import type { AvailableSkill } from "../../agents/dynamic-agent-prompt-builder";
|
|
2
3
|
interface ToolExecuteInput {
|
|
3
4
|
tool: string;
|
|
4
5
|
sessionID: string;
|
|
@@ -10,7 +11,7 @@ interface ToolExecuteOutput {
|
|
|
10
11
|
output: string;
|
|
11
12
|
metadata: unknown;
|
|
12
13
|
}
|
|
13
|
-
export declare function createCategorySkillReminderHook(_ctx: PluginInput): {
|
|
14
|
+
export declare function createCategorySkillReminderHook(_ctx: PluginInput, availableSkills?: AvailableSkill[]): {
|
|
14
15
|
"tool.execute.after": (input: ToolExecuteInput, output: ToolExecuteOutput) => Promise<void>;
|
|
15
16
|
event: ({ event }: {
|
|
16
17
|
event: {
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
sessionID: string;
|
|
3
|
-
providerID: string;
|
|
4
|
-
modelID: string;
|
|
5
|
-
usageRatio: number;
|
|
6
|
-
directory: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function createCompactionContextInjector(): (ctx: SummarizeContext) => Promise<void>;
|
|
1
|
+
export declare function createCompactionContextInjector(): () => string;
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -31,7 +31,8 @@ export { createDelegateTaskRetryHook } from "./delegate-task-retry";
|
|
|
31
31
|
export { createQuestionLabelTruncatorHook } from "./question-label-truncator";
|
|
32
32
|
export { createSubagentQuestionBlockerHook } from "./subagent-question-blocker";
|
|
33
33
|
export { createStopContinuationGuardHook, type StopContinuationGuard } from "./stop-continuation-guard";
|
|
34
|
-
export { createCompactionContextInjector
|
|
34
|
+
export { createCompactionContextInjector } from "./compaction-context-injector";
|
|
35
35
|
export { createUnstableAgentBabysitterHook } from "./unstable-agent-babysitter";
|
|
36
36
|
export { createPreemptiveCompactionHook } from "./preemptive-compaction";
|
|
37
37
|
export { createTasksTodowriteDisablerHook } from "./tasks-todowrite-disabler";
|
|
38
|
+
export { createWriteExistingFileGuardHook } from "./write-existing-file-guard";
|