@nexusclawhq/cli 0.3.38 → 0.3.39

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 (50) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/build-info.json +4 -4
  3. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/community-capabilities.d.ts +27 -0
  4. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/community-capabilities.js +32 -0
  5. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/community-capabilities.js.map +1 -0
  6. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/types.d.ts +1 -2
  7. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/types.js +12 -0
  8. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/employee-package/types.js.map +1 -1
  9. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.d.ts +1 -3
  10. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.js +1 -3
  11. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/index.js.map +1 -1
  12. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.d.ts +19 -3
  13. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.js +12 -5
  14. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.js.map +1 -1
  15. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/index.d.ts +38 -6
  16. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.d.ts +19 -3
  17. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.js +13 -6
  18. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.js.map +1 -1
  19. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/platform-admin-route-readiness/index.js +2 -2
  20. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/platform-admin-route-readiness/index.js.map +1 -1
  21. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/system-object-persistence.js +1 -1
  22. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/system-object-persistence.js.map +1 -1
  23. package/dist/nexus-cli/node_modules/@nexusclaw/shared/package.json +0 -12
  24. package/dist/nexus-cli/src/cli.d.ts +4 -1
  25. package/dist/nexus-cli/src/cli.js +8 -1
  26. package/dist/nexus-cli/src/cli.js.map +1 -1
  27. package/dist/nexus-cli/src/cli.test.js +6 -0
  28. package/dist/nexus-cli/src/cli.test.js.map +1 -1
  29. package/dist/nexus-cli/src/commands/ai/help.test.js +4 -4
  30. package/dist/nexus-cli/src/commands/commands.test.js +1 -1
  31. package/dist/nexus-cli/src/commands/commands.test.js.map +1 -1
  32. package/dist/nexus-cli/src/commands/workforce/curated-exemplar.d.ts +2 -0
  33. package/dist/nexus-cli/src/commands/workforce/curated-exemplar.js +51 -0
  34. package/dist/nexus-cli/src/commands/workforce/curated-exemplar.js.map +1 -0
  35. package/dist/nexus-cli/src/commands/workforce/index.js +2 -0
  36. package/dist/nexus-cli/src/commands/workforce/index.js.map +1 -1
  37. package/dist/nexus-cli/src/contracts/command-contract-matrix.generated.test.js +5 -5
  38. package/dist/nexus-cli/src/contracts/command-inventory.test.js +4 -4
  39. package/dist/nexus-cli/src/contracts/command-policy.exporter.test.js +2 -2
  40. package/dist/nexus-cli/src/contracts/command-policy.registry.js +2 -2
  41. package/dist/nexus-cli/src/contracts/command-policy.registry.js.map +1 -1
  42. package/dist/nexus-cli/src/contracts/command-policy.registry.test.js +4 -4
  43. package/dist/nexus-cli/src/contracts/command-policy.validator.test.js +3 -3
  44. package/dist/nexus-cli/src/services/curated-exemplar-remote.d.ts +32 -0
  45. package/dist/nexus-cli/src/services/curated-exemplar-remote.js +50 -0
  46. package/dist/nexus-cli/src/services/curated-exemplar-remote.js.map +1 -0
  47. package/dist/nexus-cli/src/services/workforce-bundle-archive.d.ts +1 -1
  48. package/dist/nexus-cli/src/services/workforce-bundle-remote.d.ts +1 -1
  49. package/dist/tsconfig.tsbuildinfo +1 -1
  50. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.39 - 2026-08-13
4
+
5
+ - Ship the `workforce curated-exemplar ingest|list` commands (LYNC-145 Path D
6
+ Phase 1) so admins can curate admin-authored scenario exemplars from the
7
+ CLI. The commands were present in source since Phase 1 but had not been
8
+ built into a published CLI artifact nor registered in the command-policy
9
+ registry; this release closes that delivery gap. `ingest` is a
10
+ `knowledge.curate`-gated remote write (idempotent on scenario + content);
11
+ `list` is read-only. Both are now covered by the command-contract gate.
12
+
3
13
  ## 0.3.36 - 2026-08-05
4
14
 
