only_ever_generator 0.7.9 → 0.8.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 (69) hide show
  1. package/dist/bootstrap/app.d.ts +1 -0
  2. package/dist/bootstrap/app.d.ts.map +1 -0
  3. package/dist/card_gen/generate_cards.d.ts +1 -0
  4. package/dist/card_gen/generate_cards.d.ts.map +1 -0
  5. package/dist/config.d.ts +1 -0
  6. package/dist/config.d.ts.map +1 -0
  7. package/dist/constants/api_constants.d.ts +1 -0
  8. package/dist/constants/api_constants.d.ts.map +1 -0
  9. package/dist/constants/prompts/card_gen_prompt.d.ts +1 -0
  10. package/dist/constants/prompts/card_gen_prompt.d.ts.map +1 -0
  11. package/dist/constants/prompts/typology_prompt.d.ts +1 -0
  12. package/dist/constants/prompts/typology_prompt.d.ts.map +1 -0
  13. package/dist/embedding_generation/consolidation/global_consolidation.d.ts +1 -0
  14. package/dist/embedding_generation/consolidation/global_consolidation.d.ts.map +1 -0
  15. package/dist/embedding_generation/consolidation/local_consolidation.d.ts +1 -0
  16. package/dist/embedding_generation/consolidation/local_consolidation.d.ts.map +1 -0
  17. package/dist/embedding_generation/consolidation/write_consolidated_data.d.ts +1 -0
  18. package/dist/embedding_generation/consolidation/write_consolidated_data.d.ts.map +1 -0
  19. package/dist/embedding_generation/generate_embeddings.d.ts +1 -0
  20. package/dist/embedding_generation/generate_embeddings.d.ts.map +1 -0
  21. package/dist/embedding_generation/parse_embedding_response.d.ts +1 -0
  22. package/dist/embedding_generation/parse_embedding_response.d.ts.map +1 -0
  23. package/dist/enums/card_type_enum.d.ts +1 -0
  24. package/dist/enums/card_type_enum.d.ts.map +1 -0
  25. package/dist/gap_fill/calculate_gap_fill.d.ts +1 -0
  26. package/dist/gap_fill/calculate_gap_fill.d.ts.map +1 -0
  27. package/dist/helper/qdrant_db_methods.d.ts +1 -0
  28. package/dist/helper/qdrant_db_methods.d.ts.map +1 -0
  29. package/dist/index.d.ts +3 -1
  30. package/dist/index.d.ts.map +1 -0
  31. package/dist/index.js +2 -99
  32. package/dist/index.js.map +1 -1
  33. package/dist/logger.d.ts +1 -0
  34. package/dist/logger.d.ts.map +1 -0
  35. package/dist/parse/parse_card/parse_cloze_card.d.ts +1 -0
  36. package/dist/parse/parse_card/parse_cloze_card.d.ts.map +1 -0
  37. package/dist/parse/parse_card/parse_flash_cards.d.ts +1 -0
  38. package/dist/parse/parse_card/parse_flash_cards.d.ts.map +1 -0
  39. package/dist/parse/parse_card/parse_match_card.d.ts +1 -0
  40. package/dist/parse/parse_card/parse_match_card.d.ts.map +1 -0
  41. package/dist/parse/parse_card/parse_mcq_card.d.ts +1 -0
  42. package/dist/parse/parse_card/parse_mcq_card.d.ts.map +1 -0
  43. package/dist/parse/parse_card_response.d.ts +1 -0
  44. package/dist/parse/parse_card_response.d.ts.map +1 -0
  45. package/dist/parse/parse_source_content.d.ts +1 -0
  46. package/dist/parse/parse_source_content.d.ts.map +1 -0
  47. package/dist/services/open_ai_service.d.ts +1 -0
  48. package/dist/services/open_ai_service.d.ts.map +1 -0
  49. package/dist/services/qdrant_service.d.ts +1 -0
  50. package/dist/services/qdrant_service.d.ts.map +1 -0
  51. package/dist/types/base_param_type.d.ts +1 -0
  52. package/dist/types/base_param_type.d.ts.map +1 -0
  53. package/dist/types/mongo_concept_fact_type.d.ts +1 -0
  54. package/dist/types/mongo_concept_fact_type.d.ts.map +1 -0
  55. package/dist/types/parsed_card_type.d.ts +1 -0
  56. package/dist/types/parsed_card_type.d.ts.map +1 -0
  57. package/dist/types/raw_card_response_types/generated_card_response_type.d.ts +1 -0
  58. package/dist/types/raw_card_response_types/generated_card_response_type.d.ts.map +1 -0
  59. package/dist/types/source_taxonomy_type.d.ts +1 -0
  60. package/dist/types/source_taxonomy_type.d.ts.map +1 -0
  61. package/dist/typology_gen/generate_typology.d.ts +1 -0
  62. package/dist/typology_gen/generate_typology.d.ts.map +1 -0
  63. package/dist/utils/generate_args.d.ts +1 -0
  64. package/dist/utils/generate_args.d.ts.map +1 -0
  65. package/dist/utils/parse_openai_response.d.ts +1 -0
  66. package/dist/utils/parse_openai_response.d.ts.map +1 -0
  67. package/package.json +5 -4
  68. package/src/index.ts +3 -0
  69. package/tsconfig.json +2 -0
