@thanh01.pmt/domain-kit 0.5.0 → 0.6.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/README.md +682 -168
- package/dist/assembly/index.d.cts +3 -2
- package/dist/assembly/index.d.ts +3 -2
- package/dist/{chunk-TYXSJUQU.mjs → chunk-4UCXYRM3.mjs} +208 -310
- package/dist/chunk-4UCXYRM3.mjs.map +1 -0
- package/dist/chunk-7A2SG466.mjs +325 -0
- package/dist/chunk-7A2SG466.mjs.map +1 -0
- package/dist/{chunk-E4GCCWJO.mjs → chunk-CGNXGVHV.mjs} +37 -4
- package/dist/chunk-CGNXGVHV.mjs.map +1 -0
- package/dist/{chunk-DRVOV5ZD.mjs → chunk-DSEJLTUO.mjs} +2 -2
- package/dist/chunk-DSEJLTUO.mjs.map +1 -0
- package/dist/{chunk-VCPIWJ7R.mjs → chunk-H4W3YJLK.mjs} +29 -4
- package/dist/chunk-H4W3YJLK.mjs.map +1 -0
- package/dist/chunk-IBVXXVGE.mjs +14 -0
- package/dist/chunk-IBVXXVGE.mjs.map +1 -0
- package/dist/{chunk-G7HLFMD2.mjs → chunk-KHCZYLKM.mjs} +68 -33
- package/dist/chunk-KHCZYLKM.mjs.map +1 -0
- package/dist/chunk-OYSZQVPY.mjs +10 -0
- package/dist/chunk-OYSZQVPY.mjs.map +1 -0
- package/dist/{chunk-BL5NBKPH.mjs → chunk-WD3P5V3B.mjs} +19 -8
- package/dist/chunk-WD3P5V3B.mjs.map +1 -0
- package/dist/{chunk-TWKIVUTQ.mjs → chunk-WKTH3JPA.mjs} +197 -36
- package/dist/chunk-WKTH3JPA.mjs.map +1 -0
- package/dist/{conceptEscalator-ltRLtPhf.d.cts → conceptEscalator-BmMJD8C5.d.cts} +10 -1
- package/dist/{conceptEscalator-YfMKIKCZ.d.ts → conceptEscalator-DMsehscs.d.ts} +10 -1
- package/dist/concepts/index.d.cts +4 -3
- package/dist/concepts/index.d.ts +4 -3
- package/dist/{cpp-CZUPqJt9.d.cts → cpp-vlDl6pCL.d.cts} +4 -4
- package/dist/{cpp-CZUPqJt9.d.ts → cpp-vlDl6pCL.d.ts} +4 -4
- package/dist/{curriculumFeedSchema-DUFwFyr2.d.ts → curriculumFeedSchema-DK-TUAJZ.d.cts} +164 -9
- package/dist/{curriculumFeedSchema-DUFwFyr2.d.cts → curriculumFeedSchema-DK-TUAJZ.d.ts} +164 -9
- package/dist/detector/index.cjs +22 -6
- package/dist/detector/index.cjs.map +1 -1
- package/dist/detector/index.d.cts +2 -2
- package/dist/detector/index.d.ts +2 -2
- package/dist/detector/index.mjs +2 -1
- package/dist/{domainProfileDetector-DHb1T0zB.d.ts → domainProfileDetector-6pjgL-6_.d.ts} +1 -1
- package/dist/{domainProfileDetector-bzugdQmS.d.cts → domainProfileDetector-BsADsuRV.d.cts} +1 -1
- package/dist/{domainProfileSchema-CwT3Ffsw.d.ts → domainProfileSchema-779FGk14.d.cts} +38 -1
- package/dist/{domainProfileSchema-CwT3Ffsw.d.cts → domainProfileSchema-779FGk14.d.ts} +38 -1
- package/dist/extractors/index.d.cts +3 -3
- package/dist/extractors/index.d.ts +3 -3
- package/dist/feed/index.cjs +229 -33
- package/dist/feed/index.cjs.map +1 -1
- package/dist/feed/index.d.cts +32 -2
- package/dist/feed/index.d.ts +32 -2
- package/dist/feed/index.mjs +2 -2
- package/dist/graph/index.cjs +308 -86
- package/dist/graph/index.cjs.map +1 -1
- package/dist/graph/index.d.cts +20 -8
- package/dist/graph/index.d.ts +20 -8
- package/dist/graph/index.mjs +4 -1
- package/dist/{hybridGraphPipeline-dT-bio-3.d.cts → hybridGraphPipeline-B4mamLim.d.cts} +6 -2
- package/dist/{hybridGraphPipeline-DXQDbBEj.d.ts → hybridGraphPipeline-D2_1GUva.d.ts} +6 -2
- package/dist/{hybridGraphSchema-nrUeSwpU.d.ts → hybridGraphSchema-C37qxdTM.d.cts} +16 -3
- package/dist/{hybridGraphSchema-nrUeSwpU.d.cts → hybridGraphSchema-C37qxdTM.d.ts} +16 -3
- package/dist/index.cjs +3948 -3464
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -10
- package/dist/index.d.ts +11 -10
- package/dist/index.mjs +14 -11
- package/dist/{keywordExtractor-BxlGRMHC.d.cts → keywordExtractor-1YAFntsn.d.cts} +1 -1
- package/dist/{keywordExtractor-DU5XRN8-.d.ts → keywordExtractor-DWw8z_AF.d.ts} +1 -1
- package/dist/parsers/index.cjs.map +1 -1
- package/dist/parsers/index.d.cts +1 -1
- package/dist/parsers/index.d.ts +1 -1
- package/dist/parsers/index.mjs +1 -1
- package/dist/pipeline/index.cjs +2436 -1994
- package/dist/pipeline/index.cjs.map +1 -1
- package/dist/pipeline/index.d.cts +19 -10
- package/dist/pipeline/index.d.ts +19 -10
- package/dist/pipeline/index.mjs +11 -8
- package/dist/schemas/index.cjs +63 -2
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +3 -3
- package/dist/schemas/index.d.ts +3 -3
- package/dist/schemas/index.mjs +2 -2
- package/dist/utils/llmClient.cjs +344 -0
- package/dist/utils/llmClient.cjs.map +1 -0
- package/dist/utils/llmClient.d.cts +118 -0
- package/dist/utils/llmClient.d.ts +118 -0
- package/dist/utils/llmClient.mjs +4 -0
- package/dist/utils/llmClient.mjs.map +1 -0
- package/dist/utils/llmTransportResult.cjs +16 -0
- package/dist/utils/llmTransportResult.cjs.map +1 -0
- package/dist/utils/llmTransportResult.d.cts +36 -0
- package/dist/utils/llmTransportResult.d.ts +36 -0
- package/dist/utils/llmTransportResult.mjs +3 -0
- package/dist/utils/llmTransportResult.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-BL5NBKPH.mjs.map +0 -1
- package/dist/chunk-DRVOV5ZD.mjs.map +0 -1
- package/dist/chunk-E4GCCWJO.mjs.map +0 -1
- package/dist/chunk-G7HLFMD2.mjs.map +0 -1
- package/dist/chunk-TWKIVUTQ.mjs.map +0 -1
- package/dist/chunk-TYXSJUQU.mjs.map +0 -1
- package/dist/chunk-VCPIWJ7R.mjs.map +0 -1
- package/dist/curriculumFeedEmitter-T7NUBLAM.mjs +0 -4
- package/dist/curriculumFeedEmitter-T7NUBLAM.mjs.map +0 -1
- package/dist/llmClient-ysPhLjcH.d.cts +0 -16
- package/dist/llmClient-ysPhLjcH.d.ts +0 -16
package/dist/graph/index.d.cts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LlmClientConfig, LlmClient } from '../utils/llmClient.cjs';
|
|
2
2
|
import { d as Feature, c as Step } from '../projectGraphSchema-DnD7orZV.cjs';
|
|
3
|
-
import { K as Keyword } from '../keywordExtractor-
|
|
4
|
-
export { H as Hallucination, j as HybridGraphPipelineOptions, k as HybridGraphPipelineResult, K as KnowledgeGraphPipelineOptions, a as KnowledgeGraphPipelineResult, f as KnowledgeGraphVerificationReport, V as VerifyOptions, i as auditPhasePlan, e as auditSyllabusCoverage, c as breakPrerequisiteCycles, d as detectPrerequisiteCycles, h as generateHybridGraph, g as generateKnowledgeGraph, b as verifyKnowledgeGraph, v as verifyProjectGraph } from '../hybridGraphPipeline-
|
|
5
|
-
export { C as ConceptMapping, E as EscalateOptions, e as escalateAndMapConcepts } from '../conceptEscalator-
|
|
3
|
+
import { K as Keyword } from '../keywordExtractor-1YAFntsn.cjs';
|
|
4
|
+
export { H as Hallucination, j as HybridGraphPipelineOptions, k as HybridGraphPipelineResult, K as KnowledgeGraphPipelineOptions, a as KnowledgeGraphPipelineResult, f as KnowledgeGraphVerificationReport, V as VerifyOptions, i as auditPhasePlan, e as auditSyllabusCoverage, c as breakPrerequisiteCycles, d as detectPrerequisiteCycles, h as generateHybridGraph, g as generateKnowledgeGraph, b as verifyKnowledgeGraph, v as verifyProjectGraph } from '../hybridGraphPipeline-B4mamLim.cjs';
|
|
5
|
+
export { C as ConceptMapping, E as EscalateOptions, e as escalateAndMapConcepts } from '../conceptEscalator-BmMJD8C5.cjs';
|
|
6
|
+
import { LlmTransportResult } from '../utils/llmTransportResult.cjs';
|
|
6
7
|
import 'zod';
|
|
7
|
-
import '../cpp-
|
|
8
|
-
import '../hybridGraphSchema-
|
|
8
|
+
import '../cpp-vlDl6pCL.cjs';
|
|
9
|
+
import '../hybridGraphSchema-C37qxdTM.cjs';
|
|
9
10
|
import '../syllabusParser-MSX1fEzW.cjs';
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -21,6 +22,9 @@ interface ExtractScaffoldOptions {
|
|
|
21
22
|
techStack: string;
|
|
22
23
|
fileList: string[];
|
|
23
24
|
llmConfig?: LlmClientConfig;
|
|
25
|
+
/** Pre-built client from the calling pipeline — reused so every step of one run
|
|
26
|
+
* lands in ONE callLog and the feed can report real provenance. */
|
|
27
|
+
sharedClient?: LlmClient;
|
|
24
28
|
}
|
|
25
29
|
/**
|
|
26
30
|
* Extract the FOUNDATION & SETUP feature (F0) via LLM.
|
|
@@ -49,6 +53,9 @@ interface ExtractOverviewOptions {
|
|
|
49
53
|
fileContentsMap: Map<string, string>;
|
|
50
54
|
astKeywords?: Keyword[];
|
|
51
55
|
llmConfig?: LlmClientConfig;
|
|
56
|
+
/** Pre-built client from the calling pipeline — reused so every step of one run
|
|
57
|
+
* lands in ONE callLog and the feed can report real provenance. */
|
|
58
|
+
sharedClient?: LlmClient;
|
|
52
59
|
}
|
|
53
60
|
/**
|
|
54
61
|
* Extract project overview (features meta) via LLM.
|
|
@@ -77,6 +84,9 @@ interface ExtractStepsOptions {
|
|
|
77
84
|
fileContentsMap: Map<string, string>;
|
|
78
85
|
feature: Feature;
|
|
79
86
|
llmConfig?: LlmClientConfig;
|
|
87
|
+
/** Pre-built client from the calling pipeline — reused so every step of one run
|
|
88
|
+
* lands in ONE callLog and the feed can report real provenance. */
|
|
89
|
+
sharedClient?: LlmClient;
|
|
80
90
|
}
|
|
81
91
|
/**
|
|
82
92
|
* Extract steps for a SINGLE feature via LLM.
|
|
@@ -91,7 +101,7 @@ declare function extractFeatureStepsBatched(goal: string, techStack: string, sdk
|
|
|
91
101
|
kind: string;
|
|
92
102
|
used_in_demo: boolean;
|
|
93
103
|
}>;
|
|
94
|
-
}, fileContentsMap: Map<string, string>, featuresMeta: Feature[], llmConfig?: LlmClientConfig): Promise<Map<string, Step[]>>;
|
|
104
|
+
}, fileContentsMap: Map<string, string>, featuresMeta: Feature[], llmConfig?: LlmClientConfig, sharedClient?: LlmClient): Promise<Map<string, Step[]>>;
|
|
95
105
|
|
|
96
106
|
interface DepthLayerAudit {
|
|
97
107
|
conceptId: string;
|
|
@@ -109,6 +119,8 @@ interface DepthLayerAudit {
|
|
|
109
119
|
codesOk: boolean;
|
|
110
120
|
codeIssues: string[];
|
|
111
121
|
passed: boolean;
|
|
122
|
+
/** Which LLM transport produced the layers under audit (for provenance). */
|
|
123
|
+
transport?: LlmTransportResult;
|
|
112
124
|
}
|
|
113
125
|
declare function auditDepthLayers(concepts: Array<{
|
|
114
126
|
id: string;
|
|
@@ -121,7 +133,7 @@ declare function auditDepthLayers(concepts: Array<{
|
|
|
121
133
|
cio_code?: string;
|
|
122
134
|
sio_codes?: string[];
|
|
123
135
|
keywords?: string[];
|
|
124
|
-
}
|
|
136
|
+
}>, transport?: LlmTransportResult): DepthLayerAudit[];
|
|
125
137
|
|
|
126
138
|
/**
|
|
127
139
|
* LO code + statement standard — calibrated against the production
|
package/dist/graph/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LlmClientConfig, LlmClient } from '../utils/llmClient.js';
|
|
2
2
|
import { d as Feature, c as Step } from '../projectGraphSchema-DnD7orZV.js';
|
|
3
|
-
import { K as Keyword } from '../keywordExtractor-
|
|
4
|
-
export { H as Hallucination, j as HybridGraphPipelineOptions, k as HybridGraphPipelineResult, K as KnowledgeGraphPipelineOptions, a as KnowledgeGraphPipelineResult, f as KnowledgeGraphVerificationReport, V as VerifyOptions, i as auditPhasePlan, e as auditSyllabusCoverage, c as breakPrerequisiteCycles, d as detectPrerequisiteCycles, h as generateHybridGraph, g as generateKnowledgeGraph, b as verifyKnowledgeGraph, v as verifyProjectGraph } from '../hybridGraphPipeline-
|
|
5
|
-
export { C as ConceptMapping, E as EscalateOptions, e as escalateAndMapConcepts } from '../conceptEscalator-
|
|
3
|
+
import { K as Keyword } from '../keywordExtractor-DWw8z_AF.js';
|
|
4
|
+
export { H as Hallucination, j as HybridGraphPipelineOptions, k as HybridGraphPipelineResult, K as KnowledgeGraphPipelineOptions, a as KnowledgeGraphPipelineResult, f as KnowledgeGraphVerificationReport, V as VerifyOptions, i as auditPhasePlan, e as auditSyllabusCoverage, c as breakPrerequisiteCycles, d as detectPrerequisiteCycles, h as generateHybridGraph, g as generateKnowledgeGraph, b as verifyKnowledgeGraph, v as verifyProjectGraph } from '../hybridGraphPipeline-D2_1GUva.js';
|
|
5
|
+
export { C as ConceptMapping, E as EscalateOptions, e as escalateAndMapConcepts } from '../conceptEscalator-DMsehscs.js';
|
|
6
|
+
import { LlmTransportResult } from '../utils/llmTransportResult.js';
|
|
6
7
|
import 'zod';
|
|
7
|
-
import '../cpp-
|
|
8
|
-
import '../hybridGraphSchema-
|
|
8
|
+
import '../cpp-vlDl6pCL.js';
|
|
9
|
+
import '../hybridGraphSchema-C37qxdTM.js';
|
|
9
10
|
import '../syllabusParser-MSX1fEzW.js';
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -21,6 +22,9 @@ interface ExtractScaffoldOptions {
|
|
|
21
22
|
techStack: string;
|
|
22
23
|
fileList: string[];
|
|
23
24
|
llmConfig?: LlmClientConfig;
|
|
25
|
+
/** Pre-built client from the calling pipeline — reused so every step of one run
|
|
26
|
+
* lands in ONE callLog and the feed can report real provenance. */
|
|
27
|
+
sharedClient?: LlmClient;
|
|
24
28
|
}
|
|
25
29
|
/**
|
|
26
30
|
* Extract the FOUNDATION & SETUP feature (F0) via LLM.
|
|
@@ -49,6 +53,9 @@ interface ExtractOverviewOptions {
|
|
|
49
53
|
fileContentsMap: Map<string, string>;
|
|
50
54
|
astKeywords?: Keyword[];
|
|
51
55
|
llmConfig?: LlmClientConfig;
|
|
56
|
+
/** Pre-built client from the calling pipeline — reused so every step of one run
|
|
57
|
+
* lands in ONE callLog and the feed can report real provenance. */
|
|
58
|
+
sharedClient?: LlmClient;
|
|
52
59
|
}
|
|
53
60
|
/**
|
|
54
61
|
* Extract project overview (features meta) via LLM.
|
|
@@ -77,6 +84,9 @@ interface ExtractStepsOptions {
|
|
|
77
84
|
fileContentsMap: Map<string, string>;
|
|
78
85
|
feature: Feature;
|
|
79
86
|
llmConfig?: LlmClientConfig;
|
|
87
|
+
/** Pre-built client from the calling pipeline — reused so every step of one run
|
|
88
|
+
* lands in ONE callLog and the feed can report real provenance. */
|
|
89
|
+
sharedClient?: LlmClient;
|
|
80
90
|
}
|
|
81
91
|
/**
|
|
82
92
|
* Extract steps for a SINGLE feature via LLM.
|
|
@@ -91,7 +101,7 @@ declare function extractFeatureStepsBatched(goal: string, techStack: string, sdk
|
|
|
91
101
|
kind: string;
|
|
92
102
|
used_in_demo: boolean;
|
|
93
103
|
}>;
|
|
94
|
-
}, fileContentsMap: Map<string, string>, featuresMeta: Feature[], llmConfig?: LlmClientConfig): Promise<Map<string, Step[]>>;
|
|
104
|
+
}, fileContentsMap: Map<string, string>, featuresMeta: Feature[], llmConfig?: LlmClientConfig, sharedClient?: LlmClient): Promise<Map<string, Step[]>>;
|
|
95
105
|
|
|
96
106
|
interface DepthLayerAudit {
|
|
97
107
|
conceptId: string;
|
|
@@ -109,6 +119,8 @@ interface DepthLayerAudit {
|
|
|
109
119
|
codesOk: boolean;
|
|
110
120
|
codeIssues: string[];
|
|
111
121
|
passed: boolean;
|
|
122
|
+
/** Which LLM transport produced the layers under audit (for provenance). */
|
|
123
|
+
transport?: LlmTransportResult;
|
|
112
124
|
}
|
|
113
125
|
declare function auditDepthLayers(concepts: Array<{
|
|
114
126
|
id: string;
|
|
@@ -121,7 +133,7 @@ declare function auditDepthLayers(concepts: Array<{
|
|
|
121
133
|
cio_code?: string;
|
|
122
134
|
sio_codes?: string[];
|
|
123
135
|
keywords?: string[];
|
|
124
|
-
}
|
|
136
|
+
}>, transport?: LlmTransportResult): DepthLayerAudit[];
|
|
125
137
|
|
|
126
138
|
/**
|
|
127
139
|
* LO code + statement standard — calibrated against the production
|
package/dist/graph/index.mjs
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import '../chunk-ZKLT27T4.mjs';
|
|
2
|
-
export { CIO_CODE_RE, CONCEPT_CODE_RE, LEARNER_CLAUSE, SIO_CODE_RE, ULO_CODE_RE, assignConceptCodes, auditDepthLayers, auditPhasePlan, auditSyllabusCoverage, breakPrerequisiteCycles, cioActionSlug, cioCode, conceptCodeFromName, detectPrerequisiteCycles, escalateAndMapConcepts, extractFeatureSteps, extractFeatureStepsBatched, extractProjectOverview, extractScaffold, generateHybridGraph, generateKnowledgeGraph, sioCode, standardStatement, techTagFor, uloCode, verifyKnowledgeGraph, verifyProjectGraph } from '../chunk-
|
|
2
|
+
export { CIO_CODE_RE, CONCEPT_CODE_RE, LEARNER_CLAUSE, SIO_CODE_RE, ULO_CODE_RE, assignConceptCodes, auditDepthLayers, auditPhasePlan, auditSyllabusCoverage, breakPrerequisiteCycles, cioActionSlug, cioCode, conceptCodeFromName, detectPrerequisiteCycles, escalateAndMapConcepts, extractFeatureSteps, extractFeatureStepsBatched, extractProjectOverview, extractScaffold, generateHybridGraph, generateKnowledgeGraph, sioCode, standardStatement, techTagFor, uloCode, verifyKnowledgeGraph, verifyProjectGraph } from '../chunk-4UCXYRM3.mjs';
|
|
3
|
+
import '../chunk-7A2SG466.mjs';
|
|
4
|
+
import '../chunk-IBVXXVGE.mjs';
|
|
3
5
|
import '../chunk-T4Y2DE2W.mjs';
|
|
6
|
+
import '../chunk-OYSZQVPY.mjs';
|
|
4
7
|
//# sourceMappingURL=index.mjs.map
|
|
5
8
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as ProjectGraph } from './projectGraphSchema-DnD7orZV.cjs';
|
|
2
|
-
import {
|
|
3
|
-
import { g as KnowledgeGraph, b as Concept, j as HybridGraph, l as DevelopmentPhase } from './hybridGraphSchema-
|
|
2
|
+
import { LlmClientConfig, LlmCallRecord } from './utils/llmClient.cjs';
|
|
3
|
+
import { g as KnowledgeGraph, b as Concept, j as HybridGraph, l as DevelopmentPhase } from './hybridGraphSchema-C37qxdTM.cjs';
|
|
4
4
|
import { P as ParsedSyllabus } from './syllabusParser-MSX1fEzW.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -126,6 +126,8 @@ interface KnowledgeGraphPipelineResult {
|
|
|
126
126
|
knowledgeGraph: KnowledgeGraph;
|
|
127
127
|
warnings: string[];
|
|
128
128
|
verificationReport?: KnowledgeGraphVerificationReport;
|
|
129
|
+
/** Which providers served this graph, and whether any call fell over. */
|
|
130
|
+
provenance: LlmCallRecord[];
|
|
129
131
|
}
|
|
130
132
|
/**
|
|
131
133
|
* Generate a KnowledgeGraph from syllabus/description via LLM.
|
|
@@ -153,6 +155,8 @@ interface HybridGraphPipelineOptions {
|
|
|
153
155
|
interface HybridGraphPipelineResult {
|
|
154
156
|
hybridGraph: HybridGraph;
|
|
155
157
|
warnings: string[];
|
|
158
|
+
/** Which providers served this graph, and whether any call fell over. */
|
|
159
|
+
provenance: LlmCallRecord[];
|
|
156
160
|
}
|
|
157
161
|
declare function generateHybridGraph(options: HybridGraphPipelineOptions): Promise<HybridGraphPipelineResult>;
|
|
158
162
|
declare function auditPhasePlan(plan: Array<Record<string, unknown>>, features: Array<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { u as ProjectGraph } from './projectGraphSchema-DnD7orZV.js';
|
|
2
|
-
import {
|
|
3
|
-
import { g as KnowledgeGraph, b as Concept, j as HybridGraph, l as DevelopmentPhase } from './hybridGraphSchema-
|
|
2
|
+
import { LlmClientConfig, LlmCallRecord } from './utils/llmClient.js';
|
|
3
|
+
import { g as KnowledgeGraph, b as Concept, j as HybridGraph, l as DevelopmentPhase } from './hybridGraphSchema-C37qxdTM.js';
|
|
4
4
|
import { P as ParsedSyllabus } from './syllabusParser-MSX1fEzW.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -126,6 +126,8 @@ interface KnowledgeGraphPipelineResult {
|
|
|
126
126
|
knowledgeGraph: KnowledgeGraph;
|
|
127
127
|
warnings: string[];
|
|
128
128
|
verificationReport?: KnowledgeGraphVerificationReport;
|
|
129
|
+
/** Which providers served this graph, and whether any call fell over. */
|
|
130
|
+
provenance: LlmCallRecord[];
|
|
129
131
|
}
|
|
130
132
|
/**
|
|
131
133
|
* Generate a KnowledgeGraph from syllabus/description via LLM.
|
|
@@ -153,6 +155,8 @@ interface HybridGraphPipelineOptions {
|
|
|
153
155
|
interface HybridGraphPipelineResult {
|
|
154
156
|
hybridGraph: HybridGraph;
|
|
155
157
|
warnings: string[];
|
|
158
|
+
/** Which providers served this graph, and whether any call fell over. */
|
|
159
|
+
provenance: LlmCallRecord[];
|
|
156
160
|
}
|
|
157
161
|
declare function generateHybridGraph(options: HybridGraphPipelineOptions): Promise<HybridGraphPipelineResult>;
|
|
158
162
|
declare function auditPhasePlan(plan: Array<Record<string, unknown>>, features: Array<{
|
|
@@ -2246,9 +2246,22 @@ declare const HybridGraphSchema: z.ZodObject<{
|
|
|
2246
2246
|
}[] | undefined;
|
|
2247
2247
|
}>, "many">>>;
|
|
2248
2248
|
description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
2249
|
+
/** Minutes of PRODUCT work: sum over every feature step. */
|
|
2249
2250
|
total_project_minutes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2251
|
+
/** Minutes of CONCEPT work: sum over EVERY concept in the graph. */
|
|
2250
2252
|
total_concept_minutes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2251
|
-
|
|
2253
|
+
/**
|
|
2254
|
+
* Renamed from `estimated_total_minutes` (2026-10-05) — the old name read
|
|
2255
|
+
* like "the course total" but the number is narrower:
|
|
2256
|
+
* total_project_minutes + (minutes of concepts that HAVE a feature link)
|
|
2257
|
+
* unlinked concepts are deliberately excluded, and per concept the MAXIMUM
|
|
2258
|
+
* link estimate wins, not the sum. Expect this to sit well BELOW
|
|
2259
|
+
* total_project_minutes + total_concept_minutes.
|
|
2260
|
+
*
|
|
2261
|
+
* The figure the phase planner actually commits to is
|
|
2262
|
+
* total_project_minutes + total_concept_minutes (see decomposePhases).
|
|
2263
|
+
*/
|
|
2264
|
+
linked_prereq_minutes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2252
2265
|
}, "strip", z.ZodTypeAny, {
|
|
2253
2266
|
type: "hybrid_graph";
|
|
2254
2267
|
description: string;
|
|
@@ -2539,7 +2552,7 @@ declare const HybridGraphSchema: z.ZodObject<{
|
|
|
2539
2552
|
}[];
|
|
2540
2553
|
total_project_minutes: number;
|
|
2541
2554
|
total_concept_minutes: number;
|
|
2542
|
-
|
|
2555
|
+
linked_prereq_minutes: number;
|
|
2543
2556
|
}, {
|
|
2544
2557
|
knowledge_graph: {
|
|
2545
2558
|
subject: {
|
|
@@ -2830,7 +2843,7 @@ declare const HybridGraphSchema: z.ZodObject<{
|
|
|
2830
2843
|
}[] | undefined;
|
|
2831
2844
|
total_project_minutes?: number | undefined;
|
|
2832
2845
|
total_concept_minutes?: number | undefined;
|
|
2833
|
-
|
|
2846
|
+
linked_prereq_minutes?: number | undefined;
|
|
2834
2847
|
}>;
|
|
2835
2848
|
type HybridGraph = z.infer<typeof HybridGraphSchema>;
|
|
2836
2849
|
type ProjectConceptLink = z.infer<typeof ProjectConceptLinkSchema>;
|
|
@@ -2246,9 +2246,22 @@ declare const HybridGraphSchema: z.ZodObject<{
|
|
|
2246
2246
|
}[] | undefined;
|
|
2247
2247
|
}>, "many">>>;
|
|
2248
2248
|
description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
2249
|
+
/** Minutes of PRODUCT work: sum over every feature step. */
|
|
2249
2250
|
total_project_minutes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2251
|
+
/** Minutes of CONCEPT work: sum over EVERY concept in the graph. */
|
|
2250
2252
|
total_concept_minutes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2251
|
-
|
|
2253
|
+
/**
|
|
2254
|
+
* Renamed from `estimated_total_minutes` (2026-10-05) — the old name read
|
|
2255
|
+
* like "the course total" but the number is narrower:
|
|
2256
|
+
* total_project_minutes + (minutes of concepts that HAVE a feature link)
|
|
2257
|
+
* unlinked concepts are deliberately excluded, and per concept the MAXIMUM
|
|
2258
|
+
* link estimate wins, not the sum. Expect this to sit well BELOW
|
|
2259
|
+
* total_project_minutes + total_concept_minutes.
|
|
2260
|
+
*
|
|
2261
|
+
* The figure the phase planner actually commits to is
|
|
2262
|
+
* total_project_minutes + total_concept_minutes (see decomposePhases).
|
|
2263
|
+
*/
|
|
2264
|
+
linked_prereq_minutes: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2252
2265
|
}, "strip", z.ZodTypeAny, {
|
|
2253
2266
|
type: "hybrid_graph";
|
|
2254
2267
|
description: string;
|
|
@@ -2539,7 +2552,7 @@ declare const HybridGraphSchema: z.ZodObject<{
|
|
|
2539
2552
|
}[];
|
|
2540
2553
|
total_project_minutes: number;
|
|
2541
2554
|
total_concept_minutes: number;
|
|
2542
|
-
|
|
2555
|
+
linked_prereq_minutes: number;
|
|
2543
2556
|
}, {
|
|
2544
2557
|
knowledge_graph: {
|
|
2545
2558
|
subject: {
|
|
@@ -2830,7 +2843,7 @@ declare const HybridGraphSchema: z.ZodObject<{
|
|
|
2830
2843
|
}[] | undefined;
|
|
2831
2844
|
total_project_minutes?: number | undefined;
|
|
2832
2845
|
total_concept_minutes?: number | undefined;
|
|
2833
|
-
|
|
2846
|
+
linked_prereq_minutes?: number | undefined;
|
|
2834
2847
|
}>;
|
|
2835
2848
|
type HybridGraph = z.infer<typeof HybridGraphSchema>;
|
|
2836
2849
|
type ProjectConceptLink = z.infer<typeof ProjectConceptLinkSchema>;
|