@indra.ai/deva 1.65.21 → 1.65.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_data/buddy.json +2 -1
- package/buddy/index.js +2 -0
- package/buddy/template/data/client.json +1 -1
- package/package.json +1 -1
package/_data/buddy.json
CHANGED
|
@@ -57,7 +57,8 @@
|
|
|
57
57
|
"file": "📝",
|
|
58
58
|
"deva_created": "✅ DEVA CREATED:",
|
|
59
59
|
"incomplete": "🛑 KEY AND NAME ARE REQUIRED. NO DEVA CREATED.",
|
|
60
|
-
"exists": "🛑 A DEVA ALREADY EXISTS HERE. NO DEVA CREATED:"
|
|
60
|
+
"exists": "🛑 A DEVA ALREADY EXISTS HERE. NO DEVA CREATED:",
|
|
61
|
+
"badkey": "🛑 KEY MUST BE LOWERCASE LETTERS AND NUMBERS, STARTING WITH A LETTER. NO DEVA CREATED."
|
|
61
62
|
},
|
|
62
63
|
"create": {
|
|
63
64
|
"files": [],
|
package/buddy/index.js
CHANGED
|
@@ -190,6 +190,8 @@ const DevaBuddy = new Deva({
|
|
|
190
190
|
rl.close();
|
|
191
191
|
// stop when the key or name is missing so incomplete pipes do not build a Deva
|
|
192
192
|
if (!answers.key || !answers.name) return this.prompt(this.vars.messages.incomplete);
|
|
193
|
+
// stop when the key is not a lowercase word so the folder and constant name stay valid
|
|
194
|
+
if (!/^[a-z][a-z0-9]*$/.test(answers.key)) return this.prompt(this.vars.messages.badkey);
|
|
193
195
|
|
|
194
196
|
// set the options variable to load what the BUDDY was configured with.
|
|
195
197
|
this.vars.paths = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "::name:: Client File",
|
|
3
|
-
"describe": "Stub client for testing ::name::. Replace with your own client file and add it to .gitignore.",
|
|
3
|
+
"describe": "Stub client for testing ::name::. Pass Client.DATA to init(), not the whole file. Replace with your own client file and add it to .gitignore.",
|
|
4
4
|
"copyright": "Copyright ©::year:: ::owner::. All rights reserved.",
|
|
5
5
|
"DATA": {
|
|
6
6
|
"id": "::id::",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "31711622713594414221",
|
|
3
3
|
"name": "@indra.ai/deva",
|
|
4
|
-
"version": "1.65.
|
|
4
|
+
"version": "1.65.23",
|
|
5
5
|
"description": "Deva Core a Vedic-based Event Driven Context Aware Feature, Zone, Action, and State Machine integrated Artificial Intelligence Framework",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"license": "VLA:31711622713594414221 LICENSE.md",
|