open-index/open-npm huggingface dataset:
npm package: @salesforce/refocus-collector
Description: Collector system to automate feeding data in to the Refocus platform.
Author: Salesforce CX Tools
Latest version: 1.2.1

[![Coverage Status](https://coveralls.io/repos/github/salesforce/refocus-collector/badge.svg?branch=master)](https://coveralls.io/github/salesforce/refocus-collector?branch=master)

# refocus-collector

### Installation

Prerequisite: NPM and Node.js

* Install via Git Clone
    * ```git clone https://github.com/salesforce/refocus-collector.git```
    * ```cd refocus-collector```
    * ```npm install```
    * ```npm link```
    * try command ```refocus-collector```  or ```refocus-collector --help```

  Usage: ```refocus-collector [command] [options]```


### Commands

    Start collector for name, refocus url, API token, proxy for refocus and proxy for data source. refocusProxy and dataSourceProxy are optional arguments
    start --collectorName --refocusUrl --accessToken --refocusProxy --dataSourceProxy

    Stop given collector
    stop  --collectorName --refocusProxy

    Show status of collector
    status  --collectorName --refocusProxy

    Deregister given collector
    deregister  --collectorName --refocusProxy

    Reregister given collector. refocusProxy is an optional argument
    reregister  --collectorName --refocusUrl --accessToken --refocusProxy

    Display help for [cmd]
    help [cmd]

  Options:

    -n, --collectorName     specify the name of the collector
    -h, --help     output usage information
    -V, --version  output the version number

  Examples:

    $ refocus-collector --help
    $ refocus-collector start --collectorName=PRD_Collector_12345 --refocusUrl=https://refocus.foo.com --accessToken=eygduyguygijfdhkfjhkfdhg --refocusProxy=http://abcproxy.com --dataSourceProxy=http://xyzproxy.com
    $ refocus-collector stop --collectorName=PRD_Collector_12345
    $ refocus-collector status --collectorName=PRD_Collector_12345
    $ refocus-collector deregister --collectorName=PRD_Collector_12345
    $ refocus-collector reregister --collectorName=PRD_Collector_12345 --refocusUrl=https://refocus.foo.com --accessToken=eygduyguygijfdhkfjhkfdhg --refocusProxy=http://abcproxy.com

-----

- [Introduction to Collectors](docs/pages/collectorintro.md)
- [Introduction to Sample Generators](docs/pages/samplegenintro.md)

-----

# Version History
- 1.1.1
    - Simplify the heartbeat payload - send up all the process info, not just delta from last heartbeat
- 1.2.0
    - Reuse authentication token among generator clones until it expires.
npm package: @salesforce/refocus-collector-eval
Description: Collector eval utils used by Refocus Collector System to validate transform and toUrl functions.
Author: Salesforce CX Tools
Latest version: 1.11.3

[![Coverage Status](https://coveralls.io/repos/github/salesforce/refocus-collector-eval/badge.svg)](https://coveralls.io/github/salesforce/refocus-collector-eval)

# Refocus Collector Eval

Collector eval utils used by Refocus Collector System to validate transform and toUrl functions

## Install

`npm install @salesforce/refocus-collector-eval --save`

## API

### RefocusCollectorEval.safeTransform(transformFunc, args)

Safely executes the given transform function with the arguments provided. Returns array of zero or more samples.

### RefocusCollectorEval.safeToUrl(toUrlFunc, args)

Safely executes the given toUrl function with the arguments provided. Returns the generated url as a string.

### RefocusCollectorEval.getTransformFunction(transform, status)

Returns a transform function based on the status code provided. Checks for an exact status match from transform.errorHandlers. If there is an exact match, returns that one. If no exact match is found, checks for a regex status match. If there is an errorHandler defined for the status code based on a regex match, returns the first regex match found. If there is no errorHandler defined for the status code provided, if the status code is 2xx, returns transform.default. If there is no errorHandler AND the status code is NOT 2xx, returns false.

### RefocusCollectorEval.sampleSchema

Returns the Joi schema for sample validation.

## Usage

```
const RefocusCollectorEval = require('@salesforce/refocus-collector-eval');

const sampleArr = RefocusCollectorEval.safeTransform(transformFunc, args);
const url = RefocusCollectorEval.safeToUrl(toUrlFunc, args);
const func = RefocusCollectorEval.getTransformFunction(transform, status);
const sampleSchema = RefocusCollectorEval.sampleSchema;
```

## Projects using this module

- [Refocus Collector](https://github.com/salesforce/refocus-collector)
- [Refocus Sample Generator Template Utils](https://github.com/salesforce/refocus-sample-generator-template-utils)

# Version History
- 1.11.3: Update validation to accept empty subjects array
- 1.11.2: Hide secrets from debug output
- 1.11.1: Expand object bug fix.
- 1.11.0: Removed unnecessary logging.
- 1.10.0: Add new expandObject function to apply variable expansion across multiple attributes of an object instead of just for a single stering.
- 1.9.0: Add aspects and subjects to context for url variable substitution; support object and array references in template expansion.
npm package: @salesforce/refocus-utilities
Description: Refocus utilities
Author: Salesforce CX Tools
Latest version: 1.1.0

[![Coverage Status](https://coveralls.io/repos/github/salesforce/refocus-utilities/badge.svg?branch=master)](https://coveralls.io/github/salesforce/refocus-utilities?branch=master)

# refocus-utilities

## Installation

`npm install @salesforce/refocus-utilities`

## Commands

### sample-store-cleanup

Use sample-store-cleanup to clean out bad samples from the Sample Store.

The redis connection url defaults to local redis instance
`redis://localhost:6379`, but if environment variable `REDIS_URL` exists, it
will use that instead. Alternatively, you can pass a redis connection url using
command option `--redisUrl` (or shortcut `-r`).

Use `--preview` (or `-p`) to run in preview mode, to see what keys would be deleted before actually running the cleanup utility for real.

Synopsis

  $ node sample-store-cleanup --preview
  $ REDIS_URL=MY_REDIS_CONNECTION_URL node sample-store-cleanup
  $ node sample-store-cleanup [--redisUrl redis://YOUR_REDIS_CONNECTION_URL]
  $ node sample-store-cleanup --help

Options

  -r, --redisUrl string   The redis connection url (defaults to `process.env.REDIS_URL` or `redis://localhost:6379`).
  -h, --help              Print this usage guide

### sample-store-rebuild-aspect-subject-map

Use sample-store-rebuild-aspect-subject-map to rebuild the Sample Store's
Aspect-Subject Map in redis.

The redis connection url defaults to local redis instance
`redis://localhost:6379`, but if environment variable `REDIS_URL` exists, it
will use that instead. Alternatively, you can pass a redis connection url using
command option `--redisUrl` (or shortcut `-r`).

Synopsis

  $ node sample-store-rebuild-aspect-subject-map
  $ REDIS_URL=MY_REDIS_CONNECTION_URL node sample-store-rebuild-aspect-subject-map
  $ node sample-store-rebuild-aspect-subject-map [--redisUrl redis://YOUR_REDIS_CONNECTION_URL]
  $ node sample-store-rebuild-aspect-subject-map --help

Options

  -r, --redisUrl string   The redis connection url (defaults to `process.env.REDIS_URL` or `redis://localhost:6379`).
  -h, --help              Print this usage guide
npm package: @salesforce/require-analytics
Description: Simple CommonJS require analytics
Author: Salesforce
Latest version: 0.9.21

# Node require analytics

## What is this?

A simple library for capturing CommonJS `require` analytics in Node.js.  This is useful for visualizing runtime application dependencies and the times it takes to load them.

## How do I use it?

As early as possible in your application, require and start the module analytics gathering like so:

```
const analytics = require('../dist/util/modules').start();
```

Then, at the end of your application, you can dump the results to `stderr`:

```
analytics.dump();
```

You can also process the results manually if you prefer, using `analytics.report()`.

By default, no analytics are actually gathered unless you either run the app with the envar `REQUIRE_ANALYTICS=true` set, _or_ you pass `true` to `start` (which allows you to determine your method of enabling or disabling require analytics collection).
npm package: @salesforce/salesforcedx-vscode-experiments
Description: Library for supporting experiments in VSCode Extensions
Latest version: 0.2.3

# salesforcedx-vscode-experiments

Library for enabling A/B experiments in VSCode Extensions.

## Basic usage

### Define the experiments for your VSCode extension

```
import { ExperimentType } from '@salesforce/salesforcedx-vscode-experiments';
export const experimentDefinitions = [
    {
        name: 'multiTurnChat',
        type: ExperimentType.Stateful,
        distributionPercent: 50
    },
    {
        name: 'aiContextEngine',
        type: ExperimentType.Stateful,
        distributionPercent: 10
    }
];
```
### Experiment Properties
 - name: The unique name for the experiment
 - type: Stateful | Transactional (currently only stateful is supported)
 - distributionPercent: The percentage breakdown that you would like for the experiment.
 - expirationDate: String date for when the experiment should expire.

### Registration
In your VSCode extension you need to register your experiments.  

```  
    const experimentService = getExperimentService();
    await experimentService.registerExperiments(context, experiments);
```

### Usage
After registration you are able to get the current status for one or all experiments and can use that 
to enable code flows based on experiment status. 

```
    const assignedExperiments = experimentService.getExperiments();
    const experimentsState = experimentService.getExperimentsState();
    const isOn = experimentService.getExperimentState(experiments[0]);
```
npm package: @salesforce/scv-connector-base
Description: Salesforce Service Cloud Connector Base
Author: Salesforce Service Cloud Voice
Latest version: 4.9.1

# Service Cloud Voice base connector
The base connector is an SDK for partner telephony systems that integrate with Salesforce Service Cloud Voice.

## Document
We’ve provided documentation in the `/docs` folder.

## Installation

### Environment setup
The developer environment requires [Node](https://nodejs.org/en/download/), [NPM](https://docs.npmjs.com/cli/install) and [webpack-dev-server](https://webpack.github.io/docs/webpack-dev-server.html). 


### Installation
#### Clone the repo
#### Install the dependencies

```
$ npm install
```

Update the typescript declarations:
```
npm run-script tsd
```

### Using it

See https://github.com/salesforce-misc/byo-demo-connector

## Testing
Lint all the source code and run all the unit tests:
```
$ npm test
```

## Contributing and Developing Locally
We welcome contributors into our repo. Please read the [contributing guidelines](https://github.com/salesforce/scv-connector-base/blob/master/CONTRIBUTING.md) for more information.
npm package: @salesforce/sf-fx-schema-node
Description: Salesforce Functions schema-generated request context and extra info classes
Author: Salesforce.com, Inc.
Latest version: 1.0.1

# Node Javascript/Typescript languages: CloudEvents OpenAPI Schema for Salesforce Functions invocation

Provides generated `src/*.ts` and hand-written `src/contextUtil.ts` to encode/decode Salesforce Function Invocation
context and extra info.

See ../schema.json for OpenApi schema that is used to generate the typescript classes using the openapi-generator
toolset.

Note this is *not* a Java project - the pom.xml in this directory is only used to run `npm` to build and test
tests during a toplevel project build (see ../README.md) and run openapi-generator during a
`codegen` profile invocation.