Skip to content

Commit d1cf6e5

Browse files
0xbeekeeperclaude
andcommitted
chore: rename npm package to @goplus/agentguard
Update all imports, README references, and package.json to use the scoped package name @goplus/agentguard matching the published npm package. Add npm version badge to README and npm install instructions. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 3666b34 commit d1cf6e5

6 files changed

Lines changed: 18 additions & 11 deletions

File tree

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
Your AI agent can execute `rm -rf /`, read your SSH keys, and send passwords to Discord. GoPlus AgentGuard stops all of that.
66

7+
[![npm](https://img.shields.io/npm/v/@goplus/agentguard.svg)](https://www.npmjs.com/package/@goplus/agentguard)
78
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
89
[![Node.js](https://img.shields.io/badge/node-%3E%3D18-green.svg)](https://nodejs.org)
910
[![TypeScript](https://img.shields.io/badge/TypeScript-strict-blue.svg)](https://www.typescriptlang.org)
@@ -42,7 +43,13 @@ GoPlus AgentGuard follows the [Agent Skills](https://agentskills.io) open standa
4243
4344
## Quick Start
4445

45-
### One-Click Install
46+
### Install via npm
47+
48+
```bash
49+
npm install @goplus/agentguard
50+
```
51+
52+
### One-Click Install (Plugin + Hooks)
4653

4754
```bash
4855
git clone https://github.com/GoPlusSecurity/agentguard.git
@@ -135,7 +142,7 @@ Expected output: **CRITICAL** risk level with **20 detection hits** across JavaS
135142
"mcpServers": {
136143
"agentguard": {
137144
"command": "npx",
138-
"args": ["-y", "agentguard"],
145+
"args": ["-y", "@goplus/agentguard"],
139146
"env": {
140147
"GOPLUS_API_KEY": "your_key",
141148
"GOPLUS_API_SECRET": "your_secret"
@@ -150,7 +157,7 @@ MCP tools: `skill_scanner_scan`, `registry_lookup`, `registry_attest`, `registry
150157
### As SDK
151158

152159
```typescript
153-
import { createAgentGuard } from 'agentguard';
160+
import { createAgentGuard } from '@goplus/agentguard';
154161

155162
const { scanner, registry, actionScanner } = createAgentGuard();
156163

skills/agentguard/scripts/action-cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
* --path <filepath>
2929
*/
3030

31-
import { createAgentGuard } from 'agentguard';
31+
import { createAgentGuard } from '@goplus/agentguard';
3232
import type {
3333
ActionEnvelope,
3434
Web3Intent,
3535
ActionType,
36-
} from 'agentguard';
36+
} from '@goplus/agentguard';
3737

3838
const args = process.argv.slice(2);
3939
const command = args[0];

skills/agentguard/scripts/auto-scan.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ try {
3333
CAPABILITY_PRESETS = gs.CAPABILITY_PRESETS;
3434
} catch {
3535
try {
36-
const gs = await import('agentguard');
36+
const gs = await import('@goplus/agentguard');
3737
createAgentGuard = gs.createAgentGuard || gs.default;
3838
CAPABILITY_PRESETS = gs.CAPABILITY_PRESETS;
3939
} catch {

skills/agentguard/scripts/guard-hook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ try {
2929
} catch {
3030
// Fallback: try to require from node_modules
3131
try {
32-
const gs = await import('agentguard');
32+
const gs = await import('@goplus/agentguard');
3333
createAgentGuard = gs.createAgentGuard || gs.default;
3434
} catch {
3535
// Cannot load agentguard — allow everything and warn

skills/agentguard/scripts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"private": true,
33
"type": "module",
44
"dependencies": {
5-
"agentguard": "file:../../.."
5+
"@goplus/agentguard": "file:../../.."
66
}
77
}

skills/agentguard/scripts/trust-cli.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
* node trust-cli.ts hash --path <dir>
1212
*/
1313

14-
import { createAgentGuard } from 'agentguard';
15-
import { CAPABILITY_PRESETS } from 'agentguard/dist/policy/default.js';
16-
import { SkillScanner } from 'agentguard/dist/scanner/index.js';
14+
import { createAgentGuard } from '@goplus/agentguard';
15+
import { CAPABILITY_PRESETS } from '@goplus/agentguard/dist/policy/default.js';
16+
import { SkillScanner } from '@goplus/agentguard/dist/scanner/index.js';
1717

1818
const args = process.argv.slice(2);
1919
const command = args[0];

0 commit comments

Comments
 (0)