open-index/open-npm huggingface dataset:
npm package: @opencomms/opencode-plugin
Description: OpenCode plugin for OpenComms
Author: blindmansion
Latest version: 0.1.3

# @opencomms/opencode-plugin

OpenCode plugin for OpenComms - enables AI agents to communicate via messaging platforms like Slack and Discord.

## Features

- **Automatic session injection**: Automatically injects `SES_ID` into `opencomms` CLI commands to enable agent mode
- **Inbox notifications**: Shows unread thread notifications after tool executions

## Installation

### From npm

Add the plugin to your OpenCode config:

```json
{
  "plugin": ["@opencomms/opencode-plugin"]
}
```

### From local file

1. Download `opencomms.ts` to `.opencode/plugins/` or `~/.config/opencode/plugins/`
2. OpenCode will automatically load it at startup

## Usage

Once installed, the plugin works automatically:

1. When you run `opencomms` commands in OpenCode, the plugin automatically adds your session ID
2. After any tool execution, if you have unread messages, you'll see a notification

## Example

```bash
# This command:
opencomms threads

# Automatically becomes:
export SES_ID=your-session-id; opencomms threads
```

## Requirements

- OpenCode 1.0.0 or later
- OpenComms server running on `localhost:3131`
- `opencomms` CLI installed globally or linked locally

## Development

If you're developing OpenComms locally, use `bun link` to make the `opencomms` command available:

```bash
cd packages/app
bun link
```

## License

MIT
npm package: @opencomputer/sdk
Description: TypeScript SDK for OpenComputer - cloud sandbox platform
Author: OpenComputer
Latest version: 0.5.13

# @opencomputer/sdk

TypeScript SDK for [OpenComputer](https://github.com/diggerhq/opensandbox) — cloud sandbox platform.

## Install

```bash
npm install @opencomputer/sdk
```

## Quick Start

```typescript
import { Sandbox } from "@opencomputer/sdk";

const sandbox = await Sandbox.create({ template: "base" });

// Execute commands
const result = await sandbox.commands.run("echo hello");
console.log(result.stdout); // "hello\n"

// Read and write files
await sandbox.files.write("/tmp/test.txt", "Hello, world!");
const content = await sandbox.files.read("/tmp/test.txt");

// Clean up
await sandbox.kill();
```

## Configuration

| Option    | Env Variable            | Default                  |
|-----------|------------------------|--------------------------|
| `apiUrl`  | `OPENCOMPUTER_API_URL`  | `https://app.opencomputer.dev`  |
| `apiKey`  | `OPENCOMPUTER_API_KEY`  | (none)                   |

## License

MIT