Skip to content

Commit afe5426

Browse files
author
SentienceDEV
committed
fix tests
1 parent 8ac759b commit afe5426

File tree

5 files changed

+459
-301
lines changed

5 files changed

+459
-301
lines changed

sentience/agent_runtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ def assert_done(
586586
True if task is complete (assertion passed), False otherwise
587587
"""
588588
# Convenience wrapper for assert_ with required=True
589-
ok = self.assertTrue(predicate, label=label, required=True)
589+
ok = self.assert_(predicate, label=label, required=True)
590590
if ok:
591591
self._task_done = True
592592
self._task_done_label = label

sentience/extension/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"permissions": ["activeTab", "scripting"],
77
"host_permissions": ["<all_urls>"],
88
"background": {
9-
"service_worker": "background.js",
9+
"service_worker": "dist/background.js",
1010
"type": "module"
1111
},
1212
"web_accessible_resources": [
@@ -18,13 +18,13 @@
1818
"content_scripts": [
1919
{
2020
"matches": ["<all_urls>"],
21-
"js": ["content.js"],
21+
"js": ["dist/content.js"],
2222
"run_at": "document_start",
2323
"all_frames": true
2424
},
2525
{
2626
"matches": ["<all_urls>"],
27-
"js": ["injected_api.js"],
27+
"js": ["dist/injected_api.js"],
2828
"run_at": "document_idle",
2929
"world": "MAIN",
3030
"all_frames": true

sentience/extension/pkg/sentience_core.d.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,34 @@ export function prune_for_api(val: any): any;
1818
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
1919

2020
export interface InitOutput {
21-
readonly memory: WebAssembly.Memory;
22-
readonly analyze_page: (a: number) => number;
23-
readonly analyze_page_with_options: (a: number, b: number) => number;
24-
readonly decide_and_act: (a: number) => void;
25-
readonly prune_for_api: (a: number) => number;
26-
readonly __wbindgen_export: (a: number, b: number) => number;
27-
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
28-
readonly __wbindgen_export3: (a: number) => void;
21+
readonly memory: WebAssembly.Memory;
22+
readonly analyze_page: (a: number) => number;
23+
readonly analyze_page_with_options: (a: number, b: number) => number;
24+
readonly decide_and_act: (a: number) => void;
25+
readonly prune_for_api: (a: number) => number;
26+
readonly __wbindgen_export: (a: number, b: number) => number;
27+
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
28+
readonly __wbindgen_export3: (a: number) => void;
2929
}
3030

3131
export type SyncInitInput = BufferSource | WebAssembly.Module;
3232

3333
/**
34-
* Instantiates the given `module`, which can either be bytes or
35-
* a precompiled `WebAssembly.Module`.
36-
*
37-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
38-
*
39-
* @returns {InitOutput}
40-
*/
34+
* Instantiates the given `module`, which can either be bytes or
35+
* a precompiled `WebAssembly.Module`.
36+
*
37+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
38+
*
39+
* @returns {InitOutput}
40+
*/
4141
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
4242

4343
/**
44-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
45-
* for everything else, calls `WebAssembly.instantiate` directly.
46-
*
47-
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
48-
*
49-
* @returns {Promise<InitOutput>}
50-
*/
44+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
45+
* for everything else, calls `WebAssembly.instantiate` directly.
46+
*
47+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
48+
*
49+
* @returns {Promise<InitOutput>}
50+
*/
5151
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;

0 commit comments

Comments
 (0)