Commit graph

142 commits

Author SHA1 Message Date
Barrca
b995101048 1.2.7 2026-05-30 23:18:05 +02:00
Barrca
86601be0f0 feat: Codex device sign-in modal with copy and open page buttons
On mobile, show a modal with the one-time code, copy-to-clipboard, and open sign-in page actions instead of auto-opening the browser.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-30 23:17:53 +02:00
Barrca
d900ef1ca6 1.2.6 2026-05-30 23:09:40 +02:00
Barrca
1c61d23cc6 fix: Codex ChatGPT sign-in on Android via device code flow
Use OpenAI device auth on mobile instead of localhost OAuth, and open the verification URL in the system browser via Capacitor AppLauncher.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-30 23:09:27 +02:00
Barrca
69817bffc2 1.2.5 2026-05-30 23:03:21 +02:00
Barrca
b1933fb823 fix: store API keys and Codex tokens in Obsidian keychain
Move credentials out of vault-synced data.json into SecretStorage, with automatic migration for existing users and persisted Codex refresh. Requires Obsidian 1.11.4+.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-30 23:03:05 +02:00
Barrca
053119ed15
Merge pull request #17 from FelixIsaac/felix/codex-subscription-provider
feat: Codex provider, note-aware context, built-in slash commands + UX improvements
2026-05-23 12:41:15 +02:00
Felix Isaac Lim
05dc259155 feat: built-in slash commands + Ctrl+Shift+Space default hotkey 2026-05-23 11:32:36 +08:00
Felix Isaac Lim
71a6447f98 feat: inject note context (title, heading, surrounding paragraphs) into system prompt 2026-05-23 11:31:56 +08:00
Felix Isaac Lim
15fe7f02c5 feat: model UX improvements + input/output edge cases
- model dropdown shows description for each option
- custom model field shows validation warning when empty
- guard against empty model before API call
- truncate inputs >60k chars with notice
- trim whitespace from output; clearer error for reasoning-only responses
- auto-reset model to gpt-5.4-mini when switching to Codex provider

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-23 06:37:10 +08:00
Felix Isaac Lim
3abc20fe6e fix: edge cases — port clash, 403/429 errors, reasoning-only, model reset, token warning
- pre-check port 1455 before OAuth flow to catch clashes early
- 403: friendly message suggesting gpt-5.4-mini fallback
- 429: "subscription limit reached" instead of raw error
- add response.output_text.done SSE path for reasoning-only responses
- reset model to gpt-5.4-mini when switching to Codex provider
- 10s notice on session expiry prompting user to re-sign-in in settings
- warn user tokens stored in plaintext data.json when signed in

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-23 06:33:24 +08:00
Felix Isaac Lim
d51f10b33e style: run prettier to fix format check
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-23 06:30:12 +08:00
Felix Isaac Lim
1024c37991 fix: correct SSE delta parsing + custom model input
response.output_text.delta has delta as plain string not object; fix
parseSseText to handle it. Also fix custom model dropdown — selecting
Custom now sets model to "" so isCustom triggers correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-23 06:27:35 +08:00
Felix Isaac Lim
b389c5991d fix: use Obsidian requestUrl instead of fetch (CSP bypass), add model dropdown
native fetch blocked by Obsidian CSP for external domains; requestUrl
bypasses it. Also adds Codex model dropdown with known models + custom
fallback, updates normalizeModel for gpt-5.5/5.4-mini/5.3-codex-spark.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-23 06:18:39 +08:00
Barrca
5f21d0bdd5
Merge pull request #16 from FelixIsaac/felix/codex-subscription-provider
feat: Codex (ChatGPT subscription) provider
2026-05-22 23:41:59 +02:00
Felix Isaac Lim
6880043c8b feat: add Codex (ChatGPT subscription) provider
OAuth PKCE flow to auth w/ ChatGPT Plus/Pro; stores tokens in plugin
settings. Calls chatgpt.com/backend-api/codex/responses (responses API)
instead of chat completions. Auto-refreshes tokens. Sign in/out UI in
settings tab.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-23 05:33:00 +08:00
Barrca
3912da8047 [release] Bump version to 1.2.4 2025-09-19 17:28:48 +02:00
Barrca
2a0be90245 [fix] Fomatting of exports 2025-09-19 17:27:31 +02:00
Barrca
3e25d3e8d1 [feat] Add Azure OpenAI support to ChatApiManager and update settings interface for Azure configuration. 2025-09-19 17:25:45 +02:00
Barrca
149953d1bd [release] Release 1.2.3 2025-09-12 20:22:03 +02:00
Barrca
59960a9b1c [feat] Enhance extension with focus guard to prevent editor re-renders during widget interactions. This is better than the previous fix. 2025-09-12 20:20:29 +02:00
Barrca
2ec2eabdb2 [release] Release 1.2.2 2025-09-12 18:50:40 +02:00
Barrca
958533a0f0 [fix] Added event listeners to manage focus transitions and prevent unwanted re-renders in the outer editor. Specially for codeblocks 2025-09-12 18:48:49 +02:00
Barrca
ad60944974 Reformat the code with the new prettier config 2025-09-12 18:47:27 +02:00
Barrca
41e73ea28a Refactor project configuration: remove .gptignore, add .prettierignore and .prettierrc, update package-lock.json with new dependencies including husky and lint-staged, and configure GitHub Actions for Prettier checks. Also, set up husky pre-commit hook to run tests. 2025-09-12 18:46:02 +02:00
Barrca
9e95818df3
Merge pull request #11 from FBarrca/dependabot/npm_and_yarn/form-data-4.0.4
Bump form-data from 4.0.1 to 4.0.4
2025-08-22 09:35:31 +02:00
dependabot[bot]
95136efdbb
Bump form-data from 4.0.1 to 4.0.4
Bumps [form-data](https://github.com/form-data/form-data) from 4.0.1 to 4.0.4.
- [Release notes](https://github.com/form-data/form-data/releases)
- [Changelog](https://github.com/form-data/form-data/blob/master/CHANGELOG.md)
- [Commits](https://github.com/form-data/form-data/compare/v4.0.1...v4.0.4)

---
updated-dependencies:
- dependency-name: form-data
  dependency-version: 4.0.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-21 20:55:37 +00:00
Barrca
3f8dda5ac0
Update README.md 2025-07-09 18:49:18 +02:00
Barrca
5e878508cc Update version to 1.2.1 2025-05-17 20:44:37 +02:00
Barrca
46ef109abf Update event listener for FloatingWidget to use window instead of document for click outside detection. 2025-05-17 20:43:16 +02:00
Barrca
f0f35ac3fa Disable icons in autocomplete suggestions 2025-05-17 20:19:51 +02:00
Barrca
495e8742ff Enhance FloatingWidget to manage event listeners for dismissal on click outside and Escape key, including support for popout windows.
Rework to fix issues with dismissing on floating windows outside the main editor.
2025-05-17 20:13:21 +02:00
Barrca
8b37439f84 Improve some CSS issues with popup windows 2025-05-17 19:12:11 +02:00
Barrca
b62e2894d5 Release 1.2.0 2025-05-16 22:44:12 +02:00
Barrca
171994ccef Reinitialize ChatApiManagermessage queue based on settings toggle 2025-05-16 22:43:02 +02:00
Barrca
d2bd638b4e Refactor advanced section header in settings to use createEl method 2025-05-16 22:42:08 +02:00
Barrca
47c92dbd94 Add message history toggle in settings and conditionally enqueue messages in ChatApiManager 2025-05-13 21:51:50 +02:00
Barrca
031efb3ae4 Add basic message history 2025-05-13 21:28:40 +02:00
Barrca
13d0a1ebf9 Version 1.1.5 2025-05-13 20:14:51 +02:00
Barrca
b091815460 Further improve the autocomplete styling 2025-05-13 20:13:54 +02:00
Barrca
054d6aa854 Remove debug console log from buildSelectionHighlightState function in SelectionState.ts 2025-05-13 00:12:10 +02:00
Barrca
23f43b3b7e Update completion label styling in styles.css to use Arial font 2025-05-12 23:59:05 +02:00
Barrca
a893a4a60e
Update README.md
Fix License issues
2025-05-12 23:45:05 +02:00
Barrca
4d9a730b8d Version 1.1.4 2025-05-12 23:39:46 +02:00
Barrca
eea1bfc4fa Improve the styling of the command completions 2025-05-12 23:36:58 +02:00
Barrca
51c4121e57
Create FUNDING.yml 2025-05-12 21:32:38 +02:00
Barrca
186df1fd49 Update README with gemini 2025-03-30 22:07:12 +02:00
Barrca
c530839e77 Release 1.1.3 2025-03-30 22:06:00 +02:00
Barrca
08ba4da72f Added support for gemini
Tested with AI studio
2025-03-30 22:04:30 +02:00
Barrca
628773c5e4 Release 1.1.2 2025-02-28 20:24:53 +01:00