@indra.ai/deva.services 0.7.0 → 0.7.1
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/feature/methods.js +9 -4
- package/package.json +2 -2
package/feature/methods.js
CHANGED
|
@@ -89,15 +89,20 @@ export default {
|
|
|
89
89
|
const docName = splitText[0].length ? splitText[0] + '.feecting' : 'main.feecting';
|
|
90
90
|
const docPath = this.lib.path.join(this.config.dir, area, agent.key, docName);
|
|
91
91
|
|
|
92
|
-
let doc;
|
|
92
|
+
let doc = false;
|
|
93
93
|
try {
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
const doc_file = this.lib.fs.readFileSync(docPath, 'utf8');
|
|
95
|
+
const doc_content = doc_file.split(`::BEGIN:${part}`)[1].split(`::END:${part}`)[0];
|
|
96
|
+
doc = [
|
|
97
|
+
`${this.container.begin}:FILE:${packet.id.uid}`,
|
|
98
|
+
doc_content,
|
|
99
|
+
`${this.container.end}:FILE:${packet.id.uid}`,
|
|
100
|
+
].join('\n');
|
|
96
101
|
} catch (err) {
|
|
97
102
|
console.log(err);
|
|
98
103
|
}
|
|
99
104
|
|
|
100
|
-
this.question(`${this.askChr}feecting parse ${doc}
|
|
105
|
+
this.question(`${this.askChr}feecting parse ${doc}`, {vars:this.vars}).then(feecting => {
|
|
101
106
|
this.state('resolve', `view:${packet.q.text}`);
|
|
102
107
|
return resolve({
|
|
103
108
|
text: feecting.a.text,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "59232188337076320338",
|
|
3
3
|
"name": "@indra.ai/deva.services",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.1",
|
|
5
5
|
"license": "VLA:59232188337076320338 LICENSE.md",
|
|
6
6
|
"VLA": {
|
|
7
7
|
"uid": "59232188337076320338",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
"homepage": "https://indra.ai",
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@indra.ai/deva": "^1.
|
|
64
|
+
"@indra.ai/deva": "^1.30.2"
|
|
65
65
|
},
|
|
66
66
|
"data": {
|
|
67
67
|
"agent": {
|