diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd16ed0..7ba9717 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,13 +5,14 @@ on: branches: [main] pull_request: branches: [main] + workflow_call: jobs: - ci: + build: runs-on: ubuntu-latest strategy: matrix: - node-version: [20, 22] + node-version: [20, 22, 24] steps: - uses: actions/checkout@v4 @@ -31,4 +32,25 @@ jobs: - run: pnpm build + test: + needs: build + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [20, 22, 24] + + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: pnpm + + - run: pnpm install --frozen-lockfile + + - run: pnpm --filter @agentvision/core build + - run: pnpm test diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9f2af6b..17e1c54 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,18 +8,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }} jobs: ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v4 - - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: pnpm - - run: pnpm install --frozen-lockfile - - run: pnpm typecheck - - run: pnpm build - - run: pnpm test + uses: ./.github/workflows/ci.yml publish: needs: ci @@ -33,7 +22,7 @@ jobs: - uses: pnpm/action-setup@v4 - uses: actions/setup-node@v4 with: - node-version: 22 + node-version: 24 cache: pnpm registry-url: https://registry.npmjs.org - run: pnpm install --frozen-lockfile diff --git a/README.md b/README.md index b75108e..e14b0b6 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,22 @@ AgentVision gives you that picture. ## How to Run -```bash +````bash npx @agentvision/cli +You can also install AgentVision globally for a convenient CLI command: + +```bash +npm install -g @agentvision/cli +```` + +Or add an alias for easier access: + +```bash +alias agentvision="npx @agentvision/cli" ``` +```` + Requires Node.js 20+. ## Quick Start @@ -32,7 +44,7 @@ agentvision scan --local-only # Only global/user-level configs agentvision scan --global-only -``` +```` Example output: diff --git a/packages/cli/package.json b/packages/cli/package.json index 1fe5087..37e8e7c 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -31,10 +31,10 @@ "typecheck": "tsc --noEmit" }, "dependencies": { - "@agentvision/core": "workspace:*", "picocolors": "^1.1.1" }, "devDependencies": { + "@agentvision/core": "workspace:*", "@types/node": "^25.5.0", "tsup": "^8.4.0", "typescript": "^5.7.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 57bcf49..4958761 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -23,13 +23,13 @@ importers: packages/cli: dependencies: - '@agentvision/core': - specifier: workspace:* - version: link:../core picocolors: specifier: ^1.1.1 version: 1.1.1 devDependencies: + '@agentvision/core': + specifier: workspace:* + version: link:../core '@types/node': specifier: ^25.5.0 version: 25.5.0