5
15
  - `metadata import` now unwraps the backend REST response envelope
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "packageName": "@nexusclawhq/cli",
3
- "version": "0.3.38",
4
- "gitSha": "a8074830c00239764625297087e2e25424d92371",
3
+ "version": "0.3.39",
4
+ "gitSha": "451d5e32be77942a2b0696e3cbd15c068cf3b1eb",
5
5
  "ciRunId": null,
6
- "contentDigest": "sha256:0dae032f40963d5f248e7a03e30a5e932cbd87909f880f009e29b745ce499008",
7
- "generatedAt": "2026-08-07T07:07:27.984Z"
6
+ "contentDigest": "sha256:6e3fab5aef03817f55c1d7cd766ee5b4b3142e2785ce4f64dc425f1279d2b18a",
7
+ "generatedAt": "2026-08-13T01:43:25.481Z"
8
8
  }
@@ -0,0 +1,27 @@
1
+ export declare const COMMUNITY_CAPABILITY_CODES: {
2
+ readonly CAPABILITY_UNAVAILABLE_IN_COMMUNITY: "CAPABILITY_UNAVAILABLE_IN_COMMUNITY";
3
+ readonly AUTHORIZATION_POLICY_MISSING: "AUTHORIZATION_POLICY_MISSING";
4
+ readonly AUTHORIZATION_DENIED: "AUTHORIZATION_DENIED";
5
+ readonly AGENT_IDENTITY_INVARIANT_VIOLATION: "AGENT_IDENTITY_INVARIANT_VIOLATION";
6
+ readonly AUDIT_TRACE_INCOMPLETE: "AUDIT_TRACE_INCOMPLETE";
7
+ };
8
+ export declare const COMMUNITY_CAPABILITIES: {
9
+ readonly governedAgentExecution: "available";
10
+ readonly behaviorLearningPublication: "unavailable";
11
+ readonly knowledgeDistillation: "unavailable";
12
+ readonly commercialBilling: "unavailable";
13
+ readonly commercialLicenseEnforcement: "unavailable";
14
+ readonly enterpriseSso: "unavailable";
15
+ readonly communityCli: "unavailable";
16
+ readonly cliGenerate: "unavailable";
17
+ readonly packageRegistryDeployment: "unavailable";
18
+ readonly packageExplorer: "unavailable";
19
+ readonly workspaceTemplateGeneration: "unavailable";
20
+ };
21
+ export type CommunityCapabilityName = keyof typeof COMMUNITY_CAPABILITIES;
22
+ export interface CommunityCapabilityUnavailable {
23
+ available: false;
24
+ code: typeof COMMUNITY_CAPABILITY_CODES.CAPABILITY_UNAVAILABLE_IN_COMMUNITY;
25
+ capability: CommunityCapabilityName;
26
+ }
27
+ export declare function unavailableCommunityCapability(capability: CommunityCapabilityName): CommunityCapabilityUnavailable;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.COMMUNITY_CAPABILITIES = exports.COMMUNITY_CAPABILITY_CODES = void 0;
4
+ exports.unavailableCommunityCapability = unavailableCommunityCapability;
5
+ exports.COMMUNITY_CAPABILITY_CODES = {
6
+ CAPABILITY_UNAVAILABLE_IN_COMMUNITY: 'CAPABILITY_UNAVAILABLE_IN_COMMUNITY',
7
+ AUTHORIZATION_POLICY_MISSING: 'AUTHORIZATION_POLICY_MISSING',
8
+ AUTHORIZATION_DENIED: 'AUTHORIZATION_DENIED',
9
+ AGENT_IDENTITY_INVARIANT_VIOLATION: 'AGENT_IDENTITY_INVARIANT_VIOLATION',
10
+ AUDIT_TRACE_INCOMPLETE: 'AUDIT_TRACE_INCOMPLETE',
11
+ };
12
+ exports.COMMUNITY_CAPABILITIES = {
13
+ governedAgentExecution: 'available',
14
+ behaviorLearningPublication: 'unavailable',
15
+ knowledgeDistillation: 'unavailable',
16
+ commercialBilling: 'unavailable',
17
+ commercialLicenseEnforcement: 'unavailable',
18
+ enterpriseSso: 'unavailable',
19
+ communityCli: 'unavailable',
20
+ cliGenerate: 'unavailable',
21
+ packageRegistryDeployment: 'unavailable',
22
+ packageExplorer: 'unavailable',
23
+ workspaceTemplateGeneration: 'unavailable',
24
+ };
25
+ function unavailableCommunityCapability(capability) {
26
+ return {
27
+ available: false,
28
+ code: exports.COMMUNITY_CAPABILITY_CODES.CAPABILITY_UNAVAILABLE_IN_COMMUNITY,
29
+ capability,
30
+ };
31
+ }
32
+ //# sourceMappingURL=community-capabilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"community-capabilities.js","sourceRoot":"","sources":["../src/community-capabilities.ts"],"names":[],"mappings":";;;AAgCA,wEAQC;AAxCY,QAAA,0BAA0B,GAAG;IACxC,mCAAmC,EACjC,qCAAqC;IACvC,4BAA4B,EAAE,8BAA8B;IAC5D,oBAAoB,EAAE,sBAAsB;IAC5C,kCAAkC,EAChC,oCAAoC;IACtC,sBAAsB,EAAE,wBAAwB;CACxC,CAAC;AAEE,QAAA,sBAAsB,GAAG;IACpC,sBAAsB,EAAE,WAAW;IACnC,2BAA2B,EAAE,aAAa;IAC1C,qBAAqB,EAAE,aAAa;IACpC,iBAAiB,EAAE,aAAa;IAChC,4BAA4B,EAAE,aAAa;IAC3C,aAAa,EAAE,aAAa;IAC5B,YAAY,EAAE,aAAa;IAC3B,WAAW,EAAE,aAAa;IAC1B,yBAAyB,EAAE,aAAa;IACxC,eAAe,EAAE,aAAa;IAC9B,2BAA2B,EAAE,aAAa;CACoB,CAAC;AAUjE,SAAgB,8BAA8B,CAC5C,UAAmC;IAEnC,OAAO;QACL,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,kCAA0B,CAAC,mCAAmC;QACpE,UAAU;KACX,CAAC;AACJ,CAAC"}
@@ -1,4 +1,3 @@
1
- import type { AgentCognitivePolicyV1 } from '../ai-employee-cognition';
2
1
  /**
3
2
  * Employee Package v1 — shared types for the "AI Employee Package Deployment v1" spec.
4
3
  *
@@ -150,7 +149,7 @@ export interface PackageAgentDefinition {
150
149
  starterPrompts?: string[];
151
150
  identityPolicy?: string;
152
151
  /** Optional governed success/memory/agency policy, versioned with the agent. */
