@commandkit/ai 1.2.0-rc.5 → 1.2.0-rc.7
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/context.d.ts +2 -2
- package/dist/context.js +3 -2
- package/package.json +3 -3
package/dist/context.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CommandKit } from 'commandkit';
|
|
2
|
-
import { Client, Message } from 'discord.js';
|
|
2
|
+
import { Client, Collection, Message } from 'discord.js';
|
|
3
3
|
/**
|
|
4
4
|
* Options for the AI context.
|
|
5
5
|
*/
|
|
@@ -42,7 +42,7 @@ export declare class AiContext<T extends Record<string, unknown> = Record<string
|
|
|
42
42
|
/**
|
|
43
43
|
* A key-value store to hold additional data.
|
|
44
44
|
*/
|
|
45
|
-
store:
|
|
45
|
+
store: Collection<any, any>;
|
|
46
46
|
/**
|
|
47
47
|
* Creates a new instance of AiContext.
|
|
48
48
|
* @param options - The options for the AI context, including the message, parameters, and CommandKit instance.
|
package/dist/context.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AiContext = void 0;
|
|
4
|
+
const discord_js_1 = require("discord.js");
|
|
4
5
|
/**
|
|
5
6
|
* Represents the context in which an AI command is executed.
|
|
6
7
|
* This includes the parameters passed to the command, the message that triggered it,
|
|
@@ -15,7 +16,7 @@ class AiContext {
|
|
|
15
16
|
/**
|
|
16
17
|
* A key-value store to hold additional data.
|
|
17
18
|
*/
|
|
18
|
-
this.store = new
|
|
19
|
+
this.store = new discord_js_1.Collection();
|
|
19
20
|
this.params = options.params;
|
|
20
21
|
this.message = options.message;
|
|
21
22
|
this.commandkit = options.commandkit;
|
|
@@ -30,4 +31,4 @@ class AiContext {
|
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
exports.AiContext = AiContext;
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9jb250ZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLDJDQUF5RDtBQXNCekQ7Ozs7R0FJRztBQUNILE1BQWEsU0FBUztJQXdCcEI7OztPQUdHO0lBQ0gsWUFBbUIsT0FBNEI7UUFUL0M7O1dBRUc7UUFDSSxVQUFLLEdBQUcsSUFBSSx1QkFBVSxFQUFZLENBQUM7UUFPeEMsSUFBSSxDQUFDLE1BQU0sR0FBRyxPQUFPLENBQUMsTUFBTSxDQUFDO1FBQzdCLElBQUksQ0FBQyxPQUFPLEdBQUcsT0FBTyxDQUFDLE9BQU8sQ0FBQztRQUMvQixJQUFJLENBQUMsVUFBVSxHQUFHLE9BQU8sQ0FBQyxVQUFVLENBQUM7UUFDckMsSUFBSSxDQUFDLE1BQU0sR0FBRyxPQUFPLENBQUMsVUFBVSxDQUFDLE1BQU0sQ0FBQztJQUMxQyxDQUFDO0lBRUQ7OztPQUdHO0lBQ0ksU0FBUyxDQUFDLE1BQVM7UUFDeEIsSUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7SUFDdkIsQ0FBQztDQUNGO0FBMUNELDhCQTBDQyJ9
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commandkit/ai",
|
|
3
|
-
"version": "1.2.0-rc.
|
|
3
|
+
"version": "1.2.0-rc.7",
|
|
4
4
|
"description": "Supercharge your CommandKit bot with AI capabilities",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"discord.js": "^14.22.1",
|
|
29
29
|
"typescript": "^5.8.3",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
30
|
+
"tsconfig": "0.0.0-rc.7",
|
|
31
|
+
"commandkit": "1.2.0-rc.7"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"ai": "^5.0.22",
|