@contractspec/example.kb-update-pipeline 1.44.1 → 1.45.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.
@@ -6,50 +6,50 @@ $ tsdown
6
6
  ℹ tsconfig: tsconfig.json
7
7
  ℹ Build start
8
8
  ℹ Cleaning 49 files
9
- ℹ dist/operations/pipeline.js 4.92 kB │ gzip: 1.36 kB
10
- ℹ dist/events.js 3.66 kB │ gzip: 0.72 kB
9
+ ℹ dist/operations/pipeline.js 4.95 kB │ gzip: 1.37 kB
10
+ ℹ dist/events.js 3.69 kB │ gzip: 0.73 kB
11
11
  ℹ dist/handlers/memory.handlers.js 3.37 kB │ gzip: 1.12 kB
12
- ℹ dist/kb-update-pipeline.feature.js 2.12 kB │ gzip: 0.64 kB
12
+ ℹ dist/kb-update-pipeline.feature.js 2.27 kB │ gzip: 0.64 kB
13
+ ℹ dist/presentations.js 1.82 kB │ gzip: 0.61 kB
13
14
  ℹ dist/entities/models.js 1.81 kB │ gzip: 0.53 kB
14
- ℹ dist/presentations.js 1.80 kB │ gzip: 0.61 kB
15
15
  ℹ dist/docs/kb-update-pipeline.docblock.js 1.49 kB │ gzip: 0.71 kB
16
16
  ℹ dist/index.js 1.44 kB │ gzip: 0.42 kB
17
- ℹ dist/feature.js 1.30 kB │ gzip: 0.54 kB
18
- ℹ dist/example.js 0.86 kB │ gzip: 0.47 kB
17
+ ℹ dist/feature.js 1.37 kB │ gzip: 0.54 kB
18
+ ℹ dist/example.js 0.97 kB │ gzip: 0.52 kB
19
19
  ℹ dist/operations/index.js 0.31 kB │ gzip: 0.14 kB
20
20
  ℹ dist/entities/index.js 0.25 kB │ gzip: 0.13 kB
21
21
  ℹ dist/handlers/index.js 0.16 kB │ gzip: 0.10 kB
22
22
  ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
23
23
  ℹ dist/handlers/memory.handlers.js.map 8.17 kB │ gzip: 2.35 kB
24
- ℹ dist/operations/pipeline.js.map 7.18 kB │ gzip: 1.80 kB
25
- ℹ dist/events.js.map 5.62 kB │ gzip: 1.04 kB
26
- ℹ dist/kb-update-pipeline.feature.js.map 3.38 kB │ gzip: 1.02 kB
27
- ℹ dist/presentations.js.map 3.00 kB │ gzip: 0.84 kB
24
+ ℹ dist/operations/pipeline.js.map 7.20 kB │ gzip: 1.81 kB
25
+ ℹ dist/events.js.map 5.65 kB │ gzip: 1.04 kB
26
+ ℹ dist/kb-update-pipeline.feature.js.map 3.53 kB │ gzip: 1.02 kB
27
+ ℹ dist/presentations.js.map 3.02 kB │ gzip: 0.85 kB
28
28
  ℹ dist/entities/models.js.map 2.68 kB │ gzip: 0.81 kB
29
- ℹ dist/feature.js.map 2.10 kB │ gzip: 0.83 kB
29
+ ℹ dist/feature.js.map 2.17 kB │ gzip: 0.83 kB
30
30
  ℹ dist/docs/kb-update-pipeline.docblock.js.map 2.00 kB │ gzip: 0.89 kB
31
- ℹ dist/example.js.map 1.24 kB │ gzip: 0.64 kB
31
+ ℹ dist/example.js.map 1.52 kB │ gzip: 0.75 kB
32
32
  ℹ dist/handlers/memory.handlers.d.ts.map 0.92 kB │ gzip: 0.44 kB
33
33
  ℹ dist/events.d.ts.map 0.81 kB │ gzip: 0.33 kB
34
34
  ℹ dist/operations/pipeline.d.ts.map 0.76 kB │ gzip: 0.33 kB
35
35
  ℹ dist/entities/models.d.ts.map 0.47 kB │ gzip: 0.28 kB
36
36
  ℹ dist/presentations.d.ts.map 0.19 kB │ gzip: 0.16 kB
37
37
  ℹ dist/kb-update-pipeline.feature.d.ts.map 0.16 kB │ gzip: 0.14 kB
38
- ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
39
38
  ℹ dist/feature.d.ts.map 0.13 kB │ gzip: 0.12 kB
39
+ ℹ dist/example.d.ts.map 0.12 kB │ gzip: 0.12 kB
40
40
  ℹ dist/operations/pipeline.d.ts 4.33 kB │ gzip: 0.58 kB
41
41
  ℹ dist/events.d.ts 2.54 kB │ gzip: 0.42 kB
42
42
  ℹ dist/entities/models.d.ts 2.00 kB │ gzip: 0.41 kB
43
43
  ℹ dist/handlers/memory.handlers.d.ts 1.94 kB │ gzip: 0.64 kB
44
44
  ℹ dist/index.d.ts 1.48 kB │ gzip: 0.41 kB
45
- ℹ dist/example.d.ts 1.11 kB │ gzip: 0.47 kB
46
45
  ℹ dist/presentations.d.ts 0.41 kB │ gzip: 0.19 kB
47
46
  ℹ dist/operations/index.d.ts 0.31 kB │ gzip: 0.13 kB
48
47
  ℹ dist/kb-update-pipeline.feature.d.ts 0.28 kB │ gzip: 0.18 kB
49
48
  ℹ dist/handlers/index.d.ts 0.25 kB │ gzip: 0.10 kB
50
49
  ℹ dist/entities/index.d.ts 0.25 kB │ gzip: 0.13 kB
51
50
  ℹ dist/feature.d.ts 0.24 kB │ gzip: 0.17 kB
51
+ ℹ dist/example.d.ts 0.20 kB │ gzip: 0.16 kB
52
52
  ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
53
53
  ℹ dist/docs/kb-update-pipeline.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
