Skip to content

Commit bbf5dc0

Browse files
committed
Merge tag '0.21.0' into develop
2 parents 25772e3 + 249c4f0 commit bbf5dc0

8 files changed

Lines changed: 50 additions & 8 deletions

File tree

Core/Sources/ChatContextCollectors/WebChatContextCollector/QueryWebsiteFunction.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ struct QueryWebsiteFunction: ChatGPTFunction {
6363
await reportProgress("Loading \(url)..")
6464

6565
if let database = await TemporaryUSearch.view(identifier: urlString) {
66-
await reportProgress("Generating answers..")
66+
await reportProgress("Getting relevant information..")
6767
let qa = QAInformationRetrievalChain(vectorStore: database, embedding: embedding)
6868
return try await qa.call(.init(arguments.query)).information
6969
}
@@ -82,7 +82,7 @@ struct QueryWebsiteFunction: ChatGPTFunction {
8282
let database = TemporaryUSearch(identifier: urlString)
8383
try await database.set(embeddedDocuments)
8484
// 4. generate answer
85-
await reportProgress("Generating answers..")
85+
await reportProgress("Getting relevant information..")
8686
let qa = QAInformationRetrievalChain(vectorStore: database, embedding: embedding)
8787
let result = try await qa.call(.init(arguments.query))
8888
return result.information

Core/Sources/ChatGPTChatTab/ChatPanel.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,9 @@ struct ChatPanelInputArea: View {
412412
let plugins = chat.pluginIdentifiers.map { "/\($0)" }
413413
let availableFeatures = plugins + [
414414
"/exit",
415-
"@selection",
415+
"@code",
416416
"@file",
417+
"@web",
417418
]
418419

419420
let result: [String] = availableFeatures

Core/Sources/HostApp/CustomCommandSettings/CustomCommand.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import ComposableArchitecture
22
import Foundation
3+
import PlusFeatureFlag
34
import Preferences
45
import SwiftUI
56
import Toast
@@ -24,7 +25,9 @@ struct CustomCommandFeature: ReducerProtocol {
2425
Reduce { state, action in
2526
switch action {
2627
case .createNewCommand:
27-
if settings.customCommands.count >= 10 {
28+
if !isFeatureAvailable(\.unlimitedCustomCommands),
29+
settings.customCommands.count >= 10
30+
{
2831
toast("Upgrade to Plus to add more commands", .info)
2932
return .none
3033
}

LICENSE

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

33
This license is a combination of the GPLv3 and some additional agreements.
44

5+
Features that requires a Plus license key are not included in this project, and are not open source.
6+
57
As a contributor, you agree that your contributed code:
68
a. may be subject to a more permissive open-source license in the future.
79
b. can be used for commercial purposes.

Pro

Submodule Pro updated from 5cfb287 to 6e61d88

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Copilot for Xcode is an Xcode Source Editor Extension that provides GitHub Copil
66

77
<a href="https://www.buymeacoffee.com/intitni" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>
88

9+
[Get a Plus License Key to unlock more features and support this project](https://intii.lemonsqueezy.com/checkout/buy/298a8d4c-11fb-4ecd-b328-049589645449)
10+
911
## Features
1012

1113
- Code Suggestions (powered by GitHub Copilot and Codeium).
@@ -28,13 +30,16 @@ Copilot for Xcode is an Xcode Source Editor Extension that provides GitHub Copil
2830
- [Update](#update)
2931
- [Feature](#feature)
3032
- [Key Bindings](#key-bindings)
33+
- [Plus Features](#plus-features)
3134
- [Limitations](#limitations)
3235
- [License](#license)
3336

34-
For frequently asked questions, check [FAQ](https://github.com/intitni/CopilotForXcode/issues/65).
37+
For frequently asked questions, check [FAQ](https://github.com/intitni/CopilotForXcode/wiki/Frequently-Asked-Questions).
3538

3639
For development instruction, check [Development.md](DEVELOPMENT.md).
3740

41+
For more information, check the [wiki](https://github.com/intitni/CopilotForXcode/wiki)
42+
3843
## Prerequisites
3944

4045
- Public network connection.
@@ -296,6 +301,25 @@ Essentially using `⌥⇧` as the "access" key combination for all bindings.
296301

297302
Another convenient method to access commands is by using the `⇧⌘/` shortcut to search for a command in the menu bar.
298303

304+
## Plus Features
305+
306+
The pre-built binary contains a set of exclusive features that can only be accessed with a Plus license key. To obtain a license key, please visit [this link](https://intii.lemonsqueezy.com/checkout/buy/298a8d4c-11fb-4ecd-b328-049589645449).
307+
308+
These features are included in another repo, and are not open sourced.
309+
310+
The currently available Plus features include:
311+
312+
- Browser tap in chat panel.
313+
- Unlimited custom commands.
314+
315+
Since the app needs to manage license keys, it will send network request to `https://copilotforxcode-license.intii.com`,
316+
- when you activate the license key
317+
- when you deactivate the license key
318+
- when you opened the host app or the service app if a license key is available
319+
- every 24 hours if a license key is available
320+
321+
The request contains only the license key, the email address (only on activation), and an instance id. You are free to MITM the request to see what data is sent.
322+
299323
## Limitations
300324

301325
- The extension uses some dirty tricks to get the file and project/workspace paths. It may fail, it may be incorrect, especially when you have multiple Xcode windows running, and maybe even worse when they are in different displays. I am not sure about that though.

Version.xcconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
APP_VERSION = 0.20.1
2-
APP_BUILD = 210
1+
APP_VERSION = 0.21.0
2+
APP_BUILD = 220

appcast.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
<channel>
44
<title>Copilot for Xcode</title>
55

6+
<item>
7+
<title>0.21.0</title>
8+
<pubDate>Wed, 09 Aug 2023 15:45:24 +0800</pubDate>
9+
<sparkle:version>220</sparkle:version>
10+
<sparkle:shortVersionString>0.21.0</sparkle:shortVersionString>
11+
<sparkle:minimumSystemVersion>12.0</sparkle:minimumSystemVersion>
12+
<sparkle:releaseNotesLink>
13+
https://github.com/intitni/CopilotForXcode/releases/tag/0.21.0
14+
</sparkle:releaseNotesLink>
15+
<enclosure url="https://github.com/intitni/CopilotForXcode/releases/download/0.21.0/Copilot.for.Xcode.app.zip" length="31114547" type="application/octet-stream" sparkle:edSignature="UFSThidzLxU/lEPfoymq2y4phSrbZRRA8JiB0NCX5Rq2n5sLkbIuRi8RK80gTk4dvSAbrvILz8GIbZYZ+GINBQ=="/>
16+
</item>
17+
618
<item>
719
<title>0.20.1</title>
820
<pubDate>Fri, 21 Jul 2023 16:00:42 +0800</pubDate>

0 commit comments

Comments
 (0)