@salesforce/plugin-agent 1.42.1 → 1.44.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.
Files changed (115) hide show
  1. package/README.md +513 -68
  2. package/lib/adlUtils.d.ts +2 -0
  3. package/lib/adlUtils.js +31 -0
  4. package/lib/adlUtils.js.map +1 -0
  5. package/lib/commands/agent/adl/create.d.ts +6 -1
  6. package/lib/commands/agent/adl/create.js +83 -19
  7. package/lib/commands/agent/adl/create.js.map +1 -1
  8. package/lib/commands/agent/adl/delete.d.ts +0 -1
  9. package/lib/commands/agent/adl/delete.js +3 -2
  10. package/lib/commands/agent/adl/delete.js.map +1 -1
  11. package/lib/commands/agent/adl/file/add.d.ts +0 -1
  12. package/lib/commands/agent/adl/file/add.js +3 -2
  13. package/lib/commands/agent/adl/file/add.js.map +1 -1
  14. package/lib/commands/agent/adl/file/delete.d.ts +0 -1
  15. package/lib/commands/agent/adl/file/delete.js +4 -3
  16. package/lib/commands/agent/adl/file/delete.js.map +1 -1
  17. package/lib/commands/agent/adl/file/list.d.ts +5 -5
  18. package/lib/commands/agent/adl/file/list.js +31 -7
  19. package/lib/commands/agent/adl/file/list.js.map +1 -1
  20. package/lib/commands/agent/adl/get.d.ts +0 -1
  21. package/lib/commands/agent/adl/get.js +15 -3
  22. package/lib/commands/agent/adl/get.js.map +1 -1
  23. package/lib/commands/agent/adl/list.d.ts +0 -1
  24. package/lib/commands/agent/adl/list.js +3 -2
  25. package/lib/commands/agent/adl/list.js.map +1 -1
  26. package/lib/commands/agent/adl/status.d.ts +1 -1
  27. package/lib/commands/agent/adl/status.js +21 -4
  28. package/lib/commands/agent/adl/status.js.map +1 -1
  29. package/lib/commands/agent/adl/update.d.ts +1 -1
  30. package/lib/commands/agent/adl/update.js +18 -5
  31. package/lib/commands/agent/adl/update.js.map +1 -1
  32. package/lib/commands/agent/adl/upload.d.ts +0 -1
  33. package/lib/commands/agent/adl/upload.js +3 -2
  34. package/lib/commands/agent/adl/upload.js.map +1 -1
  35. package/lib/commands/agent/generate/test-spec.d.ts +9 -0
  36. package/lib/commands/agent/generate/test-spec.js +194 -11
  37. package/lib/commands/agent/generate/test-spec.js.map +1 -1
  38. package/lib/commands/agent/mcp/asset/list.d.ts +16 -0
  39. package/lib/commands/agent/mcp/asset/list.js +68 -0
  40. package/lib/commands/agent/mcp/asset/list.js.map +1 -0
  41. package/lib/commands/agent/mcp/asset/replace.d.ts +18 -0
  42. package/lib/commands/agent/mcp/asset/replace.js +95 -0
  43. package/lib/commands/agent/mcp/asset/replace.js.map +1 -0
  44. package/lib/commands/agent/mcp/create.d.ts +24 -0
  45. package/lib/commands/agent/mcp/create.js +112 -0
  46. package/lib/commands/agent/mcp/create.js.map +1 -0
  47. package/lib/commands/agent/mcp/delete.d.ts +19 -0
  48. package/lib/commands/agent/mcp/delete.js +65 -0
  49. package/lib/commands/agent/mcp/delete.js.map +1 -0
  50. package/lib/commands/agent/mcp/fetch.d.ts +16 -0
  51. package/lib/commands/agent/mcp/fetch.js +68 -0
  52. package/lib/commands/agent/mcp/fetch.js.map +1 -0
  53. package/lib/commands/agent/mcp/get.d.ts +16 -0
  54. package/lib/commands/agent/mcp/get.js +58 -0
  55. package/lib/commands/agent/mcp/get.js.map +1 -0
  56. package/lib/commands/agent/mcp/list.d.ts +18 -0
  57. package/lib/commands/agent/mcp/list.js +73 -0
  58. package/lib/commands/agent/mcp/list.js.map +1 -0
  59. package/lib/commands/agent/mcp/update.d.ts +24 -0
  60. package/lib/commands/agent/mcp/update.js +115 -0
  61. package/lib/commands/agent/mcp/update.js.map +1 -0
  62. package/lib/commands/agent/preview/start.d.ts +1 -0
  63. package/lib/commands/agent/preview/start.js +4 -1
  64. package/lib/commands/agent/preview/start.js.map +1 -1
  65. package/lib/commands/agent/preview.d.ts +1 -0
  66. package/lib/commands/agent/preview.js +4 -0
  67. package/lib/commands/agent/preview.js.map +1 -1
  68. package/lib/components/agent-preview-react.d.ts +2 -1
  69. package/lib/components/agent-preview-react.js +3 -3
  70. package/lib/components/agent-preview-react.js.map +1 -1
  71. package/lib/flags.d.ts +12 -1
  72. package/lib/flags.js +31 -0
  73. package/lib/flags.js.map +1 -1
  74. package/messages/agent.adl.create.md +22 -0
  75. package/messages/agent.adl.file.add.md +2 -0
  76. package/messages/agent.adl.file.delete.md +4 -0
  77. package/messages/agent.adl.file.list.md +12 -0
  78. package/messages/agent.adl.status.md +5 -1
  79. package/messages/agent.adl.update.md +4 -0
  80. package/messages/agent.adl.upload.md +2 -0
  81. package/messages/agent.generate.test-spec.md +33 -5
  82. package/messages/agent.mcp.asset.list.md +25 -0
  83. package/messages/agent.mcp.asset.replace.md +49 -0
  84. package/messages/agent.mcp.create.md +61 -0
  85. package/messages/agent.mcp.delete.md +37 -0
  86. package/messages/agent.mcp.fetch.md +25 -0
  87. package/messages/agent.mcp.get.md +25 -0
  88. package/messages/agent.mcp.list.md +33 -0
  89. package/messages/agent.mcp.update.md +65 -0
  90. package/messages/shared.md +16 -0
  91. package/oclif.manifest.json +1774 -842
  92. package/package.json +14 -4
  93. package/schemas/agent-adl-create.json +63 -3
  94. package/schemas/agent-adl-delete.json +5 -2
  95. package/schemas/agent-adl-file-add.json +7 -2
  96. package/schemas/agent-adl-file-delete.json +5 -2
  97. package/schemas/agent-adl-file-list.json +26 -3
  98. package/schemas/agent-adl-get.json +63 -3
  99. package/schemas/agent-adl-list.json +55 -3
  100. package/schemas/agent-adl-status.json +44 -4
  101. package/schemas/agent-adl-update.json +63 -3
  102. package/schemas/agent-adl-upload.json +5 -2
  103. package/schemas/agent-mcp-asset-list.json +65 -0
  104. package/schemas/agent-mcp-asset-replace.json +65 -0
  105. package/schemas/agent-mcp-create.json +144 -0
  106. package/schemas/agent-mcp-delete.json +22 -0
  107. package/schemas/agent-mcp-fetch.json +66 -0
  108. package/schemas/agent-mcp-get.json +86 -0
  109. package/schemas/agent-mcp-list.json +101 -0
  110. package/schemas/agent-mcp-update.json +86 -0
  111. package/schemas/agent-preview-end.json +8 -3
  112. package/schemas/agent-publish-authoring__bundle.json +8 -3
  113. package/schemas/agent-trace-delete.json +7 -2
  114. package/schemas/agent-trace-list.json +9 -2
  115. package/schemas/agent-trace-read.json +131 -21
