@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,207 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.listExecutionsRemote = listExecutionsRemote;
4
+ exports.getExecutionDetailRemote = getExecutionDetailRemote;
5
+ exports.listExecutionStepsRemote = listExecutionStepsRemote;
6
+ exports.listExecutionToolCallsRemote = listExecutionToolCallsRemote;
7
+ exports.listAuditLogsRemote = listAuditLogsRemote;
8
+ exports.getGuardrailStatsRemote = getGuardrailStatsRemote;
9
+ exports.getGovernanceAuditInventoryRemote = getGovernanceAuditInventoryRemote;
10
+ exports.getGovernanceAuditChainRemote = getGovernanceAuditChainRemote;
11
+ exports.getTrainingReadinessRemote = getTrainingReadinessRemote;
12
+ exports.getPerformanceRemote = getPerformanceRemote;
13
+ exports.getOpportunityRemote = getOpportunityRemote;
14
+ exports.getMemoryRemote = getMemoryRemote;
15
+ const api_client_1 = require("./api-client");
16
+ const workforce_common_1 = require("./workforce-common");
17
+ const EXECUTION_LIST = `
18
+ query AgentExecutionList($workspaceId: ID, $executionId: ID, $agentId: ID, $status: String, $traceId: String, $correlationId: String, $actorType: String, $actorId: ID, $limit: Int, $offset: Int) {
19
+ agentExecutionList(workspaceId: $workspaceId, executionId: $executionId, agentId: $agentId, status: $status, traceId: $traceId, correlationId: $correlationId, actorType: $actorType, actorId: $actorId, limit: $limit, offset: $offset) {
20
+ id agentId status traceId correlationId actorType actorId startedAt completedAt intentSummary
21
+ }
22
+ }`;
23
+ const EXECUTION_DETAIL = `
24
+ query AgentExecutionDetail($id: ID!) {
25
+ agentExecutionDetail(id: $id) {
26
+ id agentId status traceId correlationId actorType actorId startedAt completedAt intentSummary errorMessage
27
+ }
28
+ }`;
29
+ const EXECUTION_STEPS = `
30
+ query AgentExecutionSteps($executionId: ID!, $traceId: String, $correlationId: String) {
31
+ agentExecutionSteps(executionId: $executionId, traceId: $traceId, correlationId: $correlationId) {
32
+ id stepIndex stepType thought action observation createdAt
33
+ }
34
+ }`;
35
+ const EXECUTION_TOOL_CALLS = `
36
+ query AgentExecutionToolCalls($executionId: ID!, $traceId: String, $correlationId: String, $toolName: String) {
37
+ agentExecutionToolCalls(executionId: $executionId, traceId: $traceId, correlationId: $correlationId, toolName: $toolName) {
38
+ id toolName arguments result status durationMs createdAt
39
+ }
40
+ }`;
41
+ async function listExecutionsRemote(options) {
42
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
43
+ const vars = {
44
+ workspaceId: (0, workforce_common_1.resolveWorkspaceId)(options.targetOrg),
45
+ };
46
+ if (options.executionId)
47
+ vars.executionId = options.executionId;
48
+ if (options.agentId)
49
+ vars.agentId = options.agentId;
50
+ if (options.status)
51
+ vars.status = options.status;
52
+ if (options.traceId)
53
+ vars.traceId = options.traceId;
54
+ if (options.correlationId)
55
+ vars.correlationId = options.correlationId;
56
+ if (options.actorType)
57
+ vars.actorType = options.actorType;
58
+ if (options.actorId)
59
+ vars.actorId = options.actorId;
60
+ if (options.limit)
61
+ vars.limit = options.limit;
62
+ if (options.offset)
63
+ vars.offset = options.offset;
64
+ const data = await client.graphql(EXECUTION_LIST, vars);
65
+ return data.agentExecutionList ?? [];
66
+ }
67
+ async function getExecutionDetailRemote(options) {
68
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
69
+ const data = await client.graphql(EXECUTION_DETAIL, { id: options.id });
70
+ return data.agentExecutionDetail;
71
+ }
72
+ async function listExecutionStepsRemote(options) {
73
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
74
+ const vars = { executionId: options.executionId };
75
+ if (options.traceId)
76
+ vars.traceId = options.traceId;
77
+ if (options.correlationId)
78
+ vars.correlationId = options.correlationId;
79
+ const data = await client.graphql(EXECUTION_STEPS, vars);
80
+ return data.agentExecutionSteps ?? [];
81
+ }
82
+ async function listExecutionToolCallsRemote(options) {
83
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
84
+ const vars = { executionId: options.executionId };
85
+ if (options.traceId)
86
+ vars.traceId = options.traceId;
87
+ if (options.correlationId)
88
+ vars.correlationId = options.correlationId;
89
+ if (options.toolName)
90
+ vars.toolName = options.toolName;
91
+ const data = await client.graphql(EXECUTION_TOOL_CALLS, vars);
92
+ return data.agentExecutionToolCalls ?? [];
93
+ }
94
+ const AUDIT_LOG_LIST = `
95
+ query AuditLogList($filters: AuditQueryFiltersInput!) {
96
+ auditLogList(filters: $filters) {
97
+ items { id executionId traceId correlationId riskLevel actionTaken approvalStatus createdAt summary }
98
+ total
99
+ }
100
+ }`;
101
+ const GUARDRAIL_STATS = `
102
+ query GuardrailStats($workspaceId: String!) {
103
+ guardrailStats(workspaceId: $workspaceId) { totalEvents blockedEvents auditedEvents approvedEvents }
104
+ }`;
105
+ const GOVERNANCE_AUDIT_INVENTORY = `
106
+ query GovernanceAuditInventory($workspaceId: String!, $lookbackDays: Int) {
107
+ governanceAuditInventory(workspaceId: $workspaceId, lookbackDays: $lookbackDays) {
108
+ artifactType totalEvents publishedCount rolledBackCount lastEventAt
109
+ }
110
+ }`;
111
+ const GOVERNANCE_AUDIT_CHAIN = `
112
+ query GovernanceAuditChain($workspaceId: String!, $executionId: ID, $traceId: String, $correlationId: String, $outcomeEventId: ID, $limit: Int, $offset: Int) {
113
+ governanceAuditChain(workspaceId: $workspaceId, executionId: $executionId, traceId: $traceId, correlationId: $correlationId, outcomeEventId: $outcomeEventId, limit: $limit, offset: $offset) {
114
+ links { nodeId eventType actorId actorType occurredAt digest evidenceRef }
115
+ inconsistencies
116
+ }
117
+ }`;
118
+ async function listAuditLogsRemote(options) {
119
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
120
+ const filters = {
121
+ workspaceId: (0, workforce_common_1.resolveWorkspaceId)(options.targetOrg),
122
+ };
123
+ if (options.agentId)
124
+ filters.agentId = options.agentId;
125
+ if (options.executionId)
126
+ filters.executionId = options.executionId;
127
+ if (options.traceId)
128
+ filters.traceId = options.traceId;
129
+ if (options.correlationId)
130
+ filters.correlationId = options.correlationId;
131
+ if (options.riskLevel)
132
+ filters.riskLevel = options.riskLevel;
133
+ if (options.actionTaken)
134
+ filters.actionTaken = options.actionTaken;
135
+ if (options.approvalStatus)
136
+ filters.approvalStatus = options.approvalStatus;
137
+ if (options.timeRangeStart)
138
+ filters.timeRangeStart = options.timeRangeStart;
139
+ if (options.timeRangeEnd)
140
+ filters.timeRangeEnd = options.timeRangeEnd;
141
+ if (options.limit)
142
+ filters.limit = options.limit;
143
+ if (options.offset)
144
+ filters.offset = options.offset;
145
+ const data = await client.graphql(AUDIT_LOG_LIST, { filters });
146
+ return data.auditLogList;
147
+ }
148
+ async function getGuardrailStatsRemote(options) {
149
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
150
+ const data = await client.graphql(GUARDRAIL_STATS, { workspaceId: (0, workforce_common_1.resolveWorkspaceId)(options.targetOrg) });
151
+ return data.guardrailStats;
152
+ }
153
+ async function getGovernanceAuditInventoryRemote(options) {
154
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
155
+ const vars = { workspaceId: (0, workforce_common_1.resolveWorkspaceId)(options.targetOrg) };
156
+ if (options.lookbackDays)
157
+ vars.lookbackDays = options.lookbackDays;
158
+ const data = await client.graphql(GOVERNANCE_AUDIT_INVENTORY, vars);
159
+ return data.governanceAuditInventory ?? [];
160
+ }
161
+ async function getGovernanceAuditChainRemote(options) {
162
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
163
+ const vars = { workspaceId: (0, workforce_common_1.resolveWorkspaceId)(options.targetOrg) };
164
+ if (options.executionId)
165
+ vars.executionId = options.executionId;
166
+ if (options.traceId)
167
+ vars.traceId = options.traceId;
168
+ if (options.correlationId)
169
+ vars.correlationId = options.correlationId;
170
+ if (options.outcomeEventId)
171
+ vars.outcomeEventId = options.outcomeEventId;
172
+ if (options.limit)
173
+ vars.limit = options.limit;
174
+ if (options.offset)
175
+ vars.offset = options.offset;
176
+ const data = await client.graphql(GOVERNANCE_AUDIT_CHAIN, vars);
177
+ return data.governanceAuditChain;
178
+ }
179
+ const TRAINING_READINESS = `
180
+ query AiWorkforceTrainingReadinessProjection { aiWorkforceTrainingReadinessProjection { agentId readinessLevel missingComponents recommendations } }`;
181
+ const PERFORMANCE = `
182
+ query AiWorkforcePerformanceProjection { aiWorkforcePerformanceProjection { agentId totalExecutions successRate avgDurationMs lastExecutedAt } }`;
183
+ const OPPORTUNITY = `
184
+ query AiWorkforceOpportunityProjection { aiWorkforceOpportunityProjection { proposals } }`;
185
+ const MEMORY = `
186
+ query AiWorkforceMemoryProjection { aiWorkforceMemoryProjection { items { id category key value status updatedAt } } }`;
187
+ async function getTrainingReadinessRemote(options) {
188
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
189
+ const data = await client.graphql(TRAINING_READINESS, {});
190
+ return data.aiWorkforceTrainingReadinessProjection ?? [];
191
+ }
192
+ async function getPerformanceRemote(options) {
193
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
194
+ const data = await client.graphql(PERFORMANCE, {});
195
+ return data.aiWorkforcePerformanceProjection ?? [];
196
+ }
197
+ async function getOpportunityRemote(options) {
198
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
199
+ const data = await client.graphql(OPPORTUNITY, {});
200
+ return data.aiWorkforceOpportunityProjection?.proposals ?? [];
201
+ }
202
+ async function getMemoryRemote(options) {
203
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
204
+ const data = await client.graphql(MEMORY, {});
205
+ return data.aiWorkforceMemoryProjection?.items ?? [];
206
+ }
207
+ //# sourceMappingURL=workforce-observe-remote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workforce-observe-remote.js","sourceRoot":"","sources":["../../../../src/services/workforce-observe-remote.ts"],"names":[],"mappings":";;AA4DA,oDA2BC;AAED,4DAOC;AAED,4DAcC;AAED,oEAgBC;AAgCD,kDAiCC;AAED,0DAkBC;AAED,8EAWC;AAED,sEAqBC;AAgBD,gEAQC;AAED,oDAQC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CAAC,CAAC;IAC3B,OAAO,IAAI,CAAC,sCAAsC,IAAI,EAAE,CAAC;AAC3D,CAAC;AAEM,KAAK,UAAU,oBAAoB,CAAC,OAE1C;IACC,MAAM,MAAM,GAAG,IAAA,4BAAe,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAE9B,WAAW,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,IAAI,CAAC,gCAAgC,IAAI,EAAE,CAAC;AACrD,CAAC;AAEM,KAAK,UAAU,oBAAoB,CAAC,OAE1C;IACC,MAAM,MAAM,GAAG,IAAA,4BAAe,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAA+D,WAAW,EAAE,EAAE,CAAC,CAAC;IACjH,OAAO,IAAI,CAAC,gCAAgC,EAAE,SAAS,IAAI,EAAE,CAAC;AAChE,CAAC;AAEM,KAAK,UAAU,eAAe,CAAC,OAErC;IACC,MAAM,MAAM,GAAG,IAAA,4BAAe,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAE9B,MAAM,EAAE,EAAE,CAAC,CAAC;IACf,OAAO,IAAI,CAAC,2BAA2B,EAAE,KAAK,IAAI,EAAE,CAAC;AACvD,CAAC"}
@@ -0,0 +1,94 @@
1
+ export interface AgentExecutionView {
2
+ id: string;
3
+ agentId?: string;
4
+ status?: string;
5
+ traceId?: string;
6
+ correlationId?: string;
7
+ startedAt?: string;
8
+ intentSummary?: string;
9
+ }
10
+ export declare function dispatchAgentTaskRemote(options: {
11
+ targetOrg: string;
12
+ input: string;
13
+ }): Promise<AgentExecutionView>;
14
+ export declare function testAgentRunRemote(options: {
15
+ targetOrg: string;
16
+ agentId: string;
17
+ input: string;
18
+ }): Promise<AgentExecutionView>;
19
+ export declare function cancelAgentExecutionRemote(options: {
20
+ targetOrg: string;
21
+ executionId: string;
22
+ }): Promise<boolean>;
23
+ export declare function submitFeedbackRemote(options: {
24
+ targetOrg: string;
25
+ executionId: string;
26
+ rating: 'up' | 'down' | 'neutral';
27
+ reviewerFeedback?: string;
28
+ }): Promise<boolean>;
29
+ export interface ApprovalInstanceView {
30
+ id: string;
31
+ status?: string;
32
+ currentStep?: {
33
+ stepName?: string;
34
+ };
35
+ submitterId?: string;
36
+ submittedAt?: string;
37
+ decidedAt?: string;
38
+ }
39
+ export declare function submitForApprovalRemote(options: {
40
+ targetOrg: string;
41
+ recordId: string;
42
+ processId: string;
43
+ }): Promise<ApprovalInstanceView>;
44
+ export declare function approveInstanceRemote(options: {
45
+ targetOrg: string;
46
+ instanceId: string;
47
+ comments?: string;
48
+ }): Promise<ApprovalInstanceView>;
49
+ export declare function rejectInstanceRemote(options: {
50
+ targetOrg: string;
51
+ instanceId: string;
52
+ comments?: string;
53
+ }): Promise<ApprovalInstanceView>;
54
+ export declare function recallInstanceRemote(options: {
55
+ targetOrg: string;
56
+ instanceId: string;
57
+ }): Promise<ApprovalInstanceView>;
58
+ export declare function delegateApprovalRemote(options: {
59
+ targetOrg: string;
60
+ instanceId: string;
61
+ delegateUserId: string;
62
+ }): Promise<ApprovalInstanceView>;
63
+ export declare function registerBusinessDataInstallRemote(options: {
64
+ targetOrg: string;
65
+ contractName: string;
66
+ contractVersion: string;
67
+ compatibleCoreSha: string;
68
+ sourceUri?: string;
69
+ auditId?: string;
70
+ summary?: unknown;
71
+ }): Promise<unknown>;
72
+ export declare function registerMetadataInstallRemote(options: {
73
+ targetOrg: string;
74
+ packageName: string;
75
+ version: string;
76
+ installedStateId: string;
77
+ compatibleCoreSha: string;
78
+ auditId?: string;
79
+ sourceUri?: string;
80
+ }): Promise<unknown>;
81
+ export declare function runRuntimeDemoPreflightRemote(options: {
82
+ targetOrg: string;
83
+ expectedCoreSha?: string;
84
+ imageEvidence?: unknown;
85
+ }): Promise<{
86
+ status: string;
87
+ ready: boolean;
88
+ blockers?: Array<{
89
+ code?: string;
90
+ message?: string;
91
+ }>;
92
+ checks?: Array<Record<string, unknown>>;
93
+ generatedAt?: string;
94
+ }>;
@@ -0,0 +1,176 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.dispatchAgentTaskRemote = dispatchAgentTaskRemote;
4
+ exports.testAgentRunRemote = testAgentRunRemote;
5
+ exports.cancelAgentExecutionRemote = cancelAgentExecutionRemote;
6
+ exports.submitFeedbackRemote = submitFeedbackRemote;
7
+ exports.submitForApprovalRemote = submitForApprovalRemote;
8
+ exports.approveInstanceRemote = approveInstanceRemote;
9
+ exports.rejectInstanceRemote = rejectInstanceRemote;
10
+ exports.recallInstanceRemote = recallInstanceRemote;
11
+ exports.delegateApprovalRemote = delegateApprovalRemote;
12
+ exports.registerBusinessDataInstallRemote = registerBusinessDataInstallRemote;
13
+ exports.registerMetadataInstallRemote = registerMetadataInstallRemote;
14
+ exports.runRuntimeDemoPreflightRemote = runRuntimeDemoPreflightRemote;
15
+ const api_client_1 = require("./api-client");
16
+ const workforce_common_1 = require("./workforce-common");
17
+ const DISPATCH_TASK = `
18
+ mutation DispatchAgentTask($input: String!, $workspaceId: ID!, $userId: ID!) {
19
+ dispatchAgentTask(input: $input, workspaceId: $workspaceId, userId: $userId) {
20
+ id agentId status traceId correlationId startedAt intentSummary
21
+ }
22
+ }`;
23
+ const TEST_RUN = `
24
+ mutation TestAgentRun($agentId: ID!, $input: String!) {
25
+ testAgentRun(agentId: $agentId, input: $input) {
26
+ id agentId status traceId correlationId startedAt intentSummary
27
+ }
28
+ }`;
29
+ const CANCEL_EXECUTION = `
30
+ mutation CancelAgentExecution($executionId: ID!) { cancelAgentExecution(executionId: $executionId) }`;
31
+ const SUBMIT_FEEDBACK = `
32
+ mutation SubmitAgentExecutionFeedback($input: SubmitAgentExecutionFeedbackInput!) {
33
+ submitAgentExecutionFeedback(input: $input)
34
+ }`;
35
+ async function dispatchAgentTaskRemote(options) {
36
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
37
+ const currentUser = await client.getCurrentUser();
38
+ const data = await client.graphql(DISPATCH_TASK, {
39
+ input: options.input,
40
+ workspaceId: (0, workforce_common_1.resolveWorkspaceId)(options.targetOrg),
41
+ userId: currentUser.id,
42
+ });
43
+ return data.dispatchAgentTask;
44
+ }
45
+ async function testAgentRunRemote(options) {
46
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
47
+ const data = await client.graphql(TEST_RUN, {
48
+ agentId: options.agentId,
49
+ input: options.input,
50
+ });
51
+ return data.testAgentRun;
52
+ }
53
+ async function cancelAgentExecutionRemote(options) {
54
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
55
+ const data = await client.graphql(CANCEL_EXECUTION, {
56
+ executionId: options.executionId,
57
+ });
58
+ return data;
59
+ }
60
+ async function submitFeedbackRemote(options) {
61
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
62
+ const input = {
63
+ executionId: options.executionId,
64
+ rating: options.rating,
65
+ };
66
+ if (options.reviewerFeedback !== undefined)
67
+ input.reviewerFeedback = options.reviewerFeedback;
68
+ const data = await client.graphql(SUBMIT_FEEDBACK, { input });
69
+ return data;
70
+ }
71
+ const SUBMIT_FOR_APPROVAL = `
72
+ mutation SubmitForApproval($recordId: ID!, $processId: ID!) {
73
+ submitForApproval(recordId: $recordId, processId: $processId) { id status currentStep { stepName } submitterId submittedAt }
74
+ }`;
75
+ const APPROVE_INSTANCE = `
76
+ mutation ApproveInstance($instanceId: ID!, $comments: String) {
77
+ approveInstance(instanceId: $instanceId, comments: $comments) { id status decidedAt }
78
+ }`;
79
+ const REJECT_INSTANCE = `
80
+ mutation RejectInstance($instanceId: ID!, $comments: String) {
81
+ rejectInstance(instanceId: $instanceId, comments: $comments) { id status decidedAt }
82
+ }`;
83
+ const RECALL_INSTANCE = `
84
+ mutation RecallInstance($instanceId: ID!) {
85
+ recallInstance(instanceId: $instanceId) { id status }
86
+ }`;
87
+ const DELEGATE_APPROVAL = `
88
+ mutation DelegateApproval($instanceId: ID!, $delegateUserId: ID!) {
89
+ delegateApproval(instanceId: $instanceId, delegateUserId: $delegateUserId) { id status }
90
+ }`;
91
+ async function submitForApprovalRemote(options) {
92
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
93
+ const data = await client.graphql(SUBMIT_FOR_APPROVAL, { recordId: options.recordId, processId: options.processId });
94
+ return data.submitForApproval;
95
+ }
96
+ async function approveInstanceRemote(options) {
97
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
98
+ const data = await client.graphql(APPROVE_INSTANCE, {
99
+ instanceId: options.instanceId,
100
+ comments: options.comments,
101
+ });
102
+ return data.approveInstance;
103
+ }
104
+ async function rejectInstanceRemote(options) {
105
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
106
+ const data = await client.graphql(REJECT_INSTANCE, {
107
+ instanceId: options.instanceId,
108
+ comments: options.comments,
109
+ });
110
+ return data.rejectInstance;
111
+ }
112
+ async function recallInstanceRemote(options) {
113
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
114
+ const data = await client.graphql(RECALL_INSTANCE, {
115
+ instanceId: options.instanceId,
116
+ });
117
+ return data.recallInstance;
118
+ }
119
+ async function delegateApprovalRemote(options) {
120
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
121
+ const data = await client.graphql(DELEGATE_APPROVAL, {
122
+ instanceId: options.instanceId,
123
+ delegateUserId: options.delegateUserId,
124
+ });
125
+ return data.delegateApproval;
126
+ }
127
+ const REGISTER_BUSINESS_DATA = `
128
+ mutation RegisterBusinessDataInstall($workspaceId: String!, $contractName: String!, $contractVersion: String!, $compatibleCoreSha: String!, $sourceUri: String, $auditId: String, $summary: JSON) {
129
+ registerBusinessDataInstall(workspaceId: $workspaceId, contractName: $contractName, contractVersion: $contractVersion, compatibleCoreSha: $compatibleCoreSha, sourceUri: $sourceUri, auditId: $auditId, summary: $summary)
130
+ }`;
131
+ const REGISTER_METADATA = `
132
+ mutation RegisterMetadataInstall($workspaceId: String!, $packageName: String!, $version: String!, $installedStateId: String!, $compatibleCoreSha: String!, $auditId: String, $sourceUri: String) {
133
+ registerMetadataInstall(workspaceId: $workspaceId, packageName: $packageName, version: $version, installedStateId: $installedStateId, compatibleCoreSha: $compatibleCoreSha, auditId: $auditId, sourceUri: $sourceUri)
134
+ }`;
135
+ const RUN_PREFLIGHT = `
136
+ mutation RunRuntimeDemoPreflight($workspaceId: String!, $expectedCoreSha: String, $imageEvidence: JSON) {
137
+ runRuntimeDemoPreflight(workspaceId: $workspaceId, expectedCoreSha: $expectedCoreSha, imageEvidence: $imageEvidence) {
138
+ status ready blockers { code message } checks { id label status detail } generatedAt
139
+ }
140
+ }`;
141
+ async function registerBusinessDataInstallRemote(options) {
142
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
143
+ const data = await client.graphql(REGISTER_BUSINESS_DATA, {
144
+ workspaceId: (0, workforce_common_1.resolveWorkspaceId)(options.targetOrg),
145
+ contractName: options.contractName,
146
+ contractVersion: options.contractVersion,
147
+ compatibleCoreSha: options.compatibleCoreSha,
148
+ sourceUri: options.sourceUri,
149
+ auditId: options.auditId,
150
+ summary: options.summary,
151
+ });
152
+ return data;
153
+ }
154
+ async function registerMetadataInstallRemote(options) {
155
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
156
+ const data = await client.graphql(REGISTER_METADATA, {
157
+ workspaceId: (0, workforce_common_1.resolveWorkspaceId)(options.targetOrg),
158
+ packageName: options.packageName,
159
+ version: options.version,
160
+ installedStateId: options.installedStateId,
161
+ compatibleCoreSha: options.compatibleCoreSha,
162
+ auditId: options.auditId,
163
+ sourceUri: options.sourceUri,
164
+ });
165
+ return data;
166
+ }
167
+ async function runRuntimeDemoPreflightRemote(options) {
168
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
169
+ const data = await client.graphql(RUN_PREFLIGHT, {
170
+ workspaceId: (0, workforce_common_1.resolveWorkspaceId)(options.targetOrg),
171
+ expectedCoreSha: options.expectedCoreSha,
172
+ imageEvidence: options.imageEvidence,
173
+ });
174
+ return data.runRuntimeDemoPreflight;
175
+ }
176
+ //# sourceMappingURL=workforce-ops-remote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workforce-ops-remote.js","sourceRoot":"","sources":["../../../../src/services/workforce-ops-remote.ts"],"names":[],"mappings":";;AAqDA,0DAYC;AAOD,gDAWC;AAOD,gEASC;AAOD,oDAcC;AAsCD,0DAWC;AAED,sDAWC;AAED,oDAWC;AAED,oDASC;AAED,wDAWC;AAqBD,8EAoBC;AAED,sEAoBC;AAED,sEA0BC;AAtTD,6CAA+C;AAC/C,yDAAwD;AAexD,MAAM,aAAa,GAAG;;;;;EAKpB,CAAC;AAEH,MAAM,QAAQ,GAAG;;;;;EAKf,CAAC;AAEH,MAAM,gBAAgB,GAAG;qGAC4E,CAAC;AAEtG,MAAM,eAAe,GAAG;;;EAGtB,CAAC;AAiBI,KAAK,UAAU,uBAAuB,CAAC,OAG7C;IACC,MAAM,MAAM,GAAG,IAAA,4BAAe,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,cAAc,EAAE,CAAC;IAClD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAA4C,aAAa,EAAE;QAC1F,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,WAAW,EAAE,IAAA,qCAAkB,EAAC,OAAO,CAAC,SAAS,CAAC;QAClD,MAAM,EAAE,WAAW,CAAC,EAAE;KACvB,CAAC,CAAC;IACH,OAAO,IAAI,CAAC,iBAAiB,CAAC;AAChC,CAAC;AAOM,KAAK,UAAU,kBAAkB,CAAC,OAIxC;IACC,MAAM,MAAM,GAAG,IAAA,4BAAe,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAAuC,QAAQ,EAAE;QAChF,OAAO,EAAE,OAAO,CAAC,OAAO;Q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ACxB,SAAS,EAAE,OAAO,CAAC,SAAS;KAC7B,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC;AAEM,KAAK,UAAU,6BAA6B,CAAC,OAInD;IAOC,MAAM,MAAM,GAAG,IAAA,4BAAe,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAQ9B,aAAa,EAAE;QAChB,WAAW,EAAE,IAAA,qCAAkB,EAAC,OAAO,CAAC,SAAS,CAAC;QAClD,eAAe,EAAE,OAAO,CAAC,eAAe;QACxC,aAAa,EAAE,OAAO,CAAC,aAAa;KACrC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC,uBAAuB,CAAC;AACtC,CAAC"}
@@ -0,0 +1,132 @@
1
+ export interface OrchestrationTemplateView {
2
+ id: string;
3
+ name: string;
4
+ description?: string;
5
+ category?: string;
6
+ triggerType?: string;
7
+ createdAt?: string;
8
+ }
9
+ export declare function createOrchestrationTemplateRemote(options: {
10
+ targetOrg: string;
11
+ name: string;
12
+ description?: string;
13
+ category?: string;
14
+ triggerType?: string;
15
+ }): Promise<OrchestrationTemplateView>;
16
+ export declare function updateOrchestrationTemplateRemote(options: {
17
+ targetOrg: string;
18
+ id: string;
19
+ name?: string;
20
+ description?: string;
21
+ category?: string;
22
+ triggerType?: string;
23
+ }): Promise<OrchestrationTemplateView>;
24
+ export declare function deleteOrchestrationTemplateRemote(options: {
25
+ targetOrg: string;
26
+ id: string;
27
+ }): Promise<{
28
+ success: boolean;
29
+ message: string;
30
+ }>;
31
+ export declare function createOrchestrationFromTemplateRemote(options: {
32
+ targetOrg: string;
33
+ templateId: string;
34
+ agentMapping: Record<string, string>;
35
+ name?: string;
36
+ }): Promise<unknown>;
37
+ export declare function saveOrchestrationAsTemplateRemote(options: {
38
+ targetOrg: string;
39
+ planId: string;
40
+ name: string;
41
+ category?: string;
42
+ }): Promise<OrchestrationTemplateView>;
43
+ export declare function listOrchestrationTemplatesRemote(options: {
44
+ targetOrg: string;
45
+ category?: string;
46
+ }): Promise<OrchestrationTemplateView[]>;
47
+ export declare function getOrchestrationTemplateRemote(options: {
48
+ targetOrg: string;
49
+ id: string;
50
+ }): Promise<OrchestrationTemplateView | null>;
51
+ export interface OrchestrationPlanView {
52
+ id: string;
53
+ name: string;
54
+ description?: string;
55
+ status?: string;
56
+ triggerType?: string;
57
+ failureStrategy?: string;
58
+ maxDurationSeconds?: number;
59
+ maxConcurrentInstances?: number;
60
+ maxParallelSteps?: number;
61
+ steps?: unknown;
62
+ createdAt?: string;
63
+ }
64
+ export declare function createOrchestrationPlanRemote(options: {
65
+ targetOrg: string;
66
+ name: string;
67
+ steps: unknown;
68
+ description?: string;
69
+ triggerType?: string;
70
+ failureStrategy?: string;
71
+ maxDurationSeconds?: number;
72
+ maxConcurrentInstances?: number;
73
+ maxParallelSteps?: number;
74
+ }): Promise<OrchestrationPlanView>;
75
+ export declare function updateOrchestrationPlanRemote(options: {
76
+ targetOrg: string;
77
+ id: string;
78
+ name?: string;
79
+ description?: string;
80
+ status?: string;
81
+ triggerType?: string;
82
+ failureStrategy?: string;
83
+ }): Promise<OrchestrationPlanView>;
84
+ export declare function deleteOrchestrationPlanRemote(options: {
85
+ targetOrg: string;
86
+ id: string;
87
+ }): Promise<boolean>;
88
+ export declare function listOrchestrationPlansRemote(options: {
89
+ targetOrg: string;
90
+ page?: number;
91
+ pageSize?: number;
92
+ status?: string;
93
+ triggerType?: string;
94
+ }): Promise<{
95
+ items: OrchestrationPlanView[];
96
+ total: number;
97
+ }>;
98
+ export declare function getOrchestrationPlanRemote(options: {
99
+ targetOrg: string;
100
+ id: string;
101
+ }): Promise<OrchestrationPlanView | null>;
102
+ export declare function executeOrchestrationRemote(options: {
103
+ targetOrg: string;
104
+ planId: string;
105
+ initialContext?: unknown;
106
+ }): Promise<string>;
107
+ export declare function cancelOrchestrationRemote(options: {
108
+ targetOrg: string;
109
+ executionId: string;
110
+ }): Promise<boolean>;
111
+ export declare function pauseOrchestrationRemote(options: {
112
+ targetOrg: string;
113
+ executionId: string;
114
+ }): Promise<boolean>;
115
+ export declare function resumeOrchestrationRemote(options: {
116
+ targetOrg: string;
117
+ executionId: string;
118
+ }): Promise<boolean>;
119
+ export declare function listOrchestrationExecutionsRemote(options: {
120
+ targetOrg: string;
121
+ page?: number;
122
+ pageSize?: number;
123
+ planId?: string;
124
+ status?: string;
125
+ }): Promise<{
126
+ items: Array<Record<string, unknown>>;
127
+ total: number;
128
+ }>;
129
+ export declare function getOrchestrationExecutionRemote(options: {
130
+ targetOrg: string;
131
+ id: string;
132
+ }): Promise<Record<string, unknown> | null>;