@@ -94,3 +94,4 @@ export declare class OnlyEverGenerator {
94
94
  }[];
95
95
  }>;
96
96
  }
97
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/bootstrap/app.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAO5D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAG/D,qBAAa,iBAAiB;IACrB,OAAO,EAAE,MAAM,CAAM;IACrB,aAAa,EAAE,aAAa,CAAC;IAGpC,aAAa,CAAC,EAAE;QACd,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,OAAO,EAAE,GAAG,EAAE,CAAC;QACf,QAAQ,EAAE,cAAc,CAAC;KAC1B,CAAa;IACd,iBAAiB,EAAE,MAAM,CAAM;IAC/B,gBAAgB,EAAE,MAAM,CAAM;IAC9B,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IACnC,gBAAgB,CAAC,EAAE,cAAc,CAAa;IAC9C,eAAe,EAAE,GAAG,CAAa;IACjC,iBAAiB,KAAM;gBAEX,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,aAAa;IAsBrE,QAAQ,CACZ,iBAAiB,GAAE,OAAe,EAClC,aAAa,GAAE,OAAe,GAC7B,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAkDtB,6CAA6C;IAQvC,YAAY,CAChB,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,MAAM,EACzB,SAAS,EAAE,OAAO,EAClB,CAAC,GAAE,MAAU;IAcT,gBAAgB,CAAC,MAAM,EAAE,MAAM;IAU/B,kBAAkB,CAAC,gBAAgB,EAAE,GAAG;;;;;;;;;;;;;;;;;;IASxC,kBAAkB,CACtB,cAAc,EAAE;QACd,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,EAAE,CAAC;KACrB,EAAE,EACH,QAAQ,EAAE,MAAM;;;;;;;;;;;;;;;;;;;IASZ,mBAAmB,CACvB,cAAc,EAAE;QACd,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,EAAE,CAAC;KACrB,EAAE,EACH,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;CAUpB"}
@@ -5,3 +5,4 @@ export declare class GenerateCards {
5
5
  constructor(openAiService: OpenAiService);
6
6
  generateCards(prompt: string, parsedContent: string, isGapFill: boolean, taxonomy: SourceTaxonomy, n?: number): Promise<any>;
7
7
  }
8
+ //# sourceMappingURL=generate_cards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate_cards.d.ts","sourceRoot":"","sources":["../../src/card_gen/generate_cards.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,qBAAa,aAAa;IACxB,aAAa,EAAE,aAAa,CAAC;gBACjB,aAAa,EAAE,aAAa;IAIlC,aAAa,CACjB,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,OAAO,EAClB,QAAQ,EAAE,cAAc,EACxB,CAAC,GAAE,MAAU;CA0ChB"}
package/dist/config.d.ts CHANGED
@@ -5,3 +5,4 @@ declare const config: {
5
5
  qdrantUrl: string | undefined;
6
6
  };
7
7
  export default config;
8
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AAEvB,QAAA,MAAM,MAAM;eAC4B,MAAM;;;CAG7C,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export declare function openAiEndPoint(): string;
2
2
  export declare function openAiEmbeddingEndPoint(): string;
3
+ //# sourceMappingURL=api_constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api_constants.d.ts","sourceRoot":"","sources":["../../src/constants/api_constants.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,WAE7B;AAED,wBAAgB,uBAAuB,WAEtC"}
@@ -1 +1,2 @@
1
1
  export declare function returnCardGenPrompt(): string;
2
+ //# sourceMappingURL=card_gen_prompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card_gen_prompt.d.ts","sourceRoot":"","sources":["../../../src/constants/prompts/card_gen_prompt.ts"],"names":[],"mappings":"AAiKA,wBAAgB,mBAAmB,WAElC"}
@@ -1 +1,2 @@
1
1
  export declare function returnTypologyPrompt(): string;
2
+ //# sourceMappingURL=typology_prompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typology_prompt.d.ts","sourceRoot":"","sources":["../../../src/constants/prompts/typology_prompt.ts"],"names":[],"mappings":"AAyIA,wBAAgB,oBAAoB,WAEnC"}
@@ -30,3 +30,4 @@ export declare class GlobalConsolidation {
30
30
  }[];
31
31
  }>;
32
32
  }
