@ontrails/warden 1.0.0-beta.45 → 1.0.0-beta.46

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.
@@ -62,6 +62,7 @@ export const governedVocabularySymbolRenameSchema = z.object({
62
62
  from: z.string().min(1),
63
63
  match: z.enum(governedVocabularySymbolRenameMatchModes).default('exact'),
64
64
  reviewDeclarationTypes: z.array(z.string().min(1)).default([]),
65
+ safety: z.enum(['safe', 'review']).optional(),
65
66
  to: z.string().min(1),
66
67
  });
67
68
 
@@ -829,6 +830,9 @@ export const governedVocabularyTransitions =
829
830
  'cliProjection',
830
831
  'cliProjectionSchema',
831
832
  'collectLibraryProjection',
833
+ 'collectionExtensionProjectionForFileRenames',
834
+ 'extensionProjection',
835
+ 'filterProjectedTargetExtensions',
832
836
  'projectActivationEdge',
833
837
  'projectActivationSource',
834
838
  'projectActivationSourceDeclaration',
@@ -860,6 +864,11 @@ export const governedVocabularyTransitions =
860
864
  'projectTrailVersions',
861
865
  'projectVersionDetours',
862
866
  'projectVersionRuntimeRefs',
867
+ 'projectVocabularyText',
868
+ 'projected',
869
+ 'projectedEvidence',
870
+ 'projectedFileInScopeCount',
871
+ 'projectedTargetPaths',
863
872
  'SchemaProjector',
864
873
  'deriveShippedSurfaceProjectionInventory',
865
874
  'deriveTrailCliCommandProjection',
@@ -1190,6 +1199,15 @@ export const governedVocabularyTransitions =
1190
1199
  from: 'collectLibraryProjection',
1191
1200
  to: 'deriveTopoGraphLibrary',
1192
1201
  },
1202
+ {
1203
+ from: 'collectionExtensionProjectionForFileRenames',
1204
+ to: 'deriveCollectionExtensionsForFileRenames',
1205
+ },
1206
+ { from: 'extensionProjection', to: 'derivedExtensions' },
1207
+ {
1208
+ from: 'filterProjectedTargetExtensions',
1209
+ to: 'filterDerivedTargetExtensions',
1210
+ },
1193
1211
  { from: 'projectActivationEdge', to: 'deriveActivationEdge' },
1194
1212
  { from: 'projectActivationSource', to: 'deriveActivationSource' },
1195
1213
  {
@@ -1233,6 +1251,18 @@ export const governedVocabularyTransitions =
1233
1251
  from: 'projectVersionRuntimeRefs',
1234
1252
  to: 'deriveVersionRuntimeRefs',
1235
1253
  },
1254
+ { from: 'projectVocabularyText', to: 'deriveVocabularyText' },
1255
+ {
1256
+ from: 'projected',
1257
+ safety: 'review',
1258
+ to: 'derived',
1259
+ },
1260
+ { from: 'projectedEvidence', to: 'derivedEvidence' },
1261
+ {
1262
+ from: 'projectedFileInScopeCount',
1263
+ to: 'derivedFileInScopeCount',
1264
+ },
1265
+ { from: 'projectedTargetPaths', to: 'derivedTargetPaths' },
1236
1266
  { from: 'SchemaProjector', to: 'SchemaDeriver' },
1237
1267
  {
1238
1268
  from: 'deriveShippedSurfaceProjectionInventory',
@@ -386,22 +386,25 @@ export interface ProjectContext {
386
386
  export interface GovernedVocabularyHistoryEvidence {
387
387
  readonly caseSensitive: boolean;
388
388
  readonly id: string;
389
- readonly latestFormObservations: readonly GovernedVocabularyHistoryFormObservation[];
389
+ readonly latestFormJudgments: readonly GovernedVocabularyHistoryFormJudgment[];
390
390
  readonly path: string;
391
391
  readonly provenance?: GovernedVocabularyHistoryProvenance;
392
392
  readonly runCount: number;
393
393
  readonly transitionId: string;
394
394
  }
395
395
 
396
- /** One vocabulary-form observation preserved in committed Regrade history. */
397
- export interface GovernedVocabularyHistoryFormObservation {
396
+ /** One compact vocabulary-form judgment preserved in committed Regrade history. */
397
+ export interface GovernedVocabularyHistoryFormJudgment {
398
398
  readonly disposition: string;
399
399
  readonly form: string;
400
- readonly line: number;
401
- readonly path: string;
402
- readonly reason: string;
403
- readonly scopeTier?: 'in-scope' | 'policy-classified' | undefined;
404
- readonly verdict: 'applied' | 'deferred' | 'modified' | 'skipped';
400
+ readonly reason?: string | undefined;
401
+ readonly representative?:
402
+ | {
403
+ readonly line: number;
404
+ readonly path: string;
405
+ }
406
+ | undefined;
407
+ readonly target?: string | undefined;
405
408
  }
406
409
 
407
410
  export interface GovernedVocabularyHistoryIssue {
@@ -119,21 +119,24 @@ export const authoredMcpSurfaceBindingSetSchema = z.object({
119
119
  .describe('Trail ids registered in the owning app topo'),
120
120
  });
121
121
 
122
- const governedVocabularyHistoryObservationSchema = z.object({
122
+ const governedVocabularyHistoryFormJudgmentSchema = z.object({
123
123
  disposition: z.string(),
124
124
  form: z.string(),
125
- line: z.number().int().positive(),
126
- path: z.string(),
127
- reason: z.string(),
128
- scopeTier: z.enum(['in-scope', 'policy-classified']).optional(),
129
- verdict: z.enum(['applied', 'deferred', 'modified', 'skipped']),
125
+ reason: z.string().optional(),
126
+ representative: z
127
+ .object({
128
+ line: z.number().int().positive(),
129
+ path: z.string(),
130
+ })
131
+ .optional(),
132
+ target: z.string().optional(),
130
133
  });
131
134
 
132
135
  const governedVocabularyHistoryEvidenceSchema = z.object({
133
136
  caseSensitive: z.boolean(),
134
137
  id: z.string(),
135
- latestFormObservations: z
136
- .array(governedVocabularyHistoryObservationSchema)
138
+ latestFormJudgments: z
139
+ .array(governedVocabularyHistoryFormJudgmentSchema)
137
140
  .readonly(),
138
141
  path: z.string(),
139
142
  runCount: z.number().int().nonnegative(),