@pmate/cli 0.50.0 → 0.50.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/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20164,7 +20164,7 @@ function logResponseError(status, message) {
|
|
|
20164
20164
|
};
|
|
20165
20165
|
if (status === 422 && message === "Requested window extends beyond the safe retained log window")
|
|
20166
20166
|
return new DeveloperLogError("logs_retention", status, "Requested time window is outside retained logs");
|
|
20167
|
-
if (status === 422 && ["Analysis exceeds 100 pages; reduce the time window", "Analysis exceeds 10000 records; reduce the time window", "Analysis budget exceeded; reduce the time window", "More than 100 groups; narrow query or choose a coarser dimension"].includes(String(message)))
|
|
20167
|
+
if (status === 422 && ["Log query budget exceeded; reduce the time window", "Analysis exceeds 100 pages; reduce the time window", "Analysis exceeds 10000 records; reduce the time window", "Analysis budget exceeded; reduce the time window", "More than 100 groups; narrow query or choose a coarser dimension"].includes(String(message)))
|
|
20168
20168
|
return new DeveloperLogError("logs_budget_exceeded", status, "Analysis limit exceeded; use metric=count for counts, or narrow the window/dimensions for detailed metrics");
|
|
20169
20169
|
const [code, detail] = errors[status] ?? ["logs_unavailable", "Log service temporarily unavailable"];
|
|
20170
20170
|
return new DeveloperLogError(code, status, `${detail} (HTTP ${status})`);
|
|
@@ -22566,10 +22566,12 @@ var ServiceCommandHandler = class {
|
|
|
22566
22566
|
throw new Error(`Unsupported runtime ${runtime.type} for ${service.id} env ${env.name}`);
|
|
22567
22567
|
}
|
|
22568
22568
|
async appendDeployHistory(registry, serviceId, environment, status, message, metadata) {
|
|
22569
|
+
const createdAt = Date.now();
|
|
22569
22570
|
let lastError;
|
|
22570
22571
|
for (let attempt = 1; attempt <= 5; attempt += 1) {
|
|
22571
22572
|
try {
|
|
22572
22573
|
await registry.appendDeployHistory(serviceId, {
|
|
22574
|
+
createdAt,
|
|
22573
22575
|
environment,
|
|
22574
22576
|
status,
|
|
22575
22577
|
...message ? { message } : {},
|