@company-semantics/contracts 0.129.1 → 0.131.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "0.129.1",
3
+ "version": "0.131.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,15 +15,19 @@ import type { CheckResult, Soc2ControlArea } from './types';
15
15
  // =============================================================================
16
16
 
17
17
  /**
18
- * Three-tier size limit for a file role.
19
- * - target: Ideal maximum (for new code)
20
- * - warning: Soft limit (CI warns but passes)
21
- * - hard: Hard limit (CI fails)
18
+ * Role limit for the file-size guard, expressed as fractions of the repo's
19
+ * file-size envelope (envelope = universalLimit × (1 + overrideMaxOveragePct)).
20
+ *
21
+ * Only warnings are role-specific; the envelope is a single hard authority
22
+ * that applies to every file regardless of role.
23
+ *
24
+ * @field warnPct — Warning threshold as a fraction of envelope. Must be in (0, 1).
25
+ * @field targetPct — Optional ideal ceiling for new code in this role, as a
26
+ * fraction of envelope. Informational only — not enforced.
22
27
  */
23
28
  export interface RoleLimit {
24
- target: number;
25
- warning: number;
26
- hard: number;
29
+ warnPct: number;
30
+ targetPct?: number;
27
31
  }
28
32
 
29
33
  // =============================================================================
@@ -74,24 +78,6 @@ export interface GuardConfig {
74
78
  */
75
79
  universalWarningThreshold: number;
76
80
 
77
- /**
78
- * Export complexity thresholds.
79
- * Files with more exports than these limits are flagged.
80
- */
81
- exportLimits?: {
82
- warning: number;
83
- error: number;
84
- };
85
-
86
- /**
87
- * Import fanout thresholds.
88
- * Files with more imports than these limits are flagged.
89
- */
90
- importLimits?: {
91
- warning: number;
92
- error: number;
93
- };
94
-
95
81
  /**
96
82
  * Domain directories to check for READMEs.
97
83
  * Example: ['src/domain', 'src/providers', 'src/interfaces']
package/src/index.ts CHANGED
@@ -301,7 +301,6 @@ export type {
301
301
  TeamSyncMode,
302
302
  Team,
303
303
  TeamMember,
304
- TeamDetail,
305
304
  // Sharing and ACL types (PRD-00306)
306
305
  AccessLevel,
307
306
  SharePolicy,
package/src/org/index.ts CHANGED
@@ -110,7 +110,6 @@ export type {
110
110
  TeamScope,
111
111
  Team,
112
112
  TeamMember,
113
- TeamDetail,
114
113
  } from './teams';
115
114
 
116
115
  // Department types (org hierarchy rationalization)
package/src/org/teams.ts CHANGED
@@ -43,18 +43,3 @@ export interface TeamMember {
43
43
  readonly role: TeamMembershipRole;
44
44
  readonly joinedAt: string;
45
45
  }
46
-
47
- /**
48
- * Full team detail view including members.
49
- * Returned by GET /api/teams/:teamId.
50
- *
51
- * TODO: Potentially redundant with TeamResponse (z.infer<typeof TeamResponseSchema>)
52
- * from src/content/schemas.ts now that TeamResponseSchema is derived from
53
- * TeamSummarySchema.extend(). Follow-up cleanup: check consumers and consider
54
- * collapsing to the schema-derived type. Not done in PRD-00458 to avoid
55
- * scope creep into untracked consumers.
56
- */
57
- export interface TeamDetail extends Team {
58
- readonly members: ReadonlyArray<TeamMember>;
59
- readonly syncMode: TeamSyncMode;
60
- }