Skip to content

Commit 4dde1c0

Browse files
committed
Refactor the project
1 parent 11f5a14 commit 4dde1c0

File tree

117 files changed

+5323
-1308
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+5323
-1308
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,5 @@ BINHARIC.md
166166
AGENT.md
167167
*.tar.gz
168168
*.tgz
169+
test.txt
170+
a.out

Makefile

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,34 +37,34 @@ help: ## Show this help message
3737
awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-18s\033[0m %s\n", $$1, $$2}'
3838

3939
install: ## Install project dependencies
40-
$(PACKAGE_MANAGER) install --legacy-peer-deps
40+
@$(PACKAGE_MANAGER) install --legacy-peer-deps
4141

4242
build: check-deps ## Build Binharic
43-
$(PACKAGE_MANAGER) run build
43+
@$(PACKAGE_MANAGER) run build
4444

4545
run: build ## Start Binharic in terminal
46-
$(PACKAGE_MANAGER) start
46+
@$(PACKAGE_MANAGER) start
4747

4848
clean: ## Remove build artifacts
49-
rm -rf dist $(NODE_MODULES_DIR) $(REMOVABLE_THINGS)
49+
@rm -rf dist $(NODE_MODULES_DIR) $(REMOVABLE_THINGS)
5050

5151
# ==============================================================================
5252
# DEVELOPMENT
5353
# ==============================================================================
5454
test: check-deps ## Run the test suite
55-
$(PACKAGE_MANAGER) test
55+
@$(PACKAGE_MANAGER) test
5656

5757
coverage: check-deps ## Run the test suite and generate a coverage report
58-
$(PACKAGE_MANAGER) run coverage
58+
@$(PACKAGE_MANAGER) run coverage
5959

6060
lint: check-deps ## Run linter checks
61-
$(PACKAGE_MANAGER) run lint
61+
@$(PACKAGE_MANAGER) run lint
6262

6363
typecheck: check-deps ## Run TypeScript type checks
64-
$(PACKAGE_MANAGER) run typecheck
64+
@$(PACKAGE_MANAGER) run typecheck
6565

6666
format: check-deps ## Format code with Prettier
67-
$(PACKAGE_MANAGER) run format
67+
@$(PACKAGE_MANAGER) run format
6868

6969
# ==============================================================================
7070
# GIT HOOKS
@@ -87,28 +87,28 @@ test-hooks: ## Test Git hooks on all files
8787
# PUBLISHING
8888
# ==============================================================================
8989
npm-login: ## Log in to npm registry
90-
$(PACKAGE_MANAGER) login
90+
@$(PACKAGE_MANAGER) login
9191

9292
npm-whoami: ## Show current npm user (if logged in)
93-
-$(PACKAGE_MANAGER) whoami
93+
@-$(PACKAGE_MANAGER) whoami
9494

9595
pack: build ## Create npm tarball (binharic-cli-<version>.tgz)
96-
$(PACKAGE_MANAGER) pack
96+
@$(PACKAGE_MANAGER) pack
9797

9898
pack-dry-run: build ## Preview files that would be packed
99-
$(PACKAGE_MANAGER) pack --dry-run
99+
@$(PACKAGE_MANAGER) pack --dry-run
100100

101101
publish-dry-run: ## Simulate npm publish (no registry changes)
102-
$(PACKAGE_MANAGER) publish --dry-run
102+
@$(PACKAGE_MANAGER) publish --access public --dry-run
103103

104104
publish: ## Publish the package to npm (runs build via prepublishOnly)
105-
$(PACKAGE_MANAGER) publish
105+
@$(PACKAGE_MANAGER) publish --access public
106106

107107
version-patch: ## Bump patch version (x.y.z -> x.y.(z+1))
108-
$(PACKAGE_MANAGER) version patch
108+
@$(PACKAGE_MANAGER) version patch
109109

110110
version-minor: ## Bump minor version (x.y.z -> x.(y+1).0)
111-
$(PACKAGE_MANAGER) version minor
111+
@$(PACKAGE_MANAGER) version minor
112112

113113
version-major: ## Bump major version ((x+1).0.0)
114-
$(PACKAGE_MANAGER) version major
114+
@$(PACKAGE_MANAGER) version major

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
[![Tests](https://img.shields.io/github/actions/workflow/status/CogitatorTech/binharic-cli/tests.yml?label=tests&style=flat&labelColor=333333&logo=github&logoColor=white)](https://github.com/CogitatorTech/binharic-cli/actions/workflows/tests.yml)
1010
[![Code Coverage](https://img.shields.io/codecov/c/github/CogitatorTech/binharic-cli?style=flat&label=coverage&labelColor=333333&logo=codecov&logoColor=white)](https://codecov.io/gh/CogitatorTech/binharic-cli)
1111
[![Code Quality](https://img.shields.io/codefactor/grade/github/CogitatorTech/binharic-cli?style=flat&label=code%20quality&labelColor=333333&logo=codefactor&logoColor=white)](https://www.codefactor.io/repository/github/CogitatorTech/binharic-cli)
12-
[![npm](https://img.shields.io/npm/v/binharic-cli?style=flat&labelColor=333333&logo=npm&logoColor=white)](https://www.npmjs.com/package/binharic-cli)
12+
[![npm](https://img.shields.io/npm/v/%40cogitator%2Fbinharic-cli?style=flat&labelColor=333333&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cogitator/binharic-cli)
1313
[![Documentation](https://img.shields.io/badge/docs-latest-8ca0d7?style=flat&labelColor=333333&logo=read-the-docs&logoColor=white)](docs)
1414
[![License](https://img.shields.io/badge/license-MIT-00acc1?style=flat&labelColor=333333&logo=open-source-initiative&logoColor=white)](LICENSE)
1515

ROADMAP.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ It includes planned features, improvements, and their current implementation sta
2828
- [x] Transient error handling with exponential backoff
2929
- [x] Tool execution confirmation flow
3030
- [x] AI SDK 5 Agent class integration
31-
- [x] Automatic loop control with stopWhen conditions**
31+
- [x] Automatic loop control with stopWhen conditions\*\*
3232
- [x] Budget-based stopping conditions
3333
- [x] Error threshold conditions
3434
- [x] Validation-based stopping
@@ -103,7 +103,7 @@ It includes planned features, improvements, and their current implementation sta
103103
- [x] File search with @ mention
104104
- [x] Non-blocking UI during LLM responses
105105
- [x] Command syntax highlighting (partial match in yellow, full match in cyan)
106-
- [x] Colored help menu items**
106+
- [x] Colored help menu items\*\*
107107
- [x] Clean message display (no "Binharic:" prefix)
108108
- [x] Dynamic username from system (not hardcoded)
109109
- [x] Tool results hidden from UI (only failures shown)
@@ -242,7 +242,7 @@ It includes planned features, improvements, and their current implementation sta
242242
- [x] Multi-step tool execution with automatic loop control
243243
- [x] Specialized agents with distinct personalities
244244
- [x] onStepFinish callbacks for monitoring
245-
- [x] prepareStep callbacks for dynamic configuration**
245+
- [x] prepareStep callbacks for dynamic configuration\*\*
246246
- [x] Multiple stopping conditions (step count, budget, errors, validation, completion)
247247
- [ ] Goal-oriented planning
248248
- [ ] Task decomposition

0 commit comments

Comments
 (0)