forge-cw 0.1.10 → 0.1.11

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.
Files changed (3) hide show
  1. package/cw/.bundle.json +1 -1
  2. package/cw/cw +15 -11
  3. package/package.json +1 -1
package/cw/.bundle.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "repo": "https://github.com/avarajar/cw.git",
3
- "ref": "2411230d86ea745e5e08ac64993e35f8f107e69d"
3
+ "ref": "4fa95d752c8ae5301b807f1b025461306b699071"
4
4
  }
package/cw/cw CHANGED
@@ -2991,19 +2991,23 @@ $(cat "$wf_file")"
2991
2991
  fi
2992
2992
  fi
2993
2993
 
2994
- # ── Account work context (init) ──────────────────────────────────
2995
- local acct_init_tpl="$(_account_root "$account")/templates/work_init.md"
2996
- if [[ -f "$acct_init_tpl" ]]; then
2997
- local acct_ctx
2998
- acct_ctx=$(cat "$acct_init_tpl")
2999
- acct_ctx="${acct_ctx//\$\{task\}/$task}"
3000
- acct_ctx="${acct_ctx//\$\{project\}/$name}"
3001
- acct_ctx="${acct_ctx//\$\{branch\}/$task}"
2994
+ # ── Work context (init): global first, then the account's ────────
2995
+ local init_tpl init_ctx
2996
+ for init_tpl in "$CW_HOME/templates/work_init.md" "$(_account_root "$account")/templates/work_init.md"; do
2997
+ [[ -f "$init_tpl" ]] || continue
2998
+ init_ctx=$(cat "$init_tpl")
2999
+ init_ctx="${init_ctx//\$\{task\}/$task}"
3000
+ init_ctx="${init_ctx//\$\{project\}/$name}"
3001
+ init_ctx="${init_ctx//\$\{branch\}/$task}"
3002
3002
  init_prompt="$init_prompt
3003
3003
 
3004
- $acct_ctx"
3005
- _dim " Account context: $account"
3006
- fi
3004
+ $init_ctx"
3005
+ if [[ "$init_tpl" == "$CW_HOME/templates/work_init.md" ]]; then
3006
+ _dim " Work context: global"
3007
+ else
3008
+ _dim " Account context: $account"
3009
+ fi
3010
+ done
3007
3011
 
3008
3012
  # Exclude .tasks from git (but DON'T pre-create the task dir — worktree needs it empty)
3009
3013
  mkdir -p "$path/.tasks"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forge-cw",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "A visual dashboard for your coding agents on Claude Code, Codex, Pi or OpenCode. Installs CW for you.",
5
5
  "license": "MIT",
6
6
  "type": "module",