@nexusclawhq/cli 0.3.34 → 0.3.36

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 (30) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/build-info.json +4 -4
  3. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.d.ts +3 -0
  4. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.js +3 -0
  5. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/en-US.js.map +1 -1
  6. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/index.d.ts +6 -0
  7. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.d.ts +3 -0
  8. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.js +3 -0
  9. package/dist/nexus-cli/node_modules/@nexusclaw/shared/dist/locales/zh-CN.js.map +1 -1
  10. package/dist/nexus-cli/src/commands/metadata/import.d.ts +2 -0
  11. package/dist/nexus-cli/src/commands/metadata/import.js +7 -1
  12. package/dist/nexus-cli/src/commands/metadata/import.js.map +1 -1
  13. package/dist/nexus-cli/src/commands/metadata/import.test.d.ts +1 -0
  14. package/dist/nexus-cli/src/commands/metadata/import.test.js +38 -0
  15. package/dist/nexus-cli/src/commands/metadata/import.test.js.map +1 -0
  16. package/dist/nexus-cli/src/services/api-client.js +4 -1
  17. package/dist/nexus-cli/src/services/api-client.js.map +1 -1
  18. package/dist/nexus-cli/src/services/api-client.test.js +59 -0
  19. package/dist/nexus-cli/src/services/api-client.test.js.map +1 -1
  20. package/dist/nexus-cli/src/services/workforce-bundle-remote.d.ts +1 -0
  21. package/dist/nexus-cli/src/services/workforce-bundle-remote.js +9 -1
  22. package/dist/nexus-cli/src/services/workforce-bundle-remote.js.map +1 -1
  23. package/dist/nexus-cli/src/services/workforce-bundle-remote.test.d.ts +1 -0
  24. package/dist/nexus-cli/src/services/workforce-bundle-remote.test.js +23 -0
  25. package/dist/nexus-cli/src/services/workforce-bundle-remote.test.js.map +1 -0
  26. package/dist/nexus-cli/src/services/workforce-test-remote.d.ts +1 -1
  27. package/dist/nexus-cli/src/services/workforce-test-remote.js +1 -1
  28. package/dist/nexus-cli/src/services/workforce-test-remote.test.js +2 -2
  29. package/dist/tsconfig.tsbuildinfo +1 -1
  30. package/package.json +6 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.36 - 2026-08-05
4
+
5
+ - `metadata import` now unwraps the backend REST response envelope
6
+ (`{ data, meta }`) exactly like `validate-source`, so an invalid dry-run
7
+ plan (for example system-app write-protected diagnostics) is rendered as a
8
+ structured `ok:false + data.plan` result instead of crashing with
9
+ "Cannot read properties of undefined (reading 'validation')".
10
+
11
+ ## 0.3.35 - 2026-08-05
12
+
13
+ - Keep `metadata import --source <directory>` inside the explicitly selected
14
+ directory, matching `validate-source`, while preserving manifest-wide
15
+ collection for `--source .` workspace operations.
16
+ - Reject employee bundle remote validation before any network/upload work when
17
+ the context is not the frozen `--surface all --caller-preview` stage input,
18
+ and return the exact recovery command instead of failing later as a stale
19
+ lock/context hash.
20
+
3
21
  ## 0.3.28 - 2026-08-03
4
22
 
5
23
  - Keep `nexus validate --json` attributed to the invoked `validate` command
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "packageName": "@nexusclawhq/cli",
3
- "version": "0.3.34",
4
- "gitSha": "e6a127c667757ae7bad2146346ae9a3320dd2317",
3
+ "version": "0.3.36",
4
+ "gitSha": "fe9b48ac9391debb32fc8eb511f3bcf3cc887b24",
5
5
  "ciRunId": null,
6
- "contentDigest": "sha256:92198101e6de34552f21d6698f73f978f80eb9ec0c15714ad851d250dd13075b",
7
- "generatedAt": "2026-08-05T08:23:06.002Z"
6
+ "contentDigest": "sha256:6fe2a62ec72973ab20c6c931a0e088307fa9744c72d8c43f12f93e6775faf1db",
7
+ "generatedAt": "2026-08-05T12:19:31.243Z"
8
8
  }
@@ -12978,6 +12978,9 @@ declare const _default: {
12978
12978
  usageRate: string;
12979
12979
  currentSpend: string;
12980
12980
  monthlyBudget: string;
12981
+ notConfigured: string;
12982
+ noBudgetConfigured: string;
12983
+ noBudgetConfiguredDescription: string;
12981
12984
  daysRemaining: string;
12982
12985
  days: string;
12983
12986
  projectedMonthEnd: string;
@@ -13005,6 +13005,9 @@ const messages = {
13005
13005
  usageRate: "Budget usage rate",
13006
13006
  currentSpend: "Current spend",
13007
13007
  monthlyBudget: "Monthly budget",
13008
+ notConfigured: "Not configured",
13009
+ noBudgetConfigured: "No monthly budget configured",
13010
+ noBudgetConfiguredDescription: "The detail sections below are aggregated from actual usage (tokens and cost). Current spend and projected month-end spend are shown truthfully; configure a budget to display the usage rate and cap controls.",
13008
13011
  daysRemaining: "Days remaining",
13009
13012
  days: "days",
13010
13013
  projectedMonthEnd: "Projected month-end spend",