This repository was archived by the owner on Jul 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
feat: Refer to settings.skill inside dialog files #4065
Merged
Merged
Changes from 14 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
2e8bc55
stable
eb3a4e6
Skill updates
1e2ce9a
skill manifest
8167235
Supporting skills through dictionary
154418c
Safer manifest Id commit
dec8256
manifest is now an expression
50132ed
Handle notifications for skills
2d65cfa
More unit tests fixed
f79ebc9
UseNotification test fixed
538120b
Handle backward compatibility
cfd927b
conditional checks
6168435
PR feedback fixed
c5f4d15
Removed comments
0a1470d
Lock file updated and MC resolved
eff8b3d
Remove reduntant variable
srinaath e4af44e
Remove single use variable
srinaath c9845ef
Moved regex evaludation to shared
af98db9
Updated depth to 0
011ca3a
More PR feedback fixed
3d6c78f
Merge branch 'main' of https://github.com/microsoft/BotFramework-Comp…
3b04666
Fix references
ad90e14
Tests fixed
b6661f5
Lint fix
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| // Copyright (c) Microsoft Corporation. | ||
| // Licensed under the MIT License. | ||
|
|
||
| import get from 'lodash/get'; | ||
| import keyBy from 'lodash/keyBy'; | ||
|
|
||
| import { DialogSetting, Skill } from '../types'; | ||
|
|
||
| export function fetchFromSettings(path: string, settings: DialogSetting): string { | ||
| if (path) { | ||
| const trimmed = path.replace(/=settings.(.*?)/gi, ''); | ||
| return get(settings, trimmed, ''); | ||
| } | ||
| return ''; | ||
| } | ||
|
|
||
| export const convertSkillsToDictionary = (skills: Skill[]) => { | ||
| const mappedSkills = skills.map(({ msAppId, endpointUrl, manifestUrl, name }: Skill) => { | ||
| return { | ||
| name, | ||
| msAppId, | ||
| endpointUrl, | ||
| manifestUrl, | ||
| }; | ||
| }); | ||
srinaath marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| return keyBy(mappedSkills, 'name'); | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.