Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: export ai components for runtime consumption #3586

Merged
merged 1 commit into from
Apr 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions libraries/botbuilder-ai-luis/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../.eslintrc.json"
}
4 changes: 4 additions & 0 deletions libraries/botbuilder-ai-luis/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
_ts3.4
lib
node_modules
runtime.json
7 changes: 7 additions & 0 deletions libraries/botbuilder-ai-luis/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# botbuilder-ai-luis

The [LuisBotComponent](https://github.com/microsoft/botbuilder-js/blob/main/libraries/botbuilder-ai/src/luisBotComponent.ts)
repackaged for consumption as a component in the Adaptive Dialogs runtime.

See the [botbuilder-ai](https://github.com/microsoft/botbuilder-js/blob/main/libraries/botbuilder-ai/README.md)
package for more details.
44 changes: 44 additions & 0 deletions libraries/botbuilder-ai-luis/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "botbuilder-ai-luis",
"preview": true,
"author": "Microsoft Corp.",
"version": "4.1.6",
"license": "MIT",
"description": "Luis component for Microsoft BotBuilder Adaptive Dialogs runtime",
"keywords": [
"botbuilder",
"botframework",
"bots",
"chatbots"
],
"bugs": {
"url": "https://github.com/Microsoft/botbuilder-js/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/botbuilder-js.git"
},
"main": "lib/index.js",
"types": "lib/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"_ts3.4/*"
]
}
},
"dependencies": {
"botbuilder-ai": "4.1.6"
},
"scripts": {
"build": "tsc -b",
"clean": "rimraf _ts3.4 lib tsconfig.tsbuildinfo",
"lint": "eslint . --ext .js,.ts",
"postbuild": "downlevel-dts lib _ts3.4/lib --checksum"
},
"files": [
"_ts3.4",
"lib",
"src"
]
}
6 changes: 6 additions & 0 deletions libraries/botbuilder-ai-luis/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { LuisBotComponent } from 'botbuilder-ai';

export default LuisBotComponent;
14 changes: 14 additions & 0 deletions libraries/botbuilder-ai-luis/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"esModuleInterop": true,
"outDir": "lib",
"rootDir": "src",
"strict": true,
"strictNullChecks": true,
"target": "es6"
},
"include": [
"src/**/*"
]
}
3 changes: 3 additions & 0 deletions libraries/botbuilder-ai-qna/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../.eslintrc.json"
}
4 changes: 4 additions & 0 deletions libraries/botbuilder-ai-qna/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
_ts3.4
lib
node_modules
runtime.json
7 changes: 7 additions & 0 deletions libraries/botbuilder-ai-qna/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# botbuilder-ai-qna

The [QnAMakerBotComponent](https://github.com/microsoft/botbuilder-js/blob/main/libraries/botbuilder-ai/src/qnaMakerBotComponent.ts)
repackaged for consumption as a component in the Adaptive Dialogs runtime.

See the [botbuilder-ai](https://github.com/microsoft/botbuilder-js/blob/main/libraries/botbuilder-ai/README.md)
package for more details.
44 changes: 44 additions & 0 deletions libraries/botbuilder-ai-qna/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "botbuilder-ai-qna",
"preview": true,
"author": "Microsoft Corp.",
"version": "4.1.6",
"license": "MIT",
"description": "QnAMaker component for Microsoft BotBuilder Adaptive Dialogs runtime",
"keywords": [
"botbuilder",
"botframework",
"bots",
"chatbots"
],
"bugs": {
"url": "https://github.com/Microsoft/botbuilder-js/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/botbuilder-js.git"
},
"main": "lib/index.js",
"types": "lib/index.d.ts",
"typesVersions": {
"<3.9": {
"*": [
"_ts3.4/*"
]
}
},
"dependencies": {
"botbuilder-ai": "4.1.6"
},
"scripts": {
"build": "tsc -b",
"clean": "rimraf _ts3.4 lib tsconfig.tsbuildinfo",
"lint": "eslint . --ext .js,.ts",
"postbuild": "downlevel-dts lib _ts3.4/lib --checksum"
},
"files": [
"_ts3.4",
"lib",
"src"
]
}
6 changes: 6 additions & 0 deletions libraries/botbuilder-ai-qna/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

import { QnAMakerBotComponent } from 'botbuilder-ai';

export default QnAMakerBotComponent;
14 changes: 14 additions & 0 deletions libraries/botbuilder-ai-qna/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"esModuleInterop": true,
"outDir": "lib",
"rootDir": "src",
"strict": true,
"strictNullChecks": true,
"target": "es6"
},
"include": [
"src/**/*"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"dependencies": {
"botbuilder": "4.1.6",
"botbuilder-ai": "4.1.6",
"botbuilder-ai-luis": "4.1.6",
"botbuilder-ai-qna": "4.1.6",
"botbuilder-applicationinsights": "4.1.6",
"botbuilder-azure": "4.1.6",
"botbuilder-azure-blobs": "4.1.6",
Expand Down
7 changes: 4 additions & 3 deletions libraries/botbuilder-dialogs-adaptive-runtime/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ import fs from 'fs';
import path from 'path';
import { Configuration } from './configuration';

import { DialogsBotComponent, MemoryScope, PathResolver } from 'botbuilder-dialogs';
import LuisBotComponent from 'botbuilder-ai-luis';
import QnAMakerBotComponent from 'botbuilder-ai-qna';
import { AdaptiveBotComponent, LanguageGenerationBotComponent } from 'botbuilder-dialogs-adaptive';
import { ApplicationInsightsTelemetryClient, TelemetryInitializerMiddleware } from 'botbuilder-applicationinsights';
import { BlobsStorage, BlobsTranscriptStore } from 'botbuilder-azure-blobs';
import { ComponentDeclarativeTypes, ResourceExplorer } from 'botbuilder-dialogs-declarative';
import { ConfigurationResourceExporer } from './configurationResourceExplorer';
import { CoreBot } from './coreBot';
import { CoreBotAdapter } from './coreBotAdapter';
import { CosmosDbPartitionedStorage } from 'botbuilder-azure';
import { ComponentDeclarativeTypes, ResourceExplorer } from 'botbuilder-dialogs-declarative';
import { LuisBotComponent, QnAMakerBotComponent } from 'botbuilder-ai';
import { DialogsBotComponent, MemoryScope, PathResolver } from 'botbuilder-dialogs';
import { ServiceCollection } from 'botbuilder-dialogs-adaptive-runtime-core';

import {
Expand Down