@company-semantics/contracts 0.31.0 → 0.31.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "0.31.0",
3
+ "version": "0.31.1",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,7 +11,7 @@
11
11
  // Kind Types
12
12
  // =============================================================================
13
13
 
14
- export type { ExecutionKind } from './kinds.js'
14
+ export type { ExecutionKind } from './kinds'
15
15
 
16
16
  // =============================================================================
17
17
  // Definition Types
@@ -22,7 +22,7 @@ export type {
22
22
  IconName,
23
23
  ExecutionDomain,
24
24
  ExecutionKindDefinition,
25
- } from './types.js'
25
+ } from './types'
26
26
 
27
27
  // =============================================================================
28
28
  // Registry
@@ -32,7 +32,7 @@ export {
32
32
  EXECUTION_KINDS,
33
33
  getExecutionKindDefinition,
34
34
  isValidExecutionKind,
35
- } from './registry.js'
35
+ } from './registry'
36
36
 
37
37
  // =============================================================================
38
38
  // Projection Contracts
@@ -44,11 +44,11 @@ export type {
44
44
  ExecutionInitiator,
45
45
  ExecutionStatus,
46
46
  ExecutionSummary,
47
- } from './summary.js'
47
+ } from './summary'
48
48
 
49
49
  // TimelineUIEvent (user-facing projection)
50
50
  export type {
51
51
  TimelineStatus,
52
52
  TimelineIcon,
53
53
  TimelineUIEvent,
54
- } from './timeline-ui.js'
54
+ } from './timeline-ui'
@@ -12,8 +12,8 @@
12
12
  * @see ADR-CONT-029 for design rationale
13
13
  */
14
14
 
15
- import type { ExecutionKind } from './kinds.js'
16
- import type { ExecutionKindDefinition } from './types.js'
15
+ import type { ExecutionKind } from './kinds'
16
+ import type { ExecutionKindDefinition } from './types'
17
17
 
18
18
  // =============================================================================
19
19
  // Registry
@@ -13,8 +13,8 @@
13
13
  * @see ADR-CONT-029 for design rationale
14
14
  */
15
15
 
16
- import type { ExecutionKind } from './kinds.js'
17
- import type { ISO8601Timestamp } from './types.js'
16
+ import type { ExecutionKind } from './kinds'
17
+ import type { ISO8601Timestamp } from './types'
18
18
 
19
19
  // =============================================================================
20
20
  // Execution Target
@@ -13,7 +13,7 @@
13
13
  * @see ADR-CONT-029 for design rationale
14
14
  */
15
15
 
16
- import type { ISO8601Timestamp } from './types.js'
16
+ import type { ISO8601Timestamp } from './types'
17
17
 
18
18
  // =============================================================================
19
19
  // Timeline Status
@@ -6,7 +6,7 @@
6
6
  * @see ADR-CONT-029 for design rationale
7
7
  */
8
8
 
9
- import type { ExecutionKind } from './kinds.js'
9
+ import type { ExecutionKind } from './kinds'
10
10
 
11
11
  // =============================================================================
12
12
  // Utility Types
@@ -8,7 +8,7 @@
8
8
  * Each repo provides its own config values; shared guards consume them.
9
9
  */
10
10
 
11
- import type { CheckResult, Soc2ControlArea } from './types.js';
11
+ import type { CheckResult, Soc2ControlArea } from './types';
12
12
 
13
13
  // =============================================================================
14
14
  // Size Limits
@@ -23,7 +23,7 @@ export type {
23
23
  Soc2ControlStatus,
24
24
  Soc2ControlResult,
25
25
  Soc2ComplianceOutput,
26
- } from './types.js';
26
+ } from './types';
27
27
 
28
28
  // Constants (these are type-level, not runtime)
29
29
  export {
@@ -34,7 +34,7 @@ export {
34
34
  REQUIRED_SOC2_CONTROLS,
35
35
  BLOCKING_SOC2_CONTROLS,
36
36
  SOC2_SCHEMA_VERSION,
37
- } from './types.js';
37
+ } from './types';
38
38
 
39
39
  // Config types
40
40
  export type {
@@ -63,11 +63,11 @@ export type {
63
63
  AlertsConfigGuardConfig,
64
64
  BackupConfigGuardConfig,
65
65
  Soc2Baselines,
66
- } from './config.js';
66
+ } from './config';
67
67
 
68
68
  // Config constants (type-level defaults)
69
69
  export {
70
70
  DEFAULT_SKIP_DIRECTORIES,
71
71
  DEFAULT_DOMAIN_SECTIONS,
72
72
  DEFAULT_INFRA_SECTIONS,
73
- } from './config.js';
73
+ } from './config';
@@ -7,7 +7,7 @@
7
7
  * @see DECISIONS.md ADR-2026-01-020 for design rationale
8
8
  */
9
9
 
10
- import type { UserIdentity } from './types.js';
10
+ import type { UserIdentity } from './types';
11
11
 
12
12
  // =============================================================================
13
13
  // Full Name Derivation
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  // Types
9
- export type { ISODateString, UserIdentity } from './types.js';
9
+ export type { ISODateString, UserIdentity } from './types';
10
10
 
