harness-mcp-v2 3.2.14 → 3.2.16
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 +13 -10
- package/build/data/examples/pipeline-v1.d.ts.map +1 -1
- package/build/data/examples/pipeline-v1.js +7 -32
- package/build/data/examples/pipeline-v1.js.map +1 -1
- package/build/data/schemas/v0/pipeline.d.ts.map +1 -1
- package/build/data/schemas/v0/pipeline.js +211 -4
- package/build/data/schemas/v0/pipeline.js.map +1 -1
- package/build/data/schemas/v0/template.d.ts.map +1 -1
- package/build/data/schemas/v0/template.js +295 -4
- package/build/data/schemas/v0/template.js.map +1 -1
- package/build/data/schemas/v1/pipeline.d.ts.map +1 -1
- package/build/data/schemas/v1/pipeline.js +18 -0
- package/build/data/schemas/v1/pipeline.js.map +1 -1
- package/build/data/schemas/v1/template.d.ts.map +1 -1
- package/build/data/schemas/v1/template.js +19 -0
- package/build/data/schemas/v1/template.js.map +1 -1
- package/build/prompts/summarize-pipeline.d.ts.map +1 -1
- package/build/prompts/summarize-pipeline.js +41 -27
- package/build/prompts/summarize-pipeline.js.map +1 -1
- package/build/registry/extractors.d.ts +13 -0
- package/build/registry/extractors.d.ts.map +1 -1
- package/build/registry/extractors.js +42 -0
- package/build/registry/extractors.js.map +1 -1
- package/build/registry/toolsets/infrastructure.d.ts.map +1 -1
- package/build/registry/toolsets/infrastructure.js +43 -6
- package/build/registry/toolsets/infrastructure.js.map +1 -1
- package/build/registry/toolsets/sto.d.ts.map +1 -1
- package/build/registry/toolsets/sto.js +88 -1
- package/build/registry/toolsets/sto.js.map +1 -1
- package/build/tools/diagnose/pipeline.d.ts.map +1 -1
- package/build/tools/diagnose/pipeline.js +4 -1
- package/build/tools/diagnose/pipeline.js.map +1 -1
- package/build/tools/entity-schema/cache-keys.d.ts +2 -0
- package/build/tools/entity-schema/cache-keys.d.ts.map +1 -1
- package/build/tools/entity-schema/cache-keys.js +3 -0
- package/build/tools/entity-schema/cache-keys.js.map +1 -1
- package/build/tools/entity-schema/live.d.ts +8 -0
- package/build/tools/entity-schema/live.d.ts.map +1 -1
- package/build/tools/entity-schema/live.js +32 -5
- package/build/tools/entity-schema/live.js.map +1 -1
- package/build/tools/entity-schema/types.d.ts +2 -0
- package/build/tools/entity-schema/types.d.ts.map +1 -1
- package/build/tools/harness-schema.d.ts.map +1 -1
- package/build/tools/harness-schema.js +7 -0
- package/build/tools/harness-schema.js.map +1 -1
- package/build/utils/body-normalizer.d.ts +25 -0
- package/build/utils/body-normalizer.d.ts.map +1 -1
- package/build/utils/body-normalizer.js +45 -3
- package/build/utils/body-normalizer.js.map +1 -1
- package/npm-shrinkwrap.json +211 -270
- package/package.json +9 -7
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
## Harness MCP Server 2.0
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://mcptoplist.com/server/glama%2Fharness%2Fmcp-server)
|
|
4
|
+
|
|
5
|
+
An MCP (Model Context Protocol) server that gives AI agents full access to the Harness.io platform through 11 consolidated tools and 216 resource types.
|
|
4
6
|
|
|
5
7
|
## Why Use This MCP Server
|
|
6
8
|
|
|
@@ -8,7 +10,7 @@ Most MCP servers map one tool per API endpoint. For a platform as broad as Harne
|
|
|
8
10
|
|
|
9
11
|
This server is built differently:
|
|
10
12
|
|
|
11
|
-
- **11 tools,
|
|
13
|
+
- **11 tools, 216 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 11 tools instead of hundreds.
|
|
12
14
|
- **Full platform coverage.** 37 default toolsets spanning CI/CD, GitOps, Feature Flags, Cloud Cost Management, Security Testing, Chaos Engineering, Database DevOps, Internal Developer Portal, Software Supply Chain, Infrastructure as Code Management, Governance, Service Overrides, Knowledge Graph, and more. Opt-in Ansible coverage is available when you need inventory and playbook data.
|
|
13
15
|
- **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
16
|
- **34 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.
|
|
@@ -1197,7 +1199,7 @@ Harness pipelines can be stored in three ways:
|
|
|
1197
1199
|
|
|
1198
1200
|
## Resource Types
|
|
1199
1201
|
|
|
1200
|
-
|
|
1202
|
+
216 resource types organized across 37 toolsets. Each resource type supports a subset of CRUD operations and optional execute actions.
|
|
1201
1203
|
|
|
1202
1204
|
### Platform
|
|
1203
1205
|
|
|
@@ -1599,11 +1601,12 @@ SEI resources are consolidated for token efficiency. Use `metric` or `aspect` pa
|
|
|
1599
1601
|
### Security Testing Orchestration (STO)
|
|
1600
1602
|
|
|
1601
1603
|
|
|
1602
|
-
| Resource Type
|
|
1603
|
-
|
|
|
1604
|
-
| `security_issue`
|
|
1605
|
-
| `security_issue_filter`
|
|
1606
|
-
| `security_exemption`
|
|
1604
|
+
| Resource Type | List | Get | Create | Update | Delete | Execute Actions |
|
|
1605
|
+
| ------------------------- | ---- | --- | ------ | ------ | ------ | ------------------------------ |
|
|
1606
|
+
| `security_issue` | x | | | | | |
|
|
1607
|
+
| `security_issue_filter` | x | | | | | |
|
|
1608
|
+
| `security_exemption` | x | | x | | | `approve`, `reject` |
|
|
1609
|
+
| `sast_remediation_diff` | x | | | | | |
|
|
1607
1610
|
|
|
1608
1611
|
`security_exemption` create is a `high_write` operation. The server derives `requester_id` from the authenticated PAT, sets `exemptFutureOccurrences=true`, and defaults `duration_days` to 30 when not provided. For listing exemptions, pass a small explicit page size (for example `filters: { "status": "Pending", "size": 5 }`) and follow the `_nextPageHint` returned in each response.
|
|
1609
1612
|
|
|
@@ -1807,7 +1810,7 @@ Available toolset names:
|
|
|
1807
1810
|
| `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 |
|
|
1808
1811
|
| `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 |
|
|
1809
1812
|
| `scs` | scs_artifact_source, artifact_security, scs_artifact_component, scs_artifact_remediation, scs_chain_of_custody, scs_compliance_result, code_repo_security, scs_sbom |
|
|
1810
|
-
| `sto` | security_issue, security_issue_filter, security_exemption
|
|
1813
|
+
| `sto` | security_issue, security_issue_filter, security_exemption, sast_remediation_diff |
|
|
1811
1814
|
| `dbops` | database_schema, database_instance, database_snapshot_object, database_llm_authoring_pipeline |
|
|
1812
1815
|
| `access_control` | user, user_group, service_account, role, role_assignment, resource_group, permission |
|
|
1813
1816
|
| `governance` | policy, policy_set, policy_evaluation |
|
|
@@ -1837,7 +1840,7 @@ Available toolset names:
|
|
|
1837
1840
|
+--------v---------+
|
|
1838
1841
|
| Registry | <-- Declarative resource definitions
|
|
1839
1842
|
| 37 Toolsets | (data files, not code)
|
|
1840
|
-
|
|
|
1843
|
+
| 216 Resource Types|
|
|
1841
1844
|
+--------+---------+
|
|
1842
1845
|
|
|
|
1843
1846
|
+--------v---------+
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline-v1.d.ts","sourceRoot":"","sources":["../../../src/data/examples/pipeline-v1.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,QAAA,MAAM,QAAQ,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"pipeline-v1.d.ts","sourceRoot":"","sources":["../../../src/data/examples/pipeline-v1.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,QAAA,MAAM,QAAQ,EAAE,eAAe,EAwrC9B,CAAC;AAGF,eAAe,QAAQ,CAAC"}
|
|
@@ -13,8 +13,7 @@ const examples = [
|
|
|
13
13
|
stages:
|
|
14
14
|
- id: build
|
|
15
15
|
name: build
|
|
16
|
-
runtime:
|
|
17
|
-
shell: true
|
|
16
|
+
runtime: cloud
|
|
18
17
|
steps:
|
|
19
18
|
- id: build
|
|
20
19
|
name: Build
|
|
@@ -58,8 +57,6 @@ const examples = [
|
|
|
58
57
|
automount-service-token: true
|
|
59
58
|
connector: account.k8s_build_cluster
|
|
60
59
|
namespace: harness-builds
|
|
61
|
-
node: {}
|
|
62
|
-
os: Linux
|
|
63
60
|
steps:
|
|
64
61
|
- id: code_review
|
|
65
62
|
name: Code Review
|
|
@@ -95,7 +92,6 @@ const examples = [
|
|
|
95
92
|
- environment:
|
|
96
93
|
deploy-to: shared
|
|
97
94
|
id: dev
|
|
98
|
-
name: dev
|
|
99
95
|
id: Helm_Deploy
|
|
100
96
|
name: Helm Deploy
|
|
101
97
|
on-failure:
|
|
@@ -152,8 +148,6 @@ const examples = [
|
|
|
152
148
|
automount-service-token: true
|
|
153
149
|
connector: account.k8s_build_cluster
|
|
154
150
|
namespace: harness-builds
|
|
155
|
-
node: {}
|
|
156
|
-
os: Linux
|
|
157
151
|
steps:
|
|
158
152
|
- id: Get_Commit_Details
|
|
159
153
|
name: Get Commit Details
|
|
@@ -215,8 +209,7 @@ const examples = [
|
|
|
215
209
|
enabled: true
|
|
216
210
|
id: Plan_Dev
|
|
217
211
|
name: Plan Dev
|
|
218
|
-
runtime:
|
|
219
|
-
shell: true
|
|
212
|
+
runtime: cloud
|
|
220
213
|
steps:
|
|
221
214
|
- id: Terraform_Plan
|
|
222
215
|
name: Terraform Plan
|
|
@@ -245,8 +238,7 @@ const examples = [
|
|
|
245
238
|
- kubernetes-delegate
|
|
246
239
|
id: Deploy_Prod
|
|
247
240
|
name: Deploy Prod
|
|
248
|
-
runtime:
|
|
249
|
-
shell: true
|
|
241
|
+
runtime: cloud
|
|
250
242
|
steps:
|
|
251
243
|
- id: Terraform_Plan
|
|
252
244
|
name: Terraform Plan
|
|
@@ -317,7 +309,6 @@ const examples = [
|
|
|
317
309
|
environment:
|
|
318
310
|
deploy-to: nonprod
|
|
319
311
|
id: account.deploy_util
|
|
320
|
-
name: account.deploy_util
|
|
321
312
|
id: deployment_setup
|
|
322
313
|
if: <+Always>
|
|
323
314
|
name: deployment-setup
|
|
@@ -379,7 +370,6 @@ const examples = [
|
|
|
379
370
|
- environment:
|
|
380
371
|
deploy-to: ecs_prod
|
|
381
372
|
id: prod
|
|
382
|
-
name: prod
|
|
383
373
|
id: prod
|
|
384
374
|
if: <+OnPipelineSuccess>
|
|
385
375
|
name: prod
|
|
@@ -419,7 +409,6 @@ const examples = [
|
|
|
419
409
|
environment:
|
|
420
410
|
deploy-to: dev_cluster
|
|
421
411
|
id: dev
|
|
422
|
-
name: dev
|
|
423
412
|
id: Deploy_to_dev
|
|
424
413
|
inputs:
|
|
425
414
|
BuildVersion:
|
|
@@ -509,7 +498,6 @@ const examples = [
|
|
|
509
498
|
- environment:
|
|
510
499
|
deploy-to: pr
|
|
511
500
|
id: pr
|
|
512
|
-
name: pr
|
|
513
501
|
id: Delete_PR
|
|
514
502
|
name: Delete PR
|
|
515
503
|
on-failure:
|
|
@@ -553,7 +541,6 @@ const examples = [
|
|
|
553
541
|
- environment:
|
|
554
542
|
deploy-to: production_cluster
|
|
555
543
|
id: prod
|
|
556
|
-
name: prod
|
|
557
544
|
id: Rolling_Deploy
|
|
558
545
|
name: Rolling Deploy
|
|
559
546
|
on-failure:
|
|
@@ -613,7 +600,6 @@ const examples = [
|
|
|
613
600
|
- environment:
|
|
614
601
|
deploy-to: production_cluster
|
|
615
602
|
id: prod
|
|
616
|
-
name: prod
|
|
617
603
|
id: Canary_Deploy
|
|
618
604
|
name: Canary Deploy
|
|
619
605
|
on-failure:
|
|
@@ -705,7 +691,6 @@ const examples = [
|
|
|
705
691
|
- environment:
|
|
706
692
|
deploy-to: ecs_production
|
|
707
693
|
id: prod
|
|
708
|
-
name: prod
|
|
709
694
|
id: Deploy_Prod
|
|
710
695
|
name: Deploy Prod
|
|
711
696
|
on-failure:
|
|
@@ -760,8 +745,7 @@ const examples = [
|
|
|
760
745
|
enabled: true
|
|
761
746
|
id: Build_Package
|
|
762
747
|
name: Build & Package
|
|
763
|
-
runtime:
|
|
764
|
-
shell: true
|
|
748
|
+
runtime: cloud
|
|
765
749
|
steps:
|
|
766
750
|
- id: install_deps
|
|
767
751
|
name: Install Dependencies
|
|
@@ -786,7 +770,6 @@ const examples = [
|
|
|
786
770
|
- environment:
|
|
787
771
|
deploy-to: lambda_<+pipeline.variables.stage>
|
|
788
772
|
id: <+pipeline.variables.stage>
|
|
789
|
-
name: <+pipeline.variables.stage>
|
|
790
773
|
id: Deploy_Lambda
|
|
791
774
|
name: Deploy Lambda
|
|
792
775
|
on-failure:
|
|
@@ -845,7 +828,6 @@ const examples = [
|
|
|
845
828
|
- environment:
|
|
846
829
|
deploy-to: tas_production
|
|
847
830
|
id: prod
|
|
848
|
-
name: prod
|
|
849
831
|
id: TAS_Deploy
|
|
850
832
|
name: TAS Deploy
|
|
851
833
|
on-failure:
|
|
@@ -921,8 +903,7 @@ const examples = [
|
|
|
921
903
|
enabled: true
|
|
922
904
|
id: Build
|
|
923
905
|
name: Build
|
|
924
|
-
runtime:
|
|
925
|
-
shell: true
|
|
906
|
+
runtime: cloud
|
|
926
907
|
steps:
|
|
927
908
|
- id: build_app
|
|
928
909
|
name: Build App
|
|
@@ -948,7 +929,6 @@ const examples = [
|
|
|
948
929
|
- environment:
|
|
949
930
|
deploy-to: azure_production
|
|
950
931
|
id: prod
|
|
951
|
-
name: prod
|
|
952
932
|
id: Deploy_Prod
|
|
953
933
|
name: Deploy Prod
|
|
954
934
|
on-failure:
|
|
@@ -1032,7 +1012,6 @@ const examples = [
|
|
|
1032
1012
|
- environment:
|
|
1033
1013
|
deploy-to: on_prem_servers
|
|
1034
1014
|
id: prod
|
|
1035
|
-
name: prod
|
|
1036
1015
|
id: Deploy
|
|
1037
1016
|
name: Deploy
|
|
1038
1017
|
on-failure:
|
|
@@ -1093,8 +1072,7 @@ const examples = [
|
|
|
1093
1072
|
stages:
|
|
1094
1073
|
- id: Build
|
|
1095
1074
|
name: Build
|
|
1096
|
-
runtime:
|
|
1097
|
-
shell: true
|
|
1075
|
+
runtime: cloud
|
|
1098
1076
|
steps:
|
|
1099
1077
|
- id: build_artifact
|
|
1100
1078
|
name: Build Artifact
|
|
@@ -1111,7 +1089,6 @@ const examples = [
|
|
|
1111
1089
|
- environment:
|
|
1112
1090
|
deploy-to: us_east_cluster
|
|
1113
1091
|
id: us_east
|
|
1114
|
-
name: us-east
|
|
1115
1092
|
id: Deploy_US_East
|
|
1116
1093
|
name: Deploy US-East
|
|
1117
1094
|
on-failure:
|
|
@@ -1139,7 +1116,6 @@ const examples = [
|
|
|
1139
1116
|
- environment:
|
|
1140
1117
|
deploy-to: eu_west_cluster
|
|
1141
1118
|
id: eu_west
|
|
1142
|
-
name: eu-west
|
|
1143
1119
|
id: Deploy_EU_West
|
|
1144
1120
|
name: Deploy EU-West
|
|
1145
1121
|
on-failure:
|
|
@@ -1182,8 +1158,7 @@ const examples = [
|
|
|
1182
1158
|
enabled: true
|
|
1183
1159
|
id: Update_Manifests
|
|
1184
1160
|
name: Update Manifests
|
|
1185
|
-
runtime:
|
|
1186
|
-
shell: true
|
|
1161
|
+
runtime: cloud
|
|
1187
1162
|
steps:
|
|
1188
1163
|
- id: update_image_tag
|
|
1189
1164
|
name: Update Image Tag
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline-v1.js","sourceRoot":"","sources":["../../../src/data/examples/pipeline-v1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAG9C,MAAM,QAAQ,GAAsB;IAClC;QACE,IAAI,EAAE,YAAY;QAClB,YAA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EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAsDY;KACnB;IACD;QACE,IAAI,EAAE,0BAA0B;QAChC,YAAY,EAAE,aAAa;QAC3B,WAAW,EAAE,kFAAkF;QAC/F,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,CAAC;QACrE,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA2EmB;KAC1B;IACD;QACE,IAAI,EAAE,gBAAgB;QACtB,YAAY,EAAE,aAAa;QAC3B,WAAW,EAAE,8EAA8E;QAC3F,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,CAAC;QAC5E,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2DO;KACd;CACF,CAAC;AAEF,gBAAgB,CAAC,QAAQ,CAAC,CAAC;AAC3B,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../../../src/data/schemas/v0/pipeline.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../../../src/data/schemas/v0/pipeline.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAm7uH/B,CAAC;AACF,eAAe,MAAM,CAAC"}
|
|
@@ -5601,6 +5601,173 @@ const schema = {
|
|
|
5601
5601
|
],
|
|
5602
5602
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
5603
5603
|
},
|
|
5604
|
+
"ChangeAdvisorStepNode": {
|
|
5605
|
+
"title": "ChangeAdvisorStepNode",
|
|
5606
|
+
"type": "object",
|
|
5607
|
+
"required": [
|
|
5608
|
+
"identifier",
|
|
5609
|
+
"name",
|
|
5610
|
+
"spec",
|
|
5611
|
+
"type"
|
|
5612
|
+
],
|
|
5613
|
+
"properties": {
|
|
5614
|
+
"description": {
|
|
5615
|
+
"type": "string",
|
|
5616
|
+
"desc": "This is the description for ChangeAdvisorStepNode"
|
|
5617
|
+
},
|
|
5618
|
+
"enforce": {
|
|
5619
|
+
"$ref": "#/definitions/pipeline/common/PolicyConfig"
|
|
5620
|
+
},
|
|
5621
|
+
"failureStrategies": {
|
|
5622
|
+
"oneOf": [
|
|
5623
|
+
{
|
|
5624
|
+
"type": "array",
|
|
5625
|
+
"items": {
|
|
5626
|
+
"$ref": "#/definitions/pipeline/common/FailureStrategyConfig"
|
|
5627
|
+
}
|
|
5628
|
+
},
|
|
5629
|
+
{
|
|
5630
|
+
"type": "string",
|
|
5631
|
+
"pattern": "^<\\+input>$",
|
|
5632
|
+
"minLength": 1
|
|
5633
|
+
}
|
|
5634
|
+
]
|
|
5635
|
+
},
|
|
5636
|
+
"identifier": {
|
|
5637
|
+
"type": "string",
|
|
5638
|
+
"pattern": "^[a-zA-Z_][0-9a-zA-Z_]{0,127}$"
|
|
5639
|
+
},
|
|
5640
|
+
"name": {
|
|
5641
|
+
"type": "string",
|
|
5642
|
+
"pattern": "^[a-zA-Z_0-9-.][-0-9a-zA-Z_\\s.]{0,127}$"
|
|
5643
|
+
},
|
|
5644
|
+
"strategy": {
|
|
5645
|
+
"oneOf": [
|
|
5646
|
+
{
|
|
5647
|
+
"$ref": "#/definitions/pipeline/common/StrategyConfig"
|
|
5648
|
+
},
|
|
5649
|
+
{
|
|
5650
|
+
"type": "string",
|
|
5651
|
+
"pattern": "^<\\+input>$",
|
|
5652
|
+
"minLength": 1
|
|
5653
|
+
}
|
|
5654
|
+
]
|
|
5655
|
+
},
|
|
5656
|
+
"timeout": {
|
|
5657
|
+
"type": "string",
|
|
5658
|
+
"pattern": "^(([1-9])+\\d+[s])|(((([1-9])+\\d*[mhwd])+([\\s]?\\d+[smhwd])*)|(.*<\\+.*>(?!.*\\.executionInput\\(\\)).*)|(^$))$"
|
|
5659
|
+
},
|
|
5660
|
+
"type": {
|
|
5661
|
+
"type": "string",
|
|
5662
|
+
"enum": [
|
|
5663
|
+
"ChangeAdvisor"
|
|
5664
|
+
]
|
|
5665
|
+
},
|
|
5666
|
+
"when": {
|
|
5667
|
+
"oneOf": [
|
|
5668
|
+
{
|
|
5669
|
+
"$ref": "#/definitions/pipeline/common/StepWhenCondition"
|
|
5670
|
+
},
|
|
5671
|
+
{
|
|
5672
|
+
"type": "string",
|
|
5673
|
+
"pattern": "^<\\+input>$",
|
|
5674
|
+
"minLength": 1
|
|
5675
|
+
}
|
|
5676
|
+
]
|
|
5677
|
+
}
|
|
5678
|
+
},
|
|
5679
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5680
|
+
"allOf": [
|
|
5681
|
+
{
|
|
5682
|
+
"if": {
|
|
5683
|
+
"properties": {
|
|
5684
|
+
"type": {
|
|
5685
|
+
"const": "ChangeAdvisor"
|
|
5686
|
+
}
|
|
5687
|
+
}
|
|
5688
|
+
},
|
|
5689
|
+
"then": {
|
|
5690
|
+
"properties": {
|
|
5691
|
+
"spec": {
|
|
5692
|
+
"$ref": "#/definitions/pipeline/steps/custom/ChangeAdvisorStepInfo"
|
|
5693
|
+
}
|
|
5694
|
+
}
|
|
5695
|
+
}
|
|
5696
|
+
}
|
|
5697
|
+
]
|
|
5698
|
+
},
|
|
5699
|
+
"ChangeAdvisorStepInfo": {
|
|
5700
|
+
"title": "ChangeAdvisorStepInfo",
|
|
5701
|
+
"allOf": [
|
|
5702
|
+
{
|
|
5703
|
+
"$ref": "#/definitions/pipeline/common/StepSpecType"
|
|
5704
|
+
},
|
|
5705
|
+
{
|
|
5706
|
+
"type": "object",
|
|
5707
|
+
"properties": {
|
|
5708
|
+
"mode": {
|
|
5709
|
+
"description": "Advisory mode for the Change Advisor step (e.g. advisory).",
|
|
5710
|
+
"oneOf": [
|
|
5711
|
+
{
|
|
5712
|
+
"$ref": "#/definitions/pipeline/steps/common/string-without-jexl"
|
|
5713
|
+
},
|
|
5714
|
+
{
|
|
5715
|
+
"$ref": "#/definitions/pipeline/steps/common/common-jexl"
|
|
5716
|
+
}
|
|
5717
|
+
]
|
|
5718
|
+
},
|
|
5719
|
+
"policyPack": {
|
|
5720
|
+
"description": "Policy pack to evaluate the change against (e.g. balanced).",
|
|
5721
|
+
"oneOf": [
|
|
5722
|
+
{
|
|
5723
|
+
"$ref": "#/definitions/pipeline/steps/common/string-without-jexl"
|
|
5724
|
+
},
|
|
5725
|
+
{
|
|
5726
|
+
"$ref": "#/definitions/pipeline/steps/common/common-jexl"
|
|
5727
|
+
}
|
|
5728
|
+
]
|
|
5729
|
+
},
|
|
5730
|
+
"timeoutMinutes": {
|
|
5731
|
+
"description": "Maximum time in minutes to wait for the advisory call.",
|
|
5732
|
+
"oneOf": [
|
|
5733
|
+
{
|
|
5734
|
+
"type": "integer"
|
|
5735
|
+
},
|
|
5736
|
+
{
|
|
5737
|
+
"$ref": "#/definitions/pipeline/steps/common/common-jexl"
|
|
5738
|
+
}
|
|
5739
|
+
]
|
|
5740
|
+
},
|
|
5741
|
+
"presets": {
|
|
5742
|
+
"description": "Preset identifiers applied to the advisory evaluation.",
|
|
5743
|
+
"oneOf": [
|
|
5744
|
+
{
|
|
5745
|
+
"type": "array",
|
|
5746
|
+
"items": {
|
|
5747
|
+
"type": "string"
|
|
5748
|
+
}
|
|
5749
|
+
},
|
|
5750
|
+
{
|
|
5751
|
+
"$ref": "#/definitions/pipeline/steps/common/common-jexl"
|
|
5752
|
+
}
|
|
5753
|
+
]
|
|
5754
|
+
},
|
|
5755
|
+
"env": {
|
|
5756
|
+
"description": "Target environment identifier for the change.",
|
|
5757
|
+
"oneOf": [
|
|
5758
|
+
{
|
|
5759
|
+
"$ref": "#/definitions/pipeline/steps/common/string-without-jexl"
|
|
5760
|
+
},
|
|
5761
|
+
{
|
|
5762
|
+
"$ref": "#/definitions/pipeline/steps/common/common-jexl"
|
|
5763
|
+
}
|
|
5764
|
+
]
|
|
5765
|
+
}
|
|
5766
|
+
}
|
|
5767
|
+
}
|
|
5768
|
+
],
|
|
5769
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
5770
|
+
},
|
|
5604
5771
|
"HarnessStore": {
|
|
5605
5772
|
"title": "HarnessStore",
|
|
5606
5773
|
"allOf": [
|
|
@@ -55278,6 +55445,9 @@ const schema = {
|
|
|
55278
55445
|
},
|
|
55279
55446
|
"instructions": {
|
|
55280
55447
|
"type": "string"
|
|
55448
|
+
},
|
|
55449
|
+
"llmConnectorRef": {
|
|
55450
|
+
"type": "string"
|
|
55281
55451
|
}
|
|
55282
55452
|
}
|
|
55283
55453
|
}
|
|
@@ -55313,6 +55483,9 @@ const schema = {
|
|
|
55313
55483
|
},
|
|
55314
55484
|
"instructions": {
|
|
55315
55485
|
"type": "string"
|
|
55486
|
+
},
|
|
55487
|
+
"llmConnectorRef": {
|
|
55488
|
+
"type": "string"
|
|
55316
55489
|
}
|
|
55317
55490
|
}
|
|
55318
55491
|
}
|
|
@@ -83614,6 +83787,18 @@ const schema = {
|
|
|
83614
83787
|
}
|
|
83615
83788
|
]
|
|
83616
83789
|
},
|
|
83790
|
+
"ignoreMissingValues": {
|
|
83791
|
+
"oneOf": [
|
|
83792
|
+
{
|
|
83793
|
+
"type": "boolean"
|
|
83794
|
+
},
|
|
83795
|
+
{
|
|
83796
|
+
"type": "string",
|
|
83797
|
+
"pattern": "(<\\+.+>.*)",
|
|
83798
|
+
"minLength": 1
|
|
83799
|
+
}
|
|
83800
|
+
]
|
|
83801
|
+
},
|
|
83617
83802
|
"skipPipelineVariables": {
|
|
83618
83803
|
"oneOf": [
|
|
83619
83804
|
{
|
|
@@ -100237,9 +100422,8 @@ const schema = {
|
|
|
100237
100422
|
]
|
|
100238
100423
|
},
|
|
100239
100424
|
"serviceReferences": {
|
|
100240
|
-
"description": "Chaos services linked to the templated load test run (template mode).
|
|
100425
|
+
"description": "Chaos services linked to the templated load test run (template mode). Optional in schema; required at runtime when CHAOS_RISK_SERVICES_ENABLED is enabled.",
|
|
100241
100426
|
"type": "array",
|
|
100242
|
-
"minItems": 1,
|
|
100243
100427
|
"items": {
|
|
100244
100428
|
"type": "string",
|
|
100245
100429
|
"minLength": 1
|
|
@@ -100304,8 +100488,7 @@ const schema = {
|
|
|
100304
100488
|
"identifier",
|
|
100305
100489
|
"revision",
|
|
100306
100490
|
"infraReference",
|
|
100307
|
-
"environmentReference"
|
|
100308
|
-
"serviceReferences"
|
|
100491
|
+
"environmentReference"
|
|
100309
100492
|
]
|
|
100310
100493
|
},
|
|
100311
100494
|
"else": {
|
|
@@ -106556,6 +106739,9 @@ const schema = {
|
|
|
106556
106739
|
{
|
|
106557
106740
|
"$ref": "#/definitions/pipeline/steps/custom/RONotifyStepNode"
|
|
106558
106741
|
},
|
|
106742
|
+
{
|
|
106743
|
+
"$ref": "#/definitions/pipeline/steps/custom/ChangeAdvisorStepNode"
|
|
106744
|
+
},
|
|
106559
106745
|
{
|
|
106560
106746
|
"$ref": "#/definitions/pipeline/steps/common/IdpActionStepNode"
|
|
106561
106747
|
}
|
|
@@ -108150,6 +108336,9 @@ const schema = {
|
|
|
108150
108336
|
{
|
|
108151
108337
|
"$ref": "#/definitions/pipeline/steps/custom/RONotifyStepNode"
|
|
108152
108338
|
},
|
|
108339
|
+
{
|
|
108340
|
+
"$ref": "#/definitions/pipeline/steps/custom/ChangeAdvisorStepNode"
|
|
108341
|
+
},
|
|
108153
108342
|
{
|
|
108154
108343
|
"$ref": "#/definitions/pipeline/steps/cd/HelmDeleteStepNode"
|
|
108155
108344
|
},
|
|
@@ -117942,6 +118131,9 @@ const schema = {
|
|
|
117942
118131
|
{
|
|
117943
118132
|
"$ref": "#/definitions/pipeline/steps/custom/RONotifyStepNode"
|
|
117944
118133
|
},
|
|
118134
|
+
{
|
|
118135
|
+
"$ref": "#/definitions/pipeline/steps/custom/ChangeAdvisorStepNode"
|
|
118136
|
+
},
|
|
117945
118137
|
{
|
|
117946
118138
|
"$ref": "#/definitions/pipeline/steps/common/SastScanNode"
|
|
117947
118139
|
},
|
|
@@ -118565,6 +118757,9 @@ const schema = {
|
|
|
118565
118757
|
{
|
|
118566
118758
|
"$ref": "#/definitions/pipeline/steps/custom/RONotifyStepNode"
|
|
118567
118759
|
},
|
|
118760
|
+
{
|
|
118761
|
+
"$ref": "#/definitions/pipeline/steps/custom/ChangeAdvisorStepNode"
|
|
118762
|
+
},
|
|
118568
118763
|
{
|
|
118569
118764
|
"$ref": "#/definitions/pipeline/steps/common/AIExperimentStepNode"
|
|
118570
118765
|
},
|
|
@@ -119546,6 +119741,9 @@ const schema = {
|
|
|
119546
119741
|
{
|
|
119547
119742
|
"$ref": "#/definitions/pipeline/steps/custom/RONotifyStepNode"
|
|
119548
119743
|
},
|
|
119744
|
+
{
|
|
119745
|
+
"$ref": "#/definitions/pipeline/steps/custom/ChangeAdvisorStepNode"
|
|
119746
|
+
},
|
|
119549
119747
|
{
|
|
119550
119748
|
"$ref": "#/definitions/pipeline/steps/cd/HelmDeleteStepNode"
|
|
119551
119749
|
},
|
|
@@ -120443,6 +120641,9 @@ const schema = {
|
|
|
120443
120641
|
{
|
|
120444
120642
|
"$ref": "#/definitions/pipeline/steps/custom/RONotifyStepNode"
|
|
120445
120643
|
},
|
|
120644
|
+
{
|
|
120645
|
+
"$ref": "#/definitions/pipeline/steps/custom/ChangeAdvisorStepNode"
|
|
120646
|
+
},
|
|
120446
120647
|
{
|
|
120447
120648
|
"$ref": "#/definitions/pipeline/steps/custom/FmeFlagCreateStepNode"
|
|
120448
120649
|
},
|
|
@@ -121389,6 +121590,9 @@ const schema = {
|
|
|
121389
121590
|
{
|
|
121390
121591
|
"$ref": "#/definitions/pipeline/steps/custom/RONotifyStepNode"
|
|
121391
121592
|
},
|
|
121593
|
+
{
|
|
121594
|
+
"$ref": "#/definitions/pipeline/steps/custom/ChangeAdvisorStepNode"
|
|
121595
|
+
},
|
|
121392
121596
|
{
|
|
121393
121597
|
"$ref": "#/definitions/pipeline/steps/custom/HarnessApprovalStepNode"
|
|
121394
121598
|
},
|
|
@@ -121837,6 +122041,9 @@ const schema = {
|
|
|
121837
122041
|
{
|
|
121838
122042
|
"$ref": "#/definitions/pipeline/steps/custom/RONotifyStepNode"
|
|
121839
122043
|
},
|
|
122044
|
+
{
|
|
122045
|
+
"$ref": "#/definitions/pipeline/steps/custom/ChangeAdvisorStepNode"
|
|
122046
|
+
},
|
|
121840
122047
|
{
|
|
121841
122048
|
"$ref": "#/definitions/pipeline/steps/custom/HarnessApprovalStepNode"
|
|
121842
122049
|
},
|