open-index/open-npm huggingface dataset:
npm package: @shennian/agent
Description: Node.js/TypeScript SDK for the Shennian Agent Protocol
Author: Shennian
Latest version: 0.1.0

# @shennian/agent

Node.js/TypeScript SDK for the [Shennian Agent Protocol](../../PROTOCOL.md).

Build AI agents that plug into the Shennian platform with a few lines of code.

## Install

```bash
npm install @shennian/agent
```

## Quick Start

```typescript
import { Agent } from '@shennian/agent'

const agent = new Agent({
  name: 'My Agent',
  model: 'gpt-4o',
})

agent.onSend(async ({ text, sessionId }) => {
  agent.delta('Thinking...')
  // call your LLM here
  agent.delta('Here is the answer.')
  agent.final()
})

agent.run()
```

## Modes

**Spawn mode** (default) — CLI starts a new process per user message:

```bash
echo "Hello" | my-agent /run --session abc --workdir /tmp
```

**Stdio mode** — long-running process, receives JSONL on stdin:

```typescript
const agent = new Agent({
  name: 'My Agent',
  model: 'gpt-4o',
  mode: 'stdio',
  proactive: true,
})
```

## Emitting Events

```typescript
agent.delta('partial text')          // stream text to user
agent.delta('thinking...', true)     // thinking indicator
agent.toolCall('search', { q: 'x' }) // tool call
agent.toolResult('search', '42')     // tool result
agent.notify('Done!', 'Title')       // notification
agent.error('Something went wrong')  // error (ends run)
agent.final()                        // end run
```

## Protocol

See [PROTOCOL.md](../../PROTOCOL.md) for the full specification.
npm package: @shenorg/react-native-ss-basetool
Description: TODO
Author: SHENHJ
Latest version: 1.0.3

# react-native-ss-basetool

## Getting started

`$ npm install react-native-ss-basetool --save`

### Mostly automatic installation

`$ react-native link react-native-ss-basetool`

## Usage
```javascript
import SsBasetool from 'react-native-ss-basetool';

// TODO: What to do with the module?
SsBasetool;
```
npm package: @shenorg/react-native-ss-bizview
Description: TODO
Author: Your Name
Latest version: 1.0.7

# react-native-ss-bizview

## Getting started

`$ npm install react-native-ss-bizview --save`

### Mostly automatic installation

`$ react-native link react-native-ss-bizview`

## Usage
```javascript
import SsBizview from 'react-native-ss-bizview';

// TODO: What to do with the module?
SsBizview;
```
npm package: @shenorg/single-spa-react
Description: A single spa plugin for React apps
Author: Joel Denning
Latest version: 3.0.3

# single-spa-react

