@gsd-now/gsd 0.1.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 (4) hide show
  1. package/README.md +21 -0
  2. package/cli.js +20 -0
  3. package/index.js +23 -0
  4. package/package.json +28 -0
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # @gsd-now/gsd
2
+
3
+ GSD CLI - Get Sh*** Done with AI agents.
4
+
5
+ > Get shell scripts done.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install -g @gsd-now/gsd
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```bash
16
+ gsd --help
17
+ ```
18
+
19
+ ## About
20
+
21
+ GSD is a task automation tool that orchestrates AI agents to execute multi-step workflows defined in configuration files.
package/cli.js ADDED
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+
4
+ var bin = require('.');
5
+ var spawn = require('child_process').spawn;
6
+ var chmodSync = require('fs').chmodSync;
7
+
8
+ var input = process.argv.slice(2);
9
+
10
+ if (bin != null) {
11
+ try {
12
+ chmodSync(bin, 0o755);
13
+ } catch {}
14
+
15
+ spawn(bin, input, { stdio: 'inherit' }).on('exit', process.exit);
16
+ } else {
17
+ throw new Error(
18
+ `Platform "${process.platform} (${process.arch})" not supported.`
19
+ );
20
+ }
package/index.js ADDED
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ const path = require('path');
4
+
5
+ let binary;
6
+
7
+ if (process.platform === 'darwin' && process.arch === 'x64') {
8
+ binary = path.join(__dirname, 'artifacts', 'macos-x64', 'gsd');
9
+ } else if (process.platform === 'darwin' && process.arch === 'arm64') {
10
+ binary = path.join(__dirname, 'artifacts', 'macos-arm64', 'gsd');
11
+ } else if (process.platform === 'linux' && process.arch === 'x64') {
12
+ binary = path.join(__dirname, 'artifacts', 'linux-x64', 'gsd');
13
+ } else if (process.platform === 'linux' && process.arch === 'arm64') {
14
+ binary = path.join(__dirname, 'artifacts', 'linux-arm64', 'gsd');
15
+ } else if (process.platform === 'win32' && process.arch === 'x64') {
16
+ binary = path.join(__dirname, 'artifacts', 'win-x64', 'gsd.exe');
17
+ } else {
18
+ throw new Error(
19
+ `Platform "${process.platform} (${process.arch})" not supported.`
20
+ );
21
+ }
22
+
23
+ module.exports = binary;
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@gsd-now/gsd",
3
+ "version": "0.1.0",
4
+ "description": "GSD CLI - Get Sh*** Done with AI agents.",
5
+ "main": "index.js",
6
+ "bin": {
7
+ "gsd": "cli.js"
8
+ },
9
+ "author": "Robert Balicki",
10
+ "license": "MIT",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/rbalicki2/gsd"
14
+ },
15
+ "keywords": [
16
+ "gsd",
17
+ "ai",
18
+ "agents",
19
+ "automation",
20
+ "cli"
21
+ ],
22
+ "files": [
23
+ "index.js",
24
+ "cli.js",
25
+ "artifacts/**/*"
26
+ ],
27
+ "sideEffects": false
28
+ }