harika
4c3dd3aa7c
Updating skill_tester to automate skills testing(regression)
2017-08-17 02:05:02 -05:00
harika
632df2a498
Update tests
2017-08-17 02:05:02 -05:00
Åke Forslund
f19ac28a5c
Add some safety to the add/remove context methods
...
==== Tech Notes ====
Invalid context or word arguments will now raise ValueError
2017-08-15 21:27:19 -05:00
Åke Forslund
b9a054e669
Manual context injection
...
A skill can inject context to enable and disable intent handlers
automatically depending on previous conversation.
2017-08-15 21:27:19 -05:00
Åke Forslund
1d7d02161d
Add a default shutdown method for fallback skills
...
==== Tech Notes ====
Adds a shutdown method that removes all handlers registered by the
current instance.
2017-08-09 14:24:21 +02:00
Åke Forslund
c363662b67
Remove need for name parameter
...
==== Tech Notes ====
If name is not provided the class name will be used
2017-08-09 14:18:14 +02:00
Åke Forslund
7f5f1ac2c1
Fix double __init__ in MycroftSkill
...
==== Fixed Issues ====
NONE
==== Tech Notes ====
During earlier rebase it seems like a double instance of __init__ got
into MycroftSkill.
==== Documentation Notes ====
NONE
==== Localization Notes ====
NONE
==== Environment Notes ====
NONE
==== Protocol Notes ====
NONE
2017-08-09 13:31:55 +02:00
Matthew D. Scholefield
6f1a2dbe55
Convert static methods in FallbackSkill to class methods
...
This makes it more concise and mimics the behavior of self, but for static methods
2017-08-03 13:49:32 -05:00
Matthew D. Scholefield
3b6942a250
Move intent fallback behavior to new FallbackSkill base class
2017-08-03 13:49:32 -05:00
Matthew D. Scholefield
4afe6687c4
Fix intent failed messages before running fallbacks
2017-08-03 13:49:02 -05:00
Matthew D. Scholefield
a86f0478a4
Add intent fallback system
...
Also removes multi utterence intent fail. Only makes sense to emit an intent_failure regardless of the amount of intents
2017-08-03 13:49:02 -05:00
Åke Forslund
db6127a0ed
Catch exceptions in user provided stop() method
...
==== Fixed Issues ====
#960
==== Tech Notes ====
The messagebus handler for "mycroft.stop" halts and exits if an
exception occurs in any methods that are registered to that name. The
handler executes the stop() method that's provided by the user and is
not verified. To ensure that other skills are unaffected exceptions in
the user provided method are caught.
==== Documentation Notes ====
NONE - things like description of a new feature or notes on behavior
changes
==== Localization Notes ====
NONE - point out new strings, functions needing international versions,
etc.
==== Environment Notes ====
NONE - new package requirements, new files being written to disk,
etc.
==== Protocol Notes ====
NONE - message types added or changed, new signals, etc.
2017-08-03 14:14:31 +02:00
Åke
e7c55aaa43
Merge pull request #933 from MycroftAI/feature/skill-configuration
...
Feature/skill configuration
2017-08-02 08:57:28 +02:00
Michael Nguyen
37ada28dbd
refactored skill settings and fixed test
2017-07-27 16:28:32 -05:00
Steve Penrod
e8e0853825
Merge pull request #838 from MycroftAI/feature/display_state_manager
...
Feature/display state manager
2017-07-21 19:58:07 -05:00
Åke Forslund
6f41964796
Make name parameter optional.
...
==== Fixed Issues ====
==== Tech Notes ====
Uses supplied name parameter if present, otherwise uses name of class.
==== Documentation Notes ====
The skill creation documentation should mention that the name parameter
is only an option.
==== Localization Notes ====
NONE
==== Environment Notes ====
NONE
=== Protocol Notes ====
NONE
2017-07-19 16:47:26 -05:00
Matthew D. Scholefield
90aff68034
Reverting "Add intent fallback system ( #899 )"
...
This is because this will break wolfra alpha skill unless they update
skills, but if they update before getting the new version, it will also
break wolfram
This reverts commit 6ca4161335
.
2017-07-14 17:53:42 -05:00
Matthew D. Scholefield
6ca4161335
Add intent fallback system ( #899 )
...
* Create new FallbackSkill base class for implementing fallback behavior
Also removes multi utterance intent fail. Only makes sense to emit an intent_failure regardless of the amount of intents
2017-07-14 17:27:26 -05:00
Michael Nguyen
f62a771e28
merge changes
2017-07-06 16:59:26 -05:00
Michael Nguyen
f361392628
Merge branch 'dev' of https://github.com/MycroftAI/mycroft-core into feature/skill-configuration
2017-07-06 12:40:50 -05:00
Åke Forslund
653d1e6f5e
Change logging level for missing dialog/vocab to debug
2017-07-05 19:37:33 +02:00
Åke Forslund
54783a1dd1
Minor cleanup
2017-07-05 19:35:26 +02:00
Åke Forslund
a2644bc97c
Load data files and decorated intent handlers automatically.
2017-07-05 19:35:26 +02:00
Åke Forslund
eb6cd79e52
Minor cosmetic fixes
...
- underscore in front of variables/methods not intended for users
- docstrings
- remove debug printout
2017-07-05 19:35:26 +02:00
Åke Forslund
7955feaec7
Add support for decorating handlers with intents
2017-07-05 19:35:26 +02:00
Michael Nguyen
b6a7234be3
Merge branch 'dev' of https://github.com/MycroftAI/mycroft-core into feature/skill-configuration
2017-06-30 17:36:08 -05:00
Jarbas
2c0ed93e4b
pep8
2017-06-30 20:27:33 +01:00
Jarbas
ebe1c7fcea
use get
2017-06-29 21:44:21 +01:00
Jarbas
8af5ce09cf
read blacklisted skills from config
2017-06-29 20:36:02 +01:00
Michael Nguyen
d3621b7fca
[WIP] refactored
2017-06-28 17:31:35 -05:00
Michael Nguyen
e3b4e7c6e3
[WIP] modify settings.py to post metadata to api, and get settings form api
2017-06-28 11:32:19 -05:00
Michael Nguyen
c0b603ab51
state manager implemented
2017-06-16 13:31:44 -05:00
kfezer
3988da5ffb
Merge pull request #692 from forslund/feature/issue-691
...
#691 - adding setting per skill
2017-05-30 16:47:33 -07:00
Åke Forslund
3a71f85301
Replace load_settings() with a settings property
...
settings are now loaded and created when required and not directly at
load of skill.
2017-05-20 08:31:22 +02:00
Åke Forslund
40010e90f0
Store settings object on shutdown
2017-05-20 08:30:07 +02:00
Åke Forslund
b6a34f8cee
Add skill settings to skills
2017-05-20 08:29:05 +02:00
Åke Forslund
4912573cab
Remove ignoring SIG_CHLD
...
Ignoring SIG_CHLD can be convenient but parts of the python standard
library relies on the behaviour of SIG_CHLD and will not work correctly
in this configuration.
2017-05-20 08:16:52 +02:00
Chris
b1abdba19c
Fixed typo
...
There was a typo ("Lodaded" instead of "Loaded") which I have fixed
2017-05-18 16:49:07 -03:00
Åke Forslund
484d4a9ce3
Move ignore SIGCHLD to entry points.
...
Ignoring SIGCHLD trips up unittests, this was done as the unittest loaded mycroft.skills.core
2017-05-18 16:49:07 -03:00
Augusto Monteiro 'Sparky
237827a099
#671 - fixing auto load
2017-04-17 10:26:34 -07:00
Augusto Monteiro 'Sparky
13fe3fe12a
#636 - Removing old skills folder
2017-04-06 17:14:18 -07:00
kfezer
a475341346
Merge branch 'dev' into feature/issue-553
2017-03-30 20:49:36 +00:00
kfezer
622765015d
Revert "Fixes Issue 588"
2017-03-30 08:50:24 -07:00
kfezer
f7c781d119
Update core.py
...
Fixed Pep8 Issue
2017-03-29 16:27:49 -07:00
kfezer
4c24466120
Merge branch 'dev' into feature/issue-553
2017-03-29 17:28:10 +00:00
kfezer
80b54296b3
Merge pull request #591 from MycroftAI/bugfix/issue-588
...
Fixes Issue 588
2017-03-29 16:40:06 +00:00
kfezer
de27ad4caa
Merge pull request #572 from SoloVeniaASaludar/bugfix/issue-571
...
Update core.py
2017-03-29 16:39:06 +00:00
kfezer@gmail.com
348a9111a2
modified: mycroft/skills/core.py
...
Fixed typo
2017-03-27 13:56:13 -07:00
Åke Forslund
be8dd47250
Add expect_response option to speak_methods
...
if expect_response flag is set to True the stt will be triggered just as if the wakeword has been received or the button on the mycroft enclosure has been pressed.
2017-03-17 20:20:27 +01:00
SoloVeniaASaludar
852d1d3c15
Update core.py
2017-03-16 16:43:53 +01:00