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

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 (494) hide show
  1. package/LICENSE +81 -30
  2. package/README.md +59 -95
  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/index.d.ts +33 -0
  10. package/lib/adapters/index.js +50 -0
  11. package/lib/adapters/index.js.map +1 -0
  12. package/lib/adapters/lifecycle.d.ts +119 -0
  13. package/lib/adapters/lifecycle.js +94 -0
  14. package/lib/adapters/lifecycle.js.map +1 -0
  15. package/lib/adapters/rest/cache.d.ts +69 -0
  16. package/lib/adapters/rest/cache.js +133 -0
  17. package/lib/adapters/rest/cache.js.map +1 -0
  18. package/lib/adapters/rest/index.d.ts +11 -0
  19. package/lib/adapters/rest/index.js +18 -0
  20. package/lib/adapters/rest/index.js.map +1 -0
  21. package/lib/adapters/rest/profiling-rest-client.d.ts +137 -0
  22. package/lib/adapters/rest/profiling-rest-client.js +115 -0
  23. package/lib/adapters/rest/profiling-rest-client.js.map +1 -0
  24. package/lib/adapters/rest/rest-api-adapter.d.ts +389 -0
  25. package/lib/adapters/rest/rest-api-adapter.js +747 -0
  26. package/lib/adapters/rest/rest-api-adapter.js.map +1 -0
  27. package/lib/adapters/rest/types.d.ts +34 -0
  28. package/lib/adapters/rest/types.js +9 -0
  29. package/lib/adapters/rest/types.js.map +1 -0
  30. package/lib/adapters/retry.d.ts +91 -0
  31. package/lib/adapters/retry.js +215 -0
  32. package/lib/adapters/retry.js.map +1 -0
  33. package/lib/adapters/soql/cuneiform-query-builder.d.ts +391 -0
  34. package/lib/adapters/soql/cuneiform-query-builder.js +559 -0
  35. package/lib/adapters/soql/cuneiform-query-builder.js.map +1 -0
  36. package/lib/adapters/soql/index.d.ts +13 -0
  37. package/lib/adapters/soql/index.js +21 -0
  38. package/lib/adapters/soql/index.js.map +1 -0
  39. package/lib/adapters/soql/soql-query-adapter.d.ts +141 -0
  40. package/lib/adapters/soql/soql-query-adapter.js +259 -0
  41. package/lib/adapters/soql/soql-query-adapter.js.map +1 -0
  42. package/lib/adapters/soql/types.d.ts +37 -0
  43. package/lib/adapters/soql/types.js +19 -0
  44. package/lib/adapters/soql/types.js.map +1 -0
  45. package/lib/adapters/testing/index.d.ts +37 -0
  46. package/lib/adapters/testing/index.js +20 -0
  47. package/lib/adapters/testing/index.js.map +1 -0
  48. package/lib/adapters/testing/mock-connection.d.ts +77 -0
  49. package/lib/adapters/testing/mock-connection.js +207 -0
  50. package/lib/adapters/testing/mock-connection.js.map +1 -0
  51. package/lib/adapters/testing/mock-logger.d.ts +29 -0
  52. package/lib/adapters/testing/mock-logger.js +57 -0
  53. package/lib/adapters/testing/mock-logger.js.map +1 -0
  54. package/lib/adapters/testing/mock-mcp-adapters.d.ts +32 -0
  55. package/lib/adapters/testing/mock-mcp-adapters.js +52 -0
  56. package/lib/adapters/testing/mock-mcp-adapters.js.map +1 -0
  57. package/lib/adapters/testing/mock-oclif-config.d.ts +22 -0
  58. package/lib/adapters/testing/mock-oclif-config.js +90 -0
  59. package/lib/adapters/testing/mock-oclif-config.js.map +1 -0
  60. package/lib/adapters/testing/mock-rest-adapter.d.ts +26 -0
  61. package/lib/adapters/testing/mock-rest-adapter.js +243 -0
  62. package/lib/adapters/testing/mock-rest-adapter.js.map +1 -0
  63. package/lib/adapters/testing/mock-salesforce-connection.d.ts +40 -0
  64. package/lib/adapters/testing/mock-salesforce-connection.js +61 -0
  65. package/lib/adapters/testing/mock-salesforce-connection.js.map +1 -0
  66. package/lib/adapters/testing/mock-soql-adapter.d.ts +30 -0
  67. package/lib/adapters/testing/mock-soql-adapter.js +120 -0
  68. package/lib/adapters/testing/mock-soql-adapter.js.map +1 -0
  69. package/lib/adapters/testing/mock-tooling-adapter.d.ts +24 -0
  70. package/lib/adapters/testing/mock-tooling-adapter.js +163 -0
  71. package/lib/adapters/testing/mock-tooling-adapter.js.map +1 -0
  72. package/lib/adapters/testing/stub-connection.d.ts +93 -0
  73. package/lib/adapters/testing/stub-connection.js +97 -0
  74. package/lib/adapters/testing/stub-connection.js.map +1 -0
  75. package/lib/adapters/testing/stub-rest-adapter.d.ts +52 -0
  76. package/lib/adapters/testing/stub-rest-adapter.js +58 -0
  77. package/lib/adapters/testing/stub-rest-adapter.js.map +1 -0
  78. package/lib/adapters/testing/stub-soql-adapter.d.ts +56 -0
  79. package/lib/adapters/testing/stub-soql-adapter.js +50 -0
  80. package/lib/adapters/testing/stub-soql-adapter.js.map +1 -0
  81. package/lib/adapters/testing/types.d.ts +71 -0
  82. package/lib/adapters/testing/types.js +9 -0
  83. package/lib/adapters/testing/types.js.map +1 -0
  84. package/lib/adapters/tooling/index.d.ts +10 -0
  85. package/lib/adapters/tooling/index.js +17 -0
  86. package/lib/adapters/tooling/index.js.map +1 -0
  87. package/lib/adapters/tooling/tooling-api-adapter.d.ts +157 -0
  88. package/lib/adapters/tooling/tooling-api-adapter.js +339 -0
  89. package/lib/adapters/tooling/tooling-api-adapter.js.map +1 -0
  90. package/lib/adapters/tooling/types.d.ts +81 -0
  91. package/lib/adapters/tooling/types.js +9 -0
  92. package/lib/adapters/tooling/types.js.map +1 -0
  93. package/lib/adapters/types.d.ts +112 -0
  94. package/lib/adapters/types.js +169 -0
  95. package/lib/adapters/types.js.map +1 -0
  96. package/lib/base/cuneiform-command.d.ts +152 -0
  97. package/lib/base/cuneiform-command.js +243 -0
  98. package/lib/base/cuneiform-command.js.map +1 -0
  99. package/lib/commands/cuneiform/compatibility/check.d.ts +43 -0
  100. package/lib/commands/cuneiform/compatibility/check.js +114 -0
  101. package/lib/commands/cuneiform/compatibility/check.js.map +1 -0
  102. package/lib/commands/cuneiform/definition/create.d.ts +119 -0
  103. package/lib/commands/cuneiform/definition/create.js +693 -0
  104. package/lib/commands/cuneiform/definition/create.js.map +1 -0
  105. package/lib/commands/cuneiform/definition/export.d.ts +57 -0
  106. package/lib/commands/cuneiform/definition/export.js +133 -0
  107. package/lib/commands/cuneiform/definition/export.js.map +1 -0
  108. package/lib/commands/cuneiform/definition/get.d.ts +86 -0
  109. package/lib/commands/cuneiform/definition/get.js +270 -0
  110. package/lib/commands/cuneiform/definition/get.js.map +1 -0
  111. package/lib/commands/cuneiform/definition/import.d.ts +54 -0
  112. package/lib/commands/cuneiform/definition/import.js +118 -0
  113. package/lib/commands/cuneiform/definition/import.js.map +1 -0
  114. package/lib/commands/cuneiform/definition/list.d.ts +110 -0
  115. package/lib/commands/cuneiform/definition/list.js +344 -0
  116. package/lib/commands/cuneiform/definition/list.js.map +1 -0
  117. package/lib/commands/cuneiform/definition/purge.d.ts +105 -0
  118. package/lib/commands/cuneiform/definition/purge.js +533 -0
  119. package/lib/commands/cuneiform/definition/purge.js.map +1 -0
  120. package/lib/commands/cuneiform/definition/update.d.ts +58 -0
  121. package/lib/commands/cuneiform/definition/update.js +206 -0
  122. package/lib/commands/cuneiform/definition/update.js.map +1 -0
  123. package/lib/commands/cuneiform/mcp/serve.d.ts +56 -0
  124. package/lib/commands/cuneiform/mcp/serve.js +109 -0
  125. package/lib/commands/cuneiform/mcp/serve.js.map +1 -0
  126. package/lib/commands/cuneiform/object/describe.d.ts +61 -0
  127. package/lib/commands/cuneiform/object/describe.js +461 -0
  128. package/lib/commands/cuneiform/object/describe.js.map +1 -0
  129. package/lib/commands/cuneiform/object/list.d.ts +111 -0
  130. package/lib/commands/cuneiform/object/list.js +239 -0
  131. package/lib/commands/cuneiform/object/list.js.map +1 -0
  132. package/lib/commands/cuneiform/org/details.d.ts +99 -0
  133. package/lib/commands/cuneiform/org/details.js +521 -0
  134. package/lib/commands/cuneiform/org/details.js.map +1 -0
  135. package/lib/commands/cuneiform/org/reset.d.ts +46 -0
  136. package/lib/commands/cuneiform/org/reset.js +135 -0
  137. package/lib/commands/cuneiform/org/reset.js.map +1 -0
  138. package/lib/commands/cuneiform/profile/request/cancel.d.ts +59 -0
  139. package/lib/commands/cuneiform/profile/request/cancel.js +202 -0
  140. package/lib/commands/cuneiform/profile/request/cancel.js.map +1 -0
  141. package/lib/commands/cuneiform/profile/request/delete.d.ts +59 -0
  142. package/lib/commands/cuneiform/profile/request/delete.js +223 -0
  143. package/lib/commands/cuneiform/profile/request/delete.js.map +1 -0
  144. package/lib/commands/cuneiform/profile/request/list.d.ts +35 -0
  145. package/lib/commands/cuneiform/profile/request/list.js +102 -0
  146. package/lib/commands/cuneiform/profile/request/list.js.map +1 -0
  147. package/lib/commands/cuneiform/profile.d.ts +90 -0
  148. package/lib/commands/cuneiform/profile.js +322 -0
  149. package/lib/commands/cuneiform/profile.js.map +1 -0
  150. package/lib/commands/cuneiform/summary/purge.d.ts +77 -0
  151. package/lib/commands/cuneiform/summary/purge.js +429 -0
  152. package/lib/commands/cuneiform/summary/purge.js.map +1 -0
  153. package/lib/commands/cuneiform/summary/reprofile.d.ts +60 -0
  154. package/lib/commands/cuneiform/summary/reprofile.js +236 -0
  155. package/lib/commands/cuneiform/summary/reprofile.js.map +1 -0
  156. package/lib/commands/cuneiform/summary/stop.d.ts +59 -0
  157. package/lib/commands/cuneiform/summary/stop.js +234 -0
  158. package/lib/commands/cuneiform/summary/stop.js.map +1 -0
  159. package/lib/commands/cuneiform/user/details.d.ts +73 -0
  160. package/lib/commands/cuneiform/user/details.js +391 -0
  161. package/lib/commands/cuneiform/user/details.js.map +1 -0
  162. package/lib/constants/index.d.ts +8 -0
  163. package/lib/constants/index.js +16 -0
  164. package/lib/constants/index.js.map +1 -0
  165. package/lib/constants/namespace-constants.d.ts +91 -0
  166. package/lib/constants/namespace-constants.js +211 -0
  167. package/lib/constants/namespace-constants.js.map +1 -0
  168. package/lib/debug/command-debug-proxy.d.ts +101 -0
  169. package/lib/debug/command-debug-proxy.js +171 -0
  170. package/lib/debug/command-debug-proxy.js.map +1 -0
  171. package/lib/debug/debug-logger.d.ts +85 -0
  172. package/lib/debug/debug-logger.js +133 -0
  173. package/lib/debug/debug-logger.js.map +1 -0
  174. package/lib/debug/index.d.ts +12 -0
  175. package/lib/debug/index.js +20 -0
  176. package/lib/debug/index.js.map +1 -0
  177. package/lib/debug/service-debug-proxy.d.ts +30 -0
  178. package/lib/debug/service-debug-proxy.js +102 -0
  179. package/lib/debug/service-debug-proxy.js.map +1 -0
  180. package/lib/hooks/prerun.d.ts +25 -0
  181. package/lib/hooks/prerun.js +47 -0
  182. package/lib/hooks/prerun.js.map +1 -0
  183. package/lib/mcp/config/mcp-config.d.ts +55 -0
  184. package/lib/mcp/config/mcp-config.js +51 -0
  185. package/lib/mcp/config/mcp-config.js.map +1 -0
  186. package/lib/mcp/config/pagination.d.ts +96 -0
  187. package/lib/mcp/config/pagination.js +108 -0
  188. package/lib/mcp/config/pagination.js.map +1 -0
  189. package/lib/mcp/config/system-prompts.d.ts +18 -0
  190. package/lib/mcp/config/system-prompts.js +92 -0
  191. package/lib/mcp/config/system-prompts.js.map +1 -0
  192. package/lib/mcp/errors.d.ts +23 -0
  193. package/lib/mcp/errors.js +27 -0
  194. package/lib/mcp/errors.js.map +1 -0
  195. package/lib/mcp/schemas/input-schemas.d.ts +327 -0
  196. package/lib/mcp/schemas/input-schemas.js +302 -0
  197. package/lib/mcp/schemas/input-schemas.js.map +1 -0
  198. package/lib/mcp/server.d.ts +40 -0
  199. package/lib/mcp/server.js +316 -0
  200. package/lib/mcp/server.js.map +1 -0
  201. package/lib/mcp/tools/contactpoint-tools.d.ts +14 -0
  202. package/lib/mcp/tools/contactpoint-tools.js +34 -0
  203. package/lib/mcp/tools/contactpoint-tools.js.map +1 -0
  204. package/lib/mcp/tools/definition-io-tools.d.ts +19 -0
  205. package/lib/mcp/tools/definition-io-tools.js +152 -0
  206. package/lib/mcp/tools/definition-io-tools.js.map +1 -0
  207. package/lib/mcp/tools/definition-tools.d.ts +51 -0
  208. package/lib/mcp/tools/definition-tools.js +199 -0
  209. package/lib/mcp/tools/definition-tools.js.map +1 -0
  210. package/lib/mcp/tools/index.d.ts +37 -0
  211. package/lib/mcp/tools/index.js +88 -0
  212. package/lib/mcp/tools/index.js.map +1 -0
  213. package/lib/mcp/tools/object-tools.d.ts +22 -0
  214. package/lib/mcp/tools/object-tools.js +306 -0
  215. package/lib/mcp/tools/object-tools.js.map +1 -0
  216. package/lib/mcp/tools/org-tools.d.ts +14 -0
  217. package/lib/mcp/tools/org-tools.js +177 -0
  218. package/lib/mcp/tools/org-tools.js.map +1 -0
  219. package/lib/mcp/tools/profile-tools.d.ts +59 -0
  220. package/lib/mcp/tools/profile-tools.js +213 -0
  221. package/lib/mcp/tools/profile-tools.js.map +1 -0
  222. package/lib/mcp/tools/summary-tools.d.ts +14 -0
  223. package/lib/mcp/tools/summary-tools.js +38 -0
  224. package/lib/mcp/tools/summary-tools.js.map +1 -0
  225. package/lib/mcp/tools/tool-factory.d.ts +63 -0
  226. package/lib/mcp/tools/tool-factory.js +146 -0
  227. package/lib/mcp/tools/tool-factory.js.map +1 -0
  228. package/lib/mcp/tools/user-tools.d.ts +25 -0
  229. package/lib/mcp/tools/user-tools.js +167 -0
  230. package/lib/mcp/tools/user-tools.js.map +1 -0
  231. package/lib/models/date-literal.d.ts +211 -0
  232. package/lib/models/date-literal.js +615 -0
  233. package/lib/models/date-literal.js.map +1 -0
  234. package/lib/models/object-describe-types.d.ts +173 -0
  235. package/lib/models/object-describe-types.js +9 -0
  236. package/lib/models/object-describe-types.js.map +1 -0
  237. package/lib/models/profile-request-types.d.ts +118 -0
  238. package/lib/models/profile-request-types.js +23 -0
  239. package/lib/models/profile-request-types.js.map +1 -0
  240. package/lib/models/profiling-execution-types.d.ts +154 -0
  241. package/lib/models/profiling-execution-types.js +14 -0
  242. package/lib/models/profiling-execution-types.js.map +1 -0
  243. package/lib/models/service-result.d.ts +114 -0
  244. package/lib/models/service-result.js +81 -0
  245. package/lib/models/service-result.js.map +1 -0
  246. package/lib/models/sfdmu-types.d.ts +53 -0
  247. package/lib/models/sfdmu-types.js +23 -0
  248. package/lib/models/sfdmu-types.js.map +1 -0
  249. package/lib/models/status-types.d.ts +38 -0
  250. package/lib/models/status-types.js +12 -0
  251. package/lib/models/status-types.js.map +1 -0
  252. package/lib/models/summary-bulk-types.d.ts +61 -0
  253. package/lib/models/summary-bulk-types.js +23 -0
  254. package/lib/models/summary-bulk-types.js.map +1 -0
  255. package/lib/models/user-details-types.d.ts +163 -0
  256. package/lib/models/user-details-types.js +9 -0
  257. package/lib/models/user-details-types.js.map +1 -0
  258. package/lib/models/year-range.d.ts +78 -0
  259. package/lib/models/year-range.js +153 -0
  260. package/lib/models/year-range.js.map +1 -0
  261. package/lib/operations/CompatibilityCheckOperation.d.ts +62 -0
  262. package/lib/operations/CompatibilityCheckOperation.js +102 -0
  263. package/lib/operations/CompatibilityCheckOperation.js.map +1 -0
  264. package/lib/operations/DefinitionCreateOperation.d.ts +411 -0
  265. package/lib/operations/DefinitionCreateOperation.js +1121 -0
  266. package/lib/operations/DefinitionCreateOperation.js.map +1 -0
  267. package/lib/operations/DefinitionExportOperation.d.ts +155 -0
  268. package/lib/operations/DefinitionExportOperation.js +281 -0
  269. package/lib/operations/DefinitionExportOperation.js.map +1 -0
  270. package/lib/operations/DefinitionImportOperation.d.ts +144 -0
  271. package/lib/operations/DefinitionImportOperation.js +357 -0
  272. package/lib/operations/DefinitionImportOperation.js.map +1 -0
  273. package/lib/operations/DefinitionListOperation.d.ts +66 -0
  274. package/lib/operations/DefinitionListOperation.js +108 -0
  275. package/lib/operations/DefinitionListOperation.js.map +1 -0
  276. package/lib/operations/DefinitionPurgeOperation.d.ts +199 -0
  277. package/lib/operations/DefinitionPurgeOperation.js +465 -0
  278. package/lib/operations/DefinitionPurgeOperation.js.map +1 -0
  279. package/lib/operations/DefinitionUpdateOperation.d.ts +78 -0
  280. package/lib/operations/DefinitionUpdateOperation.js +142 -0
  281. package/lib/operations/DefinitionUpdateOperation.js.map +1 -0
  282. package/lib/operations/OrgDetailsOperation.d.ts +253 -0
  283. package/lib/operations/OrgDetailsOperation.js +456 -0
  284. package/lib/operations/OrgDetailsOperation.js.map +1 -0
  285. package/lib/operations/OrgResetOperation.d.ts +114 -0
  286. package/lib/operations/OrgResetOperation.js +209 -0
  287. package/lib/operations/OrgResetOperation.js.map +1 -0
  288. package/lib/operations/ProfileOperation.d.ts +187 -0
  289. package/lib/operations/ProfileOperation.js +373 -0
  290. package/lib/operations/ProfileOperation.js.map +1 -0
  291. package/lib/operations/ProfileRequestCancelOperation.d.ts +59 -0
  292. package/lib/operations/ProfileRequestCancelOperation.js +137 -0
  293. package/lib/operations/ProfileRequestCancelOperation.js.map +1 -0
  294. package/lib/operations/ProfileRequestDeleteOperation.d.ts +64 -0
  295. package/lib/operations/ProfileRequestDeleteOperation.js +134 -0
  296. package/lib/operations/ProfileRequestDeleteOperation.js.map +1 -0
  297. package/lib/operations/ProfileRequestListOperation.d.ts +39 -0
  298. package/lib/operations/ProfileRequestListOperation.js +61 -0
  299. package/lib/operations/ProfileRequestListOperation.js.map +1 -0
  300. package/lib/operations/SummaryPurgeOperation.d.ts +134 -0
  301. package/lib/operations/SummaryPurgeOperation.js +257 -0
  302. package/lib/operations/SummaryPurgeOperation.js.map +1 -0
  303. package/lib/operations/SummaryReprofileOperation.d.ts +88 -0
  304. package/lib/operations/SummaryReprofileOperation.js +174 -0
  305. package/lib/operations/SummaryReprofileOperation.js.map +1 -0
  306. package/lib/operations/SummaryStopOperation.d.ts +87 -0
  307. package/lib/operations/SummaryStopOperation.js +175 -0
  308. package/lib/operations/SummaryStopOperation.js.map +1 -0
  309. package/lib/services/BulkExecutionService.d.ts +120 -0
  310. package/lib/services/BulkExecutionService.js +535 -0
  311. package/lib/services/BulkExecutionService.js.map +1 -0
  312. package/lib/services/CompatibilityService.d.ts +81 -0
  313. package/lib/services/CompatibilityService.js +118 -0
  314. package/lib/services/CompatibilityService.js.map +1 -0
  315. package/lib/services/ConfigureMode.d.ts +85 -0
  316. package/lib/services/ConfigureMode.js +390 -0
  317. package/lib/services/ConfigureMode.js.map +1 -0
  318. package/lib/services/ContactPointService.d.ts +111 -0
  319. package/lib/services/ContactPointService.js +286 -0
  320. package/lib/services/ContactPointService.js.map +1 -0
  321. package/lib/services/DataAvailabilityService.d.ts +81 -0
  322. package/lib/services/DataAvailabilityService.js +128 -0
  323. package/lib/services/DataAvailabilityService.js.map +1 -0
  324. package/lib/services/DefinitionFieldGenerationService.d.ts +309 -0
  325. package/lib/services/DefinitionFieldGenerationService.js +795 -0
  326. package/lib/services/DefinitionFieldGenerationService.js.map +1 -0
  327. package/lib/services/DefinitionQueryBuilder.d.ts +59 -0
  328. package/lib/services/DefinitionQueryBuilder.js +234 -0
  329. package/lib/services/DefinitionQueryBuilder.js.map +1 -0
  330. package/lib/services/ObjectDescribeService.d.ts +436 -0
  331. package/lib/services/ObjectDescribeService.js +869 -0
  332. package/lib/services/ObjectDescribeService.js.map +1 -0
  333. package/lib/services/ObjectFilteringService.d.ts +400 -0
  334. package/lib/services/ObjectFilteringService.js +878 -0
  335. package/lib/services/ObjectFilteringService.js.map +1 -0
  336. package/lib/services/ObjectListCommandService.d.ts +429 -0
  337. package/lib/services/ObjectListCommandService.js +873 -0
  338. package/lib/services/ObjectListCommandService.js.map +1 -0
  339. package/lib/services/ObjectListService.d.ts +201 -0
  340. package/lib/services/ObjectListService.js +345 -0
  341. package/lib/services/ObjectListService.js.map +1 -0
  342. package/lib/services/OrgInfoService.d.ts +485 -0
  343. package/lib/services/OrgInfoService.js +1122 -0
  344. package/lib/services/OrgInfoService.js.map +1 -0
  345. package/lib/services/PollingService.d.ts +105 -0
  346. package/lib/services/PollingService.js +117 -0
  347. package/lib/services/PollingService.js.map +1 -0
  348. package/lib/services/ProfileRequestService.d.ts +186 -0
  349. package/lib/services/ProfileRequestService.js +555 -0
  350. package/lib/services/ProfileRequestService.js.map +1 -0
  351. package/lib/services/ProfilingDefinitionService.d.ts +535 -0
  352. package/lib/services/ProfilingDefinitionService.js +981 -0
  353. package/lib/services/ProfilingDefinitionService.js.map +1 -0
  354. package/lib/services/ProfilingExecutionService.d.ts +122 -0
  355. package/lib/services/ProfilingExecutionService.js +320 -0
  356. package/lib/services/ProfilingExecutionService.js.map +1 -0
  357. package/lib/services/ProfilingSummaryService.d.ts +292 -0
  358. package/lib/services/ProfilingSummaryService.js +685 -0
  359. package/lib/services/ProfilingSummaryService.js.map +1 -0
  360. package/lib/services/RecordTypeService.d.ts +129 -0
  361. package/lib/services/RecordTypeService.js +284 -0
  362. package/lib/services/RecordTypeService.js.map +1 -0
  363. package/lib/services/SFDMUService.d.ts +133 -0
  364. package/lib/services/SFDMUService.js +295 -0
  365. package/lib/services/SFDMUService.js.map +1 -0
  366. package/lib/services/TabDetectionService.d.ts +105 -0
  367. package/lib/services/TabDetectionService.js +206 -0
  368. package/lib/services/TabDetectionService.js.map +1 -0
  369. package/lib/services/UnconfigureMode.d.ts +74 -0
  370. package/lib/services/UnconfigureMode.js +378 -0
  371. package/lib/services/UnconfigureMode.js.map +1 -0
  372. package/lib/services/UserConfigurationService.d.ts +155 -0
  373. package/lib/services/UserConfigurationService.js +573 -0
  374. package/lib/services/UserConfigurationService.js.map +1 -0
  375. package/lib/services/UserConfigurationTypes.d.ts +181 -0
  376. package/lib/services/UserConfigurationTypes.js +14 -0
  377. package/lib/services/UserConfigurationTypes.js.map +1 -0
  378. package/lib/services/UserReadinessService.d.ts +330 -0
  379. package/lib/services/UserReadinessService.js +831 -0
  380. package/lib/services/UserReadinessService.js.map +1 -0
  381. package/lib/services/constants.d.ts +53 -0
  382. package/lib/services/constants.js +71 -0
  383. package/lib/services/constants.js.map +1 -0
  384. package/lib/services/namespace-constants.d.ts +1 -0
  385. package/lib/services/namespace-constants.js +11 -0
  386. package/lib/services/namespace-constants.js.map +1 -0
  387. package/lib/services/validation.d.ts +47 -0
  388. package/lib/services/validation.js +119 -0
  389. package/lib/services/validation.js.map +1 -0
  390. package/lib/utils/batch-processor.d.ts +13 -0
  391. package/lib/utils/batch-processor.js +39 -0
  392. package/lib/utils/batch-processor.js.map +1 -0
  393. package/lib/utils/formatting/availability-grid.d.ts +81 -0
  394. package/lib/utils/formatting/availability-grid.js +94 -0
  395. package/lib/utils/formatting/availability-grid.js.map +1 -0
  396. package/lib/utils/formatting/business-process-grid.d.ts +51 -0
  397. package/lib/utils/formatting/business-process-grid.js +58 -0
  398. package/lib/utils/formatting/business-process-grid.js.map +1 -0
  399. package/lib/utils/formatting/command-display.d.ts +154 -0
  400. package/lib/utils/formatting/command-display.js +154 -0
  401. package/lib/utils/formatting/command-display.js.map +1 -0
  402. package/lib/utils/formatting/definition-create-display.d.ts +118 -0
  403. package/lib/utils/formatting/definition-create-display.js +231 -0
  404. package/lib/utils/formatting/definition-create-display.js.map +1 -0
  405. package/lib/utils/formatting/empty-states.d.ts +35 -0
  406. package/lib/utils/formatting/empty-states.js +70 -0
  407. package/lib/utils/formatting/empty-states.js.map +1 -0
  408. package/lib/utils/formatting/errors.d.ts +33 -0
  409. package/lib/utils/formatting/errors.js +72 -0
  410. package/lib/utils/formatting/errors.js.map +1 -0
  411. package/lib/utils/formatting/field-types.d.ts +32 -0
  412. package/lib/utils/formatting/field-types.js +88 -0
  413. package/lib/utils/formatting/field-types.js.map +1 -0
  414. package/lib/utils/formatting/index.d.ts +29 -0
  415. package/lib/utils/formatting/index.js +28 -0
  416. package/lib/utils/formatting/index.js.map +1 -0
  417. package/lib/utils/formatting/indicators.d.ts +113 -0
  418. package/lib/utils/formatting/indicators.js +161 -0
  419. package/lib/utils/formatting/indicators.js.map +1 -0
  420. package/lib/utils/formatting/loading-messages.d.ts +37 -0
  421. package/lib/utils/formatting/loading-messages.js +50 -0
  422. package/lib/utils/formatting/loading-messages.js.map +1 -0
  423. package/lib/utils/formatting/namespace-display.d.ts +31 -0
  424. package/lib/utils/formatting/namespace-display.js +64 -0
  425. package/lib/utils/formatting/namespace-display.js.map +1 -0
  426. package/lib/utils/formatting/numbers.d.ts +73 -0
  427. package/lib/utils/formatting/numbers.js +187 -0
  428. package/lib/utils/formatting/numbers.js.map +1 -0
  429. package/lib/utils/formatting/object-describe-display.d.ts +114 -0
  430. package/lib/utils/formatting/object-describe-display.js +440 -0
  431. package/lib/utils/formatting/object-describe-display.js.map +1 -0
  432. package/lib/utils/formatting/object-list-display.d.ts +213 -0
  433. package/lib/utils/formatting/object-list-display.js +672 -0
  434. package/lib/utils/formatting/object-list-display.js.map +1 -0
  435. package/lib/utils/formatting/org-identity.d.ts +15 -0
  436. package/lib/utils/formatting/org-identity.js +28 -0
  437. package/lib/utils/formatting/org-identity.js.map +1 -0
  438. package/lib/utils/formatting/record-age-grid.d.ts +41 -0
  439. package/lib/utils/formatting/record-age-grid.js +56 -0
  440. package/lib/utils/formatting/record-age-grid.js.map +1 -0
  441. package/lib/utils/formatting/sections.d.ts +108 -0
  442. package/lib/utils/formatting/sections.js +150 -0
  443. package/lib/utils/formatting/sections.js.map +1 -0
  444. package/lib/utils/formatting/tables.d.ts +90 -0
  445. package/lib/utils/formatting/tables.js +113 -0
  446. package/lib/utils/formatting/tables.js.map +1 -0
  447. package/lib/utils/formatting/user-details-display.d.ts +101 -0
  448. package/lib/utils/formatting/user-details-display.js +425 -0
  449. package/lib/utils/formatting/user-details-display.js.map +1 -0
  450. package/lib/utils/pagination/index.d.ts +11 -0
  451. package/lib/utils/pagination/index.js +18 -0
  452. package/lib/utils/pagination/index.js.map +1 -0
  453. package/lib/utils/pagination/keypress-reader.d.ts +20 -0
  454. package/lib/utils/pagination/keypress-reader.js +63 -0
  455. package/lib/utils/pagination/keypress-reader.js.map +1 -0
  456. package/lib/utils/pagination/paginate-output.d.ts +48 -0
  457. package/lib/utils/pagination/paginate-output.js +136 -0
  458. package/lib/utils/pagination/paginate-output.js.map +1 -0
  459. package/messages/compatibility.check.md +71 -0
  460. package/messages/cuneiform.access.md +138 -0
  461. package/messages/definition.create.md +511 -0
  462. package/messages/definition.export.md +84 -0
  463. package/messages/definition.get.md +147 -0
  464. package/messages/definition.import.md +65 -0
  465. package/messages/definition.list.md +264 -0
  466. package/messages/definition.purge.md +318 -0
  467. package/messages/definition.update.md +118 -0
  468. package/messages/mcp.serve.md +66 -0
  469. package/messages/object.describe.md +201 -0
  470. package/messages/object.list.md +443 -0
  471. package/messages/org.details.md +386 -0
  472. package/messages/org.reset.md +71 -0
  473. package/messages/profile.md +231 -0
  474. package/messages/profile.request.cancel.md +143 -0
  475. package/messages/profile.request.delete.md +139 -0
  476. package/messages/profile.request.list.md +89 -0
  477. package/messages/summary.purge.md +218 -0
  478. package/messages/summary.reprofile.md +150 -0
  479. package/messages/summary.stop.md +157 -0
  480. package/messages/user.details.md +501 -0
  481. package/oclif.lock +2887 -2149
  482. package/oclif.manifest.json +2813 -31
  483. package/package.json +94 -19
  484. package/lib/commands/cuneiform/about.d.ts +0 -13
  485. package/lib/commands/cuneiform/about.js +0 -26
  486. package/lib/commands/cuneiform/about.js.map +0 -1
  487. package/lib/commands/hello/world.d.ts +0 -14
  488. package/lib/commands/hello/world.js +0 -27
  489. package/lib/commands/hello/world.js.map +0 -1
  490. package/lib/index.d.ts +0 -2
  491. package/lib/index.js +0 -2
  492. package/lib/index.js.map +0 -1
  493. package/messages/cuneiform.about.md +0 -19
  494. package/messages/hello.world.md +0 -29
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Pagination utilities for CLI output.
3
+ *
4
+ * Re-exports the core pagination function, types, and the default
5
+ * terminal I/O factory for interactive keypress reading.
6
+ *
7
+ * @module utils/pagination
8
+ */
9
+ export { paginateOutput } from './paginate-output.js';
10
+ export type { PaginationIO, PaginateOptions, PaginateResult } from './paginate-output.js';
11
+ export { createDefaultIO } from './keypress-reader.js';
@@ -0,0 +1,18 @@
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
+ /**
9
+ * Pagination utilities for CLI output.
10
+ *
11
+ * Re-exports the core pagination function, types, and the default
12
+ * terminal I/O factory for interactive keypress reading.
13
+ *
14
+ * @module utils/pagination
15
+ */
16
+ export { paginateOutput } from './paginate-output.js';
17
+ export { createDefaultIO } from './keypress-reader.js';
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/pagination/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;GAOG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Raw keypress reader for interactive terminal pagination.
3
+ *
4
+ * Provides a {@link PaginationIO} implementation that reads single keypresses
5
+ * from process.stdin in raw mode. Handles Ctrl+C gracefully and restores
6
+ * terminal state on exit.
7
+ *
8
+ * @module utils/pagination/keypress-reader
9
+ */
10
+ import type { PaginationIO } from './paginate-output.js';
11
+ /**
12
+ * Create the default terminal I/O implementation for pagination.
13
+ *
14
+ * Uses `process.stdin.setRawMode(true)` to read individual keypresses.
15
+ * Registers a `process.on('exit')` handler to restore stdin state unconditionally.
16
+ * Handles `\x03` (Ctrl+C) by restoring stdin and exiting with code 130.
17
+ *
18
+ * @returns A {@link PaginationIO} wired to process.stdin and process.stdout.
19
+ */
20
+ export declare function createDefaultIO(): PaginationIO;
@@ -0,0 +1,63 @@
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
+ /** Exit code for Ctrl+C signal (128 + SIGINT signal number 2). */
9
+ const CTRL_C_EXIT_CODE = 130;
10
+ /**
11
+ * Create the default terminal I/O implementation for pagination.
12
+ *
13
+ * Uses `process.stdin.setRawMode(true)` to read individual keypresses.
14
+ * Registers a `process.on('exit')` handler to restore stdin state unconditionally.
15
+ * Handles `\x03` (Ctrl+C) by restoring stdin and exiting with code 130.
16
+ *
17
+ * @returns A {@link PaginationIO} wired to process.stdin and process.stdout.
18
+ */
19
+ export function createDefaultIO() {
20
+ return {
21
+ isTTY: Boolean(process.stdin.isTTY) && Boolean(process.stdout.isTTY),
22
+ write(text) {
23
+ process.stdout.write(text);
24
+ },
25
+ readKey() {
26
+ return new Promise((resolve, reject) => {
27
+ const stdin = process.stdin;
28
+ const wasRaw = stdin.isRaw;
29
+ // Guard: setRawMode is only available on TTY streams
30
+ if (typeof stdin.setRawMode !== 'function') {
31
+ reject(new Error('Cannot read keypress: stdin is not a TTY'));
32
+ return;
33
+ }
34
+ stdin.setRawMode(true);
35
+ stdin.resume();
36
+ stdin.setEncoding('utf8');
37
+ /** Restore stdin to its previous state. */
38
+ const restore = () => {
39
+ stdin.setRawMode(wasRaw ?? false);
40
+ stdin.pause();
41
+ stdin.removeListener('data', onData);
42
+ };
43
+ /** Exit handler to ensure stdin is always restored. */
44
+ const onExit = () => {
45
+ restore();
46
+ };
47
+ process.on('exit', onExit);
48
+ const onData = (data) => {
49
+ process.removeListener('exit', onExit);
50
+ restore();
51
+ // Ctrl+C: restore terminal and exit cleanly
52
+ if (data === '\x03') {
53
+ process.exit(CTRL_C_EXIT_CODE);
54
+ return;
55
+ }
56
+ resolve(data.length > 0 ? data[0] : 'q');
57
+ };
58
+ stdin.once('data', onData);
59
+ });
60
+ },
61
+ };
62
+ }
63
+ //# sourceMappingURL=keypress-reader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keypress-reader.js","sourceRoot":"","sources":["../../../src/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AE,MAAM,CAAC,CAAC;gBAE3B,MAAM,MAAM,GAAG,CAAC,IAAY,EAAQ,EAAE;oBACpC,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;oBACvC,OAAO,EAAE,CAAC;oBAEV,4CAA4C;oBAC5C,IAAI,IAAI,KAAK,MAAM,EAAE,CAAC;wBACpB,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;wBAC/B,OAAO;oBACT,CAAC;oBAED,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;gBAC3C,CAAC,CAAC;gBAEF,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YAC7B,CAAC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Abstraction over terminal I/O for pagination prompts.
3
+ *
4
+ * Injected into {@link paginateOutput} to decouple from process.stdin/stdout,
5
+ * enabling deterministic testing without raw mode manipulation.
6
+ */
7
+ export type PaginationIO = {
8
+ /** Whether the I/O streams are connected to an interactive terminal. */
9
+ isTTY: boolean;
10
+ /** Write text to the output stream. */
11
+ write(text: string): void;
12
+ /** Read a single keypress and return the character. */
13
+ readKey(): Promise<string>;
14
+ };
15
+ /**
16
+ * Configuration options for {@link paginateOutput}.
17
+ */
18
+ export type PaginateOptions = {
19
+ /** Number of records per page. Defaults to 25. */
20
+ pageSize?: number;
21
+ /** Skip interactive prompts — render all records at once. */
22
+ noPrompt?: boolean;
23
+ /** Skip pagination when JSON output mode is active. */
24
+ jsonEnabled?: boolean;
25
+ /** Injected I/O for testing. Falls back to default terminal IO when omitted. */
26
+ io?: PaginationIO;
27
+ };
28
+ /**
29
+ * Result metadata returned after pagination completes.
30
+ */
31
+ export type PaginateResult = {
32
+ /** Number of records actually rendered. */
33
+ displayed: number;
34
+ /** Total number of pages (may exceed pages displayed if user quit early). */
35
+ totalPages: number;
36
+ /** Terminal action: how pagination ended. */
37
+ action: 'all' | 'paged' | 'quit' | 'no-pagination';
38
+ };
39
+ /**
40
+ * Paginate a record set with interactive terminal prompts.
41
+ *
42
+ * @typeParam T - The record type being paginated.
43
+ * @param records - Full array of records to paginate.
44
+ * @param renderPage - Callback invoked for each page (or all records). Receives the slice and its start index.
45
+ * @param options - Pagination configuration.
46
+ * @returns Result metadata describing what was displayed and how pagination ended.
47
+ */
48
+ export declare function paginateOutput<T>(records: T[], renderPage: (items: T[], startIndex: number) => void, options?: PaginateOptions): Promise<PaginateResult>;
@@ -0,0 +1,136 @@
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
+ /**
9
+ * Core pagination utility for CLI output.
10
+ *
11
+ * Provides interactive page-by-page rendering for large record sets,
12
+ * with automatic bypass for non-TTY, JSON mode, and CI environments.
13
+ * Uses dependency injection via {@link PaginationIO} for testability.
14
+ *
15
+ * @module utils/pagination/paginate-output
16
+ */
17
+ /** Default number of records per page. */
18
+ const DEFAULT_PAGE_SIZE = 25;
19
+ /** Minimum allowed page size to prevent infinite loops. */
20
+ const MIN_PAGE_SIZE = 1;
21
+ /**
22
+ * Paginate a record set with interactive terminal prompts.
23
+ *
24
+ * @typeParam T - The record type being paginated.
25
+ * @param records - Full array of records to paginate.
26
+ * @param renderPage - Callback invoked for each page (or all records). Receives the slice and its start index.
27
+ * @param options - Pagination configuration.
28
+ * @returns Result metadata describing what was displayed and how pagination ended.
29
+ */
30
+ export async function paginateOutput(records, renderPage, options) {
31
+ const pageSize = Math.max(options?.pageSize ?? DEFAULT_PAGE_SIZE, MIN_PAGE_SIZE);
32
+ const totalPages = records.length === 0 ? 0 : Math.ceil(records.length / pageSize);
33
+ // Empty records — nothing to do
34
+ if (records.length === 0) {
35
+ return { displayed: 0, totalPages: 0, action: 'no-pagination' };
36
+ }
37
+ // No pagination needed — fits in a single page
38
+ if (records.length <= pageSize) {
39
+ renderPage(records, 0);
40
+ return { displayed: records.length, totalPages: 1, action: 'no-pagination' };
41
+ }
42
+ // Determine if interactive pagination should be used
43
+ const shouldPaginate = resolveInteractiveMode(options);
44
+ if (!shouldPaginate) {
45
+ // Render everything at once
46
+ renderPage(records, 0);
47
+ return { displayed: records.length, totalPages, action: 'all' };
48
+ }
49
+ // Interactive pagination loop
50
+ const io = options?.io;
51
+ if (!io) {
52
+ // No IO provided and interactive mode resolved — fallback to render all.
53
+ // In production, createDefaultIO() from keypress-reader.ts should be passed.
54
+ renderPage(records, 0);
55
+ return { displayed: records.length, totalPages, action: 'all' };
56
+ }
57
+ // Render first page, then enter prompt loop
58
+ const firstPageSlice = records.slice(0, pageSize);
59
+ renderPage(firstPageSlice, 0);
60
+ return promptLoop(records, renderPage, io, pageSize, totalPages, firstPageSlice.length);
61
+ }
62
+ /**
63
+ * Interactive prompt loop that handles page-by-page navigation.
64
+ *
65
+ * Separated from the main function to satisfy the no-await-in-loop lint rule
66
+ * while maintaining clear sequential pagination semantics.
67
+ */
68
+ async function promptLoop(records, renderPage, io, pageSize, totalPages, initialDisplayed) {
69
+ let currentPage = 1;
70
+ let displayed = initialDisplayed;
71
+ // Read first key
72
+ io.write(`Page ${currentPage} of ${totalPages} — (N)ext, (A)ll, (Q)uit`);
73
+ let key = await io.readKey();
74
+ /* eslint-disable no-await-in-loop -- Interactive pagination requires sequential keypress reads between page renders */
75
+ while (currentPage < totalPages) {
76
+ const normalizedKey = key.toLowerCase();
77
+ if (normalizedKey === 'q') {
78
+ return { displayed, totalPages, action: 'quit' };
79
+ }
80
+ if (normalizedKey === 'a') {
81
+ // Render all remaining records at once
82
+ const remaining = records.slice(currentPage * pageSize);
83
+ renderPage(remaining, currentPage * pageSize);
84
+ return { displayed: records.length, totalPages, action: 'all' };
85
+ }
86
+ if (normalizedKey === 'n') {
87
+ const start = currentPage * pageSize;
88
+ const end = Math.min(start + pageSize, records.length);
89
+ const pageSlice = records.slice(start, end);
90
+ renderPage(pageSlice, start);
91
+ displayed += pageSlice.length;
92
+ currentPage++;
93
+ // If we've reached the last page, exit cleanly
94
+ if (currentPage >= totalPages) {
95
+ return { displayed, totalPages, action: 'paged' };
96
+ }
97
+ }
98
+ // Prompt for next action
99
+ io.write(`Page ${currentPage} of ${totalPages} — (N)ext, (A)ll, (Q)uit`);
100
+ key = await io.readKey();
101
+ }
102
+ /* eslint-enable no-await-in-loop */
103
+ return { displayed, totalPages, action: 'paged' };
104
+ }
105
+ /**
106
+ * Determine whether interactive pagination should be used.
107
+ *
108
+ * Returns false (skip pagination) when any of these conditions hold:
109
+ * - `noPrompt` option is true
110
+ * - `jsonEnabled` option is true
111
+ * - Explicit IO is provided and `io.isTTY` is false
112
+ * - No explicit IO and `CI` environment variable is set to 'true'
113
+ * - No explicit IO and `TERM` environment variable is 'dumb'
114
+ *
115
+ * When an explicit `io` is provided, `io.isTTY` is the sole gate — env vars do not apply.
116
+ * This isolates tests that inject MockPaginationIO from the CI environment.
117
+ * When no `io` is provided, env vars are checked as a fallback terminal detection mechanism.
118
+ */
119
+ function resolveInteractiveMode(options) {
120
+ if (options?.noPrompt === true)
121
+ return false;
122
+ if (options?.jsonEnabled === true)
123
+ return false;
124
+ // When explicit IO is provided, defer entirely to io.isTTY.
125
+ // Callers that inject IO are responsible for setting isTTY correctly (e.g. createDefaultIO()).
126
+ if (options?.io !== undefined) {
127
+ return options.io.isTTY;
128
+ }
129
+ // No explicit IO — check environment variables for CI/dumb terminal
130
+ if (process.env.CI === 'true')
131
+ return false;
132
+ if (process.env.TERM === 'dumb')
133
+ return false;
134
+ return true;
135
+ }
136
+ //# sourceMappingURL=paginate-output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"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QAAE,OAAO,KAAK,CAAC;IAEhD,4DAA4D;IAC5D,+FAA+F;IAC/F,IAAI,OAAO,EAAE,EAAE,KAAK,SAAS,EAAE,CAAC;QAC9B,OAAO,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC;IAC1B,CAAC;IAED,oEAAoE;IACpE,IAAI,OAAO,CAAC,GAAG,CAAC,EAAE,KAAK,MAAM;QAAE,OAAO,KAAK,CAAC;IAC5C,IAAI,OAAO,CAAC,GAAG,CAAC,IAAI,KAAK,MAAM;QAAE,OAAO,KAAK,CAAC;IAE9C,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,71 @@
1
+ # summary
2
+
3
+ Verify the Cuneiform For Salesforce app version required by this CLI build, and (optionally) the version installed in a target org.
4
+
5
+ # description
6
+
7
+ Reports the Cuneiform For Salesforce managed-package version this CLI release was tested against. Without `--target-org`, the command is a local-only readout — no Salesforce API calls, no authentication required.
8
+
9
+ When `--target-org` is supplied, the command queries the org for the installed Cuneiform For Salesforce package via the Tooling API and reports one of five states:
10
+
11
+ - `installed-match` — installed version satisfies the requirement (exit 0)
12
+ - `installed-newer` — installed version is newer than required (exit 0, advisory)
13
+ - `installed-version-unknown` — Cuneiform is detected via namespace but the version is not exposed (typical for source-pushed scratch orgs — CLI-1569). Compatibility cannot be verified, but the package is present (exit 0, advisory)
14
+ - `installed-older` — installed version is older than required (exit 1)
15
+ - `not-installed` — Cuneiform For Salesforce is not installed in this org (exit 1)
16
+
17
+ Use this command to:
18
+
19
+ - Confirm a scratch org or sandbox is ready for CLI operations after a fresh package install
20
+ - Diagnose CLI errors that look like data-shape mismatches but are version-compatibility issues
21
+ - Pin CLI/app version pairs in CI before running profiling jobs
22
+
23
+ # examples
24
+
25
+ - Print the required app version (no auth, no API calls):
26
+
27
+ <%= config.bin %> <%= command.id %>
28
+
29
+ - Verify the installed version in a target org:
30
+
31
+ <%= config.bin %> <%= command.id %> --target-org myOrg
32
+
33
+ - Machine-readable output for CI:
34
+
35
+ <%= config.bin %> <%= command.id %> --target-org myOrg --json
36
+
37
+ # flags.target-org.summary
38
+
39
+ Target org username or alias. When supplied, the command queries the org's installed Cuneiform For Salesforce version and reports compatibility.
40
+
41
+ # flags.api-version.summary
42
+
43
+ API version to use when querying the target org. Defaults to the org's maximum supported version.
44
+
45
+ # state.installed-match
46
+
47
+ ✓ Installed version matches the required version. Compatible.
48
+
49
+ # state.installed-newer
50
+
51
+ ✓ Installed version is newer than required. Likely compatible — newer org-side features may not be exposed by this CLI build.
52
+
53
+ # state.installed-version-unknown
54
+
55
+ ⚠ Cuneiform For Salesforce is present in this org (detected via namespace) but the package version is not exposed by the standard API. This is typical for source-pushed scratch orgs. Compatibility cannot be verified against the requirement — proceed at your own risk.
56
+
57
+ # state.installed-older
58
+
59
+ ✗ Installed version is older than required. CLI commands that depend on newer app features will fail. Upgrade Cuneiform For Salesforce in this org to at least the required version.
60
+
61
+ # state.not-installed
62
+
63
+ ✗ Cuneiform For Salesforce is not installed in this org. Install the managed package before running CLI commands.
64
+
65
+ # errors.manifestInvalid
66
+
67
+ This CLI build's `package.json` is missing the `cuneiform.requiredAppVersion` field. This is a build-time configuration error — please file an issue on the salesforce-cli repository.
68
+
69
+ # errors.orgQueryFailed
70
+
71
+ Failed to query the installed package version from the target org: %s
@@ -0,0 +1,138 @@
1
+ # error.profilingAccessDenied
2
+
3
+ Cuneiform is installed, but you don't have profiling access.
4
+
5
+ You're missing one or more required permission sets.
6
+
7
+ Next steps:
8
+
9
+ 1. Run the diagnostic to see exactly what's missing:
10
+ sf cuneiform user details --target-org <your-org>
11
+
12
+ 2. Preview what the auto-configure would change:
13
+ sf cuneiform user details --target-org <your-org> --configure --dry-run
14
+
15
+ 3. Apply the changes automatically:
16
+ sf cuneiform user details --target-org <your-org> --configure
17
+
18
+ If you don't have permission to self-configure, ask your Salesforce administrator to assign the required Cuneiform permission sets.
19
+
20
+ # error.globalProfilingNotEnabled
21
+
22
+ Cuneiform is installed, but Global Profiling is not enabled.
23
+
24
+ API-Only Profiling must be enabled in the Configuration Profile before you can use the CLI.
25
+
26
+ Next steps:
27
+
28
+ 1. Run the diagnostic to see your current readiness:
29
+ sf cuneiform user details --target-org <your-org>
30
+
31
+ 2. Preview what the auto-configure would change:
32
+ sf cuneiform user details --target-org <your-org> --configure --dry-run
33
+
34
+ 3. Apply the changes automatically:
35
+ sf cuneiform user details --target-org <your-org> --configure
36
+
37
+ If you don't have permission to self-configure, ask your Salesforce administrator to enable API-Only Profiling in the Cuneiform Configuration Profile.
38
+
39
+ # error.cuneiformNotInstalled
40
+
41
+ Cuneiform for Salesforce is not installed in this org.
42
+
43
+ The Cuneiform for Salesforce CLI is available exclusively to PeerNova customers with an active license. The managed package must be installed and activated before you can use the CLI.
44
+
45
+ Next steps:
46
+
47
+ 1. If you are a PeerNova customer, contact your Salesforce administrator to install the package.
48
+
49
+ 2. If you need to obtain a license, request one at:
50
+ https://jira-peernova.atlassian.net/wiki/spaces/CFCPD/pages/4196499551
51
+
52
+ 3. To get Cuneiform for Salesforce:
53
+ https://jira-peernova.atlassian.net/wiki/spaces/CFCPD/pages/2624356353
54
+
55
+ 4. Once installed, verify your readiness:
56
+ sf cuneiform user details --target-org <your-org>
57
+
58
+ For help: sfsupport@peernova.com
59
+
60
+ # error.selfRegistrationNotEnabled
61
+
62
+ Cuneiform is installed and API-Only Profiling is enabled, but CLI self-provisioning is not available.
63
+
64
+ Your administrator has not enabled CLI self-provisioning for API-based profiling. This setting ensures your admin controls which users can configure their own API profiling access — you're one admin action away from full access.
65
+
66
+ Next steps:
67
+
68
+ 1. Run the diagnostic to see your full readiness status:
69
+ sf cuneiform user details --target-org <your-org>
70
+
71
+ 2. Ask your Salesforce administrator to enable "Enable API Profiling Self-Registration"
72
+ in the Cuneiform Configuration Profile (Custom Metadata).
73
+
74
+ 3. Alternatively, your admin can assign the API-Based Profiling permission set to you
75
+ directly, bypassing self-provisioning.
76
+
77
+ # error.featureNotEnabled
78
+
79
+ API-Based Profiling is not enabled for this organization.
80
+
81
+ The Cuneiform for Salesforce CLI is available exclusively to PeerNova customers with an active license. This feature must be enabled by PeerNova before you can use the CLI.
82
+
83
+ Next steps:
84
+
85
+ 1. If you are a PeerNova customer, contact your PeerNova account team to enable
86
+ API-Based Profiling for your organization.
87
+
88
+ 2. If you need to obtain a license, request one at:
89
+ https://jira-peernova.atlassian.net/wiki/spaces/CFCPD/pages/4196499551
90
+
91
+ 3. To get Cuneiform for Salesforce:
92
+ https://jira-peernova.atlassian.net/wiki/spaces/CFCPD/pages/2624356353
93
+
94
+ 4. Once enabled, verify your readiness:
95
+ sf cuneiform user details --target-org <your-org>
96
+
97
+ For help: sfsupport@peernova.com
98
+
99
+ # error.environmentConfigureBlocked
100
+
101
+ Configuration is not allowed in production environments.
102
+
103
+ The configure and autoconfigure commands are restricted to non-production orgs to protect your production data. This org has been identified as a Production org.
104
+
105
+ Next steps:
106
+
107
+ 1. Run the diagnostic to confirm your org type:
108
+ sf cuneiform user details --target-org <your-org>
109
+
110
+ 2. Use a sandbox, scratch org, or developer org to test configuration:
111
+ sf cuneiform user details --target-org <sandbox-org> --configure
112
+
113
+ 3. If you believe this org was misidentified, contact your Salesforce administrator to verify the org type.
114
+
115
+ # error.connectionFailed
116
+
117
+ Could not verify your Cuneiform access. The connection to your org failed before the access check could run.
118
+
119
+ Detail: %s
120
+
121
+ Next steps:
122
+
123
+ 1. Verify your org is authenticated:
124
+ sf org list --all
125
+
126
+ 2. Re-authenticate if needed:
127
+ sf org login web --alias <your-org>
128
+
129
+ 3. Once connected, verify your readiness:
130
+ sf cuneiform user details --target-org <your-org>
131
+
132
+ If the problem persists, check your network connection and ensure the Salesforce instance is reachable.
133
+
134
+ # error.accessCheckFailed
135
+
136
+ Could not verify your Cuneiform access.
137
+
138
+ %s