@company-semantics/contracts 0.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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +32 -0
  3. package/index.ts +16 -0
  4. package/package.json +16 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 dasheidt
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # @company-semantics/contracts
2
+
3
+ Shared semantic vocabulary across Company Semantics codebases.
4
+
5
+ ## Scope
6
+
7
+ This package intentionally contains only minimal shared vocabulary,
8
+ not full domain models. Structural types live in individual codebases
9
+ until they are proven stable.
10
+
11
+ ## Usage
12
+
13
+ ```typescript
14
+ import type { IntentCategory, InsightConfidence } from '@company-semantics/contracts'
15
+ ```
16
+
17
+ ## What belongs here
18
+
19
+ - Shared enums / unions (vocabulary)
20
+ - Backend-aligned semantic categories
21
+
22
+ ## What does NOT belong here
23
+
24
+ - Structural interfaces (Insight, SemanticFingerprint)
25
+ - Frontend-only extensions
26
+ - Implementation details
27
+
28
+ ## Versioning
29
+
30
+ Follows semver:
31
+ - Additive vocabulary → minor bump
32
+ - Renaming or removal → major bump
package/index.ts ADDED
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @company-semantics/contracts
3
+ *
4
+ * Shared semantic vocabulary across Company Semantics codebases.
5
+ * Types only - no runtime code, no business logic.
6
+ *
7
+ * This package intentionally contains only minimal shared vocabulary,
8
+ * not full domain models. Structural types live in individual codebases
9
+ * until they are proven stable.
10
+ */
11
+
12
+ // Intent categories - the semantic "what kind of concern"
13
+ export type IntentCategory = 'safety' | 'privacy' | 'correctness' | 'cost'
14
+
15
+ // Confidence levels - shared vocabulary for certainty
16
+ export type InsightConfidence = 'low' | 'medium' | 'high'
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "@company-semantics/contracts",
3
+ "version": "0.0.1",
4
+ "private": false,
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./index.ts"
9
+ }
10
+ },
11
+ "types": "./index.ts",
12
+ "files": ["index.ts", "README.md"],
13
+ "publishConfig": {
14
+ "access": "public"
15
+ }
16
+ }