Skip to content

Commit 3482852

Browse files
refactor!: rebrand agentmap to agentlens
Rename project from agentmap to agentlens across all packages and documentation. Changes include: - Cargo.toml: package name and repository URL - npm packages: @agentmap/* → @agentlens/*, agentmap-cli → @agentlens/cli - Source files: binary name, output folder (.agentmap → .agentlens) - Documentation: README.md, README.vi.md, docs/* - CI/CD: release.yml references - Scripts: install.sh BREAKING CHANGE: Package names changed from @agentmap/* to @agentlens/*. Users must update their package.json dependencies and any references to the agentmap binary or .agentmap output folder.
1 parent 2c2b116 commit 3482852

File tree

33 files changed

+462
-461
lines changed

33 files changed

+462
-461
lines changed

.github/workflows/release.yml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
permissions:
99
contents: write
10+
id-token: write
1011

1112
env:
1213
CARGO_TERM_COLOR: always
@@ -62,26 +63,26 @@ jobs:
6263
if: runner.os != 'Windows'
6364
run: |
6465
cd target/${{ matrix.target }}/release
65-
tar czf ../../../agentmap-${{ matrix.name }}.tar.gz agentmap
66+
tar czf ../../../agentlens-${{ matrix.name }}.tar.gz agentlens
6667
cd ../../..
67-
shasum -a 256 agentmap-${{ matrix.name }}.tar.gz > agentmap-${{ matrix.name }}.tar.gz.sha256
68+
shasum -a 256 agentlens-${{ matrix.name }}.tar.gz > agentlens-${{ matrix.name }}.tar.gz.sha256
6869
6970
- name: Package (Windows)
7071
if: runner.os == 'Windows'
7172
run: |
7273
cd target/${{ matrix.target }}/release
73-
7z a ../../../agentmap-${{ matrix.name }}.zip agentmap.exe
74+
7z a ../../../agentlens-${{ matrix.name }}.zip agentlens.exe
7475
cd ../../..
75-
Get-FileHash agentmap-${{ matrix.name }}.zip -Algorithm SHA256 | Format-List > agentmap-${{ matrix.name }}.zip.sha256
76+
Get-FileHash agentlens-${{ matrix.name }}.zip -Algorithm SHA256 | Format-List > agentlens-${{ matrix.name }}.zip.sha256
7677
7778
- name: Upload artifact
7879
uses: actions/upload-artifact@v4
7980
with:
80-
name: agentmap-${{ matrix.name }}
81+
name: agentlens-${{ matrix.name }}
8182
path: |
82-
agentmap-*.tar.gz
83-
agentmap-*.zip
84-
agentmap-*.sha256
83+
agentlens-*.tar.gz
84+
agentlens-*.zip
85+
agentlens-*.sha256
8586
8687
release:
8788
name: Create Release
@@ -138,7 +139,7 @@ jobs:
138139
-H "Authorization: token ${{ secrets.TAP_TOKEN }}" \
139140
-H "Accept: application/vnd.github.v3+json" \
140141
https://api.github.com/repos/nguyenphutrong/homebrew-tap/dispatches \
141-
-d '{"event_type":"agentmap-release","client_payload":{"version":"${{ github.ref_name }}"}}'
142+
-d '{"event_type":"agentlens-release","client_payload":{"version":"${{ github.ref_name }}"}}'
142143
143144
publish-npm:
144145
name: Publish to npm
@@ -163,7 +164,7 @@ jobs:
163164
- name: Download artifact
164165
uses: actions/download-artifact@v4
165166
with:
166-
name: agentmap-${{ matrix.artifact }}
167+
name: agentlens-${{ matrix.artifact }}
167168
path: artifacts
168169

169170
- name: Setup Node.js
@@ -182,21 +183,21 @@ jobs:
182183
183184
if [[ "${{ matrix.npm-package }}" == "win32-x64" ]]; then
184185
cd ../../artifacts
185-
unzip agentmap-${{ matrix.artifact }}.zip -d ../npm/${{ matrix.npm-package }}/bin/
186+
unzip agentlens-${{ matrix.artifact }}.zip -d ../npm/${{ matrix.npm-package }}/bin/
186187
else
187-
tar -xzf ../../artifacts/agentmap-${{ matrix.artifact }}.tar.gz -C bin/
188-
chmod +x bin/agentmap
188+
tar -xzf ../../artifacts/agentlens-${{ matrix.artifact }}.tar.gz -C bin/
189+
chmod +x bin/agentlens
189190
fi
190191
191192
- name: Publish platform package
192193
run: |
193194
cd npm/${{ matrix.npm-package }}
194-
npm publish --access public
195+
npm publish --access public --provenance
195196
env:
196197
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
197198

198199
publish-npm-cli:
199-
name: Publish agentmap-cli to npm
200+
name: Publish agentlens-cli to npm
200201
needs: publish-npm
201202
runs-on: ubuntu-latest
202203
steps:
@@ -218,18 +219,18 @@ jobs:
218219
const pkg = require('./package.json');
219220
const version = '$VERSION';
220221
pkg.optionalDependencies = {
221-
'@agentmap/darwin-arm64': version,
222-
'@agentmap/darwin-x64': version,
223-
'@agentmap/linux-arm64': version,
224-
'@agentmap/linux-x64': version,
225-
'@agentmap/win32-x64': version
222+
'@agentlens/darwin-arm64': version,
223+
'@agentlens/darwin-x64': version,
224+
'@agentlens/linux-arm64': version,
225+
'@agentlens/linux-x64': version,
226+
'@agentlens/win32-x64': version
226227
};
227228
require('fs').writeFileSync('package.json', JSON.stringify(pkg, null, 2) + '\n');
228229
"
229230
230231
- name: Publish to npm
231232
run: |
232233
cd npm/cli
233-
npm publish --access public
234+
npm publish --access public --provenance
234235
env:
235236
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

CHANGELOG.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
- pre-commit (`.pre-commit-config.yaml`)
1616
- Native git hooks (`.git/hooks/`)
1717
- **CLI flags for hook managers** - `--native`, `--husky`, `--lefthook`, `--pre-commit`
18-
- **npm package** (`agentmap-cli`) - Install via `npm install -g agentmap-cli` or use `npx agentmap-cli`
18+
- **npm package** (`agentlens-cli`) - Install via `npm install -g agentlens-cli` or use `npx agentlens-cli`
1919
- **MCP server documentation** - Comprehensive docs (EN/VI) for Model Context Protocol integration
2020

2121
### Changed
@@ -31,10 +31,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3131
- **AGENT.md generation** - Auto-generated AI instruction file at project root
3232
- **Watch mode** (`--watch`) - Real-time file watching with automatic regeneration
3333
- **Git hooks** (`--hooks`) - Automatic regeneration on git commit
34-
- **Config file** (`agentmap.toml`) - Project-level configuration support
35-
- **CI validation** (`--check`) - Exit non-zero if `.agentmap/` is outdated
36-
- **Self-update** (`--update`) - Update agentmap binary from command line
37-
- **Homebrew tap** - Install via `brew install trongnguyen24/tap/agentmap`
34+
- **Config file** (`agentlens.toml`) - Project-level configuration support
35+
- **CI validation** (`--check`) - Exit non-zero if `.agentlens/` is outdated
36+
- **Self-update** (`--update`) - Update agentlens binary from command line
37+
- **Homebrew tap** - Install via `brew install trongnguyen24/tap/agentlens`
3838

3939
### Fixed
4040

@@ -81,7 +81,7 @@ Initial release.
8181
### Output Structure
8282

8383
```
84-
.agentmap/
84+
.agentlens/
8585
├── INDEX.md # L0: Global routing table
8686
├── modules/
8787
│ └── {module-slug}/

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
2-
name = "agentmap"
2+
name = "agentlens"
33
version = "0.4.3"
44
edition = "2021"
55
description = "CLI tool to prepare codebases for AI agents by generating outlines, memory files, and reading rules"
66
license = "MIT"
7-
repository = "https://github.com/nguyenphutrong/agentmap"
7+
repository = "https://github.com/nguyenphutrong/agentlens"
88
authors = ["Trong Nguyen <nguyenphutrong.dev@gmail.com>"]
99
keywords = ["cli", "ai", "code-analysis", "documentation"]
1010
categories = ["command-line-utilities", "development-tools"]
@@ -49,9 +49,9 @@ assert_cmd = "2"
4949
predicates = "3"
5050

5151
[[bin]]
52-
name = "agentmap"
52+
name = "agentlens"
5353
path = "src/main.rs"
5454

5555
[lib]
56-
name = "agentmap"
56+
name = "agentlens"
5757
path = "src/lib.rs"

0 commit comments

Comments
 (0)