feed-the-machine 1.7.2 → 1.7.3

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.
@@ -78,6 +78,49 @@ if [[ "$MATCHED" == "false" ]]; then
78
78
  exit 0 # No external system work detected
79
79
  fi
80
80
 
81
+ # Check blackboard for experiences that say "you already have access — just do it"
82
+ # If a matching experience exists with tags like "api-access" or "full-access",
83
+ # skip the discovery interview — the user has already established this context.
84
+ FTM_STATE="$HOME/.claude/ftm-state"
85
+ EXP_INDEX="$FTM_STATE/blackboard/experiences/index.json"
86
+ CWD_NAME=$(basename "$(git rev-parse --show-toplevel 2>/dev/null || pwd)")
87
+
88
+ if [ -f "$EXP_INDEX" ]; then
89
+ SKIP_DISCOVERY=$(python3 -c "
90
+ import json, sys
91
+ try:
92
+ with open('$EXP_INDEX') as f:
93
+ idx = json.load(f)
94
+ for entry in idx.get('entries', []):
95
+ tags = entry.get('tags', [])
96
+ # Skip discovery if there's an experience tagged with api-access or the repo name
97
+ # that indicates we already know we have credentials and should just act
98
+ tag_str = ' '.join(tags).lower()
99
+ if 'api-access' in tag_str or 'full-access' in tag_str or 'just-do-it' in tag_str:
100
+ print('1')
101
+ sys.exit(0)
102
+ if '$CWD_NAME' in tag_str and ('api' in tag_str or 'access' in tag_str or 'credentials' in tag_str):
103
+ print('1')
104
+ sys.exit(0)
105
+ print('0')
106
+ except:
107
+ print('0')
108
+ " 2>/dev/null)
109
+
110
+ if [ "$SKIP_DISCOVERY" = "1" ]; then
111
+ # Don't block — but change the nudge to "you have access, just do it"
112
+ cat <<JSON
113
+ {
114
+ "hookSpecificOutput": {
115
+ "hookEventName": "UserPromptSubmit",
116
+ "additionalContext": "[ftm-discovery-reminder] Blackboard has an experience confirming API access in this repo. Do NOT run a discovery interview — you have credentials and access. Just do the thing. If something fails, debug it directly."
117
+ }
118
+ }
119
+ JSON
120
+ exit 0
121
+ fi
122
+ fi
123
+
81
124
  # Inject discovery interview reminder
82
125
  cat <<JSON
83
126
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feed-the-machine",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "A brain upgrade for Claude Code — 26 skills that teach it how to think before acting, remember across conversations, debug like a war room, run plans on autopilot with agent teams, and get second opinions from GPT & Gemini. Plus 15 hooks that automate the boring stuff.",
5
5
  "license": "MIT",
6
6
  "author": "kkudumu",