skigard 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +16 -2
- package/bin/skigard.js +50 -0
- package/package.json +43 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ambier Oy
|
|
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
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
#
|
|
1
|
+
# skigard
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Lockfile and review gate for agent skills: fetch to quarantine, scan, advisory agent review, **human** approval,
|
|
4
|
+
hash-pinned lockfile, install into your agent harnesses.
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
npx skigard version # also: bunx skigard, pnpm dlx skigard
|
|
8
|
+
npm install -g skigard
|
|
9
|
+
skigard --help
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
This package is a thin launcher. The native binary comes from the matching `@ambierhq/skigard-<os>-<cpu>`
|
|
13
|
+
optional dependency (linux, darwin, win32; x64, arm64). There is **no postinstall script** and nothing is downloaded
|
|
14
|
+
at install time. `skigard approve` reads the controlling terminal itself, so it works through `npx` in a real terminal
|
|
15
|
+
and refuses everywhere else.
|
|
16
|
+
|
|
17
|
+
Source, docs and release signatures: https://github.com/ambierhq/skigard
|
package/bin/skigard.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Launcher for the skigard binary. The binary ships in a per-platform package
|
|
3
|
+
// (@ambierhq/skigard-<os>-<cpu>, an optionalDependency); nothing is downloaded at install time.
|
|
4
|
+
// stdio is inherited, so `skigard approve` opens the controlling terminal itself, exactly as the
|
|
5
|
+
// native binary does. This file never passes anything to the binary through the environment.
|
|
6
|
+
"use strict";
|
|
7
|
+
const { spawnSync } = require("node:child_process");
|
|
8
|
+
const fs = require("node:fs");
|
|
9
|
+
const path = require("node:path");
|
|
10
|
+
|
|
11
|
+
const pkg = `@ambierhq/skigard-${process.platform}-${process.arch}`;
|
|
12
|
+
const exe = process.platform === "win32" ? "skigard.exe" : "skigard";
|
|
13
|
+
|
|
14
|
+
function fail(msg) {
|
|
15
|
+
process.stderr.write(`skigard: ${msg}\n`);
|
|
16
|
+
process.exit(2);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
let binary;
|
|
20
|
+
try {
|
|
21
|
+
binary = path.join(path.dirname(require.resolve(`${pkg}/package.json`)), "bin", exe);
|
|
22
|
+
} catch {
|
|
23
|
+
fail(
|
|
24
|
+
`no prebuilt binary for ${process.platform}-${process.arch} (expected package ${pkg}).\n` +
|
|
25
|
+
"If you installed with --omit=optional or --no-optional, reinstall without it.\n" +
|
|
26
|
+
"Other install options: https://github.com/ambierhq/skigard#install",
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
if (!fs.existsSync(binary)) fail(`${pkg} is installed but ${binary} is missing; reinstall it`);
|
|
30
|
+
if (process.platform !== "win32") {
|
|
31
|
+
try {
|
|
32
|
+
fs.accessSync(binary, fs.constants.X_OK);
|
|
33
|
+
} catch {
|
|
34
|
+
try {
|
|
35
|
+
fs.chmodSync(binary, 0o755); // some package managers drop the exec bit
|
|
36
|
+
} catch (e) {
|
|
37
|
+
fail(`cannot make ${binary} executable: ${e.message}`);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const r = spawnSync(binary, process.argv.slice(2), { stdio: "inherit", windowsHide: false });
|
|
43
|
+
if (r.error) fail(`cannot run ${binary}: ${r.error.message}`);
|
|
44
|
+
if (r.signal) {
|
|
45
|
+
// Re-raise so the caller sees the same termination.
|
|
46
|
+
process.kill(process.pid, r.signal);
|
|
47
|
+
setTimeout(() => process.exit(128), 100);
|
|
48
|
+
} else {
|
|
49
|
+
process.exit(r.status ?? 1);
|
|
50
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skigard",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Lockfile and review gate for agent skills",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Ambier Oy <skigard@ambierhq.com>",
|
|
7
|
+
"homepage": "https://github.com/ambierhq/skigard",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/ambierhq/skigard.git",
|
|
11
|
+
"directory": "npm"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/ambierhq/skigard/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"agent",
|
|
18
|
+
"skills",
|
|
19
|
+
"security",
|
|
20
|
+
"lockfile",
|
|
21
|
+
"supply-chain"
|
|
22
|
+
],
|
|
23
|
+
"bin": {
|
|
24
|
+
"skigard": "bin/skigard.js"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"bin/skigard.js",
|
|
28
|
+
"README.md",
|
|
29
|
+
"LICENSE"
|
|
30
|
+
],
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18"
|
|
33
|
+
},
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
36
|
+
},
|
|
37
|
+
"optionalDependencies": {
|
|
38
|
+
"@ambierhq/skigard-darwin-arm64": "0.1.2",
|
|
39
|
+
"@ambierhq/skigard-darwin-x64": "0.1.2",
|
|
40
|
+
"@ambierhq/skigard-linux-arm64": "0.1.2",
|
|
41
|
+
"@ambierhq/skigard-linux-x64": "0.1.2",
|
|
42
|
+
"@ambierhq/skigard-win32-arm64": "0.1.2",
|
|
43
|
+
"@ambierhq/skigard-win32-x64": "0.1.2"
|
|
44
|
+
}
|
|
45
|
+
}
|