@nexusclawhq/cli 0.2.4 → 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 (228) hide show
  1. package/CHANGELOG.md +7 -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/step-up.d.ts +2 -0
  27. package/dist/nexus-cli/src/commands/org/step-up.js +75 -0
  28. package/dist/nexus-cli/src/commands/org/step-up.js.map +1 -0
  29. package/dist/nexus-cli/src/commands/workforce/approval.d.ts +2 -0
  30. package/dist/nexus-cli/src/commands/workforce/approval.js +60 -0
  31. package/dist/nexus-cli/src/commands/workforce/approval.js.map +1 -0
  32. package/dist/nexus-cli/src/commands/workforce/cognition.d.ts +2 -0
  33. package/dist/nexus-cli/src/commands/workforce/cognition.js +62 -0
  34. package/dist/nexus-cli/src/commands/workforce/cognition.js.map +1 -0
  35. package/dist/nexus-cli/src/commands/workforce/constitution.d.ts +2 -0
  36. package/dist/nexus-cli/src/commands/workforce/constitution.js +37 -0
  37. package/dist/nexus-cli/src/commands/workforce/constitution.js.map +1 -0
  38. package/dist/nexus-cli/src/commands/workforce/guardrail.d.ts +2 -0
  39. package/dist/nexus-cli/src/commands/workforce/guardrail.js +67 -0
  40. package/dist/nexus-cli/src/commands/workforce/guardrail.js.map +1 -0
  41. package/dist/nexus-cli/src/commands/workforce/index.d.ts +2 -0
  42. package/dist/nexus-cli/src/commands/workforce/index.js +43 -0
  43. package/dist/nexus-cli/src/commands/workforce/index.js.map +1 -0
  44. package/dist/nexus-cli/src/commands/workforce/knowledge.d.ts +2 -0
  45. package/dist/nexus-cli/src/commands/workforce/knowledge.js +143 -0
  46. package/dist/nexus-cli/src/commands/workforce/knowledge.js.map +1 -0
  47. package/dist/nexus-cli/src/commands/workforce/learning.d.ts +2 -0
  48. package/dist/nexus-cli/src/commands/workforce/learning.js +146 -0
  49. package/dist/nexus-cli/src/commands/workforce/learning.js.map +1 -0
  50. package/dist/nexus-cli/src/commands/workforce/observe.d.ts +2 -0
  51. package/dist/nexus-cli/src/commands/workforce/observe.js +152 -0
  52. package/dist/nexus-cli/src/commands/workforce/observe.js.map +1 -0
  53. package/dist/nexus-cli/src/commands/workforce/orchestration.d.ts +2 -0
  54. package/dist/nexus-cli/src/commands/workforce/orchestration.js +199 -0
  55. package/dist/nexus-cli/src/commands/workforce/orchestration.js.map +1 -0
  56. package/dist/nexus-cli/src/commands/workforce/permission.d.ts +2 -0
  57. package/dist/nexus-cli/src/commands/workforce/permission.js +113 -0
  58. package/dist/nexus-cli/src/commands/workforce/permission.js.map +1 -0
  59. package/dist/nexus-cli/src/commands/workforce/prompt.d.ts +2 -0
  60. package/dist/nexus-cli/src/commands/workforce/prompt.js +137 -0
  61. package/dist/nexus-cli/src/commands/workforce/prompt.js.map +1 -0
  62. package/dist/nexus-cli/src/commands/workforce/provider.d.ts +2 -0
  63. package/dist/nexus-cli/src/commands/workforce/provider.js +152 -0
  64. package/dist/nexus-cli/src/commands/workforce/provider.js.map +1 -0
  65. package/dist/nexus-cli/src/commands/workforce/rehearsal.d.ts +2 -0
  66. package/dist/nexus-cli/src/commands/workforce/rehearsal.js +71 -0
  67. package/dist/nexus-cli/src/commands/workforce/rehearsal.js.map +1 -0
  68. package/dist/nexus-cli/src/commands/workforce/release.d.ts +2 -0
  69. package/dist/nexus-cli/src/commands/workforce/release.js +24 -0
  70. package/dist/nexus-cli/src/commands/workforce/release.js.map +1 -0
  71. package/dist/nexus-cli/src/commands/workforce/shared.d.ts +8 -0
  72. package/dist/nexus-cli/src/commands/workforce/shared.js +86 -0
  73. package/dist/nexus-cli/src/commands/workforce/shared.js.map +1 -0
  74. package/dist/nexus-cli/src/commands/workforce/sop.d.ts +2 -0
  75. package/dist/nexus-cli/src/commands/workforce/sop.js +86 -0
  76. package/dist/nexus-cli/src/commands/workforce/sop.js.map +1 -0
  77. package/dist/nexus-cli/src/commands/workforce/task.d.ts +4 -0
  78. package/dist/nexus-cli/src/commands/workforce/task.js +67 -0
  79. package/dist/nexus-cli/src/commands/workforce/task.js.map +1 -0
  80. package/dist/nexus-cli/src/commands/workforce/test-case.d.ts +2 -0
  81. package/dist/nexus-cli/src/commands/workforce/test-case.js +121 -0
  82. package/dist/nexus-cli/src/commands/workforce/test-case.js.map +1 -0
  83. package/dist/nexus-cli/src/config/platform-seed-registry.json +134 -0
  84. package/dist/nexus-cli/src/contracts/command-contract.guard.js +25 -2
  85. package/dist/nexus-cli/src/contracts/command-contract.guard.js.map +1 -1
  86. package/dist/nexus-cli/src/contracts/command-contract.registry.js +2 -0
  87. package/dist/nexus-cli/src/contracts/command-contract.registry.js.map +1 -1
  88. package/dist/nexus-cli/src/contracts/contracts.test.js +40 -54
  89. package/dist/nexus-cli/src/contracts/contracts.test.js.map +1 -1
  90. package/dist/nexus-cli/src/contracts/workforce-contracts.d.ts +2 -0
  91. package/dist/nexus-cli/src/contracts/workforce-contracts.js +175 -0
  92. package/dist/nexus-cli/src/contracts/workforce-contracts.js.map +1 -0
  93. package/dist/nexus-cli/src/services/api-client.d.ts +37 -1
  94. package/dist/nexus-cli/src/services/api-client.js +120 -34
  95. package/dist/nexus-cli/src/services/api-client.js.map +1 -1
  96. package/dist/nexus-cli/src/services/api-client.test.js +87 -0
  97. package/dist/nexus-cli/src/services/api-client.test.js.map +1 -1
  98. package/dist/nexus-cli/src/services/package-self-containment.js +1 -0
  99. package/dist/nexus-cli/src/services/package-self-containment.js.map +1 -1
  100. package/dist/nexus-cli/src/services/step-up-helper.d.ts +43 -0
  101. package/dist/nexus-cli/src/services/step-up-helper.js +98 -0
  102. package/dist/nexus-cli/src/services/step-up-helper.js.map +1 -0
  103. package/dist/nexus-cli/src/services/step-up-helper.test.d.ts +1 -0
  104. package/dist/nexus-cli/src/services/step-up-helper.test.js +176 -0
  105. package/dist/nexus-cli/src/services/step-up-helper.test.js.map +1 -0
  106. package/dist/nexus-cli/src/services/step-up-interactive.d.ts +2 -0
  107. package/dist/nexus-cli/src/services/step-up-interactive.js +69 -0
  108. package/dist/nexus-cli/src/services/step-up-interactive.js.map +1 -0
  109. package/dist/nexus-cli/src/services/workforce-cognition-remote.d.ts +27 -0
  110. package/dist/nexus-cli/src/services/workforce-cognition-remote.js +48 -0
  111. package/dist/nexus-cli/src/services/workforce-cognition-remote.js.map +1 -0
  112. package/dist/nexus-cli/src/services/workforce-common.d.ts +2 -0
  113. package/dist/nexus-cli/src/services/workforce-common.js +20 -0
  114. package/dist/nexus-cli/src/services/workforce-common.js.map +1 -0
  115. package/dist/nexus-cli/src/services/workforce-config-remote.d.ts +127 -0
  116. package/dist/nexus-cli/src/services/workforce-config-remote.js +205 -0
  117. package/dist/nexus-cli/src/services/workforce-config-remote.js.map +1 -0
  118. package/dist/nexus-cli/src/services/workforce-distillation-remote.d.ts +118 -0
  119. package/dist/nexus-cli/src/services/workforce-distillation-remote.js +171 -0
  120. package/dist/nexus-cli/src/services/workforce-distillation-remote.js.map +1 -0
  121. package/dist/nexus-cli/src/services/workforce-guardrail-knowledge-remote.d.ts +105 -0
  122. package/dist/nexus-cli/src/services/workforce-guardrail-knowledge-remote.js +174 -0
  123. package/dist/nexus-cli/src/services/workforce-guardrail-knowledge-remote.js.map +1 -0
  124. package/dist/nexus-cli/src/services/workforce-learning-remote.d.ts +131 -0
  125. package/dist/nexus-cli/src/services/workforce-learning-remote.js +179 -0
  126. package/dist/nexus-cli/src/services/workforce-learning-remote.js.map +1 -0
  127. package/dist/nexus-cli/src/services/workforce-observe-remote.d.ts +97 -0
  128. package/dist/nexus-cli/src/services/workforce-observe-remote.js +207 -0
  129. package/dist/nexus-cli/src/services/workforce-observe-remote.js.map +1 -0
  130. package/dist/nexus-cli/src/services/workforce-ops-remote.d.ts +94 -0
  131. package/dist/nexus-cli/src/services/workforce-ops-remote.js +176 -0
  132. package/dist/nexus-cli/src/services/workforce-ops-remote.js.map +1 -0
  133. package/dist/nexus-cli/src/services/workforce-orchestration-remote.d.ts +132 -0
  134. package/dist/nexus-cli/src/services/workforce-orchestration-remote.js +244 -0
  135. package/dist/nexus-cli/src/services/workforce-orchestration-remote.js.map +1 -0
  136. package/dist/nexus-cli/src/services/workforce-permission-remote.d.ts +72 -0
  137. package/dist/nexus-cli/src/services/workforce-permission-remote.js +130 -0
  138. package/dist/nexus-cli/src/services/workforce-permission-remote.js.map +1 -0
  139. package/dist/nexus-cli/src/services/workforce-provider-remote.d.ts +82 -0
  140. package/dist/nexus-cli/src/services/workforce-provider-remote.js +129 -0
  141. package/dist/nexus-cli/src/services/workforce-provider-remote.js.map +1 -0
  142. package/dist/nexus-cli/src/services/workforce-test-remote.d.ts +85 -0
  143. package/dist/nexus-cli/src/services/workforce-test-remote.js +134 -0
  144. package/dist/nexus-cli/src/services/workforce-test-remote.js.map +1 -0
  145. package/dist/nexus-cli/src/templates/project/template-manifest.json +11 -5
  146. package/dist/nexus-cli/src/templates/project/templates/base-crm/README.md.tpl +4 -3
  147. package/dist/nexus-cli/src/templates/project/templates/base-crm/nexus-project.json.tpl +77 -13
  148. package/dist/nexus-cli/src/templates/project/templates/base-crm/nexus-project.yaml.tpl +68 -0
  149. package/dist/nexus-cli/src/templates/project/templates/demo-public-channel-store-delivery/README.md.tpl +4 -4
  150. package/dist/nexus-cli/src/templates/project/templates/demo-public-channel-store-delivery/nexus-project.json.tpl +77 -13
  151. package/dist/nexus-cli/src/templates/project/templates/demo-public-channel-store-delivery/nexus-project.yaml.tpl +71 -0
  152. package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/README.md.tpl +4 -4
  153. 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
  154. 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
  155. 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
  156. package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/nexus-project.json.tpl +61 -7
  157. package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/nexus-project.yaml.tpl +58 -0
  158. package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/preview/drill-code-extension-page.html +1 -1
  159. package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/scripts/build-component.mjs +1 -1
  160. package/dist/nexus-cli/src/templates/project/templates/drill-code-extension-page/scripts/deploy-drill.mjs +1 -1
  161. package/dist/nexus-cli/src/templates/project/templates/empty/README.md.tpl +3 -2
  162. package/dist/nexus-cli/src/templates/project/templates/empty/nexus-project.json.tpl +79 -13
  163. package/dist/nexus-cli/src/templates/project/templates/empty/nexus-project.yaml.tpl +67 -0
  164. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/agent-instructions/claude.md +6 -0
  165. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/agent-instructions/codex.md +6 -0
  166. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/agent-instructions/generic.md +6 -0
  167. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/agent-instructions/glm-5.2.md +6 -0
  168. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/authoring/code-sdk.d.ts +1 -0
  169. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/authoring/command-order.json +1 -0
  170. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/authoring/flow-node-catalog.json +1 -0
  171. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/catalogs/ai-policies.json +1 -0
  172. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/catalogs/approval-policies.json +1 -0
  173. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/catalogs/connectors.json +1 -0
  174. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/catalogs/invokable-units.json +1 -0
  175. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/catalogs/objects.json +1 -0
  176. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/cli-contract.json +1 -0
  177. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/context-lock.json +1 -0
  178. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/context-manifest.json +1 -0
  179. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/examples/code/minimal-action.cases.json +1 -0
  180. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/examples/code/minimal-action.input.schema.json +1 -0
  181. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/examples/code/minimal-action.output.schema.json +1 -0
  182. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/examples/code/minimal-action.ts +3 -0
  183. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/examples/flow/minimal-manual-flow.json +1 -0
  184. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/agent-code-tool-catalog-v1.schema.json +1 -0
  185. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/ai-workforce-executable-bundle-v1.schema.json +1 -0
  186. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/approval-policy-authoring-catalog-v1.schema.json +1 -0
  187. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/code-action-cases-v1.schema.json +1 -0
  188. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/code-extension-governance-v2.schema.json +1 -0
  189. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/employee-package-v2.schema.json +1 -0
  190. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/flow-package-v1.schema.json +1 -0
  191. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/flows-payload-v2.schema.json +1 -0
  192. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/object-authoring-catalog-v1.schema.json +1 -0
  193. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/workforce-bundle-lock-v1.schema.json +1 -0
  194. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/workforce-release-evidence-v1.schema.json +1 -0
  195. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/workforce-runtime-bindings-v1.schema.json +1 -0
  196. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/schemas/workspace-authoring-contract-v1.schema.json +1 -0
  197. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/.nexusclaw/context/workspace-contract.json +1 -0
  198. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/README.md.tpl +41 -0
  199. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/nexus-project.json.tpl +86 -0
  200. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/nexus-project.yaml.tpl +61 -0
  201. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/package.json.tpl +25 -0
  202. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/packages/generic-action/.nexusclaw/scaffold.json +12 -0
  203. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/packages/generic-action/agent-tools.json +53 -0
  204. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/packages/generic-action/code/genericLookup.ts +5 -0
  205. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/packages/generic-action/package.yaml +28 -0
  206. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/packages/generic-action/schemas/genericLookup.input.schema.json +6 -0
  207. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/packages/generic-action/schemas/genericLookup.output.schema.json +6 -0
  208. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/packages/generic-action/tests/genericLookup.cases.json +26 -0
  209. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/packages/generic-flow/GenericFollowUp.flow.yaml +10 -0
  210. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/scripts/init-bundle.mjs +25 -0
  211. package/dist/nexus-cli/src/templates/project/templates/executable-workforce/tsconfig.json.tpl +10 -0
  212. package/dist/nexus-cli/src/templates/project/templates/industry-education/README.md.tpl +7 -1
  213. package/dist/nexus-cli/src/templates/project/templates/industry-education/nexus-project.json.tpl +77 -14
  214. package/dist/nexus-cli/src/templates/project/templates/industry-education/nexus-project.yaml.tpl +69 -0
  215. package/dist/nexus-cli/src/templates/project/templates/industry-finance/README.md.tpl +7 -1
  216. package/dist/nexus-cli/src/templates/project/templates/industry-finance/nexus-project.json.tpl +77 -14
  217. package/dist/nexus-cli/src/templates/project/templates/industry-finance/nexus-project.yaml.tpl +69 -0
  218. package/dist/nexus-cli/src/templates/project/templates/industry-healthcare/README.md.tpl +7 -1
  219. package/dist/nexus-cli/src/templates/project/templates/industry-healthcare/nexus-project.json.tpl +77 -14
  220. package/dist/nexus-cli/src/templates/project/templates/industry-healthcare/nexus-project.yaml.tpl +69 -0
  221. package/dist/nexus-cli/src/templates/project/templates/industry-partner-cloud/README.md.tpl +4 -4
  222. package/dist/nexus-cli/src/templates/project/templates/industry-partner-cloud/nexus-project.json.tpl +77 -13
  223. package/dist/nexus-cli/src/templates/project/templates/industry-partner-cloud/nexus-project.yaml.tpl +69 -0
  224. package/dist/nexus-cli/src/templates/project/templates/industry-retail/README.md.tpl +7 -1
  225. package/dist/nexus-cli/src/templates/project/templates/industry-retail/nexus-project.json.tpl +77 -14
  226. package/dist/nexus-cli/src/templates/project/templates/industry-retail/nexus-project.yaml.tpl +69 -0
  227. package/dist/tsconfig.tsbuildinfo +1 -1
  228. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"learning.js","sourceRoot":"","sources":["../../../../../src/commands/workforce/learning.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AAEpC,qCAA+C;AAC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E,CAAC,EACjE,OAAO,CAAC,IAAI,CACb,CAAC,CAAC;AAEL,eAAe,CAAC,OAAO,CAAC,KAAK,CAAC;KAC3B,cAAc,CAAC,sBAAsB,CAAC;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,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AC;KACzD,cAAc,CAAC,sBAAsB,CAAC;KACtC,MAAM,CAAC,QAAQ,CAAC;KAChB,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,IAAA,4BAAmB,EAC5C,yCAAyC,EACzC,MAAM,IAAA,+CAAoB,EAAC,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC,EAC5D,OAAO,CAAC,IAAI,CACb,CAAC,CAAC;AAEL,gBAAgB,CAAC,OAAO,CAAC,QAAQ,CAAC;KAC/B,WAAW,CAAC,qCAAqC,CAAC;KAClD,cAAc,CAAC,sBAAsB,CAAC;KACtC,MAAM,CAAC,QAAQ,CAAC;KAChB,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,IAAA,4BAAmB,EAC5C,oCAAoC,EACpC,MAAM,IAAA,0CAAe,EAAC,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC,EACvD,OAAO,CAAC,IAAI,CACb,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { Command } from 'commander';
2
+ export declare const workforceOrchestrationCommand: Command;
@@ -0,0 +1,199 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.workforceOrchestrationCommand = void 0;
4
+ const commander_1 = require("commander");
5
+ const shared_1 = require("./shared");
6
+ const workforce_orchestration_remote_1 = require("../../services/workforce-orchestration-remote");
7
+ exports.workforceOrchestrationCommand = new commander_1.Command('orchestration')
8
+ .description('协作编排:template + plan + execution');
9
+ const templateCommand = exports.workforceOrchestrationCommand.command('template')
10
+ .description('编排模板 CRUD');
11
+ templateCommand.command('create')
12
+ .requiredOption('--target-org <alias>')
13
+ .requiredOption('--name <name>')
14
+ .option('--description <text>')
15
+ .option('--category <category>')
16
+ .option('--trigger-type <type>')
17
+ .option('--json')
18
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.orchestration.template.create', await (0, workforce_orchestration_remote_1.createOrchestrationTemplateRemote)({
19
+ targetOrg: options.targetOrg,
20
+ name: options.name,
21
+ description: options.description,
22
+ category: options.category,
23
+ triggerType: options.triggerType,
24
+ }), options.json));
25
+ templateCommand.command('update')
26
+ .requiredOption('--target-org <alias>')
27
+ .requiredOption('--id <id>')
28
+ .option('--name <name>')
29
+ .option('--description <text>')
30
+ .option('--category <category>')
31
+ .option('--trigger-type <type>')
32
+ .option('--json')
33
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.orchestration.template.update', await (0, workforce_orchestration_remote_1.updateOrchestrationTemplateRemote)({
34
+ targetOrg: options.targetOrg,
35
+ id: options.id,
36
+ name: options.name,
37
+ description: options.description,
38
+ category: options.category,
39
+ triggerType: options.triggerType,
40
+ }), options.json));
41
+ templateCommand.command('delete')
42
+ .requiredOption('--target-org <alias>')
43
+ .requiredOption('--id <id>')
44
+ .option('--json')
45
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.orchestration.template.delete', await (0, workforce_orchestration_remote_1.deleteOrchestrationTemplateRemote)({ targetOrg: options.targetOrg, id: options.id }), options.json));
46
+ templateCommand.command('from-template')
47
+ .description('从模板创建编排实例(createOrchestrationFromTemplate;返回 JSON 计划对象)')
48
+ .requiredOption('--target-org <alias>')
49
+ .requiredOption('--template-id <id>')
50
+ .requiredOption('--agent-mapping <json|@file>', '{stepId: agentId}')
51
+ .option('--name <name>')
52
+ .option('--json')
53
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.orchestration.template.from_template', await (0, workforce_orchestration_remote_1.createOrchestrationFromTemplateRemote)({
54
+ targetOrg: options.targetOrg,
55
+ templateId: options.templateId,
56
+ agentMapping: (await (0, shared_1.parseJsonOption)(options.agentMapping)),
57
+ name: options.name,
58
+ }), options.json));
59
+ templateCommand.command('save-as-template')
60
+ .description('把已有 plan 存为模板(saveOrchestrationAsTemplate)')
61
+ .requiredOption('--target-org <alias>')
62
+ .requiredOption('--plan-id <id>')
63
+ .requiredOption('--name <name>')
64
+ .option('--category <category>')
65
+ .option('--json')
66
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.orchestration.template.save_as_template', await (0, workforce_orchestration_remote_1.saveOrchestrationAsTemplateRemote)({
67
+ targetOrg: options.targetOrg,
68
+ planId: options.planId,
69
+ name: options.name,
70
+ category: options.category,
71
+ }), options.json));
72
+ templateCommand.command('list')
73
+ .requiredOption('--target-org <alias>')
74
+ .option('--category <category>')
75
+ .option('--json')
76
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.orchestration.template.list', await (0, workforce_orchestration_remote_1.listOrchestrationTemplatesRemote)({
77
+ targetOrg: options.targetOrg,
78
+ category: options.category,
79
+ }), options.json));
80
+ templateCommand.command('get')
81
+ .requiredOption('--target-org <alias>')
82
+ .requiredOption('--id <id>')
83
+ .option('--json')
84
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.orchestration.template.get', await (0, workforce_orchestration_remote_1.getOrchestrationTemplateRemote)({ targetOrg: options.targetOrg, id: options.id }), options.json));
85
+ const planCommand = exports.workforceOrchestrationCommand.command('plan')
86
+ .description('编排计划 CRUD');
87
+ planCommand.command('create')
88
+ .description('创建编排计划(含 steps[];steps 接 JSON/@file)')
89
+ .requiredOption('--target-org <alias>')
90
+ .requiredOption('--name <name>')
91
+ .requiredOption('--steps <json|@file>', '[{stepId, agentId, stepName, ...}]')
92
+ .option('--description <text>')
93
+ .option('--trigger-type <type>')
94
+ .option('--failure-strategy <strategy>')
95
+ .option('--max-duration-seconds <n>')
96
+ .option('--max-concurrent-instances <n>')
97
+ .option('--max-parallel-steps <n>')
98
+ .option('--json')
99
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.orchestration.plan.create', await (0, workforce_orchestration_remote_1.createOrchestrationPlanRemote)({
100
+ targetOrg: options.targetOrg,
101
+ name: options.name,
102
+ steps: await (0, shared_1.parseJsonOption)(options.steps),
103
+ description: options.description,
104
+ triggerType: options.triggerType,
105
+ failureStrategy: options.failureStrategy,
106
+ maxDurationSeconds: options.maxDurationSeconds ? Number(options.maxDurationSeconds) : undefined,
107
+ maxConcurrentInstances: options.maxConcurrentInstances ? Number(options.maxConcurrentInstances) : undefined,
108
+ maxParallelSteps: options.maxParallelSteps ? Number(options.maxParallelSteps) : undefined,
109
+ }), options.json));
110
+ planCommand.command('update')
111
+ .requiredOption('--target-org <alias>')
112
+ .requiredOption('--id <id>')
113
+ .option('--name <name>')
114
+ .option('--description <text>')
115
+ .option('--status <status>')
116
+ .option('--trigger-type <type>')
117
+ .option('--failure-strategy <strategy>')
118
+ .option('--json')
119
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.orchestration.plan.update', await (0, workforce_orchestration_remote_1.updateOrchestrationPlanRemote)({
120
+ targetOrg: options.targetOrg,
121
+ id: options.id,
122
+ name: options.name,
123
+ description: options.description,
124
+ status: options.status,
125
+ triggerType: options.triggerType,
126
+ failureStrategy: options.failureStrategy,
127
+ }), options.json));
128
+ planCommand.command('delete')
129
+ .requiredOption('--target-org <alias>')
130
+ .requiredOption('--id <id>')
131
+ .option('--json')
132
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.orchestration.plan.delete', await (0, workforce_orchestration_remote_1.deleteOrchestrationPlanRemote)({ targetOrg: options.targetOrg, id: options.id }), options.json));
133
+ planCommand.command('list')
134
+ .requiredOption('--target-org <alias>')
135
+ .option('--page <n>')
136
+ .option('--page-size <n>')
137
+ .option('--status <status>')
138
+ .option('--trigger-type <type>')
139
+ .option('--json')
140
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.orchestration.plan.list', await (0, workforce_orchestration_remote_1.listOrchestrationPlansRemote)({
141
+ targetOrg: options.targetOrg,
142
+ page: options.page ? Number(options.page) : undefined,
143
+ pageSize: options.pageSize ? Number(options.pageSize) : undefined,
144
+ status: options.status,
145
+ triggerType: options.triggerType,
146
+ }), options.json));
147
+ planCommand.command('get')
148
+ .requiredOption('--target-org <alias>')
149
+ .requiredOption('--id <id>')
150
+ .option('--json')
151
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.orchestration.plan.get', await (0, workforce_orchestration_remote_1.getOrchestrationPlanRemote)({ targetOrg: options.targetOrg, id: options.id }), options.json));
152
+ const execCommand = exports.workforceOrchestrationCommand.command('execution')
153
+ .description('编排执行控制(execute / cancel / pause / resume / list / get)');
154
+ execCommand.command('execute')
155
+ .description('执行编排计划(executeOrchestration;返回 execution id 字符串)')
156
+ .requiredOption('--target-org <alias>')
157
+ .requiredOption('--plan-id <id>')
158
+ .option('--initial-context <json|@file>')
159
+ .option('--json')
160
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.orchestration.execution.execute', await (0, workforce_orchestration_remote_1.executeOrchestrationRemote)({
161
+ targetOrg: options.targetOrg,
162
+ planId: options.planId,
163
+ initialContext: await (0, shared_1.parseJsonOption)(options.initialContext),
164
+ }), options.json));
165
+ execCommand.command('cancel')
166
+ .requiredOption('--target-org <alias>')
167
+ .requiredOption('--execution-id <id>')
168
+ .option('--json')
169
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.orchestration.execution.cancel', await (0, workforce_orchestration_remote_1.cancelOrchestrationRemote)({ targetOrg: options.targetOrg, executionId: options.executionId }), options.json));
170
+ execCommand.command('pause')
171
+ .requiredOption('--target-org <alias>')
172
+ .requiredOption('--execution-id <id>')
173
+ .option('--json')
174
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.orchestration.execution.pause', await (0, workforce_orchestration_remote_1.pauseOrchestrationRemote)({ targetOrg: options.targetOrg, executionId: options.executionId }), options.json));
175
+ execCommand.command('resume')
176
+ .requiredOption('--target-org <alias>')
177
+ .requiredOption('--execution-id <id>')
178
+ .option('--json')
179
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.orchestration.execution.resume', await (0, workforce_orchestration_remote_1.resumeOrchestrationRemote)({ targetOrg: options.targetOrg, executionId: options.executionId }), options.json));
180
+ execCommand.command('list')
181
+ .requiredOption('--target-org <alias>')
182
+ .option('--page <n>')
183
+ .option('--page-size <n>')
184
+ .option('--plan-id <id>')
185
+ .option('--status <status>')
186
+ .option('--json')
187
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.orchestration.execution.list', await (0, workforce_orchestration_remote_1.listOrchestrationExecutionsRemote)({
188
+ targetOrg: options.targetOrg,
189
+ page: options.page ? Number(options.page) : undefined,
190
+ pageSize: options.pageSize ? Number(options.pageSize) : undefined,
191
+ planId: options.planId,
192
+ status: options.status,
193
+ }), options.json));
194
+ execCommand.command('get')
195
+ .requiredOption('--target-org <alias>')
196
+ .requiredOption('--id <id>')
197
+ .option('--json')
198
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.orchestration.execution.get', await (0, workforce_orchestration_remote_1.getOrchestrationExecutionRemote)({ targetOrg: options.targetOrg, id: options.id }), options.json));
199
+ //# sourceMappingURL=orchestration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orchestration.js","sourceRoot":"","sources":["../../../../../src/commands/workforce/orchestration.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AAEpC,qCAAgE;AAChE,kGAmBuD;AAU1C,QAAA,6BAA6B,GAAG,IAAI,mBAAO,CAAC,eAAe,CAAC;KACtE,WAAW,CAAC,kCAAkC,CAAC,CAAC;AAInD,MAAM,eAAe,GAAG,qCAA6B,CAAC,OAAO,CAAC,UAAU,CAAC;KACtE,WAAW,CAAC,WAAW,CAAC,CAAC;AAE5B,eAAe,CAAC,OAAO,CAAC,QAAQ,CAAC;KAC9B,cAAc,CAAC,sBAAsB,CAAC;KACtC,cAAc,CAAC,eAAe,CAAC;KAC/B,MAAM,CAAC,sBAAsB,CAAC;KAC9B,MAAM,CAAC,uBAAuB,CAAC;KAC/B,MAAM,CAAC,uBAAuB,CAAC;KAC/B,MAAM,CAAC,QAAQ,CAAC;KAChB,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,IAAA,4BAAmB,EAC5C,yCAAyC,EACzC,MAAM,IAAA,kEAAiC,EAA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B,MAAM,CAAC,iBAAiB,CAAC;KACzB,MAAM,CAAC,gBAAgB,CAAC;KACxB,MAAM,CAAC,mBAAmB,CAAC;KAC3B,MAAM,CAAC,QAAQ,CAAC;KAChB,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,IAAA,4BAAmB,EAC5C,wCAAwC,EACxC,MAAM,IAAA,kEAAiC,EAAC;IACtC,SAAS,EAAE,OAAO,CAAC,SAAS;IAC5B,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS;IACrD,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;IACjE,MAAM,EAAE,OAAO,CAAC,MAAM;IACtB,MAAM,EAAE,OAAO,CAAC,MAAM;CACvB,CAAC,EACF,OAAO,CAAC,IAAI,CACb,CAAC,CAAC;AAEL,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC;KACvB,cAAc,CAAC,sBAAsB,CAAC;KACtC,cAAc,CAAC,WAAW,CAAC;KAC3B,MAAM,CAAC,QAAQ,CAAC;KAChB,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,IAAA,4BAAmB,EAC5C,uCAAuC,EACvC,MAAM,IAAA,gEAA+B,EAAC,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,EACvF,OAAO,CAAC,IAAI,CACb,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { Command } from 'commander';
2
+ export declare const workforcePermissionCommand: Command;
@@ -0,0 +1,113 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.workforcePermissionCommand = void 0;
4
+ const commander_1 = require("commander");
5
+ const shared_1 = require("./shared");
6
+ const workforce_permission_remote_1 = require("../../services/workforce-permission-remote");
7
+ exports.workforcePermissionCommand = new commander_1.Command('permission')
8
+ .description('agent 权限扩展 + 字段掩码规则');
9
+ const extensionCommand = exports.workforcePermissionCommand.command('extension')
10
+ .description('agent 权限扩展 CRUD(createAgentPermissionExtension ...)');
11
+ extensionCommand.command('create')
12
+ .requiredOption('--target-org <alias>')
13
+ .requiredOption('--agent-id <id>')
14
+ .option('--data-scope-type <type>', 'all|org_subtree|own|custom(默认 own)')
15
+ .option('--data-scope-org-node-id <id>')
16
+ .option('--data-scope-custom-filter <json|@file>')
17
+ .option('--max-queries-per-minute <n>')
18
+ .option('--max-writes-per-minute <n>')
19
+ .option('--max-batch-size <n>')
20
+ .option('--allowed-tools <tools...>')
21
+ .option('--blocked-tools <tools...>')
22
+ .option('--active-timezone <tz>')
23
+ .option('--active-windows <json|@file>')
24
+ .option('--json')
25
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.permission.extension.create', await (0, workforce_permission_remote_1.createPermissionExtensionRemote)({
26
+ targetOrg: options.targetOrg,
27
+ agentId: options.agentId,
28
+ dataScopeType: options.dataScopeType,
29
+ dataScopeOrgNodeId: options.dataScopeOrgNodeId,
30
+ dataScopeCustomFilter: await (0, shared_1.parseJsonOption)(options.dataScopeCustomFilter),
31
+ maxQueriesPerMinute: options.maxQueriesPerMinute ? Number(options.maxQueriesPerMinute) : undefined,
32
+ maxWritesPerMinute: options.maxWritesPerMinute ? Number(options.maxWritesPerMinute) : undefined,
33
+ maxBatchSize: options.maxBatchSize ? Number(options.maxBatchSize) : undefined,
34
+ allowedTools: options.allowedTools,
35
+ blockedTools: options.blockedTools,
36
+ activeTimezone: options.activeTimezone,
37
+ activeWindows: await (0, shared_1.parseJsonOption)(options.activeWindows),
38
+ }), options.json));
39
+ extensionCommand.command('update')
40
+ .requiredOption('--target-org <alias>')
41
+ .requiredOption('--agent-id <id>')
42
+ .option('--data-scope-type <type>')
43
+ .option('--data-scope-org-node-id <id>')
44
+ .option('--data-scope-custom-filter <json|@file>')
45
+ .option('--max-queries-per-minute <n>')
46
+ .option('--max-writes-per-minute <n>')
47
+ .option('--max-batch-size <n>')
48
+ .option('--allowed-tools <tools...>')
49
+ .option('--blocked-tools <tools...>')
50
+ .option('--active-timezone <tz>')
51
+ .option('--active-windows <json|@file>')
52
+ .option('--json')
53
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.permission.extension.update', await (0, workforce_permission_remote_1.updatePermissionExtensionRemote)({
54
+ targetOrg: options.targetOrg,
55
+ agentId: options.agentId,
56
+ dataScopeType: options.dataScopeType,
57
+ dataScopeOrgNodeId: options.dataScopeOrgNodeId,
58
+ dataScopeCustomFilter: await (0, shared_1.parseJsonOption)(options.dataScopeCustomFilter),
59
+ maxQueriesPerMinute: options.maxQueriesPerMinute ? Number(options.maxQueriesPerMinute) : undefined,
60
+ maxWritesPerMinute: options.maxWritesPerMinute ? Number(options.maxWritesPerMinute) : undefined,
61
+ maxBatchSize: options.maxBatchSize ? Number(options.maxBatchSize) : undefined,
62
+ allowedTools: options.allowedTools,
63
+ blockedTools: options.blockedTools,
64
+ activeTimezone: options.activeTimezone,
65
+ activeWindows: await (0, shared_1.parseJsonOption)(options.activeWindows),
66
+ }), options.json));
67
+ extensionCommand.command('delete')
68
+ .requiredOption('--target-org <alias>')
69
+ .requiredOption('--agent-id <id>')
70
+ .option('--json')
71
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.permission.extension.delete', await (0, workforce_permission_remote_1.deletePermissionExtensionRemote)({
72
+ targetOrg: options.targetOrg,
73
+ agentId: options.agentId,
74
+ }), options.json));
75
+ const fieldMaskCommand = exports.workforcePermissionCommand.command('field-mask')
76
+ .description('字段掩码规则 CRUD(createFieldMaskRule ...)');
77
+ fieldMaskCommand.command('create')
78
+ .requiredOption('--target-org <alias>')
79
+ .requiredOption('--extension-id <id>', 'agentPermissionExtensionId')
80
+ .requiredOption('--object-api-name <apiName>')
81
+ .requiredOption('--field-api-name <apiName>')
82
+ .requiredOption('--mask-type <type>')
83
+ .option('--mask-config <json|@file>')
84
+ .option('--json')
85
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.permission.field_mask.create', await (0, workforce_permission_remote_1.createFieldMaskRuleRemote)({
86
+ targetOrg: options.targetOrg,
87
+ agentPermissionExtensionId: options.extensionId,
88
+ objectApiName: options.objectApiName,
89
+ fieldApiName: options.fieldApiName,
90
+ maskType: options.maskType,
91
+ maskConfig: await (0, shared_1.parseJsonOption)(options.maskConfig),
92
+ }), options.json));
93
+ fieldMaskCommand.command('update')
94
+ .requiredOption('--target-org <alias>')
95
+ .requiredOption('--id <id>')
96
+ .option('--mask-type <type>')
97
+ .option('--mask-config <json|@file>')
98
+ .option('--json')
99
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.permission.field_mask.update', await (0, workforce_permission_remote_1.updateFieldMaskRuleRemote)({
100
+ targetOrg: options.targetOrg,
101
+ id: options.id,
102
+ maskType: options.maskType,
103
+ maskConfig: options.maskConfig ? await (0, shared_1.parseJsonOption)(options.maskConfig) : undefined,
104
+ }), options.json));
105
+ fieldMaskCommand.command('delete')
106
+ .requiredOption('--target-org <alias>')
107
+ .requiredOption('--id <id>')
108
+ .option('--json')
109
+ .action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.permission.field_mask.delete', await (0, workforce_permission_remote_1.deleteFieldMaskRuleRemote)({
110
+ targetOrg: options.targetOrg,
111
+ id: options.id,
112
+ }), options.json));
113
+ //# sourceMappingURL=permission.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permission.js","sourceRoot":"","sources":["../../../../../src/commands/workforce/permission.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AAEpC,qCAAgE;AAChE,4FAOoD;AAavC,QAAA,0BAA0B,GAAG,IAAI,mBAAO,CAAC,YAAY,CAAC;KAChE,WAAW,CAAC,qBAAqB,CAAC,CAAC;AAEtC,MAAM,gBAAgB,GAAG,kCAA0B,CAAC,OAAO,CAAC,W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