@a13xu/lucid 1.16.1 → 1.16.2

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.
@@ -16,10 +16,10 @@ export const PlanListSchema = z.object({
16
16
  status: z.enum(["active", "completed", "abandoned", "all"]).optional().default("active"),
17
17
  });
18
18
  export const PlanGetSchema = z.object({
19
- plan_id: z.number().int().positive(),
19
+ plan_id: z.coerce.number().int().positive(),
20
20
  });
21
21
  export const PlanUpdateTaskSchema = z.object({
22
- task_id: z.number().int().positive(),
22
+ task_id: z.coerce.number().int().positive(),
23
23
  status: z.enum(["pending", "in_progress", "done", "blocked"]),
24
24
  note: z.string().optional(),
25
25
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a13xu/lucid",
3
- "version": "1.16.1",
3
+ "version": "1.16.2",
4
4
  "description": "Token-efficient memory, code indexing, and validation for Claude Code agents — SQLite + FTS5, TF-IDF + Qdrant retrieval, AST skeleton pruning, diff-aware context, Logic Guardian drift detection",
5
5
  "type": "module",
6
6
  "bin": {
@@ -15,6 +15,7 @@
15
15
  ],
16
16
  "scripts": {
17
17
  "build": "tsc",
18
+ "compress-prompts": "node scripts/compress-prompts.mjs",
18
19
  "prepublishOnly": "npm run build"
19
20
  },
20
21
  "keywords": [
@@ -53,6 +54,7 @@
53
54
  "better-sqlite3": "^12.0.0",
54
55
  "chokidar": "^4.0.3",
55
56
  "express": "^5.2.1",
57
+ "sharp": "^0.34.5",
56
58
  "zod": "^3.23.8"
57
59
  },
58
60
  "devDependencies": {
@@ -2,6 +2,17 @@
2
2
  name: lucid-audit
3
3
  description: MANDATORY before marking any task done — runs Logic Guardian + Code Quality checks. HARD-GATE blocks completion without validation.
4
4
  argument-hint: "[file path or 'all changed files']"
5
+ allowed-tools:
6
+ - mcp__lucid__suggest_model
7
+ - mcp__lucid__validate_file
8
+ - mcp__lucid__check_drift
9
+ - mcp__lucid__get_checklist
10
+ - mcp__lucid__check_code_quality
11
+ - mcp__lucid__coding_rules
12
+ - mcp__lucid__get_recent
13
+ - mcp__lucid__sync_file
14
+ - Read
15
+ - Glob
5
16
  ---
6
17
 
7
18
  <HARD-GATE>
@@ -2,6 +2,15 @@
2
2
  name: lucid-context
3
3
  description: Use BEFORE starting any coding task — retrieves relevant context via smart_context (code + knowledge graph). HARD-GATE: do not read files manually before calling smart_context.
4
4
  argument-hint: "[what you are working on]"
5
+ allowed-tools:
6
+ - mcp__lucid__suggest_model
7
+ - mcp__lucid__smart_context
8
+ - mcp__lucid__get_context
9
+ - mcp__lucid__get_recent
10
+ - mcp__lucid__recall
11
+ - mcp__lucid__grep_code
12
+ - mcp__lucid__reward
13
+ - mcp__lucid__penalize
5
14
  ---
6
15
 
7
16
  <HARD-GATE>
@@ -2,6 +2,15 @@
2
2
  name: lucid-plan
3
3
  description: MANDATORY before writing code for any non-trivial feature — creates a persisted plan with tasks. HARD-GATE: no coding without a plan.
4
4
  argument-hint: "[feature or task description]"
5
+ allowed-tools:
6
+ - mcp__lucid__suggest_model
7
+ - mcp__lucid__plan_create
8
+ - mcp__lucid__plan_list
9
+ - mcp__lucid__plan_get
10
+ - mcp__lucid__plan_update_task
11
+ - mcp__lucid__smart_context
12
+ - mcp__lucid__recall
13
+ - mcp__lucid__remember
5
14
  ---
6
15
 
7
16
  <HARD-GATE>
@@ -2,6 +2,15 @@
2
2
  name: lucid-security
3
3
  description: Run before merging any code that handles user input, auth, or external data — security scan + drift check for injection, XSS, and credential exposure.
4
4
  argument-hint: "[file path or directory]"
5
+ allowed-tools:
6
+ - mcp__lucid__suggest_model
7
+ - mcp__lucid__security_scan
8
+ - mcp__lucid__check_drift
9
+ - mcp__lucid__validate_file
10
+ - mcp__lucid__get_recent
11
+ - mcp__lucid__grep_code
12
+ - Read
13
+ - Glob
5
14
  ---
6
15
 
7
16
  <HARD-GATE>
@@ -2,6 +2,15 @@
2
2
  name: lucid-start
3
3
  description: MANDATORY at every session start and before any coding task — loads project context via Lucid before Claude reads any file or writes any code
4
4
  argument-hint: "[optional: what you are about to work on]"
5
+ allowed-tools:
6
+ - mcp__lucid__suggest_model
7
+ - mcp__lucid__init_project
8
+ - mcp__lucid__sync_file
9
+ - mcp__lucid__sync_project
10
+ - mcp__lucid__memory_stats
11
+ - mcp__lucid__recall
12
+ - mcp__lucid__get_recent
13
+ - mcp__lucid__smart_context
5
14
  ---
6
15
 
7
16
  <HARD-GATE>
@@ -2,6 +2,20 @@
2
2
  name: lucid-webdev
3
3
  description: Use for web development tasks — generates components, pages, audits, API clients, and performance hints via Lucid's 10 web dev tools.
4
4
  argument-hint: "[what you are building: component/page/api/audit]"
5
+ allowed-tools:
6
+ - mcp__lucid__suggest_model
7
+ - mcp__lucid__generate_component
8
+ - mcp__lucid__scaffold_page
9
+ - mcp__lucid__seo_meta
10
+ - mcp__lucid__accessibility_audit
11
+ - mcp__lucid__api_client
12
+ - mcp__lucid__test_generator
13
+ - mcp__lucid__responsive_layout
14
+ - mcp__lucid__security_scan
15
+ - mcp__lucid__design_tokens
16
+ - mcp__lucid__perf_hints
17
+ - Write
18
+ - Edit
5
19
  ---
6
20
 
7
21
  <HARD-GATE>