this.me 2.2.8 → 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.
package/atom.js CHANGED
@@ -1,32 +1,11 @@
1
1
  //atom.js
2
- const { app, BrowserWindow, ipcMain } = require('electron');
3
-
4
- let win;
5
-
6
- app.on('ready', () => {
7
- win = new BrowserWindow({
8
- width: 377,
9
- height: 244,
10
- webPreferences: {
11
- nodeIntegration: true,
12
- contextIsolation: false, // Add this line
13
- },
14
- frame: false,
15
- transparent: true,
16
- //opacity: 0.5
17
- });
18
-
19
- win.on('closed', () => {
20
- win = null;
21
- });
22
-
23
- win.loadFile('./atom/view.html');
24
- });
25
-
26
- ipcMain.on('minimize-window', () => {
27
- win.minimize();
28
- });
29
-
30
- ipcMain.on('close-window', () => {
31
- win.close();
2
+ const { exec } = require("child_process");
3
+ const command = "electron tab.js";
4
+ exec(command, (error, stdout, stderr) => {
5
+ if (error) {
6
+ console.error(`Could not start Electron: ${error}`);
7
+ return;
8
+ }
9
+ console.log(`stdout: ${stdout}`);
10
+ console.error(`stderr: ${stderr}`);
32
11
  });
package/main.js CHANGED
@@ -1,5 +1,21 @@
1
1
  #!/usr/bin/env node
2
+ //main.js
2
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.8",
3
+ "version": "2.3.0",
4
4
  "description": "CLI for managing the .me suite.",
5
5
  "bin": {
6
6
  ".me": "./main.js"
@@ -21,12 +21,10 @@
21
21
  "dependencies": {
22
22
  "cleaker": "^2.2.9",
23
23
  "electron": "^25.4.0",
24
- "monadlisa": "^2.1.1",
25
24
  "netget": "^2.1.6",
26
25
  "neurons.me": "^2.5.7",
27
- "this.haiku": "1.2.2",
28
- "this.mlearning": "2.1.6",
29
26
  "this.pixels": "3.2.6",
30
27
  "v.path": "^2.1.7"
31
28
  }
32
29
  }
30
+
package/tab.js ADDED
@@ -0,0 +1,29 @@
1
+ const { app, BrowserWindow, ipcMain } = require('electron');
2
+ let win;
3
+ app.on('ready', () => {
4
+ win = new BrowserWindow({
5
+ width: 377,
6
+ height: 244,
7
+ webPreferences: {
8
+ nodeIntegration: true,
9
+ contextIsolation: false, // Add this line
10
+ },
11
+ frame: false,
12
+ transparent: true,
13
+ //opacity: 0.5
14
+ });
15
+
16
+ win.on('closed', () => {
17
+ win = null;
18
+ });
19
+
20
+ win.loadFile('./atom/view.html');
21
+ });
22
+
23
+ ipcMain.on('minimize-window', () => {
24
+ win.minimize();
25
+ });
26
+
27
+ ipcMain.on('close-window', () => {
28
+ win.close();
29
+ });
package/electron.js DELETED
@@ -1,10 +0,0 @@
1
- const command = "electron atom.js";
2
-
3
- exec(command, (error, stdout, stderr) => {
4
- if (error) {
5
- console.error(`Could not start Electron: ${error}`);
6
- return;
7
- }
8
- console.log(`stdout: ${stdout}`);
9
- console.error(`stderr: ${stderr}`);
10
- });