@rine-kit/pubg-plugin 0.1.1 → 0.1.2
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.js +6 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { definePlugin } from '@rine-kit/plugin-sdk';
|
|
2
2
|
import { PUBG_TOOLS, runPubgTool } from '@rine-kit/pubg-tools';
|
|
3
|
-
const INSTRUCTIONS =
|
|
3
|
+
const INSTRUCTIONS = [
|
|
4
|
+
"You can look up PUBG statistics and match reviews with the pubg_* tools. Every number, match, player, time range and coverage statement in your answer must come from this turn's tool results; never answer PUBG facts from memory or from the chat. Keep the tool's coverage, data time and partial/unknown states in your answer, and say plainly when data is missing. Name players only by the in-game names or aliases in tool results. Never pass tenant, team or user identifiers: who is asking is decided by the system.",
|
|
5
|
+
'Every new PUBG factual request must call a pubg_* tool in the current turn, even if the chat or an earlier tool result already holds an answer; earlier turns may only resolve who, which period and which scope, never numbers. A repeated or teasing re-ask calls the tool again. Leave refresh out (the default fetches the newest matches first); use refresh: false only when the person explicitly asks for cached data.',
|
|
6
|
+
'A first-person request ("me", "my record") is the asker\'s own account and must never become team: true. A record request that names no one ("yesterday\'s record") is a whole-team request: team: true.',
|
|
7
|
+
'Record requests (today / yesterday / this week) use pubg_query_stats (report, grouped by player), never pubg_search_matches; a per-match list is only for an explicit "which games" ask or as the first step of a review. "The latest / last match" = pubg_search_matches with sort desc, recentN 1, refresh true, then pubg_get_review_facts with the returned matchId. A period review = pubg_search_matches with a relative_period selector (today / yesterday), refresh true, sort asc, pageSize 50, then pubg_get_period_review with the returned resultSetId. Friendly fire / teammate actions in a period = pubg_query_team_damage directly.',
|
|
8
|
+
].join('\n');
|
|
4
9
|
/**
|
|
5
10
|
* The PUBG tool catalogue (shared with every other host) as a plugin. The tools take whatever the model
|
|
6
11
|
* writes after the shared validation, but the Domain service and the meaning of "me" come from the host.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rine-kit/pubg-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
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.
|
|
16
|
-
"@rine-kit/pubg-
|
|
17
|
-
"@rine-kit/pubg-
|
|
15
|
+
"@rine-kit/plugin-sdk": "0.1.2",
|
|
16
|
+
"@rine-kit/pubg-domain": "0.1.2",
|
|
17
|
+
"@rine-kit/pubg-tools": "0.1.2"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/node": "^26.6.5",
|