-
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from reworkd/ts
* π Convert mls utils to use typescript * π Make spans have red background * β Fix typing * π» Improve readme for local dev * π» Improve readme for local dev
- Loading branch information
Showing
19 changed files
with
434 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,4 +147,8 @@ cython_debug/ | |
*.index | ||
*.db | ||
*.bin | ||
/screenshots/ | ||
/screenshots/ | ||
|
||
*.d.ts | ||
*.js | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "tarsier", | ||
"description": "Vision utilities for web interaction agents", | ||
"private": true, | ||
"version": "0.4.0", | ||
"author": "Reworkd AI, INC.", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "tsc -p ./tsconfig.json", | ||
"format": "prettier --write .", | ||
"lint": "prettier --check ." | ||
}, | ||
"keywords": [], | ||
"devDependencies": { | ||
"prettier": "^3.1.0", | ||
"typescript": "^5.2.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
cd "$(dirname "$0")" || exit 1 | ||
|
||
npm install | ||
npm run build | ||
|
||
poetry install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from os import PathLike | ||
from typing import Any | ||
|
||
|
||
def load_js(path: PathLike[Any]) -> str: | ||
try: | ||
with open(path, "r") as f: | ||
return f.read() | ||
except FileNotFoundError as e: | ||
raise ValueError( | ||
"Could not find tag_utils.js. Please ensure that you complied typescript using `npm run build`" | ||
) from e |
Oops, something went wrong.