11
11
  // Functions
12
- export { deriveFullName, resolveDisplayName } from './display-name.js';
12
+ export { deriveFullName, resolveDisplayName } from './display-name';
package/src/index.ts CHANGED
@@ -47,7 +47,7 @@ export type {
47
47
  RepoCapability,
48
48
  CapabilityManifest,
49
49
  AggregatedCapabilities,
50
- } from './system/index.js'
50
+ } from './system/index'
51
51
 
52
52
  // Guard types (CI guard vocabulary)
53
53
  // @see schemas/guard-result.schema.json for JSON Schema
@@ -84,7 +84,7 @@ export type {
84
84
  AlertsConfigGuardConfig,
85
85
  BackupConfigGuardConfig,
86
86
  Soc2Baselines,
87
- } from './guards/index.js'
87
+ } from './guards/index'
88
88
 
89
89
  export {
90
90
  GUARD_SCHEMA_VERSION,
@@ -97,17 +97,17 @@ export {
97
97
  REQUIRED_SOC2_CONTROLS,
98
98
  BLOCKING_SOC2_CONTROLS,
99
99
  SOC2_SCHEMA_VERSION,
100
- } from './guards/index.js'
100
+ } from './guards/index'
101
101
 
102
102
  // Compatibility manifest (CI guard vocabulary)
103
103
  // @see ADR-2025-12-011 for design rationale
104
- export { COMPATIBILITY } from './compatibility.js'
105
- export type { Compatibility, Deprecation } from './compatibility.js'
104
+ export { COMPATIBILITY } from './compatibility'
105
+ export type { Compatibility, Deprecation } from './compatibility'
106
106
 
107
107
  // User identity types and functions
108
108
  // @see ADR-2026-01-020 for design rationale
109
- export type { ISODateString, UserIdentity } from './identity/index.js'
110
- export { deriveFullName, resolveDisplayName } from './identity/index.js'
109
+ export type { ISODateString, UserIdentity } from './identity/index'
110
+ export { deriveFullName, resolveDisplayName } from './identity/index'
111
111
 
112
112
  // MCP tool discovery types
113
113
  // @see company-semantics-backend/src/interfaces/mcp/ for implementation
@@ -119,7 +119,7 @@ export type {
119
119
  ToolDiscoveryResponse,
120
120
  ToolListMessagePart,
121
121
  ToolListDataPart,
122
- } from './mcp/index.js'
122
+ } from './mcp/index'
123
123
 
124
124
  // Message part types and builder functions
125
125
  // @see ADR-2026-01-022 for design rationale
@@ -168,7 +168,7 @@ export type {
168
168
  MessageStartDataPart,
169
169
  MessageDeltaDataPart,
170
170
  MessageCompleteDataPart,
171
- } from './message-parts/index.js'
171
+ } from './message-parts/index'
172
172
 
173
173
  export {
174
174
  isTextPart,
@@ -180,7 +180,7 @@ export {
180
180
  buildParts,
181
181
  getDroppedCount,
182
182
  WireSurfaceBuilder,
183
- } from './message-parts/index.js'
183
+ } from './message-parts/index'
184
184
 
185
185
  // Execution kind types and registry
186
186
  // @see ADR-CONT-029 for design rationale
@@ -198,10 +198,10 @@ export type {
198
198
  TimelineStatus,
199
199
  TimelineIcon,
200
200
  TimelineUIEvent,
201
- } from './execution/index.js'
201
+ } from './execution/index'
202
202
 
203
203
  export {
204
204
  EXECUTION_KINDS,
205
205
  getExecutionKindDefinition,
206
206
  isValidExecutionKind,
207
- } from './execution/index.js'
207
+ } from './execution/index'
@@ -18,7 +18,7 @@
18
18
  * @see DECISIONS.md ADR-2026-01-022 for design rationale
19
19
  */
20
20
 
21
- import type { AssistantMessagePart, TextPart, SurfacePart } from './types.js'
21
+ import type { AssistantMessagePart, TextPart, SurfacePart } from './types'
22
22
 
23
23
  // =============================================================================
24
24
  // Builder State
@@ -15,7 +15,7 @@
15
15
  * @see DECISIONS.md for design rationale
16
16
  */
17
17
 
18
- import type { PreviewArtifactKind } from './preview.js';
18
+ import type { PreviewArtifactKind } from './preview';
19
19
 
