Skip to content

Commit 39aec94

Browse files
authored
Merge pull request #175 from SentienceAPI/rebrand
change npm package branding
2 parents f69a8ca + b0a1fb0 commit 39aec94

9 files changed

Lines changed: 26 additions & 26 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,11 @@ jobs:
150150
tag_name: v${{ steps.version.outputs.version }}
151151
name: Release v${{ steps.version.outputs.version }}
152152
body: |
153-
Release v${{ steps.version.outputs.version }} of sentienceapi
153+
Release v${{ steps.version.outputs.version }} of @predicatelabs/sdk
154154
155155
## Installation
156156
```bash
157-
npm install sentienceapi@${{ steps.version.outputs.version }}
157+
npm install @predicatelabs/sdk@${{ steps.version.outputs.version }}
158158
```
159159
draft: false
160160
prerelease: false

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The core loop is:
2828
## Install
2929

3030
```bash
31-
npm install sentienceapi
31+
npm install @predicatelabs/sdk
3232
npx playwright install chromium
3333
```
3434

@@ -41,9 +41,9 @@ npx playwright install chromium
4141
## Quickstart: a verification-first loop
4242

4343
```ts
44-
import { SentienceBrowser, AgentRuntime } from 'sentienceapi';
45-
import { JsonlTraceSink, Tracer } from 'sentienceapi';
46-
import { exists, urlContains } from 'sentienceapi';
44+
import { SentienceBrowser, AgentRuntime } from '@predicatelabs/sdk';
45+
import { JsonlTraceSink, Tracer } from '@predicatelabs/sdk';
46+
import { exists, urlContains } from '@predicatelabs/sdk';
4747
import type { Page } from 'playwright';
4848

4949
async function main(): Promise<void> {
@@ -86,7 +86,7 @@ Key idea: your agent still executes actions — Sentience **snapshots and verifi
8686

8787
```ts
8888
import type { Page } from 'playwright';
89-
import { SentienceDebugger, Tracer, JsonlTraceSink, exists, urlContains } from 'sentienceapi';
89+
import { SentienceDebugger, Tracer, JsonlTraceSink, exists, urlContains } from '@predicatelabs/sdk';
9090

9191
async function runExistingAgent(page: Page): Promise<void> {
9292
const tracer = new Tracer('run-123', new JsonlTraceSink('trace.jsonl'));
@@ -113,7 +113,7 @@ async function runExistingAgent(page: Page): Promise<void> {
113113
If you want Sentience to drive the loop end-to-end, you can use the SDK primitives directly: take a snapshot, select elements, act, then verify.
114114

115115
```ts
116-
import { SentienceBrowser, snapshot, find, typeText, click, waitFor } from 'sentienceapi';
116+
import { SentienceBrowser, snapshot, find, typeText, click, waitFor } from '@predicatelabs/sdk';
117117

118118
async function loginExample(): Promise<void> {
119119
const browser = new SentienceBrowser();
@@ -173,7 +173,7 @@ async function loginExample(): Promise<void> {
173173
## ToolRegistry (LLM-callable tools)
174174

175175
```ts
176-
import { ToolRegistry, registerDefaultTools } from 'sentienceapi';
176+
import { ToolRegistry, registerDefaultTools } from '@predicatelabs/sdk';
177177

178178
const registry = new ToolRegistry();
179179
registerDefaultTools(registry);
@@ -185,8 +185,8 @@ const toolsForLLM = registry.llmTools();
185185
Chrome permission prompts are outside the DOM and can be invisible to snapshots. Prefer setting a policy **before navigation**.
186186

187187
```ts
188-
import { SentienceBrowser } from 'sentienceapi';
189-
import type { PermissionPolicy } from 'sentienceapi';
188+
import { SentienceBrowser } from '@predicatelabs/sdk';
189+
import type { PermissionPolicy } from '@predicatelabs/sdk';
190190

191191
const policy: PermissionPolicy = {
192192
default: 'clear',
@@ -220,7 +220,7 @@ If your backend supports it, you can also use ToolRegistry permission tools (`gr
220220
## Downloads (verification predicate)
221221

222222
```ts
223-
import { downloadCompleted } from 'sentienceapi';
223+
import { downloadCompleted } from '@predicatelabs/sdk';
224224

225225
runtime.assert(downloadCompleted('report.csv'), 'download_ok', true);
226226
```
@@ -230,7 +230,7 @@ runtime.assert(downloadCompleted('report.csv'), 'download_ok', true);
230230
- **Manual driver CLI**:
231231

232232
```bash
233-
npx sentience driver --url https://example.com
233+
npx predicate driver --url https://example.com
234234
```
235235

236236
- **Verification + artifacts + debugging with time-travel traces (Sentience Studio demo)**:

examples/agent-runtime-captcha-strategies.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import {
55
HumanHandoffSolver,
66
SentienceBrowser,
77
VisionSolver,
8-
} from 'sentienceapi';
9-
import { createTracer } from 'sentienceapi';
8+
} from '@predicatelabs/sdk';
9+
import { createTracer } from '@predicatelabs/sdk';
1010

1111
async function notifyWebhook(ctx: any): Promise<void> {
1212
console.log(`[captcha] external resolver notified: url=${ctx.url} run_id=${ctx.runId}`);

examples/lang-chain/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ These examples show how to wrap Sentience TS SDK primitives as LangChain JS tool
55
Install (example):
66

77
```bash
8-
npm install sentienceapi @langchain/core zod
8+
npm install @predicatelabs/sdk @langchain/core zod
99
```
1010

1111
Run:

examples/lang-chain/sentience-tools-demo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Example: Wrap Sentience TS SDK primitives as LangChain JS tools.
33
*
44
* Install (example):
5-
* npm install sentienceapi @langchain/core zod
5+
* npm install @predicatelabs/sdk @langchain/core zod
66
*
77
* Run:
88
* npx ts-node examples/lang-chain/sentience-tools-demo.ts

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "sentienceapi",
2+
"name": "@predicatelabs/sdk",
33
"version": "0.99.7",
44
"description": "TypeScript SDK for Sentience AI Agent Browser Automation",
55
"main": "dist/index.js",
@@ -27,7 +27,7 @@
2727
"cli": "ts-node src/cli.ts"
2828
},
2929
"bin": {
30-
"sentience": "./dist/cli.js"
30+
"predicate": "./dist/cli.js"
3131
},
3232
"dependencies": {
3333
"canvas": "^3.2.1",

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ async function main() {
400400
' sentience record --proxy http://user:pass@proxy.com:8000 --url https://example.com'
401401
);
402402
console.log(' sentience gen trace.json --lang py --output script.py');
403-
console.log(' sentience driver --url https://example.com');
403+
console.log(' predicate driver --url https://example.com');
404404
process.exit(1);
405405
}
406406
}

src/visual-agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ Return ONLY the integer ID number from the label, nothing else.`;
675675
playgroundPath = path.join(cwd, 'playground', 'images');
676676
} else {
677677
// Check if we're in a playground context via module path
678-
const modulePaths = require.resolve.paths('sentienceapi') || [];
678+
const modulePaths = require.resolve.paths('@predicatelabs/sdk') || [];
679679
for (const modulePath of modulePaths) {
680680
const potentialPlayground = path.join(modulePath, '..', 'playground', 'images');
681681
if (fs.existsSync(path.dirname(potentialPlayground))) {

0 commit comments

Comments
 (0)