this.me 2.2.9 → 2.3.0

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.
Files changed (2) hide show
  1. package/main.js +17 -0
  2. package/package.json +3 -1
package/main.js CHANGED
@@ -1,5 +1,21 @@
1
1
  #!/usr/bin/env node
2
2
  //main.js
3
+ const { exec } = require("child_process");
4
+ const args = process.argv.slice(2);
5
+
6
+ if (args[0] === "atom") {
7
+ // Command to run the Electron GUI
8
+ const command = "electron tab.js";
9
+ exec(command, (error, stdout, stderr) => {
10
+ if (error) {
11
+ console.error(`Could not start Electron: ${error}`);
12
+ return;
13
+ }
14
+ console.log(`stdout: ${stdout}`);
15
+ console.error(`stderr: ${stderr}`);
16
+ });
17
+ } else {
18
+ // Your CLI logic goes here, display welcome message, handle other commands, etc.
3
19
  console.log(`
4
20
  ___________
5
21
  [------------]
@@ -18,3 +34,4 @@ Welcome to .me - Your AI Playground
18
34
  give me one sec please...
19
35
  `);
20
36
 
37
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "this.me",
3
- "version": "2.2.9",
3
+ "version": "2.3.0",
4
4
  "description": "CLI for managing the .me suite.",
5
5
  "bin": {
6
6
  ".me": "./main.js"
@@ -20,9 +20,11 @@
20
20
  "license": "MIT",
21
21
  "dependencies": {
22
22
  "cleaker": "^2.2.9",
23
+ "electron": "^25.4.0",
23
24
  "netget": "^2.1.6",
24
25
  "neurons.me": "^2.5.7",
25
26
  "this.pixels": "3.2.6",
26
27
  "v.path": "^2.1.7"
27
28
  }
28
29
  }
30
+