Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 7a3cc7d

Browse files
feich-msVishwac Sena Kannanvishwacsena
authored
qnamaker build CLI (#654)
* qna build work version * support extracting name from kb.name in qna file * fix comparison bug * support alterations * adding tests * fix tests * fix type error * fix type error * fix tslijt * add comamnd doc in README * fix test cases * fix a comparison bug * optimize error handling * optimize error source msg when errors come from reference file * fix write dialogs * change dialog format * change dialog format * adjust dialog asset format * support multiturn and add corresponding tests * fix tslint * fix test case typo * fix dialog format * fix hostname * revert url and file references importing * add url and file reference handling function and tests * fix test cases * move serviceBase to qnabuild folder * Updates. * merge contents with same locale and and optimize the write dialog logic * update docs based on latest changes Co-authored-by: Vishwac Sena Kannan <[email protected]> Co-authored-by: Vishwac Sena Kannan <[email protected]>
1 parent b77505d commit 7a3cc7d

File tree

78 files changed

+1825
-1418
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+1825
-1418
lines changed

packages/lu/src/parser/lu/qna.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ class Qna {
1212
this.id = options.id ? options.id : ''
1313
this.includeInCollate = options.includeInCollate !== undefined ? options.includeInCollate : true
1414
this.language = options.language ? options.language : ''
15+
this.path = options.path ? options.path : ''
1516

17+
if (this.language !== '') {
18+
this.name = this.id + '.' + this.language + '.qna'
19+
} else {
20+
this.name = this.id + '.qna'
21+
}
1622
}
1723

1824
async translate(translate_key, tgt_lang, translate_comments = false, translate_link_text = false){

packages/lu/src/parser/lu/qnaOptions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
class QnAOptions {
2-
constructor(id = '', includeInCollate = true, language = ''){
2+
constructor(id = '', includeInCollate = true, language = '', path = ''){
33
this.id = id ? id : get_guid()
44
this.includeInCollate = includeInCollate
55
this.language = language
6+
this.path = path
67
}
78
}
89

packages/lu/src/parser/qna/qnamaker/kb.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class KB {
1515
this.urls = [];
1616
this.qnaList = [];
1717
this.files = [];
18+
this.name = '';
1819
}
1920
}
2021

0 commit comments

Comments
 (0)