open-index/open-npm huggingface dataset:
npm package: @ghost_/react-router-simplify
Description: Un react router simplifier
Latest version: 0.0.2

# React Router simplify

Ce package a pour objectif de simplifier l'utilisation du routeur au sein de React. Veuillez noter que ce package est expérimental et ne possède pas toutes les fonctionnalités d'un routeur complet.

## Installation

```bash
  npm i @ghost_/react-router-simplify
```

## Usage

### Définir votre schéma de routes

```tsx
import { Link, RouteProps, Router, useNavigate, useParams } from "react-router-simplify";

const routes: RouteProps[] = [
  { path: '/', element: <Home /> },
 { path: '/:id', element: <HomeParams /> },
  { path: '/about', element: <About /> },
  { path: '/contacts', element: <Contacts /> },
];

const App = () => {
  return (
    <Router routes={routes} />
  );
};

export default App;

```

### Ajouter une page d'erreur personnalisée pour les URL non correspondantes si vous le souhaitez

```tsx
import { Router } from "react-router-simplify";

const App = () => {
  return (
    <Router routes={routes} errorElement={<div>Error 404: Page Not Found</div>} />
  );
};

export default App;

```

### Navigation avec des liens

Les liens de navigation sont simples à créer, et une classe active est appliquée par défaut.

```tsx
  import { Link } from "react-router-simplify";

const Navigation = () => {
  return (
    <>
      <Link to="/">Home</Link>
      <Link to={`/${10}`} >Home with params</Link>
      <Link to="/about">About</Link>
      <Link to="/contacts">Contacts</Link>
    </>
  );
};

export default Navigation;

```

### Récupérer les paramètres de l'URL

Utilisez le hook useParams pour accéder aux paramètres de l'URL.

```ts
import { useParams } from "react-router-simplify";

const MyComponent = () => {
  const params = useParams();
  
  return (
    <div>
      Param: {params}
    </div>
  );
};

export default MyComponent;

```

### Navigation programmatique avec le hook useNavigate

Utilisez le hook useNavigate pour naviguer programmatique dans votre application.

```tsx
import { useNavigate } from "react-router-simplify";

const MyComponent = () => {
  const navigate = useNavigate();

  return (
    <button onClick={() => navigate("/contacts")}>
      Go to Contacts
    </button>
  );
};

export default MyComponent;

```

En suivant cette documentation, vous pouvez rapidement configurer et utiliser le package react-router-simplify pour la gestion des routes dans votre application React.
npm package: @ghost_agent/core
Description: Core backend package for GhostAgent extraction.
Latest version: 0.1.1

# @ghost_agent/core

Core backend package for GhostAgent extraction.

## What it exports

Public entrypoint: `src/lib/index.ts`

- Fact registry utilities (`buildAiFactRegistry`)
- Feedback/session policy helpers
- Tool routing helpers (`routeMessageToTools`, `selectToolsForMessage`)
- Model catalog helpers (`DEFAULT_GHOSTAGENT_MODELS`, catalog/model resolvers)
- Verification service (`GhostAgentVerificationService`)
- Runtime contracts for session store, tools, model config, and verification

## Runtime assets included in package

- CLI binary: `bin/ghostagent-init.mjs` (exposed as `ghostagent`)
- Prisma snippets and migrations under `prisma/`
- Host scaffold templates under `scaffolds/`

## `ghostagent` init CLI

The binary runs in dry-run mode by default and prints intended changes.

```bash
ghostagent
```

Apply mode writes changes to the host project:

```bash
ghostagent --apply
```

The CLI expects to run from the host repo root and checks/patches:

- `.env.example`
- `prisma/schema.prisma`
- `prisma/migrations/*` for GhostAgent migration snippets
- optional host app files (AI endpoint scaffold files, app routes/module wiring, UI data service helper methods)

## Peer dependency

- `@nestjs/common` `^11`

## Security

- Keep inference credentials and auth context on the server side.
- Do not expose provider API keys or user-scoped data handling in client code.
npm package: @ghost_agent/evals
Description: Evaluation package for GhostAgent with programmatic APIs, runner entrypoints, and staged assets.
Latest version: 0.1.2

# @ghost_agent/evals

Evaluation package for GhostAgent with programmatic APIs, runner entrypoints, and staged assets.

## What it exports

Public entrypoint: `src/lib/index.ts`

- `runEvalDataset` and related eval interfaces
- runtime path helpers (`resolveEvalHistoryDirectoryPath`, `resolvePathFromLib`, `resolveModuleUrlFromLib`)
- scorer (`scoreCase`)
- staged YAML loader (`loadYamlFile`)

Deep export for runner modules:

- `@ghost_agent/evals/runners/*`

These map to built files under `dist/runners/*`.

## Runtime assets included in package

- `dist/staged/*`
- `dist/dataset/*`

The build process copies staged and dataset assets from `src/lib` into `dist`.

## Running evals programmatically

```ts
import { runEvalDataset } from '@ghost_agent/evals';

const result = await runEvalDataset();
console.log(result.report);
```

## Environment variables used by `runEvalDataset`

- `AGENTFORGE_EVAL_API_URL` (required)
- `AGENTFORGE_EVAL_API_TOKEN` (required)
- `AGENTFORGE_EVAL_PASS_THRESHOLD` (optional, default `0.8`)
- `AGENTFORGE_EVAL_MAX_LATENCY_MS` (optional, default `15000`)
- `AGENTFORGE_EVAL_DATASET_PATH` (optional dataset override)
- `AGENTFORGE_EVAL_HISTORY_DIR` (optional history output dir, default `eval-history`)

## Security

- Keep API tokens in environment/secret managers.
- Do not embed auth tokens in frontend code or static assets.
npm package: @ghost_agent/ui
Description: Angular UI package for GhostAgent chat integration.
Latest version: 0.1.0

# @ghost_agent/ui

Angular UI package for GhostAgent chat integration.

## What it exports

Public entrypoint: `src/lib/index.ts`

- `GfGhostAgentChatComponent`
- `GHOSTAGENT_API_CLIENT` injection token
- `GhostAgentApiClient` TypeScript interface

## Host contract

The host app provides an implementation for `GhostAgentApiClient`, including:

- `postAiChat`
- `getAiChatSession`
- `postAiFeedback`
- `getAiSessionFeedback`
- `getAiModelPreference`
- `updateAiModelPreference`

## Component behavior

`GfGhostAgentChatComponent` currently includes:

- chat send flow and assistant message rendering
- model preference loading/updating
- session restore and local storage persistence for `sessionId`
- per-response feedback submission and hydration from prior feedback

## Build output

This package is built with `ng-packagr` and emits APF artifacts to `dist/`.

## Security

- This package should not hold secrets.
- API keys and sensitive operations must remain server-side in the host backend.