Skip to content

Commit f75dcbe

Browse files
github-actions[bot]prosdev
authored andcommitted
chore: release packages
1 parent 4bc1497 commit f75dcbe

File tree

13 files changed

+143
-54
lines changed

13 files changed

+143
-54
lines changed

.changeset/arrow-function-extraction.md

Lines changed: 0 additions & 48 deletions
This file was deleted.

packages/cli/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @lytics/dev-agent-cli
22

3+
## 0.1.9
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [d0481b4]
8+
- @lytics/dev-agent-core@0.5.0
9+
- @lytics/dev-agent-mcp@0.4.4
10+
- @lytics/dev-agent-subagents@0.3.1
11+
312
## 0.1.8
413

514
### Patch Changes

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lytics/dev-agent-cli",
3-
"version": "0.1.8",
3+
"version": "0.1.9",
44
"private": true,
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

packages/core/CHANGELOG.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,57 @@
11
# @lytics/dev-agent-core
22

3+
## 0.5.0
4+
5+
### Minor Changes
6+
7+
- d0481b4: feat(scanner): Extract arrow functions, function expressions, and exported constants
8+
9+
### New Features
10+
11+
**Arrow Function Extraction**
12+
13+
- Extract arrow functions assigned to `const`/`let` variables
14+
- Extract function expressions assigned to variables
15+
- Detect React hooks automatically (`use*` naming pattern)
16+
- Detect async arrow functions
17+
18+
**Exported Constant Extraction**
19+
20+
- Extract exported `const` with object literal initializers (config objects)
21+
- Extract exported `const` with array literal initializers (static lists)
22+
- Extract exported `const` with call expression initializers (factories like `createContext()`)
23+
24+
### API Changes
25+
26+
**New DocumentType value:**
27+
28+
- Added `'variable'` to `DocumentType` union
29+
30+
**New metadata fields:**
31+
32+
- `isArrowFunction?: boolean` - true for arrow functions (vs function expressions)
33+
- `isHook?: boolean` - true if name matches `/^use[A-Z]/` (React convention)
34+
- `isAsync?: boolean` - true for async functions
35+
- `isConstant?: boolean` - true for exported constants
36+
- `constantKind?: 'object' | 'array' | 'value'` - kind of constant initializer
37+
38+
### Examples
39+
40+
Now extracts:
41+
42+
```typescript
43+
export const useAuth = () => { ... } // Hook (isHook: true)
44+
export const fetchData = async (url) => { ... } // Async (isAsync: true)
45+
const validateEmail = (email: string) => ... // Utility function
46+
export const API_CONFIG = { baseUrl: '...' } // Object constant
47+
export const LANGUAGES = ['ts', 'js'] // Array constant
48+
export const AppContext = createContext({}) // Factory constant
49+
```
50+
51+
### Migration
52+
53+
No breaking changes. The new `'variable'` DocumentType is additive. Existing queries for `'function'`, `'class'`, etc. continue to work unchanged.
54+
355
## 0.4.0
456

557
### Minor Changes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lytics/dev-agent-core",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"private": true,
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

packages/dev-agent/CHANGELOG.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,57 @@
11
# @lytics/dev-agent
22

3+
## 0.5.0
4+
5+
### Minor Changes
6+
7+
- d0481b4: feat(scanner): Extract arrow functions, function expressions, and exported constants
8+
9+
### New Features
10+
11+
**Arrow Function Extraction**
12+
13+
- Extract arrow functions assigned to `const`/`let` variables
14+
- Extract function expressions assigned to variables
15+
- Detect React hooks automatically (`use*` naming pattern)
16+
- Detect async arrow functions
17+
18+
**Exported Constant Extraction**
19+
20+
- Extract exported `const` with object literal initializers (config objects)
21+
- Extract exported `const` with array literal initializers (static lists)
22+
- Extract exported `const` with call expression initializers (factories like `createContext()`)
23+
24+
### API Changes
25+
26+
**New DocumentType value:**
27+
28+
- Added `'variable'` to `DocumentType` union
29+
30+
**New metadata fields:**
31+
32+
- `isArrowFunction?: boolean` - true for arrow functions (vs function expressions)
33+
- `isHook?: boolean` - true if name matches `/^use[A-Z]/` (React convention)
34+
- `isAsync?: boolean` - true for async functions
35+
- `isConstant?: boolean` - true for exported constants
36+
- `constantKind?: 'object' | 'array' | 'value'` - kind of constant initializer
37+
38+
### Examples
39+
40+
Now extracts:
41+
42+
```typescript
43+
export const useAuth = () => { ... } // Hook (isHook: true)
44+
export const fetchData = async (url) => { ... } // Async (isAsync: true)
45+
const validateEmail = (email: string) => ... // Utility function
46+
export const API_CONFIG = { baseUrl: '...' } // Object constant
47+
export const LANGUAGES = ['ts', 'js'] // Array constant
48+
export const AppContext = createContext({}) // Factory constant
49+
```
50+
51+
### Migration
52+
53+
No breaking changes. The new `'variable'` DocumentType is additive. Existing queries for `'function'`, `'class'`, etc. continue to work unchanged.
54+
355
## 0.4.4
456

557
### Patch Changes

packages/dev-agent/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lytics/dev-agent",
3-
"version": "0.4.4",
3+
"version": "0.5.0",
44
"private": false,
55
"description": "Deep code intelligence + AI subagents via MCP. Local-first semantic code search, GitHub integration, and development planning for AI tools like Cursor and Claude Code.",
66
"keywords": [

packages/integrations/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @lytics/dev-agent-integrations
22

3+
## 0.1.9
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [d0481b4]
8+
- @lytics/dev-agent-core@0.5.0
9+
- @lytics/dev-agent-cli@0.1.9
10+
- @lytics/dev-agent-subagents@0.3.1
11+
312
## 0.1.8
413

514
### Patch Changes

packages/integrations/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lytics/dev-agent-integrations",
3-
"version": "0.1.8",
3+
"version": "0.1.9",
44
"private": true,
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

packages/mcp-server/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @lytics/dev-agent-mcp
22

3+
## 0.4.4
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [d0481b4]
8+
- @lytics/dev-agent-core@0.5.0
9+
- @lytics/dev-agent-subagents@0.3.1
10+
311
## 0.4.3
412

513
### Patch Changes

0 commit comments

Comments
 (0)