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

Stevenic/merge master #1413

Merged
merged 1,135 commits into from
Nov 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1135 commits
Select commit Hold shift + click to select a range
d7a1231
Add IReceiveResponse to exports
DDEfromOR Oct 7, 2019
0fa3e3b
Merge branch 'master' into dev/se-export-transportclient
DDEfromOR Oct 7, 2019
d411dce
Finish updating turnContext.ts
JonathanFingold Oct 7, 2019
a4d2d19
add reply to channel bot (#1269)
Oct 7, 2019
06cec93
delete unused packages, update lerna & package.jsons
stevengum Oct 8, 2019
82a9a58
Merge pull request #1271 from microsoft/stgum/cleanup
johnataylor Oct 8, 2019
ca177c9
Fix names of Messaging Extension projects (#1272)
Oct 8, 2019
f02962b
Merge branch 'master' into jf/typedoc-0916
JonathanFingold Oct 8, 2019
a0a3d7e
add tests and mocks for TeamsInfo (#1274)
stevengum Oct 8, 2019
3a2e631
Merging in changes from pr 1102
Oct 8, 2019
2d2bc1f
Merge branch 'master' into ts-compile-to-es5
Oct 8, 2019
dddda3a
Merge branch 'master' into 1129
tdurnford Oct 8, 2019
e970737
Merge pull request #1219 from tdurnford/1129
tdurnford Oct 8, 2019
680e772
Type definition fix: OAuthPromptState (#1157)
tolotrasamuel Oct 9, 2019
fa7318b
Change PromptState.state type to `any` - Fixes #1155
tolotrasamuel Oct 9, 2019
7797b13
Merge branch 'master' into gary/adapterTelemetry
garypretty Oct 9, 2019
2adc0a3
fix typedoc vulnerability
enzocano Oct 9, 2019
3661e47
delete unused doc references
enzocano Oct 9, 2019
573146b
Merge branch 'master' into ts-compile-to-es5
Oct 9, 2019
77ad9e9
Add some tests for teamsCreateConversation
daveta Oct 9, 2019
58b2f14
Merge branch 'master' into jf/typedoc-0916
JonathanFingold Oct 9, 2019
f04fa52
Merge branch 'master' into daveta-createConvTests
daveta Oct 9, 2019
113dad7
Merge pull request #1280 from microsoft/daveta-createConvTests
daveta Oct 9, 2019
a8192c3
synced with new dotnet changes
Oct 9, 2019
a6ffc1f
Merge branch 'master' into stgum/transcriptWork
jwiley84 Oct 9, 2019
845cfcb
added all tests
Oct 9, 2019
370ad94
+ copyright
Oct 9, 2019
30929b1
touch
Oct 9, 2019
6644f2d
[Teams] Lint Teams scenarios, minor refactor (#1283)
stevengum Oct 9, 2019
0c52f17
added test recordings
Oct 9, 2019
7afd075
disable failure if no emulator
Oct 9, 2019
02f6cac
added no emulator warning
Oct 9, 2019
2fa0ebc
Tests and changes
Oct 10, 2019
68d1963
Merge branch 'master' into se/oauth
Jeffders Oct 10, 2019
f5990b0
Merge branch 'master' into gary/adapterTelemetry
garypretty Oct 10, 2019
89de4b1
more tests
Oct 10, 2019
0795839
oauthcard tests
Oct 10, 2019
43a4567
Merge branch 'se/oauth' of https://github.com/Microsoft/botbuilder-js…
Oct 10, 2019
f7c2b79
Merge pull request #1233 from microsoft/gary/adapterTelemetry
garypretty Oct 10, 2019
a535a39
resolve conflict and merge up
DDEfromOR Oct 10, 2019
076e1db
Merge branch 'master' into dev/se-quick-fix
DDEfromOR Oct 10, 2019
ec26392
Merge pull request #1270 from microsoft/dev/se-export-transportclient
DDEfromOR Oct 10, 2019
5f3a49d
Merge branch 'master' into dev/se-quick-fix
DDEfromOR Oct 10, 2019
4883182
Merge pull request #1266 from microsoft/dev/se-quick-fix
DDEfromOR Oct 10, 2019
89b0e4f
Merge branch 'master' into se/oauth
Jeffders Oct 10, 2019
19dcb64
Merge pull request #1229 from microsoft/choice-prompt-unit-test-update
cleemullins Oct 10, 2019
683dde1
[Teams] add more TeamsInfo tests (#1275)
stevengum Oct 10, 2019
7a75aec
Merge pull request #1279 from enzocanoo/fix-typedoc-vulnerability
cleemullins Oct 10, 2019
a29c60a
Merge branch 'master' into se/oauth
Jeffders Oct 10, 2019
7d86155
Merge pull request #1284 from microsoft/se/oauth
Jeffders Oct 10, 2019
cb1c70b
Merge branch 'master' into cosmosPartitioning
mdrichardson Oct 10, 2019
55d21d2
implemented @christopheranderson suggestions
Oct 10, 2019
47c5cf9
Merge branch 'master' of https://github.com/microsoft/botbuilder-js i…
Oct 10, 2019
b71245e
Merge branch 'cosmosPartitioning' of https://github.com/mdrichardson/…
Oct 10, 2019
dcd7bfc
DNM: test to see if recordings used by pipeline
Oct 10, 2019
9069f65
DNM: try again
Oct 10, 2019
20178e0
fixed test recordings
Oct 11, 2019
0c4f706
added comment for instanceId replacement
Oct 11, 2019
932c554
Merge branch 'master' into stgum/transcriptWork
jwiley84 Oct 11, 2019
f5530ac
Let WebSocketClient take in a disconnection callback
ckkashyap Oct 11, 2019
1fe68b7
Merge pull request #1291 from microsoft/ckk/streaming-extensions-fixes
ckkashyap Oct 11, 2019
96f9413
relax the rules for what counts as a well formed guid
DDEfromOR Oct 12, 2019
59a9fa5
Merge branch 'master' into dev/uuid-update
DDEfromOR Oct 12, 2019
2274a3f
Streaming: Rename botframework-streaming-extensions -> botframework-s…
carlosscastro Oct 12, 2019
17cce26
Streaming: Move BotFrameworkStreamingAdapter to botbuilder module
carlosscastro Oct 13, 2019
59a1da3
Streaming: integrate streaming into botFrameworkAdapter though useWeb…
carlosscastro Oct 14, 2019
490ca73
move nock to devDependency (#1297)
Oct 14, 2019
fe6d846
Streaming: temporary move for lower case folders
carlosscastro Oct 14, 2019
bf36438
add test for nil guid header id
DDEfromOR Oct 14, 2019
f71af75
Streaming: directory casing rename part 2
carlosscastro Oct 14, 2019
687c992
Merge branch 'dev/uuid-update' of https://github.com/microsoft/botbui…
DDEfromOR Oct 14, 2019
a658a8e
Streaming: directory renaming last part
carlosscastro Oct 14, 2019
0f953ac
Merge branch 'master' into dev/uuid-update
DDEfromOR Oct 14, 2019
5f8a52b
Merge pull request #1294 from microsoft/dev/uuid-update
DDEfromOR Oct 14, 2019
a8c30c3
simplified upsert call
Oct 14, 2019
f46c655
Merge branch 'master' into cosmosPartitioning
mdrichardson Oct 14, 2019
7063d85
Cosmos partitioning (#1282)
mdrichardson Oct 14, 2019
c66a0ce
Streaming: rename all files and references to proper casing
carlosscastro Oct 14, 2019
797ce57
Streaming: reference streaming without the 'lib' postfix
carlosscastro Oct 14, 2019
3462af8
normalize azure blob timestamp properties to be iso1806 format
Oct 14, 2019
e7b920d
remove console debug statement in unit test
Oct 14, 2019
2d73ffe
Merge pull request #1303 from microsoft/tomlm/fixtranscripttimestamp
Oct 14, 2019
353fc6d
Merge branch 'master' into jf/typedoc-0916
JonathanFingold Oct 14, 2019
eb467e7
Removing unused libraries (#1298)
Oct 14, 2019
c8616c8
removing browser-compat libs (#1300)
Oct 14, 2019
85671b5
add TeamsActivityHandler BadRequest tests
stevengum Oct 15, 2019
cd33acf
add Teams ConversationUpdate tests
stevengum Oct 15, 2019
6b4f2d5
add TeamsActivityHandler NotImplemented tests
stevengum Oct 15, 2019
1e87022
change typing and name of param in onTeamsMessagingExtensionFetchTask
stevengum Oct 15, 2019
e350bdb
Streaming: Javascript style comments and documentation
carlosscastro Oct 15, 2019
84eae25
Streaming: Remove unnecessary logger, use http response and body to r…
carlosscastro Oct 15, 2019
bd5b6cf
Streaming: fix quotes
carlosscastro Oct 15, 2019
967bc45
Streaming: Improve comments and error messages
carlosscastro Oct 15, 2019
65adbc2
Streaming: refactor StreamingHttpClient to a separate file
carlosscastro Oct 15, 2019
6ba6c18
Streaming: update tests to richer error messages
carlosscastro Oct 15, 2019
992923e
Merge master-> ccastro/streaming-refactor
carlosscastro Oct 15, 2019
0867fbd
Merge pull request #1305 from microsoft/stgum/tests
johnataylor Oct 15, 2019
face819
Streaming: add more validations and test fixes
carlosscastro Oct 15, 2019
ecab28b
Merge branch 'master' into ccastro/streaming-refactor
carlosscastro Oct 15, 2019
7294321
Streaming: remove obsolete package from lerna.json and fix documentat…
carlosscastro Oct 15, 2019
486d3ce
Merge master -> ccastro/adapter-refactor
carlosscastro Oct 15, 2019
434b85b
Change ts compiler output from es5 to es6
Oct 15, 2019
a532f62
:wq!
Oct 15, 2019
5385821
Merge branch 'master' into ts-compile-to-es5
Oct 15, 2019
a4a0b6f
Transfer integration bot to js repo
daveta Oct 15, 2019
4e17d09
[Teams] Part of Teams Hackathon Feedback (#1308)
stevengum Oct 16, 2019
e7f97f6
[Teams] Add teamsTenantFilteringMiddleware to roster bot scenario (#1…
Oct 16, 2019
e03feae
Missing link unfurling scenario (#1313)
tsuwandy Oct 16, 2019
8de0e19
Hide WebSocket connection behind ProcessActivity
DDEfromOR Oct 16, 2019
b004775
Change ProcessActivity to accept Union Types and introduce Type Guard…
DDEfromOR Oct 16, 2019
74343b5
Better name. Maybe.
DDEfromOR Oct 16, 2019
4056a26
[Teams] Rename onTeams*-Invoke methods to handleTeams*, add TeamsInfo…
stevengum Oct 16, 2019
3271ff9
Merge branch 'master' into daveta-integrationBot
tsuwandy Oct 16, 2019
7db94f4
Adds createChildContext method to ComponentDialog
ltwlf Oct 16, 2019
c78b170
Update manifest.json
tsuwandy Oct 16, 2019
dcc1857
Streaming: remove isFromStreamingConnection out of TurnContext since …
carlosscastro Oct 16, 2019
f20ab32
Merge branch 'ccastro/streaming-refactor' of https://github.com/micro…
carlosscastro Oct 16, 2019
6fef457
Import directly from library instead of third hand
DDEfromOR Oct 16, 2019
4867dfe
fix WebSocketServer.onConnectionDisconnected, fix in StreamingAdapter…
stevengum Oct 17, 2019
7ae544c
move isFromStreamingConnection() tests to BFStreamingAdapter tests
stevengum Oct 17, 2019
f940dbb
fix bug in processRequest()
stevengum Oct 17, 2019
7526100
Remove library specific implementation of websocket handling
DDEfromOR Oct 17, 2019
7a351fd
Merge branch 'ccastro/streaming-refactor' of https://github.com/micro…
DDEfromOR Oct 17, 2019
2989994
revert changing protecteds to privates
DDEfromOR Oct 17, 2019
52c625d
Further cleanup websocket connection
DDEfromOR Oct 17, 2019
2f7fda9
Update tests
DDEfromOR Oct 17, 2019
5ecceaa
Remove no longer used import
DDEfromOR Oct 17, 2019
126c04e
Merge branch 'master' into ccastro/streaming-refactor
DDEfromOR Oct 17, 2019
7720537
Use const GET instead of string GET
DDEfromOR Oct 17, 2019
0401bbc
Merge branch 'ccastro/streaming-refactor' of https://github.com/micro…
DDEfromOR Oct 17, 2019
8c8f93e
fix removed internal export
stevengum Oct 17, 2019
10932ea
Merge branch 'master' of https://github.com/microsoft/botbuilder-js i…
daveta Oct 17, 2019
41d2103
Final fixes to websocket connection for DLS compatibility.
DDEfromOR Oct 17, 2019
951e179
Merge pull request #1306 from microsoft/ccastro/streaming-refactor
carlosscastro Oct 17, 2019
e02834c
Merge branch 'master' into tiens-integrationBot
tsuwandy Oct 17, 2019
52c9c33
merge scenarios
tsuwandy Oct 17, 2019
819883e
WIP, part way through dialogContext.ts
JonathanFingold Oct 17, 2019
f71487b
Merge branch 'master' into jf/typedoc-0916
JonathanFingold Oct 17, 2019
998cea2
Fix malformatted user agent JSON
DDEfromOR Oct 18, 2019
0efce8d
Merge pull request #1323 from microsoft/dev/se-fix
DDEfromOR Oct 18, 2019
04af4be
Add recording support for Roster API
daveta Oct 18, 2019
3d924c5
Merge branch 'daveta-integrationBot' of https://github.com/microsoft/…
daveta Oct 18, 2019
cc09484
Merge branch 'master' into ts-compile-to-es5
Oct 18, 2019
7e08bae
Fix proxy to support Roster calls
daveta Oct 18, 2019
2524a40
Merge branch 'daveta-integrationBot' into tiens-integrationBot
daveta Oct 18, 2019
6a94d91
Merge branch 'master' into tiens-integrationBot
tsuwandy Oct 18, 2019
1c73c78
Merge branch 'master' into jf/typedoc-0916
JonathanFingold Oct 18, 2019
f20b5d3
Fix manifest domains
daveta Oct 18, 2019
20e9638
Merge branch 'tiens-integrationBot' of https://github.com/microsoft/b…
daveta Oct 18, 2019
0b7575e
updated bot with more scenarios
tsuwandy Oct 18, 2019
a457e04
Merge branch 'tiens-integrationBot' of https://github.com/microsoft/b…
tsuwandy Oct 18, 2019
dd27e0d
Update integrationBot.ts
tsuwandy Oct 18, 2019
65c6085
Finish updating DialogContext
JonathanFingold Oct 18, 2019
d4f536b
added BF cards + conversationupdate
tsuwandy Oct 18, 2019
2fb5b5f
Add all settings for VSCode debugger
daveta Oct 18, 2019
2e473d0
added messagereactionbot
tsuwandy Oct 18, 2019
124d02d
Merge branch 'tiens-integrationBot' of https://github.com/microsoft/b…
tsuwandy Oct 18, 2019
8b977ad
added office365card
tsuwandy Oct 18, 2019
c0a21dc
Update activityHandler.ts
JonathanFingold Oct 18, 2019
63ffd40
added roster
tsuwandy Oct 18, 2019
042c049
added searchbasedmessagingextension scenario
tsuwandy Oct 18, 2019
cf497da
[Streaming] create NodeWebSocketFactory, refactor code, new tests (#1…
stevengum Oct 19, 2019
caca3eb
Fix missing ActivityLog
daveta Oct 19, 2019
2279916
Update README for script, add initial recordings, cleanup nock helper
daveta Oct 19, 2019
d88178c
Fix validation for post.
daveta Oct 19, 2019
1f3f49e
Add channel add and delete events. Add more comments to nock-helper
daveta Oct 19, 2019
7c807f2
Add member add-remove from groupchat, more cleanup for nock-helper
daveta Oct 20, 2019
8a9ae67
More updates
daveta Oct 20, 2019
a0db677
[Streaming] Add working ws websocket implementation for Node environm…
stevengum Oct 20, 2019
2a39be8
More scenarios
daveta Oct 21, 2019
e82b36b
Merge branch 'master' into jf/typedoc-0916
JonathanFingold Oct 21, 2019
d930ddf
Update typeDoc comments for ActivityHandler and ActivityHandlerBase
JonathanFingold Oct 21, 2019
b5b1005
Merge branch 'master' into ts-compile-to-es5
Oct 21, 2019
cedaba0
More updates
daveta Oct 21, 2019
dea6f9c
minor refactoring fileupload bot and added file handler for integrati…
tsuwandy Oct 21, 2019
711d338
removed console.log
tsuwandy Oct 21, 2019
32c683c
Update README.md
tsuwandy Oct 21, 2019
feeafc9
updated readme/manifest
tsuwandy Oct 21, 2019
a407941
Update manifest.json
tsuwandy Oct 21, 2019
688c9bf
Updating all libraries to output es6
Oct 21, 2019
3db4f21
Merge branch 'master' into master
Stevenic Oct 22, 2019
ad7a319
Merge pull request #1232 from microsoft/ts-compile-to-es5
Stevenic Oct 22, 2019
78f3c6b
Merge branch 'master' into stgum/transcriptWork
Stevenic Oct 22, 2019
fabdf14
Merge branch 'master' into jf/typedoc-0916
Stevenic Oct 22, 2019
e94f11b
Merge branch 'master' into master
Stevenic Oct 22, 2019
1958ea6
Merge pull request #1318 from ltwlf/master
Stevenic Oct 22, 2019
09ffd6d
Merge branch 'master' into stgum/transcriptWork
Stevenic Oct 22, 2019
ef6db96
Merge pull request #1138 from microsoft/stgum/transcriptWork
Stevenic Oct 22, 2019
550f597
Merge branch 'master' into jf/typedoc-0916
Stevenic Oct 22, 2019
8bfc4f1
Merge pull request #1264 from microsoft/jf/typedoc-0916
Stevenic Oct 22, 2019
f03d549
copy edits
JonathanFingold Oct 22, 2019
2424f55
QnaMaker: Rename Prompt -> QnAMakerPrompt
carlosscastro Oct 22, 2019
b775366
Merge branch 'master' into ccastro/qna-prompt-rename
carlosscastro Oct 22, 2019
112049b
Merge pull request #1342 from microsoft/ccastro/qna-prompt-rename
carlosscastro Oct 22, 2019
fbc1aca
added task module invocation, updated readme
tsuwandy Oct 22, 2019
9ca86e1
added promptCultureModels - parity w/ dotnet
Oct 15, 2019
ee7a170
fixed tests
Oct 15, 2019
0aef0ec
added tests for custom defaultChoices
Oct 15, 2019
2507057
removed unnecessary overrides
Oct 22, 2019
a09e9a8
update root package.json, streaming package.json
stevengum Oct 22, 2019
d38f878
Merge pull request #1343 from microsoft/stgum/build
johnataylor Oct 23, 2019
5e5cf06
[Streaming] Auth and browser compatibility fixes, linting, refactorin…
stevengum Oct 23, 2019
a1877a2
drop teams specific send
johnataylor Oct 23, 2019
c3c296b
Merge branch 'master' into johtaylo/issue1345
johnataylor Oct 23, 2019
b7cc801
Merge branch 'master' into tiens-integrationBot
tsuwandy Oct 23, 2019
b3e652a
Merge pull request #1347 from microsoft/johtaylo/issue1345
johnataylor Oct 23, 2019
50b55b0
Finish updating typeDoc comments for dialogContext.ts
JonathanFingold Oct 23, 2019
0fe1dca
Merge branch 'master' into jf/typedoc-1022
JonathanFingold Oct 23, 2019
38128b4
expand ChannelAccount to TeamsChannelAccount
johnataylor Oct 23, 2019
d7afd3f
[Streaming] Pull out streaming bits from botbuilder and move to botfr…
stevengum Oct 23, 2019
9a859ac
Update cardFactory.ts
tsuwandy Oct 23, 2019
69ecd76
cr fk
johnataylor Oct 23, 2019
80e8e60
Merge branch 'master' into johtaylo/issue1346
johnataylor Oct 23, 2019
c91e93f
Merge pull request #1350 from microsoft/johtaylo/issue1346
johnataylor Oct 23, 2019
87f049e
Merge branch 'master' into cultureRecognizerParity
Stevenic Oct 23, 2019
c5a1162
Merge pull request #1309 from mdrichardson/cultureRecognizerParity
Stevenic Oct 23, 2019
400eb32
Merge branch 'master' into jf/typedoc-1022
Stevenic Oct 23, 2019
b032aca
updated searchbased scenario to match c# (with tap/select handler)
tsuwandy Oct 24, 2019
92bef85
Merge pull request #1349 from microsoft/jf/typedoc-1022
Stevenic Oct 24, 2019
f21e243
Merge branch 'master' into tiens-integrationBot
Stevenic Oct 24, 2019
8a4dd52
final update
tsuwandy Oct 24, 2019
7258e4e
Merge branch 'tiens-integrationBot' of https://github.com/microsoft/b…
tsuwandy Oct 24, 2019
d451816
Update README.md
tsuwandy Oct 24, 2019
e92608c
set bot id to empty guid per andrew's request
tsuwandy Oct 24, 2019
353125f
Merge pull request #1351 from microsoft/tiens-integrationBot
tsuwandy Oct 24, 2019
2b3c47e
helper to send a trace activity (#1355)
johnataylor Oct 24, 2019
ef4123e
added local teamsCreateConversation helper (#1357)
tsuwandy Oct 25, 2019
c697bc0
[QnAMaker] Active learning low score variation multiplier value (#1359)
gurvsing Oct 25, 2019
6947888
Fixed passing of CosmosClientOptions
Oct 25, 2019
cdb8d6f
add random to transcript generated ids and set sent activity.id (#1344)
Oct 25, 2019
5f6a3d6
added test for CosmosClientOptions
Oct 25, 2019
ff70ed4
updated test recordings
Oct 25, 2019
a77c845
Merge branch 'master' into cosmosClientOptionsFix
mdrichardson Oct 25, 2019
51ad3d6
Merge pull request #1363 from mdrichardson/cosmosClientOptionsFix
stevengum Oct 25, 2019
3768fd3
remove .js and .ts from .gitignore, change *.map to *.js.map (#1365)
stevengum Oct 25, 2019
8af7918
Fix integrationBot to match C# (#1379)
daveta Oct 30, 2019
fc50201
remove typescript devDependency and engine from bf-streaming (#1392)
stevengum Nov 6, 2019
537b224
[Teams] Call defaultNextEvent after .invoke activity is processed (#1…
Nov 7, 2019
779f270
Add LG/Expression library (#1381)
Danieladu Nov 8, 2019
da7b1c1
fix ChoicePrompt none style when set via options (#1373)
mdrichardson Nov 11, 2019
4b9ae49
Add Botbuilder-lg to version update command
cleemullins Nov 12, 2019
4a893c7
Update package.json
cleemullins Nov 12, 2019
ce00fc1
Update package.json
cleemullins Nov 12, 2019
650ddf4
Update package.json
cleemullins Nov 12, 2019
72da85b
Parity ChoicePrompt fix with dotnet (#1400)
mdrichardson Nov 12, 2019
f9e805b
Stevenic/4.6 dialog parity (#1384)
Stevenic Nov 12, 2019
a1ef1d3
update package.json (#1402)
Danieladu Nov 12, 2019
22a34be
[Functional-test] Add chrome browser functional tests (#1389)
Bill7zz Nov 12, 2019
bb603b4
Merge branch 'master' into stevenic/merge-master
Stevenic Nov 14, 2019
bdf52d9
Fixed build breaks from merge
Stevenic Nov 14, 2019
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
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"libraries/botbuilder-dialogs",
"libraries/botbuilder-dialogs-adaptive",
"libraries/botbuilder-dialogs-declarative",
"libraries/botbuilder-lg",
"libraries/botbuilder-testing",
"libraries/botbuilder-lg",
"libraries/botframework-config",
"libraries/botframework-connector",
"libraries/botframework-expressions",
Expand Down
196 changes: 0 additions & 196 deletions libraries/botbuilder-azure/package-lock.json

This file was deleted.

2 changes: 1 addition & 1 deletion libraries/botbuilder-dialogs-adaptive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@types/node": "^10.12.18",
"botbuilder-core": "~4.1.6",
"botbuilder-dialogs": "~4.1.6",
"botframework-expressions": "~4.5.0",
"botframework-expressions": "~4.1.6",
"botframework-connector": "~4.1.6",
"botframework-schema": "~4.1.6",
"jsonpath": "^1.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class LogAction extends DialogCommand {
const data = Object.assign({
utterance: dc.context.activity.text || ''
}, dc.state, options);
const msg = format(this.template, data);
const msg = format(this.template, dc);

// Log to console and send trace if needed
console.log(msg);
Expand Down
21 changes: 10 additions & 11 deletions libraries/botbuilder-dialogs-adaptive/src/activityProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import * as stringTemplate from './stringTemplate';

export class ActivityProperty {
private _value: Partial<Activity>|string;
private _textTemplate: (data: object) => string;
private _textTemplate: (dc: DialogContext) => string;
private _speak: string;
private _speakTemplate: (data: object) => string;
private _speakTemplate: (dc: DialogContext) => string;

public get displayLabel(): string {
if (typeof this._value === 'object') {
Expand Down Expand Up @@ -65,19 +65,18 @@ export class ActivityProperty {

public format(dc: DialogContext, extraData?: object, override?: Partial<Activity>|string): Partial<Activity> {
// Format basic activity
const data = Object.assign({}, dc.state, extraData);
let activity: Partial<Activity>;
if (override) {
activity = this.formatOverride(override, data);
activity = this.formatOverride(override, dc);
} else if (typeof this._value === 'string') {
activity = {
type: ActivityTypes.Message,
text: this._textTemplate(data)
text: this._textTemplate(dc)
}
} else if (typeof this._value === 'object') {
if (this._value.type === ActivityTypes.Message && this._textTemplate) {
activity = Object.assign({}, this._value, {
text: this._textTemplate(data)
text: this._textTemplate(dc)
});
} else {
activity = this._value;
Expand All @@ -89,9 +88,9 @@ export class ActivityProperty {
// Apply speak and inputHints
if (activity.type === ActivityTypes.Message) {
if (activity.speak) {
activity.speak = stringTemplate.format(activity.speak, data);
activity.speak = stringTemplate.format(activity.speak, dc);
} else if (this._speakTemplate) {
activity.speak = this._speakTemplate(data);
activity.speak = this._speakTemplate(dc);
}
if (this.inputHint && !activity.inputHint) {
activity.inputHint = this.inputHint;
Expand All @@ -101,15 +100,15 @@ export class ActivityProperty {
return activity;
}

private formatOverride(override: Partial<Activity>|string, data: object): Partial<Activity> {
private formatOverride(override: Partial<Activity>|string, dc: DialogContext): Partial<Activity> {
if (typeof override === 'string') {
return {
type: ActivityTypes.Message,
text: stringTemplate.format(override, data)
text: stringTemplate.format(override, dc)
};
} else if (override.type === ActivityTypes.Message && override.text) {
return Object.assign({}, override, {
text: stringTemplate.format(override.text, data)
text: stringTemplate.format(override.text, dc)
});
} else {
return override;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { RecognizerResult } from 'botbuilder-core';
import { OnDialogEvent } from './onDialogEvent';
import { AdaptiveEventNames, SequenceContext } from '../sequenceContext';
import { DialogEvent, Dialog, DialogContextState } from 'botbuilder-dialogs';
import { DialogEvent, Dialog } from 'botbuilder-dialogs';

/**
* This rule is triggered when a message is received and the recognized intents & entities match a
Expand Down Expand Up @@ -36,7 +35,7 @@ export class OnIntent extends OnDialogEvent {
// Ensure all intents, entities, and properties exist.
const memory = sequence.state;
for(let i = 0; i < this.matches.length; i++) {
const value = DialogContextState.queryMemory(memory, this.matches[i], 1);
const value = sequence.state.getValue(this.matches[i]);
if (!Array.isArray(value) || value.length == 0 || value[0] == undefined) {
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { DialogContextVisibleState, DialogStateManager } from "botbuilder-dialogs";
import { DialogStateManager } from "botbuilder-dialogs";
import { ExpressionEngine, Expression } from 'botframework-expressions';

export type ExpressionDelegate<T> = (state: DialogContextVisibleState) => T;
export type ExpressionDelegate<T> = (state: object) => T;
export type ExpressionPropertyValue<T> = string|Expression|ExpressionDelegate<T>;

export class ExpressionProperty<T> {
Expand Down Expand Up @@ -40,7 +40,7 @@ export class ExpressionProperty<T> {
this._expression = engine.parse(this._value);
break;
case 'function':
this._expression = Expression.Lambda(this._value);
//this._expression = Expression.Lambda(this._value);
break;
default:
this._expression = this._value;
Expand Down
26 changes: 12 additions & 14 deletions libraries/botbuilder-dialogs-adaptive/src/stringTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import * as jsonpath from 'jsonpath';
import { DialogContextState } from 'botbuilder-dialogs';
import { DialogContext } from 'botbuilder-dialogs';

/**
* @private
Expand All @@ -17,9 +16,9 @@ import { DialogContextState } from 'botbuilder-dialogs';
* any valid JSONPath expression.
* @param template String template to compile.
*/
export function compile(template: string): (data: object) => string {
export function compile(template: string): (dc: DialogContext) => string {
// Break template into chunks.
const chunks: ((data: object) => string)[] = [];
const chunks: ((dc: DialogContext) => string)[] = [];
let buffer = '';
let inSlot = false;
for (let i = 0; i < template.length; i++) {
Expand Down Expand Up @@ -57,9 +56,9 @@ export function compile(template: string): (data: object) => string {
}

// Return stitching function
return (data: object) => {
return (dc: DialogContext) => {
let output = '';
chunks.forEach((fn) => output += fn(data));
chunks.forEach((fn) => output += fn(dc));
return output;
};
}
Expand All @@ -74,18 +73,17 @@ export function compile(template: string): (data: object) => string {
* @param template String template to compile.
* @param data The data used to fill the template slots.
*/
export function format(template: string, data: object): string {
return compile(template)(data);
export function format(template: string, dc: DialogContext): string {
return compile(template)(dc);
}

function textLiteral(buffer: string): (data: object) => string {
return (data) => buffer;
function textLiteral(buffer: string): (dc: DialogContext) => string {
return (dc) => buffer;
}

function textSlot(path: string): (data: object) => string {
path = DialogContextState.resolvePath(path);
return (data) => {
const value = jsonpath.value(data, path);
function textSlot(path: string): (dc: DialogContext) => string {
return (dc) => {
const value = dc.state.getValue(path);
switch (typeof value) {
case 'object':
return JSON.stringify(value);
Expand Down
Loading