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

41 Коммитов

Автор SHA1 Сообщение Дата
Jhonatan Sandoval Velasco cd6cf6f9f8
bump: Update ESLint packages and migrate to eslint.config.cjs files (#4776)
* update eslint configurations

* show only eslint warnings

* add dependencies

* removed unused imports and add only warn to every library

* move eslint-plugin-only-warn to the right place

* fix import errors

* remove files config

* Update eslint.config

* Remove blank line and spaces

---------

Co-authored-by: Joel Mut <joel.mut@southworks.com>
Co-authored-by: CeciliaAvila <cecilia.avila@southworks.com>
2024-10-29 09:04:25 -05:00
Joel Mut a3fc96eb38
bump: [#4684] Update multiple dependencies inside public libraries to latest version (#4739)
* Update dependencies in libraries' projects

* Fix some issues in testing projects

* Update root package.json typescript and @types/node versions

* Fix @types/express problem in yarn.lock

* Fix pipelines
2024-09-10 08:51:24 -05:00
Jhonatan Sandoval Velasco 600578051d
use npm to run postinstall scripts (#4611) 2024-01-29 13:02:33 -06:00
Jhonatan Sandoval Velasco a0e84e94d7
fix: Remove old @microsoft/recognizers-text-number version with postinstall scripts (#4608)
* add recognizers-text-number resolution

* add scripts to remove old version of recognizers-text-number

* remove rimraf package
2024-01-24 08:42:46 -06:00
Cecilia Avila 7110e8a732
fix: [#4490] Usage of a vulnerable package - Upgrade recognizers-text-number (#4524)
* Upgrade recognizers-text-number to latest version

* Update unit tests to work with new entities
2023-08-18 10:34:03 -05:00
Cecilia Avila c692c81df7
port: [#4277] Catch HttpRequestException in HttpRequest (#6404) (#4304)
* HttpRequest class updated. Unit test created.

* Added botbuilder-core dependency.

Co-authored-by: Emiliano Quiroga <emiliano.quiroga@7-11.com>
2022-08-09 09:26:10 -05:00
Cecilia Avila 7cfb39ac25
fix: [#4204] Fix remaining eslint warnings - botbuilder-dialogs-adaptive (#4230)
* Fix eslint issues in botbuilder-dialogs-adaptive

* Fix spacing
2022-07-12 08:10:01 -05:00
Cecilia Avila 492c3d89ae
Handle redundant dependencies in AI Recognizers (#4152) 2022-03-17 16:10:57 -07:00
Cecilia Avila 9fa659c759
port: [#3922] Corrected GetConversationMembers to use TeamsInfo helper class rather… (#5874) (#4151)
* Remove functions from BotFrameworkAdapter

* add library, so it can fix yarn depcheck

* apply changes

Co-authored-by: mraitersw <micaela.raiter@southworks.com>
Co-authored-by: Monica Rivera <44449640+mrivera-ms@users.noreply.github.com>
Co-authored-by: Eric Dahlvang <erdahlva@microsoft.com>
2022-03-17 16:10:17 -07:00
BruceHaley 12410dfa36
fix: node-fetch Component Governance vulnerability (#4079)
* Force node-fetch to v 2.6.7

* Update node-fetch to 2.6.7

Co-authored-by: Monica Rivera <44449640+mrivera-ms@users.noreply.github.com>
2022-02-10 17:23:24 -08:00
Joel Mut fdd51fda83
fix: [#2745] Fix current eslint warnings - botbuilder-dialogs-adaptive library - src & conditions (#4069)
* Fix eslint warnings - src & conditions

* Revert dialogContext

* Apply feedback for botbuilder-dialogs-adaptive eslint jsdoc

* Fix test:compat for botbuilder-dialogs-adaptive

Co-authored-by: Nahuel Perales <nahuel.perales@southworks.com>
2022-02-03 15:49:29 -08:00
Josh Gummersall a5ae17eac3
Revert "fix: [#3969] useLanguagePolicy setting turn state, instead of languagePolicy (#3972)" (#3976)
This reverts commit 98dd347ebf.
2021-11-08 10:57:55 -08:00
Joel Mut 98dd347ebf
fix: [#3969] useLanguagePolicy setting turn state, instead of languagePolicy (#3972)
* Revert "Revert "port: Register missingProperties custom function to get all variables the template contains (#3885)" (#3970)"

This reverts commit 619ac1399d.

* fix: useLanguagePolicy setting turn state, instead of languagePolicy
2021-11-05 11:51:45 -07:00
Josh Gummersall 619ac1399d
Revert "port: Register missingProperties custom function to get all variables the template contains (#3885)" (#3970)
This reverts commit 3e2beae24e.
2021-11-03 16:22:04 -07:00
Hongyang Du (hond) 3e2beae24e
port: Register missingProperties custom function to get all variables the template contains (#3885)
* init

* init

* fix issue

* fix API extractor error

* fix

* fix comments

* fix test:compat

Co-authored-by: Josh Gummersall <jgummersall@microsoft.com>
2021-08-02 12:50:55 -07:00
Josh Gummersall 542641d0e8
chore: add missing packages to consumer test (#3737)
* feat: depcheck

* feat: separate workflows instead of conditional exec

* Revert "bump: runtypes (#3648)"

This reverts commit c7a22fb465.

* Downgrade other runtypes references

* chore: add missing packages to consumer test

Fixes #3736

* fix: downlevel runtime integrations

* fix: better consumer test errors

* feat: zod replaces runtypes for tsc compat

* fix: runtime error devexp, luis tests

* clean botframework-schema references in tests

Co-authored-by: stevengum <14935595+stevengum@users.noreply.github.com>
2021-06-22 09:29:11 -07:00
Josh Gummersall ca261db8d9
fix: rename runtime packages (#3481)
* fix: rename runtime packages

Fixes #3480

* fix: descriptions
2021-03-29 16:26:30 -07:00
Josh Gummersall 85ff1febb9
port: component registration -> bot components (#3471)
* feat: BotComponent instead of ComponentRegistration

* fix: serviceCollection sync

* feat: dialogs to bot component, shim registration

* fix: dialogs adaptive testing component registration

* fix: adaptive teams tests

* fix: dialogs declarative tests

* fix: orchestrator bot component

* fix: remove unused p-reduce dep

* fix: orchestrator rename

* fix: corebot initial turn state

* fix: turn state undefined

* fix: component load error

* fix: use no-op configuration for configure services calls

* fix: shim luis/qna component registrations

* port: collect bot component load exceptions and report once

* fix: orchestrator exports

* fix: noOpConfiguration docstring
2021-03-29 15:28:13 -07:00
Josh Gummersall 1c29775935
port: SendHandoffActivity action (#3304)
* port: SendHandoffActivity action

Fixes #3302

* fix: add single turn/step note

* port: uischema change

Fixes #3323

* fix: object expression type

* fix: botbuilder-core -> botbuilder

* fix: register activity

Fixes #3358

Co-authored-by: Zichuan Ma <zim@microsoft.com>
2021-03-09 10:30:18 +08:00
Zichuan Ma 05a8f15f5b
fix: QnAMakerDialog to handle interuption scenarios (#3346)
* added QnAMakerClient and QnAMakerClientKey

* updated QnAMakerDialog/QnAMakerRecognizer

* updated tests

* updated recognizer as well

* fixed lodash issue

* removed Async suffix

* no more return await

* optimized lodash import

* new way to construct QnAMakerEndpoint

* make dialogContext required

* fixed tests

* fixed imports
2021-03-02 11:05:18 +08:00
Zichuan Ma 99f7bd2bb3
removed `jsonpath` (#3331) 2021-02-19 08:01:43 -08:00
Josh Gummersall 5dc9a31b3a
feat: use fork of downlevel-dts (#3078)
I have submitted a PR to upstream a bugfix to downlevel-dts with no
response yet. I also added a feature that computes checksums that can be
used to skip superfluous processing, drastically reducing subsequent
`yarn build` times (~50%).
2020-12-01 10:00:18 -08:00
Josh Gummersall 1873a0ffaf
monorepo: ci, lint, package.json overhaul (#3058)
* fix: package.json overhaul

- restructure eslint configuration for better isolation
- hoist many package.json script deps to root package.json
- fix all `clean` scripts

* fix: remove @types/node where possible (#3012)

Fixes #2415
Fixes #2416
Fixes #2417
Fixes #2418
Fixes #2419
Fixes #2420
Fixes #2421
Fixes #2422
Fixes #2423
Fixes #2424
Fixes #2425
Fixes #2426
Fixes #2428

* ci: test with github actions

Cleans up workflows and runs on Windows as well

* fix: child_process.spawn only, add --scriptArgs

Use spawn isntead of exec to get around buffering issues and make code
less branchy.

Add --scriptArgs flag to pass extra flags directly to an npm script. An
unfortunately hacky way to support passing `--quiet` to eslint for CI.

* feat: --concurrent for uncoordinated execution

Also uses async.auto rather than custom dependency resolution code
2020-11-12 11:58:42 -08:00
Josh Gummersall 51ddc5902c
deps: upgrade to typescript 4.x (#2990)
* Bump typescript versions

* Overhaul BotFrameworkAdapter tests

Admittedly a bikeshed moment, but was bothered by some opaque test
failures. This makes the tests a lot more isolated, DRY, and generaly
nicer to work with.

* Package downlevel files
2020-11-10 16:48:32 -08:00
Josh Gummersall 6103ccf63f
monorepo: overhaul lerna/yarn/repo tools (#2984)
* Overhaul lerna/yarn/repo tools

- Clean up lerna.json
- Move to yarn workspaces
- Move to yarn for CI
- Add botbuilder-repo-utils with updateVersions script

* Remove unused cache step

* Clean up some docs

* Bump eslint, other deps

* Support more complex package versioning

* Fix pipeline variable use

* Address PR review

Co-authored-by: Steven Gum <14935595+stevengum@users.noreply.github.com>
2020-11-09 12:20:44 -08:00
Chris McConnell 7759e7003a
Add schemas from C# to packages. (#2986) 2020-10-30 18:02:49 -07:00
Zichuan Ma d0260ea56d
Move QnAMaker/Luis components into botbuilder-ai (#2235)
* move TemplateInterface from adaptive to botbuilder-dialogs

* introduced expression properties in QnAMakerDialog

* registered Microsoft.QnAMakerDialog

* move Recognizer to botbuilder-dialogs

* removed unused ConverterRegistration

* move telemetryClientKey to botbuilder-core

* import Recognizer from botbuilder-dialogs

* move qnamaker recognizer to botbuilder-ai

* AdaptiveTypeBuilder -> DefaultTypeBuilder

* make BuilderRegistration interface

* new ComponentRegistration

* updated AdaptiveDialogTestComponentRegistration

* updated AdaptiveDialogComponentRegistration

* updated orchestrator recognizer to import recognizer from botbuilder-dialogs

* updated OrchestratorComponentRegistration

* implemented QnAMakerComponentRegistration

* updated test runner to use new component registrations

* refactored botbuilder-dialogs-declarative to support new component registration

* new adaptive dialog component registration

* new qna maker component registration to cut off dependency to botbuilder-dialogs-declarative

* new orchestrator component registration to cut off dependency to botbuilder-dialogs-declarative

* new adaptive dialog test component registration

* add header of botbulder-ai

* move luis adaptive recognizer to botbuilder-ai

* implemented LuisComponentRegistration

* removed dependency to botbuilder-ai in botbuilder-dialogs-adaptive

* bug fix

* move key of telemetryClient to botbuilder-dialogs

* removed dependency to botbuilder-ai
2020-10-21 10:01:08 -07:00
Zichuan Ma 524a85b3a3
Adaptive objects initialization refactoring (#2873)
* refacored declarative

* changed converters property to accessor

* eslint --fix

* updated types

* updated converters type

* added type for the converter of qnarequestcontext

* more types

* simplified converters

* removed unused imports

* allow converters to convert T to T

* renamed get converters() to getConverters()

* replaced getConverters() with getConverter()

* removed unused types

* auto assign dialog id fix

* added converter to convert string array to dialogs

* test resource id assignment in actions

* changed dialog in test script back to Dialog

* added configuration interfaces

* use Object.entries()

* use reduce to construct object

* updated types

* use reduce

* adaptive classe implements configuration interface

* renamed customDialogLoader to dynamicBeginDialogDeserializer

* use reduce in default loader

* added docs

* userTokenMocks should be optional

* use reduce in http headers converter
2020-10-15 16:56:35 -07:00
Josh Gummersall 8cc7e047e9
Publish lib/src only botbuilder-adaptive-dialogs (#2880)
Fixes #2879

Co-authored-by: Steven Gum <14935595+stevengum@users.noreply.github.com>
2020-10-09 10:27:13 -07:00
Zichuan Ma 9f1945bada
Enabled api-extractor in adaptive/declarative/adaptive-testing packages (#2758)
* enabled api-extractor in botbuilder-dialogs-adaptive

* enabled api-extractor in botbuilder-dialogs-declarative

* enabled api-extractor in botbuilder-dialogs-adaptive-testing

Co-authored-by: Steven Gum <14935595+stevengum@users.noreply.github.com>
2020-09-14 13:21:43 -07:00
Steven Gum e3f111b36c
CodeAnalysis pipeline fixes, eslint bump, test fixes (#2742)
* update eslint-related dependencies & config file

* update js-analysis-steps to match major-minor dependencies in package.json

* cleanup default test scripts, update devDependencies, update eslint config
2020-08-24 11:00:37 -07:00
Zichuan Ma c34ca98481
Updated HTTP request to parse binary response (#2553)
* refactored http request to parse binary response

* move @types to dev dependencies

* updated test case for http request

Co-authored-by: Steven Ickman <stevenic@microsoft.com>
2020-07-24 12:57:05 -07:00
Denise Scollo 1adbce64d5
Update dependencies warnings (#2545)
Co-authored-by: Joel Mut <62260472+sw-joelmut@users.noreply.github.com>
Co-authored-by: Cecilia Avila <44245136+ceciliaavila@users.noreply.github.com>
2020-07-22 10:10:03 -07:00
Qi Kang 99fa20eec2
Add choice set (#2143)
* add choice set

* as choice

* add choice set test

* fix build error

* fix location

* update test command

Co-authored-by: Zichuan Ma <zim@microsoft.com>
Co-authored-by: Lu Han <32191031+luhan2017@users.noreply.github.com>
2020-06-09 22:38:25 -07:00
Steven Gum 8ad017c909
Cherry-pick ES6 targeting and big-integer addition to master (#2208)
* Updated packages to target ES6 (#2204)

* Switch adaptive-expressions to es6 (#2205)

* Drop back to es5 and add bigint support.

* Fix test script.

* Fix test script.

* Remove adaptive.

* Remove space.

* Remove changes to package.json.

* update adaptive-expressions target to es5 for initial testing

* Push es5.

Co-authored-by: stevengum <14935595+stevengum@users.noreply.github.com>

Co-authored-by: Steven Ickman <stevenic@microsoft.com>
Co-authored-by: Chris McConnell <chrimc@microsoft.com>
2020-05-07 15:46:10 -07:00
Michael Richardson 8057d09df9
Pinned recognizers-text to 1.1.4 (#2135)
* pinned recognizers-text to 1.1.4

* increase timeout for TestMultiLangImport

* increase timeout for suite, not test

* revert to single-test timeout increase
2020-04-29 10:25:33 -07:00
Eric Dahlvang fa28bdae34
Update ms-rest-js (#2088)
* Update ms-rest-js

* Update package.json

* Update package.json

* Update package.json

* Update package.json

Co-authored-by: Steven Ickman <stevenic@microsoft.com>
2020-04-23 14:29:18 -07:00
Eric Dahlvang 5ea2f7fc3e
Add ConnectorClientOptions to BotFrameworkAdapterSettings (#2081)
* update nock to 11.9.1

* add ConnectorClientOptions to BotFrameworkAdapterSettings

* remove import of HttpClient interface
2020-04-21 20:07:25 -07:00
Zichuan Ma 5be511876a
[Adaptive] QnAMakerRecognizer and OnQnAMatch (#2029)
* added QnAMakerRecognizer

* added unit tests for QnAMakerRecognizer

* when running npm test, should run adaptive tests as well

* added IntExpressionConverter

* registered Microsoft.QnAMakerRecognizer

* added OnQnAMatch condition

* refactored api of Recognizer

* added integration tests for QnAMakerRecognizer and Microsoft.OnQnAMatch

Co-authored-by: Steven Ickman <stevenic@microsoft.com>
2020-04-20 18:44:14 -07:00
BruceHaley 4f6e925cad
Add botbuilder-dialogs-declarative, botbuilder-dialogs-adaptive to de… (#2020)
* Add botbuilder-dialogs-declarative, botbuilder-dialogs-adaptive to dependencies args list

* fix version dependencies in adaptive work

* restore botbuilder-dialogs to set-dependency-versions script

* update previewPackages in updateDeps script

Co-authored-by: stevengum <14935595+stevengum@users.noreply.github.com>
2020-04-13 17:30:32 -07:00
Zichuan Ma 69f0ba31d0
Merge 4.future to master (#1998)
* Merged 4.future

* removed package-lock.json

* replaced matchAll with regex.exec to be compatible with node 10.x

* added constructor for InputDialog

* implemented language generator converter
2020-04-08 08:54:20 -07:00