Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d215d3f
Initial check-in.
Apr 22, 2020
bfd18b5
Allof Working.
Apr 23, 2020
4826e80
Move definitions local.
Apr 24, 2020
45895e8
Launch to sdk.
Apr 24, 2020
48c26f0
Everything working for new merge.
Apr 24, 2020
90521ee
schema: working
Apr 24, 2020
8df4b3a
Working except that allof expansion does not expand
Apr 25, 2020
f33693b
Simplification and some analysis working.
Apr 28, 2020
82e92a5
Add extends.
Apr 29, 2020
21e45b2
Everything working.
Apr 29, 2020
63d6ae0
Update help
Apr 30, 2020
a1d6f63
Fix typo
Apr 30, 2020
03675b3
Expand allOf and validate final schema.
Apr 30, 2020
510a66f
Missing as warning and validate schema.
Apr 30, 2020
f638e8b
Update tests.
May 1, 2020
a86ccb3
Merge branch 'master' into chrimc/merge
May 1, 2020
0855735
Update test to pass on server.
May 1, 2020
7a9ca33
Normalize paths.
May 1, 2020
ca4ecee
Check normalize for mac
May 1, 2020
333dd99
Update for mac paths and lint.
May 1, 2020
e75628b
Address review comments.
May 1, 2020
4c7898e
Merge branch 'master' into chrimc/merge
May 1, 2020
f8fbcbd
Update documentation and fix $id bugs.
May 1, 2020
75d3c5c
Merge branch 'master' into chrimc/id
May 1, 2020
dce2945
Address review commehts
May 1, 2020
e0d1874
Merge branch 'chrimc/id' of https://github.com/microsoft/botframework…
May 1, 2020
7b153dd
Fix bad merge.
May 1, 2020
a0101b8
Documentation and update verify to work with latest
May 2, 2020
5acc002
Fix extra import.
May 2, 2020
09a094d
Luconfig reflects CLI args.
May 2, 2020
e6dbc70
Update auto generated docs.
May 2, 2020
6e9bf27
Address lint issues.
May 2, 2020
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
35 changes: 24 additions & 11 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"999999",
"--colors",
"-g",
".*dialog:merge.*"
"dialog:merge.*"
],
"internalConsoleOptions": "openOnSessionStart",
"outputCapture": "std",
Expand All @@ -36,7 +36,7 @@
"999999",
"--colors",
"-g",
".*dialog:verify.*"
"dialog:verify.*"
],
"internalConsoleOptions": "openOnSessionStart",
"outputCapture": "std",
Expand Down Expand Up @@ -144,6 +144,24 @@
"internalConsoleOptions": "openOnSessionStart",
"cwd": "${workspaceFolder}/../botbuilder-dotnet"
},
{
"type": "node",
"request": "launch",
"name": "BotBuilder verify",
"preLaunchTask": "${defaultBuildTask}",
"program": "${workspaceFolder}/packages/dialog/bin/run",
"outputCapture": "std",
"outFiles": [
"./packages/dialog/lib/**"
],
"args": [
"dialog:verify",
"tests/**/*.dialog",
"--verbose"
],
"internalConsoleOptions": "openOnSessionStart",
"cwd": "${workspaceFolder}/../botbuilder-dotnet"
},
{
"type": "node",
"request": "launch",
Expand Down Expand Up @@ -179,18 +197,13 @@
"luis:build",
"--in",
".",
"--luConfig",
"luconfig.json",
"--authoringKey",
"${env:LUIS_AUTHORING_KEY}",
"--botName",
"sandwich",
"--dialog",
"--suffix",
"${env:USERNAME}",
"--out",
"."
"${env:LUIS_AUTHORING_KEY}"
],
"internalConsoleOptions": "openOnSessionStart",
"cwd": "${env:TEMP}/sandwich.out/luis"
"cwd": "${env:TEMP}/sandwich.out"
},
{
"type": "node",
Expand Down
61 changes: 27 additions & 34 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 13 additions & 10 deletions packages/config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,17 @@ This package is intended for Microsoft use only and should be consumed through @

# Commands
<!-- commands -->
* [`bf config`](#bf-config)
* [`bf config:set`](#bf-configset)
* [`bf config:set:luis`](#bf-configsetluis)
* [`bf config:set:qnamaker`](#bf-configsetqnamaker)
* [`bf config:set:telemetry`](#bf-configsettelemetry)
* [`bf config:show`](#bf-configshow)
* [`bf config:show:luis`](#bf-configshowluis)
* [`bf config:show:qnamaker`](#bf-configshowqnamaker)
* [`bf config:show:telemetry`](#bf-configshowtelemetry)
- [@microsoft/bf-cli-config](#microsoftbf-cli-config)
- [Commands](#commands)
- [`bf config`](#bf-config)
- [`bf config:set`](#bf-configset)
- [`bf config:set:luis`](#bf-configsetluis)
- [`bf config:set:qnamaker`](#bf-configsetqnamaker)
- [`bf config:set:telemetry`](#bf-configsettelemetry)
- [`bf config:show`](#bf-configshow)
- [`bf config:show:luis`](#bf-configshowluis)
- [`bf config:show:qnamaker`](#bf-configshowqnamaker)
- [`bf config:show:telemetry`](#bf-configshowtelemetry)

## `bf config`

Expand Down Expand Up @@ -59,13 +61,14 @@ USAGE
OPTIONS
-h, --help show CLI help
--appId=appId LUIS application Id
--authoringKey=authoringKey LUIS cognitive services authoring key (aka Ocp-Apim-Subscription-Key).
--endpoint=endpoint LUIS application endpoint hostname, ex: <region>.api.cognitive.microsoft.com
--subscriptionKey=subscriptionKey LUIS cognitive services subscription key (aka Ocp-Apim-Subscription-Key)
--versionId=versionId LUIS version Id

EXAMPLE

$ bf config:set:luis --appId {APPLICATION_ID} --subscriptionKey {SUBSCRIPTION_KEY} --versionId {VERSION_ID}
$ bf config:set:luis --appId {APPLICATION_ID} --authoringKey {AUTHORING_KEY} --subscriptionKey {SUBSCRIPTION_KEY} --versionId {VERSION_ID}
--endpoint {ENDPOINT}
```

Expand Down
5 changes: 3 additions & 2 deletions packages/config/src/commands/config/set/luis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ export default class ConfigSetLuis extends Command {
static description = 'Stores default LUIS application values in global config.'

static examples = [`
$ bf config:set:luis --appId {APPLICATION_ID} --subscriptionKey {SUBSCRIPTION_KEY} --versionId {VERSION_ID} --endpoint {ENDPOINT}
$ bf config:set:luis --appId {APPLICATION_ID} --authoringKey {AUTHORING_KEY} --subscriptionKey {SUBSCRIPTION_KEY} --versionId {VERSION_ID} --endpoint {ENDPOINT}
`]

static flags: flags.Input<any> = {
help: flags.help({char: 'h'}),
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (aka Ocp-Apim-Subscription-Key)'}),
appId: flags.string({description: 'LUIS application Id'}),
authoringKey: flags.string({description: 'LUIS cognitive services authoring key (aka Ocp-Apim-Subscription-Key).'}),
subscriptionKey: flags.string({description: 'LUIS cognitive services subscription key (aka Ocp-Apim-Subscription-Key)'}),
versionId: flags.string({description: 'LUIS version Id'}),
endpoint: flags.string({description: 'LUIS application endpoint hostname, ex: <region>.api.cognitive.microsoft.com'}),
}
Expand Down
18 changes: 10 additions & 8 deletions packages/dialog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ This package is intended for Microsoft use only and should be consumed through @

# Commands
<!-- commands -->
* [`bf `](#bf-)
* [`bf dialog`](#bf-dialog)
* [`bf dialog:merge PATTERNS`](#bf-dialogmerge-patterns)
* [`bf dialog:verify PATTERNS`](#bf-dialogverify-patterns)
- [@microsoft/bf-dialog](#microsoftbf-dialog)
- [Commands](#commands)
- [`bf `](#bf)
- [`bf dialog`](#bf-dialog)
- [`bf dialog:merge PATTERNS`](#bf-dialogmerge-patterns)
- [`bf dialog:verify PATTERNS`](#bf-dialogverify-patterns)

## `bf `

Expand All @@ -27,7 +29,7 @@ OPTIONS
-h, --help show CLI help
```

_See code: [src\commands\index.ts](https://github.com/microsoft/botframework-cli/tree/master/packages/dialog/blob/v1.0.0/src\commands\index.ts)_
_See code: [src/commands/index.ts](https://github.com/microsoft/botframework-cli/tree/master/packages/dialog/src/commands/index.ts)_

## `bf dialog`

Expand All @@ -41,7 +43,7 @@ OPTIONS
-h, --help Dialog command help
```

_See code: [src\commands\dialog\index.ts](https://github.com/microsoft/botframework-cli/tree/master/packages/dialog/blob/v1.0.0/src\commands\dialog\index.ts)_
_See code: [src/commands/dialog/index.ts](https://github.com/microsoft/botframework-cli/tree/master/packages/dialog/src/commands/dialog/index.ts)_

## `bf dialog:merge PATTERNS`

Expand All @@ -64,7 +66,7 @@ EXAMPLES
$ bf dialog:merge libraries/**/*.schema **/*.csproj -o app.schema
```

_See code: [src\commands\dialog\merge.ts](https://github.com/microsoft/botframework-cli/tree/master/packages/dialog/blob/v1.0.0/src\commands\dialog\merge.ts)_
_See code: [src/commands/dialog/merge.ts](https://github.com/microsoft/botframework-cli/tree/master/packages/dialog/src/commands/dialog/merge.ts)_

## `bf dialog:verify PATTERNS`

Expand All @@ -82,5 +84,5 @@ OPTIONS
--verbose Show verbose output
```

_See code: [src\commands\dialog\verify.ts](https://github.com/microsoft/botframework-cli/tree/master/packages/dialog/blob/v1.0.0/src\commands\dialog\verify.ts)_
_See code: [src/commands/dialog/verify.ts](https://github.com/microsoft/botframework-cli/tree/master/packages/dialog/src/commands/dialog/verify.ts)_
<!-- commandsstop -->
4 changes: 2 additions & 2 deletions packages/dialog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@
"@types/lru-cache": "^5.1.0",
"@types/semver": "^6.0.1",
"@types/xml2js": "^0.4.4",
"ajv": "^6.9.1",
"ajv": "^6.12.2",
"chalk": "^2.4.2",
"clone": "^2.1.2",
"fs-extra": "^8.1.0",
"get-uri": "~3.0.2",
"globby": "^9.2.0",
"globby": "^11.0.0",
"@apidevtools/json-schema-ref-parser": "^9.0.1",
"os": "~0.1.1",
"path": "^0.12.7",
Expand Down
5 changes: 3 additions & 2 deletions packages/dialog/src/commands/dialog/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ export default class DialogVerify extends Command {
{ name: 'patterns', required: true, description: 'Any number of glob regex patterns to match .dialog files.' },
]

static strict = false

static flags: flags.Input<any> = {
help: flags.help({ char: 'h' }),
verbose: flags.boolean({ description: 'Show verbose output', default: false }),
verbose: flags.boolean({ char: 'v', description: 'Show verbose output', default: false }),
}

private currentFile = ''
Expand Down Expand Up @@ -106,5 +108,4 @@ export default class DialogVerify extends Command {
this.errors++
this.error(`${this.currentFile} - error ${code || ''}: ${msg}`)
}

}
Loading