@slock-ai/daemon 0.47.0-staging.20260511185434 → 0.48.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.
@@ -640,6 +640,22 @@ var actionCardActionSchema = z.discriminatedUnion("type", [
640
640
  channelAddMemberOperationSchema
641
641
  ]);
642
642
 
643
+ // ../shared/src/translationLanguages.ts
644
+ var SUPPORTED_TRANSLATION_LANGUAGE_CODES = [
645
+ "en",
646
+ "zh-cn",
647
+ "zh-tw",
648
+ "ja",
649
+ "ko",
650
+ "es",
651
+ "fr",
652
+ "de",
653
+ "pt-br"
654
+ ];
655
+ var SUPPORTED_TRANSLATION_LANGUAGE_SET = new Set(
656
+ SUPPORTED_TRANSLATION_LANGUAGE_CODES
657
+ );
658
+
643
659
  // ../shared/src/testing/failpoints.ts
644
660
  var NoopFailpointRegistry = class {
645
661
  get enabled() {
package/dist/cli/index.js CHANGED
@@ -14016,6 +14016,22 @@ function validateActionCardAction(action) {
14016
14016
  return null;
14017
14017
  }
14018
14018
 
14019
+ // ../shared/src/translationLanguages.ts
14020
+ var SUPPORTED_TRANSLATION_LANGUAGE_CODES = [
14021
+ "en",
14022
+ "zh-cn",
14023
+ "zh-tw",
14024
+ "ja",
14025
+ "ko",
14026
+ "es",
14027
+ "fr",
14028
+ "de",
14029
+ "pt-br"
14030
+ ];
14031
+ var SUPPORTED_TRANSLATION_LANGUAGE_SET = new Set(
14032
+ SUPPORTED_TRANSLATION_LANGUAGE_CODES
14033
+ );
14034
+
14019
14035
  // ../shared/src/testing/failpoints.ts
14020
14036
  var NoopFailpointRegistry = class {
14021
14037
  get enabled() {
@@ -14206,8 +14222,14 @@ var ApiClient = class {
14206
14222
  if (res.ok) {
14207
14223
  data = parsed;
14208
14224
  } else {
14209
- error48 = parsed?.error ?? `HTTP ${res.status}`;
14210
- errorCode = parsed?.errorCode ?? null;
14225
+ const body = parsed;
14226
+ if (res.status === 403 && body?.requiredScope) {
14227
+ errorCode = "SCOPE_DENIED";
14228
+ error48 = `Permission denied. The human has revoked the \`${body.requiredScope}\` capability for this agent under the agent profile's Permissions tab, so this command can't run. If you need it, ask the human to re-enable the corresponding toggle.`;
14229
+ } else {
14230
+ error48 = body?.error ?? `HTTP ${res.status}`;
14231
+ errorCode = body?.errorCode ?? null;
14232
+ }
14211
14233
  }
14212
14234
  } else if (!res.ok) {
14213
14235
  error48 = `HTTP ${res.status}`;
package/dist/core.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  resolveSlockCliPath,
10
10
  resolveWorkspaceDirectoryPath,
11
11
  scanWorkspaceDirectories
12
- } from "./chunk-S5GCMNRE.js";
12
+ } from "./chunk-EDE2E6QR.js";
13
13
  import {
14
14
  subscribeDaemonLogs
15
15
  } from "./chunk-B7XIMLOT.js";
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  DAEMON_CLI_USAGE,
4
4
  DaemonCore,
5
5
  parseDaemonCliArgs
6
- } from "./chunk-S5GCMNRE.js";
6
+ } from "./chunk-EDE2E6QR.js";
7
7
  import "./chunk-B7XIMLOT.js";
8
8
 
9
9
  // src/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slock-ai/daemon",
3
- "version": "0.47.0-staging.20260511185434",
3
+ "version": "0.48.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "slock-daemon": "dist/index.js"