@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,129 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createProviderConfigRemote = createProviderConfigRemote;
4
+ exports.updateProviderConfigRemote = updateProviderConfigRemote;
5
+ exports.deleteProviderConfigRemote = deleteProviderConfigRemote;
6
+ exports.setDefaultProviderConfigRemote = setDefaultProviderConfigRemote;
7
+ exports.testProviderConnectionRemote = testProviderConnectionRemote;
8
+ exports.upsertScenarioAssignmentRemote = upsertScenarioAssignmentRemote;
9
+ exports.deleteScenarioAssignmentRemote = deleteScenarioAssignmentRemote;
10
+ const api_client_1 = require("./api-client");
11
+ const workforce_common_1 = require("./workforce-common");
12
+ const step_up_helper_1 = require("./step-up-helper");
13
+ const CREATE_PROVIDER = `
14
+ mutation CreateProviderConfig($input: CreateProviderConfigInput!) {
15
+ createProviderConfig(input: $input) { id workspaceId providerName apiEndpoint defaultModel priority isEnabled capabilities createdAt }
16
+ }`;
17
+ const UPDATE_PROVIDER = `
18
+ mutation UpdateProviderConfig($id: ID!, $input: UpdateProviderConfigInput!) {
19
+ updateProviderConfig(id: $id, input: $input) { id workspaceId providerName apiEndpoint defaultModel priority isEnabled capabilities createdAt }
20
+ }`;
21
+ const DELETE_PROVIDER = `
22
+ mutation DeleteProviderConfig($id: ID!) { deleteProviderConfig(id: $id) }`;
23
+ const SET_DEFAULT_PROVIDER = `
24
+ mutation SetDefaultProviderConfig($id: ID!) { setDefaultProviderConfig(id: $id) }`;
25
+ const TEST_PROVIDER = `
26
+ mutation TestProviderConnection($id: ID!) {
27
+ testProviderConnection(id: $id) { success latencyMs error }
28
+ }`;
29
+ const UPSERT_SCENARIO = `
30
+ mutation UpsertScenarioAssignment($input: UpsertScenarioAssignmentInput!) {
31
+ upsertScenarioAssignment(input: $input) { id workspaceId scenario providerId }
32
+ }`;
33
+ const DELETE_SCENARIO = `
34
+ mutation DeleteScenarioAssignment($id: ID!) { deleteScenarioAssignment(id: $id) }`;
35
+ async function createProviderConfigRemote(options) {
36
+ const input = {
37
+ workspaceId: (0, workforce_common_1.resolveWorkspaceId)(options.targetOrg),
38
+ providerName: options.providerName,
39
+ apiKey: options.apiKey,
40
+ defaultModel: options.defaultModel,
41
+ };
42
+ if (options.apiEndpoint !== undefined)
43
+ input.apiEndpoint = options.apiEndpoint;
44
+ if (options.priority !== undefined)
45
+ input.priority = options.priority;
46
+ if (options.isEnabled !== undefined)
47
+ input.isEnabled = options.isEnabled;
48
+ if (options.capabilities !== undefined)
49
+ input.capabilities = options.capabilities;
50
+ if (options.metadata !== undefined)
51
+ input.metadata = options.metadata;
52
+ const { data } = await (0, step_up_helper_1.runWithStepUp)({
53
+ targetOrg: options.targetOrg,
54
+ query: CREATE_PROVIDER,
55
+ variables: { input },
56
+ resolveCredential: options.resolveCredential,
57
+ });
58
+ return { data: data.createProviderConfig };
59
+ }
60
+ async function updateProviderConfigRemote(options) {
61
+ const input = {};
62
+ if (options.providerName !== undefined)
63
+ input.providerName = options.providerName;
64
+ if (options.apiEndpoint !== undefined)
65
+ input.apiEndpoint = options.apiEndpoint;
66
+ if (options.apiKey !== undefined)
67
+ input.apiKey = options.apiKey;
68
+ if (options.defaultModel !== undefined)
69
+ input.defaultModel = options.defaultModel;
70
+ if (options.priority !== undefined)
71
+ input.priority = options.priority;
72
+ if (options.isEnabled !== undefined)
73
+ input.isEnabled = options.isEnabled;
74
+ if (options.capabilities !== undefined)
75
+ input.capabilities = options.capabilities;
76
+ if (options.metadata !== undefined)
77
+ input.metadata = options.metadata;
78
+ const { data } = await (0, step_up_helper_1.runWithStepUp)({
79
+ targetOrg: options.targetOrg,
80
+ query: UPDATE_PROVIDER,
81
+ variables: { id: options.id, input },
82
+ resolveCredential: options.resolveCredential,
83
+ });
84
+ return { data: data.updateProviderConfig };
85
+ }
86
+ async function deleteProviderConfigRemote(options) {
87
+ const { data } = await (0, step_up_helper_1.runWithStepUp)({
88
+ targetOrg: options.targetOrg,
89
+ query: DELETE_PROVIDER,
90
+ variables: { id: options.id },
91
+ resolveCredential: options.resolveCredential,
92
+ });
93
+ return { data };
94
+ }
95
+ async function setDefaultProviderConfigRemote(options) {
96
+ const { data } = await (0, step_up_helper_1.runWithStepUp)({
97
+ targetOrg: options.targetOrg,
98
+ query: SET_DEFAULT_PROVIDER,
99
+ variables: { id: options.id },
100
+ resolveCredential: options.resolveCredential,
101
+ });
102
+ return { data };
103
+ }
104
+ async function testProviderConnectionRemote(options) {
105
+ const { data } = await (0, step_up_helper_1.runWithStepUp)({
106
+ targetOrg: options.targetOrg,
107
+ query: TEST_PROVIDER,
108
+ variables: { id: options.id },
109
+ resolveCredential: options.resolveCredential,
110
+ });
111
+ return { data: data.testProviderConnection };
112
+ }
113
+ async function upsertScenarioAssignmentRemote(options) {
114
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
115
+ const data = await client.graphql(UPSERT_SCENARIO, {
116
+ input: {
117
+ workspaceId: (0, workforce_common_1.resolveWorkspaceId)(options.targetOrg),
118
+ scenario: options.scenario,
119
+ providerId: options.providerId,
120
+ },
121
+ });
122
+ return data.upsertScenarioAssignment;
123
+ }
124
+ async function deleteScenarioAssignmentRemote(options) {
125
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
126
+ const data = await client.graphql(DELETE_SCENARIO, { id: options.id });
127
+ return data;
128
+ }
129
+ //# sourceMappingURL=workforce-provider-remote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workforce-provider-remote.js","sourceRoot":"","sources":["../../../../src/services/workforce-provider-remote.ts"],"names":[],"mappings":";;AAgFA,gEA8BC;AAED,gEA6BC;AAED,gEAYC;AAED,wEAYC;AAED,oEAYC;AAID,wEAgBC;AAED,wEAOC;AApND,6CAA+C;AAC/C,yDAAwD;AACxD,qDAG0B;AAqB1B,MAAM,eAAe,GAAG;;;EAGtB,CAAC;AAEH,MAAM,eAAe,GAAG;;;EAGtB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AAS,CAAC;YAClD,QAAQ,EAAE,OAAO,CAAC,QAAQ;YAC1B,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF,CAAC,CAAC;IACH,OAAO,IAAI,CAAC,wBAAwB,CAAC;AACvC,CAAC;AAEM,KAAK,UAAU,8BAA8B,CAAC,OAGpD;IACC,MAAM,MAAM,GAAG,IAAA,4BAAe,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAAU,eAAe,EAAE,EAAE,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;IAChF,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,85 @@
1
+ export interface AgentTestCaseView {
2
+ id: string;
3
+ agentId: string;
4
+ name: string;
5
+ input: string;
6
+ expectedIntent?: string;
7
+ assertions?: unknown;
8
+ tags?: string[];
9
+ enabled?: boolean;
10
+ createdAt?: string;
11
+ }
12
+ export interface AgentTestSuiteRunSummary {
13
+ suiteRunId: string;
14
+ agentId: string;
15
+ total: number;
16
+ passed: number;
17
+ failed: number;
18
+ errored: number;
19
+ startedAt?: string;
20
+ completedAt?: string;
21
+ }
22
+ export declare function createTestCaseRemote(options: {
23
+ targetOrg: string;
24
+ agentId: string;
25
+ name: string;
26
+ input: string;
27
+ expectedIntent?: string;
28
+ assertions?: unknown;
29
+ tags?: string[];
30
+ }): Promise<AgentTestCaseView>;
31
+ export declare function updateTestCaseRemote(options: {
32
+ targetOrg: string;
33
+ id: string;
34
+ name?: string;
35
+ input?: string;
36
+ expectedIntent?: string;
37
+ assertions?: unknown;
38
+ tags?: string[];
39
+ enabled?: boolean;
40
+ }): Promise<AgentTestCaseView>;
41
+ export declare function deleteTestCaseRemote(options: {
42
+ targetOrg: string;
43
+ id: string;
44
+ }): Promise<boolean>;
45
+ export declare function runTestSuiteRemote(options: {
46
+ targetOrg: string;
47
+ agentId: string;
48
+ testCaseIds: string[];
49
+ }): Promise<AgentTestSuiteRunSummary>;
50
+ export declare function setTestBaselineRemote(options: {
51
+ targetOrg: string;
52
+ agentId: string;
53
+ suiteRunId: string;
54
+ label?: string;
55
+ }): Promise<{
56
+ id: string;
57
+ agentId: string;
58
+ suiteRunId: string;
59
+ label?: string;
60
+ createdAt?: string;
61
+ }>;
62
+ export declare function listTestCasesRemote(options: {
63
+ targetOrg: string;
64
+ agentId?: string;
65
+ }): Promise<AgentTestCaseView[]>;
66
+ export declare function listTestResultsRemote(options: {
67
+ targetOrg: string;
68
+ testCaseId?: string;
69
+ suiteRunId?: string;
70
+ }): Promise<Array<Record<string, unknown>>>;
71
+ export declare function getTestBaselineRemote(options: {
72
+ targetOrg: string;
73
+ agentId: string;
74
+ }): Promise<{
75
+ id: string;
76
+ agentId: string;
77
+ suiteRunId: string;
78
+ label?: string;
79
+ createdAt?: string;
80
+ } | null>;
81
+ export declare function getTestRegressionRemote(options: {
82
+ targetOrg: string;
83
+ agentId: string;
84
+ suiteRunId: string;
85
+ }): Promise<unknown>;
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createTestCaseRemote = createTestCaseRemote;
4
+ exports.updateTestCaseRemote = updateTestCaseRemote;
5
+ exports.deleteTestCaseRemote = deleteTestCaseRemote;
6
+ exports.runTestSuiteRemote = runTestSuiteRemote;
7
+ exports.setTestBaselineRemote = setTestBaselineRemote;
8
+ exports.listTestCasesRemote = listTestCasesRemote;
9
+ exports.listTestResultsRemote = listTestResultsRemote;
10
+ exports.getTestBaselineRemote = getTestBaselineRemote;
11
+ exports.getTestRegressionRemote = getTestRegressionRemote;
12
+ const api_client_1 = require("./api-client");
13
+ const CREATE_CASE = `
14
+ mutation CreateAgentTestCase($input: CreateAgentTestCaseInput!) {
15
+ createAgentTestCase(input: $input) { id agentId name input expectedIntent assertions tags enabled createdAt }
16
+ }`;
17
+ const UPDATE_CASE = `
18
+ mutation UpdateAgentTestCase($id: ID!, $input: UpdateAgentTestCaseInput!) {
19
+ updateAgentTestCase(id: $id, input: $input) { id agentId name input expectedIntent assertions tags enabled createdAt }
20
+ }`;
21
+ const DELETE_CASE = `
22
+ mutation DeleteAgentTestCase($id: ID!) { deleteAgentTestCase(id: $id) }`;
23
+ const RUN_SUITE = `
24
+ mutation RunAgentTestSuite($agentId: ID!, $testCaseIds: [ID]!) {
25
+ runAgentTestSuite(agentId: $agentId, testCaseIds: $testCaseIds) { suiteRunId agentId total passed failed errored startedAt completedAt }
26
+ }`;
27
+ const SET_BASELINE = `
28
+ mutation SetAgentTestBaseline($agentId: ID!, $suiteRunId: ID!, $label: String) {
29
+ setAgentTestBaseline(agentId: $agentId, suiteRunId: $suiteRunId, label: $label) { id agentId suiteRunId label createdAt }
30
+ }`;
31
+ const LIST_CASES = `
32
+ query AgentTestCases($agentId: ID) {
33
+ agentTestCases(agentId: $agentId) { id agentId name input expectedIntent tags enabled createdAt }
34
+ }`;
35
+ const LIST_RESULTS = `
36
+ query AgentTestResults($testCaseId: ID, $suiteRunId: ID) {
37
+ agentTestResults(testCaseId: $testCaseId, suiteRunId: $suiteRunId) { id testCaseId suiteRunId status score latencyMs errorMessage createdAt }
38
+ }`;
39
+ const GET_BASELINE = `
40
+ query AgentTestBaseline($agentId: ID!) {
41
+ agentTestBaseline(agentId: $agentId) { id agentId suiteRunId label createdAt }
42
+ }`;
43
+ const REGRESSION = `
44
+ query AgentTestRegression($agentId: ID!, $suiteRunId: ID!) {
45
+ agentTestRegression(agentId: $agentId, suiteRunId: $suiteRunId) { agentId suiteRunId baselineSuiteRunId newFailures newPasses flakyCases summary }
46
+ }`;
47
+ async function createTestCaseRemote(options) {
48
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
49
+ const input = {
50
+ agentId: options.agentId,
51
+ name: options.name,
52
+ input: options.input,
53
+ };
54
+ if (options.expectedIntent !== undefined)
55
+ input.expectedIntent = options.expectedIntent;
56
+ if (options.assertions !== undefined)
57
+ input.assertions = options.assertions;
58
+ if (options.tags !== undefined)
59
+ input.tags = options.tags;
60
+ const data = await client.graphql(CREATE_CASE, { input });
61
+ return data.createAgentTestCase;
62
+ }
63
+ async function updateTestCaseRemote(options) {
64
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
65
+ const input = {};
66
+ if (options.name !== undefined)
67
+ input.name = options.name;
68
+ if (options.input !== undefined)
69
+ input.input = options.input;
70
+ if (options.expectedIntent !== undefined)
71
+ input.expectedIntent = options.expectedIntent;
72
+ if (options.assertions !== undefined)
73
+ input.assertions = options.assertions;
74
+ if (options.tags !== undefined)
75
+ input.tags = options.tags;
76
+ if (options.enabled !== undefined)
77
+ input.enabled = options.enabled;
78
+ const data = await client.graphql(UPDATE_CASE, {
79
+ id: options.id,
80
+ input,
81
+ });
82
+ return data.updateAgentTestCase;
83
+ }
84
+ async function deleteTestCaseRemote(options) {
85
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
86
+ const data = await client.graphql(DELETE_CASE, { id: options.id });
87
+ return data;
88
+ }
89
+ async function runTestSuiteRemote(options) {
90
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
91
+ const data = await client.graphql(RUN_SUITE, {
92
+ agentId: options.agentId,
93
+ testCaseIds: options.testCaseIds,
94
+ });
95
+ return data.runAgentTestSuite;
96
+ }
97
+ async function setTestBaselineRemote(options) {
98
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
99
+ const data = await client.graphql(SET_BASELINE, {
100
+ agentId: options.agentId,
101
+ suiteRunId: options.suiteRunId,
102
+ label: options.label,
103
+ });
104
+ return data.setAgentTestBaseline;
105
+ }
106
+ async function listTestCasesRemote(options) {
107
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
108
+ const data = await client.graphql(LIST_CASES, {
109
+ agentId: options.agentId,
110
+ });
111
+ return data.agentTestCases ?? [];
112
+ }
113
+ async function listTestResultsRemote(options) {
114
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
115
+ const data = await client.graphql(LIST_RESULTS, {
116
+ testCaseId: options.testCaseId,
117
+ suiteRunId: options.suiteRunId,
118
+ });
119
+ return data.agentTestResults ?? [];
120
+ }
121
+ async function getTestBaselineRemote(options) {
122
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
123
+ const data = await client.graphql(GET_BASELINE, { agentId: options.agentId });
124
+ return data.agentTestBaseline;
125
+ }
126
+ async function getTestRegressionRemote(options) {
127
+ const client = (0, api_client_1.createApiClient)(options.targetOrg);
128
+ const data = await client.graphql(REGRESSION, {
129
+ agentId: options.agentId,
130
+ suiteRunId: options.suiteRunId,
131
+ });
132
+ return data.agentTestRegression;
133
+ }
134
+ //# sourceMappingURL=workforce-test-remote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workforce-test-remote.js","sourceRoot":"","sources":["../../../../src/services/workforce-test-remote.ts"],"names":[],"mappings":";;AAkFA,oDAoBC;AAED,oDAuBC;AAED,oDAOC;AAED,gDAWC;AAED,sDAeC;AAED,kDASC;AAED,sDAWC;AAED,sDASC;AAED,0DAWC;AAtND,6CAA+C;AAgB/C,MAAM,WAAW,GAAG;;;EAGlB,CAAC;AAEH,MAAM,WAAW,GAAG;;;EAGlB,CAAC;AAEH,MAAM,WAAW,GAAG;wEACoD,CAAC;AAEzE,MAAM,SAAS,GAAG;;;EAGhB,CAAC;AAEH,MAAM,YAAY,GAAG;;;EAGnB,CAAC;AAEH,MAAM,UAAU,GAAG;;;EAGjB,CAAC;AAEH,MAAM,YAAY,GAAG;;;EAGnB,CAAC;AAEH,MAAM,YAAY,GAAG;;;EAGnB,CAAC;AAEH,MAAM,UAAU,GAAG;;;EAGjB,CAAC;AAyBI,KAAK,UAAU,oBAAoB,CAAC,OAQ1C;IACC,MAAM,MAAM,GAAG,IAAA,4BAAe,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,MAAM,KAAK,GAA4B;QACrC,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,KAAK,EAAE,O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,MAAM,CAAC,OAAO,CAA0C,UAAU,EAAE;QACrF,OAAO,EAAE,OAAO,CAAC,OAAO;KACzB,CAAC,CAAC;IACH,OAAO,IAAI,CAAC,cAAc,IAAI,EAAE,CAAC;AACnC,CAAC;AAEM,KAAK,UAAU,qBAAqB,CAAC,OAI3C;IACC,MAAM,MAAM,GAAG,IAAA,4BAAe,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAAuD,YAAY,EAAE;QACpG,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,OAAO,IAAI,CAAC,gBAAgB,IAAI,EAAE,CAAC;AACrC,CAAC;AAEM,KAAK,UAAU,qBAAqB,CAAC,OAG3C;IACC,MAAM,MAAM,GAAG,IAAA,4BAAe,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAE9B,YAAY,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAC/C,OAAO,IAAI,CAAC,iBAAiB,CAAC;AAChC,CAAC;AAEM,KAAK,UAAU,uBAAuB,CAAC,OAI7C;IACC,MAAM,MAAM,GAAG,IAAA,4BAAe,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClD,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,OAAO,CAAmC,UAAU,EAAE;QAC9E,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,OAAO,IAAI,CAAC,mBAAmB,CAAC;AAClC,CAAC"}
@@ -3,20 +3,26 @@
3
3
  "templates": [
4
4
  {
5
5
  "id": "empty",
6
- "displayName": "Empty Workspace",
7
- "description": "Minimal starter project for custom metadata and scripts.",
6
+ "displayName": "Baseline-only Workspace",
7
+ "description": "Explicit baseline-only starter project for custom metadata and scripts.",
8
8
  "directory": "templates/empty"
9
9
  },
10
+ {
11
+ "id": "executable-workforce",
12
+ "displayName": "Executable Workforce Starter",
13
+ "description": "Generic governed ACTION, Flow, bundle, and AI-context starter generated from the released CLI.",
14
+ "directory": "templates/executable-workforce"
15
+ },
10
16
  {
11
17
  "id": "drill-code-extension-page",
12
18
  "displayName": "Drill Code Extension Page",
13
- "description": "Standalone workspace project for a Drill_Org custom object, code-extension component, custom page, and menu item.",
19
+ "description": "Baseline-backed workspace project for a Drill_Org custom object, code-extension component, custom page, and menu item.",
14
20
  "directory": "templates/drill-code-extension-page"
15
21
  },
16
22
  {
17
23
  "id": "base-crm",
18
- "displayName": "Base CRM",
19
- "description": "Workspace starter that references core baseline and generic CRM overlay packages.",
24
+ "displayName": "Base CRM (Default No Industry)",
25
+ "description": "Default customer Org starter when no industry is selected, combining core baseline and generic CRM overlay packages.",
20
26
  "directory": "templates/base-crm"
21
27
  },
22
28
  {
@@ -1,6 +1,7 @@
1
1
  # {{NAME}}
2
2
 
3
3
  This workspace was bootstrapped from the `base-crm` NexusClaw workspace template.
4
+ It is the default Baseline Org when no industry template is selected.
4
5
 
5
6
  ## Bootstrap
6
7
 
@@ -26,12 +27,12 @@ package.
26
27
 
27
28
  ## Template package refs
28
29
 
29
- - `core.baseline`
30
- - `overlay.generic-crm`
30
+ - `core.baseline@0.1.0` (required environment baseline)
31
+ - `overlay.generic-crm@0.1.0`
31
32
 
32
33
  ## Custom Pages (source DX)
33
34
 
34
- Pages live in `src/metadata/pages/` as pairs of:
35
+ Pages live in `nexus-app/main/default/pages/` as pairs of:
35
36
 
36
37
  - `<apiName>.page.json` — page metadata
37
38
  - `<apiName>.page.schema.json` — page schema blob
@@ -1,18 +1,66 @@
1
1
  {
2
- "schemaVersion": "dx-workspace/v1",
2
+ "schemaVersion": "nexus-project/v2",
3
3
  "projectName": "{{NAME}}",
4
4
  "apiVersion": "1.0",
5
5
  "sourceRoots": [
6
- { "path": "src/metadata", "kind": "metadata-runtime", "writeTarget": true },
7
- { "path": "src/classes", "kind": "code-extension" },
8
- { "path": "src/triggers", "kind": "code-extension" },
9
- { "path": "src/components", "kind": "code-extension" },
10
- { "path": "src/tests", "kind": "code-extension" },
11
- { "path": "src/metadata/pages", "kind": "metadata-runtime", "metadataKinds": ["pages"], "sourceOfTruthMode": "require-explicit", "orphanPolicy": "prompt" }
6
+ {
7
+ "path": "nexus-app/main/default",
8
+ "kind": "metadata-runtime",
9
+ "writeTarget": true,
10
+ "metadataKinds": [
11
+ "applications",
12
+ "tabs",
13
+ "objects",
14
+ "layouts",
15
+ "pages",
16
+ "nwc",
17
+ "classes",
18
+ "triggers",
19
+ "flows",
20
+ "permissionsets",
21
+ "profiles",
22
+ "permissionSetGroups",
23
+ "roles",
24
+ "groups",
25
+ "queues",
26
+ "labels",
27
+ "customMetadata",
28
+ "customSettings",
29
+ "staticresources",
30
+ "namedCredentials",
31
+ "remoteSiteSettings",
32
+ "notificationTemplates",
33
+ "isolated"
34
+ ]
35
+ },
36
+ {
37
+ "path": "nexus-app/main/default/classes",
38
+ "kind": "code-extension"
39
+ },
40
+ {
41
+ "path": "nexus-app/main/default/triggers",
42
+ "kind": "code-extension"
43
+ },
44
+ {
45
+ "path": "nexus-app/main/default/nwc",
46
+ "kind": "code-extension"
47
+ },
48
+ {
49
+ "path": "nexus-app/main/default/isolated",
50
+ "kind": "code-extension"
51
+ }
12
52
  ],
13
53
  "localPackages": [
14
- { "name": "workspace.org-base", "path": "packages/org-base", "packageClass": "metadata" },
15
- { "name": "workspace.sales-extension", "path": "packages/sales-extension", "packageClass": "metadata" }
54
+ {
55
+ "name": "workspace.org-base",
56
+ "path": "packages/org-base",
57
+ "packageClass": "metadata"
58
+ },
59
+ {
60
+ "name": "workspace.sales-extension",
61
+ "path": "packages/sales-extension",
62
+ "packageClass": "metadata"
63
+ }
16
64
  ],
17
65
  "registry": {
18
66
  "url": "https://packages.nexusclaw.local",
@@ -23,13 +71,29 @@
23
71
  "defaultOrg": "",
24
72
  "defaultEnvironment": "dev",
25
73
  "environments": [
26
- { "name": "dev", "path": "env/dev.sandbox.yaml" },
27
- { "name": "uat", "path": "env/uat.sandbox.yaml" },
28
- { "name": "prod", "path": "env/prod.install.yaml" }
74
+ {
75
+ "name": "dev",
76
+ "path": "env/dev.sandbox.yaml"
77
+ },
78
+ {
79
+ "name": "uat",
80
+ "path": "env/uat.sandbox.yaml"
81
+ },
82
+ {
83
+ "name": "prod",
84
+ "path": "env/prod.install.yaml"
85
+ }
29
86
  ],
30
87
  "starterTemplate": "base-crm",
31
88
  "packageRefs": [
32
89
  "core.baseline@0.1.0",
33
90
  "overlay.generic-crm@0.1.0"
34
- ]
91
+ ],
92
+ "packageDirectories": [
93
+ {
94
+ "path": "nexus-app",
95
+ "default": true
96
+ }
97
+ ],
98
+ "sourceRoot": "nexus-app/main/default"
35
99
  }
@@ -0,0 +1,68 @@
1
+ schemaVersion: "nexus-project/v2"
2
+ projectName: "{{NAME}}"
3
+ apiVersion: "1.0"
4
+ sourceRoots:
5
+ - path: "nexus-app/main/default"
6
+ kind: "metadata-runtime"
7
+ writeTarget: true
8
+ metadataKinds:
9
+ - "applications"
10
+ - "tabs"
11
+ - "objects"
12
+ - "layouts"
13
+ - "pages"
14
+ - "nwc"
15
+ - "classes"
16
+ - "triggers"
17
+ - "flows"
18
+ - "permissionsets"
19
+ - "profiles"
20
+ - "permissionSetGroups"
21
+ - "roles"
22
+ - "groups"
23
+ - "queues"
24
+ - "labels"
25
+ - "customMetadata"
26
+ - "customSettings"
27
+ - "staticresources"
28
+ - "namedCredentials"
29
+ - "remoteSiteSettings"
30
+ - "notificationTemplates"
31
+ - "isolated"
32
+ - path: "nexus-app/main/default/classes"
33
+ kind: "code-extension"
34
+ - path: "nexus-app/main/default/triggers"
35
+ kind: "code-extension"
36
+ - path: "nexus-app/main/default/nwc"
37
+ kind: "code-extension"
38
+ - path: "nexus-app/main/default/isolated"
39
+ kind: "code-extension"
40
+ localPackages:
41
+ - name: "workspace.org-base"
42
+ path: "packages/org-base"
43
+ packageClass: "metadata"
44
+ - name: "workspace.sales-extension"
45
+ path: "packages/sales-extension"
46
+ packageClass: "metadata"
47
+ registry:
48
+ url: "https://packages.nexusclaw.local"
49
+ channel: "stable"
50
+ rootDirectory: "packages"
51
+ compatibleCoreVersion: "{{CORE_VERSION}}"
52
+ defaultOrg: ""
53
+ defaultEnvironment: "dev"
54
+ environments:
55
+ - name: "dev"
56
+ path: "env/dev.sandbox.yaml"
57
+ - name: "uat"
58
+ path: "env/uat.sandbox.yaml"
59
+ - name: "prod"
60
+ path: "env/prod.install.yaml"
61
+ starterTemplate: "base-crm"
62
+ packageRefs:
63
+ - "core.baseline@0.1.0"
64
+ - "overlay.generic-crm@0.1.0"
65
+ packageDirectories:
66
+ - path: "nexus-app"
67
+ default: true
68
+ sourceRoot: "nexus-app/main/default"
@@ -26,9 +26,9 @@ package.
26
26
 
27
27
  ## Template package refs
28
28
 
29
- - `core.baseline`
30
- - `overlay.generic-crm`
31
- - `industry.partner-cloud`
29
+ - `core.baseline@0.1.0` (required environment baseline)
30
+ - `overlay.generic-crm@0.1.0`
31
+ - `industry.partner-cloud@0.1.0`
32
32
 
33
33
  ## Demo scenario payload
34
34
 
@@ -37,7 +37,7 @@ published registry package.
37
37
 
38
38
  ## Custom Pages (source DX)
39
39
 
40
- Pages live in `src/metadata/pages/` as pairs of:
40
+ Pages live in `nexus-app/main/default/pages/` as pairs of:
41
41
 
42
42
  - `<apiName>.page.json` — page metadata
43
43
  - `<apiName>.page.schema.json` — page schema blob