@openqa/cli 1.3.3 → 2.0.0
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/README.md +1 -1
- package/dist/agent/brain/diff-analyzer.js +140 -0
- package/dist/agent/brain/diff-analyzer.js.map +1 -0
- package/dist/agent/brain/llm-cache.js +47 -0
- package/dist/agent/brain/llm-cache.js.map +1 -0
- package/dist/agent/brain/llm-resilience.js +252 -0
- package/dist/agent/brain/llm-resilience.js.map +1 -0
- package/dist/agent/config/index.js +588 -0
- package/dist/agent/config/index.js.map +1 -0
- package/dist/agent/coverage/index.js +74 -0
- package/dist/agent/coverage/index.js.map +1 -0
- package/dist/agent/export/index.js +158 -0
- package/dist/agent/export/index.js.map +1 -0
- package/dist/agent/index-v2.js +2795 -0
- package/dist/agent/index-v2.js.map +1 -0
- package/dist/agent/index.js +387 -55
- package/dist/agent/index.js.map +1 -1
- package/dist/agent/logger.js +41 -0
- package/dist/agent/logger.js.map +1 -0
- package/dist/agent/metrics.js +39 -0
- package/dist/agent/metrics.js.map +1 -0
- package/dist/agent/notifications/index.js +106 -0
- package/dist/agent/notifications/index.js.map +1 -0
- package/dist/agent/openapi/spec.js +338 -0
- package/dist/agent/openapi/spec.js.map +1 -0
- package/dist/agent/tools/project-runner.js +481 -0
- package/dist/agent/tools/project-runner.js.map +1 -0
- package/dist/cli/config.html.js +454 -0
- package/dist/cli/daemon.js +7572 -0
- package/dist/cli/dashboard.html.js +1619 -0
- package/dist/cli/index.js +3624 -1675
- package/dist/cli/kanban.html.js +577 -0
- package/dist/cli/routes.js +895 -0
- package/dist/cli/routes.js.map +1 -0
- package/dist/cli/server.js +3564 -1646
- package/dist/database/index.js +503 -10
- package/dist/database/index.js.map +1 -1
- package/dist/database/sqlite.js +281 -0
- package/dist/database/sqlite.js.map +1 -0
- package/package.json +18 -5
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// agent/logger.ts
|
|
2
|
+
var LEVELS = { debug: 0, info: 1, warn: 2, error: 3 };
|
|
3
|
+
var MIN_LEVEL = process.env.LOG_LEVEL || "info";
|
|
4
|
+
function shouldLog(level) {
|
|
5
|
+
return LEVELS[level] >= LEVELS[MIN_LEVEL];
|
|
6
|
+
}
|
|
7
|
+
function format(level, message, context) {
|
|
8
|
+
const entry = {
|
|
9
|
+
ts: (/* @__PURE__ */ new Date()).toISOString(),
|
|
10
|
+
level,
|
|
11
|
+
msg: message,
|
|
12
|
+
...context
|
|
13
|
+
};
|
|
14
|
+
return JSON.stringify(entry);
|
|
15
|
+
}
|
|
16
|
+
var logger = {
|
|
17
|
+
debug(message, context) {
|
|
18
|
+
if (shouldLog("debug")) process.stdout.write(format("debug", message, context) + "\n");
|
|
19
|
+
},
|
|
20
|
+
info(message, context) {
|
|
21
|
+
if (shouldLog("info")) process.stdout.write(format("info", message, context) + "\n");
|
|
22
|
+
},
|
|
23
|
+
warn(message, context) {
|
|
24
|
+
if (shouldLog("warn")) process.stderr.write(format("warn", message, context) + "\n");
|
|
25
|
+
},
|
|
26
|
+
error(message, context) {
|
|
27
|
+
if (shouldLog("error")) process.stderr.write(format("error", message, context) + "\n");
|
|
28
|
+
},
|
|
29
|
+
child(defaults) {
|
|
30
|
+
return {
|
|
31
|
+
debug: (msg, ctx) => logger.debug(msg, { ...defaults, ...ctx }),
|
|
32
|
+
info: (msg, ctx) => logger.info(msg, { ...defaults, ...ctx }),
|
|
33
|
+
warn: (msg, ctx) => logger.warn(msg, { ...defaults, ...ctx }),
|
|
34
|
+
error: (msg, ctx) => logger.error(msg, { ...defaults, ...ctx })
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
logger
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=logger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../agent/logger.ts"],"sourcesContent":["export type LogLevel = 'debug' | 'info' | 'warn' | 'error';\n\nconst LEVELS: Record<LogLevel, number> = { debug: 0, info: 1, warn: 2, error: 3 };\n\nconst MIN_LEVEL: LogLevel = (process.env.LOG_LEVEL as LogLevel) || 'info';\n\nfunction shouldLog(level: LogLevel): boolean {\n return LEVELS[level] >= LEVELS[MIN_LEVEL];\n}\n\nfunction format(level: LogLevel, message: string, context?: Record<string, unknown>): string {\n const entry: Record<string, unknown> = {\n ts: new Date().toISOString(),\n level,\n msg: message,\n ...context,\n };\n return JSON.stringify(entry);\n}\n\nexport const logger = {\n debug(message: string, context?: Record<string, unknown>) {\n if (shouldLog('debug')) process.stdout.write(format('debug', message, context) + '\\n');\n },\n info(message: string, context?: Record<string, unknown>) {\n if (shouldLog('info')) process.stdout.write(format('info', message, context) + '\\n');\n },\n warn(message: string, context?: Record<string, unknown>) {\n if (shouldLog('warn')) process.stderr.write(format('warn', message, context) + '\\n');\n },\n error(message: string, context?: Record<string, unknown>) {\n if (shouldLog('error')) process.stderr.write(format('error', message, context) + '\\n');\n },\n child(defaults: Record<string, unknown>) {\n return {\n debug: (msg: string, ctx?: Record<string, unknown>) => logger.debug(msg, { ...defaults, ...ctx }),\n info: (msg: string, ctx?: Record<string, unknown>) => logger.info(msg, { ...defaults, ...ctx }),\n warn: (msg: string, ctx?: Record<string, unknown>) => logger.warn(msg, { ...defaults, ...ctx }),\n error: (msg: string, ctx?: Record<string, unknown>) => logger.error(msg, { ...defaults, ...ctx }),\n };\n },\n};\n"],"mappings":";AAEA,IAAM,SAAmC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,EAAE;AAEhF,IAAM,YAAuB,QAAQ,IAAI,aAA0B;AAEnE,SAAS,UAAU,OAA0B;AAC3C,SAAO,OAAO,KAAK,KAAK,OAAO,SAAS;AAC1C;AAEA,SAAS,OAAO,OAAiB,SAAiB,SAA2C;AAC3F,QAAM,QAAiC;AAAA,IACrC,KAAI,oBAAI,KAAK,GAAE,YAAY;AAAA,IAC3B;AAAA,IACA,KAAK;AAAA,IACL,GAAG;AA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m_circuit_opens: 0,
|
|
9
|
+
tests_generated: 0,
|
|
10
|
+
tests_run: 0,
|
|
11
|
+
tests_passed: 0,
|
|
12
|
+
tests_failed: 0,
|
|
13
|
+
bugs_found: 0,
|
|
14
|
+
sessions_started: 0,
|
|
15
|
+
ws_connections: 0,
|
|
16
|
+
http_requests: 0
|
|
17
|
+
};
|
|
18
|
+
var metrics = {
|
|
19
|
+
inc(key, by = 1) {
|
|
20
|
+
if (key in counters) counters[key] += by;
|
|
21
|
+
},
|
|
22
|
+
snapshot() {
|
|
23
|
+
const memMB = process.memoryUsage();
|
|
24
|
+
return {
|
|
25
|
+
uptimeSeconds: Math.floor((Date.now() - startedAt) / 1e3),
|
|
26
|
+
memory: {
|
|
27
|
+
heapUsedMB: Math.round(memMB.heapUsed / 1024 / 1024),
|
|
28
|
+
heapTotalMB: Math.round(memMB.heapTotal / 1024 / 1024),
|
|
29
|
+
rssMB: Math.round(memMB.rss / 1024 / 1024)
|
|
30
|
+
},
|
|
31
|
+
counters: { ...counters },
|
|
32
|
+
cacheHitRate: counters.llm_calls > 0 ? Math.round(counters.llm_cache_hits / (counters.llm_calls + counters.llm_cache_hits) * 100) : 0
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
metrics
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=metrics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../agent/metrics.ts"],"sourcesContent":["const startedAt = Date.now();\n\nconst counters: Record<string, number> = {\n llm_calls: 0,\n llm_cache_hits: 0,\n llm_retries: 0,\n llm_fallbacks: 0,\n llm_circuit_opens: 0,\n tests_generated: 0,\n tests_run: 0,\n tests_passed: 0,\n tests_failed: 0,\n bugs_found: 0,\n sessions_started: 0,\n ws_connections: 0,\n http_requests: 0,\n};\n\nexport const metrics = {\n inc(key: keyof typeof counters, by = 1) {\n if (key in counters) counters[key] += by;\n },\n\n snapshot() {\n const memMB = process.memoryUsage();\n return {\n uptimeSeconds: Math.floor((Date.now() - startedAt) / 1000),\n memory: {\n heapUsedMB: Math.round(memMB.heapUsed / 1024 / 1024),\n heapTotalMB: Math.round(memMB.heapTotal / 1024 / 1024),\n rssMB: Math.round(memMB.rss / 1024 / 1024),\n },\n counters: { ...counters },\n cacheHitRate: counters.llm_calls > 0\n ? Math.round((counters.llm_cache_hits / (counters.llm_calls + counters.llm_cache_hits)) * 100)\n : 0,\n };\n },\n};\n"],"mappings":";AAAA,IAAM,YAAY,KAAK,IAAI;AAE3B,IAAM,WAAmC;AAAA,EACvC,WAAW;AAAA,EACX,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,iBAAiB;AAAA,EACjB,WAAW;AAAA,EACX,cAAc;AAAA,EACd,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,gBAAgB;AAAA,EAChB,eAAe;AACjB;AAEO,IAAM,UAAU;AAAA,EACrB,IAAI,KAA4B,KAAK,GAAG;AACtC,QAAI,OAAO,SAAU,UAAS,GAAG,KAAK;AAAA,EACxC;AAAA,EAEA,WAAW;AACT,UAAM,QAAQ,QAAQ,YAAY;AAClC,WAAO;AAAA,MACL,eAAe,KAAK,OAAO,KAAK,IAAI,IAAI,aAAa,GAAI;AAAA,MACzD,QAAQ;AAAA,QACN,YAAY,KAAK,MAAM,MAAM,WAAW,OAAO,IAAI;AAAA,QACnD,aAAa,KAAK,MAAM,MAAM,YAAY,OAAO,IAAI;AAAA,QACrD,OAAO,KAAK,MAAM,MAAM,MAAM,OAAO,IAAI;AAAA,MAC3C;AAAA,MACA,UAAU,EAAE,GAAG,SAAS;AAAA,MACxB,cAAc,SAAS,YAAY,IAC/B,KAAK,MAAO,SAAS,kBAAkB,SAAS,YAAY,SAAS,kBAAmB,GAAG,IAC3F;AAAA,IACN;AAAA,EACF;AACF;","names":[]}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
// agent/notifications/index.ts
|
|
2
|
+
var NotificationService = class {
|
|
3
|
+
constructor(config) {
|
|
4
|
+
this.config = config;
|
|
5
|
+
}
|
|
6
|
+
async notify(payload) {
|
|
7
|
+
const promises = [];
|
|
8
|
+
if (this.config.slack) {
|
|
9
|
+
promises.push(this.sendSlack(payload));
|
|
10
|
+
}
|
|
11
|
+
if (this.config.discord) {
|
|
12
|
+
promises.push(this.sendDiscord(payload));
|
|
13
|
+
}
|
|
14
|
+
await Promise.allSettled(promises);
|
|
15
|
+
}
|
|
16
|
+
async notifyBug(bug) {
|
|
17
|
+
const severityEmoji = {
|
|
18
|
+
critical: "\u{1F534}",
|
|
19
|
+
high: "\u{1F7E0}",
|
|
20
|
+
medium: "\u{1F7E1}",
|
|
21
|
+
low: "\u{1F7E2}"
|
|
22
|
+
};
|
|
23
|
+
await this.notify({
|
|
24
|
+
title: `${severityEmoji[bug.severity] || "\u26A0\uFE0F"} Bug Found: ${bug.title}`,
|
|
25
|
+
message: bug.description,
|
|
26
|
+
severity: bug.severity === "critical" || bug.severity === "high" ? "error" : "warning",
|
|
27
|
+
fields: [
|
|
28
|
+
{ name: "Severity", value: bug.severity },
|
|
29
|
+
{ name: "Status", value: bug.status },
|
|
30
|
+
...bug.github_issue_url ? [{ name: "GitHub Issue", value: bug.github_issue_url }] : []
|
|
31
|
+
]
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
async notifySessionComplete(stats) {
|
|
35
|
+
await this.notify({
|
|
36
|
+
title: "\u2705 OpenQA Session Complete",
|
|
37
|
+
message: `Session ${stats.sessionId} finished.`,
|
|
38
|
+
severity: "success",
|
|
39
|
+
fields: [
|
|
40
|
+
{ name: "Tests Generated", value: String(stats.testsGenerated) },
|
|
41
|
+
{ name: "Agents Created", value: String(stats.agentsCreated) }
|
|
42
|
+
]
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
async sendSlack(payload) {
|
|
46
|
+
const colorMap = {
|
|
47
|
+
info: "#36a64f",
|
|
48
|
+
warning: "#ff9800",
|
|
49
|
+
error: "#dc3545",
|
|
50
|
+
success: "#28a745"
|
|
51
|
+
};
|
|
52
|
+
const color = colorMap[payload.severity || "info"];
|
|
53
|
+
const body = {
|
|
54
|
+
attachments: [{
|
|
55
|
+
color,
|
|
56
|
+
title: payload.title,
|
|
57
|
+
text: payload.message,
|
|
58
|
+
fields: payload.fields?.map((f) => ({ title: f.name, value: f.value, short: true })) || [],
|
|
59
|
+
footer: "OpenQA",
|
|
60
|
+
ts: Math.floor(Date.now() / 1e3)
|
|
61
|
+
}]
|
|
62
|
+
};
|
|
63
|
+
const res = await fetch(this.config.slack, {
|
|
64
|
+
method: "POST",
|
|
65
|
+
headers: { "Content-Type": "application/json" },
|
|
66
|
+
body: JSON.stringify(body)
|
|
67
|
+
});
|
|
68
|
+
if (!res.ok) {
|
|
69
|
+
throw new Error(`Slack notification failed: ${res.status} ${res.statusText}`);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
async sendDiscord(payload) {
|
|
73
|
+
const colorMap = {
|
|
74
|
+
info: 3581519,
|
|
75
|
+
warning: 16750592,
|
|
76
|
+
error: 14431557,
|
|
77
|
+
success: 2664261
|
|
78
|
+
};
|
|
79
|
+
const color = colorMap[payload.severity || "info"];
|
|
80
|
+
const body = {
|
|
81
|
+
embeds: [{
|
|
82
|
+
title: payload.title,
|
|
83
|
+
description: payload.message,
|
|
84
|
+
color,
|
|
85
|
+
fields: payload.fields?.map((f) => ({ name: f.name, value: f.value, inline: true })) || [],
|
|
86
|
+
footer: { text: "OpenQA" },
|
|
87
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
88
|
+
}]
|
|
89
|
+
};
|
|
90
|
+
const res = await fetch(this.config.discord, {
|
|
91
|
+
method: "POST",
|
|
92
|
+
headers: { "Content-Type": "application/json" },
|
|
93
|
+
body: JSON.stringify(body)
|
|
94
|
+
});
|
|
95
|
+
if (!res.ok) {
|
|
96
|
+
throw new Error(`Discord notification failed: ${res.status} ${res.statusText}`);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
isConfigured() {
|
|
100
|
+
return !!(this.config.slack || this.config.discord);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
export {
|
|
104
|
+
NotificationService
|
|
105
|
+
};
|
|
106
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../agent/notifications/index.ts"],"sourcesContent":["import { Bug } from '../../database/index.js';\n\nexport interface NotificationConfig {\n slack?: string;\n discord?: string;\n}\n\nexport interface NotificationPayload {\n title: string;\n message: string;\n severity?: 'info' | 'warning' | 'error' | 'success';\n fields?: Array<{ name: string; value: string }>;\n}\n\nexport class NotificationService {\n constructor(private config: NotificationConfig) {}\n\n async notify(payload: NotificationPayload): Promise<void> {\n const promises: Promise<void>[] = [];\n\n if (this.config.slack) {\n promises.push(this.sendSlack(payload));\n }\n if (this.config.discord) {\n promises.push(this.sendDiscord(payload));\n }\n\n await Promise.allSettled(promises);\n }\n\n async notifyBug(bug: Bug): Promise<void> {\n const severityEmoji: Record<string, string> = {\n critical: '🔴', high: '🟠', medium: '🟡', low: '🟢',\n };\n\n await this.notify({\n title: `${severityEmoji[bug.severity] || '⚠️'} Bug Found: ${bug.title}`,\n message: bug.description,\n severity: bug.severity === 'critical' || bug.severity === 'high' ? 'error' : 'warning',\n fields: [\n { name: 'Severity', value: bug.severity },\n { name: 'Status', value: bug.status },\n ...(bug.github_issue_url ? [{ name: 'GitHub Issue', value: bug.github_issue_url }] : []),\n ],\n });\n }\n\n async notifySessionComplete(stats: { testsGenerated: number; agentsCreated: number; sessionId: string }): Promise<void> {\n await this.notify({\n title: '✅ OpenQA Session Complete',\n message: `Session ${stats.sessionId} finished.`,\n severity: 'success',\n fields: [\n { name: 'Tests Generated', value: String(stats.testsGenerated) },\n { name: 'Agents Created', value: String(stats.agentsCreated) },\n ],\n });\n }\n\n private async sendSlack(payload: NotificationPayload): Promise<void> {\n const colorMap: Record<string, string> = {\n info: '#36a64f', warning: '#ff9800', error: '#dc3545', success: '#28a745',\n };\n const color = colorMap[payload.severity || 'info'];\n\n const body = {\n attachments: [{\n color,\n title: payload.title,\n text: payload.message,\n fields: payload.fields?.map(f => ({ title: f.name, value: f.value, short: true })) || [],\n footer: 'OpenQA',\n ts: Math.floor(Date.now() / 1000),\n }],\n };\n\n const res = await fetch(this.config.slack!, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify(body),\n });\n\n if (!res.ok) {\n throw new Error(`Slack notification failed: ${res.status} ${res.statusText}`);\n }\n }\n\n private async sendDiscord(payload: NotificationPayload): Promise<void> {\n const colorMap: Record<string, number> = {\n info: 0x36a64f, warning: 0xff9800, error: 0xdc3545, success: 0x28a745,\n };\n const color = colorMap[payload.severity || 'info'];\n\n const body = {\n embeds: [{\n title: payload.title,\n description: payload.message,\n color,\n fields: payload.fields?.map(f => ({ name: f.name, value: f.value, inline: true })) || [],\n footer: { text: 'OpenQA' },\n timestamp: new Date().toISOString(),\n }],\n };\n\n const res = await fetch(this.config.discord!, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify(body),\n });\n\n if (!res.ok) {\n throw new Error(`Discord notification failed: ${res.status} ${res.statusText}`);\n }\n }\n\n isConfigured(): boolean {\n return !!(this.config.slack || this.config.discord);\n }\n}\n"],"mappings":";AAcO,IAAM,sBAAN,MAA0B;AAAA,EAC/B,YAAoB,QAA4B;AAA5B;AAAA,EAA6B;AAAA,EAEjD,MAAM,OAAO,SAA6C;AACxD,UAAM,WAA4B,CAAC;AAEnC,QAAI,KAAK,OAAO,OAAO;AACrB,eAAS,KAAK,KAAK,UAAU,OAAO,CAAC;AAAA,IACvC;AACA,QAAI,KAAK,OAAO,SAAS;AACvB,eAAS,KAAK,KAAK,YAAY,OAAO,CAAC;AAAA,IACzC;AAEA,UAAM,QAAQ,WAAW,QAAQ;AAAA,EACnC;AA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A,EAEA,eAAwB;AACtB,WAAO,CAAC,EAAE,KAAK,OAAO,SAAS,KAAK,OAAO;AAAA,EAC7C;AACF;","names":[]}
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
// agent/openapi/spec.ts
|
|
2
|
+
function getOpenAPISpec() {
|
|
3
|
+
return {
|
|
4
|
+
openapi: "3.0.3",
|
|
5
|
+
info: {
|
|
6
|
+
title: "OpenQA API",
|
|
7
|
+
description: "Autonomous QA testing agent \u2014 REST API",
|
|
8
|
+
version: "1.3.4",
|
|
9
|
+
contact: { url: "https://openqa.orkajs.com" },
|
|
10
|
+
license: { name: "MIT" }
|
|
11
|
+
},
|
|
12
|
+
servers: [{ url: "/api", description: "OpenQA server" }],
|
|
13
|
+
tags: [
|
|
14
|
+
{ name: "health", description: "Health & status" },
|
|
15
|
+
{ name: "sessions", description: "Test sessions" },
|
|
16
|
+
{ name: "bugs", description: "Bug reports" },
|
|
17
|
+
{ name: "kanban", description: "Kanban board" },
|
|
18
|
+
{ name: "config", description: "Configuration" },
|
|
19
|
+
{ name: "agent", description: "Agent control" },
|
|
20
|
+
{ name: "project", description: "Project runner" },
|
|
21
|
+
{ name: "export", description: "Result export" },
|
|
22
|
+
{ name: "coverage", description: "Test coverage" },
|
|
23
|
+
{ name: "storage", description: "Storage management" }
|
|
24
|
+
],
|
|
25
|
+
paths: {
|
|
26
|
+
"/health": {
|
|
27
|
+
get: {
|
|
28
|
+
tags: ["health"],
|
|
29
|
+
summary: "Health check",
|
|
30
|
+
responses: {
|
|
31
|
+
"200": {
|
|
32
|
+
description: "Service is healthy",
|
|
33
|
+
content: { "application/json": { schema: { $ref: "#/components/schemas/Health" } } }
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"/status": {
|
|
39
|
+
get: {
|
|
40
|
+
tags: ["health"],
|
|
41
|
+
summary: "Agent status",
|
|
42
|
+
responses: {
|
|
43
|
+
"200": {
|
|
44
|
+
description: "Agent running state",
|
|
45
|
+
content: { "application/json": { schema: { $ref: "#/components/schemas/Status" } } }
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"/sessions": {
|
|
51
|
+
get: {
|
|
52
|
+
tags: ["sessions"],
|
|
53
|
+
summary: "List recent sessions",
|
|
54
|
+
parameters: [{ name: "limit", in: "query", schema: { type: "integer", default: 10 } }],
|
|
55
|
+
responses: {
|
|
56
|
+
"200": {
|
|
57
|
+
description: "Array of sessions",
|
|
58
|
+
content: { "application/json": { schema: { type: "array", items: { $ref: "#/components/schemas/Session" } } } }
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"/sessions/{id}/actions": {
|
|
64
|
+
get: {
|
|
65
|
+
tags: ["sessions"],
|
|
66
|
+
summary: "Get actions for a session",
|
|
67
|
+
parameters: [{ name: "id", in: "path", required: true, schema: { type: "string" } }],
|
|
68
|
+
responses: {
|
|
69
|
+
"200": {
|
|
70
|
+
description: "Array of actions",
|
|
71
|
+
content: { "application/json": { schema: { type: "array", items: { $ref: "#/components/schemas/Action" } } } }
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"/bugs": {
|
|
77
|
+
get: {
|
|
78
|
+
tags: ["bugs"],
|
|
79
|
+
summary: "List bugs",
|
|
80
|
+
parameters: [{ name: "status", in: "query", schema: { type: "string", enum: ["open", "in-progress", "resolved", "closed"] } }],
|
|
81
|
+
responses: {
|
|
82
|
+
"200": {
|
|
83
|
+
description: "Array of bugs",
|
|
84
|
+
content: { "application/json": { schema: { type: "array", items: { $ref: "#/components/schemas/Bug" } } } }
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"/kanban": {
|
|
90
|
+
get: {
|
|
91
|
+
tags: ["kanban"],
|
|
92
|
+
summary: "List all kanban tickets",
|
|
93
|
+
responses: {
|
|
94
|
+
"200": {
|
|
95
|
+
description: "Array of tickets",
|
|
96
|
+
content: { "application/json": { schema: { type: "array", items: { $ref: "#/components/schemas/KanbanTicket" } } } }
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
post: {
|
|
101
|
+
tags: ["kanban"],
|
|
102
|
+
summary: "Create a kanban ticket",
|
|
103
|
+
requestBody: {
|
|
104
|
+
required: true,
|
|
105
|
+
content: { "application/json": { schema: { $ref: "#/components/schemas/KanbanTicketInput" } } }
|
|
106
|
+
},
|
|
107
|
+
responses: {
|
|
108
|
+
"200": { description: "Created ticket", content: { "application/json": { schema: { $ref: "#/components/schemas/KanbanTicket" } } } }
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"/kanban/{id}": {
|
|
113
|
+
put: {
|
|
114
|
+
tags: ["kanban"],
|
|
115
|
+
summary: "Update a kanban ticket",
|
|
116
|
+
parameters: [{ name: "id", in: "path", required: true, schema: { type: "string" } }],
|
|
117
|
+
requestBody: { required: true, content: { "application/json": { schema: { $ref: "#/components/schemas/KanbanTicketInput" } } } },
|
|
118
|
+
responses: { "200": { description: "Success", content: { "application/json": { schema: { $ref: "#/components/schemas/SuccessResponse" } } } } }
|
|
119
|
+
},
|
|
120
|
+
delete: {
|
|
121
|
+
tags: ["kanban"],
|
|
122
|
+
summary: "Delete a kanban ticket",
|
|
123
|
+
parameters: [{ name: "id", in: "path", required: true, schema: { type: "string" } }],
|
|
124
|
+
responses: { "200": { description: "Success", content: { "application/json": { schema: { $ref: "#/components/schemas/SuccessResponse" } } } } }
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"/config": {
|
|
128
|
+
get: {
|
|
129
|
+
tags: ["config"],
|
|
130
|
+
summary: "Get current configuration",
|
|
131
|
+
responses: { "200": { description: "Configuration object" } }
|
|
132
|
+
},
|
|
133
|
+
post: {
|
|
134
|
+
tags: ["config"],
|
|
135
|
+
summary: "Update configuration",
|
|
136
|
+
requestBody: { required: true, content: { "application/json": { schema: { type: "object" } } } },
|
|
137
|
+
responses: { "200": { description: "Success", content: { "application/json": { schema: { $ref: "#/components/schemas/SuccessResponse" } } } } }
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"/agent/start": {
|
|
141
|
+
post: {
|
|
142
|
+
tags: ["agent"],
|
|
143
|
+
summary: "Start autonomous agent session",
|
|
144
|
+
responses: { "200": { description: "Started", content: { "application/json": { schema: { $ref: "#/components/schemas/SuccessResponse" } } } } }
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"/agent/stop": {
|
|
148
|
+
post: {
|
|
149
|
+
tags: ["agent"],
|
|
150
|
+
summary: "Stop the running agent",
|
|
151
|
+
responses: { "200": { description: "Stopped", content: { "application/json": { schema: { $ref: "#/components/schemas/SuccessResponse" } } } } }
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"/project/setup": {
|
|
155
|
+
post: {
|
|
156
|
+
tags: ["project"],
|
|
157
|
+
summary: "Setup project \u2014 detect, install deps, optionally start dev server",
|
|
158
|
+
requestBody: {
|
|
159
|
+
required: true,
|
|
160
|
+
content: {
|
|
161
|
+
"application/json": {
|
|
162
|
+
schema: {
|
|
163
|
+
type: "object",
|
|
164
|
+
required: ["repoPath"],
|
|
165
|
+
properties: {
|
|
166
|
+
repoPath: { type: "string", description: "Absolute path to the project" },
|
|
167
|
+
startServer: { type: "boolean", description: "Start dev server after install" }
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
responses: { "200": { description: "Project status", content: { "application/json": { schema: { $ref: "#/components/schemas/ProjectStatus" } } } } }
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"/project/status": {
|
|
177
|
+
get: {
|
|
178
|
+
tags: ["project"],
|
|
179
|
+
summary: "Get project runner status",
|
|
180
|
+
responses: { "200": { description: "Status", content: { "application/json": { schema: { $ref: "#/components/schemas/ProjectStatus" } } } } }
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"/project/test": {
|
|
184
|
+
post: {
|
|
185
|
+
tags: ["project"],
|
|
186
|
+
summary: "Run existing project tests",
|
|
187
|
+
requestBody: {
|
|
188
|
+
required: true,
|
|
189
|
+
content: { "application/json": { schema: { type: "object", required: ["repoPath"], properties: { repoPath: { type: "string" } } } } }
|
|
190
|
+
},
|
|
191
|
+
responses: { "200": { description: "Test results", content: { "application/json": { schema: { $ref: "#/components/schemas/TestRunResult" } } } } }
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"/export/{sessionId}": {
|
|
195
|
+
get: {
|
|
196
|
+
tags: ["export"],
|
|
197
|
+
summary: "Export session results",
|
|
198
|
+
parameters: [
|
|
199
|
+
{ name: "sessionId", in: "path", required: true, schema: { type: "string" } },
|
|
200
|
+
{ name: "format", in: "query", schema: { type: "string", enum: ["json", "csv", "html"], default: "json" } }
|
|
201
|
+
],
|
|
202
|
+
responses: {
|
|
203
|
+
"200": { description: "File download (json / csv / html)" },
|
|
204
|
+
"404": { description: "Session not found" }
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"/coverage/{sessionId}": {
|
|
209
|
+
get: {
|
|
210
|
+
tags: ["coverage"],
|
|
211
|
+
summary: "Get coverage report for a session",
|
|
212
|
+
parameters: [{ name: "sessionId", in: "path", required: true, schema: { type: "string" } }],
|
|
213
|
+
responses: { "200": { description: "Coverage report", content: { "application/json": { schema: { $ref: "#/components/schemas/CoverageReport" } } } } }
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"/storage": {
|
|
217
|
+
get: {
|
|
218
|
+
tags: ["storage"],
|
|
219
|
+
summary: "Get storage statistics",
|
|
220
|
+
responses: { "200": { description: "Storage stats" } }
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"/cleanup": {
|
|
224
|
+
post: {
|
|
225
|
+
tags: ["storage"],
|
|
226
|
+
summary: "Prune old sessions",
|
|
227
|
+
parameters: [{ name: "maxAgeDays", in: "query", schema: { type: "integer", default: 30 } }],
|
|
228
|
+
responses: { "200": { description: "Cleanup result" } }
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
components: {
|
|
233
|
+
schemas: {
|
|
234
|
+
Health: {
|
|
235
|
+
type: "object",
|
|
236
|
+
properties: { status: { type: "string" }, uptime: { type: "number" }, version: { type: "string" } }
|
|
237
|
+
},
|
|
238
|
+
Status: {
|
|
239
|
+
type: "object",
|
|
240
|
+
properties: { isRunning: { type: "boolean" }, sessionId: { type: "string" } }
|
|
241
|
+
},
|
|
242
|
+
Session: {
|
|
243
|
+
type: "object",
|
|
244
|
+
properties: {
|
|
245
|
+
id: { type: "string" },
|
|
246
|
+
started_at: { type: "string", format: "date-time" },
|
|
247
|
+
ended_at: { type: "string", format: "date-time", nullable: true },
|
|
248
|
+
status: { type: "string", enum: ["running", "completed", "failed"] },
|
|
249
|
+
total_actions: { type: "integer" },
|
|
250
|
+
bugs_found: { type: "integer" }
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
Action: {
|
|
254
|
+
type: "object",
|
|
255
|
+
properties: {
|
|
256
|
+
id: { type: "string" },
|
|
257
|
+
session_id: { type: "string" },
|
|
258
|
+
timestamp: { type: "string", format: "date-time" },
|
|
259
|
+
type: { type: "string" },
|
|
260
|
+
description: { type: "string" }
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
Bug: {
|
|
264
|
+
type: "object",
|
|
265
|
+
properties: {
|
|
266
|
+
id: { type: "string" },
|
|
267
|
+
session_id: { type: "string" },
|
|
268
|
+
title: { type: "string" },
|
|
269
|
+
description: { type: "string" },
|
|
270
|
+
severity: { type: "string", enum: ["low", "medium", "high", "critical"] },
|
|
271
|
+
status: { type: "string", enum: ["open", "in-progress", "resolved", "closed"] },
|
|
272
|
+
github_issue_url: { type: "string", nullable: true },
|
|
273
|
+
created_at: { type: "string", format: "date-time" }
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
KanbanTicket: {
|
|
277
|
+
type: "object",
|
|
278
|
+
properties: {
|
|
279
|
+
id: { type: "string" },
|
|
280
|
+
title: { type: "string" },
|
|
281
|
+
description: { type: "string" },
|
|
282
|
+
priority: { type: "string", enum: ["low", "medium", "high", "critical"] },
|
|
283
|
+
column: { type: "string", enum: ["backlog", "to-do", "in-progress", "done"] },
|
|
284
|
+
created_at: { type: "string", format: "date-time" }
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
KanbanTicketInput: {
|
|
288
|
+
type: "object",
|
|
289
|
+
properties: {
|
|
290
|
+
title: { type: "string" },
|
|
291
|
+
description: { type: "string" },
|
|
292
|
+
priority: { type: "string", enum: ["low", "medium", "high", "critical"] },
|
|
293
|
+
column: { type: "string", enum: ["backlog", "to-do", "in-progress", "done"] }
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
ProjectStatus: {
|
|
297
|
+
type: "object",
|
|
298
|
+
properties: {
|
|
299
|
+
repoPath: { type: "string" },
|
|
300
|
+
installed: { type: "boolean" },
|
|
301
|
+
serverRunning: { type: "boolean" },
|
|
302
|
+
serverUrl: { type: "string", nullable: true },
|
|
303
|
+
serverPid: { type: "integer", nullable: true }
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
TestRunResult: {
|
|
307
|
+
type: "object",
|
|
308
|
+
properties: {
|
|
309
|
+
runner: { type: "string" },
|
|
310
|
+
passed: { type: "integer" },
|
|
311
|
+
failed: { type: "integer" },
|
|
312
|
+
skipped: { type: "integer" },
|
|
313
|
+
total: { type: "integer" },
|
|
314
|
+
durationMs: { type: "integer" }
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
CoverageReport: {
|
|
318
|
+
type: "object",
|
|
319
|
+
properties: {
|
|
320
|
+
total: { type: "integer" },
|
|
321
|
+
tested: { type: "integer" },
|
|
322
|
+
untested: { type: "integer" },
|
|
323
|
+
coveragePercent: { type: "integer" },
|
|
324
|
+
entries: { type: "array", items: { type: "object", properties: { url: { type: "string" }, method: { type: "string" }, tested: { type: "boolean" }, testCount: { type: "integer" } } } }
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
SuccessResponse: {
|
|
328
|
+
type: "object",
|
|
329
|
+
properties: { success: { type: "boolean" } }
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
export {
|
|
336
|
+
getOpenAPISpec
|
|
337
|
+
};
|
|
338
|
+
//# sourceMappingURL=spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../agent/openapi/spec.ts"],"sourcesContent":["export function getOpenAPISpec() {\n return {\n openapi: '3.0.3',\n info: {\n title: 'OpenQA API',\n description: 'Autonomous QA testing agent — REST API',\n version: '1.3.4',\n contact: { url: 'https://openqa.orkajs.com' },\n license: { name: 'MIT' },\n },\n servers: [{ url: '/api', description: 'OpenQA server' }],\n tags: [\n { name: 'health', description: 'Health & status' },\n { name: 'sessions', description: 'Test sessions' },\n { name: 'bugs', description: 'Bug reports' },\n { name: 'kanban', description: 'Kanban board' },\n { name: 'config', description: 'Configuration' },\n { name: 'agent', description: 'Agent control' },\n { name: 'project', description: 'Project runner' },\n { name: 'export', description: 'Result export' },\n { name: 'coverage', description: 'Test coverage' },\n { name: 'storage', description: 'Storage management' },\n ],\n paths: {\n '/health': {\n get: {\n tags: ['health'],\n summary: 'Health check',\n responses: {\n '200': {\n description: 'Service is healthy',\n content: { 'application/json': { schema: { $ref: '#/components/schemas/Health' } } },\n },\n },\n },\n },\n '/status': {\n get: {\n tags: ['health'],\n summary: 'Agent status',\n responses: {\n '200': {\n description: 'Agent running state',\n content: { 'application/json': { schema: { $ref: '#/components/schemas/Status' } } },\n },\n },\n },\n },\n '/sessions': {\n get: {\n tags: ['sessions'],\n summary: 'List recent sessions',\n parameters: [{ name: 'limit', in: 'query', schema: { type: 'integer', default: 10 } }],\n responses: {\n '200': {\n description: 'Array of sessions',\n content: { 'application/json': { schema: { type: 'array', items: { $ref: '#/components/schemas/Session' } } } },\n },\n },\n },\n },\n '/sessions/{id}/actions': {\n get: {\n tags: ['sessions'],\n summary: 'Get actions for a session',\n parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }],\n responses: {\n '200': {\n description: 'Array of actions',\n content: { 'application/json': { schema: { type: 'array', items: { $ref: '#/components/schemas/Action' } } } },\n },\n },\n },\n },\n '/bugs': {\n get: {\n tags: ['bugs'],\n summary: 'List bugs',\n parameters: [{ name: 'status', in: 'query', schema: { type: 'string', enum: ['open', 'in-progress', 'resolved', 'closed'] } }],\n responses: {\n '200': {\n description: 'Array of bugs',\n content: { 'application/json': { schema: { type: 'array', items: { $ref: '#/components/schemas/Bug' } } } },\n },\n },\n },\n },\n '/kanban': {\n get: {\n tags: ['kanban'],\n summary: 'List all kanban tickets',\n responses: {\n '200': {\n description: 'Array of tickets',\n content: { 'application/json': { schema: { type: 'array', items: { $ref: '#/components/schemas/KanbanTicket' } } } },\n },\n },\n },\n post: {\n tags: ['kanban'],\n summary: 'Create a kanban ticket',\n requestBody: {\n required: true,\n content: { 'application/json': { schema: { $ref: '#/components/schemas/KanbanTicketInput' } } },\n },\n responses: {\n '200': { description: 'Created ticket', content: { 'application/json': { schema: { $ref: '#/components/schemas/KanbanTicket' } } } },\n },\n },\n },\n '/kanban/{id}': {\n put: {\n tags: ['kanban'],\n summary: 'Update a kanban ticket',\n parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }],\n requestBody: { required: true, content: { 'application/json': { schema: { $ref: '#/components/schemas/KanbanTicketInput' } } } },\n responses: { '200': { description: 'Success', content: { 'application/json': { schema: { $ref: '#/components/schemas/SuccessResponse' } } } } },\n },\n delete: {\n tags: ['kanban'],\n summary: 'Delete a kanban ticket',\n parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }],\n responses: { '200': { description: 'Success', content: { 'application/json': { schema: { $ref: '#/components/schemas/SuccessResponse' } } } } },\n },\n },\n '/config': {\n get: {\n tags: ['config'],\n summary: 'Get current configuration',\n responses: { '200': { description: 'Configuration object' } },\n },\n post: {\n tags: ['config'],\n summary: 'Update configuration',\n requestBody: { required: true, content: { 'application/json': { schema: { type: 'object' } } } },\n responses: { '200': { description: 'Success', content: { 'application/json': { schema: { $ref: '#/components/schemas/SuccessResponse' } } } } },\n },\n },\n '/agent/start': {\n post: {\n tags: ['agent'],\n summary: 'Start autonomous agent session',\n responses: { '200': { description: 'Started', content: { 'application/json': { schema: { $ref: '#/components/schemas/SuccessResponse' } } } } },\n },\n },\n '/agent/stop': {\n post: {\n tags: ['agent'],\n summary: 'Stop the running agent',\n responses: { '200': { description: 'Stopped', content: { 'application/json': { schema: { $ref: '#/components/schemas/SuccessResponse' } } } } },\n },\n },\n '/project/setup': {\n post: {\n tags: ['project'],\n summary: 'Setup project — detect, install deps, optionally start dev server',\n requestBody: {\n required: true,\n content: {\n 'application/json': {\n schema: {\n type: 'object',\n required: ['repoPath'],\n properties: {\n repoPath: { type: 'string', description: 'Absolute path to the project' },\n startServer: { type: 'boolean', description: 'Start dev server after install' },\n },\n },\n },\n },\n },\n responses: { '200': { description: 'Project status', content: { 'application/json': { schema: { $ref: '#/components/schemas/ProjectStatus' } } } } },\n },\n },\n '/project/status': {\n get: {\n tags: ['project'],\n summary: 'Get project runner status',\n responses: { '200': { description: 'Status', content: { 'application/json': { schema: { $ref: '#/components/schemas/ProjectStatus' } } } } },\n },\n },\n '/project/test': {\n post: {\n tags: ['project'],\n summary: 'Run existing project tests',\n requestBody: {\n required: true,\n content: { 'application/json': { schema: { type: 'object', required: ['repoPath'], properties: { repoPath: { type: 'string' } } } } },\n },\n responses: { '200': { description: 'Test results', content: { 'application/json': { schema: { $ref: '#/components/schemas/TestRunResult' } } } } },\n },\n },\n '/export/{sessionId}': {\n get: {\n tags: ['export'],\n summary: 'Export session results',\n parameters: [\n { name: 'sessionId', in: 'path', required: true, schema: { type: 'string' } },\n { name: 'format', in: 'query', schema: { type: 'string', enum: ['json', 'csv', 'html'], default: 'json' } },\n ],\n responses: {\n '200': { description: 'File download (json / csv / html)' },\n '404': { description: 'Session not found' },\n },\n },\n },\n '/coverage/{sessionId}': {\n get: {\n tags: ['coverage'],\n summary: 'Get coverage report for a session',\n parameters: [{ name: 'sessionId', in: 'path', required: true, schema: { type: 'string' } }],\n responses: { '200': { description: 'Coverage report', content: { 'application/json': { schema: { $ref: '#/components/schemas/CoverageReport' } } } } },\n },\n },\n '/storage': {\n get: {\n tags: ['storage'],\n summary: 'Get storage statistics',\n responses: { '200': { description: 'Storage stats' } },\n },\n },\n '/cleanup': {\n post: {\n tags: ['storage'],\n summary: 'Prune old sessions',\n parameters: [{ name: 'maxAgeDays', in: 'query', schema: { type: 'integer', default: 30 } }],\n responses: { '200': { description: 'Cleanup result' } },\n },\n },\n },\n components: {\n schemas: {\n Health: {\n type: 'object',\n properties: { status: { type: 'string' }, uptime: { type: 'number' }, version: { type: 'string' } },\n },\n Status: {\n type: 'object',\n properties: { isRunning: { type: 'boolean' }, sessionId: { type: 'string' } },\n },\n Session: {\n type: 'object',\n properties: {\n id: { type: 'string' }, started_at: { type: 'string', format: 'date-time' },\n ended_at: { type: 'string', format: 'date-time', nullable: true },\n status: { type: 'string', enum: ['running', 'completed', 'failed'] },\n total_actions: { type: 'integer' }, bugs_found: { type: 'integer' },\n },\n },\n Action: {\n type: 'object',\n properties: {\n id: { type: 'string' }, session_id: { type: 'string' },\n timestamp: { type: 'string', format: 'date-time' },\n type: { type: 'string' }, description: { type: 'string' },\n },\n },\n Bug: {\n type: 'object',\n properties: {\n id: { type: 'string' }, session_id: { type: 'string' },\n title: { type: 'string' }, description: { type: 'string' },\n severity: { type: 'string', enum: ['low', 'medium', 'high', 'critical'] },\n status: { type: 'string', enum: ['open', 'in-progress', 'resolved', 'closed'] },\n github_issue_url: { type: 'string', nullable: true },\n created_at: { type: 'string', format: 'date-time' },\n },\n },\n KanbanTicket: {\n type: 'object',\n properties: {\n id: { type: 'string' }, title: { type: 'string' }, description: { type: 'string' },\n priority: { type: 'string', enum: ['low', 'medium', 'high', 'critical'] },\n column: { type: 'string', enum: ['backlog', 'to-do', 'in-progress', 'done'] },\n created_at: { type: 'string', format: 'date-time' },\n },\n },\n KanbanTicketInput: {\n type: 'object',\n properties: {\n title: { type: 'string' }, description: { type: 'string' },\n priority: { type: 'string', enum: ['low', 'medium', 'high', 'critical'] },\n column: { type: 'string', enum: ['backlog', 'to-do', 'in-progress', 'done'] },\n },\n },\n ProjectStatus: {\n type: 'object',\n properties: {\n repoPath: { type: 'string' }, installed: { type: 'boolean' },\n serverRunning: { type: 'boolean' }, serverUrl: { type: 'string', nullable: true },\n serverPid: { type: 'integer', nullable: true },\n },\n },\n TestRunResult: {\n type: 'object',\n properties: {\n runner: { type: 'string' }, passed: { type: 'integer' }, failed: { type: 'integer' },\n skipped: { type: 'integer' }, total: { type: 'integer' }, durationMs: { type: 'integer' },\n },\n },\n CoverageReport: {\n type: 'object',\n properties: {\n total: { type: 'integer' }, tested: { type: 'integer' }, untested: { type: 'integer' },\n coveragePercent: { type: 'integer' },\n entries: { type: 'array', items: { type: 'object', properties: { url: { type: 'string' }, method: { type: 'string' }, tested: { type: 'boolean' }, testCount: { type: 'integer' } } } },\n },\n },\n SuccessResponse: {\n type: 'object',\n properties: { success: { type: 'boolean' } },\n },\n },\n },\n };\n}\n"],"mappings":";AAAO,SAAS,iBAAiB;AAC/B,SAAO;AAAA,IACL,SAAS;AAAA,IACT,MAAM;AAAA,MACJ,OAAO;AAAA,MACP,aAAa;AAAA,MACb,SAAS;AAAA,MACT,SAAS,EAAE,KAAK,4BAA4B;AAAA,MAC5C,SAAS,EAAE,MAAM,MAAM;AAAA,IACzB;AAAA,IACA,SAAS,CAAC,EAAE,KAAK,QAAQ,aAAa,gBAAgB,CAAC;AAAA,IACvD,MAAM;AAAA,MACJ,EAAE,MAAM,UAAU,aAAa,kBAAkB;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