lokuma-cli 1.2.7 → 1.2.9
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/assets/search.py +16 -8
- package/package.json +1 -1
package/assets/search.py
CHANGED
|
@@ -5,9 +5,15 @@ Lokuma Search - Cloud Client
|
|
|
5
5
|
Calls the Lokuma cloud API to generate design intelligence.
|
|
6
6
|
|
|
7
7
|
Usage:
|
|
8
|
-
python search.py "<
|
|
9
|
-
python search.py "<
|
|
10
|
-
python search.py "<
|
|
8
|
+
python search.py "<natural language design request>" [--domain <domain>] [--max-results 3]
|
|
9
|
+
python search.py "<natural language design request>" --stack <stack>
|
|
10
|
+
python search.py "<natural language product/design brief>" --design-system [-p "Project Name"] [-f ascii|markdown|json]
|
|
11
|
+
|
|
12
|
+
Examples:
|
|
13
|
+
python search.py "A meditation app for stressed professionals. Calm, premium, organic." --design-system -p "Still"
|
|
14
|
+
python search.py "Need a calm but premium color direction for a wellness app" --domain color
|
|
15
|
+
python search.py "Best landing page structure for an AI productivity SaaS that needs signups" --domain landing
|
|
16
|
+
python search.py "Navigation performance and gestures for a React Native app" --stack react-native
|
|
11
17
|
|
|
12
18
|
Configuration:
|
|
13
19
|
Set LOKUMA_API_KEY environment variable (required):
|
|
@@ -16,8 +22,8 @@ Configuration:
|
|
|
16
22
|
Optional overrides:
|
|
17
23
|
LOKUMA_API_URL=https://custom.endpoint.com (default: official API)
|
|
18
24
|
|
|
19
|
-
Domains: style, color, chart, landing, product, ux, typography,
|
|
20
|
-
|
|
25
|
+
Domains: style, color, chart, landing, product, reasoning, ux, typography,
|
|
26
|
+
google-fonts, icons
|
|
21
27
|
Stacks: react-native
|
|
22
28
|
"""
|
|
23
29
|
|
|
@@ -140,7 +146,9 @@ def format_search_output(result: dict) -> str:
|
|
|
140
146
|
else:
|
|
141
147
|
output.append("## Lokuma Search Results")
|
|
142
148
|
output.append(f"**Domain:** {result['domain']} | **Query:** {result['query']}")
|
|
143
|
-
|
|
149
|
+
|
|
150
|
+
source = result.get("file") or result.get("source") or "cloud API"
|
|
151
|
+
output.append(f"**Source:** {source} | **Found:** {result.get('count', len(result.get('results', [])))} results\n")
|
|
144
152
|
|
|
145
153
|
for i, row in enumerate(result.get("results", []), 1):
|
|
146
154
|
output.append(f"### Result {i}")
|
|
@@ -159,8 +167,8 @@ def format_search_output(result: dict) -> str:
|
|
|
159
167
|
# ─────────────────────────────────────────────
|
|
160
168
|
|
|
161
169
|
VALID_DOMAINS = [
|
|
162
|
-
"style", "color", "chart", "landing", "product", "ux",
|
|
163
|
-
"typography", "google-fonts", "icons",
|
|
170
|
+
"style", "color", "chart", "landing", "product", "reasoning", "ux",
|
|
171
|
+
"typography", "google-fonts", "icons",
|
|
164
172
|
]
|
|
165
173
|
VALID_STACKS = ["react-native"]
|
|
166
174
|
|