You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add natural language URL lookup with Gemini CLI integration
- Add --search/-s flag for natural language document search
- Integrate Gemini CLI for intelligent normattiva.it URL discovery
- Add lookup_normattiva_url() function with error handling
- Update tests with URLLookupTest class
- Bump version to 1.5.0
- Update documentation and LOG.md
The current tool requires users to provide exact normattiva.it URLs. This proposal adds natural language input capability using Gemini CLI to interpret user strings and find corresponding URLs.
3
+
4
+
## Goals / Non-Goals
5
+
- Goals: Enable natural language search for legal documents, maintain existing URL/XML input methods
6
+
- Non-Goals: Replace existing input methods, add general web search (only normattiva.it), store search history
7
+
8
+
## Decisions
9
+
- Use Gemini CLI headless with -p flag for AI-powered interpretation
10
+
- Add new CLI flag for natural language input
11
+
- Integrate URL lookup as preprocessing step before existing conversion
12
+
- Fallback to existing behavior if URL lookup fails
13
+
14
+
## Risks / Trade-offs
15
+
- External dependency on Gemini CLI (user must install separately)
16
+
- Potential API rate limits or costs for Gemini usage
Users currently need to know exact normattiva.it URLs to convert legal documents. This creates a barrier for users who know the law by name (e.g., "legge stanca") but not its URL. Adding natural language search would make the tool more accessible and user-friendly.
3
+
4
+
## What Changes
5
+
- Add new CLI option to accept natural language strings instead of URLs
6
+
- Integrate Gemini CLI headless to interpret strings and search normattiva.it
7
+
- Automatically resolve found URLs and pass to existing conversion logic
8
+
-**BREAKING**: No breaking changes, this is an additive feature
9
+
10
+
## Impact
11
+
- Affected specs: New url-lookup capability
12
+
- Affected code: Main CLI entry point, new URL lookup module
13
+
- New dependency: Gemini CLI (external tool)
14
+
- User experience: Simplified input for legal document conversion
0 commit comments