@questpie/probe 0.1.1 → 0.1.2
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/{check-Cny-3lkZ.js → check-1Y6cPMkN.js} +1 -1
- package/dist/cli.js +35 -9
- package/dist/{compose-D5a8qHkg.js → compose-1CYahcRa.js} +2 -2
- package/dist/{logs-BCgur07G.js → logs-BIt5sCky.js} +1 -1
- package/dist/{process-manager-zzltWvZ0.js → process-manager-BVSQm3gK.js} +1 -1
- package/dist/{process-manager-CzexpFO4.js → process-manager-CITbaM9X.js} +1 -1
- package/dist/{ps-DuHF7vmE.js → ps-UFZx0jy0.js} +1 -1
- package/dist/{restart-By3Edj5X.js → restart-CEzd2Mgn.js} +1 -1
- package/dist/{start-BClY6oJq.js → start-BJnzhZp9.js} +1 -1
- package/dist/{stop-QAP6gbDe.js → stop-C0xDWnnB.js} +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import "./duration-DUrbfMLK.js";
|
|
|
2
2
|
import { loadProbeConfig, resolveBaseUrl } from "./config-BUEMgFYN.js";
|
|
3
3
|
import { error, info, success, warn } from "./output-CHUjdVDf.js";
|
|
4
4
|
import "./state-DRTSIt_r.js";
|
|
5
|
-
import { listProcesses } from "./process-manager-
|
|
5
|
+
import { listProcesses } from "./process-manager-CITbaM9X.js";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
import { ofetch } from "ofetch";
|
|
8
8
|
|
package/dist/cli.js
CHANGED
|
@@ -1,29 +1,55 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { existsSync } from "node:fs";
|
|
3
|
+
import { defineCommand, runMain, showUsage } from "citty";
|
|
4
|
+
import { consola } from "consola";
|
|
3
5
|
|
|
4
6
|
//#region src/cli.ts
|
|
5
7
|
const main = defineCommand({
|
|
6
8
|
meta: {
|
|
7
9
|
name: "qprobe",
|
|
8
|
-
version: "0.1.
|
|
10
|
+
version: "0.1.2",
|
|
9
11
|
description: "Dev testing CLI for AI coding agents"
|
|
10
12
|
},
|
|
11
13
|
subCommands: {
|
|
12
|
-
start: () => import("./start-
|
|
13
|
-
stop: () => import("./stop-
|
|
14
|
-
restart: () => import("./restart-
|
|
15
|
-
ps: () => import("./ps-
|
|
14
|
+
start: () => import("./start-BJnzhZp9.js").then((m) => m.default),
|
|
15
|
+
stop: () => import("./stop-C0xDWnnB.js").then((m) => m.default),
|
|
16
|
+
restart: () => import("./restart-CEzd2Mgn.js").then((m) => m.default),
|
|
17
|
+
ps: () => import("./ps-UFZx0jy0.js").then((m) => m.default),
|
|
16
18
|
health: () => import("./health-B36ufFzJ.js").then((m) => m.default),
|
|
17
|
-
compose: () => import("./compose-
|
|
18
|
-
logs: () => import("./logs-
|
|
19
|
+
compose: () => import("./compose-1CYahcRa.js").then((m) => m.default),
|
|
20
|
+
logs: () => import("./logs-BIt5sCky.js").then((m) => m.default),
|
|
19
21
|
http: () => import("./http-BZouO1Cj.js").then((m) => m.default),
|
|
20
|
-
check: () => import("./check-
|
|
22
|
+
check: () => import("./check-1Y6cPMkN.js").then((m) => m.default),
|
|
21
23
|
browser: () => import("./browser-DoCXU5Bs.js").then((m) => m.default),
|
|
22
24
|
record: () => import("./record-C4SmoPsT.js").then((m) => m.default),
|
|
23
25
|
replay: () => import("./replay-Dg9PHNrg.js").then((m) => m.default),
|
|
24
26
|
recordings: () => import("./recordings-Cb31alos.js").then((m) => m.default),
|
|
25
27
|
assert: () => import("./assert-BLP5_JwC.js").then((m) => m.default),
|
|
26
28
|
init: () => import("./init-BjTfn_-A.js").then((m) => m.default)
|
|
29
|
+
},
|
|
30
|
+
async run({ cmd }) {
|
|
31
|
+
const hasConfig = existsSync("qprobe.config.ts") || existsSync("qprobe.config.js") || existsSync("qprobe.config.mjs");
|
|
32
|
+
if (hasConfig) {
|
|
33
|
+
await showUsage(cmd);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
consola.log("");
|
|
37
|
+
consola.log("\x1B[1m\x1B[38;2;183;0;255m QUESTPIE Probe\x1B[0m \x1B[2mv0.1.2\x1B[0m");
|
|
38
|
+
consola.log(" Dev testing CLI for AI coding agents");
|
|
39
|
+
consola.log("");
|
|
40
|
+
consola.log(" \x1B[1mGet started:\x1B[0m");
|
|
41
|
+
consola.log("");
|
|
42
|
+
consola.log(" \x1B[36mqprobe init\x1B[0m Scaffold qprobe.config.ts");
|
|
43
|
+
consola.log(" \x1B[36mbunx skills add questpie/probe\x1B[0m Teach your AI agent to use Probe");
|
|
44
|
+
consola.log("");
|
|
45
|
+
consola.log(" \x1B[2mOr skip the config and start using it:\x1B[0m");
|
|
46
|
+
consola.log("");
|
|
47
|
+
consola.log(" \x1B[36mqprobe start server \"bun dev\" --ready \"ready on\" --port 3000\x1B[0m");
|
|
48
|
+
consola.log(" \x1B[36mqprobe http GET /api/health --status 200\x1B[0m");
|
|
49
|
+
consola.log(" \x1B[36mqprobe logs server --grep \"ERROR\"\x1B[0m");
|
|
50
|
+
consola.log("");
|
|
51
|
+
consola.log(" \x1B[2mDocs:\x1B[0m \x1B[4mhttps://probe.questpie.com/docs\x1B[0m");
|
|
52
|
+
consola.log("");
|
|
27
53
|
}
|
|
28
54
|
});
|
|
29
55
|
runMain(main);
|
|
@@ -2,7 +2,7 @@ import "./duration-DUrbfMLK.js";
|
|
|
2
2
|
import { loadProbeConfig } from "./config-BUEMgFYN.js";
|
|
3
3
|
import { error, info, json, success, table } from "./output-CHUjdVDf.js";
|
|
4
4
|
import "./state-DRTSIt_r.js";
|
|
5
|
-
import { listProcesses, startProcess, stopProcess } from "./process-manager-
|
|
5
|
+
import { listProcesses, startProcess, stopProcess } from "./process-manager-CITbaM9X.js";
|
|
6
6
|
import { defineCommand } from "citty";
|
|
7
7
|
import { ofetch } from "ofetch";
|
|
8
8
|
|
|
@@ -163,7 +163,7 @@ const restart = defineCommand({
|
|
|
163
163
|
error(`Unknown service: "${args.name}"`);
|
|
164
164
|
process.exit(1);
|
|
165
165
|
}
|
|
166
|
-
const { stopProcess: stopProcess$1, startProcess: startProcess$1 } = await import("./process-manager-
|
|
166
|
+
const { stopProcess: stopProcess$1, startProcess: startProcess$1 } = await import("./process-manager-BVSQm3gK.js");
|
|
167
167
|
try {
|
|
168
168
|
await stopProcess$1(args.name);
|
|
169
169
|
} catch {}
|
|
@@ -2,8 +2,8 @@ import { parseDuration } from "./duration-DUrbfMLK.js";
|
|
|
2
2
|
import { error, info, json, log } from "./output-CHUjdVDf.js";
|
|
3
3
|
import { getLogPath, listProcessNames } from "./state-DRTSIt_r.js";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
|
-
import { readFile, stat } from "node:fs/promises";
|
|
6
5
|
import { consola } from "consola";
|
|
6
|
+
import { readFile, stat } from "node:fs/promises";
|
|
7
7
|
import { watch } from "chokidar";
|
|
8
8
|
|
|
9
9
|
//#region src/core/log-reader.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./state-DRTSIt_r.js";
|
|
2
|
-
import { getProcessState, listProcesses, startProcess, stopAll, stopProcess } from "./process-manager-
|
|
2
|
+
import { getProcessState, listProcesses, startProcess, stopAll, stopProcess } from "./process-manager-CITbaM9X.js";
|
|
3
3
|
|
|
4
4
|
export { startProcess, stopProcess };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ensureLogsDir, getLogPath, listProcessNames, readPid, readState, removePid, removeState, savePid, saveState } from "./state-DRTSIt_r.js";
|
|
2
|
+
import { openSync } from "node:fs";
|
|
2
3
|
import { appendFile } from "node:fs/promises";
|
|
3
4
|
import { spawn } from "node:child_process";
|
|
4
|
-
import { openSync } from "node:fs";
|
|
5
5
|
|
|
6
6
|
//#region src/core/log-writer.ts
|
|
7
7
|
function timestamp() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { info, json, table } from "./output-CHUjdVDf.js";
|
|
2
2
|
import "./state-DRTSIt_r.js";
|
|
3
|
-
import { listProcesses } from "./process-manager-
|
|
3
|
+
import { listProcesses } from "./process-manager-CITbaM9X.js";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
|
|
6
6
|
//#region src/commands/ps.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { error, success } from "./output-CHUjdVDf.js";
|
|
2
2
|
import "./state-DRTSIt_r.js";
|
|
3
|
-
import { getProcessState, startProcess, stopProcess } from "./process-manager-
|
|
3
|
+
import { getProcessState, startProcess, stopProcess } from "./process-manager-CITbaM9X.js";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
|
|
6
6
|
//#region src/commands/restart.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { parseDuration } from "./duration-DUrbfMLK.js";
|
|
2
2
|
import { error, success } from "./output-CHUjdVDf.js";
|
|
3
3
|
import "./state-DRTSIt_r.js";
|
|
4
|
-
import { startProcess } from "./process-manager-
|
|
4
|
+
import { startProcess } from "./process-manager-CITbaM9X.js";
|
|
5
5
|
import { defineCommand } from "citty";
|
|
6
6
|
|
|
7
7
|
//#region src/commands/start.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { error, success } from "./output-CHUjdVDf.js";
|
|
2
2
|
import "./state-DRTSIt_r.js";
|
|
3
|
-
import { stopAll, stopProcess } from "./process-manager-
|
|
3
|
+
import { stopAll, stopProcess } from "./process-manager-CITbaM9X.js";
|
|
4
4
|
import { defineCommand } from "citty";
|
|
5
5
|
|
|
6
6
|
//#region src/commands/stop.ts
|