open-index/open-npm huggingface dataset:
npm package: @sinequa/agent
Description: This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.2.0.
Latest version: 4.0.0

# Agent

This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.2.0.

## Code scaffolding

Angular CLI includes powerful code scaffolding tools. To generate a new component, run:

```bash
ng generate component component-name
```

For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:

```bash
ng generate --help
```

## Building

To build the library, run:

```bash
ng build sinequa-agent
```

This command will compile your project, and the build artifacts will be placed in the `dist/` directory.

### Publishing the Library

Once the project is built, you can publish your library by following these steps:

1. Navigate to the `dist` directory:
   ```bash
   cd dist/sinequa-agent
   ```

2. Run the `npm publish` command to publish your library to the npm registry:
   ```bash
   npm publish
   ```

## Running unit tests

To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:

```bash
ng test
```

## Running end-to-end tests

For end-to-end (e2e) testing, run:

```bash
ng e2e
```

Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.

## Additional Resources

For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
npm package: @sinequa/atomic-spfx
Description: ![npm](https://img.shields.io/npm/v/@sinequa/atomic.svg) ![license](https://img.shields.io/npm/l/@sinequa/atomic.svg)
Latest version: 0.0.120

# @sinequa/atomic

![npm](https://img.shields.io/npm/v/@sinequa/atomic.svg)
![license](https://img.shields.io/npm/l/@sinequa/atomic.svg)

A modern TypeScript package designed for use with [Sinequa](https://www.sinequa.com/), providing web API helpers, authentication, configurations, and utilities.

---

## Table of Contents

- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Documentation](#documentation)
- [License](#license)

---

## Features

- **Web API Helpers**: Simplify API calls with helpers for aggregations, datasets, preview, principal, query, and more.
- **Authentication**: Easy-to-use authentication utilities (OAuth, SAML, JWT, CSRF, etc.).
- **Configurations**: Centralized and type-safe configuration management.
- **SharePoint Framework (SPFx) Support**: Built-in AadHttpClient integration for Azure AD authentication in SPFx applications.
- **Helpers & Utilities**: Includes bisect, date, logger, syslang, and more.
- **Type Definitions**: Strongly-typed interfaces for API endpoints and data structures.
- ...and many more functions to help you build with Sinequa.

Explore the full feature set in the [online documentation](https://sinequa.github.io/sba-mint/atomic/intro).

---

## Installation

```sh
npm install @sinequa/atomic
```

---

## Usage

Import and use helpers in your TypeScript project:

```ts
import { fetchQuery, fetchAggregation, isAuthenticated } from '@sinequa/atomic';

// Example: Fetch data
const data = await fetchQuery({ query: 'example' });

// Example: Check authentication
if (isAuthenticated()) {
  // ...
}
```

### SharePoint Framework (SPFx) Integration

For SharePoint Framework applications, initialize AadHttpClient for Azure AD authentication:

```ts
import { AadHttpClient } from '@microsoft/sp-http';
import { initializeAadHttpClient, get, post } from '@sinequa/atomic';

// In your SPFx web part onInit method:
const aadHttpClient = await this.context.aadHttpClientFactory
  .getClient('api://your-sinequa-api-id');
initializeAadHttpClient(aadHttpClient);

// Now all HTTP calls automatically use Azure AD authentication
const results = await get('api/v1/query', new URLSearchParams({ query: 'example' }));
```

See the [AadHttpClient Migration Guide](./docs/features/aad-http-client-migration.md) for detailed setup instructions.

---

## Documentation

Comprehensive documentation is available in the [Atomic Documentation Portal](https://sinequa.github.io/sba-mint/atomic/intro).

---

## License

This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.
npm package: @sinequa/components
Description: `@sinequa/components` is an Angular library containing sub-libraries for each feature of the SBA Framework.
Author: Sinequa
Latest version: 11.13.6

# @sinequa/components

`@sinequa/components` is an Angular library containing sub-libraries for each feature of the SBA Framework.

**Learn more on our [documentation website](https://sinequa.github.io/sba-angular/modules/components/components.html).**
npm package: @sinequa/core
Description: `@sinequa/core` is an Angular library containing the minimal dependencies to connect and interact with the Sinequa REST API.
Author: Sinequa
Latest version: 11.13.6

# @sinequa/core

`@sinequa/core` is an Angular library containing the minimal dependencies to connect and interact with the Sinequa REST API.

**Learn more on our [documentation website](https://sinequa.github.io/sba-angular/modules/core/core.html).**