@sumant.pathak/devjar 1.0.0 → 1.0.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.
- package/CLAUDE.md +38 -0
- package/bin/devjar.js +4 -3
- package/package.json +1 -1
- package/src/init.js +2 -1
package/CLAUDE.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# @sumant.pathak/devjar — Claude Code Orientation
|
|
2
|
+
|
|
3
|
+
## Stack
|
|
4
|
+
Node.js
|
|
5
|
+
|
|
6
|
+
## Scripts
|
|
7
|
+
start: node bin/devjar.js
|
|
8
|
+
|
|
9
|
+
## Project Map
|
|
10
|
+
📁 bin
|
|
11
|
+
📄 devjar.js
|
|
12
|
+
📄 LICENSE
|
|
13
|
+
📄 package.json
|
|
14
|
+
📄 README.md
|
|
15
|
+
📁 src
|
|
16
|
+
📄 config.js
|
|
17
|
+
📄 init.js
|
|
18
|
+
📄 prompt.js
|
|
19
|
+
📁 providers
|
|
20
|
+
📄 anthropic.js
|
|
21
|
+
📄 gemini.js
|
|
22
|
+
📄 index.js
|
|
23
|
+
📄 ollama.js
|
|
24
|
+
📄 openai.js
|
|
25
|
+
📄 stats.js
|
|
26
|
+
📄 update.js
|
|
27
|
+
|
|
28
|
+
## Key Files Analyzed
|
|
29
|
+
- src/init.js
|
|
30
|
+
- src/update.js
|
|
31
|
+
|
|
32
|
+
## Unbreakable Rules
|
|
33
|
+
1. Match existing naming conventions before adding new code
|
|
34
|
+
2. Never write files outside the project root
|
|
35
|
+
3. Read the key files listed in Project Map before editing
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
*Generated by devjar init — do not edit manually, run `devjar init` to regenerate*
|
package/bin/devjar.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
process.env.FORCE_COLOR = '3'; // enable chalk colors in PowerShell / CI
|
|
2
3
|
import { Command } from 'commander';
|
|
3
4
|
import { init } from '../src/init.js';
|
|
4
5
|
import { prompt } from '../src/prompt.js';
|
|
@@ -11,13 +12,13 @@ const program = new Command();
|
|
|
11
12
|
program
|
|
12
13
|
.name('devjar')
|
|
13
14
|
.description('Jarvis CLI — scan projects, normalize prompts, watch files, track tokens')
|
|
14
|
-
.version('
|
|
15
|
+
.version('1.0.0');
|
|
15
16
|
|
|
16
17
|
program
|
|
17
18
|
.command('init [dir]')
|
|
18
19
|
.description('Scan project and build Jarvis knowledge map')
|
|
19
|
-
.option('-o, --output <file>', 'output map file
|
|
20
|
-
.option('--depth <n>', 'max directory depth to scan', '
|
|
20
|
+
.option('-o, --output <file>', 'output map file (default: CLAUDE.md in project root)')
|
|
21
|
+
.option('--depth <n>', 'max directory depth to scan', '2')
|
|
21
22
|
.action(init);
|
|
22
23
|
|
|
23
24
|
program
|
package/package.json
CHANGED
package/src/init.js
CHANGED
|
@@ -23,7 +23,8 @@ const BINARY_EXTS = new Set([
|
|
|
23
23
|
|
|
24
24
|
const SKIP_FILES = new Set([
|
|
25
25
|
'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml', 'bun.lockb',
|
|
26
|
-
'.env', '.env.local', '.env.production', '.DS_Store'
|
|
26
|
+
'.env', '.env.local', '.env.production', '.DS_Store',
|
|
27
|
+
'CLAUDE.md', 'jarvis-map.txt', 'PRODUCT_AUDIT.md'
|
|
27
28
|
]);
|
|
28
29
|
|
|
29
30
|
// Entry point patterns — ordered by priority
|