@peernova/cuneiform-sf 1.0.2 → 1.0.4-beta.10

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 (488) hide show
  1. package/LICENSE +81 -30
  2. package/README.md +168 -134
  3. package/lib/adapters/connection-facade.d.ts +458 -0
  4. package/lib/adapters/connection-facade.js +379 -0
  5. package/lib/adapters/connection-facade.js.map +1 -0
  6. package/lib/adapters/errors.d.ts +547 -0
  7. package/lib/adapters/errors.js +937 -0
  8. package/lib/adapters/errors.js.map +1 -0
  9. package/lib/adapters/lifecycle.d.ts +112 -0
  10. package/lib/adapters/lifecycle.js +94 -0
  11. package/lib/adapters/lifecycle.js.map +1 -0
  12. package/lib/adapters/rest/cache.d.ts +69 -0
  13. package/lib/adapters/rest/cache.js +133 -0
  14. package/lib/adapters/rest/cache.js.map +1 -0
  15. package/lib/adapters/rest/index.d.ts +11 -0
  16. package/lib/adapters/rest/index.js +18 -0
  17. package/lib/adapters/rest/index.js.map +1 -0
  18. package/lib/adapters/rest/profiling-rest-client.d.ts +137 -0
  19. package/lib/adapters/rest/profiling-rest-client.js +115 -0
  20. package/lib/adapters/rest/profiling-rest-client.js.map +1 -0
  21. package/lib/adapters/rest/rest-api-adapter.d.ts +393 -0
  22. package/lib/adapters/rest/rest-api-adapter.js +764 -0
  23. package/lib/adapters/rest/rest-api-adapter.js.map +1 -0
  24. package/lib/adapters/rest/types.d.ts +34 -0
  25. package/lib/adapters/rest/types.js +9 -0
  26. package/lib/adapters/rest/types.js.map +1 -0
  27. package/lib/adapters/retry.d.ts +91 -0
  28. package/lib/adapters/retry.js +215 -0
  29. package/lib/adapters/retry.js.map +1 -0
  30. package/lib/adapters/soql/cuneiform-query-builder.d.ts +418 -0
  31. package/lib/adapters/soql/cuneiform-query-builder.js +606 -0
  32. package/lib/adapters/soql/cuneiform-query-builder.js.map +1 -0
  33. package/lib/adapters/soql/soql-query-adapter.d.ts +141 -0
  34. package/lib/adapters/soql/soql-query-adapter.js +259 -0
  35. package/lib/adapters/soql/soql-query-adapter.js.map +1 -0
  36. package/lib/adapters/soql/types.d.ts +37 -0
  37. package/lib/adapters/soql/types.js +19 -0
  38. package/lib/adapters/soql/types.js.map +1 -0
  39. package/lib/adapters/testing/index.d.ts +37 -0
  40. package/lib/adapters/testing/index.js +20 -0
  41. package/lib/adapters/testing/index.js.map +1 -0
  42. package/lib/adapters/testing/mock-connection.d.ts +77 -0
  43. package/lib/adapters/testing/mock-connection.js +207 -0
  44. package/lib/adapters/testing/mock-connection.js.map +1 -0
  45. package/lib/adapters/testing/mock-logger.d.ts +29 -0
  46. package/lib/adapters/testing/mock-logger.js +57 -0
  47. package/lib/adapters/testing/mock-logger.js.map +1 -0
  48. package/lib/adapters/testing/mock-mcp-adapters.d.ts +32 -0
  49. package/lib/adapters/testing/mock-mcp-adapters.js +52 -0
  50. package/lib/adapters/testing/mock-mcp-adapters.js.map +1 -0
  51. package/lib/adapters/testing/mock-oclif-config.d.ts +22 -0
  52. package/lib/adapters/testing/mock-oclif-config.js +90 -0
  53. package/lib/adapters/testing/mock-oclif-config.js.map +1 -0
  54. package/lib/adapters/testing/mock-rest-adapter.d.ts +26 -0
  55. package/lib/adapters/testing/mock-rest-adapter.js +243 -0
  56. package/lib/adapters/testing/mock-rest-adapter.js.map +1 -0
  57. package/lib/adapters/testing/mock-salesforce-connection.d.ts +40 -0
  58. package/lib/adapters/testing/mock-salesforce-connection.js +61 -0
  59. package/lib/adapters/testing/mock-salesforce-connection.js.map +1 -0
  60. package/lib/adapters/testing/mock-soql-adapter.d.ts +30 -0
  61. package/lib/adapters/testing/mock-soql-adapter.js +120 -0
  62. package/lib/adapters/testing/mock-soql-adapter.js.map +1 -0
  63. package/lib/adapters/testing/mock-tooling-adapter.d.ts +24 -0
  64. package/lib/adapters/testing/mock-tooling-adapter.js +163 -0
  65. package/lib/adapters/testing/mock-tooling-adapter.js.map +1 -0
  66. package/lib/adapters/testing/stub-connection.d.ts +93 -0
  67. package/lib/adapters/testing/stub-connection.js +97 -0
  68. package/lib/adapters/testing/stub-connection.js.map +1 -0
  69. package/lib/adapters/testing/stub-rest-adapter.d.ts +52 -0
  70. package/lib/adapters/testing/stub-rest-adapter.js +58 -0
  71. package/lib/adapters/testing/stub-rest-adapter.js.map +1 -0
  72. package/lib/adapters/testing/stub-soql-adapter.d.ts +56 -0
  73. package/lib/adapters/testing/stub-soql-adapter.js +50 -0
  74. package/lib/adapters/testing/stub-soql-adapter.js.map +1 -0
  75. package/lib/adapters/testing/types.d.ts +71 -0
  76. package/lib/adapters/testing/types.js +9 -0
  77. package/lib/adapters/testing/types.js.map +1 -0
  78. package/lib/adapters/tooling/index.d.ts +10 -0
  79. package/lib/adapters/tooling/index.js +17 -0
  80. package/lib/adapters/tooling/index.js.map +1 -0
  81. package/lib/adapters/tooling/tooling-api-adapter.d.ts +157 -0
  82. package/lib/adapters/tooling/tooling-api-adapter.js +339 -0
  83. package/lib/adapters/tooling/tooling-api-adapter.js.map +1 -0
  84. package/lib/adapters/tooling/types.d.ts +81 -0
  85. package/lib/adapters/tooling/types.js +9 -0
  86. package/lib/adapters/tooling/types.js.map +1 -0
  87. package/lib/adapters/types.d.ts +112 -0
  88. package/lib/adapters/types.js +169 -0
  89. package/lib/adapters/types.js.map +1 -0
  90. package/lib/base/cuneiform-command.d.ts +175 -0
  91. package/lib/base/cuneiform-command.js +326 -0
  92. package/lib/base/cuneiform-command.js.map +1 -0
  93. package/lib/commands/cuneiform/compatibility/check.d.ts +43 -0
  94. package/lib/commands/cuneiform/compatibility/check.js +114 -0
  95. package/lib/commands/cuneiform/compatibility/check.js.map +1 -0
  96. package/lib/commands/cuneiform/definition/create.d.ts +120 -0
  97. package/lib/commands/cuneiform/definition/create.js +737 -0
  98. package/lib/commands/cuneiform/definition/create.js.map +1 -0
  99. package/lib/commands/cuneiform/definition/export.d.ts +57 -0
  100. package/lib/commands/cuneiform/definition/export.js +133 -0
  101. package/lib/commands/cuneiform/definition/export.js.map +1 -0
  102. package/lib/commands/cuneiform/definition/get.d.ts +86 -0
  103. package/lib/commands/cuneiform/definition/get.js +277 -0
  104. package/lib/commands/cuneiform/definition/get.js.map +1 -0
  105. package/lib/commands/cuneiform/definition/import.d.ts +54 -0
  106. package/lib/commands/cuneiform/definition/import.js +118 -0
  107. package/lib/commands/cuneiform/definition/import.js.map +1 -0
  108. package/lib/commands/cuneiform/definition/list.d.ts +110 -0
  109. package/lib/commands/cuneiform/definition/list.js +351 -0
  110. package/lib/commands/cuneiform/definition/list.js.map +1 -0
  111. package/lib/commands/cuneiform/definition/purge.d.ts +109 -0
  112. package/lib/commands/cuneiform/definition/purge.js +578 -0
  113. package/lib/commands/cuneiform/definition/purge.js.map +1 -0
  114. package/lib/commands/cuneiform/definition/update.d.ts +58 -0
  115. package/lib/commands/cuneiform/definition/update.js +209 -0
  116. package/lib/commands/cuneiform/definition/update.js.map +1 -0
  117. package/lib/commands/cuneiform/mcp/serve.d.ts +56 -0
  118. package/lib/commands/cuneiform/mcp/serve.js +109 -0
  119. package/lib/commands/cuneiform/mcp/serve.js.map +1 -0
  120. package/lib/commands/cuneiform/object/describe.d.ts +61 -0
  121. package/lib/commands/cuneiform/object/describe.js +461 -0
  122. package/lib/commands/cuneiform/object/describe.js.map +1 -0
  123. package/lib/commands/cuneiform/object/list.d.ts +123 -0
  124. package/lib/commands/cuneiform/object/list.js +264 -0
  125. package/lib/commands/cuneiform/object/list.js.map +1 -0
  126. package/lib/commands/cuneiform/org/details.d.ts +99 -0
  127. package/lib/commands/cuneiform/org/details.js +521 -0
  128. package/lib/commands/cuneiform/org/details.js.map +1 -0
  129. package/lib/commands/cuneiform/org/reset.d.ts +46 -0
  130. package/lib/commands/cuneiform/org/reset.js +135 -0
  131. package/lib/commands/cuneiform/org/reset.js.map +1 -0
  132. package/lib/commands/cuneiform/profile/request/cancel.d.ts +59 -0
  133. package/lib/commands/cuneiform/profile/request/cancel.js +202 -0
  134. package/lib/commands/cuneiform/profile/request/cancel.js.map +1 -0
  135. package/lib/commands/cuneiform/profile/request/delete.d.ts +59 -0
  136. package/lib/commands/cuneiform/profile/request/delete.js +223 -0
  137. package/lib/commands/cuneiform/profile/request/delete.js.map +1 -0
  138. package/lib/commands/cuneiform/profile/request/list.d.ts +35 -0
  139. package/lib/commands/cuneiform/profile/request/list.js +102 -0
  140. package/lib/commands/cuneiform/profile/request/list.js.map +1 -0
  141. package/lib/commands/cuneiform/profile.d.ts +93 -0
  142. package/lib/commands/cuneiform/profile.js +353 -0
  143. package/lib/commands/cuneiform/profile.js.map +1 -0
  144. package/lib/commands/cuneiform/summary/purge.d.ts +80 -0
  145. package/lib/commands/cuneiform/summary/purge.js +467 -0
  146. package/lib/commands/cuneiform/summary/purge.js.map +1 -0
  147. package/lib/commands/cuneiform/summary/reprofile.d.ts +60 -0
  148. package/lib/commands/cuneiform/summary/reprofile.js +236 -0
  149. package/lib/commands/cuneiform/summary/reprofile.js.map +1 -0
  150. package/lib/commands/cuneiform/summary/stop.d.ts +59 -0
  151. package/lib/commands/cuneiform/summary/stop.js +234 -0
  152. package/lib/commands/cuneiform/summary/stop.js.map +1 -0
  153. package/lib/commands/cuneiform/user/details.d.ts +77 -0
  154. package/lib/commands/cuneiform/user/details.js +414 -0
  155. package/lib/commands/cuneiform/user/details.js.map +1 -0
  156. package/lib/constants/namespace-constants.d.ts +102 -0
  157. package/lib/constants/namespace-constants.js +225 -0
  158. package/lib/constants/namespace-constants.js.map +1 -0
  159. package/lib/debug/command-debug-proxy.d.ts +101 -0
  160. package/lib/debug/command-debug-proxy.js +171 -0
  161. package/lib/debug/command-debug-proxy.js.map +1 -0
  162. package/lib/debug/debug-logger.d.ts +85 -0
  163. package/lib/debug/debug-logger.js +133 -0
  164. package/lib/debug/debug-logger.js.map +1 -0
  165. package/lib/debug/service-debug-proxy.d.ts +30 -0
  166. package/lib/debug/service-debug-proxy.js +102 -0
  167. package/lib/debug/service-debug-proxy.js.map +1 -0
  168. package/lib/hooks/prerun.d.ts +25 -0
  169. package/lib/hooks/prerun.js +47 -0
  170. package/lib/hooks/prerun.js.map +1 -0
  171. package/lib/mcp/config/mcp-config.d.ts +55 -0
  172. package/lib/mcp/config/mcp-config.js +51 -0
  173. package/lib/mcp/config/mcp-config.js.map +1 -0
  174. package/lib/mcp/config/pagination.d.ts +96 -0
  175. package/lib/mcp/config/pagination.js +108 -0
  176. package/lib/mcp/config/pagination.js.map +1 -0
  177. package/lib/mcp/config/system-prompts.d.ts +18 -0
  178. package/lib/mcp/config/system-prompts.js +92 -0
  179. package/lib/mcp/config/system-prompts.js.map +1 -0
  180. package/lib/mcp/errors.d.ts +23 -0
  181. package/lib/mcp/errors.js +27 -0
  182. package/lib/mcp/errors.js.map +1 -0
  183. package/lib/mcp/schemas/input-schemas.d.ts +327 -0
  184. package/lib/mcp/schemas/input-schemas.js +310 -0
  185. package/lib/mcp/schemas/input-schemas.js.map +1 -0
  186. package/lib/mcp/server.d.ts +40 -0
  187. package/lib/mcp/server.js +316 -0
  188. package/lib/mcp/server.js.map +1 -0
  189. package/lib/mcp/tools/contactpoint-tools.d.ts +14 -0
  190. package/lib/mcp/tools/contactpoint-tools.js +34 -0
  191. package/lib/mcp/tools/contactpoint-tools.js.map +1 -0
  192. package/lib/mcp/tools/definition-io-tools.d.ts +19 -0
  193. package/lib/mcp/tools/definition-io-tools.js +152 -0
  194. package/lib/mcp/tools/definition-io-tools.js.map +1 -0
  195. package/lib/mcp/tools/definition-tools.d.ts +51 -0
  196. package/lib/mcp/tools/definition-tools.js +220 -0
  197. package/lib/mcp/tools/definition-tools.js.map +1 -0
  198. package/lib/mcp/tools/index.d.ts +37 -0
  199. package/lib/mcp/tools/index.js +88 -0
  200. package/lib/mcp/tools/index.js.map +1 -0
  201. package/lib/mcp/tools/object-tools.d.ts +22 -0
  202. package/lib/mcp/tools/object-tools.js +327 -0
  203. package/lib/mcp/tools/object-tools.js.map +1 -0
  204. package/lib/mcp/tools/org-tools.d.ts +14 -0
  205. package/lib/mcp/tools/org-tools.js +177 -0
  206. package/lib/mcp/tools/org-tools.js.map +1 -0
  207. package/lib/mcp/tools/profile-tools.d.ts +59 -0
  208. package/lib/mcp/tools/profile-tools.js +213 -0
  209. package/lib/mcp/tools/profile-tools.js.map +1 -0
  210. package/lib/mcp/tools/summary-tools.d.ts +14 -0
  211. package/lib/mcp/tools/summary-tools.js +38 -0
  212. package/lib/mcp/tools/summary-tools.js.map +1 -0
  213. package/lib/mcp/tools/tool-factory.d.ts +63 -0
  214. package/lib/mcp/tools/tool-factory.js +146 -0
  215. package/lib/mcp/tools/tool-factory.js.map +1 -0
  216. package/lib/mcp/tools/user-tools.d.ts +25 -0
  217. package/lib/mcp/tools/user-tools.js +167 -0
  218. package/lib/mcp/tools/user-tools.js.map +1 -0
  219. package/lib/models/cascade-skip-accumulator.d.ts +25 -0
  220. package/lib/models/cascade-skip-accumulator.js +9 -0
  221. package/lib/models/cascade-skip-accumulator.js.map +1 -0
  222. package/lib/models/date-literal.d.ts +280 -0
  223. package/lib/models/date-literal.js +1164 -0
  224. package/lib/models/date-literal.js.map +1 -0
  225. package/lib/models/object-describe-types.d.ts +173 -0
  226. package/lib/models/object-describe-types.js +9 -0
  227. package/lib/models/object-describe-types.js.map +1 -0
  228. package/lib/models/portability-recipe.d.ts +35 -0
  229. package/lib/models/portability-recipe.js +113 -0
  230. package/lib/models/portability-recipe.js.map +1 -0
  231. package/lib/models/profile-request-types.d.ts +118 -0
  232. package/lib/models/profile-request-types.js +23 -0
  233. package/lib/models/profile-request-types.js.map +1 -0
  234. package/lib/models/profiling-execution-types.d.ts +154 -0
  235. package/lib/models/profiling-execution-types.js +14 -0
  236. package/lib/models/profiling-execution-types.js.map +1 -0
  237. package/lib/models/service-result.d.ts +114 -0
  238. package/lib/models/service-result.js +81 -0
  239. package/lib/models/service-result.js.map +1 -0
  240. package/lib/models/sfdmu-types.d.ts +49 -0
  241. package/lib/models/sfdmu-types.js +23 -0
  242. package/lib/models/sfdmu-types.js.map +1 -0
  243. package/lib/models/status-types.d.ts +38 -0
  244. package/lib/models/status-types.js +12 -0
  245. package/lib/models/status-types.js.map +1 -0
  246. package/lib/models/summary-bulk-types.d.ts +61 -0
  247. package/lib/models/summary-bulk-types.js +23 -0
  248. package/lib/models/summary-bulk-types.js.map +1 -0
  249. package/lib/models/user-details-types.d.ts +188 -0
  250. package/lib/models/user-details-types.js +9 -0
  251. package/lib/models/user-details-types.js.map +1 -0
  252. package/lib/models/year-range.d.ts +78 -0
  253. package/lib/models/year-range.js +153 -0
  254. package/lib/models/year-range.js.map +1 -0
  255. package/lib/operations/CompatibilityCheckOperation.d.ts +62 -0
  256. package/lib/operations/CompatibilityCheckOperation.js +102 -0
  257. package/lib/operations/CompatibilityCheckOperation.js.map +1 -0
  258. package/lib/operations/DefinitionCreateOperation.d.ts +427 -0
  259. package/lib/operations/DefinitionCreateOperation.js +1270 -0
  260. package/lib/operations/DefinitionCreateOperation.js.map +1 -0
  261. package/lib/operations/DefinitionExportOperation.d.ts +155 -0
  262. package/lib/operations/DefinitionExportOperation.js +281 -0
  263. package/lib/operations/DefinitionExportOperation.js.map +1 -0
  264. package/lib/operations/DefinitionImportOperation.d.ts +144 -0
  265. package/lib/operations/DefinitionImportOperation.js +357 -0
  266. package/lib/operations/DefinitionImportOperation.js.map +1 -0
  267. package/lib/operations/DefinitionListOperation.d.ts +66 -0
  268. package/lib/operations/DefinitionListOperation.js +108 -0
  269. package/lib/operations/DefinitionListOperation.js.map +1 -0
  270. package/lib/operations/DefinitionPurgeOperation.d.ts +203 -0
  271. package/lib/operations/DefinitionPurgeOperation.js +465 -0
  272. package/lib/operations/DefinitionPurgeOperation.js.map +1 -0
  273. package/lib/operations/DefinitionUpdateOperation.d.ts +78 -0
  274. package/lib/operations/DefinitionUpdateOperation.js +142 -0
  275. package/lib/operations/DefinitionUpdateOperation.js.map +1 -0
  276. package/lib/operations/OrgDetailsOperation.d.ts +253 -0
  277. package/lib/operations/OrgDetailsOperation.js +456 -0
  278. package/lib/operations/OrgDetailsOperation.js.map +1 -0
  279. package/lib/operations/OrgResetOperation.d.ts +114 -0
  280. package/lib/operations/OrgResetOperation.js +209 -0
  281. package/lib/operations/OrgResetOperation.js.map +1 -0
  282. package/lib/operations/ProfileOperation.d.ts +192 -0
  283. package/lib/operations/ProfileOperation.js +371 -0
  284. package/lib/operations/ProfileOperation.js.map +1 -0
  285. package/lib/operations/ProfileRequestCancelOperation.d.ts +59 -0
  286. package/lib/operations/ProfileRequestCancelOperation.js +137 -0
  287. package/lib/operations/ProfileRequestCancelOperation.js.map +1 -0
  288. package/lib/operations/ProfileRequestDeleteOperation.d.ts +64 -0
  289. package/lib/operations/ProfileRequestDeleteOperation.js +134 -0
  290. package/lib/operations/ProfileRequestDeleteOperation.js.map +1 -0
  291. package/lib/operations/ProfileRequestListOperation.d.ts +39 -0
  292. package/lib/operations/ProfileRequestListOperation.js +61 -0
  293. package/lib/operations/ProfileRequestListOperation.js.map +1 -0
  294. package/lib/operations/SummaryPurgeOperation.d.ts +134 -0
  295. package/lib/operations/SummaryPurgeOperation.js +257 -0
  296. package/lib/operations/SummaryPurgeOperation.js.map +1 -0
  297. package/lib/operations/SummaryReprofileOperation.d.ts +88 -0
  298. package/lib/operations/SummaryReprofileOperation.js +174 -0
  299. package/lib/operations/SummaryReprofileOperation.js.map +1 -0
  300. package/lib/operations/SummaryStopOperation.d.ts +87 -0
  301. package/lib/operations/SummaryStopOperation.js +175 -0
  302. package/lib/operations/SummaryStopOperation.js.map +1 -0
  303. package/lib/services/BulkExecutionService.d.ts +120 -0
  304. package/lib/services/BulkExecutionService.js +535 -0
  305. package/lib/services/BulkExecutionService.js.map +1 -0
  306. package/lib/services/CompatibilityService.d.ts +81 -0
  307. package/lib/services/CompatibilityService.js +118 -0
  308. package/lib/services/CompatibilityService.js.map +1 -0
  309. package/lib/services/ConfigureMode.d.ts +98 -0
  310. package/lib/services/ConfigureMode.js +413 -0
  311. package/lib/services/ConfigureMode.js.map +1 -0
  312. package/lib/services/ContactPointService.d.ts +111 -0
  313. package/lib/services/ContactPointService.js +286 -0
  314. package/lib/services/ContactPointService.js.map +1 -0
  315. package/lib/services/DataAvailabilityService.d.ts +81 -0
  316. package/lib/services/DataAvailabilityService.js +128 -0
  317. package/lib/services/DataAvailabilityService.js.map +1 -0
  318. package/lib/services/DefinitionFieldGenerationService.d.ts +357 -0
  319. package/lib/services/DefinitionFieldGenerationService.js +899 -0
  320. package/lib/services/DefinitionFieldGenerationService.js.map +1 -0
  321. package/lib/services/DefinitionQueryBuilder.d.ts +92 -0
  322. package/lib/services/DefinitionQueryBuilder.js +328 -0
  323. package/lib/services/DefinitionQueryBuilder.js.map +1 -0
  324. package/lib/services/ObjectDescribeService.d.ts +436 -0
  325. package/lib/services/ObjectDescribeService.js +881 -0
  326. package/lib/services/ObjectDescribeService.js.map +1 -0
  327. package/lib/services/ObjectFilteringService.d.ts +484 -0
  328. package/lib/services/ObjectFilteringService.js +1080 -0
  329. package/lib/services/ObjectFilteringService.js.map +1 -0
  330. package/lib/services/ObjectListCommandService.d.ts +467 -0
  331. package/lib/services/ObjectListCommandService.js +904 -0
  332. package/lib/services/ObjectListCommandService.js.map +1 -0
  333. package/lib/services/ObjectListService.d.ts +201 -0
  334. package/lib/services/ObjectListService.js +350 -0
  335. package/lib/services/ObjectListService.js.map +1 -0
  336. package/lib/services/OrgInfoService.d.ts +493 -0
  337. package/lib/services/OrgInfoService.js +1142 -0
  338. package/lib/services/OrgInfoService.js.map +1 -0
  339. package/lib/services/PollingService.d.ts +105 -0
  340. package/lib/services/PollingService.js +117 -0
  341. package/lib/services/PollingService.js.map +1 -0
  342. package/lib/services/ProfileRequestService.d.ts +186 -0
  343. package/lib/services/ProfileRequestService.js +555 -0
  344. package/lib/services/ProfileRequestService.js.map +1 -0
  345. package/lib/services/ProfilingDefinitionService.d.ts +575 -0
  346. package/lib/services/ProfilingDefinitionService.js +1029 -0
  347. package/lib/services/ProfilingDefinitionService.js.map +1 -0
  348. package/lib/services/ProfilingExecutionService.d.ts +122 -0
  349. package/lib/services/ProfilingExecutionService.js +320 -0
  350. package/lib/services/ProfilingExecutionService.js.map +1 -0
  351. package/lib/services/ProfilingSummaryService.d.ts +292 -0
  352. package/lib/services/ProfilingSummaryService.js +688 -0
  353. package/lib/services/ProfilingSummaryService.js.map +1 -0
  354. package/lib/services/RecordTypeService.d.ts +129 -0
  355. package/lib/services/RecordTypeService.js +284 -0
  356. package/lib/services/RecordTypeService.js.map +1 -0
  357. package/lib/services/SFDMUService.d.ts +146 -0
  358. package/lib/services/SFDMUService.js +323 -0
  359. package/lib/services/SFDMUService.js.map +1 -0
  360. package/lib/services/TabDetectionService.d.ts +105 -0
  361. package/lib/services/TabDetectionService.js +206 -0
  362. package/lib/services/TabDetectionService.js.map +1 -0
  363. package/lib/services/UnconfigureMode.d.ts +74 -0
  364. package/lib/services/UnconfigureMode.js +378 -0
  365. package/lib/services/UnconfigureMode.js.map +1 -0
  366. package/lib/services/UserConfigurationService.d.ts +158 -0
  367. package/lib/services/UserConfigurationService.js +574 -0
  368. package/lib/services/UserConfigurationService.js.map +1 -0
  369. package/lib/services/UserConfigurationTypes.d.ts +181 -0
  370. package/lib/services/UserConfigurationTypes.js +14 -0
  371. package/lib/services/UserConfigurationTypes.js.map +1 -0
  372. package/lib/services/UserReadinessService.d.ts +347 -0
  373. package/lib/services/UserReadinessService.js +891 -0
  374. package/lib/services/UserReadinessService.js.map +1 -0
  375. package/lib/services/constants.d.ts +54 -0
  376. package/lib/services/constants.js +71 -0
  377. package/lib/services/constants.js.map +1 -0
  378. package/lib/services/namespace-constants.d.ts +1 -0
  379. package/lib/services/namespace-constants.js +11 -0
  380. package/lib/services/namespace-constants.js.map +1 -0
  381. package/lib/services/namespace-filter.d.ts +36 -0
  382. package/lib/services/namespace-filter.js +109 -0
  383. package/lib/services/namespace-filter.js.map +1 -0
  384. package/lib/services/validation.d.ts +47 -0
  385. package/lib/services/validation.js +119 -0
  386. package/lib/services/validation.js.map +1 -0
  387. package/lib/utils/batch-processor.d.ts +13 -0
  388. package/lib/utils/batch-processor.js +39 -0
  389. package/lib/utils/batch-processor.js.map +1 -0
  390. package/lib/utils/formatting/availability-grid.d.ts +81 -0
  391. package/lib/utils/formatting/availability-grid.js +94 -0
  392. package/lib/utils/formatting/availability-grid.js.map +1 -0
  393. package/lib/utils/formatting/business-process-grid.d.ts +51 -0
  394. package/lib/utils/formatting/business-process-grid.js +58 -0
  395. package/lib/utils/formatting/business-process-grid.js.map +1 -0
  396. package/lib/utils/formatting/command-display.d.ts +154 -0
  397. package/lib/utils/formatting/command-display.js +154 -0
  398. package/lib/utils/formatting/command-display.js.map +1 -0
  399. package/lib/utils/formatting/definition-create-display.d.ts +118 -0
  400. package/lib/utils/formatting/definition-create-display.js +230 -0
  401. package/lib/utils/formatting/definition-create-display.js.map +1 -0
  402. package/lib/utils/formatting/empty-states.d.ts +35 -0
  403. package/lib/utils/formatting/empty-states.js +70 -0
  404. package/lib/utils/formatting/empty-states.js.map +1 -0
  405. package/lib/utils/formatting/errors.d.ts +33 -0
  406. package/lib/utils/formatting/errors.js +72 -0
  407. package/lib/utils/formatting/errors.js.map +1 -0
  408. package/lib/utils/formatting/field-types.d.ts +32 -0
  409. package/lib/utils/formatting/field-types.js +88 -0
  410. package/lib/utils/formatting/field-types.js.map +1 -0
  411. package/lib/utils/formatting/index.d.ts +29 -0
  412. package/lib/utils/formatting/index.js +28 -0
  413. package/lib/utils/formatting/index.js.map +1 -0
  414. package/lib/utils/formatting/indicators.d.ts +113 -0
  415. package/lib/utils/formatting/indicators.js +161 -0
  416. package/lib/utils/formatting/indicators.js.map +1 -0
  417. package/lib/utils/formatting/loading-messages.d.ts +37 -0
  418. package/lib/utils/formatting/loading-messages.js +50 -0
  419. package/lib/utils/formatting/loading-messages.js.map +1 -0
  420. package/lib/utils/formatting/namespace-display.d.ts +31 -0
  421. package/lib/utils/formatting/namespace-display.js +64 -0
  422. package/lib/utils/formatting/namespace-display.js.map +1 -0
  423. package/lib/utils/formatting/numbers.d.ts +73 -0
  424. package/lib/utils/formatting/numbers.js +187 -0
  425. package/lib/utils/formatting/numbers.js.map +1 -0
  426. package/lib/utils/formatting/object-describe-display.d.ts +117 -0
  427. package/lib/utils/formatting/object-describe-display.js +447 -0
  428. package/lib/utils/formatting/object-describe-display.js.map +1 -0
  429. package/lib/utils/formatting/object-list-display.d.ts +225 -0
  430. package/lib/utils/formatting/object-list-display.js +718 -0
  431. package/lib/utils/formatting/object-list-display.js.map +1 -0
  432. package/lib/utils/formatting/org-identity.d.ts +15 -0
  433. package/lib/utils/formatting/org-identity.js +28 -0
  434. package/lib/utils/formatting/org-identity.js.map +1 -0
  435. package/lib/utils/formatting/record-age-grid.d.ts +41 -0
  436. package/lib/utils/formatting/record-age-grid.js +56 -0
  437. package/lib/utils/formatting/record-age-grid.js.map +1 -0
  438. package/lib/utils/formatting/sections.d.ts +108 -0
  439. package/lib/utils/formatting/sections.js +150 -0
  440. package/lib/utils/formatting/sections.js.map +1 -0
  441. package/lib/utils/formatting/tables.d.ts +90 -0
  442. package/lib/utils/formatting/tables.js +113 -0
  443. package/lib/utils/formatting/tables.js.map +1 -0
  444. package/lib/utils/formatting/user-details-display.d.ts +101 -0
  445. package/lib/utils/formatting/user-details-display.js +425 -0
  446. package/lib/utils/formatting/user-details-display.js.map +1 -0
  447. package/lib/utils/pagination/keypress-reader.d.ts +20 -0
  448. package/lib/utils/pagination/keypress-reader.js +63 -0
  449. package/lib/utils/pagination/keypress-reader.js.map +1 -0
  450. package/lib/utils/pagination/paginate-output.d.ts +48 -0
  451. package/lib/utils/pagination/paginate-output.js +136 -0
  452. package/lib/utils/pagination/paginate-output.js.map +1 -0
  453. package/messages/compatibility.check.md +71 -0
  454. package/messages/cuneiform.access.md +138 -0
  455. package/messages/definition.create.md +525 -0
  456. package/messages/definition.export.md +84 -0
  457. package/messages/definition.get.md +147 -0
  458. package/messages/definition.import.md +65 -0
  459. package/messages/definition.list.md +264 -0
  460. package/messages/definition.purge.md +330 -0
  461. package/messages/definition.update.md +118 -0
  462. package/messages/mcp.serve.md +66 -0
  463. package/messages/object.describe.md +205 -0
  464. package/messages/object.list.md +463 -0
  465. package/messages/org.details.md +386 -0
  466. package/messages/org.reset.md +71 -0
  467. package/messages/profile.md +243 -0
  468. package/messages/profile.request.cancel.md +143 -0
  469. package/messages/profile.request.delete.md +139 -0
  470. package/messages/profile.request.list.md +89 -0
  471. package/messages/summary.purge.md +218 -0
  472. package/messages/summary.reprofile.md +150 -0
  473. package/messages/summary.stop.md +157 -0
  474. package/messages/user.details.md +501 -0
  475. package/oclif.lock +3267 -2148
  476. package/oclif.manifest.json +2829 -31
  477. package/package.json +104 -18
  478. package/lib/commands/cuneiform/about.d.ts +0 -13
  479. package/lib/commands/cuneiform/about.js +0 -26
  480. package/lib/commands/cuneiform/about.js.map +0 -1
  481. package/lib/commands/hello/world.d.ts +0 -14
  482. package/lib/commands/hello/world.js +0 -27
  483. package/lib/commands/hello/world.js.map +0 -1
  484. package/lib/index.d.ts +0 -2
  485. package/lib/index.js +0 -2
  486. package/lib/index.js.map +0 -1
  487. package/messages/cuneiform.about.md +0 -19
  488. package/messages/hello.world.md +0 -29
