@elizaos/plugin-roblox 2.0.0-alpha.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/__tests__/suite.d.ts +7 -0
- package/dist/__tests__/suite.d.ts.map +1 -0
- package/dist/actions/executeGameAction.d.ts +4 -0
- package/dist/actions/executeGameAction.d.ts.map +1 -0
- package/dist/actions/getPlayerInfo.d.ts +4 -0
- package/dist/actions/getPlayerInfo.d.ts.map +1 -0
- package/dist/actions/index.d.ts +7 -0
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/actions/sendGameMessage.d.ts +4 -0
- package/dist/actions/sendGameMessage.d.ts.map +1 -0
- package/dist/client/RobloxClient.d.ts +29 -0
- package/dist/client/RobloxClient.d.ts.map +1 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/generated/specs/specs.d.ts +63 -0
- package/dist/generated/specs/specs.d.ts.map +1 -0
- package/dist/index.browser.d.ts +4 -0
- package/dist/index.browser.d.ts.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1070 -0
- package/dist/index.js.map +21 -0
- package/dist/providers/gameStateProvider.d.ts +3 -0
- package/dist/providers/gameStateProvider.d.ts.map +1 -0
- package/dist/providers/index.d.ts +5 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/services/RobloxService.d.ts +44 -0
- package/dist/services/RobloxService.d.ts.map +1 -0
- package/dist/services/index.d.ts +2 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/types/index.d.ts +125 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/config.d.ts +12 -0
- package/dist/utils/config.d.ts.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/package.json +100 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suite.d.ts","sourceRoot":"","sources":["../../__tests__/suite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAIxE,qBAAa,eAAgB,YAAW,SAAS;IAC/C,IAAI,SAAY;IAChB,WAAW,SAAkC;IAE7C,KAAK,EAAE,QAAQ,EAAE,CAkDf;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executeGameAction.d.ts","sourceRoot":"","sources":["../../actions/executeGameAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EASZ,MAAM,eAAe,CAAC;AAwIvB,QAAA,MAAM,iBAAiB,EAAE,MA8FxB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPlayerInfo.d.ts","sourceRoot":"","sources":["../../actions/getPlayerInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EASZ,MAAM,eAAe,CAAC;AA4DvB,QAAA,MAAM,aAAa,EAAE,MAoIpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Action } from "@elizaos/core";
|
|
2
|
+
import executeGameAction from "./executeGameAction";
|
|
3
|
+
import getPlayerInfo from "./getPlayerInfo";
|
|
4
|
+
import sendGameMessage from "./sendGameMessage";
|
|
5
|
+
export declare const robloxActions: Action[];
|
|
6
|
+
export { sendGameMessage, executeGameAction, getPlayerInfo };
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAEhD,eAAO,MAAM,aAAa,EAAE,MAAM,EAAwD,CAAC;AAE3F,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendGameMessage.d.ts","sourceRoot":"","sources":["../../actions/sendGameMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EASZ,MAAM,eAAe,CAAC;AAuCvB,QAAA,MAAM,eAAe,EAAE,MA+FtB,CAAC;AAaF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { DataStoreEntry, JsonValue, JsonValueOrUndefined, MessagingServiceMessage, RobloxConfig, RobloxExperienceInfo, RobloxUser } from "../types";
|
|
2
|
+
export declare class RobloxApiError extends Error {
|
|
3
|
+
statusCode: number;
|
|
4
|
+
endpoint: string;
|
|
5
|
+
details?: JsonValue | string;
|
|
6
|
+
constructor(message: string, statusCode: number, endpoint: string, details?: JsonValue | string);
|
|
7
|
+
}
|
|
8
|
+
export declare class RobloxClient {
|
|
9
|
+
private config;
|
|
10
|
+
constructor(config: RobloxConfig);
|
|
11
|
+
private request;
|
|
12
|
+
publishMessage(topic: string, data: Record<string, JsonValueOrUndefined>, universeId?: string): Promise<void>;
|
|
13
|
+
sendAgentMessage(message: MessagingServiceMessage): Promise<void>;
|
|
14
|
+
getDataStoreEntry<T extends JsonValue = JsonValue>(datastoreName: string, key: string, scope?: string): Promise<DataStoreEntry<T> | null>;
|
|
15
|
+
setDataStoreEntry<T extends JsonValue = JsonValue>(datastoreName: string, key: string, value: T, scope?: string): Promise<DataStoreEntry<T>>;
|
|
16
|
+
deleteDataStoreEntry(datastoreName: string, key: string, scope?: string): Promise<void>;
|
|
17
|
+
listDataStoreEntries(datastoreName: string, scope?: string, prefix?: string, limit?: number): Promise<{
|
|
18
|
+
keys: string[];
|
|
19
|
+
nextPageCursor?: string;
|
|
20
|
+
}>;
|
|
21
|
+
getUserById(userId: number): Promise<RobloxUser>;
|
|
22
|
+
getUserByUsername(username: string): Promise<RobloxUser | null>;
|
|
23
|
+
getUsersByIds(userIds: number[]): Promise<RobloxUser[]>;
|
|
24
|
+
getAvatarUrl(userId: number, size?: string): Promise<string | undefined>;
|
|
25
|
+
getExperienceInfo(universeId?: string): Promise<RobloxExperienceInfo>;
|
|
26
|
+
getConfig(): Readonly<RobloxConfig>;
|
|
27
|
+
isDryRun(): boolean;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=RobloxClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RobloxClient.d.ts","sourceRoot":"","sources":["../../client/RobloxClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACT,oBAAoB,EACpB,uBAAuB,EACvB,YAAY,EACZ,oBAAoB,EACpB,UAAU,EACX,MAAM,UAAU,CAAC;AAKlB,qBAAa,cAAe,SAAQ,KAAK;IAG9B,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,MAAM;IAChB,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM;gBAHnC,OAAO,EAAE,MAAM,EACR,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM;CAKtC;AAED,qBAAa,YAAY;IACvB,OAAO,CAAC,MAAM,CAAe;gBAEjB,MAAM,EAAE,YAAY;YAIlB,OAAO;IAwCf,cAAc,CAClB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EAC1C,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,IAAI,CAAC;IAgBV,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAUjE,iBAAiB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,EACrD,aAAa,EAAE,MAAM,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"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-generated canonical action/provider/evaluator docs for plugin-roblox.
|
|
3
|
+
* DO NOT EDIT - Generated from prompts/specs/**.
|
|
4
|
+
*/
|
|
5
|
+
export type ActionDoc = {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
similes?: readonly string[];
|
|
9
|
+
parameters?: readonly unknown[];
|
|
10
|
+
examples?: readonly (readonly unknown[])[];
|
|
11
|
+
};
|
|
12
|
+
export type ProviderDoc = {
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
position?: number;
|
|
16
|
+
dynamic?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type EvaluatorDoc = {
|
|
19
|
+
name: string;
|
|
20
|
+
description: string;
|
|
21
|
+
similes?: readonly string[];
|
|
22
|
+
alwaysRun?: boolean;
|
|
23
|
+
examples?: readonly unknown[];
|
|
24
|
+
};
|
|
25
|
+
export declare const coreActionsSpec: {
|
|
26
|
+
readonly version: "1.0.0";
|
|
27
|
+
readonly actions: readonly [];
|
|
28
|
+
};
|
|
29
|
+
export declare const allActionsSpec: {
|
|
30
|
+
readonly version: "1.0.0";
|
|
31
|
+
readonly actions: readonly [];
|
|
32
|
+
};
|
|
33
|
+
export declare const coreProvidersSpec: {
|
|
34
|
+
readonly version: "1.0.0";
|
|
35
|
+
readonly providers: readonly [{
|
|
36
|
+
readonly name: "roblox-game-state";
|
|
37
|
+
readonly description: "Provides information about the connected Roblox game/experience";
|
|
38
|
+
readonly dynamic: true;
|
|
39
|
+
}];
|
|
40
|
+
};
|
|
41
|
+
export declare const allProvidersSpec: {
|
|
42
|
+
readonly version: "1.0.0";
|
|
43
|
+
readonly providers: readonly [{
|
|
44
|
+
readonly name: "roblox-game-state";
|
|
45
|
+
readonly description: "Provides information about the connected Roblox game/experience";
|
|
46
|
+
readonly dynamic: true;
|
|
47
|
+
}];
|
|
48
|
+
};
|
|
49
|
+
export declare const coreEvaluatorsSpec: {
|
|
50
|
+
readonly version: "1.0.0";
|
|
51
|
+
readonly evaluators: readonly [];
|
|
52
|
+
};
|
|
53
|
+
export declare const allEvaluatorsSpec: {
|
|
54
|
+
readonly version: "1.0.0";
|
|
55
|
+
readonly evaluators: readonly [];
|
|
56
|
+
};
|
|
57
|
+
export declare const coreActionDocs: readonly ActionDoc[];
|
|
58
|
+
export declare const allActionDocs: readonly ActionDoc[];
|
|
59
|
+
export declare const coreProviderDocs: readonly ProviderDoc[];
|
|
60
|
+
export declare const allProviderDocs: readonly ProviderDoc[];
|
|
61
|
+
export declare const coreEvaluatorDocs: readonly EvaluatorDoc[];
|
|
62
|
+
export declare const allEvaluatorDocs: readonly EvaluatorDoc[];
|
|
63
|
+
//# sourceMappingURL=specs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"specs.d.ts","sourceRoot":"","sources":["../../../generated/specs/specs.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAC,SAAS,OAAO,EAAE,CAAC,EAAE,CAAC;CAC5C,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AACX,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AACX,eAAO,MAAM,iBAAiB;;;;;;;CASpB,CAAC;AACX,eAAO,MAAM,gBAAgB;;;;;;;CASnB,CAAC;AACX,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AACX,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AAEX,eAAO,MAAM,cAAc,EAAE,SAAS,SAAS,EAA4B,CAAC;AAC5E,eAAO,MAAM,aAAa,EAAE,SAAS,SAAS,EAA2B,CAAC;AAC1E,eAAO,MAAM,gBAAgB,EAAE,SAAS,WAAW,EAAgC,CAAC;AACpF,eAAO,MAAM,eAAe,EAAE,SAAS,WAAW,EAA+B,CAAC;AAClF,eAAO,MAAM,iBAAiB,EAAE,SAAS,YAAY,EAAkC,CAAC;AACxF,eAAO,MAAM,gBAAgB,EAAE,SAAS,YAAY,EAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.browser.d.ts","sourceRoot":"","sources":["../index.browser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,MAAM,EAAE,MAAM,eAAe,CAAC;AAK3D,eAAO,MAAM,YAAY,EAAE,MAQ1B,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Plugin } from "@elizaos/core";
|
|
2
|
+
export { RobloxApiError, RobloxClient } from "./client/RobloxClient";
|
|
3
|
+
export { RobloxService } from "./services/RobloxService";
|
|
4
|
+
export declare const robloxPlugin: Plugin;
|
|
5
|
+
export default robloxPlugin;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,MAAM,EAAE,MAAM,eAAe,CAAC;AAM3D,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,eAAO,MAAM,YAAY,EAAE,MAwB1B,CAAC;AAEF,eAAe,YAAY,CAAC"}
|