@puckeditor/plugin-ai 0.4.1-canary.fd833f7d → 0.5.0-canary.c689dcb2
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.mts +12 -0
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -146,6 +146,17 @@ type ResetOperation = {
|
|
|
146
146
|
op: "reset";
|
|
147
147
|
};
|
|
148
148
|
type Operation = AddOperation | UpdateOperation | UpdateRootOperation | MoveOperation | DeleteOperation | DuplicateOperation | ResetOperation;
|
|
149
|
+
type TokenUsage = {
|
|
150
|
+
inputTokens: number | undefined;
|
|
151
|
+
outputTokens: number | undefined;
|
|
152
|
+
totalTokens: number | undefined;
|
|
153
|
+
reasoningTokens?: number | undefined;
|
|
154
|
+
cachedInputTokens?: number | undefined;
|
|
155
|
+
};
|
|
156
|
+
type DataFinish = {
|
|
157
|
+
totalCost: number;
|
|
158
|
+
tokenUsage: TokenUsage;
|
|
159
|
+
};
|
|
149
160
|
type PuckDataParts = {
|
|
150
161
|
"new-chat-created": {
|
|
151
162
|
chatId: string;
|
|
@@ -166,6 +177,7 @@ type PuckDataParts = {
|
|
|
166
177
|
[breakpoint: number]: string;
|
|
167
178
|
}[];
|
|
168
179
|
};
|
|
180
|
+
finish: DataFinish;
|
|
169
181
|
page: Data;
|
|
170
182
|
};
|
|
171
183
|
type PuckProviderMetadata = {
|
package/dist/index.d.ts
CHANGED
|
@@ -146,6 +146,17 @@ type ResetOperation = {
|
|
|
146
146
|
op: "reset";
|
|
147
147
|
};
|
|
148
148
|
type Operation = AddOperation | UpdateOperation | UpdateRootOperation | MoveOperation | DeleteOperation | DuplicateOperation | ResetOperation;
|
|
149
|
+
type TokenUsage = {
|
|
150
|
+
inputTokens: number | undefined;
|
|
151
|
+
outputTokens: number | undefined;
|
|
152
|
+
totalTokens: number | undefined;
|
|
153
|
+
reasoningTokens?: number | undefined;
|
|
154
|
+
cachedInputTokens?: number | undefined;
|
|
155
|
+
};
|
|
156
|
+
type DataFinish = {
|
|
157
|
+
totalCost: number;
|
|
158
|
+
tokenUsage: TokenUsage;
|
|
159
|
+
};
|
|
149
160
|
type PuckDataParts = {
|
|
150
161
|
"new-chat-created": {
|
|
151
162
|
chatId: string;
|
|
@@ -166,6 +177,7 @@ type PuckDataParts = {
|
|
|
166
177
|
[breakpoint: number]: string;
|
|
167
178
|
}[];
|
|
168
179
|
};
|
|
180
|
+
finish: DataFinish;
|
|
169
181
|
page: Data;
|
|
170
182
|
};
|
|
171
183
|
type PuckProviderMetadata = {
|
package/package.json
CHANGED