@nexusclawhq/cli 0.3.0 → 0.3.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.2 - 2026-07-25
4
+
5
+ - Refresh vendored `@nexusclaw/shared` runtime dependency to pick up new locale keys (`assistantIdentityBanner`, `independentIdentityBanner`, `assistantIdentityEditorHint`, `assistantPermissionNotice`, `assistantAccessNotice`, `assistantAudienceNotice`) added by the agent identity-kind (独立员工 vs 助理) UI work. No CLI source changes; the CLI never reads these keys — they are a transitive artifact of vendoring the latest shared dist. CLI runtime behavior is unchanged. Rebuild produces a new content hash for the vendored bundle.
6
+
7
+ ## 0.3.1 - 2026-07-24
8
+
9
+ - Fix `nexus workforce test-case results`, `nexus workforce observe executions list/detail/steps/tool-calls`, and the `dispatchAgentTask`/`testAgentRun` mutations: their GraphQL queries drifted from the backend's emitted schema and failed with `GRAPHQL_VALIDATION_FAILED` on every call. Aligned field selections and variable types with the current schema — `AgentTestResult` (`score`→`scores`, `latencyMs`→`durationMs`, `errorMessage`→`failureReason`; added `output`/`assertionResults`/`executionId` so assertion-level failure detail is readable), `AgentExecution` (dropped non-selectable `traceId`/`correlationId`/`actorType`/`actorId`/`intentSummary`/`errorMessage`; fixed `$workspaceId: ID!` and `$actorId: String`; selects real `intent`/`outputSummary`/`durationMs`/`cost`/`tokens`), `ReactStep` (`stepType`→`actionType`, `thought`→`thoughtReasoning`/`Plan`/`Confidence`, `observation`→`observationSuccess`/`Output`/`Error`), and `ToolCallRecord` (`arguments`→`input`, `result`→`output`). No behavior change; all command handlers are field-agnostic pass-throughs.
10
+
3
11
  ## 0.3.0 - 2026-07-24
4
12
 
5
13
  - Add `nexus workforce *` — a full AI-workforce training/governance command plane (18 sub-groups, 111 commands) that drives the digital-employee lifecycle from the CLI without the UI: learning loops (A + B), cognition mutate, config writes (constitution / prompt / guardrail / knowledge / provider / permission), eval, ops, orchestration, and observation. Every command is a thin authenticated GraphQL client over existing backend mutations; no write path bypasses the release gate or `BehaviorLearningCaptureService`.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "packageName": "@nexusclawhq/cli",
3
- "version": "0.3.0",
4
- "gitSha": "985eb3ccfa9dd2d313cbe6f08f30c3e7ff134459",
3
+ "version": "0.3.2",
4
+ "gitSha": "99bf77ed985fb215f9868c11870abeb474941b26",
5
5
  "ciRunId": null,
6
- "contentDigest": "sha256:8dc8f974281eec5f9f379b7280eb85ba217e396ab5335b11996d9a72cd88700d",
7
- "generatedAt": "2026-07-24T03:46:12.764Z"
6
+ "contentDigest": "sha256:6bc1c3e5c93d4070ff5a9c391e059242c226882425f0cc10283e467394ef0fb6",
7
+ "generatedAt": "2026-07-25T03:54:35.498Z"
8
8
  }