@@ -0,0 +1,144 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/McpServerCreateOutput",
4
+ "definitions": {
5
+ "McpServerCreateOutput": {
6
+ "type": "object",
7
+ "properties": {
8
+ "server": {
9
+ "$ref": "#/definitions/McpServerOutput"
10
+ },
11
+ "assets": {
12
+ "type": "array",
13
+ "items": {
14
+ "$ref": "#/definitions/McpFetchedAsset"
15
+ }
16
+ }
17
+ },
18
+ "required": [
19
+ "server",
20
+ "assets"
21
+ ],
22
+ "additionalProperties": false
23
+ },
24
+ "McpServerOutput": {
25
+ "type": "object",
26
+ "properties": {
27
+ "id": {
28
+ "type": "string"
29
+ },
30
+ "name": {
31
+ "type": "string"
32
+ },
33
+ "label": {
34
+ "type": "string"
35
+ },
36
+ "description": {
37
+ "type": "string"
38
+ },
39
+ "type": {
40
+ "$ref": "#/definitions/McpServerType"
41
+ },
42
+ "status": {
43
+ "type": "string"
44
+ },
45
+ "serverUrl": {
46
+ "type": "string"
47
+ },
48
+ "authorization": {
49
+ "$ref": "#/definitions/McpServerAuthorizationOutput"
50
+ },
51
+ "createdById": {
52
+ "type": "string"
53
+ },
54
+ "createdDate": {
55
+ "type": "string"
56
+ },
57
+ "lastModifiedById": {
58
+ "type": "string"
59
+ },
60
+ "lastModifiedDate": {
61
+ "type": "string"
62
+ }
63
+ },
64
+ "required": [
65
+ "id",
66
+ "name",
67
+ "type",
68
+ "status"
69
+ ],
70
+ "additionalProperties": false
71
+ },
72
+ "McpServerType": {
73
+ "type": "string",
74
+ "const": "EXTERNAL"
75
+ },
76
+ "McpServerAuthorizationOutput": {
77
+ "type": "object",
78
+ "properties": {
79
+ "authType": {
80
+ "$ref": "#/definitions/McpAuthType"
81
+ },
82
+ "identityProvider": {
83
+ "type": "string"
84
+ },
85
+ "scope": {
86
+ "type": "string"
87
+ }
88
+ },
89
+ "required": [
90
+ "authType"
91
+ ],
92
+ "additionalProperties": false
93
+ },
94
+ "McpAuthType": {
95
+ "type": "string",
96
+ "enum": [
97
+ "OAUTH",
98
+ "NO_AUTH"
99
+ ]
100
+ },
101
+ "McpFetchedAsset": {
102
+ "type": "object",
103
+ "properties": {
104
+ "id": {
105
+ "type": "string"
106
+ },
107
+ "name": {
108
+ "type": "string"
109
+ },
110
+ "label": {
111
+ "type": "string"
112
+ },
113
+ "description": {
114
+ "type": "string"
115
+ },
116
+ "kind": {
117
+ "$ref": "#/definitions/McpAssetKind"
118
+ },
119
+ "active": {
120
+ "type": "boolean"
121
+ },
122
+ "availableAsAgentAction": {
123
+ "type": "boolean"
124
+ },
125
+ "status": {
126
+ "type": "string"
127
+ }
128
+ },
129
+ "required": [
130
+ "name",
131
+ "kind"
132
+ ],
133
+ "additionalProperties": false
134
+ },
135
+ "McpAssetKind": {
136
+ "type": "string",
137
+ "enum": [
138
+ "MCP_TOOL",
139
+ "MCP_PROMPT",
140
+ "MCP_RESOURCE"
141
+ ]
142
+ }
143
+ }
144
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/ApiCatalogMcpServerDeleteResult",
4
+ "definitions": {
5
+ "ApiCatalogMcpServerDeleteResult": {
6
+ "type": "object",
7
+ "properties": {
8
+ "id": {
9
+ "type": "string"
10
+ },
11
+ "deleted": {
12
+ "type": "boolean"
13
+ }
14
+ },
15
+ "required": [
16
+ "id",
17
+ "deleted"
18
+ ],
19
+ "additionalProperties": false
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/ApiCatalogMcpServerFetchResult",
4
+ "definitions": {
5
+ "ApiCatalogMcpServerFetchResult": {
6
+ "$ref": "#/definitions/McpServerFetchOutput"
7
+ },
8
+ "McpServerFetchOutput": {
9
+ "type": "object",
10
+ "properties": {
11
+ "assets": {
12
+ "type": "array",
13
+ "items": {
14
+ "$ref": "#/definitions/McpFetchedAsset"
15
+ }
16
+ }
17
+ },
18
+ "required": [
19
+ "assets"
20
+ ],
21
+ "additionalProperties": false
22
+ },
23
+ "McpFetchedAsset": {
24
+ "type": "object",
25
+ "properties": {
26
+ "id": {
27
+ "type": "string"
28
+ },
29
+ "name": {
30
+ "type": "string"
31
+ },
32
+ "label": {
33
+ "type": "string"
34
+ },
35
+ "description": {
36
+ "type": "string"
37
+ },
38
+ "kind": {
39
+ "$ref": "#/definitions/McpAssetKind"
40
+ },
41
+ "active": {
42
+ "type": "boolean"
43
+ },
44
+ "availableAsAgentAction": {
45
+ "type": "boolean"
46
+ },
47
+ "status": {
48
+ "type": "string"
49
+ }
50
+ },
51
+ "required": [
52
+ "name",
53
+ "kind"
54
+ ],
55
+ "additionalProperties": false
56
+ },
57
+ "McpAssetKind": {
58
+ "type": "string",
59
+ "enum": [
60
+ "MCP_TOOL",
61
+ "MCP_PROMPT",
62
+ "MCP_RESOURCE"
63
+ ]
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/ApiCatalogMcpServerGetResult",
4
+ "definitions": {
5
+ "ApiCatalogMcpServerGetResult": {
6
+ "$ref": "#/definitions/McpServerOutput"
7
+ },
8
+ "McpServerOutput": {
9
+ "type": "object",
10
+ "properties": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "name": {
15
+ "type": "string"
16
+ },
17
+ "label": {
18
+ "type": "string"
19
+ },
20
+ "description": {
21
+ "type": "string"
22
+ },
23
+ "type": {
24
+ "$ref": "#/definitions/McpServerType"
25
+ },
26
+ "status": {
27
+ "type": "string"
28
+ },
29
+ "serverUrl": {
30
+ "type": "string"
31
+ },
32
+ "authorization": {
33
+ "$ref": "#/definitions/McpServerAuthorizationOutput"
34
+ },
35
+ "createdById": {
36
+ "type": "string"
37
+ },
38
+ "createdDate": {
39
+ "type": "string"
40
+ },
41
+ "lastModifiedById": {
42
+ "type": "string"
43
+ },
44
+ "lastModifiedDate": {
45
+ "type": "string"
46
+ }
47
+ },
48
+ "required": [
49
+ "id",
50
+ "name",
51
+ "type",
52
+ "status"
53
+ ],
54
+ "additionalProperties": false
55
+ },
56
+ "McpServerType": {
57
+ "type": "string",
58
+ "const": "EXTERNAL"
59
+ },
60
+ "McpServerAuthorizationOutput": {
61
+ "type": "object",
62
+ "properties": {
63
+ "authType": {
64
+ "$ref": "#/definitions/McpAuthType"
65
+ },
66
+ "identityProvider": {
67
+ "type": "string"
68
+ },
69
+ "scope": {
70
+ "type": "string"
71
+ }
72
+ },
73
+ "required": [
74
+ "authType"
75
+ ],
76
+ "additionalProperties": false
77
+ },
78
+ "McpAuthType": {
79
+ "type": "string",
80
+ "enum": [
81
+ "OAUTH",
82
+ "NO_AUTH"
83
+ ]
84
+ }
85
+ }
86
+ }
@@ -0,0 +1,101 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/ApiCatalogMcpServerListResult",
4
+ "definitions": {
5
+ "ApiCatalogMcpServerListResult": {
6
+ "$ref": "#/definitions/McpServerCollection"
7
+ },
8
+ "McpServerCollection": {
9
+ "type": "object",
10
+ "properties": {
11
+ "mcpServers": {
12
+ "type": "array",
13
+ "items": {
14
+ "$ref": "#/definitions/McpServerOutput"
15
+ }
16
+ }
17
+ },
18
+ "required": [
19
+ "mcpServers"
20
+ ],
21
+ "additionalProperties": false
22
+ },
23
+ "McpServerOutput": {
24
+ "type": "object",
25
+ "properties": {
26
+ "id": {
27
+ "type": "string"
28
+ },
29
+ "name": {
30
+ "type": "string"
31
+ },
32
+ "label": {
33
+ "type": "string"
34
+ },
35
+ "description": {
36
+ "type": "string"
37
+ },
38
+ "type": {
39
+ "$ref": "#/definitions/McpServerType"
40
+ },
41
+ "status": {
42
+ "type": "string"
43
+ },
44
+ "serverUrl": {
45
+ "type": "string"
46
+ },
47
+ "authorization": {
48
+ "$ref": "#/definitions/McpServerAuthorizationOutput"
49
+ },
50
+ "createdById": {
51
+ "type": "string"
52
+ },
53
+ "createdDate": {
54
+ "type": "string"
55
+ },
56
+ "lastModifiedById": {
57
+ "type": "string"
58
+ },
59
+ "lastModifiedDate": {
60
+ "type": "string"
61
+ }
62
+ },
63
+ "required": [
64
+ "id",
65
+ "name",
66
+ "type",
67
+ "status"
68
+ ],
69
+ "additionalProperties": false
70
+ },
71
+ "McpServerType": {
72
+ "type": "string",
73
+ "const": "EXTERNAL"
74
+ },
75
+ "McpServerAuthorizationOutput": {
76
+ "type": "object",
77
+ "properties": {
78
+ "authType": {
79
+ "$ref": "#/definitions/McpAuthType"
80
+ },
81
+ "identityProvider": {
82
+ "type": "string"
83
+ },
84
+ "scope": {
85
+ "type": "string"
86
+ }
87
+ },
88
+ "required": [
89
+ "authType"
90
+ ],
91
+ "additionalProperties": false
92
+ },
93
+ "McpAuthType": {
94
+ "type": "string",
95
+ "enum": [
96
+ "OAUTH",
97
+ "NO_AUTH"
98
+ ]
99
+ }
100
+ }
101
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/ApiCatalogMcpServerUpdateResult",
4
+ "definitions": {
5
+ "ApiCatalogMcpServerUpdateResult": {
6
+ "$ref": "#/definitions/McpServerOutput"
7
+ },
8
+ "McpServerOutput": {
9
+ "type": "object",
10
+ "properties": {
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "name": {
15
+ "type": "string"
16
+ },
17
+ "label": {
18
+ "type": "string"
19
+ },
20
+ "description": {
21
+ "type": "string"
22
+ },
23
+ "type": {
24
+ "$ref": "#/definitions/McpServerType"
25
+ },
26
+ "status": {
27
+ "type": "string"
28
+ },
29
+ "serverUrl": {
30
+ "type": "string"
31
+ },
32
+ "authorization": {
33
+ "$ref": "#/definitions/McpServerAuthorizationOutput"
34
+ },
35
+ "createdById": {
36
+ "type": "string"
37
+ },
38
+ "createdDate": {
39
+ "type": "string"
40
+ },
41
+ "lastModifiedById": {
42
+ "type": "string"
43
+ },
44
+ "lastModifiedDate": {
45
+ "type": "string"
46
+ }
47
+ },
48
+ "required": [
49
+ "id",
50
+ "name",
51
+ "type",
52
+ "status"
53
+ ],
54
+ "additionalProperties": false
55
+ },
56
+ "McpServerType": {
57
+ "type": "string",
58
+ "const": "EXTERNAL"
59
+ },
60
+ "McpServerAuthorizationOutput": {
61
+ "type": "object",
62
+ "properties": {
63
+ "authType": {
64
+ "$ref": "#/definitions/McpAuthType"
65
+ },
66
+ "identityProvider": {
67
+ "type": "string"
68
+ },
69
+ "scope": {
70
+ "type": "string"
71
+ }
72
+ },
73
+ "required": [
74
+ "authType"
75
+ ],
76
+ "additionalProperties": false
77
+ },
78
+ "McpAuthType": {
79
+ "type": "string",
80
+ "enum": [
81
+ "OAUTH",
82
+ "NO_AUTH"
83
+ ]
84
+ }
85
+ }
86
+ }
@@ -14,7 +14,9 @@
14
14
  }
