File tree Expand file tree Collapse file tree
extensions/microsoft-sharepoint Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 "license" : " MIT" ,
1818 "dependencies" : {
1919 "@cognigy/extension-tools" : " ^0.17.0-rc3" ,
20- "@langchain/community" : " ^0.2.32 " ,
21- "@langchain/core" : " ^0.2.30 " ,
22- "@langchain/textsplitters" : " ^0.0.3 " ,
20+ "@langchain/community" : " 0.3.58 " ,
21+ "@langchain/core" : " 0.3.80 " ,
22+ "@langchain/textsplitters" : " ^0.1.0 " ,
2323 "axios" : " ^1.13.2" ,
24- "langchain" : " ^0.2.19" ,
25- "node-sp-auth" : " ^2.5.7" ,
24+ "langchain" : " 0.3.37" ,
25+ "d3-dsv" : " ^2.0.0" ,
26+ "mammoth" : " ^1.5.1" ,
27+ "node-sp-auth" : " ^3.0.0" ,
2628 "officeparser" : " ^4.2.0" ,
2729 "pdf-parse" : " ^1.1.1" ,
2830 "pdfjs-dist" : " ^5.1.91" ,
Original file line number Diff line number Diff line change 11import type { IKnowledge } from "@cognigy/extension-tools" ;
2- import { lsExtractor } from "./text_extractor " ;
3- import { splitDocs } from "./text_chunker " ;
2+ import { lsExtractor } from "./textExtractor " ;
3+ import { splitDocs } from "./textChunker " ;
44import * as fs from 'fs' ;
55import * as path from 'path' ;
66import * as os from 'os' ;
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ export async function getSharePointFiles(
5252 if ( ! item . size || item . size === 0 ) return false ; // Skip empty files
5353
5454 const nameLower = item . name . toLowerCase ( ) ;
55+ console . log ( '=nameLower=' , nameLower ) ;
5556 return SUPPORTED_EXTENSIONS . some ( ext => nameLower . endsWith ( `.${ ext } ` ) ) ;
5657 } )
5758 . map ( ( item : any ) => ( {
@@ -61,7 +62,7 @@ export async function getSharePointFiles(
6162 lastModified : new Date ( item . lastModifiedDateTime ) ,
6263 webUrl : item . webUrl
6364 } ) ) ;
64-
65+ console . log ( '=sharePointFiles=' , sharePointFiles ) ;
6566 return sharePointFiles ;
6667
6768 } catch ( error ) {
File renamed without changes.
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { CSVLoader } from '@langchain/community/document_loaders/fs/csv';
55import { JSONLoader , JSONLinesLoader } from 'langchain/document_loaders/fs/json' ;
66import { Document } from '@langchain/core/documents' ;
77
8- import { splitDocs } from './text_chunker ' ;
8+ import { splitDocs } from './textChunker ' ;
99import { BufferLoader } from 'langchain/document_loaders/fs/buffer' ;
1010import * as fs from 'fs' ;
1111import { parseOfficeAsync } from 'officeparser' ;
Original file line number Diff line number Diff line change 11import { createKnowledgeConnector } from "@cognigy/extension-tools" ;
2- import { getSharePointFileChunks } from "./helpers/chunk_extractor " ;
3- import { getSharePointFiles } from "./helpers/list_files " ;
2+ import { getSharePointFileChunks } from "./helpers/chunkExtractor " ;
3+ import { getSharePointFiles } from "./helpers/listFiles " ;
44import axios from "axios" ;
55import * as path from 'path' ;
66import * as crypto from "crypto" ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { cloudConnection } from "./connections/cloudConnection";
55import { getSharepointListItemsNode } from "./nodes/getSharepointListItems" ;
66import { basicConnection } from "./connections/basicConnection" ;
77import { connectorConnection } from "./connections/connectorConnection" ;
8- import { sharepointConnector } from "./knowledge-connectors/sharepoint-connector " ;
8+ import { sharepointConnector } from "./knowledge-connectors/sharepointConnector " ;
99export default createExtension ( {
1010 nodes : [
1111 getSharepointSiteInfoNode ,
You can’t perform that action at this time.
0 commit comments