Skip to content

Commit 00c79cf

Browse files
authoredNov 19, 2023
Merge branch 'main' into share-magic-wormhole
2 parents 22b5f0c + 207b211 commit 00c79cf

22 files changed

+694
-39
lines changed
 

‎CHANGELOG.md

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,170 @@
22

33

44

5+
## v0.15.0 (2023-11-11)
6+
7+
### Feature
8+
9+
* feat(openadapt.privacy.providers): add private_ai as a scrubbing provider (#486)
10+
11+
* ran black
12+
13+
* add blank file for priavte ai
14+
15+
* add class `PrivateAIScrubbingProvider`
16+
17+
* add pvt_ai api key in config
18+
19+
* ran `pre-commit run --all`
20+
21+
* add scrub_text function
22+
23+
* progress for image redaction
24+
25+
* format
26+
27+
* complete scrub_image
28+
29+
* start scrub_pdf
30+
31+
* add pdf redaction code
32+
33+
* add more wrapper for invalid reponse from priavate ai
34+
35+
* try to fix pytest
36+
37+
* try to fix pytest
38+
39+
* remove lst
40+
41+
* remove uncessary methods
42+
43+
* text scrubbing test all passses
44+
45+
* pdf_redaction test works
46+
47+
* add test_image_redaction test in pyetst
48+
49+
* add easy ocr to poetry
50+
51+
* pytest is fixed
52+
53+
* remove versino files
54+
55+
* remove un-neccasry files
56+
57+
* add code to remove uncessary files after pytest
58+
59+
* addressed https://github.com/OpenAdaptAI/OpenAdapt/pull/486#discussion_r1312117748
60+
61+
* address comment https://github.com/OpenAdaptAI/OpenAdapt/pull/486#discussion_r1312118632
62+
63+
* reduce line chars
64+
65+
* addressed comment: https://github.com/OpenAdaptAI/OpenAdapt/pull/486#discussion_r1312119001
66+
67+
* fix flake8
68+
69+
* use f strings
70+
71+
* address comment: https://github.com/OpenAdaptAI/OpenAdapt/pull/486#discussion_r1312116014
72+
73+
* address comment: https://github.com/OpenAdaptAI/OpenAdapt/pull/486#discussion_r1312115220
74+
75+
* change to value error
76+
77+
* remove .keys()
78+
79+
* add constants
80+
81+
* fix flake8 erros
82+
83+
* use BytesIO
84+
85+
* address comment https://github.com/OpenAdaptAI/OpenAdapt/pull/486#discussion_r1312114102
86+
87+
* rna black
88+
89+
* final commit
90+
91+
* remove unused code
92+
93+
* refactor typo
94+
95+
* rename `redact_file_path` to `redacted_file_path`
96+
97+
* use BytesIO wherever possible
98+
99+
* fix flake8
100+
101+
* add documentation links
102+
103+
* Apply suggestions from code review
104+
105+
* Update tests/openadapt/privacy/providers/test_private_ai_scrub.py
106+
107+
* fix poetry.lock
108+
109+
* poetry.lock
110+
111+
---------
112+
113+
Co-authored-by: Krish Patel <kmppatel133@gmail.com>
114+
Co-authored-by: Richard Abrich <richard.abrich@mldsai.com>
115+
Co-authored-by: Richard Abrich <richard.abrich@gmail.com> ([`396bbb5`](https://github.com/OpenAdaptAI/OpenAdapt/commit/396bbb52fb93ffb720a34396399ac12a85fe1d21))
116+
117+
### Fix
118+
119+
* fix(install): add vs redistributable installation in powershell script (#490)
120+
121+
* VS C++ redist installation
122+
123+
* add VS C++ redist installtion
124+
125+
---------
126+
127+
Co-authored-by: Krish Patel <kmppatel133@gmail.com>
128+
Co-authored-by: Richard Abrich <richard.abrich@mldsai.com> ([`086a5ca`](https://github.com/OpenAdaptAI/OpenAdapt/commit/086a5ca9a1f98ec58295241faf11b5bb73110c30))
129+
130+
131+
## v0.14.0 (2023-11-10)
132+
133+
### Feature
134+
135+
* feat(openadapt.record): implemented notifications on record (#510)
136+
137+
* implemented notifications on record
138+
139+
fixed deprecated/visualize
140+
141+
* fix import ([`22db2dc`](https://github.com/OpenAdaptAI/OpenAdapt/commit/22db2dc7be561f1fd6e35489080779c1d95dc96d))
142+
143+
### Unknown
144+
145+
* Update README.md (#514) ([`f5a22fb`](https://github.com/OpenAdaptAI/OpenAdapt/commit/f5a22fbf0a2d2931216ac28b63b60dc7a8a4c3cb))
146+
147+
* Update LICENSE (#505) ([`97478b7`](https://github.com/OpenAdaptAI/OpenAdapt/commit/97478b7369602d90655b3a211c97fe35d39c5403))
148+
149+
150+
## v0.13.2 (2023-10-16)
151+
152+
### Fix
153+
154+
* fix: resolve repository not found error in mac install.sh script (#502)
155+
156+
* Update install_openadapt.sh
157+
158+
* Update install_openadapt.sh ([`eb3c8c3`](https://github.com/OpenAdaptAI/OpenAdapt/commit/eb3c8c397d784285c7b0ed7efbf34ae38f522fed))
159+
160+
### Unknown
161+
162+
* Update README.md (#493)
163+
164+
* Update README.md
165+
166+
replace slack with discord ([`5a6530a`](https://github.com/OpenAdaptAI/OpenAdapt/commit/5a6530a3592ef271652409768ece66bf6183998e))
167+
168+
5169
## v0.13.1 (2023-08-30)
6170

7171
### Fix

‎LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 MLDSAI Inc., Richard Abrich, and contributors.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[Join us on Slack](https://join.slack.com/t/mldsai/shared_invite/zt-1uf94nn7r-qcQnS~hinLPKftUapNzbuw)
1+
[Join us on Discord](https://discord.gg/yF527cQbDG)
22

33
# OpenAdapt: AI-First Process Automation with Transformers
44

@@ -30,7 +30,7 @@ The direction is adjacent to [Adept.ai](https://adept.ai/), with some key differ
3030
1. OpenAdapt is model agnostic
3131
2. OpenAdapt generates prompts automatically (auto-prompted, not user-prompted)
3232
3. OpenAdapt works with all types of desktop GUIs, including virtualized (e.g. Citrix) and web
33-
4. OpenAdapt is open source! (license TBD, please see https://github.com/OpenAdaptAI/OpenAdapt/issues/246)
33+
4. OpenAdapt is open source (MIT license)
3434

3535

3636
## Install
@@ -141,7 +141,11 @@ You can play back the recording using the following command:
141141
python -m openadapt.replay NaiveReplayStrategy
142142
```
143143

144-
More ReplayStrategies coming soon! (see [Contributing](#Contributing)).
144+
Other replay strategies include:
145+
146+
- [`StatefulReplayStrategy`](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/openadapt/strategies/stateful.py): Proof-of-concept which uses the OpenAI GPT-4 API with prompts constructed via OS-level window data.
147+
148+
See https://github.com/OpenAdaptAI/OpenAdapt/tree/main/openadapt/strategies for a complete list. More ReplayStrategies coming soon! (see [Contributing](#Contributing)).
145149

146150

147151
## Contributing
@@ -160,9 +164,10 @@ If it's not clear what `ActionEvent` is appropriate for the given `Screenshot`,
160164
we can ask the user to take over temporarily to demonstrate the appropriate
161165
course of action.
162166

163-
### Dataset
167+
### Data Model
168+
169+
The data model consists of the following entities:
164170

165-
The dataset consists of the following entities:
166171
1. `Recording`: Contains information about the screen dimensions, platform, and
167172
other metadata.
168173
2. `ActionEvent`: Represents a user action event such as a mouse click or key
@@ -174,15 +179,20 @@ The dataset consists of the following entities:
174179
4. `WindowEvent`: Represents a window event such as a change in window title,
175180
position, or size.
176181

182+
### API
183+
177184
You can assume that you have access to the following functions:
185+
178186
- `create_recording("doing taxes")`: Creates a recording.
179187
- `get_latest_recording()`: Gets the latest recording.
180188
- `get_events(recording)`: Returns a list of `ActionEvent` objects for the given
181189
recording.
182190

191+
See [GitBook Documentation](https://openadapt.gitbook.io/openadapt.ai/) for more.
192+
183193
### Instructions
184194

185-
[Join us on Slack](https://join.slack.com/t/mldsai/shared_invite/zt-1uf94nn7r-qcQnS~hinLPKftUapNzbuw). Then:
195+
[Join us on Discord](https://discord.gg/yF527cQbDG). Then:
186196

187197
1. Fork this repository and clone it to your local machine.
188198
2. Get OpenAdapt up and running by following the instructions under [Setup](#Setup).

‎assets/sample_llc_1.pdf

-2.31 MB
Binary file not shown.

‎install/install_openadapt.ps1

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ $gitCmd = "git"
2020
$gitInstaller = "Git-2.40.1-64-bit.exe"
2121
$gitInstallerLoc = "https://github.com/git-for-windows/git/releases/download/v2.40.1.windows.1/Git-2.40.1-64-bit.exe"
2222
$gitUninstaller = "C:\Program Files\Git\unins000.exe"
23+
24+
$VCRedistInstaller = "vc_redist.x64.exe"
25+
$VCRedistInstallerLoc = "https://aka.ms/vs/17/release/vc_redist.x64.exe"
26+
$VCRedistRegPath = "HKLM:\SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\X64"
2327
################################ PARAMETERS ################################
2428

2529

@@ -255,10 +259,42 @@ function GetGitCMD {
255259
# Return the git command
256260
return $gitCmd
257261
}
262+
263+
264+
function Install-VCRedist {
265+
# Check if Visual C++ Redist is installed
266+
try {
267+
$vcredistExists = (Get-ItemPropertyValue -Path $VCRedistRegPath -Name Installed -ErrorAction Stop)
268+
}
269+
catch {
270+
$vcredistExists = $false
271+
}
272+
273+
if (!$vcredistExists) {
274+
# Install Visual C++ Redist
275+
Write-Host "Downloading Visual C++ Redist"
276+
$ProgressPreference = 'SilentlyContinue'
277+
Invoke-WebRequest -Uri $VCRedistInstallerLoc -OutFile $VCRedistInstaller
278+
279+
if (-Not (Test-Path -Path $VCRedistInstaller -PathType Leaf)) {
280+
Write-Host "Failed to download Visual C++ installer"
281+
return
282+
}
283+
284+
Write-Host "Installing Visual C++ Redist, click 'Yes' if prompted for permission"
285+
Start-Process -FilePath $VCRedistInstaller -Verb runAs -ArgumentList "/install /quiet /norestart" -Wait
286+
Remove-Item $VCRedistInstaller
287+
288+
if ($LastExitCode) {
289+
Write-Host "Failed to install Visual C++ Redist: $LastExitCode"
290+
return
291+
}
292+
}
293+
}
258294
################################ FUNCTIONS ################################
259295

260296

261-
################################ SCRIPT ################################
297+
################################ SCRIPT ###################################
262298

263299
Write-Host "Install Script Started..." -ForegroundColor Yellow
264300

@@ -277,6 +313,8 @@ RunAndCheck "$python --version" "check Python"
277313
$git = GetGitCMD
278314
RunAndCheck "$git --version" "check Git"
279315

316+
Install-VCRedist
317+
280318
# OpenAdapt Setup
281319
RunAndCheck "git clone -q https://github.com/MLDSAI/OpenAdapt.git" "clone git repo"
282320
Set-Location .\OpenAdapt
@@ -287,4 +325,4 @@ RunAndCheck "poetry run pytest" "Run ``Pytest``" -SkipCleanup:$true
287325
Write-Host "OpenAdapt installed Successfully!" -ForegroundColor Green
288326
Start-Process powershell -Verb RunAs -ArgumentList "-NoExit", "-Command", "Set-Location -Path '$pwd'; poetry shell"
289327

290-
################################ SCRIPT ################################
328+
################################ SCRIPT ###################################

‎install/install_openadapt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pythonInstallerLoc="https://www.python.org/ftp/python/3.10.11/python-3.10.11-mac
1111

1212
# Set default values when no parameters are provided
1313
BRANCH=${BRANCH:-main}
14-
REPO=${REPO:-https://github.com/MLDSAI/OpenAdapt.git}
14+
REPO=${REPO:-OpenAdaptAI/OpenAdapt.git}
1515

1616
REPO_URL="https://github.com/$REPO"
1717

‎openadapt/app/cards.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from openadapt.app.objects.local_file_picker import LocalFilePicker
1313
from openadapt.app.util import get_scrub, set_dark, set_scrub, sync_switch
14-
from openadapt.crud import new_session
14+
from openadapt.db.crud import new_session
1515

1616
record_proc = None
1717

‎openadapt/app/tray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
from openadapt.app.cards import quick_record, stop_record
1818
from openadapt.app.main import FPATH, start
19-
from openadapt.crud import get_all_recordings
19+
from openadapt.db.crud import get_all_recordings
2020
from openadapt.extensions.thread import Thread as oaThread
2121
from openadapt.models import Recording
2222
from openadapt.replay import replay

‎openadapt/deprecated/visualize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from tqdm import tqdm
1414

1515
from openadapt import config
16-
from openadapt.crud import get_latest_recording
16+
from openadapt.db.crud import get_latest_recording
1717
from openadapt.events import get_events
1818
from openadapt.models import Recording
1919
from openadapt.privacy.providers.presidio import PresidioScrubbingProvider

‎openadapt/privacy/providers/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ class ScrubProvider: # pylint: disable=too-few-public-methods
99

1010
PRESIDIO = "PRESIDIO"
1111
COMPREHEND = "COMPREHEND"
12+
PRIVATE_AI = "PRIVATE_AI"

0 commit comments

Comments
 (0)
Please sign in to comment.