open-index/open-npm huggingface dataset:
npm package: @ravaniroshan/agentrace
Description: Visual debugger for AI agent loops. Step-by-step. Locally. Zero config.
Author: AgentTrace Contributors
Latest version: 0.2.1

# AgentTrace

Visual debugger for AI agent loops. Step-by-step. Locally. Zero config.

## Quick Start
```bash
npx @ravaniroshan/agentrace
```

Opens the trace viewer at http://localhost:7823

## Full Setup

Install the Python tracer in your agent project:
```bash
pip install agentrace
```

Add decorators to your agent:
```python
from agentrace import trace, trace_llm, trace_tool

@trace(name="my_agent")
def run_agent(task: str):
    ...

@trace_llm
def call_llm(messages):
    return ollama.chat(model="qwen2.5:7b", messages=messages)

@trace_tool
def web_search(query: str) -> str:
    ...
```

View traces from any terminal:
```bash
npx @ravaniroshan/agentrace
```

## Commands
```bash
npx @ravaniroshan/agentrace              # start UI viewer (default)
npx @ravaniroshan/agentrace ui           # start UI viewer
npx @ravaniroshan/agentrace traces       # list all traces in terminal
npx @ravaniroshan/agentrace clear        # delete all traces
npx @ravaniroshan/agentrace --version    # show version
npx @ravaniroshan/agentrace --help       # show help
```

## Global Install
```bash
npm install -g @ravaniroshan/agentrace
agentrace ui
```

## How It Works

The Python library saves trace files to ~/.agentrace/traces/
The npm CLI reads those same files and serves the web viewer.
No configuration needed between the two.

## Requirements
- Node.js 18+
- Python agent instrumented with pip install agentrace

## License
MIT
npm package: @rave-tec/cp-tpl
Description: Command line and library to copy directory from src to dest while replacing specified values and ignoring specified paths. Great for using any directory of files as a template.
Author: Slawomir Biegluk
Latest version: 1.0.10

# Directory based templating engine

This Library will allow you to create templates of projects and services that can be compiled before being applied. Oposite to many templating engines where you have to use some special syntax to mark which parts of the template should be replaced, in this engine you just specify what strings should be replaced with what. This approach makes development of templates much easier as you just create a working project and then customize it to your liking.

The engine is inspired by the ```dotnet new``` command.  

## Usage

``` js
const {cpTpl} = require("cp-tpl")

const templateDirPath = "/home/dev1/templates/my_service_template"
const outputDirPath = "/home/dev1/projects/service"

const rules = {
    replace: {
        "TemplateValueOne": "ActualValueOne"
    },
    exclude: ["path1","path2"],
}
await cpTpl(templateDirPath, outputDirPath, rules)
```

## comming next

### More similarity to the linux cp command

The command should in the future behave much like the unix cp command with the difference of replacing or skipping things based on extra parameters.

### Conditios inside of file

You will be able to declare a toggle like this
``` js
const rules = {
    toggle: {
        "TOGGLE_ONE": true
    }
}
```

and then use it in your code file like this

``` js
const a = require('b')

// cp-tpl:if TOGGLE_ONE
a.configureIfToggleOneOn()

// cp-tpl:endif TOGGLE_ONE
```

I'm sure you can already see where this is going...

Other rules are:
* if there is a "cp-tpl:if TOGGLE_X" statement in code and TOGGLE_X isn't defined, the app will throw an exception
* if there's no closing code, the lib will throw an exception
* whatever is the comment line indication, the whole line will be removed

## Command Line Interface

``` sh
> cp-tpl ../template-directory output-directory --replace template-val-1=val-1 --replace template-val-2=val2 --exclude templatize
```