@griffin-app/griffin-cli 1.0.16 → 1.0.18
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/cli.js +2 -2
- package/dist/commands/hub/monitor.d.ts +2 -2
- package/dist/commands/hub/monitor.js +1 -1
- package/dist/core/discovery.js +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/dist/cli.js
CHANGED
|
@@ -12,7 +12,7 @@ import { executeConnect } from "./commands/hub/connect.js";
|
|
|
12
12
|
import { executeStatus } from "./commands/hub/status.js";
|
|
13
13
|
import { executeMetrics } from "./commands/hub/metrics.js";
|
|
14
14
|
import { executeRuns } from "./commands/hub/runs.js";
|
|
15
|
-
import {
|
|
15
|
+
import { executePlan } from "./commands/hub/monitor.js";
|
|
16
16
|
import { executeApply } from "./commands/hub/apply.js";
|
|
17
17
|
import { executeRun } from "./commands/hub/run.js";
|
|
18
18
|
import { executeLogin } from "./commands/hub/login.js";
|
|
@@ -143,7 +143,7 @@ hub
|
|
|
143
143
|
.description("Show what changes would be applied")
|
|
144
144
|
.option("--json", "Output in JSON format")
|
|
145
145
|
.action(async (env, options) => {
|
|
146
|
-
await
|
|
146
|
+
await executePlan({ ...options, env });
|
|
147
147
|
});
|
|
148
148
|
hub
|
|
149
149
|
.command("apply [env]")
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface PlanOptions {
|
|
2
2
|
json?: boolean;
|
|
3
3
|
env: string;
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* Show what changes would be applied
|
|
7
7
|
*/
|
|
8
|
-
export declare function
|
|
8
|
+
export declare function executePlan(options: PlanOptions): Promise<void>;
|
|
@@ -9,7 +9,7 @@ import { resolveMonitor } from "../../resolve.js";
|
|
|
9
9
|
/**
|
|
10
10
|
* Show what changes would be applied
|
|
11
11
|
*/
|
|
12
|
-
export async function
|
|
12
|
+
export async function executePlan(options) {
|
|
13
13
|
try {
|
|
14
14
|
// Load state
|
|
15
15
|
const state = await loadState();
|
package/dist/core/discovery.js
CHANGED
|
@@ -63,6 +63,8 @@ async function loadMonitorsFromFile(filePath) {
|
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
else {
|
|
66
|
+
console.log("DEFAULT EXPORT", JSON.stringify(defaultExport, null, 2));
|
|
67
|
+
console.log("IS MONITOR", JSON.stringify(MonitorDSLSchema.properties.nodes, null, 2));
|
|
66
68
|
const errors = Value.Errors(MonitorDSLSchema, defaultExport);
|
|
67
69
|
throw new Error(`Default export is not a valid TestMonitor. Got: ${JSON.stringify([...errors], null, 2)}`);
|
|
68
70
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export { executeRunLocal } from "./commands/local/run.js";
|
|
|
19
19
|
export { executeConnect } from "./commands/hub/connect.js";
|
|
20
20
|
export { executeStatus } from "./commands/hub/status.js";
|
|
21
21
|
export { executeRuns } from "./commands/hub/runs.js";
|
|
22
|
-
export {
|
|
22
|
+
export { executePlan } from "./commands/hub/monitor.js";
|
|
23
23
|
export { executeApply } from "./commands/hub/apply.js";
|
|
24
24
|
export { executeRun } from "./commands/hub/run.js";
|
|
25
25
|
export { executeLogin } from "./commands/hub/login.js";
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ export { executeRunLocal } from "./commands/local/run.js";
|
|
|
18
18
|
export { executeConnect } from "./commands/hub/connect.js";
|
|
19
19
|
export { executeStatus } from "./commands/hub/status.js";
|
|
20
20
|
export { executeRuns } from "./commands/hub/runs.js";
|
|
21
|
-
export {
|
|
21
|
+
export { executePlan } from "./commands/hub/monitor.js";
|
|
22
22
|
export { executeApply } from "./commands/hub/apply.js";
|
|
23
23
|
export { executeRun } from "./commands/hub/run.js";
|
|
24
24
|
export { executeLogin } from "./commands/hub/login.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@griffin-app/griffin-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"description": "CLI tool for running and managing griffin API tests",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"author": "",
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@griffin-app/griffin-hub-sdk": "1.0.
|
|
28
|
-
"@griffin-app/griffin-plan-executor": "0.1.
|
|
29
|
-
"@griffin-app/griffin-ts": "0.1.
|
|
27
|
+
"@griffin-app/griffin-hub-sdk": "1.0.18",
|
|
28
|
+
"@griffin-app/griffin-plan-executor": "0.1.25",
|
|
29
|
+
"@griffin-app/griffin-ts": "0.1.25",
|
|
30
30
|
"better-auth": "^1.4.17",
|
|
31
31
|
"cli-table3": "^0.6.5",
|
|
32
32
|
"commander": "^12.1.0",
|