@@ -0,0 +1,213 @@
1
+ /*
2
+ * Copyright (c) 2026, PeerNova, Inc. All Rights Reserved.
3
+ * PROPRIETARY AND CONFIDENTIAL. Unauthorized copying, modification,
4
+ * or distribution is strictly prohibited. Use is governed by the
5
+ * Master Subscription Agreement (MSA) between PeerNova, Inc. and the
6
+ * licensee. See LICENSE file in the repo root.
7
+ */
8
+ import { ProfilingDefinitionService } from '../../services/ProfilingDefinitionService.js';
9
+ import { ProfilingExecutionService } from '../../services/ProfilingExecutionService.js';
10
+ import { ProfileRequestService } from '../../services/ProfileRequestService.js';
11
+ import { ServiceErrorCodes } from '../../adapters/errors.js';
12
+ import { McpErrorCodes } from '../errors.js';
13
+ import { serviceResultToMcp, createMcpError, extractErrorMessage } from './tool-factory.js';
14
+ /**
15
+ * Handler for cuneiform_request_list tool invocation.
16
+ *
17
+ * Lists profiling requests with optional status filtering and pagination.
18
+ *
19
+ * @param adapters - Session-scoped MCP adapters
20
+ * @param params - Validated input from MCP SDK
21
+ * @returns MCP CallToolResult
22
+ */
23
+ export async function handleRequestList(adapters, params) {
24
+ try {
25
+ const profileRequestService = new ProfileRequestService({
26
+ soqlAdapter: adapters.soql,
27
+ restAdapter: adapters.rest,
28
+ });
29
+ const result = await profileRequestService.listRequests({
30
+ status: params.status,
31
+ limit: params.limit,
32
+ offset: params.offset,
33
+ });
34
+ return serviceResultToMcp(result);
35
+ }
36
+ catch (error) {
37
+ return createMcpError(McpErrorCodes.TOOL_INVOCATION_FAILED, `Failed to list profiling requests: ${extractErrorMessage(error, 'handleRequestList')}`);
38
+ }
39
+ }
40
+ /**
41
+ * Handler for cuneiform_profile_execute tool invocation.
42
+ *
43
+ * Executes profiling for a definition and optionally waits for completion.
44
+ *
45
+ * @param adapters - Session-scoped MCP adapters
46
+ * @param params - Validated input from MCP SDK
47
+ * @returns MCP CallToolResult
48
+ */
49
+ export async function handleProfileExecute(adapters, params) {
50
+ try {
51
+ const { soql: soqlAdapter, rest: restAdapter } = adapters;
52
+ const definitionService = new ProfilingDefinitionService({
53
+ soqlAdapter,
54
+ restAdapter,
55
+ });
56
+ // Build polling config if custom timeout provided
57
+ const pollingConfig = params.timeoutMs ? { timeoutMs: params.timeoutMs } : undefined;
58
+ // Initialize ProfilingExecutionService
59
+ const executionService = new ProfilingExecutionService({
60
+ restAdapter,
61
+ soqlAdapter,
62
+ profilingDefinitionService: definitionService,
63
+ pollingConfig,
64
+ });
65
+ // Execute profiling
66
+ const executeResult = await executionService.execute(params.definitionId);
67
+ if (!executeResult.success) {
68
+ return serviceResultToMcp(executeResult);
69
+ }
70
+ const requestId = executeResult.data;
71
+ // If wait=false, return immediately with request ID
72
+ if (!params.wait) {
73
+ return serviceResultToMcp({
74
+ success: true,
75
+ data: {
76
+ requestId,
77
+ status: 'Queued',
78
+ definitionId: params.definitionId,
79
+ success: null, // Pending
80
+ message: 'Profiling request enqueued. Use cuneiform_profile_status to check progress.',
81
+ },
82
+ message: executeResult.message,
83
+ metadata: executeResult.metadata,
84
+ });
85
+ }
86
+ // Wait for completion
87
+ const completionResult = await executionService.waitForCompletion(requestId);
88
+ return serviceResultToMcp(completionResult);
89
+ }
90
+ catch (error) {
91
+ return createMcpError(McpErrorCodes.TOOL_INVOCATION_FAILED, `Failed to execute profiling: ${extractErrorMessage(error, 'handleProfileExecute')}`);
92
+ }
93
+ }
94
+ /**
95
+ * Handler for cuneiform_profile_status tool invocation.
96
+ *
97
+ * Retrieves status for one or more profiling requests in parallel.
98
+ * Not-found IDs are surfaced as a "Not Found" row — no hard error.
99
+ * Other service errors (e.g. SOQL failure) propagate as hard errors.
100
+ *
101
+ * @param adapters - Session-scoped MCP adapters
102
+ * @param params - Validated input from MCP SDK
103
+ * @returns MCP CallToolResult with statuses array and summary counts
104
+ */
105
+ export async function handleProfileStatus(adapters, params) {
106
+ try {
107
+ const executionService = new ProfilingExecutionService({
108
+ restAdapter: adapters.rest,
109
+ soqlAdapter: adapters.soql,
110
+ });
111
+ const statusEntries = await Promise.all(params.requestIds.map(async (requestId) => {
112
+ const result = await executionService.getStatus(requestId);
113
+ if (result.success) {
114
+ return result.data;
115
+ }
116
+ if (result.errorCode === ServiceErrorCodes.PROFILING_REQUEST_NOT_FOUND) {
117
+ return { requestId, status: 'Not Found', definitionId: '' };
118
+ }
119
+ throw new Error(result.message ?? `Status check failed for ${requestId}`);
120
+ }));
121
+ const summary = {
122
+ completed: statusEntries.filter((s) => s.status === 'Completed').length,
123
+ inProgress: statusEntries.filter((s) => s.status === 'Queued').length,
124
+ failed: statusEntries.filter((s) => s.status === 'Rejected' || s.status === 'Canceled').length,
125
+ notFound: statusEntries.filter((s) => s.status === 'Not Found').length,
126
+ };
127
+ return serviceResultToMcp({
128
+ success: true,
129
+ data: { statuses: statusEntries, summary },
130
+ message: `${statusEntries.length} request(s) checked — ${summary.completed} completed, ${summary.inProgress} in progress, ${summary.failed} failed, ${summary.notFound} not found`,
131
+ });
132
+ }
133
+ catch (error) {
134
+ return createMcpError(McpErrorCodes.TOOL_INVOCATION_FAILED, `Failed to get profiling status: ${extractErrorMessage(error, 'handleProfileStatus')}`);
135
+ }
136
+ }
137
+ /**
138
+ * Handler for cuneiform_profile_cancel tool invocation.
139
+ *
140
+ * Cancels profiling jobs by request ID (single cancellation) or definition ID
141
+ * (bulk cancellation — queries active requests for the definition, then cancels them).
142
+ *
143
+ * Uses ProfileRequestService directly instead of the ProfilingExecutionService facade.
144
+ *
145
+ * @param adapters - Session-scoped MCP adapters
146
+ * @param params - Validated input from MCP SDK
147
+ * @returns MCP CallToolResult
148
+ */
149
+ export async function handleProfileCancel(adapters, params) {
150
+ try {
151
+ const profileRequestService = new ProfileRequestService({
152
+ soqlAdapter: adapters.soql,
153
+ restAdapter: adapters.rest,
154
+ });
155
+ // Execute appropriate method based on input mode
156
+ if (params.requestId) {
157
+ // Single request cancellation via ProfileRequestService
158
+ const result = await profileRequestService.cancelRequests({ requestIds: [params.requestId] });
159
+ return serviceResultToMcp(result);
160
+ }
161
+ else if (params.definitionId) {
162
+ // Definition-wide cancellation: list all cancellable requests for the definition,
163
+ // then cancel them via ProfileRequestService
164
+ const listResult = await profileRequestService.listRequests({ status: ['Queued'] });
165
+ if (!listResult.success) {
166
+ return serviceResultToMcp(listResult);
167
+ }
168
+ // Filter to requests belonging to this definition
169
+ const definitionRequests = listResult.data.filter((r) => r.definitionId === params.definitionId);
170
+ if (definitionRequests.length === 0) {
171
+ return serviceResultToMcp({
172
+ success: true,
173
+ data: 0,
174
+ message: 'No active requests to cancel for this definition',
175
+ metadata: { duration: 0 },
176
+ });
177
+ }
178
+ const requestIds = definitionRequests.map((r) => r.id);
179
+ const cancelResult = await profileRequestService.cancelRequests({ requestIds });
180
+ return serviceResultToMcp(cancelResult);
181
+ }
182
+ else {
183
+ return createMcpError(McpErrorCodes.INVALID_TOOL_INPUT, 'Either requestId or definitionId must be provided');
184
+ }
185
+ }
186
+ catch (error) {
187
+ return createMcpError(McpErrorCodes.TOOL_INVOCATION_FAILED, `Failed to cancel profiling: ${extractErrorMessage(error, 'handleProfileCancel')}`);
188
+ }
189
+ }
190
+ /**
191
+ * Handler for cuneiform_profile_delete tool invocation.
192
+ *
193
+ * Deletes terminal (Canceled) profiling requests by ID. This operation is irreversible.
194
+ * Only requests in the Canceled state can be deleted — the service enforces this constraint.
195
+ *
196
+ * @param adapters - Session-scoped MCP adapters
197
+ * @param params - Validated input from MCP SDK
198
+ * @returns MCP CallToolResult
199
+ */
200
+ export async function handleProfileDelete(adapters, params) {
201
+ try {
202
+ const profileRequestService = new ProfileRequestService({
203
+ soqlAdapter: adapters.soql,
204
+ restAdapter: adapters.rest,
205
+ });
206
+ const result = await profileRequestService.deleteRequests({ requestIds: params.requestIds });
207
+ return serviceResultToMcp(result);
208
+ }
209
+ catch (error) {
210
+ return createMcpError(McpErrorCodes.TOOL_INVOCATION_FAILED, `Failed to delete profiling requests: ${extractErrorMessage(error, 'handleProfileDelete')}`);
211
+ }
212
+ }
213
+ //# sourceMappingURL=profile-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-tools.js","sourceRoot":"","sources":["../../../src/mcp/tools/profile-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,0BAA0B,EAAE,MAAM,8CAA8C,CAAC;AAC1F,OAAO,EAAE,yBAAyB,EAAsB,MAAM,6CAA6C,CAAC;AAC5G,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAQ7C,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE5F;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK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,aAAa,CAAC,sBAAsB,EACpC,wCAAwC,mBAAmB,CAAC,KAAK,EAAE,qBAAqB,CAAC,EAAE,CAC5F,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
2
+ import type { McpAdapters } from '../config/mcp-config.js';
3
+ import type { SummaryListInput } from '../schemas/input-schemas.js';
4
+ /**
5
+ * Handler for cuneiform_summary_list tool invocation.
6
+ *
7
+ * Retrieves profiling summary statistics for a specific definition ID.
8
+ * Supports pagination via limit and offset parameters.
9
+ *
10
+ * @param adapters - Session-scoped MCP adapters
11
+ * @param params - Validated input from MCP SDK
12
+ * @returns MCP CallToolResult containing ProfilingSummary[] or error
13
+ */
14
+ export declare function handleSummaryList(adapters: McpAdapters, params: SummaryListInput): Promise<CallToolResult>;
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Copyright (c) 2026, PeerNova, Inc. All Rights Reserved.
3
+ * PROPRIETARY AND CONFIDENTIAL. Unauthorized copying, modification,
4
+ * or distribution is strictly prohibited. Use is governed by the
5
+ * Master Subscription Agreement (MSA) between PeerNova, Inc. and the
6
+ * licensee. See LICENSE file in the repo root.
7
+ */
8
+ import { ProfilingSummaryService } from '../../services/ProfilingSummaryService.js';
9
+ import { McpErrorCodes } from '../errors.js';
10
+ import { serviceResultToMcp, createMcpError, extractErrorMessage } from './tool-factory.js';
11
+ /**
12
+ * Handler for cuneiform_summary_list tool invocation.
13
+ *
14
+ * Retrieves profiling summary statistics for a specific definition ID.
15
+ * Supports pagination via limit and offset parameters.
16
+ *
17
+ * @param adapters - Session-scoped MCP adapters
18
+ * @param params - Validated input from MCP SDK
19
+ * @returns MCP CallToolResult containing ProfilingSummary[] or error
20
+ */
21
+ export async function handleSummaryList(adapters, params) {
22
+ try {
23
+ const summaryService = new ProfilingSummaryService({
24
+ soqlAdapter: adapters.soql,
25
+ });
26
+ // Get summaries with pagination
27
+ const result = await summaryService.getSummaries({
28
+ definitionId: params.definitionId,
29
+ limit: params.limit,
30
+ offset: params.offset,
31
+ });
32
+ return serviceResultToMcp(result);
33
+ }
34
+ catch (error) {
35
+ return createMcpError(McpErrorCodes.TOOL_INVOCATION_FAILED, `Failed to list summaries: ${extractErrorMessage(error, 'handleSummaryList')}`);
36
+ }
37
+ }
38
+ //# sourceMappingURL=summary-tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"summary-tools.js","sourceRoot":"","sources":["../../../src/mcp/tools/summary-tools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE5F;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,QAAqB,EAAE,MAAwB;IACrF,IAAI,CAAC;QACH,MAAM,cAAc,GAAG,IAAI,uBAAuB,CAAC;YACjD,WAAW,EAAE,QAAQ,CAAC,IAAI;SAC3B,CAAC,CAAC;QAEH,gCAAgC;QAChC,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,YAAY,CAAC;YAC/C,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,MAAM,EAAE,MAAM,CAAC,MAAM;SACtB,CAAC,CAAC;QAEH,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAC;IACpC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,cAAc,CACnB,aAAa,CAAC,sBAAsB,EACpC,6BAA6B,mBAAmB,CAAC,KAAK,EAAE,mBAAmB,CAAC,EAAE,CAC/E,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -0,0 +1,63 @@
1
+ import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
2
+ import type { ServiceResult } from '../../models/service-result.js';
3
+ import type { PaginationMetadata } from '../config/pagination.js';
4
+ import type { McpAdapters } from '../config/mcp-config.js';
5
+ import { type McpErrorCode } from '../errors.js';
6
+ /**
7
+ * Creates a typed MCP tool handler that narrows `unknown` input to type `T`.
8
+ *
9
+ * The McpServer SDK validates input via Zod schemas before calling handlers,
10
+ * so the cast from `unknown` to `T` is runtime-safe. This wrapper centralizes
11
+ * the single cast point instead of scattering `input as T` across 18 handlers.
12
+ *
13
+ * @template T The validated input type (inferred from the handler parameter)
14
+ * @param handler - Typed handler function accepting validated input
15
+ * @returns Untyped handler matching the ToolHandler signature
16
+ */
17
+ export declare function typedHandler<T>(handler: (adapters: McpAdapters, input: T) => Promise<CallToolResult>): (adapters: McpAdapters, input: unknown) => Promise<CallToolResult>;
18
+ /**
19
+ * Converts a ServiceResult to MCP CallToolResult format.
20
+ *
21
+ * Maps success/failure to MCP's content/isError structure.
22
+ * Preserves warnings and metadata in the response.
23
+ *
24
+ * @template T The type of the service result data
25
+ * @param result - ServiceResult from a service call
26
+ * @returns MCP-formatted CallToolResult
27
+ *
28
+ * @example
29
+ * ```typescript
30
+ * const serviceResult = await orgInfoService.getOrgIdentity();
31
+ * return serviceResultToMcp(serviceResult);
32
+ * ```
33
+ */
34
+ export declare function serviceResultToMcp<T>(result: ServiceResult<T>): CallToolResult;
35
+ /**
36
+ * Converts a ServiceResult to a paginated MCP CallToolResult.
37
+ *
38
+ * Includes `_pagination` metadata in the response envelope for
39
+ * cursor-based pagination through large result sets.
40
+ *
41
+ * @template T The type of the service result data
42
+ * @param result - ServiceResult from a service call
43
+ * @param pagination - Pagination metadata for the response
44
+ * @returns MCP-formatted CallToolResult with pagination envelope
45
+ */
46
+ export declare function serviceResultToMcpPaginated<T>(result: ServiceResult<T>, pagination: PaginationMetadata): CallToolResult;
47
+ /**
48
+ * Extracts a user-facing error message from a caught error and logs the
49
+ * full stack trace to stderr for post-mortem debugging.
50
+ *
51
+ * @param error - The caught error (may be Error or non-Error value)
52
+ * @param context - Tool/handler name for the log prefix
53
+ * @returns The error message string
54
+ */
55
+ export declare function extractErrorMessage(error: unknown, context: string): string;
56
+ /**
57
+ * Creates an MCP error response.
58
+ *
59
+ * @param errorCode - MCP error code
60
+ * @param message - Error message
61
+ * @returns MCP-formatted error CallToolResult
62
+ */
63
+ export declare function createMcpError(errorCode: McpErrorCode, message: string): CallToolResult;
@@ -0,0 +1,146 @@
1
+ /*
2
+ * Copyright (c) 2026, PeerNova, Inc. All Rights Reserved.
3
+ * PROPRIETARY AND CONFIDENTIAL. Unauthorized copying, modification,
4
+ * or distribution is strictly prohibited. Use is governed by the
5
+ * Master Subscription Agreement (MSA) between PeerNova, Inc. and the
6
+ * licensee. See LICENSE file in the repo root.
7
+ */
8
+ import { McpErrorCodes } from '../errors.js';
9
+ /**
10
+ * Creates a typed MCP tool handler that narrows `unknown` input to type `T`.
11
+ *
12
+ * The McpServer SDK validates input via Zod schemas before calling handlers,
13
+ * so the cast from `unknown` to `T` is runtime-safe. This wrapper centralizes
14
+ * the single cast point instead of scattering `input as T` across 18 handlers.
15
+ *
16
+ * @template T The validated input type (inferred from the handler parameter)
17
+ * @param handler - Typed handler function accepting validated input
18
+ * @returns Untyped handler matching the ToolHandler signature
19
+ */
20
+ export function typedHandler(handler) {
21
+ return (adapters, input) => handler(adapters, input);
22
+ }
23
+ /**
24
+ * Converts a ServiceResult to MCP CallToolResult format.
25
+ *
26
+ * Maps success/failure to MCP's content/isError structure.
27
+ * Preserves warnings and metadata in the response.
28
+ *
29
+ * @template T The type of the service result data
30
+ * @param result - ServiceResult from a service call
31
+ * @returns MCP-formatted CallToolResult
32
+ *
33
+ * @example
34
+ * ```typescript
35
+ * const serviceResult = await orgInfoService.getOrgIdentity();
36
+ * return serviceResultToMcp(serviceResult);
37
+ * ```
38
+ */
39
+ export function serviceResultToMcp(result) {
40
+ if (result.success) {
41
+ const content = {
42
+ type: 'text',
43
+ text: JSON.stringify({
44
+ success: true,
45
+ data: result.data,
46
+ message: result.message,
47
+ warnings: result.warnings,
48
+ metadata: result.metadata,
49
+ }, null, 2),
50
+ };
51
+ return {
52
+ content: [content],
53
+ isError: false,
54
+ };
55
+ }
56
+ // Failure case
57
+ const errorContent = {
58
+ type: 'text',
59
+ text: JSON.stringify({
60
+ success: false,
61
+ errorCode: result.errorCode ?? McpErrorCodes.SERVICE_CALL_FAILED,
62
+ message: result.message ?? 'Service call failed',
63
+ data: result.data,
64
+ metadata: result.metadata,
65
+ }, null, 2),
66
+ };
67
+ return {
68
+ content: [errorContent],
69
+ isError: true,
70
+ };
71
+ }
72
+ /**
73
+ * Converts a ServiceResult to a paginated MCP CallToolResult.
74
+ *
75
+ * Includes `_pagination` metadata in the response envelope for
76
+ * cursor-based pagination through large result sets.
77
+ *
78
+ * @template T The type of the service result data
79
+ * @param result - ServiceResult from a service call
80
+ * @param pagination - Pagination metadata for the response
81
+ * @returns MCP-formatted CallToolResult with pagination envelope
82
+ */
83
+ export function serviceResultToMcpPaginated(result, pagination) {
84
+ if (result.success) {
85
+ const content = {
86
+ type: 'text',
87
+ text: JSON.stringify({
88
+ success: true,
89
+ data: result.data,
90
+ _pagination: pagination,
91
+ message: result.message,
92
+ warnings: result.warnings,
93
+ metadata: result.metadata,
94
+ }, null, 2),
95
+ };
96
+ return {
97
+ content: [content],
98
+ isError: false,
99
+ };
100
+ }
101
+ // Failure case — no pagination on errors
102
+ return serviceResultToMcp(result);
103
+ }
104
+ /**
105
+ * Extracts a user-facing error message from a caught error and logs the
106
+ * full stack trace to stderr for post-mortem debugging.
107
+ *
108
+ * @param error - The caught error (may be Error or non-Error value)
109
+ * @param context - Tool/handler name for the log prefix
110
+ * @returns The error message string
111
+ */
112
+ /* eslint-disable no-console -- MCP uses stderr for logging */
113
+ export function extractErrorMessage(error, context) {
114
+ if (error instanceof Error) {
115
+ if (error.stack) {
116
+ console.error(`[MCP] ${context} error:\n${error.stack}`);
117
+ }
118
+ return error.message;
119
+ }
120
+ const message = String(error);
121
+ console.error(`[MCP] ${context} non-Error thrown: ${message}`);
122
+ return message;
123
+ }
124
+ /* eslint-enable no-console */
125
+ /**
126
+ * Creates an MCP error response.
127
+ *
128
+ * @param errorCode - MCP error code
129
+ * @param message - Error message
130
+ * @returns MCP-formatted error CallToolResult
131
+ */
132
+ export function createMcpError(errorCode, message) {
133
+ const errorContent = {
134
+ type: 'text',
135
+ text: JSON.stringify({
136
+ success: false,
137
+ errorCode,
138
+ message,
139
+ }, null, 2),
140
+ };
141
+ return {
142
+ content: [errorContent],
143
+ isError: true,
144
+ };
145
+ }
146
+ //# sourceMappingURL=tool-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-factory.js","sourceRoot":"","sources":["../../../src/mcp/tools/tool-factory.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,OAAO,EAAE,aAAa,EAAqB,MAAM,cAAc,CAAC;AAEhE;;;;;;;;;;GAUG;AACH,MAAM,UAAU,YAAY,CAC1B,OAAqE;IAErE,OAAO,CAAC,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAU,CAAC,CAAC;AAC5D,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,kBAAkB,CAAI,MAAwB;IAC5D,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;QACnB,MAAM,OAAO,GAAgB;YAC3B,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAClB;gBACE,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ;aAC1B,EACD,IAAI,EACJ,CAAC,CACF;SACF,CAAC;QAEF,OAAO;YACL,OAAO,EAAE,CAAC,OAAO,CAAC;YAClB,OAAO,EAAE,KAAK;SACf,CAA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AC,KAAK,EAAE,CAAC;YAChB,OAAO,CAAC,KAAK,CAAC,SAAS,OAAO,YAAY,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;QAC3D,CAAC;QACD,OAAO,KAAK,CAAC,OAAO,CAAC;IACvB,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9B,OAAO,CAAC,KAAK,CAAC,SAAS,OAAO,sBAAsB,OAAO,EAAE,CAAC,CAAC;IAC/D,OAAO,OAAO,CAAC;AACjB,CAAC;AACD,8BAA8B;AAE9B;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,SAAuB,EAAE,OAAe;IACrE,MAAM,YAAY,GAAgB;QAChC,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAClB;YACE,OAAO,EAAE,KAAK;YACd,SAAS;YACT,OAAO;SACR,EACD,IAAI,EACJ,CAAC,CACF;KACF,CAAC;IAEF,OAAO;QACL,OAAO,EAAE,CAAC,YAAY,CAAC;QACvB,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
2
+ import type { McpAdapters } from '../config/mcp-config.js';
3
+ import type { UserDetailsInput, UserConfigureInput } from '../schemas/input-schemas.js';
4
+ /**
5
+ * Handler for cuneiform_user_details tool invocation.
6
+ *
7
+ * Returns user identity, readiness, and org context directly from service data.
8
+ * Builds the MCP response inline rather than delegating to the command layer.
9
+ *
10
+ * @param adapters - Session-scoped MCP adapters
11
+ * @param params - Validated input from MCP SDK
12
+ * @returns MCP CallToolResult
13
+ */
14
+ export declare function handleUserDetails(adapters: McpAdapters, params: UserDetailsInput): Promise<CallToolResult>;
15
+ /**
16
+ * Handler for cuneiform_user_configure tool invocation.
17
+ *
18
+ * Includes a prerequisite guard that checks Cuneiform installation
19
+ * before attempting configuration.
20
+ *
21
+ * @param adapters - Session-scoped MCP adapters
22
+ * @param params - Validated input from MCP SDK
23
+ * @returns MCP CallToolResult
24
+ */
25
+ export declare function handleUserConfigure(adapters: McpAdapters, params: UserConfigureInput): Promise<CallToolResult>;