open-index/open-npm huggingface dataset:
npm package: @productdrivers/core
Description: Shared types and contracts for ProductDrivers
Latest version: 1.0.0

# @productdrivers/core

Shared types, schemas, and constants for the ProductDrivers analytics platform.

## Installation

```bash
npm install @productdrivers/core
# or
yarn add @productdrivers/core
# or
pnpm add @productdrivers/core
```

## Usage

### Types

```typescript
import type {
  TrackPayload,
  IdentifyPayload,
  EventType,
  JourneyEventPayload,
  FeatureEventPayload,
  SatisfactionEventPayload,
} from '@productdrivers/core';

const event: FeatureEventPayload = {
  projectKey: 'proj_xxx',
  event: 'FEATURE_USED',
  feature: 'help_tooltip',
  journey: 'checkout',
};
```

### Schemas (Zod)

```typescript
import { trackPayloadSchema, validateTrackPayload } from '@productdrivers/core';

const result = validateTrackPayload(data);

if (result.success) {
  // data is valid
  console.log(result.data);
} else {
  // validation errors
  console.error(result.error);
}
```

### Constants

```typescript
import { API_ENDPOINTS, SDK_DEFAULTS, LIMITS } from '@productdrivers/core';

console.log(API_ENDPOINTS.TRACK); // '/v1/track'
console.log(SDK_DEFAULTS.MAX_BATCH_SIZE); // 50
console.log(LIMITS.MAX_JOURNEY_LENGTH); // 100
```

## Event Types

- `JOURNEY_START` - User starts a journey
- `JOURNEY_COMPLETE` - User completes a journey
- `STEP_VIEW` - User views a step within a journey
- `FEATURE_USED` - User interacts with a feature
- `JOURNEY_SATISFACTION` - User rates their satisfaction
- `CUSTOM` - Custom event type

## Development

```bash
# Install dependencies
pnpm install

# Build
pnpm build

# Type check
pnpm type-check

# Watch mode
pnpm dev
```

## License

MIT
npm package: @producteca/sbnoti
Description: Notifications Reader for Azure Service Bus
Latest version: 8.1.1

# servicebus-notifications-reader
##### (or `sbnoti` because Azure has problems with large path names -__-)
Notifications Reader for Azure Service Bus

### Usage:
```coffee-script
SbnotiBuilder = require("sbnoti")

reader = new SbnotiBuilder()
.withServiceBus #required
  connectionString: "the azure connection string"
  topic: "the topic name"
  subscription: "the subscription name"
#All settigns below are optional. The values are the defaults.
.withConcurrency 25
# new health notifiying option:
.withHealth
  redis: 
    host: "host"
    port: 6739
    auth: "cadenaDeAuth"
    db: 2
  app: "la-aplicacion-que-esta-usando-sbnoti"
.build()
```
### To read from the dead letter subscription
``` Coffeescript
reader = new SbnotiBuilder()
.withServiceBus #required
  connectionString: "the azure connection string"
  topic: "the topic name"
  subscription: "the subscription name"
.fromDeadLetter()
.build()
```

### Also read from regular and dead letter at the same time!
``` Coffeescript
reader = new SbnotiBuilder()
.withServiceBus #required
  connectionString: "the azure connection string"
  topic: "the topic name"
  subscription: "the subscription name"
.activeFor
  pending: true #Read from regular subscription
  failed: true  #Read from dead letter
.build()
```

#### TIP: Use the booleans for pending and failed to control which readers are active

#### A nice function to transform strings 'true' and 'false' to actual the boolean value or a default:
``` Coffeescript
stringToBoolean: (value,_default) ->
  (value?.toLowerCase?() ? _default?.toString()) == 'true'
```

### To start the reader with a given process
``` Coffeescript
Promise = require("bluebird")
reader.run (message) =>
  # do something with message
  Promise.resolve "message processed ok"
  # or...
  Promise.reject "error processing the message"
```

### To make an http request for each message
``` Coffeescript
messageToOptions = (message) =>
  uri: "http://an.endpoint.com"
  body: message.data
  headers:
    authorization: "access token"

reader.runAndPost messageToOptions, ignoredStatusCodes: [409,503]
reader.runAndGet messageToOptions
reader.runAndPut messageToOptions
reader.runAndDelete messageToOptions
#or also
method = 'post',  #'get','delete','update'
reader.runAndRequest messageToOptions, method, ignoredStatusCodes: [409]

```

### Migrations

#### 4.x -> 5.x

##### Removed methods

* builder#withFilters

* builder#withLogging. You should use environment variable DEBUG=sbnoti:*

* builder#withReceiveBatchSize and builder#withWaitForMessageTime. Service bus SDK uses AMQP [azure-servicebus.receiver.registerMessageHandler](https://docs.microsoft.com/en-us/javascript/api/@azure/service-bus/receiver?view=azure-node-latest#registermessagehandler-onmessage--onerror--messagehandleroptions-)
npm package: @productfactory/agent-supervisor
Description: Sandbox-local runtime supervisor for Factory coding-agent prompts.
Latest version: 0.1.0

# @productfactory/agent-supervisor

Sandbox-local runtime supervisor for Factory coding-agent prompts.

It owns a single ACP prompt inside the sandbox, auto-approves ACP tool permissions,
streams progress back to Factory, emits heartbeats, and exits when the prompt finishes.

## Run

The supervisor reads its config from `FACTORY_SUPERVISOR_CONFIG_PATH`.

```bash
FACTORY_SUPERVISOR_CONFIG_PATH=/path/to/config.json factory-agent-supervisor
```

## Config

Required fields in the JSON config:

- `runId`
- `taskId`
- `sandboxId`
- `callbackUrl`
- `token`
- `promptId`
- `prompt`

Optional fields:

- `sessionId`
- `modelId`
- `mcpServers`
- `repoDir`

## Environment

Optional runtime environment variables:

- `CODING_AGENT_ACP_COMMAND`
- `CLAUDE_ACP_COMMAND`

By default the supervisor launches:

```bash
npx -y @agentclientprotocol/claude-agent-acp
```
npm package: @productful/productful-app
Description: ## Project setup ``` yarn install ```
Latest version: 0.1.0

# productful-app

## Project setup
```
yarn install
```

### Compiles and hot-reloads for development
```
yarn serve
```

### Compiles and minifies for production
```
yarn build
```

### Run your unit tests
```
yarn test:unit
```

### Lints and fixes files
```
yarn lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).