harness-mcp-v2 3.2.30 → 3.2.32

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.
Files changed (111) hide show
  1. package/README.md +42 -33
  2. package/build/client/harness-client.d.ts.map +1 -1
  3. package/build/client/harness-client.js +3 -0
  4. package/build/client/harness-client.js.map +1 -1
  5. package/build/data/schemas/v0/pipeline.d.ts.map +1 -1
  6. package/build/data/schemas/v0/pipeline.js +1498 -184
  7. package/build/data/schemas/v0/pipeline.js.map +1 -1
  8. package/build/data/schemas/v0/template.d.ts.map +1 -1
  9. package/build/data/schemas/v0/template.js +5163 -3601
  10. package/build/data/schemas/v0/template.js.map +1 -1
  11. package/build/data/schemas/v1/inputSet.d.ts.map +1 -1
  12. package/build/data/schemas/v1/inputSet.js +30 -22
  13. package/build/data/schemas/v1/inputSet.js.map +1 -1
  14. package/build/data/schemas/v1/pipeline.d.ts.map +1 -1
  15. package/build/data/schemas/v1/pipeline.js +76 -9
  16. package/build/data/schemas/v1/pipeline.js.map +1 -1
  17. package/build/data/schemas/v1/template.d.ts.map +1 -1
  18. package/build/data/schemas/v1/template.js +76 -9
  19. package/build/data/schemas/v1/template.js.map +1 -1
  20. package/build/index.js +2 -2
  21. package/build/index.js.map +1 -1
  22. package/build/prompts/create-agent.d.ts.map +1 -1
  23. package/build/prompts/create-agent.js +128 -187
  24. package/build/prompts/create-agent.js.map +1 -1
  25. package/build/registry/enum-utils.d.ts +3 -1
  26. package/build/registry/enum-utils.d.ts.map +1 -1
  27. package/build/registry/enum-utils.js +19 -2
  28. package/build/registry/enum-utils.js.map +1 -1
  29. package/build/registry/extractors.d.ts +65 -2
  30. package/build/registry/extractors.d.ts.map +1 -1
  31. package/build/registry/extractors.js +190 -3
  32. package/build/registry/extractors.js.map +1 -1
  33. package/build/registry/index.d.ts +2 -0
  34. package/build/registry/index.d.ts.map +1 -1
  35. package/build/registry/index.js +21 -11
  36. package/build/registry/index.js.map +1 -1
  37. package/build/registry/toolsets/alerts.d.ts.map +1 -1
  38. package/build/registry/toolsets/alerts.js +13 -3
  39. package/build/registry/toolsets/alerts.js.map +1 -1
  40. package/build/registry/toolsets/deploys.d.ts.map +1 -1
  41. package/build/registry/toolsets/deploys.js +12 -3
  42. package/build/registry/toolsets/deploys.js.map +1 -1
  43. package/build/registry/toolsets/feature-flags.d.ts.map +1 -1
  44. package/build/registry/toolsets/feature-flags.js +442 -36
  45. package/build/registry/toolsets/feature-flags.js.map +1 -1
  46. package/build/registry/toolsets/gitops.d.ts.map +1 -1
  47. package/build/registry/toolsets/gitops.js +628 -1
  48. package/build/registry/toolsets/gitops.js.map +1 -1
  49. package/build/registry/toolsets/incidents.d.ts.map +1 -1
  50. package/build/registry/toolsets/incidents.js +13 -3
  51. package/build/registry/toolsets/incidents.js.map +1 -1
  52. package/build/registry/toolsets/infrastructure.d.ts.map +1 -1
  53. package/build/registry/toolsets/infrastructure.js +51 -15
  54. package/build/registry/toolsets/infrastructure.js.map +1 -1
  55. package/build/registry/toolsets/logs.d.ts.map +1 -1
  56. package/build/registry/toolsets/logs.js +29 -3
  57. package/build/registry/toolsets/logs.js.map +1 -1
  58. package/build/registry/toolsets/observability-evaluations.js +9 -9
  59. package/build/registry/toolsets/observability-evaluations.js.map +1 -1
  60. package/build/registry/toolsets/pipelines.d.ts.map +1 -1
  61. package/build/registry/toolsets/pipelines.js +27 -16
  62. package/build/registry/toolsets/pipelines.js.map +1 -1
  63. package/build/registry/toolsets/pull-requests.d.ts.map +1 -1
  64. package/build/registry/toolsets/pull-requests.js +104 -12
  65. package/build/registry/toolsets/pull-requests.js.map +1 -1
  66. package/build/registry/toolsets/registries-v3.d.ts.map +1 -1
  67. package/build/registry/toolsets/registries-v3.js +33 -8
  68. package/build/registry/toolsets/registries-v3.js.map +1 -1
  69. package/build/registry/toolsets/registries.d.ts.map +1 -1
  70. package/build/registry/toolsets/registries.js +60 -7
  71. package/build/registry/toolsets/registries.js.map +1 -1
  72. package/build/registry/toolsets/related-activities.d.ts +1 -1
  73. package/build/registry/toolsets/related-activities.js +1 -1
  74. package/build/registry/toolsets/repositories.js +6 -6
  75. package/build/registry/toolsets/repositories.js.map +1 -1
  76. package/build/registry/toolsets/scs.js +3 -3
  77. package/build/registry/toolsets/scs.js.map +1 -1
  78. package/build/registry/toolsets/secrets.js +1 -1
  79. package/build/registry/toolsets/secrets.js.map +1 -1
  80. package/build/registry/toolsets/services.d.ts.map +1 -1
  81. package/build/registry/toolsets/services.js +5 -0
  82. package/build/registry/toolsets/services.js.map +1 -1
  83. package/build/registry/toolsets/templates.d.ts.map +1 -1
  84. package/build/registry/toolsets/templates.js +7 -2
  85. package/build/registry/toolsets/templates.js.map +1 -1
  86. package/build/registry/toolsets/timelines.d.ts +3 -0
  87. package/build/registry/toolsets/timelines.d.ts.map +1 -0
  88. package/build/registry/toolsets/timelines.js +175 -0
  89. package/build/registry/toolsets/timelines.js.map +1 -0
  90. package/build/registry/types.d.ts +3 -1
  91. package/build/registry/types.d.ts.map +1 -1
  92. package/build/resources/agent-legacy-format.d.ts +12 -0
  93. package/build/resources/agent-legacy-format.d.ts.map +1 -0
  94. package/build/resources/agent-legacy-format.js +258 -0
  95. package/build/resources/agent-legacy-format.js.map +1 -0
  96. package/build/resources/index.d.ts.map +1 -1
  97. package/build/resources/index.js +2 -0
  98. package/build/resources/index.js.map +1 -1
  99. package/build/tools/harness-list.d.ts.map +1 -1
  100. package/build/tools/harness-list.js +7 -4
  101. package/build/tools/harness-list.js.map +1 -1
  102. package/build/tools/harness-schema.d.ts.map +1 -1
  103. package/build/tools/harness-schema.js +143 -27
  104. package/build/tools/harness-schema.js.map +1 -1
  105. package/build/utils/compact.js +1 -1
  106. package/build/utils/compact.js.map +1 -1
  107. package/build/utils/log-resolver.d.ts.map +1 -1
  108. package/build/utils/log-resolver.js +16 -3
  109. package/build/utils/log-resolver.js.map +1 -1
  110. package/npm-shrinkwrap.json +2 -2
  111. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"inputSet.d.ts","sourceRoot":"","sources":["../../../../src/data/schemas/v1/inputSet.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAyC/B,CAAC;AACF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"inputSet.d.ts","sourceRoot":"","sources":["../../../../src/data/schemas/v1/inputSet.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAiD/B,CAAC;AACF,eAAe,MAAM,CAAC"}
@@ -3,10 +3,10 @@
3
3
  const schema = {
4
4
  "type": "object",
5
5
  "title": "inputSet_v1",
6
+ "additionalProperties": false,
6
7
  "required": [
7
- "spec",
8
8
  "version",
9
- "kind"
9
+ "name"
10
10
  ],
11
11
  "properties": {
12
12
  "version": {
@@ -16,31 +16,39 @@ const schema = {
16
16
  1
17
17
  ]
18
18
  },
19
- "kind": {
20
- "description": "defines the kind of yaml (pipeline/template)",
19
+ "name": {
20
+ "description": "Name of the input set. The identifier is derived from it.",
21
21
  "type": "string",
22
- "enum": [
23
- "input-set"
24
- ]
22
+ "minLength": 1
23
+ },
24
+ "inputs": {
25
+ "description": "Map of pipeline input name to value. Keys are pipeline-specific and are validated at merge time, not here.",
26
+ "type": "object"
25
27
  },
26
28
  "spec": {
27
- "type": "object",
28
- "description": "inputs to be used in the linked template",
29
- "additionalProperties": {
30
- "anyOf": [
31
- "string",
32
- "array",
33
- "list",
34
- "object",
35
- "boolean"
36
- ]
37
- },
38
- "propertyNames": {
39
- "pattern": "^[a-zA-Z_][0-9a-zA-Z_\\.$-]{0,127}$"
40
- }
29
+ "$ref": "#/definitions/inputSet/overlay_spec"
41
30
  }
42
31
  },
43
- "definitions": {}
32
+ "$schema": "http://json-schema.org/draft-07/schema#",
33
+ "definitions": {
34
+ "inputSet": {
35
+ "overlay_spec": {
36
+ "title": "overlay_spec",
37
+ "type": "object",
38
+ "additionalProperties": false,
39
+ "properties": {
40
+ "input_sets": {
41
+ "description": "Identifiers of the input sets composed by this overlay input set.",
42
+ "type": "array",
43
+ "items": {
44
+ "type": "string"
45
+ }
46
+ }
47
+ },
48
+ "$schema": "http://json-schema.org/draft-07/schema#"
49
+ }
50
+ }
51
+ }
44
52
  };
45
53
  export default schema;
46
54
  //# sourceMappingURL=inputSet.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"inputSet.js","sourceRoot":"","sources":["../../../../src/data/schemas/v1/inputSet.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,cAAc;AAEd,MAAM,MAAM,GAAwB;IAClC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,aAAa;IACtB,UAAU,EAAE;QACV,MAAM;QACN,SAAS;QACT,MAAM;KACP;IACD,YAAY,EAAE;QACZ,SAAS,EAAE;YACT,aAAa,EAAE,qCAAqC;YACpD,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,CAAC;aACF;SACF;QACD,MAAM,EAAE;YACN,aAAa,EAAE,8CAA8C;YAC7D,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,WAAW;aACZ;SACF;QACD,MAAM,EAAE;YACN,MAAM,EAAE,QAAQ;YAChB,aAAa,EAAE,0CAA0C;YACzD,sBAAsB,EAAE;gBACtB,OAAO,EAAE;oBACP,QAAQ;oBACR,OAAO;oBACP,MAAM;oBACN,QAAQ;oBACR,SAAS;iBACV;aACF;YACD,eAAe,EAAE;gBACf,SAAS,EAAE,qCAAqC;aACjD;SACF;KACF;IACD,aAAa,EAAE,EAAE;CAClB,CAAC;AACF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"inputSet.js","sourceRoot":"","sources":["../../../../src/data/schemas/v1/inputSet.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,cAAc;AAEd,MAAM,MAAM,GAAwB;IAClC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,aAAa;IACtB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,SAAS;QACT,MAAM;KACP;IACD,YAAY,EAAE;QACZ,SAAS,EAAE;YACT,aAAa,EAAE,qCAAqC;YACpD,MAAM,EAAE,QAAQ;YAChB,MAAM,EAAE;gBACN,CAAC;aACF;SACF;QACD,MAAM,EAAE;YACN,aAAa,EAAE,2DAA2D;YAC1E,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;SACf;QACD,QAAQ,EAAE;YACR,aAAa,EAAE,4GAA4G;YAC3H,MAAM,EAAE,QAAQ;SACjB;QACD,MAAM,EAAE;YACN,MAAM,EAAE,qCAAqC;SAC9C;KACF;IACD,SAAS,EAAE,yCAAyC;IACpD,aAAa,EAAE;QACb,UAAU,EAAE;YACV,cAAc,EAAE;gBACd,OAAO,EAAE,cAAc;gBACvB,MAAM,EAAE,QAAQ;gBAChB,sBAAsB,EAAE,KAAK;gBAC7B,YAAY,EAAE;oBACZ,YAAY,EAAE;wBACZ,aAAa,EAAE,mEAAmE;wBAClF,MAAM,EAAE,OAAO;wBACf,OAAO,EAAE;4BACP,MAAM,EAAE,QAAQ;yBACjB;qBACF;iBACF;gBACD,SAAS,EAAE,yCAAyC;aACrD;SACF;KACF;CACF,CAAC;AACF,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../../../src/data/schemas/v1/pipeline.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CA+3L/B,CAAC;AACF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"pipeline.d.ts","sourceRoot":"","sources":["../../../../src/data/schemas/v1/pipeline.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAk8L/B,CAAC;AACF,eAAe,MAAM,CAAC"}
@@ -870,6 +870,14 @@ const schema = {
870
870
  "container": {
871
871
  "description": "Caller-side container overrides merged into the resolved template step. Applied for any V1 step template whose spec contains run, run-test, or background (including git-clone and build-and-push templates that wrap those steps).\n",
872
872
  "$ref": "#/definitions/pipeline_v1/common/TemplateContainerOverlay"
873
+ },
874
+ "sourceStepType": {
875
+ "description": "Merge-time origin of an unresolved agent alias. Set to Agent when this template ref was produced from an agent identity. Used for CI metrics; not sent to lite-engine.\n",
876
+ "type": "string"
877
+ },
878
+ "sourceName": {
879
+ "description": "Identifier of the originating agent template when sourceStepType is set. First write wins so an outer custom agent is not overwritten by inner harnessAI.\n",
880
+ "type": "string"
873
881
  }
874
882
  },
875
883
  "$schema": "http://json-schema.org/draft-07/schema#"
@@ -1542,7 +1550,7 @@ const schema = {
1542
1550
  "idp": {
1543
1551
  "$ref": "#/definitions/pipeline_v1/common/TemplateRef"
1544
1552
  },
1545
- "iacm": {
1553
+ "infrastructure": {
1546
1554
  "$ref": "#/definitions/pipeline_v1/common/TemplateRef"
1547
1555
  },
1548
1556
  "sto": {
@@ -2138,6 +2146,20 @@ const schema = {
2138
2146
  "type": "object",
2139
2147
  "additionalProperties": false,
2140
2148
  "properties": {
2149
+ "user-groups": {
2150
+ "description": "List of user group references.",
2151
+ "oneOf": [
2152
+ {
2153
+ "type": "string"
2154
+ },
2155
+ {
2156
+ "type": "array",
2157
+ "items": {
2158
+ "type": "string"
2159
+ }
2160
+ }
2161
+ ]
2162
+ },
2141
2163
  "url": {
2142
2164
  "description": "Webhook URL.",
2143
2165
  "type": "string"
@@ -2185,6 +2207,20 @@ const schema = {
2185
2207
  "type": "object",
2186
2208
  "additionalProperties": false,
2187
2209
  "properties": {
2210
+ "user-groups": {
2211
+ "description": "List of user group references.",
2212
+ "oneOf": [
2213
+ {
2214
+ "type": "string"
2215
+ },
2216
+ {
2217
+ "type": "array",
2218
+ "items": {
2219
+ "type": "string"
2220
+ }
2221
+ }
2222
+ ]
2223
+ },
2188
2224
  "api-key": {
2189
2225
  "description": "Datadog API key.",
2190
2226
  "type": "string"
@@ -2279,7 +2315,7 @@ const schema = {
2279
2315
  },
2280
2316
  {
2281
2317
  "required": [
2282
- "iacm"
2318
+ "infrastructure"
2283
2319
  ]
2284
2320
  },
2285
2321
  {
@@ -2386,7 +2422,7 @@ const schema = {
2386
2422
  },
2387
2423
  {
2388
2424
  "required": [
2389
- "iacm"
2425
+ "infrastructure"
2390
2426
  ]
2391
2427
  },
2392
2428
  {
@@ -2513,6 +2549,7 @@ const schema = {
2513
2549
  "steps": {
2514
2550
  "type": "array",
2515
2551
  "description": "List of steps to execute in the stage.",
2552
+ "minItems": 1,
2516
2553
  "items": {
2517
2554
  "$ref": "#/definitions/pipeline_v1/steps/unified/StepItems"
2518
2555
  }
@@ -2610,7 +2647,8 @@ const schema = {
2610
2647
  "cloud",
2611
2648
  "shell",
2612
2649
  "vm",
2613
- "k8"
2650
+ "k8",
2651
+ "delegate"
2614
2652
  ]
2615
2653
  },
2616
2654
  {
@@ -3471,7 +3509,14 @@ const schema = {
3471
3509
  },
3472
3510
  "all-infra": {
3473
3511
  "description": "Deploy to all infrastructures in the environment. With a `deploy-to` runtime input sibling, every infrastructure is preselected in the run form; with no `deploy-to` sibling, deploys to all without prompting.",
3474
- "type": "boolean"
3512
+ "oneOf": [
3513
+ {
3514
+ "type": "boolean"
3515
+ },
3516
+ {
3517
+ "$ref": "#/definitions/pipeline_v1/common/Expression"
3518
+ }
3519
+ ]
3475
3520
  },
3476
3521
  "deploy-to": {
3477
3522
  "description": "Infrastructure(s) to deploy to.",
@@ -3640,7 +3685,14 @@ const schema = {
3640
3685
  },
3641
3686
  "all-infra": {
3642
3687
  "description": "Deploy to all infrastructures in the environment. With a `deploy-to` runtime input sibling, every infrastructure is preselected in the run form; with no `deploy-to` sibling, deploys to all without prompting.",
3643
- "type": "boolean"
3688
+ "oneOf": [
3689
+ {
3690
+ "type": "boolean"
3691
+ },
3692
+ {
3693
+ "$ref": "#/definitions/pipeline_v1/common/Expression"
3694
+ }
3695
+ ]
3644
3696
  },
3645
3697
  "deploy-to": {
3646
3698
  "description": "Infrastructure(s) to deploy to.",
@@ -3811,7 +3863,14 @@ const schema = {
3811
3863
  },
3812
3864
  "all-env": {
3813
3865
  "description": "Deploy to all environments in the group. With an `items` runtime input sibling, every environment is preselected in the run form; with no `items` sibling, deploys to all without prompting.",
3814
- "type": "boolean"
3866
+ "oneOf": [
3867
+ {
3868
+ "type": "boolean"
3869
+ },
3870
+ {
3871
+ "$ref": "#/definitions/pipeline_v1/common/Expression"
3872
+ }
3873
+ ]
3815
3874
  },
3816
3875
  "parallel": {
3817
3876
  "description": "Execute environments in parallel (all at once). Defaults to false, so environments run one at a time (serially) unless set to true.",
@@ -4358,7 +4417,7 @@ const schema = {
4358
4417
  },
4359
4418
  {
4360
4419
  "required": [
4361
- "iacm"
4420
+ "infrastructure"
4362
4421
  ]
4363
4422
  },
4364
4423
  {
@@ -4529,7 +4588,7 @@ const schema = {
4529
4588
  },
4530
4589
  {
4531
4590
  "required": [
4532
- "iacm"
4591
+ "infrastructure"
4533
4592
  ]
4534
4593
  },
4535
4594
  {
@@ -4807,6 +4866,14 @@ const schema = {
4807
4866
  ]
4808
4867
  }
4809
4868
  }
4869
+ },
4870
+ "sourceStepType": {
4871
+ "description": "Merge-time origin of an expanded step. Set to Agent when this run was produced from an agent template. Used for CI metrics; not sent to lite-engine.\n",
4872
+ "type": "string"
4873
+ },
4874
+ "sourceName": {
4875
+ "description": "Identifier of the originating agent template when sourceStepType is set. First write wins so an outer custom agent is not overwritten by inner harnessAI.\n",
4876
+ "type": "string"
4810
4877
  }
4811
4878
  },
4812
4879
  "$schema": "http://json-schema.org/draft-07/schema#"