33
+ //# sourceMappingURL=global_consolidation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global_consolidation.d.ts","sourceRoot":"","sources":["../../../src/embedding_generation/consolidation/global_consolidation.ts"],"names":[],"mappings":"AAEA,qBAAa,mBAAmB;IACxB,WAAW,CACf,mCAAmC,EAAE;QACnC,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,EAAE,EAAE,MAAM,CAAC;QACX,SAAS,EAAE,MAAM,EAAE,CAAC;KACrB,EAAE,EACH,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM;;kBAST,MAAM;kBACN,MAAM;uBACD,MAAM;gBACb,MAAM;;;gBAIN,MAAM;2BACK,MAAM;4BACL;gBACd,QAAQ,EAAE,MAAM,EAAE,CAAC;gBACnB,IAAI,EAAE,MAAM,CAAC;aACd;;;gBAIG,MAAM;oBACF,MAAM,EAAE;qBACP;gBACP,QAAQ,EAAE,MAAM,EAAE,CAAC;gBACnB,IAAI,EAAE,MAAM,CAAC;aACd;;;CAmDN"}
@@ -36,3 +36,4 @@ export declare class LocalConsolidation {
36
36
  consolidatedConcepts: any[];
37
37
  };
38
38
  }
39
+ //# sourceMappingURL=local_consolidation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local_consolidation.d.ts","sourceRoot":"","sources":["../../../src/embedding_generation/consolidation/local_consolidation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE1C,qBAAa,kBAAkB;IAC7B,WAAW,CACT,cAAc,EAAE;QACd,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,EAAE,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;KACnB,EAAE,EACH,QAAQ,EAAE,MAAM;;gBAYR,MAAM;oBACF,MAAM,EAAE;qBACP;gBACP,QAAQ,EAAE,MAAM,EAAE,CAAC;gBACnB,IAAI,EAAE,MAAM,CAAC;aACd;;;;;kBAZK,MAAM;gBACR,MAAM;uBACC,MAAM,EAAE;kBACb,MAAM;uBACD,MAAM;;;IAyEvB,gBAAgB,GAAI,GAAG,MAAM,EAAE,EAAE,GAAG,MAAM,EAAE,KAAG,MAAM,CAKnD;IAEF,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,SAAS,SAAO;;gBAElD,IAAI;kBACF,MAAM;uBACD,MAAM;uBACN,MAAM,EAAE;kBACb,MAAM;;;;CAmCjB"}
@@ -43,3 +43,4 @@ export declare class WriteConsolidatedData {
43
43
  }[]): Promise<void>;
44
44
  wiriteToMondo(source_taxonomy: any[], generation_requests: any[], source_id: string): Promise<void>;
45
45
  }
46
+ //# sourceMappingURL=write_consolidated_data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"write_consolidated_data.d.ts","sourceRoot":"","sources":["../../../src/embedding_generation/consolidation/write_consolidated_data.ts"],"names":[],"mappings":"AAEA,qBAAa,qBAAqB;IAC1B,qBAAqB,CACzB,IAAI,EAAE;QACJ,eAAe,EAAE;YACf,EAAE,EAAE,MAAM,CAAC;YACX,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,EAAE,MAAM,CAAC;YACb,SAAS,EAAE,MAAM,CAAC;SACnB,EAAE,CAAC;QACJ,cAAc,EAAE;YACd,EAAE,EAAE,MAAM,CAAC;YACX,cAAc,EAAE;gBACd,QAAQ,EAAE,MAAM,EAAE,CAAC;gBACnB,IAAI,EAAE,MAAM,CAAC;aACd,CAAC;YACF,aAAa,EAAE,MAAM,CAAC;SACvB,EAAE,CAAC;QACJ,cAAc,EAAE;YACd,EAAE,EAAE,MAAM,CAAC;YACX,MAAM,EAAE,MAAM,EAAE,CAAC;YACjB,OAAO,EAAE;gBACP,QAAQ,EAAE,MAAM,EAAE,CAAC;gBACnB,IAAI,EAAE,MAAM,CAAC;aACd,CAAC;SACH,EAAE,CAAC;KACL,EACD,mBAAmB,EAAE,GAAG,EAAE,EAC1B,SAAS,EAAE,MAAM;;;IAcb,kBAAkB,CACtB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,cAAc,EAAE;YACd,QAAQ,EAAE,MAAM,EAAE,CAAC;YACnB,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;QACF,aAAa,EAAE,MAAM,CAAC;KACvB,EAAE;IAmBC,kBAAkB,CACtB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,OAAO,EAAE;YACP,QAAQ,EAAE,MAAM,EAAE,CAAC;YACnB,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH,EAAE;IAQC,aAAa,CACjB,eAAe,EAAE,GAAG,EAAE,EACtB,mBAAmB,EAAE,GAAG,EAAE,EAC1B,SAAS,EAAE,MAAM;CAQpB"}
@@ -25,3 +25,4 @@ export declare class GenerateEmbeddings {
25
25
  };
26
26
  }>;
27
27
  }
28
+ //# sourceMappingURL=generate_embeddings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate_embeddings.d.ts","sourceRoot":"","sources":["../../src/embedding_generation/generate_embeddings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,qBAAa,kBAAkB;IACjB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAEnD,kBAAkB,CACtB,cAAc,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,EAAE;;;;;;;;;;;;;;;;;;CAkCtE"}
@@ -23,3 +23,4 @@ export declare class ParseEmbeddingResponse {
23
23
  }[];
