@pluno/product-agent-web 0.1.186 → 0.1.187
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.ts +1 -0
- package/dist/modelSelection.d.ts +10 -0
- package/dist/product-agent-sdk.js +12 -7
- package/dist/product-agent-widget.js +1910 -1869
- package/dist/scheduledCheckIn.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export type ProductAgentMessage = {
|
|
|
51
51
|
steered?: boolean;
|
|
52
52
|
retryable?: boolean;
|
|
53
53
|
integrationAuthRequest?: ProductAgentIntegrationAuthRequest;
|
|
54
|
+
scheduledCheckInId?: string;
|
|
54
55
|
scheduledCheckInAt?: string;
|
|
55
56
|
personalChannelConnectionRequest?: ProductAgentPersonalChannelConnectionRequest;
|
|
56
57
|
securitySettingsUrl?: string;
|
package/dist/modelSelection.d.ts
CHANGED
|
@@ -1,35 +1,45 @@
|
|
|
1
1
|
export declare const PERSONAL_PRODUCT_AGENT_PRIMARY_MODELS: readonly [{
|
|
2
2
|
readonly value: "gpt-5.6-sol";
|
|
3
3
|
readonly label: "gpt-5.6-sol";
|
|
4
|
+
readonly price: "$$";
|
|
4
5
|
}, {
|
|
5
6
|
readonly value: "anthropic/claude-sonnet-5";
|
|
6
7
|
readonly label: "Claude Sonnet 5";
|
|
8
|
+
readonly price: "$$";
|
|
7
9
|
}, {
|
|
8
10
|
readonly value: "deepseek/deepseek-v4-flash";
|
|
9
11
|
readonly label: "DeepSeek V4 Flash";
|
|
12
|
+
readonly price: "$";
|
|
10
13
|
}];
|
|
11
14
|
export declare const PERSONAL_PRODUCT_AGENT_MORE_MODELS: readonly [{
|
|
12
15
|
readonly value: "anthropic/claude-opus-5";
|
|
13
16
|
readonly label: "Claude Opus 5";
|
|
17
|
+
readonly price: "$$$";
|
|
14
18
|
}, {
|
|
15
19
|
readonly value: "gpt-5.6-terra";
|
|
16
20
|
readonly label: "gpt-5.6-terra";
|
|
21
|
+
readonly price: "$$";
|
|
17
22
|
}];
|
|
18
23
|
export type PersonalProductAgentModel = (typeof PERSONAL_PRODUCT_AGENT_PRIMARY_MODELS)[number]["value"] | (typeof PERSONAL_PRODUCT_AGENT_MORE_MODELS)[number]["value"];
|
|
19
24
|
export declare const PERSONAL_PRODUCT_AGENT_MODELS: readonly [{
|
|
20
25
|
readonly value: "gpt-5.6-sol";
|
|
21
26
|
readonly label: "gpt-5.6-sol";
|
|
27
|
+
readonly price: "$$";
|
|
22
28
|
}, {
|
|
23
29
|
readonly value: "anthropic/claude-sonnet-5";
|
|
24
30
|
readonly label: "Claude Sonnet 5";
|
|
31
|
+
readonly price: "$$";
|
|
25
32
|
}, {
|
|
26
33
|
readonly value: "deepseek/deepseek-v4-flash";
|
|
27
34
|
readonly label: "DeepSeek V4 Flash";
|
|
35
|
+
readonly price: "$";
|
|
28
36
|
}, {
|
|
29
37
|
readonly value: "anthropic/claude-opus-5";
|
|
30
38
|
readonly label: "Claude Opus 5";
|
|
39
|
+
readonly price: "$$$";
|
|
31
40
|
}, {
|
|
32
41
|
readonly value: "gpt-5.6-terra";
|
|
33
42
|
readonly label: "gpt-5.6-terra";
|
|
43
|
+
readonly price: "$$";
|
|
34
44
|
}];
|
|
35
45
|
export declare const isPersonalProductAgentModel: (value: unknown) => value is PersonalProductAgentModel;
|
|
@@ -291,15 +291,18 @@ function js(t) {
|
|
|
291
291
|
if (!e || typeof e != "object")
|
|
292
292
|
return null;
|
|
293
293
|
const s = e;
|
|
294
|
-
return s.ok !== !0 || s.toolName !== $t || typeof s.dueAt != "string" || Number.isNaN(Date.parse(s.dueAt)) ? null :
|
|
294
|
+
return s.ok !== !0 || s.toolName !== $t || typeof s.dueAt != "string" || Number.isNaN(Date.parse(s.dueAt)) ? null : {
|
|
295
|
+
id: typeof s.taskId == "string" && s.taskId ? s.taskId : null,
|
|
296
|
+
dueAt: s.dueAt
|
|
297
|
+
};
|
|
295
298
|
}
|
|
296
299
|
const Fs = [
|
|
297
|
-
{ value: "gpt-5.6-sol", label: "gpt-5.6-sol" },
|
|
298
|
-
{ value: "anthropic/claude-sonnet-5", label: "Claude Sonnet 5" },
|
|
299
|
-
{ value: "deepseek/deepseek-v4-flash", label: "DeepSeek V4 Flash" }
|
|
300
|
+
{ value: "gpt-5.6-sol", label: "gpt-5.6-sol", price: "$$" },
|
|
301
|
+
{ value: "anthropic/claude-sonnet-5", label: "Claude Sonnet 5", price: "$$" },
|
|
302
|
+
{ value: "deepseek/deepseek-v4-flash", label: "DeepSeek V4 Flash", price: "$" }
|
|
300
303
|
], zs = [
|
|
301
|
-
{ value: "anthropic/claude-opus-5", label: "Claude Opus 5" },
|
|
302
|
-
{ value: "gpt-5.6-terra", label: "gpt-5.6-terra" }
|
|
304
|
+
{ value: "anthropic/claude-opus-5", label: "Claude Opus 5", price: "$$$" },
|
|
305
|
+
{ value: "gpt-5.6-terra", label: "gpt-5.6-terra", price: "$$" }
|
|
303
306
|
], Ks = [
|
|
304
307
|
...Fs,
|
|
305
308
|
...zs
|
|
@@ -3326,7 +3329,8 @@ function Yt(t, e) {
|
|
|
3326
3329
|
dataType: "scheduled_check_in",
|
|
3327
3330
|
toolName: $t,
|
|
3328
3331
|
callId: ae(r) ?? void 0,
|
|
3329
|
-
|
|
3332
|
+
scheduledCheckInId: o.id ?? void 0,
|
|
3333
|
+
scheduledCheckInAt: o.dueAt
|
|
3330
3334
|
};
|
|
3331
3335
|
const a = ar(r.output), l = lr(r.output);
|
|
3332
3336
|
return a ? {
|
|
@@ -4202,6 +4206,7 @@ function si(t) {
|
|
|
4202
4206
|
respondsToUserMessageId: typeof e.respondsToUserMessageId == "string" ? e.respondsToUserMessageId : void 0,
|
|
4203
4207
|
...typeof e.runId == "string" ? { runId: e.runId } : {},
|
|
4204
4208
|
dataType: typeof e.dataType == "string" ? e.dataType : void 0,
|
|
4209
|
+
scheduledCheckInId: typeof e.scheduledCheckInId == "string" ? e.scheduledCheckInId : void 0,
|
|
4205
4210
|
scheduledCheckInAt: typeof e.scheduledCheckInAt == "string" ? e.scheduledCheckInAt : void 0,
|
|
4206
4211
|
securitySettingsUrl: typeof e.securitySettingsUrl == "string" ? e.securitySettingsUrl : void 0,
|
|
4207
4212
|
attachments: as(e.attachments)?.map(Ee),
|