@contractspec/example.kb-update-pipeline 1.44.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.
Files changed (70) hide show
  1. package/.turbo/turbo-build$colon$bundle.log +55 -0
  2. package/.turbo/turbo-build.log +56 -0
  3. package/CHANGELOG.md +195 -0
  4. package/LICENSE +21 -0
  5. package/README.md +28 -0
  6. package/dist/docs/index.d.ts +1 -0
  7. package/dist/docs/index.js +1 -0
  8. package/dist/docs/kb-update-pipeline.docblock.d.ts +1 -0
  9. package/dist/docs/kb-update-pipeline.docblock.js +31 -0
  10. package/dist/docs/kb-update-pipeline.docblock.js.map +1 -0
  11. package/dist/entities/index.d.ts +2 -0
  12. package/dist/entities/index.js +3 -0
  13. package/dist/entities/models.d.ts +61 -0
  14. package/dist/entities/models.d.ts.map +1 -0
  15. package/dist/entities/models.js +74 -0
  16. package/dist/entities/models.js.map +1 -0
  17. package/dist/events.d.ts +74 -0
  18. package/dist/events.d.ts.map +1 -0
  19. package/dist/events.js +150 -0
  20. package/dist/events.js.map +1 -0
  21. package/dist/example.d.ts +36 -0
  22. package/dist/example.d.ts.map +1 -0
  23. package/dist/example.js +43 -0
  24. package/dist/example.js.map +1 -0
  25. package/dist/feature.d.ts +7 -0
  26. package/dist/feature.d.ts.map +1 -0
  27. package/dist/feature.js +80 -0
  28. package/dist/feature.js.map +1 -0
  29. package/dist/handlers/index.d.ts +2 -0
  30. package/dist/handlers/index.js +3 -0
  31. package/dist/handlers/memory.handlers.d.ts +68 -0
  32. package/dist/handlers/memory.handlers.d.ts.map +1 -0
  33. package/dist/handlers/memory.handlers.js +93 -0
  34. package/dist/handlers/memory.handlers.js.map +1 -0
  35. package/dist/index.d.ts +10 -0
  36. package/dist/index.js +12 -0
  37. package/dist/kb-update-pipeline.feature.d.ts +7 -0
  38. package/dist/kb-update-pipeline.feature.d.ts.map +1 -0
  39. package/dist/kb-update-pipeline.feature.js +140 -0
  40. package/dist/kb-update-pipeline.feature.js.map +1 -0
  41. package/dist/operations/index.d.ts +2 -0
  42. package/dist/operations/index.js +3 -0
  43. package/dist/operations/pipeline.d.ts +137 -0
  44. package/dist/operations/pipeline.d.ts.map +1 -0
  45. package/dist/operations/pipeline.js +183 -0
  46. package/dist/operations/pipeline.js.map +1 -0
  47. package/dist/presentations.d.ts +9 -0
  48. package/dist/presentations.d.ts.map +1 -0
  49. package/dist/presentations.js +71 -0
  50. package/dist/presentations.js.map +1 -0
  51. package/example.ts +1 -0
  52. package/package.json +79 -0
  53. package/src/docs/index.ts +1 -0
  54. package/src/docs/kb-update-pipeline.docblock.ts +30 -0
  55. package/src/entities/index.ts +1 -0
  56. package/src/entities/models.ts +53 -0
  57. package/src/events.ts +134 -0
  58. package/src/example.ts +27 -0
  59. package/src/feature.ts +38 -0
  60. package/src/handlers/index.ts +1 -0
  61. package/src/handlers/memory.handlers.test.ts +81 -0
  62. package/src/handlers/memory.handlers.ts +186 -0
  63. package/src/index.ts +15 -0
  64. package/src/kb-update-pipeline.feature.ts +59 -0
  65. package/src/operations/index.ts +1 -0
  66. package/src/operations/pipeline.ts +159 -0
  67. package/src/presentations.ts +69 -0
  68. package/tsconfig.json +19 -0
  69. package/tsconfig.tsbuildinfo +1 -0
  70. package/tsdown.config.js +17 -0
