Skip to content

Commit e8fcef5

Browse files
committed
rename
1 parent e5ebd1a commit e8fcef5

3 files changed

Lines changed: 21 additions & 21 deletions

File tree

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# @PredicateSystems/predicate-secure
1+
# @predicatesystems/predicate-secure
22

33
Drop-in security wrapper for AI agents. Adds authorization, verification, and audit to any agent framework (browser-use, LangChain, Playwright, etc.) in 3 lines of code.
44

55
## Installation
66

77
```bash
8-
npm install @PredicateSystems/predicate-secure
8+
npm install @predicatesystems/predicate-secure
99
```
1010

1111
## Quick Start
1212

1313
**[User Manual](./docs/user-manual.md)**
1414

1515
```typescript
16-
import { SecureAgent } from '@PredicateSystems/predicate-secure';
16+
import { SecureAgent } from '@predicatesystems/predicate-secure';
1717
import { Agent } from 'browser-use';
1818

1919
// Wrap your existing agent
@@ -59,7 +59,7 @@ await secureAgent.run();
5959
### SecureAgent
6060

6161
```typescript
62-
import { SecureAgent, MODE_STRICT, MODE_DEBUG } from '@PredicateSystems/predicate-secure';
62+
import { SecureAgent, MODE_STRICT, MODE_DEBUG } from '@predicatesystems/predicate-secure';
6363

