@auden.to/protocol 0.1.0-alpha.2
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/LICENSE +21 -0
- package/README.md +7 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas.d.ts +1169 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +750 -0
- package/dist/schemas.js.map +1 -0
- package/dist/schemas.test.d.ts +2 -0
- package/dist/schemas.test.d.ts.map +1 -0
- package/dist/schemas.test.js +963 -0
- package/dist/schemas.test.js.map +1 -0
- package/dist/types.d.ts +86 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +12 -0
- package/dist/types.js.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1,1169 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime validation schemas using Valibot.
|
|
3
|
+
*
|
|
4
|
+
* Schemas are the single source of truth — TypeScript types in types.ts are
|
|
5
|
+
* derived from these via `v.InferOutput<typeof Schema>`.
|
|
6
|
+
*
|
|
7
|
+
* Callers can use the exported `parse*` wrappers (throw ValiError on invalid
|
|
8
|
+
* input) or call `v.safeParse(Schema, data)` directly for non-throwing checks.
|
|
9
|
+
*/
|
|
10
|
+
import * as v from 'valibot';
|
|
11
|
+
export declare const VerdictSchema: v.PicklistSchema<["aligned", "unguided", "misaligned"], undefined>;
|
|
12
|
+
export declare const GuidingTierSchema: v.PicklistSchema<["pattern_match", "cached", "llm", "batch"], undefined>;
|
|
13
|
+
export declare const PlatformKindSchema: v.PicklistSchema<["claude_code", "cursor", "copilot", "windsurf", "other"], undefined>;
|
|
14
|
+
export declare const GuideFileFormatSchema: v.PicklistSchema<["agents-md", "agents-dir", "claude-md", "claude-rules", "cursorrules", "cursor-rules", "skill-md"], undefined>;
|
|
15
|
+
export declare const EvalProviderKindSchema: v.PicklistSchema<["openrouter", "anthropic", "openai-compatible", "google", "ollama"], undefined>;
|
|
16
|
+
export declare const PartialEvalProviderSettingsSchema: v.ObjectSchema<{
|
|
17
|
+
readonly provider: v.OptionalSchema<v.PicklistSchema<["openrouter", "anthropic", "openai-compatible", "google", "ollama"], undefined>, undefined>;
|
|
18
|
+
readonly model: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
19
|
+
readonly apiKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
20
|
+
readonly baseUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
21
|
+
readonly siteUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
22
|
+
readonly siteName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
23
|
+
}, undefined>;
|
|
24
|
+
export declare const EvalProviderConfigSchema: v.ObjectSchema<{
|
|
25
|
+
readonly provider: v.PicklistSchema<["openrouter", "anthropic", "openai-compatible", "google", "ollama"], undefined>;
|
|
26
|
+
readonly model: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
27
|
+
readonly apiKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
28
|
+
readonly baseUrl: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
29
|
+
readonly siteUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
30
|
+
readonly siteName: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
31
|
+
}, undefined>;
|
|
32
|
+
export declare const ValidateTokenRequestSchema: v.ObjectSchema<{
|
|
33
|
+
readonly token: v.StringSchema<undefined>;
|
|
34
|
+
}, undefined>;
|
|
35
|
+
export declare const ValidateTokenResponseSchema: v.ObjectSchema<{
|
|
36
|
+
readonly valid: v.BooleanSchema<undefined>;
|
|
37
|
+
readonly userId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
38
|
+
readonly expiresAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
39
|
+
}, undefined>;
|
|
40
|
+
export declare const CliTokenMetadataSchema: v.ObjectSchema<{
|
|
41
|
+
readonly token: v.StringSchema<undefined>;
|
|
42
|
+
readonly userId: v.StringSchema<undefined>;
|
|
43
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
44
|
+
readonly expiresAt: v.StringSchema<undefined>;
|
|
45
|
+
}, undefined>;
|
|
46
|
+
export declare const GuideSnapshotSchema: v.ObjectSchema<{
|
|
47
|
+
readonly id: v.StringSchema<undefined>;
|
|
48
|
+
readonly title: v.StringSchema<undefined>;
|
|
49
|
+
readonly content: v.StringSchema<undefined>;
|
|
50
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
51
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
52
|
+
readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
53
|
+
readonly contentHash: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>;
|
|
54
|
+
}, undefined>;
|
|
55
|
+
export declare const GuideBundleResponseSchema: v.ObjectSchema<{
|
|
56
|
+
readonly guides: v.ArraySchema<v.ObjectSchema<{
|
|
57
|
+
readonly id: v.StringSchema<undefined>;
|
|
58
|
+
readonly title: v.StringSchema<undefined>;
|
|
59
|
+
readonly content: v.StringSchema<undefined>;
|
|
60
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
61
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
62
|
+
readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
63
|
+
readonly contentHash: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>, undefined>;
|
|
64
|
+
}, undefined>, undefined>;
|
|
65
|
+
readonly pulledAt: v.StringSchema<undefined>;
|
|
66
|
+
}, undefined>;
|
|
67
|
+
/** Max serialized size (UTF-8 bytes) of an imported guide file's raw content. */
|
|
68
|
+
export declare const MAX_RAW_GUIDE_CONTENT_BYTES: number;
|
|
69
|
+
/** Max member files a single skill-md payload may carry. */
|
|
70
|
+
export declare const MAX_SKILL_MEMBER_FILES = 64;
|
|
71
|
+
export declare const SkillMemberPathSchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">, v.CheckAction<string, "path must not shadow the skill’s own SKILL.md">]>;
|
|
72
|
+
export declare const RawSkillMemberFileSchema: v.ObjectSchema<{
|
|
73
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">, v.CheckAction<string, "path must not shadow the skill’s own SKILL.md">]>;
|
|
74
|
+
readonly rawContent: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "rawContent must be at most 524288 bytes">]>;
|
|
75
|
+
readonly lastModified: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
76
|
+
readonly content_hash: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
77
|
+
}, undefined>;
|
|
78
|
+
/** Max skipped-member paths a skill-md payload may report alongside `members`. */
|
|
79
|
+
export declare const MAX_SKILL_SKIPPED_MEMBER_PATHS = 256;
|
|
80
|
+
export declare const RawGuideFilePayloadSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
81
|
+
readonly path: v.StringSchema<undefined>;
|
|
82
|
+
readonly format: v.PicklistSchema<["agents-md", "agents-dir", "claude-md", "claude-rules", "cursorrules", "cursor-rules", "skill-md"], undefined>;
|
|
83
|
+
readonly rawContent: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "rawContent must be at most 524288 bytes">]>;
|
|
84
|
+
readonly lastModified: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
85
|
+
readonly content_hash: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
86
|
+
readonly members: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
87
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">, v.CheckAction<string, "path must not shadow the skill’s own SKILL.md">]>;
|
|
88
|
+
readonly rawContent: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "rawContent must be at most 524288 bytes">]>;
|
|
89
|
+
readonly lastModified: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
90
|
+
readonly content_hash: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
91
|
+
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
92
|
+
path: string;
|
|
93
|
+
rawContent: string;
|
|
94
|
+
lastModified: number;
|
|
95
|
+
content_hash: string;
|
|
96
|
+
}[], 64, undefined>]>, undefined>;
|
|
97
|
+
readonly skippedMemberPaths: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>]>, undefined>, v.MaxLengthAction<string[], 256, undefined>]>, undefined>;
|
|
98
|
+
}, undefined>, v.CheckAction<{
|
|
99
|
+
path: string;
|
|
100
|
+
format: "agents-md" | "agents-dir" | "claude-md" | "claude-rules" | "cursorrules" | "cursor-rules" | "skill-md";
|
|
101
|
+
rawContent: string;
|
|
102
|
+
lastModified: number;
|
|
103
|
+
content_hash: string;
|
|
104
|
+
members?: {
|
|
105
|
+
path: string;
|
|
106
|
+
rawContent: string;
|
|
107
|
+
lastModified: number;
|
|
108
|
+
content_hash: string;
|
|
109
|
+
}[] | undefined;
|
|
110
|
+
skippedMemberPaths?: string[] | undefined;
|
|
111
|
+
}, "members are only supported on skill-md payloads">, v.CheckAction<{
|
|
112
|
+
path: string;
|
|
113
|
+
format: "agents-md" | "agents-dir" | "claude-md" | "claude-rules" | "cursorrules" | "cursor-rules" | "skill-md";
|
|
114
|
+
rawContent: string;
|
|
115
|
+
lastModified: number;
|
|
116
|
+
content_hash: string;
|
|
117
|
+
members?: {
|
|
118
|
+
path: string;
|
|
119
|
+
rawContent: string;
|
|
120
|
+
lastModified: number;
|
|
121
|
+
content_hash: string;
|
|
122
|
+
}[] | undefined;
|
|
123
|
+
skippedMemberPaths?: string[] | undefined;
|
|
124
|
+
}, "skippedMemberPaths requires members">, v.CheckAction<{
|
|
125
|
+
path: string;
|
|
126
|
+
format: "agents-md" | "agents-dir" | "claude-md" | "claude-rules" | "cursorrules" | "cursor-rules" | "skill-md";
|
|
127
|
+
rawContent: string;
|
|
128
|
+
lastModified: number;
|
|
129
|
+
content_hash: string;
|
|
130
|
+
members?: {
|
|
131
|
+
path: string;
|
|
132
|
+
rawContent: string;
|
|
133
|
+
lastModified: number;
|
|
134
|
+
content_hash: string;
|
|
135
|
+
}[] | undefined;
|
|
136
|
+
skippedMemberPaths?: string[] | undefined;
|
|
137
|
+
}, "member paths must be unique (case-insensitive)">]>;
|
|
138
|
+
export declare const GuideMemberFileSchema: v.ObjectSchema<{
|
|
139
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">, v.CheckAction<string, "path must not shadow the skill’s own SKILL.md">]>;
|
|
140
|
+
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "rawContent must be at most 524288 bytes">]>;
|
|
141
|
+
readonly contentHash: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
142
|
+
}, undefined>;
|
|
143
|
+
export declare const GuideMemberFilesResponseSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
144
|
+
readonly memberFiles: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
145
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 512, undefined>, v.CheckAction<string, "path must use forward slashes">, v.CheckAction<string, "path must be relative">, v.CheckAction<string, "path must not contain control characters">, v.CheckAction<string, "path must not contain empty, \".\" or \"..\" segments">, v.CheckAction<string, "path must not shadow the skill’s own SKILL.md">]>;
|
|
146
|
+
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "rawContent must be at most 524288 bytes">]>;
|
|
147
|
+
readonly contentHash: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
148
|
+
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
149
|
+
path: string;
|
|
150
|
+
content: string;
|
|
151
|
+
contentHash: string;
|
|
152
|
+
}[], 64, undefined>]>;
|
|
153
|
+
}, undefined>, v.CheckAction<{
|
|
154
|
+
memberFiles: {
|
|
155
|
+
path: string;
|
|
156
|
+
content: string;
|
|
157
|
+
contentHash: string;
|
|
158
|
+
}[];
|
|
159
|
+
}, "member file paths must be unique (case-insensitive)">]>;
|
|
160
|
+
/** Max number of rules accepted in a single `POST /api/rules/import` request. */
|
|
161
|
+
export declare const MAX_RULES_IMPORT_BATCH = 100;
|
|
162
|
+
export declare const RulesImportRequestSchema: v.ObjectSchema<{
|
|
163
|
+
readonly rules: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnknownSchema, undefined>, v.MaxLengthAction<unknown[], 100, undefined>]>;
|
|
164
|
+
}, undefined>;
|
|
165
|
+
export declare const RawGuideFileDeletionSchema: v.ObjectSchema<{
|
|
166
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
167
|
+
readonly format: v.PicklistSchema<["agents-md", "agents-dir", "claude-md", "claude-rules", "cursorrules", "cursor-rules", "skill-md"], undefined>;
|
|
168
|
+
}, undefined>;
|
|
169
|
+
/** Max number of deletions accepted in a single `POST /api/rules/deletions` request. */
|
|
170
|
+
export declare const MAX_RULE_DELETIONS_BATCH = 500;
|
|
171
|
+
export declare const RuleDeletionsRequestSchema: v.ObjectSchema<{
|
|
172
|
+
readonly deletions: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnknownSchema, undefined>, v.MaxLengthAction<unknown[], 500, undefined>]>;
|
|
173
|
+
}, undefined>;
|
|
174
|
+
export declare const RuleDeletionsResponseSchema: v.ObjectSchema<{
|
|
175
|
+
readonly disabled: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
176
|
+
readonly skipped: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
177
|
+
}, undefined>;
|
|
178
|
+
export declare const BundleKindSchema: v.PicklistSchema<["user", "inbox", "system"], undefined>;
|
|
179
|
+
export declare const BundleSchema: v.ObjectSchema<{
|
|
180
|
+
readonly id: v.StringSchema<undefined>;
|
|
181
|
+
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.RegexAction<string, "slug must be lowercase alphanumeric with hyphens">]>;
|
|
182
|
+
readonly name: v.StringSchema<undefined>;
|
|
183
|
+
readonly kind: v.PicklistSchema<["user", "inbox", "system"], undefined>;
|
|
184
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
185
|
+
}, undefined>;
|
|
186
|
+
export declare const BundleListResponseSchema: v.ObjectSchema<{
|
|
187
|
+
readonly bundles: v.ArraySchema<v.ObjectSchema<{
|
|
188
|
+
readonly id: v.StringSchema<undefined>;
|
|
189
|
+
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.RegexAction<string, "slug must be lowercase alphanumeric with hyphens">]>;
|
|
190
|
+
readonly name: v.StringSchema<undefined>;
|
|
191
|
+
readonly kind: v.PicklistSchema<["user", "inbox", "system"], undefined>;
|
|
192
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
193
|
+
}, undefined>, undefined>;
|
|
194
|
+
}, undefined>;
|
|
195
|
+
export declare const CreateBundleRequestSchema: v.ObjectSchema<{
|
|
196
|
+
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.RegexAction<string, "slug must be lowercase alphanumeric with hyphens">]>;
|
|
197
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
198
|
+
readonly kind: v.OptionalSchema<v.PicklistSchema<["user", "inbox", "system"], undefined>, undefined>;
|
|
199
|
+
}, undefined>;
|
|
200
|
+
export declare const CreateBundleResponseSchema: v.ObjectSchema<{
|
|
201
|
+
readonly bundle: v.ObjectSchema<{
|
|
202
|
+
readonly id: v.StringSchema<undefined>;
|
|
203
|
+
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.RegexAction<string, "slug must be lowercase alphanumeric with hyphens">]>;
|
|
204
|
+
readonly name: v.StringSchema<undefined>;
|
|
205
|
+
readonly kind: v.PicklistSchema<["user", "inbox", "system"], undefined>;
|
|
206
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
207
|
+
}, undefined>;
|
|
208
|
+
}, undefined>;
|
|
209
|
+
export declare const ContextItemTypeSchema: v.PicklistSchema<["guide", "document", "reference", "asset"], undefined>;
|
|
210
|
+
export declare const PushContentTypeSchema: v.PicklistSchema<["document", "reference", "asset"], undefined>;
|
|
211
|
+
export declare const InboxContentTypeSchema: v.PicklistSchema<["document", "asset"], undefined>;
|
|
212
|
+
/** Max serialized size (UTF-8 bytes) of a pushed or captured item's content. */
|
|
213
|
+
export declare const MAX_CONTEXT_CONTENT_BYTES: number;
|
|
214
|
+
export declare const ContextItemSchema: v.ObjectSchema<{
|
|
215
|
+
readonly id: v.StringSchema<undefined>;
|
|
216
|
+
readonly type: v.PicklistSchema<["guide", "document", "reference", "asset"], undefined>;
|
|
217
|
+
readonly name: v.StringSchema<undefined>;
|
|
218
|
+
readonly contentType: v.StringSchema<undefined>;
|
|
219
|
+
readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
220
|
+
readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
221
|
+
readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
222
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
223
|
+
}, undefined>;
|
|
224
|
+
export declare const ContextItemsResponseSchema: v.ObjectSchema<{
|
|
225
|
+
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
226
|
+
readonly id: v.StringSchema<undefined>;
|
|
227
|
+
readonly type: v.PicklistSchema<["guide", "document", "reference", "asset"], undefined>;
|
|
228
|
+
readonly name: v.StringSchema<undefined>;
|
|
229
|
+
readonly contentType: v.StringSchema<undefined>;
|
|
230
|
+
readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
231
|
+
readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
232
|
+
readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
233
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
234
|
+
}, undefined>, undefined>;
|
|
235
|
+
}, undefined>;
|
|
236
|
+
/** Max number of context item ids a push may cite as its transform sources. */
|
|
237
|
+
export declare const MAX_TRANSFORM_SOURCE_IDS = 100;
|
|
238
|
+
/**
|
|
239
|
+
* The ids of the caller-owned context items a pushed document was produced
|
|
240
|
+
* from (inbox captures, bundle items — any item the caller owns). Shared
|
|
241
|
+
* between the REST contract and the MCP tool's client-side arg validation so
|
|
242
|
+
* the two can't drift.
|
|
243
|
+
*/
|
|
244
|
+
export declare const SourceItemIdsSchema: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>, v.MaxLengthAction<string[], 100, undefined>]>;
|
|
245
|
+
export declare const PushContextRequestSchema: v.ObjectSchema<{
|
|
246
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
247
|
+
readonly contentType: v.PicklistSchema<["document", "reference", "asset"], undefined>;
|
|
248
|
+
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "content must be at most 262144 bytes">]>;
|
|
249
|
+
readonly itemId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
250
|
+
readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
251
|
+
readonly sourceItemIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
252
|
+
}, undefined>;
|
|
253
|
+
export declare const TransformGradeSchema: v.ObjectSchema<{
|
|
254
|
+
readonly actionId: v.StringSchema<undefined>;
|
|
255
|
+
readonly verdict: v.PicklistSchema<["aligned", "unguided", "misaligned"], undefined>;
|
|
256
|
+
readonly gradingTier: v.StringSchema<undefined>;
|
|
257
|
+
readonly reasoning: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
258
|
+
}, undefined>;
|
|
259
|
+
export declare const PushContextResponseSchema: v.ObjectSchema<{
|
|
260
|
+
readonly item: v.ObjectSchema<{
|
|
261
|
+
readonly id: v.StringSchema<undefined>;
|
|
262
|
+
readonly type: v.PicklistSchema<["guide", "document", "reference", "asset"], undefined>;
|
|
263
|
+
readonly name: v.StringSchema<undefined>;
|
|
264
|
+
readonly contentType: v.StringSchema<undefined>;
|
|
265
|
+
readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
266
|
+
readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
267
|
+
readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
268
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
269
|
+
}, undefined>;
|
|
270
|
+
readonly created: v.BooleanSchema<undefined>;
|
|
271
|
+
readonly transform: v.OptionalSchema<v.ObjectSchema<{
|
|
272
|
+
readonly actionId: v.StringSchema<undefined>;
|
|
273
|
+
readonly verdict: v.PicklistSchema<["aligned", "unguided", "misaligned"], undefined>;
|
|
274
|
+
readonly gradingTier: v.StringSchema<undefined>;
|
|
275
|
+
readonly reasoning: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
276
|
+
}, undefined>, undefined>;
|
|
277
|
+
}, undefined>;
|
|
278
|
+
export declare const UpdateContextItemRequestSchema: v.ObjectSchema<{
|
|
279
|
+
readonly itemId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
280
|
+
readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
281
|
+
readonly content: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "content must be at most 262144 bytes">]>, undefined>;
|
|
282
|
+
readonly expectedVersion: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
283
|
+
}, undefined>;
|
|
284
|
+
export declare const UpdateContextItemResponseSchema: v.ObjectSchema<{
|
|
285
|
+
readonly item: v.ObjectSchema<{
|
|
286
|
+
readonly id: v.StringSchema<undefined>;
|
|
287
|
+
readonly type: v.PicklistSchema<["guide", "document", "reference", "asset"], undefined>;
|
|
288
|
+
readonly name: v.StringSchema<undefined>;
|
|
289
|
+
readonly contentType: v.StringSchema<undefined>;
|
|
290
|
+
readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
291
|
+
readonly origin: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
292
|
+
readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
293
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
294
|
+
}, undefined>;
|
|
295
|
+
readonly updated: v.BooleanSchema<undefined>;
|
|
296
|
+
}, undefined>;
|
|
297
|
+
export declare const InboxCaptureRequestSchema: v.ObjectSchema<{
|
|
298
|
+
readonly contentType: v.PicklistSchema<["document", "asset"], undefined>;
|
|
299
|
+
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "content must be at most 262144 bytes">]>;
|
|
300
|
+
readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
301
|
+
readonly source: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
302
|
+
}, undefined>;
|
|
303
|
+
export declare const InboxItemSchema: v.ObjectSchema<{
|
|
304
|
+
readonly id: v.StringSchema<undefined>;
|
|
305
|
+
readonly type: v.PicklistSchema<["guide", "document", "reference", "asset"], undefined>;
|
|
306
|
+
readonly name: v.StringSchema<undefined>;
|
|
307
|
+
readonly contentType: v.StringSchema<undefined>;
|
|
308
|
+
readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
309
|
+
readonly source: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
310
|
+
readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
311
|
+
readonly capturedAt: v.StringSchema<undefined>;
|
|
312
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
313
|
+
}, undefined>;
|
|
314
|
+
export declare const InboxCaptureResponseSchema: v.ObjectSchema<{
|
|
315
|
+
readonly item: v.ObjectSchema<{
|
|
316
|
+
readonly id: v.StringSchema<undefined>;
|
|
317
|
+
readonly type: v.PicklistSchema<["guide", "document", "reference", "asset"], undefined>;
|
|
318
|
+
readonly name: v.StringSchema<undefined>;
|
|
319
|
+
readonly contentType: v.StringSchema<undefined>;
|
|
320
|
+
readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
321
|
+
readonly source: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
322
|
+
readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
323
|
+
readonly capturedAt: v.StringSchema<undefined>;
|
|
324
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
325
|
+
}, undefined>;
|
|
326
|
+
}, undefined>;
|
|
327
|
+
export declare const InboxListResponseSchema: v.ObjectSchema<{
|
|
328
|
+
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
329
|
+
readonly id: v.StringSchema<undefined>;
|
|
330
|
+
readonly type: v.PicklistSchema<["guide", "document", "reference", "asset"], undefined>;
|
|
331
|
+
readonly name: v.StringSchema<undefined>;
|
|
332
|
+
readonly contentType: v.StringSchema<undefined>;
|
|
333
|
+
readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
334
|
+
readonly source: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
335
|
+
readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
336
|
+
readonly capturedAt: v.StringSchema<undefined>;
|
|
337
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
338
|
+
}, undefined>, undefined>;
|
|
339
|
+
}, undefined>;
|
|
340
|
+
/** Max number of ids accepted in a single `POST /api/v1/context/inbox/archive` request. */
|
|
341
|
+
export declare const MAX_INBOX_ARCHIVE_BATCH = 500;
|
|
342
|
+
export declare const InboxArchiveRequestSchema: v.ObjectSchema<{
|
|
343
|
+
readonly ids: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>, v.MinLengthAction<string[], 1, undefined>, v.MaxLengthAction<string[], 500, undefined>]>;
|
|
344
|
+
}, undefined>;
|
|
345
|
+
export declare const InboxArchiveResponseSchema: v.ObjectSchema<{
|
|
346
|
+
readonly archived: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
347
|
+
}, undefined>;
|
|
348
|
+
export declare const ContextItemVersionSchema: v.ObjectSchema<{
|
|
349
|
+
readonly id: v.StringSchema<undefined>;
|
|
350
|
+
readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
351
|
+
readonly contentHash: v.StringSchema<undefined>;
|
|
352
|
+
readonly authorType: v.StringSchema<undefined>;
|
|
353
|
+
readonly metadata: v.OptionalSchema<v.NullableSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>, undefined>;
|
|
354
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
355
|
+
}, undefined>;
|
|
356
|
+
export declare const ContextItemVersionDetailSchema: v.ObjectSchema<{
|
|
357
|
+
readonly id: v.StringSchema<undefined>;
|
|
358
|
+
readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
359
|
+
readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
360
|
+
readonly contentHash: v.StringSchema<undefined>;
|
|
361
|
+
readonly authorType: v.StringSchema<undefined>;
|
|
362
|
+
readonly metadata: v.OptionalSchema<v.NullableSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>, undefined>;
|
|
363
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
364
|
+
}, undefined>;
|
|
365
|
+
export declare const ContextItemVersionsResponseSchema: v.ObjectSchema<{
|
|
366
|
+
readonly versions: v.ArraySchema<v.ObjectSchema<{
|
|
367
|
+
readonly id: v.StringSchema<undefined>;
|
|
368
|
+
readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
369
|
+
readonly contentHash: v.StringSchema<undefined>;
|
|
370
|
+
readonly authorType: v.StringSchema<undefined>;
|
|
371
|
+
readonly metadata: v.OptionalSchema<v.NullableSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>, undefined>;
|
|
372
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
373
|
+
}, undefined>, undefined>;
|
|
374
|
+
readonly nextCursor: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
375
|
+
}, undefined>;
|
|
376
|
+
export declare const ContextItemVersionResponseSchema: v.ObjectSchema<{
|
|
377
|
+
readonly version: v.ObjectSchema<{
|
|
378
|
+
readonly id: v.StringSchema<undefined>;
|
|
379
|
+
readonly version: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
380
|
+
readonly content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
381
|
+
readonly contentHash: v.StringSchema<undefined>;
|
|
382
|
+
readonly authorType: v.StringSchema<undefined>;
|
|
383
|
+
readonly metadata: v.OptionalSchema<v.NullableSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>, undefined>;
|
|
384
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
385
|
+
}, undefined>;
|
|
386
|
+
}, undefined>;
|
|
387
|
+
/** Default and max page size for the version-history list endpoint. */
|
|
388
|
+
export declare const DEFAULT_VERSIONS_LIMIT = 50;
|
|
389
|
+
export declare const MAX_VERSIONS_LIMIT = 200;
|
|
390
|
+
export declare const NormalizedGuideRuleSchema: v.ObjectSchema<{
|
|
391
|
+
readonly text: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
392
|
+
readonly section: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
393
|
+
}, undefined>;
|
|
394
|
+
export declare const NormalizedGuideSchema: v.ObjectSchema<{
|
|
395
|
+
readonly rules: v.ArraySchema<v.ObjectSchema<{
|
|
396
|
+
readonly text: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
397
|
+
readonly section: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
398
|
+
}, undefined>, undefined>;
|
|
399
|
+
readonly summary: v.StringSchema<undefined>;
|
|
400
|
+
}, undefined>;
|
|
401
|
+
export declare const ProposalCitationSchema: v.ObjectSchema<{
|
|
402
|
+
readonly sessionId: v.StringSchema<undefined>;
|
|
403
|
+
readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
404
|
+
readonly summary: v.StringSchema<undefined>;
|
|
405
|
+
}, undefined>;
|
|
406
|
+
/** Max serialized size of an action's `metadata` field — bounds storage bloat. */
|
|
407
|
+
export declare const MAX_ACTION_METADATA_BYTES: number;
|
|
408
|
+
export declare const TokenUsageSchema: v.ObjectSchema<{
|
|
409
|
+
readonly model: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
410
|
+
readonly provider: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
411
|
+
readonly inputTokens: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
412
|
+
readonly outputTokens: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
413
|
+
readonly cacheReadTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
414
|
+
readonly cacheWriteTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
415
|
+
}, undefined>;
|
|
416
|
+
export declare const DashboardRunUsageSchema: v.ObjectSchema<{
|
|
417
|
+
readonly runId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
418
|
+
readonly sessionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
419
|
+
readonly usage: v.ArraySchema<v.ObjectSchema<{
|
|
420
|
+
readonly model: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
421
|
+
readonly provider: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
422
|
+
readonly inputTokens: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
423
|
+
readonly outputTokens: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
424
|
+
readonly cacheReadTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
425
|
+
readonly cacheWriteTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
426
|
+
}, undefined>, undefined>;
|
|
427
|
+
}, undefined>;
|
|
428
|
+
export declare const SkillUsageEntrySchema: v.ObjectSchema<{
|
|
429
|
+
readonly skillName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
430
|
+
readonly model: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
431
|
+
readonly inputTokens: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
432
|
+
readonly cacheWriteTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
433
|
+
}, undefined>;
|
|
434
|
+
export declare const DashboardSkillUsageSchema: v.ObjectSchema<{
|
|
435
|
+
readonly runId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
436
|
+
readonly sessionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
437
|
+
readonly usage: v.ArraySchema<v.ObjectSchema<{
|
|
438
|
+
readonly skillName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
439
|
+
readonly model: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
440
|
+
readonly inputTokens: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
441
|
+
readonly cacheWriteTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
442
|
+
}, undefined>, undefined>;
|
|
443
|
+
}, undefined>;
|
|
444
|
+
export declare const DashboardSyncActionSchema: v.ObjectSchema<{
|
|
445
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
446
|
+
readonly adapterId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
447
|
+
readonly runId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
448
|
+
readonly sessionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
449
|
+
readonly actionType: v.StringSchema<undefined>;
|
|
450
|
+
readonly summary: v.StringSchema<undefined>;
|
|
451
|
+
readonly filePaths: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
452
|
+
readonly verdict: v.OptionalSchema<v.PicklistSchema<["aligned", "unguided", "misaligned"], undefined>, undefined>;
|
|
453
|
+
readonly gradingTier: v.OptionalSchema<v.PicklistSchema<["pattern_match", "cached", "llm", "batch", "unguided"], undefined>, undefined>;
|
|
454
|
+
readonly guideIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
455
|
+
readonly violatedGuideId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
456
|
+
readonly evalReasoning: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
457
|
+
readonly metadata: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, v.CheckAction<{
|
|
458
|
+
[x: string]: unknown;
|
|
459
|
+
}, "metadata must serialize to at most 16384 bytes">]>, undefined>, undefined>;
|
|
460
|
+
}, undefined>;
|
|
461
|
+
export declare const DashboardGuideSuggestionSchema: v.ObjectSchema<{
|
|
462
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
463
|
+
readonly content: v.StringSchema<undefined>;
|
|
464
|
+
readonly reasoning: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
465
|
+
readonly triggerType: v.PicklistSchema<["uncovered", "ambiguous", "performance_pattern", "conversational_feedback"], undefined>;
|
|
466
|
+
readonly sourceActionIds: v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.ObjectSchema<{
|
|
467
|
+
readonly sessionId: v.StringSchema<undefined>;
|
|
468
|
+
readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
469
|
+
readonly summary: v.StringSchema<undefined>;
|
|
470
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
471
|
+
readonly status: v.OptionalSchema<v.PicklistSchema<["pending", "accepted", "dismissed"], undefined>, undefined>;
|
|
472
|
+
}, undefined>;
|
|
473
|
+
export declare const DashboardFeedbackCandidateSchema: v.ObjectSchema<{
|
|
474
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
475
|
+
readonly signal: v.StringSchema<undefined>;
|
|
476
|
+
readonly signalType: v.PicklistSchema<["correction", "approval", "implied_preference", "stated_preference", "skill_suggestion"], undefined>;
|
|
477
|
+
readonly confidence: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
478
|
+
readonly occurrences: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
479
|
+
readonly status: v.OptionalSchema<v.PicklistSchema<["inferred", "confirmed", "dismissed"], undefined>, undefined>;
|
|
480
|
+
}, undefined>;
|
|
481
|
+
/** Max number of actions accepted in a single `POST /api/sync` request. */
|
|
482
|
+
export declare const MAX_SYNC_ACTIONS_BATCH = 500;
|
|
483
|
+
/** Max number of guideSuggestions/feedbackCandidates/runUsage entries per sync request. */
|
|
484
|
+
export declare const MAX_SYNC_AUX_BATCH = 100;
|
|
485
|
+
export declare const DashboardSyncRequestSchema: v.ObjectSchema<{
|
|
486
|
+
readonly actions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
487
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
488
|
+
readonly adapterId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
489
|
+
readonly runId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
490
|
+
readonly sessionId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
491
|
+
readonly actionType: v.StringSchema<undefined>;
|
|
492
|
+
readonly summary: v.StringSchema<undefined>;
|
|
493
|
+
readonly filePaths: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
494
|
+
readonly verdict: v.OptionalSchema<v.PicklistSchema<["aligned", "unguided", "misaligned"], undefined>, undefined>;
|
|
495
|
+
readonly gradingTier: v.OptionalSchema<v.PicklistSchema<["pattern_match", "cached", "llm", "batch", "unguided"], undefined>, undefined>;
|
|
496
|
+
readonly guideIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
497
|
+
readonly violatedGuideId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
498
|
+
readonly evalReasoning: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
499
|
+
readonly metadata: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, v.CheckAction<{
|
|
500
|
+
[x: string]: unknown;
|
|
501
|
+
}, "metadata must serialize to at most 16384 bytes">]>, undefined>, undefined>;
|
|
502
|
+
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
503
|
+
id?: string | undefined;
|
|
504
|
+
adapterId?: string | undefined;
|
|
505
|
+
runId?: string | undefined;
|
|
506
|
+
sessionId?: string | undefined;
|
|
507
|
+
actionType: string;
|
|
508
|
+
summary: string;
|
|
509
|
+
filePaths?: string[] | undefined;
|
|
510
|
+
verdict?: "aligned" | "unguided" | "misaligned" | undefined;
|
|
511
|
+
gradingTier?: "unguided" | "pattern_match" | "cached" | "llm" | "batch" | undefined;
|
|
512
|
+
guideIds?: string[] | undefined;
|
|
513
|
+
violatedGuideId?: string | null | undefined;
|
|
514
|
+
evalReasoning?: string | null | undefined;
|
|
515
|
+
metadata?: {
|
|
516
|
+
[x: string]: unknown;
|
|
517
|
+
} | null | undefined;
|
|
518
|
+
}[], 500, undefined>]>, undefined>;
|
|
519
|
+
readonly guideSuggestions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
520
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
521
|
+
readonly content: v.StringSchema<undefined>;
|
|
522
|
+
readonly reasoning: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
523
|
+
readonly triggerType: v.PicklistSchema<["uncovered", "ambiguous", "performance_pattern", "conversational_feedback"], undefined>;
|
|
524
|
+
readonly sourceActionIds: v.OptionalSchema<v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.ObjectSchema<{
|
|
525
|
+
readonly sessionId: v.StringSchema<undefined>;
|
|
526
|
+
readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
527
|
+
readonly summary: v.StringSchema<undefined>;
|
|
528
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
529
|
+
readonly status: v.OptionalSchema<v.PicklistSchema<["pending", "accepted", "dismissed"], undefined>, undefined>;
|
|
530
|
+
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
531
|
+
id?: string | undefined;
|
|
532
|
+
content: string;
|
|
533
|
+
reasoning?: string | undefined;
|
|
534
|
+
triggerType: "uncovered" | "ambiguous" | "performance_pattern" | "conversational_feedback";
|
|
535
|
+
sourceActionIds?: (string | {
|
|
536
|
+
sessionId: string;
|
|
537
|
+
timestamp?: string | undefined;
|
|
538
|
+
summary: string;
|
|
539
|
+
})[] | undefined;
|
|
540
|
+
status?: "pending" | "accepted" | "dismissed" | undefined;
|
|
541
|
+
}[], 100, undefined>]>, undefined>;
|
|
542
|
+
readonly feedbackCandidates: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
543
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
544
|
+
readonly signal: v.StringSchema<undefined>;
|
|
545
|
+
readonly signalType: v.PicklistSchema<["correction", "approval", "implied_preference", "stated_preference", "skill_suggestion"], undefined>;
|
|
546
|
+
readonly confidence: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
547
|
+
readonly occurrences: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
548
|
+
readonly status: v.OptionalSchema<v.PicklistSchema<["inferred", "confirmed", "dismissed"], undefined>, undefined>;
|
|
549
|
+
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
550
|
+
id?: string | undefined;
|
|
551
|
+
signal: string;
|
|
552
|
+
signalType: "correction" | "approval" | "implied_preference" | "stated_preference" | "skill_suggestion";
|
|
553
|
+
confidence?: number | undefined;
|
|
554
|
+
occurrences?: number | undefined;
|
|
555
|
+
status?: "dismissed" | "inferred" | "confirmed" | undefined;
|
|
556
|
+
}[], 100, undefined>]>, undefined>;
|
|
557
|
+
readonly runUsage: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
558
|
+
readonly runId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
559
|
+
readonly sessionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
560
|
+
readonly usage: v.ArraySchema<v.ObjectSchema<{
|
|
561
|
+
readonly model: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
562
|
+
readonly provider: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
563
|
+
readonly inputTokens: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
564
|
+
readonly outputTokens: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
565
|
+
readonly cacheReadTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
566
|
+
readonly cacheWriteTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
567
|
+
}, undefined>, undefined>;
|
|
568
|
+
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
569
|
+
runId?: string | undefined;
|
|
570
|
+
sessionId: string;
|
|
571
|
+
usage: {
|
|
572
|
+
model: string;
|
|
573
|
+
provider?: string | undefined;
|
|
574
|
+
inputTokens: number;
|
|
575
|
+
outputTokens: number;
|
|
576
|
+
cacheReadTokens?: number | undefined;
|
|
577
|
+
cacheWriteTokens?: number | undefined;
|
|
578
|
+
}[];
|
|
579
|
+
}[], 100, undefined>]>, undefined>;
|
|
580
|
+
readonly skillUsage: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
581
|
+
readonly runId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
582
|
+
readonly sessionId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
583
|
+
readonly usage: v.ArraySchema<v.ObjectSchema<{
|
|
584
|
+
readonly skillName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
585
|
+
readonly model: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
586
|
+
readonly inputTokens: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
587
|
+
readonly cacheWriteTokens: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
588
|
+
}, undefined>, undefined>;
|
|
589
|
+
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
590
|
+
runId?: string | undefined;
|
|
591
|
+
sessionId: string;
|
|
592
|
+
usage: {
|
|
593
|
+
skillName: string;
|
|
594
|
+
model: string;
|
|
595
|
+
inputTokens: number;
|
|
596
|
+
cacheWriteTokens?: number | undefined;
|
|
597
|
+
}[];
|
|
598
|
+
}[], 100, undefined>]>, undefined>;
|
|
599
|
+
}, undefined>;
|
|
600
|
+
export declare const ExtractedGuideSuggestionSchema: v.ObjectSchema<{
|
|
601
|
+
readonly id: v.StringSchema<undefined>;
|
|
602
|
+
readonly content: v.StringSchema<undefined>;
|
|
603
|
+
readonly reasoning: v.StringSchema<undefined>;
|
|
604
|
+
readonly triggerType: v.PicklistSchema<["conversational_feedback"], undefined>;
|
|
605
|
+
readonly confidence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
606
|
+
readonly occurrences: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
607
|
+
readonly citations: v.ArraySchema<v.ObjectSchema<{
|
|
608
|
+
readonly sessionId: v.StringSchema<undefined>;
|
|
609
|
+
readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
610
|
+
readonly summary: v.StringSchema<undefined>;
|
|
611
|
+
}, undefined>, undefined>;
|
|
612
|
+
readonly source: v.PicklistSchema<["claude_code", "cursor", "copilot", "windsurf", "other"], undefined>;
|
|
613
|
+
}, undefined>;
|
|
614
|
+
export declare const ExtractedSkillSuggestionSchema: v.ObjectSchema<{
|
|
615
|
+
readonly id: v.StringSchema<undefined>;
|
|
616
|
+
readonly signal: v.StringSchema<undefined>;
|
|
617
|
+
readonly confidence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
618
|
+
readonly occurrences: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
619
|
+
readonly citations: v.ArraySchema<v.ObjectSchema<{
|
|
620
|
+
readonly sessionId: v.StringSchema<undefined>;
|
|
621
|
+
readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
622
|
+
readonly summary: v.StringSchema<undefined>;
|
|
623
|
+
}, undefined>, undefined>;
|
|
624
|
+
readonly source: v.PicklistSchema<["claude_code", "cursor", "copilot", "windsurf", "other"], undefined>;
|
|
625
|
+
}, undefined>;
|
|
626
|
+
export declare const ExtractedFeedbackBatchSchema: v.ObjectSchema<{
|
|
627
|
+
readonly guideSuggestions: v.ArraySchema<v.ObjectSchema<{
|
|
628
|
+
readonly id: v.StringSchema<undefined>;
|
|
629
|
+
readonly content: v.StringSchema<undefined>;
|
|
630
|
+
readonly reasoning: v.StringSchema<undefined>;
|
|
631
|
+
readonly triggerType: v.PicklistSchema<["conversational_feedback"], undefined>;
|
|
632
|
+
readonly confidence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
633
|
+
readonly occurrences: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
634
|
+
readonly citations: v.ArraySchema<v.ObjectSchema<{
|
|
635
|
+
readonly sessionId: v.StringSchema<undefined>;
|
|
636
|
+
readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
637
|
+
readonly summary: v.StringSchema<undefined>;
|
|
638
|
+
}, undefined>, undefined>;
|
|
639
|
+
readonly source: v.PicklistSchema<["claude_code", "cursor", "copilot", "windsurf", "other"], undefined>;
|
|
640
|
+
}, undefined>, undefined>;
|
|
641
|
+
readonly skillSuggestions: v.ArraySchema<v.ObjectSchema<{
|
|
642
|
+
readonly id: v.StringSchema<undefined>;
|
|
643
|
+
readonly signal: v.StringSchema<undefined>;
|
|
644
|
+
readonly confidence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
645
|
+
readonly occurrences: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
646
|
+
readonly citations: v.ArraySchema<v.ObjectSchema<{
|
|
647
|
+
readonly sessionId: v.StringSchema<undefined>;
|
|
648
|
+
readonly timestamp: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
649
|
+
readonly summary: v.StringSchema<undefined>;
|
|
650
|
+
}, undefined>, undefined>;
|
|
651
|
+
readonly source: v.PicklistSchema<["claude_code", "cursor", "copilot", "windsurf", "other"], undefined>;
|
|
652
|
+
}, undefined>, undefined>;
|
|
653
|
+
}, undefined>;
|
|
654
|
+
export declare const FindingSchema: v.ObjectSchema<{
|
|
655
|
+
readonly level: v.PicklistSchema<["info", "warning", "error"], undefined>;
|
|
656
|
+
readonly message: v.StringSchema<undefined>;
|
|
657
|
+
readonly data: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
658
|
+
}, undefined>;
|
|
659
|
+
export declare const AgentConfigSchema: v.ObjectSchema<{
|
|
660
|
+
readonly id: v.StringSchema<undefined>;
|
|
661
|
+
readonly name: v.StringSchema<undefined>;
|
|
662
|
+
readonly description: v.StringSchema<undefined>;
|
|
663
|
+
readonly capabilities: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
664
|
+
readonly meta: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
665
|
+
}, undefined>;
|
|
666
|
+
export declare const EvalRequestSchema: v.ObjectSchema<{
|
|
667
|
+
readonly agent: v.ObjectSchema<{
|
|
668
|
+
readonly id: v.StringSchema<undefined>;
|
|
669
|
+
readonly name: v.StringSchema<undefined>;
|
|
670
|
+
readonly description: v.StringSchema<undefined>;
|
|
671
|
+
readonly capabilities: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
672
|
+
readonly meta: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
673
|
+
}, undefined>;
|
|
674
|
+
readonly context: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
675
|
+
}, undefined>;
|
|
676
|
+
export declare const EvalResultSchema: v.ObjectSchema<{
|
|
677
|
+
readonly agentId: v.StringSchema<undefined>;
|
|
678
|
+
readonly passed: v.BooleanSchema<undefined>;
|
|
679
|
+
readonly summary: v.StringSchema<undefined>;
|
|
680
|
+
readonly findings: v.ArraySchema<v.ObjectSchema<{
|
|
681
|
+
readonly level: v.PicklistSchema<["info", "warning", "error"], undefined>;
|
|
682
|
+
readonly message: v.StringSchema<undefined>;
|
|
683
|
+
readonly data: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
684
|
+
}, undefined>, undefined>;
|
|
685
|
+
}, undefined>;
|
|
686
|
+
export declare const ProjectionRequestSchema: v.ObjectSchema<{
|
|
687
|
+
readonly agents: v.ArraySchema<v.ObjectSchema<{
|
|
688
|
+
readonly id: v.StringSchema<undefined>;
|
|
689
|
+
readonly name: v.StringSchema<undefined>;
|
|
690
|
+
readonly description: v.StringSchema<undefined>;
|
|
691
|
+
readonly capabilities: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
692
|
+
readonly meta: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
693
|
+
}, undefined>, undefined>;
|
|
694
|
+
readonly outputDir: v.StringSchema<undefined>;
|
|
695
|
+
}, undefined>;
|
|
696
|
+
export declare const ProjectionResultSchema: v.ObjectSchema<{
|
|
697
|
+
readonly agentsMd: v.StringSchema<undefined>;
|
|
698
|
+
readonly agentsDir: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
|
|
699
|
+
}, undefined>;
|
|
700
|
+
export declare const RuleOutcomeSchema: v.PicklistSchema<["aligned", "misaligned", "not_applicable"], undefined>;
|
|
701
|
+
export declare const ActionEntrySchema: v.ObjectSchema<{
|
|
702
|
+
readonly timestamp: v.StringSchema<undefined>;
|
|
703
|
+
readonly sessionId: v.StringSchema<undefined>;
|
|
704
|
+
readonly toolName: v.StringSchema<undefined>;
|
|
705
|
+
readonly filePath: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
706
|
+
readonly command: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
707
|
+
}, undefined>;
|
|
708
|
+
export declare const RuleVerdictSchema: v.ObjectSchema<{
|
|
709
|
+
readonly rule: v.StringSchema<undefined>;
|
|
710
|
+
readonly verdict: v.PicklistSchema<["aligned", "misaligned", "not_applicable"], undefined>;
|
|
711
|
+
readonly reasoning: v.StringSchema<undefined>;
|
|
712
|
+
}, undefined>;
|
|
713
|
+
export declare const RunEvalResultSchema: v.ObjectSchema<{
|
|
714
|
+
readonly verdicts: v.ArraySchema<v.ObjectSchema<{
|
|
715
|
+
readonly rule: v.StringSchema<undefined>;
|
|
716
|
+
readonly verdict: v.PicklistSchema<["aligned", "misaligned", "not_applicable"], undefined>;
|
|
717
|
+
readonly reasoning: v.StringSchema<undefined>;
|
|
718
|
+
}, undefined>, undefined>;
|
|
719
|
+
readonly summary: v.StringSchema<undefined>;
|
|
720
|
+
readonly score: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
721
|
+
}, undefined>;
|
|
722
|
+
export declare function parseAgentConfig(data: unknown): {
|
|
723
|
+
id: string;
|
|
724
|
+
name: string;
|
|
725
|
+
description: string;
|
|
726
|
+
capabilities: string[];
|
|
727
|
+
meta?: {
|
|
728
|
+
[x: string]: unknown;
|
|
729
|
+
} | undefined;
|
|
730
|
+
};
|
|
731
|
+
export declare function parseEvalRequest(data: unknown): {
|
|
732
|
+
agent: {
|
|
733
|
+
id: string;
|
|
734
|
+
name: string;
|
|
735
|
+
description: string;
|
|
736
|
+
capabilities: string[];
|
|
737
|
+
meta?: {
|
|
738
|
+
[x: string]: unknown;
|
|
739
|
+
} | undefined;
|
|
740
|
+
};
|
|
741
|
+
context?: {
|
|
742
|
+
[x: string]: unknown;
|
|
743
|
+
} | undefined;
|
|
744
|
+
};
|
|
745
|
+
export declare function parseEvalResult(data: unknown): {
|
|
746
|
+
agentId: string;
|
|
747
|
+
passed: boolean;
|
|
748
|
+
summary: string;
|
|
749
|
+
findings: {
|
|
750
|
+
level: "info" | "warning" | "error";
|
|
751
|
+
message: string;
|
|
752
|
+
data?: unknown;
|
|
753
|
+
}[];
|
|
754
|
+
};
|
|
755
|
+
export declare function parseEvalProviderSettings(data: unknown): {
|
|
756
|
+
provider?: "openrouter" | "anthropic" | "openai-compatible" | "google" | "ollama" | undefined;
|
|
757
|
+
model?: string | undefined;
|
|
758
|
+
apiKey?: string | undefined;
|
|
759
|
+
baseUrl?: string | undefined;
|
|
760
|
+
siteUrl?: string | undefined;
|
|
761
|
+
siteName?: string | undefined;
|
|
762
|
+
};
|
|
763
|
+
export declare function parseEvalProviderConfig(data: unknown): {
|
|
764
|
+
provider: "openrouter" | "anthropic" | "openai-compatible" | "google" | "ollama";
|
|
765
|
+
model: string;
|
|
766
|
+
apiKey?: string | undefined;
|
|
767
|
+
baseUrl: string;
|
|
768
|
+
siteUrl?: string | undefined;
|
|
769
|
+
siteName?: string | undefined;
|
|
770
|
+
};
|
|
771
|
+
export declare function parseValidateTokenRequest(data: unknown): {
|
|
772
|
+
token: string;
|
|
773
|
+
};
|
|
774
|
+
export declare function parseValidateTokenResponse(data: unknown): {
|
|
775
|
+
valid: boolean;
|
|
776
|
+
userId?: string | undefined;
|
|
777
|
+
expiresAt?: string | undefined;
|
|
778
|
+
};
|
|
779
|
+
export declare function parseCliTokenMetadata(data: unknown): {
|
|
780
|
+
token: string;
|
|
781
|
+
userId: string;
|
|
782
|
+
createdAt: string;
|
|
783
|
+
expiresAt: string;
|
|
784
|
+
};
|
|
785
|
+
export declare function parseGuideSnapshot(data: unknown): {
|
|
786
|
+
id: string;
|
|
787
|
+
title: string;
|
|
788
|
+
content: string;
|
|
789
|
+
enabled: boolean;
|
|
790
|
+
updatedAt: string;
|
|
791
|
+
origin?: string | null | undefined;
|
|
792
|
+
contentHash?: string | null | undefined;
|
|
793
|
+
};
|
|
794
|
+
export declare function parseGuideBundleResponse(data: unknown): {
|
|
795
|
+
guides: {
|
|
796
|
+
id: string;
|
|
797
|
+
title: string;
|
|
798
|
+
content: string;
|
|
799
|
+
enabled: boolean;
|
|
800
|
+
updatedAt: string;
|
|
801
|
+
origin?: string | null | undefined;
|
|
802
|
+
contentHash?: string | null | undefined;
|
|
803
|
+
}[];
|
|
804
|
+
pulledAt: string;
|
|
805
|
+
};
|
|
806
|
+
export declare function parseRawGuideFilePayload(data: unknown): {
|
|
807
|
+
path: string;
|
|
808
|
+
format: "agents-md" | "agents-dir" | "claude-md" | "claude-rules" | "cursorrules" | "cursor-rules" | "skill-md";
|
|
809
|
+
rawContent: string;
|
|
810
|
+
lastModified: number;
|
|
811
|
+
content_hash: string;
|
|
812
|
+
members?: {
|
|
813
|
+
path: string;
|
|
814
|
+
rawContent: string;
|
|
815
|
+
lastModified: number;
|
|
816
|
+
content_hash: string;
|
|
817
|
+
}[] | undefined;
|
|
818
|
+
skippedMemberPaths?: string[] | undefined;
|
|
819
|
+
};
|
|
820
|
+
export declare function parseGuideMemberFilesResponse(data: unknown): {
|
|
821
|
+
memberFiles: {
|
|
822
|
+
path: string;
|
|
823
|
+
content: string;
|
|
824
|
+
contentHash: string;
|
|
825
|
+
}[];
|
|
826
|
+
};
|
|
827
|
+
export declare function parseRawGuideFileDeletion(data: unknown): {
|
|
828
|
+
path: string;
|
|
829
|
+
format: "agents-md" | "agents-dir" | "claude-md" | "claude-rules" | "cursorrules" | "cursor-rules" | "skill-md";
|
|
830
|
+
};
|
|
831
|
+
export declare function parseRuleDeletionsRequest(data: unknown): {
|
|
832
|
+
deletions: unknown[];
|
|
833
|
+
};
|
|
834
|
+
export declare function parseRulesImportRequest(data: unknown): {
|
|
835
|
+
rules: unknown[];
|
|
836
|
+
};
|
|
837
|
+
export declare function parseRuleDeletionsResponse(data: unknown): {
|
|
838
|
+
disabled: number;
|
|
839
|
+
skipped: number;
|
|
840
|
+
};
|
|
841
|
+
export declare function parseBundle(data: unknown): {
|
|
842
|
+
id: string;
|
|
843
|
+
slug: string;
|
|
844
|
+
name: string;
|
|
845
|
+
kind: "user" | "inbox" | "system";
|
|
846
|
+
createdAt: string;
|
|
847
|
+
};
|
|
848
|
+
export declare function parseBundleListResponse(data: unknown): {
|
|
849
|
+
bundles: {
|
|
850
|
+
id: string;
|
|
851
|
+
slug: string;
|
|
852
|
+
name: string;
|
|
853
|
+
kind: "user" | "inbox" | "system";
|
|
854
|
+
createdAt: string;
|
|
855
|
+
}[];
|
|
856
|
+
};
|
|
857
|
+
export declare function parseCreateBundleRequest(data: unknown): {
|
|
858
|
+
slug: string;
|
|
859
|
+
name: string;
|
|
860
|
+
kind?: "user" | "inbox" | "system" | undefined;
|
|
861
|
+
};
|
|
862
|
+
export declare function parseCreateBundleResponse(data: unknown): {
|
|
863
|
+
bundle: {
|
|
864
|
+
id: string;
|
|
865
|
+
slug: string;
|
|
866
|
+
name: string;
|
|
867
|
+
kind: "user" | "inbox" | "system";
|
|
868
|
+
createdAt: string;
|
|
869
|
+
};
|
|
870
|
+
};
|
|
871
|
+
export declare function parseContextItem(data: unknown): {
|
|
872
|
+
id: string;
|
|
873
|
+
type: "reference" | "guide" | "document" | "asset";
|
|
874
|
+
name: string;
|
|
875
|
+
contentType: string;
|
|
876
|
+
content: string | null;
|
|
877
|
+
origin?: string | null | undefined;
|
|
878
|
+
version?: number | undefined;
|
|
879
|
+
updatedAt: string;
|
|
880
|
+
};
|
|
881
|
+
export declare function parseContextItemsResponse(data: unknown): {
|
|
882
|
+
items: {
|
|
883
|
+
id: string;
|
|
884
|
+
type: "reference" | "guide" | "document" | "asset";
|
|
885
|
+
name: string;
|
|
886
|
+
contentType: string;
|
|
887
|
+
content: string | null;
|
|
888
|
+
origin?: string | null | undefined;
|
|
889
|
+
version?: number | undefined;
|
|
890
|
+
updatedAt: string;
|
|
891
|
+
}[];
|
|
892
|
+
};
|
|
893
|
+
export declare function parsePushContextRequest(data: unknown): {
|
|
894
|
+
name: string;
|
|
895
|
+
contentType: "reference" | "document" | "asset";
|
|
896
|
+
content: string;
|
|
897
|
+
itemId?: string | undefined;
|
|
898
|
+
origin?: string | null | undefined;
|
|
899
|
+
sourceItemIds?: string[] | undefined;
|
|
900
|
+
};
|
|
901
|
+
export declare function parsePushContextResponse(data: unknown): {
|
|
902
|
+
item: {
|
|
903
|
+
id: string;
|
|
904
|
+
type: "reference" | "guide" | "document" | "asset";
|
|
905
|
+
name: string;
|
|
906
|
+
contentType: string;
|
|
907
|
+
content: string | null;
|
|
908
|
+
origin?: string | null | undefined;
|
|
909
|
+
version?: number | undefined;
|
|
910
|
+
updatedAt: string;
|
|
911
|
+
};
|
|
912
|
+
created: boolean;
|
|
913
|
+
transform?: {
|
|
914
|
+
actionId: string;
|
|
915
|
+
verdict: "aligned" | "unguided" | "misaligned";
|
|
916
|
+
gradingTier: string;
|
|
917
|
+
reasoning: string | null;
|
|
918
|
+
} | undefined;
|
|
919
|
+
};
|
|
920
|
+
export declare function parseUpdateContextItemRequest(data: unknown): {
|
|
921
|
+
itemId: string;
|
|
922
|
+
name?: string | undefined;
|
|
923
|
+
content?: string | undefined;
|
|
924
|
+
expectedVersion?: number | undefined;
|
|
925
|
+
};
|
|
926
|
+
export declare function parseUpdateContextItemResponse(data: unknown): {
|
|
927
|
+
item: {
|
|
928
|
+
id: string;
|
|
929
|
+
type: "reference" | "guide" | "document" | "asset";
|
|
930
|
+
name: string;
|
|
931
|
+
contentType: string;
|
|
932
|
+
content: string | null;
|
|
933
|
+
origin?: string | null | undefined;
|
|
934
|
+
version?: number | undefined;
|
|
935
|
+
updatedAt: string;
|
|
936
|
+
};
|
|
937
|
+
updated: boolean;
|
|
938
|
+
};
|
|
939
|
+
export declare function parseInboxCaptureRequest(data: unknown): {
|
|
940
|
+
contentType: "document" | "asset";
|
|
941
|
+
content: string;
|
|
942
|
+
name?: string | undefined;
|
|
943
|
+
source?: string | undefined;
|
|
944
|
+
};
|
|
945
|
+
export declare function parseInboxCaptureResponse(data: unknown): {
|
|
946
|
+
item: {
|
|
947
|
+
id: string;
|
|
948
|
+
type: "reference" | "guide" | "document" | "asset";
|
|
949
|
+
name: string;
|
|
950
|
+
contentType: string;
|
|
951
|
+
content: string | null;
|
|
952
|
+
source?: string | null | undefined;
|
|
953
|
+
version?: number | undefined;
|
|
954
|
+
capturedAt: string;
|
|
955
|
+
updatedAt: string;
|
|
956
|
+
};
|
|
957
|
+
};
|
|
958
|
+
export declare function parseInboxListResponse(data: unknown): {
|
|
959
|
+
items: {
|
|
960
|
+
id: string;
|
|
961
|
+
type: "reference" | "guide" | "document" | "asset";
|
|
962
|
+
name: string;
|
|
963
|
+
contentType: string;
|
|
964
|
+
content: string | null;
|
|
965
|
+
source?: string | null | undefined;
|
|
966
|
+
version?: number | undefined;
|
|
967
|
+
capturedAt: string;
|
|
968
|
+
updatedAt: string;
|
|
969
|
+
}[];
|
|
970
|
+
};
|
|
971
|
+
export declare function parseContextItemVersionsResponse(data: unknown): {
|
|
972
|
+
versions: {
|
|
973
|
+
id: string;
|
|
974
|
+
version: number;
|
|
975
|
+
contentHash: string;
|
|
976
|
+
authorType: string;
|
|
977
|
+
metadata?: {
|
|
978
|
+
[x: string]: unknown;
|
|
979
|
+
} | null | undefined;
|
|
980
|
+
createdAt: string;
|
|
981
|
+
}[];
|
|
982
|
+
nextCursor: number | null;
|
|
983
|
+
};
|
|
984
|
+
export declare function parseContextItemVersionResponse(data: unknown): {
|
|
985
|
+
version: {
|
|
986
|
+
id: string;
|
|
987
|
+
version: number;
|
|
988
|
+
content: string | null;
|
|
989
|
+
contentHash: string;
|
|
990
|
+
authorType: string;
|
|
991
|
+
metadata?: {
|
|
992
|
+
[x: string]: unknown;
|
|
993
|
+
} | null | undefined;
|
|
994
|
+
createdAt: string;
|
|
995
|
+
};
|
|
996
|
+
};
|
|
997
|
+
export declare function parseInboxArchiveRequest(data: unknown): {
|
|
998
|
+
ids: string[];
|
|
999
|
+
};
|
|
1000
|
+
export declare function parseInboxArchiveResponse(data: unknown): {
|
|
1001
|
+
archived: number;
|
|
1002
|
+
};
|
|
1003
|
+
export declare function parseNormalizedGuide(data: unknown): {
|
|
1004
|
+
rules: {
|
|
1005
|
+
text: string;
|
|
1006
|
+
section: string | null;
|
|
1007
|
+
}[];
|
|
1008
|
+
summary: string;
|
|
1009
|
+
};
|
|
1010
|
+
export declare function parseDashboardSyncRequest(data: unknown): {
|
|
1011
|
+
actions?: {
|
|
1012
|
+
id?: string | undefined;
|
|
1013
|
+
adapterId?: string | undefined;
|
|
1014
|
+
runId?: string | undefined;
|
|
1015
|
+
sessionId?: string | undefined;
|
|
1016
|
+
actionType: string;
|
|
1017
|
+
summary: string;
|
|
1018
|
+
filePaths?: string[] | undefined;
|
|
1019
|
+
verdict?: "aligned" | "unguided" | "misaligned" | undefined;
|
|
1020
|
+
gradingTier?: "unguided" | "pattern_match" | "cached" | "llm" | "batch" | undefined;
|
|
1021
|
+
guideIds?: string[] | undefined;
|
|
1022
|
+
violatedGuideId?: string | null | undefined;
|
|
1023
|
+
evalReasoning?: string | null | undefined;
|
|
1024
|
+
metadata?: {
|
|
1025
|
+
[x: string]: unknown;
|
|
1026
|
+
} | null | undefined;
|
|
1027
|
+
}[] | undefined;
|
|
1028
|
+
guideSuggestions?: {
|
|
1029
|
+
id?: string | undefined;
|
|
1030
|
+
content: string;
|
|
1031
|
+
reasoning?: string | undefined;
|
|
1032
|
+
triggerType: "uncovered" | "ambiguous" | "performance_pattern" | "conversational_feedback";
|
|
1033
|
+
sourceActionIds?: (string | {
|
|
1034
|
+
sessionId: string;
|
|
1035
|
+
timestamp?: string | undefined;
|
|
1036
|
+
summary: string;
|
|
1037
|
+
})[] | undefined;
|
|
1038
|
+
status?: "pending" | "accepted" | "dismissed" | undefined;
|
|
1039
|
+
}[] | undefined;
|
|
1040
|
+
feedbackCandidates?: {
|
|
1041
|
+
id?: string | undefined;
|
|
1042
|
+
signal: string;
|
|
1043
|
+
signalType: "correction" | "approval" | "implied_preference" | "stated_preference" | "skill_suggestion";
|
|
1044
|
+
confidence?: number | undefined;
|
|
1045
|
+
occurrences?: number | undefined;
|
|
1046
|
+
status?: "dismissed" | "inferred" | "confirmed" | undefined;
|
|
1047
|
+
}[] | undefined;
|
|
1048
|
+
runUsage?: {
|
|
1049
|
+
runId?: string | undefined;
|
|
1050
|
+
sessionId: string;
|
|
1051
|
+
usage: {
|
|
1052
|
+
model: string;
|
|
1053
|
+
provider?: string | undefined;
|
|
1054
|
+
inputTokens: number;
|
|
1055
|
+
outputTokens: number;
|
|
1056
|
+
cacheReadTokens?: number | undefined;
|
|
1057
|
+
cacheWriteTokens?: number | undefined;
|
|
1058
|
+
}[];
|
|
1059
|
+
}[] | undefined;
|
|
1060
|
+
skillUsage?: {
|
|
1061
|
+
runId?: string | undefined;
|
|
1062
|
+
sessionId: string;
|
|
1063
|
+
usage: {
|
|
1064
|
+
skillName: string;
|
|
1065
|
+
model: string;
|
|
1066
|
+
inputTokens: number;
|
|
1067
|
+
cacheWriteTokens?: number | undefined;
|
|
1068
|
+
}[];
|
|
1069
|
+
}[] | undefined;
|
|
1070
|
+
};
|
|
1071
|
+
export declare function parseProposalCitation(data: unknown): {
|
|
1072
|
+
sessionId: string;
|
|
1073
|
+
timestamp?: string | undefined;
|
|
1074
|
+
summary: string;
|
|
1075
|
+
};
|
|
1076
|
+
export declare function parseExtractedGuideSuggestion(data: unknown): {
|
|
1077
|
+
id: string;
|
|
1078
|
+
content: string;
|
|
1079
|
+
reasoning: string;
|
|
1080
|
+
triggerType: "conversational_feedback";
|
|
1081
|
+
confidence: number;
|
|
1082
|
+
occurrences: number;
|
|
1083
|
+
citations: {
|
|
1084
|
+
sessionId: string;
|
|
1085
|
+
timestamp?: string | undefined;
|
|
1086
|
+
summary: string;
|
|
1087
|
+
}[];
|
|
1088
|
+
source: "claude_code" | "cursor" | "copilot" | "windsurf" | "other";
|
|
1089
|
+
};
|
|
1090
|
+
export declare function parseExtractedSkillSuggestion(data: unknown): {
|
|
1091
|
+
id: string;
|
|
1092
|
+
signal: string;
|
|
1093
|
+
confidence: number;
|
|
1094
|
+
occurrences: number;
|
|
1095
|
+
citations: {
|
|
1096
|
+
sessionId: string;
|
|
1097
|
+
timestamp?: string | undefined;
|
|
1098
|
+
summary: string;
|
|
1099
|
+
}[];
|
|
1100
|
+
source: "claude_code" | "cursor" | "copilot" | "windsurf" | "other";
|
|
1101
|
+
};
|
|
1102
|
+
export declare function parseExtractedFeedbackBatch(data: unknown): {
|
|
1103
|
+
guideSuggestions: {
|
|
1104
|
+
id: string;
|
|
1105
|
+
content: string;
|
|
1106
|
+
reasoning: string;
|
|
1107
|
+
triggerType: "conversational_feedback";
|
|
1108
|
+
confidence: number;
|
|
1109
|
+
occurrences: number;
|
|
1110
|
+
citations: {
|
|
1111
|
+
sessionId: string;
|
|
1112
|
+
timestamp?: string | undefined;
|
|
1113
|
+
summary: string;
|
|
1114
|
+
}[];
|
|
1115
|
+
source: "claude_code" | "cursor" | "copilot" | "windsurf" | "other";
|
|
1116
|
+
}[];
|
|
1117
|
+
skillSuggestions: {
|
|
1118
|
+
id: string;
|
|
1119
|
+
signal: string;
|
|
1120
|
+
confidence: number;
|
|
1121
|
+
occurrences: number;
|
|
1122
|
+
citations: {
|
|
1123
|
+
sessionId: string;
|
|
1124
|
+
timestamp?: string | undefined;
|
|
1125
|
+
summary: string;
|
|
1126
|
+
}[];
|
|
1127
|
+
source: "claude_code" | "cursor" | "copilot" | "windsurf" | "other";
|
|
1128
|
+
}[];
|
|
1129
|
+
};
|
|
1130
|
+
export declare function parseProjectionRequest(data: unknown): {
|
|
1131
|
+
agents: {
|
|
1132
|
+
id: string;
|
|
1133
|
+
name: string;
|
|
1134
|
+
description: string;
|
|
1135
|
+
capabilities: string[];
|
|
1136
|
+
meta?: {
|
|
1137
|
+
[x: string]: unknown;
|
|
1138
|
+
} | undefined;
|
|
1139
|
+
}[];
|
|
1140
|
+
outputDir: string;
|
|
1141
|
+
};
|
|
1142
|
+
export declare function parseProjectionResult(data: unknown): {
|
|
1143
|
+
agentsMd: string;
|
|
1144
|
+
agentsDir: {
|
|
1145
|
+
[x: string]: string;
|
|
1146
|
+
};
|
|
1147
|
+
};
|
|
1148
|
+
export declare function parseActionEntry(data: unknown): {
|
|
1149
|
+
timestamp: string;
|
|
1150
|
+
sessionId: string;
|
|
1151
|
+
toolName: string;
|
|
1152
|
+
filePath?: string | undefined;
|
|
1153
|
+
command?: string | undefined;
|
|
1154
|
+
};
|
|
1155
|
+
export declare function parseRuleVerdict(data: unknown): {
|
|
1156
|
+
rule: string;
|
|
1157
|
+
verdict: "aligned" | "misaligned" | "not_applicable";
|
|
1158
|
+
reasoning: string;
|
|
1159
|
+
};
|
|
1160
|
+
export declare function parseRunEvalResult(data: unknown): {
|
|
1161
|
+
verdicts: {
|
|
1162
|
+
rule: string;
|
|
1163
|
+
verdict: "aligned" | "misaligned" | "not_applicable";
|
|
1164
|
+
reasoning: string;
|
|
1165
|
+
}[];
|
|
1166
|
+
summary: string;
|
|
1167
|
+
score: number;
|
|
1168
|
+
};
|
|
1169
|
+
//# sourceMappingURL=schemas.d.ts.map
|