open-index/open-npm huggingface dataset:
npm package: @ottogridai/agentsearch
Description: Official TypeScript SDK for interacting with the AgentSearch API
Author: Sully
Latest version: 1.1.10

# AgentSearch TypeScript SDK

The official TypeScript SDK for interacting with the AgentSearch API. This SDK provides a simple and intuitive interface for making requests to various AgentSearch endpoints.

## Installation

Install the SDK using npm:

```bash
npm install @ottogridai/agentsearch
```

Or using yarn:

```bash
yarn add @ottogridai/agentsearch
```

## Usage

First, import and initialize the AgentSearch client:

```typescript
import { AgentSearch } from "agentsearch-sdk";

const agentSearch = new AgentSearch("your_api_key");
```

Now you can use the various API methods:

### Answer API

```typescript
// Get an answer
const answerResponse = await agentSearch.answer.get({
  query: "What is the capital of France?",
});

// Perform an advanced search
const advancedSearchResponse = await agentSearch.answer.searchAdvanced({
  query: "Latest developments in AI",
  additionalInstructions: "Focus on the last 6 months",
});
```

### Browse API

```typescript
const browseResult = await agentSearch.browse.explore({
  url: "https://example.com",
  singlePage: true,
});
```

### Crawl API

```typescript
const crawlResult = await agentSearch.crawl.start({
  url: "https://example.com",
  crawlOptions: {
    maxDepth: 3,
    limit: 100,
  },
});
```

### Search API

```typescript
// Perform a Serper search
const searchResults = await agentSearch.search.serperSearch({
  q: "best restaurants in New York",
  num: 10,
});

// Perform a LinkedIn search
const linkedInResults = await agentSearch.search.linkedInSearch({
  query: "software engineers",
  page: 1,
  resultsPerPage: 20,
});

// Rerank search results
const rerankedResults = await agentSearch.search.rerank({
  query: "machine learning applications",
});

// Generate search queries
const generatedQueries = await agentSearch.search.generateQueries({
  query: "Electric vehicles market trends",
});
```

### Scrape API

```typescript
const scrapedContent = await agentSearch.scrape.extract({
  url: "https://example.com",
  scrapeOptions: {
    formats: ["markdown", "html"],
    onlyMainContent: true,
  },
});
```

## Error Handling

The SDK uses custom `AgentSearchError` for error handling. You can catch and handle these errors in your code:

```typescript
try {
  const result = await agentSearch.answer.getAnswer({ query: "Some query" });
  // Handle successful response
} catch (error) {
  if (error instanceof AgentSearchError) {
    console.error(`API Error: ${error.message}, Status: ${error.status}`);
  } else {
    console.error("Unexpected error:", error);
  }
}
```

## Documentation

For detailed information about each API endpoint and its parameters, please refer to the [API documentation](./docs/API.md).

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
npm package: @ottogroup/eslint-config-ui5-ts
Description: ESLint configuration for UI5 TypeScript projects
Author: Otto Group IT
Latest version: 1.1.0

# ESLint configuration for UI5 projects in TypeScript

## Usage

Install packages:

`pnpm add --save-dev eslint @eslint/js jiti typescript typescript-eslint @ottogroup/eslint-config-ui5-ts`

Create config file `eslint.config.ts`

```typescript
import tseslint from "typescript-eslint";

import eslint from "@eslint/js";
import * as ogit from "@ottogroup/eslint-config-ui5-ts";

export default tseslint.config(
  eslint.configs.recommended,
  tseslint.configs.recommended,
  ogit.default
);
```
npm package: @ottogroup/prettier-config-ui5
Description: Configuration for UI5 TypeScript projects
Author: Marc Schleeweiß
Latest version: 2.0.1

# Shareable prettier configuration for our UI5 projects

| Option | Value |
|-|-|
| `tabWidth` | `4` |
| `trailingComma` | `"all"` |

## Install

Install prettier, the official prettier XML plugin and our config as a dev dependency.

```bash
npm i -D prettier @prettier/plugin-xml @ottogroup/prettier-config-ui5
```

## Usage

Add the following property to your `package.json`

```json
"prettier": "@ottogroup/prettier-config-ui5",
```
## Extend

