open-index/open-npm huggingface dataset:
npm package: @rubiya/custom-lib
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.2.7.
Latest version: 0.0.1

# CustomLib

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.2.7.

## Code scaffolding

Run `ng generate component component-name --project custom-lib` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project custom-lib`.
> Note: Don't forget to add `--project custom-lib` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build custom-lib` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build custom-lib`, go to the dist folder `cd dist/custom-lib` and run `npm publish`.

## Running unit tests

Run `ng test custom-lib` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
npm package: @rublixht/lib-chatbox-ng
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.2.0.
Latest version: 1.4.6

# LibChatboxNg

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.2.0.

## Code scaffolding

Run `ng generate component component-name --project lib-chatbox-ng` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project lib-chatbox-ng`.
> Note: Don't forget to add `--project lib-chatbox-ng` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build lib-chatbox-ng` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build lib-chatbox-ng`, go to the dist folder `cd dist/lib-chatbox-ng` and run `npm publish`.

## Running unit tests

Run `ng test lib-chatbox-ng` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
npm package: @rubriclab/actions
Description: The Actions package aims to provide a powerful and simple way to define actions (which are essentially API primitives) and execute them safely with JSON serializable payloads.
Latest version: 0.0.54

# @rubriclab/actions
The Actions package aims to provide a powerful and simple way to define actions (which are essentially API primitives) and execute them safely with JSON serializable payloads.

It is part of Rubric's architecture for Generative UI when used with:
- [@rubriclab/actions](https://github.com/rubriclab/actions)
- [@rubriclab/blocks](https://github.com/rubriclab/blocks)
- [@rubriclab/chains](https://github.com/rubriclab/chains)
- [@rubriclab/agents](https://github.com/rubriclab/agents)
- [@rubriclab/events](https://github.com/rubriclab/events)

[Demo](https://chat.rubric.sh)

## Get Started
### Installation
`bun add @rubriclab/actions`

> @rubriclab scope packages are not built, they are all raw typescript. If using in a next.js app, make sure to transpile.

```ts
// next.config.ts
import type { NextConfig } from  'next' 
export default {
	transpilePackages: ['@rubriclab/actions'],
	reactStrictMode: true
} satisfies  NextConfig
```

> If using inside the monorepo (@rubric), simply add `{"@rubriclab/actions": "*"}` to dependencies and then run `bun i`

### Define Actions
To get started, define a few actions.

```ts
import { createAction } from '@rubriclab/actions'
import { z } from 'zod'

const convertStringToNumber = createAction({
	schema: {
		input: z.object({
			str: z.string()
		}),
		output: z.number()
	},
	execute: ({ str }) => Number(str)
})

export const actions = { convertStringToNumber }
```

### Create an Executor
Pass all your actions into an executor to get a function to execute it.

```ts
'use server'

import { createActionExecutor } from '@rubriclab/actions'
import { actions } from './actions'

export const { execute } = createActionExecutor({ actions })
```

### Execute an Action

```ts
const number = await execute({ action: 'convertStringToNumber' params: { str: '2' } })
```