diff --git a/.agents/skills/managing-nono-profiles/SKILL.md b/.agents/skills/managing-nono-profiles/SKILL.md index da5eb25..dceca05 100644 --- a/.agents/skills/managing-nono-profiles/SKILL.md +++ b/.agents/skills/managing-nono-profiles/SKILL.md @@ -45,7 +45,7 @@ Profiles that serve a single employer or employer project are named `work-{work_ 1. Add the profile to `private_dot_config/nono/profiles/` as `work-{work_name}-.jsonc`, with the same `meta.name`. List `work-{work_name}-common` first in `extends`, followed by the personal profiles the project needs. 2. Make sure `.chezmoiignore` has a block that ignores `.config/nono/profiles/work-{work_name}-*` unless `personal.work_env` is true and `personal.work_name` matches. Each employer needs one block, not one entry per profile. -3. Add the launcher function to the matching agent file in `private_dot_work/private_{work_name}/agents/shell/`, calling the shared helper with the profile name (for example `_claude_nono work-sedg-claude-code-energy-runtime`). +3. Add the launcher function to the matching agent file in `private_dot_work/private_{work_name}/agents/shell/`, calling the launcher helper that file already uses with the profile name (for example `_claude_nono work-sedg-claude-code-energy-runtime`). An employer file may wrap the shared helper, for example to preload extra SSH keys, so do not bypass its wrapper. 4. For a new employer launcher file, source it from `private_dot_work/private_{work_name}/zsh/dot_zshrc.tmpl` inside the existing `command -v nono` block. Each employer project gets its own profile and launcher; there are no employer variants of the general launchers such as `claude-go`. `work-{work_name}-common` is agent-neutral: it holds the access every project of that employer needs regardless of agent (employer domains, credentials, tool config), extends nothing, and is shared by employer profiles of any agent. Put agent-specific employer access in a separate `work-{work_name}--common` profile. Keep employer access out of personal profiles such as `my-claude-code`. diff --git a/private_dot_config/nono/profiles/claude-code-python.jsonc b/private_dot_config/nono/profiles/claude-code-python.jsonc index d6414f7..230325f 100644 --- a/private_dot_config/nono/profiles/claude-code-python.jsonc +++ b/private_dot_config/nono/profiles/claude-code-python.jsonc @@ -7,5 +7,10 @@ "meta": { "name": "claude-code-python", "description": "Profile for developing Python applications with Claude Code" + }, + "filesystem": { + "read": [ + "$HOME/Library/Application Support/pypoetry" + ] } } diff --git a/private_dot_config/nono/profiles/work-sedg-claude-code-edge-metadata.jsonc b/private_dot_config/nono/profiles/work-sedg-claude-code-edge-metadata.jsonc new file mode 100644 index 0000000..755dcb6 --- /dev/null +++ b/private_dot_config/nono/profiles/work-sedg-claude-code-edge-metadata.jsonc @@ -0,0 +1,12 @@ +{ + "$schema": "../schemas/nono-profile.schema.json", + "extends": [ + "work-sedg-common", + "claude-code-python", + "claude-code-node" + ], + "meta": { + "name": "work-sedg-claude-code-edge-metadata", + "description": "Profile for developing the Edge Metadata project with Claude Code" + } +} diff --git a/private_dot_config/nono/profiles/work-sedg-common.jsonc b/private_dot_config/nono/profiles/work-sedg-common.jsonc index 2e2c8aa..20039b3 100644 --- a/private_dot_config/nono/profiles/work-sedg-common.jsonc +++ b/private_dot_config/nono/profiles/work-sedg-common.jsonc @@ -14,10 +14,12 @@ "$HOME/Library/Application Support/glab-cli" ], "read_file": [ - "$XDG_DATA_HOME/.atlassian-token" // Atlassian's API token - For agents + "$XDG_DATA_HOME/.atlassian-token", // Atlassian's API token - For agents + "$HOME/.ssh/id_rsa.pub" // Lets ssh match the host agent's RSA key for Azure DevOps auth ], "bypass_protection": [ - "$HOME/.azure" + "$HOME/.azure", + "$HOME/.ssh/id_rsa.pub" ], "suppress_save_prompt": [ "$HOME/Projects/sedg", @@ -34,7 +36,9 @@ "balena.io", "docs.balena.io", "balena-cloud.com", - "edge-controller-2.internal.hark.network" + "edge-controller-2.internal.hark.network", + "docker-esh.solaredge.com", + "seil-nexus-rnd.solaredge.com" ] } } diff --git a/private_dot_work/private_sedg/agents/shell/claude.zsh b/private_dot_work/private_sedg/agents/shell/claude.zsh index ce76867..03446c6 100644 --- a/private_dot_work/private_sedg/agents/shell/claude.zsh +++ b/private_dot_work/private_sedg/agents/shell/claude.zsh @@ -1,7 +1,15 @@ -function claude-sedg() { _claude_nono work-sedg-claude-code "$@" } +# Azure DevOps SSH auth uses the RSA key, so make sure the host agent holds it. +function _sedg_claude_nono() { + _nono_agent_ensure_ssh_signing_key "$HOME/.ssh/id_rsa.pub" "$HOME/.ssh/id_rsa" + _claude_nono "$@" +} -function claude-energy-runtime() { _claude_nono work-sedg-claude-code-energy-runtime "$@" } +function claude-sedg() { _sedg_claude_nono work-sedg-claude-code "$@" } -function claude-inverter-driver() { _claude_nono work-sedg-claude-code-inverter-driver "$@" } +function claude-energy-runtime() { _sedg_claude_nono work-sedg-claude-code-energy-runtime "$@" } -function claude-lcp-docs() { _claude_nono work-sedg-claude-code-lcp-docs "$@" } +function claude-inverter-driver() { _sedg_claude_nono work-sedg-claude-code-inverter-driver "$@" } + +function claude-lcp-docs() { _sedg_claude_nono work-sedg-claude-code-lcp-docs "$@" } + +function claude-edge-metadata() { _sedg_claude_nono work-sedg-claude-code-edge-metadata "$@" }