pi-powerline 0.6.3 → 0.7.0

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # [0.7.0](https://github.com/jwu/pi-powerline/compare/v0.6.3...v0.7.0) (2026-05-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **auto-format:** update pi import package ([3d67f66](https://github.com/jwu/pi-powerline/commit/3d67f6650be48de18b90f8c4582609f691e60cd3))
7
+
8
+
9
+ ### Features
10
+
11
+ * **header:** tag path packages distinctly ([471c409](https://github.com/jwu/pi-powerline/commit/471c409457de296ff94a96812e9706938981e5aa))
12
+
1
13
  ## [0.6.3](https://github.com/jwu/pi-powerline/compare/v0.6.2...v0.6.3) (2026-05-24)
2
14
 
3
15
 
@@ -450,13 +450,19 @@ function resolvePackageDir(source: string, cwd: string, home = getHomeDir()): st
450
450
 
451
451
  // ── getPackages: name+version from each configured package ──
452
452
 
453
+ function getPackageScopeTag(source: string, scope: PackageSource['scope']): string {
454
+ const isPathSource = !source.startsWith('npm:');
455
+ if (scope === 'project') return isPathSource ? ' [lp]' : ' [l]';
456
+ return isPathSource ? ' [gp]' : ' [g]';
457
+ }
458
+
453
459
  function getPackages(cwd: string, home = getHomeDir()): string[] {
454
460
  const sources = readPackageSources(cwd, home);
455
461
  const results: string[] = [];
456
462
 
457
463
  for (const { source, scope } of sources) {
458
464
  const pkgDir = resolvePackageDir(source, cwd, home);
459
- const scopeTag = scope === 'project' ? ' [l]' : ' [g]';
465
+ const scopeTag = getPackageScopeTag(source, scope);
460
466
  if (!pkgDir) {
461
467
  // fallback: show npm package name or raw source
462
468
  const name = source.startsWith('npm:') ? source.slice(4) : source;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-powerline",
3
- "version": "0.6.3",
3
+ "version": "0.7.0",
4
4
  "description": "Powerline-style UI extensions for pi coding agent (custom editor, breadcrumb, footer, header)",
5
5
  "homepage": "https://github.com/jwu/pi-powerline#readme",
6
6
  "repository": {