153
- cognitivePolicy?: AgentCognitivePolicyV1;
152
+ cognitivePolicy?: Record<string, unknown>;
154
153
  /**
155
154
  * Machine-readable, versioned rules that may narrow queries. Natural
156
155
  * language topic instructions are never promoted into this field.
@@ -1,4 +1,16 @@
1
1
  "use strict";
2
+ /**
3
+ * Employee Package v1 — shared types for the "AI Employee Package Deployment v1" spec.
4
+ *
5
+ * An employee package bundles everything needed to deploy one AI employee into a
6
+ * workspace: an agent definition, guardrail rules, knowledge documents, and
7
+ * evaluation cases. All environment-specific ids (knowledge base ids, guardrail
8
+ * rule ids) are referenced by *resource key* inside the package — the installer
9
+ * resolves them to real per-workspace uuids via `deriveStableId` at install time
10
+ * (see design.md §4.5 / §3). This is why `PackageAgentDefinition` mirrors
11
+ * `AgentDefinition` (backend agent-definition.interface.ts) but narrows the
12
+ * id-referencing arrays to `string[]` resource keys instead of real uuids.
13
+ */
2
14
  Object.defineProperty(exports, "__esModule", { value: true });
3
15
  exports.ASSERTION_TYPES = void 0;
4
16
  exports.ASSERTION_TYPES = [
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/employee-package/types.ts"],"names":[],"mappings":";;;AAqCa,QAAA,eAAe,GAA6B;IACvD,iBAAiB;IACjB,qBAAqB;IACrB,eAAe;IACf,sBAAsB;IACtB,yBAAyB;IACzB,eAAe;IACf,aAAa;IACb,aAAa;IACb,iBAAiB;IACjB,eAAe;IACf,0BAA0B;IAC1B,sBAAsB;IACtB,2BAA2B;IAC3B,qCAAqC;IACrC,yBAAyB;IACzB,0BAA0B;IAC1B,iCAAiC;IACjC,yBAAyB;IACzB,sBAAsB;IACtB,oBAAoB;CACrB,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/employee-package/types.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;GAWG;;;AAwBU,QAAA,eAAe,GAA6B;IACvD,iBAAiB;IACjB,qBAAqB;IACrB,eAAe;IACf,sBAAsB;IACtB,yBAAyB;IACzB,eAAe;IACf,aAAa;IACb,aAAa;IACb,iBAAiB;IACjB,eAAe;IACf,0BAA0B;IAC1B,sBAAsB;IACtB,2BAA2B;IAC3B,qCAAqC;IACrC,yBAAyB;IACzB,0BAA0B;IAC1B,iCAAiC;IACjC,yBAAyB;IACzB,sBAAsB;IACtB,oBAAoB;CACrB,CAAC"}
@@ -1,7 +1,6 @@
1
1
  export * from './locales';
2
2
  export { flattenMessages } from './locales/flatten';
3
3
  export * from './source-format';
4
- export * from './ai-workforce-learning';
5
4
  export * from './agent-markdown-policy';
6
5
  export * from './employee-package';
7
6
  export * from './package-payload';
@@ -9,7 +8,6 @@ export * from './agent-avatars/presets';
9
8
  export * from './platform-admin-route-readiness';
10
9
  export * from './platform-admin-release-governance';
11
10
  export * from './agent-executable-assets';
12
- export * from './ai-employee-runtime';
13
- export * from './ai-employee-cognition';
14
11
  export * from './workspace-regional-settings';
15
12
  export * from './system-object-persistence';
13
+ export * from './community-capabilities';
@@ -19,7 +19,6 @@ __exportStar(require("./locales"), exports);
19
19
  var flatten_1 = require("./locales/flatten");
20
20
  Object.defineProperty(exports, "flattenMessages", { enumerable: true, get: function () { return flatten_1.flattenMessages; } });
21
21
  __exportStar(require("./source-format"), exports);
22
- __exportStar(require("./ai-workforce-learning"), exports);
23
22
  __exportStar(require("./agent-markdown-policy"), exports);
24
23
  __exportStar(require("./employee-package"), exports);
25
24
  __exportStar(require("./package-payload"), exports);
@@ -27,8 +26,7 @@ __exportStar(require("./agent-avatars/presets"), exports);
27
26
  __exportStar(require("./platform-admin-route-readiness"), exports);
28
27
  __exportStar(require("./platform-admin-release-governance"), exports);
29
28
  __exportStar(require("./agent-executable-assets"), exports);
30
- __exportStar(require("./ai-employee-runtime"), exports);
31
- __exportStar(require("./ai-employee-cognition"), exports);
32
29
  __exportStar(require("./workspace-regional-settings"), exports);
33
30
  __exportStar(require("./system-object-persistence"), exports);
31
+ __exportStar(require("./community-capabilities"), exports);
34
32
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAAoD;AAA3C,0GAAA,eAAe,OAAA;AACxB,kDAAgC;AAChC,0DAAwC;AACxC,0DAAwC;AACxC,qDAAmC;AACnC,oDAAkC;AAClC,0DAAwC;AACxC,mEAAiD;AACjD,sEAAoD;AACpD,4DAA0C;AAC1C,wDAAsC;AACtC,0DAAwC;AACxC,gEAA8C;AAC9C,8DAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAAoD;AAA3C,0GAAA,eAAe,OAAA;AACxB,kDAAgC;AAChC,0DAAwC;AACxC,qDAAmC;AACnC,oDAAkC;AAClC,0DAAwC;AACxC,mEAAiD;AACjD,sEAAoD;AACpD,4DAA0C;AAC1C,gEAA8C;AAC9C,8DAA4C;AAC5C,2DAAyC"}
@@ -7369,9 +7369,18 @@ declare const _default: {
7369
7369
  };
7370
7370
  viewer: {
7371
7371
  reportTypeMeta: {
7372
- tabular: {};
7373
- summary: {};
7374
- matrix: {};
7372
+ tabular: {
7373
+ label: string;
7374
+ hint: string;
7375
+ };
7376
+ summary: {
7377
+ label: string;
7378
+ hint: string;
7379
+ };
7380
+ matrix: {
7381
+ label: string;
7382
+ hint: string;
7383
+ };
7375
7384
  };
7376
7385
  aggregateCount: string;
7377
7386
  aggregateEmpty: string;
@@ -12612,6 +12621,12 @@ declare const _default: {
12612
12621
  messageLabel: string;
12613
12622
  stackLabel: string;
12614
12623
  componentStackLabel: string;
12624
+ routeLabel: string;
12625
+ workspaceLabel: string;
12626
+ traceLabel: string;
12627
+ timeLabel: string;
12628
+ copyDetails: string;
12629
+ copied: string;
12615
12630
  };
12616
12631
  fileUpload: {
12617
12632
  selectFile: string;
@@ -16231,6 +16246,7 @@ declare const _default: {
16231
16246
  abortError: string;
16232
16247
  };
16233
16248
  platformAdmin: {
16249
+ menuChannelProvider: string;
16234
16250
  adminPanelUi: {
16235
16251
  common: {
16236
16252
  sectionOther: string;
@@ -900,7 +900,7 @@ const messages = {
900
900
  crm: {
901
901
  dashboard: "Dashboard",
902
902
  salesLead: "Leads",
903
- // LYNC-107: keep the en-US key set aligned with zh-CN so both locales
903
+ // Keep the en-US key set aligned with zh-CN so both locales
904
904
  // resolve from the translation table rather than the DB fallback name.
905
905
  accountFolder: "Accounts",
906
906
  accountAll: "All Accounts",
@@ -7386,9 +7386,9 @@ const messages = {
7386
7386
  },
7387
7387
  viewer: {
7388
7388
  reportTypeMeta: {
7389
- tabular: {},
7390
- summary: {},
7391
- matrix: {},
7389
+ tabular: { label: "Tabular", hint: "Row-by-row raw records for export and verification" },
7390
+ summary: { label: "Summary", hint: "Grouped and aggregated with chart trend context" },
7391
+ matrix: { label: "Matrix", hint: "Row × column cross analysis with heatmap toggle" },
7392
7392
  },
7393
7393
  aggregateCount: "{count} summary results",
7394
7394
  aggregateEmpty: "No summary results yet",
@@ -12257,7 +12257,7 @@ const messages = {
12257
12257
  routingRules: {
12258
12258
  pageTitle: "Routing Rules"
12259
12259
  },
12260
- // SAFTBR-605 (design §6.7) — channels/routing/canned-responses are governed
12260
+ // Channels/routing/canned-responses are governed
12261
12261
  // unavailable in V1: no matching persistence/API/runtime consumer. Static
12262
12262
  // contract metadata (owner/reason/reviewer/exitCriteria) is surfaced here.
12263
12263
  unsupported: {
@@ -12652,6 +12652,12 @@ const messages = {
12652
12652
  messageLabel: "Error message:",
12653
12653
  stackLabel: "Stack trace:",
12654
12654
  componentStackLabel: "Component stack:",
12655
+ routeLabel: "Route:",
12656
+ workspaceLabel: "Workspace:",
12657
+ traceLabel: "Trace ID:",
12658
+ timeLabel: "Time:",
12659
+ copyDetails: "Copy error details",
12660
+ copied: "Error details copied to clipboard",
12655
12661
  },
12656
12662
  fileUpload: {
12657
12663
  selectFile: "Select file",
@@ -16312,6 +16318,7 @@ const messages = {
16312
16318
  abortError: "Abort failed: {message}",
16313
16319
  },
16314
16320
  platformAdmin: {
16321
+ menuChannelProvider: "Messaging Channels",
16315
16322
  adminPanelUi: {
16316
16323
  common: {
16317
16324
  sectionOther: "Other",