agent-hub-sdd 0.1.0 → 0.1.2

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/README.md CHANGED
@@ -6,15 +6,16 @@ App **Windows** para orquestrar personas do SDLC no seu próprio repositório. N
6
6
 
7
7
  Node 20+ no PATH, depois:
8
8
 
9
+ Na pasta do repositório (depois de `npm install`):
10
+
9
11
  ```powershell
10
- npx agent-hub-sdd
12
+ npm run app
11
13
  ```
12
14
 
13
- Ou global:
15
+ Pelo npm, quando a versão 0.1.1 estiver publicada:
14
16
 
15
17
  ```powershell
16
- npm install -g agent-hub-sdd
17
- agent-hub
18
+ npx agent-hub-sdd
18
19
  ```
19
20
 
20
21
  Isso abre a janela do app. Na primeira vez o npm baixa o Electron e o Next.
package/next.config.ts CHANGED
@@ -7,14 +7,6 @@ const nextConfig: NextConfig = {
7
7
  // APIs stay Node and force-dynamic so the JSON store and SSE turns are not prerendered.
8
8
  cacheComponents: false,
9
9
  partialPrefetching: false,
10
- turbopack: {
11
- rules: {
12
- "*.css": {
13
- loaders: ["@tailwindcss/turbopack"],
14
- as: "*.css",
15
- },
16
- },
17
- },
18
10
  };
19
11
 
20
12
  export default nextConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-hub-sdd",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "author": "Agent Hub",
@@ -18,7 +18,8 @@
18
18
  "url": "git+https://github.com/GustavoCostaAM/agent-hub.git"
19
19
  },
20
20
  "bin": {
21
- "agent-hub": "scripts/cli.mjs"
21
+ "agent-hub": "scripts/cli.cjs",
22
+ "agent-hub-sdd": "scripts/cli.cjs"
22
23
  },
23
24
  "files": [
24
25
  "electron",
@@ -35,7 +36,7 @@
35
36
  },
36
37
  "main": "electron/main.mjs",
37
38
  "scripts": {
38
- "dev": "next dev --hostname 127.0.0.1 --port 43147",
39
+ "dev": "next dev --webpack --hostname 127.0.0.1 --port 43147",
39
40
  "app": "electron .",
40
41
  "start": "next start --hostname 127.0.0.1 --port 43147",
41
42
  "build": "next build",
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env node
2
+ const { spawn } = require("node:child_process");
3
+ const path = require("node:path");
4
+
5
+ const root = path.join(__dirname, "..");
6
+ let electron;
7
+ try {
8
+ electron = require("electron");
9
+ } catch {
10
+ console.error("Falta o Electron. Na pasta do projeto rode: npm install");
11
+ process.exit(1);
12
+ }
13
+
14
+ const child = spawn(electron, [root], {
15
+ cwd: root,
16
+ stdio: "inherit",
17
+ env: process.env,
18
+ windowsHide: false,
19
+ shell: process.platform === "win32",
20
+ });
21
+ child.on("error", (error) => {
22
+ console.error(error.message);
23
+ process.exit(1);
24
+ });
25
+ child.on("exit", (code, signal) => {
26
+ if (signal) process.kill(process.pid, signal);
27
+ process.exit(code ?? 0);
28
+ });
package/scripts/cli.mjs CHANGED
@@ -1,26 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { spawn } from "node:child_process";
3
2
  import { createRequire } from "node:module";
4
- import path from "node:path";
5
- import { fileURLToPath } from "node:url";
6
-
7
- const root = path.join(path.dirname(fileURLToPath(import.meta.url)), "..");
8
- const require = createRequire(import.meta.url);
9
- let electron;
10
- try {
11
- electron = require("electron");
12
- } catch {
13
- console.error("Falta o Electron. Rode: npm install");
14
- process.exit(1);
15
- }
16
-
17
- const child = spawn(electron, [root], {
18
- cwd: root,
19
- stdio: "inherit",
20
- env: process.env,
21
- windowsHide: false,
22
- });
23
- child.on("exit", (code, signal) => {
24
- if (signal) process.kill(process.pid, signal);
25
- process.exit(code ?? 0);
26
- });
3
+ createRequire(import.meta.url)("./cli.cjs");
@@ -183,11 +183,11 @@ function launch(bin: string, args: string[], cwd: string) {
183
183
  };
184
184
  const command = [quoteCmdExe(bin), ...argv.map(quoteCmdArg)].join(" ");
185
185
  const child = viaCmd
186
- ? spawn(process.env.ComSpec || "cmd.exe", ["/d", "/s", "/c", `"${command}"`], {
186
+ ? spawn(/* turbopackIgnore: true */ process.env.ComSpec || "cmd.exe", ["/d", "/s", "/c", `"${command}"`], {
187
187
  ...options,
188
188
  windowsVerbatimArguments: true,
189
189
  })
190
- : spawn(bin, argv, options);
190
+ : spawn(/* turbopackIgnore: true */ bin, argv, options);
191
191
  if (useStdin && child.stdin) {
192
192
  child.stdin.on("error", () => {});
193
193
  child.stdin.write(prompt);