@nexusclawhq/cli 0.2.3 → 0.3.0

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 (233) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +5 -0
  3. package/dist/build-info.json +5 -5
  4. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/agent-executable-assets/cli-contract.types.d.ts +1 -1
  5. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/ai-employee-cognition/cognitive-policy.types.d.ts +19 -1
  6. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.d.ts +686 -95
  7. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.js +19426 -18705
  8. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.js.map +1 -1
  9. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/index.d.ts +1372 -190
  10. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.d.ts +686 -95
  11. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.js +19467 -18789
  12. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.js.map +1 -1
  13. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/platform-admin-route-readiness/index.js +2 -11
  14. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/platform-admin-route-readiness/index.js.map +1 -1
  15. package/dist/nexus-cli/node_modules/@nexusclaw/shared/package.json +5 -1
  16. package/dist/nexus-cli/src/cli.js +2 -0
  17. package/dist/nexus-cli/src/cli.js.map +1 -1
  18. package/dist/nexus-cli/src/commands/ai/help.test.js +11 -29
  19. package/dist/nexus-cli/src/commands/ai/help.test.js.map +1 -1
  20. package/dist/nexus-cli/src/commands/commands.test.js +81 -1
  21. package/dist/nexus-cli/src/commands/commands.test.js.map +1 -1
  22. package/dist/nexus-cli/src/commands/employee/deploy.js +35 -9
  23. package/dist/nexus-cli/src/commands/employee/deploy.js.map +1 -1
  24. package/dist/nexus-cli/src/commands/org/index.js +2 -0
  25. package/dist/nexus-cli/src/commands/org/index.js.map +1 -1
  26. package/dist/nexus-cli/src/commands/org/login-web.d.ts +7 -0
  27. package/dist/nexus-cli/src/commands/org/login-web.js +31 -4
  28. package/dist/nexus-cli/src/commands/org/login-web.js.map +1 -1
  29. package/dist/nexus-cli/src/commands/org/login-web.test.js +15 -0
  30. package/dist/nexus-cli/src/commands/org/login-web.test.js.map +1 -1
  31. package/dist/nexus-cli/src/commands/org/step-up.d.ts +2 -0
  32. package/dist/nexus-cli/src/commands/org/step-up.js +75 -0
  33. package/dist/nexus-cli/src/commands/org/step-up.js.map +1 -0
  34. package/dist/nexus-cli/src/commands/workforce/approval.d.ts +2 -0
  35. package/dist/nexus-cli/src/commands/workforce/approval.js +60 -0
  36. package/dist/nexus-cli/src/commands/workforce/approval.js.map +1 -0
  37. package/dist/nexus-cli/src/commands/workforce/cognition.d.ts +2 -0
  38. package/dist/nexus-cli/src/commands/workforce/cognition.js +62 -0
  39. package/dist/nexus-cli/src/commands/workforce/cognition.js.map +1 -0
  40. package/dist/nexus-cli/src/commands/workforce/constitution.d.ts +2 -0
  41. package/dist/nexus-cli/src/commands/workforce/constitution.js +37 -0
  42. package/dist/nexus-cli/src/commands/workforce/constitution.js.map +1 -0
  43. package/dist/nexus-cli/src/commands/workforce/guardrail.d.ts +2 -0
  44. package/dist/nexus-cli/src/commands/workforce/guardrail.js +67 -0
  45. package/dist/nexus-cli/src/commands/workforce/guardrail.js.map +1 -0
  46. package/dist/nexus-cli/src/commands/workforce/index.d.ts +2 -0
  47. package/dist/nexus-cli/src/commands/workforce/index.js +43 -0
  48. package/dist/nexus-cli/src/commands/workforce/index.js.map +1 -0
  49. package/dist/nexus-cli/src/commands/workforce/knowledge.d.ts +2 -0
  50. package/dist/nexus-cli/src/commands/workforce/knowledge.js +143 -0
  51. package/dist/nexus-cli/src/commands/workforce/knowledge.js.map +1 -0
  52. package/dist/nexus-cli/src/commands/workforce/learning.d.ts +2 -0
  53. package/dist/nexus-cli/src/commands/workforce/learning.js +146 -0
  54. package/dist/nexus-cli/src/commands/workforce/learning.js.map +1 -0
  55. package/dist/nexus-cli/src/commands/workforce/observe.d.ts +2 -0
  56. package/dist/nexus-cli/src/commands/workforce/observe.js +152 -0
  57. package/dist/nexus-cli/src/commands/workforce/observe.js.map +1 -0
  58. package/dist/nexus-cli/src/commands/workforce/orchestration.d.ts +2 -0
  59. package/dist/nexus-cli/src/commands/workforce/orchestration.js +199 -0
  60. package/dist/nexus-cli/src/commands/workforce/orchestration.js.map +1 -0
  61. package/dist/nexus-cli/src/commands/workforce/permission.d.ts +2 -0
  62. package/dist/nexus-cli/src/commands/workforce/permission.js +113 -0
  63. package/dist/nexus-cli/src/commands/workforce/permission.js.map +1 -0
  64. package/dist/nexus-cli/src/commands/workforce/prompt.d.ts +2 -0
  65. package/dist/nexus-cli/src/commands/workforce/prompt.js +137 -0
  66. package/dist/nexus-cli/src/commands/workforce/prompt.js.map +1 -0
  67. package/dist/nexus-cli/src/commands/workforce/provider.d.ts +2 -0
  68. package/dist/nexus-cli/src/commands/workforce/provider.js +152 -0
  69. package/dist/nexus-cli/src/commands/workforce/provider.js.map +1 -0
  70. package/dist/nexus-cli/src/commands/workforce/rehearsal.d.ts +2 -0
  71. package/dist/nexus-cli/src/commands/workforce/rehearsal.js +71 -0
  72. package/dist/nexus-cli/src/commands/workforce/rehearsal.js.map +1 -0
  73. package/dist/nexus-cli/src/commands/workforce/release.d.ts +2 -0
  74. package/dist/nexus-cli/src/commands/workforce/release.js +24 -0
  75. package/dist/nexus-cli/src/commands/workforce/release.js.map +1 -0
  76. package/dist/nexus-cli/src/commands/workforce/shared.d.ts +8 -0
  77. package/dist/nexus-cli/src/commands/workforce/shared.js +86 -0
  78. package/dist/nexus-cli/src/commands/workforce/shared.js.map +1 -0
  79. package/dist/nexus-cli/src/commands/workforce/sop.d.ts +2 -0
  80. package/dist/nexus-cli/src/commands/workforce/sop.js +86 -0
  81. package/dist/nexus-cli/src/commands/workforce/sop.js.map +1 -0
  82. package/dist/nexus-cli/src/commands/workforce/task.d.ts +4 -0
  83. package/dist/nexus-cli/src/commands/workforce/task.js +67 -0
  84. package/dist/nexus-cli/src/commands/workforce/task.js.map +1 -0
  85. package/dist/nexus-cli/src/commands/workforce/test-case.d.ts +2 -0
  86. package/dist/nexus-cli/src/commands/workforce/test-case.js +121 -0
  87. package/dist/nexus-cli/src/commands/workforce/test-case.js.map +1 -0
  88. package/dist/nexus-cli/src/config/platform-seed-registry.json +134 -0
  89. package/dist/nexus-cli/src/contracts/command-contract.guard.js +25 -2
  90. package/dist/nexus-cli/src/contracts/command-contract.guard.js.map +1 -1
  91. package/dist/nexus-cli/src/contracts/command-contract.registry.js +2 -0
  92. package/dist/nexus-cli/src/contracts/command-contract.registry.js.map +1 -1
  93. package/dist/nexus-cli/src/contracts/contracts.test.js +40 -54
  94. package/dist/nexus-cli/src/contracts/contracts.test.js.map +1 -1
  95. package/dist/nexus-cli/src/contracts/workforce-contracts.d.ts +2 -0
  96. package/dist/nexus-cli/src/contracts/workforce-contracts.js +175 -0
  97. package/dist/nexus-cli/src/contracts/workforce-contracts.js.map +1 -0
  98. package/dist/nexus-cli/src/services/api-client.d.ts +37 -1
  99. package/dist/nexus-cli/src/services/api-client.js +120 -34
  100. package/dist/nexus-cli/src/services/api-client.js.map +1 -1
  101. package/dist/nexus-cli/src/services/api-client.test.js +87 -0
  102. package/dist/nexus-cli/src/services/api-client.test.js.map +1 -1
  103. package/dist/nexus-cli/src/services/package-self-containment.js +1 -0
  104. package/dist/nexus-cli/src/services/package-self-containment.js.map +1 -1
  105. package/dist/nexus-cli/src/services/step-up-helper.d.ts +43 -0
  106. package/dist/nexus-cli/src/services/step-up-helper.js +98 -0
  107. package/dist/nexus-cli/src/services/step-up-helper.js.map +1 -0
  108. package/dist/nexus-cli/src/services/step-up-helper.test.d.ts +1 -0
  109. package/dist/nexus-cli/src/services/step-up-helper.test.js +176 -0
  110. package/dist/nexus-cli/src/services/step-up-helper.test.js.map +1 -0
  111. package/dist/nexus-cli/src/services/step-up-interactive.d.ts +2 -0
  112. package/dist/nexus-cli/src/services/step-up-interactive.js +69 -0
  113. package/dist/nexus-cli/src/services/step-up-interactive.js.map +1 -0
  114. package/dist/nexus-cli/src/services/workforce-cognition-remote.d.ts +27 -0
  115. package/dist/nexus-cli/src/services/workforce-cognition-remote.js +48 -0
  116. package/dist/nexus-cli/src/services/workforce-cognition-remote.js.map +1 -0
  117. package/dist/nexus-cli/src/services/workforce-common.d.ts +2 -0
  118. package/dist/nexus-cli/src/services/workforce-common.js +20 -0
  119. package/dist/nexus-cli/src/services/workforce-common.js.map +1 -0
  120. package/dist/nexus-cli/src/services/workforce-config-remote.d.ts +127 -0
  121. package/dist/nexus-cli/src/services/workforce-config-remote.js +205 -0
  122. package/dist/nexus-cli/src/services/workforce-config-remote.js.map +1 -0
  123. package/dist/nexus-cli/src/services/workforce-distillation-remote.d.ts +118 -0
  124. package/dist/nexus-cli/src/services/workforce-distillation-remote.js +171 -0
  125. package/dist/nexus-cli/src/services/workforce-distillation-remote.js.map +1 -0
  126. package/dist/nexus-cli/src/services/workforce-guardrail-knowledge-remote.d.ts +105 -0
  127. package/dist/nexus-cli/src/services/workforce-guardrail-knowledge-remote.js +174 -0
  128. package/dist/nexus-cli/src/services/workforce-guardrail-knowledge-remote.js.map +1 -0
  129. package/dist/nexus-cli/src/services/workforce-learning-remote.d.ts +131 -0
  130. package/dist/nexus-cli/src/services/workforce-learning-remote.js +179 -0
  131. package/dist/nexus-cli/src/services/workforce-learning-remote.js.map +1 -0
  132. package/dist/nexus-cli/src/services/workforce-observe-remote.d.ts +97 -0
  133. package/dist/nexus-cli/src/services/workforce-observe-remote.js +207 -0
  134. package/dist/nexus-cli/src/services/workforce-observe-remote.js.map +1 -0
  135. package/dist/nexus-cli/src/services/workforce-ops-remote.d.ts +94 -0
  136. package/dist/nexus-cli/src/services/workforce-ops-remote.js +176 -0
  137. package/dist/nexus-cli/src/services/workforce-ops-remote.js.map +1 -0
  138. package/dist/nexus-cli/src/services/workforce-orchestration-remote.d.ts +132 -0
  139. package/dist/nexus-cli/src/services/workforce-orchestration-remote.js +244 -0
  140. package/dist/nexus-cli/src/services/workforce-orchestration-remote.js.map +1 -0
  141. package/dist/nexus-cli/src/services/workforce-permission-remote.d.ts +72 -0
  142. package/dist/nexus-cli/src/services/workforce-permission-remote.js +130 -0
  143. package/dist/nexus-cli/src/services/workforce-permission-remote.js.map +1 -0
  144. package/dist/nexus-cli/src/services/workforce-provider-remote.d.ts +82 -0
  145. package/dist/nexus-cli/src/services/workforce-provider-remote.js +129 -0
  146. package/dist/nexus-cli/src/services/workforce-provider-remote.js.map +1 -0
  147. package/dist/nexus-cli/src/services/workforce-test-remote.d.ts +85 -0
  148. package/dist/nexus-cli/src/services/workforce-test-remote.js +134 -0
  149. package/dist/nexus-cli/src/services/workforce-test-remote.js.map +1 -0
  150. package/dist/nexus-cli/src/templates/project/template-manifest.json +11 -5
  151. package/dist/nexus-cli/src/templates/project/templates/base-crm/README.md.tpl +4 -3
  152. package/dist/nexus-cli/src/templates/project/templates/base-crm/nexus-project.json.tpl +77 -13
  153. package/dist/nexus-cli/src/templates/project/templates/base-crm/nexus-project.yaml.tpl +68 -0
  154. package/dist/nexus-cli/src/templates/project/templates/demo-public-channel-store-delivery/README.md.tpl +4 -4
  155. package/dist/nexus-cli/src/templates/project/templates/demo-public-channel-store-delivery/nexus-project.json.tpl +77 -13
  156. package/dist/nexus-cli/src/templates/project/templates/demo-public-channel-store-delivery/nexus-project.yaml.tpl +71 -0
  157. package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/README.md.tpl +4 -4
  158. package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/nexus-app/main/default/isolated/drill-code-extension-page.manifest.json +63 -0
  159. package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/nexus-app/main/default/nwc/drill-code-extension-page/index.js +70 -0
  160. package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/nexus-app/main/default/tests/drill-code-extension-page.assertions.json +13 -0
  161. package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/nexus-project.json.tpl +61 -7
  162. package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/nexus-project.yaml.tpl +58 -0
  163. package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/preview/drill-code-extension-page.html +1 -1
  164. package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/scripts/build-component.mjs +1 -1
  165. package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/scripts/deploy-drill.mjs +1 -1
  166. package/dist/nexus-cli/src/templates/project/templates/empty/README.md.tpl +3 -2
  167. package/dist/nexus-cli/src/templates/project/templates/empty/nexus-project.json.tpl +79 -13
  168. package/dist/nexus-cli/src/templates/project/templates/empty/nexus-project.yaml.tpl +67 -0
  169. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/agent-instructions/claude.md +6 -0
  170. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/agent-instructions/codex.md +6 -0
  171. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/agent-instructions/generic.md +6 -0
  172. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/agent-instructions/glm-5.2.md +6 -0
  173. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/authoring/code-sdk.d.ts +1 -0
  174. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/authoring/command-order.json +1 -0
  175. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/authoring/flow-node-catalog.json +1 -0
  176. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/catalogs/ai-policies.json +1 -0
  177. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/catalogs/approval-policies.json +1 -0
  178. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/catalogs/connectors.json +1 -0
  179. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/catalogs/invokable-units.json +1 -0
  180. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/catalogs/objects.json +1 -0
  181. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/cli-contract.json +1 -0
  182. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/context-lock.json +1 -0
  183. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/context-manifest.json +1 -0
  184. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/examples/code/minimal-action.cases.json +1 -0
  185. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/examples/code/minimal-action.input.schema.json +1 -0
  186. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/examples/code/minimal-action.output.schema.json +1 -0
  187. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/examples/code/minimal-action.ts +3 -0
  188. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/examples/flow/minimal-manual-flow.json +1 -0
  189. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/agent-code-tool-catalog-v1.schema.json +1 -0
  190. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/ai-workforce-executable-bundle-v1.schema.json +1 -0
  191. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/approval-policy-authoring-catalog-v1.schema.json +1 -0
  192. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/code-action-cases-v1.schema.json +1 -0
  193. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/code-extension-governance-v2.schema.json +1 -0
  194. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/employee-package-v2.schema.json +1 -0
  195. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/flow-package-v1.schema.json +1 -0
  196. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/flows-payload-v2.schema.json +1 -0
  197. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/object-authoring-catalog-v1.schema.json +1 -0
  198. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/workforce-bundle-lock-v1.schema.json +1 -0
  199. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/workforce-release-evidence-v1.schema.json +1 -0
  200. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/workforce-runtime-bindings-v1.schema.json +1 -0
  201. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/workspace-authoring-contract-v1.schema.json +1 -0
  202. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/workspace-contract.json +1 -0
  203. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/README.md.tpl +41 -0
  204. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/nexus-project.json.tpl +86 -0
  205. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/nexus-project.yaml.tpl +61 -0
  206. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/package.json.tpl +25 -0
  207. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/packages/generic-action/.nexusclaw/scaffold.json +12 -0
  208. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/packages/generic-action/agent-tools.json +53 -0
  209. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/packages/generic-action/code/genericLookup.ts +5 -0
  210. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/packages/generic-action/package.yaml +28 -0
  211. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/packages/generic-action/schemas/genericLookup.input.schema.json +6 -0
  212. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/packages/generic-action/schemas/genericLookup.output.schema.json +6 -0
  213. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/packages/generic-action/tests/genericLookup.cases.json +26 -0
  214. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/packages/generic-flow/GenericFollowUp.flow.yaml +10 -0
  215. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/scripts/init-bundle.mjs +25 -0
  216. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/tsconfig.json.tpl +10 -0
  217. package/dist/nexus-cli/src/templates/project/templates/industry-education/README.md.tpl +7 -1
  218. package/dist/nexus-cli/src/templates/project/templates/industry-education/nexus-project.json.tpl +77 -14
  219. package/dist/nexus-cli/src/templates/project/templates/industry-education/nexus-project.yaml.tpl +69 -0
  220. package/dist/nexus-cli/src/templates/project/templates/industry-finance/README.md.tpl +7 -1
  221. package/dist/nexus-cli/src/templates/project/templates/industry-finance/nexus-project.json.tpl +77 -14
  222. package/dist/nexus-cli/src/templates/project/templates/industry-finance/nexus-project.yaml.tpl +69 -0
  223. package/dist/nexus-cli/src/templates/project/templates/industry-healthcare/README.md.tpl +7 -1
  224. package/dist/nexus-cli/src/templates/project/templates/industry-healthcare/nexus-project.json.tpl +77 -14
  225. package/dist/nexus-cli/src/templates/project/templates/industry-healthcare/nexus-project.yaml.tpl +69 -0
  226. package/dist/nexus-cli/src/templates/project/templates/industry-partner-cloud/README.md.tpl +4 -4
  227. package/dist/nexus-cli/src/templates/project/templates/industry-partner-cloud/nexus-project.json.tpl +77 -13
  228. package/dist/nexus-cli/src/templates/project/templates/industry-partner-cloud/nexus-project.yaml.tpl +69 -0
  229. package/dist/nexus-cli/src/templates/project/templates/industry-retail/README.md.tpl +7 -1
  230. package/dist/nexus-cli/src/templates/project/templates/industry-retail/nexus-project.json.tpl +77 -14
  231. package/dist/nexus-cli/src/templates/project/templates/industry-retail/nexus-project.yaml.tpl +69 -0
  232. package/dist/tsconfig.tsbuildinfo +1 -1
  233. package/package.json +1 -1
