@myagentroam/protocol 0.9.97 → 0.9.99
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/dist/index.d.ts +78 -0
- package/dist/index.js +30 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -24600,6 +24600,84 @@ export declare const workspaceContentSearchSchema: z.ZodObject<{
|
|
|
24600
24600
|
}>;
|
|
24601
24601
|
export type WorkspaceContentMatch = z.infer<typeof workspaceContentMatchSchema>;
|
|
24602
24602
|
export type WorkspaceContentSearch = z.infer<typeof workspaceContentSearchSchema>;
|
|
24603
|
+
export declare const workspaceFileReferenceSourceContextSchema: z.ZodObject<{
|
|
24604
|
+
text: z.ZodEffects<z.ZodString, string, string>;
|
|
24605
|
+
position: z.ZodNumber;
|
|
24606
|
+
}, "strict", z.ZodTypeAny, {
|
|
24607
|
+
text: string;
|
|
24608
|
+
position: number;
|
|
24609
|
+
}, {
|
|
24610
|
+
text: string;
|
|
24611
|
+
position: number;
|
|
24612
|
+
}>;
|
|
24613
|
+
export declare const workspaceFileReferenceSchema: z.ZodEffects<z.ZodObject<{
|
|
24614
|
+
languageId: z.ZodString;
|
|
24615
|
+
extractorId: z.ZodString;
|
|
24616
|
+
kind: z.ZodEnum<["relative-file", "module", "namespace", "include"]>;
|
|
24617
|
+
anchor: z.ZodOptional<z.ZodString>;
|
|
24618
|
+
value: z.ZodString;
|
|
24619
|
+
from: z.ZodNumber;
|
|
24620
|
+
to: z.ZodNumber;
|
|
24621
|
+
sourceContext: z.ZodObject<{
|
|
24622
|
+
text: z.ZodEffects<z.ZodString, string, string>;
|
|
24623
|
+
position: z.ZodNumber;
|
|
24624
|
+
}, "strict", z.ZodTypeAny, {
|
|
24625
|
+
text: string;
|
|
24626
|
+
position: number;
|
|
24627
|
+
}, {
|
|
24628
|
+
text: string;
|
|
24629
|
+
position: number;
|
|
24630
|
+
}>;
|
|
24631
|
+
}, "strict", z.ZodTypeAny, {
|
|
24632
|
+
value: string;
|
|
24633
|
+
kind: "namespace" | "relative-file" | "module" | "include";
|
|
24634
|
+
languageId: string;
|
|
24635
|
+
extractorId: string;
|
|
24636
|
+
from: number;
|
|
24637
|
+
to: number;
|
|
24638
|
+
sourceContext: {
|
|
24639
|
+
text: string;
|
|
24640
|
+
position: number;
|
|
24641
|
+
};
|
|
24642
|
+
anchor?: string | undefined;
|
|
24643
|
+
}, {
|
|
24644
|
+
value: string;
|
|
24645
|
+
kind: "namespace" | "relative-file" | "module" | "include";
|
|
24646
|
+
languageId: string;
|
|
24647
|
+
extractorId: string;
|
|
24648
|
+
from: number;
|
|
24649
|
+
to: number;
|
|
24650
|
+
sourceContext: {
|
|
24651
|
+
text: string;
|
|
24652
|
+
position: number;
|
|
24653
|
+
};
|
|
24654
|
+
anchor?: string | undefined;
|
|
24655
|
+
}>, {
|
|
24656
|
+
value: string;
|
|
24657
|
+
kind: "namespace" | "relative-file" | "module" | "include";
|
|
24658
|
+
languageId: string;
|
|
24659
|
+
extractorId: string;
|
|
24660
|
+
from: number;
|
|
24661
|
+
to: number;
|
|
24662
|
+
sourceContext: {
|
|
24663
|
+
text: string;
|
|
24664
|
+
position: number;
|
|
24665
|
+
};
|
|
24666
|
+
anchor?: string | undefined;
|
|
24667
|
+
}, {
|
|
24668
|
+
value: string;
|
|
24669
|
+
kind: "namespace" | "relative-file" | "module" | "include";
|
|
24670
|
+
languageId: string;
|
|
24671
|
+
extractorId: string;
|
|
24672
|
+
from: number;
|
|
24673
|
+
to: number;
|
|
24674
|
+
sourceContext: {
|
|
24675
|
+
text: string;
|
|
24676
|
+
position: number;
|
|
24677
|
+
};
|
|
24678
|
+
anchor?: string | undefined;
|
|
24679
|
+
}>;
|
|
24680
|
+
export type WorkspaceFileReference = z.infer<typeof workspaceFileReferenceSchema>;
|
|
24603
24681
|
export declare const workspaceSymbolDefinitionTargetSchema: z.ZodObject<{
|
|
24604
24682
|
path: z.ZodString;
|
|
24605
24683
|
line: z.ZodNumber;
|
package/dist/index.js
CHANGED
|
@@ -2385,6 +2385,36 @@ export const workspaceContentSearchSchema = z.object({
|
|
|
2385
2385
|
truncated: z.boolean(),
|
|
2386
2386
|
skippedFiles: z.number().int().nonnegative()
|
|
2387
2387
|
});
|
|
2388
|
+
export const workspaceFileReferenceSourceContextSchema = z
|
|
2389
|
+
.object({
|
|
2390
|
+
text: z
|
|
2391
|
+
.string()
|
|
2392
|
+
.min(1)
|
|
2393
|
+
.refine((value) => utf8ByteLength(value) <= 8 * 1024),
|
|
2394
|
+
position: z.number().int().nonnegative()
|
|
2395
|
+
})
|
|
2396
|
+
.strict();
|
|
2397
|
+
export const workspaceFileReferenceSchema = z
|
|
2398
|
+
.object({
|
|
2399
|
+
languageId: z.string().regex(/^[a-z][a-z0-9-]{0,63}$/u),
|
|
2400
|
+
extractorId: z.string().regex(/^[a-z][a-z0-9.-]{0,127}$/u),
|
|
2401
|
+
kind: z.enum(['relative-file', 'module', 'namespace', 'include']),
|
|
2402
|
+
anchor: z.string().min(1).max(1024).optional(),
|
|
2403
|
+
value: z.string().min(1).max(1024),
|
|
2404
|
+
from: z
|
|
2405
|
+
.number()
|
|
2406
|
+
.int()
|
|
2407
|
+
.nonnegative()
|
|
2408
|
+
.max(4 * 1024 * 1024),
|
|
2409
|
+
to: z
|
|
2410
|
+
.number()
|
|
2411
|
+
.int()
|
|
2412
|
+
.positive()
|
|
2413
|
+
.max(4 * 1024 * 1024),
|
|
2414
|
+
sourceContext: workspaceFileReferenceSourceContextSchema
|
|
2415
|
+
})
|
|
2416
|
+
.strict()
|
|
2417
|
+
.refine((reference) => reference.to > reference.from);
|
|
2388
2418
|
export const workspaceSymbolDefinitionTargetSchema = z.object({
|
|
2389
2419
|
path: z.string().min(1).max(4096),
|
|
2390
2420
|
line: z.number().int().positive(),
|