Skip to content

Commit

Permalink
- Added support for cloud sync of application data such as settings, …
Browse files Browse the repository at this point in the history
…personas, and conversations. This is available for Mac users using iCloud.
  • Loading branch information
PeterBlenessy committed Dec 25, 2024
1 parent 972374f commit 4c91628
Show file tree
Hide file tree
Showing 22 changed files with 9,036 additions and 1,760 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- When removing a persona; should check if it is used in messages and alert user.
- When settings are restored from last message, personas with same name or id are duplicated if prompt or avatar has changed in persona settings compared to persona in message.


## v2.1.0 - 2024-12-25
- Added support for cloud sync of application data such as settings, personas, and conversations. This is available for Mac users using iCloud.

## v2.0.3 - 2024-12-23
- Updated application icon to be in line with Apple guidelines.

Expand Down
40 changes: 40 additions & 0 deletions build/entitlements.mac.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.files.downloads.read-write</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
<key>com.apple.security.files.bookmarks.app-scope</key>
<true/>
<key>com.apple.security.files.user-selected.executable</key>
<true/>
<key>com.apple.security.inherit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
<string>iCloud.com.yourdomain.teamai</string>
</array>
<key>com.apple.developer.icloud-services</key>
<array>
<string>CloudDocuments</string>
</array>
<key>com.apple.developer.ubiquity-container-identifiers</key>
<array>
<string>iCloud.com.yourdomain.teamai</string>
</array>
</dict>
</plist>
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "team-ai",
"private": true,
"version": "2.0.3",
"version": "2.1.0",
"type": "module",
"license": "MIT",
"scripts": {
Expand All @@ -22,10 +22,13 @@
"@quasar/extras": "^1.16.9",
"@tauri-apps/api": "^2.1.1",
"@tauri-apps/cli": "^2.1.0",
"@tauri-apps/plugin-fs": "~2",
"@tauri-apps/plugin-http": "~2",
"@tauri-apps/plugin-log": "^2.2.0",
"@tauri-apps/plugin-os": "~2",
"@tauri-apps/plugin-process": "~2",
"@tauri-apps/plugin-updater": "^2.3.0",
"@tauri-apps/plugin-window-state": "~2",
"clipboard": "^2.0.11",
"highlight.js": "^11.9.0",
"localforage": "^1.10.0",
Expand Down
66 changes: 66 additions & 0 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ tauri-plugin-shell = "2.0.0"
tauri-plugin-updater = "2.0.0"
tauri-plugin-process = "2"
tauri-plugin-http = "2"
tauri-plugin-fs = "2"
tauri-plugin-os = "2"

[features]
# this feature is used for production builds or when `devPath` points to the filesystem
Expand All @@ -31,3 +33,6 @@ custom-protocol = ["tauri/custom-protocol"]
[lib]
name = "team_ai_app_lib"
crate-type = ["rlib", "cdylib", "staticlib"]

[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
tauri-plugin-window-state = "2"
85 changes: 52 additions & 33 deletions src-tauri/capabilities/default.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,56 @@
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "Capability for the main window",
"local": true,
"platforms": [
"macOS",
"windows",
"linux"
],
"windows": [
"main"
],
"permissions": [
"core:default",
"http:default",
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "main-capability",
"description": "Capability for the main window",
"local": true,
"platforms": [
"macOS",
"windows",
"linux"
],
"windows": [
"main"
],
"permissions": [
"fs:default",
"fs:allow-write-file",
"fs:write-files",
"fs:allow-home-write",
"fs:allow-home-write-recursive",
{
"identifier": "fs:scope",
"allow": [
{
"identifier": "http:default",
"allow": [
{
"url": "http://*:*/*"
},
{
"url": "https://*:*/*"
}
]
"path": "$HOME/Library/Mobile Documents/com~apple~CloudDocs/TeamAI",
"recursive": true
},
"log:default",
"process:allow-exit",
"process:allow-restart",
"updater:allow-check",
"updater:allow-download",
"updater:allow-install",
"updater:allow-download-and-install",
"process:default"
]
{
"path": "$HOME/Library/Mobile Documents/com~apple~CloudDocs/TeamAI/*",
"recursive": true
}
]
},
"core:default",
"http:default",
{
"identifier": "http:default",
"allow": [
{
"url": "http://*:*/*"
},
{
"url": "https://*:*/*"
}
]
},
"log:default",
"process:allow-exit",
"process:allow-restart",
"updater:allow-check",
"updater:allow-download",
"updater:allow-install",
"updater:allow-download-and-install",
"process:default",
"window-state:default"
]
}
2 changes: 1 addition & 1 deletion src-tauri/gen/schemas/acl-manifests.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src-tauri/gen/schemas/capabilities.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"default":{"identifier":"default","description":"Capability for the main window","local":true,"windows":["main"],"permissions":["core:default","http:default",{"identifier":"http:default","allow":[{"url":"http://*:*/*"},{"url":"https://*:*/*"}]},"log:default","process:allow-exit","process:allow-restart","updater:allow-check","updater:allow-download","updater:allow-install","updater:allow-download-and-install","process:default"],"platforms":["macOS","windows","linux"]}}
{"main-capability":{"identifier":"main-capability","description":"Capability for the main window","local":true,"windows":["main"],"permissions":["fs:default","fs:allow-write-file","fs:write-files","fs:allow-home-write","fs:allow-home-write-recursive",{"identifier":"fs:scope","allow":[{"path":"$HOME/Library/Mobile Documents/com~apple~CloudDocs/TeamAI","recursive":true},{"path":"$HOME/Library/Mobile Documents/com~apple~CloudDocs/TeamAI/*","recursive":true}]},"core:default","http:default",{"identifier":"http:default","allow":[{"url":"http://*:*/*"},{"url":"https://*:*/*"}]},"log:default","process:allow-exit","process:allow-restart","updater:allow-check","updater:allow-download","updater:allow-install","updater:allow-download-and-install","process:default","window-state:default"],"platforms":["macOS","windows","linux"]}}
Loading

0 comments on commit 4c91628

Please sign in to comment.