54
- ℹ 45 files, total: 77.63 kB
55
- ✔ Build complete in 22192ms
54
+ ℹ 45 files, total: 77.69 kB
55
+ ✔ Build complete in 19118ms
@@ -7,50 +7,50 @@ $ tsdown
7
7
  ℹ target: esnext
8
8
  ℹ tsconfig: tsconfig.json
9
9
  ℹ Build start
10
- ℹ dist/operations/pipeline.js 4.92 kB │ gzip: 1.36 kB
11
- ℹ dist/events.js 3.66 kB │ gzip: 0.72 kB
10
+ ℹ dist/operations/pipeline.js 4.95 kB │ gzip: 1.37 kB
11
+ ℹ dist/events.js 3.69 kB │ gzip: 0.73 kB
12
12
  ℹ dist/handlers/memory.handlers.js 3.37 kB │ gzip: 1.12 kB
13
- ℹ dist/kb-update-pipeline.feature.js 2.12 kB │ gzip: 0.64 kB
13
+ ℹ dist/kb-update-pipeline.feature.js 2.27 kB │ gzip: 0.64 kB
14
+ ℹ dist/presentations.js 1.82 kB │ gzip: 0.61 kB
14
15
  ℹ dist/entities/models.js 1.81 kB │ gzip: 0.53 kB
15
- ℹ dist/presentations.js 1.80 kB │ gzip: 0.61 kB
16
16
  ℹ dist/docs/kb-update-pipeline.docblock.js 1.49 kB │ gzip: 0.71 kB
17
17
  ℹ dist/index.js 1.44 kB │ gzip: 0.42 kB
18
- ℹ dist/feature.js 1.30 kB │ gzip: 0.54 kB
19
- ℹ dist/example.js 0.86 kB │ gzip: 0.47 kB
18
+ ℹ dist/feature.js 1.37 kB │ gzip: 0.54 kB
19
+ ℹ dist/example.js 0.97 kB │ gzip: 0.52 kB
20
20
  ℹ dist/operations/index.js 0.31 kB │ gzip: 0.14 kB
21
21
  ℹ dist/entities/index.js 0.25 kB │ gzip: 0.13 kB
22
22
  ℹ dist/handlers/index.js 0.16 kB │ gzip: 0.10 kB
23
23
  ℹ dist/docs/index.js 0.04 kB │ gzip: 0.06 kB
24
24
  ℹ dist/handlers/memory.handlers.js.map 8.17 kB │ gzip: 2.35 kB
25
- ℹ dist/operations/pipeline.js.map 7.18 kB │ gzip: 1.80 kB
26
- ℹ dist/events.js.map 5.62 kB │ gzip: 1.04 kB
27
- ℹ dist/kb-update-pipeline.feature.js.map 3.38 kB │ gzip: 1.02 kB
28
- ℹ dist/presentations.js.map 3.00 kB │ gzip: 0.84 kB
25
+ ℹ dist/operations/pipeline.js.map 7.20 kB │ gzip: 1.81 kB
26
+ ℹ dist/events.js.map 5.65 kB │ gzip: 1.04 kB
27
+ ℹ dist/kb-update-pipeline.feature.js.map 3.53 kB │ gzip: 1.02 kB
28
+ ℹ dist/presentations.js.map 3.02 kB │ gzip: 0.85 kB
29
29
  ℹ dist/entities/models.js.map 2.68 kB │ gzip: 0.81 kB
30
- ℹ dist/feature.js.map 2.10 kB │ gzip: 0.83 kB
30
+ ℹ dist/feature.js.map 2.17 kB │ gzip: 0.83 kB
31
31
  ℹ dist/docs/kb-update-pipeline.docblock.js.map 2.00 kB │ gzip: 0.89 kB
32
- ℹ dist/example.js.map 1.24 kB │ gzip: 0.64 kB
32
+ ℹ dist/example.js.map 1.52 kB │ gzip: 0.75 kB
33
33
  ℹ dist/handlers/memory.handlers.d.ts.map 0.92 kB │ gzip: 0.44 kB
34
34
  ℹ dist/events.d.ts.map 0.81 kB │ gzip: 0.33 kB
35
35
  ℹ dist/operations/pipeline.d.ts.map 0.76 kB │ gzip: 0.33 kB
36
36
  ℹ dist/entities/models.d.ts.map 0.47 kB │ gzip: 0.28 kB
37
37
  ℹ dist/presentations.d.ts.map 0.19 kB │ gzip: 0.16 kB
38
38
  ℹ dist/kb-update-pipeline.feature.d.ts.map 0.16 kB │ gzip: 0.14 kB
39
- ℹ dist/example.d.ts.map 0.14 kB │ gzip: 0.13 kB
40
39
  ℹ dist/feature.d.ts.map 0.13 kB │ gzip: 0.12 kB
40
+ ℹ dist/example.d.ts.map 0.12 kB │ gzip: 0.12 kB
41
41
  ℹ dist/operations/pipeline.d.ts 4.33 kB │ gzip: 0.58 kB
42
42
  ℹ dist/events.d.ts 2.54 kB │ gzip: 0.42 kB
43
43
  ℹ dist/entities/models.d.ts 2.00 kB │ gzip: 0.41 kB
44
44
  ℹ dist/handlers/memory.handlers.d.ts 1.94 kB │ gzip: 0.64 kB
45
45
  ℹ dist/index.d.ts 1.48 kB │ gzip: 0.41 kB
46
- ℹ dist/example.d.ts 1.11 kB │ gzip: 0.47 kB
47
46
  ℹ dist/presentations.d.ts 0.41 kB │ gzip: 0.19 kB
48
47
  ℹ dist/operations/index.d.ts 0.31 kB │ gzip: 0.13 kB
49
48
  ℹ dist/kb-update-pipeline.feature.d.ts 0.28 kB │ gzip: 0.18 kB
50
49
  ℹ dist/handlers/index.d.ts 0.25 kB │ gzip: 0.10 kB
51
50
  ℹ dist/entities/index.d.ts 0.25 kB │ gzip: 0.13 kB
52
51
  ℹ dist/feature.d.ts 0.24 kB │ gzip: 0.17 kB
52
+ ℹ dist/example.d.ts 0.20 kB │ gzip: 0.16 kB
53
53
  ℹ dist/docs/index.d.ts 0.01 kB │ gzip: 0.03 kB