@@ -89,6 +89,13 @@ export interface PackageModelConfig {
89
89
  tier: 1 | 2 | 3;
90
90
  temperature: number;
91
91
  maxTokens: number;
92
+ /**
93
+ * Cumulative token budget for the WHOLE agent execution (input+output across
94
+ * all ReAct iterations). Distinct from `maxTokens` (per-call output cap).
95
+ * When unset, `ContextBuilderService` falls back to its 16k default
96
+ * (`context-builder.service.ts` `calculateConstraints`).
97
+ */
98
+ maxTokensPerExecution?: number;
92
99
  responseFormat: 'text' | 'json';
93
100
  inputCostPer1k?: number;
94
101
  outputCostPer1k?: number;
@@ -4975,25 +4975,9 @@ declare const _default: {
4975
4975
  micError: string;
4976
4976
  cameraUnsupported: string;
4977
4977
  cameraDenied: string;
4978
- starterMedtech1: string;
4979
- starterMedtech2: string;
4980
- starterMedtech3: string;
4981
- starterSales1: string;
4982
- starterSales2: string;
4983
- starterSales3: string;
4984
- starterService1: string;
4985
- starterService2: string;
4986
- starterService3: string;
4987
- starterAnalysis1: string;
4988
- starterAnalysis2: string;
4989
- starterAnalysis3: string;
4990
- starterOps1: string;
4991
- starterOps2: string;
4992
- starterOps3: string;
4993
4978
  starterDefault1: string;
4994
4979
  starterDefault2: string;
4995
4980
  starterDefault3: string;
4996
- medtechCustomerHint: string;
4997
4981
  customerHint: string;
4998
4982
  backAria: string;
4999
4983
  title: string;
@@ -5041,6 +5025,16 @@ declare const _default: {
5041
5025
  sendMessageAria: string;
5042
5026
  requestFailedWithStatus: string;
5043
5027
  serviceException: string;
5028
+ historyButton: string;
5029
+ historyTitle: string;
5030
+ historyEmpty: string;
5031
+ historyAllAgents: string;
5032
+ historyCurrentAgent: string;
5033
+ historyFilterTip: string;
5034
+ historyMsgCount: string;
5035
+ replayBack: string;
5036
+ replayBadge: string;
5037
+ replayLoadFailed: string;
5044
5038
  };
5045
5039
  aiAssistant: {
5046
5040
  archived: string;
@@ -5454,6 +5448,7 @@ declare const _default: {
5454
5448
  commandCenter: {
5455
5449
  common: {
5456
5450
  allStatuses: string;
5451
+ backToList: string;
5457
5452
  cancel: string;
5458
5453
  colActions: string;
5459
5454
  colDuration: string;
@@ -7402,6 +7397,12 @@ declare const _default: {
7402
7397
  assistant: string;
7403
7398
  independent: string;
7404
7399
  };
7400
+ assistantIdentityBanner: string;
7401
+ independentIdentityBanner: string;
7402
+ assistantIdentityEditorHint: string;
7403
+ assistantPermissionNotice: string;
7404
+ assistantAccessNotice: string;
7405
+ assistantAudienceNotice: string;
7405
7406
  builderIdentityDesc: string;
7406
7407
  builderIdentityGap: string;
7407
7408
  builderIdentityInfo: string;
@@ -11779,6 +11780,22 @@ declare const _default: {
11779
11780
  pickAgentDesc: string;
11780
11781
  releaseGate: string;
11781
11782
  provingGroundTitle: string;
11783
+ runsEmptyDesc: string;
11784
+ runSummaryTitle: string;
11785
+ viewRunResults: string;
11786
+ gateSuccessVector: string;
11787
+ gateHardGate: string;
11788
+ gateEvidenceComplete: string;
11789
+ gateRunLineage: string;
11790
+ gateValuePass: string;
11791
+ gateValueBlocked: string;
11792
+ gateValueComplete: string;
11793
+ gateValueIncomplete: string;
11794
+ gateValueInsufficient: string;
11795
+ cognitionGateFailedMsg: string;
11796
+ cognitionGatePassedMsg: string;
11797
+ cognitionGateMissingMsg: string;
11798
+ cognitionGateDesc: string;
11782
11799
  };
11783
11800
  promptTemplates: {
11784
11801
  pageTitle: string;
@@ -4996,26 +4996,10 @@ const messages = {
4996
4996
  micError: "Recording failed -- please try again or type instead.",
4997
4997
  cameraUnsupported: "Your browser does not support the camera.",
4998
4998
  cameraDenied: "Camera permission was denied -- please allow it in your browser and try again.",
4999
- starterMedtech1: "Review the hospitals I own and flag the top three to prioritize visiting this week",
5000
- starterMedtech2: "A tier-3 hospital's cardiology department wants to learn about vascular stents -- what's the next step?",
5001
- starterMedtech3: "Track the current group-purchasing project -- which price concessions need manual approval?",
5002
- starterSales1: "How is this customer's key deal progressing recently?",
5003
- starterSales2: "What new overseas inquiries came in this week?",
5004
- starterSales3: "Help me review the highest-risk opportunities right now",
5005
- starterService1: "What open service tickets does this customer have?",
5006
- starterService2: "What stage is the damaged-goods handling for order ORD-2024-0892 at?",
5007
- starterService3: "Which refunds are currently pending approval?",
5008
- starterAnalysis1: "Generate this week's pipeline report",
5009
- starterAnalysis2: "What are the current weighted forecast and total pipeline?",
5010
- starterAnalysis3: "Which stage holds the largest opportunity value?",
5011
- starterOps1: "How healthy are the sales and service teams' operations this week?",
5012
- starterOps2: "What bottlenecks or risks need attention right now?",
5013
- starterOps3: "Suggest the team's best next action",
5014
4999
  starterDefault1: "Help me review this customer's recent situation",
5015
5000
  starterDefault2: "Summarize this week's key business progress",
5016
5001
  starterDefault3: "What risks should I be paying close attention to?",
5017
- medtechCustomerHint: '💡 Say a hospital, department, or distributor name (e.g. "tier-3 hospital cardiology") to activate that customer\'s long-term memory',
5018
- customerHint: "💡 Say the customer's full name (e.g. \"Yuanda Intelligent Manufacturing Group\") to activate that customer's long-term memory",
5002
+ customerHint: "💡 Say the customer's full name to activate that customer's long-term memory",
5019
5003
  backAria: "Go back",
5020
5004
  title: "AI Employee Voice Test",
5021
5005
  localBadge: "Company-owned · Sovereign data control",
@@ -5062,6 +5046,17 @@ const messages = {
5062
5046
  sendMessageAria: "Send message",
5063
5047
  requestFailedWithStatus: "Request failed ({status})",
5064
5048
  serviceException: "Service error",
5049
+ // Conversation history / meeting replay (caller-scoped by userId+workspaceId)
5050
+ historyButton: "History",
5051
+ historyTitle: "Conversation history",
5052
+ historyEmpty: "No conversations yet",
5053
+ historyAllAgents: "All employees",
5054
+ historyCurrentAgent: "Current employee only",
5055
+ historyFilterTip: "Toggle: current employee only / all employees",
5056
+ historyMsgCount: "{n} messages",
5057
+ replayBack: "Back to live",
5058
+ replayBadge: "Replay",
5059
+ replayLoadFailed: "Failed to load this conversation, please try again",
5065
5060
  },
5066
5061
  aiAssistant: {
5067
5062
  archived: "Archived",
@@ -5476,6 +5471,7 @@ const messages = {
5476
5471
  commandCenter: {
5477
5472
  common: {
5478
5473
  allStatuses: "All statuses",
5474
+ backToList: "Back to execution list",
5479
5475
  cancel: "Cancel",
5480
5476
  colActions: "Actions",
5481
5477
  colDuration: "Duration",
@@ -7409,6 +7405,12 @@ const messages = {
7409
7405
  assistant: "Employee assistant",
7410
7406
  independent: "Independent AI employee",
7411
7407
  },
7408
+ assistantIdentityBanner: "This is an employee assistant: it runs under the authorizing user's account, role, and org node, and holds no permissions of its own. Fill in the service account and role below to convert it into an independent AI employee.",
7409
+ independentIdentityBanner: "This is an independent AI employee: it executes with its own service account (employee ID) and role, with its own account, permissions, and org-structure boundary.",
7410
+ assistantIdentityEditorHint: "Assistants do not need the account or role below. To let this employee operate under its own authority, set both the service account and a role — saving converts it into an independent AI employee.",
7411
+ assistantPermissionNotice: "Assistants hold no permissions of their own: their data scope, public groups, permission sets, and runtime limits are all inherited from the authorizing user and cannot be configured here.",
7412
+ assistantAccessNotice: "Assistants cannot work standalone: their run-as identity is inherited from the human who dispatches each task, with no independent service-account permission profile.",
7413
+ assistantAudienceNotice: "Assistants have no standalone audience or org ownership: org node, audience orgs, and audience users are all inherited from the human who dispatches each task, and cannot be configured here.",
7412
7414
  builderIdentityDesc: "Determines whose identity the AI employee executes as, and what authority and org boundaries it has.",
7413
7415
  builderIdentityGap: "Missing employee ID or role",
7414
7416
  builderIdentityInfo: "Identity information",
@@ -11792,8 +11794,24 @@ const messages = {
11792
11794
  provingGroundNotice: "__EN_TODO__: 这些测试来自学习证据和改进建议,只作为发布门禁候选展示;保存为正式用例、审批和发布写入属于后续 Release Gate 阶段。",
11793
11795
  emptyCasesDesc: "__EN_TODO__: 给这名数字员工出一套「考卷」:一句话术 + 期望表现。运行后它会在沙箱里真跑一遍,按通过/未通过给你结论。",
11794
11796
  pickAgentDesc: "__EN_TODO__: 在右上角选择一名数字员工,为它建立测试用例集,一键在沙箱里跑真 agent 打分、与基线对比检测回归。",
11795
- releaseGate: "__EN_TODO__: 发布门禁",
11796
- provingGroundTitle: "__EN_TODO__: 验证场 / 发布门禁",
11797
+ releaseGate: "Release gate",
11798
+ provingGroundTitle: "Proving Ground / Release Gate",
11799
+ runsEmptyDesc: "After you run the suite, pass rate, regression deltas and per-case results show up here.",
11800
+ runSummaryTitle: "Latest run",
11801
+ viewRunResults: "View run results",
11802
+ gateSuccessVector: "Success vectors",
11803
+ gateHardGate: "Hard gate",
11804
+ gateEvidenceComplete: "Evidence complete",
11805
+ gateRunLineage: "Exact run lineage",
11806
+ gateValuePass: "Passed",
11807
+ gateValueBlocked: "Blocked",
11808
+ gateValueComplete: "Complete",
11809
+ gateValueIncomplete: "Incomplete",
11810
+ gateValueInsufficient: "Insufficient evidence",
11811
+ cognitionGateFailedMsg: "Candidate cognition gate failed: active pass cannot cover candidate failure",
11812
+ cognitionGatePassedMsg: "Success vectors and cognition gate verified by the backend runner",
11813
+ cognitionGateMissingMsg: "Current run returned no exact candidate binding; cannot serve as candidate release evidence",
11814
+ cognitionGateDesc: "Candidate release requires success vectors, hard gate, evidence completeness and exact candidate lineage together.",
11797
11815
  },
11798
11816
  promptTemplates: {
11799
11817
  pageTitle: "Prompt Templates",