@griffin-app/griffin-cli 1.0.24 → 1.0.26

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.
@@ -1,4 +1,4 @@
1
- import type { IntegrationCategory, Provider } from "@griffin-app/griffin-ts/types";
1
+ import type { IntegrationCategory, Provider } from "@griffin-app/griffin-core/types";
2
2
  import type { IntegrationConfig, ProviderDefinition } from "@griffin-app/griffin-hub-sdk";
3
3
  export interface IntegrationsListOptions {
4
4
  category?: IntegrationCategory;
@@ -1,5 +1,5 @@
1
1
  import "tsx";
2
- import type { MonitorDSL } from "@griffin-app/griffin-ts/types";
2
+ import type { MonitorDSL } from "@griffin-app/griffin-core/types";
3
3
  export interface DiscoveredMonitor {
4
4
  monitor: MonitorDSL;
5
5
  filePath: string;
@@ -2,7 +2,7 @@ import "tsx";
2
2
  import { glob } from "glob";
3
3
  import path from "node:path";
4
4
  import { pathToFileURL } from "node:url";
5
- import { MonitorDSLSchema } from "@griffin-app/griffin-ts/schema";
5
+ import { MonitorDSLSchema } from "@griffin-app/griffin-core/schema";
6
6
  import { Value } from "typebox/value";
7
7
  /**
8
8
  * Discover and load test monitor files from the filesystem
@@ -1,5 +1,5 @@
1
1
  import objectHash from "object-hash";
2
- import { NodeType } from "@griffin-app/griffin-ts/schema";
2
+ import { NodeType } from "@griffin-app/griffin-core/schema";
3
3
  /**
4
4
  * Compare two test monitors and return granular changes.
5
5
  * Local monitor should be resolved (variables replaced with actual values).
@@ -1,6 +1,7 @@
1
1
  import type { GriffinHubSdk, MonitorV1 } from "@griffin-app/griffin-hub-sdk";
2
2
  import type { StateFile } from "../schemas/state.js";
3
3
  import { type DiscoveryResult } from "./discovery.js";
4
+ import { MonitorDSL } from "@griffin-app/griffin-core/types";
4
5
  /**
5
6
  * Discover local monitors using state-configured patterns.
6
7
  * Shows spinner, handles errors, and returns the discovery result.
@@ -15,5 +16,5 @@ export declare function fetchRemoteMonitors(sdk: GriffinHubSdk, projectId: strin
15
16
  * Load variables and resolve local monitors for a given project and environment.
16
17
  */
17
18
  export declare function resolveLocalMonitors(monitors: {
18
- monitor: import("@griffin-app/griffin-ts/types").MonitorDSL;
19
+ monitor: MonitorDSL;
19
20
  }[], projectId: string, envName: string): Promise<Omit<MonitorV1, "id">[]>;
@@ -2,7 +2,7 @@
2
2
  * Secrets configuration for CLI local runs.
3
3
  * Reads configuration from environment variables to construct a secret provider.
4
4
  */
5
- import { type SecretProvider, type SecretProviderConfig } from "@griffin-app/griffin-plan-executor";
5
+ import { type SecretProvider, type SecretProviderConfig } from "@griffin-app/griffin-executor";
6
6
  /**
7
7
  * Read secrets provider configuration from environment variables.
8
8
  *
@@ -2,7 +2,7 @@
2
2
  * Secrets configuration for CLI local runs.
3
3
  * Reads configuration from environment variables to construct a secret provider.
4
4
  */
5
- import { createSecretProvider, } from "@griffin-app/griffin-plan-executor";
5
+ import { createSecretProvider, } from "@griffin-app/griffin-executor";
6
6
  /**
7
7
  * Environment variable prefixes for secrets configuration.
8
8
  */
@@ -1,5 +1,5 @@
1
1
  import "tsx";
2
- import { ExecutionResult } from "@griffin-app/griffin-plan-executor";
2
+ import { ExecutionResult } from "@griffin-app/griffin-executor";
3
3
  /**
4
4
  * Runs a TypeScript test file and executes the resulting JSON monitor.
5
5
  */
@@ -1,7 +1,7 @@
1
1
  import "tsx";
2
2
  import { Value } from "typebox/value";
3
- import { executeMonitorV1, AxiosAdapter, } from "@griffin-app/griffin-plan-executor";
4
- import { MonitorDSLSchema } from "@griffin-app/griffin-ts/schema";
3
+ import { executeMonitorV1, AxiosAdapter, } from "@griffin-app/griffin-executor";
4
+ import { MonitorDSLSchema } from "@griffin-app/griffin-core/schema";
5
5
  import { randomUUID } from "crypto";
6
6
  import { loadVariables } from "./core/variables.js";
7
7
  import { getProjectId } from "./core/state.js";
package/dist/resolve.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { MonitorV1 } from "@griffin-app/griffin-hub-sdk";
2
- import { MonitorDSL } from "@griffin-app/griffin-ts";
2
+ import { MonitorDSL } from "@griffin-app/griffin-core";
3
3
  export declare function resolveMonitor(monitor: MonitorDSL, projectId: string, envName: string, variables: Record<string, string>): Omit<MonitorV1, "id">;
package/dist/resolve.js CHANGED
@@ -1,4 +1,4 @@
1
- import { migrateToLatest, CURRENT_MONITOR_VERSION, } from "@griffin-app/griffin-ts";
1
+ import { migrateToLatest, CURRENT_MONITOR_VERSION, } from "@griffin-app/griffin-core";
2
2
  import { resolveVariablesInMonitor } from "./core/variables.js";
3
3
  export function resolveMonitor(monitor, projectId, envName, variables) {
4
4
  // Migrate DSL monitor to latest version before resolving
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@griffin-app/griffin-cli",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "CLI tool for running and managing griffin API tests",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -25,8 +25,8 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@griffin-app/griffin-hub-sdk": "1.0.25",
28
- "@griffin-app/griffin-plan-executor": "0.1.29",
29
- "@griffin-app/griffin-ts": "0.1.27",
28
+ "@griffin-app/griffin-executor": "0.1.1",
29
+ "@griffin-app/griffin-core": "0.2.0",
30
30
  "better-auth": "^1.4.17",
31
31
  "cli-table3": "^0.6.5",
32
32
  "commander": "^12.1.0",