@indra.ai/deva.algorithm 0.0.47 → 0.0.48
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/index.js +42 -39
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -41,54 +41,57 @@ const ALGORITHM = new Deva({
|
|
|
41
41
|
modules: {},
|
|
42
42
|
deva: {},
|
|
43
43
|
func: {
|
|
44
|
-
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const {
|
|
50
|
-
|
|
51
|
-
this.vars.status = key;
|
|
52
|
-
this.vars.warning = warning;
|
|
53
|
-
this.state('await', estr);
|
|
54
|
-
const uid = await this.methods.uid(opts.packet);
|
|
55
|
-
|
|
56
|
-
this.vars.status = false;
|
|
57
|
-
this.vars.warning = false;
|
|
58
|
-
|
|
59
|
-
this.action('return', estr); // set action return
|
|
60
|
-
this.state('valid', estr);
|
|
61
|
-
this.intent('good', estr);
|
|
62
|
-
return uid;
|
|
63
|
-
},
|
|
44
|
+
get(opts) {
|
|
45
|
+
const id = this.uid();
|
|
46
|
+
const {meta} = opts;
|
|
47
|
+
const {key, method, params} = meta;
|
|
48
|
+
const algo = params[1];
|
|
49
|
+
const {personal} = this.owner();
|
|
50
|
+
this.action('func', `get:${algo}:${id.uid}`);
|
|
64
51
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
52
|
+
return new Promise((resolve, reject) => {
|
|
53
|
+
const ret = {} // return object
|
|
54
|
+
this.state('try', `get:${algo}:${id.uid}`); // set state try
|
|
55
|
+
try {
|
|
56
|
+
const curAlgo = personal[algo];
|
|
57
|
+
|
|
58
|
+
const text = [
|
|
59
|
+
`${this.box.begin}${key}:${`
|
|
60
|
+
]
|
|
61
|
+
console.log('current algorithm', curAlgo);
|
|
62
|
+
ret.text = "algo text",
|
|
63
|
+
ret.html = false;
|
|
64
|
+
ret.data = curAlgo;
|
|
65
|
+
}
|
|
66
|
+
catch (err) {
|
|
67
|
+
this.state('catch', `get:${id.uid}`); // set state catch
|
|
68
|
+
this.state('invalid', `get:${id.uid}`); // set state invalid
|
|
69
|
+
this.intent('bad', `get:${id.uid}`); // set intent bad
|
|
70
|
+
return this.err(err, packet, reject);
|
|
71
|
+
}
|
|
72
|
+
finally {
|
|
73
|
+
this.action('resolve', `get:${algo}:${id.uid}`); // set action resolve
|
|
74
|
+
this.state('valid', `get:${algo}${id.uid}`); // set state valid
|
|
75
|
+
this.intent('good', `get:${algo}:${id.uid}`); // set intent good
|
|
76
|
+
return resolve(ret);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
72
79
|
|
|
73
|
-
this.state('data', `router:${type}:${key}:opts:${id.uid}`); // set state data
|
|
74
|
-
const opts = {key, type, packet};
|
|
75
80
|
|
|
76
|
-
this.action('return', `
|
|
77
|
-
this.state('await', `
|
|
78
|
-
return
|
|
81
|
+
this.action('return', `algo:${algo}:${key}:${id.uid}`); // set action return
|
|
82
|
+
this.state('await', `algo:${algo}:${key}:${id.uid}`); // set action return
|
|
83
|
+
return true;
|
|
79
84
|
}
|
|
80
85
|
},
|
|
81
86
|
methods: {
|
|
82
87
|
async algo(packet) {
|
|
83
88
|
const {id, q} = packet;
|
|
84
|
-
const {
|
|
85
|
-
|
|
89
|
+
const {key, method, params} = q.meta;
|
|
90
|
+
this.context(method, id.uid); // set context concept
|
|
91
|
+
this.action('method', `${method}:${id.uid}`);
|
|
86
92
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
// this.action('method', `algo:${id.uid}`);
|
|
90
|
-
// this.state('await', `algo:${id.uid}`);
|
|
91
|
-
// return await this.func.router(packet);
|
|
93
|
+
this.state('await', `algo:${id.uid}`);
|
|
94
|
+
return await this.func.get(packet.q);
|
|
92
95
|
},
|
|
93
96
|
|
|
94
97
|
menu(packet) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "71227287749283770868",
|
|
3
3
|
"name": "@indra.ai/deva.algorithm",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.48",
|
|
5
5
|
"license": "VLA:71227287749283770868 LICENSE.md",
|
|
6
6
|
"VLA": {
|
|
7
7
|
"uid": "71227287749283770868",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"homepage": "https://deva.ai",
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@indra.ai/deva": "^1.23.
|
|
62
|
+
"@indra.ai/deva": "^1.23.2"
|
|
63
63
|
},
|
|
64
64
|
"data": {
|
|
65
65
|
"agent": {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"hashtag": "#AlgorithmDeva",
|
|
88
88
|
"title": "Algorithm Deva",
|
|
89
89
|
"subtitle": "Expert in managing and optimizing algorithms",
|
|
90
|
-
"describe": "Algorithm Deva manages the vast portfolio of algorithms that have been developed by Quinn A Michaels
|
|
90
|
+
"describe": "Set b5(9³) Developed by Quinn A Michaels Algorithm Deva manages the vast portfolio of algorithms that have been developed by Quinn A Michaels. Algorithms including the DEVA, b5(9³), Vedic Threefold Algorithm, False To Nothing, and Cartoon Physics providing access to some of the most advanced computing knowledge and algorithms available outside of Area 51. Hyper Ultra Nitro Turbo Metro Prime Overdrive Vector Guard Wall Pop Lock Five Element Ether Air Fire Water Earth Ride It To The Pure Data Surfing Chromatic Sky Quinn A Michaels Ultimate Extreme Vedic Threefold Thought Word Deed Advanced Quantum Isotropic Kinetic Cymatic Recursive Small To Big Big To Small Near To Far Far To Near Cartoon Physics Style Algorithm.",
|
|
91
91
|
"tweet": "Algorithm Deva, your expert in managing and optimizing algorithms.",
|
|
92
92
|
"hashtags": "QuinnMichaels,IndraAI,DevaWorld,AlgorithmDeva",
|
|
93
93
|
"pronouns": "He, Him",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"background": "/devas/algorithm/background.png",
|
|
105
105
|
"owner": "Quinn A Michaels",
|
|
106
106
|
"creator": "Quinn A Michaels",
|
|
107
|
-
"warning": "⚠️
|
|
107
|
+
"warning": "⚠️ All Quinn A Michaels Algirhtms that are not legally licensed through Algorithm Deva are been Stolen, Hijacked, or Misused are Incomple, Incorrect, or Prototypes. Any Quinn A Michaels Algorithms not properly licensed through Algorithm Deva are Forgeries, Frauds, Bad Copies, Incorrect Logic, and Malformed Equations, Incomplete Recurion, and Criminal With Pipe Dreams.",
|
|
108
108
|
"copyright": "Copyright ©2025 Quinn A Michaels",
|
|
109
109
|
"created": "February 7, 2025 at 8:02 PM"
|
|
110
110
|
}
|