Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Awing Rules ClaudeCode Mcp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
awing-mcp
Awing Rules ClaudeCode Mcp
Commits
70c14761
Commit
70c14761
authored
Feb 02, 2026
by
LongLD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: update ROOT_DIR fallback to use package directory instead of current working directory
parent
dd6e1776
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
dist/index.js
dist/index.js
+4
-2
src/index.ts
src/index.ts
+4
-2
No files found.
dist/index.js
View file @
70c14761
...
...
@@ -10,8 +10,10 @@ import { fileURLToPath } from 'url';
// --- Configuration ---
const
__filename
=
fileURLToPath
(
import
.
meta
.
url
);
const
__dirname
=
path
.
dirname
(
__filename
);
// Allow override via command line argument, environment variable, or use current working directory
const
ROOT_DIR
=
process
.
argv
[
2
]
||
process
.
env
.
AWING_RULES_ROOT
||
process
.
cwd
();
// Package directory contains the rules (one level up from src)
const
PACKAGE_DIR
=
path
.
resolve
(
__dirname
,
'
..
'
);
// Allow override via command line argument, environment variable, or use package rules as fallback
const
ROOT_DIR
=
process
.
argv
[
2
]
||
process
.
env
.
AWING_RULES_ROOT
||
PACKAGE_DIR
;
// --- Initialization ---
const
indexer
=
new
RuleIndexer
(
ROOT_DIR
);
const
composer
=
new
Composer
(
ROOT_DIR
);
...
...
src/index.ts
View file @
70c14761
...
...
@@ -17,8 +17,10 @@ import { fileURLToPath } from 'url';
// --- Configuration ---
const
__filename
=
fileURLToPath
(
import
.
meta
.
url
);
const
__dirname
=
path
.
dirname
(
__filename
);
// Allow override via command line argument, environment variable, or use current working directory
const
ROOT_DIR
=
process
.
argv
[
2
]
||
process
.
env
.
AWING_RULES_ROOT
||
process
.
cwd
();
// Package directory contains the rules (one level up from src)
const
PACKAGE_DIR
=
path
.
resolve
(
__dirname
,
'
..
'
);
// Allow override via command line argument, environment variable, or use package rules as fallback
const
ROOT_DIR
=
process
.
argv
[
2
]
||
process
.
env
.
AWING_RULES_ROOT
||
PACKAGE_DIR
;
// --- Initialization ---
const
indexer
=
new
RuleIndexer
(
ROOT_DIR
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment