@butlerbot/sdk 0.0.4 → 0.0.6-alpha.0
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/config.d.ts +3 -0
- package/dist/config.js +2 -1
- package/dist/modules/conversation.d.ts +7 -1
- package/dist/modules/conversation.js +2 -1
- package/dist/types/ai_response_v3.d.ts +14 -1
- package/dist/types/type_registry.d.ts +2 -3
- package/dist/types/type_registry.js +2 -3
- package/dist/types/v3/ai_response_v3.d.ts +101 -0
- package/dist/types/v3/ai_response_v3.js +2 -0
- package/dist/types/v3/ai_tools_v3.d.ts +7 -0
- package/dist/types/v3/ai_tools_v3.js +2 -0
- package/dist/types/v3/dialogue_response_v3.d.ts +29 -0
- package/dist/types/v3/dialogue_response_v3.js +2 -0
- package/dist/types/v3/index.d.ts +3 -0
- package/dist/types/v3/index.js +19 -0
- package/dist/types/v4/ai_response_v4.d.ts +145 -0
- package/dist/types/v4/ai_response_v4.js +2 -0
- package/dist/types/v4/ai_tools_v4.d.ts +7 -0
- package/dist/types/v4/ai_tools_v4.js +2 -0
- package/dist/types/v4/dialogue_response_v4.d.ts +29 -0
- package/dist/types/v4/dialogue_response_v4.js +2 -0
- package/dist/types/v4/index.d.ts +3 -0
- package/dist/types/v4/index.js +19 -0
- package/package.json +2 -1
package/dist/config.d.ts
CHANGED
package/dist/config.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CONFIG } from "../config";
|
|
2
|
+
import { RequestResponseV3 } from "../types/type_registry";
|
|
2
3
|
export type DialogueRequestParams = {
|
|
3
4
|
/** Unique identifier for the chat session */
|
|
4
5
|
chatId?: string;
|
|
@@ -14,6 +15,7 @@ export type DialogueRequestParams = {
|
|
|
14
15
|
personality?: string;
|
|
15
16
|
};
|
|
16
17
|
export type DialogueRequestOptions = Omit<Omit<DialogueRequestParams, "message">, "chatId">;
|
|
18
|
+
type APIPath = keyof typeof CONFIG.paths.conversation;
|
|
17
19
|
export type ConversationOptions = {
|
|
18
20
|
/** The conversation ID to load the conversation from, server will error if this convo id doesn't exist */
|
|
19
21
|
convoId?: string;
|
|
@@ -25,7 +27,10 @@ export type ConversationOptions = {
|
|
|
25
27
|
path?: string;
|
|
26
28
|
/** Whether to enable debug logs */
|
|
27
29
|
debug?: boolean;
|
|
30
|
+
/** The API version to use */
|
|
31
|
+
api?: APIPath;
|
|
28
32
|
};
|
|
33
|
+
export type RequestResponse = RequestResponseV3;
|
|
29
34
|
export declare class Conversation {
|
|
30
35
|
convoId?: string;
|
|
31
36
|
apiKey: string;
|
|
@@ -60,3 +65,4 @@ export declare class Conversation {
|
|
|
60
65
|
/** Sends a message into the conversation */
|
|
61
66
|
send(message: string, cb: (chunk: RequestResponse) => any, options?: DialogueRequestOptions): Promise<void>;
|
|
62
67
|
}
|
|
68
|
+
export {};
|
|
@@ -12,10 +12,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Conversation = void 0;
|
|
13
13
|
const eventsource_1 = require("eventsource");
|
|
14
14
|
const config_1 = require("../config");
|
|
15
|
+
const DEFAULT_API = "v3";
|
|
15
16
|
class Conversation {
|
|
16
17
|
constructor(config) {
|
|
17
18
|
this.convoId = config.convoId;
|
|
18
|
-
this.endpoint = (config.serverUrl || config_1.CONFIG.server) + (config.path || config_1.CONFIG.paths.conversation.
|
|
19
|
+
this.endpoint = (config.serverUrl || config_1.CONFIG.server) + (config.path || config_1.CONFIG.paths.conversation[config.api || DEFAULT_API].base);
|
|
19
20
|
this.apiKey = config.apiKey;
|
|
20
21
|
this.debug = config.debug || false;
|
|
21
22
|
}
|
|
@@ -40,6 +40,19 @@ type AIMessageResponse = {
|
|
|
40
40
|
display?: AIChatProfileDisplayEntity;
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
|
+
export type AIReasoningResponse = {
|
|
44
|
+
/** Specifies type to be a reasoning update */
|
|
45
|
+
type: "reasoning";
|
|
46
|
+
payload: {
|
|
47
|
+
/** The reasoning text */
|
|
48
|
+
reasoning: string;
|
|
49
|
+
/** The associated reasoning id */
|
|
50
|
+
reasoningId: string;
|
|
51
|
+
/** Whether this reasoning step is completed */
|
|
52
|
+
completed: boolean;
|
|
53
|
+
};
|
|
54
|
+
metadata: BaseAIResponseMetadata;
|
|
55
|
+
};
|
|
43
56
|
export type AIFileResponse = {
|
|
44
57
|
/** Specifies type to be a message */
|
|
45
58
|
type: "file";
|
|
@@ -84,5 +97,5 @@ export type AIToolResponse = {
|
|
|
84
97
|
};
|
|
85
98
|
metadata: BaseAIResponseMetadata & {};
|
|
86
99
|
};
|
|
87
|
-
export type AIResponse = AIMessageResponse | AIToolResponse | AIConvoStatusResponse | AIResponseStatusResponse | AIFileResponse;
|
|
100
|
+
export type AIResponse = AIMessageResponse | AIToolResponse | AIConvoStatusResponse | AIResponseStatusResponse | AIFileResponse | AIReasoningResponse;
|
|
88
101
|
export {};
|
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./v3"), exports);
|
|
18
|
+
__exportStar(require("./v4"), exports);
|
|
19
19
|
__exportStar(require("./error"), exports);
|
|
20
|
-
__exportStar(require("./ai_tools_v3"), exports);
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { AIToolStatusDataV3 } from "./ai_tools_v3";
|
|
2
|
+
import { ErrorCode } from "../error";
|
|
3
|
+
export type AIChatResultFailV3 = {
|
|
4
|
+
success: false;
|
|
5
|
+
errorcode: ErrorCode;
|
|
6
|
+
};
|
|
7
|
+
export type AIChatResultSuccessV3 = {
|
|
8
|
+
success: true;
|
|
9
|
+
response: AIResponseV3[];
|
|
10
|
+
usage: any;
|
|
11
|
+
};
|
|
12
|
+
export type AIChatResultV3 = AIChatResultFailV3 | AIChatResultSuccessV3;
|
|
13
|
+
type AIChatProfileDisplayEntity = {
|
|
14
|
+
name?: string;
|
|
15
|
+
avatarUrl?: string;
|
|
16
|
+
};
|
|
17
|
+
export type BaseAIResponseMetadataV3 = {
|
|
18
|
+
/** The model that generated this message */
|
|
19
|
+
model: string;
|
|
20
|
+
/** The actual model ID that generated this message */
|
|
21
|
+
modelId: string;
|
|
22
|
+
/** The time when this action started (represents time of first action, meaning in streamed messages it'll hold the time the first chunk was sent) */
|
|
23
|
+
firstTimestamp: number;
|
|
24
|
+
/** Epoch time for when this happened (represents time of last action, meaning in streamed messages it'll hold the time the last chunk was sent) */
|
|
25
|
+
timestamp: number;
|
|
26
|
+
};
|
|
27
|
+
type AIMessageResponseV3 = {
|
|
28
|
+
/** Specifies type to be a message */
|
|
29
|
+
type: "message";
|
|
30
|
+
payload: {
|
|
31
|
+
/** Message to send to the user */
|
|
32
|
+
message: string;
|
|
33
|
+
/** The associated message id */
|
|
34
|
+
messageId: string;
|
|
35
|
+
/** Whether this message was completed */
|
|
36
|
+
completed: boolean;
|
|
37
|
+
};
|
|
38
|
+
metadata: BaseAIResponseMetadataV3 & {
|
|
39
|
+
/** Display data for this message response, such as the author's name and profile picture */
|
|
40
|
+
display?: AIChatProfileDisplayEntity;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export type AIReasoningResponseV3 = {
|
|
44
|
+
/** Specifies type to be a reasoning update */
|
|
45
|
+
type: "reasoning";
|
|
46
|
+
payload: {
|
|
47
|
+
/** The reasoning text */
|
|
48
|
+
reasoning: string;
|
|
49
|
+
/** The associated reasoning id */
|
|
50
|
+
reasoningId: string;
|
|
51
|
+
/** Whether this reasoning step is completed */
|
|
52
|
+
completed: boolean;
|
|
53
|
+
};
|
|
54
|
+
metadata: BaseAIResponseMetadataV3;
|
|
55
|
+
};
|
|
56
|
+
export type AIFileResponseV3 = {
|
|
57
|
+
/** Specifies type to be a message */
|
|
58
|
+
type: "file";
|
|
59
|
+
payload: {
|
|
60
|
+
/** URL location of the file */
|
|
61
|
+
url?: string;
|
|
62
|
+
/** Base64 representation of the file */
|
|
63
|
+
base64?: string;
|
|
64
|
+
/** The media type of the file */
|
|
65
|
+
mediaType: string;
|
|
66
|
+
};
|
|
67
|
+
metadata: BaseAIResponseMetadataV3 & {
|
|
68
|
+
/** Display data for this message response, such as the author's name and profile picture */
|
|
69
|
+
display?: AIChatProfileDisplayEntity;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export type AIResponseStatusResponseV3 = {
|
|
73
|
+
/** Specifies type to be a status update for the response */
|
|
74
|
+
type: "response_status";
|
|
75
|
+
payload: {
|
|
76
|
+
/** Whether the entire AI response is completed */
|
|
77
|
+
completed: boolean;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export type AIConvoStatusResponseV3 = {
|
|
81
|
+
/** Specifies type to be a status update for the conversation */
|
|
82
|
+
type: "convo_status";
|
|
83
|
+
payload: {
|
|
84
|
+
/** Whether the entire AI convo has been disabled, a disabled convo cannot be restarted */
|
|
85
|
+
disabled: boolean;
|
|
86
|
+
/** Whether the AI convo has been stopped, a stopped convo can be restarted
|
|
87
|
+
* although just because it's not stopped does not necasserily mean it's an ongoing conversation */
|
|
88
|
+
stopped: boolean;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
export type AIToolResponseV3 = {
|
|
92
|
+
/** Specifies type to be a tool use status update */
|
|
93
|
+
type: "tool";
|
|
94
|
+
payload: {
|
|
95
|
+
status: string;
|
|
96
|
+
info: AIToolStatusDataV3;
|
|
97
|
+
};
|
|
98
|
+
metadata: BaseAIResponseMetadataV3 & {};
|
|
99
|
+
};
|
|
100
|
+
export type AIResponseV3 = AIMessageResponseV3 | AIToolResponseV3 | AIConvoStatusResponseV3 | AIResponseStatusResponseV3 | AIFileResponseV3 | AIReasoningResponseV3;
|
|
101
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AIResponseV3 } from "./ai_response_v3";
|
|
2
|
+
import { ErrorCode } from "../error";
|
|
3
|
+
export type RequestBaseResponsePayloadV3 = {
|
|
4
|
+
/** Whether the conversation's ending */
|
|
5
|
+
end?: boolean;
|
|
6
|
+
/** Whether the stream is ending */
|
|
7
|
+
quitStream?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type RequestFailResponseV3 = {
|
|
10
|
+
success: false;
|
|
11
|
+
data: {
|
|
12
|
+
/** Error code */
|
|
13
|
+
code: ErrorCode;
|
|
14
|
+
/** Error message */
|
|
15
|
+
error: string;
|
|
16
|
+
/** User facing message */
|
|
17
|
+
message: string;
|
|
18
|
+
} & RequestBaseResponsePayloadV3;
|
|
19
|
+
};
|
|
20
|
+
export type RequestSuccessResponseV3 = {
|
|
21
|
+
success: true;
|
|
22
|
+
data: {
|
|
23
|
+
/** The AI's response */
|
|
24
|
+
response: AIResponseV3;
|
|
25
|
+
/** The convoId, passed in most responses */
|
|
26
|
+
convoId?: string;
|
|
27
|
+
} & RequestBaseResponsePayloadV3;
|
|
28
|
+
};
|
|
29
|
+
export type RequestResponseV3 = RequestFailResponseV3 | RequestSuccessResponseV3;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ai_response_v3"), exports);
|
|
18
|
+
__exportStar(require("./dialogue_response_v3"), exports);
|
|
19
|
+
__exportStar(require("./ai_tools_v3"), exports);
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { AIToolStatusDataV4 } from "./ai_tools_v4";
|
|
2
|
+
import { ErrorCode } from "../error";
|
|
3
|
+
export type AIChatResultFailV4 = {
|
|
4
|
+
success: false;
|
|
5
|
+
errorcode: ErrorCode;
|
|
6
|
+
};
|
|
7
|
+
export type AIChatResultSuccessV4 = {
|
|
8
|
+
success: true;
|
|
9
|
+
response: AIResponseV4[];
|
|
10
|
+
usage: any;
|
|
11
|
+
};
|
|
12
|
+
export type AIChatResultV4 = AIChatResultFailV4 | AIChatResultSuccessV4;
|
|
13
|
+
type AIChatProfileDisplayEntity = {
|
|
14
|
+
name?: string;
|
|
15
|
+
avatarUrl?: string;
|
|
16
|
+
};
|
|
17
|
+
export type BaseAIResponseMetadataV4 = {
|
|
18
|
+
/** The model that generated this message */
|
|
19
|
+
model: string;
|
|
20
|
+
/** The actual model ID that generated this message */
|
|
21
|
+
modelId: string;
|
|
22
|
+
/** The time when this action started (represents time of first action, meaning in streamed messages it'll hold the time the first chunk was sent) */
|
|
23
|
+
firstTimestamp: number;
|
|
24
|
+
/** Epoch time for when this happened (represents time of last action, meaning in streamed messages it'll hold the time the last chunk was sent) */
|
|
25
|
+
timestamp: number;
|
|
26
|
+
};
|
|
27
|
+
/** Response Metadata */
|
|
28
|
+
export type ResponseStatusMetadataV4 = {
|
|
29
|
+
/** Human-readable model name (e.g. "Claude-Sonnet") */
|
|
30
|
+
model: string;
|
|
31
|
+
/** Provider model identifier (e.g. "claude-sonnet-4-6") */
|
|
32
|
+
modelId: string;
|
|
33
|
+
/** Token usage breakdown */
|
|
34
|
+
tokens: {
|
|
35
|
+
input: number;
|
|
36
|
+
output: number;
|
|
37
|
+
total: number;
|
|
38
|
+
cachedInput: number;
|
|
39
|
+
reasoningOutput: number;
|
|
40
|
+
};
|
|
41
|
+
/** Usage budget info */
|
|
42
|
+
usage: {
|
|
43
|
+
/** Current usage cost as a percentage of daily limit (0–1) */
|
|
44
|
+
percentage: number;
|
|
45
|
+
/** Human-readable percentage (e.g. "42.3%") */
|
|
46
|
+
percentageDisplay: string;
|
|
47
|
+
/** Name of the active usage stage */
|
|
48
|
+
stageName: string;
|
|
49
|
+
};
|
|
50
|
+
/** Model switching info (tiered auto-downgrade) */
|
|
51
|
+
modelSwitching: {
|
|
52
|
+
/** Whether the model was switched from the user's request */
|
|
53
|
+
switched: boolean;
|
|
54
|
+
/** Originally requested model */
|
|
55
|
+
requestedModel: string;
|
|
56
|
+
/** Model that was actually used */
|
|
57
|
+
activeModel: string;
|
|
58
|
+
/** Usage stage that triggered the switch */
|
|
59
|
+
stage?: string;
|
|
60
|
+
};
|
|
61
|
+
/** Response timing */
|
|
62
|
+
timing: {
|
|
63
|
+
/** Milliseconds from request start to first streamed event */
|
|
64
|
+
firstEventMs: number;
|
|
65
|
+
/** Total response time in milliseconds */
|
|
66
|
+
totalMs: number;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
type AIMessageResponseV4 = {
|
|
70
|
+
/** Specifies type to be a message */
|
|
71
|
+
type: "message";
|
|
72
|
+
payload: {
|
|
73
|
+
/** Message to send to the user */
|
|
74
|
+
message: string;
|
|
75
|
+
/** The associated message id */
|
|
76
|
+
messageId: string;
|
|
77
|
+
/** Whether this message was completed */
|
|
78
|
+
completed: boolean;
|
|
79
|
+
};
|
|
80
|
+
metadata: BaseAIResponseMetadataV4 & {
|
|
81
|
+
/** Display data for this message response, such as the author's name and profile picture */
|
|
82
|
+
display?: AIChatProfileDisplayEntity;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
export type AIReasoningResponseV4 = {
|
|
86
|
+
/** Specifies type to be a reasoning update */
|
|
87
|
+
type: "reasoning";
|
|
88
|
+
payload: {
|
|
89
|
+
/** The reasoning text */
|
|
90
|
+
reasoning: string;
|
|
91
|
+
/** The associated reasoning id */
|
|
92
|
+
reasoningId: string;
|
|
93
|
+
/** Whether this reasoning step is completed */
|
|
94
|
+
completed: boolean;
|
|
95
|
+
};
|
|
96
|
+
metadata: BaseAIResponseMetadataV4;
|
|
97
|
+
};
|
|
98
|
+
export type AIFileResponseV4 = {
|
|
99
|
+
/** Specifies type to be a message */
|
|
100
|
+
type: "file";
|
|
101
|
+
payload: {
|
|
102
|
+
/** URL location of the file */
|
|
103
|
+
url?: string;
|
|
104
|
+
/** Base64 representation of the file */
|
|
105
|
+
base64?: string;
|
|
106
|
+
/** The media type of the file */
|
|
107
|
+
mediaType: string;
|
|
108
|
+
};
|
|
109
|
+
metadata: BaseAIResponseMetadataV4 & {
|
|
110
|
+
/** Display data for this message response, such as the author's name and profile picture */
|
|
111
|
+
display?: AIChatProfileDisplayEntity;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
export type AIResponseStatusResponseV4 = {
|
|
115
|
+
/** Specifies type to be a status update for the response */
|
|
116
|
+
type: "response_status";
|
|
117
|
+
payload: {
|
|
118
|
+
/** Whether the entire AI response is completed */
|
|
119
|
+
completed: boolean;
|
|
120
|
+
/** Response status metadata on success */
|
|
121
|
+
metadata?: ResponseStatusMetadataV4;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
export type AIConvoStatusResponseV4 = {
|
|
125
|
+
/** Specifies type to be a status update for the conversation */
|
|
126
|
+
type: "convo_status";
|
|
127
|
+
payload: {
|
|
128
|
+
/** Whether the entire AI convo has been disabled, a disabled convo cannot be restarted */
|
|
129
|
+
disabled: boolean;
|
|
130
|
+
/** Whether the AI convo has been stopped, a stopped convo can be restarted
|
|
131
|
+
* although just because it's not stopped does not necasserily mean it's an ongoing conversation */
|
|
132
|
+
stopped: boolean;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
export type AIToolResponseV4 = {
|
|
136
|
+
/** Specifies type to be a tool use status update */
|
|
137
|
+
type: "tool";
|
|
138
|
+
payload: {
|
|
139
|
+
status: string;
|
|
140
|
+
info: AIToolStatusDataV4;
|
|
141
|
+
};
|
|
142
|
+
metadata: BaseAIResponseMetadataV4 & {};
|
|
143
|
+
};
|
|
144
|
+
export type AIResponseV4 = AIMessageResponseV4 | AIToolResponseV4 | AIConvoStatusResponseV4 | AIResponseStatusResponseV4 | AIFileResponseV4 | AIReasoningResponseV4;
|
|
145
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AIResponseV4 } from "./ai_response_v4";
|
|
2
|
+
import { ErrorCode } from "../error";
|
|
3
|
+
export type RequestBaseResponsePayloadV4 = {
|
|
4
|
+
/** Whether the conversation's ending */
|
|
5
|
+
end?: boolean;
|
|
6
|
+
/** Whether the stream is ending */
|
|
7
|
+
quitStream?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type RequestFailResponseV4 = {
|
|
10
|
+
success: false;
|
|
11
|
+
data: {
|
|
12
|
+
/** Error code */
|
|
13
|
+
code: ErrorCode;
|
|
14
|
+
/** Error message */
|
|
15
|
+
error: string;
|
|
16
|
+
/** User facing message */
|
|
17
|
+
message: string;
|
|
18
|
+
} & RequestBaseResponsePayloadV4;
|
|
19
|
+
};
|
|
20
|
+
export type RequestSuccessResponseV4 = {
|
|
21
|
+
success: true;
|
|
22
|
+
data: {
|
|
23
|
+
/** The AI's response */
|
|
24
|
+
response: AIResponseV4;
|
|
25
|
+
/** The convoId, passed in most responses */
|
|
26
|
+
convoId?: string;
|
|
27
|
+
} & RequestBaseResponsePayloadV4;
|
|
28
|
+
};
|
|
29
|
+
export type RequestResponseV4 = RequestFailResponseV4 | RequestSuccessResponseV4;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ai_response_v4"), exports);
|
|
18
|
+
__exportStar(require("./dialogue_response_v4"), exports);
|
|
19
|
+
__exportStar(require("./ai_tools_v4"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@butlerbot/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6-alpha.0",
|
|
4
4
|
"description": "The official ButlerBot SDK",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"build": "tsc",
|
|
12
12
|
"pack": "npm run build && npm pack --pack-destination=\"G:\\tarballs\"",
|
|
13
13
|
"update": "npm run build && npm publish --access public",
|
|
14
|
+
"update:alpha": "npm run build && npm publish --access public --tag alpha",
|
|
14
15
|
"test": "jest"
|
|
15
16
|
},
|
|
16
17
|
"keywords": [
|