@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,143 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.workforceKnowledgeCommand = void 0;
37
+ const node_fs_1 = require("node:fs");
38
+ const commander_1 = require("commander");
39
+ const shared_1 = require("./shared");
40
+ const workforce_guardrail_knowledge_remote_1 = require("../../services/workforce-guardrail-knowledge-remote");
41
+ exports.workforceKnowledgeCommand = new commander_1.Command('knowledge')
42
+ .description('知识资产 ingestion(chunk / document / file / url)');
43
+ exports.workforceKnowledgeCommand.command('chunk-create')
44
+ .description('直接创建一条知识 chunk')
45
+ .requiredOption('--target-org <alias>')
46
+ .requiredOption('--title <title>')
47
+ .requiredOption('--content <text|@file>')
48
+ .option('--content-type <type>', '默认 text')
49
+ .option('--source-type <type>')
50
+ .option('--source-object <apiName>')
51
+ .option('--source-record-id <id>')
52
+ .option('--org-node-id <id>')
53
+ .option('--access-level <level>', 'private|public')
54
+ .option('--metadata <json|@file>')
55
+ .option('--json')
56
+ .action(async (options) => {
57
+ const { parseJsonOption } = await Promise.resolve().then(() => __importStar(require('./shared')));
58
+ (0, shared_1.emitWorkforceResult)('workforce.knowledge.chunk_create', await (0, workforce_guardrail_knowledge_remote_1.createKnowledgeChunkRemote)({
59
+ targetOrg: options.targetOrg,
60
+ title: options.title,
61
+ content: await (0, shared_1.resolveContentOption)(options.content),
62
+ contentType: options.contentType,
63
+ sourceType: options.sourceType,
64
+ sourceObject: options.sourceObject,
65
+ sourceRecordId: options.sourceRecordId,
66
+ orgNodeId: options.orgNodeId,
67
+ accessLevel: options.accessLevel,
68
+ metadata: await parseJsonOption(options.metadata),
69
+ }), options.json);
70
+ });
71
+ exports.workforceKnowledgeCommand.command('ingest-document')
72
+ .description('文本文档切分+embedding(ingestDocument)')
73
+ .requiredOption('--target-org <alias>')
74
+ .requiredOption('--title <title>')
75
+ .requiredOption('--content <text|@file>')
76
+ .option('--source-type <type>')
77
+ .option('--source-object <apiName>')
78
+ .option('--source-record-id <id>')
79
+ .option('--org-node-id <id>')
80
+ .option('--access-level <level>')
81
+ .option('--metadata <json|@file>')
82
+ .option('--json')
83
+ .action(async (options) => {
84
+ const { parseJsonOption } = await Promise.resolve().then(() => __importStar(require('./shared')));
85
+ (0, shared_1.emitWorkforceResult)('workforce.knowledge.ingest_document', await (0, workforce_guardrail_knowledge_remote_1.ingestDocumentRemote)({
86
+ targetOrg: options.targetOrg,
87
+ title: options.title,
88
+ content: await (0, shared_1.resolveContentOption)(options.content),
89
+ sourceType: options.sourceType,
90
+ sourceObject: options.sourceObject,
91
+ sourceRecordId: options.sourceRecordId,
92
+ orgNodeId: options.orgNodeId,
93
+ accessLevel: options.accessLevel,
94
+ metadata: await parseJsonOption(options.metadata),
95
+ }), options.json);
96
+ });
97
+ exports.workforceKnowledgeCommand.command('ingest-file')
98
+ .description('PDF/DOCX/TXT 文件切分+embedding(ingestKnowledgeFile)')
99
+ .requiredOption('--target-org <alias>')
100
+ .requiredOption('--file <path>', '本地文件路径(PDF/DOCX/TXT)')
101
+ .option('--access-level <level>')
102
+ .option('--org-node-id <id>')
103
+ .option('--json')
104
+ .action(async (options) => {
105
+ const bytes = (0, node_fs_1.readFileSync)(options.file);
106
+ const fileName = options.file.split('/').pop() ?? options.file;
107
+ const contentBase64 = bytes.toString('base64');
108
+ (0, shared_1.emitWorkforceResult)('workforce.knowledge.ingest_file', await (0, workforce_guardrail_knowledge_remote_1.ingestKnowledgeFileRemote)({
109
+ targetOrg: options.targetOrg,
110
+ fileName,
111
+ contentBase64,
112
+ accessLevel: options.accessLevel,
113
+ orgNodeId: options.orgNodeId,
114
+ }), options.json);
115
+ });
116
+ exports.workforceKnowledgeCommand.command('ingest-url')
117
+ .description('URL 抓取切分+embedding(ingestKnowledgeUrl,后端 SSRF 守卫+2MB cap)')
118
+ .requiredOption('--target-org <alias>')
119
+ .requiredOption('--url <url>')
120
+ .option('--title <title>')
121
+ .option('--access-level <level>')
122
+ .option('--json')
123
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.knowledge.ingest_url', await (0, workforce_guardrail_knowledge_remote_1.ingestKnowledgeUrlRemote)({
124
+ targetOrg: options.targetOrg,
125
+ url: options.url,
126
+ title: options.title,
127
+ accessLevel: options.accessLevel,
128
+ }), options.json));
129
+ exports.workforceKnowledgeCommand.command('delete')
130
+ .description('按 sourceRecordId 删除知识文档(deleteKnowledgeDocument)')
131
+ .requiredOption('--target-org <alias>')
132
+ .requiredOption('--source-record-id <id>')
133
+ .option('--json')
134
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.knowledge.delete', await (0, workforce_guardrail_knowledge_remote_1.deleteKnowledgeDocumentRemote)({
135
+ targetOrg: options.targetOrg,
136
+ sourceRecordId: options.sourceRecordId,
137
+ }), options.json));
138
+ exports.workforceKnowledgeCommand.command('reembed-failed')
139
+ .description('重新 embedding 失败 chunk(reembedFailedChunks)')
140
+ .requiredOption('--target-org <alias>')
141
+ .option('--json')
142
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.knowledge.reembed_failed', await (0, workforce_guardrail_knowledge_remote_1.reembedFailedChunksRemote)({ targetOrg: options.targetOrg }), options.json));
143
+ //# sourceMappingURL=knowledge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knowledge.js","sourceRoot":"","sources":["../../../../../src/commands/workforce/knowledge.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAuC;AAEvC,yCAAoC;AAEpC,qCAAqE;AACrE,8GAO6D;AAWhD,QAAA,yBAAyB,GAAG,IAAI,mBAAO,CAAC,WAAW,CAAC;KAC9D,WAAW,CAAC,+CAA+C,CAAC,CAAC;AAEhE,iCAAyB,CAAC,OAAO,CAAC,cAAc,CAAC;KAC9C,WAAW,CAAC,gBAAgB,CAAC;KAC7B,cAAc,CAAC,sBAAsB,CAAC;KACtC,cAAc,CAAC,iBAAiB,CAAC;KACjC,cAAc,CAAC,wBAAwB,CAAC;KACxC,MAAM,CAAC,uBAAuB,EAAE,SAAS,CAAC;KAC1C,MAAM,CAAC,sBAAsB,CAAC;KAC9B,MAAM,CAAC,2BAA2B,CAAC;KACnC,MAAM,CAAC,yBAAyB,CAAC;KACjC,MAAM,CAAC,oBAAoB,CAAC;KAC5B,MAAM,CAAC,wBAAwB,EAAE,gBAAgB,CAAC;KAClD,MAAM,CAAC,yBAAyB,CAAC;KACjC,MAAM,CAAC,QAAQ,CAAC;KAChB,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;IACxB,MA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EACpC,MAAM,IAAA,gEAAyB,EAAC,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC,EACjE,OAAO,CAAC,IAAI,CACb,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { Command } from 'commander';
2
+ export declare const workforceLearningCommand: Command;
@@ -0,0 +1,146 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.workforceLearningCommand = void 0;
4
+ const commander_1 = require("commander");
5
+ const shared_1 = require("./shared");
6
+ const workforce_learning_remote_1 = require("../../services/workforce-learning-remote");
7
+ const logger_1 = require("../../utils/logger");
8
+ exports.workforceLearningCommand = new commander_1.Command('learning')
9
+ .description('行为学习回路 A:extract → draft → apply → simulate → publish');
10
+ exports.workforceLearningCommand.command('extract')
11
+ .description('对单条执行抽取学习信号(extractExecutionLearning,幂等)')
12
+ .requiredOption('--execution-id <id>')
13
+ .requiredOption('--target-org <alias>')
14
+ .option('--json')
15
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.learning.extract', await (0, workforce_learning_remote_1.extractExecutionLearningRemote)({
16
+ targetOrg: options.targetOrg,
17
+ executionId: options.executionId,
18
+ }), options.json));
19
+ exports.workforceLearningCommand.command('pipeline-run')
20
+ .description('增量批处理抽取(runLearningPipeline,推进共享 watermark 游标)')
21
+ .requiredOption('--target-org <alias>')
22
+ .option('--limit <n>', '处理上限 1-5000')
23
+ .option('--json')
24
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.learning.pipeline_run', await (0, workforce_learning_remote_1.runLearningPipelineRemote)({
25
+ targetOrg: options.targetOrg,
26
+ limit: options.limit ? Number(options.limit) : undefined,
27
+ }), options.json));
28
+ const draftCommand = exports.workforceLearningCommand.command('draft')
29
+ .description('学习草稿操作');
30
+ draftCommand.command('generate')
31
+ .description('为候选生成草稿内容(仅 llm_patch posture 类型)')
32
+ .requiredOption('--candidate-id <id>')
33
+ .requiredOption('--target-org <alias>')
34
+ .option('--force', '覆盖已生成状态(仅 reasonCode=already_generated_requires_force 时使用)')
35
+ .option('--json')
36
+ .action(async (options) => {
37
+ const result = await (0, workforce_learning_remote_1.generateLearningDraftContentRemote)({
38
+ targetOrg: options.targetOrg,
39
+ candidateId: options.candidateId,
40
+ force: options.force ? true : undefined,
41
+ });
42
+ if (!options.json && result.reasonCode) {
43
+ logger_1.logger.warn(`draft generate 返回 reasonCode=${result.reasonCode}${result.reason ? ` (${result.reason})` : ''}`);
44
+ }
45
+ (0, shared_1.emitWorkforceResult)('workforce.learning.draft_generate', result, options.json);
46
+ });
47
+ exports.workforceLearningCommand.command('apply')
48
+ .description('把草稿应用到候选(applyDraft,幂等状态转换)')
49
+ .requiredOption('--candidate-id <id>')
50
+ .requiredOption('--target-org <alias>')
51
+ .option('--json')
52
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.learning.apply', await (0, workforce_learning_remote_1.applyDraftRemote)({
53
+ targetOrg: options.targetOrg,
54
+ candidateId: options.candidateId,
55
+ }), options.json));
56
+ exports.workforceLearningCommand.command('simulate')
57
+ .description('对候选跑仿真(runSimulation,物化生成测试并运行)')
58
+ .requiredOption('--candidate-id <id>')
59
+ .requiredOption('--target-org <alias>')
60
+ .option('--json')
61
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.learning.simulate', await (0, workforce_learning_remote_1.runSimulationRemote)({
62
+ targetOrg: options.targetOrg,
63
+ candidateId: options.candidateId,
64
+ }), options.json));
65
+ exports.workforceLearningCommand.command('request-approval')
66
+ .description('为候选请求审批(skippedReason=missing_approval_process 是真实跳过)')
67
+ .requiredOption('--candidate-id <id>')
68
+ .requiredOption('--target-org <alias>')
69
+ .option('--approval-process-id <id>')
70
+ .option('--json')
71
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.learning.request_approval', await (0, workforce_learning_remote_1.requestApprovalRemote)({
72
+ targetOrg: options.targetOrg,
73
+ candidateId: options.candidateId,
74
+ approvalProcessId: options.approvalProcessId,
75
+ }), options.json));
76
+ exports.workforceLearningCommand.command('publish')
77
+ .description('发布候选(过 release-gate → dispatchPublication)')
78
+ .requiredOption('--candidate-id <id>')
79
+ .requiredOption('--target-org <alias>')
80
+ .option('--json')
81
+ .action(async (options) => {
82
+ const result = await (0, workforce_learning_remote_1.publishLearningRemote)({
83
+ targetOrg: options.targetOrg,
84
+ candidateId: options.candidateId,
85
+ });
86
+ if (!options.json && (!result.publishEligible || !result.wired)) {
87
+ logger_1.logger.warn(`publish 未生效:publishEligible=${result.publishEligible} wired=${result.wired}` +
88
+ `${result.reason ? ` reason=${result.reason}` : ''}`);
89
+ }
90
+ (0, shared_1.emitWorkforceResult)('workforce.learning.publish', result, options.json);
91
+ });
92
+ exports.workforceLearningCommand.command('rollback')
93
+ .description('回滚已发布产物(rollbackLearningPublication,不重跑闸门)')
94
+ .requiredOption('--publication-event-id <id>')
95
+ .requiredOption('--reason-code <code>')
96
+ .requiredOption('--target-org <alias>')
97
+ .option('--json')
98
+ .action(async (options) => {
99
+ const result = await (0, workforce_learning_remote_1.rollbackLearningPublicationRemote)({
100
+ targetOrg: options.targetOrg,
101
+ publicationEventId: options.publicationEventId,
102
+ reasonCode: options.reasonCode,
103
+ });
104
+ if (!options.json && result.wired && result.reasonCode === 'rollback_audit_record_write_failed') {
105
+ logger_1.logger.warn('⚠️ rollback 已执行但审计行写入失败(reasonCode=rollback_audit_record_write_failed),请人工核对,不要盲目重试。');
106
+ }
107
+ (0, shared_1.emitWorkforceResult)('workforce.learning.rollback', result, options.json);
108
+ });
109
+ exports.workforceLearningCommand.command('publications')
110
+ .description('列出已发布产物历史(aiWorkforceLearningPublicationEvents)')
111
+ .requiredOption('--target-org <alias>')
112
+ .option('--target-artifact-type <type>')
113
+ .option('--artifact-candidate-id <id>')
114
+ .option('--recommendation-id <id>')
115
+ .option('--release-gate-record-id <id>')
116
+ .option('--limit <n>')
117
+ .option('--offset <n>')
118
+ .option('--json')
119
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.learning.publications', await (0, workforce_learning_remote_1.listLearningPublicationsRemote)({
120
+ targetOrg: options.targetOrg,
121
+ targetArtifactType: options.targetArtifactType,
122
+ artifactCandidateId: options.artifactCandidateId,
123
+ recommendationId: options.recommendationId,
124
+ releaseGateRecordId: options.releaseGateRecordId,
125
+ limit: options.limit ? Number(options.limit) : undefined,
126
+ offset: options.offset ? Number(options.offset) : undefined,
127
+ }), options.json));
128
+ const settingsCommand = exports.workforceLearningCommand.command('settings')
129
+ .description('工作区学习设置(retention / opt-out)');
130
+ settingsCommand.command('get')
131
+ .requiredOption('--target-org <alias>')
132
+ .option('--json')
133
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.learning.settings_get', await (0, workforce_learning_remote_1.getLearningSettingsRemote)({ targetOrg: options.targetOrg }), options.json));
134
+ settingsCommand.command('set')
135
+ .requiredOption('--target-org <alias>')
136
+ .option('--retention-days <n>', 'behaviorEventRetentionDays (30-3650)')
137
+ .option('--opt-out <bool>', 'learningOptOut (true|false)')
138
+ .option('--disabled-event-types <types...>', 'learningCaptureDisabledEventTypes(最多 32)')
139
+ .option('--json')
140
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.learning.settings_set', await (0, workforce_learning_remote_1.updateLearningSettingsRemote)({
141
+ targetOrg: options.targetOrg,
142
+ behaviorEventRetentionDays: options.retentionDays ? Number(options.retentionDays) : undefined,
143
+ learningOptOut: options.optOut === undefined ? undefined : options.optOut === 'true',
144
+ learningCaptureDisabledEventTypes: options.disabledEventTypes,
145
+ }), options.json));
146
+ //# sourceMappingURL=learning.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"learning.js","sourceRoot":"","sources":["../../../../../src/commands/workforce/learning.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AAEpC,qCAA+C;AAC/C,wFAYkD;AAClD,+CAA4C;AAW/B,QAAA,wBAAwB,GAAG,IAAI,mBAAO,CAAC,UAAU,CAAC;KAC5D,WAAW,CAAC,uDAAuD,CAAC,CAAC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;KACtC,MAAM,CAAC,sBAAsB,EAAE,sCAAsC,CAAC;KACtE,MAAM,CAAC,kBAAkB,EAAE,6BAA6B,CAAC;KACzD,MAAM,CAAC,mCAAmC,EAAE,0CAA0C,CAAC;KACvF,MAAM,CAAC,QAAQ,CAAC;KAChB,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,IAAA,4BAAmB,EAC5C,iCAAiC,EACjC,MAAM,IAAA,wDAA4B,EAAC;IACjC,SAAS,EAAE,OAAO,CAAC,SAAS;IAC5B,0BAA0B,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS;IAC7F,cAAc,EAAE,OAAO,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,KAAK,MAAM;IACpF,iCAAiC,EAAE,OAAO,CAAC,kBAAkB;CAC9D,CAAC,EACF,OAAO,CAAC,IAAI,CACb,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { Command } from 'commander';
2
+ export declare const workforceObserveCommand: Command;
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.workforceObserveCommand = void 0;
4
+ const commander_1 = require("commander");
5
+ const shared_1 = require("./shared");
6
+ const workforce_observe_remote_1 = require("../../services/workforce-observe-remote");
7
+ exports.workforceObserveCommand = new commander_1.Command('observe')
8
+ .description('只读观察面(executions / audit / cognition)');
9
+ const executionsCommand = exports.workforceObserveCommand.command('executions')
10
+ .description('agent 执行列表/详情/步骤/工具调用');
11
+ executionsCommand.command('list')
12
+ .requiredOption('--target-org <alias>')
13
+ .option('--execution-id <id>')
14
+ .option('--agent-id <id>')
15
+ .option('--status <status>')
16
+ .option('--trace-id <id>')
17
+ .option('--correlation-id <id>')
18
+ .option('--actor-type <type>')
19
+ .option('--actor-id <id>')
20
+ .option('--limit <n>')
21
+ .option('--offset <n>')
22
+ .option('--json')
23
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.observe.executions.list', await (0, workforce_observe_remote_1.listExecutionsRemote)({
24
+ targetOrg: options.targetOrg,
25
+ executionId: options.executionId,
26
+ agentId: options.agentId,
27
+ status: options.status,
28
+ traceId: options.traceId,
29
+ correlationId: options.correlationId,
30
+ actorType: options.actorType,
31
+ actorId: options.actorId,
32
+ limit: options.limit ? Number(options.limit) : undefined,
33
+ offset: options.offset ? Number(options.offset) : undefined,
34
+ }), options.json));
35
+ executionsCommand.command('detail')
36
+ .requiredOption('--target-org <alias>')
37
+ .requiredOption('--id <id>')
38
+ .option('--json')
39
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.observe.executions.detail', await (0, workforce_observe_remote_1.getExecutionDetailRemote)({ targetOrg: options.targetOrg, id: options.id }), options.json));
40
+ executionsCommand.command('steps')
41
+ .requiredOption('--target-org <alias>')
42
+ .requiredOption('--execution-id <id>')
43
+ .option('--trace-id <id>')
44
+ .option('--correlation-id <id>')
45
+ .option('--json')
46
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.observe.executions.steps', await (0, workforce_observe_remote_1.listExecutionStepsRemote)({
47
+ targetOrg: options.targetOrg,
48
+ executionId: options.executionId,
49
+ traceId: options.traceId,
50
+ correlationId: options.correlationId,
51
+ }), options.json));
52
+ executionsCommand.command('tool-calls')
53
+ .requiredOption('--target-org <alias>')
54
+ .requiredOption('--execution-id <id>')
55
+ .option('--trace-id <id>')
56
+ .option('--correlation-id <id>')
57
+ .option('--tool-name <name>')
58
+ .option('--json')
59
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.observe.executions.tool_calls', await (0, workforce_observe_remote_1.listExecutionToolCallsRemote)({
60
+ targetOrg: options.targetOrg,
61
+ executionId: options.executionId,
62
+ traceId: options.traceId,
63
+ correlationId: options.correlationId,
64
+ toolName: options.toolName,
65
+ }), options.json));
66
+ const auditCommand = exports.workforceObserveCommand.command('audit')
67
+ .description('审计日志 / 护栏统计 / 治理审计链');
68
+ auditCommand.command('logs')
69
+ .description('审计日志列表(auditLogList)')
70
+ .requiredOption('--target-org <alias>')
71
+ .option('--agent-id <id>')
72
+ .option('--execution-id <id>')
73
+ .option('--trace-id <id>')
74
+ .option('--correlation-id <id>')
75
+ .option('--risk-level <level>', 'L0|L1|L2|L3|L4')
76
+ .option('--action-taken <action>', 'allow|audit|confirm|approve|block')
77
+ .option('--approval-status <status>', 'pending|approved|rejected|timeout')
78
+ .option('--time-range-start <iso>')
79
+ .option('--time-range-end <iso>')
80
+ .option('--limit <n>')
81
+ .option('--offset <n>')
82
+ .option('--json')
83
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.observe.audit.logs', await (0, workforce_observe_remote_1.listAuditLogsRemote)({
84
+ targetOrg: options.targetOrg,
85
+ agentId: options.agentId,
86
+ executionId: options.executionId,
87
+ traceId: options.traceId,
88
+ correlationId: options.correlationId,
89
+ riskLevel: options.riskLevel,
90
+ actionTaken: options.actionTaken,
91
+ approvalStatus: options.approvalStatus,
92
+ timeRangeStart: options.timeRangeStart,
93
+ timeRangeEnd: options.timeRangeEnd,
94
+ limit: options.limit ? Number(options.limit) : undefined,
95
+ offset: options.offset ? Number(options.offset) : undefined,
96
+ }), options.json));
97
+ auditCommand.command('guardrail-stats')
98
+ .description('护栏统计(guardrailStats)')
99
+ .requiredOption('--target-org <alias>')
100
+ .option('--json')
101
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.observe.audit.guardrail_stats', await (0, workforce_observe_remote_1.getGuardrailStatsRemote)({ targetOrg: options.targetOrg }), options.json));
102
+ auditCommand.command('inventory')
103
+ .description('治理审计库存(governanceAuditInventory,默认回看 30 天)')
104
+ .requiredOption('--target-org <alias>')
105
+ .option('--lookback-days <n>')
106
+ .option('--json')
107
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.observe.audit.inventory', await (0, workforce_observe_remote_1.getGovernanceAuditInventoryRemote)({
108
+ targetOrg: options.targetOrg,
109
+ lookbackDays: options.lookbackDays ? Number(options.lookbackDays) : undefined,
110
+ }), options.json));
111
+ auditCommand.command('chain')
112
+ .description('治理审计链(governanceAuditChain)')
113
+ .requiredOption('--target-org <alias>')
114
+ .option('--execution-id <id>')
115
+ .option('--trace-id <id>')
116
+ .option('--correlation-id <id>')
117
+ .option('--outcome-event-id <id>')
118
+ .option('--limit <n>')
119
+ .option('--offset <n>')
120
+ .option('--json')
121
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.observe.audit.chain', await (0, workforce_observe_remote_1.getGovernanceAuditChainRemote)({
122
+ targetOrg: options.targetOrg,
123
+ executionId: options.executionId,
124
+ traceId: options.traceId,
125
+ correlationId: options.correlationId,
126
+ outcomeEventId: options.outcomeEventId,
127
+ limit: options.limit ? Number(options.limit) : undefined,
128
+ offset: options.offset ? Number(options.offset) : undefined,
129
+ }), options.json));
130
+ const cognitionCommand = exports.workforceObserveCommand.command('cognition')
131
+ .description('认知投影(只读)');
132
+ cognitionCommand.command('readiness')
133
+ .description('训练就绪度投影(aiWorkforceTrainingReadinessProjection)')
134
+ .requiredOption('--target-org <alias>')
135
+ .option('--json')
136
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.observe.cognition.readiness', await (0, workforce_observe_remote_1.getTrainingReadinessRemote)({ targetOrg: options.targetOrg }), options.json));
137
+ cognitionCommand.command('performance')
138
+ .description('绩效投影(aiWorkforcePerformanceProjection)')
139
+ .requiredOption('--target-org <alias>')
140
+ .option('--json')
141
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.observe.cognition.performance', await (0, workforce_observe_remote_1.getPerformanceRemote)({ targetOrg: options.targetOrg }), options.json));
142
+ cognitionCommand.command('opportunity')
143
+ .description('主动履职机会投影(aiWorkforceOpportunityProjection)')
144
+ .requiredOption('--target-org <alias>')
145
+ .option('--json')
146
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.observe.cognition.opportunity', await (0, workforce_observe_remote_1.getOpportunityRemote)({ targetOrg: options.targetOrg }), options.json));
147
+ cognitionCommand.command('memory')
148
+ .description('员工记忆投影(aiWorkforceMemoryProjection)')
149
+ .requiredOption('--target-org <alias>')
150
+ .option('--json')
151
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.observe.cognition.memory', await (0, workforce_observe_remote_1.getMemoryRemote)({ targetOrg: options.targetOrg }), options.json));
152
+ //# sourceMappingURL=observe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"observe.js","sourceRoot":"","sources":["../../../../../src/commands/workforce/observe.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AAEpC,qCAA+C;AAC/C,sFAaiD;AAMpC,QAAA,uBAAuB,GAAG,IAAI,mBAAO,CAAC,SAAS,CAAC;KAC1D,WAAW,CAAC,uCAAuC,CAAC,CAAC;AAIxD,MAAM,iBAAiB,GAAG,+BAAuB,CAAC,OAAO,CAAC,YAAY,CAAC;KACpE,WAAW,CAAC,uBAAuB,CAAC,CAAC;AAExC,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC;KAC9B,cAAc,CAAC,sBAAsB,CAAC;KACtC,MAAM,CAAC,qBAAqB,CAAC;KAC7B,MAAM,CAAC,iBAAiB,CAAC;KACzB,MAAM,CAAC,mBAAmB,CAAC;KAC3B,MAAM,CAAC,iBAAiB,CAAC;KACzB,MAAM,CAAC,uBAAuB,CAAC;KAC/B,MAAM,CAAC,qBAAqB,CAAC;KAC7B,MAAM,CAAC,iBAAiB,CAAC;KACzB,MAAM,CAAC,aAAa,CAAC;KACrB,MAAM,CAAC,cAAc,CAAC;KACtB,MAAM,CAAC,QAAQ,CAAC;KAChB,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,IAAA,4BAAmB,EAC5C,mCAAmC,EACnC,MAAM,IAAA,+CAAoB,EAAC;IACzB,SAAS,EAAE,OAAO,CAAC,SAAS;IAC5B,WAAW,EAAE,OAAO,CAAC,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