Граф коммитов

101 Коммитов

Автор SHA1 Сообщение Дата
Will Portnoy 70e6a67a41
Debugger: preserve optional designer identifiers with source map range (#3637)
* preserve optional designer identifiers with source map range

* fixes for bad merge

* add copyright notice

* fix bad merge
2020-04-08 16:21:57 -07:00
Will Portnoy f7bc2e82b2
Debugger: Clean up on Disconnection and Identifier Thread Safety (#3629)
* move definition closer to use

* fix continued event

* add "break on start" to launch and attach arguments

* add item and more to source Range in protocol

* cache ICodePoint.Data to minimize new identitier values

* cache IReadOnlyList<ICodePoint> Frames to minimize new identifier values

* move files to folders for sanity

* add JValue data model

* continue all threads when disconnecting

* factor out interface from Identifier<T>

* add fixed size identifier cache

* factor out arena value codes from thread model

* add OutputEvent variable reference

* include value type in scalar data model

* fixes after testing

* reset debugger state on disconnection

* make identifier cache thread safe

* bad merge
2020-04-02 14:28:37 -07:00
Tom Laird-McConnell 43fd9e6050
Move DialogStateManager/Memory/Scope into dialogs dialogContext.State (#3570)
* clean up caps constant names

* * Add DialogContext.State as DialogStateManager/Remove GetState() extension method
* Move DialogStateManager/ScopesPathResolvers into Dialogs assembly
* Make all IMemory implementations evaluate ExpressionProperties
* Fix layering between expressions and dialogs via MemoryFactory.Create() and internal ducktyping memory
* Move ComponentRegistration into Builder assembly
* Fix path CAPS names in paths: NOTE I have marked old values as [Obsolete]  We should remove these obsolete properties right before we release or we will get broken builds for every PR because of backward compat issues.
2020-03-18 12:36:03 -07:00
Will Portnoy 20269df02e
Debug Adapter Protocol Support for variablesReference in OutputEvent (#3582)
* move definition closer to use

* fix continued event

* add "break on start" to launch and attach arguments

* add item and more to source Range in protocol

* cache ICodePoint.Data to minimize new identitier values

* cache IReadOnlyList<ICodePoint> Frames to minimize new identifier values

* move files to folders for sanity

* add JValue data model

* continue all threads when disconnecting

* factor out interface from Identifier<T>

* add fixed size identifier cache

* factor out arena value codes from thread model

* add OutputEvent variable reference

* include value type in scalar data model

* fixes after testing
2020-03-17 09:12:55 -07:00
Will Portnoy 9a4817721b
Dialog Debug Adapter improvements (#3563)
* move definition closer to use

* fix continued event

* add "break on start" to launch and attach arguments

* add item and more to source Range in protocol

* cache ICodePoint.Data to minimize new identitier values

* cache IReadOnlyList<ICodePoint> Frames to minimize new identifier values

* move files to folders for sanity

* add JValue data model
2020-03-15 15:22:58 -07:00
Dong Lei 8998621f01
Fix null reference in debugger (#3517) 2020-03-07 09:16:46 -08:00
BruceHaley 9ac0774b24
Add SourceLink to these 3 projects (#3404) 2020-02-18 15:56:11 -08:00
Tom Laird-McConnell d5cb749179
DCR 3200 QnAMakerRecognizer improvements. (#3376)
* * Cleaned up CrossTrainedRecgonizerSet to collect recgonizer result by id instead of top intent name.
* added expressions to better configure QnAMakerRecognizer

* rename MetaData to Metadata

* update comment.

* Add Expression assignment to ExpressionProperties
(This enables Expression.Lambda((data) => result)

* refactored ChooseIntent to have candidates array on the root recognizer result with the intent, id, score and result.

* * Fix QnAMAkerRecognizer to return none if no text instead of exception
* Fix RecognizerSet to merge extended properties
* update OnActivity and OnChooseIntent to be against the event instead of the turn.recognized

* * Fix EmitEvent to emit the event to the parent dialog
* Add unit test which verifies that ChooseIntent can Emit an IntentRecognized from the candidates and drive conversation forward.

* Move ProcesEntities into general turn mappping section

* * fix action scope for applying changes
* cleanup unused members of sequenceContext
* update OnChooseIntent to show interruption works correctly

* Add Debuger back into testbot

* plumb debugport through

* add trace as well as console

* add configureawait()

* add unit test around allowinterruption

* * make sure that processEvent properly pulls activity from dialogEvent instead of directly from the turncontext.
* add unit tests for EmitEvent with an activityReceived
* change Reconigzer to take in Activity always.

* * fix cloning of turncontext to include turnstate

* fix OnQnAMatch trigger registration
add qnaId and updated .schema files

* update unit test for @{} to ${}
2020-02-18 13:57:35 -08:00
Tom Laird-McConnell 6955e38c34
Cleanup and consolidate TypeFactory/loading/configuration/ExpressionEngine/registration etc. (#3350)
* Add HostContext for global assets like IConfiguration
* Add ComponentRegistration discovery
* Break interfaces apart for components registrations
* Added Expression.Parse with global function table
* Removed IExpressionEngineFactory
* drop SetStateConfiguration
* Merge TypeFactory and DeclarativeTypeLoader with ResourceExplorer
* Added DialogManager.TurnState to allow dialog manager to set initial TurnState for registering components like LanguageGenerator and ResourceExplorer
* Dropped adapter .Use methods and moved them to DialogManager  (UseResourceExplorer/UseLanguageGeneration etc)
* Drop Resource Plugins
* Merge RefResolver into ResourceExplorer
* rename TypeRegistration to KindRegistration
* Add Configuration.UseLuisSettings()
* add updateluis
* update coments
* add IComponentExpressionFunction for custom functions
* fix issue with netcore31
* changes based on code review
* comments
* headers
* fixed expression optional/ignore and added unit tets
* restored jsonload
* make transcript tests run faster by reducing delay by 10x
* fix optional/ignore semantics
2020-02-07 16:18:55 -08:00
Tom Laird-McConnell c7278119a7
RegExRecognizer refactor and fix for Capture groups (#3196)
* regexrecognizer didn't correclty hook up regex capture groups with  results of entityRecognizerSet
Also had bugs around mapping from Entity to RecognizerResult format.

* update csproj for local 4.8

* clean up entity recognizers signatures to be virtual and have text recognizer based base class for the text recgonizer classes

* normalize entity properties to be camelcase

* add virtual
2020-01-07 09:17:51 -08:00
Chris McConnell eea2c77147
Updates to AdaptiveDialog to support schema and ambiguity (aka forms and generation scenarios) (#2936)
* Sync to master and squash form stuff.

* Update to latest sandwich form tests.

* add retry to memory

* fix logic

* Fix casing on generated files.  Add card support for confirmation.

* Update schemas and case in generated files.

* Add ignore to runonce expression.

* fix retry issues

* Fix some consitency bugs and extend file tracking to include .lg.

* Merge FormDialog into AdaptiveDialog.

* remove hard-coded help intent detection

* Merge with master

* Fix the wrong format

* Change to have locale independent imports for .lg.

* Fix bug if no expected properties.
Update generated files.

* Update to latest sandwich after merge.

* Fix missing path.

* Merge with master

* Switch to declarative for generator.
Updated expected properties on slot selection.
Update test script to allow setting configuration.
Swallow empty send activtity.

* Properly handle ignore by removing from trigger tree.
Fix expression and semantics.
Add tests for runOnce.

* Support scopes and add tests for change tracker.

* Update LUISRecognizer schema to include prediction options.
Made entities robust wrt missing $instance.
Updated generate form to include instance data.

* Add documentation to LUIS schema.

* Fix baseComponent reference to JSON Schema.

* Add support for utterance and update to latest sandwich example in testbot.

* Simplify sandwich example.

* Update MockLuis to support full LUIS recognizer and enable for generator tests.
Fix bug where utterance was generated for enum properties.
Make entity clarification more robust.

* Fix how empty activities are ignored.
Wire up MockLuis to script tests.
Fix some warnings.

* add test templates

* copy templates to adaptive.tests

* Revert "copy templates to adaptive.tests"

This reverts commit 6196528f26.

* copy test templates to adaptive.tests

* Restore bad scope exception.
Update schema.

* Make MockLuis more robust to not having your own setting file.

* several questions

* remove test2 files from testbot.json and adaptive.tests. add unittests files to adaptive.tests.

* Unittests script

* change name to unitTestsDirectory

* Make it so that trigger priority can be an expression.
Extend IndexOf to work over arrays as well as string.

* Make SendActivity more robust on detecting activity.

* Rip out scope support.
Fix bug where setting root scope caused stack overflow.

* Make path consistent.

* Address code review comments including:
* Documentation
* Pascal casing constans
* New memory scope dialogclass so schema is dialogclass.schema
* Renaming events, SetProperty->AssignEntity, ClarifyEntity->ChooseEntity
* Making schema be a plain JObject

* Switch to upper case constants to avoid an SDK breaking change.

* Remove .net framework projects from debug build.

* Fix casing on directory spec "Files"

* Removed file on lowercased path.

* Switch from OnAsk to OnEndOfActions.

Co-authored-by: Ning Gao <nigao@microsoft.com>
Co-authored-by: Dong Lei <donglei@microsoft.com>
Co-authored-by: BruceHaley <v-bruhal@microsoft.com>
2019-12-23 22:38:36 -08:00
xieofxie 58a0319698 change to start <= line <= end (#3078)
* change to start <= line <= end

* trick build to execute

Co-authored-by: Tom Laird-McConnell <tomlm@microsoft.com>
2019-12-19 18:33:14 -08:00
Eric Dahlvang c9d9240ee1 upgrade newtonsoft package reference 2019-11-25 12:06:26 -08:00
Tom Laird-McConnell f6c60ecae1 Merge branch 'master' into tomlm/multiTarget 2019-11-18 18:26:20 -08:00
Tom Laird-McConnell 7404c1bc8c * add multiple targets frameworks for unit tests
* make sure that all libraries are consistently making full pdb symbols with debug builds
2019-11-08 14:20:32 -08:00
Eric Dahlvang ea24c9f164 Fix library compat issues. 2019-11-06 15:48:11 -08:00
Tom Laird-McConnell 4fc789931f
add IsBuildServer and ReleasePackageVersion (#2865) 2019-10-25 13:58:08 -07:00
Tom Laird-McConnell 35c9c08e0f
Refactor DialogStateManager and DialogManager into Adaptive (#2862)
* Refactor DialogStateManager and DialogManager into Adaptive so we can have more bake time
* replace DC.State => extension method DC.GetState()
* Change DC to use ObjectPath.SetPathValue() for 3 properties it manages
* update everyone to use .GetState()
* Fix some misc bugs which surfaced because of subtle interactions.
2019-10-25 12:31:57 -07:00
Carlos Castro fb1c5a997c Code cleanup: build fixes after merge 2019-10-24 00:36:16 -07:00
Carlos Castro 330c673d3d Project wide code cleanup: Fix all SA1401 occurrences + copyright header consistency 2019-10-23 23:38:55 -07:00
Tom Laird-McConnell 3481083077 Debugger requires camelcase serialization when communicating with vscode debugger
VSCode sends different case drive letter then IIS has.  Added support to only use file name for resources, (.dialog, .lg, etc.) and be case insensitive on windows platform.
2019-10-19 15:41:29 -07:00
Tom Laird-McConnell 100d859fd9 fix all warnings and clean up package iconurl and nuget definitions 2019-10-10 10:15:02 -07:00
Tom Laird-McConnell 7e4ea1a504 clean up csproj files to use build.props definition for signing 2019-10-08 16:17:27 -07:00
Tom Laird-McConnell 3cb9409ea0 Fix regression in debug sourcemap 2019-09-29 23:32:30 -07:00
Tom Laird-McConnell ab043c22cd remove project level -windows configurations, and have just solution configurations for turning on off builds 2019-09-27 14:42:46 -07:00
Tom Laird-McConnell 4ee24f4334 remove debug-nuget configuration 2019-09-26 16:55:30 -07:00
Tom Laird-McConnell 71a049abc3 Add PreviewPackageVersion
Change all preview libraries to use ${PreviewPackageVersion)
Drop -standard.sln, consolidating to one solution
Add Debug-Windows, Release-Windows build configurations (Debug/Release is core libraries)
update all project files to have correct nuget package references
2019-09-26 16:28:15 -07:00
Tom Laird-McConnell a14eeb0b09 rename DebugAdapter to DialogDebugAdapter 2019-09-23 17:30:02 -07:00
Tom Laird-McConnell 539062322d Cleanup Debugger class names and interfaces
Got rid of nested static class wrappers
Put each class/interface in own file
Made names more descriptive
- ISourceMap instead of IRegistry
- IDialogDebugger instead of IDebugger
- SourceMap instead of Registry
- NullSourceMap instead of NullRegistry
- NullDialogDebugger instead of NullDebugger
- SourcePoint instead of Point
- SourceRange instead of Range
- StartPoint and EndPoint instead of Start and After
added Unit tests
2019-09-23 16:56:53 -07:00
Tom Laird-McConnell 7dd94a20c9 initial implementation 2019-09-09 16:39:08 -07:00
Tom Laird-McConnell f2cccf13ef * pull all classes into their own file
* move language generation assets out of dialog and into languagegeneration libs
* rename LanguageGenerator.Render -> LanguageGenerator.TEmplates
* refactor Type registration out of TypeLoader and into respective dialogs
2019-09-05 20:20:10 -07:00
Tom Laird-McConnell 680a7a6658 * drop dc.ActiveTags
* drop dc.DialogState
* revert IList change to dc.Stack
2019-09-05 11:07:00 -07:00
Tom Laird-McConnell 510acbc6f1 remove IDialog for Dialog abstract class 2019-09-04 17:05:51 -07:00
Tom Laird-McConnell 0f5d08c92f * align regexRecognizer with node (adding IntentPattern)
* remove unwanted events
* Removed IEntityRecognizer for abstract class
2019-08-30 14:27:41 -07:00
LocalizationBuildProcess 72eb746bb6 Warnings fix group 16. 2019-08-22 14:03:26 -07:00
LocalizationBuildProcess 10e1e53eb6 Warnings fix group 15. 2019-08-21 16:24:11 -07:00
LocalizationBuildProcess c5692beadc Warnings fix group 14. 2019-08-21 11:17:38 -07:00
LocalizationBuildProcess bc52b5fa6c Warnings fix group 11. 2019-08-20 17:31:41 -07:00
LocalizationBuildProcess e5f530d992 Warnings fix gropup 8 2019-08-19 17:09:01 -07:00
LocalizationBuildProcess 6b53916075 Warnings fix group 6 2019-08-19 10:52:08 -07:00
LocalizationBuildProcess 99e039563d Warnings fix group 4 2019-08-16 15:49:46 -07:00
LocalizationBuildProcess 20cbb76f8e Warnings fix group 3. 2019-08-16 11:54:33 -07:00
LocalizationBuildProcess 9669c24047 Warnings fixes - second group 2019-08-15 12:52:19 -07:00
Tom Laird-McConnell 2e3056d37f add debug annotations and plumb through AdaptiveEvents 2019-05-02 10:32:11 -07:00
Tom Laird-McConnell 91619079c7 Cleanup debug logging 2019-04-30 20:40:08 -07:00
Tom Laird-McConnell 74d2cb2d38
Merge pull request #1836 from Microsoft/wportnoy/ExceptionBreakpoints
use VSCode exception filters to expose DialogEvent
2019-04-29 22:20:50 -07:00
Tom Laird-McConnell dc529842fe
Merge pull request #1838 from Microsoft/tomlm/fixlinux2
All unit tests build and pass on linux
2019-04-29 19:56:03 -07:00
tomlm 93b1fadd3b fix debugger for max/linux
vs code is expecting \r\n\r\n to initiate conversation and we were using
```
    writer.WriteLineAsync()
   writer.WriteLineAsync()
```
which was not right for non-windows platofrms
2019-04-29 19:43:45 -07:00
Will Portnoy 805cababd2 disable DialogEvents.EndDialog by default 2019-04-29 15:13:12 -07:00
Will Portnoy ffb71c891a use VSCode exception filters to expose DialogEvent 2019-04-29 13:18:15 -07:00