@@ -0,0 +1,140 @@
1
+ //#region src/kb-update-pipeline.feature.ts
2
+ const KbUpdatePipelineFeature = {
3
+ meta: {
4
+ key: "kb-update-pipeline",
5
+ version: 1,
6
+ title: "KB Update Pipeline (HITL)",
7
+ description: "Automation proposes KB patches; humans verify; publishing is blocked until approvals are complete.",
8
+ domain: "knowledge",
9
+ owners: ["@examples"],
10
+ tags: [
11
+ "knowledge",
12
+ "pipeline",
13
+ "hitl",
14
+ "audit",
15
+ "notifications"
16
+ ],
17
+ stability: "experimental"
18
+ },
19
+ operations: [
20
+ {
21
+ key: "kbPipeline.runWatch",
22
+ version: 1
23
+ },
24
+ {
25
+ key: "kbPipeline.createReviewTask",
26
+ version: 1
27
+ },
28
+ {
29
+ key: "kbPipeline.submitDecision",
30
+ version: 1
31
+ },
32
+ {
33
+ key: "kbPipeline.publishIfReady",
34
+ version: 1
35
+ }
36
+ ],
37
+ events: [
38
+ {
39
+ key: "kb.change.detected",
40
+ version: 1
41
+ },
42
+ {
43
+ key: "kb.change.summarized",
44
+ version: 1
45
+ },
46
+ {
47
+ key: "kb.patch.proposed",
48
+ version: 1
49
+ },
50
+ {
51
+ key: "kb.review.requested",
52
+ version: 1
53
+ },
54
+ {
55
+ key: "kb.review.decided",
56
+ version: 1
57
+ }
58
+ ],
59
+ presentations: [
60
+ {
61
+ key: "kb.dashboard",
62
+ version: 1
63
+ },
64
+ {
65
+ key: "kb.review.list",
66
+ version: 1
67
+ },
68
+ {
69
+ key: "kb.review.form",
70
+ version: 1
71
+ }
72
+ ],
73
+ opToPresentation: [
74
+ {
75
+ op: {
76
+ key: "kbPipeline.runWatch",
77
+ version: 1
78
+ },
79
+ pres: {
80
+ key: "kb.dashboard",
81
+ version: 1
82
+ }
83
+ },
84
+ {
85
+ op: {
86
+ key: "kbPipeline.createReviewTask",
87
+ version: 1
88
+ },
89
+ pres: {
90
+ key: "kb.review.list",
91
+ version: 1
92
+ }
93
+ },
94
+ {
95
+ op: {
96
+ key: "kbPipeline.submitDecision",
97
+ version: 1
98
+ },
99
+ pres: {
100
+ key: "kb.review.form",
101
+ version: 1
102
+ }
103
+ }
104
+ ],
105
+ presentationsTargets: [
106
+ {
107
+ key: "kb.dashboard",
108
+ version: 1,
109
+ targets: ["react", "markdown"]
110
+ },
111
+ {
112
+ key: "kb.review.list",
113
+ version: 1,
114
+ targets: ["react", "markdown"]
115
+ },
116
+ {
117
+ key: "kb.review.form",
118
+ version: 1,
119
+ targets: ["react"]
120
+ }
121
+ ],
122
+ capabilities: { requires: [
123
+ {
124
+ key: "identity",
125
+ version: 1
126
+ },
127
+ {
128
+ key: "notifications",
129
+ version: 1
130
+ },
131
+ {
132
+ key: "audit-trail",
133
+ version: 1
134
+ }
135
+ ] }
136
+ };
137
+
138
+ //#endregion
139
+ export { KbUpdatePipelineFeature };
140
+ //# sourceMappingURL=kb-update-pipeline.feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kb-update-pipeline.feature.js","names":["KbUpdatePipelineFeature: FeatureModuleSpec"],"sources":["../src/kb-update-pipeline.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 { key: 'kb.dashboard', version: 1 },\n { key: 'kb.review.list', version: 1 },\n { key: 'kb.review.form', version: 1 },\n ],\n opToPresentation: [\n {\n op: { key: 'kbPipeline.runWatch', version: 1 },\n pres: { key: 'kb.dashboard', version: 1 },\n },\n {\n op: { key: 'kbPipeline.createReviewTask', version: 1 },\n pres: { key: 'kb.review.list', version: 1 },\n },\n {\n op: { key: 'kbPipeline.submitDecision', version: 1 },\n pres: { key: 'kb.review.form', version: 1 },\n },\n ],\n presentationsTargets: [\n { key: 'kb.dashboard', version: 1, targets: ['react', 'markdown'] },\n { key: 'kb.review.list', version: 1, targets: ['react', 'markdown'] },\n { key: 'kb.review.form', version: 1, targets: ['react'] },\n ],\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;EACb;GAAE,KAAK;GAAgB,SAAS;GAAG;EACnC;GAAE,KAAK;GAAkB,SAAS;GAAG;EACrC;GAAE,KAAK;GAAkB,SAAS;GAAG;EACtC;CACD,kBAAkB;EAChB;GACE,IAAI;IAAE,KAAK;IAAuB,SAAS;IAAG;GAC9C,MAAM;IAAE,KAAK;IAAgB,SAAS;IAAG;GAC1C;EACD;GACE,IAAI;IAAE,KAAK;IAA+B,SAAS;IAAG;GACtD,MAAM;IAAE,KAAK;IAAkB,SAAS;IAAG;GAC5C;EACD;GACE,IAAI;IAAE,KAAK;IAA6B,SAAS;IAAG;GACpD,MAAM;IAAE,KAAK;IAAkB,SAAS;IAAG;GAC5C;EACF;CACD,sBAAsB;EACpB;GAAE,KAAK;GAAgB,SAAS;GAAG,SAAS,CAAC,SAAS,WAAW;GAAE;EACnE;GAAE,KAAK;GAAkB,SAAS;GAAG,SAAS,CAAC,SAAS,WAAW;GAAE;EACrE;GAAE,KAAK;GAAkB,SAAS;GAAG,SAAS,CAAC,QAAQ;GAAE;EAC1D;CACD,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"}
@@ -0,0 +1,2 @@
1
+ import { KbPipelineCreateReviewTaskContract, KbPipelinePublishIfReadyContract, KbPipelineRunWatchContract, KbPipelineSubmitDecisionContract } from "./pipeline.js";
2
+ export { KbPipelineCreateReviewTaskContract, KbPipelinePublishIfReadyContract, KbPipelineRunWatchContract, KbPipelineSubmitDecisionContract };
@@ -0,0 +1,3 @@
1
+ import { KbPipelineCreateReviewTaskContract, KbPipelinePublishIfReadyContract, KbPipelineRunWatchContract, KbPipelineSubmitDecisionContract } from "./pipeline.js";
2
+
3
+ export { KbPipelineCreateReviewTaskContract, KbPipelinePublishIfReadyContract, KbPipelineRunWatchContract, KbPipelineSubmitDecisionContract };
@@ -0,0 +1,137 @@
1
+ import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
2
+ import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
3
+
4
+ //#region src/operations/pipeline.d.ts
5
+ declare const KbPipelineRunWatchContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
6
+ jurisdiction: {
7
+ type: _contractspec_lib_schema0.FieldType<string, string>;
8
+ isOptional: false;
9
+ };
10
+ }>, _contractspec_lib_schema0.SchemaModel<{
11
+ candidates: {
12
+ type: _contractspec_lib_schema0.SchemaModel<{
13
+ id: {
14
+ type: _contractspec_lib_schema0.FieldType<string, string>;
15
+ isOptional: false;
16
+ };
17
+ sourceDocumentId: {
18
+ type: _contractspec_lib_schema0.FieldType<string, string>;
19
+ isOptional: false;
20
+ };
21
+ detectedAt: {
22
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
23
+ isOptional: false;
24
+ };
25
+ diffSummary: {
26
+ type: _contractspec_lib_schema0.FieldType<string, string>;
27
+ isOptional: false;
28
+ };
29
+ riskLevel: {
30
+ type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
31
+ isOptional: false;
32
+ };
33
+ }>;
34
+ isArray: true;
35
+ isOptional: false;
36
+ };
37
+ }>, undefined>;
38
+ declare const KbPipelineCreateReviewTaskContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
39
+ changeCandidateId: {
40
+ type: _contractspec_lib_schema0.FieldType<string, string>;
41
+ isOptional: false;
42
+ };
43
+ }>, _contractspec_lib_schema0.SchemaModel<{
44
+ id: {
45
+ type: _contractspec_lib_schema0.FieldType<string, string>;
46
+ isOptional: false;
47
+ };
48
+ changeCandidateId: {
49
+ type: _contractspec_lib_schema0.FieldType<string, string>;
50
+ isOptional: false;
51
+ };
52
+ status: {
53
+ type: _contractspec_lib_schema0.FieldType<string, string>;
54
+ isOptional: false;
55
+ };
56
+ assignedRole: {
57
+ type: _contractspec_lib_schema0.EnumType<[string, string]>;
58
+ isOptional: false;
59
+ };
60
+ decision: {
61
+ type: _contractspec_lib_schema0.EnumType<[string, string]>;
62
+ isOptional: true;
63
+ };
64
+ decidedAt: {
65
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
66
+ isOptional: true;
67
+ };
68
+ decidedBy: {
69
+ type: _contractspec_lib_schema0.FieldType<string, string>;
70
+ isOptional: true;
71
+ };
72
+ }>, undefined>;
73
+ declare const KbPipelineSubmitDecisionContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
74
+ reviewTaskId: {
75
+ type: _contractspec_lib_schema0.FieldType<string, string>;
76
+ isOptional: false;
77
+ };
78
+ decision: {
79
+ type: _contractspec_lib_schema0.EnumType<[string, string]>;
80
+ isOptional: false;
81
+ };
82
+ decidedBy: {
83
+ type: _contractspec_lib_schema0.FieldType<string, string>;
84
+ isOptional: false;
85
+ };
86
+ decidedByRole: {
87
+ type: _contractspec_lib_schema0.FieldType<string, string>;
88
+ isOptional: false;
89
+ };
90
+ }>, _contractspec_lib_schema0.SchemaModel<{
91
+ id: {
92
+ type: _contractspec_lib_schema0.FieldType<string, string>;
93
+ isOptional: false;
94
+ };
95
+ changeCandidateId: {
96
+ type: _contractspec_lib_schema0.FieldType<string, string>;
97
+ isOptional: false;
98
+ };
99
+ status: {
100
+ type: _contractspec_lib_schema0.FieldType<string, string>;
101
+ isOptional: false;
102
+ };
103
+ assignedRole: {
104
+ type: _contractspec_lib_schema0.EnumType<[string, string]>;
105
+ isOptional: false;
106
+ };
107
+ decision: {
108
+ type: _contractspec_lib_schema0.EnumType<[string, string]>;
109
+ isOptional: true;
110
+ };
111
+ decidedAt: {
112
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
113
+ isOptional: true;
114
+ };
115
+ decidedBy: {
116
+ type: _contractspec_lib_schema0.FieldType<string, string>;
117
+ isOptional: true;
118
+ };
119
+ }>, undefined>;
120
+ declare const KbPipelinePublishIfReadyContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
121
+ jurisdiction: {
122
+ type: _contractspec_lib_schema0.FieldType<string, string>;
123
+ isOptional: false;
124
+ };
125
+ }>, _contractspec_lib_schema0.SchemaModel<{
126
+ published: {
127
+ type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
128
+ isOptional: false;
129
+ };
130
+ reason: {
131
+ type: _contractspec_lib_schema0.FieldType<string, string>;
132
+ isOptional: true;
133
+ };
134
+ }>, undefined>;
135
+ //#endregion
136
+ export { KbPipelineCreateReviewTaskContract, KbPipelinePublishIfReadyContract, KbPipelineRunWatchContract, KbPipelineSubmitDecisionContract };
137
+ //# sourceMappingURL=pipeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline.d.ts","names":[],"sources":["../../src/operations/pipeline.ts"],"sourcesContent":[],"mappings":";;;;cAwEa,yDAA0B,wCAAA;;UAarC,yBAAA,CAAA;;EAbW,CAAA;CAaX,CAAA,uCAAA,CAAA;;IAbqC,IAAA,uCAAA,CAAA;;cAAA,yBAAA,CAAA;;;;;;;MAAA,UAAA,EAAA;QAe1B,IAAA,qCAaX,KAAA,EAAA,MAAA,CAAA;QAAA,UAAA,EAAA,KAAA;;MAb6C,WAAA,EAAA;;;;;;;;;;IAAA,UAAA,EAAA,KAAA;EAelC,CAAA;CA8BX,CAAA,EAAA,SAAA,CAAA;cA7CW,iEAAkC,wCAAA;;UAa7C,yBAAA,CAAA;;EAE2C,CAAA;;;UAfE,yBAAA,CAAA;;;;;;;EAeF,MAAA,EAAA;IAgChC,IAAA,qCAwBX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;EAxB2C,YAAA,EAAA;;;;EAAA,QAAA,EAAA;;;;;;;;;;;;;cAhChC,+DAAgC,wCAAA;;UA8B3C,yBAAA,CAAA;;;;;;;;;;;;;;;;;UA9B2C,yBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgChC,+DAAgC,wCAAA;;UAwB3C,yBAAA,CAAA;;;;;UAxB2C,yBAAA,CAAA"}
@@ -0,0 +1,183 @@
1
+ import { ChangeCandidateModel, ReviewDecisionEnum, ReviewTaskModel } from "../entities/models.js";
2
+ import { defineCommand } from "@contractspec/lib.contracts";
3
+ import { ScalarTypeEnum, defineSchemaModel as defineSchemaModel$1 } from "@contractspec/lib.schema";
4
+
5
+ //#region src/operations/pipeline.ts
6
+ const RunWatchInput = defineSchemaModel$1({
7
+ name: "KbPipelineRunWatchInput",
8
+ description: "Trigger a watch cycle for KB sources (demo).",
9
+ fields: { jurisdiction: {
10
+ type: ScalarTypeEnum.String_unsecure(),
11
+ isOptional: false
12
+ } }
13
+ });
14
+ const RunWatchOutput = defineSchemaModel$1({
15
+ name: "KbPipelineRunWatchOutput",
16
+ description: "Output containing detected changes.",
17
+ fields: { candidates: {
18
+ type: ChangeCandidateModel,
19
+ isArray: true,
20
+ isOptional: false
21
+ } }
22
+ });
23
+ const CreateReviewTaskInput = defineSchemaModel$1({
24
+ name: "KbPipelineCreateReviewTaskInput",
25
+ description: "Create a review task for a change candidate.",
26
+ fields: { changeCandidateId: {
27
+ type: ScalarTypeEnum.String_unsecure(),
28
+ isOptional: false
29
+ } }
30
+ });
31
+ const SubmitDecisionInput = defineSchemaModel$1({
32
+ name: "KbPipelineSubmitDecisionInput",
33
+ description: "Submit a decision for a review task.",
34
+ fields: {
35
+ reviewTaskId: {
36
+ type: ScalarTypeEnum.String_unsecure(),
37
+ isOptional: false
38
+ },
39
+ decision: {
40
+ type: ReviewDecisionEnum,
41
+ isOptional: false
42
+ },
43
+ decidedBy: {
44
+ type: ScalarTypeEnum.String_unsecure(),
45
+ isOptional: false
46
+ },
47
+ decidedByRole: {
48
+ type: ScalarTypeEnum.String_unsecure(),
49
+ isOptional: false
50
+ }
51
+ }
52
+ });
53
+ const PublishIfReadyInput = defineSchemaModel$1({
54
+ name: "KbPipelinePublishIfReadyInput",
55
+ description: "Publish snapshot if approvals are satisfied for a jurisdiction.",
56
+ fields: { jurisdiction: {
57
+ type: ScalarTypeEnum.String_unsecure(),
58
+ isOptional: false
59
+ } }
60
+ });
61
+ const PublishIfReadyOutput = defineSchemaModel$1({
62
+ name: "KbPipelinePublishIfReadyOutput",
63
+ description: "Output for publish-if-ready operation.",
64
+ fields: {
65
+ published: {
66
+ type: ScalarTypeEnum.Boolean(),
67
+ isOptional: false
68
+ },
69
+ reason: {
70
+ type: ScalarTypeEnum.String_unsecure(),
71
+ isOptional: true
72
+ }
73
+ }
74
+ });
75
+ const KbPipelineRunWatchContract = defineCommand({
76
+ meta: {
77
+ key: "kbPipeline.runWatch",
78
+ version: 1,
79
+ stability: "experimental",
80
+ owners: ["@examples"],
81
+ tags: [
82
+ "knowledge",
83
+ "pipeline",
84
+ "jobs"
85
+ ],
86
+ description: "Detect source changes and create change candidates.",
87
+ goal: "Automate discovery of updates needing review.",
88
+ context: "Scheduled job or manual trigger in demos."
89
+ },
90
+ io: {
91
+ input: RunWatchInput,
92
+ output: RunWatchOutput
93
+ },
94
+ policy: { auth: "user" }
95
+ });
96
+ const KbPipelineCreateReviewTaskContract = defineCommand({
97
+ meta: {
98
+ key: "kbPipeline.createReviewTask",
99
+ version: 1,
100
+ stability: "experimental",
101
+ owners: ["@examples"],
102
+ tags: [
103
+ "knowledge",
104
+ "pipeline",
105
+ "hitl"
106
+ ],
107
+ description: "Create a review task for a detected change.",
108
+ goal: "Route work to human verifiers.",
109
+ context: "Called after change detection or manual selection."
110
+ },
111
+ io: {
112
+ input: CreateReviewTaskInput,
113
+ output: ReviewTaskModel
114
+ },
115
+ policy: { auth: "user" }
116
+ });
117
+ const KbPipelineSubmitDecisionContract = defineCommand({
118
+ meta: {
119
+ key: "kbPipeline.submitDecision",
120
+ version: 1,
121
+ stability: "experimental",
122
+ owners: ["@examples"],
123
+ tags: [
124
+ "knowledge",
125
+ "pipeline",
126
+ "hitl",
127
+ "rbac"
128
+ ],
129
+ description: "Submit approve/reject decision for a review task.",
130
+ goal: "Ensure humans verify before publishing.",
131
+ context: "Curator/expert reviews and decides."
132
+ },
133
+ io: {
134
+ input: SubmitDecisionInput,
135
+ output: ReviewTaskModel,
136
+ errors: {
137
+ FORBIDDEN_ROLE: {
138
+ description: "Role not allowed to approve the given risk level",
139
+ http: 403,
140
+ gqlCode: "FORBIDDEN_ROLE",
141
+ when: "curator attempts to approve a high-risk change"
142
+ },
143
+ REVIEW_TASK_NOT_FOUND: {
144
+ description: "Review task not found",
145
+ http: 404,
146
+ gqlCode: "REVIEW_TASK_NOT_FOUND",
147
+ when: "reviewTaskId is invalid"
148
+ }
149
+ }
150
+ },
151
+ policy: { auth: "user" }
152
+ });
153
+ const KbPipelinePublishIfReadyContract = defineCommand({
154
+ meta: {
155
+ key: "kbPipeline.publishIfReady",
156
+ version: 1,
157
+ stability: "experimental",
158
+ owners: ["@examples"],
159
+ tags: [
160
+ "knowledge",
161
+ "pipeline",
162
+ "publishing"
163
+ ],
164
+ description: "Publish snapshot if ready (all approvals satisfied).",
165
+ goal: "Prevent publishing until all required approvals exist.",
166
+ context: "Called by job or UI to attempt publish."
167
+ },
168
+ io: {
169
+ input: PublishIfReadyInput,
170
+ output: PublishIfReadyOutput,
171
+ errors: { NOT_READY: {
172
+ description: "Publishing is blocked because approvals are incomplete",
173
+ http: 409,
174
+ gqlCode: "NOT_READY",
175
+ when: "there are open review tasks or unapproved rule versions"
176
+ } }
177
+ },
178
+ policy: { auth: "user" }
179
+ });
180
+
181
+ //#endregion
182
+ export { KbPipelineCreateReviewTaskContract, KbPipelinePublishIfReadyContract, KbPipelineRunWatchContract, KbPipelineSubmitDecisionContract };
183
+ //# sourceMappingURL=pipeline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline.js","names":["defineSchemaModel"],"sources":["../../src/operations/pipeline.ts"],"sourcesContent":["import { defineCommand } from '@contractspec/lib.contracts';\nimport { ScalarTypeEnum, defineSchemaModel } from '@contractspec/lib.schema';\n\nimport {\n ChangeCandidateModel,\n ReviewDecisionEnum,\n ReviewTaskModel,\n} from '../entities/models';\n\nconst RunWatchInput = defineSchemaModel({\n name: 'KbPipelineRunWatchInput',\n description: 'Trigger a watch cycle for KB sources (demo).',\n fields: {\n jurisdiction: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nconst RunWatchOutput = defineSchemaModel({\n name: 'KbPipelineRunWatchOutput',\n description: 'Output containing detected changes.',\n fields: {\n candidates: {\n type: ChangeCandidateModel,\n isArray: true,\n isOptional: false,\n },\n },\n});\n\nconst CreateReviewTaskInput = defineSchemaModel({\n name: 'KbPipelineCreateReviewTaskInput',\n description: 'Create a review task for a change candidate.',\n fields: {\n changeCandidateId: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n },\n});\n\nconst SubmitDecisionInput = defineSchemaModel({\n name: 'KbPipelineSubmitDecisionInput',\n description: 'Submit a decision for a review task.',\n fields: {\n reviewTaskId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n decision: { type: ReviewDecisionEnum, isOptional: false },\n decidedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n decidedByRole: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n },\n});\n\nconst PublishIfReadyInput = defineSchemaModel({\n name: 'KbPipelinePublishIfReadyInput',\n description:\n 'Publish snapshot if approvals are satisfied for a jurisdiction.',\n fields: {\n jurisdiction: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nconst PublishIfReadyOutput = defineSchemaModel({\n name: 'KbPipelinePublishIfReadyOutput',\n description: 'Output for publish-if-ready operation.',\n fields: {\n published: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n reason: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\nexport const KbPipelineRunWatchContract = defineCommand({\n meta: {\n key: 'kbPipeline.runWatch',\n version: 1,\n stability: 'experimental',\n owners: ['@examples'],\n tags: ['knowledge', 'pipeline', 'jobs'],\n description: 'Detect source changes and create change candidates.',\n goal: 'Automate discovery of updates needing review.',\n context: 'Scheduled job or manual trigger in demos.',\n },\n io: { input: RunWatchInput, output: RunWatchOutput },\n policy: { auth: 'user' },\n});\n\nexport const KbPipelineCreateReviewTaskContract = defineCommand({\n meta: {\n key: 'kbPipeline.createReviewTask',\n version: 1,\n stability: 'experimental',\n owners: ['@examples'],\n tags: ['knowledge', 'pipeline', 'hitl'],\n description: 'Create a review task for a detected change.',\n goal: 'Route work to human verifiers.',\n context: 'Called after change detection or manual selection.',\n },\n io: { input: CreateReviewTaskInput, output: ReviewTaskModel },\n policy: { auth: 'user' },\n});\n\nexport const KbPipelineSubmitDecisionContract = defineCommand({\n meta: {\n key: 'kbPipeline.submitDecision',\n version: 1,\n stability: 'experimental',\n owners: ['@examples'],\n tags: ['knowledge', 'pipeline', 'hitl', 'rbac'],\n description: 'Submit approve/reject decision for a review task.',\n goal: 'Ensure humans verify before publishing.',\n context: 'Curator/expert reviews and decides.',\n },\n io: {\n input: SubmitDecisionInput,\n output: ReviewTaskModel,\n errors: {\n FORBIDDEN_ROLE: {\n description: 'Role not allowed to approve the given risk level',\n http: 403,\n gqlCode: 'FORBIDDEN_ROLE',\n when: 'curator attempts to approve a high-risk change',\n },\n REVIEW_TASK_NOT_FOUND: {\n description: 'Review task not found',\n http: 404,\n gqlCode: 'REVIEW_TASK_NOT_FOUND',\n when: 'reviewTaskId is invalid',\n },\n },\n },\n policy: { auth: 'user' },\n});\n\nexport const KbPipelinePublishIfReadyContract = defineCommand({\n meta: {\n key: 'kbPipeline.publishIfReady',\n version: 1,\n stability: 'experimental',\n owners: ['@examples'],\n tags: ['knowledge', 'pipeline', 'publishing'],\n description: 'Publish snapshot if ready (all approvals satisfied).',\n goal: 'Prevent publishing until all required approvals exist.',\n context: 'Called by job or UI to attempt publish.',\n },\n io: {\n input: PublishIfReadyInput,\n output: PublishIfReadyOutput,\n errors: {\n NOT_READY: {\n description: 'Publishing is blocked because approvals are incomplete',\n http: 409,\n gqlCode: 'NOT_READY',\n when: 'there are open review tasks or unapproved rule versions',\n },\n },\n },\n policy: { auth: 'user' },\n});\n"],"mappings":";;;;;AASA,MAAM,gBAAgBA,oBAAkB;CACtC,MAAM;CACN,aAAa;CACb,QAAQ,EACN,cAAc;EAAE,MAAM,eAAe,iBAAiB;EAAE,YAAY;EAAO,EAC5E;CACF,CAAC;AAEF,MAAM,iBAAiBA,oBAAkB;CACvC,MAAM;CACN,aAAa;CACb,QAAQ,EACN,YAAY;EACV,MAAM;EACN,SAAS;EACT,YAAY;EACb,EACF;CACF,CAAC;AAEF,MAAM,wBAAwBA,oBAAkB;CAC9C,MAAM;CACN,aAAa;CACb,QAAQ,EACN,mBAAmB;EACjB,MAAM,eAAe,iBAAiB;EACtC,YAAY;EACb,EACF;CACF,CAAC;AAEF,MAAM,sBAAsBA,oBAAkB;CAC5C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,cAAc;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EAC3E,UAAU;GAAE,MAAM;GAAoB,YAAY;GAAO;EACzD,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,eAAe;GACb,MAAM,eAAe,iBAAiB;GACtC,YAAY;GACb;EACF;CACF,CAAC;AAEF,MAAM,sBAAsBA,oBAAkB;CAC5C,MAAM;CACN,aACE;CACF,QAAQ,EACN,cAAc;EAAE,MAAM,eAAe,iBAAiB;EAAE,YAAY;EAAO,EAC5E;CACF,CAAC;AAEF,MAAM,uBAAuBA,oBAAkB;CAC7C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,WAAW;GAAE,MAAM,eAAe,SAAS;GAAE,YAAY;GAAO;EAChE,QAAQ;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAM;EACrE;CACF,CAAC;AAEF,MAAa,6BAA6B,cAAc;CACtD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,YAAY;EACrB,MAAM;GAAC;GAAa;GAAY;GAAO;EACvC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAAe,QAAQ;EAAgB;CACpD,QAAQ,EAAE,MAAM,QAAQ;CACzB,CAAC;AAEF,MAAa,qCAAqC,cAAc;CAC9D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,YAAY;EACrB,MAAM;GAAC;GAAa;GAAY;GAAO;EACvC,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EAAE,OAAO;EAAuB,QAAQ;EAAiB;CAC7D,QAAQ,EAAE,MAAM,QAAQ;CACzB,CAAC;AAEF,MAAa,mCAAmC,cAAc;CAC5D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,YAAY;EACrB,MAAM;GAAC;GAAa;GAAY;GAAQ;GAAO;EAC/C,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACR,QAAQ;GACN,gBAAgB;IACd,aAAa;IACb,MAAM;IACN,SAAS;IACT,MAAM;IACP;GACD,uBAAuB;IACrB,aAAa;IACb,MAAM;IACN,SAAS;IACT,MAAM;IACP;GACF;EACF;CACD,QAAQ,EAAE,MAAM,QAAQ;CACzB,CAAC;AAEF,MAAa,mCAAmC,cAAc;CAC5D,MAAM;EACJ,KAAK;EACL,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,YAAY;EACrB,MAAM;GAAC;GAAa;GAAY;GAAa;EAC7C,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACR,QAAQ,EACN,WAAW;GACT,aAAa;GACb,MAAM;GACN,SAAS;GACT,MAAM;GACP,EACF;EACF;CACD,QAAQ,EAAE,MAAM,QAAQ;CACzB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { PresentationSpec } from "@contractspec/lib.contracts";
2
+
3
+ //#region src/presentations.d.ts
4
+ declare const KbDashboardPresentation: PresentationSpec;
5
+ declare const KbReviewListPresentation: PresentationSpec;
6
+ declare const KbReviewFormPresentation: PresentationSpec;
7
+ //#endregion
8
+ export { KbDashboardPresentation, KbReviewFormPresentation, KbReviewListPresentation };
9
+ //# sourceMappingURL=presentations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentations.d.ts","names":[],"sources":["../src/presentations.ts"],"sourcesContent":[],"mappings":";;;cAIa,yBAAyB;cAsBzB,0BAA0B;AAtB1B,cA4CA,wBA5CyB,EA4CC,gBAxBtC"}
@@ -0,0 +1,71 @@
1
+ import { ChangeCandidateModel, ReviewTaskModel } from "./entities/models.js";
2
+ import { StabilityEnum } from "@contractspec/lib.contracts";
3
+
4
+ //#region src/presentations.ts
5
+ const KbDashboardPresentation = {
6
+ meta: {
7
+ key: "kb.dashboard",
8
+ version: 1,
9
+ title: "KB Update Dashboard",
10
+ description: "Overview of KB change candidates and review tasks.",
11
+ domain: "knowledge",
12
+ owners: ["@examples"],
13
+ tags: ["dashboard", "knowledge"],
14
+ stability: StabilityEnum.Experimental,
15
+ goal: "Visualize status",
16
+ context: "Dashboard"
17
+ },
18
+ source: {
19
+ type: "component",
20
+ framework: "react",
21
+ componentKey: "KbDashboard",
22
+ props: ChangeCandidateModel
23
+ },
24
+ targets: ["react", "markdown"]
25
+ };
26
+ const KbReviewListPresentation = {
27
+ meta: {
28
+ key: "kb.review.list",
29
+ version: 1,
30
+ title: "Review Tasks",
31
+ description: "List of pending review tasks for the current user.",
32
+ domain: "knowledge",
33
+ owners: ["@examples"],
34
+ tags: ["list", "review"],
35
+ stability: StabilityEnum.Experimental,
36
+ goal: "List tasks",
37
+ context: "Inbox"
38
+ },
39
+ source: {
40
+ type: "component",
41
+ framework: "react",
42
+ componentKey: "ReviewTaskList",
43
+ props: ReviewTaskModel
44
+ },
45
+ targets: ["react", "markdown"]
46
+ };
47
+ const KbReviewFormPresentation = {
48
+ meta: {
49
+ key: "kb.review.form",
50
+ version: 1,
51
+ title: "Review Change",
52
+ description: "Form to approve or reject a KB change candidate.",
53
+ domain: "knowledge",
54
+ owners: ["@examples"],
55
+ tags: ["form", "review"],
56
+ stability: StabilityEnum.Experimental,
57
+ goal: "Review",
58
+ context: "Detail"
59
+ },
60
+ source: {
61
+ type: "component",
62
+ framework: "react",
63
+ componentKey: "ReviewDecisionForm",
64
+ props: ReviewTaskModel
65
+ },
66
+ targets: ["react"]
67
+ };
68
+
69
+ //#endregion
70
+ export { KbDashboardPresentation, KbReviewFormPresentation, KbReviewListPresentation };
71
+ //# sourceMappingURL=presentations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presentations.js","names":["KbDashboardPresentation: PresentationSpec","KbReviewListPresentation: PresentationSpec","KbReviewFormPresentation: PresentationSpec"],"sources":["../src/presentations.ts"],"sourcesContent":["import { StabilityEnum } from '@contractspec/lib.contracts';\nimport type { PresentationSpec } from '@contractspec/lib.contracts';\nimport { ChangeCandidateModel, ReviewTaskModel } from './entities/models';\n\nexport const KbDashboardPresentation: PresentationSpec = {\n meta: {\n key: 'kb.dashboard',\n version: 1,\n title: 'KB Update Dashboard',\n description: 'Overview of KB change candidates and review tasks.',\n domain: 'knowledge',\n owners: ['@examples'],\n tags: ['dashboard', 'knowledge'],\n stability: StabilityEnum.Experimental,\n goal: 'Visualize status',\n context: 'Dashboard',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'KbDashboard',\n props: ChangeCandidateModel, // Simplified props mapping for example\n },\n targets: ['react', 'markdown'],\n};\n\nexport const KbReviewListPresentation: PresentationSpec = {\n meta: {\n key: 'kb.review.list',\n version: 1,\n title: 'Review Tasks',\n description: 'List of pending review tasks for the current user.',\n domain: 'knowledge',\n owners: ['@examples'],\n tags: ['list', 'review'],\n stability: StabilityEnum.Experimental,\n goal: 'List tasks',\n context: 'Inbox',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'ReviewTaskList',\n props: ReviewTaskModel,\n },\n targets: ['react', 'markdown'],\n};\n\nexport const KbReviewFormPresentation: PresentationSpec = {\n meta: {\n key: 'kb.review.form',\n version: 1,\n title: 'Review Change',\n description: 'Form to approve or reject a KB change candidate.',\n domain: 'knowledge',\n owners: ['@examples'],\n tags: ['form', 'review'],\n stability: StabilityEnum.Experimental,\n goal: 'Review',\n context: 'Detail',\n },\n source: {\n type: 'component',\n framework: 'react',\n componentKey: 'ReviewDecisionForm',\n props: ReviewTaskModel,\n },\n targets: ['react'],\n};\n"],"mappings":";;;;AAIA,MAAaA,0BAA4C;CACvD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,YAAY;EACrB,MAAM,CAAC,aAAa,YAAY;EAChC,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC/B;AAED,MAAaC,2BAA6C;CACxD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,YAAY;EACrB,MAAM,CAAC,QAAQ,SAAS;EACxB,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,SAAS,WAAW;CAC/B;AAED,MAAaC,2BAA6C;CACxD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,YAAY;EACrB,MAAM,CAAC,QAAQ,SAAS;EACxB,WAAW,cAAc;EACzB,MAAM;EACN,SAAS;EACV;CACD,QAAQ;EACN,MAAM;EACN,WAAW;EACX,cAAc;EACd,OAAO;EACR;CACD,SAAS,CAAC,QAAQ;CACnB"}
package/example.ts ADDED
@@ -0,0 +1 @@
1
+ export { default } from './src/example';
package/package.json ADDED
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "@contractspec/example.kb-update-pipeline",
3
+ "version": "1.44.0",
4
+ "description": "Example: KB update automation pipeline with HITL review and auditability.",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": "./dist/index.js",
11
+ "./docs": "./dist/docs/index.js",
12
+ "./docs/kb-update-pipeline.docblock": "./dist/docs/kb-update-pipeline.docblock.js",
13
+ "./entities": "./dist/entities/index.js",
14
+ "./entities/models": "./dist/entities/models.js",
15
+ "./events": "./dist/events.js",
16
+ "./example": "./dist/example.js",
17
+ "./feature": "./dist/feature.js",
18
+ "./handlers": "./dist/handlers/index.js",
19
+ "./handlers/memory.handlers": "./dist/handlers/memory.handlers.js",
20
+ "./kb-update-pipeline.feature": "./dist/kb-update-pipeline.feature.js",
21
+ "./operations": "./dist/operations/index.js",
22
+ "./operations/pipeline": "./dist/operations/pipeline.js",
23
+ "./presentations": "./dist/presentations.js",
24
+ "./*": "./*"
25
+ },
26
+ "scripts": {
27
+ "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
28
+ "publish:pkg:canary": "bun publish:pkg --tag canary",
29
+ "build": "bun build:types && bun build:bundle",
30
+ "build:bundle": "tsdown",
31
+ "build:types": "tsc --noEmit",
32
+ "dev": "bun build:bundle --watch",
33
+ "clean": "rimraf dist .turbo",
34
+ "lint": "bun lint:fix",
35
+ "lint:fix": "eslint src --fix",
36
+ "lint:check": "eslint src",
37
+ "test": "bun test"
38
+ },
39
+ "dependencies": {
40
+ "@contractspec/lib.contracts": "1.44.0",
41
+ "@contractspec/lib.identity-rbac": "1.44.0",
42
+ "@contractspec/lib.schema": "1.44.0",
43
+ "@contractspec/module.notifications": "1.44.0",
44
+ "zod": "^4.1.13"
45
+ },
46
+ "devDependencies": {
47
+ "@contractspec/tool.tsdown": "1.44.0",
48
+ "@contractspec/tool.typescript": "1.44.0",
49
+ "tsdown": "^0.18.3",
50
+ "typescript": "^5.9.3"
51
+ },
52
+ "publishConfig": {
53
+ "access": "public",
54
+ "exports": {
55
+ ".": "./dist/index.js",
56
+ "./contracts": "./dist/contracts/index.js",
57
+ "./contracts/pipeline": "./dist/contracts/pipeline.js",
58
+ "./docs": "./dist/docs/index.js",
59
+ "./docs/kb-update-pipeline.docblock": "./dist/docs/kb-update-pipeline.docblock.js",
60
+ "./entities": "./dist/entities/index.js",
61
+ "./entities/models": "./dist/entities/models.js",
62
+ "./events": "./dist/events.js",
63
+ "./example": "./dist/example.js",
64
+ "./feature": "./dist/feature.js",
65
+ "./handlers": "./dist/handlers/index.js",
66
+ "./handlers/memory.handlers": "./dist/handlers/memory.handlers.js",
67
+ "./kb-update-pipeline.feature": "./dist/kb-update-pipeline.feature.js",
68
+ "./*": "./*"
69
+ },
70
+ "registry": "https://registry.npmjs.org/"
71
+ },
72
+ "license": "MIT",
73
+ "repository": {
74
+ "type": "git",
75
+ "url": "https://github.com/lssm-tech/contractspec.git",
76
+ "directory": "packages/examples/kb-update-pipeline"
77
+ },
78
+ "homepage": "https://contractspec.io"
79
+ }
@@ -0,0 +1 @@
1
+ import './kb-update-pipeline.docblock';