@@ -0,0 +1,174 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createGuardrailRemote = createGuardrailRemote;
4
+ exports.updateGuardrailRemote = updateGuardrailRemote;
5
+ exports.deleteGuardrailRemote = deleteGuardrailRemote;
6
+ exports.toggleGuardrailRemote = toggleGuardrailRemote;
7
+ exports.reorderGuardrailsRemote = reorderGuardrailsRemote;
8
+ exports.createKnowledgeChunkRemote = createKnowledgeChunkRemote;
9
+ exports.ingestDocumentRemote = ingestDocumentRemote;
10
+ exports.ingestKnowledgeFileRemote = ingestKnowledgeFileRemote;
11
+ exports.ingestKnowledgeUrlRemote = ingestKnowledgeUrlRemote;
12
+ exports.deleteKnowledgeDocumentRemote = deleteKnowledgeDocumentRemote;
13
+ exports.reembedFailedChunksRemote = reembedFailedChunksRemote;
14
+ const api_client_1 = require("./api-client");
15
+ const CREATE_GUARDRAIL = `
16
+ mutation CreateGuardrailRule($input: CreateGuardrailRuleInput!) {
17
+ createGuardrailRule(input: $input) { id name description conditions riskLevel action priority isActive createdAt }
18
+ }`;
19
+ const UPDATE_GUARDRAIL = `
20
+ mutation UpdateGuardrailRule($id: ID!, $input: UpdateGuardrailRuleInput!) {
21
+ updateGuardrailRule(id: $id, input: $input) { id name description conditions riskLevel action priority isActive createdAt }
22
+ }`;
23
+ const DELETE_GUARDRAIL = `
24
+ mutation DeleteGuardrailRule($id: ID!) { deleteGuardrailRule(id: $id) }`;
25
+ const TOGGLE_GUARDRAIL = `
26
+ mutation ToggleGuardrailRuleActive($id: ID!) {
27
+ toggleGuardrailRuleActive(id: $id) { id name isActive }
28
+ }`;
29
+ const REORDER_GUARDRAILS = `
30
+ mutation ReorderGuardrailRules($orderedIds: [ID]!) { reorderGuardrailRules(orderedIds: $orderedIds) }`;
31
+ async function createGuardrailRemote(options) {
32
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
33
+ const input = {
34
+ name: options.name,
35
+ conditions: options.conditions,
36
+ riskLevel: options.riskLevel,
37
+ action: options.action,
38
+ };
39
+ if (options.description !== undefined)
40
+ input.description = options.description;
41
+ if (options.priority !== undefined)
42
+ input.priority = options.priority;
43
+ const data = await client.graphql(CREATE_GUARDRAIL, { input });
44
+ return data.createGuardrailRule;
45
+ }
46
+ async function updateGuardrailRemote(options) {
47
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
48
+ const input = {};
49
+ if (options.name !== undefined)
50
+ input.name = options.name;
51
+ if (options.description !== undefined)
52
+ input.description = options.description;
53
+ if (options.conditions !== undefined)
54
+ input.conditions = options.conditions;
55
+ if (options.riskLevel !== undefined)
56
+ input.riskLevel = options.riskLevel;
57
+ if (options.action !== undefined)
58
+ input.action = options.action;
59
+ if (options.priority !== undefined)
60
+ input.priority = options.priority;
61
+ const data = await client.graphql(UPDATE_GUARDRAIL, { id: options.id, input });
62
+ return data.updateGuardrailRule;
63
+ }
64
+ async function deleteGuardrailRemote(options) {
65
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
66
+ const data = await client.graphql(DELETE_GUARDRAIL, { id: options.id });
67
+ return data;
68
+ }
69
+ async function toggleGuardrailRemote(options) {
70
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
71
+ const data = await client.graphql(TOGGLE_GUARDRAIL, { id: options.id });
72
+ return data.toggleGuardrailRuleActive;
73
+ }
74
+ async function reorderGuardrailsRemote(options) {
75
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
76
+ const data = await client.graphql(REORDER_GUARDRAILS, {
77
+ orderedIds: options.orderedIds,
78
+ });
79
+ return data;
80
+ }
81
+ const CREATE_KNOWLEDGE_CHUNK = `
82
+ mutation CreateKnowledgeChunk($input: CreateKnowledgeChunkInput!) {
83
+ createKnowledgeChunk(input: $input) { id title content contentType sourceType accessLevel createdAt }
84
+ }`;
85
+ const INGEST_DOCUMENT = `
86
+ mutation IngestDocument($input: IngestDocumentInput!) {
87
+ ingestDocument(input: $input) { documentTitle totalChunks embeddedChunks failedChunks chunkIds }
88
+ }`;
89
+ const INGEST_FILE = `
90
+ mutation IngestKnowledgeFile($input: IngestKnowledgeFileInput!) {
91
+ ingestKnowledgeFile(input: $input) { documentTitle totalChunks embeddedChunks failedChunks chunkIds }
92
+ }`;
93
+ const INGEST_URL = `
94
+ mutation IngestKnowledgeUrl($input: IngestKnowledgeUrlInput!) {
95
+ ingestKnowledgeUrl(input: $input) { documentTitle totalChunks embeddedChunks failedChunks chunkIds }
96
+ }`;
97
+ const DELETE_KNOWLEDGE_DOCUMENT = `
98
+ mutation DeleteKnowledgeDocument($sourceRecordId: String!) { deleteKnowledgeDocument(sourceRecordId: $sourceRecordId) }`;
99
+ const REEMBED_FAILED = `
100
+ mutation ReembedFailedChunks { reembedFailedChunks }`;
101
+ async function createKnowledgeChunkRemote(options) {
102
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
103
+ const input = { title: options.title, content: options.content };
104
+ if (options.contentType !== undefined)
105
+ input.contentType = options.contentType;
106
+ if (options.sourceType !== undefined)
107
+ input.sourceType = options.sourceType;
108
+ if (options.sourceObject !== undefined)
109
+ input.sourceObject = options.sourceObject;
110
+ if (options.sourceRecordId !== undefined)
111
+ input.sourceRecordId = options.sourceRecordId;
112
+ if (options.orgNodeId !== undefined)
113
+ input.orgNodeId = options.orgNodeId;
114
+ if (options.accessLevel !== undefined)
115
+ input.accessLevel = options.accessLevel;
116
+ if (options.metadata !== undefined)
117
+ input.metadata = options.metadata;
118
+ const data = await client.graphql(CREATE_KNOWLEDGE_CHUNK, { input });
119
+ return data.createKnowledgeChunk;
120
+ }
121
+ async function ingestDocumentRemote(options) {
122
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
123
+ const input = { title: options.title, content: options.content };
124
+ if (options.sourceType !== undefined)
125
+ input.sourceType = options.sourceType;
126
+ if (options.sourceObject !== undefined)
127
+ input.sourceObject = options.sourceObject;
128
+ if (options.sourceRecordId !== undefined)
129
+ input.sourceRecordId = options.sourceRecordId;
130
+ if (options.orgNodeId !== undefined)
131
+ input.orgNodeId = options.orgNodeId;
132
+ if (options.accessLevel !== undefined)
133
+ input.accessLevel = options.accessLevel;
134
+ if (options.metadata !== undefined)
135
+ input.metadata = options.metadata;
136
+ const data = await client.graphql(INGEST_DOCUMENT, { input });
137
+ return data.ingestDocument;
138
+ }
139
+ async function ingestKnowledgeFileRemote(options) {
140
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
141
+ const input = {
142
+ fileName: options.fileName,
143
+ contentBase64: options.contentBase64,
144
+ };
145
+ if (options.accessLevel !== undefined)
146
+ input.accessLevel = options.accessLevel;
147
+ if (options.orgNodeId !== undefined)
148
+ input.orgNodeId = options.orgNodeId;
149
+ const data = await client.graphql(INGEST_FILE, { input });
150
+ return data.ingestKnowledgeFile;
151
+ }
152
+ async function ingestKnowledgeUrlRemote(options) {
153
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
154
+ const input = { url: options.url };
155
+ if (options.title !== undefined)
156
+ input.title = options.title;
157
+ if (options.accessLevel !== undefined)
158
+ input.accessLevel = options.accessLevel;
159
+ const data = await client.graphql(INGEST_URL, { input });
160
+ return data.ingestKnowledgeUrl;
161
+ }
162
+ async function deleteKnowledgeDocumentRemote(options) {
163
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
164
+ const data = await client.graphql(DELETE_KNOWLEDGE_DOCUMENT, {
165
+ sourceRecordId: options.sourceRecordId,
166
+ });
167
+ return data;
168
+ }
169
+ async function reembedFailedChunksRemote(options) {
170
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
171
+ const data = await client.graphql(REEMBED_FAILED, {});
172
+ return data;
173
+ }
174
+ //# sourceMappingURL=workforce-guardrail-knowledge-remote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workforce-guardrail-knowledge-remote.js","sourceRoot":"","sources":["../../../../src/services/workforce-guardrail-knowledge-remote.ts"],"names":[],"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MAAM,GAAG,IAAA,4BAAe,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAAS,yBAAyB,EAAE;QACnE,cAAc,EAAE,OAAO,CAAC,cAAc;KACvC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC;AAEM,KAAK,UAAU,yBAAyB,CAAC,OAE/C;IACC,MAAM,MAAM,GAAG,IAAA,4BAAe,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAAS,cAAc,EAAE,EAAE,CAAC,CAAC;IAC9D,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,131 @@
1
+ export interface LearningExtractionResult {
2
+ executionId?: string;
3
+ extractedSignals?: number;
4
+ extractedPatterns?: number;
5
+ recommendations?: number;
6
+ artifactCandidates?: number;
7
+ processedExecutionIds?: string[];
8
+ }
9
+ export interface LearningPublishResult {
10
+ candidateId: string;
11
+ routeId?: string;
12
+ releaseGateStatus?: string;
13
+ publishEligible: boolean;
14
+ publicationEventId?: string;
15
+ wired: boolean;
16
+ reason?: string;
17
+ reasonCode?: string;
18
+ }
19
+ export interface LearningRollbackResult {
20
+ publicationEventId: string;
21
+ rollbackExecutionId?: string;
22
+ targetArtifactType?: string;
23
+ rollbackStatus?: string;
24
+ wired: boolean;
25
+ reasonCode?: string;
26
+ reason?: string;
27
+ }
28
+ export declare function extractExecutionLearningRemote(options: {
29
+ targetOrg?: string;
30
+ executionId: string;
31
+ }): Promise<LearningExtractionResult>;
32
+ export declare function runLearningPipelineRemote(options: {
33
+ targetOrg?: string;
34
+ limit?: number;
35
+ }): Promise<LearningExtractionResult>;
36
+ export declare function generateLearningDraftContentRemote(options: {
37
+ targetOrg?: string;
38
+ candidateId: string;
39
+ force?: boolean;
40
+ }): Promise<{
41
+ candidateId: string;
42
+ contentStatus?: string;
43
+ generatedContent?: unknown;
44
+ usedEvidenceSourceIds?: string[];
45
+ missingEvidence?: unknown;
46
+ modelRef?: string;
47
+ wired: boolean;
48
+ reasonCode?: string;
49
+ reason?: string;
50
+ }>;
51
+ export declare function applyDraftRemote(options: {
52
+ targetOrg?: string;
53
+ candidateId: string;
54
+ }): Promise<{
55
+ candidateId: string;
56
+ recommendationId?: string;
57
+ previousStatus?: string;
58
+ newStatus?: string;
59
+ wired: boolean;
60
+ reason?: string;
61
+ }>;
62
+ export declare function runSimulationRemote(options: {
63
+ targetOrg?: string;
64
+ candidateId: string;
65
+ }): Promise<{
66
+ candidateId: string;
67
+ routeId?: string;
68
+ status?: string;
69
+ testCaseIds?: string[];
70
+ blockers?: unknown[];
71
+ suiteRun?: unknown;
72
+ wired: boolean;
73
+ reason?: string;
74
+ }>;
75
+ export declare function requestApprovalRemote(options: {
76
+ targetOrg?: string;
77
+ candidateId: string;
78
+ approvalProcessId?: string;
79
+ }): Promise<{
80
+ candidateId: string;
81
+ routeId?: string;
82
+ approvalStatus?: string;
83
+ approvalInstanceId?: string;
84
+ skippedReason?: string;
85
+ wired: boolean;
86
+ reason?: string;
87
+ }>;
88
+ export declare function publishLearningRemote(options: {
89
+ targetOrg?: string;
90
+ candidateId: string;
91
+ }): Promise<LearningPublishResult>;
92
+ export declare function rollbackLearningPublicationRemote(options: {
93
+ targetOrg?: string;
94
+ publicationEventId: string;
95
+ reasonCode: string;
96
+ }): Promise<LearningRollbackResult>;
97
+ export declare function listLearningPublicationsRemote(options: {
98
+ targetOrg?: string;
99
+ targetArtifactType?: string;
100
+ artifactCandidateId?: string;
101
+ recommendationId?: string;
102
+ releaseGateRecordId?: string;
103
+ limit?: number;
104
+ offset?: number;
105
+ }): Promise<{
106
+ rows: Array<Record<string, unknown>>;
107
+ total: number;
108
+ limit: number;
109
+ offset: number;
110
+ }>;
111
+ export declare function getLearningSettingsRemote(options: {
112
+ targetOrg?: string;
113
+ }): Promise<{
114
+ workspaceId: string;
115
+ behaviorEventRetentionDays: number;
116
+ learningOptOut: boolean;
117
+ learningCaptureDisabledEventTypes: string[];
118
+ isDefault: boolean;
119
+ }>;
120
+ export declare function updateLearningSettingsRemote(options: {
121
+ targetOrg?: string;
122
+ behaviorEventRetentionDays?: number;
123
+ learningOptOut?: boolean;
124
+ learningCaptureDisabledEventTypes?: string[];
125
+ }): Promise<{
126
+ workspaceId: string;
127
+ behaviorEventRetentionDays: number;
128
+ learningOptOut: boolean;
129
+ learningCaptureDisabledEventTypes: string[];
130
+ isDefault: boolean;
131
+ }>;
@@ -0,0 +1,179 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.extractExecutionLearningRemote = extractExecutionLearningRemote;
4
+ exports.runLearningPipelineRemote = runLearningPipelineRemote;
5
+ exports.generateLearningDraftContentRemote = generateLearningDraftContentRemote;
6
+ exports.applyDraftRemote = applyDraftRemote;
7
+ exports.runSimulationRemote = runSimulationRemote;
8
+ exports.requestApprovalRemote = requestApprovalRemote;
9
+ exports.publishLearningRemote = publishLearningRemote;
10
+ exports.rollbackLearningPublicationRemote = rollbackLearningPublicationRemote;
11
+ exports.listLearningPublicationsRemote = listLearningPublicationsRemote;
12
+ exports.getLearningSettingsRemote = getLearningSettingsRemote;
13
+ exports.updateLearningSettingsRemote = updateLearningSettingsRemote;
14
+ const api_client_1 = require("./api-client");
15
+ const EXTRACT_EXECUTION = `
16
+ mutation ExtractExecutionLearning($executionId: String!) {
17
+ extractExecutionLearning(executionId: $executionId) {
18
+ executionId extractedSignals extractedPatterns recommendations artifactCandidates
19
+ }
20
+ }`;
21
+ const RUN_PIPELINE = `
22
+ mutation RunLearningPipeline($scope: RunLearningPipelineScopeInput) {
23
+ runLearningPipeline(scope: $scope) {
24
+ processedExecutionIds extractedSignals extractedPatterns recommendations
25
+ }
26
+ }`;
27
+ const GENERATE_DRAFT = `
28
+ mutation GenerateLearningDraftContent($candidateId: String!, $force: Boolean) {
29
+ generateLearningDraftContent(candidateId: $candidateId, force: $force) {
30
+ candidateId contentStatus generatedContent usedEvidenceSourceIds missingEvidence
31
+ modelRef wired reasonCode reason
32
+ }
33
+ }`;
34
+ const APPLY_DRAFT = `
35
+ mutation ApplyDraft($candidateId: String!) {
36
+ applyDraft(candidateId: $candidateId) {
37
+ candidateId recommendationId previousStatus newStatus wired reason
38
+ }
39
+ }`;
40
+ const RUN_SIMULATION = `
41
+ mutation RunSimulation($candidateId: String!) {
42
+ runSimulation(candidateId: $candidateId) {
43
+ candidateId routeId status testCaseIds blockers suiteRun wired reason
44
+ }
45
+ }`;
46
+ const REQUEST_APPROVAL = `
47
+ mutation RequestApproval($candidateId: String!, $approvalProcessId: String) {
48
+ requestApproval(candidateId: $candidateId, approvalProcessId: $approvalProcessId) {
49
+ candidateId routeId approvalStatus approvalInstanceId skippedReason wired reason
50
+ }
51
+ }`;
52
+ const PUBLISH = `
53
+ mutation Publish($candidateId: String!) {
54
+ publish(candidateId: $candidateId) {
55
+ candidateId routeId releaseGateStatus publishEligible publicationEventId wired reason
56
+ }
57
+ }`;
58
+ const ROLLBACK_PUBLICATION = `
59
+ mutation RollbackLearningPublication($input: RollbackLearningPublicationInput!) {
60
+ rollbackLearningPublication(input: $input) {
61
+ publicationEventId rollbackExecutionId targetArtifactType rollbackStatus
62
+ wired reasonCode reason
63
+ }
64
+ }`;
65
+ const LIST_PUBLICATIONS = `
66
+ query AiWorkforceLearningPublicationEvents(
67
+ $filter: AiWorkforceLearningPublicationEventFilterInput
68
+ $pagination: AiWorkforceLearningPublicationEventPaginationInput
69
+ ) {
70
+ aiWorkforceLearningPublicationEvents(filter: $filter, pagination: $pagination) {
71
+ rows { id publicationEventId targetArtifactType artifactCandidateId recommendationId releaseGateRecordId publishedAt rolledBackAt }
72
+ total limit offset
73
+ }
74
+ }`;
75
+ const GET_SETTINGS = `
76
+ query WorkspaceLearningSettings { workspaceLearningSettings { workspaceId behaviorEventRetentionDays learningOptOut learningCaptureDisabledEventTypes isDefault } }`;
77
+ const UPDATE_SETTINGS = `
78
+ mutation UpdateWorkspaceLearningSettings($input: UpdateWorkspaceLearningSettingsInput!) {
79
+ updateWorkspaceLearningSettings(input: $input) {
80
+ workspaceId behaviorEventRetentionDays learningOptOut learningCaptureDisabledEventTypes isDefault
81
+ }
82
+ }`;
83
+ function requireTargetOrg(targetOrg) {
84
+ if (!targetOrg) {
85
+ throw new Error('TARGET_ORG_REQUIRED');
86
+ }
87
+ return targetOrg;
88
+ }
89
+ async function extractExecutionLearningRemote(options) {
90
+ const client = (0, api_client_1.createApiClient)(requireTargetOrg(options.targetOrg));
91
+ const data = await client.graphql(EXTRACT_EXECUTION, { executionId: options.executionId });
92
+ return data.extractExecutionLearning;
93
+ }
94
+ async function runLearningPipelineRemote(options) {
95
+ const client = (0, api_client_1.createApiClient)(requireTargetOrg(options.targetOrg));
96
+ const scope = options.limit ? { limit: options.limit } : undefined;
97
+ const data = await client.graphql(RUN_PIPELINE, { scope });
98
+ return data.runLearningPipeline;
99
+ }
100
+ async function generateLearningDraftContentRemote(options) {
101
+ const client = (0, api_client_1.createApiClient)(requireTargetOrg(options.targetOrg));
102
+ const data = await client.graphql(GENERATE_DRAFT, {
103
+ candidateId: options.candidateId,
104
+ force: options.force ?? null,
105
+ });
106
+ return data.generateLearningDraftContent;
107
+ }
108
+ async function applyDraftRemote(options) {
109
+ const client = (0, api_client_1.createApiClient)(requireTargetOrg(options.targetOrg));
110
+ const data = await client.graphql(APPLY_DRAFT, { candidateId: options.candidateId });
111
+ return data.applyDraft;
112
+ }
113
+ async function runSimulationRemote(options) {
114
+ const client = (0, api_client_1.createApiClient)(requireTargetOrg(options.targetOrg));
115
+ const data = await client.graphql(RUN_SIMULATION, { candidateId: options.candidateId });
116
+ return data.runSimulation;
117
+ }
118
+ async function requestApprovalRemote(options) {
119
+ const client = (0, api_client_1.createApiClient)(requireTargetOrg(options.targetOrg));
120
+ const data = await client.graphql(REQUEST_APPROVAL, {
121
+ candidateId: options.candidateId,
122
+ approvalProcessId: options.approvalProcessId ?? null,
123
+ });
124
+ return data.requestApproval;
125
+ }
126
+ async function publishLearningRemote(options) {
127
+ const client = (0, api_client_1.createApiClient)(requireTargetOrg(options.targetOrg));
128
+ const data = await client.graphql(PUBLISH, { candidateId: options.candidateId });
129
+ return data.publish;
130
+ }
131
+ async function rollbackLearningPublicationRemote(options) {
132
+ const client = (0, api_client_1.createApiClient)(requireTargetOrg(options.targetOrg));
133
+ const data = await client.graphql(ROLLBACK_PUBLICATION, {
134
+ input: {
135
+ publicationEventId: options.publicationEventId,
136
+ reasonCode: options.reasonCode,
137
+ },
138
+ });
139
+ return data.rollbackLearningPublication;
140
+ }
141
+ async function listLearningPublicationsRemote(options) {
142
+ const client = (0, api_client_1.createApiClient)(requireTargetOrg(options.targetOrg));
143
+ const filter = {};
144
+ if (options.targetArtifactType)
145
+ filter.targetArtifactType = options.targetArtifactType;
146
+ if (options.artifactCandidateId)
147
+ filter.artifactCandidateId = options.artifactCandidateId;
148
+ if (options.recommendationId)
149
+ filter.recommendationId = options.recommendationId;
150
+ if (options.releaseGateRecordId)
151
+ filter.releaseGateRecordId = options.releaseGateRecordId;
152
+ const pagination = {
153
+ limit: options.limit ?? 50,
154
+ offset: options.offset ?? 0,
155
+ };
156
+ const data = await client.graphql(LIST_PUBLICATIONS, { filter, pagination });
157
+ return data.aiWorkforceLearningPublicationEvents;
158
+ }
159
+ async function getLearningSettingsRemote(options) {
160
+ const client = (0, api_client_1.createApiClient)(requireTargetOrg(options.targetOrg));
161
+ const data = await client.graphql(GET_SETTINGS, {});
162
+ return data.workspaceLearningSettings;
163
+ }
164
+ async function updateLearningSettingsRemote(options) {
165
+ const input = {};
166
+ if (options.behaviorEventRetentionDays !== undefined) {
167
+ input.behaviorEventRetentionDays = options.behaviorEventRetentionDays;
168
+ }
169
+ if (options.learningOptOut !== undefined) {
170
+ input.learningOptOut = options.learningOptOut;
171
+ }
172
+ if (options.learningCaptureDisabledEventTypes !== undefined) {
173
+ input.learningCaptureDisabledEventTypes = options.learningCaptureDisabledEventTypes;
174
+ }
175
+ const client = (0, api_client_1.createApiClient)(requireTargetOrg(options.targetOrg));
176
+ const data = await client.graphql(UPDATE_SETTINGS, { input });
177
+ return data.updateWorkspaceLearningSettings;
178
+ }
179
+ //# sourceMappingURL=workforce-learning-remote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workforce-learning-remote.js","sourceRoot":"","sources":["../../../../src/services/workforce-learning-remote.ts"],"names":[],"mappings":";;AAqIA,wEASC;AAGD,8DAUC;AAGD,gFAiCC;AAGD,4CAuBC;AAGD,kDA2BC;AAGD,sDA6BC;AAOD,sDASC;AAQD,8EAeC;AAGD,wEAiCC;AAGD,8DAoBC;AAGD,oEAiCC;AA7ZD,6CAA+C;AAgB/C,MAAM,iBAAiB,GAAG;;;;;EAKxB,CAAC;AAEH,MAAM,YAAY,GAAG;;;;;EAKnB,CAAC;AAEH,MAAM,cAAc,GAAG;;;;;;EAMrB,CAAC;AAEH,MAAM,WAAW,GAAG;;;;;EAKlB,CAAC;AAEH,MAAM,cAAc,GAAG;;;;;EAKrB,CAAC;AAEH,MAAM,gBAAgB,GAAG;;;;;EAKvB,CAAC;AAEH,MAAM,OAAO,GAAG;;;;;EAKd,CAAC;AAEH,MAAM,oBAAoB,GAAG;;;;;;EAM3B,CAAC;AAEH,MAAM,iBAAiB,GAAG;;;;;;;;;EASxB,CAAC;AAEH,MAAM,YAAY,GAAG;oKAC+I,CAAC;AAErK,MAAM,eAAe,GAAG;;;;;EAKtB,CAAC;AAgCH,SAAS,gBAAgB,CAAC,SAAkB;IAC1C,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAGM,KAAK,UAAU,8BAA8B,CAAC,OAGpD;IACC,MAAM,MAAM,GAAG,IAAA,4BAAe,EAAC,gBAAgB,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;IAC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AAK,UAAU,4BAA4B,CAAC,OAKlD;IAOC,MAAM,KAAK,GAA4B,EAAE,CAAC;IAC1C,IAAI,OAAO,CAAC,0BAA0B,KAAK,SAAS,EAAE,CAAC;QACrD,KAAK,CAAC,0BAA0B,GAAG,OAAO,CAAC,0BAA0B,CAAC;IACxE,CAAC;IACD,IAAI,OAAO,CAAC,cAAc,KAAK,SAAS,EAAE,CAAC;QACzC,KAAK,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;IAChD,CAAC;IACD,IAAI,OAAO,CAAC,iCAAiC,KAAK,SAAS,EAAE,CAAC;QAC5D,KAAK,CAAC,iCAAiC,GAAG,OAAO,CAAC,iCAAiC,CAAC;IACtF,CAAC;IACD,MAAM,MAAM,GAAG,IAAA,4BAAe,EAAC,gBAAgB,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;IACpE,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAQ9B,eAAe,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAC/B,OAAO,IAAI,CAAC,+BAA+B,CAAC;AAC9C,CAAC"}
@@ -0,0 +1,97 @@
1
+ export interface ExecutionListItem {
2
+ id: string;
3
+ agentId?: string;
4
+ status?: string;
5
+ traceId?: string;
6
+ correlationId?: string;
7
+ actorType?: string;
8
+ actorId?: string;
9
+ startedAt?: string;
10
+ completedAt?: string;
11
+ intentSummary?: string;
12
+ }
13
+ export interface ExecutionDetail extends ExecutionListItem {
14
+ errorMessage?: string;
15
+ }
16
+ export declare function listExecutionsRemote(options: {
17
+ targetOrg: string;
18
+ executionId?: string;
19
+ agentId?: string;
20
+ status?: string;
21
+ traceId?: string;
22
+ correlationId?: string;
23
+ actorType?: string;
24
+ actorId?: string;
25
+ limit?: number;
26
+ offset?: number;
27
+ }): Promise<ExecutionListItem[]>;
28
+ export declare function getExecutionDetailRemote(options: {
29
+ targetOrg: string;
30
+ id: string;
31
+ }): Promise<ExecutionDetail>;
32
+ export declare function listExecutionStepsRemote(options: {
33
+ targetOrg: string;
34
+ executionId: string;
35
+ traceId?: string;
36
+ correlationId?: string;
37
+ }): Promise<Array<Record<string, unknown>>>;
38
+ export declare function listExecutionToolCallsRemote(options: {
39
+ targetOrg: string;
40
+ executionId: string;
41
+ traceId?: string;
42
+ correlationId?: string;
43
+ toolName?: string;
44
+ }): Promise<Array<Record<string, unknown>>>;
45
+ export declare function listAuditLogsRemote(options: {
46
+ targetOrg: string;
47
+ agentId?: string;
48
+ executionId?: string;
49
+ traceId?: string;
50
+ correlationId?: string;
51
+ riskLevel?: string;
52
+ actionTaken?: string;
53
+ approvalStatus?: string;
54
+ timeRangeStart?: string;
55
+ timeRangeEnd?: string;
56
+ limit?: number;
57
+ offset?: number;
58
+ }): Promise<{
59
+ items: Array<Record<string, unknown>>;
60
+ total: number;
61
+ }>;
62
+ export declare function getGuardrailStatsRemote(options: {
63
+ targetOrg: string;
64
+ }): Promise<{
65
+ totalEvents: number;
66
+ blockedEvents: number;
67
+ auditedEvents: number;
68
+ approvedEvents: number;
69
+ }>;
70
+ export declare function getGovernanceAuditInventoryRemote(options: {
71
+ targetOrg: string;
72
+ lookbackDays?: number;
73
+ }): Promise<Array<Record<string, unknown>>>;
74
+ export declare function getGovernanceAuditChainRemote(options: {
75
+ targetOrg: string;
76
+ executionId?: string;
77
+ traceId?: string;
78
+ correlationId?: string;
79
+ outcomeEventId?: string;
80
+ limit?: number;
81
+ offset?: number;
82
+ }): Promise<{
83
+ links: Array<Record<string, unknown>>;
84
+ inconsistencies: unknown;
85
+ }>;
86
+ export declare function getTrainingReadinessRemote(options: {
87
+ targetOrg: string;
88
+ }): Promise<Array<Record<string, unknown>>>;
89
+ export declare function getPerformanceRemote(options: {
90
+ targetOrg: string;
91
+ }): Promise<Array<Record<string, unknown>>>;
92
+ export declare function getOpportunityRemote(options: {
93
+ targetOrg: string;
94
+ }): Promise<unknown>;
95
+ export declare function getMemoryRemote(options: {
96
+ targetOrg: string;
97
+ }): Promise<Array<Record<string, unknown>>>;