wayfind 2.0.74 → 2.0.76
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
CHANGED
|
@@ -317,6 +317,18 @@ async function teamCreate() {
|
|
|
317
317
|
};
|
|
318
318
|
|
|
319
319
|
writeJSONFile(TEAM_FILE, team);
|
|
320
|
+
|
|
321
|
+
// Register in local context.json so /init-memory and other commands can find this team
|
|
322
|
+
const config = readContextConfig();
|
|
323
|
+
if (!config.teams) config.teams = {};
|
|
324
|
+
config.teams[id] = {
|
|
325
|
+
path: WAYFIND_DIR,
|
|
326
|
+
name,
|
|
327
|
+
configured_at: new Date().toISOString(),
|
|
328
|
+
};
|
|
329
|
+
if (!config.default) config.default = id;
|
|
330
|
+
writeContextConfig(config);
|
|
331
|
+
|
|
320
332
|
telemetry.capture('team_created', { member_count: 1 }, CLI_USER);
|
|
321
333
|
console.log('');
|
|
322
334
|
console.log(`Team '${name}' created.`);
|
|
@@ -3698,6 +3710,7 @@ async function contextPull(args) {
|
|
|
3698
3710
|
} else if (result.error && result.error.code === 'ETIMEDOUT') {
|
|
3699
3711
|
log('[wayfind] Team-context pull timed out — using local state');
|
|
3700
3712
|
} else {
|
|
3713
|
+
log('[wayfind] Team-context pull failed — using local state');
|
|
3701
3714
|
const stderr = (result.stderr || '').toString().trim();
|
|
3702
3715
|
if (stderr && !quiet) {
|
|
3703
3716
|
console.error(`[wayfind] Team-context pull skipped: ${stderr.split('\n')[0]}`);
|
package/package.json
CHANGED
|
@@ -42,25 +42,12 @@ fi
|
|
|
42
42
|
|
|
43
43
|
# Solo mode: index last session's conversations now
|
|
44
44
|
# Teams rely on the container's scheduled reindex instead.
|
|
45
|
+
# wayfind reindex handles its own change detection — skips fast if nothing new.
|
|
45
46
|
if [ "$HAS_CONTAINER" = "false" ]; then
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
CHANGED=$(find "$HOME/.claude/projects" -name "*.jsonl" -newer "$LAST_RUN_FILE" -print -quit 2>/dev/null)
|
|
51
|
-
if [ -z "$CHANGED" ]; then
|
|
52
|
-
SHOULD_REINDEX=false
|
|
53
|
-
fi
|
|
54
|
-
fi
|
|
55
|
-
|
|
56
|
-
if [ "$SHOULD_REINDEX" = "true" ]; then
|
|
57
|
-
echo ""
|
|
58
|
-
echo " Indexing last session's conversations..."
|
|
59
|
-
echo ""
|
|
60
|
-
$WAYFIND reindex --conversations-only --export --write-stats 2>/dev/null || true
|
|
61
|
-
mkdir -p "${WAYFIND_DIR:-$HOME/.claude/team-context}"
|
|
62
|
-
touch "$LAST_RUN_FILE"
|
|
63
|
-
fi
|
|
47
|
+
echo ""
|
|
48
|
+
echo " Indexing last session's conversations..."
|
|
49
|
+
echo ""
|
|
50
|
+
$WAYFIND reindex --conversations-only --export --write-stats 2>/dev/null || true
|
|
64
51
|
fi
|
|
65
52
|
|
|
66
53
|
# Rebuild Active Projects index (writes to global-state.md)
|
|
@@ -45,25 +45,12 @@ fi
|
|
|
45
45
|
|
|
46
46
|
# Solo mode: index last session's conversations now
|
|
47
47
|
# Teams rely on the container's scheduled reindex instead.
|
|
48
|
+
# wayfind reindex handles its own change detection — skips fast if nothing new.
|
|
48
49
|
if [ "$HAS_CONTAINER" = "false" ]; then
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
CHANGED=$(find "$HOME/.claude/projects" -name "*.jsonl" -newer "$LAST_RUN_FILE" -print -quit 2>/dev/null)
|
|
54
|
-
if [ -z "$CHANGED" ]; then
|
|
55
|
-
SHOULD_REINDEX=false
|
|
56
|
-
fi
|
|
57
|
-
fi
|
|
58
|
-
|
|
59
|
-
if [ "$SHOULD_REINDEX" = "true" ]; then
|
|
60
|
-
echo ""
|
|
61
|
-
echo " Indexing last session's conversations..."
|
|
62
|
-
echo ""
|
|
63
|
-
$WAYFIND reindex --conversations-only --export --write-stats 2>/dev/null || true
|
|
64
|
-
mkdir -p "${WAYFIND_DIR:-$HOME/.claude/team-context}"
|
|
65
|
-
touch "$LAST_RUN_FILE"
|
|
66
|
-
fi
|
|
50
|
+
echo ""
|
|
51
|
+
echo " Indexing last session's conversations..."
|
|
52
|
+
echo ""
|
|
53
|
+
$WAYFIND reindex --conversations-only --export --write-stats 2>/dev/null || true
|
|
67
54
|
fi
|
|
68
55
|
|
|
69
56
|
# Rebuild Active Projects index (writes to global-state.md)
|