@jush-agent/sdk 0.2.6346 → 0.2.6368
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/README.md +65 -34
- package/dist/index.d.mts +191 -107
- package/dist/index.mjs +139 -70
- package/package.json +7 -7
- package/release/commands/jush-browser/descriptor.json +13 -13
- package/release/commands/jush-fetch/descriptor.json +12 -12
- package/release/commands/jush-file/descriptor.json +13 -13
- package/release/commands/jush-mobile/descriptor.json +13 -13
- package/release/commands/jush-subscription-cli/descriptor.json +12 -12
package/dist/index.mjs
CHANGED
|
@@ -159,8 +159,11 @@ const queuedMessageSchema = z.object({
|
|
|
159
159
|
* absent for a message the user wrote.
|
|
160
160
|
*/
|
|
161
161
|
schedule: scheduleMarkSchema.optional(),
|
|
162
|
-
/**
|
|
163
|
-
|
|
162
|
+
/**
|
|
163
|
+
* The labels its program gave it, which its `user` block keeps; omitted
|
|
164
|
+
* when there are none.
|
|
165
|
+
*/
|
|
166
|
+
labels: z.record(z.string(), z.string()).optional(),
|
|
164
167
|
/**
|
|
165
168
|
* The assignment it is part of, which its `user` block keeps: its own id
|
|
166
169
|
* for one that opens one, the work's for one that continues it; absent
|
|
@@ -539,8 +542,17 @@ const pendingSteerSchema = z.object({
|
|
|
539
542
|
* there are none.
|
|
540
543
|
*/
|
|
541
544
|
comments: z.array(messageCommentSchema).optional(),
|
|
542
|
-
/**
|
|
543
|
-
|
|
545
|
+
/**
|
|
546
|
+
* The labels its program gave it, which its `steer` block keeps; omitted
|
|
547
|
+
* when there are none.
|
|
548
|
+
*/
|
|
549
|
+
labels: z.record(z.string(), z.string()).optional(),
|
|
550
|
+
/**
|
|
551
|
+
* The assignment it continues when it opens a turn of its own, as its
|
|
552
|
+
* program named it; none for one that opens the assignment of its own
|
|
553
|
+
* id. One the running turn reads joins that turn's.
|
|
554
|
+
*/
|
|
555
|
+
assignmentId: z.string().min(1).optional()
|
|
544
556
|
});
|
|
545
557
|
/** One agent of the conversation. */
|
|
546
558
|
const agentEntrySchema = z.object({
|
|
@@ -735,19 +747,17 @@ const agentMessageSchema = z.object({
|
|
|
735
747
|
*/
|
|
736
748
|
origin: z.string().min(1).nullable().optional(),
|
|
737
749
|
/**
|
|
738
|
-
*
|
|
739
|
-
*
|
|
740
|
-
*
|
|
741
|
-
*
|
|
742
|
-
*
|
|
743
|
-
* the message that asked for it named. Absent for any other message,
|
|
744
|
-
* and when no one was named.
|
|
750
|
+
* The program's labels of the work the message hands or tells of
|
|
751
|
+
* (`crate::UserBlock`'s `labels`): for an explicit message, those of the
|
|
752
|
+
* sending agent's work (`crate::Block::labels`); for a child's end, those
|
|
753
|
+
* of its work as it closed; for the end of another conversation's work,
|
|
754
|
+
* those of the message that asked for it. Omitted when there are none.
|
|
745
755
|
*/
|
|
746
|
-
|
|
756
|
+
labels: z.record(z.string(), z.string()).optional(),
|
|
747
757
|
/**
|
|
748
758
|
* The assignment the work the message hands or tells of is part of, by
|
|
749
|
-
* the id of the message that opened it, as `
|
|
750
|
-
*
|
|
759
|
+
* the id of the message that opened it, as `labels` are its labels;
|
|
760
|
+
* absent when it names none.
|
|
751
761
|
*/
|
|
752
762
|
assignmentId: z.string().min(1).nullable().optional()
|
|
753
763
|
});
|
|
@@ -1059,11 +1069,10 @@ const commandReportSchema = z.object({
|
|
|
1059
1069
|
*/
|
|
1060
1070
|
media: z.array(toolResultContentBlockSchema).optional(),
|
|
1061
1071
|
/**
|
|
1062
|
-
*
|
|
1063
|
-
*
|
|
1064
|
-
* one named.
|
|
1072
|
+
* The labels of the work of the call that started it, which its record
|
|
1073
|
+
* keeps; omitted when there are none.
|
|
1065
1074
|
*/
|
|
1066
|
-
|
|
1075
|
+
labels: z.record(z.string(), z.string()).optional(),
|
|
1067
1076
|
/**
|
|
1068
1077
|
* The assignment of the call that started it, which its record keeps; absent
|
|
1069
1078
|
* when that call's turn named none.
|
|
@@ -1494,17 +1503,17 @@ const blockSchema = z.discriminatedUnion("type", [
|
|
|
1494
1503
|
*/
|
|
1495
1504
|
schedule: scheduleMarkSchema.optional(),
|
|
1496
1505
|
/**
|
|
1497
|
-
*
|
|
1498
|
-
* (
|
|
1506
|
+
* The labels its program gave it, which its work carries
|
|
1507
|
+
* (`crate::Labels`); omitted when there are none.
|
|
1499
1508
|
*/
|
|
1500
|
-
|
|
1509
|
+
labels: z.record(z.string(), z.string()).optional(),
|
|
1501
1510
|
/**
|
|
1502
1511
|
* The assignment the message is part of, by the id of the message that
|
|
1503
1512
|
* opened it: its own for one the program, the user or a schedule sent,
|
|
1504
|
-
* the
|
|
1505
|
-
*
|
|
1506
|
-
*
|
|
1507
|
-
* kept.
|
|
1513
|
+
* or the one the program named of earlier work it continues; the turn's
|
|
1514
|
+
* that made it for a run of a schedule an agent made, and its parent's
|
|
1515
|
+
* for a subagent's. Absent when it names none, as the work it continues
|
|
1516
|
+
* named none, and in a block written before assignments were kept.
|
|
1508
1517
|
*/
|
|
1509
1518
|
assignmentId: z.string().min(1).optional()
|
|
1510
1519
|
}),
|
|
@@ -1586,8 +1595,11 @@ const blockSchema = z.discriminatedUnion("type", [
|
|
|
1586
1595
|
* as a message's; omitted when there are none.
|
|
1587
1596
|
*/
|
|
1588
1597
|
comments: z.array(messageCommentSchema).optional(),
|
|
1589
|
-
/**
|
|
1590
|
-
|
|
1598
|
+
/**
|
|
1599
|
+
* The labels its program gave it, as a `user` block's; omitted when
|
|
1600
|
+
* there are none.
|
|
1601
|
+
*/
|
|
1602
|
+
labels: z.record(z.string(), z.string()).optional(),
|
|
1591
1603
|
/**
|
|
1592
1604
|
* The assignment of the turn that read it, which it joins; absent when that
|
|
1593
1605
|
* turn named none.
|
|
@@ -2335,12 +2347,19 @@ z.discriminatedUnion("type", [
|
|
|
2335
2347
|
*/
|
|
2336
2348
|
comments: z.array(clientCommentSchema).optional(),
|
|
2337
2349
|
/**
|
|
2338
|
-
*
|
|
2339
|
-
*
|
|
2340
|
-
* reading it
|
|
2341
|
-
*
|
|
2350
|
+
* The program's own labels, such as who asked or what kind of work it
|
|
2351
|
+
* is, which its `user` block keeps: the calls its agent makes after
|
|
2352
|
+
* reading it carry them in the usage ledger. Absent for the core's own
|
|
2353
|
+
* user, as the web app sends.
|
|
2342
2354
|
*/
|
|
2343
|
-
|
|
2355
|
+
labels: z.record(z.string(), z.string()).optional(),
|
|
2356
|
+
/**
|
|
2357
|
+
* The assignment it continues, by the id of the message that opened
|
|
2358
|
+
* it, as its program names it: the calls of the turn it opens are
|
|
2359
|
+
* counted in it. Absent for one that opens the assignment of its own
|
|
2360
|
+
* id.
|
|
2361
|
+
*/
|
|
2362
|
+
assignmentId: z.string().min(1).nullable().optional()
|
|
2344
2363
|
}),
|
|
2345
2364
|
z.strictObject({
|
|
2346
2365
|
type: z.literal("edit_and_send"),
|
|
@@ -2365,8 +2384,13 @@ z.discriminatedUnion("type", [
|
|
|
2365
2384
|
* there are none.
|
|
2366
2385
|
*/
|
|
2367
2386
|
comments: z.array(clientCommentSchema).optional(),
|
|
2368
|
-
/**
|
|
2369
|
-
|
|
2387
|
+
/** The labels its program gave it, as a message's. */
|
|
2388
|
+
labels: z.record(z.string(), z.string()).optional(),
|
|
2389
|
+
/**
|
|
2390
|
+
* The assignment it continues when it opens a turn of its own, as a
|
|
2391
|
+
* message's; one the running turn reads joins that turn's.
|
|
2392
|
+
*/
|
|
2393
|
+
assignmentId: z.string().min(1).nullable().optional()
|
|
2370
2394
|
}),
|
|
2371
2395
|
z.strictObject({
|
|
2372
2396
|
type: z.literal("send_saved"),
|
|
@@ -3168,11 +3192,10 @@ const jobCallerSchema = z.object({
|
|
|
3168
3192
|
*/
|
|
3169
3193
|
turn: z.string().min(1).nullable().optional(),
|
|
3170
3194
|
/**
|
|
3171
|
-
*
|
|
3172
|
-
*
|
|
3173
|
-
* named.
|
|
3195
|
+
* The labels of the work the call's agent did, which a command's call
|
|
3196
|
+
* to a vendor is counted with; omitted when there are none.
|
|
3174
3197
|
*/
|
|
3175
|
-
|
|
3198
|
+
labels: z.record(z.string(), z.string()).optional(),
|
|
3176
3199
|
/**
|
|
3177
3200
|
* The assignment the call's agent worked in, which a command's call to a
|
|
3178
3201
|
* vendor is counted in; none when its turn named none.
|
|
@@ -4088,8 +4111,11 @@ const refusedCodeSchema = z.object({
|
|
|
4088
4111
|
message: z.string()
|
|
4089
4112
|
});
|
|
4090
4113
|
z.object({
|
|
4091
|
-
/**
|
|
4092
|
-
|
|
4114
|
+
/**
|
|
4115
|
+
* The address the user opens to confirm the login; null for a login
|
|
4116
|
+
* that waits for a refresh token the user pastes.
|
|
4117
|
+
*/
|
|
4118
|
+
verificationUrl: z.string().nullable(),
|
|
4093
4119
|
/**
|
|
4094
4120
|
* The one-time code the user enters there; null when the address
|
|
4095
4121
|
* carries it.
|
|
@@ -5453,6 +5479,11 @@ const accountDtoSchema = z.object({
|
|
|
5453
5479
|
/** The account's last real snapshot; null before any. */
|
|
5454
5480
|
quota: quotaSnapshotSchema.nullable()
|
|
5455
5481
|
});
|
|
5482
|
+
/** How a sign-in proves the account. */
|
|
5483
|
+
const loginMethodSchema = z.enum(["browser", "refreshToken"]);
|
|
5484
|
+
z.strictObject({
|
|
5485
|
+
/** One of the family's `loginMethods`; `browser` without it. */
|
|
5486
|
+
method: loginMethodSchema.optional() });
|
|
5456
5487
|
z.strictObject({ credentialIds: z.array(z.string().min(1)) });
|
|
5457
5488
|
/** `GET /providers/:id/accounts`: the entry's accounts and the active one. */
|
|
5458
5489
|
const accountsSchema = z.object({
|
|
@@ -5501,10 +5532,15 @@ z.strictObject({
|
|
|
5501
5532
|
/** What is asked, a message's content, as a frame names it. */
|
|
5502
5533
|
question: z.array(clientContentSchema),
|
|
5503
5534
|
/**
|
|
5504
|
-
*
|
|
5535
|
+
* The labels its program gave it, as a message's
|
|
5505
5536
|
* (`crates/conversation-lane-protocol/src/client.rs`).
|
|
5506
5537
|
*/
|
|
5507
|
-
|
|
5538
|
+
labels: z.record(z.string(), z.string()).optional(),
|
|
5539
|
+
/**
|
|
5540
|
+
* The assignment its question continues, as a message's; one of its
|
|
5541
|
+
* own id when absent.
|
|
5542
|
+
*/
|
|
5543
|
+
assignmentId: z.string().min(1).nullable().optional()
|
|
5508
5544
|
});
|
|
5509
5545
|
/** `AuthenticatorAssertionResponseJSON`. */
|
|
5510
5546
|
const assertionResponseJsonSchema = z.strictObject({
|
|
@@ -6664,8 +6700,8 @@ const commandHistoryEntrySchema = z.object({
|
|
|
6664
6700
|
device: z.string().min(1).nullable().optional(),
|
|
6665
6701
|
/** The turn of the call. */
|
|
6666
6702
|
turn: z.string().min(1).nullable().optional(),
|
|
6667
|
-
/**
|
|
6668
|
-
|
|
6703
|
+
/** The program's labels of the call's work. */
|
|
6704
|
+
labels: z.record(z.string(), z.string()),
|
|
6669
6705
|
/** The assignment the call's work was part of. */
|
|
6670
6706
|
assignment: z.string().min(1).nullable().optional(),
|
|
6671
6707
|
title: z.string(),
|
|
@@ -8164,6 +8200,8 @@ const listedLoginSchema = z.object({
|
|
|
8164
8200
|
providerId: z.string().min(1).nullable(),
|
|
8165
8201
|
/** The entry's family, or the family of the entry the login makes. */
|
|
8166
8202
|
providerType: z.string(),
|
|
8203
|
+
/** The way it signs in. */
|
|
8204
|
+
method: loginMethodSchema,
|
|
8167
8205
|
/** As `GET /providers/subscription-login/:id` answers it. */
|
|
8168
8206
|
login: loginStateSchema
|
|
8169
8207
|
});
|
|
@@ -8260,12 +8298,19 @@ const sendMessageSchema = z.strictObject({
|
|
|
8260
8298
|
*/
|
|
8261
8299
|
comments: z.array(clientCommentSchema).optional(),
|
|
8262
8300
|
/**
|
|
8263
|
-
*
|
|
8264
|
-
*
|
|
8265
|
-
* reading it
|
|
8266
|
-
*
|
|
8301
|
+
* The program's own labels, such as who asked or what kind of work it
|
|
8302
|
+
* is, which its `user` block keeps: the calls its agent makes after
|
|
8303
|
+
* reading it carry them in the usage ledger. Absent for the core's own
|
|
8304
|
+
* user, as the web app sends.
|
|
8305
|
+
*/
|
|
8306
|
+
labels: z.record(z.string(), z.string()).optional(),
|
|
8307
|
+
/**
|
|
8308
|
+
* The assignment it continues, by the id of the message that opened
|
|
8309
|
+
* it, as its program names it: the calls of the turn it opens are
|
|
8310
|
+
* counted in it. Absent for one that opens the assignment of its own
|
|
8311
|
+
* id.
|
|
8267
8312
|
*/
|
|
8268
|
-
|
|
8313
|
+
assignmentId: z.string().min(1).nullable().optional()
|
|
8269
8314
|
});
|
|
8270
8315
|
z.strictObject({
|
|
8271
8316
|
id: z.string().regex(/* @__PURE__ */ new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", "u")),
|
|
@@ -10730,14 +10775,20 @@ z.object({
|
|
|
10730
10775
|
});
|
|
10731
10776
|
z.strictObject({
|
|
10732
10777
|
/**
|
|
10733
|
-
* Its id, which names the assignment it opens
|
|
10734
|
-
* repeats so the side question takes it once; one is
|
|
10778
|
+
* Its id, which names the assignment it opens unless it names another,
|
|
10779
|
+
* and which a retry repeats so the side question takes it once; one is
|
|
10780
|
+
* made when none.
|
|
10735
10781
|
*/
|
|
10736
10782
|
id: z.string().min(1).nullable().optional(),
|
|
10737
10783
|
/** A message's content, as a frame names it. */
|
|
10738
10784
|
content: z.array(clientContentSchema),
|
|
10739
|
-
/**
|
|
10740
|
-
|
|
10785
|
+
/** The labels its program gave it, as a message's. */
|
|
10786
|
+
labels: z.record(z.string(), z.string()).optional(),
|
|
10787
|
+
/**
|
|
10788
|
+
* The assignment it continues, as a message's; one of its own id when
|
|
10789
|
+
* absent.
|
|
10790
|
+
*/
|
|
10791
|
+
assignmentId: z.string().min(1).nullable().optional()
|
|
10741
10792
|
});
|
|
10742
10793
|
/**
|
|
10743
10794
|
* The answer of a side question's creation and of its patch: the side
|
|
@@ -10850,10 +10901,15 @@ z.strictObject({
|
|
|
10850
10901
|
id: z.string().min(1).nullable().optional(),
|
|
10851
10902
|
text: z.string(),
|
|
10852
10903
|
/**
|
|
10853
|
-
*
|
|
10904
|
+
* The labels its program gave it, as a message's
|
|
10854
10905
|
* (`crates/conversation-lane-protocol/src/client.rs`).
|
|
10855
10906
|
*/
|
|
10856
|
-
|
|
10907
|
+
labels: z.record(z.string(), z.string()).optional(),
|
|
10908
|
+
/**
|
|
10909
|
+
* The assignment it continues when it opens a turn of its own, as a
|
|
10910
|
+
* message's; one the running subagent reads joins its turn's.
|
|
10911
|
+
*/
|
|
10912
|
+
assignmentId: z.string().min(1).nullable().optional()
|
|
10857
10913
|
});
|
|
10858
10914
|
/**
|
|
10859
10915
|
* What a message to a subagent answers: its id, the one it named or the one
|
|
@@ -10895,12 +10951,19 @@ const subscriptionFamilySchema = z.object({
|
|
|
10895
10951
|
* Whether its vendor's terms forbid it through third-party software,
|
|
10896
10952
|
* which Settings says before an account is added.
|
|
10897
10953
|
*/
|
|
10898
|
-
forbidsThirdParty: z.boolean()
|
|
10954
|
+
forbidsThirdParty: z.boolean(),
|
|
10955
|
+
/**
|
|
10956
|
+
* The ways its accounts sign in, the first the one a sign-in starts
|
|
10957
|
+
* with; a family with more lets the user choose.
|
|
10958
|
+
*/
|
|
10959
|
+
loginMethods: z.array(loginMethodSchema)
|
|
10899
10960
|
});
|
|
10900
10961
|
z.strictObject({
|
|
10901
10962
|
providerType: z.string().min(1),
|
|
10902
10963
|
/** The new entry's label; the family's subscription name without it. */
|
|
10903
|
-
label: z.string().trim().min(1).optional()
|
|
10964
|
+
label: z.string().trim().min(1).optional(),
|
|
10965
|
+
/** One of the family's `loginMethods`; `browser` without it. */
|
|
10966
|
+
method: loginMethodSchema.optional()
|
|
10904
10967
|
});
|
|
10905
10968
|
/** How the user took a suggested reply. */
|
|
10906
10969
|
const suggestedReplyUseSchema = z.enum(["sent", "edited"]);
|
|
@@ -11185,14 +11248,19 @@ const usageCostsSchema = z.object({
|
|
|
11185
11248
|
cny: z.number().nullable().optional()
|
|
11186
11249
|
});
|
|
11187
11250
|
/**
|
|
11188
|
-
* The calls of a bucket that share each of the report's dimensions
|
|
11189
|
-
* it names; a dimension the report does not group by is
|
|
11190
|
-
* a call has no value of, such as the
|
|
11251
|
+
* The calls of a bucket that share each of the report's dimensions and
|
|
11252
|
+
* labels, which it names; a dimension the report does not group by is
|
|
11253
|
+
* absent, and one a call has no value of, such as the agent of a title's
|
|
11254
|
+
* call, is null.
|
|
11191
11255
|
*/
|
|
11192
11256
|
const usageReportGroupSchema = z.object({
|
|
11193
11257
|
conversation: z.string().nullable().optional(),
|
|
11194
11258
|
agent: z.int().min(0).nullable().optional(),
|
|
11195
|
-
|
|
11259
|
+
/**
|
|
11260
|
+
* The value of each label the report groups by, by its key, null for
|
|
11261
|
+
* the calls without it; absent when it groups by none.
|
|
11262
|
+
*/
|
|
11263
|
+
labels: z.record(z.string(), z.string().nullable()).optional(),
|
|
11196
11264
|
model: z.string().nullable().optional(),
|
|
11197
11265
|
provider: z.string().nullable().optional(),
|
|
11198
11266
|
account: z.string().nullable().optional(),
|
|
@@ -11235,7 +11303,6 @@ z.enum([
|
|
|
11235
11303
|
"provider",
|
|
11236
11304
|
"turn",
|
|
11237
11305
|
"agent",
|
|
11238
|
-
"sender",
|
|
11239
11306
|
"account",
|
|
11240
11307
|
"assignment",
|
|
11241
11308
|
"purpose"
|
|
@@ -12039,14 +12106,14 @@ var ConversationClient = class {
|
|
|
12039
12106
|
* the transcript or the queue. The wait has no deadline of its own: the
|
|
12040
12107
|
* backend decides that a delivery failed, and says why.
|
|
12041
12108
|
*/
|
|
12042
|
-
submit(content, messageId = createId(), comments = [],
|
|
12109
|
+
submit(content, messageId = createId(), comments = [], options = {}) {
|
|
12043
12110
|
let at;
|
|
12044
12111
|
return this.request({
|
|
12045
12112
|
type: "send",
|
|
12046
12113
|
messageId,
|
|
12047
12114
|
content,
|
|
12048
12115
|
...comments.length > 0 ? { comments: [...comments] } : {},
|
|
12049
|
-
...
|
|
12116
|
+
...options
|
|
12050
12117
|
}, (event) => {
|
|
12051
12118
|
if (event.type === "send_result" && event.messageId === messageId) at = event.at;
|
|
12052
12119
|
if (at !== void 0 && this.holdsVersion(at)) return { resolve: void 0 };
|
|
@@ -12162,14 +12229,14 @@ var ConversationClient = class {
|
|
|
12162
12229
|
* version the answer names, which shows the steer, and rejects with
|
|
12163
12230
|
* `SteerRejectedError` when the session refuses it.
|
|
12164
12231
|
*/
|
|
12165
|
-
steer(content, steerId = createId(), comments = [],
|
|
12232
|
+
steer(content, steerId = createId(), comments = [], options = {}) {
|
|
12166
12233
|
let at;
|
|
12167
12234
|
return this.request({
|
|
12168
12235
|
type: "steer",
|
|
12169
12236
|
steerId,
|
|
12170
12237
|
content,
|
|
12171
12238
|
...comments.length > 0 ? { comments: [...comments] } : {},
|
|
12172
|
-
...
|
|
12239
|
+
...options
|
|
12173
12240
|
}, (event) => {
|
|
12174
12241
|
if (event.type === "steer_result" && event.steerId === steerId) {
|
|
12175
12242
|
if (event.outcome.status !== "accepted") return { reject: new SteerRejectedError(event.outcome) };
|
|
@@ -14539,7 +14606,8 @@ function sideQuestions(routes, id) {
|
|
|
14539
14606
|
followUp: (side, input, messageId = randomUUID(), options = {}) => routes.send("POST", `${one(side)}/messages`, {
|
|
14540
14607
|
id: messageId,
|
|
14541
14608
|
content: content(input),
|
|
14542
|
-
|
|
14609
|
+
labels: options.labels,
|
|
14610
|
+
assignmentId: options.assignmentId
|
|
14543
14611
|
}),
|
|
14544
14612
|
retry: (side) => routes.send("POST", `${one(side)}/retry`),
|
|
14545
14613
|
stop: (side) => routes.send("POST", `${one(side)}/stop`),
|
|
@@ -14761,7 +14829,7 @@ var Conversation = class {
|
|
|
14761
14829
|
* `messageId`, which messages and steers share.
|
|
14762
14830
|
*/
|
|
14763
14831
|
async send(input, messageId = randomUUID(), options = {}) {
|
|
14764
|
-
await (await this.open()).submit(content(input), messageId, [], options
|
|
14832
|
+
await (await this.open()).submit(content(input), messageId, [], options);
|
|
14765
14833
|
}
|
|
14766
14834
|
/**
|
|
14767
14835
|
* Changes what `patch` names of the conversation, as the app's settings
|
|
@@ -14838,7 +14906,8 @@ var Conversation = class {
|
|
|
14838
14906
|
const { id } = await this.routes.json("POST", path, subagentMessageAnswerSchema, {
|
|
14839
14907
|
id: messageId,
|
|
14840
14908
|
text,
|
|
14841
|
-
|
|
14909
|
+
labels: options.labels,
|
|
14910
|
+
assignmentId: options.assignmentId
|
|
14842
14911
|
});
|
|
14843
14912
|
return id;
|
|
14844
14913
|
}
|
|
@@ -14848,7 +14917,7 @@ var Conversation = class {
|
|
|
14848
14917
|
* `steerId`, which messages and steers share.
|
|
14849
14918
|
*/
|
|
14850
14919
|
async steer(input, steerId = randomUUID(), options = {}) {
|
|
14851
|
-
await (await this.open()).steer(content(input), steerId, [], options
|
|
14920
|
+
await (await this.open()).steer(content(input), steerId, [], options);
|
|
14852
14921
|
}
|
|
14853
14922
|
async abort() {
|
|
14854
14923
|
return (await this.open()).abort();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jush-agent/sdk",
|
|
3
3
|
"description": "Jush's agents in a program: its cores, conversations, providers, devices and plugins, in a process of the program's own.",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.6368",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"homepage": "https://github.com/jush-ai/jush/tree/main/packages/sdk#readme",
|
|
36
36
|
"bugs": "https://github.com/jush-ai/jush/issues",
|
|
37
37
|
"optionalDependencies": {
|
|
38
|
-
"@jush-agent/sdk-darwin-arm64": "0.2.
|
|
39
|
-
"@jush-agent/sdk-darwin-x64": "0.2.
|
|
40
|
-
"@jush-agent/sdk-linux-arm64": "0.2.
|
|
41
|
-
"@jush-agent/sdk-linux-x64": "0.2.
|
|
42
|
-
"@jush-agent/sdk-win32-arm64": "0.2.
|
|
43
|
-
"@jush-agent/sdk-win32-x64": "0.2.
|
|
38
|
+
"@jush-agent/sdk-darwin-arm64": "0.2.6368",
|
|
39
|
+
"@jush-agent/sdk-darwin-x64": "0.2.6368",
|
|
40
|
+
"@jush-agent/sdk-linux-arm64": "0.2.6368",
|
|
41
|
+
"@jush-agent/sdk-linux-x64": "0.2.6368",
|
|
42
|
+
"@jush-agent/sdk-win32-arm64": "0.2.6368",
|
|
43
|
+
"@jush-agent/sdk-win32-x64": "0.2.6368"
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "jush.browser",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6368",
|
|
4
4
|
"protocolVersion": 1,
|
|
5
5
|
"operations": [
|
|
6
6
|
"browser.tab.new",
|
|
@@ -60,28 +60,28 @@
|
|
|
60
60
|
],
|
|
61
61
|
"targets": {
|
|
62
62
|
"aarch64-apple-darwin": {
|
|
63
|
-
"sha256": "
|
|
64
|
-
"size":
|
|
63
|
+
"sha256": "e889e59990f6213a3547128627293dc4757cffc43ff7f4071735a2acfd7277f1",
|
|
64
|
+
"size": 29040688
|
|
65
65
|
},
|
|
66
66
|
"aarch64-pc-windows-msvc": {
|
|
67
|
-
"sha256": "
|
|
68
|
-
"size":
|
|
67
|
+
"sha256": "266688d67a9e5c669705d3e6ee54680959073c1207ba9b06f41e4e973aec27ed",
|
|
68
|
+
"size": 26423808
|
|
69
69
|
},
|
|
70
70
|
"aarch64-unknown-linux-musl": {
|
|
71
|
-
"sha256": "
|
|
72
|
-
"size":
|
|
71
|
+
"sha256": "e2697c436870838c34bc9e13fda7487ec80061e9c42c6688bd274069f7c684d8",
|
|
72
|
+
"size": 24914416
|
|
73
73
|
},
|
|
74
74
|
"x86_64-apple-darwin": {
|
|
75
|
-
"sha256": "
|
|
76
|
-
"size":
|
|
75
|
+
"sha256": "cb3e045335dbcd2cbf7a4fb269dd5b2d615629c300fa8acdac556be99afadc6e",
|
|
76
|
+
"size": 29645088
|
|
77
77
|
},
|
|
78
78
|
"x86_64-pc-windows-msvc": {
|
|
79
|
-
"sha256": "
|
|
80
|
-
"size":
|
|
79
|
+
"sha256": "1170c40f6e0f62f91cd4834f57e4f09bb5f04152cabe2b9b5c72f1a407ca920c",
|
|
80
|
+
"size": 29418496
|
|
81
81
|
},
|
|
82
82
|
"x86_64-unknown-linux-musl": {
|
|
83
|
-
"sha256": "
|
|
84
|
-
"size":
|
|
83
|
+
"sha256": "133926359d3b788a8f78543a628a170a4c7eedfc373025c51647810dd7fc40dc",
|
|
84
|
+
"size": 27372920
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "jush.fetch",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6368",
|
|
4
4
|
"protocolVersion": 1,
|
|
5
5
|
"operations": [
|
|
6
6
|
"fetch.get"
|
|
7
7
|
],
|
|
8
8
|
"targets": {
|
|
9
9
|
"aarch64-apple-darwin": {
|
|
10
|
-
"sha256": "
|
|
11
|
-
"size":
|
|
10
|
+
"sha256": "23cbf5649a9e9769a4b5ec54f836a05c5ec835cb8dbd3bd2d60d5f87d6c0a29f",
|
|
11
|
+
"size": 7166336
|
|
12
12
|
},
|
|
13
13
|
"aarch64-pc-windows-msvc": {
|
|
14
|
-
"sha256": "
|
|
15
|
-
"size":
|
|
14
|
+
"sha256": "9e799f99aaa9e9c7a35814a76cccccd5b7cb8a8d8a22cd6322db62401d2e1b88",
|
|
15
|
+
"size": 6521856
|
|
16
16
|
},
|
|
17
17
|
"aarch64-unknown-linux-musl": {
|
|
18
|
-
"sha256": "
|
|
19
|
-
"size":
|
|
18
|
+
"sha256": "81f17ea4ebb205b25efc628a078b4de5e89e42eabe4e12eecc0a2fbae8fe811d",
|
|
19
|
+
"size": 6530992
|
|
20
20
|
},
|
|
21
21
|
"x86_64-apple-darwin": {
|
|
22
|
-
"sha256": "
|
|
23
|
-
"size":
|
|
22
|
+
"sha256": "8c89d0c4a314118dbc310ae8b1cee0fc10bacadd53d236e61bd6eb9024d6658d",
|
|
23
|
+
"size": 7281104
|
|
24
24
|
},
|
|
25
25
|
"x86_64-pc-windows-msvc": {
|
|
26
|
-
"sha256": "
|
|
26
|
+
"sha256": "f817735e5bd244f688f456774121f9bc2ba7dd3bcaa680c31dbbcf728335bf94",
|
|
27
27
|
"size": 7002112
|
|
28
28
|
},
|
|
29
29
|
"x86_64-unknown-linux-musl": {
|
|
30
|
-
"sha256": "
|
|
31
|
-
"size":
|
|
30
|
+
"sha256": "43856973eda4e38f12426cf9429152671967a8a84f984bf0195dd43e1afb0313",
|
|
31
|
+
"size": 7023024
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "jush.file",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6368",
|
|
4
4
|
"protocolVersion": 1,
|
|
5
5
|
"operations": [
|
|
6
6
|
"file.view",
|
|
@@ -9,28 +9,28 @@
|
|
|
9
9
|
],
|
|
10
10
|
"targets": {
|
|
11
11
|
"aarch64-apple-darwin": {
|
|
12
|
-
"sha256": "
|
|
13
|
-
"size":
|
|
12
|
+
"sha256": "cc9bdfd6c1c59aca50108863d197948d34435d8e4e17a11c4bebc6ffa09c65ab",
|
|
13
|
+
"size": 4931184
|
|
14
14
|
},
|
|
15
15
|
"aarch64-pc-windows-msvc": {
|
|
16
|
-
"sha256": "
|
|
17
|
-
"size":
|
|
16
|
+
"sha256": "968f3f086ba3ea0808bcee76e092c846550fcf19c41db5d58a67a11b59b9ca5d",
|
|
17
|
+
"size": 4369408
|
|
18
18
|
},
|
|
19
19
|
"aarch64-unknown-linux-musl": {
|
|
20
|
-
"sha256": "
|
|
21
|
-
"size":
|
|
20
|
+
"sha256": "5b14f810fa23e44b2ce3516e0ad8d8de2c8ea40359ee2fd7ff78e8a262840c22",
|
|
21
|
+
"size": 4473664
|
|
22
22
|
},
|
|
23
23
|
"x86_64-apple-darwin": {
|
|
24
|
-
"sha256": "
|
|
25
|
-
"size":
|
|
24
|
+
"sha256": "24423b0d8f1ba3dc33c3e146b21e713e20bd04b60020191205fde3e8974aef82",
|
|
25
|
+
"size": 4811368
|
|
26
26
|
},
|
|
27
27
|
"x86_64-pc-windows-msvc": {
|
|
28
|
-
"sha256": "
|
|
29
|
-
"size":
|
|
28
|
+
"sha256": "94c26cb95699777d3ba92b7b330e94a18c74e074810219bcec50532f6136b2d2",
|
|
29
|
+
"size": 4674560
|
|
30
30
|
},
|
|
31
31
|
"x86_64-unknown-linux-musl": {
|
|
32
|
-
"sha256": "
|
|
33
|
-
"size":
|
|
32
|
+
"sha256": "414a06ec716149bb1418e92d7b12715611663e7f56ac42db3f388befdc751df4",
|
|
33
|
+
"size": 4696832
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "jush.mobile",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6368",
|
|
4
4
|
"protocolVersion": 1,
|
|
5
5
|
"operations": [
|
|
6
6
|
"mobile.list",
|
|
@@ -25,28 +25,28 @@
|
|
|
25
25
|
],
|
|
26
26
|
"targets": {
|
|
27
27
|
"aarch64-apple-darwin": {
|
|
28
|
-
"sha256": "
|
|
29
|
-
"size":
|
|
28
|
+
"sha256": "732f616f0994a4dbff62ee3577c086727ed37aa81f7ba9d6550dceadc115388c",
|
|
29
|
+
"size": 22263920
|
|
30
30
|
},
|
|
31
31
|
"aarch64-pc-windows-msvc": {
|
|
32
|
-
"sha256": "
|
|
33
|
-
"size":
|
|
32
|
+
"sha256": "c94fd4b9de17a0ed210393b64de39ddd28312f9096fa464c90eecb618a82173a",
|
|
33
|
+
"size": 17921536
|
|
34
34
|
},
|
|
35
35
|
"aarch64-unknown-linux-musl": {
|
|
36
|
-
"sha256": "
|
|
37
|
-
"size":
|
|
36
|
+
"sha256": "91f424156b6fc3004e7a8a753878de27a9f87bc44d3303add7507c801683ef65",
|
|
37
|
+
"size": 17330096
|
|
38
38
|
},
|
|
39
39
|
"x86_64-apple-darwin": {
|
|
40
|
-
"sha256": "
|
|
41
|
-
"size":
|
|
40
|
+
"sha256": "114bc64e21958b9194c802986dc508b9009bdbf3b2b5282aab2c652a9e42d333",
|
|
41
|
+
"size": 21522800
|
|
42
42
|
},
|
|
43
43
|
"x86_64-pc-windows-msvc": {
|
|
44
|
-
"sha256": "
|
|
45
|
-
"size":
|
|
44
|
+
"sha256": "8c7763c0c212cf88669438244490eabaab709d3bdd25307e9c1951ef8e034eac",
|
|
45
|
+
"size": 20924928
|
|
46
46
|
},
|
|
47
47
|
"x86_64-unknown-linux-musl": {
|
|
48
|
-
"sha256": "
|
|
49
|
-
"size":
|
|
48
|
+
"sha256": "ce445eedc231aaf07c89bd2de8cda0bd1aafd8711beef73e55b8c43dd53efff0",
|
|
49
|
+
"size": 19934144
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
}
|