24
24
  };
25
25
  }
26
+ //# sourceMappingURL=parse_embedding_response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse_embedding_response.d.ts","sourceRoot":"","sources":["../../src/embedding_generation/parse_embedding_response.ts"],"names":[],"mappings":"AAEA,qBAAa,sBAAsB;IACjC,KAAK,CACH,QAAQ,EAAE,GAAG,EACb,cAAc,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,EAAE;;;;;;;;;;;;;;;;;;;CAyBtE"}
@@ -4,3 +4,4 @@ export declare enum CardTypeEnum {
4
4
  MATCH = "match",
5
5
  MCQ = "mcq"
6
6
  }
7
+ //# sourceMappingURL=card_type_enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card_type_enum.d.ts","sourceRoot":"","sources":["../../src/enums/card_type_enum.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,GAAG,QAAQ;CACZ"}
@@ -2,3 +2,4 @@ export declare function gapFilling(typologyResponse: any, cardgenResponse: any):
2
2
  remainingConcepts: string[];
3
3
  remainingFacts: string[];
4
4
  };
5
+ //# sourceMappingURL=calculate_gap_fill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calculate_gap_fill.d.ts","sourceRoot":"","sources":["../../src/gap_fill/calculate_gap_fill.ts"],"names":[],"mappings":"AAIA,wBAAgB,UAAU,CAAC,gBAAgB,EAAE,GAAG,EAAE,eAAe,EAAE,GAAG;;;EA6CrE"}
@@ -37,3 +37,4 @@ declare const addEmbeddingsToCollection: (collectionName: string, embeddings: {
37
37
  };
38
38
  }[]) => Promise<void>;
39
39
  export { createCollection, getCollection, addEmbeddingsToCollection, getCorrespondingConcepts as getSimilarConcepts, };
40
+ //# sourceMappingURL=qdrant_db_methods.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"qdrant_db_methods.d.ts","sourceRoot":"","sources":["../../src/helper/qdrant_db_methods.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,gBAAgB,GAAU,gBAAgB,MAAM,kBAOrD,CAAC;AAEF,QAAA,MAAM,aAAa;;;;EAGlB,CAAC;AAEF,QAAA,MAAM,wBAAwB,GAC5B,gBAAgB,MAAM,EACtB,YAAY;IACV,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,EAAE,EACH,WAAW,MAAM;;;;;eAoDoq7G,CAAC;;;cAA0H,CAAC;;;;;;iBAA+tE,CAAC;mBAAuF,CAAC;;IAjC1mgH,CAAC;AAEF,QAAA,MAAM,yBAAyB,GAC7B,gBAAgB,MAAM,EACtB,YAAY;IACV,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE;QACP,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH,EAAE,kBAcJ,CAAC;AAEF,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,yBAAyB,EACzB,wBAAwB,IAAI,kBAAkB,GAC/C,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1 +1,3 @@
1
- export {};
1
+ import { OnlyEverGenerator } from "./bootstrap/app";
2
+ export { OnlyEverGenerator };
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -1,103 +1,6 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
2
  Object.defineProperty(exports, "__esModule", { value: true });
15
- const express_1 = __importDefault(require("express"));
16
- const source_data_1 = require("./constants/source_data");
17
- const config_1 = __importDefault(require("./config"));
18
- const app = (0, express_1.default)();
19
- const port = 3000;
20
- const prompt_data_1 = require("./constants/prompt_data");
3
+ exports.OnlyEverGenerator = void 0;
21
4
  const app_1 = require("./bootstrap/app");