[![Build Status](https://travis-ci.com/single-spa/single-spa-react.svg?branch=master)](https://travis-ci.com/single-spa/single-spa-react)

Generic lifecycle hooks for React applications that are registered as either [single-spa applications](https://github.com/single-spa/single-spa/blob/master/docs/applications.md#registered-applications) or [single-spa](https://github.com/single-spa/single-spa) parcels.

[Full documentation](https://single-spa.js.org/docs/ecosystem-react.html)
npm package: @shenorg/single-spa-vue
Description: a single-spa plugin for vue.js applications
Author: single-spa core team
Latest version: 1.9.2

# single-spa-vue

[![Build Status](https://travis-ci.com/single-spa/single-spa-vue.svg?branch=main)](https://travis-ci.com/single-spa/single-spa-vue)

Generic lifecycle hooks for Vue.js applications that are registered as [applications](https://single-spa.js.org/docs/building-applications) of [single-spa](https://github.com/single-spa/single-spa).

[Full documentation](https://single-spa.js.org/docs/ecosystem-vue.html)
npm package: @shenorg/ss_rn_native_bridge
Description: TODO
Author: SHEN
Latest version: 1.0.10

# @shenorg/ss_rn_native_bridge

## Getting started

`$ npm install @shenorg/ss_rn_native_bridge --save`

## Usage
```javascript
import {SsBridge} from '@shenorg/ss_rn_native_bridge';

```
npm package: @shenorg/ss_rn_native_oc
Description: RN native libraries use oc
Author: SHEN
Latest version: 0.0.13

# react-native-ss-rn-native-oc

## Getting started

`$ npm install react-native-ss-rn-native-oc --save`

### Mostly automatic installation

`$ react-native link react-native-ss-rn-native-oc`

## Usage
```javascript
import SsRnNativeOc from 'react-native-ss-rn-native-oc';

// TODO: What to do with the module?
SsRnNativeOc;
```
npm package: @shenorg/ss_rn_native_pull_refresh
Description: React Native 自定义 RefreshControl 组件.
Author: SHEN
Latest version: 0.0.11

# ss_rn_native_pull_refresh

## 安装

npm install @shenorg/ss_rn_native_pull_refresh -S<br/>
或<br/>
yarn add @shenorg/ss_rn_native_pull_refresh -S

## 使用
```javascript
import {View, Text, FlatList} from 'react-native';
import LottieView from 'lottie-react-native';
import {RefreshHeader, beginRefreshing, endRefreshing} from '@shenorg/ss_rn_native_pull_refresh';

const fruitsAnimation = require('./res/bouncing-fruits.json');

function App() {
  const [progress, setProgress] = useState(0);
  const [headerWidth, setHeaderWidth] = useState(0);
  const lottieViewRef = React.createRef();

  const datas = Array.apply(null, {length: 10}).map((e, i) => {
    return `box_${i}`;
  });

  const renderItem = (data) => {
    const {item, index} = data;
    return (
      <View key={item} style={[styles.box]}>
        <Text>{item}</Text>
      </View>
    );
  };

  return (
    <View style={[styles.page]}>
      <FlatList
        contentContainerStyle={[styles.scrollView]}
        onLayout={(event) => {
          const {layout} = event.nativeEvent;
          setHeaderWidth(layout.width);
        }}
        refreshControl={
          <RefreshHeader
            onPull={(percent, offset) => {
              setProgress(percent);
            }}
            onStateChange={(state) => {
              if (state === 3) {
                lottieViewRef.current.play();
                setTimeout(() => {
                  endRefreshing();
                }, 1500);
              }
            }}
            headerComponent={
              <View
                style={{
                  width: headerWidth,
                  justifyContent: 'center',
                  alignItems: 'center',
                }}>
                <LottieView
                  ref={lottieViewRef}
                  source={fruitsAnimation}
                  progress={progress}
                  style={{
                    height: 80,
                  }}
                />
              </View>
            }
          />
        }
        keyExtractor={(item, index) => index + ''}
        data={datas}
        renderItem={renderItem}
      />
    </View>
  );
}

const styles = StyleSheet.create({
  page: {
    flex: 1,
  },
  scrollView: {
    width: '100%',
    alignItems: 'center',
    backgroundColor: '#ffffff',
  },
  box: {
    justifyContent: 'center',
    alignItems: 'center',
    width: 200,
    height: 200,
    marginBottom: 50,
    borderWidth: 1,
    borderColor: 'teal',
    backgroundColor: '#cccccc',
  },
});

```
npm package: @shenorgtest/react_ts_basic
Description: basic project
Author: SHEN
Latest version: 0.0.28

# react_ts_basic
![Build Status](https://travis-ci.org/shjyy1983/react_ts_basic.svg?branch=main)

react 模块基础项目。

### 使用
#### JS代码
```javascript
  // 引入组件和功能函数
  import { BlueBox, GreenBox, sayHello, clone } from '@shenorgtest/react_ts_basic'
  // 引入组件需要的样式
  import '@shenorgtest/react_ts_basic/dist/css/components.css'
```