@rine-kit/pubg-plugin 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -11,7 +11,8 @@ export interface PubgAccess {
11
11
  sessionId: string;
12
12
  }
13
13
  export interface PubgPluginOptions<Ctx> {
14
- access(ctx: Ctx): PubgAccess;
14
+ /** May look the team up (a database read); the tools wait for it. */
15
+ access(ctx: Ctx): PubgAccess | Promise<PubgAccess>;
15
16
  }
16
17
  /**
17
18
  * The PUBG tool catalogue (shared with every other host) as a plugin. The tools take whatever the model
package/dist/index.js CHANGED
@@ -10,8 +10,8 @@ export function createPubgPlugin(options) {
10
10
  name: spec.name,
11
11
  description: spec.description,
12
12
  input: spec.input,
13
- run: (input, ctx, { signal }) => {
14
- const access = options.access(ctx);
13
+ run: async (input, ctx, { signal }) => {
14
+ const access = await options.access(ctx);
15
15
  return runPubgTool(spec, input, {
16
16
  service: access.service,
17
17
  host: access.host,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rine-kit/pubg-plugin",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "The PUBG tools as an @rine-kit/plugin-sdk plugin (Vercel AI SDK hosts such as RINE). The OpenClaw host keeps its own thin adapter over the same @rine-kit/pubg-tools catalogue.",
6
6
  "license": "MIT",
@@ -12,9 +12,9 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "@rine-kit/plugin-sdk": "0.1.0",
16
- "@rine-kit/pubg-domain": "0.1.0",
17
- "@rine-kit/pubg-tools": "0.1.0"
15
+ "@rine-kit/plugin-sdk": "0.1.1",
16
+ "@rine-kit/pubg-tools": "0.1.1",
17
+ "@rine-kit/pubg-domain": "0.1.1"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/node": "^26.6.5",