@hiai-gg/hiai-opencode 0.1.4 → 0.1.5
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/AGENTS.md +5 -3
- package/ARCHITECTURE.md +7 -6
- package/README.md +16 -4
- package/config/hiai-opencode.schema.json +71 -148
- package/dist/config/defaults.d.ts +1 -0
- package/dist/config/platform-schema.d.ts +273 -4
- package/dist/config/schema/categories.d.ts +2 -2
- package/dist/config/types.d.ts +21 -2
- package/dist/create-tools.d.ts +2 -0
- package/dist/index.js +577 -342
- package/dist/internals/plugins/websearch-cited/index.d.ts +7 -1
- package/dist/mcp/types.d.ts +1 -1
- package/dist/plugin/tool-registry.d.ts +2 -0
- package/dist/tools/skill-mcp/tools.d.ts +2 -0
- package/hiai-opencode.json +39 -173
- package/package.json +1 -1
- package/src/config/defaults.ts +158 -28
- package/src/config/loader.test.ts +16 -1
- package/src/config/loader.ts +4 -2
- package/src/config/platform-schema.ts +36 -2
- package/src/config/types.ts +33 -2
- package/src/create-tools.ts +4 -1
- package/src/index.ts +39 -1
- package/src/internals/plugins/websearch-cited/index.ts +10 -5
- package/src/lsp/index.ts +1 -0
- package/src/mcp/registry.ts +6 -1
- package/src/plugin/tool-registry.ts +4 -0
- package/src/tools/skill-mcp/tools.ts +45 -7
|
@@ -6,6 +6,149 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
6
6
|
model: z.ZodString;
|
|
7
7
|
description: z.ZodOptional<z.ZodString>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
|
+
export declare const ModelRecommendationSchema: z.ZodEnum<{
|
|
10
|
+
high: "high";
|
|
11
|
+
xhigh: "xhigh";
|
|
12
|
+
middle: "middle";
|
|
13
|
+
fast: "fast";
|
|
14
|
+
vision: "vision";
|
|
15
|
+
writing: "writing";
|
|
16
|
+
design: "design";
|
|
17
|
+
}>;
|
|
18
|
+
export declare const ModelSlotConfigSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
19
|
+
model: z.ZodString;
|
|
20
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
21
|
+
high: "high";
|
|
22
|
+
xhigh: "xhigh";
|
|
23
|
+
middle: "middle";
|
|
24
|
+
fast: "fast";
|
|
25
|
+
vision: "vision";
|
|
26
|
+
writing: "writing";
|
|
27
|
+
design: "design";
|
|
28
|
+
}>>;
|
|
29
|
+
}, z.core.$strip>]>;
|
|
30
|
+
export declare const ModelSlotsConfigSchema: z.ZodObject<{
|
|
31
|
+
bob: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
32
|
+
model: z.ZodString;
|
|
33
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
34
|
+
high: "high";
|
|
35
|
+
xhigh: "xhigh";
|
|
36
|
+
middle: "middle";
|
|
37
|
+
fast: "fast";
|
|
38
|
+
vision: "vision";
|
|
39
|
+
writing: "writing";
|
|
40
|
+
design: "design";
|
|
41
|
+
}>>;
|
|
42
|
+
}, z.core.$strip>]>>;
|
|
43
|
+
coder: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
44
|
+
model: z.ZodString;
|
|
45
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
high: "high";
|
|
47
|
+
xhigh: "xhigh";
|
|
48
|
+
middle: "middle";
|
|
49
|
+
fast: "fast";
|
|
50
|
+
vision: "vision";
|
|
51
|
+
writing: "writing";
|
|
52
|
+
design: "design";
|
|
53
|
+
}>>;
|
|
54
|
+
}, z.core.$strip>]>>;
|
|
55
|
+
strategist: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
56
|
+
model: z.ZodString;
|
|
57
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
58
|
+
high: "high";
|
|
59
|
+
xhigh: "xhigh";
|
|
60
|
+
middle: "middle";
|
|
61
|
+
fast: "fast";
|
|
62
|
+
vision: "vision";
|
|
63
|
+
writing: "writing";
|
|
64
|
+
design: "design";
|
|
65
|
+
}>>;
|
|
66
|
+
}, z.core.$strip>]>>;
|
|
67
|
+
guard: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
68
|
+
model: z.ZodString;
|
|
69
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
70
|
+
high: "high";
|
|
71
|
+
xhigh: "xhigh";
|
|
72
|
+
middle: "middle";
|
|
73
|
+
fast: "fast";
|
|
74
|
+
vision: "vision";
|
|
75
|
+
writing: "writing";
|
|
76
|
+
design: "design";
|
|
77
|
+
}>>;
|
|
78
|
+
}, z.core.$strip>]>>;
|
|
79
|
+
critic: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
80
|
+
model: z.ZodString;
|
|
81
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
82
|
+
high: "high";
|
|
83
|
+
xhigh: "xhigh";
|
|
84
|
+
middle: "middle";
|
|
85
|
+
fast: "fast";
|
|
86
|
+
vision: "vision";
|
|
87
|
+
writing: "writing";
|
|
88
|
+
design: "design";
|
|
89
|
+
}>>;
|
|
90
|
+
}, z.core.$strip>]>>;
|
|
91
|
+
designer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
92
|
+
model: z.ZodString;
|
|
93
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
94
|
+
high: "high";
|
|
95
|
+
xhigh: "xhigh";
|
|
96
|
+
middle: "middle";
|
|
97
|
+
fast: "fast";
|
|
98
|
+
vision: "vision";
|
|
99
|
+
writing: "writing";
|
|
100
|
+
design: "design";
|
|
101
|
+
}>>;
|
|
102
|
+
}, z.core.$strip>]>>;
|
|
103
|
+
researcher: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
104
|
+
model: z.ZodString;
|
|
105
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
106
|
+
high: "high";
|
|
107
|
+
xhigh: "xhigh";
|
|
108
|
+
middle: "middle";
|
|
109
|
+
fast: "fast";
|
|
110
|
+
vision: "vision";
|
|
111
|
+
writing: "writing";
|
|
112
|
+
design: "design";
|
|
113
|
+
}>>;
|
|
114
|
+
}, z.core.$strip>]>>;
|
|
115
|
+
manager: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
116
|
+
model: z.ZodString;
|
|
117
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
118
|
+
high: "high";
|
|
119
|
+
xhigh: "xhigh";
|
|
120
|
+
middle: "middle";
|
|
121
|
+
fast: "fast";
|
|
122
|
+
vision: "vision";
|
|
123
|
+
writing: "writing";
|
|
124
|
+
design: "design";
|
|
125
|
+
}>>;
|
|
126
|
+
}, z.core.$strip>]>>;
|
|
127
|
+
brainstormer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
128
|
+
model: z.ZodString;
|
|
129
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
130
|
+
high: "high";
|
|
131
|
+
xhigh: "xhigh";
|
|
132
|
+
middle: "middle";
|
|
133
|
+
fast: "fast";
|
|
134
|
+
vision: "vision";
|
|
135
|
+
writing: "writing";
|
|
136
|
+
design: "design";
|
|
137
|
+
}>>;
|
|
138
|
+
}, z.core.$strip>]>>;
|
|
139
|
+
vision: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
140
|
+
model: z.ZodString;
|
|
141
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
142
|
+
high: "high";
|
|
143
|
+
xhigh: "xhigh";
|
|
144
|
+
middle: "middle";
|
|
145
|
+
fast: "fast";
|
|
146
|
+
vision: "vision";
|
|
147
|
+
writing: "writing";
|
|
148
|
+
design: "design";
|
|
149
|
+
}>>;
|
|
150
|
+
}, z.core.$strip>]>>;
|
|
151
|
+
}, z.core.$strip>;
|
|
9
152
|
export declare const FallbackEntrySchema: z.ZodObject<{
|
|
10
153
|
providers: z.ZodArray<z.ZodString>;
|
|
11
154
|
model: z.ZodString;
|
|
@@ -78,8 +221,9 @@ export declare const McpServerConfigSchema: z.ZodObject<{
|
|
|
78
221
|
environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
79
222
|
}, z.core.$strip>;
|
|
80
223
|
export declare const LspServerConfigSchema: z.ZodObject<{
|
|
81
|
-
|
|
82
|
-
|
|
224
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
225
|
+
command: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
226
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
83
227
|
initialization: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
84
228
|
}, z.core.$strip>;
|
|
85
229
|
export declare const Subtask2ConfigSchema: z.ZodObject<{
|
|
@@ -172,6 +316,7 @@ export declare const AuthKeysSchema: z.ZodObject<{
|
|
|
172
316
|
openrouter: z.ZodOptional<z.ZodString>;
|
|
173
317
|
stitch: z.ZodOptional<z.ZodString>;
|
|
174
318
|
firecrawl: z.ZodOptional<z.ZodString>;
|
|
319
|
+
context7: z.ZodOptional<z.ZodString>;
|
|
175
320
|
}, z.core.$strip>;
|
|
176
321
|
export declare const OllamaConfigSchema: z.ZodObject<{
|
|
177
322
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -193,6 +338,128 @@ export declare const ModelFamilySchema: z.ZodObject<{
|
|
|
193
338
|
}, z.core.$strip>;
|
|
194
339
|
export declare const HiaiOpencodeConfigSchema: z.ZodObject<{
|
|
195
340
|
$schema: z.ZodOptional<z.ZodString>;
|
|
341
|
+
models: z.ZodOptional<z.ZodObject<{
|
|
342
|
+
bob: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
343
|
+
model: z.ZodString;
|
|
344
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
345
|
+
high: "high";
|
|
346
|
+
xhigh: "xhigh";
|
|
347
|
+
middle: "middle";
|
|
348
|
+
fast: "fast";
|
|
349
|
+
vision: "vision";
|
|
350
|
+
writing: "writing";
|
|
351
|
+
design: "design";
|
|
352
|
+
}>>;
|
|
353
|
+
}, z.core.$strip>]>>;
|
|
354
|
+
coder: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
355
|
+
model: z.ZodString;
|
|
356
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
357
|
+
high: "high";
|
|
358
|
+
xhigh: "xhigh";
|
|
359
|
+
middle: "middle";
|
|
360
|
+
fast: "fast";
|
|
361
|
+
vision: "vision";
|
|
362
|
+
writing: "writing";
|
|
363
|
+
design: "design";
|
|
364
|
+
}>>;
|
|
365
|
+
}, z.core.$strip>]>>;
|
|
366
|
+
strategist: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
367
|
+
model: z.ZodString;
|
|
368
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
369
|
+
high: "high";
|
|
370
|
+
xhigh: "xhigh";
|
|
371
|
+
middle: "middle";
|
|
372
|
+
fast: "fast";
|
|
373
|
+
vision: "vision";
|
|
374
|
+
writing: "writing";
|
|
375
|
+
design: "design";
|
|
376
|
+
}>>;
|
|
377
|
+
}, z.core.$strip>]>>;
|
|
378
|
+
guard: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
379
|
+
model: z.ZodString;
|
|
380
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
381
|
+
high: "high";
|
|
382
|
+
xhigh: "xhigh";
|
|
383
|
+
middle: "middle";
|
|
384
|
+
fast: "fast";
|
|
385
|
+
vision: "vision";
|
|
386
|
+
writing: "writing";
|
|
387
|
+
design: "design";
|
|
388
|
+
}>>;
|
|
389
|
+
}, z.core.$strip>]>>;
|
|
390
|
+
critic: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
391
|
+
model: z.ZodString;
|
|
392
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
393
|
+
high: "high";
|
|
394
|
+
xhigh: "xhigh";
|
|
395
|
+
middle: "middle";
|
|
396
|
+
fast: "fast";
|
|
397
|
+
vision: "vision";
|
|
398
|
+
writing: "writing";
|
|
399
|
+
design: "design";
|
|
400
|
+
}>>;
|
|
401
|
+
}, z.core.$strip>]>>;
|
|
402
|
+
designer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
403
|
+
model: z.ZodString;
|
|
404
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
405
|
+
high: "high";
|
|
406
|
+
xhigh: "xhigh";
|
|
407
|
+
middle: "middle";
|
|
408
|
+
fast: "fast";
|
|
409
|
+
vision: "vision";
|
|
410
|
+
writing: "writing";
|
|
411
|
+
design: "design";
|
|
412
|
+
}>>;
|
|
413
|
+
}, z.core.$strip>]>>;
|
|
414
|
+
researcher: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
415
|
+
model: z.ZodString;
|
|
416
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
417
|
+
high: "high";
|
|
418
|
+
xhigh: "xhigh";
|
|
419
|
+
middle: "middle";
|
|
420
|
+
fast: "fast";
|
|
421
|
+
vision: "vision";
|
|
422
|
+
writing: "writing";
|
|
423
|
+
design: "design";
|
|
424
|
+
}>>;
|
|
425
|
+
}, z.core.$strip>]>>;
|
|
426
|
+
manager: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
427
|
+
model: z.ZodString;
|
|
428
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
429
|
+
high: "high";
|
|
430
|
+
xhigh: "xhigh";
|
|
431
|
+
middle: "middle";
|
|
432
|
+
fast: "fast";
|
|
433
|
+
vision: "vision";
|
|
434
|
+
writing: "writing";
|
|
435
|
+
design: "design";
|
|
436
|
+
}>>;
|
|
437
|
+
}, z.core.$strip>]>>;
|
|
438
|
+
brainstormer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
439
|
+
model: z.ZodString;
|
|
440
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
441
|
+
high: "high";
|
|
442
|
+
xhigh: "xhigh";
|
|
443
|
+
middle: "middle";
|
|
444
|
+
fast: "fast";
|
|
445
|
+
vision: "vision";
|
|
446
|
+
writing: "writing";
|
|
447
|
+
design: "design";
|
|
448
|
+
}>>;
|
|
449
|
+
}, z.core.$strip>]>>;
|
|
450
|
+
vision: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
451
|
+
model: z.ZodString;
|
|
452
|
+
recommended: z.ZodOptional<z.ZodEnum<{
|
|
453
|
+
high: "high";
|
|
454
|
+
xhigh: "xhigh";
|
|
455
|
+
middle: "middle";
|
|
456
|
+
fast: "fast";
|
|
457
|
+
vision: "vision";
|
|
458
|
+
writing: "writing";
|
|
459
|
+
design: "design";
|
|
460
|
+
}>>;
|
|
461
|
+
}, z.core.$strip>]>>;
|
|
462
|
+
}, z.core.$strip>>;
|
|
196
463
|
agents: z.ZodOptional<z.ZodObject<{
|
|
197
464
|
bob: z.ZodOptional<z.ZodObject<{
|
|
198
465
|
model: z.ZodString;
|
|
@@ -1039,8 +1306,9 @@ export declare const HiaiOpencodeConfigSchema: z.ZodObject<{
|
|
|
1039
1306
|
environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1040
1307
|
}, z.core.$strip>>>;
|
|
1041
1308
|
lsp: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1042
|
-
|
|
1043
|
-
|
|
1309
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1310
|
+
command: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1311
|
+
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1044
1312
|
initialization: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1045
1313
|
}, z.core.$strip>>>;
|
|
1046
1314
|
subtask2: z.ZodOptional<z.ZodObject<{
|
|
@@ -1133,6 +1401,7 @@ export declare const HiaiOpencodeConfigSchema: z.ZodObject<{
|
|
|
1133
1401
|
openrouter: z.ZodOptional<z.ZodString>;
|
|
1134
1402
|
stitch: z.ZodOptional<z.ZodString>;
|
|
1135
1403
|
firecrawl: z.ZodOptional<z.ZodString>;
|
|
1404
|
+
context7: z.ZodOptional<z.ZodString>;
|
|
1136
1405
|
}, z.core.$strip>>;
|
|
1137
1406
|
ollama: z.ZodOptional<z.ZodObject<{
|
|
1138
1407
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -78,12 +78,12 @@ export declare const CategoryConfigSchema: z.ZodObject<{
|
|
|
78
78
|
export declare const BuiltinCategoryNameSchema: z.ZodEnum<{
|
|
79
79
|
deep: "deep";
|
|
80
80
|
"unspecified-high": "unspecified-high";
|
|
81
|
+
writing: "writing";
|
|
81
82
|
"visual-engineering": "visual-engineering";
|
|
82
|
-
ultrabrain: "ultrabrain";
|
|
83
83
|
artistry: "artistry";
|
|
84
|
+
ultrabrain: "ultrabrain";
|
|
84
85
|
quick: "quick";
|
|
85
86
|
"unspecified-low": "unspecified-low";
|
|
86
|
-
writing: "writing";
|
|
87
87
|
}>;
|
|
88
88
|
export declare const CategoriesConfigSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
89
89
|
description: z.ZodOptional<z.ZodString>;
|
package/dist/config/types.d.ts
CHANGED
|
@@ -5,6 +5,23 @@ export interface AgentConfig {
|
|
|
5
5
|
model: string;
|
|
6
6
|
description?: string;
|
|
7
7
|
}
|
|
8
|
+
export type ModelRecommendation = "xhigh" | "high" | "middle" | "fast" | "vision" | "writing" | "design";
|
|
9
|
+
export type ModelSlotConfig = string | {
|
|
10
|
+
model: string;
|
|
11
|
+
recommended?: ModelRecommendation;
|
|
12
|
+
};
|
|
13
|
+
export interface ModelSlotsConfig {
|
|
14
|
+
bob?: ModelSlotConfig;
|
|
15
|
+
coder?: ModelSlotConfig;
|
|
16
|
+
strategist?: ModelSlotConfig;
|
|
17
|
+
guard?: ModelSlotConfig;
|
|
18
|
+
critic?: ModelSlotConfig;
|
|
19
|
+
designer?: ModelSlotConfig;
|
|
20
|
+
researcher?: ModelSlotConfig;
|
|
21
|
+
manager?: ModelSlotConfig;
|
|
22
|
+
brainstormer?: ModelSlotConfig;
|
|
23
|
+
vision?: ModelSlotConfig;
|
|
24
|
+
}
|
|
8
25
|
export declare const CANONICAL_AGENT_NAMES: readonly ["bob", "guard", "strategist", "critic", "coder", "designer", "sub", "researcher", "multimodal", "quality-guardian", "platform-manager", "brainstormer", "agent-skills"];
|
|
9
26
|
export type CanonicalAgentName = (typeof CANONICAL_AGENT_NAMES)[number];
|
|
10
27
|
export declare const LEGACY_AGENT_ALIAS_NAMES: readonly ["general", "zoe", "build", "pre-plan", "manager", "vision", "logician", "librarian", "explore", "ui", "code-reviewer", "systematic-debugger", "mindmodel", "ledger-creator", "bootstrapper", "project-initializer"];
|
|
@@ -57,8 +74,9 @@ export interface McpServerConfig {
|
|
|
57
74
|
environment?: Record<string, string>;
|
|
58
75
|
}
|
|
59
76
|
export interface LspServerConfig {
|
|
60
|
-
|
|
61
|
-
|
|
77
|
+
enabled?: boolean;
|
|
78
|
+
command?: string[];
|
|
79
|
+
extensions?: string[];
|
|
62
80
|
initialization?: Record<string, unknown>;
|
|
63
81
|
}
|
|
64
82
|
export interface Subtask2Config {
|
|
@@ -100,6 +118,7 @@ export interface OllamaConfig {
|
|
|
100
118
|
}
|
|
101
119
|
export interface HiaiOpencodeConfig {
|
|
102
120
|
$schema?: string;
|
|
121
|
+
models?: ModelSlotsConfig;
|
|
103
122
|
agents?: AgentConfigMap;
|
|
104
123
|
agentRequirements?: AgentRequirementMap;
|
|
105
124
|
categories?: Record<string, CategoryConfig>;
|
package/dist/create-tools.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AvailableCategory, AvailableSkill } from "./agents/dynamic-agent-prompt-builder";
|
|
2
2
|
import type { HiaiOpenCodeConfig } from "./config";
|
|
3
|
+
import type { HiaiOpencodeConfig } from "./config/types";
|
|
3
4
|
import type { BrowserAutomationProvider } from "./config/schema/browser-automation";
|
|
4
5
|
import type { LoadedSkill } from "./features/opencode-skill-loader/types";
|
|
5
6
|
import type { PluginContext, ToolsRecord } from "./plugin/types";
|
|
@@ -16,6 +17,7 @@ type CreateToolsResult = {
|
|
|
16
17
|
export declare function createTools(args: {
|
|
17
18
|
ctx: PluginContext;
|
|
18
19
|
pluginConfig: HiaiOpenCodeConfig;
|
|
20
|
+
platformConfig?: HiaiOpencodeConfig;
|
|
19
21
|
managers: Pick<Managers, "backgroundManager" | "tmuxSessionManager" | "skillMcpManager">;
|
|
20
22
|
}): Promise<CreateToolsResult>;
|
|
21
23
|
export {};
|