From d930aa6c170e24354fbaae7668072aa183b39ec6 Mon Sep 17 00:00:00 2001 From: Greg Bulmash Date: Tue, 28 Apr 2020 08:42:55 -0700 Subject: [PATCH] auto-migrating to cli V2 --- .ask/config | 20 - ask-resources.json | 23 + .../interactionModels/custom}/en-US.json | 436 +++++++++--------- skill-package/skill.json | 32 ++ skill.json | 33 -- 5 files changed, 273 insertions(+), 271 deletions(-) delete mode 100644 .ask/config create mode 100644 ask-resources.json rename {models => skill-package/interactionModels/custom}/en-US.json (94%) mode change 100755 => 100644 create mode 100644 skill-package/skill.json delete mode 100755 skill.json diff --git a/.ask/config b/.ask/config deleted file mode 100644 index 2b61ce5..0000000 --- a/.ask/config +++ /dev/null @@ -1,20 +0,0 @@ -{ - "deploy_settings": { - "default": { - "skill_id": "", - "was_cloned": false, - "merge": { - "manifest": { - "apis": { - "custom": { - "endpoint": { - "uri": "ask-custom-berrybash-default" - } - } - } - } - }, - "in_skill_products": [] - } - } -} diff --git a/ask-resources.json b/ask-resources.json new file mode 100644 index 0000000..6787847 --- /dev/null +++ b/ask-resources.json @@ -0,0 +1,23 @@ +{ + "askcliResourcesVersion": "2020-03-31", + "profiles": { + "default": { + "skillMetadata": { + "src": "./skill-package" + }, + "code": { + "default": { + "src": "lambda/custom" + } + }, + "skillInfrastructure": { + "userConfig": { + "runtime": "nodejs10.x", + "handler": "index.handler", + "awsRegion": "us-east-1" + }, + "type": "@ask-cli/lambda-deployer" + } + } + } +} diff --git a/models/en-US.json b/skill-package/interactionModels/custom/en-US.json old mode 100755 new mode 100644 similarity index 94% rename from models/en-US.json rename to skill-package/interactionModels/custom/en-US.json index 14cc8f7..b269535 --- a/models/en-US.json +++ b/skill-package/interactionModels/custom/en-US.json @@ -1,218 +1,218 @@ -{ - "interactionModel": { - "languageModel": { - "types": [{ - "name": "categoryList", - "values": [{ - "id": null, - "name": { - "value": "raspberries", - "synonyms": [] - } - }, - { - "id": null, - "name": { - "value": "blackberries", - "synonyms": [] - } - }, - { - "id": null, - "name": { - "value": "strawberries", - "synonyms": [] - } - }, - { - "id": null, - "name": { - "value": "blueberries", - "synonyms": [] - } - }, - { - "id": null, - "name": { - "value": "elderberries", - "synonyms": [] - } - }, - { - "id": null, - "name": { - "value": "gooseberries", - "synonyms": [] - } - }, - { - "id": null, - "name": { - "value": "cranberries", - "synonyms": [] - } - }, - { - "id": null, - "name": { - "value": "huckleberries", - "synonyms": [] - } - }, - { - "id": null, - "name": { - "value": "cherries", - "synonyms": [] - } - }, - { - "id": null, - "name": { - "value": "gojiberries", - "synonyms": [] - } - } - ] - }], - "intents": [{ - "name": "AMAZON.CancelIntent", - "samples": [] - }, - { - "name": "AMAZON.HelpIntent", - "samples": [] - }, - { - "name": "AMAZON.MoreIntent", - "samples": [] - }, - { - "name": "AMAZON.NavigateSettingsIntent", - "samples": [] - }, - { - "name": "AMAZON.NextIntent", - "samples": [] - }, - { - "name": "AMAZON.NoIntent", - "samples": [] - }, - { - "name": "AMAZON.PageDownIntent", - "samples": [] - }, - { - "name": "AMAZON.NavigateHomeIntent", - "samples": [] - }, - { - "name": "AMAZON.PageUpIntent", - "samples": [] - }, - { - "name": "AMAZON.PreviousIntent", - "samples": [] - }, - { - "name": "AMAZON.RepeatIntent", - "samples": [] - }, - { - "name": "AMAZON.ScrollDownIntent", - "samples": [] - }, - { - "name": "AMAZON.ScrollLeftIntent", - "samples": [] - }, - { - "name": "AMAZON.ScrollRightIntent", - "samples": [] - }, - { - "name": "AMAZON.ScrollUpIntent", - "samples": [] - }, - { - "name": "AMAZON.StopIntent", - "samples": [] - }, - { - "name": "AMAZON.YesIntent", - "samples": [] - }, - { - "name": "ElementSelected", - "samples": [ - "i choose {categoryValue}", - "tell me about {categoryValue}", - "show me {categoryValue}", - "select {categoryValue}", - "select {numberValue}", - "show me {numberValue}", - "tell me about {numberValue}", - "i choose {numberValue}", - "{categoryValue}", - "{numberValue}", - "number {numberValue}", - "choose {categoryValue}" - ], - "slots": [{ - "name": "categoryValue", - "type": "categoryList" - }, - { - "name": "numberValue", - "type": "AMAZON.NUMBER" - } - ] - }, - { - "name": "InformationIntent", - "samples": [ - "go back to list", - "take me back to the list", - "i want to go back to the list", - "show me the other berries", - "show me the other fruit", - "what fruit do you have", - "what berries are there", - "tell me about berries", - "open berry book", - "teach me about berries" - ], - "slots": [] - }, - { - "name": "MoreInfoIntent", - "samples": [ - "keep going", - "tell me more", - "read out the rest", - "read" - ], - "slots": [] - }, - { - "name": "QuizIntent", - "samples": [ - "play a game", - "play game", - "start game", - "start berry buzz", - "i know berries very well", - "test me on berries", - "lets play berry buzz", - "play", - "lets play", - "lets play a game" - ], - "slots": [] - } - ], - "invocationName": "berry bash" - } - } -} +{ + "interactionModel": { + "languageModel": { + "types": [{ + "name": "categoryList", + "values": [{ + "id": null, + "name": { + "value": "raspberries", + "synonyms": [] + } + }, + { + "id": null, + "name": { + "value": "blackberries", + "synonyms": [] + } + }, + { + "id": null, + "name": { + "value": "strawberries", + "synonyms": [] + } + }, + { + "id": null, + "name": { + "value": "blueberries", + "synonyms": [] + } + }, + { + "id": null, + "name": { + "value": "elderberries", + "synonyms": [] + } + }, + { + "id": null, + "name": { + "value": "gooseberries", + "synonyms": [] + } + }, + { + "id": null, + "name": { + "value": "cranberries", + "synonyms": [] + } + }, + { + "id": null, + "name": { + "value": "huckleberries", + "synonyms": [] + } + }, + { + "id": null, + "name": { + "value": "cherries", + "synonyms": [] + } + }, + { + "id": null, + "name": { + "value": "gojiberries", + "synonyms": [] + } + } + ] + }], + "intents": [{ + "name": "AMAZON.CancelIntent", + "samples": [] + }, + { + "name": "AMAZON.HelpIntent", + "samples": [] + }, + { + "name": "AMAZON.MoreIntent", + "samples": [] + }, + { + "name": "AMAZON.NavigateSettingsIntent", + "samples": [] + }, + { + "name": "AMAZON.NextIntent", + "samples": [] + }, + { + "name": "AMAZON.NoIntent", + "samples": [] + }, + { + "name": "AMAZON.PageDownIntent", + "samples": [] + }, + { + "name": "AMAZON.NavigateHomeIntent", + "samples": [] + }, + { + "name": "AMAZON.PageUpIntent", + "samples": [] + }, + { + "name": "AMAZON.PreviousIntent", + "samples": [] + }, + { + "name": "AMAZON.RepeatIntent", + "samples": [] + }, + { + "name": "AMAZON.ScrollDownIntent", + "samples": [] + }, + { + "name": "AMAZON.ScrollLeftIntent", + "samples": [] + }, + { + "name": "AMAZON.ScrollRightIntent", + "samples": [] + }, + { + "name": "AMAZON.ScrollUpIntent", + "samples": [] + }, + { + "name": "AMAZON.StopIntent", + "samples": [] + }, + { + "name": "AMAZON.YesIntent", + "samples": [] + }, + { + "name": "ElementSelected", + "samples": [ + "i choose {categoryValue}", + "tell me about {categoryValue}", + "show me {categoryValue}", + "select {categoryValue}", + "select {numberValue}", + "show me {numberValue}", + "tell me about {numberValue}", + "i choose {numberValue}", + "{categoryValue}", + "{numberValue}", + "number {numberValue}", + "choose {categoryValue}" + ], + "slots": [{ + "name": "categoryValue", + "type": "categoryList" + }, + { + "name": "numberValue", + "type": "AMAZON.NUMBER" + } + ] + }, + { + "name": "InformationIntent", + "samples": [ + "go back to list", + "take me back to the list", + "i want to go back to the list", + "show me the other berries", + "show me the other fruit", + "what fruit do you have", + "what berries are there", + "tell me about berries", + "open berry book", + "teach me about berries" + ], + "slots": [] + }, + { + "name": "MoreInfoIntent", + "samples": [ + "keep going", + "tell me more", + "read out the rest", + "read" + ], + "slots": [] + }, + { + "name": "QuizIntent", + "samples": [ + "play a game", + "play game", + "start game", + "start berry buzz", + "i know berries very well", + "test me on berries", + "lets play berry buzz", + "play", + "lets play", + "lets play a game" + ], + "slots": [] + } + ], + "invocationName": "berry bash" + } + } +} diff --git a/skill-package/skill.json b/skill-package/skill.json new file mode 100644 index 0000000..7221fb6 --- /dev/null +++ b/skill-package/skill.json @@ -0,0 +1,32 @@ +{ + "manifest": { + "publishingInformation": { + "locales": { + "en-US": { + "summary": "Find out about berries!", + "examplePhrases": [ + "Alexa open berry bash", + "i choose strawberry", + "tell me more" + ], + "name": "Berry Bash", + "description": "Find out about berries!" + } + }, + "isAvailableWorldwide": true, + "testingInstructions": "Sample Testing Instructions.", + "category": "EDUCATION_AND_REFERENCE", + "distributionCountries": [] + }, + "apis": { + "custom": { + "interfaces": [ + { + "type": "RENDER_TEMPLATE" + } + ] + } + }, + "manifestVersion": "1.0" + } +} diff --git a/skill.json b/skill.json deleted file mode 100755 index 0a7e504..0000000 --- a/skill.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "manifest": { - "publishingInformation": { - "locales": { - "en-US": { - "summary": "Find out about berries!", - "examplePhrases": [ - "Alexa open berry bash", - "i choose strawberry", - "tell me more" - ], - "name": "Berry Bash", - "description": "Find out about berries!" - } - }, - "isAvailableWorldwide": true, - "testingInstructions": "Sample Testing Instructions.", - "category": "EDUCATION_AND_REFERENCE", - "distributionCountries": [] - }, - "apis": { - "custom": { - "endpoint": { - "sourceDir": "lambda/custom" - }, - "interfaces": [{ - "type": "RENDER_TEMPLATE" - }] - } - }, - "manifestVersion": "1.0" - } -}