this.me 2.3.3 → 2.3.4
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/main.js +17 -14
- package/package.json +3 -2
- package/index.js +0 -85
package/main.js
CHANGED
|
@@ -3,19 +3,11 @@
|
|
|
3
3
|
const { exec } = require("child_process");
|
|
4
4
|
const path = require("path");
|
|
5
5
|
const args = process.argv.slice(2);
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
if (error) {
|
|
12
|
-
console.error(`Could not start Electron: ${error}`);
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
console.log(`stdout: ${stdout}`);
|
|
16
|
-
console.error(`stderr: ${stderr}`);
|
|
17
|
-
});
|
|
18
|
-
// Your CLI logic goes here, display welcome message, handle other commands, etc.
|
|
6
|
+
const thisPixels = require("this.pixels");
|
|
7
|
+
const neuronsMe = require("neurons.me");
|
|
8
|
+
const cleaker = require("cleaker");
|
|
9
|
+
const thisAtom = require("this.atom");
|
|
10
|
+
// Your CLI logic goes here, display welcome message, handle other commands, etc.
|
|
19
11
|
console.log(`
|
|
20
12
|
___________
|
|
21
13
|
[------------]
|
|
@@ -34,4 +26,15 @@ Welcome to .me - Your AI Playground
|
|
|
34
26
|
give me one sec please...
|
|
35
27
|
`);
|
|
36
28
|
|
|
37
|
-
|
|
29
|
+
if (args[0] === "atom") {
|
|
30
|
+
// Command to run the Electron GUI
|
|
31
|
+
const command = `electron ${path.resolve(__dirname, "tab.js")}`;
|
|
32
|
+
exec(command, (error, stdout, stderr) => {
|
|
33
|
+
if (error) {
|
|
34
|
+
console.error(`Could not start Electron: ${error}`);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
console.log(`stdout: ${stdout}`);
|
|
38
|
+
console.error(`stderr: ${stderr}`);
|
|
39
|
+
});
|
|
40
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "this.me",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.4",
|
|
4
4
|
"description": "This.me should This.be",
|
|
5
5
|
"bin": {
|
|
6
6
|
".me": "./main.js"
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"this.atom": "^1.0.0",
|
|
27
27
|
"this.be": "^2.1.3",
|
|
28
28
|
"this.pixels": "^3.3.0",
|
|
29
|
-
"v.path": "^2.1.7"
|
|
29
|
+
"v.path": "^2.1.7",
|
|
30
|
+
"i.mlearning": "^2.1.7"
|
|
30
31
|
}
|
|
31
32
|
}
|
package/index.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
//main entry point to .me suite. Happy bizarre coding....
|
|
2
|
-
const readline = require('readline');
|
|
3
|
-
const neurons = require('neurons.me');
|
|
4
|
-
const cleakerShell = require('cleaker/shell');
|
|
5
|
-
const Menu = require('this.me/src/utils');
|
|
6
|
-
// Other imports ...
|
|
7
|
-
console.log(`
|
|
8
|
-
___________
|
|
9
|
-
[------------]
|
|
10
|
-
| .--------. |
|
|
11
|
-
| |01010101| | __________
|
|
12
|
-
| |11010101| | /__________\
|
|
13
|
-
[--------| -------- |------| --*-- |-------]
|
|
14
|
-
| [----_-.-----] |o ====== | |
|
|
15
|
-
| ______|_|_______ |__________| |
|
|
16
|
-
| / %%%%%%%%%%%% \ |
|
|
17
|
-
| / %%%%%%%%%%%%%% \ |
|
|
18
|
-
| ^^^^^^^^^^^^^^^^^^^^ |
|
|
19
|
-
[---------------------------------.me-----------]
|
|
20
|
-
-^^^^^^^^zzzz...
|
|
21
|
-
Welcome to .me - Your AI Playground
|
|
22
|
-
`);
|
|
23
|
-
// .me Main entry function
|
|
24
|
-
function main() {
|
|
25
|
-
const rl = readline.createInterface({
|
|
26
|
-
input: process.stdin,
|
|
27
|
-
output: process.stdout,
|
|
28
|
-
});
|
|
29
|
-
mainMenu(rl);
|
|
30
|
-
rl.setPrompt('Select module (.me)> ');
|
|
31
|
-
rl.prompt();
|
|
32
|
-
rl.on('line', (input) => {
|
|
33
|
-
switch (input.trim()) {
|
|
34
|
-
case '1':
|
|
35
|
-
const neuronsShell = neurons.shell(rl); // Call neurons.shell to get the object
|
|
36
|
-
neurons.shell(rl).init(); // initiate neurons.me
|
|
37
|
-
break;
|
|
38
|
-
case '2':
|
|
39
|
-
cleakerShell(rl);
|
|
40
|
-
break;
|
|
41
|
-
// Add other cases...
|
|
42
|
-
case '/q':
|
|
43
|
-
rl.close();
|
|
44
|
-
break;
|
|
45
|
-
default:
|
|
46
|
-
console.log('Invalid option. Please choose a valid module.');
|
|
47
|
-
rl.prompt();
|
|
48
|
-
}
|
|
49
|
-
}).on('close', () => {
|
|
50
|
-
console.log('Exiting .me');
|
|
51
|
-
process.exit(0);
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
function mainMenu(rl) {
|
|
55
|
-
console.log('\nChoose a module to get started:');
|
|
56
|
-
console.log('1. neurons.me - Manage neural networks');
|
|
57
|
-
console.log('2. cleaker - Work with Cleaker application');
|
|
58
|
-
console.log('\ntype /q to exit');
|
|
59
|
-
rl.prompt();
|
|
60
|
-
}
|
|
61
|
-
// NEURONS.ME SECTION
|
|
62
|
-
function neuronsModule(rl) {
|
|
63
|
-
class NeuronsMeApp {
|
|
64
|
-
constructor() {
|
|
65
|
-
this.rl = rl;
|
|
66
|
-
this.currentMenu = new neuronsme_MainMenu(this);
|
|
67
|
-
this.currentMenu.display(); // Display the main menu
|
|
68
|
-
}
|
|
69
|
-
// ... Rest of your neurons.me related code
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
class neuronsme_MainMenu extends Menu {
|
|
73
|
-
// ... Your existing code for the neurons menu
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// Other neurons classes...
|
|
77
|
-
|
|
78
|
-
const neurons_me_app_init = new NeuronsMeApp();
|
|
79
|
-
neurons_me_app_init.start();
|
|
80
|
-
}
|
|
81
|
-
// CLEAKER SECTION
|
|
82
|
-
function cleakerModule(rl) {
|
|
83
|
-
// Implement the cleaker module here
|
|
84
|
-
}
|
|
85
|
-
main();
|