54
54
  ℹ dist/docs/kb-update-pipeline.docblock.d.ts 0.01 kB │ gzip: 0.03 kB
55
- ℹ 45 files, total: 77.63 kB
56
- ✔ Build complete in 23643ms
55
+ ℹ 45 files, total: 77.69 kB
56
+ ✔ Build complete in 23746ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @contractspec/example.kb-update-pipeline
2
2
 
3
+ ## 1.45.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e73ca1d: feat: improve app config and examples contracts
8
+ feat: Contract layers support (features, examples, app-configs)
9
+
10
+ ### New CLI Commands
11
+ - `contractspec list layers` - List all contract layers with filtering
12
+
13
+ ### Enhanced Commands
14
+ - `contractspec ci` - New `layers` check category validates features/examples/config
15
+ - `contractspec doctor` - New `layers` health checks
16
+ - `contractspec integrity` - Now shows layer statistics
17
+
18
+ ### New APIs
19
+ - `discoverLayers()` - Scan workspace for all layer files
20
+ - `scanExampleSource()` - Parse ExampleSpec from source code
21
+ - `isExampleFile()` - Check if file is an example spec
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [e73ca1d]
26
+ - @contractspec/module.notifications@1.45.0
27
+ - @contractspec/lib.identity-rbac@1.45.0
28
+ - @contractspec/lib.contracts@1.45.0
29
+ - @contractspec/lib.schema@1.45.0
30
+
3
31
  ## 1.44.1
4
32
 
5
33
  ### Patch Changes
