@princeverma130104/agentguard 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +9 -9
  2. package/package.json +5 -1
package/README.md CHANGED
@@ -72,7 +72,7 @@ AgentGuard acts as an invisible middleware layer between your agent framework an
72
72
  ### 1. Install
73
73
 
74
74
  ```bash
75
- npm install agentguard
75
+ npm install @princeverma130104/agentguard
76
76
  ```
77
77
 
78
78
  ### 2. Start Redis
@@ -84,7 +84,7 @@ docker-compose up -d
84
84
  ### 3. Use
85
85
 
86
86
  ```typescript
87
- import { AgentGuard } from 'agentguard';
87
+ import { AgentGuard } from '@princeverma130104/agentguard';
88
88
 
89
89
  const guard = new AgentGuard({
90
90
  redisUrl: 'redis://localhost:6379',
@@ -115,7 +115,7 @@ await guard.close();
115
115
  ## Mastra Integration
116
116
 
117
117
  ```typescript
118
- import { createMastraGuard } from 'agentguard/mastra';
118
+ import { createMastraGuard } from '@princeverma130104/agentguard/mastra';
119
119
 
120
120
  const { wrapStep } = createMastraGuard({
121
121
  redisUrl: process.env.REDIS_URL,
@@ -136,7 +136,7 @@ const myStep = {
136
136
  ## LangChain.js Integration
137
137
 
138
138
  ```typescript
139
- import { createLangChainGuard } from 'agentguard/langchain';
139
+ import { createLangChainGuard } from '@princeverma130104/agentguard/langchain';
140
140
  import { ChatOpenAI } from '@langchain/openai';
141
141
 
142
142
  const { handler, restore } = createLangChainGuard({
@@ -157,7 +157,7 @@ const clean = await restore(result.content, handler.sessionId);
157
157
 
158
158
  ```typescript
159
159
  import express from 'express';
160
- import { createGuardMiddleware } from 'agentguard/middleware';
160
+ import { createGuardMiddleware } from '@princeverma130104/agentguard/middleware';
161
161
 
162
162
  const app = express();
163
163
  app.use(express.json());
@@ -233,9 +233,9 @@ vault must be reachable from that service.
233
233
 
234
234
  ### Prepare a release
235
235
 
236
- 1. Use a package name you own. If `agentguard` is not available to your npm
237
- account, change `name` in `package.json` (and the lockfile) to a name you can
238
- publish, such as `@your-npm-scope/agentguard`.
236
+ 1. The published package name is `@princeverma130104/agentguard`. To publish
237
+ under a different npm account, change `name` in `package.json` and the
238
+ lockfile to a scope that account owns.
239
239
  2. Replace the repository, bugs, homepage, and author placeholders in
240
240
  `package.json` with your project details.
241
241
  3. Run the production checks and inspect the package contents:
@@ -266,7 +266,7 @@ vault must be reachable from that service.
266
266
  2. Set `REDIS_URL` in the application host's secret/environment settings. Use
267
267
  the provider's TLS URL (`rediss://...`) when offered, and never commit
268
268
  credentials in `.env` or source control.
269
- 3. Set `@princeverma3502/agentguard_TTL_SECONDS` if the default 900 seconds is not appropriate.
269
+ 3. Set `AGENTGUARD_TTL_SECONDS` if the default 900 seconds is not appropriate.
270
270
  Configure your app to pass `REDIS_URL` and the desired TTL to `AgentGuard`.
271
271
  4. Install the published package in the application, deploy the service using
272
272
  its normal Node.js deployment process, and verify Redis connectivity with
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@princeverma130104/agentguard",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Privacy & Context Redaction Middleware for AI Agents — detect, tokenise, and restore PII/credentials in real-time without exposing sensitive data to LLMs.",
5
5
  "keywords": [
6
6
  "ai",
@@ -23,18 +23,22 @@
23
23
  "exports": {
24
24
  ".": {
25
25
  "require": "./dist/index.js",
26
+ "default": "./dist/index.js",
26
27
  "types": "./dist/index.d.ts"
27
28
  },
28
29
  "./mastra": {
29
30
  "require": "./dist/mastra.js",
31
+ "default": "./dist/mastra.js",
30
32
  "types": "./dist/mastra.d.ts"
31
33
  },
32
34
  "./langchain": {
33
35
  "require": "./dist/langchain.js",
36
+ "default": "./dist/langchain.js",
34
37
  "types": "./dist/langchain.d.ts"
35
38
  },
36
39
  "./middleware": {
37
40
  "require": "./dist/middleware.js",
41
+ "default": "./dist/middleware.js",
38
42
  "types": "./dist/middleware.d.ts"
39
43
  }
40
44
  },