This config can be extended in your project. Instructions can be found [here](https://prettier.io/docs/en/configuration.html).

A list of all options can be found [here](https://prettier.io/docs/en/options.html).
npm package: @ottogroup/ui5-cc-feedback
Description: Custom UI5 control to give users the ability to send feedback
Author: Otto Group
Latest version: 1.0.5

# Feedback dialog

Custom control that expands the dialog which sends the information added by a user to an adaptive card in teams
## Install procedure
* Add module as dependency and as a devDepency at package.json
 "@ottogroup/ui5-cc-feedback": "^1.0.0",
* Run install
* Go to the node_modules folder.
* Copy the control into your project folder 
(Working on a postinstall.js file )

## How To Make It Work
Right now, the dialogue is only prepared to accept some types of controls in its content.
It is necessary to include a Grid as the main container and inside it: A rating indicator, a text area, and a checkbox to send feedback anonymously. 
Update. Now you can add also a smartform to create a tab with Q&A in the card.

The rest of the components will be ignored, and no information will be sent to the teams.
## Properties

- sendButtonText: Text at send button
- closeButtonText: Text at close button
- webHook: Url from the teams channel webhook
- sendButtonEnable: Enable or not the send button. 
- All properties borrowed from the dialog

## Events
If it's needed to add some code after pressing the send or cancel button these events were created:
- afterSend: Event fired after the creation of the feedback
- afterCancel: Event fired after closing the dialog.
npm package: @ottogroup/ui5-hcm-shared
Description: Common UI5 HCM Coding
Author: Otto Group
Latest version: 0.1.1

# @ottogroup/ui5-hcm-shared

This project contains common UI5 HCM coding for the Otto Group. Below is a brief explanation of the files and directories in this project.

## Classes

### MssComponent

Defines the `MssComponent` class, a UI5 component.

### BasicController

Defines the `BasicController` class, a base controller for UI5 applications.

### BasicFragment

Defines the `BasicFragment` class, a base fragment for UI5 applications.

### ConfigModel

Defines the `ConfigModel` interface, representing the configuration model.

### Orgunit

Defines the `Orgunit` interface, representing an organizational unit.
npm package: @ottogroup/ui5-launchpadhelpicon
Description: UI5 LaunchpadHelpIcon
Author: Otto Group
Latest version: 0.1.2

# @ottogroup/ui5-launchpadhelpicon

This package adds a small help icon to the launchpad shellbar.

![Demo](readme_1.png)

<https://www.npmjs.com/package/@ottogroup/ui5-launchpadhelpicon>

## Setup

1. Install `ui5-tooling-modules` as described [here](https://www.npmjs.com/package/ui5-tooling-modules#install):

    - package.json (devDependencies + ui5.dependencies)
    - ui5.yaml (server.customMiddleware + builder.customTasks)

2. Install packages

    `pnpm i @ottogroup/ui5-launchpadhelpicon --dev`

3. Set alias in `tsconfig.json`

    ```json
    {
        "compilerOptions": {
            "baseUrl": "./", // otherwise the node_modules folder can't be accessed
            "paths": {
                "@ottogroup/ui5-launchpadhelpicon": [
                    "node_modules/@ottogroup/ui5-launchpadhelpicon/src/LaunchpadHelpIcon"
                ]
            }
        }
    }
    ```

4. Use `LaunchpadHelpIcon`

    ```ts
    import LaunchpadHelpIcon from "@ottogroup/ui5-launchpadhelpicon";
    const launchpadHelpIcon = new LaunchpadHelpIcon();
    await launchpadHelpIcon.addItem({
        name: "Google",
        url: "https://google.de",
    });
    ```

## Useful links

<https://github.com/SAP-samples/ui5-typescript-tutorial/tree/main/exercises/ex8>

<https://www.npmjs.com/package/ui5-tooling-modules>
npm package: @ottogroup/ui5-migrate-neo-to-cf
Description: Migration tool for UI5 Apps from BTP NEO to BTP Cloud foundry with the minimium manual work
Author: Adrián Domínguez García
Latest version: 1.0.12
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# ui5-migrate-neo-to-cf

This tool adapt a current UI5 app deployed in BTP NEO for the BTP CF deployment.
Currently it creates new files and it adapts the package.json file.
This tool expects to be used together with GitLab pipelines and environment variables.

# Installation
npm i @ottogroup/ui5-migrate-neo-to-cf --save-dev

# Usage
The module expects that the command be run in the root path of your project (the one you want to migrate).
```
npx ui5-migrate-neo-to-cf
```

For example in powershell:
```
PS C:\Users\MyUser\MyProjectsFolder\MyProject> npx ui5-migrate-neo-to-cf
```
# How it works

1. Start running after the command ui5-migrate-neo-to-cf is executed.
2. It gets the root path of the project and the path for the source code.
3. It decides if it is an typescript app (src) or javascript app (webapp) depending on the source code folder detected (the src folder is the first to be checked).
4. Get the ui5 id (sap.app.id) from the manifest.json in the source code path of the previous step.
5. Generate the files from templates (internal folder /templates). For each template:
   1. Decide between executing update action or creation/overwritten action.
   2. Replace the variables found on the template defined in the index file.
   3. Generate the file in the root path of the project to be migrated.
# Templates
In the path ./templates are the files which will be use for creation or updation in the proyect you use the module.

Create/Overwrite file with the template
- The templates with the pattern: &lt;filename&gt;-template&lt;extension&gt;, will be created/overwritten in the project.
  
Update an existing file with the template
- The templates with the pattern: addTo-&lt;filename&gt; will be use to update an existing files (currently only json files).
  **If the key in the template already exist in the target file, it will be overwritten**.


Currently template files:
- addTo-.gitlab-ci.yml
- addTo-Package.json
- mta-template.yaml
- ui5-deploy.yaml
- xs-app-template.yaml