-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add llm-upgrade and gitalias-upgrade to make upgrade #1076
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
3900826
fa487e1
b10cf2e
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 |
|---|---|---|
|
|
@@ -212,7 +212,19 @@ update-local-binaries: ## Update and rebuild local binaries from .local-binaries | |
| ##@ Upgrade | ||
|
|
||
| .PHONY: upgrade | ||
| upgrade: nix-upgrade overlays-upgrade neovim-upgrade ## Upgrade Nix flake, overlays, Neovim plugins | ||
| upgrade: nix-upgrade overlays-upgrade neovim-upgrade llm-upgrade gitalias-upgrade ## Upgrade Nix flake, overlays, Neovim plugins, LLM configs, and gitalias | ||
|
|
||
| .PHONY: llm-upgrade | ||
| llm-upgrade: ## Regenerate tool configs from models.json. | ||
| @echo "🤖 Updating LLM tool configs..." | ||
| @./scripts/llm-update.sh | ||
| @echo "✅ LLM configs updated" | ||
|
|
||
| .PHONY: gitalias-upgrade | ||
| gitalias-upgrade: ## Download latest gitalias.txt from upstream. | ||
| @echo "📥 Updating gitalias.txt..." | ||
| @./scripts/update-gitalias.sh | ||
| @echo "✅ gitalias.txt updated" | ||
|
|
||
| .PHONY: upgrade-dev | ||
| upgrade-dev: ## Upgrade inside the Nix dev shell (mirrors CI). | ||
|
|
@@ -594,6 +606,9 @@ neovim-dev: ## Set up local Neovim development environment. | |
| .PHONY: neovim-upgrade | ||
| neovim-upgrade: ## Update Neovim plugins. | ||
| @echo "📦 Updating neovim plugins..." | ||
| @mkdir -p ~/.config/nvim | ||
| @ln -sf "$(PWD)/home-manager/programs/neovim/init.lua" ~/.config/nvim/init.lua | ||
| @ln -sf "$(PWD)/home-manager/programs/neovim/nvim-pack-lock.json" ~/.config/nvim/nvim-pack-lock.json | ||
|
Comment on lines
+609
to
+611
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. The
Comment on lines
+609
to
+611
|
||
| @nvim --headless +"lua vim.pack.update()" +qa | ||
| @echo "✅ Neovim plugins updated" | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,9 +2,9 @@ | |
| "env": { | ||
| "ANTHROPIC_BASE_URL": "http://127.0.0.1:8317/api/provider/gemini", | ||
| "ANTHROPIC_AUTH_TOKEN": "__CLIPROXY_API_KEY__", | ||
| "ANTHROPIC_MODEL": "gemini-3-pro-preview", | ||
| "ANTHROPIC_DEFAULT_OPUS_MODEL": "gemini-3-pro-preview", | ||
| "ANTHROPIC_DEFAULT_SONNET_MODEL": "gemini-3-pro-preview", | ||
| "ANTHROPIC_DEFAULT_HAIKU_MODEL": "gemini-3-flash-preview" | ||
| "ANTHROPIC_MODEL": "gemini-3.1-pro-preview", | ||
|
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. P2: This upgrade leaves the installed Factory config pinned to Prompt for AI agents |
||
| "ANTHROPIC_DEFAULT_OPUS_MODEL": "gemini-3.1-pro-preview", | ||
| "ANTHROPIC_DEFAULT_SONNET_MODEL": "gemini-3.1-pro-preview", | ||
| "ANTHROPIC_DEFAULT_HAIKU_MODEL": "gemini-3.1-flash-preview" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -23,8 +23,8 @@ | |||||||||
| "maxTokens": 128000 | ||||||||||
| }, | ||||||||||
| { | ||||||||||
| "id": "gpt-5.2", | ||||||||||
| "name": "GPT 5.2 [ChatGPT Pro]", | ||||||||||
| "id": "gpt-5.4", | ||||||||||
|
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. P2: This renames the entry to GPT-5.4 but leaves the surrounding cost/context metadata on the older profile, so downstream configs will advertise the wrong limits and pricing for this model. Prompt for AI agents |
||||||||||
| "name": "GPT 5.4 [ChatGPT Pro]", | ||||||||||
| "reasoning": true, | ||||||||||
| "input": [ | ||||||||||
| "text", | ||||||||||
|
|
@@ -40,8 +40,8 @@ | |||||||||
| "maxTokens": 128000 | ||||||||||
| }, | ||||||||||
| { | ||||||||||
| "id": "gemini-3-pro-preview", | ||||||||||
| "name": "Gemini 3 Pro", | ||||||||||
| "id": "gemini-3.1-pro-preview", | ||||||||||
| "name": "Gemini 3.1 Pro", | ||||||||||
| "reasoning": true, | ||||||||||
| "input": [ | ||||||||||
| "text", | ||||||||||
|
|
@@ -57,8 +57,8 @@ | |||||||||
| "maxTokens": 65536 | ||||||||||
| }, | ||||||||||
| { | ||||||||||
| "id": "gemini-3-flash-preview", | ||||||||||
| "name": "Gemini 3 Flash", | ||||||||||
| "id": "gemini-3.1-flash-preview", | ||||||||||
| "name": "Gemini 3.1 Flash", | ||||||||||
|
Comment on lines
+60
to
+61
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. P1: Prompt for AI agents
Suggested change
|
||||||||||
| "reasoning": false, | ||||||||||
| "input": [ | ||||||||||
| "text", | ||||||||||
|
|
||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,9 +3,9 @@ function _coxe_function --description "Run Codex with a free-form prompt" | |
| # Usage: cxe [<prompt words...>] | ||
|
|
||
| if test (count $argv) -eq 0 | ||
| codex --model '__GPT_CODEX__' --full-auto -c model_reasoning_summary_format=experimental | ||
| codex --model '__GPT__' --full-auto -c model_reasoning_summary_format=experimental | ||
|
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. P2: Use the Codex-specific placeholder here instead of Prompt for AI agents |
||
| else | ||
| set -l prompt (string join " " -- $argv) | ||
| codex exec --model '__GPT_CODEX__' --full-auto -c model_reasoning_summary_format=experimental -- "$prompt" | ||
| codex exec --model '__GPT__' --full-auto -c model_reasoning_summary_format=experimental -- "$prompt" | ||
| end | ||
| end | ||
Uh oh!
There was an error while loading. Please reload this page.
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.
P2: In a home-manager / NixOS setup,
~/.config/nvimis often a symlink into the read-only Nix store.mkdir -pon that path will either fail or behave unexpectedly. Theneovim-devtarget in this same Makefile already handles this correctly by removing the symlink first. Mirror that pattern here.Prompt for AI agents