# __PLUGIN_NAME__

This is a runnable starter plugin for XLibrary. It exposes one deterministic
game-source search and resolve flow so you can verify the complete plugin loop
before connecting a real catalog.

## Start here

```sh
pnpm install
pnpm test
pnpm demo
```

`pnpm demo` builds `runtime/index.js`, loads it through the SDK test host, runs a
sample search, and resolves the first result. No XLibrary window or network
request is required.

## Build and install

```sh
pnpm package
```

The command creates `dist/__PLUGIN_ID__-0-1-0.xlplugin`. Open XLibrary → Plugins,
choose **Install plugin**, select that file, review its permission, and enable it.

## What to edit

- `manifest.json` — plugin identity, permissions, source domains, and contributions.
- `src/index.ts` — provider behavior and host calls.
- `test/index.test.ts` — local contract tests that run without Electron.
- `tsconfig.json` — TypeScript output configuration. The generated `runtime/`
  folder is build output; do not edit it by hand.
