@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 +1 -1
- package/src/execution/index.ts +5 -5
- package/src/execution/registry.ts +2 -2
- package/src/execution/summary.ts +2 -2
- package/src/execution/timeline-ui.ts +1 -1
- package/src/execution/types.ts +1 -1
- package/src/guards/config.ts +1 -1
- package/src/guards/index.ts +4 -4
- package/src/identity/display-name.ts +1 -1
- package/src/identity/index.ts +2 -2
- package/src/index.ts +12 -12
- package/src/message-parts/builder.ts +1 -1
- package/src/message-parts/execution.ts +1 -1
- package/src/message-parts/index.ts +9 -9
- package/src/message-parts/types.ts +3 -3
- package/src/message-parts/wire.ts +5 -5
- package/src/system/capabilities.ts +1 -1
- package/src/system/diagram.ts +1 -1
- package/src/system/index.ts +2 -2
- package/src/tsconfig.json +2 -2
package/package.json
CHANGED
package/src/execution/index.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// Kind Types
|
|
12
12
|
// =============================================================================
|
|
13
13
|
|
|
14
|
-
export type { ExecutionKind } from './kinds
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
16
|
-
import type { ExecutionKindDefinition } from './types
|
|
15
|
+
import type { ExecutionKind } from './kinds'
|
|
16
|
+
import type { ExecutionKindDefinition } from './types'
|
|
17
17
|
|
|
18
18
|
// =============================================================================
|
|
19
19
|
// Registry
|
package/src/execution/summary.ts
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* @see ADR-CONT-029 for design rationale
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
import type { ExecutionKind } from './kinds
|
|
17
|
-
import type { ISO8601Timestamp } from './types
|
|
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
|
|
16
|
+
import type { ISO8601Timestamp } from './types'
|
|
17
17
|
|
|
18
18
|
// =============================================================================
|
|
19
19
|
// Timeline Status
|
package/src/execution/types.ts
CHANGED
package/src/guards/config.ts
CHANGED
|
@@ -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
|
|
11
|
+
import type { CheckResult, Soc2ControlArea } from './types';
|
|
12
12
|
|
|
13
13
|
// =============================================================================
|
|
14
14
|
// Size Limits
|
package/src/guards/index.ts
CHANGED
|
@@ -23,7 +23,7 @@ export type {
|
|
|
23
23
|
Soc2ControlStatus,
|
|
24
24
|
Soc2ControlResult,
|
|
25
25
|
Soc2ComplianceOutput,
|
|
26
|
-
} from './types
|
|
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
|
|
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
|
|
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
|
|
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
|
|
10
|
+
import type { UserIdentity } from './types';
|
|
11
11
|
|
|
12
12
|
// =============================================================================
|
|
13
13
|
// Full Name Derivation
|
package/src/identity/index.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
// Types
|
|
9
|
-
export type { ISODateString, UserIdentity } from './types
|
|
9
|
+
export type { ISODateString, UserIdentity } from './types';
|
|
10
10
|
|
|
11
11
|
// Functions
|
|
12
|
-
export { deriveFullName, resolveDisplayName } from './display-name
|
|
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
|
|
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
|
|
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
|
|
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
|
|
105
|
-
export type { Compatibility, Deprecation } from './compatibility
|
|
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
|
|
110
|
-
export { deriveFullName, resolveDisplayName } from './identity/index
|
|
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
|
|
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
|
|
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
|
|
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
|
|
201
|
+
} from './execution/index'
|
|
202
202
|
|
|
203
203
|
export {
|
|
204
204
|
EXECUTION_KINDS,
|
|
205
205
|
getExecutionKindDefinition,
|
|
206
206
|
isValidExecutionKind,
|
|
207
|
-
} from './execution/index
|
|
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
|
|
21
|
+
import type { AssistantMessagePart, TextPart, SurfacePart } from './types'
|
|
22
22
|
|
|
23
23
|
// =============================================================================
|
|
24
24
|
// Builder State
|
|
@@ -16,7 +16,7 @@ export type {
|
|
|
16
16
|
TablePart,
|
|
17
17
|
SurfacePart,
|
|
18
18
|
AssistantMessagePart,
|
|
19
|
-
} from './types
|
|
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
|
|
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
|
|
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
|
|
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
|
|
63
|
+
} from './lifecycle'
|
|
64
64
|
|
|
65
65
|
// Type guards
|
|
66
|
-
export { isTextPart, isSurfacePart } from './types
|
|
66
|
+
export { isTextPart, isSurfacePart } from './types'
|
|
67
67
|
|
|
68
68
|
// Builder functions
|
|
69
|
-
export type { PartBuilderState, AddPartResult } from './builder
|
|
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
|
|
77
|
+
} from './builder'
|
|
78
78
|
|
|
79
79
|
// Wire format builder
|
|
80
|
-
export { WireSurfaceBuilder } from './wire
|
|
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
|
|
17
|
-
import type { PreviewPart } from './preview
|
|
18
|
-
import type { ConfirmationPart, ConfirmationResponsePart } from './confirmation
|
|
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
|
|
14
|
-
import type { PreviewDataPart, PreviewData } from './preview
|
|
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
|
|
21
|
-
import type { ExecutionResultData, ExecutionResultDataPart } from './execution
|
|
20
|
+
} from './confirmation'
|
|
21
|
+
import type { ExecutionResultData, ExecutionResultDataPart } from './execution'
|
|
22
22
|
import type {
|
|
23
23
|
MessageStartDataPart,
|
|
24
24
|
MessageCompleteDataPart,
|
|
25
|
-
} from './lifecycle
|
|
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
|
|
18
|
+
import type { DiagramNode, FlowStage } from './index'
|
|
19
19
|
|
|
20
20
|
// =============================================================================
|
|
21
21
|
// Types
|
package/src/system/diagram.ts
CHANGED
package/src/system/index.ts
CHANGED
|
@@ -79,7 +79,7 @@ export type {
|
|
|
79
79
|
DiagramEdge,
|
|
80
80
|
DiagramSpec,
|
|
81
81
|
DiagramSnapshot,
|
|
82
|
-
} from './diagram
|
|
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
|
|
91
|
+
} from './capabilities'
|