22
- /// While Publishing the package , and using this code as a separate npm module
23
- /// uncomment the below line and comment all the others, expect the import of OnlyEverGenerator
24
- // export { OnlyEverGenerator };
25
- // . All the Codes Below uses express and are strictly for development purpose, while publishing the package, comment everything
26
- // below this line
27
- let oeGen = new app_1.OnlyEverGenerator(config_1.default.openAIKey, "gpt-4o-mini", {
28
- prompt: (0, prompt_data_1.returnPromptData)(),
29
- content: (0, source_data_1.returnSourceData)(),
30
- });
31
- app.get("/", (req, res) => __awaiter(void 0, void 0, void 0, function* () {
32
- // let data = oeGen.returnParsedContent();
33
- // let parsedData = parseResponse()
34
- let cardPrompt = "";
35
- res.send(cardPrompt);
36
- }));
37
- app.get("/openAI", (req, res) => __awaiter(void 0, void 0, void 0, function* () {
38
- // let prompt = returnPromt();
39
- // let prompt = returnCardGenPrompt();
40
- // let content = returnSourceData().toString()
41
- // let headings = returnHeadings();
42
- // // let aiRequest = await openAIRequest(prompt,content);
43
- let aiRequest = yield oeGen.generate(true, true);
44
- res.send(aiRequest);
45
- }));
46
- // app.get("/parseCardData", async (req, res) => {
47
- // let cardResp = returnCardResponse();
48
- // let headings = returnHeadings();
49
- // cardResp.metadata = {
50
- // req_time: cardResp.generated_at ?? new Date(),
51
- // req_type: "card",
52
- // req_tokens: cardResp.usage_data?.prompt_tokens,
53
- // res_tokens: cardResp.usage_data?.completion_tokens,
54
- // model: "40-mini",
55
- // };
56
- // let parsedData = new ParseCardResponse().parse(cardResp, false, {}, 1);
57
- // res.send(parsedData);
58
- // });
59
- // app.get("/generate-cards", async (req, res) => {
60
- // let cardResp = req.query.data as any;
61
- // oeGen.parsedContent!.taxonomy = {
62
- // ...cardResp,
63
- // fields: returnFields(),
64
- // };
65
- // let parsedData = await oeGen.generateCard(
66
- // returnCardGenPrompt(),
67
- // JSON.stringify(cardResp),
68
- // false
69
- // );
70
- // res.send(parsedData);
71
- // });
72
- // app.get("/typology", async (req, res) => {
73
- // {
74
- // let typologyRequest = await oeGen.generate(true, false);
75
- // res.send(typologyRequest);
76
- // }
77
- // });
78
- // app.get("/local-consolidation", async (req, res) => {
79
- // const concepts_facts = embeddingsResp.concepts_facts;
80
- // let locallyConsolidated = new LocalConsolidation().consolidate(
81
- // concepts_facts,
82
- // "sourceID"
83
- // );
84
- // res.send(locallyConsolidated);
85
- // });
86
- // app.get("/global-consolidation", async (req, res) => {
87
- // const concepts_facts = embeddingsResp.concepts_facts;
88
- // // let globallyConsolidated = await new GlobalConsolidation().consolidate(
89
- // // concepts_facts,
90
- // // "sourceID",
91
- // // 0.2
92
- // // );
93
- // // let globallyConsolidated = await oeGen.globalConsolidation(
94
- // // concepts_facts,
95
- // // "sourceID",
96
- // // 0.2
97
- // // );
98
- // // res.send(globallyConsolidated);
99
- // });
100
- app.listen(port, () => {
101
- console.log(`Example app listening at http://localhost:${port}`);
102
- });
5
+ Object.defineProperty(exports, "OnlyEverGenerator", { enumerable: true, get: function () { return app_1.OnlyEverGenerator; } });
103
6
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sDAA8B;AAC9B,yDAKiC;AACjC,sDAA8B;AAC9B,MAAM,GAAG,GAAG,IAAA,iBAAO,GAAE,CAAC;AACtB,MAAM,IAAI,GAAG,IAAI,CAAC;AAClB,yDAA2D;AAQ3D,yCAAoD;AAOpD,+EAA+E;AAC/E,+FAA+F;AAC/F,gCAAgC;AAEhC,gIAAgI;AAChI,kBAAkB;AAClB,IAAI,KAAK,GAAG,IAAI,uBAAiB,CAAC,gBAAM,CAAC,SAAS,EAAE,aAAa,EAAE;IACjE,MAAM,EAAE,IAAA,8BAAgB,GAAE;IAC1B,OAAO,EAAE,IAAA,8BAAgB,GAAE;CAC5B,CAAC,CAAC;AACH,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAO,GAAG,EAAE,GAAG,EAAE,EAAE;IAC9B,0CAA0C;IAC1C,mCAAmC;IACnC,IAAI,UAAU,GAAG,EAAE,CAAC;IAEpB,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AACvB,CAAC,CAAA,CAAC,CAAC;AAEH,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,CAAO,GAAG,EAAE,GAAG,EAAE,EAAE;IACpC,8BAA8B;IAC9B,sCAAsC;IACtC,gDAAgD;IAChD,qCAAqC;IACrC,4DAA4D;IAC5D,IAAI,SAAS,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACjD,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AACtB,CAAC,CAAA,CAAC,CAAC;AAEH,kDAAkD;AAClD,yCAAyC;AACzC,qCAAqC;AAErC,0BAA0B;AAC1B,qDAAqD;AACrD,wBAAwB;AACxB,sDAAsD;AACtD,0DAA0D;AAC1D,wBAAwB;AACxB,OAAO;AACP,4EAA4E;AAC5E,0BAA0B;AAC1B,MAAM;AAEN,mDAAmD;AACnD,0CAA0C;AAE1C,sCAAsC;AACtC,mBAAmB;AACnB,8BAA8B;AAC9B,OAAO;AACP,+CAA+C;AAC/C,6BAA6B;AAC7B,gCAAgC;AAChC,YAAY;AACZ,OAAO;AACP,0BAA0B;AAC1B,MAAM;AAEN,6CAA6C;AAC7C,MAAM;AACN,+DAA+D;AAC/D,iCAAiC;AACjC,MAAM;AACN,MAAM;AAEN,wDAAwD;AACxD,0DAA0D;AAE1D,oEAAoE;AACpE,sBAAsB;AACtB,iBAAiB;AACjB,OAAO;AACP,mCAAmC;AACnC,MAAM;AAEN,yDAAyD;AACzD,0DAA0D;AAE1D,+EAA+E;AAC/E,yBAAyB;AACzB,qBAAqB;AACrB,aAAa;AACb,UAAU;AACV,mEAAmE;AACnE,yBAAyB;AACzB,qBAAqB;AACrB,aAAa;AACb,UAAU;AACV,uCAAuC;AACvC,MAAM;AAEN,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;IACpB,OAAO,CAAC,GAAG,CAAC,6CAA6C,IAAI,EAAE,CAAC,CAAC;AACnE,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yCAAoD;AAE3C,kGAFA,uBAAiB,OAEA"}
package/dist/logger.d.ts CHANGED
@@ -3,3 +3,4 @@ export declare class ErrorLogger {
3
3
  constructor(data: any);
4
4
  log(): Promise<import("axios").AxiosResponse<any, any> | undefined>;
5
5
  }
