@lssm/example.kb-update-pipeline 0.0.0-canary-20251216035145 → 0.0.0-canary-20251216062412
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.log +5 -4
- package/CHANGELOG.md +5 -5
- package/README.md +2 -0
- package/dist/feature.js +1 -1
- package/dist/index.js +1 -1
- package/dist/kb-update-pipeline.feature.js +1 -0
- package/package.json +3 -1
- package/src/feature.ts +1 -1
- package/src/index.ts +1 -1
- package/src/kb-update-pipeline.feature.ts +37 -0
- package/tsconfig.json +2 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/tsdown.config.js +2 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -2,22 +2,23 @@ $ bun build:bundle && bun build:types
|
|
|
2
2
|
$ tsdown
|
|
3
3
|
[34mℹ[39m tsdown [2mv0.17.4[22m powered by rolldown [2mv1.0.0-beta.53[22m
|
|
4
4
|
[34mℹ[39m config file: [4m/home/runner/work/contractspec/contractspec/packages/examples/kb-update-pipeline/tsdown.config.js[24m
|
|
5
|
-
[34mℹ[39m entry: [34msrc/events.ts, src/example.ts, src/feature.ts, src/index.ts, src/
|
|
5
|
+
[34mℹ[39m entry: [34msrc/events.ts, src/example.ts, src/feature.ts, src/index.ts, src/kb-update-pipeline.feature.ts, src/docs/index.ts, src/docs/kb-update-pipeline.docblock.ts, src/entities/index.ts, src/entities/models.ts, src/contracts/index.ts, src/contracts/pipeline.ts, src/handlers/index.ts, src/handlers/memory.handlers.ts[39m
|
|
6
6
|
[34mℹ[39m target: [34mesnext[39m
|
|
7
7
|
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
8
8
|
[34mℹ[39m Build start
|
|
9
9
|
[34mℹ[39m [2mdist/[22m[1mcontracts/pipeline.js[22m [2m3.44 kB[22m [2m│ gzip: 1.18 kB[22m
|
|
10
10
|
[34mℹ[39m [2mdist/[22m[1mhandlers/memory.handlers.js[22m [2m2.27 kB[22m [2m│ gzip: 0.87 kB[22m
|
|
11
11
|
[34mℹ[39m [2mdist/[22m[1mevents.js[22m [2m2.02 kB[22m [2m│ gzip: 0.54 kB[22m
|
|
12
|
-
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m1.
|
|
12
|
+
[34mℹ[39m [2mdist/[22m[1mindex.js[22m [2m1.32 kB[22m [2m│ gzip: 0.46 kB[22m
|
|
13
13
|
[34mℹ[39m [2mdist/[22m[1mdocs/kb-update-pipeline.docblock.js[22m [2m1.26 kB[22m [2m│ gzip: 0.64 kB[22m
|
|
14
14
|
[34mℹ[39m [2mdist/[22m[1mentities/models.js[22m [2m1.11 kB[22m [2m│ gzip: 0.44 kB[22m
|
|
15
15
|
[34mℹ[39m [2mdist/[22m[1mfeature.js[22m [2m0.92 kB[22m [2m│ gzip: 0.45 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22m[1mkb-update-pipeline.feature.js[22m [2m0.92 kB[22m [2m│ gzip: 0.45 kB[22m
|
|
16
17
|
[34mℹ[39m [2mdist/[22m[1mexample.js[22m [2m0.58 kB[22m [2m│ gzip: 0.36 kB[22m
|
|
17
18
|
[34mℹ[39m [2mdist/[22m[1mcontracts/index.js[22m [2m0.33 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
18
19
|
[34mℹ[39m [2mdist/[22m[1mentities/index.js[22m [2m0.28 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
19
20
|
[34mℹ[39m [2mdist/[22m[1mhandlers/index.js[22m [2m0.17 kB[22m [2m│ gzip: 0.11 kB[22m
|
|
20
21
|
[34mℹ[39m [2mdist/[22m[1mdocs/index.js[22m [2m0.04 kB[22m [2m│ gzip: 0.06 kB[22m
|
|
21
|
-
[34mℹ[39m
|
|
22
|
-
[32m✔[39m Build complete in [
|
|
22
|
+
[34mℹ[39m 13 files, total: 14.66 kB
|
|
23
|
+
[32m✔[39m Build complete in [32m48ms[39m
|
|
23
24
|
$ tsc --noEmit
|
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# @lssm/example.kb-update-pipeline
|
|
2
2
|
|
|
3
|
-
## 0.0.0-canary-
|
|
3
|
+
## 0.0.0-canary-20251216062412
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Updated dependencies [3086383]
|
|
8
|
-
- @lssm/lib.contracts@0.0.0-canary-
|
|
9
|
-
- @lssm/lib.schema@0.0.0-canary-
|
|
10
|
-
- @lssm/lib.identity-rbac@0.0.0-canary-
|
|
11
|
-
- @lssm/module.notifications@0.0.0-canary-
|
|
8
|
+
- @lssm/lib.contracts@0.0.0-canary-20251216062412
|
|
9
|
+
- @lssm/lib.schema@0.0.0-canary-20251216062412
|
|
10
|
+
- @lssm/lib.identity-rbac@0.0.0-canary-20251216062412
|
|
11
|
+
- @lssm/module.notifications@0.0.0-canary-20251216062412
|
package/dist/feature.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e={meta:{key:`kb-update-pipeline`,title:`KB Update Pipeline (HITL)`,description:`Automation proposes KB patches; humans verify; publishing is blocked until approvals are complete.`,domain:`knowledge`,owners:[
|
|
1
|
+
const e={meta:{key:`kb-update-pipeline`,title:`KB Update Pipeline (HITL)`,description:`Automation proposes KB patches; humans verify; publishing is blocked until approvals are complete.`,domain:`knowledge`,owners:[`@examples`],tags:[`knowledge`,`pipeline`,`hitl`,`audit`,`notifications`],stability:`experimental`},operations:[{name:`kbPipeline.runWatch`,version:1},{name:`kbPipeline.createReviewTask`,version:1},{name:`kbPipeline.submitDecision`,version:1},{name:`kbPipeline.publishIfReady`,version:1}],events:[{name:`kb.change.detected`,version:1},{name:`kb.change.summarized`,version:1},{name:`kb.patch.proposed`,version:1},{name:`kb.review.requested`,version:1},{name:`kb.review.decided`,version:1}],presentations:[],opToPresentation:[],presentationsTargets:[],capabilities:{requires:[{key:`identity`,version:1},{key:`notifications`,version:1},{key:`audit-trail`,version:1}]}};export{e as KbUpdatePipelineFeature};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{KbChangeDetectedEvent as e,KbChangeSummarizedEvent as t,KbPatchProposedEvent as n,KbReviewDecidedEvent as r,KbReviewRequestedEvent as i}from"./events.js";import a from"./example.js";import{
|
|
1
|
+
import{KbChangeDetectedEvent as e,KbChangeSummarizedEvent as t,KbPatchProposedEvent as n,KbReviewDecidedEvent as r,KbReviewRequestedEvent as i}from"./events.js";import a from"./example.js";import{ChangeCandidateModel as o,ChangeRiskLevelEnum as s,ReviewAssignedRoleEnum as c,ReviewDecisionEnum as l,ReviewTaskModel as u}from"./entities/models.js";import"./entities/index.js";import{KbPipelineCreateReviewTaskContract as d,KbPipelinePublishIfReadyContract as f,KbPipelineRunWatchContract as p,KbPipelineSubmitDecisionContract as m}from"./contracts/pipeline.js";import"./contracts/index.js";import{createPipelineMemoryHandlers as h,createPipelineMemoryStore as g}from"./handlers/memory.handlers.js";import{KbUpdatePipelineFeature as _}from"./kb-update-pipeline.feature.js";import"./docs/index.js";export{o as ChangeCandidateModel,s as ChangeRiskLevelEnum,e as KbChangeDetectedEvent,t as KbChangeSummarizedEvent,n as KbPatchProposedEvent,d as KbPipelineCreateReviewTaskContract,f as KbPipelinePublishIfReadyContract,p as KbPipelineRunWatchContract,m as KbPipelineSubmitDecisionContract,r as KbReviewDecidedEvent,i as KbReviewRequestedEvent,_ as KbUpdatePipelineFeature,c as ReviewAssignedRoleEnum,l as ReviewDecisionEnum,u as ReviewTaskModel,h as createPipelineMemoryHandlers,g as createPipelineMemoryStore,a as example};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={meta:{key:`kb-update-pipeline`,title:`KB Update Pipeline (HITL)`,description:`Automation proposes KB patches; humans verify; publishing is blocked until approvals are complete.`,domain:`knowledge`,owners:[`examples`],tags:[`knowledge`,`pipeline`,`hitl`,`audit`,`notifications`],stability:`experimental`},operations:[{name:`kbPipeline.runWatch`,version:1},{name:`kbPipeline.createReviewTask`,version:1},{name:`kbPipeline.submitDecision`,version:1},{name:`kbPipeline.publishIfReady`,version:1}],events:[{name:`kb.change.detected`,version:1},{name:`kb.change.summarized`,version:1},{name:`kb.patch.proposed`,version:1},{name:`kb.review.requested`,version:1},{name:`kb.review.decided`,version:1}],presentations:[],opToPresentation:[],presentationsTargets:[],capabilities:{requires:[{key:`identity`,version:1},{key:`notifications`,version:1},{key:`audit-trail`,version:1}]}};export{e as KbUpdatePipelineFeature};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/example.kb-update-pipeline",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251216062412",
|
|
4
4
|
"description": "Example: KB update automation pipeline with HITL review and auditability.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"./feature": "./src/feature.ts",
|
|
20
20
|
"./handlers": "./src/handlers/index.ts",
|
|
21
21
|
"./handlers/memory.handlers": "./src/handlers/memory.handlers.ts",
|
|
22
|
+
"./kb-update-pipeline.feature": "./src/kb-update-pipeline.feature.ts",
|
|
22
23
|
"./*": "./*"
|
|
23
24
|
},
|
|
24
25
|
"scripts": {
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
"./feature": "./dist/feature.js",
|
|
61
62
|
"./handlers": "./dist/handlers/index.js",
|
|
62
63
|
"./handlers/memory.handlers": "./dist/handlers/memory.handlers.js",
|
|
64
|
+
"./kb-update-pipeline.feature": "./dist/kb-update-pipeline.feature.js",
|
|
63
65
|
"./*": "./*"
|
|
64
66
|
}
|
|
65
67
|
}
|
package/src/feature.ts
CHANGED
|
@@ -7,7 +7,7 @@ export const KbUpdatePipelineFeature: FeatureModuleSpec = {
|
|
|
7
7
|
description:
|
|
8
8
|
'Automation proposes KB patches; humans verify; publishing is blocked until approvals are complete.',
|
|
9
9
|
domain: 'knowledge',
|
|
10
|
-
owners: ['examples'],
|
|
10
|
+
owners: ['@examples'],
|
|
11
11
|
tags: ['knowledge', 'pipeline', 'hitl', 'audit', 'notifications'],
|
|
12
12
|
stability: 'experimental',
|
|
13
13
|
},
|
package/src/index.ts
CHANGED
|
@@ -7,7 +7,7 @@ export * from './entities';
|
|
|
7
7
|
export * from './contracts';
|
|
8
8
|
export * from './events';
|
|
9
9
|
export * from './handlers';
|
|
10
|
-
export * from './feature';
|
|
10
|
+
export * from './kb-update-pipeline.feature';
|
|
11
11
|
export { default as example } from './example';
|
|
12
12
|
|
|
13
13
|
import './docs';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { FeatureModuleSpec } from '@lssm/lib.contracts';
|
|
2
|
+
|
|
3
|
+
export const KbUpdatePipelineFeature: FeatureModuleSpec = {
|
|
4
|
+
meta: {
|
|
5
|
+
key: 'kb-update-pipeline',
|
|
6
|
+
title: 'KB Update Pipeline (HITL)',
|
|
7
|
+
description:
|
|
8
|
+
'Automation proposes KB patches; humans verify; publishing is blocked until approvals are complete.',
|
|
9
|
+
domain: 'knowledge',
|
|
10
|
+
owners: ['examples'],
|
|
11
|
+
tags: ['knowledge', 'pipeline', 'hitl', 'audit', 'notifications'],
|
|
12
|
+
stability: 'experimental',
|
|
13
|
+
},
|
|
14
|
+
operations: [
|
|
15
|
+
{ name: 'kbPipeline.runWatch', version: 1 },
|
|
16
|
+
{ name: 'kbPipeline.createReviewTask', version: 1 },
|
|
17
|
+
{ name: 'kbPipeline.submitDecision', version: 1 },
|
|
18
|
+
{ name: 'kbPipeline.publishIfReady', version: 1 },
|
|
19
|
+
],
|
|
20
|
+
events: [
|
|
21
|
+
{ name: 'kb.change.detected', version: 1 },
|
|
22
|
+
{ name: 'kb.change.summarized', version: 1 },
|
|
23
|
+
{ name: 'kb.patch.proposed', version: 1 },
|
|
24
|
+
{ name: 'kb.review.requested', version: 1 },
|
|
25
|
+
{ name: 'kb.review.decided', version: 1 },
|
|
26
|
+
],
|
|
27
|
+
presentations: [],
|
|
28
|
+
opToPresentation: [],
|
|
29
|
+
presentationsTargets: [],
|
|
30
|
+
capabilities: {
|
|
31
|
+
requires: [
|
|
32
|
+
{ key: 'identity', version: 1 },
|
|
33
|
+
{ key: 'notifications', version: 1 },
|
|
34
|
+
{ key: 'audit-trail', version: 1 },
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
};
|