@mossbear/protocol 0.1.0-alpha.100 → 0.1.0-alpha.102
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/artifact.test.js +28 -1
- package/dist/artifact.test.js.map +1 -1
- package/dist/commentAnchor.d.ts +9 -0
- package/dist/commentAnchor.d.ts.map +1 -1
- package/dist/commentAnchor.js +9 -0
- package/dist/commentAnchor.js.map +1 -1
- package/dist/datasets.d.ts +322 -0
- package/dist/datasets.d.ts.map +1 -0
- package/dist/datasets.js +290 -0
- package/dist/datasets.js.map +1 -0
- package/dist/datasets.test.d.ts +2 -0
- package/dist/datasets.test.d.ts.map +1 -0
- package/dist/datasets.test.js +77 -0
- package/dist/datasets.test.js.map +1 -0
- package/dist/frameDocument.d.ts +9 -5
- package/dist/frameDocument.d.ts.map +1 -1
- package/dist/frameDocument.js +21 -5
- package/dist/frameDocument.js.map +1 -1
- package/dist/frameDocument.test.js +31 -0
- package/dist/frameDocument.test.js.map +1 -1
- package/dist/frameProtocol.d.ts +7 -0
- package/dist/frameProtocol.d.ts.map +1 -1
- package/dist/frameProtocol.js +7 -0
- package/dist/frameProtocol.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +272 -8
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +143 -0
- package/dist/schemas.js.map +1 -1
- package/dist/schemas.test.js +9 -0
- package/dist/schemas.test.js.map +1 -1
- package/dist/types.d.ts +7 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/whatSyncs.d.ts.map +1 -1
- package/dist/whatSyncs.js +4 -0
- package/dist/whatSyncs.js.map +1 -1
- package/package.json +5 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -74,6 +74,14 @@ export declare const RawSkillMemberFileSchema: v.ObjectSchema<{
|
|
|
74
74
|
readonly rawContent: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "rawContent must be at most 524288 bytes">]>;
|
|
75
75
|
readonly lastModified: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
76
76
|
readonly content_hash: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
77
|
+
/**
|
|
78
|
+
* Whether the file is executable (`100755` in git), so delivery writes it
|
|
79
|
+
* `0o755` or `0o644`. A boolean rather than a mode because git records only
|
|
80
|
+
* those two for a blob, and a numeric mode would be a channel for bits
|
|
81
|
+
* nothing here should set. **Absent is not `false`**: a CLI that predates the
|
|
82
|
+
* field sends none, and the server then keeps whatever it already holds.
|
|
83
|
+
*/
|
|
84
|
+
readonly executable: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
77
85
|
}, undefined>;
|
|
78
86
|
/** Max skipped-member paths a skill-md payload may report alongside `members`. */
|
|
79
87
|
export declare const MAX_SKILL_SKIPPED_MEMBER_PATHS = 256;
|
|
@@ -120,11 +128,20 @@ export declare const RawGuideFilePayloadSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
120
128
|
readonly rawContent: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "rawContent must be at most 524288 bytes">]>;
|
|
121
129
|
readonly lastModified: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
122
130
|
readonly content_hash: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
131
|
+
/**
|
|
132
|
+
* Whether the file is executable (`100755` in git), so delivery writes it
|
|
133
|
+
* `0o755` or `0o644`. A boolean rather than a mode because git records only
|
|
134
|
+
* those two for a blob, and a numeric mode would be a channel for bits
|
|
135
|
+
* nothing here should set. **Absent is not `false`**: a CLI that predates the
|
|
136
|
+
* field sends none, and the server then keeps whatever it already holds.
|
|
137
|
+
*/
|
|
138
|
+
readonly executable: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
123
139
|
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
124
140
|
path: string;
|
|
125
141
|
rawContent: string;
|
|
126
142
|
lastModified: number;
|
|
127
143
|
content_hash: string;
|
|
144
|
+
executable?: boolean | undefined;
|
|
128
145
|
}[], 64, undefined>]>, undefined>;
|
|
129
146
|
/**
|
|
130
147
|
* The body-item version this machine last agreed with the server about for
|
|
@@ -159,6 +176,7 @@ export declare const RawGuideFilePayloadSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
159
176
|
rawContent: string;
|
|
160
177
|
lastModified: number;
|
|
161
178
|
content_hash: string;
|
|
179
|
+
executable?: boolean | undefined;
|
|
162
180
|
}[] | undefined;
|
|
163
181
|
expectedVersion?: number | undefined;
|
|
164
182
|
skippedMemberPaths?: string[] | undefined;
|
|
@@ -174,6 +192,7 @@ export declare const RawGuideFilePayloadSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
174
192
|
rawContent: string;
|
|
175
193
|
lastModified: number;
|
|
176
194
|
content_hash: string;
|
|
195
|
+
executable?: boolean | undefined;
|
|
177
196
|
}[] | undefined;
|
|
178
197
|
expectedVersion?: number | undefined;
|
|
179
198
|
skippedMemberPaths?: string[] | undefined;
|
|
@@ -189,6 +208,7 @@ export declare const RawGuideFilePayloadSchema: v.SchemaWithPipe<readonly [v.Obj
|
|
|
189
208
|
rawContent: string;
|
|
190
209
|
lastModified: number;
|
|
191
210
|
content_hash: string;
|
|
211
|
+
executable?: boolean | undefined;
|
|
192
212
|
}[] | undefined;
|
|
193
213
|
expectedVersion?: number | undefined;
|
|
194
214
|
skippedMemberPaths?: string[] | undefined;
|
|
@@ -1477,6 +1497,14 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
1477
1497
|
* broken half-skill on disk, which is worse than not muting at all.
|
|
1478
1498
|
*/
|
|
1479
1499
|
readonly guideId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1500
|
+
/**
|
|
1501
|
+
* On a skill's member file: whether git records it as executable, so delivery
|
|
1502
|
+
* writes it `0o755` (`true`) or `0o644` (`false`). **Absent means unknown**,
|
|
1503
|
+
* from a server that predates it or for a member imported before the bit was
|
|
1504
|
+
* carried, and delivery then leaves the file's mode as it finds it: writing
|
|
1505
|
+
* `0o644` there would undo a `chmod +x` the user made to work round this.
|
|
1506
|
+
*/
|
|
1507
|
+
readonly executable: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1480
1508
|
readonly root: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["project", "global"], undefined>, undefined>, undefined>;
|
|
1481
1509
|
readonly path: v.OptionalSchema<v.NullableSchema<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">]>, undefined>, undefined>;
|
|
1482
1510
|
readonly projectId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
@@ -1754,6 +1782,7 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
1754
1782
|
origin?: string | null | undefined;
|
|
1755
1783
|
version?: number | undefined;
|
|
1756
1784
|
guideId?: string | null | undefined;
|
|
1785
|
+
executable?: boolean | undefined;
|
|
1757
1786
|
root?: "project" | "global" | null | undefined;
|
|
1758
1787
|
path?: string | null | undefined;
|
|
1759
1788
|
projectId?: string | null | undefined;
|
|
@@ -1822,6 +1851,7 @@ export declare const ContextItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchem
|
|
|
1822
1851
|
origin?: string | null | undefined;
|
|
1823
1852
|
version?: number | undefined;
|
|
1824
1853
|
guideId?: string | null | undefined;
|
|
1854
|
+
executable?: boolean | undefined;
|
|
1825
1855
|
root?: "project" | "global" | null | undefined;
|
|
1826
1856
|
path?: string | null | undefined;
|
|
1827
1857
|
projectId?: string | null | undefined;
|
|
@@ -1937,6 +1967,14 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
|
|
|
1937
1967
|
* broken half-skill on disk, which is worse than not muting at all.
|
|
1938
1968
|
*/
|
|
1939
1969
|
readonly guideId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1970
|
+
/**
|
|
1971
|
+
* On a skill's member file: whether git records it as executable, so delivery
|
|
1972
|
+
* writes it `0o755` (`true`) or `0o644` (`false`). **Absent means unknown**,
|
|
1973
|
+
* from a server that predates it or for a member imported before the bit was
|
|
1974
|
+
* carried, and delivery then leaves the file's mode as it finds it: writing
|
|
1975
|
+
* `0o644` there would undo a `chmod +x` the user made to work round this.
|
|
1976
|
+
*/
|
|
1977
|
+
readonly executable: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1940
1978
|
readonly root: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["project", "global"], undefined>, undefined>, undefined>;
|
|
1941
1979
|
readonly path: v.OptionalSchema<v.NullableSchema<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">]>, undefined>, undefined>;
|
|
1942
1980
|
readonly projectId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
@@ -2214,6 +2252,7 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
|
|
|
2214
2252
|
origin?: string | null | undefined;
|
|
2215
2253
|
version?: number | undefined;
|
|
2216
2254
|
guideId?: string | null | undefined;
|
|
2255
|
+
executable?: boolean | undefined;
|
|
2217
2256
|
root?: "project" | "global" | null | undefined;
|
|
2218
2257
|
path?: string | null | undefined;
|
|
2219
2258
|
projectId?: string | null | undefined;
|
|
@@ -2282,6 +2321,7 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
|
|
|
2282
2321
|
origin?: string | null | undefined;
|
|
2283
2322
|
version?: number | undefined;
|
|
2284
2323
|
guideId?: string | null | undefined;
|
|
2324
|
+
executable?: boolean | undefined;
|
|
2285
2325
|
root?: "project" | "global" | null | undefined;
|
|
2286
2326
|
path?: string | null | undefined;
|
|
2287
2327
|
projectId?: string | null | undefined;
|
|
@@ -2341,6 +2381,8 @@ export declare const ContextItemsResponseSchema: v.ObjectSchema<{
|
|
|
2341
2381
|
readonly endMarker: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2342
2382
|
readonly note: v.StringSchema<undefined>;
|
|
2343
2383
|
}, undefined>, undefined>, undefined>;
|
|
2384
|
+
/** As on {@link BundleArtifactsResponseSchema}. */
|
|
2385
|
+
readonly next: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2344
2386
|
}, undefined>;
|
|
2345
2387
|
/**
|
|
2346
2388
|
* The bundle pull under its artifact name: the same members and comments as
|
|
@@ -2413,6 +2455,14 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
|
|
|
2413
2455
|
* broken half-skill on disk, which is worse than not muting at all.
|
|
2414
2456
|
*/
|
|
2415
2457
|
readonly guideId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2458
|
+
/**
|
|
2459
|
+
* On a skill's member file: whether git records it as executable, so delivery
|
|
2460
|
+
* writes it `0o755` (`true`) or `0o644` (`false`). **Absent means unknown**,
|
|
2461
|
+
* from a server that predates it or for a member imported before the bit was
|
|
2462
|
+
* carried, and delivery then leaves the file's mode as it finds it: writing
|
|
2463
|
+
* `0o644` there would undo a `chmod +x` the user made to work round this.
|
|
2464
|
+
*/
|
|
2465
|
+
readonly executable: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2416
2466
|
readonly root: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["project", "global"], undefined>, undefined>, undefined>;
|
|
2417
2467
|
readonly path: v.OptionalSchema<v.NullableSchema<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">]>, undefined>, undefined>;
|
|
2418
2468
|
readonly projectId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
@@ -2690,6 +2740,7 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
|
|
|
2690
2740
|
origin?: string | null | undefined;
|
|
2691
2741
|
version?: number | undefined;
|
|
2692
2742
|
guideId?: string | null | undefined;
|
|
2743
|
+
executable?: boolean | undefined;
|
|
2693
2744
|
root?: "project" | "global" | null | undefined;
|
|
2694
2745
|
path?: string | null | undefined;
|
|
2695
2746
|
projectId?: string | null | undefined;
|
|
@@ -2758,6 +2809,7 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
|
|
|
2758
2809
|
origin?: string | null | undefined;
|
|
2759
2810
|
version?: number | undefined;
|
|
2760
2811
|
guideId?: string | null | undefined;
|
|
2812
|
+
executable?: boolean | undefined;
|
|
2761
2813
|
root?: "project" | "global" | null | undefined;
|
|
2762
2814
|
path?: string | null | undefined;
|
|
2763
2815
|
projectId?: string | null | undefined;
|
|
@@ -2812,6 +2864,12 @@ export declare const BundleArtifactsResponseSchema: v.ObjectSchema<{
|
|
|
2812
2864
|
readonly endMarker: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
2813
2865
|
readonly note: v.StringSchema<undefined>;
|
|
2814
2866
|
}, undefined>, undefined>, undefined>;
|
|
2867
|
+
/**
|
|
2868
|
+
* On a paged read (one that sent `after`): the cursor for the next page, or
|
|
2869
|
+
* `null` after the last. Absent on an unpaged read, and from a server that
|
|
2870
|
+
* predates paging — which is how a reader tells the two apart.
|
|
2871
|
+
*/
|
|
2872
|
+
readonly next: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2815
2873
|
}, undefined>;
|
|
2816
2874
|
/**
|
|
2817
2875
|
* How many bundles one comments read may name.
|
|
@@ -4023,12 +4081,16 @@ export declare const GuidePublishSchema: v.SchemaWithPipe<readonly [v.StrictObje
|
|
|
4023
4081
|
readonly members: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
4024
4082
|
readonly path: v.SchemaWithPipe<readonly [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">]>;
|
|
4025
4083
|
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "rawContent must be at most 524288 bytes">]>;
|
|
4084
|
+
/** As on {@link RawSkillMemberFileSchema}: absent is not `false`. */
|
|
4085
|
+
readonly executable: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
4026
4086
|
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
4027
4087
|
path: string;
|
|
4028
4088
|
content: string;
|
|
4089
|
+
executable?: boolean | undefined;
|
|
4029
4090
|
}[], 64, undefined>, v.CheckAction<{
|
|
4030
4091
|
path: string;
|
|
4031
4092
|
content: string;
|
|
4093
|
+
executable?: boolean | undefined;
|
|
4032
4094
|
}[], "member paths must be unique (case-insensitive)">]>, undefined>;
|
|
4033
4095
|
readonly skippedPaths: 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>;
|
|
4034
4096
|
/**
|
|
@@ -4043,6 +4105,7 @@ export declare const GuidePublishSchema: v.SchemaWithPipe<readonly [v.StrictObje
|
|
|
4043
4105
|
members?: {
|
|
4044
4106
|
path: string;
|
|
4045
4107
|
content: string;
|
|
4108
|
+
executable?: boolean | undefined;
|
|
4046
4109
|
}[] | undefined;
|
|
4047
4110
|
skippedPaths?: string[] | undefined;
|
|
4048
4111
|
aliases?: string[] | undefined;
|
|
@@ -4054,6 +4117,125 @@ export type GuidePublish = v.InferOutput<typeof GuidePublishSchema>;
|
|
|
4054
4117
|
* later; a scoped credential must name a bundle it may write, and the server
|
|
4055
4118
|
* refuses a scoped create without one.
|
|
4056
4119
|
*/
|
|
4120
|
+
/**
|
|
4121
|
+
* The identity a guide's files carry with them: a skill's
|
|
4122
|
+
* `metadata.mossbear-id`. An opaque lookup key, resolved only inside the
|
|
4123
|
+
* publishing workspace, so it grants nothing even though it sits in public
|
|
4124
|
+
* repos. Both an artifact id and a `nanoid()` fit it.
|
|
4125
|
+
*/
|
|
4126
|
+
export declare const IdentityKeySchema: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "an identity key is letters, digits, `-` and `_`">]>;
|
|
4127
|
+
/** How many keys one identity lookup may ask about: a declared set, not more. */
|
|
4128
|
+
export declare const MAX_IDENTITY_LOOKUP_ENTRIES = 500;
|
|
4129
|
+
/**
|
|
4130
|
+
* Ask what publishing each key at a path would do in the workspace of `bundle`
|
|
4131
|
+
* (a bundle id the publishing repo homes), before anything is sent. Read-only.
|
|
4132
|
+
*/
|
|
4133
|
+
export declare const ResolveIdentitiesRequestSchema: v.StrictObjectSchema<{
|
|
4134
|
+
readonly bundle: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
4135
|
+
readonly projectId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
4136
|
+
readonly entries: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
4137
|
+
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "an identity key is letters, digits, `-` and `_`">]>;
|
|
4138
|
+
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">]>;
|
|
4139
|
+
}, undefined>, undefined>, v.MinLengthAction<{
|
|
4140
|
+
key: string;
|
|
4141
|
+
path: string;
|
|
4142
|
+
}[], 1, undefined>, v.MaxLengthAction<{
|
|
4143
|
+
key: string;
|
|
4144
|
+
path: string;
|
|
4145
|
+
}[], 500, undefined>]>;
|
|
4146
|
+
}, undefined>;
|
|
4147
|
+
/**
|
|
4148
|
+
* What a publication carrying a key would do, decided by the server's one
|
|
4149
|
+
* transfer rule:
|
|
4150
|
+
*
|
|
4151
|
+
* - `mint`: no artifact in this workspace holds the key, so a new one takes it.
|
|
4152
|
+
* - `current`: this repo's own artifact at this path holds it; an ordinary update.
|
|
4153
|
+
* - `move`: this repo's own artifact holds it at another path (a folder rename).
|
|
4154
|
+
* - `transfer`: another repo's artifact holds it and its home retired it, so
|
|
4155
|
+
* it moves here with its versions, comments and grading.
|
|
4156
|
+
* - `refused`: the holder cannot move here now; `refusal` says why and what to do.
|
|
4157
|
+
*/
|
|
4158
|
+
export declare const IdentityClaimKindSchema: v.PicklistSchema<["mint", "current", "move", "transfer", "refused"], undefined>;
|
|
4159
|
+
/** What an artifact carries with it, for a preview to name before a yes. */
|
|
4160
|
+
export declare const IdentityHistorySchema: v.ObjectSchema<{
|
|
4161
|
+
readonly artifactId: v.StringSchema<undefined>;
|
|
4162
|
+
/** Comment threads not yet resolved. */
|
|
4163
|
+
readonly openComments: v.NumberSchema<undefined>;
|
|
4164
|
+
/** Grading verdicts recorded against it. */
|
|
4165
|
+
readonly verdicts: v.NumberSchema<undefined>;
|
|
4166
|
+
}, undefined>;
|
|
4167
|
+
export declare const IdentityResolutionSchema: v.ObjectSchema<{
|
|
4168
|
+
readonly key: v.StringSchema<undefined>;
|
|
4169
|
+
readonly path: v.StringSchema<undefined>;
|
|
4170
|
+
readonly claim: v.PicklistSchema<["mint", "current", "move", "transfer", "refused"], undefined>;
|
|
4171
|
+
/** The sentence for a `refused` claim, written for whoever published. */
|
|
4172
|
+
readonly refusal: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4173
|
+
/**
|
|
4174
|
+
* The artifact holding the key. Absent for `mint`, and for a refusal that
|
|
4175
|
+
* may not describe it (a holder outside the caller's grants).
|
|
4176
|
+
*/
|
|
4177
|
+
readonly holder: v.OptionalSchema<v.ObjectSchema<{
|
|
4178
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
4179
|
+
/** The repo that publishes it, or null for one no repo owns. */
|
|
4180
|
+
readonly sourceProjectId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
4181
|
+
/** Slugs of the bundles holding it, which a transfer leaves when another repo homes them. */
|
|
4182
|
+
readonly bundles: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
4183
|
+
readonly artifactId: v.StringSchema<undefined>;
|
|
4184
|
+
/** Comment threads not yet resolved. */
|
|
4185
|
+
readonly openComments: v.NumberSchema<undefined>;
|
|
4186
|
+
/** Grading verdicts recorded against it. */
|
|
4187
|
+
readonly verdicts: v.NumberSchema<undefined>;
|
|
4188
|
+
}, undefined>, undefined>;
|
|
4189
|
+
/**
|
|
4190
|
+
* A different artifact this repo already has at `path`, which a move or a
|
|
4191
|
+
* transfer would supersede: switched off and stripped of its path, keeping
|
|
4192
|
+
* its own history.
|
|
4193
|
+
*/
|
|
4194
|
+
readonly supersedes: v.OptionalSchema<v.ObjectSchema<{
|
|
4195
|
+
readonly artifactId: v.StringSchema<undefined>;
|
|
4196
|
+
/** Comment threads not yet resolved. */
|
|
4197
|
+
readonly openComments: v.NumberSchema<undefined>;
|
|
4198
|
+
/** Grading verdicts recorded against it. */
|
|
4199
|
+
readonly verdicts: v.NumberSchema<undefined>;
|
|
4200
|
+
}, undefined>, undefined>;
|
|
4201
|
+
}, undefined>;
|
|
4202
|
+
export declare const ResolveIdentitiesResponseSchema: v.ObjectSchema<{
|
|
4203
|
+
readonly resolutions: v.ArraySchema<v.ObjectSchema<{
|
|
4204
|
+
readonly key: v.StringSchema<undefined>;
|
|
4205
|
+
readonly path: v.StringSchema<undefined>;
|
|
4206
|
+
readonly claim: v.PicklistSchema<["mint", "current", "move", "transfer", "refused"], undefined>;
|
|
4207
|
+
/** The sentence for a `refused` claim, written for whoever published. */
|
|
4208
|
+
readonly refusal: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4209
|
+
/**
|
|
4210
|
+
* The artifact holding the key. Absent for `mint`, and for a refusal that
|
|
4211
|
+
* may not describe it (a holder outside the caller's grants).
|
|
4212
|
+
*/
|
|
4213
|
+
readonly holder: v.OptionalSchema<v.ObjectSchema<{
|
|
4214
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
4215
|
+
/** The repo that publishes it, or null for one no repo owns. */
|
|
4216
|
+
readonly sourceProjectId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
4217
|
+
/** Slugs of the bundles holding it, which a transfer leaves when another repo homes them. */
|
|
4218
|
+
readonly bundles: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
4219
|
+
readonly artifactId: v.StringSchema<undefined>;
|
|
4220
|
+
/** Comment threads not yet resolved. */
|
|
4221
|
+
readonly openComments: v.NumberSchema<undefined>;
|
|
4222
|
+
/** Grading verdicts recorded against it. */
|
|
4223
|
+
readonly verdicts: v.NumberSchema<undefined>;
|
|
4224
|
+
}, undefined>, undefined>;
|
|
4225
|
+
/**
|
|
4226
|
+
* A different artifact this repo already has at `path`, which a move or a
|
|
4227
|
+
* transfer would supersede: switched off and stripped of its path, keeping
|
|
4228
|
+
* its own history.
|
|
4229
|
+
*/
|
|
4230
|
+
readonly supersedes: v.OptionalSchema<v.ObjectSchema<{
|
|
4231
|
+
readonly artifactId: v.StringSchema<undefined>;
|
|
4232
|
+
/** Comment threads not yet resolved. */
|
|
4233
|
+
readonly openComments: v.NumberSchema<undefined>;
|
|
4234
|
+
/** Grading verdicts recorded against it. */
|
|
4235
|
+
readonly verdicts: v.NumberSchema<undefined>;
|
|
4236
|
+
}, undefined>, undefined>;
|
|
4237
|
+
}, undefined>, undefined>;
|
|
4238
|
+
}, undefined>;
|
|
4057
4239
|
export declare const CreateArtifactRequestSchema: v.StrictObjectSchema<{
|
|
4058
4240
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
4059
4241
|
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "content must be at most 262144 bytes">]>;
|
|
@@ -4146,12 +4328,16 @@ export declare const CreateArtifactRequestSchema: v.StrictObjectSchema<{
|
|
|
4146
4328
|
readonly members: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
4147
4329
|
readonly path: v.SchemaWithPipe<readonly [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">]>;
|
|
4148
4330
|
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "rawContent must be at most 524288 bytes">]>;
|
|
4331
|
+
/** As on {@link RawSkillMemberFileSchema}: absent is not `false`. */
|
|
4332
|
+
readonly executable: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
4149
4333
|
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
4150
4334
|
path: string;
|
|
4151
4335
|
content: string;
|
|
4336
|
+
executable?: boolean | undefined;
|
|
4152
4337
|
}[], 64, undefined>, v.CheckAction<{
|
|
4153
4338
|
path: string;
|
|
4154
4339
|
content: string;
|
|
4340
|
+
executable?: boolean | undefined;
|
|
4155
4341
|
}[], "member paths must be unique (case-insensitive)">]>, undefined>;
|
|
4156
4342
|
readonly skippedPaths: 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>;
|
|
4157
4343
|
/**
|
|
@@ -4166,10 +4352,19 @@ export declare const CreateArtifactRequestSchema: v.StrictObjectSchema<{
|
|
|
4166
4352
|
members?: {
|
|
4167
4353
|
path: string;
|
|
4168
4354
|
content: string;
|
|
4355
|
+
executable?: boolean | undefined;
|
|
4169
4356
|
}[] | undefined;
|
|
4170
4357
|
skippedPaths?: string[] | undefined;
|
|
4171
4358
|
aliases?: string[] | undefined;
|
|
4172
4359
|
}, "only a skill-md guide carries members">]>, undefined>;
|
|
4360
|
+
/**
|
|
4361
|
+
* The identity the published file carries ({@link IdentityKeySchema}). Only
|
|
4362
|
+
* beside `guide`. The server resolves it in the bundle's workspace and
|
|
4363
|
+
* applies its transfer rule: a fresh guide takes the key, this repo's own
|
|
4364
|
+
* holder moves to `path`, a holder another repo retired is transferred here,
|
|
4365
|
+
* and anything else is refused with 409 `identity-claim-refused`.
|
|
4366
|
+
*/
|
|
4367
|
+
readonly identityKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "an identity key is letters, digits, `-` and `_`">]>, undefined>;
|
|
4173
4368
|
}, undefined>;
|
|
4174
4369
|
/**
|
|
4175
4370
|
* Update an existing artifact: its content, its name, its description, or a
|
|
@@ -4276,12 +4471,16 @@ export declare const UpdateArtifactRequestFieldsSchema: v.StrictObjectSchema<{
|
|
|
4276
4471
|
readonly members: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
4277
4472
|
readonly path: v.SchemaWithPipe<readonly [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">]>;
|
|
4278
4473
|
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "rawContent must be at most 524288 bytes">]>;
|
|
4474
|
+
/** As on {@link RawSkillMemberFileSchema}: absent is not `false`. */
|
|
4475
|
+
readonly executable: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
4279
4476
|
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
4280
4477
|
path: string;
|
|
4281
4478
|
content: string;
|
|
4479
|
+
executable?: boolean | undefined;
|
|
4282
4480
|
}[], 64, undefined>, v.CheckAction<{
|
|
4283
4481
|
path: string;
|
|
4284
4482
|
content: string;
|
|
4483
|
+
executable?: boolean | undefined;
|
|
4285
4484
|
}[], "member paths must be unique (case-insensitive)">]>, undefined>;
|
|
4286
4485
|
readonly skippedPaths: 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>;
|
|
4287
4486
|
/**
|
|
@@ -4296,6 +4495,7 @@ export declare const UpdateArtifactRequestFieldsSchema: v.StrictObjectSchema<{
|
|
|
4296
4495
|
members?: {
|
|
4297
4496
|
path: string;
|
|
4298
4497
|
content: string;
|
|
4498
|
+
executable?: boolean | undefined;
|
|
4299
4499
|
}[] | undefined;
|
|
4300
4500
|
skippedPaths?: string[] | undefined;
|
|
4301
4501
|
aliases?: string[] | undefined;
|
|
@@ -4404,12 +4604,16 @@ export declare const UpdateArtifactRequestSchema: v.SchemaWithPipe<readonly [v.S
|
|
|
4404
4604
|
readonly members: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
4405
4605
|
readonly path: v.SchemaWithPipe<readonly [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">]>;
|
|
4406
4606
|
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "rawContent must be at most 524288 bytes">]>;
|
|
4607
|
+
/** As on {@link RawSkillMemberFileSchema}: absent is not `false`. */
|
|
4608
|
+
readonly executable: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
4407
4609
|
}, undefined>, undefined>, v.MaxLengthAction<{
|
|
4408
4610
|
path: string;
|
|
4409
4611
|
content: string;
|
|
4612
|
+
executable?: boolean | undefined;
|
|
4410
4613
|
}[], 64, undefined>, v.CheckAction<{
|
|
4411
4614
|
path: string;
|
|
4412
4615
|
content: string;
|
|
4616
|
+
executable?: boolean | undefined;
|
|
4413
4617
|
}[], "member paths must be unique (case-insensitive)">]>, undefined>;
|
|
4414
4618
|
readonly skippedPaths: 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>;
|
|
4415
4619
|
/**
|
|
@@ -4424,6 +4628,7 @@ export declare const UpdateArtifactRequestSchema: v.SchemaWithPipe<readonly [v.S
|
|
|
4424
4628
|
members?: {
|
|
4425
4629
|
path: string;
|
|
4426
4630
|
content: string;
|
|
4631
|
+
executable?: boolean | undefined;
|
|
4427
4632
|
}[] | undefined;
|
|
4428
4633
|
skippedPaths?: string[] | undefined;
|
|
4429
4634
|
aliases?: string[] | undefined;
|
|
@@ -4457,6 +4662,7 @@ export declare const UpdateArtifactRequestSchema: v.SchemaWithPipe<readonly [v.S
|
|
|
4457
4662
|
members?: {
|
|
4458
4663
|
path: string;
|
|
4459
4664
|
content: string;
|
|
4665
|
+
executable?: boolean | undefined;
|
|
4460
4666
|
}[] | undefined;
|
|
4461
4667
|
skippedPaths?: string[] | undefined;
|
|
4462
4668
|
aliases?: string[] | undefined;
|
|
@@ -4769,6 +4975,29 @@ export declare const ReadArtifactResponseSchema: v.ObjectSchema<{
|
|
|
4769
4975
|
readonly note: v.StringSchema<undefined>;
|
|
4770
4976
|
}, undefined>, undefined>, undefined>;
|
|
4771
4977
|
}, undefined>;
|
|
4978
|
+
/**
|
|
4979
|
+
* What a bundle-scoped credential is told about an artifact in the Trash: who
|
|
4980
|
+
* it is and when it was deleted, never its content or its versions. A read or a
|
|
4981
|
+
* history request answers it with a 410 carrying `code: 'artifact-deleted'`;
|
|
4982
|
+
* restoring the artifact makes it readable again.
|
|
4983
|
+
*/
|
|
4984
|
+
export declare const DeletedArtifactSchema: v.ObjectSchema<{
|
|
4985
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
4986
|
+
readonly name: v.StringSchema<undefined>;
|
|
4987
|
+
readonly state: v.LiteralSchema<"deleted", undefined>;
|
|
4988
|
+
readonly deletedAt: v.StringSchema<undefined>;
|
|
4989
|
+
}, undefined>;
|
|
4990
|
+
export declare const ArtifactDeletedRefusalSchema: v.ObjectSchema<{
|
|
4991
|
+
readonly error: v.StringSchema<undefined>;
|
|
4992
|
+
readonly code: v.LiteralSchema<"artifact-deleted", undefined>;
|
|
4993
|
+
readonly artifact: v.ObjectSchema<{
|
|
4994
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
4995
|
+
readonly name: v.StringSchema<undefined>;
|
|
4996
|
+
readonly state: v.LiteralSchema<"deleted", undefined>;
|
|
4997
|
+
readonly deletedAt: v.StringSchema<undefined>;
|
|
4998
|
+
}, undefined>;
|
|
4999
|
+
readonly requestId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
5000
|
+
}, undefined>;
|
|
4772
5001
|
export declare const CreateArtifactResponseSchema: v.ObjectSchema<{
|
|
4773
5002
|
readonly artifact: v.ObjectSchema<{
|
|
4774
5003
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
@@ -6532,6 +6761,14 @@ export declare const DashboardSyncActionSchema: v.ObjectSchema<{
|
|
|
6532
6761
|
readonly actionType: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 128, undefined>]>;
|
|
6533
6762
|
readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>;
|
|
6534
6763
|
readonly filePaths: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 1024, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
6764
|
+
/**
|
|
6765
|
+
* The artifact this read touched, when the file it read is one Mossbear placed
|
|
6766
|
+
* on the machine (resolved by the CLI; see `ActionEntrySchema.itemIds`). Only
|
|
6767
|
+
* read actions carry it. Not checked against the artifact on the server:
|
|
6768
|
+
* every count it feeds is scoped to the uploader, so a wrong id can only
|
|
6769
|
+
* change the uploader's own number.
|
|
6770
|
+
*/
|
|
6771
|
+
readonly itemId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "id must not contain whitespace or control characters">]>]>, undefined>;
|
|
6535
6772
|
readonly verdict: v.OptionalSchema<v.PicklistSchema<["aligned", "unguided", "misaligned"], undefined>, undefined>;
|
|
6536
6773
|
readonly gradingTier: v.OptionalSchema<v.PicklistSchema<["pattern_match", "cached", "llm", "batch", "unguided"], undefined>, undefined>;
|
|
6537
6774
|
readonly guideIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
@@ -6799,6 +7036,14 @@ export declare const DashboardSyncRequestSchema: v.ObjectSchema<{
|
|
|
6799
7036
|
readonly actionType: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 128, undefined>]>;
|
|
6800
7037
|
readonly summary: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>;
|
|
6801
7038
|
readonly filePaths: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 1024, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
7039
|
+
/**
|
|
7040
|
+
* The artifact this read touched, when the file it read is one Mossbear placed
|
|
7041
|
+
* on the machine (resolved by the CLI; see `ActionEntrySchema.itemIds`). Only
|
|
7042
|
+
* read actions carry it. Not checked against the artifact on the server:
|
|
7043
|
+
* every count it feeds is scoped to the uploader, so a wrong id can only
|
|
7044
|
+
* change the uploader's own number.
|
|
7045
|
+
*/
|
|
7046
|
+
readonly itemId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "id must not contain whitespace or control characters">]>]>, undefined>;
|
|
6802
7047
|
readonly verdict: v.OptionalSchema<v.PicklistSchema<["aligned", "unguided", "misaligned"], undefined>, undefined>;
|
|
6803
7048
|
readonly gradingTier: v.OptionalSchema<v.PicklistSchema<["pattern_match", "cached", "llm", "batch", "unguided"], undefined>, undefined>;
|
|
6804
7049
|
readonly guideIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
@@ -6858,6 +7103,7 @@ export declare const DashboardSyncRequestSchema: v.ObjectSchema<{
|
|
|
6858
7103
|
actionType: string;
|
|
6859
7104
|
summary: string;
|
|
6860
7105
|
filePaths?: string[] | undefined;
|
|
7106
|
+
itemId?: string | undefined;
|
|
6861
7107
|
verdict?: "aligned" | "unguided" | "misaligned" | undefined;
|
|
6862
7108
|
gradingTier?: "unguided" | "pattern_match" | "cached" | "llm" | "batch" | undefined;
|
|
6863
7109
|
guideIds?: string[] | undefined;
|
|
@@ -7174,6 +7420,15 @@ export declare const ActionEntrySchema: v.ObjectSchema<{
|
|
|
7174
7420
|
* action a read tool would have produced.
|
|
7175
7421
|
*/
|
|
7176
7422
|
readonly memberReads: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
7423
|
+
/**
|
|
7424
|
+
* The artifact placed at each path this entry read, keyed by the path as the
|
|
7425
|
+
* entry records it (`filePath`, or one of `memberReads`). Resolved by the hook
|
|
7426
|
+
* against this machine's placement records, the only place a path and the id
|
|
7427
|
+
* of the artifact Mossbear put there are both known. A path with no placement
|
|
7428
|
+
* is absent. Local-to-upload: each read's id rides its own action as
|
|
7429
|
+
* `itemId`.
|
|
7430
|
+
*/
|
|
7431
|
+
readonly itemIds: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
|
|
7177
7432
|
/**
|
|
7178
7433
|
* Where this session's transcript lives on *this machine*, as the agent
|
|
7179
7434
|
* itself reported it.
|
|
@@ -8869,7 +9124,7 @@ export declare const SearchRequestObjectSchema: v.ObjectSchema<{
|
|
|
8869
9124
|
*/
|
|
8870
9125
|
readonly q: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 2, "q must be at least 2 characters">, v.MaxLengthAction<string, 200, "q must be at most 200 characters">, v.CheckAction<string, "q must not contain control characters">, v.CheckAction<string, "q must contain at least 2 characters besides * and ?">]>, undefined>;
|
|
8871
9126
|
/** Which corpora to search; every one when absent. */
|
|
8872
|
-
readonly corpora: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["guides", "verdicts", "content", "comments", "turns", "sessions"], undefined>, undefined>, v.MinLengthAction<("content" | "guides" | "comments" | "sessions" | "
|
|
9127
|
+
readonly corpora: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["guides", "verdicts", "content", "comments", "turns", "sessions"], undefined>, undefined>, v.MinLengthAction<("content" | "guides" | "comments" | "sessions" | "verdicts" | "turns")[], 1, undefined>]>, undefined>;
|
|
8873
9128
|
/**
|
|
8874
9129
|
* The bundles a scoped caller may read content from — `mossbear mcp
|
|
8875
9130
|
* --bundles` resolved to ids by the CLI, since the server never sees that
|
|
@@ -8939,7 +9194,7 @@ export declare const SearchRequestSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
8939
9194
|
*/
|
|
8940
9195
|
readonly q: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 2, "q must be at least 2 characters">, v.MaxLengthAction<string, 200, "q must be at most 200 characters">, v.CheckAction<string, "q must not contain control characters">, v.CheckAction<string, "q must contain at least 2 characters besides * and ?">]>, undefined>;
|
|
8941
9196
|
/** Which corpora to search; every one when absent. */
|
|
8942
|
-
readonly corpora: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["guides", "verdicts", "content", "comments", "turns", "sessions"], undefined>, undefined>, v.MinLengthAction<("content" | "guides" | "comments" | "sessions" | "
|
|
9197
|
+
readonly corpora: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["guides", "verdicts", "content", "comments", "turns", "sessions"], undefined>, undefined>, v.MinLengthAction<("content" | "guides" | "comments" | "sessions" | "verdicts" | "turns")[], 1, undefined>]>, undefined>;
|
|
8943
9198
|
/**
|
|
8944
9199
|
* The bundles a scoped caller may read content from — `mossbear mcp
|
|
8945
9200
|
* --bundles` resolved to ids by the CLI, since the server never sees that
|
|
@@ -8999,7 +9254,7 @@ export declare const SearchRequestSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
8999
9254
|
readonly sessionComments: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
9000
9255
|
}, undefined>, v.BaseValidation<{
|
|
9001
9256
|
q?: string | undefined;
|
|
9002
|
-
corpora?: ("content" | "guides" | "comments" | "sessions" | "
|
|
9257
|
+
corpora?: ("content" | "guides" | "comments" | "sessions" | "verdicts" | "turns")[] | undefined;
|
|
9003
9258
|
bundleIds?: string[] | undefined;
|
|
9004
9259
|
limit?: number | undefined;
|
|
9005
9260
|
detail?: "excerpt" | "section" | undefined;
|
|
@@ -9016,7 +9271,7 @@ export declare const SearchRequestSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
9016
9271
|
sessionComments?: boolean | undefined;
|
|
9017
9272
|
}, {
|
|
9018
9273
|
q?: string | undefined;
|
|
9019
|
-
corpora?: ("content" | "guides" | "comments" | "sessions" | "
|
|
9274
|
+
corpora?: ("content" | "guides" | "comments" | "sessions" | "verdicts" | "turns")[] | undefined;
|
|
9020
9275
|
bundleIds?: string[] | undefined;
|
|
9021
9276
|
limit?: number | undefined;
|
|
9022
9277
|
detail?: "excerpt" | "section" | undefined;
|
|
@@ -9033,7 +9288,7 @@ export declare const SearchRequestSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
9033
9288
|
sessionComments?: boolean | undefined;
|
|
9034
9289
|
}, v.CheckIssue<{
|
|
9035
9290
|
q?: string | undefined;
|
|
9036
|
-
corpora?: ("content" | "guides" | "comments" | "sessions" | "
|
|
9291
|
+
corpora?: ("content" | "guides" | "comments" | "sessions" | "verdicts" | "turns")[] | undefined;
|
|
9037
9292
|
bundleIds?: string[] | undefined;
|
|
9038
9293
|
limit?: number | undefined;
|
|
9039
9294
|
detail?: "excerpt" | "section" | undefined;
|
|
@@ -9050,7 +9305,7 @@ export declare const SearchRequestSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
9050
9305
|
sessionComments?: boolean | undefined;
|
|
9051
9306
|
}>>, v.BaseValidation<{
|
|
9052
9307
|
q?: string | undefined;
|
|
9053
|
-
corpora?: ("content" | "guides" | "comments" | "sessions" | "
|
|
9308
|
+
corpora?: ("content" | "guides" | "comments" | "sessions" | "verdicts" | "turns")[] | undefined;
|
|
9054
9309
|
bundleIds?: string[] | undefined;
|
|
9055
9310
|
limit?: number | undefined;
|
|
9056
9311
|
detail?: "excerpt" | "section" | undefined;
|
|
@@ -9067,7 +9322,7 @@ export declare const SearchRequestSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
9067
9322
|
sessionComments?: boolean | undefined;
|
|
9068
9323
|
}, {
|
|
9069
9324
|
q?: string | undefined;
|
|
9070
|
-
corpora?: ("content" | "guides" | "comments" | "sessions" | "
|
|
9325
|
+
corpora?: ("content" | "guides" | "comments" | "sessions" | "verdicts" | "turns")[] | undefined;
|
|
9071
9326
|
bundleIds?: string[] | undefined;
|
|
9072
9327
|
limit?: number | undefined;
|
|
9073
9328
|
detail?: "excerpt" | "section" | undefined;
|
|
@@ -9084,7 +9339,7 @@ export declare const SearchRequestSchema: v.SchemaWithPipe<readonly [v.ObjectSch
|
|
|
9084
9339
|
sessionComments?: boolean | undefined;
|
|
9085
9340
|
}, v.CheckIssue<{
|
|
9086
9341
|
q?: string | undefined;
|
|
9087
|
-
corpora?: ("content" | "guides" | "comments" | "sessions" | "
|
|
9342
|
+
corpora?: ("content" | "guides" | "comments" | "sessions" | "verdicts" | "turns")[] | undefined;
|
|
9088
9343
|
bundleIds?: string[] | undefined;
|
|
9089
9344
|
limit?: number | undefined;
|
|
9090
9345
|
detail?: "excerpt" | "section" | undefined;
|
|
@@ -9863,6 +10118,7 @@ export declare function parseRawGuideFilePayload(data: unknown): {
|
|
|
9863
10118
|
rawContent: string;
|
|
9864
10119
|
lastModified: number;
|
|
9865
10120
|
content_hash: string;
|
|
10121
|
+
executable?: boolean | undefined;
|
|
9866
10122
|
}[] | undefined;
|
|
9867
10123
|
expectedVersion?: number | undefined;
|
|
9868
10124
|
skippedMemberPaths?: string[] | undefined;
|
|
@@ -10004,6 +10260,7 @@ export declare function parseContextItemsResponse(data: unknown): {
|
|
|
10004
10260
|
origin?: string | null | undefined;
|
|
10005
10261
|
version?: number | undefined;
|
|
10006
10262
|
guideId?: string | null | undefined;
|
|
10263
|
+
executable?: boolean | undefined;
|
|
10007
10264
|
root?: "project" | "global" | null | undefined;
|
|
10008
10265
|
path?: string | null | undefined;
|
|
10009
10266
|
projectId?: string | null | undefined;
|
|
@@ -10058,6 +10315,7 @@ export declare function parseContextItemsResponse(data: unknown): {
|
|
|
10058
10315
|
endMarker: string;
|
|
10059
10316
|
note: string;
|
|
10060
10317
|
} | null | undefined;
|
|
10318
|
+
next?: string | null | undefined;
|
|
10061
10319
|
};
|
|
10062
10320
|
export declare function parseBundleArtifactsResponse(data: unknown): {
|
|
10063
10321
|
artifacts: {
|
|
@@ -10081,6 +10339,7 @@ export declare function parseBundleArtifactsResponse(data: unknown): {
|
|
|
10081
10339
|
origin?: string | null | undefined;
|
|
10082
10340
|
version?: number | undefined;
|
|
10083
10341
|
guideId?: string | null | undefined;
|
|
10342
|
+
executable?: boolean | undefined;
|
|
10084
10343
|
root?: "project" | "global" | null | undefined;
|
|
10085
10344
|
path?: string | null | undefined;
|
|
10086
10345
|
projectId?: string | null | undefined;
|
|
@@ -10135,6 +10394,7 @@ export declare function parseBundleArtifactsResponse(data: unknown): {
|
|
|
10135
10394
|
endMarker: string;
|
|
10136
10395
|
note: string;
|
|
10137
10396
|
} | null | undefined;
|
|
10397
|
+
next?: string | null | undefined;
|
|
10138
10398
|
};
|
|
10139
10399
|
export declare function parseCaptureRequest(data: unknown): {
|
|
10140
10400
|
id?: string | undefined;
|
|
@@ -10188,6 +10448,7 @@ export declare function parseDashboardSyncRequest(data: unknown): {
|
|
|
10188
10448
|
actionType: string;
|
|
10189
10449
|
summary: string;
|
|
10190
10450
|
filePaths?: string[] | undefined;
|
|
10451
|
+
itemId?: string | undefined;
|
|
10191
10452
|
verdict?: "aligned" | "unguided" | "misaligned" | undefined;
|
|
10192
10453
|
gradingTier?: "unguided" | "pattern_match" | "cached" | "llm" | "batch" | undefined;
|
|
10193
10454
|
guideIds?: string[] | undefined;
|
|
@@ -10292,6 +10553,9 @@ export declare function parseActionEntry(data: unknown): {
|
|
|
10292
10553
|
path?: string | undefined;
|
|
10293
10554
|
}[] | undefined;
|
|
10294
10555
|
memberReads?: string[] | undefined;
|
|
10556
|
+
itemIds?: {
|
|
10557
|
+
[x: string]: string;
|
|
10558
|
+
} | undefined;
|
|
10295
10559
|
transcriptPath?: string | undefined;
|
|
10296
10560
|
repoId?: string | undefined;
|
|
10297
10561
|
projectId?: string | undefined;
|