@vostride/agent-qa-dashboard 0.1.12 → 0.1.14
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.cjs +21 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -3
- package/dist/index.js.map +1 -1
- package/dist/server/index.cjs +5 -0
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +6 -1
- package/dist/server/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -2352,6 +2352,7 @@ var DashboardReporter = class {
|
|
|
2352
2352
|
if (!artifact || artifact.finalizedAt) return;
|
|
2353
2353
|
const memoryLog = this.redactValue(result.memoryLog);
|
|
2354
2354
|
if (memoryLog) {
|
|
2355
|
+
this.db.updateRun(runId, { memoryLog: JSON.stringify(memoryLog) });
|
|
2355
2356
|
this.db.stageRunArtifact(runId, { memory: { log: memoryLog } });
|
|
2356
2357
|
}
|
|
2357
2358
|
this.db.finalizeRunArtifact(runId);
|
|
@@ -2494,9 +2495,22 @@ var DashboardReporter = class {
|
|
|
2494
2495
|
childRunIds: []
|
|
2495
2496
|
};
|
|
2496
2497
|
for (const child of children) {
|
|
2497
|
-
|
|
2498
|
+
let rawLog = null;
|
|
2499
|
+
if (child.memoryLog) {
|
|
2500
|
+
try {
|
|
2501
|
+
rawLog = JSON.parse(child.memoryLog);
|
|
2502
|
+
} catch {
|
|
2503
|
+
rawLog = null;
|
|
2504
|
+
}
|
|
2505
|
+
}
|
|
2506
|
+
if (!rawLog) {
|
|
2507
|
+
const childArtifact = this.db.getRunArtifact(child.id);
|
|
2508
|
+
const memory = childArtifact?.payload.memory;
|
|
2509
|
+
rawLog = isRecord(memory) ? memory.log : null;
|
|
2510
|
+
}
|
|
2511
|
+
if (!isRecord(rawLog)) continue;
|
|
2498
2512
|
try {
|
|
2499
|
-
const log =
|
|
2513
|
+
const log = rawLog;
|
|
2500
2514
|
aggregate.added += log.added ?? 0;
|
|
2501
2515
|
aggregate.confirmed += log.confirmed ?? 0;
|
|
2502
2516
|
aggregate.deprecated += log.deprecated ?? 0;
|
|
@@ -4207,7 +4221,7 @@ function readJsonBody(req, maxBytes = DEFAULT_MAX_BYTES) {
|
|
|
4207
4221
|
}
|
|
4208
4222
|
|
|
4209
4223
|
// src/server/routes.ts
|
|
4210
|
-
import { buildAnalyticsEvent, buildInternalRunAttributes as buildInternalRunAttributes2, captureAnalytics, mergeRunAttributes, readAuth, writeAuth, removeAuth, getProviderOptions, getLLMAuthProviderPlugin, listLLMAuthProviderPlugins, ModelConfigSchema, NamedLLMConfigSchema, WorkspaceSchema, ServicesSchema, RegistrySchema, UseSchema, MobileAppStateSchema, hashStepInstruction, TimeoutConfigSchema, CacheConfigSchema, HealingConfigSchema, PlannerConfigSchema, LoggingConfigSchema, LogCaptureConfigSchema, AccessibilityConfigSchema, DashboardConfigSchema, McpConfigSchema, RecordingConfigSchema, BrowserConfigSchema, AnalyticsSchema, AgentQaConfigSchema as AgentQaConfigSchema3, TestDefinitionSchema, SuiteDefinitionSchema, parseEnvFile, serializeEnvFile, runHookInSandbox, RUNTIME_IMAGE_MAP, SecretStore, SecretRedactor, validateUserRunAttributes, discoverWorkspaceFiles as discoverWorkspaceFiles4, isWorkspacePathMatch, resolveAnalyticsStandardProperties, resolveMemoryRoot as resolveMemoryRoot2, resolveWorkspaceFileTarget as resolveWorkspaceFileTarget2 } from "@vostride/agent-qa-core";
|
|
4224
|
+
import { buildAnalyticsEvent, buildInternalRunAttributes as buildInternalRunAttributes2, captureAnalytics, mergeRunAttributes, readAuth, writeAuth, removeAuth, getAgentQaVersion, getProviderOptions, getLLMAuthProviderPlugin, listLLMAuthProviderPlugins, ModelConfigSchema, NamedLLMConfigSchema, WorkspaceSchema, ServicesSchema, RegistrySchema, UseSchema, MobileAppStateSchema, hashStepInstruction, TimeoutConfigSchema, CacheConfigSchema, HealingConfigSchema, PlannerConfigSchema, LoggingConfigSchema, LogCaptureConfigSchema, AccessibilityConfigSchema, DashboardConfigSchema, McpConfigSchema, RecordingConfigSchema, BrowserConfigSchema, AnalyticsSchema, AgentQaConfigSchema as AgentQaConfigSchema3, TestDefinitionSchema, SuiteDefinitionSchema, parseEnvFile, serializeEnvFile, runHookInSandbox, RUNTIME_IMAGE_MAP, SecretStore, SecretRedactor, validateUserRunAttributes, discoverWorkspaceFiles as discoverWorkspaceFiles4, isWorkspacePathMatch, resolveAnalyticsStandardProperties, resolveMemoryRoot as resolveMemoryRoot2, resolveWorkspaceFileTarget as resolveWorkspaceFileTarget2 } from "@vostride/agent-qa-core";
|
|
4211
4225
|
import { parse as parseYaml5 } from "yaml";
|
|
4212
4226
|
var LLM_PROVIDER_MODES = /* @__PURE__ */ new Set([
|
|
4213
4227
|
"openai-compatible",
|
|
@@ -6235,6 +6249,11 @@ data: ${JSON.stringify(event)}
|
|
|
6235
6249
|
});
|
|
6236
6250
|
return;
|
|
6237
6251
|
}
|
|
6252
|
+
if (path === "/api/app-metadata" && req.method === "GET") {
|
|
6253
|
+
const version = getAgentQaVersion().trim() || "0.0.0";
|
|
6254
|
+
json(res, { version });
|
|
6255
|
+
return;
|
|
6256
|
+
}
|
|
6238
6257
|
if (path === "/api/config/targets" && req.method === "GET") {
|
|
6239
6258
|
if (!configManager) {
|
|
6240
6259
|
json(res, { error: "Config management not available" }, 501);
|