15
15
  }
16
16
  },
17
- "required": ["ended"],
17
+ "required": [
18
+ "ended"
19
+ ],
18
20
  "additionalProperties": false
19
21
  },
20
22
  {
@@ -32,8 +34,11 @@
32
34
  "type": "string"
33
35
  }
34
36
  },
35
- "required": ["sessionId", "tracesPath"],
37
+ "required": [
38
+ "sessionId",
39
+ "tracesPath"
40
+ ],
36
41
  "additionalProperties": false
37
42
  }
38
43
  }
39
- }
44
+ }
@@ -39,12 +39,17 @@
39
39
  "type": "number"
40
40
  }
41
41
  },
42
- "required": ["retrieved", "deployed"],
42
+ "required": [
43
+ "retrieved",
44
+ "deployed"
45
+ ],
43
46
  "additionalProperties": false
44
47
  }
45
48
  },
46
- "required": ["success"],
49
+ "required": [
50
+ "success"
51
+ ],
47
52
  "additionalProperties": false
48
53
  }
49
54
  }
50
- }
55
+ }
@@ -20,9 +20,14 @@
20
20
  "type": "string"
21
21
  }
22
22
  },
23
- "required": ["agent", "sessionId", "planId", "path"],
23
+ "required": [
24
+ "agent",
25
+ "sessionId",
26
+ "planId",
27
+ "path"
28
+ ],
24
29
  "additionalProperties": false
25
30
  }
26
31
  }
27
32
  }
28
- }
33
+ }
@@ -26,9 +26,16 @@
26
26
  "type": "string"
27
27
  }
28
28
  },
29
- "required": ["agent", "sessionId", "planId", "path", "size", "mtime"],
29
+ "required": [
30
+ "agent",
31
+ "sessionId",
32
+ "planId",
33
+ "path",
34
+ "size",
35
+ "mtime"
36
+ ],
30
37
  "additionalProperties": false
31
38
  }
32
39
  }
33
40
  }
34
- }
41
+ }