6
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAKA,qBAAa,WAAW;IACtB,IAAI,EAAE,GAAG,CAAC;gBACE,IAAI,EAAE,GAAG;IAIf,GAAG;CAkBV"}
@@ -14,3 +14,4 @@ export declare class ParseClozeCard {
14
14
  };
15
15
  _validateCloze(clozeCard: any): any;
16
16
  }
17
+ //# sourceMappingURL=parse_cloze_card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse_cloze_card.d.ts","sourceRoot":"","sources":["../../../src/parse/parse_card/parse_cloze_card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,kEAAkE,CAAC;AAE5G,qBAAa,cAAc;IACzB,KAAK,CAAC,IAAI,EAAE;QACV,YAAY,EAAE,wBAAwB,CAAC;QACvC,IAAI,EAAE,MAAM,CAAC;QACb,cAAc,EAAE,qBAAqB,EAAE,CAAC;QACxC,WAAW,EAAE,MAAM,CAAC;KACrB;IAgDD,8BAA8B,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC;IAsBpE,iCAAiC,CAC/B,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,KAAK,CAAC,GAAG,CAAC;;;;IA4B5B,cAAc,CAAC,SAAS,EAAE,GAAG;CAkC9B"}
@@ -23,3 +23,4 @@ export declare class ParseFlashCard {
23
23
  } | null;
24
24
  generateFlashCardDisplayTitle(front: string, back: string): string;
25
25
  }
26
+ //# sourceMappingURL=parse_flash_cards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse_flash_cards.d.ts","sourceRoot":"","sources":["../../../src/parse/parse_card/parse_flash_cards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,kEAAkE,CAAC;AAE5G,qBAAa,cAAc;IACzB,KAAK,CAAC,IAAI,EAAE;QACV,YAAY,EAAE,wBAAwB,CAAC;QACvC,IAAI,EAAE,MAAM,CAAC;QACb,cAAc,EAAE,qBAAqB,EAAE,CAAC;QACxC,WAAW,EAAE,MAAM,CAAC;KACrB;;;;;;;;;;;;;;;IA4BD,6BAA6B,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;CAG1D"}
@@ -20,3 +20,4 @@ export declare class ParseMatchCard {
20
20
  _validateMatch(matchCard: any): any;
21
21
  }
22
22
  export {};
23
+ //# sourceMappingURL=parse_match_card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse_match_card.d.ts","sourceRoot":"","sources":["../../../src/parse/parse_card/parse_match_card.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,kEAAkE,CAAC;AAC5G,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAE5E,KAAK,SAAS,GAAG;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,UAAU,GAAG;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC;AAEF,qBAAa,cAAc;IACzB,KAAK,CAAC,QAAQ,EAAE;QACd,YAAY,EAAE,wBAAwB,CAAC;QACvC,IAAI,EAAE,MAAM,CAAC;QACb,cAAc,EAAE,qBAAqB,EAAE,CAAC;QACxC,WAAW,EAAE,MAAM,CAAC;KACrB;IAyBD,8BAA8B,CAAC,OAAO,EAAE,GAAG;IAc3C,kBAAkB,GAAI,OAAO,SAAS,EAAE,KAAG,UAAU,EAAE,CAarD;IAEF,cAAc,CAAC,SAAS,EAAE,GAAG;CAyB9B"}
@@ -28,3 +28,4 @@ export declare class ParseMcqCard {
28
28
  _validate(mcqCard: any): boolean;
29
29
  _checkIfAllAnswersAreWrong(answers: any[]): boolean;
30
30
  }