6464
// Create with options
6565
const secure = new SecureAgent({
@@ -94,7 +94,7 @@ secure.traceVerification('url_contains', true, 'Checkout page loaded');
9494
### Framework Detection
9595

9696
```typescript
97-
import { FrameworkDetector, Framework } from '@PredicateSystems/predicate-secure';
97+
import { FrameworkDetector, Framework } from '@predicatesystems/predicate-secure';
9898

9999
const detection = FrameworkDetector.detect(myAgent);
100100
console.log(detection.framework); // Framework.BROWSER_USE
@@ -105,7 +105,7 @@ console.log(detection.metadata); // { module: 'browser_use.agent', ... }
105105
### Debug Tracing
106106

107107
```typescript
108-
import { DebugTracer, createDebugTracer } from '@PredicateSystems/predicate-secure';
108+
import { DebugTracer, createDebugTracer } from '@predicatesystems/predicate-secure';
109109

110110
const tracer = createDebugTracer({
111111
format: 'console', // or 'json'
@@ -127,7 +127,7 @@ tracer.traceSessionEnd(true);
127127
### Adapters
128128

129129
```typescript
130-
import { createAdapter, Framework } from '@PredicateSystems/predicate-secure';
130+
import { createAdapter, Framework } from '@predicatesystems/predicate-secure';
131131

132132
// Create framework-specific adapter
133133
const adapter = createAdapter(myAgent, Framework.BROWSER_USE, {
@@ -187,7 +187,7 @@ import type {
187187
TraceEvent,
188188
PolicyDecision,
189189
VerificationResult,
190-
} from '@PredicateSystems/predicate-secure';
190+
} from '@predicatesystems/predicate-secure';
191191
```
192192

193193
## Error Handling
@@ -198,7 +198,7 @@ import {
198198
VerificationFailed,
199199
PolicyLoadError,
200200
UnsupportedFrameworkError,
201-
} from '@PredicateSystems/predicate-secure';
201+
} from '@predicatesystems/predicate-secure';
202202

203203
try {
204204
await secureAgent.run();

docs/user-manual.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# @PredicateSystems/predicate-secure User Manual
1+
# @predicatesystems/predicate-secure User Manual
22

33
A comprehensive guide to securing your AI agents with predicate-secure for TypeScript/JavaScript.
44

@@ -22,7 +22,7 @@ A comprehensive guide to securing your AI agents with predicate-secure for TypeS
2222

2323
## Introduction
2424

25-
**@PredicateSystems/predicate-secure** is a drop-in security wrapper that adds authorization, verification, and audit capabilities to any AI agent framework. Instead of rewriting your agent code, you simply wrap your existing agent with `SecureAgent` and define a policy file.
25+
**@predicatesystems/predicate-secure** is a drop-in security wrapper that adds authorization, verification, and audit capabilities to any AI agent framework. Instead of rewriting your agent code, you simply wrap your existing agent with `SecureAgent` and define a policy file.
2626

2727
### What it does
2828

@@ -199,17 +199,17 @@ Your Agent Code
199199
### Basic installation
200200
201201
```bash
202-
npm install @PredicateSystems/predicate-secure
202+
npm install @predicatesystems/predicate-secure
203203
```
204204

205205
### With framework-specific peer dependencies
206206

207207
```bash
208208
# For Playwright automation
209-
npm install @PredicateSystems/predicate-secure playwright
209+
npm install @predicatesystems/predicate-secure playwright
210210

211211
# For LangChain agents
212-
npm install @PredicateSystems/predicate-secure @langchain/core
212+
npm install @predicatesystems/predicate-secure @langchain/core
213213
```
214214

215215
### Development installation
@@ -228,7 +228,7 @@ npm run build
228228
The simplest way to secure your agent is three lines of code:
229229

230230
```typescript
231-
import { SecureAgent } from '@PredicateSystems/predicate-secure';
231+
import { SecureAgent } from '@predicatesystems/predicate-secure';
232232

233233
// 1. Your existing agent (unchanged)
234234
const agent = new YourAgent({ task: "Do something", llm: yourModel });
@@ -259,7 +259,7 @@ That's it! Every action your agent attempts will now be checked against your pol
259259
```typescript
260260
import { Agent } from 'browser-use';
261261
import { ChatOpenAI } from '@langchain/openai';
262-
import { SecureAgent } from '@PredicateSystems/predicate-secure';
262+
import { SecureAgent } from '@predicatesystems/predicate-secure';
263263

264264
// Create your browser-use agent
265265
const llm = new ChatOpenAI({ model: "gpt-4" });
@@ -334,7 +334,7 @@ const result = await agent.run({
334334

335335
```typescript
336336
import { chromium } from 'playwright';
337-
import { SecureAgent } from '@PredicateSystems/predicate-secure';
337+
import { SecureAgent } from '@predicatesystems/predicate-secure';
338338

339339
const browser = await chromium.launch();
340340
const page = await browser.newPage();
@@ -384,7 +384,7 @@ const runtimeAgent = new RuntimeAgent({
384384
```typescript
385385
import { AgentExecutor, createReactAgent } from 'langchain/agents';
386386
import { ChatOpenAI } from '@langchain/openai';
387-
import { SecureAgent } from '@PredicateSystems/predicate-secure';
387+
import { SecureAgent } from '@predicatesystems/predicate-secure';
388388

389389
// Create your LangChain agent
390390
const llm = new ChatOpenAI({ model: "gpt-4" });
@@ -455,7 +455,7 @@ const core = secureAgent.getLangChainCore({ browser });
455455

456456
```typescript
457457
import { Agent } from 'pydantic-ai';
458-
import { SecureAgent } from '@PredicateSystems/predicate-secure';
458+
import { SecureAgent } from '@predicatesystems/predicate-secure';
459459

460460
// Create your PydanticAI agent
461461
const agent = new Agent({ model: "gpt-4" });
@@ -494,7 +494,7 @@ const secureAgent = new SecureAgent({
494494
If an action is denied, `AuthorizationDenied` is thrown:
495495

496496
```typescript
497-
import { AuthorizationDenied } from '@PredicateSystems/predicate-secure';
497+
import { AuthorizationDenied } from '@predicatesystems/predicate-secure';
498498

499499
try {
500500
await secureAgent.run();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@PredicateSystems/predicate-secure",
2+
"name": "@predicatesystems/predicate-secure",
33
"version": "0.2.0",
44
"description": "Drop-in security wrapper for AI agents - adds authorization, verification, and audit to any agent framework",
55
"type": "module",

0 commit comments

Comments
 (0)