@@ -1,58 +1,58 @@
1
- import * as _contractspec_lib_schema55 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema36 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/entities/models.d.ts
4
- declare const ChangeRiskLevelEnum: _contractspec_lib_schema55.EnumType<[string, string, string]>;
5
- declare const ReviewAssignedRoleEnum: _contractspec_lib_schema55.EnumType<[string, string]>;
6
- declare const ReviewDecisionEnum: _contractspec_lib_schema55.EnumType<[string, string]>;
7
- declare const ChangeCandidateModel: _contractspec_lib_schema55.SchemaModel<{
4
+ declare const ChangeRiskLevelEnum: _contractspec_lib_schema36.EnumType<[string, string, string]>;
5
+ declare const ReviewAssignedRoleEnum: _contractspec_lib_schema36.EnumType<[string, string]>;
6
+ declare const ReviewDecisionEnum: _contractspec_lib_schema36.EnumType<[string, string]>;
7
+ declare const ChangeCandidateModel: _contractspec_lib_schema36.SchemaModel<{
8
8
  id: {
9
- type: _contractspec_lib_schema55.FieldType<string, string>;
9
+ type: _contractspec_lib_schema36.FieldType<string, string>;
10
10
  isOptional: false;
11
11
  };
12
12
  sourceDocumentId: {
13
- type: _contractspec_lib_schema55.FieldType<string, string>;
13
+ type: _contractspec_lib_schema36.FieldType<string, string>;
14
14
  isOptional: false;
15
15
  };
16
16
  detectedAt: {
17
- type: _contractspec_lib_schema55.FieldType<Date, string>;
17
+ type: _contractspec_lib_schema36.FieldType<Date, string>;
18
18
  isOptional: false;
19
19
  };
20
20
  diffSummary: {
21
- type: _contractspec_lib_schema55.FieldType<string, string>;
21
+ type: _contractspec_lib_schema36.FieldType<string, string>;
22
22
  isOptional: false;
23
23
  };
24
24
  riskLevel: {
25
- type: _contractspec_lib_schema55.EnumType<[string, string, string]>;
25
+ type: _contractspec_lib_schema36.EnumType<[string, string, string]>;
26
26
  isOptional: false;
27
27
  };
28
28
  }>;
29
- declare const ReviewTaskModel: _contractspec_lib_schema55.SchemaModel<{
29
+ declare const ReviewTaskModel: _contractspec_lib_schema36.SchemaModel<{
30
30
  id: {
31
- type: _contractspec_lib_schema55.FieldType<string, string>;
31
+ type: _contractspec_lib_schema36.FieldType<string, string>;
32
32
  isOptional: false;
33
33
  };
34
34
  changeCandidateId: {
35
- type: _contractspec_lib_schema55.FieldType<string, string>;
35
+ type: _contractspec_lib_schema36.FieldType<string, string>;
36
36
  isOptional: false;
37
37
  };
38
38
  status: {
39
- type: _contractspec_lib_schema55.FieldType<string, string>;
39
+ type: _contractspec_lib_schema36.FieldType<string, string>;
40
40
  isOptional: false;
41
41
  };
42
42
  assignedRole: {
43
- type: _contractspec_lib_schema55.EnumType<[string, string]>;
43
+ type: _contractspec_lib_schema36.EnumType<[string, string]>;
44
44
  isOptional: false;
45
45
  };
46
46
  decision: {
47
- type: _contractspec_lib_schema55.EnumType<[string, string]>;
47
+ type: _contractspec_lib_schema36.EnumType<[string, string]>;
48
48
  isOptional: true;
49
49
  };
50
50
  decidedAt: {
51
- type: _contractspec_lib_schema55.FieldType<Date, string>;
51
+ type: _contractspec_lib_schema36.FieldType<Date, string>;
52
52
  isOptional: true;
53
53
  };
54
54
  decidedBy: {
55
- type: _contractspec_lib_schema55.FieldType<string, string>;
55
+ type: _contractspec_lib_schema36.FieldType<string, string>;
56
56
  isOptional: true;
57
57
  };
58
58
  }>;
package/dist/events.d.ts CHANGED
@@ -1,71 +1,71 @@
1
1
  import * as _contractspec_lib_contracts3 from "@contractspec/lib.contracts";
2
- import * as _contractspec_lib_schema36 from "@contractspec/lib.schema";
2
+ import * as _contractspec_lib_schema53 from "@contractspec/lib.schema";
3
3
 
4
4
  //#region src/events.d.ts
5
- declare const KbChangeDetectedEvent: _contractspec_lib_contracts3.EventSpec<_contractspec_lib_schema36.SchemaModel<{
5
+ declare const KbChangeDetectedEvent: _contractspec_lib_contracts3.EventSpec<_contractspec_lib_schema53.SchemaModel<{
6
6
  changeCandidateId: {
7
- type: _contractspec_lib_schema36.FieldType<string, string>;
7
+ type: _contractspec_lib_schema53.FieldType<string, string>;
8
8
  isOptional: false;
9
9
  };
10
10
  sourceDocumentId: {
11
- type: _contractspec_lib_schema36.FieldType<string, string>;
11
+ type: _contractspec_lib_schema53.FieldType<string, string>;
12
12
  isOptional: false;
13
13
  };
14
14
  riskLevel: {
15
- type: _contractspec_lib_schema36.FieldType<string, string>;
15
+ type: _contractspec_lib_schema53.FieldType<string, string>;
16
16
  isOptional: false;
17
17
  };
18
18
  }>>;
19
- declare const KbChangeSummarizedEvent: _contractspec_lib_contracts3.EventSpec<_contractspec_lib_schema36.SchemaModel<{
19
+ declare const KbChangeSummarizedEvent: _contractspec_lib_contracts3.EventSpec<_contractspec_lib_schema53.SchemaModel<{
20
20
  changeCandidateId: {
21
- type: _contractspec_lib_schema36.FieldType<string, string>;
21
+ type: _contractspec_lib_schema53.FieldType<string, string>;
22
22
  isOptional: false;
23
23
  };
24
24
  summary: {
25
- type: _contractspec_lib_schema36.FieldType<string, string>;
25
+ type: _contractspec_lib_schema53.FieldType<string, string>;
26
26
  isOptional: false;
27
27
  };
28
28
  riskLevel: {
29
- type: _contractspec_lib_schema36.FieldType<string, string>;
29
+ type: _contractspec_lib_schema53.FieldType<string, string>;
30
30
  isOptional: false;
31
31
  };
32
32
  }>>;
33
- declare const KbPatchProposedEvent: _contractspec_lib_contracts3.EventSpec<_contractspec_lib_schema36.SchemaModel<{
33
+ declare const KbPatchProposedEvent: _contractspec_lib_contracts3.EventSpec<_contractspec_lib_schema53.SchemaModel<{
34
34
  changeCandidateId: {
35
- type: _contractspec_lib_schema36.FieldType<string, string>;
35
+ type: _contractspec_lib_schema53.FieldType<string, string>;
36
36
  isOptional: false;
37
37
  };
38
38
  proposedRuleVersionIds: {
39
- type: _contractspec_lib_schema36.FieldType<string, string>;
39
+ type: _contractspec_lib_schema53.FieldType<string, string>;
40
40
  isArray: true;
41
41
  isOptional: false;
42
42
  };
43
43
  }>>;
44
- declare const KbReviewRequestedEvent: _contractspec_lib_contracts3.EventSpec<_contractspec_lib_schema36.SchemaModel<{
44
+ declare const KbReviewRequestedEvent: _contractspec_lib_contracts3.EventSpec<_contractspec_lib_schema53.SchemaModel<{
45
45
  reviewTaskId: {
46
- type: _contractspec_lib_schema36.FieldType<string, string>;
46
+ type: _contractspec_lib_schema53.FieldType<string, string>;
47
47
  isOptional: false;
48
48
  };
49
49
  changeCandidateId: {
50
- type: _contractspec_lib_schema36.FieldType<string, string>;
50
+ type: _contractspec_lib_schema53.FieldType<string, string>;
51
51
  isOptional: false;
52
52
  };
53
53
  assignedRole: {
54
- type: _contractspec_lib_schema36.FieldType<string, string>;
54
+ type: _contractspec_lib_schema53.FieldType<string, string>;
55
55
  isOptional: false;
56
56
  };
57
57
  }>>;
58
- declare const KbReviewDecidedEvent: _contractspec_lib_contracts3.EventSpec<_contractspec_lib_schema36.SchemaModel<{
58
+ declare const KbReviewDecidedEvent: _contractspec_lib_contracts3.EventSpec<_contractspec_lib_schema53.SchemaModel<{
59
59
  reviewTaskId: {
60
- type: _contractspec_lib_schema36.FieldType<string, string>;
60
+ type: _contractspec_lib_schema53.FieldType<string, string>;
61
61
  isOptional: false;
62
62
  };
63
63
  decision: {
64
- type: _contractspec_lib_schema36.FieldType<string, string>;
64
+ type: _contractspec_lib_schema53.FieldType<string, string>;
65
65
  isOptional: false;
66
66
  };
67
67
  decidedBy: {
68
- type: _contractspec_lib_schema36.FieldType<string, string>;
68
+ type: _contractspec_lib_schema53.FieldType<string, string>;
69
69
  isOptional: false;
70
70
  };
71
71
  }>>;
package/dist/events.js CHANGED
@@ -23,7 +23,7 @@ const KbChangeDetectedPayload = defineSchemaModel({
23
23
  const KbChangeDetectedEvent = defineEvent({
24
24
  meta: {
25
25
  key: "kb.change.detected",
26
- version: 1,
26
+ version: "1.0.0",
27
27
  description: "KB source change detected.",
28
28
  stability: StabilityEnum.Experimental,
29
29
  owners: [],
@@ -52,7 +52,7 @@ const KbChangeSummarizedPayload = defineSchemaModel({
52
52
  const KbChangeSummarizedEvent = defineEvent({
53
53
  meta: {
54
54
  key: "kb.change.summarized",
55
- version: 1,
55
+ version: "1.0.0",
56
56
  description: "KB change summarized.",
57
57
  stability: StabilityEnum.Experimental,
58
58
  owners: [],
@@ -78,7 +78,7 @@ const KbPatchProposedPayload = defineSchemaModel({
78
78
  const KbPatchProposedEvent = defineEvent({
79
79
  meta: {
80
80
  key: "kb.patch.proposed",
81
- version: 1,
81
+ version: "1.0.0",
82
82
  description: "KB rule patch proposed (draft versions created).",
83
83
  stability: StabilityEnum.Experimental,
84
84
  owners: [],
@@ -107,7 +107,7 @@ const KbReviewRequestedPayload = defineSchemaModel({
107
107
  const KbReviewRequestedEvent = defineEvent({
108
108
  meta: {
109
109
  key: "kb.review.requested",
110
- version: 1,
110
+ version: "1.0.0",
111
111
  description: "KB review requested.",
112
112
  stability: StabilityEnum.Experimental,
113
113
  owners: [],
@@ -136,7 +136,7 @@ const KbReviewDecidedPayload = defineSchemaModel({
136
136
  const KbReviewDecidedEvent = defineEvent({
137
137
  meta: {
138
138
  key: "kb.review.decided",
139
- version: 1,
139
+ version: "1.0.0",
140
140
  description: "KB review decided.",
141
141
  stability: StabilityEnum.Experimental,
142
142
  owners: [],
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","names":[],"sources":["../src/events.ts"],"sourcesContent":["import {\n defineEvent,\n defineSchemaModel,\n StabilityEnum,\n} from '@contractspec/lib.contracts';\nimport { ScalarTypeEnum } from '@contractspec/lib.schema';\n\nconst KbChangeDetectedPayload = defineSchemaModel({\n name: 'KbChangeDetectedPayload',\n description: 'Emitted when a source change is detected.',\n fields: {\n changeCandidateId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n sourceDocumentId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n riskLevel: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const KbChangeDetectedEvent = defineEvent({\n meta: {\n key: 'kb.change.detected',\n version: 1,\n description: 'KB source change detected.',\n stability: StabilityEnum.Experimental,\n owners: [],\n tags: [],\n },\n payload: KbChangeDetectedPayload,\n});\n\nconst KbChangeSummarizedPayload = defineSchemaModel({\n name: 'KbChangeSummarizedPayload',\n description: 'Emitted when a change summary is produced.',\n fields: {\n changeCandidateId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n summary: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n riskLevel: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const KbChangeSummarizedEvent = defineEvent({\n meta: {\n key: 'kb.change.summarized',\n version: 1,\n description: 'KB change summarized.',\n stability: StabilityEnum.Experimental,\n owners: [],\n tags: [],\n },\n payload: KbChangeSummarizedPayload,\n});\n\nconst KbPatchProposedPayload = defineSchemaModel({\n name: 'KbPatchProposedPayload',\n description: 'Emitted when draft rule patches are proposed.',\n fields: {\n changeCandidateId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n proposedRuleVersionIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: false,\n },\n },\n});\n\nexport const KbPatchProposedEvent = defineEvent({\n meta: {\n key: 'kb.patch.proposed',\n version: 1,\n description: 'KB rule patch proposed (draft versions created).',\n stability: StabilityEnum.Experimental,\n owners: [],\n tags: [],\n },\n payload: KbPatchProposedPayload,\n});\n\nconst KbReviewRequestedPayload = defineSchemaModel({\n name: 'KbReviewRequestedPayload',\n description: 'Emitted when a review is requested.',\n fields: {\n reviewTaskId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n changeCandidateId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n assignedRole: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const KbReviewRequestedEvent = defineEvent({\n meta: {\n key: 'kb.review.requested',\n version: 1,\n description: 'KB review requested.',\n stability: StabilityEnum.Experimental,\n owners: [],\n tags: [],\n },\n payload: KbReviewRequestedPayload,\n});\n\nconst KbReviewDecidedPayload = defineSchemaModel({\n name: 'KbReviewDecidedPayload',\n description: 'Emitted when a review task is decided.',\n fields: {\n reviewTaskId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n decision: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n decidedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const KbReviewDecidedEvent = defineEvent({\n meta: {\n key: 'kb.review.decided',\n version: 1,\n description: 'KB review decided.',\n stability: StabilityEnum.Experimental,\n owners: [],\n tags: [],\n },\n payload: KbReviewDecidedPayload,\n});\n"],"mappings":";;;;AAOA,MAAM,0BAA0B,kBAAkB;CAChD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,mBAAmB;GACjB,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,kBAAkB;GAChB,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACzE;CACF,CAAC;AAEF,MAAa,wBAAwB,YAAY;CAC/C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW,cAAc;EACzB,QAAQ,EAAE;EACV,MAAM,EAAE;EACT;CACD,SAAS;CACV,CAAC;AAEF,MAAM,4BAA4B,kBAAkB;CAClD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,mBAAmB;GACjB,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACzE;CACF,CAAC;AAEF,MAAa,0BAA0B,YAAY;CACjD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW,cAAc;EACzB,QAAQ,EAAE;EACV,MAAM,EAAE;EACT;CACD,SAAS;CACV,CAAC;AAEF,MAAM,yBAAyB,kBAAkB;CAC/C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,mBAAmB;GACjB,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,wBAAwB;GACtB,MAAM,eAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACF;CACF,CAAC;AAEF,MAAa,uBAAuB,YAAY;CAC9C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW,cAAc;EACzB,QAAQ,EAAE;EACV,MAAM,EAAE;EACT;CACD,SAAS;CACV,CAAC;AAEF,MAAM,2BAA2B,kBAAkB;CACjD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,cAAc;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,mBAAmB;GACjB,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,cAAc;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EAC5E;CACF,CAAC;AAEF,MAAa,yBAAyB,YAAY;CAChD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW,cAAc;EACzB,QAAQ,EAAE;EACV,MAAM,EAAE;EACT;CACD,SAAS;CACV,CAAC;AAEF,MAAM,yBAAyB,kBAAkB;CAC/C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,cAAc;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,UAAU;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACzE;CACF,CAAC;AAEF,MAAa,uBAAuB,YAAY;CAC9C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW,cAAc;EACzB,QAAQ,EAAE;EACV,MAAM,EAAE;EACT;CACD,SAAS;CACV,CAAC"}
1
+ {"version":3,"file":"events.js","names":[],"sources":["../src/events.ts"],"sourcesContent":["import {\n defineEvent,\n defineSchemaModel,\n StabilityEnum,\n} from '@contractspec/lib.contracts';\nimport { ScalarTypeEnum } from '@contractspec/lib.schema';\n\nconst KbChangeDetectedPayload = defineSchemaModel({\n name: 'KbChangeDetectedPayload',\n description: 'Emitted when a source change is detected.',\n fields: {\n changeCandidateId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n sourceDocumentId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n riskLevel: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const KbChangeDetectedEvent = defineEvent({\n meta: {\n key: 'kb.change.detected',\n version: '1.0.0',\n description: 'KB source change detected.',\n stability: StabilityEnum.Experimental,\n owners: [],\n tags: [],\n },\n payload: KbChangeDetectedPayload,\n});\n\nconst KbChangeSummarizedPayload = defineSchemaModel({\n name: 'KbChangeSummarizedPayload',\n description: 'Emitted when a change summary is produced.',\n fields: {\n changeCandidateId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n summary: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n riskLevel: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const KbChangeSummarizedEvent = defineEvent({\n meta: {\n key: 'kb.change.summarized',\n version: '1.0.0',\n description: 'KB change summarized.',\n stability: StabilityEnum.Experimental,\n owners: [],\n tags: [],\n },\n payload: KbChangeSummarizedPayload,\n});\n\nconst KbPatchProposedPayload = defineSchemaModel({\n name: 'KbPatchProposedPayload',\n description: 'Emitted when draft rule patches are proposed.',\n fields: {\n changeCandidateId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n proposedRuleVersionIds: {\n type: ScalarTypeEnum.String_unsecure(),\n isArray: true,\n isOptional: false,\n },\n },\n});\n\nexport const KbPatchProposedEvent = defineEvent({\n meta: {\n key: 'kb.patch.proposed',\n version: '1.0.0',\n description: 'KB rule patch proposed (draft versions created).',\n stability: StabilityEnum.Experimental,\n owners: [],\n tags: [],\n },\n payload: KbPatchProposedPayload,\n});\n\nconst KbReviewRequestedPayload = defineSchemaModel({\n name: 'KbReviewRequestedPayload',\n description: 'Emitted when a review is requested.',\n fields: {\n reviewTaskId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n changeCandidateId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n assignedRole: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const KbReviewRequestedEvent = defineEvent({\n meta: {\n key: 'kb.review.requested',\n version: '1.0.0',\n description: 'KB review requested.',\n stability: StabilityEnum.Experimental,\n owners: [],\n tags: [],\n },\n payload: KbReviewRequestedPayload,\n});\n\nconst KbReviewDecidedPayload = defineSchemaModel({\n name: 'KbReviewDecidedPayload',\n description: 'Emitted when a review task is decided.',\n fields: {\n reviewTaskId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n decision: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n decidedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nexport const KbReviewDecidedEvent = defineEvent({\n meta: {\n key: 'kb.review.decided',\n version: '1.0.0',\n description: 'KB review decided.',\n stability: StabilityEnum.Experimental,\n owners: [],\n tags: [],\n },\n payload: KbReviewDecidedPayload,\n});\n"],"mappings":";;;;AAOA,MAAM,0BAA0B,kBAAkB;CAChD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,mBAAmB;GACjB,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,kBAAkB;GAChB,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACzE;CACF,CAAC;AAEF,MAAa,wBAAwB,YAAY;CAC/C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW,cAAc;EACzB,QAAQ,EAAE;EACV,MAAM,EAAE;EACT;CACD,SAAS;CACV,CAAC;AAEF,MAAM,4BAA4B,kBAAkB;CAClD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,mBAAmB;GACjB,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACzE;CACF,CAAC;AAEF,MAAa,0BAA0B,YAAY;CACjD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW,cAAc;EACzB,QAAQ,EAAE;EACV,MAAM,EAAE;EACT;CACD,SAAS;CACV,CAAC;AAEF,MAAM,yBAAyB,kBAAkB;CAC/C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,mBAAmB;GACjB,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,wBAAwB;GACtB,MAAM,eAAe,iBAAiB;GACtC,SAAS;GACT,YAAY;GACb;EACF;CACF,CAAC;AAEF,MAAa,uBAAuB,YAAY;CAC9C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW,cAAc;EACzB,QAAQ,EAAE;EACV,MAAM,EAAE;EACT;CACD,SAAS;CACV,CAAC;AAEF,MAAM,2BAA2B,kBAAkB;CACjD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,cAAc;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,mBAAmB;GACjB,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACD,cAAc;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EAC5E;CACF,CAAC;AAEF,MAAa,yBAAyB,YAAY;CAChD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW,cAAc;EACzB,QAAQ,EAAE;EACV,MAAM,EAAE;EACT;CACD,SAAS;CACV,CAAC;AAEF,MAAM,yBAAyB,kBAAkB;CAC/C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,cAAc;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,UAAU;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACzE;CACF,CAAC;AAEF,MAAa,uBAAuB,YAAY;CAC9C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW,cAAc;EACzB,QAAQ,EAAE;EACV,MAAM,EAAE;EACT;CACD,SAAS;CACV,CAAC"}
package/dist/example.d.ts CHANGED
@@ -1,36 +1,7 @@
1
+ import { ExampleSpec } from "@contractspec/lib.contracts";
2
+
1
3
  //#region src/example.d.ts
2
- declare const example: {
3
- readonly id: "kb-update-pipeline";
4
- readonly title: "KB Update Pipeline";
5
- readonly summary: "Automation proposes KB updates; humans verify; everything audited and notified.";
6
- readonly tags: readonly ["knowledge", "pipeline", "hitl", "audit"];
7
- readonly kind: "knowledge";
8
- readonly visibility: "public";
9
- readonly docs: {
10
- readonly rootDocId: "docs.examples.kb-update-pipeline";
11
- };
12
- readonly entrypoints: {
13
- readonly packageName: "@contractspec/example.kb-update-pipeline";
14
- readonly feature: "./feature";
15
- readonly contracts: "./contracts";
16
- readonly handlers: "./handlers";
17
- readonly docs: "./docs";
18
- };
19
- readonly surfaces: {
20
- readonly templates: true;
21
- readonly sandbox: {
22
- readonly enabled: true;
23
- readonly modes: readonly ["markdown", "specs", "builder"];
24
- };
25
- readonly studio: {
26
- readonly enabled: true;
27
- readonly installable: true;
28
- };
29
- readonly mcp: {
30
- readonly enabled: true;
31
- };
32
- };
33
- };
4
+ declare const example: ExampleSpec;
34
5
  //#endregion
35
6
  export { example as default };
36
7
  //# sourceMappingURL=example.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";cAAM;EAAA,SAAA,EAwBI,EAAA,oBAAA"}
1
+ {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SAAS"}
package/dist/example.js CHANGED
@@ -1,16 +1,21 @@
1
1
  //#region src/example.ts
2
2
  const example = {
3
- id: "kb-update-pipeline",
4
- title: "KB Update Pipeline",
5
- summary: "Automation proposes KB updates; humans verify; everything audited and notified.",
6
- tags: [
7
- "knowledge",
8
- "pipeline",
9
- "hitl",
10
- "audit"
11
- ],
12
- kind: "knowledge",
13
- visibility: "public",
3
+ meta: {
4
+ key: "kb-update-pipeline",
5
+ version: "1.0.0",
6
+ title: "KB Update Pipeline",
7
+ description: "Automation proposes KB updates; humans verify; everything audited and notified.",
8
+ kind: "knowledge",
9
+ visibility: "public",
10
+ stability: "experimental",
11
+ owners: ["@platform.core"],
12
+ tags: [
13
+ "knowledge",
14
+ "pipeline",
15
+ "hitl",
16
+ "audit"
17
+ ]
18
+ },
14
19
  docs: { rootDocId: "docs.examples.kb-update-pipeline" },
15
20
  entrypoints: {
16
21
  packageName: "@contractspec/example.kb-update-pipeline",
@@ -1 +1 @@
1
- {"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["const example = {\n id: 'kb-update-pipeline',\n title: 'KB Update Pipeline',\n summary:\n 'Automation proposes KB updates; humans verify; everything audited and notified.',\n tags: ['knowledge', 'pipeline', 'hitl', 'audit'],\n kind: 'knowledge',\n visibility: 'public',\n docs: {\n rootDocId: 'docs.examples.kb-update-pipeline',\n },\n entrypoints: {\n packageName: '@contractspec/example.kb-update-pipeline',\n feature: './feature',\n contracts: './contracts',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['markdown', 'specs', 'builder'] },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n} as const;\n\nexport default example;\n"],"mappings":";AAAA,MAAM,UAAU;CACd,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;EAAC;EAAa;EAAY;EAAQ;EAAQ;CAChD,MAAM;CACN,YAAY;CACZ,MAAM,EACJ,WAAW,oCACZ;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO;IAAC;IAAY;IAAS;IAAU;GAAE;EACnE,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
1
+ {"version":3,"file":"example.js","names":["example: ExampleSpec"],"sources":["../src/example.ts"],"sourcesContent":["import type { ExampleSpec } from '@contractspec/lib.contracts';\n\nconst example: ExampleSpec = {\n meta: {\n key: 'kb-update-pipeline',\n version: '1.0.0',\n title: 'KB Update Pipeline',\n description:\n 'Automation proposes KB updates; humans verify; everything audited and notified.',\n kind: 'knowledge',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['knowledge', 'pipeline', 'hitl', 'audit'],\n },\n docs: {\n rootDocId: 'docs.examples.kb-update-pipeline',\n },\n entrypoints: {\n packageName: '@contractspec/example.kb-update-pipeline',\n feature: './feature',\n contracts: './contracts',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: { enabled: true, modes: ['markdown', 'specs', 'builder'] },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n};\n\nexport default example;\n"],"mappings":";AAEA,MAAMA,UAAuB;CAC3B,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,YAAY;EACZ,WAAW;EACX,QAAQ,CAAC,iBAAiB;EAC1B,MAAM;GAAC;GAAa;GAAY;GAAQ;GAAQ;EACjD;CACD,MAAM,EACJ,WAAW,oCACZ;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GAAE,SAAS;GAAM,OAAO;IAAC;IAAY;IAAS;IAAU;GAAE;EACnE,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
package/dist/feature.js CHANGED
@@ -2,7 +2,7 @@
2
2
  const KbUpdatePipelineFeature = {
3
3
  meta: {
4
4
  key: "kb-update-pipeline",
5
- version: 1,
5
+ version: "1.0.0",
6
6
  title: "KB Update Pipeline (HITL)",
7
7
  description: "Automation proposes KB patches; humans verify; publishing is blocked until approvals are complete.",
8
8
  domain: "knowledge",
@@ -19,41 +19,41 @@ const KbUpdatePipelineFeature = {
19
19
  operations: [
20
20
  {
21
21
  key: "kbPipeline.runWatch",
22
- version: 1
22
+ version: "1.0.0"
23
23
  },
24
24
  {
25
25
  key: "kbPipeline.createReviewTask",
26
- version: 1
26
+ version: "1.0.0"
27
27
  },
28
28
  {
29
29
  key: "kbPipeline.submitDecision",
30
- version: 1
30
+ version: "1.0.0"
31
31
  },
32
32
  {
33
33
  key: "kbPipeline.publishIfReady",
34
- version: 1
34
+ version: "1.0.0"
35
35
  }
36
36
  ],
37
37
  events: [
38
38
  {
39
39
  key: "kb.change.detected",
40
- version: 1
40
+ version: "1.0.0"
41
41
  },
42
42
  {
43
43
  key: "kb.change.summarized",
44
- version: 1
44
+ version: "1.0.0"
45
45
  },
46
46
  {
47
47
  key: "kb.patch.proposed",
48
- version: 1
48
+ version: "1.0.0"
49
49
  },
50
50
  {
51
51
  key: "kb.review.requested",
52
- version: 1
52
+ version: "1.0.0"
53
53
  },
54
54
  {
55
55
  key: "kb.review.decided",
56
- version: 1
56
+ version: "1.0.0"
57
57
  }
58
58
  ],
59
59
  presentations: [],
@@ -62,15 +62,15 @@ const KbUpdatePipelineFeature = {
62
62
  capabilities: { requires: [
63
63
  {
64
64
  key: "identity",
65
- version: 1
65
+ version: "1.0.0"
66
66
  },
67
67
  {
68
68
  key: "notifications",
69
- version: 1
69
+ version: "1.0.0"
70
70
  },
71
71
  {
72
72
  key: "audit-trail",
73
- version: 1
73
+ version: "1.0.0"
74
74
  }
75
75
  ] }
76
76
  };
@@ -1 +1 @@
1
- {"version":3,"file":"feature.js","names":["KbUpdatePipelineFeature: FeatureModuleSpec"],"sources":["../src/feature.ts"],"sourcesContent":["import type { FeatureModuleSpec } from '@contractspec/lib.contracts';\n\nexport const KbUpdatePipelineFeature: FeatureModuleSpec = {\n meta: {\n key: 'kb-update-pipeline',\n version: 1,\n title: 'KB Update Pipeline (HITL)',\n description:\n 'Automation proposes KB patches; humans verify; publishing is blocked until approvals are complete.',\n domain: 'knowledge',\n owners: ['@examples'],\n tags: ['knowledge', 'pipeline', 'hitl', 'audit', 'notifications'],\n stability: 'experimental',\n },\n operations: [\n { key: 'kbPipeline.runWatch', version: 1 },\n { key: 'kbPipeline.createReviewTask', version: 1 },\n { key: 'kbPipeline.submitDecision', version: 1 },\n { key: 'kbPipeline.publishIfReady', version: 1 },\n ],\n events: [\n { key: 'kb.change.detected', version: 1 },\n { key: 'kb.change.summarized', version: 1 },\n { key: 'kb.patch.proposed', version: 1 },\n { key: 'kb.review.requested', version: 1 },\n { key: 'kb.review.decided', version: 1 },\n ],\n presentations: [],\n opToPresentation: [],\n presentationsTargets: [],\n capabilities: {\n requires: [\n { key: 'identity', version: 1 },\n { key: 'notifications', version: 1 },\n { key: 'audit-trail', version: 1 },\n ],\n },\n};\n"],"mappings":";AAEA,MAAaA,0BAA6C;CACxD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,YAAY;EACrB,MAAM;GAAC;GAAa;GAAY;GAAQ;GAAS;GAAgB;EACjE,WAAW;EACZ;CACD,YAAY;EACV;GAAE,KAAK;GAAuB,SAAS;GAAG;EAC1C;GAAE,KAAK;GAA+B,SAAS;GAAG;EAClD;GAAE,KAAK;GAA6B,SAAS;GAAG;EAChD;GAAE,KAAK;GAA6B,SAAS;GAAG;EACjD;CACD,QAAQ;EACN;GAAE,KAAK;GAAsB,SAAS;GAAG;EACzC;GAAE,KAAK;GAAwB,SAAS;GAAG;EAC3C;GAAE,KAAK;GAAqB,SAAS;GAAG;EACxC;GAAE,KAAK;GAAuB,SAAS;GAAG;EAC1C;GAAE,KAAK;GAAqB,SAAS;GAAG;EACzC;CACD,eAAe,EAAE;CACjB,kBAAkB,EAAE;CACpB,sBAAsB,EAAE;CACxB,cAAc,EACZ,UAAU;EACR;GAAE,KAAK;GAAY,SAAS;GAAG;EAC/B;GAAE,KAAK;GAAiB,SAAS;GAAG;EACpC;GAAE,KAAK;GAAe,SAAS;GAAG;EACnC,EACF;CACF"}
1
+ {"version":3,"file":"feature.js","names":["KbUpdatePipelineFeature: FeatureModuleSpec"],"sources":["../src/feature.ts"],"sourcesContent":["import type { FeatureModuleSpec } from '@contractspec/lib.contracts';\n\nexport const KbUpdatePipelineFeature: FeatureModuleSpec = {\n meta: {\n key: 'kb-update-pipeline',\n version: '1.0.0',\n title: 'KB Update Pipeline (HITL)',\n description:\n 'Automation proposes KB patches; humans verify; publishing is blocked until approvals are complete.',\n domain: 'knowledge',\n owners: ['@examples'],\n tags: ['knowledge', 'pipeline', 'hitl', 'audit', 'notifications'],\n stability: 'experimental',\n },\n operations: [\n { key: 'kbPipeline.runWatch', version: '1.0.0' },\n { key: 'kbPipeline.createReviewTask', version: '1.0.0' },\n { key: 'kbPipeline.submitDecision', version: '1.0.0' },\n { key: 'kbPipeline.publishIfReady', version: '1.0.0' },\n ],\n events: [\n { key: 'kb.change.detected', version: '1.0.0' },\n { key: 'kb.change.summarized', version: '1.0.0' },\n { key: 'kb.patch.proposed', version: '1.0.0' },\n { key: 'kb.review.requested', version: '1.0.0' },\n { key: 'kb.review.decided', version: '1.0.0' },\n ],\n presentations: [],\n opToPresentation: [],\n presentationsTargets: [],\n capabilities: {\n requires: [\n { key: 'identity', version: '1.0.0' },\n { key: 'notifications', version: '1.0.0' },\n { key: 'audit-trail', version: '1.0.0' },\n ],\n },\n};\n"],"mappings":";AAEA,MAAaA,0BAA6C;CACxD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,YAAY;EACrB,MAAM;GAAC;GAAa;GAAY;GAAQ;GAAS;GAAgB;EACjE,WAAW;EACZ;CACD,YAAY;EACV;GAAE,KAAK;GAAuB,SAAS;GAAS;EAChD;GAAE,KAAK;GAA+B,SAAS;GAAS;EACxD;GAAE,KAAK;GAA6B,SAAS;GAAS;EACtD;GAAE,KAAK;GAA6B,SAAS;GAAS;EACvD;CACD,QAAQ;EACN;GAAE,KAAK;GAAsB,SAAS;GAAS;EAC/C;GAAE,KAAK;GAAwB,SAAS;GAAS;EACjD;GAAE,KAAK;GAAqB,SAAS;GAAS;EAC9C;GAAE,KAAK;GAAuB,SAAS;GAAS;EAChD;GAAE,KAAK;GAAqB,SAAS;GAAS;EAC/C;CACD,eAAe,EAAE;CACjB,kBAAkB,EAAE;CACpB,sBAAsB,EAAE;CACxB,cAAc,EACZ,UAAU;EACR;GAAE,KAAK;GAAY,SAAS;GAAS;EACrC;GAAE,KAAK;GAAiB,SAAS;GAAS;EAC1C;GAAE,KAAK;GAAe,SAAS;GAAS;EACzC,EACF;CACF"}