@dino-hq/cli 0.1.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/package.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "@dino-hq/cli",
3
+ "version": "0.1.0",
4
+ "description": "Dino CLI — autonomous API quality scanner. Scan, document, diff, lint, and monitor your APIs.",
5
+ "license": "MIT",
6
+ "bin": {
7
+ "dino": "dist/bin.js"
8
+ },
9
+ "files": [
10
+ "dist/bin.js",
11
+ "LICENSE",
12
+ "README.md",
13
+ "schema.json"
14
+ ],
15
+ "scripts": {
16
+ "build": "tsc --build",
17
+ "bundle": "node build.mjs",
18
+ "prepublishOnly": "node build.mjs",
19
+ "test": "echo \"No tests yet\"",
20
+ "lint": "echo \"No lint yet\""
21
+ },
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "keywords": [
26
+ "api",
27
+ "graphql",
28
+ "testing",
29
+ "documentation",
30
+ "cli",
31
+ "dino",
32
+ "api-testing",
33
+ "schema-validation",
34
+ "api-quality",
35
+ "autonomous-qa"
36
+ ],
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "git+https://github.com/Dino-HQ/dino.git",
40
+ "directory": "packages/cli"
41
+ },
42
+ "homepage": "https://usedino.dev",
43
+ "bugs": {
44
+ "url": "https://github.com/Dino-HQ/dino/issues"
45
+ },
46
+ "devDependencies": {
47
+ "@dino/core": "*",
48
+ "@dino/plugins": "*",
49
+ "@dino/agents": "*",
50
+ "@dino/analytics": "*",
51
+ "cosmiconfig": "^9.0.0",
52
+ "esbuild": "^0.27.4",
53
+ "prompts": "^2.4.2"
54
+ },
55
+ "engines": {
56
+ "node": ">=20"
57
+ }
58
+ }
package/schema.json ADDED
@@ -0,0 +1,85 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "dino-config-schema",
4
+ "title": "Dino Configuration",
5
+ "description": "Configuration for .dino.yml — the Dino API quality scanner.",
6
+ "type": "object",
7
+ "properties": {
8
+ "endpoint": {
9
+ "type": "string",
10
+ "format": "uri",
11
+ "description": "Direct API endpoint URL for ad-hoc scans. Omit when using tenant."
12
+ },
13
+ "protocol": {
14
+ "type": "string",
15
+ "enum": ["graphql"],
16
+ "default": "graphql",
17
+ "description": "API protocol. Only GraphQL is supported currently."
18
+ },
19
+ "tenant": {
20
+ "type": "string",
21
+ "description": "Tenant ID for multi-tenant deployments."
22
+ },
23
+ "environment": {
24
+ "type": "string",
25
+ "description": "Target environment name (e.g., staging, production)."
26
+ },
27
+ "format": {
28
+ "type": "string",
29
+ "enum": ["json", "markdown"],
30
+ "default": "json",
31
+ "description": "Output format. JSON is machine-readable; markdown is human-readable."
32
+ },
33
+ "snapshotDir": {
34
+ "type": "string",
35
+ "default": ".dino/snapshots",
36
+ "description": "Directory for schema snapshots (used by dino diff)."
37
+ },
38
+ "aiKey": {
39
+ "type": "string",
40
+ "description": "API key for AI reasoning features (Pro tier). Also reads DINO_AI_KEY env var."
41
+ },
42
+ "autonomy": {
43
+ "type": "object",
44
+ "properties": {
45
+ "level": {
46
+ "type": "string",
47
+ "enum": ["observe", "enforce"],
48
+ "default": "observe",
49
+ "description": "Shadow Mode autonomy level for dino watch."
50
+ }
51
+ },
52
+ "additionalProperties": true
53
+ },
54
+ "auth": {
55
+ "type": "object",
56
+ "required": ["enabled"],
57
+ "properties": {
58
+ "enabled": {
59
+ "type": "boolean",
60
+ "description": "Enable authenticated scans. Required for RBAC testing."
61
+ },
62
+ "role": {
63
+ "type": "string",
64
+ "minLength": 1,
65
+ "default": "USER",
66
+ "description": "Default auth role for scans."
67
+ }
68
+ },
69
+ "additionalProperties": true
70
+ },
71
+ "rateLimit": {
72
+ "type": "object",
73
+ "properties": {
74
+ "burst": {
75
+ "type": "integer",
76
+ "minimum": 1,
77
+ "maximum": 500,
78
+ "description": "Rate limit burst size override. Free: 10, Pro: 50, Team: 100."
79
+ }
80
+ },
81
+ "additionalProperties": true
82
+ }
83
+ },
84
+ "additionalProperties": true
85
+ }