diff-chat 0.1.0__tar.gz → 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {diff_chat-0.1.0 → diff_chat-0.1.1}/.github/workflows/publish.yml +8 -1
- {diff_chat-0.1.0 → diff_chat-0.1.1}/.github/workflows/tests.yml +1 -1
- {diff_chat-0.1.0 → diff_chat-0.1.1}/CHANGELOG.md +9 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/CONTRIBUTING.md +1 -1
- {diff_chat-0.1.0 → diff_chat-0.1.1}/PKG-INFO +46 -11
- {diff_chat-0.1.0 → diff_chat-0.1.1}/README.md +45 -10
- {diff_chat-0.1.0 → diff_chat-0.1.1}/adapters/README.md +1 -1
- {diff_chat-0.1.0 → diff_chat-0.1.1}/adapters/__init__.py +1 -1
- {diff_chat-0.1.0 → diff_chat-0.1.1}/adapters/_base.py +8 -2
- {diff_chat-0.1.0 → diff_chat-0.1.1}/adapters/_cli.py +70 -13
- {diff_chat-0.1.0 → diff_chat-0.1.1}/adapters/claude.py +1 -1
- {diff_chat-0.1.0 → diff_chat-0.1.1}/adapters/gemini.py +21 -7
- {diff_chat-0.1.0 → diff_chat-0.1.1}/app.py +3 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/app_preferences.py +1 -1
- {diff_chat-0.1.0 → diff_chat-0.1.1}/docs/RELEASE_CHECKLIST.md +20 -2
- {diff_chat-0.1.0 → diff_chat-0.1.1}/docs/RELEASE_NOTES_v0.1.0.md +4 -4
- diff_chat-0.1.1/docs/RELEASE_NOTES_v0.1.1.md +13 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/docs/cli-adapters.md +1 -1
- {diff_chat-0.1.0 → diff_chat-0.1.1}/macos/Info.plist +9 -2
- {diff_chat-0.1.0 → diff_chat-0.1.1}/macos/build.sh +40 -1
- {diff_chat-0.1.0 → diff_chat-0.1.1}/macos/main.m +28 -2
- {diff_chat-0.1.0 → diff_chat-0.1.1}/probe.py +3 -1
- diff_chat-0.1.1/prompts/interactive_replies.md +17 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/pyproject.toml +1 -1
- {diff_chat-0.1.0 → diff_chat-0.1.1}/runtime_paths.py +54 -15
- diff_chat-0.1.1/scripts/verify_mac_release.py +43 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/setup_status.py +38 -18
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/app.js +25 -7
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/index.html +3 -0
- diff_chat-0.1.1/static/reply-visuals.css +108 -0
- diff_chat-0.1.1/static/reply-visuals.js +262 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/settings.css +2 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/settings.js +39 -13
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/setup.js +15 -0
- diff_chat-0.1.1/static/visual-data.js +119 -0
- diff_chat-0.1.1/tests/test_cli_paths.py +84 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/tests/test_cli_sessions.py +4 -3
- {diff_chat-0.1.0 → diff_chat-0.1.1}/tests/test_connections.py +42 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/tests/test_multi_participants.py +2 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/tests/test_participant_adapters.py +20 -2
- {diff_chat-0.1.0 → diff_chat-0.1.1}/tests/test_preferences.py +2 -2
- diff_chat-0.1.1/tests/test_reply_visuals.cjs +59 -0
- diff_chat-0.1.1/tests/test_update_release.py +37 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/usage_claude.py +8 -8
- diff_chat-0.1.0/tests/test_cli_paths.py +0 -43
- {diff_chat-0.1.0 → diff_chat-0.1.1}/.github/ISSUE_TEMPLATE/bug.yml +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/.github/ISSUE_TEMPLATE/feature.yml +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/.gitignore +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/LICENSE +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/SECURITY.md +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/Start diff.command +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/adapters/gpt.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/adapters/local.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/adapters/registry.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/api_fallback.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/archive_schema.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/attachments.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/chat_titles.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/connection_handoff.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/context_engine.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/conversation_actions.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/diff_launcher.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/discussion.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/docs/DEMO_SCRIPT.md +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/docs/antigravity-probe.txt +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/docs/banner-dark.svg +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/docs/banner.svg +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/docs/demo.gif +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/docs/demo.mp4 +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/history_search.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/library_manager.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/macos/Icon.svg +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/macos/build-requirements.txt +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/macos/diff.icns +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/macos/notices.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/macos/render-icon.sh +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/memory.example.md +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/model_options.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/plan_usage.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/private_store.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/prompts/about_you_export.md +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/requirements.txt +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/scripts/check_participant_isolation.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/scripts/clean_install_test.ps1 +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/scripts/clean_install_test.sh +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/scripts/demo_seed.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/scripts/sandbox_test.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/server_security.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/settings.json +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/shared_memory.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/about-you-parser.js +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/about-you.js +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/actions.css +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/actions.js +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/app.css +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/attachments.js +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/brand/favicon-32.png +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/brand/icon.svg +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/brand/wordmark-dark.svg +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/brand/wordmark-light.svg +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/characters/CREDITS.md +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/characters/characters.css +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/characters/claude.json +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/characters/claude.png +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/characters/claude.webp +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/characters/gemini.json +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/characters/gemini.png +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/characters/gemini.webp +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/characters/gpt.json +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/characters/gpt.png +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/characters/gpt.webp +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/characters/local.json +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/characters/local.png +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/characters/local.webp +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/characters/player.js +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/chat-filing.js +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/controls.js +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/corners.css +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/craft.css +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/drafts.js +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/library.css +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/library.js +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/memory.js +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/preference-dialog.js +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/preferences.css +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/session.js +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/utility.js +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/vendor/LICENSES.txt +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/vendor/highlight.min.js +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/vendor/markdown-it.min.js +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/vendor/plex-mono.woff2 +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/static/vendor/plex-sans.woff2 +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/storage.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/tests/check_installed.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/tests/test_about_you.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/tests/test_about_you_parser.cjs +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/tests/test_attachments.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/tests/test_chat_titles.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/tests/test_context.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/tests/test_conversation_actions.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/tests/test_desktop.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/tests/test_server_security.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/tests/test_settings_library.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/tests/test_usage_gemini.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/tests/test_workflows.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/usage_budget.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/usage_codex.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/usage_gemini.py +0 -0
- {diff_chat-0.1.0 → diff_chat-0.1.1}/utility_models.py +0 -0
|
@@ -34,9 +34,16 @@ jobs:
|
|
|
34
34
|
PY
|
|
35
35
|
- name: Build and validate distributions
|
|
36
36
|
run: |
|
|
37
|
-
python -m pip install build==1.6.1 twine==7.0.0
|
|
37
|
+
python -m pip install build==1.6.1 twine==7.0.0 cryptography==51.0.0
|
|
38
38
|
python -m build
|
|
39
39
|
python -m twine check --strict dist/*.whl dist/*.tar.gz
|
|
40
|
+
- name: Verify the published Mac updater and installer
|
|
41
|
+
env:
|
|
42
|
+
GH_TOKEN: ${{ github.token }}
|
|
43
|
+
RELEASE_TAG: ${{ github.event.release.tag_name }}
|
|
44
|
+
run: |
|
|
45
|
+
gh release download "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" --dir "$RUNNER_TEMP/mac-release" --pattern appcast.xml --pattern diff-macOS-arm64.dmg
|
|
46
|
+
python scripts/verify_mac_release.py "$RUNNER_TEMP/mac-release"
|
|
40
47
|
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
41
48
|
with:
|
|
42
49
|
name: python-distributions
|
|
@@ -19,7 +19,7 @@ jobs:
|
|
|
19
19
|
python-version: ${{ matrix.python }}
|
|
20
20
|
cache: pip
|
|
21
21
|
- run: python -m pip install .
|
|
22
|
-
- run: node --test tests/test_about_you_parser.cjs
|
|
22
|
+
- run: node --test tests/test_about_you_parser.cjs tests/test_reply_visuals.cjs
|
|
23
23
|
- run: python -m unittest discover -s tests -v
|
|
24
24
|
env:
|
|
25
25
|
TRANSCRIPT_DATA_ROOT: ${{ runner.temp }}/diff-ci-library
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.1.1
|
|
4
|
+
|
|
5
|
+
- The Mac app checks for signed updates and can install them when you quit. Choose **diff → Check for Updates…** to check now. Install this version manually once if you have v0.1.0.
|
|
6
|
+
- Replies can include interactive charts, diagrams and calculators. Adjusting a value happens locally.
|
|
7
|
+
- Onboarding finds Claude in npm and Node installations, including installs with a missing global command. An incomplete install gets repair instructions, and signing in uses the copy diff detected.
|
|
8
|
+
|
|
9
|
+
- Accept Claude Code 2.1.280 or later and Antigravity CLI 1.5.20 or later instead of those exact releases.
|
|
10
|
+
- Fix Gemini sign-in on macOS: diff's private Antigravity profile can now reach your login keychain.
|
|
11
|
+
|
|
3
12
|
## v0.1.0
|
|
4
13
|
|
|
5
14
|
First public release of diff.
|
|
@@ -11,7 +11,7 @@ Set `TRANSCRIPT_DATA_ROOT` to an empty directory for private development data. `
|
|
|
11
11
|
|
|
12
12
|
```sh
|
|
13
13
|
python -m unittest discover -s tests -v
|
|
14
|
-
node --test tests/test_about_you_parser.cjs
|
|
14
|
+
node --test tests/test_about_you_parser.cjs tests/test_reply_visuals.cjs
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
The offline tests exercise chat history, resuming and summarizing sessions, participant selection, local-server security and shared memory. Use `scripts/clean_install_test.sh` or `scripts/clean_install_test.ps1` to check a built package in a fresh environment. The optional live check, `python scripts/sandbox_test.py`, uses synthetic prompts and consumes provider allowance.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: diff-chat
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: A local group chat for model comparisons and shared discussions
|
|
5
5
|
Project-URL: Repository, https://github.com/aadilchallawala-cloud/diff-chat
|
|
6
6
|
Project-URL: Issues, https://github.com/aadilchallawala-cloud/diff-chat/issues
|
|
@@ -16,6 +16,22 @@ Requires-Dist: pypdf==7.2.0
|
|
|
16
16
|
Requires-Dist: uvicorn==0.55.0
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
|
|
19
|
+
## [Download for Mac](https://github.com/aadilchallawala-cloud/diff-chat/releases/latest/download/diff-macOS-arm64.dmg)
|
|
20
|
+
|
|
21
|
+
**diff v0.1.1 · Apple silicon · macOS 15 or later**
|
|
22
|
+
|
|
23
|
+
You can install and open diff without Terminal. Python comes with the app.
|
|
24
|
+
|
|
25
|
+
**Already using v0.1.0?** Quit diff, download this version, drag it into **Applications**, choose **Replace**, then reopen it. Your chats and settings stay where they are. Starting with v0.1.1, diff can download signed updates and install them when you quit. Choose **diff → Check for Updates…** to check now, or change automatic updates in **Settings → About**.
|
|
26
|
+
|
|
27
|
+
### First open on macOS
|
|
28
|
+
|
|
29
|
+
1. Open the downloaded `diff-macOS-arm64.dmg`. In the window that appears, drag **diff** onto the **Applications** folder.
|
|
30
|
+
2. In Finder, open **Applications** and double-click **diff**. Apple hasn’t notarized this build. If macOS says it can’t verify diff, click **Done** to dismiss the alert.
|
|
31
|
+
3. Open **Apple menu → System Settings → Privacy & Security**. Scroll down to **Security**, find the message about **diff**, and click **Open Anyway**. Confirm when prompted. This option appears after you’ve tried opening the app.
|
|
32
|
+
|
|
33
|
+
Once diff opens, right-click its Dock icon and choose **Options → Keep in Dock**. You can launch it there next time. On a work or school Mac, your administrator may restrict **Open Anyway**. [Apple’s first-open guide](https://support.apple.com/en-us/102445)
|
|
34
|
+
|
|
19
35
|
<picture>
|
|
20
36
|
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/aadilchallawala-cloud/diff-chat/v0.1.0/docs/banner-dark.svg">
|
|
21
37
|
<img src="https://raw.githubusercontent.com/aadilchallawala-cloud/diff-chat/v0.1.0/docs/banner.svg" width="100%" alt="diff">
|
|
@@ -24,8 +40,16 @@ Description-Content-Type: text/markdown
|
|
|
24
40
|
Ask once. Hear from Claude, ChatGPT, Gemini and local models in the same chat — on the plans you already pay for.
|
|
25
41
|
|
|
26
42
|
[](https://github.com/aadilchallawala-cloud/diff-chat/actions/workflows/tests.yml)
|
|
27
|
-
[](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.
|
|
28
|
-
[](https://pypi.org/project/diff-chat/)
|
|
43
|
+
[](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.1/LICENSE)
|
|
44
|
+
[](https://pypi.org/project/diff-chat/)
|
|
45
|
+
|
|
46
|
+
## Launch film
|
|
47
|
+
|
|
48
|
+
https://github.com/user-attachments/assets/3dddf8bb-e564-4540-9f71-02f4c8f0ce3d
|
|
49
|
+
|
|
50
|
+
[Download the film](https://github.com/aadilchallawala-cloud/diff-chat/releases/download/v0.1.0/diff-launch-film-1080p60.mp4) · 59 sec · 1080p at 60 fps
|
|
51
|
+
|
|
52
|
+
## Chat demo
|
|
29
53
|
|
|
30
54
|

|
|
31
55
|
|
|
@@ -33,7 +57,7 @@ In the demo, we asked whether a six-person team should try a four-day week. Clau
|
|
|
33
57
|
|
|
34
58
|
## Install
|
|
35
59
|
|
|
36
|
-
|
|
60
|
+
For the **browser version** on macOS, Windows or Linux, you'll need Python 3.11 or newer and [pipx](https://pipx.pypa.io/stable/installation/). Run these commands in a terminal.
|
|
37
61
|
|
|
38
62
|
```sh
|
|
39
63
|
pipx ensurepath
|
|
@@ -41,7 +65,7 @@ pipx install diff-chat
|
|
|
41
65
|
diff-chat
|
|
42
66
|
```
|
|
43
67
|
|
|
44
|
-
The last command opens diff in your browser on macOS, Windows or Linux. If your terminal can't find `diff-chat`, open a new terminal so it picks up the updated PATH. To run a source checkout, use `pipx install .` from the project folder.
|
|
68
|
+
The last command opens diff in your browser on macOS, Windows or Linux. To update an existing pipx install, stop diff, run `pipx upgrade diff-chat`, then start it again. If your terminal can't find `diff-chat`, open a new terminal so it picks up the updated PATH. To run a source checkout, use `pipx install .` from the project folder.
|
|
45
69
|
|
|
46
70
|
## Connect your first model
|
|
47
71
|
|
|
@@ -49,17 +73,28 @@ You can start with one. Setup shows which tools diff found and how to install an
|
|
|
49
73
|
|
|
50
74
|
| Participant | Tool | What you need | How to connect |
|
|
51
75
|
| --- | --- | --- | --- |
|
|
52
|
-
| Claude | Claude Code 2.1.280 | Claude Pro or higher. [Plans](https://code.claude.com/docs/en/quickstart) | Run `claude auth login --claudeai`. |
|
|
76
|
+
| Claude | Claude Code 2.1.280 or later | Claude Pro or higher. [Plans](https://code.claude.com/docs/en/quickstart) | Run `claude auth login --claudeai`. |
|
|
53
77
|
| ChatGPT | Codex CLI 0.166.0 | Any ChatGPT plan, including Free. [Plan details](https://help.openai.com/en/articles/11369540-using-codex-with-your-chatgpt-plan) | Run `codex login`. |
|
|
54
|
-
| Gemini | Antigravity CLI 1.5.20 (`agy`) | An eligible Google account. The free tier works. [Eligibility](https://antigravity.google/docs/faq) | Choose **Connect Gemini**, or run `diff-chat --login-gemini`, then select Google OAuth. |
|
|
78
|
+
| Gemini | Antigravity CLI 1.5.20 or later (`agy`) | An eligible Google account. The free tier works. [Eligibility](https://antigravity.google/docs/faq) | Choose **Connect Gemini**, or run `diff-chat --login-gemini`, then select Google OAuth. |
|
|
55
79
|
| Local | Ollama | Enough space and memory for the model you choose. Ollama is free. [Setup](https://docs.ollama.com/quickstart) | Open Ollama or run `ollama serve`. To download a first model, try `ollama pull gemma3:4b`. |
|
|
56
80
|
|
|
57
81
|
Have Claude Pro? Add a free ChatGPT account for the full experience.
|
|
58
82
|
|
|
83
|
+
If diff still asks you to install Claude after an npm install on a Mac, paste these two lines into Terminal to check the installed package.
|
|
84
|
+
|
|
85
|
+
```sh
|
|
86
|
+
claude_path="$(npm root -g)/@anthropic-ai/claude-code/bin/claude.exe"
|
|
87
|
+
"$claude_path" --version && printf '%s' "$claude_path" | pbcopy
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
If you see `2.1.280 (Claude Code)`, the path is on your clipboard. Paste it into **Settings → Models → Claude → CLI path**, press **Tab** to save, then choose **Check again** in **Connect models**.
|
|
91
|
+
|
|
59
92
|
## In a chat
|
|
60
93
|
|
|
61
94
|
Click the names beside the message box to choose who replies. To ask just Claude, start your message with `@claude`. You can choose a model and role for each participant, and set the reasoning level where the provider supports it.
|
|
62
95
|
|
|
96
|
+
Replies can include a chart, a step-by-step diagram, or a calculator you can adjust. Try asking “A bike rental costs $5 plus $3 an hour. Give me a slider for up to 8 hours.” Moving the slider updates the price on your computer without sending another message.
|
|
97
|
+
|
|
63
98
|
| After a round | What happens |
|
|
64
99
|
| --- | --- |
|
|
65
100
|
| Continue | The participants read each other's answers and reply once more. |
|
|
@@ -75,13 +110,13 @@ You can attach a document or a supported image, edit a question, retry a reply,
|
|
|
75
110
|
|
|
76
111
|
`diff-chat` starts a server on `127.0.0.1`. The private link it opens contains a fresh token that protects the API and the live reply stream.
|
|
77
112
|
|
|
78
|
-
For Claude, ChatGPT and Gemini, diff runs the provider's official CLI in an empty temporary folder with file and shell tools restricted. Web search is available where the provider supports it. A CLI that can resume a session gets the new messages since its last turn. When a conversation gets long, diff can use a cheaper model of your choice to summarize it. Local connects to Ollama on your computer and lists the models you've installed. [Adapter details](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.
|
|
113
|
+
For Claude, ChatGPT and Gemini, diff runs the provider's official CLI in an empty temporary folder with file and shell tools restricted. Web search is available where the provider supports it. A CLI that can resume a session gets the new messages since its last turn. When a conversation gets long, diff can use a cheaper model of your choice to summarize it. Local connects to Ollama on your computer and lists the models you've installed. [Adapter details](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.1/docs/cli-adapters.md)
|
|
79
114
|
|
|
80
115
|
## Privacy
|
|
81
116
|
|
|
82
117
|
Your saved chats, memory and settings stay on your computer. **Settings → Data** shows the folder. diff collects no telemetry.
|
|
83
118
|
|
|
84
|
-
When you invite a cloud model, its provider receives the messages, shared notes and attachments needed for that reply. Its own data and telemetry policies apply. To keep a conversation local, leave only **Local** on in the message box. Ollama will handle the summaries too. If you enable API fallback, diff stores the key in your OS keychain and the provider bills that usage separately.
|
|
119
|
+
When you invite a cloud model, its provider receives the messages, shared notes and attachments needed for that reply. Its own data and telemetry policies apply. To keep a conversation local, leave only **Local** on in the message box. Ollama will handle the summaries too. If you enable API fallback, diff stores the key in your OS keychain and the provider bills that usage separately. The Mac app contacts GitHub to check for updates while it’s open. You can turn off these checks in **Settings → About**.
|
|
85
120
|
|
|
86
121
|
## Limitations
|
|
87
122
|
|
|
@@ -94,8 +129,8 @@ Unofficial. Not affiliated with or endorsed by Anthropic, OpenAI, or Google.
|
|
|
94
129
|
|
|
95
130
|
## Contributing
|
|
96
131
|
|
|
97
|
-
To run the tests or make a change, start with [Contributing](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.
|
|
132
|
+
To run the tests or make a change, start with [Contributing](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.1/CONTRIBUTING.md). For a new participant, see the [adapter guide](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.1/adapters/README.md). Please report vulnerabilities through the [security policy](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.1/SECURITY.md).
|
|
98
133
|
|
|
99
134
|
## License
|
|
100
135
|
|
|
101
|
-
diff is [MIT licensed](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.
|
|
136
|
+
diff is [MIT licensed](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.1/LICENSE). The fonts and bundled libraries have their own [third-party notices](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.1/static/vendor/LICENSES.txt). [Character credits](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.1/static/characters/CREDITS.md)
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## [Download for Mac](https://github.com/aadilchallawala-cloud/diff-chat/releases/latest/download/diff-macOS-arm64.dmg)
|
|
2
|
+
|
|
3
|
+
**diff v0.1.1 · Apple silicon · macOS 15 or later**
|
|
4
|
+
|
|
5
|
+
You can install and open diff without Terminal. Python comes with the app.
|
|
6
|
+
|
|
7
|
+
**Already using v0.1.0?** Quit diff, download this version, drag it into **Applications**, choose **Replace**, then reopen it. Your chats and settings stay where they are. Starting with v0.1.1, diff can download signed updates and install them when you quit. Choose **diff → Check for Updates…** to check now, or change automatic updates in **Settings → About**.
|
|
8
|
+
|
|
9
|
+
### First open on macOS
|
|
10
|
+
|
|
11
|
+
1. Open the downloaded `diff-macOS-arm64.dmg`. In the window that appears, drag **diff** onto the **Applications** folder.
|
|
12
|
+
2. In Finder, open **Applications** and double-click **diff**. Apple hasn’t notarized this build. If macOS says it can’t verify diff, click **Done** to dismiss the alert.
|
|
13
|
+
3. Open **Apple menu → System Settings → Privacy & Security**. Scroll down to **Security**, find the message about **diff**, and click **Open Anyway**. Confirm when prompted. This option appears after you’ve tried opening the app.
|
|
14
|
+
|
|
15
|
+
Once diff opens, right-click its Dock icon and choose **Options → Keep in Dock**. You can launch it there next time. On a work or school Mac, your administrator may restrict **Open Anyway**. [Apple’s first-open guide](https://support.apple.com/en-us/102445)
|
|
16
|
+
|
|
1
17
|
<picture>
|
|
2
18
|
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/aadilchallawala-cloud/diff-chat/v0.1.0/docs/banner-dark.svg">
|
|
3
19
|
<img src="https://raw.githubusercontent.com/aadilchallawala-cloud/diff-chat/v0.1.0/docs/banner.svg" width="100%" alt="diff">
|
|
@@ -6,8 +22,16 @@
|
|
|
6
22
|
Ask once. Hear from Claude, ChatGPT, Gemini and local models in the same chat — on the plans you already pay for.
|
|
7
23
|
|
|
8
24
|
[](https://github.com/aadilchallawala-cloud/diff-chat/actions/workflows/tests.yml)
|
|
9
|
-
[](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.
|
|
10
|
-
[](https://pypi.org/project/diff-chat/)
|
|
25
|
+
[](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.1/LICENSE)
|
|
26
|
+
[](https://pypi.org/project/diff-chat/)
|
|
27
|
+
|
|
28
|
+
## Launch film
|
|
29
|
+
|
|
30
|
+
https://github.com/user-attachments/assets/3dddf8bb-e564-4540-9f71-02f4c8f0ce3d
|
|
31
|
+
|
|
32
|
+
[Download the film](https://github.com/aadilchallawala-cloud/diff-chat/releases/download/v0.1.0/diff-launch-film-1080p60.mp4) · 59 sec · 1080p at 60 fps
|
|
33
|
+
|
|
34
|
+
## Chat demo
|
|
11
35
|
|
|
12
36
|

|
|
13
37
|
|
|
@@ -15,7 +39,7 @@ In the demo, we asked whether a six-person team should try a four-day week. Clau
|
|
|
15
39
|
|
|
16
40
|
## Install
|
|
17
41
|
|
|
18
|
-
|
|
42
|
+
For the **browser version** on macOS, Windows or Linux, you'll need Python 3.11 or newer and [pipx](https://pipx.pypa.io/stable/installation/). Run these commands in a terminal.
|
|
19
43
|
|
|
20
44
|
```sh
|
|
21
45
|
pipx ensurepath
|
|
@@ -23,7 +47,7 @@ pipx install diff-chat
|
|
|
23
47
|
diff-chat
|
|
24
48
|
```
|
|
25
49
|
|
|
26
|
-
The last command opens diff in your browser on macOS, Windows or Linux. If your terminal can't find `diff-chat`, open a new terminal so it picks up the updated PATH. To run a source checkout, use `pipx install .` from the project folder.
|
|
50
|
+
The last command opens diff in your browser on macOS, Windows or Linux. To update an existing pipx install, stop diff, run `pipx upgrade diff-chat`, then start it again. If your terminal can't find `diff-chat`, open a new terminal so it picks up the updated PATH. To run a source checkout, use `pipx install .` from the project folder.
|
|
27
51
|
|
|
28
52
|
## Connect your first model
|
|
29
53
|
|
|
@@ -31,17 +55,28 @@ You can start with one. Setup shows which tools diff found and how to install an
|
|
|
31
55
|
|
|
32
56
|
| Participant | Tool | What you need | How to connect |
|
|
33
57
|
| --- | --- | --- | --- |
|
|
34
|
-
| Claude | Claude Code 2.1.280 | Claude Pro or higher. [Plans](https://code.claude.com/docs/en/quickstart) | Run `claude auth login --claudeai`. |
|
|
58
|
+
| Claude | Claude Code 2.1.280 or later | Claude Pro or higher. [Plans](https://code.claude.com/docs/en/quickstart) | Run `claude auth login --claudeai`. |
|
|
35
59
|
| ChatGPT | Codex CLI 0.166.0 | Any ChatGPT plan, including Free. [Plan details](https://help.openai.com/en/articles/11369540-using-codex-with-your-chatgpt-plan) | Run `codex login`. |
|
|
36
|
-
| Gemini | Antigravity CLI 1.5.20 (`agy`) | An eligible Google account. The free tier works. [Eligibility](https://antigravity.google/docs/faq) | Choose **Connect Gemini**, or run `diff-chat --login-gemini`, then select Google OAuth. |
|
|
60
|
+
| Gemini | Antigravity CLI 1.5.20 or later (`agy`) | An eligible Google account. The free tier works. [Eligibility](https://antigravity.google/docs/faq) | Choose **Connect Gemini**, or run `diff-chat --login-gemini`, then select Google OAuth. |
|
|
37
61
|
| Local | Ollama | Enough space and memory for the model you choose. Ollama is free. [Setup](https://docs.ollama.com/quickstart) | Open Ollama or run `ollama serve`. To download a first model, try `ollama pull gemma3:4b`. |
|
|
38
62
|
|
|
39
63
|
Have Claude Pro? Add a free ChatGPT account for the full experience.
|
|
40
64
|
|
|
65
|
+
If diff still asks you to install Claude after an npm install on a Mac, paste these two lines into Terminal to check the installed package.
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
claude_path="$(npm root -g)/@anthropic-ai/claude-code/bin/claude.exe"
|
|
69
|
+
"$claude_path" --version && printf '%s' "$claude_path" | pbcopy
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
If you see `2.1.280 (Claude Code)`, the path is on your clipboard. Paste it into **Settings → Models → Claude → CLI path**, press **Tab** to save, then choose **Check again** in **Connect models**.
|
|
73
|
+
|
|
41
74
|
## In a chat
|
|
42
75
|
|
|
43
76
|
Click the names beside the message box to choose who replies. To ask just Claude, start your message with `@claude`. You can choose a model and role for each participant, and set the reasoning level where the provider supports it.
|
|
44
77
|
|
|
78
|
+
Replies can include a chart, a step-by-step diagram, or a calculator you can adjust. Try asking “A bike rental costs $5 plus $3 an hour. Give me a slider for up to 8 hours.” Moving the slider updates the price on your computer without sending another message.
|
|
79
|
+
|
|
45
80
|
| After a round | What happens |
|
|
46
81
|
| --- | --- |
|
|
47
82
|
| Continue | The participants read each other's answers and reply once more. |
|
|
@@ -57,13 +92,13 @@ You can attach a document or a supported image, edit a question, retry a reply,
|
|
|
57
92
|
|
|
58
93
|
`diff-chat` starts a server on `127.0.0.1`. The private link it opens contains a fresh token that protects the API and the live reply stream.
|
|
59
94
|
|
|
60
|
-
For Claude, ChatGPT and Gemini, diff runs the provider's official CLI in an empty temporary folder with file and shell tools restricted. Web search is available where the provider supports it. A CLI that can resume a session gets the new messages since its last turn. When a conversation gets long, diff can use a cheaper model of your choice to summarize it. Local connects to Ollama on your computer and lists the models you've installed. [Adapter details](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.
|
|
95
|
+
For Claude, ChatGPT and Gemini, diff runs the provider's official CLI in an empty temporary folder with file and shell tools restricted. Web search is available where the provider supports it. A CLI that can resume a session gets the new messages since its last turn. When a conversation gets long, diff can use a cheaper model of your choice to summarize it. Local connects to Ollama on your computer and lists the models you've installed. [Adapter details](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.1/docs/cli-adapters.md)
|
|
61
96
|
|
|
62
97
|
## Privacy
|
|
63
98
|
|
|
64
99
|
Your saved chats, memory and settings stay on your computer. **Settings → Data** shows the folder. diff collects no telemetry.
|
|
65
100
|
|
|
66
|
-
When you invite a cloud model, its provider receives the messages, shared notes and attachments needed for that reply. Its own data and telemetry policies apply. To keep a conversation local, leave only **Local** on in the message box. Ollama will handle the summaries too. If you enable API fallback, diff stores the key in your OS keychain and the provider bills that usage separately.
|
|
101
|
+
When you invite a cloud model, its provider receives the messages, shared notes and attachments needed for that reply. Its own data and telemetry policies apply. To keep a conversation local, leave only **Local** on in the message box. Ollama will handle the summaries too. If you enable API fallback, diff stores the key in your OS keychain and the provider bills that usage separately. The Mac app contacts GitHub to check for updates while it’s open. You can turn off these checks in **Settings → About**.
|
|
67
102
|
|
|
68
103
|
## Limitations
|
|
69
104
|
|
|
@@ -76,8 +111,8 @@ Unofficial. Not affiliated with or endorsed by Anthropic, OpenAI, or Google.
|
|
|
76
111
|
|
|
77
112
|
## Contributing
|
|
78
113
|
|
|
79
|
-
To run the tests or make a change, start with [Contributing](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.
|
|
114
|
+
To run the tests or make a change, start with [Contributing](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.1/CONTRIBUTING.md). For a new participant, see the [adapter guide](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.1/adapters/README.md). Please report vulnerabilities through the [security policy](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.1/SECURITY.md).
|
|
80
115
|
|
|
81
116
|
## License
|
|
82
117
|
|
|
83
|
-
diff is [MIT licensed](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.
|
|
118
|
+
diff is [MIT licensed](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.1/LICENSE). The fonts and bundled libraries have their own [third-party notices](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.1/static/vendor/LICENSES.txt). [Character credits](https://github.com/aadilchallawala-cloud/diff-chat/blob/v0.1.1/static/characters/CREDITS.md)
|
|
@@ -24,5 +24,5 @@ Run `python -m unittest discover -s tests` for offline regression tests. `python
|
|
|
24
24
|
Adapters can also implement `setup_action(status)` to return a `SetupAction(id, label, argv)` for a specific readiness state. diff shows the label in **Connect models** and rechecks that state before opening the local terminal. Supply the executable and each argument separately. The display-only setup command is a manual alternative.
|
|
25
25
|
|
|
26
26
|
- Claude and GPT retain their original subscription command profiles. Claude exposes incremental text. The pinned Codex JSON protocol returns completed agent messages. Both support explicit session IDs, attached images, and optional service-hosted web search.
|
|
27
|
-
- Gemini uses Antigravity CLI 1.5.20. diff owns its Google profile and launches Google's interactive OAuth from setup. The account catalog supplies all selectable model/effort variants. The CLI's framing is an input prefix. Strict tool permissions deny files, commands, MCP and URL actions. Its headless protocol accepts text. Provider-native history lives in the private Google profile, and each chat keeps its own confirmed conversation ID. Deleting a diff chat does not guarantee erasure of the CLI's private native history. See the [headless protocol](https://antigravity.google/docs/cli/headless/) and [CLI permissions](https://antigravity.google/docs/permissions/?tab=cli).
|
|
27
|
+
- Gemini uses Antigravity CLI 1.5.20 or later. diff owns its Google profile and launches Google's interactive OAuth from setup. The account catalog supplies all selectable model/effort variants. The CLI's framing is an input prefix. Strict tool permissions deny files, commands, MCP and URL actions. Its headless protocol accepts text. On macOS the profile links to your login keychain, where the CLI keeps its sign-in, so it can share that sign-in with your terminal. Provider-native history lives in the private Google profile, and each chat keeps its own confirmed conversation ID. Deleting a diff chat does not guarantee erasure of the CLI's private native history. See the [headless protocol](https://antigravity.google/docs/cli/headless/) and [CLI permissions](https://antigravity.google/docs/permissions/?tab=cli).
|
|
28
28
|
- Local uses a fixed loopback HTTP connection, ignores proxy variables, and refuses remote-backed models. It discovers installed tags at runtime. Vision requires the selected model to advertise vision. Text is streamed from NDJSON, with no client-side tool execution. It gets the summary and recent turns on each request. `ollama pull gemma3:4b` is an optional starting point, verified in the public catalog. See the [tag API](https://docs.ollama.com/api/tags), [chat API](https://docs.ollama.com/api/chat) and [Gemma 3 4B listing](https://ollama.com/library/gemma3:4b).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Registered participants and the transport used by diff's conversation engine."""
|
|
2
2
|
import asyncio
|
|
3
3
|
from contextlib import aclosing
|
|
4
|
-
from ._cli import (CLAUDE_CONTROL, CODEX_DISABLE, INSTALL, LOGIN, VERSIONS, ModelError,
|
|
4
|
+
from ._cli import (supported_version, CLAUDE_CONTROL, CODEX_DISABLE, INSTALL, LOGIN, VERSIONS, ModelError,
|
|
5
5
|
ResumeUnavailable, _Invocation, _check_login, _environment, _terminate)
|
|
6
6
|
from .gpt import _prepare_codex
|
|
7
7
|
from .registry import REGISTRY, participant_info, public_registry
|
|
@@ -31,6 +31,9 @@ class Participant:
|
|
|
31
31
|
"""Optional interactive action for the verified connection status."""
|
|
32
32
|
return None
|
|
33
33
|
|
|
34
|
+
def checked_setup_action(self, row):
|
|
35
|
+
return self.setup_action(row["status"])
|
|
36
|
+
|
|
34
37
|
async def list_models(self):
|
|
35
38
|
raise NotImplementedError
|
|
36
39
|
|
|
@@ -49,13 +52,16 @@ class CliParticipant(Participant):
|
|
|
49
52
|
streaming = True
|
|
50
53
|
login_args = ()
|
|
51
54
|
|
|
52
|
-
def setup_action(self, status):
|
|
55
|
+
def setup_action(self, status, path=None):
|
|
53
56
|
from connection_handoff import SetupAction
|
|
54
57
|
from runtime_paths import find_cli
|
|
55
|
-
if status == "login" and self.login_args and (binary := find_cli(self.cli_name)):
|
|
58
|
+
if status == "login" and self.login_args and (binary := path or find_cli(self.cli_name)):
|
|
56
59
|
return SetupAction("login", "Connect " + self.label, (binary, *self.login_args))
|
|
57
60
|
return None
|
|
58
61
|
|
|
62
|
+
def checked_setup_action(self, row):
|
|
63
|
+
return self.setup_action(row["status"], row.get("path"))
|
|
64
|
+
|
|
59
65
|
def capabilities(self):
|
|
60
66
|
return dict(streaming=self.streaming, sessions=True, reasoning_levels=True, web_search=True,
|
|
61
67
|
attachments=True, images=True, api_fallback=True)
|
|
@@ -15,8 +15,7 @@ import tempfile
|
|
|
15
15
|
from urllib.parse import urlsplit
|
|
16
16
|
from uuid import UUID, uuid4
|
|
17
17
|
|
|
18
|
-
from runtime_paths import find_cli
|
|
19
|
-
from runtime_paths import cli_path
|
|
18
|
+
from runtime_paths import cli_candidates, cli_path, find_cli
|
|
20
19
|
|
|
21
20
|
|
|
22
21
|
class ModelError(Exception):
|
|
@@ -61,14 +60,18 @@ def _session_exists(directory, model, session_id):
|
|
|
61
60
|
return any(path.is_file() and not path.is_symlink() for path in matches)
|
|
62
61
|
|
|
63
62
|
|
|
64
|
-
# These builds were checked against a loopback provider. Codex's tool registry
|
|
65
|
-
#
|
|
63
|
+
# These builds were checked against a loopback provider. Codex's tool registry is
|
|
64
|
+
# version-specific, so Codex must match exactly. Claude Code updates itself, so
|
|
65
|
+
# its verified build is a minimum.
|
|
66
66
|
VERSIONS = {"claude": "2.1.280 (Claude Code)", "gpt": "codex-cli 0.166.0"}
|
|
67
67
|
LEGACY_CLAUDE = "2.1.202 (Claude Code)"
|
|
68
|
+
CLAUDE_NPM_PACKAGE = "@anthropic-ai/claude-code@2.1.280"
|
|
68
69
|
INSTALL = {
|
|
69
|
-
"claude": "npm install -g
|
|
70
|
+
"claude": f"npm install -g {CLAUDE_NPM_PACKAGE}",
|
|
70
71
|
"gpt": "npm install -g @openai/codex@0.166.0",
|
|
71
72
|
}
|
|
73
|
+
CLAUDE_NPM_REPAIR = ("npm install -g --allow-scripts=@anthropic-ai/claude-code "
|
|
74
|
+
f"--ignore-scripts=false --include=optional {CLAUDE_NPM_PACKAGE}")
|
|
72
75
|
LOGIN = {"claude": "claude auth login --claudeai", "gpt": "codex login"}
|
|
73
76
|
CODEX_DISABLE = (
|
|
74
77
|
"shell_tool unified_exec view_image shell_snapshot code_mode code_mode_only "
|
|
@@ -80,6 +83,21 @@ CODEX_DISABLE = (
|
|
|
80
83
|
).split()
|
|
81
84
|
|
|
82
85
|
|
|
86
|
+
def at_least(version: str, minimum: str) -> bool:
|
|
87
|
+
"""Compare plain x.y.z releases. Anything else, including prereleases, is unsupported."""
|
|
88
|
+
if not re.fullmatch(r"\d+\.\d+\.\d+", version):
|
|
89
|
+
return False
|
|
90
|
+
return tuple(map(int, version.split("."))) >= tuple(map(int, minimum.split(".")))
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
def supported_version(model: str, installed: str) -> bool:
|
|
94
|
+
if model != "claude":
|
|
95
|
+
return installed == VERSIONS[model]
|
|
96
|
+
suffix = " (Claude Code)"
|
|
97
|
+
return installed.endswith(suffix) and at_least(
|
|
98
|
+
installed.removesuffix(suffix), VERSIONS[model].removesuffix(suffix))
|
|
99
|
+
|
|
100
|
+
|
|
83
101
|
def _environment(root: Path, model: str) -> dict[str, str]:
|
|
84
102
|
# Never pass API keys, provider endpoints, injected tool hosts, or desktop
|
|
85
103
|
# session identifiers. Leave credential management to the signed-in CLI.
|
|
@@ -189,6 +207,45 @@ class _Invocation:
|
|
|
189
207
|
raise
|
|
190
208
|
|
|
191
209
|
|
|
210
|
+
def subscription_paths(model):
|
|
211
|
+
if model == "claude":
|
|
212
|
+
return list(cli_candidates("claude"))
|
|
213
|
+
binary = find_cli("codex")
|
|
214
|
+
return [binary] if binary else []
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
async def _reported_version(call, timeout=None):
|
|
218
|
+
try:
|
|
219
|
+
async with asyncio.timeout(timeout):
|
|
220
|
+
code, raw = await call.execute(["--version"])
|
|
221
|
+
except (OSError, TimeoutError):
|
|
222
|
+
return ""
|
|
223
|
+
version = raw.decode(errors="replace").strip()
|
|
224
|
+
return version if not code and version.isprintable() and len(version) <= 120 else ""
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
def incomplete_claude_install(call):
|
|
228
|
+
return b"claude native binary not installed" in call.stderr.lower()
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
async def checked_installation(primary, model, alternatives, *, allow_legacy=False):
|
|
232
|
+
"""Use a supported install even when an older one shadows it on PATH."""
|
|
233
|
+
version = await _reported_version(primary, 3 if alternatives else None)
|
|
234
|
+
fallback = primary, version
|
|
235
|
+
if supported_version(model, version):
|
|
236
|
+
return fallback
|
|
237
|
+
for path in alternatives:
|
|
238
|
+
other = _Invocation(path, primary.cwd, primary.env)
|
|
239
|
+
reported = await _reported_version(other, 3)
|
|
240
|
+
if supported_version(model, reported):
|
|
241
|
+
return other, reported
|
|
242
|
+
if allow_legacy and reported == LEGACY_CLAUDE and fallback[1] != LEGACY_CLAUDE:
|
|
243
|
+
fallback = other, reported
|
|
244
|
+
elif not allow_legacy and incomplete_claude_install(other) and not incomplete_claude_install(fallback[0]):
|
|
245
|
+
fallback = other, reported
|
|
246
|
+
return fallback
|
|
247
|
+
|
|
248
|
+
|
|
192
249
|
CLAUDE_CONTROL = [
|
|
193
250
|
"--safe-mode", "--setting-sources", "", "--settings", json.dumps({
|
|
194
251
|
"disableAllHooks": True, "forceLoginMethod": "claudeai",
|
|
@@ -311,25 +368,25 @@ async def run_cli(adapter, framing: str, transcript: str, timeout: int,
|
|
|
311
368
|
except OSError as error:
|
|
312
369
|
raise ModelError("Could not access this app's private CLI session directory.") from error
|
|
313
370
|
name = adapter.cli_name
|
|
314
|
-
|
|
315
|
-
if not
|
|
371
|
+
paths = subscription_paths(model)
|
|
372
|
+
if not paths:
|
|
316
373
|
raise ModelError(f"{name} is missing from PATH. Install with {INSTALL[model]}.")
|
|
317
374
|
|
|
318
375
|
with tempfile.TemporaryDirectory(prefix="transcript-") as temporary:
|
|
319
376
|
root = Path(temporary).resolve()
|
|
320
377
|
cwd = root / "workspace"
|
|
321
378
|
cwd.mkdir()
|
|
322
|
-
call = _Invocation(
|
|
379
|
+
call = _Invocation(paths[0], cwd, _environment(root, model))
|
|
323
380
|
confirmed_id = None
|
|
324
381
|
credential_links = []
|
|
325
382
|
|
|
326
383
|
async def invoke():
|
|
327
|
-
nonlocal confirmed_id
|
|
328
|
-
|
|
329
|
-
installed = version.decode(errors="replace").strip()
|
|
384
|
+
nonlocal call, confirmed_id
|
|
385
|
+
call, installed = await checked_installation(call, model, paths[1:], allow_legacy=model == "claude")
|
|
330
386
|
legacy = model == "claude" and installed == LEGACY_CLAUDE
|
|
331
|
-
if
|
|
332
|
-
|
|
387
|
+
if not (supported_version(model, installed) or legacy):
|
|
388
|
+
needed = VERSIONS[model] + (" or later" if model == "claude" else "")
|
|
389
|
+
raise ModelError(f"This app needs {needed}. "
|
|
333
390
|
f"Install with {INSTALL[model]}.", _tail(call.stderr))
|
|
334
391
|
args, prompt, native, target_id = await adapter.command(
|
|
335
392
|
call, root, framing, transcript, model_id, effort, web_search, images,
|
|
@@ -92,7 +92,7 @@ class Claude(CliParticipant):
|
|
|
92
92
|
model = self.id
|
|
93
93
|
if native and legacy:
|
|
94
94
|
if session_id:
|
|
95
|
-
raise ModelError("Install
|
|
95
|
+
raise ModelError("Install Claude Code 2.1.280 or later to resume this session.")
|
|
96
96
|
native = False
|
|
97
97
|
if native:
|
|
98
98
|
private = session_dir / "claude"
|
|
@@ -12,9 +12,9 @@ import tempfile
|
|
|
12
12
|
|
|
13
13
|
from runtime_paths import MODULE_ROOT, cli_path, data_root, find_cli
|
|
14
14
|
from ._base import Participant, transcript_text
|
|
15
|
-
from ._cli import ModelError, ResumeUnavailable, _Invocation, _private_dir, _tail, _uuid
|
|
15
|
+
from ._cli import ModelError, ResumeUnavailable, _Invocation, _private_dir, _tail, _uuid, at_least
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
MINIMUM_VERSION = "1.5.20"
|
|
18
18
|
INSTALL_URL = "https://antigravity.google/docs/getting-started?tab=cli"
|
|
19
19
|
DENY = ["read_file(*)", "write_file(*)", "command(*)", "read_url(*)",
|
|
20
20
|
"execute_url(*)", "mcp(*)"]
|
|
@@ -41,9 +41,22 @@ def profile():
|
|
|
41
41
|
json.dump({"plugins": {"swarm": {"enabled": False}}}, f)
|
|
42
42
|
except FileExistsError:
|
|
43
43
|
pass
|
|
44
|
+
if sys.platform == "darwin":
|
|
45
|
+
_link_keychains(home)
|
|
44
46
|
return home
|
|
45
47
|
|
|
46
48
|
|
|
49
|
+
def _link_keychains(home):
|
|
50
|
+
"""macOS finds the login keychain, where agy keeps its sign-in, through HOME."""
|
|
51
|
+
library = home / "Library"
|
|
52
|
+
library.mkdir(mode=0o700, exist_ok=True)
|
|
53
|
+
_private_dir(library)
|
|
54
|
+
link = library / "Keychains"
|
|
55
|
+
if not link.is_symlink() and not link.exists():
|
|
56
|
+
with suppress(FileExistsError):
|
|
57
|
+
link.symlink_to(Path.home() / "Library" / "Keychains")
|
|
58
|
+
|
|
59
|
+
|
|
47
60
|
def integrations_off(home):
|
|
48
61
|
"""An explicitly added hook, plugin or MCP server in diff's private profile blocks chat."""
|
|
49
62
|
shared = home / ".gemini" / "config"
|
|
@@ -121,8 +134,8 @@ def login():
|
|
|
121
134
|
env = environment(home, directory)
|
|
122
135
|
version = subprocess.run([binary, "--version"], cwd=directory, env=env, timeout=8,
|
|
123
136
|
capture_output=True, text=True)
|
|
124
|
-
if version.returncode or version.stdout.strip()
|
|
125
|
-
print(f"diff
|
|
137
|
+
if version.returncode or not at_least(version.stdout.strip(), MINIMUM_VERSION):
|
|
138
|
+
print(f"diff needs Antigravity CLI {MINIMUM_VERSION} or later.", file=sys.stderr)
|
|
126
139
|
return 1
|
|
127
140
|
print(PERSONAL_SIGN_IN, flush=True)
|
|
128
141
|
print("If you see “Select subscription”, press Esc to return to the login methods. "
|
|
@@ -142,8 +155,9 @@ async def isolated(binary):
|
|
|
142
155
|
raise ModelError("Remove enabled hooks, plugins, MCP servers or sidecars from diff’s private Google CLI profile.")
|
|
143
156
|
call = _Invocation(binary, cwd, environment(home, root))
|
|
144
157
|
version, raw = await call.execute(["--version"])
|
|
145
|
-
|
|
146
|
-
|
|
158
|
+
call.version = raw.decode(errors="replace").strip()
|
|
159
|
+
if version or not at_least(call.version, MINIMUM_VERSION):
|
|
160
|
+
raise ModelError(f"diff needs Antigravity CLI {MINIMUM_VERSION} or later.")
|
|
147
161
|
yield call
|
|
148
162
|
|
|
149
163
|
|
|
@@ -219,7 +233,7 @@ class Gemini(Participant):
|
|
|
219
233
|
details = {"path": binary, "command": None, "version": None}
|
|
220
234
|
try:
|
|
221
235
|
async with asyncio.timeout(12), isolated(binary) as call:
|
|
222
|
-
details["version"] =
|
|
236
|
+
details["version"] = call.version
|
|
223
237
|
await catalog(call)
|
|
224
238
|
return {**details, "status": "ready", "hint": "Google account connected"}
|
|
225
239
|
except LoginRequired as error:
|
|
@@ -44,6 +44,7 @@ import conversation_actions as actions
|
|
|
44
44
|
log = logging.getLogger("uvicorn.error")
|
|
45
45
|
MODELS = tuple(REGISTRY)
|
|
46
46
|
SETTINGS = storage.SETTINGS
|
|
47
|
+
VISUAL_INSTRUCTIONS = (storage.ROOT / "prompts" / "interactive_replies.md").read_text(encoding="utf-8").strip()
|
|
47
48
|
MENTION = re.compile(r"^@(" + "|".join(re.escape(key) for key in REGISTRY) + r")(?![\w-])", re.IGNORECASE)
|
|
48
49
|
runs = {}
|
|
49
50
|
active = {}
|
|
@@ -190,6 +191,8 @@ def framing(model, kind, selection=None, web_search=False, participants=()):
|
|
|
190
191
|
"used with ordinary Markdown links, [source title](https://...), next to the claims they support. "
|
|
191
192
|
"If search fails, say so."
|
|
192
193
|
)
|
|
194
|
+
if kind != "summary":
|
|
195
|
+
instruction += "\n\n" + VISUAL_INSTRUCTIONS
|
|
193
196
|
return instruction
|
|
194
197
|
|
|
195
198
|
|
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Release checklist
|
|
2
|
+
|
|
3
|
+
## Mac and PyPI updates
|
|
4
|
+
|
|
5
|
+
- [ ] Set the same release version in `pyproject.toml`, `app_preferences.py` and `macos/Info.plist`. Increase `CFBundleVersion` for each public Mac update. Write the release notes and run the test suite.
|
|
6
|
+
- [ ] On the release Mac, run `./macos/build.sh --release`. This produces the DMG and a signed `appcast.xml` in `dist/`. Sparkle reads the diff update key from the login Keychain under the account `org.transcriptchat.Transcript.diff-releases`. Keep an encrypted backup of that key. A fresh key cannot authorize updates to copies already distributed. [Sparkle key management](https://sparkle-project.org/documentation/#3-seal-your-update-for-security)
|
|
7
|
+
- [ ] Wait for all six CI jobs to pass on the release commit. Tag that commit and upload both files to a draft release before making it the latest stable release. The feed points to the DMG at a version-specific URL.
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
TAG="v$(python3 -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')"
|
|
11
|
+
git tag -a "$TAG" -m "diff $TAG"
|
|
12
|
+
git push origin "$TAG"
|
|
13
|
+
gh release create "$TAG" dist/diff-macOS-arm64.dmg dist/appcast.xml --draft --verify-tag --title "diff $TAG" --notes-file "docs/RELEASE_NOTES_$TAG.md"
|
|
14
|
+
gh release edit "$TAG" --draft=false --latest
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
- [ ] Verify that the stable feed opens at `releases/latest/download/appcast.xml`. The PyPI workflow downloads the GitHub assets, verifies both signatures with the public key in the app, and publishes through Trusted Publishing. Check a fresh `pipx install diff-chat` and a Mac update before announcing the release.
|
|
18
|
+
|
|
19
|
+
## First launch archive · v0.1.0
|
|
2
20
|
|
|
3
21
|
Run from the diff-chat source checkout in Bash or zsh. Before the public launch, the maintainer approves the actual demo GIF and confirms the PyPI pending publisher is configured.
|
|
4
22
|
|
|
@@ -54,7 +72,7 @@ Run from the diff-chat source checkout in Bash or zsh. Before the public launch,
|
|
|
54
72
|
--notes-file docs/RELEASE_NOTES_v0.1.0.md
|
|
55
73
|
```
|
|
56
74
|
|
|
57
|
-
The
|
|
75
|
+
The v0.1.0 release includes the Apple silicon DMG. The README covers first launch on macOS and installation of the browser version from PyPI.
|
|
58
76
|
|
|
59
77
|
- [ ] Confirm the publish workflow passed. The build job validates the tag, builds the wheel and source distribution, and checks their metadata. The publish job exchanges its GitHub OIDC identity for a short-lived PyPI credential. [Publishing with a trusted publisher](https://docs.pypi.org/trusted-publishers/using-a-publisher/)
|
|
60
78
|
|