@safedep/gryph 0.0.1 → 0.2.1

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
@@ -1,7 +1,5 @@
1
1
  # Gryph
2
2
 
3
- AI coding agents read files, write code, and execute commands on your behalf. But what exactly did they do?
4
-
5
3
  **Gryph** is a local-first audit trail for AI coding agents. It hooks into your agents, logs every action to a local SQLite database, and gives you powerful querying capabilities to understand, review, and debug agent activity.
6
4
 
7
5
  ## Why Gryph?
package/package.json CHANGED
@@ -11,13 +11,10 @@
11
11
  },
12
12
  "keywords": [
13
13
  "security",
14
- "package-manager",
15
- "malicious-packages",
16
- "npm",
17
14
  "cli",
18
- "vulnerability",
19
- "dependency-security",
20
- "safedep"
15
+ "safedep",
16
+ "ai",
17
+ "ai-agents"
21
18
  ],
22
19
  "author": "SafeDep <devops@safedep.io>",
23
20
  "license": "Apache-2.0",
@@ -54,5 +51,5 @@
54
51
  "access": "public"
55
52
  },
56
53
  "dependencies": {},
57
- "version": "0.0.1"
54
+ "version": "0.2.1"
58
55
  }
package/bin/gryph.js DELETED
@@ -1,76 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const fs = require("fs");
4
- const path = require("path");
5
- const { spawn } = require("child_process");
6
- const { ORG_NAME, PACKAGE_NAME, BINARY_NAME } = require("../config");
7
-
8
- const BINARY_NAME_WITH_EXT =
9
- process.platform === "win32" ? `${BINARY_NAME}.exe` : BINARY_NAME;
10
- const BINARY_PATH = path.join(__dirname, BINARY_NAME_WITH_EXT);
11
-
12
- function main() {
13
- // Check if binary exists
14
- if (!fs.existsSync(BINARY_PATH)) {
15
- console.error(`❌ ${BINARY_NAME_WITH_EXT} binary not found`);
16
- console.error(
17
- `Try reinstalling: npm install -g ${ORG_NAME}/${PACKAGE_NAME}`,
18
- );
19
- process.exit(1);
20
- }
21
-
22
- // Verify binary is executable
23
- try {
24
- fs.accessSync(BINARY_PATH, fs.constants.F_OK | fs.constants.X_OK);
25
- } catch (error) {
26
- console.error(`❌ ${BINARY_NAME_WITH_EXT} is not executable`);
27
- console.error(
28
- `Try reinstalling: npm install -g ${ORG_NAME}/${PACKAGE_NAME}`,
29
- );
30
- process.exit(1);
31
- }
32
-
33
- // Pass all arguments to the binary
34
- const args = process.argv.slice(2);
35
-
36
- // Spawn the binary with inherited stdio for proper terminal interaction
37
- const child = spawn(BINARY_PATH, args, {
38
- stdio: "inherit",
39
- windowsHide: false,
40
- });
41
-
42
- // Handle process termination
43
- child.on("error", (error) => {
44
- console.error(
45
- `❌ Failed to execute ${BINARY_NAME_WITH_EXT}: ${error.message}`,
46
- );
47
- console.error(
48
- `Try reinstalling: npm install -g ${ORG_NAME}/${PACKAGE_NAME}`,
49
- );
50
- process.exit(1);
51
- });
52
-
53
- // Exit with the same code as the child process
54
- child.on("exit", (code, signal) => {
55
- if (signal) {
56
- process.kill(process.pid, signal);
57
- } else {
58
- process.exit(code || 0);
59
- }
60
- });
61
-
62
- // Handle termination signals
63
- process.on("SIGTERM", () => {
64
- child.kill("SIGTERM");
65
- });
66
-
67
- process.on("SIGINT", () => {
68
- child.kill("SIGINT");
69
- });
70
- }
71
-
72
- if (require.main === module) {
73
- main();
74
- }
75
-
76
- module.exports = { main };