31
+ //# sourceMappingURL=parse_mcq_card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse_mcq_card.d.ts","sourceRoot":"","sources":["../../../src/parse/parse_card/parse_mcq_card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,kEAAkE,CAAC;AAE1G,qBAAa,YAAY;IACvB,KAAK,CAAC,IAAI,EAAE;QACV,YAAY,EAAE,sBAAsB,CAAC;QACrC,IAAI,EAAE,MAAM,CAAC;QACb,cAAc,EAAE,qBAAqB,EAAE,CAAC;QACxC,WAAW,EAAE,MAAM,CAAC;KACrB;;;;;;;;;;;;;;;;;;IA+CD,4BAA4B,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG;IAqB3D,SAAS,CAAC,OAAO,EAAE,GAAG;IA2BtB,0BAA0B,CAAC,OAAO,EAAE,GAAG,EAAE;CAQ1C"}
@@ -17,3 +17,4 @@ export declare class ParseCardResponse {
17
17
  _getCardReference(generatedCardData: any, sourceTaxonomy: any): any;
18
18
  _mapIdToConcepts(cardConcepts: any[], sourceConceptsFacts: any[]): MongoConceptFactCards[];
19
19
  }
20
+ //# sourceMappingURL=parse_card_response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse_card_response.d.ts","sourceRoot":"","sources":["../../src/parse/parse_card_response.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,yBAAyB,EAM1B,MAAM,+DAA+D,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,qBAAa,iBAAiB;IAC5B,KAAK,CACH,aAAa,EAAE,yBAAyB,EACxC,SAAS,EAAE,OAAO,EAClB,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,MAAM;;;;;;;;;;;IA6GrB,iBAAiB,CAAC,iBAAiB,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG;IAiB7D,gBAAgB,CACd,YAAY,EAAE,GAAG,EAAE,EACnB,mBAAmB,EAAE,GAAG,EAAE,GACzB,qBAAqB,EAAE;CAkB3B"}
@@ -23,3 +23,4 @@ export declare class ParseSourceContent {
23
23
  content: string;
24
24
  }[];
25
25
  }
26
+ //# sourceMappingURL=parse_source_content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse_source_content.d.ts","sourceRoot":"","sources":["../../src/parse/parse_source_content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,qBAAa,kBAAkB;IACtB,OAAO,EAAE,GAAG,CAAC;IAWpB,gBAAgB,WASd;IACF,oBAAoB,WAA2B;gBACnC,aAAa,EAAE,GAAG;IAI9B,SAAS,IAAI;QACX,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,GAAG,EAAE,CAAC;QACf,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,QAAQ,EAAE,cAAc,CAAC;KAC1B;IAoBD,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAqBtC,mBAAmB,CAAC,OAAO,EAAE,MAAM;IAmBnC,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC;IAoBjC,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC;IAiBlC,WAAW,CAAC,OAAO,EAAE,MAAM;IAM3B,eAAe,CAAC,IAAI,EAAE,GAAG;IAiBzB,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,WAAW,SAAO;;;;;CAsDvD"}
@@ -13,3 +13,4 @@ export declare class OpenAiService {
13
13
  data?: undefined;
14
14
  }>;
15
15
  }
16
+ //# sourceMappingURL=open_ai_service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open_ai_service.d.ts","sourceRoot":"","sources":["../../src/services/open_ai_service.ts"],"names":[],"mappings":"AAUA,qBAAa,aAAa;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;gBAET,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAKnC,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAwC3C,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE;;;;;;;;;CA4B3C"}
@@ -1,3 +1,4 @@
1
1
  import { QdrantClient } from "@qdrant/js-client-rest";
2
2
  declare const qdrantClient: QdrantClient;
3
3
  export default qdrantClient;
4
+ //# sourceMappingURL=qdrant_service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"qdrant_service.d.ts","sourceRoot":"","sources":["../../src/services/qdrant_service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAItD,QAAA,MAAM,YAAY,cAGhB,CAAC;AAEH,eAAe,YAAY,CAAC"}
@@ -13,3 +13,4 @@ export type BaseParamType = {
13
13
  type: string;
14
14
  };
15
15
  };
16
+ //# sourceMappingURL=base_param_type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base_param_type.d.ts","sourceRoot":"","sources":["../../src/types/base_param_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;QACjB,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,OAAO,EAAE,GAAG,EAAE,CAAC;QACf,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,QAAQ,CAAC,EAAE,cAAc,CAAC;QAC1B,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH,CAAC"}
@@ -9,3 +9,4 @@ export type MongoConceptFactCards = {
9
9
  type: "concept" | "fact";
10
10
  id: string;
11
11
  };
12
+ //# sourceMappingURL=mongo_concept_fact_type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mongo_concept_fact_type.d.ts","sourceRoot":"","sources":["../../src/types/mongo_concept_fact_type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IACzB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC"}
@@ -9,3 +9,4 @@ export type ParsedCardType = {
9
9
  explanation?: string;
10
10
  bloom_level?: number;
11
11
  };
12
+ //# sourceMappingURL=parsed_card_type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parsed_card_type.d.ts","sourceRoot":"","sources":["../../src/types/parsed_card_type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE;QACJ,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,GAAG,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -37,3 +37,4 @@ export type RawMcqCardResponseType = {
37
37
  is_correct: boolean;