20
20
  /**
21
21
  * Status of a single artifact's execution.
@@ -16,7 +16,7 @@ export type {
16
16
  TablePart,
17
17
  SurfacePart,
18
18
  AssistantMessagePart,
19
- } from './types.js'
19
+ } from './types'
20
20
 
21
21
  // Preview types
22
22
  export type {
@@ -25,7 +25,7 @@ export type {
25
25
  PreviewData,
26
26
  PreviewPart,
27
27
  PreviewDataPart,
28
- } from './preview.js'
28
+ } from './preview'
29
29
 
30
30
  // Confirmation types
31
31
  export type {
@@ -37,7 +37,7 @@ export type {
37
37
  ConfirmationResponseData,
38
38
  ConfirmationResponsePart,
39
39
  ConfirmationResponseDataPart,
40
- } from './confirmation.js'
40
+ } from './confirmation'
41
41
 
42
42
  // Execution result types
43
43
  export type {
@@ -45,7 +45,7 @@ export type {
45
45
  ExecutionResultData,
46
46
  ExecutionResultPart,
47
47
  ExecutionResultDataPart,
48
- } from './execution.js'
48
+ } from './execution'
49
49
 
50
50
  // Lifecycle types (Phase 1 streaming)
51
51
  export type {
@@ -60,13 +60,13 @@ export type {
60
60
  MessageStartDataPart,
61
61
  MessageDeltaDataPart,
62
62
  MessageCompleteDataPart,
63
- } from './lifecycle.js'
63
+ } from './lifecycle'
64
64
 
65
65
  // Type guards
66
- export { isTextPart, isSurfacePart } from './types.js'
66
+ export { isTextPart, isSurfacePart } from './types'
67
67
 
68
68
  // Builder functions
69
- export type { PartBuilderState, AddPartResult } from './builder.js'
69
+ export type { PartBuilderState, AddPartResult } from './builder'
70
70
  export {
71
71
  createPartBuilder,
72
72
  addText,
@@ -74,7 +74,7 @@ export {
74
74
  addPart,
75
75
  buildParts,
76
76
  getDroppedCount,
77
- } from './builder.js'
77
+ } from './builder'
78
78
 
79
79
  // Wire format builder
80
- export { WireSurfaceBuilder } from './wire.js'
80
+ export { WireSurfaceBuilder } from './wire'
@@ -13,9 +13,9 @@
13
13
  * @see DECISIONS.md ADR-2026-01-022 for design rationale
14
14
  */
15
15
 
16
- import type { ToolListMessagePart } from '../mcp/index.js'
17
- import type { PreviewPart } from './preview.js'
18
- import type { ConfirmationPart, ConfirmationResponsePart } from './confirmation.js'
16
+ import type { ToolListMessagePart } from '../mcp/index'
17
+ import type { PreviewPart } from './preview'
18
+ import type { ConfirmationPart, ConfirmationResponsePart } from './confirmation'
19
19
 
20
20
  // =============================================================================
21
21
  // Narrative Parts (Streamable)
@@ -10,19 +10,19 @@
10
10
  * @see DECISIONS.md ADR-2026-01-022 for design rationale
11
11
  */
12
12
 
13
- import type { MCPToolDescriptor, ToolListDataPart } from '../mcp/index.js'
14
- import type { PreviewDataPart, PreviewData } from './preview.js'
13
+ import type { MCPToolDescriptor, ToolListDataPart } from '../mcp/index'
14
+ import type { PreviewDataPart, PreviewData } from './preview'
15
15
  import type {
16
16
  ConfirmationData,
17
17
  ConfirmationDataPart,
18
18
  ConfirmationResponseData,
19
19
  ConfirmationResponseDataPart,
20
- } from './confirmation.js'
21
- import type { ExecutionResultData, ExecutionResultDataPart } from './execution.js'
20
+ } from './confirmation'
21
+ import type { ExecutionResultData, ExecutionResultDataPart } from './execution'
22
22
  import type {
23
23
  MessageStartDataPart,
24
24
  MessageCompleteDataPart,
25
- } from './lifecycle.js'
25
+ } from './lifecycle'
26
26
 
27
27
  /**
28
28
  * Factory for creating wire-format surface parts.
@@ -15,7 +15,7 @@
15
15
  * @see ADR-CONTRACTS-NNN in DECISIONS.md
16
16
  */
17
17
 
18
- import type { DiagramNode, FlowStage } from './index.js'
18
+ import type { DiagramNode, FlowStage } from './index'
19
19
 
20
20
  // =============================================================================
21
21
  // Types
@@ -38,7 +38,7 @@
38
38
  * - Added DiagramSnapshot for cross-repo distribution
39
39
  */
40
40
 
41
- import type { FeatureStatus } from './index.js'
41
+ import type { FeatureStatus } from './index'
42
42
 
43
43
  /**
44
44
  * The semantic role of a node in the diagram.
@@ -79,7 +79,7 @@ export type {
79
79
  DiagramEdge,
80
80
  DiagramSpec,
81
81
  DiagramSnapshot,
82
- } from './diagram.js'
82
+ } from './diagram'
83
83
 
84
84
  // Repository capability types
85
85
  export type {
@@ -88,4 +88,4 @@ export type {
88
88
  RepoCapability,
89
89
  CapabilityManifest,
90
90
  AggregatedCapabilities,
91
- } from './capabilities.js'
91
+ } from './capabilities'
package/src/tsconfig.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "ES2022",
4
- "module": "NodeNext",
5
- "moduleResolution": "NodeNext",
4
+ "module": "ESNext",
5
+ "moduleResolution": "bundler",
6
6
  "strict": true,
7
7
  "noEmit": true,
8
8
  "composite": true,