@ai-coders/installer 0.5.0 → 0.6.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/CHANGELOG.md +15 -0
- package/README.md +4 -0
- package/dist/products/second-brain/bearer.js +2 -6
- package/dist/products/second-brain/bearer.js.map +1 -1
- package/dist/products/second-brain/bootstrap.js +2 -6
- package/dist/products/second-brain/bootstrap.js.map +1 -1
- package/dist/products/second-brain/stderr.d.ts +12 -0
- package/dist/products/second-brain/stderr.js +29 -0
- package/dist/products/second-brain/stderr.js.map +1 -0
- package/dist/products/severino/apply.d.ts +6 -1
- package/dist/products/severino/apply.js +18 -0
- package/dist/products/severino/apply.js.map +1 -1
- package/dist/products/severino/envfile.d.ts +3 -0
- package/dist/products/severino/envfile.js +9 -0
- package/dist/products/severino/envfile.js.map +1 -1
- package/dist/products/severino/i18n.d.ts +54 -6
- package/dist/products/severino/i18n.js +36 -4
- package/dist/products/severino/i18n.js.map +1 -1
- package/dist/products/severino/service.d.ts +2 -0
- package/dist/products/severino/service.js +40 -0
- package/dist/products/severino/service.js.map +1 -1
- package/dist/products/severino/telegram.d.ts +9 -0
- package/dist/products/severino/telegram.js +56 -0
- package/dist/products/severino/telegram.js.map +1 -0
- package/dist/products/severino/ui/assets/index-BbOYfL7B.js +96 -0
- package/dist/products/severino/ui/assets/index-WAuO7N9N.css +2 -0
- package/dist/products/severino/ui/index.html +2 -2
- package/package.json +2 -2
- package/dist/products/severino/ui/assets/index-7S8Hl4jq.js +0 -96
- package/dist/products/severino/ui/assets/index-D5kql1Bh.css +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @ai-coders/installer
|
|
2
2
|
|
|
3
|
+
## [0.6.1](https://github.com/vinilana/ai-coders-installers/compare/v0.6.0...v0.6.1) (2026-08-31)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* extract error line from Node crash reports in stderr ([2b8ea37](https://github.com/vinilana/ai-coders-installers/commit/2b8ea37f2ed3f4d9ed9a0155490e0121c67ec0a6))
|
|
9
|
+
* **second-brain:** surface the real error from Node crash reports ([2193d11](https://github.com/vinilana/ai-coders-installers/commit/2193d119f8adec12d9e9e2615626228172373d41))
|
|
10
|
+
|
|
11
|
+
## [0.6.0](https://github.com/vinilana/ai-coders-installers/compare/v0.5.0...v0.6.0) (2026-08-25)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **severino:** configure Telegram during installation ([10a732d](https://github.com/vinilana/ai-coders-installers/commit/10a732db1dc13e18ae05554395c5e9883a9004a3))
|
|
17
|
+
|
|
3
18
|
## [0.5.0](https://github.com/vinilana/ai-coders-installers/compare/v0.4.0...v0.5.0) (2026-08-25)
|
|
4
19
|
|
|
5
20
|
|
package/README.md
CHANGED
|
@@ -28,6 +28,10 @@ cd my-severino
|
|
|
28
28
|
npx --yes @ai-coders/installer@latest severino
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
+
The Severino wizard can configure Slack and Telegram during installation. For
|
|
32
|
+
Telegram, it stores the bot credentials only in the protected VPS environment
|
|
33
|
+
file and registers the eve webhook automatically after deployment.
|
|
34
|
+
|
|
31
35
|
The installer opens Clerk in the browser, verifies product entitlement through
|
|
32
36
|
the AI Coders API, downloads the authorized immutable release artifact,
|
|
33
37
|
verifies its SHA-256 checksum, validates its fixed product contract, and copies
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { randomBytes } from "node:crypto";
|
|
12
12
|
import { vpsEnvPath, withBearerCredentials } from "./envfile.js";
|
|
13
|
+
import { failureMessageFromStderr } from "./stderr.js";
|
|
13
14
|
export function generateBearerToken() {
|
|
14
15
|
// 32 bytes → 43 base64url characters, above the engine's 32-character
|
|
15
16
|
// minimum and safe for parseEnv.
|
|
@@ -65,14 +66,9 @@ export function interpretAccountIdLookup(result) {
|
|
|
65
66
|
};
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
|
-
const lastLine = result.stderr
|
|
69
|
-
.split("\n")
|
|
70
|
-
.map((line) => line.trim())
|
|
71
|
-
.filter((line) => line !== "")
|
|
72
|
-
.at(-1);
|
|
73
69
|
return {
|
|
74
70
|
kind: "failed",
|
|
75
|
-
message:
|
|
71
|
+
message: failureMessageFromStderr(result.stderr, "The owner account id could not be read."),
|
|
76
72
|
};
|
|
77
73
|
}
|
|
78
74
|
//# sourceMappingURL=bearer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bearer.js","sourceRoot":"","sources":["../../../packages/second-brain/src/bearer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"bearer.js","sourceRoot":"","sources":["../../../packages/second-brain/src/bearer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAEjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,UAAU,mBAAmB;IACjC,sEAAsE;IACtE,iCAAiC;IACjC,OAAO,WAAW,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;AAC/C,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GACjC,0DAA0D;IAC1D,mFAAmF,CAAC;AAEtF,MAAM,UAAU,yBAAyB,CAAC,KAAa;IACrD,IAAI,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;IACnE,CAAC;IACD,wEA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AE,KAAK,EAAE,CAAC;QACxE,IAAI,KAAK,KAAK,EAAE,EAAE,CAAC;YACjB,OAAO;gBACL,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,yDAAyD;aACnE,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,wBAAwB,CAC/B,MAAM,CAAC,MAAM,EACb,yCAAyC,CAC1C;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { failureMessageFromStderr } from "./stderr.js";
|
|
1
2
|
export const ownerBootstrapCommand = "cd /opt/second-brain && docker compose run --rm -T " +
|
|
2
3
|
"auth node dist/services/auth/bootstrap-noninteractive.js";
|
|
3
4
|
/**
|
|
@@ -26,14 +27,9 @@ export function interpretBootstrapResult(result) {
|
|
|
26
27
|
if (result.stderr.includes("The OAuth owner account already exists.")) {
|
|
27
28
|
return { kind: "already-exists" };
|
|
28
29
|
}
|
|
29
|
-
const lastLine = result.stderr
|
|
30
|
-
.split("\n")
|
|
31
|
-
.map((line) => line.trim())
|
|
32
|
-
.filter((line) => line !== "")
|
|
33
|
-
.at(-1);
|
|
34
30
|
return {
|
|
35
31
|
kind: "failed",
|
|
36
|
-
message:
|
|
32
|
+
message: failureMessageFromStderr(result.stderr, "The owner account could not be created."),
|
|
37
33
|
};
|
|
38
34
|
}
|
|
39
35
|
//# sourceMappingURL=bootstrap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../../../packages/second-brain/src/bootstrap.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../../../packages/second-brain/src/bootstrap.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,CAAC,MAAM,qBAAqB,GAChC,qDAAqD;IACrD,0DAA0D,CAAC;AAE7D;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAC5B,+DAA+D;IAC/D,yCAAyC,CAAC;AAE5C;;;;GAIG;AACH,MAAM,UAAU,wBAAwB,CACtC,KAAa,EACb,QAAgB;IAEhB,KAAK,MAAM,KAAK,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC;QACtC,IAAI,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;QACzE,CAAC;IACH,CAAC;IACD,OAAO,GAAG,KAAK,KAAK,QAAQ,IAAI,CAAC;AACnC,CAAC;AAOD,MAAM,UAAU,wBAAwB,CACtC,MAAwB;IAExB,IAAI,MAAM,CAAC,IAAI,KAAK,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,CAAC;QACxE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;IAC7B,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,yCAAyC,CAAC,EAAE,CAAC;QACtE,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;IACpC,CAAC;IACD,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,wBAAwB,CAC/B,MAAM,CAAC,MAAM,EACb,yCAAyC,CAC1C;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picks the most informative stderr line for a failure message.
|
|
3
|
+
*
|
|
4
|
+
* When a Node.js script inside a container dies on an uncaught exception,
|
|
5
|
+
* stderr ends with stack frames and a bare "Node.js vX.Y.Z" footer — the
|
|
6
|
+
* least useful lines of the whole report. Surfacing the last raw line then
|
|
7
|
+
* tells a member nothing (see the create-owner step showing only the Node
|
|
8
|
+
* version). This helper drops that noise and prefers the line naming the
|
|
9
|
+
* error itself, while leaving the engine's stable one-line failure
|
|
10
|
+
* sentences untouched.
|
|
11
|
+
*/
|
|
12
|
+
export declare function failureMessageFromStderr(stderr: string, fallback: string): string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Picks the most informative stderr line for a failure message.
|
|
3
|
+
*
|
|
4
|
+
* When a Node.js script inside a container dies on an uncaught exception,
|
|
5
|
+
* stderr ends with stack frames and a bare "Node.js vX.Y.Z" footer — the
|
|
6
|
+
* least useful lines of the whole report. Surfacing the last raw line then
|
|
7
|
+
* tells a member nothing (see the create-owner step showing only the Node
|
|
8
|
+
* version). This helper drops that noise and prefers the line naming the
|
|
9
|
+
* error itself, while leaving the engine's stable one-line failure
|
|
10
|
+
* sentences untouched.
|
|
11
|
+
*/
|
|
12
|
+
const nodeVersionFooter = /^Node\.js v\d+\.\d+\.\d+$/u;
|
|
13
|
+
const stackFrame = /^at\s/u;
|
|
14
|
+
const caretMarker = /^\^+$/u;
|
|
15
|
+
// Matches "Error:", "TypeError:", "AggregateError [ECONNREFUSED]:", … —
|
|
16
|
+
// the class name ends in "Error" as a whole word.
|
|
17
|
+
const errorLine = /Error\b/u;
|
|
18
|
+
export function failureMessageFromStderr(stderr, fallback) {
|
|
19
|
+
const lines = stderr
|
|
20
|
+
.split("\n")
|
|
21
|
+
.map((line) => line.trim())
|
|
22
|
+
.filter((line) => line !== "" &&
|
|
23
|
+
!nodeVersionFooter.test(line) &&
|
|
24
|
+
!stackFrame.test(line) &&
|
|
25
|
+
!caretMarker.test(line));
|
|
26
|
+
const lastErrorLine = lines.filter((line) => errorLine.test(line)).at(-1);
|
|
27
|
+
return lastErrorLine ?? lines.at(-1) ?? fallback;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=stderr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stderr.js","sourceRoot":"","sources":["../../../packages/second-brain/src/stderr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,iBAAiB,GAAG,4BAA4B,CAAC;AACvD,MAAM,UAAU,GAAG,QAAQ,CAAC;AAC5B,MAAM,WAAW,GAAG,QAAQ,CAAC;AAC7B,wEAAwE;AACxE,kDAAkD;AAClD,MAAM,SAAS,GAAG,UAAU,CAAC;AAE7B,MAAM,UAAU,wBAAwB,CACtC,MAAc,EACd,QAAgB;IAEhB,MAAM,KAAK,GAAG,MAAM;SACjB,KAAK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;SAC1B,MAAM,CACL,CAAC,IAAI,EAAE,EAAE,CACP,IAAI,KAAK,EAAE;QACX,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC;QAC7B,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;QACtB,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAC1B,CAAC;IACJ,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1E,OAAO,aAAa,IAAI,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC;AACnD,CAAC"}
|
|
@@ -9,7 +9,8 @@ import type { InstallerLanguage } from "./i18n.js";
|
|
|
9
9
|
import type { InstallerState } from "./state.js";
|
|
10
10
|
import type { SshCommandResult } from "./ssh.js";
|
|
11
11
|
import type { VerificationResult } from "./verify.js";
|
|
12
|
-
|
|
12
|
+
import type { TelegramWebhookConfiguration } from "./telegram.js";
|
|
13
|
+
export type InstallStepId = "generate-key" | "connect-vps" | "authorize-key" | "write-env" | "upload-source" | "build-deploy" | "verify-key" | "verify-agent" | "configure-telegram" | "save-state";
|
|
13
14
|
export declare const installStepIds: readonly InstallStepId[];
|
|
14
15
|
export declare const localDeployStepIds: readonly InstallStepId[];
|
|
15
16
|
export type InstallStepStatus = "pending" | "running" | "ok" | "failed" | "skipped";
|
|
@@ -43,6 +44,9 @@ export interface InstallInput {
|
|
|
43
44
|
readonly routeAuthPassword: string;
|
|
44
45
|
readonly slackBotToken: string;
|
|
45
46
|
readonly slackSigningSecret: string;
|
|
47
|
+
readonly telegramBotToken: string;
|
|
48
|
+
readonly telegramBotUsername: string;
|
|
49
|
+
readonly telegramWebhookSecretToken: string;
|
|
46
50
|
readonly mcpServerUrl: string;
|
|
47
51
|
readonly mcpServerDescription: string;
|
|
48
52
|
readonly mcpConnectorUid: string;
|
|
@@ -74,6 +78,7 @@ export interface InstallDependencies {
|
|
|
74
78
|
readonly archiveSource: () => Promise<Buffer>;
|
|
75
79
|
readonly isSourceDirty?: (() => Promise<boolean>) | undefined;
|
|
76
80
|
readonly verifyDeployment: (publicUrl: string) => Promise<VerificationResult>;
|
|
81
|
+
readonly configureTelegramWebhook: (input: TelegramWebhookConfiguration) => Promise<void>;
|
|
77
82
|
readonly saveState: (state: InstallerState) => Promise<void>;
|
|
78
83
|
readonly now: () => Date;
|
|
79
84
|
readonly sleep: (ms: number) => Promise<void>;
|
|
@@ -9,6 +9,7 @@ export const installStepIds = [
|
|
|
9
9
|
"build-deploy",
|
|
10
10
|
"verify-key",
|
|
11
11
|
"verify-agent",
|
|
12
|
+
"configure-telegram",
|
|
12
13
|
"save-state",
|
|
13
14
|
];
|
|
14
15
|
export const localDeployStepIds = [
|
|
@@ -141,6 +142,9 @@ export async function runInstall(input, deps, onProgress) {
|
|
|
141
142
|
routeAuthPassword: input.routeAuthPassword,
|
|
142
143
|
slackBotToken: input.slackBotToken,
|
|
143
144
|
slackSigningSecret: input.slackSigningSecret,
|
|
145
|
+
telegramBotToken: input.telegramBotToken,
|
|
146
|
+
telegramBotUsername: input.telegramBotUsername,
|
|
147
|
+
telegramWebhookSecretToken: input.telegramWebhookSecretToken,
|
|
144
148
|
mcpServerUrl: input.mcpServerUrl,
|
|
145
149
|
mcpServerDescription: input.mcpServerDescription,
|
|
146
150
|
mcpConnectorUid: input.mcpConnectorUid,
|
|
@@ -180,6 +184,20 @@ export async function runInstall(input, deps, onProgress) {
|
|
|
180
184
|
});
|
|
181
185
|
if (!verified.ok)
|
|
182
186
|
return runner.fail("verify-agent", verified.message);
|
|
187
|
+
if (input.telegramBotToken === "") {
|
|
188
|
+
runner.skip("configure-telegram");
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
const configuredTelegram = await runner.run("configure-telegram", () => deps.configureTelegramWebhook({
|
|
192
|
+
botToken: input.telegramBotToken,
|
|
193
|
+
botUsername: input.telegramBotUsername,
|
|
194
|
+
publicUrl: `https://${input.domain}`,
|
|
195
|
+
webhookSecretToken: input.telegramWebhookSecretToken,
|
|
196
|
+
}));
|
|
197
|
+
if (!configuredTelegram.ok) {
|
|
198
|
+
return runner.fail("configure-telegram", configuredTelegram.message);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
183
201
|
const saved = await runner.run("save-state", async () => {
|
|
184
202
|
const timestamp = deps.now().toISOString();
|
|
185
203
|
await deps.saveState({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply.js","sourceRoot":"","sources":["../../../packages/severino/src/apply.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAatD,MAAM,CAAC,MAAM,cAAc,GAA6B;IACtD,cAAc;IACd,aAAa;IACb,eAAe;IACf,WAAW;IACX,eAAe;IACf,cAAc;IACd,YAAY;IACZ,cAAc;IACd,YAAY;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAA6B;IAC1D,aAAa;IACb,eAAe;IACf,cAAc;IACd,cAAc;CACf,CAAC;AAoFF,MAAM,OAAO,GAAG,oBAAoB,CAAC;AACrC,MAAM,WAAW,GAAG,6BAA6B,CAAC;AAClD,MA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AAM,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,CAAC,EAAE;YAAE,OAAO,MAAM,CAAC,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;QAEvE,MAAM,CAAC,MAAM,EAAE,CAAC;QAChB,OAAO;YACL,EAAE,EAAE,IAAI;YACR,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,GAAG,CAAC,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC;SACxD,CAAC;IACJ,CAAC;YAAS,CAAC;QACT,GAAG,CAAC,KAAK,EAAE,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -9,6 +9,9 @@ export interface MergeVpsEnvInput {
|
|
|
9
9
|
readonly routeAuthPassword: string;
|
|
10
10
|
readonly slackBotToken: string;
|
|
11
11
|
readonly slackSigningSecret: string;
|
|
12
|
+
readonly telegramBotToken: string;
|
|
13
|
+
readonly telegramBotUsername: string;
|
|
14
|
+
readonly telegramWebhookSecretToken: string;
|
|
12
15
|
readonly mcpServerUrl: string;
|
|
13
16
|
readonly mcpServerDescription: string;
|
|
14
17
|
readonly mcpConnectorUid: string;
|
|
@@ -21,6 +21,9 @@ const managedKeys = [
|
|
|
21
21
|
"MCP_BEARER_TOKEN",
|
|
22
22
|
"SLACK_BOT_TOKEN",
|
|
23
23
|
"SLACK_SIGNING_SECRET",
|
|
24
|
+
"TELEGRAM_BOT_TOKEN",
|
|
25
|
+
"TELEGRAM_BOT_USERNAME",
|
|
26
|
+
"TELEGRAM_WEBHOOK_SECRET_TOKEN",
|
|
24
27
|
"SEVERINO_IMAGE",
|
|
25
28
|
"SEVERINO_IMAGE_TAG",
|
|
26
29
|
];
|
|
@@ -46,6 +49,9 @@ export function mergeVpsEnv(input) {
|
|
|
46
49
|
MCP_BEARER_TOKEN: input.mcpBearerToken,
|
|
47
50
|
SLACK_BOT_TOKEN: input.slackBotToken,
|
|
48
51
|
SLACK_SIGNING_SECRET: input.slackSigningSecret,
|
|
52
|
+
TELEGRAM_BOT_TOKEN: input.telegramBotToken,
|
|
53
|
+
TELEGRAM_BOT_USERNAME: input.telegramBotUsername,
|
|
54
|
+
TELEGRAM_WEBHOOK_SECRET_TOKEN: input.telegramWebhookSecretToken,
|
|
49
55
|
SEVERINO_IMAGE: existing["SEVERINO_IMAGE"] ?? "severino",
|
|
50
56
|
SEVERINO_IMAGE_TAG: existing["SEVERINO_IMAGE_TAG"] ?? "local",
|
|
51
57
|
};
|
|
@@ -71,6 +77,9 @@ export function mergeVpsEnv(input) {
|
|
|
71
77
|
`MCP_BEARER_TOKEN=${values["MCP_BEARER_TOKEN"]}`,
|
|
72
78
|
`SLACK_BOT_TOKEN=${values["SLACK_BOT_TOKEN"]}`,
|
|
73
79
|
`SLACK_SIGNING_SECRET=${values["SLACK_SIGNING_SECRET"]}`,
|
|
80
|
+
`TELEGRAM_BOT_TOKEN=${values["TELEGRAM_BOT_TOKEN"]}`,
|
|
81
|
+
`TELEGRAM_BOT_USERNAME=${values["TELEGRAM_BOT_USERNAME"]}`,
|
|
82
|
+
`TELEGRAM_WEBHOOK_SECRET_TOKEN=${values["TELEGRAM_WEBHOOK_SECRET_TOKEN"]}`,
|
|
74
83
|
"",
|
|
75
84
|
"# Managed by deploys — do not edit:",
|
|
76
85
|
`SEVERINO_IMAGE=${values["SEVERINO_IMAGE"]}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envfile.js","sourceRoot":"","sources":["../../../packages/severino/src/envfile.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,MAAM,UAAU,eAAe,CA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: "Slack app manifest for this domain";
|
|
158
158
|
readonly slackSetupCopyManifest: "Copy manifest";
|
|
159
159
|
readonly slackSetupVerifyNote: "The Request URL in the manifest is already https://<domain>/eve/v1/slack. Slack verifies it only after the new signing secret is on the VPS.";
|
|
160
|
+
readonly telegramSetupTitle: "Connect Telegram";
|
|
161
|
+
readonly telegramSetupBody: "Create a dedicated Telegram bot. During installation, the installer generates a webhook secret and connects the bot to the Severino endpoint shown below.";
|
|
162
|
+
readonly telegramSetupOpenBotFather: "Open BotFather";
|
|
163
|
+
readonly telegramSetupStep1: "Open BotFather and run /newbot.";
|
|
164
|
+
readonly telegramSetupStep2: "Choose a display name and a username ending in bot, then copy the bot token.";
|
|
165
|
+
readonly telegramSetupStep3: "Paste the token and username below. The webhook is registered automatically after deploy.";
|
|
166
|
+
readonly telegramTokenLabel: "Telegram bot token";
|
|
167
|
+
readonly telegramUsernameLabel: "Telegram bot username (without @)";
|
|
168
|
+
readonly telegramWebhookNote: "Telegram allows one webhook per bot. This installation will point the bot at this Severino and replace any webhook it currently uses.";
|
|
169
|
+
readonly telegramReplaceWebhookConfirm: "I understand that installing will replace this bot's current Telegram webhook.";
|
|
170
|
+
readonly telegramCredentialsIncomplete: "Enter both the Telegram bot token and bot username, or leave both empty.";
|
|
171
|
+
readonly telegramTokenInvalid: "Paste the complete bot token returned by BotFather.";
|
|
172
|
+
readonly telegramUsernameInvalid: "Enter the 5–32 character username created by BotFather; it must end in bot.";
|
|
173
|
+
readonly telegramWebhookConfirmationRequired: "Confirm that the installer may replace this Telegram bot's current webhook.";
|
|
160
174
|
readonly mcpUrlLabel: "MCP task server URL";
|
|
161
175
|
readonly mcpUrlInvalid: "The MCP server URL must be a valid http(s) address.";
|
|
162
176
|
readonly mcpDescriptionLabel: "One line: what the MCP server's tools do";
|
|
@@ -165,6 +179,7 @@ declare const en: {
|
|
|
165
179
|
readonly stepReviewBody: "Review the values below, then start the installation.";
|
|
166
180
|
readonly install: "Install";
|
|
167
181
|
readonly integrationSlack: "Slack";
|
|
182
|
+
readonly integrationTelegram: "Telegram";
|
|
168
183
|
readonly integrationMcp: "MCP task server";
|
|
169
184
|
readonly enabledLabel: "enabled";
|
|
170
185
|
readonly disabledLabel: "not configured";
|
|
@@ -181,6 +196,7 @@ declare const en: {
|
|
|
181
196
|
readonly progressUploadSource: "Upload the project code to the server";
|
|
182
197
|
readonly progressUncommitted: "Warning: changes not yet committed on this computer were not sent; the server builds the latest commit.";
|
|
183
198
|
readonly progressBuildDeploy: "Build and start on the server — this can take several minutes";
|
|
199
|
+
readonly progressConfigureTelegram: "Connect the Telegram webhook";
|
|
184
200
|
readonly progressVerifyKey: "Confirm the deploy key works";
|
|
185
201
|
readonly progressVerifyAgent: "Verify the agent from the outside";
|
|
186
202
|
readonly progressSaveState: "Save the installer settings on this computer";
|
|
@@ -190,7 +206,7 @@ declare const en: {
|
|
|
190
206
|
readonly installDone: "Your Severino is ready.";
|
|
191
207
|
readonly doneTitle: "All set";
|
|
192
208
|
readonly doneAgentUrl: "Your agent's address";
|
|
193
|
-
readonly doneConnectClient: "Talk to Severino on Slack if you connected
|
|
209
|
+
readonly doneConnectClient: "Talk to Severino on Slack or Telegram if you connected them, or open the terminal UI with the command below. /vc:login is only for Vercel.";
|
|
194
210
|
readonly doneClose: "You can close this window. Run npm run installer again anytime.";
|
|
195
211
|
readonly githubActivateTitle: "Automatic deploys (optional)";
|
|
196
212
|
readonly githubActivateBody: "Connect GitHub once and every change pushed to your repository deploys by itself. You also get a deploy button and one-click rollback here in the installer. You can do this now or anytime later.";
|
|
@@ -269,7 +285,7 @@ declare const en: {
|
|
|
269
285
|
readonly helpStep1Title: "Copy the agent address";
|
|
270
286
|
readonly helpStep1Body: "Use the button below to copy it.";
|
|
271
287
|
readonly helpStep2Title: "Talk on your channels";
|
|
272
|
-
readonly helpStep2Body: "
|
|
288
|
+
readonly helpStep2Body: "Use the Slack app from the generated manifest or message the Telegram bot configured during installation.";
|
|
273
289
|
readonly helpStep3Title: "Open the terminal UI";
|
|
274
290
|
readonly helpStep3Body: "From any eve project, run: eve dev https://USER:PASSWORD@<agent address>. /vc:login is only for Vercel.";
|
|
275
291
|
readonly helpStep4Title: "Check the connection";
|
|
@@ -450,6 +466,20 @@ export declare const installerMessages: {
|
|
|
450
466
|
readonly slackSetupManifestLabel: "Slack app manifest for this domain";
|
|
451
467
|
readonly slackSetupCopyManifest: "Copy manifest";
|
|
452
468
|
readonly slackSetupVerifyNote: "The Request URL in the manifest is already https://<domain>/eve/v1/slack. Slack verifies it only after the new signing secret is on the VPS.";
|
|
469
|
+
readonly telegramSetupTitle: "Connect Telegram";
|
|
470
|
+
readonly telegramSetupBody: "Create a dedicated Telegram bot. During installation, the installer generates a webhook secret and connects the bot to the Severino endpoint shown below.";
|
|
471
|
+
readonly telegramSetupOpenBotFather: "Open BotFather";
|
|
472
|
+
readonly telegramSetupStep1: "Open BotFather and run /newbot.";
|
|
473
|
+
readonly telegramSetupStep2: "Choose a display name and a username ending in bot, then copy the bot token.";
|
|
474
|
+
readonly telegramSetupStep3: "Paste the token and username below. The webhook is registered automatically after deploy.";
|
|
475
|
+
readonly telegramTokenLabel: "Telegram bot token";
|
|
476
|
+
readonly telegramUsernameLabel: "Telegram bot username (without @)";
|
|
477
|
+
readonly telegramWebhookNote: "Telegram allows one webhook per bot. This installation will point the bot at this Severino and replace any webhook it currently uses.";
|
|
478
|
+
readonly telegramReplaceWebhookConfirm: "I understand that installing will replace this bot's current Telegram webhook.";
|
|
479
|
+
readonly telegramCredentialsIncomplete: "Enter both the Telegram bot token and bot username, or leave both empty.";
|
|
480
|
+
readonly telegramTokenInvalid: "Paste the complete bot token returned by BotFather.";
|
|
481
|
+
readonly telegramUsernameInvalid: "Enter the 5–32 character username created by BotFather; it must end in bot.";
|
|
482
|
+
readonly telegramWebhookConfirmationRequired: "Confirm that the installer may replace this Telegram bot's current webhook.";
|
|
453
483
|
readonly mcpUrlLabel: "MCP task server URL";
|
|
454
484
|
readonly mcpUrlInvalid: "The MCP server URL must be a valid http(s) address.";
|
|
455
485
|
readonly mcpDescriptionLabel: "One line: what the MCP server's tools do";
|
|
@@ -458,6 +488,7 @@ export declare const installerMessages: {
|
|
|
458
488
|
readonly stepReviewBody: "Review the values below, then start the installation.";
|
|
459
489
|
readonly install: "Install";
|
|
460
490
|
readonly integrationSlack: "Slack";
|
|
491
|
+
readonly integrationTelegram: "Telegram";
|
|
461
492
|
readonly integrationMcp: "MCP task server";
|
|
462
493
|
readonly enabledLabel: "enabled";
|
|
463
494
|
readonly disabledLabel: "not configured";
|
|
@@ -474,6 +505,7 @@ export declare const installerMessages: {
|
|
|
474
505
|
readonly progressUploadSource: "Upload the project code to the server";
|
|
475
506
|
readonly progressUncommitted: "Warning: changes not yet committed on this computer were not sent; the server builds the latest commit.";
|
|
476
507
|
readonly progressBuildDeploy: "Build and start on the server — this can take several minutes";
|
|
508
|
+
readonly progressConfigureTelegram: "Connect the Telegram webhook";
|
|
477
509
|
readonly progressVerifyKey: "Confirm the deploy key works";
|
|
478
510
|
readonly progressVerifyAgent: "Verify the agent from the outside";
|
|
479
511
|
readonly progressSaveState: "Save the installer settings on this computer";
|
|
@@ -483,7 +515,7 @@ export declare const installerMessages: {
|
|
|
483
515
|
readonly installDone: "Your Severino is ready.";
|
|
484
516
|
readonly doneTitle: "All set";
|
|
485
517
|
readonly doneAgentUrl: "Your agent's address";
|
|
486
|
-
readonly doneConnectClient: "Talk to Severino on Slack if you connected
|
|
518
|
+
readonly doneConnectClient: "Talk to Severino on Slack or Telegram if you connected them, or open the terminal UI with the command below. /vc:login is only for Vercel.";
|
|
487
519
|
readonly doneClose: "You can close this window. Run npm run installer again anytime.";
|
|
488
520
|
readonly githubActivateTitle: "Automatic deploys (optional)";
|
|
489
521
|
readonly githubActivateBody: "Connect GitHub once and every change pushed to your repository deploys by itself. You also get a deploy button and one-click rollback here in the installer. You can do this now or anytime later.";
|
|
@@ -562,7 +594,7 @@ export declare const installerMessages: {
|
|
|
562
594
|
readonly helpStep1Title: "Copy the agent address";
|
|
563
595
|
readonly helpStep1Body: "Use the button below to copy it.";
|
|
564
596
|
readonly helpStep2Title: "Talk on your channels";
|
|
565
|
-
readonly helpStep2Body: "
|
|
597
|
+
readonly helpStep2Body: "Use the Slack app from the generated manifest or message the Telegram bot configured during installation.";
|
|
566
598
|
readonly helpStep3Title: "Open the terminal UI";
|
|
567
599
|
readonly helpStep3Body: "From any eve project, run: eve dev https://USER:PASSWORD@<agent address>. /vc:login is only for Vercel.";
|
|
568
600
|
readonly helpStep4Title: "Check the connection";
|
|
@@ -742,6 +774,20 @@ export declare const installerMessages: {
|
|
|
742
774
|
readonly slackSetupManifestLabel: "Manifesto do app Slack para este domínio";
|
|
743
775
|
readonly slackSetupCopyManifest: "Copiar manifesto";
|
|
744
776
|
readonly slackSetupVerifyNote: "A Request URL no manifesto já é https://<domínio>/eve/v1/slack. O Slack só verifica depois que o signing secret novo estiver na VPS.";
|
|
777
|
+
readonly telegramSetupTitle: "Conectar o Telegram";
|
|
778
|
+
readonly telegramSetupBody: "Crie um bot dedicado no Telegram. Durante a instalação, o instalador gera um segredo de webhook e conecta o bot ao endpoint do Severino mostrado abaixo.";
|
|
779
|
+
readonly telegramSetupOpenBotFather: "Abrir o BotFather";
|
|
780
|
+
readonly telegramSetupStep1: "Abra o BotFather e execute /newbot.";
|
|
781
|
+
readonly telegramSetupStep2: "Escolha um nome de exibição e um username terminado em bot, depois copie o token do bot.";
|
|
782
|
+
readonly telegramSetupStep3: "Cole o token e o username abaixo. O webhook será registrado automaticamente depois do deploy.";
|
|
783
|
+
readonly telegramTokenLabel: "Token do bot do Telegram";
|
|
784
|
+
readonly telegramUsernameLabel: "Username do bot do Telegram (sem @)";
|
|
785
|
+
readonly telegramWebhookNote: "O Telegram permite um webhook por bot. Esta instalação vai apontar o bot para este Severino e substituir qualquer webhook que ele use atualmente.";
|
|
786
|
+
readonly telegramReplaceWebhookConfirm: "Entendo que a instalação substituirá o webhook atual deste bot no Telegram.";
|
|
787
|
+
readonly telegramCredentialsIncomplete: "Informe o token e o username do bot do Telegram, ou deixe os dois vazios.";
|
|
788
|
+
readonly telegramTokenInvalid: "Cole o token completo do bot retornado pelo BotFather.";
|
|
789
|
+
readonly telegramUsernameInvalid: "Informe o username de 5–32 caracteres criado pelo BotFather; ele deve terminar em bot.";
|
|
790
|
+
readonly telegramWebhookConfirmationRequired: "Confirme que o instalador pode substituir o webhook atual deste bot no Telegram.";
|
|
745
791
|
readonly mcpUrlLabel: "URL do servidor MCP de tarefas";
|
|
746
792
|
readonly mcpUrlInvalid: "A URL do servidor MCP precisa ser um endereço http(s) válido.";
|
|
747
793
|
readonly mcpDescriptionLabel: "Uma linha: o que as ferramentas do servidor MCP fazem";
|
|
@@ -750,6 +796,7 @@ export declare const installerMessages: {
|
|
|
750
796
|
readonly stepReviewBody: "Revise os valores abaixo e inicie a instalação.";
|
|
751
797
|
readonly install: "Instalar";
|
|
752
798
|
readonly integrationSlack: "Slack";
|
|
799
|
+
readonly integrationTelegram: "Telegram";
|
|
753
800
|
readonly integrationMcp: "Servidor MCP de tarefas";
|
|
754
801
|
readonly enabledLabel: "ativado";
|
|
755
802
|
readonly disabledLabel: "não configurado";
|
|
@@ -766,6 +813,7 @@ export declare const installerMessages: {
|
|
|
766
813
|
readonly progressUploadSource: "Enviar o código do projeto para o servidor";
|
|
767
814
|
readonly progressUncommitted: "Atenção: mudanças ainda não commitadas neste computador não foram enviadas; o servidor constrói o último commit.";
|
|
768
815
|
readonly progressBuildDeploy: "Construir e iniciar no servidor — pode levar vários minutos";
|
|
816
|
+
readonly progressConfigureTelegram: "Conectar o webhook do Telegram";
|
|
769
817
|
readonly progressVerifyKey: "Confirmar que a chave de deploy funciona";
|
|
770
818
|
readonly progressVerifyAgent: "Verificar o agente por fora";
|
|
771
819
|
readonly progressSaveState: "Salvar as configurações do instalador neste computador";
|
|
@@ -775,7 +823,7 @@ export declare const installerMessages: {
|
|
|
775
823
|
readonly installDone: "O seu Severino está pronto.";
|
|
776
824
|
readonly doneTitle: "Tudo pronto";
|
|
777
825
|
readonly doneAgentUrl: "O endereço do seu agente";
|
|
778
|
-
readonly doneConnectClient: "Fale com o Severino pelo Slack se você
|
|
826
|
+
readonly doneConnectClient: "Fale com o Severino pelo Slack ou Telegram se você os conectou, ou abra a interface de terminal com o comando abaixo. /vc:login é só para a Vercel.";
|
|
779
827
|
readonly doneClose: "Pode fechar esta janela. Rode npm run installer de novo quando quiser.";
|
|
780
828
|
readonly githubActivateTitle: "Deploys automáticos (opcional)";
|
|
781
829
|
readonly githubActivateBody: "Conecte o GitHub uma vez e toda mudança enviada para o seu repositório entra no ar sozinha. Você também ganha um botão de deploy e rollback de um clique aqui no instalador. Dá para fazer agora ou em qualquer momento depois.";
|
|
@@ -854,7 +902,7 @@ export declare const installerMessages: {
|
|
|
854
902
|
readonly helpStep1Title: "Copie o endereço do agente";
|
|
855
903
|
readonly helpStep1Body: "Use o botão abaixo para copiar.";
|
|
856
904
|
readonly helpStep2Title: "Fale pelos seus canais";
|
|
857
|
-
readonly helpStep2Body: "
|
|
905
|
+
readonly helpStep2Body: "Use o app do Slack criado pelo manifesto ou mande uma mensagem para o bot do Telegram configurado durante a instalação.";
|
|
858
906
|
readonly helpStep3Title: "Abra a interface de terminal";
|
|
859
907
|
readonly helpStep3Body: "De qualquer projeto eve, rode: eve dev https://USUARIO:SENHA@<endereço do agente>. /vc:login é só para a Vercel.";
|
|
860
908
|
readonly helpStep4Title: "Verifique a conexão";
|
|
@@ -151,6 +151,20 @@ const en = {
|
|
|
151
151
|
slackSetupManifestLabel: "Slack app manifest for this domain",
|
|
152
152
|
slackSetupCopyManifest: "Copy manifest",
|
|
153
153
|
slackSetupVerifyNote: "The Request URL in the manifest is already https://<domain>/eve/v1/slack. Slack verifies it only after the new signing secret is on the VPS.",
|
|
154
|
+
telegramSetupTitle: "Connect Telegram",
|
|
155
|
+
telegramSetupBody: "Create a dedicated Telegram bot. During installation, the installer generates a webhook secret and connects the bot to the Severino endpoint shown below.",
|
|
156
|
+
telegramSetupOpenBotFather: "Open BotFather",
|
|
157
|
+
telegramSetupStep1: "Open BotFather and run /newbot.",
|
|
158
|
+
telegramSetupStep2: "Choose a display name and a username ending in bot, then copy the bot token.",
|
|
159
|
+
telegramSetupStep3: "Paste the token and username below. The webhook is registered automatically after deploy.",
|
|
160
|
+
telegramTokenLabel: "Telegram bot token",
|
|
161
|
+
telegramUsernameLabel: "Telegram bot username (without @)",
|
|
162
|
+
telegramWebhookNote: "Telegram allows one webhook per bot. This installation will point the bot at this Severino and replace any webhook it currently uses.",
|
|
163
|
+
telegramReplaceWebhookConfirm: "I understand that installing will replace this bot's current Telegram webhook.",
|
|
164
|
+
telegramCredentialsIncomplete: "Enter both the Telegram bot token and bot username, or leave both empty.",
|
|
165
|
+
telegramTokenInvalid: "Paste the complete bot token returned by BotFather.",
|
|
166
|
+
telegramUsernameInvalid: "Enter the 5–32 character username created by BotFather; it must end in bot.",
|
|
167
|
+
telegramWebhookConfirmationRequired: "Confirm that the installer may replace this Telegram bot's current webhook.",
|
|
154
168
|
mcpUrlLabel: "MCP task server URL",
|
|
155
169
|
mcpUrlInvalid: "The MCP server URL must be a valid http(s) address.",
|
|
156
170
|
mcpDescriptionLabel: "One line: what the MCP server's tools do",
|
|
@@ -159,6 +173,7 @@ const en = {
|
|
|
159
173
|
stepReviewBody: "Review the values below, then start the installation.",
|
|
160
174
|
install: "Install",
|
|
161
175
|
integrationSlack: "Slack",
|
|
176
|
+
integrationTelegram: "Telegram",
|
|
162
177
|
integrationMcp: "MCP task server",
|
|
163
178
|
enabledLabel: "enabled",
|
|
164
179
|
disabledLabel: "not configured",
|
|
@@ -175,6 +190,7 @@ const en = {
|
|
|
175
190
|
progressUploadSource: "Upload the project code to the server",
|
|
176
191
|
progressUncommitted: "Warning: changes not yet committed on this computer were not sent; the server builds the latest commit.",
|
|
177
192
|
progressBuildDeploy: "Build and start on the server — this can take several minutes",
|
|
193
|
+
progressConfigureTelegram: "Connect the Telegram webhook",
|
|
178
194
|
progressVerifyKey: "Confirm the deploy key works",
|
|
179
195
|
progressVerifyAgent: "Verify the agent from the outside",
|
|
180
196
|
progressSaveState: "Save the installer settings on this computer",
|
|
@@ -184,7 +200,7 @@ const en = {
|
|
|
184
200
|
installDone: "Your Severino is ready.",
|
|
185
201
|
doneTitle: "All set",
|
|
186
202
|
doneAgentUrl: "Your agent's address",
|
|
187
|
-
doneConnectClient: "Talk to Severino on Slack if you connected
|
|
203
|
+
doneConnectClient: "Talk to Severino on Slack or Telegram if you connected them, or open the terminal UI with the command below. /vc:login is only for Vercel.",
|
|
188
204
|
doneClose: "You can close this window. Run npm run installer again anytime.",
|
|
189
205
|
githubActivateTitle: "Automatic deploys (optional)",
|
|
190
206
|
githubActivateBody: "Connect GitHub once and every change pushed to your repository deploys by itself. You also get a deploy button and one-click rollback here in the installer. You can do this now or anytime later.",
|
|
@@ -263,7 +279,7 @@ const en = {
|
|
|
263
279
|
helpStep1Title: "Copy the agent address",
|
|
264
280
|
helpStep1Body: "Use the button below to copy it.",
|
|
265
281
|
helpStep2Title: "Talk on your channels",
|
|
266
|
-
helpStep2Body: "
|
|
282
|
+
helpStep2Body: "Use the Slack app from the generated manifest or message the Telegram bot configured during installation.",
|
|
267
283
|
helpStep3Title: "Open the terminal UI",
|
|
268
284
|
helpStep3Body: "From any eve project, run: eve dev https://USER:PASSWORD@<agent address>. /vc:login is only for Vercel.",
|
|
269
285
|
helpStep4Title: "Check the connection",
|
|
@@ -443,6 +459,20 @@ const ptBR = {
|
|
|
443
459
|
slackSetupManifestLabel: "Manifesto do app Slack para este domínio",
|
|
444
460
|
slackSetupCopyManifest: "Copiar manifesto",
|
|
445
461
|
slackSetupVerifyNote: "A Request URL no manifesto já é https://<domínio>/eve/v1/slack. O Slack só verifica depois que o signing secret novo estiver na VPS.",
|
|
462
|
+
telegramSetupTitle: "Conectar o Telegram",
|
|
463
|
+
telegramSetupBody: "Crie um bot dedicado no Telegram. Durante a instalação, o instalador gera um segredo de webhook e conecta o bot ao endpoint do Severino mostrado abaixo.",
|
|
464
|
+
telegramSetupOpenBotFather: "Abrir o BotFather",
|
|
465
|
+
telegramSetupStep1: "Abra o BotFather e execute /newbot.",
|
|
466
|
+
telegramSetupStep2: "Escolha um nome de exibição e um username terminado em bot, depois copie o token do bot.",
|
|
467
|
+
telegramSetupStep3: "Cole o token e o username abaixo. O webhook será registrado automaticamente depois do deploy.",
|
|
468
|
+
telegramTokenLabel: "Token do bot do Telegram",
|
|
469
|
+
telegramUsernameLabel: "Username do bot do Telegram (sem @)",
|
|
470
|
+
telegramWebhookNote: "O Telegram permite um webhook por bot. Esta instalação vai apontar o bot para este Severino e substituir qualquer webhook que ele use atualmente.",
|
|
471
|
+
telegramReplaceWebhookConfirm: "Entendo que a instalação substituirá o webhook atual deste bot no Telegram.",
|
|
472
|
+
telegramCredentialsIncomplete: "Informe o token e o username do bot do Telegram, ou deixe os dois vazios.",
|
|
473
|
+
telegramTokenInvalid: "Cole o token completo do bot retornado pelo BotFather.",
|
|
474
|
+
telegramUsernameInvalid: "Informe o username de 5–32 caracteres criado pelo BotFather; ele deve terminar em bot.",
|
|
475
|
+
telegramWebhookConfirmationRequired: "Confirme que o instalador pode substituir o webhook atual deste bot no Telegram.",
|
|
446
476
|
mcpUrlLabel: "URL do servidor MCP de tarefas",
|
|
447
477
|
mcpUrlInvalid: "A URL do servidor MCP precisa ser um endereço http(s) válido.",
|
|
448
478
|
mcpDescriptionLabel: "Uma linha: o que as ferramentas do servidor MCP fazem",
|
|
@@ -451,6 +481,7 @@ const ptBR = {
|
|
|
451
481
|
stepReviewBody: "Revise os valores abaixo e inicie a instalação.",
|
|
452
482
|
install: "Instalar",
|
|
453
483
|
integrationSlack: "Slack",
|
|
484
|
+
integrationTelegram: "Telegram",
|
|
454
485
|
integrationMcp: "Servidor MCP de tarefas",
|
|
455
486
|
enabledLabel: "ativado",
|
|
456
487
|
disabledLabel: "não configurado",
|
|
@@ -467,6 +498,7 @@ const ptBR = {
|
|
|
467
498
|
progressUploadSource: "Enviar o código do projeto para o servidor",
|
|
468
499
|
progressUncommitted: "Atenção: mudanças ainda não commitadas neste computador não foram enviadas; o servidor constrói o último commit.",
|
|
469
500
|
progressBuildDeploy: "Construir e iniciar no servidor — pode levar vários minutos",
|
|
501
|
+
progressConfigureTelegram: "Conectar o webhook do Telegram",
|
|
470
502
|
progressVerifyKey: "Confirmar que a chave de deploy funciona",
|
|
471
503
|
progressVerifyAgent: "Verificar o agente por fora",
|
|
472
504
|
progressSaveState: "Salvar as configurações do instalador neste computador",
|
|
@@ -476,7 +508,7 @@ const ptBR = {
|
|
|
476
508
|
installDone: "O seu Severino está pronto.",
|
|
477
509
|
doneTitle: "Tudo pronto",
|
|
478
510
|
doneAgentUrl: "O endereço do seu agente",
|
|
479
|
-
doneConnectClient: "Fale com o Severino pelo Slack se você
|
|
511
|
+
doneConnectClient: "Fale com o Severino pelo Slack ou Telegram se você os conectou, ou abra a interface de terminal com o comando abaixo. /vc:login é só para a Vercel.",
|
|
480
512
|
doneClose: "Pode fechar esta janela. Rode npm run installer de novo quando quiser.",
|
|
481
513
|
githubActivateTitle: "Deploys automáticos (opcional)",
|
|
482
514
|
githubActivateBody: "Conecte o GitHub uma vez e toda mudança enviada para o seu repositório entra no ar sozinha. Você também ganha um botão de deploy e rollback de um clique aqui no instalador. Dá para fazer agora ou em qualquer momento depois.",
|
|
@@ -555,7 +587,7 @@ const ptBR = {
|
|
|
555
587
|
helpStep1Title: "Copie o endereço do agente",
|
|
556
588
|
helpStep1Body: "Use o botão abaixo para copiar.",
|
|
557
589
|
helpStep2Title: "Fale pelos seus canais",
|
|
558
|
-
helpStep2Body: "
|
|
590
|
+
helpStep2Body: "Use o app do Slack criado pelo manifesto ou mande uma mensagem para o bot do Telegram configurado durante a instalação.",
|
|
559
591
|
helpStep3Title: "Abra a interface de terminal",
|
|
560
592
|
helpStep3Body: "De qualquer projeto eve, rode: eve dev https://USUARIO:SENHA@<endereço do agente>. /vc:login é só para a Vercel.",
|
|
561
593
|
helpStep4Title: "Verifique a conexão",
|