wayfind 2.0.26 → 2.0.28
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/bin/team-context.js +20 -12
- package/package.json +1 -1
- package/templates/autopilot/strategy.md +5 -2
package/bin/team-context.js
CHANGED
|
@@ -14,7 +14,7 @@ if (!HOME) {
|
|
|
14
14
|
process.exit(1);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
const WAYFIND_DIR = path.join(HOME, '.claude', 'team-context');
|
|
17
|
+
const WAYFIND_DIR = process.env.WAYFIND_DIR || path.join(HOME, '.claude', 'team-context');
|
|
18
18
|
|
|
19
19
|
// --- Env var migration shim (v2.0.0) ---
|
|
20
20
|
// Honor old MERIDIAN_* env vars with deprecation warning. Remove in v3.0.
|
|
@@ -4550,8 +4550,15 @@ const COMMANDS = {
|
|
|
4550
4550
|
}
|
|
4551
4551
|
let newVersion = '';
|
|
4552
4552
|
try {
|
|
4553
|
-
|
|
4554
|
-
|
|
4553
|
+
// After npm install, ROOT still points to the old code in memory.
|
|
4554
|
+
// Resolve the freshly installed package path from npm global root.
|
|
4555
|
+
const globalRoot = spawnSync('npm', ['root', '-g'], { stdio: 'pipe' });
|
|
4556
|
+
const freshPkgPath = path.join((globalRoot.stdout || '').toString().trim(), 'wayfind', 'package.json');
|
|
4557
|
+
if (fs.existsSync(freshPkgPath)) {
|
|
4558
|
+
newVersion = JSON.parse(fs.readFileSync(freshPkgPath, 'utf8')).version;
|
|
4559
|
+
} else {
|
|
4560
|
+
newVersion = require(path.join(ROOT, 'package.json')).version;
|
|
4561
|
+
}
|
|
4555
4562
|
} catch (e) {
|
|
4556
4563
|
// Can't read package.json
|
|
4557
4564
|
}
|
|
@@ -4668,17 +4675,18 @@ const COMMANDS = {
|
|
|
4668
4675
|
version: {
|
|
4669
4676
|
desc: 'Print installed Wayfind version',
|
|
4670
4677
|
run: () => {
|
|
4671
|
-
|
|
4678
|
+
// Primary: read from package.json (always accurate after npm install)
|
|
4672
4679
|
try {
|
|
4673
|
-
const
|
|
4674
|
-
console.log(`Wayfind v${version}`);
|
|
4675
|
-
} catch (
|
|
4676
|
-
//
|
|
4680
|
+
const pkg = require(path.join(ROOT, 'package.json'));
|
|
4681
|
+
console.log(`Wayfind v${pkg.version}`);
|
|
4682
|
+
} catch (e) {
|
|
4683
|
+
// Fallback: cached version file (may be stale after update)
|
|
4684
|
+
const versionFile = path.join(HOME, '.claude', 'team-context', '.wayfind-version');
|
|
4677
4685
|
try {
|
|
4678
|
-
const
|
|
4679
|
-
console.log(`Wayfind v${
|
|
4680
|
-
} catch (
|
|
4681
|
-
console.error('Version unknown
|
|
4686
|
+
const version = fs.readFileSync(versionFile, 'utf8').trim();
|
|
4687
|
+
console.log(`Wayfind v${version}`);
|
|
4688
|
+
} catch (err) {
|
|
4689
|
+
console.error('Version unknown');
|
|
4682
4690
|
process.exit(1);
|
|
4683
4691
|
}
|
|
4684
4692
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Strategy Persona — Autopilot Prompt
|
|
2
2
|
|
|
3
|
-
You are the Strategy persona for this team. You scan session journals and signal data to surface what a
|
|
3
|
+
You are the Strategy persona for this team. You scan session journals and signal data to surface what a CEO or business leader needs to know — and nothing else. Your reader is not an engineer. They think in customers, revenue, competitive position, and team capacity — not code, databases, or issue numbers.
|
|
4
4
|
|
|
5
5
|
## Your job
|
|
6
6
|
|
|
@@ -17,7 +17,10 @@ Find the 5 most consequential strategic items from this period. "Consequential"
|
|
|
17
17
|
- **Each item: bold headline + one sentence of context.** The headline should make someone stop scrolling. The context sentence connects the dots — why this pattern matters at the company level.
|
|
18
18
|
- **Include the "so what?"** Don't just state facts — say what's at risk strategically or what opportunity is being missed.
|
|
19
19
|
- **Skip anything routine.** If it's business as usual, it's not digest-worthy.
|
|
20
|
-
- **Reference specifics** —
|
|
20
|
+
- **Reference specifics** — team patterns, data points, timelines, customer impact.
|
|
21
|
+
- **No engineering jargon.** Translate technical details into business language. "The data pipeline
|
|
22
|
+
is blocked" not "ODBC driver compilation fails in the container." No issue numbers, no repo
|
|
23
|
+
names, no library names. If you can't explain it without jargon, it's probably not strategic.
|
|
21
24
|
- **Do not include a title or header line.** The digest system adds its own header.
|
|
22
25
|
|
|
23
26
|
## Tone
|