@thanh01.pmt/domain-kit 0.6.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/LICENSE +21 -0
- package/README.md +10 -10
- package/dist/assembly/index.d.cts +3 -2
- package/dist/assembly/index.d.ts +3 -2
- package/dist/{chunk-2OGNQUXC.mjs → chunk-4UCXYRM3.mjs} +152 -303
- 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-DRVOV5ZD.mjs → chunk-DSEJLTUO.mjs} +2 -2
- package/dist/chunk-DSEJLTUO.mjs.map +1 -0
- package/dist/{chunk-ERDTHXQA.mjs → chunk-H4W3YJLK.mjs} +10 -3
- 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-5OMSYKQP.mjs → chunk-KHCZYLKM.mjs} +33 -18
- package/dist/chunk-KHCZYLKM.mjs.map +1 -0
- package/dist/{chunk-67GXK3ZE.mjs → chunk-WD3P5V3B.mjs} +3 -2
- package/dist/chunk-WD3P5V3B.mjs.map +1 -0
- package/dist/{conceptEscalator-DPrs4PwC.d.cts → conceptEscalator-BmMJD8C5.d.cts} +1 -1
- package/dist/{conceptEscalator-BCsw0ys_.d.ts → conceptEscalator-DMsehscs.d.ts} +1 -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/detector/index.cjs +1 -0
- 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 +1 -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.cts → domainProfileSchema-779FGk14.d.cts} +38 -1
- package/dist/{domainProfileSchema-CwT3Ffsw.d.ts → 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.d.cts +1 -1
- package/dist/feed/index.d.ts +1 -1
- package/dist/graph/index.cjs +235 -57
- package/dist/graph/index.cjs.map +1 -1
- package/dist/graph/index.d.cts +9 -6
- package/dist/graph/index.d.ts +9 -6
- package/dist/graph/index.mjs +3 -1
- package/dist/{hybridGraphPipeline-CocfYe4d.d.cts → hybridGraphPipeline-B4mamLim.d.cts} +1 -1
- package/dist/{hybridGraphPipeline-9dRKJj7r.d.ts → hybridGraphPipeline-D2_1GUva.d.ts} +1 -1
- package/dist/index.cjs +277 -68
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -8
- package/dist/index.d.ts +9 -8
- package/dist/index.mjs +11 -9
- 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 +261 -68
- package/dist/pipeline/index.cjs.map +1 -1
- package/dist/pipeline/index.d.cts +10 -9
- package/dist/pipeline/index.d.ts +10 -9
- package/dist/pipeline/index.mjs +8 -6
- package/dist/schemas/index.cjs +8 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +2 -2
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.mjs +1 -1
- 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 +9 -10
- package/dist/chunk-2OGNQUXC.mjs.map +0 -1
- package/dist/chunk-5OMSYKQP.mjs.map +0 -1
- package/dist/chunk-67GXK3ZE.mjs.map +0 -1
- package/dist/chunk-DRVOV5ZD.mjs.map +0 -1
- package/dist/chunk-ERDTHXQA.mjs.map +0 -1
- package/dist/llmClient-CX5uUiQ1.d.cts +0 -60
- package/dist/llmClient-CX5uUiQ1.d.ts +0 -60
- package/dist/{curriculumFeedSchema-DYayelAA.d.ts → curriculumFeedSchema-DK-TUAJZ.d.cts} +8 -8
- package/dist/{curriculumFeedSchema-DYayelAA.d.cts → curriculumFeedSchema-DK-TUAJZ.d.ts} +8 -8
|
@@ -27,6 +27,20 @@ declare const DetectionConfidenceSchema: z.ZodObject<{
|
|
|
27
27
|
domainCategory?: number | undefined;
|
|
28
28
|
learningMode?: number | undefined;
|
|
29
29
|
}>;
|
|
30
|
+
declare const AmbiguousDomainSchema: z.ZodObject<{
|
|
31
|
+
domain1: z.ZodEnum<["software", "hardware_iot", "3d_design", "math", "science", "language", "arts", "research", "business", "other"]>;
|
|
32
|
+
domain2: z.ZodEnum<["software", "hardware_iot", "3d_design", "math", "science", "language", "arts", "research", "business", "other"]>;
|
|
33
|
+
reason: z.ZodString;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
domain1: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
36
|
+
domain2: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
37
|
+
reason: string;
|
|
38
|
+
}, {
|
|
39
|
+
domain1: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
40
|
+
domain2: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
41
|
+
reason: string;
|
|
42
|
+
}>;
|
|
43
|
+
type AmbiguousDomain = z.infer<typeof AmbiguousDomainSchema>;
|
|
30
44
|
declare const DomainProfileSchema: z.ZodObject<{
|
|
31
45
|
inputType: z.ZodEnum<["repository", "description", "syllabus", "files", "mixed"]>;
|
|
32
46
|
domainCategory: z.ZodEnum<["software", "hardware_iot", "3d_design", "math", "science", "language", "arts", "research", "business", "other"]>;
|
|
@@ -45,6 +59,19 @@ declare const DomainProfileSchema: z.ZodObject<{
|
|
|
45
59
|
domainCategory?: number | undefined;
|
|
46
60
|
learningMode?: number | undefined;
|
|
47
61
|
}>>;
|
|
62
|
+
ambiguous: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
domain1: z.ZodEnum<["software", "hardware_iot", "3d_design", "math", "science", "language", "arts", "research", "business", "other"]>;
|
|
64
|
+
domain2: z.ZodEnum<["software", "hardware_iot", "3d_design", "math", "science", "language", "arts", "research", "business", "other"]>;
|
|
65
|
+
reason: z.ZodString;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
domain1: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
68
|
+
domain2: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
69
|
+
reason: string;
|
|
70
|
+
}, {
|
|
71
|
+
domain1: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
72
|
+
domain2: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
73
|
+
reason: string;
|
|
74
|
+
}>>;
|
|
48
75
|
evidence: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
49
76
|
detectedTechStack: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
50
77
|
detectedSubject: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -74,6 +101,11 @@ declare const DomainProfileSchema: z.ZodObject<{
|
|
|
74
101
|
domainCategory: number;
|
|
75
102
|
learningMode: number;
|
|
76
103
|
} | undefined;
|
|
104
|
+
ambiguous?: {
|
|
105
|
+
domain1: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
106
|
+
domain2: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
107
|
+
reason: string;
|
|
108
|
+
} | undefined;
|
|
77
109
|
detectedGradeBand?: [number, number] | undefined;
|
|
78
110
|
}, {
|
|
79
111
|
inputType: "description" | "files" | "repository" | "syllabus" | "mixed";
|
|
@@ -88,6 +120,11 @@ declare const DomainProfileSchema: z.ZodObject<{
|
|
|
88
120
|
} | undefined;
|
|
89
121
|
evidence?: string[] | undefined;
|
|
90
122
|
goal?: string | undefined;
|
|
123
|
+
ambiguous?: {
|
|
124
|
+
domain1: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
125
|
+
domain2: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
126
|
+
reason: string;
|
|
127
|
+
} | undefined;
|
|
91
128
|
detectedTechStack?: string[] | undefined;
|
|
92
129
|
detectedSubject?: string | undefined;
|
|
93
130
|
detectedGradeBand?: [number, number] | undefined;
|
|
@@ -102,4 +139,4 @@ type DomainCategory = z.infer<typeof DomainCategorySchema>;
|
|
|
102
139
|
type LearningMode = z.infer<typeof LearningModeSchema>;
|
|
103
140
|
type GraphType = z.infer<typeof GraphTypeSchema>;
|
|
104
141
|
|
|
105
|
-
export { DomainCategorySchema as D, GraphTypeSchema as G, InputTypeSchema as I, LearningModeSchema as L, DetectionConfidenceSchema as a,
|
|
142
|
+
export { AmbiguousDomainSchema as A, DomainCategorySchema as D, GraphTypeSchema as G, InputTypeSchema as I, LearningModeSchema as L, DetectionConfidenceSchema as a, type AmbiguousDomain as b, DomainProfileSchema as c, type DomainProfile as d, type InputType as e, type DomainCategory as f, type LearningMode as g, type GraphType as h };
|
|
@@ -27,6 +27,20 @@ declare const DetectionConfidenceSchema: z.ZodObject<{
|
|
|
27
27
|
domainCategory?: number | undefined;
|
|
28
28
|
learningMode?: number | undefined;
|
|
29
29
|
}>;
|
|
30
|
+
declare const AmbiguousDomainSchema: z.ZodObject<{
|
|
31
|
+
domain1: z.ZodEnum<["software", "hardware_iot", "3d_design", "math", "science", "language", "arts", "research", "business", "other"]>;
|
|
32
|
+
domain2: z.ZodEnum<["software", "hardware_iot", "3d_design", "math", "science", "language", "arts", "research", "business", "other"]>;
|
|
33
|
+
reason: z.ZodString;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
domain1: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
36
|
+
domain2: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
37
|
+
reason: string;
|
|
38
|
+
}, {
|
|
39
|
+
domain1: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
40
|
+
domain2: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
41
|
+
reason: string;
|
|
42
|
+
}>;
|
|
43
|
+
type AmbiguousDomain = z.infer<typeof AmbiguousDomainSchema>;
|
|
30
44
|
declare const DomainProfileSchema: z.ZodObject<{
|
|
31
45
|
inputType: z.ZodEnum<["repository", "description", "syllabus", "files", "mixed"]>;
|
|
32
46
|
domainCategory: z.ZodEnum<["software", "hardware_iot", "3d_design", "math", "science", "language", "arts", "research", "business", "other"]>;
|
|
@@ -45,6 +59,19 @@ declare const DomainProfileSchema: z.ZodObject<{
|
|
|
45
59
|
domainCategory?: number | undefined;
|
|
46
60
|
learningMode?: number | undefined;
|
|
47
61
|
}>>;
|
|
62
|
+
ambiguous: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
domain1: z.ZodEnum<["software", "hardware_iot", "3d_design", "math", "science", "language", "arts", "research", "business", "other"]>;
|
|
64
|
+
domain2: z.ZodEnum<["software", "hardware_iot", "3d_design", "math", "science", "language", "arts", "research", "business", "other"]>;
|
|
65
|
+
reason: z.ZodString;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
domain1: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
68
|
+
domain2: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
69
|
+
reason: string;
|
|
70
|
+
}, {
|
|
71
|
+
domain1: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
72
|
+
domain2: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
73
|
+
reason: string;
|
|
74
|
+
}>>;
|
|
48
75
|
evidence: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
49
76
|
detectedTechStack: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
50
77
|
detectedSubject: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -74,6 +101,11 @@ declare const DomainProfileSchema: z.ZodObject<{
|
|
|
74
101
|
domainCategory: number;
|
|
75
102
|
learningMode: number;
|
|
76
103
|
} | undefined;
|
|
104
|
+
ambiguous?: {
|
|
105
|
+
domain1: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
106
|
+
domain2: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
107
|
+
reason: string;
|
|
108
|
+
} | undefined;
|
|
77
109
|
detectedGradeBand?: [number, number] | undefined;
|
|
78
110
|
}, {
|
|
79
111
|
inputType: "description" | "files" | "repository" | "syllabus" | "mixed";
|
|
@@ -88,6 +120,11 @@ declare const DomainProfileSchema: z.ZodObject<{
|
|
|
88
120
|
} | undefined;
|
|
89
121
|
evidence?: string[] | undefined;
|
|
90
122
|
goal?: string | undefined;
|
|
123
|
+
ambiguous?: {
|
|
124
|
+
domain1: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
125
|
+
domain2: "math" | "science" | "language" | "arts" | "research" | "business" | "other" | "software" | "hardware_iot" | "3d_design";
|
|
126
|
+
reason: string;
|
|
127
|
+
} | undefined;
|
|
91
128
|
detectedTechStack?: string[] | undefined;
|
|
92
129
|
detectedSubject?: string | undefined;
|
|
93
130
|
detectedGradeBand?: [number, number] | undefined;
|
|
@@ -102,4 +139,4 @@ type DomainCategory = z.infer<typeof DomainCategorySchema>;
|
|
|
102
139
|
type LearningMode = z.infer<typeof LearningModeSchema>;
|
|
103
140
|
type GraphType = z.infer<typeof GraphTypeSchema>;
|
|
104
141
|
|
|
105
|
-
export { DomainCategorySchema as D, GraphTypeSchema as G, InputTypeSchema as I, LearningModeSchema as L, DetectionConfidenceSchema as a,
|
|
142
|
+
export { AmbiguousDomainSchema as A, DomainCategorySchema as D, GraphTypeSchema as G, InputTypeSchema as I, LearningModeSchema as L, DetectionConfidenceSchema as a, type AmbiguousDomain as b, DomainProfileSchema as c, type DomainProfile as d, type InputType as e, type DomainCategory as f, type LearningMode as g, type GraphType as h };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as SourceContext } from '../keywordExtractor-
|
|
2
|
-
export { K as Keyword, e as extractKeywords } from '../keywordExtractor-
|
|
3
|
-
import '../cpp-
|
|
1
|
+
import { S as SourceContext } from '../keywordExtractor-1YAFntsn.cjs';
|
|
2
|
+
export { K as Keyword, e as extractKeywords } from '../keywordExtractor-1YAFntsn.cjs';
|
|
3
|
+
import '../cpp-vlDl6pCL.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* File Relevance Scorer — determines which source files are most relevant
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as SourceContext } from '../keywordExtractor-
|
|
2
|
-
export { K as Keyword, e as extractKeywords } from '../keywordExtractor-
|
|
3
|
-
import '../cpp-
|
|
1
|
+
import { S as SourceContext } from '../keywordExtractor-DWw8z_AF.js';
|
|
2
|
+
export { K as Keyword, e as extractKeywords } from '../keywordExtractor-DWw8z_AF.js';
|
|
3
|
+
import '../cpp-vlDl6pCL.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* File Relevance Scorer — determines which source files are most relevant
|
package/dist/feed/index.d.cts
CHANGED
package/dist/feed/index.d.ts
CHANGED