Skip to content

Commit 753a1da

Browse files
author
SentienceDEV
committed
rebrand 2 with Predicate*
1 parent b0a1fb0 commit 753a1da

8 files changed

Lines changed: 68 additions & 4 deletions

File tree

src/agent.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,3 +535,9 @@ export class SentienceAgent {
535535
}
536536
}
537537
}
538+
539+
/**
540+
* Predicate rebrand alias for SentienceAgent.
541+
* Kept as a runtime alias to avoid breaking existing integrations.
542+
*/
543+
export const PredicateAgent = SentienceAgent;

src/backends/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ export {
108108
// SentienceContext (Token-Slasher Context Middleware)
109109
export {
110110
SentienceContext,
111+
PredicateContext,
111112
SentienceContextState,
112113
SentienceContextOptions,
113114
TopElementSelector,

src/backends/sentience-context.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,3 +474,9 @@ export class SentienceContext {
474474
return this._selector;
475475
}
476476
}
477+
478+
/**
479+
* Predicate rebrand alias for SentienceContext.
480+
* Kept as a runtime alias to avoid breaking existing integrations.
481+
*/
482+
export const PredicateContext = SentienceContext;

src/browser.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,3 +1021,9 @@ export class SentienceBrowser implements IBrowser {
10211021
return finalPath;
10221022
}
10231023
}
1024+
1025+
/**
1026+
* Predicate rebrand alias for SentienceBrowser.
1027+
* Kept as a runtime alias to avoid breaking existing integrations.
1028+
*/
1029+
export const PredicateBrowser = SentienceBrowser;

src/debugger.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,9 @@ export class SentienceDebugger {
131131
return new DebuggerAssertionHandle(this, predicate, label, required, true, openedStepId);
132132
}
133133
}
134+
135+
/**
136+
* Predicate rebrand alias for SentienceDebugger.
137+
* Kept as a runtime alias to avoid breaking existing integrations.
138+
*/
139+
export const PredicateDebugger = SentienceDebugger;

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Sentience TypeScript SDK - AI Agent Browser Automation
33
*/
44

5-
export { SentienceBrowser, PermissionPolicy } from './browser';
5+
export { SentienceBrowser, PredicateBrowser, PermissionPolicy } from './browser';
66
export { snapshot, SnapshotOptions, SnapshotGatewayError } from './snapshot';
77
export { query, find, parseSelector } from './query';
88
export {
@@ -46,8 +46,8 @@ export {
4646
AnthropicProvider,
4747
GLMProvider,
4848
} from './llm-provider';
49-
export { SentienceAgent, AgentActResult, HistoryEntry, TokenStats } from './agent';
50-
export { SentienceVisualAgent } from './visual-agent';
49+
export { SentienceAgent, PredicateAgent, AgentActResult, HistoryEntry, TokenStats } from './agent';
50+
export { SentienceVisualAgent, PredicateVisualAgent } from './visual-agent';
5151

5252
// Conversational Agent Layer (v0.3.0+)
5353
export {
@@ -87,7 +87,7 @@ export {
8787
isCollapsed,
8888
} from './verification';
8989
export { AgentRuntime, AssertionHandle, AssertionRecord, EventuallyOptions } from './agent-runtime';
90-
export { SentienceDebugger } from './debugger';
90+
export { SentienceDebugger, PredicateDebugger } from './debugger';
9191
export { RuntimeAgent } from './runtime-agent';
9292
export type { RuntimeStep, StepVerification } from './runtime-agent';
9393
export { parseVisionExecutorAction, executeVisionExecutorAction } from './vision-executor';

src/visual-agent.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,3 +906,9 @@ Return ONLY the integer ID number from the label, nothing else.`;
906906
}
907907
}
908908
}
909+
910+
/**
911+
* Predicate rebrand alias for SentienceVisualAgent.
912+
* Kept as a runtime alias to avoid breaking existing integrations.
913+
*/
914+
export const PredicateVisualAgent = SentienceVisualAgent;

tests/predicate-aliases.test.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import {
2+
PredicateAgent,
3+
PredicateBrowser,
4+
PredicateDebugger,
5+
PredicateVisualAgent,
6+
SentienceAgent,
7+
SentienceBrowser,
8+
SentienceDebugger,
9+
SentienceVisualAgent,
10+
backends,
11+
} from '../src';
12+
13+
describe('Predicate rebrand aliases', () => {
14+
it('aliases browser constructor', () => {
15+
expect(PredicateBrowser).toBe(SentienceBrowser);
16+
});
17+
18+
it('aliases agent constructor', () => {
19+
expect(PredicateAgent).toBe(SentienceAgent);
20+
});
21+
22+
it('aliases visual agent constructor', () => {
23+
expect(PredicateVisualAgent).toBe(SentienceVisualAgent);
24+
});
25+
26+
it('aliases debugger constructor', () => {
27+
expect(PredicateDebugger).toBe(SentienceDebugger);
28+
});
29+
30+
it('exports backend PredicateContext alias', () => {
31+
expect(backends.PredicateContext).toBe(backends.SentienceContext);
32+
});
33+
});

0 commit comments

Comments
 (0)