38
38
  }[];
39
39
  };
40
+ //# sourceMappingURL=generated_card_response_type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated_card_response_type.d.ts","sourceRoot":"","sources":["../../../src/types/raw_card_response_types/generated_card_response_type.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,GAAG,CAAC;IACd,iBAAiB,EAAE;QACjB,UAAU,EAAE,uBAAuB,EAAE,CAAC;KACvC,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,GAAG,CAAC;IAChB,YAAY,EAAE,IAAI,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;IAMb,YAAY,EACR,wBAAwB,GACxB,wBAAwB,GACxB,wBAAwB,GACxB,sBAAsB,CAAC;IAC3B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,EAAE,CAAC;AAEJ,MAAM,MAAM,wBAAwB,GAAG;IACrC,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,OAAO,CAAC;KACrB,EAAE,CAAC;CACL,CAAC"}
@@ -12,3 +12,4 @@ export type SourceTaxonomy = {
12
12
  reason: string;
13
13
  };
14
14
  };
15
+ //# sourceMappingURL=source_taxonomy_type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source_taxonomy_type.d.ts","sourceRoot":"","sources":["../../src/types/source_taxonomy_type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,cAAc,EAAE;QACd,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QAEb,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC;KACnB,EAAE,CAAC;IACJ,MAAM,EAAE,MAAM,EAAE,CAAC;IAGjB,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC;IACjB,cAAc,EAAE;QACd,KAAK,EAAE,OAAO,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC"}
@@ -26,3 +26,4 @@ export declare class GenerateTypology {
26
26
  metadata: any;
27
27
  }>;
28
28
  }
29
+ //# sourceMappingURL=generate_typology.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate_typology.d.ts","sourceRoot":"","sources":["../../src/typology_gen/generate_typology.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAI5D,qBAAa,gBAAgB;IACpB,aAAa,EAAE,aAAa,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAM;IACpB,OAAO,EAAE,MAAM,CAAM;IAC5B,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;gBAE5B,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC;IAS1B,QAAQ;IAmCd,sBAAsB,CAAC,YAAY,EAAE,GAAG;;;;;;;;;;;IA6BxC,WAAW,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;;;;IAQ3B,sBAAsB,CAAC,YAAY,EAAE,GAAG;;;;CAQ/C"}
@@ -5,3 +5,4 @@ export declare class GenerateArgs {
5
5
  constructor(generate_card: boolean, generate_typology: boolean, generate_summary: boolean);
6
6
  getWhatNeedsToBeGenerated(): string[];
7
7
  }
8
+ //# sourceMappingURL=generate_args.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate_args.d.ts","sourceRoot":"","sources":["../../src/utils/generate_args.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;IAChB,aAAa,EAAE,OAAO,CAAS;IAC/B,iBAAiB,EAAE,OAAO,CAAS;IACnC,gBAAgB,EAAE,OAAO,CAAS;gBAGvC,aAAa,EAAE,OAAO,EACtB,iBAAiB,EAAE,OAAO,EAC1B,gBAAgB,EAAE,OAAO;IAO3B,yBAAyB;CAa1B"}
@@ -8,3 +8,4 @@ export declare function parseOpenAiFailureResponse(errorResponse: any): {
8
8
  status_code: any;
9
9
  message: any;
10
10
  };
11
+ //# sourceMappingURL=parse_openai_response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse_openai_response.d.ts","sourceRoot":"","sources":["../../src/utils/parse_openai_response.ts"],"names":[],"mappings":"AAAA,wBAAgB,0BAA0B,CAAC,YAAY,EAAE,GAAG;;;;;EAU3D;AAED,wBAAgB,0BAA0B,CAAC,aAAa,EAAE,GAAG;;;EAM5D"}
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "only_ever_generator",
3
- "version": "0.7.9",
4
- "main": "dist/app.js",
3
+ "version": "0.8.1",
4
+ "main": "dist/index.js",
5
+ "types": "dist/index.d.ts",
5
6
  "scripts": {
6
- "start": "npm run build && nodemon dist/app.js",
7
+ "start": "npm run build && nodemon dist/index.js",
7
8
  "build": "tsc",
8
9
  "test": "echo \"Error: no test specified\" && exit 1",
9
- "example": "npm run build && nodemon dist/app.js"
10
+ "example": "npm run build && nodemon dist/index.js"
10
11
  },
11
12
  "keywords": [],
12
13
  "author": "",
package/src/index.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { OnlyEverGenerator } from "./bootstrap/app";
2
+
3
+ export { OnlyEverGenerator };
package/tsconfig.json CHANGED
@@ -6,6 +6,8 @@
6
6
  "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
7
7
  "strict": true,
8
8
  "declaration": true,
9
+ "declarationMap": true,
10
+ "emitDeclarationOnly": false,
9
11
  "rootDir": "./src",
10
12
  "outDir": "./dist", /* Enable all strict type-checking options. */
11
13
  "sourceMap": true