@company-semantics/contracts 87.0.0 → 88.0.1
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 +7 -3
- package/src/guards/README.md +0 -1
- package/src/guards/config.ts +0 -9
- package/src/guards/evolution-config.ts +1 -18
- package/src/guards/index.ts +0 -1
- package/src/index.ts +15 -1277
- package/src/mcp/README.md +12 -12
- package/src/mcp/capability-graph.ts +1 -1
- package/src/mcp/index.ts +16 -244
- package/src/mcp/tool-descriptor.ts +244 -0
- package/src/org/authority-schemas.ts +242 -0
- package/src/org/index.ts +26 -249
- package/src/org/invite-schemas.ts +596 -0
- package/src/org/org-governance-schemas.ts +198 -0
- package/src/org/org-unit-api-schemas.ts +226 -0
- package/src/org/org-unit-schemas.ts +223 -0
- package/src/org/ownership-transfer-types.ts +51 -0
- package/src/org/schemas.ts +18 -1658
- package/src/org/sso-stepper-types.ts +81 -0
- package/src/org/types.ts +15 -115
- package/src/org/workspace-admin-schemas.ts +240 -0
- package/src/root-exports/README.md +91 -0
- package/src/root-exports/agent-runtime.ts +213 -0
- package/src/root-exports/collaboration.ts +247 -0
- package/src/root-exports/delivery.ts +218 -0
- package/src/root-exports/org-structure.ts +214 -0
- package/src/root-exports/org-workspace.ts +254 -0
- package/src/root-exports/platform.ts +205 -0
- package/src/system/README.md +1 -1
- package/src/system/capabilities.ts +1 -1
- package/src/system/diagram.ts +1 -1
- package/src/system/feature-status.ts +4 -0
- package/src/system/index.ts +3 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@company-semantics/contracts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "88.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -94,6 +94,8 @@
|
|
|
94
94
|
"lint:md": "markdownlint-cli2 '**/*.md' '#node_modules' '#.ralph/worktrees' '#.claude/worktrees'",
|
|
95
95
|
"format": "prettier --write .",
|
|
96
96
|
"format:check": "prettier --check .",
|
|
97
|
+
"knip": "knip",
|
|
98
|
+
"depcruise": "depcruise src scripts tests __tests__",
|
|
97
99
|
"lint:json": "node -e \"JSON.parse(require('fs').readFileSync('package.json'))\"",
|
|
98
100
|
"prepare": "husky",
|
|
99
101
|
"guard:export": "npx tsx scripts/ci/export-guard.ts",
|
|
@@ -147,8 +149,10 @@
|
|
|
147
149
|
"@types/node": "^22.20.4",
|
|
148
150
|
"amphtml-validator": "^1.0.38",
|
|
149
151
|
"culori": "^4.0.2",
|
|
152
|
+
"dependency-cruiser": "18.4.0",
|
|
150
153
|
"eslint": "^10.11.0",
|
|
151
154
|
"husky": "^9.1.7",
|
|
155
|
+
"knip": "6.38.0",
|
|
152
156
|
"lint-staged": "^17.6.0",
|
|
153
157
|
"markdownlint-cli2": "^0.23.3",
|
|
154
158
|
"openapi-typescript": "^7.13.0",
|
|
@@ -162,7 +166,7 @@
|
|
|
162
166
|
},
|
|
163
167
|
"pnpm": {
|
|
164
168
|
"overrides": {
|
|
165
|
-
"brace-expansion@<5.0.
|
|
169
|
+
"brace-expansion@<5.0.11": ">=5.0.11",
|
|
166
170
|
"smol-toml@<1.7.1": ">=1.7.1",
|
|
167
171
|
"minimatch@<10.2.3": ">=10.2.3",
|
|
168
172
|
"nanoid@<3.3.18": ">=3.3.18",
|
|
@@ -182,5 +186,5 @@
|
|
|
182
186
|
"*.md": "markdownlint-cli2",
|
|
183
187
|
"package.json": "node -e \"JSON.parse(require('fs').readFileSync('package.json'))\""
|
|
184
188
|
},
|
|
185
|
-
"securityRequirementsVersion": "
|
|
189
|
+
"securityRequirementsVersion": "bfd57aaebc7d47d195f06ba507ed3fb56da0faa9c40aca3c00f2e63dbd3b617b"
|
|
186
190
|
}
|
package/src/guards/README.md
CHANGED
|
@@ -26,7 +26,6 @@ This module exports **types only** — runtime helper functions live in the work
|
|
|
26
26
|
- `CheckResult` _(type)_ — Result from a single guard check.
|
|
27
27
|
- `ContractsConsumerBaseline` _(type)_ — Contracts consumer guard configuration.
|
|
28
28
|
- `ContractsFreshnessBaseline` _(type)_ — Contracts freshness baseline configuration.
|
|
29
|
-
- `CoverageBaseline` _(type)_ — Coverage baseline configuration.
|
|
30
29
|
- `DEFAULT_DOMAIN_SECTIONS` — Default README sections for domain directories.
|
|
31
30
|
- `DEFAULT_INFRA_SECTIONS` — Default README sections for infrastructure directories.
|
|
32
31
|
- `DEFAULT_SKIP_DIRECTORIES` — Default directories to skip when walking file trees.
|
package/src/guards/config.ts
CHANGED
|
@@ -12,7 +12,6 @@ import type { CheckResult } from "./types";
|
|
|
12
12
|
// The EvolutionBaselines interface below references these evolution baseline
|
|
13
13
|
// types, which now live in ./evolution-config.
|
|
14
14
|
import type {
|
|
15
|
-
CoverageBaseline,
|
|
16
15
|
FileClusterBaseline,
|
|
17
16
|
SubdirectoryAffinityBaseline,
|
|
18
17
|
} from "./evolution-config";
|
|
@@ -34,7 +33,6 @@ export type {
|
|
|
34
33
|
export type {
|
|
35
34
|
DomainAggregateBaseline,
|
|
36
35
|
AggregateEvolutionConfig,
|
|
37
|
-
CoverageBaseline,
|
|
38
36
|
FileClusterBaseline,
|
|
39
37
|
SubdirectoryAffinityBaseline,
|
|
40
38
|
} from "./evolution-config";
|
|
@@ -326,13 +324,6 @@ export interface EvolutionBaselines {
|
|
|
326
324
|
*/
|
|
327
325
|
contractsFreshness?: ContractsFreshnessBaseline;
|
|
328
326
|
|
|
329
|
-
/**
|
|
330
|
-
* Coverage drift check configuration.
|
|
331
|
-
* CI injects checkCoverageDrift based on this config.
|
|
332
|
-
* Errors when coverage drops below baseline (enforced).
|
|
333
|
-
*/
|
|
334
|
-
coverage?: CoverageBaseline;
|
|
335
|
-
|
|
336
327
|
/**
|
|
337
328
|
* File cluster detection configuration.
|
|
338
329
|
* CI injects checkFileClusters based on this config.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Evolution & Drift-Detection Guard Configuration Vocabulary
|
|
3
3
|
*
|
|
4
4
|
* Polymorphic configuration types for the evolution/drift guards: domain-level
|
|
5
|
-
* aggregate tracking plus the
|
|
5
|
+
* aggregate tracking plus the file-cluster and subdirectory-affinity
|
|
6
6
|
* baselines referenced by EvolutionBaselines.
|
|
7
7
|
*
|
|
8
8
|
* Extracted from ./config.ts as a cohesive sub-module (the evolution guard
|
|
@@ -65,23 +65,6 @@ export interface AggregateEvolutionConfig {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
// =============================================================================
|
|
69
|
-
// Coverage Baseline Types
|
|
70
|
-
// =============================================================================
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Coverage baseline configuration.
|
|
74
|
-
* Used by CI orchestrator to inject coverage drift guard.
|
|
75
|
-
*/
|
|
76
|
-
export interface CoverageBaseline {
|
|
77
|
-
/** Path to coverage-summary.json (default: 'coverage/coverage-summary.json') */
|
|
78
|
-
coverageFile?: string;
|
|
79
|
-
/** Baseline coverage percentage (lines) */
|
|
80
|
-
baseline: number;
|
|
81
|
-
/** Allowed drop threshold before error (default: 0 = any drop errors) */
|
|
82
|
-
dropThreshold?: number;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
68
|
/**
|
|
86
69
|
* File cluster detection configuration.
|
|
87
70
|
* Detects clusters of related files that could benefit from
|