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.
Files changed (2) hide show
  1. package/assets/search.py +16 -8
  2. 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 "<query>" [--domain <domain>] [--max-results 3]
9
- python search.py "<query>" --stack <stack>
10
- python search.py "<query>" --design-system [-p "Project Name"] [-f ascii|markdown|json]
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, google-fonts,
20
- icons, react, web
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
- output.append(f"**Source:** {result['file']} | **Found:** {result['count']} results\n")
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", "react", "web",
170
+ "style", "color", "chart", "landing", "product", "reasoning", "ux",
171
+ "typography", "google-fonts", "icons",
164
172
  ]
165
173
  VALID_STACKS = ["react-native"]
166
174
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lokuma-cli",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "description": "CLI to install Lokuma design intelligence skill for AI coding assistants",
5
5
  "type": "module",
6
6
  "bin": {