@contractspec/bundle.lifecycle-managed 1.46.1 → 1.47.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle-events.js","names":[
|
|
1
|
+
{"version":3,"file":"lifecycle-events.js","names":[],"sources":["../../src/events/lifecycle-events.ts"],"sourcesContent":["import type { LifecyclePipelineEvent } from '@contractspec/lib.observability';\nimport { lifecycleEventNames } from '@contractspec/lib.analytics';\n\nexport interface ManagedLifecycleEvent {\n name: string;\n properties: Record<string, unknown>;\n}\n\nexport type LifecycleEventPublisher = (\n event: ManagedLifecycleEvent\n) => Promise<void> | void;\n\nexport class LifecycleEventBridge {\n constructor(private readonly publisher?: LifecycleEventPublisher) {}\n\n forward(event: LifecyclePipelineEvent) {\n if (!this.publisher) return;\n switch (event.type) {\n case 'assessment.recorded':\n this.publisher({\n name: lifecycleEventNames.assessmentRun,\n properties: {\n tenantId: event.payload.tenantId,\n stage: event.payload.stage,\n },\n });\n break;\n case 'stage.changed':\n this.publisher({\n name: lifecycleEventNames.stageChanged,\n properties: {\n tenantId: event.payload.tenantId,\n previousStage: event.payload.previousStage,\n nextStage: event.payload.nextStage,\n },\n });\n break;\n case 'confidence.low':\n this.publisher({\n name: `${lifecycleEventNames.assessmentRun}.low_confidence`,\n properties: {\n tenantId: event.payload.tenantId,\n confidence: event.payload.confidence,\n },\n });\n break;\n }\n }\n}\n"],"mappings":";;;AAYA,IAAa,uBAAb,MAAkC;CAChC,YAAY,AAAiB,WAAqC;EAArC;;CAE7B,QAAQ,OAA+B;AACrC,MAAI,CAAC,KAAK,UAAW;AACrB,UAAQ,MAAM,MAAd;GACE,KAAK;AACH,SAAK,UAAU;KACb,MAAM,oBAAoB;KAC1B,YAAY;MACV,UAAU,MAAM,QAAQ;MACxB,OAAO,MAAM,QAAQ;MACtB;KACF,CAAC;AACF;GACF,KAAK;AACH,SAAK,UAAU;KACb,MAAM,oBAAoB;KAC1B,YAAY;MACV,UAAU,MAAM,QAAQ;MACxB,eAAe,MAAM,QAAQ;MAC7B,WAAW,MAAM,QAAQ;MAC1B;KACF,CAAC;AACF;GACF,KAAK;AACH,SAAK,UAAU;KACb,MAAM,GAAG,oBAAoB,cAAc;KAC3C,YAAY;MACV,UAAU,MAAM,QAAQ;MACxB,YAAY,MAAM,QAAQ;MAC3B;KACF,CAAC;AACF"}
|
|
@@ -5,11 +5,11 @@ import "./tech/lifecycle-stage-system.docblock.js";
|
|
|
5
5
|
import "./tech/presentation-runtime.docblock.js";
|
|
6
6
|
import "./tech/auth/better-auth-nextjs.docblock.js";
|
|
7
7
|
import "./tech/schema/README.docblock.js";
|
|
8
|
-
import "./tech/templates/runtime.docblock.js";
|
|
9
8
|
import "../workflow/overview.docblock.js";
|
|
10
9
|
import "./tech/mcp-endpoints.docblock.js";
|
|
11
10
|
import "./tech/vscode-extension.docblock.js";
|
|
12
11
|
import "./tech/telemetry-ingest.docblock.js";
|
|
12
|
+
import "./tech/contracts/README.docblock.js";
|
|
13
13
|
import "./tech/contracts/openapi-export.docblock.js";
|
|
14
14
|
import "./tech/contracts/openapi-import.docblock.js";
|
|
15
15
|
import "../workspace-config/workspace-config.docblock.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/bundle.lifecycle-managed",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.47.0",
|
|
4
4
|
"description": "Lifecycle management bundle with analytics and AI advisor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -11,8 +11,6 @@
|
|
|
11
11
|
"typescript"
|
|
12
12
|
],
|
|
13
13
|
"type": "module",
|
|
14
|
-
"main": "./dist/index.js",
|
|
15
|
-
"module": "./dist/index.js",
|
|
16
14
|
"types": "./dist/index.d.ts",
|
|
17
15
|
"files": [
|
|
18
16
|
"dist",
|
|
@@ -29,20 +27,20 @@
|
|
|
29
27
|
"lint": "bun lint:fix",
|
|
30
28
|
"lint:fix": "eslint src --fix",
|
|
31
29
|
"lint:check": "eslint src",
|
|
32
|
-
"test": "bun
|
|
30
|
+
"test": "bun test"
|
|
33
31
|
},
|
|
34
32
|
"dependencies": {
|
|
35
|
-
"@contractspec/lib.ai-agent": "1.
|
|
36
|
-
"@contractspec/lib.analytics": "1.
|
|
37
|
-
"@contractspec/lib.lifecycle": "1.
|
|
38
|
-
"@contractspec/lib.observability": "1.
|
|
39
|
-
"@contractspec/module.lifecycle-advisor": "1.
|
|
40
|
-
"@contractspec/module.lifecycle-core": "1.
|
|
33
|
+
"@contractspec/lib.ai-agent": "1.47.0",
|
|
34
|
+
"@contractspec/lib.analytics": "1.47.0",
|
|
35
|
+
"@contractspec/lib.lifecycle": "1.47.0",
|
|
36
|
+
"@contractspec/lib.observability": "1.47.0",
|
|
37
|
+
"@contractspec/module.lifecycle-advisor": "1.47.0",
|
|
38
|
+
"@contractspec/module.lifecycle-core": "1.47.0"
|
|
41
39
|
},
|
|
42
40
|
"devDependencies": {
|
|
43
|
-
"@contractspec/tool.tsdown": "1.
|
|
44
|
-
"@contractspec/tool.typescript": "1.
|
|
45
|
-
"tsdown": "^0.
|
|
41
|
+
"@contractspec/tool.tsdown": "1.47.0",
|
|
42
|
+
"@contractspec/tool.typescript": "1.47.0",
|
|
43
|
+
"tsdown": "^0.19.0",
|
|
46
44
|
"typescript": "^5.9.3"
|
|
47
45
|
},
|
|
48
46
|
"exports": {
|
|
File without changes
|