Skip to content

Commit dd66bd4

Browse files
authored
Merge pull request #191 from Predicate-Labs/rename
new package name
2 parents 34f1eb0 + 0d062a2 commit dd66bd4

File tree

9 files changed

+25
-25
lines changed

9 files changed

+25
-25
lines changed

.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 @predicatelabs/sdk
153+
Release v${{ steps.version.outputs.version }} of @predicate/sdk
154154
155155
## Installation
156156
```bash
157-
npm install @predicatelabs/sdk@${{ steps.version.outputs.version }}
157+
npm install @predicate/sdk@${{ steps.version.outputs.version }}
158158
```
159159
draft: false
160160
prerelease: false

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
All notable changes to `@predicatelabs/sdk` will be documented in this file.
3+
All notable changes to `@predicate/sdk` will be documented in this file.
44

55
## Unreleased
66

@@ -24,7 +24,7 @@ import {
2424
PredicateBrowserAgent,
2525
type RuntimeStep,
2626
LocalLLMProvider, // or OpenAIProvider / AnthropicProvider / DeepInfraProvider
27-
} from '@predicatelabs/sdk';
27+
} from '@predicate/sdk';
2828

2929
const runtime = new AgentRuntime(browserLike, page, tracer);
3030
const llm = new LocalLLMProvider({ model: 'qwen2.5:7b', baseUrl: 'http://localhost:11434/v1' });
@@ -65,7 +65,7 @@ const agent = new PredicateBrowserAgent({
6565
If you set `captcha.policy="callback"`, you must provide a handler. The SDK does **not** include a public CAPTCHA solver.
6666

6767
```ts
68-
import { HumanHandoffSolver } from '@predicatelabs/sdk';
68+
import { HumanHandoffSolver } from '@predicate/sdk';
6969

7070
const agent = new PredicateBrowserAgent({
7171
runtime,

README.md

Lines changed: 10 additions & 10 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 @predicatelabs/sdk
31+
npm install @predicate/sdk
3232
npx playwright install chromium
3333
```
3434

@@ -51,9 +51,9 @@ Use the new `Predicate*` class names for all new code:
5151
## Quickstart: a verification-first loop
5252

5353
```ts
54-
import { PredicateBrowser, AgentRuntime } from '@predicatelabs/sdk';
55-
import { JsonlTraceSink, Tracer } from '@predicatelabs/sdk';
56-
import { exists, urlContains } from '@predicatelabs/sdk';
54+
import { PredicateBrowser, AgentRuntime } from '@predicate/sdk';
55+
import { JsonlTraceSink, Tracer } from '@predicate/sdk';
56+
import { exists, urlContains } from '@predicate/sdk';
5757
import type { Page } from 'playwright';
5858

5959
async function main(): Promise<void> {
@@ -96,7 +96,7 @@ Key idea: your agent still executes actions — Predicate **snapshots and verifi
9696

9797
```ts
9898
import type { Page } from 'playwright';
99-
import { PredicateDebugger, Tracer, JsonlTraceSink, exists, urlContains } from '@predicatelabs/sdk';
99+
import { PredicateDebugger, Tracer, JsonlTraceSink, exists, urlContains } from '@predicate/sdk';
100100

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

125125
```ts
126-
import { PredicateBrowser, snapshot, find, typeText, click, waitFor } from '@predicatelabs/sdk';
126+
import { PredicateBrowser, snapshot, find, typeText, click, waitFor } from '@predicate/sdk';
127127

128128
async function loginExample(): Promise<void> {
129129
const browser = new PredicateBrowser();
@@ -201,7 +201,7 @@ if (!ok) {
201201
## ToolRegistry (LLM-callable tools)
202202

203203
```ts
204-
import { ToolRegistry, registerDefaultTools } from '@predicatelabs/sdk';
204+
import { ToolRegistry, registerDefaultTools } from '@predicate/sdk';
205205

206206
const registry = new ToolRegistry();
207207
registerDefaultTools(registry);
@@ -213,8 +213,8 @@ const toolsForLLM = registry.llmTools();
213213
Chrome permission prompts are outside the DOM and can be invisible to snapshots. Prefer setting a policy **before navigation**.
214214

215215
```ts
216-
import { PredicateBrowser } from '@predicatelabs/sdk';
217-
import type { PermissionPolicy } from '@predicatelabs/sdk';
216+
import { PredicateBrowser } from '@predicate/sdk';
217+
import type { PermissionPolicy } from '@predicate/sdk';
218218

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

250250
```ts
251-
import { downloadCompleted } from '@predicatelabs/sdk';
251+
import { downloadCompleted } from '@predicate/sdk';
252252

253253
runtime.assert(downloadCompleted('report.csv'), 'download_ok', true);
254254
```

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 '@predicatelabs/sdk';
9-
import { createTracer } from '@predicatelabs/sdk';
8+
} from '@predicate/sdk';
9+
import { createTracer } from '@predicate/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 @predicatelabs/sdk @langchain/core zod
8+
npm install @predicate/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 @predicatelabs/sdk @langchain/core zod
5+
* npm install @predicate/sdk @langchain/core zod
66
*
77
* Run:
88
* npx ts-node examples/lang-chain/sentience-tools-demo.ts

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@predicatelabs/sdk",
2+
"name": "@predicate/sdk",
33
"version": "1.0.5",
44
"description": "TypeScript SDK for Sentience AI Agent Browser Automation",
55
"main": "dist/index.js",

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('@predicatelabs/sdk') || [];
678+
const modulePaths = require.resolve.paths('@predicate/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)