@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.
Files changed (87) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +10 -10
  3. package/dist/assembly/index.d.cts +3 -2
  4. package/dist/assembly/index.d.ts +3 -2
  5. package/dist/{chunk-2OGNQUXC.mjs → chunk-4UCXYRM3.mjs} +152 -303
  6. package/dist/chunk-4UCXYRM3.mjs.map +1 -0
  7. package/dist/chunk-7A2SG466.mjs +325 -0
  8. package/dist/chunk-7A2SG466.mjs.map +1 -0
  9. package/dist/{chunk-DRVOV5ZD.mjs → chunk-DSEJLTUO.mjs} +2 -2
  10. package/dist/chunk-DSEJLTUO.mjs.map +1 -0
  11. package/dist/{chunk-ERDTHXQA.mjs → chunk-H4W3YJLK.mjs} +10 -3
  12. package/dist/chunk-H4W3YJLK.mjs.map +1 -0
  13. package/dist/chunk-IBVXXVGE.mjs +14 -0
  14. package/dist/chunk-IBVXXVGE.mjs.map +1 -0
  15. package/dist/{chunk-5OMSYKQP.mjs → chunk-KHCZYLKM.mjs} +33 -18
  16. package/dist/chunk-KHCZYLKM.mjs.map +1 -0
  17. package/dist/{chunk-67GXK3ZE.mjs → chunk-WD3P5V3B.mjs} +3 -2
  18. package/dist/chunk-WD3P5V3B.mjs.map +1 -0
  19. package/dist/{conceptEscalator-DPrs4PwC.d.cts → conceptEscalator-BmMJD8C5.d.cts} +1 -1
  20. package/dist/{conceptEscalator-BCsw0ys_.d.ts → conceptEscalator-DMsehscs.d.ts} +1 -1
  21. package/dist/concepts/index.d.cts +4 -3
  22. package/dist/concepts/index.d.ts +4 -3
  23. package/dist/{cpp-CZUPqJt9.d.cts → cpp-vlDl6pCL.d.cts} +4 -4
  24. package/dist/{cpp-CZUPqJt9.d.ts → cpp-vlDl6pCL.d.ts} +4 -4
  25. package/dist/detector/index.cjs +1 -0
  26. package/dist/detector/index.cjs.map +1 -1
  27. package/dist/detector/index.d.cts +2 -2
  28. package/dist/detector/index.d.ts +2 -2
  29. package/dist/detector/index.mjs +1 -1
  30. package/dist/{domainProfileDetector-DHb1T0zB.d.ts → domainProfileDetector-6pjgL-6_.d.ts} +1 -1
  31. package/dist/{domainProfileDetector-bzugdQmS.d.cts → domainProfileDetector-BsADsuRV.d.cts} +1 -1
  32. package/dist/{domainProfileSchema-CwT3Ffsw.d.cts → domainProfileSchema-779FGk14.d.cts} +38 -1
  33. package/dist/{domainProfileSchema-CwT3Ffsw.d.ts → domainProfileSchema-779FGk14.d.ts} +38 -1
  34. package/dist/extractors/index.d.cts +3 -3
  35. package/dist/extractors/index.d.ts +3 -3
  36. package/dist/feed/index.d.cts +1 -1
  37. package/dist/feed/index.d.ts +1 -1
  38. package/dist/graph/index.cjs +235 -57
  39. package/dist/graph/index.cjs.map +1 -1
  40. package/dist/graph/index.d.cts +9 -6
  41. package/dist/graph/index.d.ts +9 -6
  42. package/dist/graph/index.mjs +3 -1
  43. package/dist/{hybridGraphPipeline-CocfYe4d.d.cts → hybridGraphPipeline-B4mamLim.d.cts} +1 -1
  44. package/dist/{hybridGraphPipeline-9dRKJj7r.d.ts → hybridGraphPipeline-D2_1GUva.d.ts} +1 -1
  45. package/dist/index.cjs +277 -68
  46. package/dist/index.cjs.map +1 -1
  47. package/dist/index.d.cts +9 -8
  48. package/dist/index.d.ts +9 -8
  49. package/dist/index.mjs +11 -9
  50. package/dist/{keywordExtractor-BxlGRMHC.d.cts → keywordExtractor-1YAFntsn.d.cts} +1 -1
  51. package/dist/{keywordExtractor-DU5XRN8-.d.ts → keywordExtractor-DWw8z_AF.d.ts} +1 -1
  52. package/dist/parsers/index.cjs.map +1 -1
  53. package/dist/parsers/index.d.cts +1 -1
  54. package/dist/parsers/index.d.ts +1 -1
  55. package/dist/parsers/index.mjs +1 -1
  56. package/dist/pipeline/index.cjs +261 -68
  57. package/dist/pipeline/index.cjs.map +1 -1
  58. package/dist/pipeline/index.d.cts +10 -9
  59. package/dist/pipeline/index.d.ts +10 -9
  60. package/dist/pipeline/index.mjs +8 -6
  61. package/dist/schemas/index.cjs +8 -0
  62. package/dist/schemas/index.cjs.map +1 -1
  63. package/dist/schemas/index.d.cts +2 -2
  64. package/dist/schemas/index.d.ts +2 -2
  65. package/dist/schemas/index.mjs +1 -1
  66. package/dist/utils/llmClient.cjs +344 -0
  67. package/dist/utils/llmClient.cjs.map +1 -0
  68. package/dist/utils/llmClient.d.cts +118 -0
  69. package/dist/utils/llmClient.d.ts +118 -0
  70. package/dist/utils/llmClient.mjs +4 -0
  71. package/dist/utils/llmClient.mjs.map +1 -0
  72. package/dist/utils/llmTransportResult.cjs +16 -0
  73. package/dist/utils/llmTransportResult.cjs.map +1 -0
  74. package/dist/utils/llmTransportResult.d.cts +36 -0
  75. package/dist/utils/llmTransportResult.d.ts +36 -0
  76. package/dist/utils/llmTransportResult.mjs +3 -0
  77. package/dist/utils/llmTransportResult.mjs.map +1 -0
  78. package/package.json +9 -10
  79. package/dist/chunk-2OGNQUXC.mjs.map +0 -1
  80. package/dist/chunk-5OMSYKQP.mjs.map +0 -1
  81. package/dist/chunk-67GXK3ZE.mjs.map +0 -1
  82. package/dist/chunk-DRVOV5ZD.mjs.map +0 -1
  83. package/dist/chunk-ERDTHXQA.mjs.map +0 -1
  84. package/dist/llmClient-CX5uUiQ1.d.cts +0 -60
  85. package/dist/llmClient-CX5uUiQ1.d.ts +0 -60
  86. package/dist/{curriculumFeedSchema-DYayelAA.d.ts → curriculumFeedSchema-DK-TUAJZ.d.cts} +8 -8
  87. 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, DomainProfileSchema as b, type DomainProfile as c, type InputType as d, type DomainCategory as e, type LearningMode as f, type GraphType as g };
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, DomainProfileSchema as b, type DomainProfile as c, type InputType as d, type DomainCategory as e, type LearningMode as f, type GraphType as g };
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-BxlGRMHC.cjs';
2
- export { K as Keyword, e as extractKeywords } from '../keywordExtractor-BxlGRMHC.cjs';
3
- import '../cpp-CZUPqJt9.cjs';
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-DU5XRN8-.js';
2
- export { K as Keyword, e as extractKeywords } from '../keywordExtractor-DU5XRN8-.js';
3
- import '../cpp-CZUPqJt9.js';
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
@@ -1,4 +1,4 @@
1
- import { h as FeedDiagnostic, j as FeedProvenance, k as CurriculumFeed } from '../curriculumFeedSchema-DYayelAA.cjs';
1
+ import { h as FeedDiagnostic, j as FeedProvenance, k as CurriculumFeed } from '../curriculumFeedSchema-DK-TUAJZ.cjs';
2
2
  import 'zod';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { h as FeedDiagnostic, j as FeedProvenance, k as CurriculumFeed } from '../curriculumFeedSchema-DYayelAA.js';
1
+ import { h as FeedDiagnostic, j as FeedProvenance, k as CurriculumFeed } from '../curriculumFeedSchema-DK-TUAJZ.js';
2
2
  import 'zod';
3
3
 
4
4
  /**