hyntx 2.7.1 โ 3.0.1
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/README.md +15 -15
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/dist/{chunk-UDPUTBEU.js โ chunk-24U3LCZC.js} +1 -1
- package/dist/cli.js +9 -9
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
[](https://nodejs.org/)
|
|
8
8
|
|
|
9
|
-
>
|
|
9
|
+
> ๐งช **BETA**: This project is functional but still evolving. Feedback and contributions welcome!
|
|
10
10
|
|
|
11
11
|
## What is Hyntx?
|
|
12
12
|
|
|
@@ -176,7 +176,7 @@ hyntx -m individual # Short form
|
|
|
176
176
|
- Analyzing high-stakes or complex prompts
|
|
177
177
|
- Conducting quality audits or teaching sessions
|
|
178
178
|
|
|
179
|
-
**Performance Note**: Numbers based on `
|
|
179
|
+
**Performance Note**: Numbers based on `gemma3:4b` on CPU. Actual speed varies by hardware, model size, and prompt complexity.
|
|
180
180
|
|
|
181
181
|
**Detailed Guide**: See [Analysis Modes Documentation](./docs/ANALYSIS_MODES.md) for comprehensive comparison, examples, and decision guidelines.
|
|
182
182
|
|
|
@@ -255,17 +255,17 @@ Configure one or more providers in priority order. Hyntx will try each provider
|
|
|
255
255
|
```bash
|
|
256
256
|
# Single provider (Ollama only)
|
|
257
257
|
export HYNTX_SERVICES=ollama
|
|
258
|
-
export HYNTX_OLLAMA_MODEL=
|
|
258
|
+
export HYNTX_OLLAMA_MODEL=gemma3:4b
|
|
259
259
|
|
|
260
260
|
# Multi-provider with fallback (tries Ollama first, then Anthropic)
|
|
261
261
|
export HYNTX_SERVICES=ollama,anthropic
|
|
262
|
-
export HYNTX_OLLAMA_MODEL=
|
|
262
|
+
export HYNTX_OLLAMA_MODEL=gemma3:4b
|
|
263
263
|
export HYNTX_ANTHROPIC_KEY=sk-ant-your-key-here
|
|
264
264
|
|
|
265
265
|
# Cloud-first with local fallback
|
|
266
266
|
export HYNTX_SERVICES=anthropic,ollama
|
|
267
267
|
export HYNTX_ANTHROPIC_KEY=sk-ant-your-key-here
|
|
268
|
-
export HYNTX_OLLAMA_MODEL=
|
|
268
|
+
export HYNTX_OLLAMA_MODEL=gemma3:4b
|
|
269
269
|
```
|
|
270
270
|
|
|
271
271
|
#### Provider-Specific Variables
|
|
@@ -274,7 +274,7 @@ export HYNTX_OLLAMA_MODEL=llama3.2
|
|
|
274
274
|
|
|
275
275
|
| Variable | Default | Description |
|
|
276
276
|
| -------------------- | ------------------------ | ----------------- |
|
|
277
|
-
| `HYNTX_OLLAMA_MODEL` | `
|
|
277
|
+
| `HYNTX_OLLAMA_MODEL` | `gemma3:4b` | Model to use |
|
|
278
278
|
| `HYNTX_OLLAMA_HOST` | `http://localhost:11434` | Ollama server URL |
|
|
279
279
|
|
|
280
280
|
**Anthropic:**
|
|
@@ -303,7 +303,7 @@ export HYNTX_REMINDER=7d
|
|
|
303
303
|
```bash
|
|
304
304
|
# Add to ~/.zshrc or ~/.bashrc (or let Hyntx auto-save it)
|
|
305
305
|
export HYNTX_SERVICES=ollama,anthropic
|
|
306
|
-
export HYNTX_OLLAMA_MODEL=
|
|
306
|
+
export HYNTX_OLLAMA_MODEL=gemma3:4b
|
|
307
307
|
export HYNTX_ANTHROPIC_KEY=sk-ant-your-key-here
|
|
308
308
|
export HYNTX_REMINDER=14d
|
|
309
309
|
|
|
@@ -327,7 +327,7 @@ Ollama runs AI models locally for **privacy and cost savings**.
|
|
|
327
327
|
2. Pull a model:
|
|
328
328
|
|
|
329
329
|
```bash
|
|
330
|
-
ollama pull
|
|
330
|
+
ollama pull gemma3:4b
|
|
331
331
|
```
|
|
332
332
|
|
|
333
333
|
3. Verify it's running:
|
|
@@ -369,7 +369,7 @@ Configure multiple providers for automatic fallback:
|
|
|
369
369
|
```bash
|
|
370
370
|
# If Ollama is down, automatically try Anthropic
|
|
371
371
|
export HYNTX_SERVICES=ollama,anthropic
|
|
372
|
-
export HYNTX_OLLAMA_MODEL=
|
|
372
|
+
export HYNTX_OLLAMA_MODEL=gemma3:4b
|
|
373
373
|
export HYNTX_ANTHROPIC_KEY=sk-ant-your-key-here
|
|
374
374
|
```
|
|
375
375
|
|
|
@@ -481,11 +481,11 @@ If using Ollama (recommended for privacy):
|
|
|
481
481
|
ollama serve
|
|
482
482
|
|
|
483
483
|
# Pull a model if needed
|
|
484
|
-
ollama pull
|
|
484
|
+
ollama pull gemma3:4b
|
|
485
485
|
|
|
486
486
|
# Set environment variables (add to ~/.zshrc or ~/.bashrc)
|
|
487
487
|
export HYNTX_SERVICES=ollama
|
|
488
|
-
export HYNTX_OLLAMA_MODEL=
|
|
488
|
+
export HYNTX_OLLAMA_MODEL=gemma3:4b
|
|
489
489
|
```
|
|
490
490
|
|
|
491
491
|
### Available MCP Tools
|
|
@@ -662,7 +662,7 @@ Use check-context to verify: "Update the component to handle errors"
|
|
|
662
662
|
#### "Slow responses"
|
|
663
663
|
|
|
664
664
|
- Local Ollama models are fastest but require GPU for best performance
|
|
665
|
-
- Consider using a faster model: `export HYNTX_OLLAMA_MODEL=
|
|
665
|
+
- Consider using a faster model: `export HYNTX_OLLAMA_MODEL=gemma3:4b:1b`
|
|
666
666
|
- Cloud providers (Anthropic, Google) offer faster responses but require API keys
|
|
667
667
|
|
|
668
668
|
## Privacy & Security
|
|
@@ -708,15 +708,15 @@ For local analysis with Ollama, you need to have a compatible model installed. S
|
|
|
708
708
|
|
|
709
709
|
| Use Case | Model | Parameters | Disk Size | Speed (CPU) | Quality |
|
|
710
710
|
| ------------------- | ------------- | ---------- | --------- | -------------- | --------- |
|
|
711
|
-
| **Daily use** | `
|
|
711
|
+
| **Daily use** | `gemma3:4b` | 2-3B | ~2GB | ~2-5s/prompt | Good |
|
|
712
712
|
| **Production** | `mistral:7b` | 7B | ~4GB | ~5-10s/prompt | Better |
|
|
713
713
|
| **Maximum quality** | `qwen2.5:14b` | 14B | ~9GB | ~15-30s/prompt | Excellent |
|
|
714
714
|
|
|
715
715
|
**Installation**:
|
|
716
716
|
|
|
717
717
|
```bash
|
|
718
|
-
# Install recommended model (
|
|
719
|
-
ollama pull
|
|
718
|
+
# Install recommended model (gemma3:4b)
|
|
719
|
+
ollama pull gemma3:4b
|
|
720
720
|
|
|
721
721
|
# Or choose a different model
|
|
722
722
|
ollama pull mistral:7b
|
package/dist/api/index.d.ts
CHANGED
package/dist/api/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { BATCH_STRATEGIES, CACHE_ANALYSIS_DIR, CACHE_DEFAULTS, CACHE_META_FILE, CLAUDE_PROJECTS_DIR, ENV_DEFAULTS, EXIT_CODES, HYNTX_CACHE_DIR, HYNTX_HISTORY_DIR, LAST_RUN_FILE, PROVIDER_LIMITS, analyzePrompts, claudeProjectsExist, cleanupExpiredEntries, clearCache, compareResults, createProvider, ensureHistoryDir, extractProjectName, generateCacheKey, getAllProviders, getAvailableProvider, getCachedResult, getDateOneMonthAgo, getDateOneWeekAgo, getEnvConfig, getHistoryDir, groupByDay, hashSystemPrompt, isFirstRun, listAvailableDates, loadAnalysisResult, loadProjectConfig, loadProjectConfigForCwd, mergeConfigs, parseDate, parseServices, readLogs, sanitize, sanitizePrompts, saveAnalysisResult, setCachedResult, validateSystemPrompt } from '../chunk-
|
|
1
|
+
export { BATCH_STRATEGIES, CACHE_ANALYSIS_DIR, CACHE_DEFAULTS, CACHE_META_FILE, CLAUDE_PROJECTS_DIR, ENV_DEFAULTS, EXIT_CODES, HYNTX_CACHE_DIR, HYNTX_HISTORY_DIR, LAST_RUN_FILE, PROVIDER_LIMITS, analyzePrompts, claudeProjectsExist, cleanupExpiredEntries, clearCache, compareResults, createProvider, ensureHistoryDir, extractProjectName, generateCacheKey, getAllProviders, getAvailableProvider, getCachedResult, getDateOneMonthAgo, getDateOneWeekAgo, getEnvConfig, getHistoryDir, groupByDay, hashSystemPrompt, isFirstRun, listAvailableDates, loadAnalysisResult, loadProjectConfig, loadProjectConfigForCwd, mergeConfigs, parseDate, parseServices, readLogs, sanitize, sanitizePrompts, saveAnalysisResult, setCachedResult, validateSystemPrompt } from '../chunk-24U3LCZC.js';
|
package/dist/cli.js
CHANGED
|
@@ -335,7 +335,7 @@ var PROVIDER_LIMITS = {
|
|
|
335
335
|
var ENV_DEFAULTS = {
|
|
336
336
|
reminder: "7d",
|
|
337
337
|
ollama: {
|
|
338
|
-
model: "
|
|
338
|
+
model: "gemma3:4b",
|
|
339
339
|
host: "http://localhost:11434"
|
|
340
340
|
},
|
|
341
341
|
anthropic: {
|
|
@@ -3541,14 +3541,14 @@ var HIGH_RAM_THRESHOLD = 8;
|
|
|
3541
3541
|
var LOW_RAM_THRESHOLD = 4;
|
|
3542
3542
|
function suggestBestModel(systemInfo, models) {
|
|
3543
3543
|
if (systemInfo.ramGB < HIGH_RAM_THRESHOLD) {
|
|
3544
|
-
if (isModelAvailable("
|
|
3544
|
+
if (isModelAvailable("gemma3:4b", models)) {
|
|
3545
3545
|
return {
|
|
3546
|
-
suggestedModel: "
|
|
3546
|
+
suggestedModel: "gemma3:4b",
|
|
3547
3547
|
reason: "Fast and lightweight model, optimal for your system"
|
|
3548
3548
|
};
|
|
3549
3549
|
}
|
|
3550
3550
|
return {
|
|
3551
|
-
suggestedModel: "
|
|
3551
|
+
suggestedModel: "gemma3:4b",
|
|
3552
3552
|
reason: "Recommended default model (needs installation)"
|
|
3553
3553
|
};
|
|
3554
3554
|
}
|
|
@@ -3564,14 +3564,14 @@ function suggestBestModel(systemInfo, models) {
|
|
|
3564
3564
|
reason: "Better analysis quality with Small Schema"
|
|
3565
3565
|
};
|
|
3566
3566
|
}
|
|
3567
|
-
if (isModelAvailable("
|
|
3567
|
+
if (isModelAvailable("gemma3:4b", models)) {
|
|
3568
3568
|
return {
|
|
3569
|
-
suggestedModel: "
|
|
3569
|
+
suggestedModel: "gemma3:4b",
|
|
3570
3570
|
reason: "Fast and reliable default model"
|
|
3571
3571
|
};
|
|
3572
3572
|
}
|
|
3573
3573
|
return {
|
|
3574
|
-
suggestedModel: "
|
|
3574
|
+
suggestedModel: "gemma3:4b",
|
|
3575
3575
|
reason: "Recommended default model (needs installation)"
|
|
3576
3576
|
};
|
|
3577
3577
|
}
|
|
@@ -3591,10 +3591,10 @@ function getInstallationSuggestion(systemInfo, models) {
|
|
|
3591
3591
|
}
|
|
3592
3592
|
return null;
|
|
3593
3593
|
}
|
|
3594
|
-
const hasLlama = isModelAvailable("
|
|
3594
|
+
const hasLlama = isModelAvailable("gemma3:4b", models);
|
|
3595
3595
|
if (!hasLlama) {
|
|
3596
3596
|
return {
|
|
3597
|
-
suggestedModel: "
|
|
3597
|
+
suggestedModel: "gemma3:4b",
|
|
3598
3598
|
benefits: "Fast and lightweight model for your system",
|
|
3599
3599
|
installCommand: "ollama pull llama3.2"
|
|
3600
3600
|
};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { BATCH_STRATEGIES, CACHE_ANALYSIS_DIR, CACHE_DEFAULTS, CACHE_META_FILE, CLAUDE_PROJECTS_DIR, ENV_DEFAULTS, EXIT_CODES, HYNTX_CACHE_DIR, HYNTX_HISTORY_DIR, LAST_RUN_FILE, PROVIDER_LIMITS, analyzePrompts, claudeProjectsExist, cleanupExpiredEntries, clearCache, compareResults, createProvider, ensureHistoryDir, extractProjectName, generateCacheKey, getAllProviders, getAvailableProvider, getCachedResult, getDateOneMonthAgo, getDateOneWeekAgo, getEnvConfig, getHistoryDir, groupByDay, hashSystemPrompt, isFirstRun, listAvailableDates, loadAnalysisResult, loadProjectConfig, loadProjectConfigForCwd, mergeConfigs, parseDate, parseServices, readLogs, sanitize, sanitizePrompts, saveAnalysisResult, setCachedResult, validateSystemPrompt } from './chunk-
|
|
1
|
+
export { BATCH_STRATEGIES, CACHE_ANALYSIS_DIR, CACHE_DEFAULTS, CACHE_META_FILE, CLAUDE_PROJECTS_DIR, ENV_DEFAULTS, EXIT_CODES, HYNTX_CACHE_DIR, HYNTX_HISTORY_DIR, LAST_RUN_FILE, PROVIDER_LIMITS, analyzePrompts, claudeProjectsExist, cleanupExpiredEntries, clearCache, compareResults, createProvider, ensureHistoryDir, extractProjectName, generateCacheKey, getAllProviders, getAvailableProvider, getCachedResult, getDateOneMonthAgo, getDateOneWeekAgo, getEnvConfig, getHistoryDir, groupByDay, hashSystemPrompt, isFirstRun, listAvailableDates, loadAnalysisResult, loadProjectConfig, loadProjectConfigForCwd, mergeConfigs, parseDate, parseServices, readLogs, sanitize, sanitizePrompts, saveAnalysisResult, setCachedResult, validateSystemPrompt } from './chunk-24U3LCZC.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hyntx",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "CLI that analyzes Claude Code prompts and generates improvement suggestions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@9.15.4",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"build": "tsup",
|
|
12
12
|
"build:debug": "SOURCE_MAP=true tsup",
|
|
13
13
|
"dev": "tsup --watch",
|
|
14
|
-
"start": "node dist/
|
|
14
|
+
"start": "node dist/cli.js",
|
|
15
15
|
"lint": "eslint src/",
|
|
16
16
|
"lint:fix": "eslint src/ --fix",
|
|
17
17
|
"format": "prettier --write .",
|