onveloz 0.0.0-beta.24 → 0.0.0-beta.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +20 -13
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3259,14 +3259,21 @@ logsGroup.command("search", {
|
|
|
3259
3259
|
})),
|
|
3260
3260
|
async run(c) {
|
|
3261
3261
|
const serviceId = await resolveServiceId(c.options.service);
|
|
3262
|
-
const
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3262
|
+
const client = await getClient();
|
|
3263
|
+
let entries;
|
|
3264
|
+
try {
|
|
3265
|
+
entries = await client.logs.search({
|
|
3266
|
+
serviceId,
|
|
3267
|
+
query: c.args.query,
|
|
3268
|
+
start: c.options.start,
|
|
3269
|
+
end: c.options.end,
|
|
3270
|
+
limit: c.options.limit,
|
|
3271
|
+
deploymentId: c.options.deployment
|
|
3272
|
+
});
|
|
3273
|
+
} catch (err) {
|
|
3274
|
+
warn(err instanceof Error ? err.message : "Erro ao pesquisar logs");
|
|
3275
|
+
return [];
|
|
3276
|
+
}
|
|
3270
3277
|
if (process.stdout.isTTY) if (entries.length === 0) info("Nenhum log encontrado para essa consulta.");
|
|
3271
3278
|
else {
|
|
3272
3279
|
console.log();
|
|
@@ -4748,7 +4755,7 @@ const LOGO_LINES = [
|
|
|
4748
4755
|
];
|
|
4749
4756
|
const BRAND_COLOR = "#FF4D00";
|
|
4750
4757
|
function getVersion() {
|
|
4751
|
-
return "0.0.0-beta.
|
|
4758
|
+
return "0.0.0-beta.25";
|
|
4752
4759
|
}
|
|
4753
4760
|
function printBanner(subtitle) {
|
|
4754
4761
|
const version = getVersion();
|
|
@@ -5794,7 +5801,7 @@ async function autoUpdate() {
|
|
|
5794
5801
|
if (process.env.VELOZ_MCP === "true") return;
|
|
5795
5802
|
const pm = detectPackageManager();
|
|
5796
5803
|
if (!pm) return;
|
|
5797
|
-
const currentVersion = "0.0.0-beta.
|
|
5804
|
+
const currentVersion = "0.0.0-beta.25";
|
|
5798
5805
|
const latestVersion = await fetchLatestVersion();
|
|
5799
5806
|
if (!latestVersion || latestVersion === currentVersion) return;
|
|
5800
5807
|
const installCmd = getInstallCommand(pm, latestVersion);
|
|
@@ -6111,13 +6118,13 @@ async function findServicesFromConfig() {
|
|
|
6111
6118
|
if (missingIds.length > 0 && config.project.id) {
|
|
6112
6119
|
const client = await getClient();
|
|
6113
6120
|
const remoteServicesByProject = /* @__PURE__ */ new Map();
|
|
6114
|
-
async
|
|
6121
|
+
const getRemoteServices = async (pid) => {
|
|
6115
6122
|
const cached = remoteServicesByProject.get(pid);
|
|
6116
6123
|
if (cached) return cached;
|
|
6117
6124
|
const services$1 = await withRetry(() => client.services.list({ projectId: pid }));
|
|
6118
6125
|
remoteServicesByProject.set(pid, services$1);
|
|
6119
6126
|
return services$1;
|
|
6120
|
-
}
|
|
6127
|
+
};
|
|
6121
6128
|
let configUpdated = false;
|
|
6122
6129
|
for (const [key, serviceConfig] of missingIds) {
|
|
6123
6130
|
const effectiveProjectId = serviceConfig.projectId ?? config.project.id;
|
|
@@ -7407,7 +7414,7 @@ async function pruneRemovedEntries(config, existingConfig, services, databases)
|
|
|
7407
7414
|
//#region src/index.ts
|
|
7408
7415
|
if (process.argv.includes("--mcp")) process.env.VELOZ_MCP = "true";
|
|
7409
7416
|
const cli = Cli.create("veloz", {
|
|
7410
|
-
version: "0.0.0-beta.
|
|
7417
|
+
version: "0.0.0-beta.25",
|
|
7411
7418
|
description: "CLI da plataforma Veloz — deploy rápido para o Brasil",
|
|
7412
7419
|
env: z.object({ VELOZ_ENV: z.string().optional().describe("Ambiente alvo (ex: preview, staging)") })
|
|
7413
7420
|
});
|