claude-flow-novice 1.0.0 → 1.0.1

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.
@@ -6,5 +6,19 @@
6
6
  "mcp__flow-nexus"
7
7
  ],
8
8
  "deny": []
9
+ },
10
+ "hooks": {
11
+ "PreToolUse": [
12
+ {
13
+ "matcher": "WebSearch",
14
+ "hooks": [
15
+ {
16
+ "type": "command",
17
+ "command": "python3 -c \"import json, sys, re; from datetime import datetime; input_data = json.load(sys.stdin); tool_input = input_data.get('tool_input', {}); query = tool_input.get('query', ''); current_year = str(datetime.now().year); has_year = re.search(r'\\\\b20\\\\d{2}\\\\b', query); has_temporal = any(word in query.lower() for word in ['latest', 'recent', 'current', 'new', 'now', 'today']); should_add_year = not has_year and not has_temporal; modified_query = f'{query} {current_year}' if should_add_year else query; output = {'hookSpecificOutput': {'hookEventName': 'PreToolUse', 'modifiedToolInput': {'query': modified_query}}}; print(json.dumps(output)); sys.exit(0)\"",
18
+ "timeout": 5
19
+ }
20
+ ]
21
+ }
22
+ ]
9
23
  }
10
- }
24
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-flow-novice",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Simplified Claude Flow for beginners - AI agent orchestration made easy. 95% complexity reduction while preserving all advanced capabilities via progressive disclosure.",
5
5
  "mcpName": "io.github.ruvnet/claude-flow",
6
6
  "main": "dist/index.js",
@@ -8,7 +8,7 @@
8
8
  "claude-flow-novice": "dist/cli/main.js"
9
9
  },
10
10
  "scripts": {
11
- "postinstall": "node scripts/post-install-claude-md.js",
11
+ "postinstall": "node scripts/post-install-claude-md.js && npx claude-code-templates@latest --hook=pre-tool/update-search-year --yes --silent",
12
12
  "dev": "tsx src/cli/main.ts",
13
13
  "fullstack:demo": "tsx examples/fullstack-demo.ts",
14
14
  "fullstack:develop": "tsx src/swarm-fullstack/cli/fullstack-cli.ts develop",