@osovv/vv-opencode 0.14.0 → 0.17.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.md +110 -10
- package/dist/cli.js +5 -3
- package/dist/cli.js.map +1 -1
- package/dist/commands/agent.js +37 -72
- package/dist/commands/agent.js.map +1 -1
- package/dist/commands/completion.js +32 -16
- package/dist/commands/completion.js.map +1 -1
- package/dist/commands/preset.d.ts +45 -0
- package/dist/commands/preset.js +214 -0
- package/dist/commands/preset.js.map +1 -0
- package/dist/commands/upgrade.d.ts +21 -1
- package/dist/commands/upgrade.js +205 -51
- package/dist/commands/upgrade.js.map +1 -1
- package/dist/lib/agent-models.d.ts +21 -0
- package/dist/lib/agent-models.js +106 -0
- package/dist/lib/agent-models.js.map +1 -0
- package/dist/lib/opencode.d.ts +6 -0
- package/dist/lib/opencode.js +73 -23
- package/dist/lib/opencode.js.map +1 -1
- package/dist/lib/vvoc-config.d.ts +169 -124
- package/dist/lib/vvoc-config.js +303 -101
- package/dist/lib/vvoc-config.js.map +1 -1
- package/package.json +1 -1
- package/schemas/vvoc/v1.json +1 -1
- package/schemas/vvoc/v2.json +124 -0
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { type SupportedModelTargetName } from "./agent-models.js";
|
|
2
|
+
export declare const VVOC_CONFIG_VERSION = 2;
|
|
2
3
|
export declare const VVOC_CONFIG_SCHEMA_URL: string;
|
|
4
|
+
type VvocConfigVersion = 1 | 2;
|
|
5
|
+
export type VvocPresetAgents = Partial<Record<SupportedModelTargetName, string>>;
|
|
6
|
+
export type VvocPreset = {
|
|
7
|
+
description?: string;
|
|
8
|
+
agents: VvocPresetAgents;
|
|
9
|
+
};
|
|
10
|
+
export type VvocPresets = Record<string, VvocPreset>;
|
|
3
11
|
export type GuardianConfig = {
|
|
4
12
|
model?: string;
|
|
5
13
|
variant?: string;
|
|
@@ -42,151 +50,185 @@ export type VvocConfig = {
|
|
|
42
50
|
guardian: GuardianConfig;
|
|
43
51
|
memory: MemoryConfig;
|
|
44
52
|
secretsRedaction: SecretsRedactionConfig;
|
|
53
|
+
presets: VvocPresets;
|
|
54
|
+
};
|
|
55
|
+
export type ParsedVvocConfig = {
|
|
56
|
+
sourceSchema: string;
|
|
57
|
+
sourceVersion: VvocConfigVersion;
|
|
58
|
+
config: VvocConfig;
|
|
45
59
|
};
|
|
46
60
|
export declare const VVOC_CONFIG_SCHEMA: {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
61
|
+
$schema: string;
|
|
62
|
+
$id: string;
|
|
63
|
+
title: string;
|
|
64
|
+
description: string;
|
|
65
|
+
type: string;
|
|
66
|
+
additionalProperties: boolean;
|
|
67
|
+
required: string[];
|
|
68
|
+
properties: {
|
|
69
|
+
$schema: {
|
|
70
|
+
type: string;
|
|
71
|
+
minLength: number;
|
|
72
|
+
description: string;
|
|
59
73
|
};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
74
|
+
version: {
|
|
75
|
+
type: string;
|
|
76
|
+
const: number;
|
|
63
77
|
};
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
78
|
+
guardian: {
|
|
79
|
+
type: string;
|
|
80
|
+
additionalProperties: boolean;
|
|
81
|
+
required: string[];
|
|
82
|
+
properties: {
|
|
83
|
+
model: {
|
|
84
|
+
type: string;
|
|
85
|
+
minLength: number;
|
|
86
|
+
};
|
|
87
|
+
variant: {
|
|
88
|
+
type: string;
|
|
89
|
+
minLength: number;
|
|
90
|
+
};
|
|
91
|
+
timeoutMs: {
|
|
92
|
+
type: string;
|
|
93
|
+
minimum: number;
|
|
94
|
+
};
|
|
95
|
+
approvalRiskThreshold: {
|
|
96
|
+
type: string;
|
|
97
|
+
minimum: number;
|
|
98
|
+
maximum: number;
|
|
99
|
+
};
|
|
100
|
+
reviewToastDurationMs: {
|
|
101
|
+
type: string;
|
|
102
|
+
minimum: number;
|
|
89
103
|
};
|
|
90
104
|
};
|
|
91
105
|
};
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
106
|
+
memory: {
|
|
107
|
+
type: string;
|
|
108
|
+
additionalProperties: boolean;
|
|
109
|
+
required: string[];
|
|
110
|
+
properties: {
|
|
111
|
+
enabled: {
|
|
112
|
+
type: string;
|
|
113
|
+
};
|
|
114
|
+
defaultSearchLimit: {
|
|
115
|
+
type: string;
|
|
116
|
+
minimum: number;
|
|
117
|
+
};
|
|
118
|
+
reviewerModel: {
|
|
119
|
+
type: string;
|
|
120
|
+
minLength: number;
|
|
121
|
+
};
|
|
122
|
+
reviewerVariant: {
|
|
123
|
+
type: string;
|
|
124
|
+
minLength: number;
|
|
111
125
|
};
|
|
112
126
|
};
|
|
113
127
|
};
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
128
|
+
secretsRedaction: {
|
|
129
|
+
type: string;
|
|
130
|
+
additionalProperties: boolean;
|
|
131
|
+
required: string[];
|
|
132
|
+
properties: {
|
|
133
|
+
enabled: {
|
|
134
|
+
type: string;
|
|
135
|
+
};
|
|
136
|
+
secret: {
|
|
137
|
+
type: string;
|
|
138
|
+
minLength: number;
|
|
139
|
+
};
|
|
140
|
+
ttlMs: {
|
|
141
|
+
type: string;
|
|
142
|
+
minimum: number;
|
|
143
|
+
};
|
|
144
|
+
maxMappings: {
|
|
145
|
+
type: string;
|
|
146
|
+
minimum: number;
|
|
147
|
+
};
|
|
148
|
+
debug: {
|
|
149
|
+
type: string;
|
|
150
|
+
};
|
|
151
|
+
patterns: {
|
|
152
|
+
type: string;
|
|
153
|
+
additionalProperties: boolean;
|
|
154
|
+
required: string[];
|
|
155
|
+
properties: {
|
|
156
|
+
keywords: {
|
|
157
|
+
type: string;
|
|
158
|
+
items: {
|
|
159
|
+
type: string;
|
|
160
|
+
additionalProperties: boolean;
|
|
161
|
+
required: string[];
|
|
162
|
+
properties: {
|
|
163
|
+
value: {
|
|
164
|
+
type: string;
|
|
165
|
+
minLength: number;
|
|
152
166
|
};
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
167
|
+
category: {
|
|
168
|
+
type: string;
|
|
169
|
+
minLength: number;
|
|
156
170
|
};
|
|
157
171
|
};
|
|
158
172
|
};
|
|
159
173
|
};
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
174
|
+
regex: {
|
|
175
|
+
type: string;
|
|
176
|
+
items: {
|
|
177
|
+
type: string;
|
|
178
|
+
additionalProperties: boolean;
|
|
179
|
+
required: string[];
|
|
180
|
+
properties: {
|
|
181
|
+
pattern: {
|
|
182
|
+
type: string;
|
|
183
|
+
minLength: number;
|
|
170
184
|
};
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
185
|
+
category: {
|
|
186
|
+
type: string;
|
|
187
|
+
minLength: number;
|
|
174
188
|
};
|
|
175
189
|
};
|
|
176
190
|
};
|
|
177
191
|
};
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
192
|
+
builtin: {
|
|
193
|
+
type: string;
|
|
194
|
+
items: {
|
|
195
|
+
type: string;
|
|
196
|
+
minLength: number;
|
|
183
197
|
};
|
|
184
198
|
};
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
199
|
+
exclude: {
|
|
200
|
+
type: string;
|
|
201
|
+
items: {
|
|
202
|
+
type: string;
|
|
203
|
+
minLength: number;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
presets: {
|
|
211
|
+
type: string;
|
|
212
|
+
propertyNames: {
|
|
213
|
+
minLength: number;
|
|
214
|
+
};
|
|
215
|
+
additionalProperties: {
|
|
216
|
+
type: string;
|
|
217
|
+
additionalProperties: boolean;
|
|
218
|
+
required: string[];
|
|
219
|
+
properties: {
|
|
220
|
+
description: {
|
|
221
|
+
type: string;
|
|
222
|
+
minLength: number;
|
|
223
|
+
};
|
|
224
|
+
agents: {
|
|
225
|
+
type: string;
|
|
226
|
+
additionalProperties: boolean;
|
|
227
|
+
minProperties: number;
|
|
228
|
+
properties: {
|
|
229
|
+
[k: string]: {
|
|
230
|
+
type: string;
|
|
231
|
+
minLength: number;
|
|
190
232
|
};
|
|
191
233
|
};
|
|
192
234
|
};
|
|
@@ -198,12 +240,15 @@ export declare const VVOC_CONFIG_SCHEMA: {
|
|
|
198
240
|
export declare function createGuardianConfig(overrides?: GuardianConfigOverrides): GuardianConfig;
|
|
199
241
|
export declare function createMemoryConfig(overrides?: MemoryConfigOverrides): MemoryConfig;
|
|
200
242
|
export declare function createDefaultSecretsRedactionConfig(): SecretsRedactionConfig;
|
|
243
|
+
export declare function createDefaultVvocPresets(): VvocPresets;
|
|
201
244
|
export declare function createDefaultVvocConfig(): VvocConfig;
|
|
202
245
|
export declare function parseGuardianConfigText(text: string, label: string): GuardianConfigOverrides;
|
|
203
246
|
export declare function renderGuardianConfig(overrides?: GuardianConfigOverrides): string;
|
|
204
247
|
export declare function parseMemoryConfigText(text: string, label: string): MemoryConfigOverrides;
|
|
205
248
|
export declare function renderMemoryConfig(overrides?: MemoryConfigOverrides): string;
|
|
249
|
+
export declare function parseVersionedVvocConfigText(text: string, label: string): ParsedVvocConfig;
|
|
206
250
|
export declare function parseVvocConfigText(text: string, label: string): VvocConfig;
|
|
207
251
|
export declare function loadLenientVvocConfigText(text: string, label: string, warnings: string[]): VvocConfig;
|
|
208
252
|
export declare function renderVvocConfig(config?: VvocConfig): string;
|
|
209
253
|
export declare function validateVvocConfigDocument(document: unknown): string[];
|
|
254
|
+
export {};
|