-
Notifications
You must be signed in to change notification settings - Fork 3
docs: updated AI Element local git storage #315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -130,3 +130,46 @@ AskUI-RemoveAIElement -NameFilter "logo" -AutoApproval | |||||
| # Opens all AI Elements with the name 'logo' | ||||||
| AskUI-OpenAIElement -NameFilter "logo" | ||||||
| ``` | ||||||
|
|
||||||
| ## Using AI Elements with Git | ||||||
|
|
||||||
| AI Elements can be version controlled and shared across team members using Git. Here's how to set it up: | ||||||
|
|
||||||
| ### Current Behavior | ||||||
| By default, AI Elements are stored in the Global AI Element Location under `~/.askui/SnippingTool/AIElement/<workspace-id>/`. This location is not version controlled by Git. | ||||||
|
|
||||||
| ### Prerequisites | ||||||
| - Update askui to version 0.22.0 or higher: | ||||||
| ```bash | ||||||
| npm install askui@latest | ||||||
| ``` | ||||||
|
|
||||||
| ### Configuration Steps | ||||||
| 1. Create a folder in your Git project called `<project>/ai-elements` | ||||||
| 2. Update your `askui_example/helpers/askui-helper.ts`: | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| ```typescript | ||||||
| beforeAll(async () => { | ||||||
| aui = await UiControlClient.build({ | ||||||
| // ... existing configuration ... | ||||||
| aiElementArgs: { | ||||||
| additionalLocations: [ | ||||||
| "./ai-elements/" // Add your local AI Element location here | ||||||
| ] | ||||||
| } | ||||||
| }); | ||||||
| }); | ||||||
| ``` | ||||||
|
Comment on lines
+151
to
+162
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would add more of the |
||||||
|
|
||||||
| ### Adding AI Elements to Git | ||||||
| 1. Open `askui-shell` | ||||||
| 2. Get the global AI Element location: | ||||||
| - Run `AskUI-ShowAIElement` | ||||||
| - Copy the path from the Image File | ||||||
| 3. Open the path in File Explorer | ||||||
| 4. Copy all files from the Global AI Element Location to your Project AI Element Location | ||||||
| 5. Add and commit the files to Git | ||||||
|
Comment on lines
+165
to
+171
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this would not be 100% clear to me as a user. I think adding example output of the command
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes actually very true! I need to update this |
||||||
|
|
||||||
| ### Current Limitations | ||||||
| - `AskUI-NewAIElement` command only stores elements in the Global AI Element Location. Manual copying is required | ||||||
| - `AskUI-*AIElement` commands are only compatible with the Global AI Element Location | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think
would be clearer