sheepit-ai 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.
- package/LICENSE +21 -0
- package/README.md +41 -0
- package/bin.js +42 -0
- package/package.json +45 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 GoaTech AI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# sheepit-ai
|
|
2
|
+
|
|
3
|
+
This package is an installer shim for the Sheepit CLI.
|
|
4
|
+
|
|
5
|
+
It exists so that `npm install -g sheepit-ai` works the same as `npm install -g @sheepit-ai/cli`. It declares `@sheepit-ai/cli` as a dependency and re-exports its `sheepit` binary.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install -g sheepit-ai
|
|
11
|
+
# or
|
|
12
|
+
pnpm add -g sheepit-ai
|
|
13
|
+
# or
|
|
14
|
+
yarn global add sheepit-ai
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Then run:
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
sheepit --help
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Or run it once without installing:
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
npx sheepit-ai --help
|
|
27
|
+
# or
|
|
28
|
+
pnpm dlx sheepit-ai --help
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## What this package contains
|
|
32
|
+
|
|
33
|
+
- `bin.js` — a tiny stub that spawns the real CLI entry from `@sheepit-ai/cli`.
|
|
34
|
+
|
|
35
|
+
That's it. The actual CLI implementation lives in [`@sheepit-ai/cli`](https://www.npmjs.com/package/@sheepit-ai/cli). Source: [`packages/cli/`](https://github.com/goatech-ai/GoaTech/tree/main/packages/cli).
|
|
36
|
+
|
|
37
|
+
## Why a shim package?
|
|
38
|
+
|
|
39
|
+
The CLI's binary is named `sheepit`. The bare unscoped package name `sheepit` on npm is owned by an unrelated maintainer, so we publish under the (also-brand-aligned) name `sheepit-ai` — matching both the org `@sheepit-ai/*` and the domain `sheepit.ai`. The shim reserves this unscoped name and forwards to the scoped real package.
|
|
40
|
+
|
|
41
|
+
The shim's `@sheepit-ai/cli` dependency is pinned to an exact version — both packages are bumped together on each release.
|
package/bin.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { spawn } from "node:child_process";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
4
|
+
import process from "node:process";
|
|
5
|
+
|
|
6
|
+
const require = createRequire(import.meta.url);
|
|
7
|
+
|
|
8
|
+
let cliEntry;
|
|
9
|
+
try {
|
|
10
|
+
cliEntry = require.resolve("@sheepit-ai/cli");
|
|
11
|
+
} catch (err) {
|
|
12
|
+
process.stderr.write(
|
|
13
|
+
"sheepit: failed to locate @sheepit-ai/cli. Try reinstalling: npm install -g sheepit-ai\n",
|
|
14
|
+
);
|
|
15
|
+
process.stderr.write(String(err?.message ?? err) + "\n");
|
|
16
|
+
process.exit(1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const child = spawn(process.execPath, [cliEntry, ...process.argv.slice(2)], {
|
|
20
|
+
stdio: "inherit",
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
const FORWARDED_SIGNALS = ["SIGINT", "SIGTERM", "SIGHUP", "SIGQUIT"];
|
|
24
|
+
for (const sig of FORWARDED_SIGNALS) {
|
|
25
|
+
process.on(sig, () => {
|
|
26
|
+
try {
|
|
27
|
+
child.kill(sig);
|
|
28
|
+
} catch {
|
|
29
|
+
// child already exited — nothing to forward
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const SIGNAL_NUMBERS = { SIGHUP: 1, SIGINT: 2, SIGQUIT: 3, SIGTERM: 15 };
|
|
35
|
+
|
|
36
|
+
child.on("exit", (code, signal) => {
|
|
37
|
+
if (signal) {
|
|
38
|
+
process.exit(128 + (SIGNAL_NUMBERS[signal] ?? 0));
|
|
39
|
+
} else {
|
|
40
|
+
process.exit(code ?? 0);
|
|
41
|
+
}
|
|
42
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sheepit-ai",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Installs the Sheepit CLI. Re-exports the `sheepit` binary from @sheepit-ai/cli so `npm install -g sheepit-ai` works.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "GoaTech AI LLC",
|
|
7
|
+
"homepage": "https://sheepit.ai",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/goatech-ai/GoaTech.git",
|
|
11
|
+
"directory": "packages/cli-shim"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/goatech-ai/GoaTech/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"sheepit",
|
|
18
|
+
"cli",
|
|
19
|
+
"codegen",
|
|
20
|
+
"feature-flags",
|
|
21
|
+
"flags",
|
|
22
|
+
"devtools"
|
|
23
|
+
],
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=18"
|
|
26
|
+
},
|
|
27
|
+
"type": "module",
|
|
28
|
+
"bin": {
|
|
29
|
+
"sheepit": "./bin.js"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"bin.js",
|
|
33
|
+
"README.md",
|
|
34
|
+
"LICENSE"
|
|
35
|
+
],
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@sheepit-ai/cli": "0.1.0"
|
|
38
|
+
},
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public"
|
|
41
|
+
},
|
|
42
|
+
"scripts": {
|
|
43
|
+
"test": "node bin.js --help >/dev/null 2>&1"
|
|
44
|
+
}
|
|
45
|
+
}
|