skissue 0.1.11
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 +132 -0
- package/dist/entry.js +1127 -0
- package/package.json +75 -0
- package/scripts/INDEX.md +10 -0
- package/scripts/ensure-local-bin.mjs +32 -0
- package/scripts/install.sh +33 -0
package/package.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "skissue",
|
|
3
|
+
"version": "0.1.11",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/midyan/skill-issue.git"
|
|
8
|
+
},
|
|
9
|
+
"description": "CLI to install and sync agent skills from a Git registry",
|
|
10
|
+
"keywords": [
|
|
11
|
+
"cli",
|
|
12
|
+
"agent",
|
|
13
|
+
"skills",
|
|
14
|
+
"registry",
|
|
15
|
+
"ai"
|
|
16
|
+
],
|
|
17
|
+
"type": "module",
|
|
18
|
+
"exports": {},
|
|
19
|
+
"bin": {
|
|
20
|
+
"skissue": "dist/entry.js"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"scripts"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "node esbuild.config.js",
|
|
28
|
+
"postbuild": "node -e \"require('fs').chmodSync('dist/entry.js', 0o755)\" && node scripts/ensure-local-bin.mjs",
|
|
29
|
+
"postinstall": "node scripts/ensure-local-bin.mjs",
|
|
30
|
+
"dev": "node --import tsx src/entry.ts",
|
|
31
|
+
"lint": "eslint .",
|
|
32
|
+
"format": "prettier --write .",
|
|
33
|
+
"format:check": "prettier --check .",
|
|
34
|
+
"test": "vitest run",
|
|
35
|
+
"test:coverage": "vitest run --coverage",
|
|
36
|
+
"typecheck": "tsc --noEmit",
|
|
37
|
+
"test:watch": "vitest",
|
|
38
|
+
"check:agents-entry": "tsx harness/validate-agents-entry/hard/index.ts",
|
|
39
|
+
"check:harness-doc": "tsx harness/validate-harness-doc/hard/index.ts",
|
|
40
|
+
"check:indexes": "tsx harness/validate-indexes/hard/index.ts",
|
|
41
|
+
"check:registry": "tsx harness/validate-registry/hard/index.ts",
|
|
42
|
+
"check:all": "tsx harness/runner.ts",
|
|
43
|
+
"check:harness-score": "tsx harness/report-harness-score/hard/index.ts",
|
|
44
|
+
"verify": "tsc --noEmit && npm run lint && npm run format:check && npm test && npm run check:all && npm run build",
|
|
45
|
+
"repo-verify": "tsx harness/repo-verify/hard/index.ts",
|
|
46
|
+
"prepublishOnly": "npm run build",
|
|
47
|
+
"prepare": "husky || node -e \"process.exit(0)\""
|
|
48
|
+
},
|
|
49
|
+
"engines": {
|
|
50
|
+
"node": ">=24"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@eslint/js": "^9.18.0",
|
|
54
|
+
"@types/node": "^24.0.0",
|
|
55
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
56
|
+
"esbuild": "^0.24.2",
|
|
57
|
+
"eslint": "^9.18.0",
|
|
58
|
+
"eslint-config-prettier": "^10.0.1",
|
|
59
|
+
"globals": "^15.14.0",
|
|
60
|
+
"husky": "^9.1.7",
|
|
61
|
+
"prettier": "^3.4.2",
|
|
62
|
+
"tsx": "^4.19.2",
|
|
63
|
+
"typescript": "^5.7.3",
|
|
64
|
+
"typescript-eslint": "^8.20.0",
|
|
65
|
+
"vitest": "^3.0.4"
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@clack/prompts": "^0.9.1",
|
|
69
|
+
"chalk": "^5.4.1",
|
|
70
|
+
"commander": "^13.0.0",
|
|
71
|
+
"ora": "^8.1.1",
|
|
72
|
+
"yaml": "^2.7.0",
|
|
73
|
+
"zod": "^3.24.1"
|
|
74
|
+
}
|
|
75
|
+
}
|
package/scripts/INDEX.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# scripts/
|
|
2
|
+
|
|
3
|
+
Shell and Node helpers for install and local CLI development.
|
|
4
|
+
|
|
5
|
+
## Contents
|
|
6
|
+
|
|
7
|
+
| Name | Description |
|
|
8
|
+
| -------------------------------------------- | ------------------------------------------------------------------------- |
|
|
9
|
+
| [ensure-local-bin.mjs](ensure-local-bin.mjs) | Writes `node_modules/.bin/skissue` in this repo (postinstall / postbuild) |
|
|
10
|
+
| [install.sh](install.sh) | Global install from a clone (`chmod +x` then `./scripts/install.sh`) |
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* npm does not link the root package's `bin` into ./node_modules/.bin. libnpmexec
|
|
4
|
+
* then runs `npx skissue` by looking for `skissue` on PATH from that
|
|
5
|
+
* directory — and fails with `sh: skissue: command not found`.
|
|
6
|
+
*
|
|
7
|
+
* When this package is installed as a dependency, npm already installs bins; skip.
|
|
8
|
+
*/
|
|
9
|
+
import { chmodSync, existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
10
|
+
import { dirname, join, sep } from "node:path";
|
|
11
|
+
import { fileURLToPath } from "node:url";
|
|
12
|
+
|
|
13
|
+
const scriptPath = fileURLToPath(import.meta.url);
|
|
14
|
+
if (scriptPath.split(sep).includes("node_modules")) {
|
|
15
|
+
process.exit(0);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const root = dirname(dirname(scriptPath));
|
|
19
|
+
const dist = join(root, "dist", "entry.js");
|
|
20
|
+
const binDir = join(root, "node_modules", ".bin");
|
|
21
|
+
const out = join(binDir, "skissue");
|
|
22
|
+
|
|
23
|
+
if (!existsSync(dist)) {
|
|
24
|
+
process.exit(0);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
mkdirSync(binDir, { recursive: true });
|
|
28
|
+
const content = `#!/usr/bin/env sh
|
|
29
|
+
exec node "${dist}" "$@"
|
|
30
|
+
`;
|
|
31
|
+
writeFileSync(out, content, { mode: 0o755 });
|
|
32
|
+
chmodSync(out, 0o755);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
# Install skissue globally from a checkout of this repo (build + npm pack + npm install -g).
|
|
5
|
+
# Requires Node 24+ and npm.
|
|
6
|
+
|
|
7
|
+
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
8
|
+
cd "$ROOT"
|
|
9
|
+
|
|
10
|
+
if ! command -v node >/dev/null 2>&1; then
|
|
11
|
+
echo "error: node is required (>=24)" >&2
|
|
12
|
+
exit 1
|
|
13
|
+
fi
|
|
14
|
+
|
|
15
|
+
if ! node -e "process.exit(Number(process.versions.node.split('.')[0]) >= 24 ? 0 : 1)" 2>/dev/null; then
|
|
16
|
+
echo "error: node >= 24 is required (got $(node -p process.version))" >&2
|
|
17
|
+
exit 1
|
|
18
|
+
fi
|
|
19
|
+
|
|
20
|
+
if ! command -v npm >/dev/null 2>&1; then
|
|
21
|
+
echo "error: npm is required" >&2
|
|
22
|
+
exit 1
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
npm install
|
|
26
|
+
npm run build
|
|
27
|
+
|
|
28
|
+
TMP="${TMPDIR:-/tmp}"
|
|
29
|
+
ARCHIVE_NAME="$(npm pack --pack-destination "$TMP" | tail -1)"
|
|
30
|
+
ARCHIVE_PATH="$TMP/$ARCHIVE_NAME"
|
|
31
|
+
|
|
32
|
+
npm install -g "$ARCHIVE_PATH"
|
|
33
|
+
echo "Installed skissue from $ARCHIVE_PATH"
|