@autohq/cli 0.1.459 → 0.1.460
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/agent-bridge.js +68 -4
- package/dist/index.js +69 -5
- package/package.json +1 -1
package/dist/agent-bridge.js
CHANGED
|
@@ -30825,7 +30825,7 @@ Object.assign(lookup, {
|
|
|
30825
30825
|
// package.json
|
|
30826
30826
|
var package_default = {
|
|
30827
30827
|
name: "@autohq/cli",
|
|
30828
|
-
version: "0.1.
|
|
30828
|
+
version: "0.1.460",
|
|
30829
30829
|
license: "SEE LICENSE IN README.md",
|
|
30830
30830
|
publishConfig: {
|
|
30831
30831
|
access: "public"
|
|
@@ -32004,10 +32004,24 @@ var TelegramChatDestinationSchema = external_exports.object({
|
|
|
32004
32004
|
channel: external_exports.string().trim().min(1).optional(),
|
|
32005
32005
|
thread: ChatThreadSelectorSchema.optional()
|
|
32006
32006
|
});
|
|
32007
|
+
var DiscordChatDestinationSchema = external_exports.object({
|
|
32008
|
+
provider: external_exports.literal("discord"),
|
|
32009
|
+
/** The Discord connection name or installed guild (server) name. */
|
|
32010
|
+
workspace: external_exports.string().trim().min(1).optional(),
|
|
32011
|
+
/** A Discord channel id (snowflake) or a guild channel name (e.g. "#general"). */
|
|
32012
|
+
channel: external_exports.string().trim().min(1).optional(),
|
|
32013
|
+
/**
|
|
32014
|
+
* A Discord thread target: the canonical
|
|
32015
|
+
* `discord:<guildId>:<channelId>:<threadId>` id from a prior send/history
|
|
32016
|
+
* result, or a bare thread id together with `channel`.
|
|
32017
|
+
*/
|
|
32018
|
+
thread: ChatThreadSelectorSchema.optional()
|
|
32019
|
+
});
|
|
32007
32020
|
var ChatDestinationSchema = external_exports.discriminatedUnion("provider", [
|
|
32008
32021
|
SlackChatDestinationSchema,
|
|
32009
32022
|
LinearChatDestinationSchema,
|
|
32010
|
-
TelegramChatDestinationSchema
|
|
32023
|
+
TelegramChatDestinationSchema,
|
|
32024
|
+
DiscordChatDestinationSchema
|
|
32011
32025
|
]);
|
|
32012
32026
|
var SlackChatRecipientSchema = external_exports.discriminatedUnion("kind", [
|
|
32013
32027
|
external_exports.object({
|
|
@@ -32032,6 +32046,13 @@ var TelegramChatRecipientSchema = external_exports.discriminatedUnion("kind", [
|
|
|
32032
32046
|
user: external_exports.string().trim().min(1)
|
|
32033
32047
|
})
|
|
32034
32048
|
]);
|
|
32049
|
+
var DiscordChatRecipientSchema = external_exports.discriminatedUnion("kind", [
|
|
32050
|
+
external_exports.object({
|
|
32051
|
+
kind: external_exports.literal("user"),
|
|
32052
|
+
/** Discord user id. The user must share a guild with the installed bot. */
|
|
32053
|
+
user: external_exports.string().trim().min(1)
|
|
32054
|
+
})
|
|
32055
|
+
]);
|
|
32035
32056
|
var ChatRecipientSchema = external_exports.discriminatedUnion("provider", [
|
|
32036
32057
|
external_exports.object({
|
|
32037
32058
|
provider: external_exports.literal("slack"),
|
|
@@ -32044,6 +32065,10 @@ var ChatRecipientSchema = external_exports.discriminatedUnion("provider", [
|
|
|
32044
32065
|
external_exports.object({
|
|
32045
32066
|
provider: external_exports.literal("telegram"),
|
|
32046
32067
|
to: TelegramChatRecipientSchema
|
|
32068
|
+
}),
|
|
32069
|
+
external_exports.object({
|
|
32070
|
+
provider: external_exports.literal("discord"),
|
|
32071
|
+
to: DiscordChatRecipientSchema
|
|
32047
32072
|
})
|
|
32048
32073
|
]);
|
|
32049
32074
|
var SlackChatAddressSchema = external_exports.object({
|
|
@@ -32063,10 +32088,18 @@ var TelegramChatAddressSchema = external_exports.object({
|
|
|
32063
32088
|
}).optional(),
|
|
32064
32089
|
to: TelegramChatRecipientSchema.optional()
|
|
32065
32090
|
});
|
|
32091
|
+
var DiscordChatAddressSchema = external_exports.object({
|
|
32092
|
+
provider: external_exports.literal("discord"),
|
|
32093
|
+
destination: DiscordChatDestinationSchema.omit({
|
|
32094
|
+
provider: true
|
|
32095
|
+
}).optional(),
|
|
32096
|
+
to: DiscordChatRecipientSchema.optional()
|
|
32097
|
+
});
|
|
32066
32098
|
var ChatAddressSchema = external_exports.discriminatedUnion("provider", [
|
|
32067
32099
|
SlackChatAddressSchema,
|
|
32068
32100
|
LinearChatAddressSchema,
|
|
32069
|
-
TelegramChatAddressSchema
|
|
32101
|
+
TelegramChatAddressSchema,
|
|
32102
|
+
DiscordChatAddressSchema
|
|
32070
32103
|
]);
|
|
32071
32104
|
var ChatToolDefaultsSchema = ChatAddressSchema;
|
|
32072
32105
|
var ChatSendToolInputSchema = external_exports.object({
|
|
@@ -32303,7 +32336,38 @@ var SlackChatSearchResultSchema = external_exports.discriminatedUnion("type", [
|
|
|
32303
32336
|
target: SlackChatAddressSchema
|
|
32304
32337
|
})
|
|
32305
32338
|
]);
|
|
32306
|
-
var
|
|
32339
|
+
var DiscordChatSearchResultSchema = external_exports.discriminatedUnion("type", [
|
|
32340
|
+
external_exports.object({
|
|
32341
|
+
type: external_exports.literal("channel"),
|
|
32342
|
+
provider: external_exports.literal("discord"),
|
|
32343
|
+
workspace: ChatSearchWorkspaceSchema,
|
|
32344
|
+
channel: external_exports.object({
|
|
32345
|
+
id: external_exports.string().trim().min(1),
|
|
32346
|
+
name: external_exports.string().trim().min(1),
|
|
32347
|
+
isPrivate: external_exports.boolean().optional(),
|
|
32348
|
+
isMember: external_exports.boolean().optional()
|
|
32349
|
+
}),
|
|
32350
|
+
target: DiscordChatAddressSchema
|
|
32351
|
+
}),
|
|
32352
|
+
external_exports.object({
|
|
32353
|
+
type: external_exports.literal("user"),
|
|
32354
|
+
provider: external_exports.literal("discord"),
|
|
32355
|
+
workspace: ChatSearchWorkspaceSchema,
|
|
32356
|
+
user: external_exports.object({
|
|
32357
|
+
id: external_exports.string().trim().min(1),
|
|
32358
|
+
name: external_exports.string().trim().min(1).optional(),
|
|
32359
|
+
displayName: external_exports.string().trim().min(1).optional(),
|
|
32360
|
+
realName: external_exports.string().trim().min(1).optional(),
|
|
32361
|
+
isBot: external_exports.boolean().optional(),
|
|
32362
|
+
isDeleted: external_exports.boolean().optional()
|
|
32363
|
+
}),
|
|
32364
|
+
target: DiscordChatAddressSchema
|
|
32365
|
+
})
|
|
32366
|
+
]);
|
|
32367
|
+
var ChatSearchResultSchema = external_exports.union([
|
|
32368
|
+
SlackChatSearchResultSchema,
|
|
32369
|
+
DiscordChatSearchResultSchema
|
|
32370
|
+
]);
|
|
32307
32371
|
var ChatSearchToolOutputSchema = external_exports.object({
|
|
32308
32372
|
results: external_exports.array(ChatSearchResultSchema),
|
|
32309
32373
|
warnings: external_exports.array(external_exports.string().trim().min(1)).default([])
|
package/dist/index.js
CHANGED
|
@@ -15555,7 +15555,7 @@ var init_auth = __esm({
|
|
|
15555
15555
|
});
|
|
15556
15556
|
|
|
15557
15557
|
// ../../packages/schemas/src/chat.ts
|
|
15558
|
-
var ChatMessageKindSchema, ChatMessageRefSchema, ChatToolBindingSchema, ChatMessageEventPayloadSchema, ChatMessageEditedEventPayloadSchema, ChatReactionEventPayloadSchema, ChatMessageContentSchema, ChatThreadSelectorSchema, SlackChatDestinationSchema, LinearChatDestinationSchema, TelegramChatDestinationSchema, ChatDestinationSchema, SlackChatRecipientSchema, LinearChatRecipientSchema, TelegramChatRecipientSchema, ChatRecipientSchema, SlackChatAddressSchema, LinearChatAddressSchema, TelegramChatAddressSchema, ChatAddressSchema, ChatToolDefaultsSchema, ChatSendToolInputSchema, ChatSendToolOutputSchema, ChatHistoryToolInputSchema, ChatAttachmentSchema, ChatHistoryMessageSchema, ChatHistoryToolOutputSchema, ChatAttachmentDownloadAllowedMimeTypes, ChatAttachmentDownloadAllowedMimeTypeSchema, ChatAttachmentDownloadMaxSizeBytesByType, ChatAttachmentDownloadMaxSizeBytes, ChatAttachmentDownloadToolInputSchema, ChatAttachmentDownloadToolOutputSchema, ChatIssueParticipantSchema, ChatIssueNamedRefSchema, ChatIssueRefSchema, ChatIssueSchema, ChatIssueGetToolInputSchema, ChatIssueGetToolOutputSchema, ChatIssueUpdateToolInputSchema, ChatIssueUpdateToolOutputSchema, ChatReplyToolInputSchema, ChatReplyToolOutputSchema, ChatReactionToolInputSchema, ChatReactionToolOutputSchema, ChatSearchResultTypeSchema, ChatSearchToolInputSchema, ChatSearchWorkspaceSchema, SlackChatSearchResultSchema, ChatSearchResultSchema, ChatSearchToolOutputSchema;
|
|
15558
|
+
var ChatMessageKindSchema, ChatMessageRefSchema, ChatToolBindingSchema, ChatMessageEventPayloadSchema, ChatMessageEditedEventPayloadSchema, ChatReactionEventPayloadSchema, ChatMessageContentSchema, ChatThreadSelectorSchema, SlackChatDestinationSchema, LinearChatDestinationSchema, TelegramChatDestinationSchema, DiscordChatDestinationSchema, ChatDestinationSchema, SlackChatRecipientSchema, LinearChatRecipientSchema, TelegramChatRecipientSchema, DiscordChatRecipientSchema, ChatRecipientSchema, SlackChatAddressSchema, LinearChatAddressSchema, TelegramChatAddressSchema, DiscordChatAddressSchema, ChatAddressSchema, ChatToolDefaultsSchema, ChatSendToolInputSchema, ChatSendToolOutputSchema, ChatHistoryToolInputSchema, ChatAttachmentSchema, ChatHistoryMessageSchema, ChatHistoryToolOutputSchema, ChatAttachmentDownloadAllowedMimeTypes, ChatAttachmentDownloadAllowedMimeTypeSchema, ChatAttachmentDownloadMaxSizeBytesByType, ChatAttachmentDownloadMaxSizeBytes, ChatAttachmentDownloadToolInputSchema, ChatAttachmentDownloadToolOutputSchema, ChatIssueParticipantSchema, ChatIssueNamedRefSchema, ChatIssueRefSchema, ChatIssueSchema, ChatIssueGetToolInputSchema, ChatIssueGetToolOutputSchema, ChatIssueUpdateToolInputSchema, ChatIssueUpdateToolOutputSchema, ChatReplyToolInputSchema, ChatReplyToolOutputSchema, ChatReactionToolInputSchema, ChatReactionToolOutputSchema, ChatSearchResultTypeSchema, ChatSearchToolInputSchema, ChatSearchWorkspaceSchema, SlackChatSearchResultSchema, DiscordChatSearchResultSchema, ChatSearchResultSchema, ChatSearchToolOutputSchema;
|
|
15559
15559
|
var init_chat = __esm({
|
|
15560
15560
|
"../../packages/schemas/src/chat.ts"() {
|
|
15561
15561
|
"use strict";
|
|
@@ -15718,10 +15718,24 @@ var init_chat = __esm({
|
|
|
15718
15718
|
channel: external_exports.string().trim().min(1).optional(),
|
|
15719
15719
|
thread: ChatThreadSelectorSchema.optional()
|
|
15720
15720
|
});
|
|
15721
|
+
DiscordChatDestinationSchema = external_exports.object({
|
|
15722
|
+
provider: external_exports.literal("discord"),
|
|
15723
|
+
/** The Discord connection name or installed guild (server) name. */
|
|
15724
|
+
workspace: external_exports.string().trim().min(1).optional(),
|
|
15725
|
+
/** A Discord channel id (snowflake) or a guild channel name (e.g. "#general"). */
|
|
15726
|
+
channel: external_exports.string().trim().min(1).optional(),
|
|
15727
|
+
/**
|
|
15728
|
+
* A Discord thread target: the canonical
|
|
15729
|
+
* `discord:<guildId>:<channelId>:<threadId>` id from a prior send/history
|
|
15730
|
+
* result, or a bare thread id together with `channel`.
|
|
15731
|
+
*/
|
|
15732
|
+
thread: ChatThreadSelectorSchema.optional()
|
|
15733
|
+
});
|
|
15721
15734
|
ChatDestinationSchema = external_exports.discriminatedUnion("provider", [
|
|
15722
15735
|
SlackChatDestinationSchema,
|
|
15723
15736
|
LinearChatDestinationSchema,
|
|
15724
|
-
TelegramChatDestinationSchema
|
|
15737
|
+
TelegramChatDestinationSchema,
|
|
15738
|
+
DiscordChatDestinationSchema
|
|
15725
15739
|
]);
|
|
15726
15740
|
SlackChatRecipientSchema = external_exports.discriminatedUnion("kind", [
|
|
15727
15741
|
external_exports.object({
|
|
@@ -15746,6 +15760,13 @@ var init_chat = __esm({
|
|
|
15746
15760
|
user: external_exports.string().trim().min(1)
|
|
15747
15761
|
})
|
|
15748
15762
|
]);
|
|
15763
|
+
DiscordChatRecipientSchema = external_exports.discriminatedUnion("kind", [
|
|
15764
|
+
external_exports.object({
|
|
15765
|
+
kind: external_exports.literal("user"),
|
|
15766
|
+
/** Discord user id. The user must share a guild with the installed bot. */
|
|
15767
|
+
user: external_exports.string().trim().min(1)
|
|
15768
|
+
})
|
|
15769
|
+
]);
|
|
15749
15770
|
ChatRecipientSchema = external_exports.discriminatedUnion("provider", [
|
|
15750
15771
|
external_exports.object({
|
|
15751
15772
|
provider: external_exports.literal("slack"),
|
|
@@ -15758,6 +15779,10 @@ var init_chat = __esm({
|
|
|
15758
15779
|
external_exports.object({
|
|
15759
15780
|
provider: external_exports.literal("telegram"),
|
|
15760
15781
|
to: TelegramChatRecipientSchema
|
|
15782
|
+
}),
|
|
15783
|
+
external_exports.object({
|
|
15784
|
+
provider: external_exports.literal("discord"),
|
|
15785
|
+
to: DiscordChatRecipientSchema
|
|
15761
15786
|
})
|
|
15762
15787
|
]);
|
|
15763
15788
|
SlackChatAddressSchema = external_exports.object({
|
|
@@ -15777,10 +15802,18 @@ var init_chat = __esm({
|
|
|
15777
15802
|
}).optional(),
|
|
15778
15803
|
to: TelegramChatRecipientSchema.optional()
|
|
15779
15804
|
});
|
|
15805
|
+
DiscordChatAddressSchema = external_exports.object({
|
|
15806
|
+
provider: external_exports.literal("discord"),
|
|
15807
|
+
destination: DiscordChatDestinationSchema.omit({
|
|
15808
|
+
provider: true
|
|
15809
|
+
}).optional(),
|
|
15810
|
+
to: DiscordChatRecipientSchema.optional()
|
|
15811
|
+
});
|
|
15780
15812
|
ChatAddressSchema = external_exports.discriminatedUnion("provider", [
|
|
15781
15813
|
SlackChatAddressSchema,
|
|
15782
15814
|
LinearChatAddressSchema,
|
|
15783
|
-
TelegramChatAddressSchema
|
|
15815
|
+
TelegramChatAddressSchema,
|
|
15816
|
+
DiscordChatAddressSchema
|
|
15784
15817
|
]);
|
|
15785
15818
|
ChatToolDefaultsSchema = ChatAddressSchema;
|
|
15786
15819
|
ChatSendToolInputSchema = external_exports.object({
|
|
@@ -16017,7 +16050,38 @@ var init_chat = __esm({
|
|
|
16017
16050
|
target: SlackChatAddressSchema
|
|
16018
16051
|
})
|
|
16019
16052
|
]);
|
|
16020
|
-
|
|
16053
|
+
DiscordChatSearchResultSchema = external_exports.discriminatedUnion("type", [
|
|
16054
|
+
external_exports.object({
|
|
16055
|
+
type: external_exports.literal("channel"),
|
|
16056
|
+
provider: external_exports.literal("discord"),
|
|
16057
|
+
workspace: ChatSearchWorkspaceSchema,
|
|
16058
|
+
channel: external_exports.object({
|
|
16059
|
+
id: external_exports.string().trim().min(1),
|
|
16060
|
+
name: external_exports.string().trim().min(1),
|
|
16061
|
+
isPrivate: external_exports.boolean().optional(),
|
|
16062
|
+
isMember: external_exports.boolean().optional()
|
|
16063
|
+
}),
|
|
16064
|
+
target: DiscordChatAddressSchema
|
|
16065
|
+
}),
|
|
16066
|
+
external_exports.object({
|
|
16067
|
+
type: external_exports.literal("user"),
|
|
16068
|
+
provider: external_exports.literal("discord"),
|
|
16069
|
+
workspace: ChatSearchWorkspaceSchema,
|
|
16070
|
+
user: external_exports.object({
|
|
16071
|
+
id: external_exports.string().trim().min(1),
|
|
16072
|
+
name: external_exports.string().trim().min(1).optional(),
|
|
16073
|
+
displayName: external_exports.string().trim().min(1).optional(),
|
|
16074
|
+
realName: external_exports.string().trim().min(1).optional(),
|
|
16075
|
+
isBot: external_exports.boolean().optional(),
|
|
16076
|
+
isDeleted: external_exports.boolean().optional()
|
|
16077
|
+
}),
|
|
16078
|
+
target: DiscordChatAddressSchema
|
|
16079
|
+
})
|
|
16080
|
+
]);
|
|
16081
|
+
ChatSearchResultSchema = external_exports.union([
|
|
16082
|
+
SlackChatSearchResultSchema,
|
|
16083
|
+
DiscordChatSearchResultSchema
|
|
16084
|
+
]);
|
|
16021
16085
|
ChatSearchToolOutputSchema = external_exports.object({
|
|
16022
16086
|
results: external_exports.array(ChatSearchResultSchema),
|
|
16023
16087
|
warnings: external_exports.array(external_exports.string().trim().min(1)).default([])
|
|
@@ -53364,7 +53428,7 @@ var init_package = __esm({
|
|
|
53364
53428
|
"package.json"() {
|
|
53365
53429
|
package_default = {
|
|
53366
53430
|
name: "@autohq/cli",
|
|
53367
|
-
version: "0.1.
|
|
53431
|
+
version: "0.1.460",
|
|
53368
53432
|
license: "SEE LICENSE IN README.md",
|
|
53369
53433
|
publishConfig: {
|
|
53370
53434
|
access: "public"
|