@vm0/cli 9.136.0 → 9.137.1
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/{chunk-5F6QHYHS.js → chunk-I3QKCVRM.js} +85 -6
- package/{chunk-5F6QHYHS.js.map → chunk-I3QKCVRM.js.map} +1 -1
- package/index.js +9 -9
- package/package.json +1 -1
- package/zero.js +165 -20
- package/zero.js.map +1 -1
|
@@ -66716,7 +66716,7 @@ if (DSN) {
|
|
|
66716
66716
|
init2({
|
|
66717
66717
|
dsn: DSN,
|
|
66718
66718
|
environment: process.env.SENTRY_ENVIRONMENT ?? "production",
|
|
66719
|
-
release: "9.
|
|
66719
|
+
release: "9.137.1",
|
|
66720
66720
|
sendDefaultPii: false,
|
|
66721
66721
|
tracesSampleRate: 0,
|
|
66722
66722
|
shutdownTimeout: 500,
|
|
@@ -66735,7 +66735,7 @@ if (DSN) {
|
|
|
66735
66735
|
}
|
|
66736
66736
|
});
|
|
66737
66737
|
setContext("cli", {
|
|
66738
|
-
version: "9.
|
|
66738
|
+
version: "9.137.1",
|
|
66739
66739
|
command: process.argv.slice(2).join(" ")
|
|
66740
66740
|
});
|
|
66741
66741
|
setContext("runtime", {
|
|
@@ -95380,10 +95380,15 @@ var chatThreadListItemSchema = external_exports.object({
|
|
|
95380
95380
|
/**
|
|
95381
95381
|
* True when the thread has at least one non-terminal run
|
|
95382
95382
|
* (queued / pending / running). Drives the sidebar running indicator,
|
|
95383
|
-
* which is mutually exclusive with the unread dot
|
|
95384
|
-
* `ChatThreadReadIndicator` feature switch gate.
|
|
95383
|
+
* which is mutually exclusive with the unread dot.
|
|
95385
95384
|
*/
|
|
95386
|
-
running: external_exports.boolean()
|
|
95385
|
+
running: external_exports.boolean(),
|
|
95386
|
+
/**
|
|
95387
|
+
* True when the thread has draft composer content the user hasn't sent yet
|
|
95388
|
+
* (non-empty `draftContent` or one+ `draftAttachments`). Drives the sidebar
|
|
95389
|
+
* draft indicator. Optional for back-compat with fixtures predating the field.
|
|
95390
|
+
*/
|
|
95391
|
+
hasDraft: external_exports.boolean().optional()
|
|
95387
95392
|
});
|
|
95388
95393
|
var toolSummaryEntrySchema = external_exports.object({
|
|
95389
95394
|
kind: external_exports.literal("tool"),
|
|
@@ -96749,6 +96754,60 @@ var integrationsSlackMessageContract = c21.router({
|
|
|
96749
96754
|
summary: "Send a Slack message via org bot token"
|
|
96750
96755
|
}
|
|
96751
96756
|
});
|
|
96757
|
+
var sendTelegramMessageBodySchema = external_exports.object({
|
|
96758
|
+
botId: external_exports.string().min(1, "Bot ID is required"),
|
|
96759
|
+
chatId: external_exports.string().min(1, "Chat ID is required"),
|
|
96760
|
+
text: external_exports.string().min(1, "Message text is required"),
|
|
96761
|
+
replyToMessageId: external_exports.number().int().positive().optional(),
|
|
96762
|
+
messageThreadId: external_exports.number().int().positive().optional()
|
|
96763
|
+
});
|
|
96764
|
+
var sendTelegramMessageResponseSchema = external_exports.object({
|
|
96765
|
+
ok: external_exports.literal(true),
|
|
96766
|
+
messageId: external_exports.number().int(),
|
|
96767
|
+
chatId: external_exports.string()
|
|
96768
|
+
});
|
|
96769
|
+
var integrationsTelegramMessageContract = c21.router({
|
|
96770
|
+
sendMessage: {
|
|
96771
|
+
method: "POST",
|
|
96772
|
+
path: "/api/zero/integrations/telegram/message",
|
|
96773
|
+
headers: authHeadersSchema,
|
|
96774
|
+
body: sendTelegramMessageBodySchema,
|
|
96775
|
+
responses: {
|
|
96776
|
+
200: sendTelegramMessageResponseSchema,
|
|
96777
|
+
400: apiErrorSchema,
|
|
96778
|
+
401: apiErrorSchema,
|
|
96779
|
+
403: apiErrorSchema,
|
|
96780
|
+
404: apiErrorSchema,
|
|
96781
|
+
502: apiErrorSchema
|
|
96782
|
+
},
|
|
96783
|
+
summary: "Send a Telegram message via org bot token"
|
|
96784
|
+
}
|
|
96785
|
+
});
|
|
96786
|
+
var telegramBotTokenStatusSchema = external_exports.enum(["valid", "invalid", "unknown"]);
|
|
96787
|
+
var telegramBotListItemSchema = external_exports.object({
|
|
96788
|
+
id: external_exports.string(),
|
|
96789
|
+
username: external_exports.string().nullable(),
|
|
96790
|
+
agent: external_exports.object({ id: external_exports.string(), name: external_exports.string() }).nullable(),
|
|
96791
|
+
isOwner: external_exports.boolean(),
|
|
96792
|
+
isConnected: external_exports.boolean(),
|
|
96793
|
+
tokenStatus: telegramBotTokenStatusSchema
|
|
96794
|
+
});
|
|
96795
|
+
var listTelegramBotsResponseSchema = external_exports.object({
|
|
96796
|
+
bots: external_exports.array(telegramBotListItemSchema)
|
|
96797
|
+
});
|
|
96798
|
+
var integrationsTelegramBotListContract = c21.router({
|
|
96799
|
+
listBots: {
|
|
96800
|
+
method: "GET",
|
|
96801
|
+
path: "/api/zero/integrations/telegram/bots",
|
|
96802
|
+
headers: authHeadersSchema,
|
|
96803
|
+
responses: {
|
|
96804
|
+
200: listTelegramBotsResponseSchema,
|
|
96805
|
+
401: apiErrorSchema,
|
|
96806
|
+
403: apiErrorSchema
|
|
96807
|
+
},
|
|
96808
|
+
summary: "List Telegram bots available in the authenticated user's org"
|
|
96809
|
+
}
|
|
96810
|
+
});
|
|
96752
96811
|
var slackUploadInitBodySchema = external_exports.object({
|
|
96753
96812
|
filename: external_exports.string().min(1, "Filename is required"),
|
|
96754
96813
|
length: external_exports.number().int().positive("File length must be a positive integer")
|
|
@@ -96972,6 +97031,24 @@ init_esm_shims();
|
|
|
96972
97031
|
import { createWriteStream as createWriteStream2 } from "fs";
|
|
96973
97032
|
import { Readable as Readable3 } from "stream";
|
|
96974
97033
|
import { pipeline as pipeline2 } from "stream/promises";
|
|
97034
|
+
async function listTelegramBots() {
|
|
97035
|
+
const config4 = await getClientConfig();
|
|
97036
|
+
const client = initClient(integrationsTelegramBotListContract, config4);
|
|
97037
|
+
const result = await client.listBots({ headers: {} });
|
|
97038
|
+
if (result.status === 200) {
|
|
97039
|
+
return result.body;
|
|
97040
|
+
}
|
|
97041
|
+
handleError(result, "Failed to list Telegram bots");
|
|
97042
|
+
}
|
|
97043
|
+
async function sendTelegramMessage(body) {
|
|
97044
|
+
const config4 = await getClientConfig();
|
|
97045
|
+
const client = initClient(integrationsTelegramMessageContract, config4);
|
|
97046
|
+
const result = await client.sendMessage({ body, headers: {} });
|
|
97047
|
+
if (result.status === 200) {
|
|
97048
|
+
return result.body;
|
|
97049
|
+
}
|
|
97050
|
+
handleError(result, "Failed to send Telegram message");
|
|
97051
|
+
}
|
|
96975
97052
|
async function initTelegramFileUpload(body) {
|
|
96976
97053
|
const config4 = await getClientConfig();
|
|
96977
97054
|
const client = initClient(integrationsTelegramUploadInitContract, config4);
|
|
@@ -98727,6 +98804,8 @@ export {
|
|
|
98727
98804
|
initSlackFileUpload,
|
|
98728
98805
|
completeSlackFileUpload,
|
|
98729
98806
|
downloadSlackFile,
|
|
98807
|
+
listTelegramBots,
|
|
98808
|
+
sendTelegramMessage,
|
|
98730
98809
|
initTelegramFileUpload,
|
|
98731
98810
|
completeTelegramFileUpload,
|
|
98732
98811
|
downloadTelegramFile,
|
|
@@ -98790,4 +98869,4 @@ undici/lib/web/fetch/body.js:
|
|
|
98790
98869
|
undici/lib/web/websocket/frame.js:
|
|
98791
98870
|
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
|
|
98792
98871
|
*/
|
|
98793
|
-
//# sourceMappingURL=chunk-
|
|
98872
|
+
//# sourceMappingURL=chunk-I3QKCVRM.js.map
|