Skip to content

Commit 3f12c1e

Browse files
authored
Merge pull request #195 from Predicate-Labs/revert_release
update org and npm package
2 parents 88201cf + 06cf338 commit 3f12c1e

File tree

9 files changed

+34
-28
lines changed

9 files changed

+34
-28
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
node-version: '20'
2525
registry-url: 'https://registry.npmjs.org'
26-
scope: '@predicate'
26+
scope: '@predicatesystems'
2727
always-auth: true
2828

2929
- name: Extract version from tag or input
@@ -158,11 +158,11 @@ jobs:
158158
echo "=== Auth ==="
159159
npm whoami --registry https://registry.npmjs.org
160160
echo ""
161-
echo "=== Scope access (@predicate) ==="
161+
echo "=== Scope access (@predicatesystems) ==="
162162
# npm v10 syntax:
163163
# - `npm access list packages <scope>` checks whether the user can see/publish packages in that scope
164164
# - if you are not a member/owner of the npm org, this typically fails (403/404) which is what we want surfaced
165-
npm access list packages @predicate --registry https://registry.npmjs.org --json
165+
npm access list packages @predicatesystems --registry https://registry.npmjs.org --json
166166
echo ""
167167
echo "=== Sanity: packages visible to current user ==="
168168
npm access list packages "$(npm whoami --registry https://registry.npmjs.org)" --registry https://registry.npmjs.org --json
@@ -180,11 +180,11 @@ jobs:
180180
tag_name: v${{ steps.version.outputs.version }}
181181
name: Release v${{ steps.version.outputs.version }}
182182
body: |
183-
Release v${{ steps.version.outputs.version }} of @predicate/sdk
183+
Release v${{ steps.version.outputs.version }} of @predicatesystems/sdk
184184
185185
## Installation
186186
```bash
187-
npm install @predicate/sdk@${{ steps.version.outputs.version }}
187+
npm install @predicatesystems/sdk@${{ steps.version.outputs.version }}
188188
```
189189
draft: false
190190
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 `@predicate/sdk` will be documented in this file.
3+
All notable changes to `@predicatesystems/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 '@predicate/sdk';
27+
} from '@predicatesystems/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 '@predicate/sdk';
68+
import { HumanHandoffSolver } from '@predicatesystems/sdk';
6969

7070
const agent = new PredicateBrowserAgent({
7171
runtime,

README.md

Lines changed: 16 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 @predicate/sdk
31+
npm install @predicatesystems/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 '@predicate/sdk';
55-
import { JsonlTraceSink, Tracer } from '@predicate/sdk';
56-
import { exists, urlContains } from '@predicate/sdk';
54+
import { PredicateBrowser, AgentRuntime } from '@predicatesystems/sdk';
55+
import { JsonlTraceSink, Tracer } from '@predicatesystems/sdk';
56+
import { exists, urlContains } from '@predicatesystems/sdk';
5757
import type { Page } from 'playwright';
5858

5959
async function main(): Promise<void> {
@@ -96,7 +96,13 @@ 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 '@predicate/sdk';
99+
import {
100+
PredicateDebugger,
101+
Tracer,
102+
JsonlTraceSink,
103+
exists,
104+
urlContains,
105+
} from '@predicatesystems/sdk';
100106

101107
async function runExistingAgent(page: Page): Promise<void> {
102108
const tracer = new Tracer('run-123', new JsonlTraceSink('trace.jsonl'));
@@ -123,7 +129,7 @@ async function runExistingAgent(page: Page): Promise<void> {
123129
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.
124130

125131
```ts
126-
import { PredicateBrowser, snapshot, find, typeText, click, waitFor } from '@predicate/sdk';
132+
import { PredicateBrowser, snapshot, find, typeText, click, waitFor } from '@predicatesystems/sdk';
127133

128134
async function loginExample(): Promise<void> {
129135
const browser = new PredicateBrowser();
@@ -201,7 +207,7 @@ if (!ok) {
201207
## ToolRegistry (LLM-callable tools)
202208

203209
```ts
204-
import { ToolRegistry, registerDefaultTools } from '@predicate/sdk';
210+
import { ToolRegistry, registerDefaultTools } from '@predicatesystems/sdk';
205211

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

215221
```ts
216-
import { PredicateBrowser } from '@predicate/sdk';
217-
import type { PermissionPolicy } from '@predicate/sdk';
222+
import { PredicateBrowser } from '@predicatesystems/sdk';
223+
import type { PermissionPolicy } from '@predicatesystems/sdk';
218224

219225
const policy: PermissionPolicy = {
220226
default: 'clear',
@@ -248,7 +254,7 @@ If your backend supports it, you can also use ToolRegistry permission tools (`gr
248254
## Downloads (verification predicate)
249255

250256
```ts
251-
import { downloadCompleted } from '@predicate/sdk';
257+
import { downloadCompleted } from '@predicatesystems/sdk';
252258

253259
runtime.assert(downloadCompleted('report.csv'), 'download_ok', true);
254260
```

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 '@predicate/sdk';
9-
import { createTracer } from '@predicate/sdk';
8+
} from '@predicatesystems/sdk';
9+
import { createTracer } from '@predicatesystems/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 @predicate/sdk @langchain/core zod
8+
npm install @predicatesystems/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 @predicate/sdk @langchain/core zod
5+
* npm install @predicatesystems/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": "@predicate/sdk",
2+
"name": "@predicatesystems/sdk",
33
"version": "1.1.0",
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('@predicate/sdk') || [];
678+
const modulePaths = require.resolve.paths('@predicatesystems/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)