harness-mcp-v2 0.9.3 → 0.9.4
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 +86 -60
- package/build/data/schemas/index.d.ts +10 -14
- package/build/data/schemas/index.d.ts.map +1 -1
- package/build/data/schemas/index.js +24 -9
- package/build/data/schemas/index.js.map +1 -1
- package/build/data/schemas/local/agent-pipeline.d.ts +8 -0
- package/build/data/schemas/local/agent-pipeline.d.ts.map +1 -0
- package/build/data/schemas/local/agent-pipeline.js +4945 -0
- package/build/data/schemas/local/agent-pipeline.js.map +1 -0
- package/build/data/schemas/v0/pipeline.d.ts +3 -0
- package/build/data/schemas/v0/pipeline.d.ts.map +1 -0
- package/build/data/schemas/v0/pipeline.js +114344 -0
- package/build/data/schemas/v0/pipeline.js.map +1 -0
- package/build/data/schemas/v0/template.d.ts +3 -0
- package/build/data/schemas/v0/template.d.ts.map +1 -0
- package/build/data/schemas/v0/template.js +142351 -0
- package/build/data/schemas/v0/template.js.map +1 -0
- package/build/data/schemas/v0/trigger.d.ts +3 -0
- package/build/data/schemas/v0/trigger.d.ts.map +1 -0
- package/build/data/schemas/v0/trigger.js +4080 -0
- package/build/data/schemas/v0/trigger.js.map +1 -0
- package/build/data/schemas/v1/infra.d.ts +3 -0
- package/build/data/schemas/v1/infra.d.ts.map +1 -0
- package/build/data/schemas/v1/infra.js +1005 -0
- package/build/data/schemas/v1/infra.js.map +1 -0
- package/build/data/schemas/v1/inputSet.d.ts +3 -0
- package/build/data/schemas/v1/inputSet.d.ts.map +1 -0
- package/build/data/schemas/v1/inputSet.js +46 -0
- package/build/data/schemas/v1/inputSet.js.map +1 -0
- package/build/data/schemas/v1/overlayInputSet.d.ts +3 -0
- package/build/data/schemas/v1/overlayInputSet.d.ts.map +1 -0
- package/build/data/schemas/v1/overlayInputSet.js +43 -0
- package/build/data/schemas/v1/overlayInputSet.js.map +1 -0
- package/build/data/schemas/v1/pipeline.d.ts +3 -0
- package/build/data/schemas/v1/pipeline.d.ts.map +1 -0
- package/build/data/schemas/v1/pipeline.js +5227 -0
- package/build/data/schemas/v1/pipeline.js.map +1 -0
- package/build/data/schemas/v1/service.d.ts +3 -0
- package/build/data/schemas/v1/service.d.ts.map +1 -0
- package/build/data/schemas/v1/service.js +1386 -0
- package/build/data/schemas/v1/service.js.map +1 -0
- package/build/data/schemas/v1/template.d.ts +3 -0
- package/build/data/schemas/v1/template.d.ts.map +1 -0
- package/build/data/schemas/v1/template.js +5845 -0
- package/build/data/schemas/v1/template.js.map +1 -0
- package/build/data/schemas/v1/trigger.d.ts +3 -0
- package/build/data/schemas/v1/trigger.d.ts.map +1 -0
- package/build/data/schemas/v1/trigger.js +3390 -0
- package/build/data/schemas/v1/trigger.js.map +1 -0
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/prompts/add-metric.d.ts +3 -0
- package/build/prompts/add-metric.d.ts.map +1 -0
- package/build/prompts/add-metric.js +56 -0
- package/build/prompts/add-metric.js.map +1 -0
- package/build/prompts/create-eval-suite.d.ts +3 -0
- package/build/prompts/create-eval-suite.d.ts.map +1 -0
- package/build/prompts/create-eval-suite.js +49 -0
- package/build/prompts/create-eval-suite.js.map +1 -0
- package/build/prompts/index.d.ts.map +1 -1
- package/build/prompts/index.js +8 -0
- package/build/prompts/index.js.map +1 -1
- package/build/prompts/run-evaluation.d.ts +3 -0
- package/build/prompts/run-evaluation.d.ts.map +1 -0
- package/build/prompts/run-evaluation.js +49 -0
- package/build/prompts/run-evaluation.js.map +1 -0
- package/build/registry/extractors.d.ts +14 -0
- package/build/registry/extractors.d.ts.map +1 -1
- package/build/registry/extractors.js +17 -0
- package/build/registry/extractors.js.map +1 -1
- package/build/registry/index.d.ts +11 -0
- package/build/registry/index.d.ts.map +1 -1
- package/build/registry/index.js +50 -3
- package/build/registry/index.js.map +1 -1
- package/build/registry/toolsets/ai-evals.d.ts +8 -0
- package/build/registry/toolsets/ai-evals.d.ts.map +1 -0
- package/build/registry/toolsets/ai-evals.js +1528 -0
- package/build/registry/toolsets/ai-evals.js.map +1 -0
- package/build/registry/types.d.ts +8 -1
- package/build/registry/types.d.ts.map +1 -1
- package/build/resources/pipeline-yaml.d.ts.map +1 -1
- package/build/resources/pipeline-yaml.js +1 -2
- package/build/resources/pipeline-yaml.js.map +1 -1
- package/build/tools/harness-schema.d.ts.map +1 -1
- package/build/tools/harness-schema.js +12 -4
- package/build/tools/harness-schema.js.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## Harness MCP Server 2.0
|
|
2
2
|
|
|
3
|
-
An MCP (Model Context Protocol) server that gives AI agents full access to the Harness.io platform through 10 consolidated tools and
|
|
3
|
+
An MCP (Model Context Protocol) server that gives AI agents full access to the Harness.io platform through 10 consolidated tools and 163 resource types.
|
|
4
4
|
|
|
5
5
|
## Why Use This MCP Server
|
|
6
6
|
|
|
@@ -8,8 +8,8 @@ Most MCP servers map one tool per API endpoint. For a platform as broad as Harne
|
|
|
8
8
|
|
|
9
9
|
This server is built differently:
|
|
10
10
|
|
|
11
|
-
- **10 tools,
|
|
12
|
-
- **Full platform coverage.**
|
|
11
|
+
- **10 tools, 163 resource types.** A registry-based dispatch system routes `harness_list`, `harness_get`, `harness_create`, etc. to any Harness resource — pipelines, services, environments, orgs, projects, feature flags, cost data, and more. The LLM picks from 10 tools instead of hundreds.
|
|
12
|
+
- **Full platform coverage.** 31 toolsets spanning CI/CD, GitOps, Feature Flags, Cloud Cost Management, Security Testing, Chaos Engineering, Internal Developer Portal, Software Supply Chain, Governance, Service Overrides, Visualizations, and more. Not just pipelines — the entire Harness platform.
|
|
13
13
|
- **Multi-project workflows out of the box.** Agents discover organizations and projects dynamically — no hardcoded env vars needed. Ask "show failed executions across all projects" and the agent can navigate the full account hierarchy.
|
|
14
14
|
- **27 prompt templates.** Pre-built prompts for common workflows: build & deploy apps end-to-end, debug failed pipelines, review DORA metrics, triage vulnerabilities, optimize cloud costs, audit access control, plan feature flag rollouts, review pull requests, approve pending pipelines, and more.
|
|
15
15
|
- **Works everywhere.** Stdio transport for local clients (Claude Desktop, Cursor, Windsurf), HTTP transport for remote/shared deployments, Docker and Kubernetes ready.
|
|
@@ -506,25 +506,23 @@ The deployment runs 2 replicas with readiness/liveness probes, resource limits,
|
|
|
506
506
|
|
|
507
507
|
The server automatically loads environment variables from a `.env` file in the project root if one exists. Copy `.env.example` to `.env` and fill in your values. Environment variables can also be set via your shell or MCP client config.
|
|
508
508
|
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
|
512
|
-
| `
|
|
513
|
-
| `
|
|
514
|
-
| `
|
|
515
|
-
| `
|
|
516
|
-
| `
|
|
517
|
-
| `
|
|
518
|
-
| `
|
|
519
|
-
| `
|
|
520
|
-
| `
|
|
521
|
-
| `
|
|
522
|
-
| `
|
|
523
|
-
| `
|
|
524
|
-
| `
|
|
525
|
-
| `
|
|
526
|
-
| `HARNESS_PIPELINE_VERSION` | No | `0` | **(Alpha)** Pipeline YAML version. Set to `"1"` to guide agents toward `pipeline_v1` (V1 YAML format) for pipeline operations. Both `pipeline` (V0) and `pipeline_v1` (V1) resource types are always available regardless of this setting |
|
|
527
|
-
|
|
509
|
+
| Variable | Required | Default | Description |
|
|
510
|
+
|----------|----------|---------|-------------|
|
|
511
|
+
| `HARNESS_API_KEY` | Yes | -- | Harness personal access token or service account token |
|
|
512
|
+
| `HARNESS_ACCOUNT_ID` | No | *(from PAT)* | Harness account identifier. Auto-extracted from PAT tokens; only needed for non-PAT API keys |
|
|
513
|
+
| `HARNESS_BASE_URL` | No | `https://app.harness.io` | Base URL (override for self-managed Harness) |
|
|
514
|
+
| `HARNESS_ORG` | No | `default` | Organization ID. Used when `org_id` is not specified per tool call. Agents can also discover orgs dynamically via `harness_list(resource_type="organization")` |
|
|
515
|
+
| `HARNESS_PROJECT` | No | -- | Project ID. Used when `project_id` is not specified per tool call. Agents can also discover projects dynamically via `harness_list(resource_type="project")` |
|
|
516
|
+
| `HARNESS_API_TIMEOUT_MS` | No | `30000` | HTTP request timeout in milliseconds |
|
|
517
|
+
| `HARNESS_MAX_RETRIES` | No | `3` | Retry count for transient failures (429, 5xx) |
|
|
518
|
+
| `HARNESS_MAX_BODY_SIZE_MB` | No | `10` | Max HTTP request body size in MB for `http` transport |
|
|
519
|
+
| `HARNESS_RATE_LIMIT_RPS` | No | `10` | Client-side request throttle (requests per second) to Harness APIs |
|
|
520
|
+
| `LOG_LEVEL` | No | `info` | Log verbosity: `debug`, `info`, `warn`, `error` |
|
|
521
|
+
| `HARNESS_TOOLSETS` | No | *(all)* | Comma-separated toolset list. Supports `+name` to add opt-in toolsets and `-name` to remove defaults (see [Toolset Filtering](#toolset-filtering)) |
|
|
522
|
+
| `HARNESS_READ_ONLY` | No | `false` | Block all mutating operations (create, update, delete, execute). Only list and get are allowed. Useful for shared/demo environments |
|
|
523
|
+
| `HARNESS_SKIP_ELICITATION` | No | `false` | Skip all elicitation confirmation prompts. When `true`, write and delete operations proceed without user approval — enabling fully autonomous agent workflows. See [Elicitation](#elicitation) |
|
|
524
|
+
| `HARNESS_ALLOW_HTTP` | No | `false` | Allow non-HTTPS `HARNESS_BASE_URL`. By default, the server enforces HTTPS for security. Set to `true` only for local development against a non-TLS Harness instance |
|
|
525
|
+
| `HARNESS_PIPELINE_VERSION` | No | `0` | **(Alpha)** Pipeline YAML version. Set to `"1"` to guide agents toward `pipeline_v1` (V1 YAML format) for pipeline operations. Both `pipeline` (V0) and `pipeline_v1` (V1) resource types are always available regardless of this setting |
|
|
528
526
|
|
|
529
527
|
### HTTPS Enforcement
|
|
530
528
|
|
|
@@ -923,7 +921,7 @@ Harness pipelines can be stored in three ways:
|
|
|
923
921
|
|
|
924
922
|
## Resource Types
|
|
925
923
|
|
|
926
|
-
|
|
924
|
+
163 resource types organized across 31 toolsets. Each resource type supports a subset of CRUD operations and optional execute actions.
|
|
927
925
|
|
|
928
926
|
### Platform
|
|
929
927
|
|
|
@@ -1356,7 +1354,36 @@ Inline PNG chart visualizations rendered from Harness data. These are metadata-o
|
|
|
1356
1354
|
|
|
1357
1355
|
## Toolset Filtering
|
|
1358
1356
|
|
|
1359
|
-
By default,
|
|
1357
|
+
By default, 30 of 31 toolsets are enabled. One toolset (`ai-evals`) is opt-in — excluded by default to avoid polluting the resource list for users who don't need it.
|
|
1358
|
+
|
|
1359
|
+
### Enabling opt-in toolsets
|
|
1360
|
+
|
|
1361
|
+
Use the `+` prefix to add opt-in toolsets to the defaults:
|
|
1362
|
+
|
|
1363
|
+
```bash
|
|
1364
|
+
# Enable ai-evals alongside all defaults
|
|
1365
|
+
HARNESS_TOOLSETS=+ai-evals
|
|
1366
|
+
```
|
|
1367
|
+
|
|
1368
|
+
### Removing default toolsets
|
|
1369
|
+
|
|
1370
|
+
Use the `-` prefix to exclude toolsets you don't need:
|
|
1371
|
+
|
|
1372
|
+
```bash
|
|
1373
|
+
# Remove chaos and ccm from defaults
|
|
1374
|
+
HARNESS_TOOLSETS=-chaos,-ccm
|
|
1375
|
+
```
|
|
1376
|
+
|
|
1377
|
+
### Combining + and -
|
|
1378
|
+
|
|
1379
|
+
```bash
|
|
1380
|
+
# Add ai-evals, remove chaos
|
|
1381
|
+
HARNESS_TOOLSETS=+ai-evals,-chaos
|
|
1382
|
+
```
|
|
1383
|
+
|
|
1384
|
+
### Explicit allowlist
|
|
1385
|
+
|
|
1386
|
+
An explicit comma-separated list (no prefixes) replaces the defaults entirely. Only the listed toolsets are enabled:
|
|
1360
1387
|
|
|
1361
1388
|
```bash
|
|
1362
1389
|
# Only expose pipelines, services, and connectors
|
|
@@ -1365,40 +1392,39 @@ HARNESS_TOOLSETS=pipelines,services,connectors
|
|
|
1365
1392
|
|
|
1366
1393
|
Available toolset names:
|
|
1367
1394
|
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
|
1371
|
-
| `
|
|
1372
|
-
| `
|
|
1373
|
-
| `
|
|
1374
|
-
| `
|
|
1375
|
-
| `
|
|
1376
|
-
| `
|
|
1377
|
-
| `
|
|
1378
|
-
| `
|
|
1379
|
-
| `
|
|
1380
|
-
| `
|
|
1381
|
-
| `
|
|
1382
|
-
| `
|
|
1383
|
-
| `
|
|
1384
|
-
| `
|
|
1385
|
-
| `
|
|
1386
|
-
| `
|
|
1387
|
-
| `
|
|
1388
|
-
| `
|
|
1389
|
-
| `
|
|
1390
|
-
| `
|
|
1391
|
-
| `
|
|
1392
|
-
| `
|
|
1393
|
-
| `
|
|
1394
|
-
| `
|
|
1395
|
-
| `
|
|
1396
|
-
| `
|
|
1397
|
-
| `
|
|
1398
|
-
| `
|
|
1399
|
-
| `
|
|
1400
|
-
| `
|
|
1401
|
-
|
|
1395
|
+
| Toolset | Resource Types |
|
|
1396
|
+
|---------|---------------|
|
|
1397
|
+
| `platform` | organization, project |
|
|
1398
|
+
| `pipelines` | pipeline, pipeline_v1, execution, trigger, pipeline_summary, input_set, approval_instance |
|
|
1399
|
+
| `agents` | agent, agent_run |
|
|
1400
|
+
| `services` | service |
|
|
1401
|
+
| `environments` | environment |
|
|
1402
|
+
| `connectors` | connector, connector_catalogue |
|
|
1403
|
+
| `infrastructure` | infrastructure |
|
|
1404
|
+
| `secrets` | secret |
|
|
1405
|
+
| `logs` | execution_log |
|
|
1406
|
+
| `audit` | audit_event |
|
|
1407
|
+
| `delegates` | delegate, delegate_token |
|
|
1408
|
+
| `repositories` | repository, branch, commit, file_content, tag, repo_rule, space_rule |
|
|
1409
|
+
| `registries` | registry, artifact, artifact_version, artifact_file |
|
|
1410
|
+
| `templates` | template |
|
|
1411
|
+
| `dashboards` | dashboard, dashboard_data |
|
|
1412
|
+
| `idp` | idp_entity, scorecard, scorecard_check, scorecard_stats, scorecard_check_stats, idp_score, idp_workflow, idp_tech_doc |
|
|
1413
|
+
| `pull-requests` | pull_request, pr_reviewer, pr_comment, pr_check, pr_activity |
|
|
1414
|
+
| `feature-flags` | fme_workspace, fme_environment, fme_feature_flag, fme_feature_flag_definition, fme_rollout_status, fme_rule_based_segment, fme_rule_based_segment_definition, feature_flag |
|
|
1415
|
+
| `gitops` | gitops_agent, gitops_application, gitops_cluster, gitops_repository, gitops_applicationset, gitops_repo_credential, gitops_app_event, gitops_pod_log, gitops_managed_resource, gitops_resource_action, gitops_dashboard, gitops_app_resource_tree |
|
|
1416
|
+
| `chaos` | chaos_experiment, chaos_probe, chaos_experiment_template, chaos_infrastructure, chaos_experiment_variable, chaos_experiment_run, chaos_loadtest, chaos_k8s_infrastructure, chaos_hub, chaos_fault, chaos_network_map, chaos_guard_condition, chaos_guard_rule, chaos_recommendation, chaos_risk |
|
|
1417
|
+
| `ccm` | cost_perspective, cost_breakdown, cost_timeseries, cost_summary, cost_recommendation, cost_anomaly, cost_anomaly_summary, cost_category, cost_account_overview, cost_filter_value, cost_recommendation_stats, cost_recommendation_detail, cost_commitment |
|
|
1418
|
+
| `sei` | sei_metric, sei_productivity_metric, sei_dora_metric, sei_team, sei_team_detail, sei_org_tree, sei_org_tree_detail, sei_business_alignment, sei_ai_usage, sei_ai_adoption, sei_ai_impact, sei_ai_raw_metric |
|
|
1419
|
+
| `scs` | scs_artifact_source, artifact_security, scs_artifact_component, scs_artifact_remediation, scs_chain_of_custody, scs_compliance_result, code_repo_security, scs_sbom |
|
|
1420
|
+
| `sto` | security_issue, security_issue_filter, security_exemption |
|
|
1421
|
+
| `access_control` | user, user_group, service_account, role, role_assignment, resource_group, permission |
|
|
1422
|
+
| `governance` | policy, policy_set, policy_evaluation |
|
|
1423
|
+
| `freeze` | freeze_window, global_freeze |
|
|
1424
|
+
| `overrides` | service_override |
|
|
1425
|
+
| `settings` | setting |
|
|
1426
|
+
| `visualizations` | visual_timeline, visual_stage_flow, visual_health_dashboard, visual_pie_chart, visual_bar_chart, visual_timeseries, visual_architecture |
|
|
1427
|
+
| `ai-evals` **(opt-in)** | eval_dataset, eval_dataset_item, evaluation, eval_run, eval_run_item, eval_run_by_eval, eval_metric, eval_metric_set, eval_metric_set_entry, eval_suite, eval_suite_evaluation, eval_suite_run, eval_target, eval_model, eval_annotation, eval_analytics, eval_git_settings, eval_registry_item |
|
|
1402
1428
|
|
|
1403
1429
|
## Architecture
|
|
1404
1430
|
|
|
@@ -1415,8 +1441,8 @@ Available toolset names:
|
|
|
1415
1441
|
|
|
|
1416
1442
|
+--------v---------+
|
|
1417
1443
|
| Registry | <-- Declarative resource definitions
|
|
1418
|
-
|
|
|
1419
|
-
|
|
|
1444
|
+
| 31 Toolsets | (data files, not code)
|
|
1445
|
+
| 163 Resource Types|
|
|
1420
1446
|
+--------+---------+
|
|
1421
1447
|
|
|
|
1422
1448
|
+--------v---------+
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export declare const VALID_SCHEMAS: (keyof typeof SCHEMAS)[];
|
|
14
|
-
export type SchemaName = keyof typeof SCHEMAS;
|
|
1
|
+
type V0SchemaKey = "pipeline" | "template" | "trigger";
|
|
2
|
+
type V1SchemaKey = "pipeline_v1" | "template_v1" | "trigger_v1" | "inputSet_v1" | "overlayInputSet_v1" | "service_v1" | "infra_v1";
|
|
3
|
+
type LocalSchemaKey = "agent-pipeline";
|
|
4
|
+
type AllSchemaKeys = V0SchemaKey | V1SchemaKey | LocalSchemaKey;
|
|
5
|
+
export declare const SCHEMAS: Record<AllSchemaKeys, Record<string, any>>;
|
|
6
|
+
export declare const VALID_SCHEMAS: AllSchemaKeys[];
|
|
7
|
+
export type SchemaName = AllSchemaKeys;
|
|
8
|
+
export declare const V0_SCHEMA_KEYS: V0SchemaKey[];
|
|
9
|
+
export declare const V1_SCHEMA_KEYS: V1SchemaKey[];
|
|
10
|
+
export {};
|
|
15
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/data/schemas/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/data/schemas/index.ts"],"names":[],"mappings":"AAcA,KAAK,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CAAC;AACvD,KAAK,WAAW,GAAG,aAAa,GAAG,aAAa,GAAG,YAAY,GAAG,aAAa,GAAG,oBAAoB,GAAG,YAAY,GAAG,UAAU,CAAC;AACnI,KAAK,cAAc,GAAG,gBAAgB,CAAC;AACvC,KAAK,aAAa,GAAG,WAAW,GAAG,WAAW,GAAG,cAAc,CAAC;AAEhE,eAAO,MAAM,OAAO,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAY9D,CAAC;AAEF,eAAO,MAAM,aAAa,EAA2B,aAAa,EAAE,CAAC;AACrE,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC;AAEvC,eAAO,MAAM,cAAc,EAAE,WAAW,EAAwC,CAAC;AACjF,eAAO,MAAM,cAAc,EAAE,WAAW,EAAgH,CAAC"}
|
|
@@ -1,15 +1,30 @@
|
|
|
1
|
-
// Auto-generated
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import template from "./template.js";
|
|
5
|
-
import trigger from "./trigger.js";
|
|
6
|
-
import
|
|
1
|
+
// Auto-generated — do not edit manually. Run `pnpm sync-schemas` to regenerate.
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
import pipeline from "./v0/pipeline.js";
|
|
4
|
+
import template from "./v0/template.js";
|
|
5
|
+
import trigger from "./v0/trigger.js";
|
|
6
|
+
import pipelineV1 from "./v1/pipeline.js";
|
|
7
|
+
import templateV1 from "./v1/template.js";
|
|
8
|
+
import triggerV1 from "./v1/trigger.js";
|
|
9
|
+
import inputSetV1 from "./v1/inputSet.js";
|
|
10
|
+
import overlayInputSetV1 from "./v1/overlayInputSet.js";
|
|
11
|
+
import serviceV1 from "./v1/service.js";
|
|
12
|
+
import infraV1 from "./v1/infra.js";
|
|
13
|
+
import agentPipeline from "./local/agent-pipeline.js";
|
|
7
14
|
export const SCHEMAS = {
|
|
8
|
-
pipeline,
|
|
15
|
+
"pipeline": pipeline,
|
|
16
|
+
"template": template,
|
|
17
|
+
"trigger": trigger,
|
|
9
18
|
"pipeline_v1": pipelineV1,
|
|
10
|
-
|
|
11
|
-
|
|
19
|
+
"template_v1": templateV1,
|
|
20
|
+
"trigger_v1": triggerV1,
|
|
21
|
+
"inputSet_v1": inputSetV1,
|
|
22
|
+
"overlayInputSet_v1": overlayInputSetV1,
|
|
23
|
+
"service_v1": serviceV1,
|
|
24
|
+
"infra_v1": infraV1,
|
|
12
25
|
"agent-pipeline": agentPipeline,
|
|
13
26
|
};
|
|
14
27
|
export const VALID_SCHEMAS = Object.keys(SCHEMAS);
|
|
28
|
+
export const V0_SCHEMA_KEYS = ["pipeline", "template", "trigger"];
|
|
29
|
+
export const V1_SCHEMA_KEYS = ["pipeline_v1", "template_v1", "trigger_v1", "inputSet_v1", "overlayInputSet_v1", "service_v1", "infra_v1"];
|
|
15
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/schemas/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/schemas/index.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,cAAc;AACd,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AACxC,OAAO,QAAQ,MAAM,kBAAkB,CAAC;AACxC,OAAO,OAAO,MAAM,iBAAiB,CAAC;AACtC,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AACxD,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,aAAa,MAAM,2BAA2B,CAAC;AAOtD,MAAM,CAAC,MAAM,OAAO,GAA+C;IACjE,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE,OAAO;IAClB,aAAa,EAAE,UAAU;IACzB,aAAa,EAAE,UAAU;IACzB,YAAY,EAAE,SAAS;IACvB,aAAa,EAAE,UAAU;IACzB,oBAAoB,EAAE,iBAAiB;IACvC,YAAY,EAAE,SAAS;IACvB,UAAU,EAAE,OAAO;IACnB,gBAAgB,EAAE,aAAa;CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAoB,CAAC;AAGrE,MAAM,CAAC,MAAM,cAAc,GAAkB,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;AACjF,MAAM,CAAC,MAAM,cAAc,GAAkB,CAAC,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,oBAAoB,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-pipeline.d.ts","sourceRoot":"","sources":["../../../../src/data/schemas/local/agent-pipeline.ts"],"names":[],"mappings":"AA00JA,QAAA,MAAM,kBAAkB;;;;;CAMvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|