This commit is contained in:
parent
e7d2eb2271
commit
ad216be727
4 changed files with 15 additions and 20 deletions
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
;;; Code:
|
||||
(declare-function agent-shell-make-environment-variables 'agent-shell)
|
||||
(defvar icejam-variables-to-load-in-agent-shell '())
|
||||
|
||||
(use-package agent-shell
|
||||
:ensure t
|
||||
|
|
@ -21,9 +22,9 @@
|
|||
(setopt agent-shell-anthropic-claude-environment
|
||||
(agent-shell-make-environment-variables :inherit-env t))
|
||||
(setopt agent-shell-opencode-environment
|
||||
(agent-shell-make-environment-variables
|
||||
:inherit-env t
|
||||
"GOOGLE_CLOUD_PROJECT" "mv-ai-architecture"))
|
||||
(apply #'agent-shell-make-environment-variables
|
||||
:inherit-env t
|
||||
icejam-variables-to-load-in-agent-shell))
|
||||
(setopt
|
||||
agent-shell-opencode-default-model-id
|
||||
"google-vertex-anthropic/claude-sonnet-4-6@default"))
|
||||
|
|
|
|||
|
|
@ -110,6 +110,9 @@
|
|||
(eval-when-compile
|
||||
(declare-function exec-path-from-shell-initialize 'exec-path-from-shell))
|
||||
|
||||
;; This should be defined in secrets.
|
||||
(defvar icejam-variables-to-load-from-shell '())
|
||||
|
||||
;; Allow to execute path from shell
|
||||
(use-package exec-path-from-shell
|
||||
;; :if (memq window-system '(x mac ns))
|
||||
|
|
@ -118,19 +121,7 @@
|
|||
:hook ((elpaca-after-init . exec-path-from-shell-initialize))
|
||||
:config
|
||||
(add-to-list 'exec-path "/usr/local/bin")
|
||||
(dolist (var '("DEFT_PATH"
|
||||
"LANG"
|
||||
"LC_CTYPE"
|
||||
"CLAUDE_CODE_USE_VERTEX"
|
||||
"CLOUD_ML_REGION"
|
||||
"ANTHROPIC_VERTEX_PROJECT_ID"
|
||||
"VERTEX_REGION_CLAUDE_3_5_HAIKU"
|
||||
"VERTEX_REGION_CLAUDE_3_5_SONNET"
|
||||
"VERTEX_REGION_CLAUDE_3_7_SONNET"
|
||||
"VERTEX_REGION_CLAUDE_4_0_OPUS"
|
||||
"VERTEX_REGION_CLAUDE_4_0_SONNET"
|
||||
"VERTEX_REGION_CLAUDE_4_1_OPUS"
|
||||
"ANTHROPIC_MODEL"))
|
||||
(dolist (var icejam-variables-to-load-from-shell)
|
||||
(add-to-list 'exec-path-from-shell-variables var)))
|
||||
|
||||
(use-package direnv :ensure t :defer t
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue