@contractspec/example.kb-update-pipeline 1.44.1 → 1.45.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/.turbo/turbo-build$colon$bundle.log +18 -18
- package/.turbo/turbo-build.log +18 -18
- package/CHANGELOG.md +39 -0
- package/dist/entities/models.d.ts +18 -18
- package/dist/entities/models.d.ts.map +1 -1
- package/dist/events.d.ts +20 -20
- package/dist/events.js +5 -5
- package/dist/events.js.map +1 -1
- package/dist/example.d.ts +3 -32
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +16 -11
- package/dist/example.js.map +1 -1
- package/dist/feature.js +13 -13
- package/dist/feature.js.map +1 -1
- package/dist/kb-update-pipeline.feature.js +25 -25
- package/dist/kb-update-pipeline.feature.js.map +1 -1
- package/dist/operations/pipeline.d.ts +38 -38
- package/dist/operations/pipeline.d.ts.map +1 -1
- package/dist/operations/pipeline.js +4 -4
- package/dist/operations/pipeline.js.map +1 -1
- package/dist/presentations.js +3 -3
- package/dist/presentations.js.map +1 -1
- package/package.json +7 -7
- package/src/events.ts +5 -5
- package/src/example.ts +16 -9
- package/src/feature.ts +13 -13
- package/src/kb-update-pipeline.feature.ts +25 -25
- package/src/operations/pipeline.ts +4 -4
- package/src/presentations.ts +3 -3
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -3,7 +3,7 @@ import type { FeatureModuleSpec } from '@contractspec/lib.contracts';
|
|
|
3
3
|
export const KbUpdatePipelineFeature: FeatureModuleSpec = {
|
|
4
4
|
meta: {
|
|
5
5
|
key: 'kb-update-pipeline',
|
|
6
|
-
version: 1,
|
|
6
|
+
version: '1.0.0',
|
|
7
7
|
title: 'KB Update Pipeline (HITL)',
|
|
8
8
|
description:
|
|
9
9
|
'Automation proposes KB patches; humans verify; publishing is blocked until approvals are complete.',
|
|
@@ -13,47 +13,47 @@ export const KbUpdatePipelineFeature: FeatureModuleSpec = {
|
|
|
13
13
|
stability: 'experimental',
|
|
14
14
|
},
|
|
15
15
|
operations: [
|
|
16
|
-
{ key: 'kbPipeline.runWatch', version: 1 },
|
|
17
|
-
{ key: 'kbPipeline.createReviewTask', version: 1 },
|
|
18
|
-
{ key: 'kbPipeline.submitDecision', version: 1 },
|
|
19
|
-
{ key: 'kbPipeline.publishIfReady', version: 1 },
|
|
16
|
+
{ key: 'kbPipeline.runWatch', version: '1.0.0' },
|
|
17
|
+
{ key: 'kbPipeline.createReviewTask', version: '1.0.0' },
|
|
18
|
+
{ key: 'kbPipeline.submitDecision', version: '1.0.0' },
|
|
19
|
+
{ key: 'kbPipeline.publishIfReady', version: '1.0.0' },
|
|
20
20
|
],
|
|
21
21
|
events: [
|
|
22
|
-
{ key: 'kb.change.detected', version: 1 },
|
|
23
|
-
{ key: 'kb.change.summarized', version: 1 },
|
|
24
|
-
{ key: 'kb.patch.proposed', version: 1 },
|
|
25
|
-
{ key: 'kb.review.requested', version: 1 },
|
|
26
|
-
{ key: 'kb.review.decided', version: 1 },
|
|
22
|
+
{ key: 'kb.change.detected', version: '1.0.0' },
|
|
23
|
+
{ key: 'kb.change.summarized', version: '1.0.0' },
|
|
24
|
+
{ key: 'kb.patch.proposed', version: '1.0.0' },
|
|
25
|
+
{ key: 'kb.review.requested', version: '1.0.0' },
|
|
26
|
+
{ key: 'kb.review.decided', version: '1.0.0' },
|
|
27
27
|
],
|
|
28
28
|
presentations: [
|
|
29
|
-
{ key: 'kb.dashboard', version: 1 },
|
|
30
|
-
{ key: 'kb.review.list', version: 1 },
|
|
31
|
-
{ key: 'kb.review.form', version: 1 },
|
|
29
|
+
{ key: 'kb.dashboard', version: '1.0.0' },
|
|
30
|
+
{ key: 'kb.review.list', version: '1.0.0' },
|
|
31
|
+
{ key: 'kb.review.form', version: '1.0.0' },
|
|
32
32
|
],
|
|
33
33
|
opToPresentation: [
|
|
34
34
|
{
|
|
35
|
-
op: { key: 'kbPipeline.runWatch', version: 1 },
|
|
36
|
-
pres: { key: 'kb.dashboard', version: 1 },
|
|
35
|
+
op: { key: 'kbPipeline.runWatch', version: '1.0.0' },
|
|
36
|
+
pres: { key: 'kb.dashboard', version: '1.0.0' },
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
op: { key: 'kbPipeline.createReviewTask', version: 1 },
|
|
40
|
-
pres: { key: 'kb.review.list', version: 1 },
|
|
39
|
+
op: { key: 'kbPipeline.createReviewTask', version: '1.0.0' },
|
|
40
|
+
pres: { key: 'kb.review.list', version: '1.0.0' },
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
op: { key: 'kbPipeline.submitDecision', version: 1 },
|
|
44
|
-
pres: { key: 'kb.review.form', version: 1 },
|
|
43
|
+
op: { key: 'kbPipeline.submitDecision', version: '1.0.0' },
|
|
44
|
+
pres: { key: 'kb.review.form', version: '1.0.0' },
|
|
45
45
|
},
|
|
46
46
|
],
|
|
47
47
|
presentationsTargets: [
|
|
48
|
-
{ key: 'kb.dashboard', version: 1, targets: ['react', 'markdown'] },
|
|
49
|
-
{ key: 'kb.review.list', version: 1, targets: ['react', 'markdown'] },
|
|
50
|
-
{ key: 'kb.review.form', version: 1, targets: ['react'] },
|
|
48
|
+
{ key: 'kb.dashboard', version: '1.0.0', targets: ['react', 'markdown'] },
|
|
49
|
+
{ key: 'kb.review.list', version: '1.0.0', targets: ['react', 'markdown'] },
|
|
50
|
+
{ key: 'kb.review.form', version: '1.0.0', targets: ['react'] },
|
|
51
51
|
],
|
|
52
52
|
capabilities: {
|
|
53
53
|
requires: [
|
|
54
|
-
{ key: 'identity', version: 1 },
|
|
55
|
-
{ key: 'notifications', version: 1 },
|
|
56
|
-
{ key: 'audit-trail', version: 1 },
|
|
54
|
+
{ key: 'identity', version: '1.0.0' },
|
|
55
|
+
{ key: 'notifications', version: '1.0.0' },
|
|
56
|
+
{ key: 'audit-trail', version: '1.0.0' },
|
|
57
57
|
],
|
|
58
58
|
},
|
|
59
59
|
};
|
|
@@ -73,7 +73,7 @@ const PublishIfReadyOutput = defineSchemaModel({
|
|
|
73
73
|
export const KbPipelineRunWatchContract = defineCommand({
|
|
74
74
|
meta: {
|
|
75
75
|
key: 'kbPipeline.runWatch',
|
|
76
|
-
version: 1,
|
|
76
|
+
version: '1.0.0',
|
|
77
77
|
stability: 'experimental',
|
|
78
78
|
owners: ['@examples'],
|
|
79
79
|
tags: ['knowledge', 'pipeline', 'jobs'],
|
|
@@ -88,7 +88,7 @@ export const KbPipelineRunWatchContract = defineCommand({
|
|
|
88
88
|
export const KbPipelineCreateReviewTaskContract = defineCommand({
|
|
89
89
|
meta: {
|
|
90
90
|
key: 'kbPipeline.createReviewTask',
|
|
91
|
-
version: 1,
|
|
91
|
+
version: '1.0.0',
|
|
92
92
|
stability: 'experimental',
|
|
93
93
|
owners: ['@examples'],
|
|
94
94
|
tags: ['knowledge', 'pipeline', 'hitl'],
|
|
@@ -103,7 +103,7 @@ export const KbPipelineCreateReviewTaskContract = defineCommand({
|
|
|
103
103
|
export const KbPipelineSubmitDecisionContract = defineCommand({
|
|
104
104
|
meta: {
|
|
105
105
|
key: 'kbPipeline.submitDecision',
|
|
106
|
-
version: 1,
|
|
106
|
+
version: '1.0.0',
|
|
107
107
|
stability: 'experimental',
|
|
108
108
|
owners: ['@examples'],
|
|
109
109
|
tags: ['knowledge', 'pipeline', 'hitl', 'rbac'],
|
|
@@ -135,7 +135,7 @@ export const KbPipelineSubmitDecisionContract = defineCommand({
|
|
|
135
135
|
export const KbPipelinePublishIfReadyContract = defineCommand({
|
|
136
136
|
meta: {
|
|
137
137
|
key: 'kbPipeline.publishIfReady',
|
|
138
|
-
version: 1,
|
|
138
|
+
version: '1.0.0',
|
|
139
139
|
stability: 'experimental',
|
|
140
140
|
owners: ['@examples'],
|
|
141
141
|
tags: ['knowledge', 'pipeline', 'publishing'],
|
package/src/presentations.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ChangeCandidateModel, ReviewTaskModel } from './entities/models';
|
|
|
5
5
|
export const KbDashboardPresentation: PresentationSpec = {
|
|
6
6
|
meta: {
|
|
7
7
|
key: 'kb.dashboard',
|
|
8
|
-
version: 1,
|
|
8
|
+
version: '1.0.0',
|
|
9
9
|
title: 'KB Update Dashboard',
|
|
10
10
|
description: 'Overview of KB change candidates and review tasks.',
|
|
11
11
|
domain: 'knowledge',
|
|
@@ -27,7 +27,7 @@ export const KbDashboardPresentation: PresentationSpec = {
|
|
|
27
27
|
export const KbReviewListPresentation: PresentationSpec = {
|
|
28
28
|
meta: {
|
|
29
29
|
key: 'kb.review.list',
|
|
30
|
-
version: 1,
|
|
30
|
+
version: '1.0.0',
|
|
31
31
|
title: 'Review Tasks',
|
|
32
32
|
description: 'List of pending review tasks for the current user.',
|
|
33
33
|
domain: 'knowledge',
|
|
@@ -49,7 +49,7 @@ export const KbReviewListPresentation: PresentationSpec = {
|
|
|
49
49
|
export const KbReviewFormPresentation: PresentationSpec = {
|
|
50
50
|
meta: {
|
|
51
51
|
key: 'kb.review.form',
|
|
52
|
-
version: 1,
|
|
52
|
+
version: '1.0.0',
|
|
53
53
|
title: 'Review Change',
|
|
54
54
|
description: 'Form to approve or reject a KB change candidate.',
|
|
55
55
|
domain: 'knowledge',
|