@thinkingai/ae-cli 6.1.26 → 6.1.27

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 (39) hide show
  1. package/dist/{auth-YHMC3GDH.js → auth-WA7YGGRT.js} +4 -4
  2. package/dist/{automation-NWWVLWG2.js → automation-VAAQBM7Y.js} +3 -3
  3. package/dist/{capability-3QLLIVFB.js → capability-GAAYJ3IQ.js} +5 -5
  4. package/dist/{chunk-PLE722AJ.js → chunk-3YVEAZUN.js} +33 -17
  5. package/dist/{chunk-KFNMQTZI.js → chunk-6VNIR4AP.js} +2 -2
  6. package/dist/{chunk-FMNNGNYO.js → chunk-7KU2WNQE.js} +3 -3
  7. package/dist/{chunk-XCHAYMSF.js → chunk-AQJPNWZF.js} +2 -2
  8. package/dist/{chunk-4655PUNX.js → chunk-CI24BDR2.js} +1 -1
  9. package/dist/{chunk-GIK6EDUG.js → chunk-GHXZK54S.js} +1 -1
  10. package/dist/{chunk-KAEHZZH4.js → chunk-MWIA43UJ.js} +2 -2
  11. package/dist/{chunk-7QXISROD.js → chunk-OP44TT4H.js} +1 -1
  12. package/dist/{chunk-HVHR4SCP.js → chunk-Q5US7JC5.js} +2 -2
  13. package/dist/{chunk-D6ACFILC.js → chunk-RPBOAQQQ.js} +1 -1
  14. package/dist/{chunk-EOYSKMXN.js → chunk-VZZNLV3I.js} +2 -2
  15. package/dist/{chunk-UQ77JXYH.js → chunk-ZL7SGNIA.js} +1 -0
  16. package/dist/{config-AHPMEW5A.js → config-JOD5DOPE.js} +3 -3
  17. package/dist/{context-YAE3QXP3.js → context-NGVFPCBK.js} +3 -3
  18. package/dist/{data-integration-HESZET7E.js → data-integration-BCLQFTGU.js} +1 -1
  19. package/dist/index.js +30 -30
  20. package/dist/{memory-62BJOULV.js → memory-CQKH2JAV.js} +5 -5
  21. package/dist/{metadata-C7CEDHOJ.js → metadata-NR3PHR23.js} +6 -6
  22. package/dist/{model-SBV2JFJI.js → model-VX5M2CJ6.js} +3 -3
  23. package/dist/{personal-semantic-preference-QECDPHND.js → personal-semantic-preference-2RAI36P3.js} +5 -5
  24. package/dist/{project-semantic-Z4QAMBWF.js → project-semantic-3BUGP3ZM.js} +5 -5
  25. package/dist/{sync-SU33KYX7.js → sync-RZIAV37C.js} +4 -4
  26. package/dist/{te-agent-F5QBZSQA.js → te-agent-AORRE2FM.js} +6 -6
  27. package/dist/{te-analysis-2ECAAIFK.js → te-analysis-GP7DSQ7Q.js} +6 -6
  28. package/dist/{te-community-PFLDLPP4.js → te-community-42M7ICDO.js} +2 -2
  29. package/dist/{te-dataops-FOQSRIAZ.js → te-dataops-BNKNZ4F2.js} +4 -4
  30. package/dist/{te-engage-QKUGIWSR.js → te-engage-2CO6LRCX.js} +5 -5
  31. package/dist/{te-experiment-26PXR2UO.js → te-experiment-652CLXMU.js} +5 -5
  32. package/dist/{te-kb-MHDOST62.js → te-kb-ULATOTQ3.js} +6 -6
  33. package/dist/{te-system-J2FQF5ER.js → te-system-UGHVKBVV.js} +7 -6
  34. package/dist/{te-team-5UOZPTU3.js → te-team-YA6SNOJ3.js} +5 -5
  35. package/dist/{things-VPPXXLHB.js → things-DTCOQIQB.js} +6 -6
  36. package/dist/{update-EEUTEI6R.js → update-ESNYKUVR.js} +3 -3
  37. package/dist/{workspace-O3EEIYQM.js → workspace-JEOHKFPX.js} +5 -5
  38. package/package.json +2 -2
  39. package/skills/ae-agent/SKILL.md +3 -1
@@ -9,13 +9,13 @@ import {
9
9
  } from "./chunk-6ZIQV5GW.js";
10
10
  import {
11
11
  resolveHost
12
- } from "./chunk-7QXISROD.js";
12
+ } from "./chunk-OP44TT4H.js";
13
13
  import {
14
14
  getLocalCliPackageInfo,
15
15
  printError,
16
16
  printOutput,
17
17
  runHostCompatCheck
18
- } from "./chunk-KFNMQTZI.js";
18
+ } from "./chunk-6VNIR4AP.js";
19
19
  import {
20
20
  CliTokenValidationUnavailableError,
21
21
  CredentialStoreUnreadableError,
@@ -31,13 +31,13 @@ import {
31
31
  saveCredential,
32
32
  updateCredentialMetadata,
33
33
  validateCliTokenOnServer
34
- } from "./chunk-GIK6EDUG.js";
34
+ } from "./chunk-GHXZK54S.js";
35
35
  import {
36
36
  getFallbackCliToken,
37
37
  loadConfig,
38
38
  normalizeUrl,
39
39
  saveConfig
40
- } from "./chunk-UQ77JXYH.js";
40
+ } from "./chunk-ZL7SGNIA.js";
41
41
  import {
42
42
  PermissionError,
43
43
  logger
@@ -5,10 +5,10 @@ import {
5
5
  getFromMainApp,
6
6
  patchToMainApp,
7
7
  postToMainApp
8
- } from "./chunk-PLE722AJ.js";
8
+ } from "./chunk-3YVEAZUN.js";
9
9
  import "./chunk-Y74WTIKJ.js";
10
- import "./chunk-GIK6EDUG.js";
11
- import "./chunk-UQ77JXYH.js";
10
+ import "./chunk-GHXZK54S.js";
11
+ import "./chunk-ZL7SGNIA.js";
12
12
  import "./chunk-WNGFSIOB.js";
13
13
 
14
14
  // src/commands/automation/index.ts
@@ -11,7 +11,7 @@ import {
11
11
  inspectCapabilityWithEnvelope,
12
12
  listCapabilitiesWithEnvelope,
13
13
  validateCapabilityWithEnvelope
14
- } from "./chunk-EOYSKMXN.js";
14
+ } from "./chunk-VZZNLV3I.js";
15
15
  import {
16
16
  findGatewayDomain,
17
17
  listCapabilityDiscoveryPrefixes,
@@ -20,20 +20,20 @@ import {
20
20
  } from "./chunk-KPQY44JQ.js";
21
21
  import {
22
22
  resolveHost
23
- } from "./chunk-7QXISROD.js";
23
+ } from "./chunk-OP44TT4H.js";
24
24
  import {
25
25
  printError,
26
26
  printOutput,
27
27
  withOutputMetadata
28
- } from "./chunk-KFNMQTZI.js";
28
+ } from "./chunk-6VNIR4AP.js";
29
29
  import "./chunk-Y74WTIKJ.js";
30
30
  import {
31
31
  CredentialStoreUnreadableError,
32
32
  SecureStoreAuthError
33
- } from "./chunk-GIK6EDUG.js";
33
+ } from "./chunk-GHXZK54S.js";
34
34
  import {
35
35
  safeJsonParse
36
- } from "./chunk-UQ77JXYH.js";
36
+ } from "./chunk-ZL7SGNIA.js";
37
37
  import {
38
38
  CliValidationError,
39
39
  PermissionError
@@ -4,11 +4,11 @@ import {
4
4
  } from "./chunk-Y74WTIKJ.js";
5
5
  import {
6
6
  getCliToken
7
- } from "./chunk-GIK6EDUG.js";
7
+ } from "./chunk-GHXZK54S.js";
8
8
  import {
9
9
  getActiveHost,
10
10
  getSandboxRuntimeRoot
11
- } from "./chunk-UQ77JXYH.js";
11
+ } from "./chunk-ZL7SGNIA.js";
12
12
  import {
13
13
  PermissionError,
14
14
  isApiErrorType
@@ -82,19 +82,27 @@ function readLegacyCredentials() {
82
82
  }
83
83
  }
84
84
  function tryLoadTeAgentSandboxCredentials() {
85
- const legacy = readLegacyCredentials();
86
- const persistent = readPersistentEnv();
87
- const url = process.env.TE_CLAUDE_BASE_URL || persistent?.TE_CLAUDE_BASE_URL || legacy?.url;
88
- if (typeof url !== "string" || !url) {
89
- return null;
85
+ const credentials = readSandboxCredentials();
86
+ return credentials.url ? { ...credentials, url: credentials.url } : null;
87
+ }
88
+ function readSandboxCredentials() {
89
+ let url = process.env.TE_CLAUDE_BASE_URL || null;
90
+ let sandboxId = process.env.SANDBOX_ID || null;
91
+ let sandboxSecretKey = process.env.SECRET_KEY || process.env.SANDBOX_SECRET_KEY || null;
92
+ if (!url || !sandboxId || !sandboxSecretKey) {
93
+ const persistent = readPersistentEnv();
94
+ url ||= persistent?.TE_CLAUDE_BASE_URL || null;
95
+ sandboxId ||= persistent?.SANDBOX_ID || null;
96
+ sandboxSecretKey ||= persistent?.SECRET_KEY || persistent?.SANDBOX_SECRET_KEY || null;
90
97
  }
91
- const sandboxId = process.env.SANDBOX_ID || persistent?.SANDBOX_ID || legacy?.sandboxId || null;
92
- const sandboxSecretKey = process.env.SECRET_KEY || process.env.SANDBOX_SECRET_KEY || persistent?.SECRET_KEY || persistent?.SANDBOX_SECRET_KEY || legacy?.sandboxSecretKey || legacy?.secretKey || null;
93
- return {
94
- url,
95
- sandboxId: typeof sandboxId === "string" ? sandboxId : null,
96
- sandboxSecretKey: typeof sandboxSecretKey === "string" ? sandboxSecretKey : null
97
- };
98
+ if (!url || !sandboxId || !sandboxSecretKey) {
99
+ const legacy = readLegacyCredentials();
100
+ url ||= typeof legacy?.url === "string" ? legacy.url : null;
101
+ sandboxId ||= typeof legacy?.sandboxId === "string" ? legacy.sandboxId : null;
102
+ const legacySecret = legacy?.sandboxSecretKey || legacy?.secretKey;
103
+ sandboxSecretKey ||= typeof legacySecret === "string" ? legacySecret : null;
104
+ }
105
+ return { url, sandboxId, sandboxSecretKey };
98
106
  }
99
107
  function getClaudeConfigDir() {
100
108
  const fromEnv = process.env.CLAUDE_CONFIG_DIR;
@@ -190,7 +198,16 @@ function teClaudeBaseFromActiveHost(hostOverride) {
190
198
  return resolveTeClaudeBaseUrl(h);
191
199
  }
192
200
  async function signRequest(method, path2, hostOverride, includeJsonContentType = true) {
193
- const sandboxCred = tryLoadTeAgentSandboxCredentials();
201
+ const configuredHost = hostOverride || getActiveHost();
202
+ const sandboxOnly = !hostOverride && (/* @__PURE__ */ new Set([
203
+ "/api/sandbox/models",
204
+ "/api/sandbox/models/select",
205
+ "/api/sandbox/sync/push",
206
+ "/api/sandbox/sync/push/skill",
207
+ "/api/sandbox/sync/pull",
208
+ "/api/sandbox/sync/pull/candidates"
209
+ ])).has(path2.split("?")[0]);
210
+ const sandboxCred = configuredHost && !sandboxOnly ? null : tryLoadTeAgentSandboxCredentials();
194
211
  if (!hostOverride && sandboxCred && sandboxCred.sandboxId && sandboxCred.sandboxSecretKey) {
195
212
  const headers = {
196
213
  "X-Sandbox-Id": sandboxCred.sandboxId,
@@ -212,7 +229,7 @@ async function signRequest(method, path2, hostOverride, includeJsonContentType =
212
229
  "Run ae-cli config set-host <url> to configure the service URL, or execute inside a te-agent sandbox"
213
230
  );
214
231
  }
215
- const hostForToken = hostOverride || getActiveHost() || baseUrl;
232
+ const hostForToken = configuredHost || baseUrl;
216
233
  const contentTypeHeader = includeJsonContentType && (method === "POST" || method === "PATCH" || method === "PUT") ? { "Content-Type": "application/json" } : {};
217
234
  const cliToken = await getCliToken(hostForToken);
218
235
  return {
@@ -499,7 +516,6 @@ async function uploadToMainApp(path2, formData, hostOverride) {
499
516
 
500
517
  export {
501
518
  TeAgentCredentialsError,
502
- tryLoadTeAgentSandboxCredentials,
503
519
  getClaudeConfigDir,
504
520
  resolveTeClaudeBaseUrl,
505
521
  TeAgentApiError,
@@ -1,13 +1,13 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  peekCliToken
4
- } from "./chunk-GIK6EDUG.js";
4
+ } from "./chunk-GHXZK54S.js";
5
5
  import {
6
6
  getActiveHost,
7
7
  getConfigDir,
8
8
  isAeSandboxRuntime,
9
9
  normalizeUrl
10
- } from "./chunk-UQ77JXYH.js";
10
+ } from "./chunk-ZL7SGNIA.js";
11
11
  import {
12
12
  logger
13
13
  } from "./chunk-WNGFSIOB.js";
@@ -1,14 +1,14 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  CapabilityGatewayError
4
- } from "./chunk-EOYSKMXN.js";
4
+ } from "./chunk-VZZNLV3I.js";
5
5
  import {
6
6
  SecureStoreAuthError,
7
7
  getCliToken
8
- } from "./chunk-GIK6EDUG.js";
8
+ } from "./chunk-GHXZK54S.js";
9
9
  import {
10
10
  safeJsonParse
11
- } from "./chunk-UQ77JXYH.js";
11
+ } from "./chunk-ZL7SGNIA.js";
12
12
  import {
13
13
  PermissionError
14
14
  } from "./chunk-WNGFSIOB.js";
@@ -3,7 +3,7 @@ import {
3
3
  CapabilityGatewayError,
4
4
  fetchCapabilityGateway,
5
5
  requestCapabilityGateway
6
- } from "./chunk-EOYSKMXN.js";
6
+ } from "./chunk-VZZNLV3I.js";
7
7
  import {
8
8
  resolveGatewayDomain
9
9
  } from "./chunk-KPQY44JQ.js";
@@ -11,7 +11,7 @@ import {
11
11
  readOutputMetadata,
12
12
  unwrapOutputData,
13
13
  withOutputMetadata
14
- } from "./chunk-KFNMQTZI.js";
14
+ } from "./chunk-6VNIR4AP.js";
15
15
  import {
16
16
  PermissionError
17
17
  } from "./chunk-WNGFSIOB.js";
@@ -7,7 +7,7 @@ import {
7
7
  postToMainApp,
8
8
  putToMainApp,
9
9
  uploadToMainApp
10
- } from "./chunk-PLE722AJ.js";
10
+ } from "./chunk-3YVEAZUN.js";
11
11
 
12
12
  // src/commands/te-agent/api-client.ts
13
13
  function getAgentApi(ctx, path) {
@@ -6,7 +6,7 @@ import {
6
6
  normalizeUrl,
7
7
  safeJsonParse,
8
8
  safeReadJsonFile
9
- } from "./chunk-UQ77JXYH.js";
9
+ } from "./chunk-ZL7SGNIA.js";
10
10
  import {
11
11
  PermissionError,
12
12
  logger
@@ -3,13 +3,13 @@ import {
3
3
  dryRunCapability,
4
4
  executeCapabilityWithEnvelope,
5
5
  validateCapability
6
- } from "./chunk-EOYSKMXN.js";
6
+ } from "./chunk-VZZNLV3I.js";
7
7
  import {
8
8
  resolveGatewayDomain
9
9
  } from "./chunk-KPQY44JQ.js";
10
10
  import {
11
11
  withOutputMetadata
12
- } from "./chunk-KFNMQTZI.js";
12
+ } from "./chunk-6VNIR4AP.js";
13
13
  import {
14
14
  CliValidationError
15
15
  } from "./chunk-WNGFSIOB.js";
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  getActiveHost,
4
4
  normalizeUrl
5
- } from "./chunk-UQ77JXYH.js";
5
+ } from "./chunk-ZL7SGNIA.js";
6
6
 
7
7
  // src/core/auth.ts
8
8
  function resolveHost(hostOverride) {
@@ -9,11 +9,11 @@ import {
9
9
  postAgentApi,
10
10
  putAgentApi,
11
11
  uploadAgentApi
12
- } from "./chunk-4655PUNX.js";
12
+ } from "./chunk-CI24BDR2.js";
13
13
  import {
14
14
  TeAgentApiError,
15
15
  createTeAgentApiError
16
- } from "./chunk-PLE722AJ.js";
16
+ } from "./chunk-3YVEAZUN.js";
17
17
  import {
18
18
  CliValidationError,
19
19
  isApiErrorType
@@ -3,7 +3,7 @@ import {
3
3
  getAgentApi,
4
4
  patchAgentApi,
5
5
  postAgentApi
6
- } from "./chunk-4655PUNX.js";
6
+ } from "./chunk-CI24BDR2.js";
7
7
 
8
8
  // src/commands/memory/cli-client.ts
9
9
  var DEFAULT_TE_CLAUDE_BASE_PATH = "/agent";
@@ -6,10 +6,10 @@ import {
6
6
  SecureStoreAuthError,
7
7
  clearCliTokenCache,
8
8
  getCliToken
9
- } from "./chunk-GIK6EDUG.js";
9
+ } from "./chunk-GHXZK54S.js";
10
10
  import {
11
11
  safeJsonParse
12
- } from "./chunk-UQ77JXYH.js";
12
+ } from "./chunk-ZL7SGNIA.js";
13
13
  import {
14
14
  PermissionError
15
15
  } from "./chunk-WNGFSIOB.js";
@@ -284,6 +284,7 @@ export {
284
284
  normalizeUrl,
285
285
  getSandboxRuntimeRoot,
286
286
  isAeSandboxRuntime,
287
+ readSandboxCliTokenEntry,
287
288
  getFallbackCliToken,
288
289
  loadConfig,
289
290
  saveConfig,
@@ -12,10 +12,10 @@ import {
12
12
  printError,
13
13
  printOutput,
14
14
  resolveKbAutoDiscoveryFeature
15
- } from "./chunk-KFNMQTZI.js";
15
+ } from "./chunk-6VNIR4AP.js";
16
16
  import {
17
17
  peekCliToken
18
- } from "./chunk-GIK6EDUG.js";
18
+ } from "./chunk-GHXZK54S.js";
19
19
  import {
20
20
  addHost,
21
21
  getActiveHost,
@@ -26,7 +26,7 @@ import {
26
26
  resolveHostSelector,
27
27
  setActiveHost,
28
28
  updateHostLabel
29
- } from "./chunk-UQ77JXYH.js";
29
+ } from "./chunk-ZL7SGNIA.js";
30
30
  import "./chunk-WNGFSIOB.js";
31
31
 
32
32
  // src/commands/config.ts
@@ -2,12 +2,12 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  TeAgentApiError,
4
4
  getFromMainApp
5
- } from "./chunk-PLE722AJ.js";
5
+ } from "./chunk-3YVEAZUN.js";
6
6
  import "./chunk-Y74WTIKJ.js";
7
- import "./chunk-GIK6EDUG.js";
7
+ import "./chunk-GHXZK54S.js";
8
8
  import {
9
9
  safeJsonParse
10
- } from "./chunk-UQ77JXYH.js";
10
+ } from "./chunk-ZL7SGNIA.js";
11
11
  import {
12
12
  CliValidationError
13
13
  } from "./chunk-WNGFSIOB.js";
@@ -16,7 +16,7 @@ import {
16
16
  import "./chunk-S6M42KND.js";
17
17
  import {
18
18
  getConfigDir
19
- } from "./chunk-UQ77JXYH.js";
19
+ } from "./chunk-ZL7SGNIA.js";
20
20
  import {
21
21
  CliValidationError,
22
22
  LocalDataUploadError,
package/dist/index.js CHANGED
@@ -24,15 +24,15 @@ import "./chunk-S6M42KND.js";
24
24
  import {
25
25
  TeAgentApiError,
26
26
  TeAgentCredentialsError
27
- } from "./chunk-PLE722AJ.js";
27
+ } from "./chunk-3YVEAZUN.js";
28
28
  import {
29
29
  CapabilityGatewayError,
30
30
  executeCapability,
31
31
  uploadInputFileBytes
32
- } from "./chunk-EOYSKMXN.js";
32
+ } from "./chunk-VZZNLV3I.js";
33
33
  import {
34
34
  resolveHost
35
- } from "./chunk-7QXISROD.js";
35
+ } from "./chunk-OP44TT4H.js";
36
36
  import {
37
37
  failInstallation,
38
38
  fetchCliConfig,
@@ -45,19 +45,19 @@ import {
45
45
  resolveKbAutoDiscoveryFeature,
46
46
  runHostCompatCheck,
47
47
  shouldSkipAutoSync
48
- } from "./chunk-KFNMQTZI.js";
48
+ } from "./chunk-6VNIR4AP.js";
49
49
  import "./chunk-Y74WTIKJ.js";
50
50
  import {
51
51
  CredentialStoreUnreadableError,
52
52
  SecureStoreAuthError,
53
53
  getCliToken,
54
54
  peekCliToken
55
- } from "./chunk-GIK6EDUG.js";
55
+ } from "./chunk-GHXZK54S.js";
56
56
  import {
57
57
  getActiveHost,
58
58
  getConfigDir,
59
59
  safeJsonParse
60
- } from "./chunk-UQ77JXYH.js";
60
+ } from "./chunk-ZL7SGNIA.js";
61
61
  import {
62
62
  CliApiError,
63
63
  CliValidationError,
@@ -2435,105 +2435,105 @@ function warnLoadFailure(label, err) {
2435
2435
  async function loadCommands() {
2436
2436
  const commands = [];
2437
2437
  try {
2438
- const teAnalysis = await import("./te-analysis-2ECAAIFK.js");
2438
+ const teAnalysis = await import("./te-analysis-GP7DSQ7Q.js");
2439
2439
  commands.push(...teAnalysis.default);
2440
2440
  } catch (err) {
2441
2441
  warnLoadFailure("domain te-analysis", err);
2442
2442
  }
2443
2443
  try {
2444
- const engage = await import("./te-engage-QKUGIWSR.js");
2444
+ const engage = await import("./te-engage-2CO6LRCX.js");
2445
2445
  commands.push(...engage.default);
2446
2446
  } catch (err) {
2447
2447
  warnLoadFailure("domain te-engage", err);
2448
2448
  }
2449
2449
  try {
2450
- const experiment = await import("./te-experiment-26PXR2UO.js");
2450
+ const experiment = await import("./te-experiment-652CLXMU.js");
2451
2451
  commands.push(...experiment.default);
2452
2452
  } catch (err) {
2453
2453
  warnLoadFailure("domain te-experiment", err);
2454
2454
  }
2455
2455
  try {
2456
- const community = await import("./te-community-PFLDLPP4.js");
2456
+ const community = await import("./te-community-42M7ICDO.js");
2457
2457
  commands.push(...community.default);
2458
2458
  } catch (err) {
2459
2459
  warnLoadFailure("domain te-community", err);
2460
2460
  }
2461
2461
  try {
2462
- const dataops = await import("./te-dataops-FOQSRIAZ.js");
2462
+ const dataops = await import("./te-dataops-BNKNZ4F2.js");
2463
2463
  commands.push(...dataops.default);
2464
2464
  } catch (err) {
2465
2465
  warnLoadFailure("domain te-dataops", err);
2466
2466
  }
2467
2467
  try {
2468
- const teKb = await import("./te-kb-MHDOST62.js");
2468
+ const teKb = await import("./te-kb-ULATOTQ3.js");
2469
2469
  commands.push(...teKb.default);
2470
2470
  } catch (err) {
2471
2471
  warnLoadFailure("domain te-kb", err);
2472
2472
  }
2473
2473
  try {
2474
- const teTeam = await import("./te-team-5UOZPTU3.js");
2474
+ const teTeam = await import("./te-team-YA6SNOJ3.js");
2475
2475
  commands.push(...teTeam.default);
2476
2476
  } catch (err) {
2477
2477
  warnLoadFailure("domain te-team", err);
2478
2478
  }
2479
2479
  try {
2480
- const teAgent = await import("./te-agent-F5QBZSQA.js");
2480
+ const teAgent = await import("./te-agent-AORRE2FM.js");
2481
2481
  commands.push(...teAgent.default);
2482
2482
  } catch (err) {
2483
2483
  warnLoadFailure("domain te-agent", err);
2484
2484
  }
2485
2485
  try {
2486
- const memory = await import("./memory-62BJOULV.js");
2486
+ const memory = await import("./memory-CQKH2JAV.js");
2487
2487
  commands.push(...memory.default);
2488
2488
  } catch (err) {
2489
2489
  warnLoadFailure("domain memory", err);
2490
2490
  }
2491
- const automation = await import("./automation-NWWVLWG2.js");
2491
+ const automation = await import("./automation-VAAQBM7Y.js");
2492
2492
  commands.push(...automation.default);
2493
2493
  try {
2494
- const things = await import("./things-VPPXXLHB.js");
2494
+ const things = await import("./things-DTCOQIQB.js");
2495
2495
  commands.push(...things.default);
2496
2496
  } catch (err) {
2497
2497
  warnLoadFailure("domain things", err);
2498
2498
  }
2499
2499
  try {
2500
- const workspace = await import("./workspace-O3EEIYQM.js");
2500
+ const workspace = await import("./workspace-JEOHKFPX.js");
2501
2501
  commands.push(...workspace.default);
2502
2502
  } catch (err) {
2503
2503
  warnLoadFailure("domain workspace", err);
2504
2504
  }
2505
2505
  try {
2506
- const teSystem = await import("./te-system-J2FQF5ER.js");
2506
+ const teSystem = await import("./te-system-UGHVKBVV.js");
2507
2507
  commands.push(...teSystem.default);
2508
2508
  } catch (err) {
2509
2509
  warnLoadFailure("domain te-system", err);
2510
2510
  }
2511
2511
  try {
2512
- const metadata = await import("./metadata-C7CEDHOJ.js");
2512
+ const metadata = await import("./metadata-NR3PHR23.js");
2513
2513
  commands.push(...metadata.default);
2514
2514
  } catch (err) {
2515
2515
  warnLoadFailure("domain metadata", err);
2516
2516
  }
2517
2517
  try {
2518
- const personalSemanticPreference = await import("./personal-semantic-preference-QECDPHND.js");
2518
+ const personalSemanticPreference = await import("./personal-semantic-preference-2RAI36P3.js");
2519
2519
  commands.push(...personalSemanticPreference.default);
2520
2520
  } catch (err) {
2521
2521
  warnLoadFailure("domain personal-semantic-preference", err);
2522
2522
  }
2523
2523
  try {
2524
- const projectSemantic = await import("./project-semantic-Z4QAMBWF.js");
2524
+ const projectSemantic = await import("./project-semantic-3BUGP3ZM.js");
2525
2525
  commands.push(...projectSemantic.default);
2526
2526
  } catch (err) {
2527
2527
  warnLoadFailure("domain project-semantic", err);
2528
2528
  }
2529
2529
  try {
2530
- const dataIntegration = await import("./data-integration-HESZET7E.js");
2530
+ const dataIntegration = await import("./data-integration-BCLQFTGU.js");
2531
2531
  commands.push(...dataIntegration.default);
2532
2532
  } catch (err) {
2533
2533
  warnLoadFailure("domain data-integration", err);
2534
2534
  }
2535
2535
  try {
2536
- const context = await import("./context-YAE3QXP3.js");
2536
+ const context = await import("./context-NGVFPCBK.js");
2537
2537
  commands.push(...context.default);
2538
2538
  } catch (err) {
2539
2539
  warnLoadFailure("domain context", err);
@@ -2542,7 +2542,7 @@ async function loadCommands() {
2542
2542
  }
2543
2543
  async function registerAuthCommands() {
2544
2544
  try {
2545
- const { registerAuth } = await import("./auth-YHMC3GDH.js");
2545
+ const { registerAuth } = await import("./auth-WA7YGGRT.js");
2546
2546
  registerAuth(program);
2547
2547
  } catch (err) {
2548
2548
  warnLoadFailure("auth commands", err);
@@ -2550,7 +2550,7 @@ async function registerAuthCommands() {
2550
2550
  }
2551
2551
  async function registerConfigCommands() {
2552
2552
  try {
2553
- const { registerConfig } = await import("./config-AHPMEW5A.js");
2553
+ const { registerConfig } = await import("./config-JOD5DOPE.js");
2554
2554
  registerConfig(program);
2555
2555
  } catch (err) {
2556
2556
  warnLoadFailure("config commands", err);
@@ -2558,7 +2558,7 @@ async function registerConfigCommands() {
2558
2558
  }
2559
2559
  async function registerCapabilityCommands() {
2560
2560
  try {
2561
- const { registerCapability } = await import("./capability-3QLLIVFB.js");
2561
+ const { registerCapability } = await import("./capability-GAAYJ3IQ.js");
2562
2562
  registerCapability(program);
2563
2563
  } catch (err) {
2564
2564
  warnLoadFailure("capability commands", err);
@@ -2566,7 +2566,7 @@ async function registerCapabilityCommands() {
2566
2566
  }
2567
2567
  async function registerSyncCommand() {
2568
2568
  try {
2569
- const { registerSync } = await import("./sync-SU33KYX7.js");
2569
+ const { registerSync } = await import("./sync-RZIAV37C.js");
2570
2570
  registerSync(program);
2571
2571
  } catch (err) {
2572
2572
  warnLoadFailure("sync commands", err);
@@ -2574,7 +2574,7 @@ async function registerSyncCommand() {
2574
2574
  }
2575
2575
  async function registerModelCommand() {
2576
2576
  try {
2577
- const { registerModel } = await import("./model-SBV2JFJI.js");
2577
+ const { registerModel } = await import("./model-VX5M2CJ6.js");
2578
2578
  registerModel(program);
2579
2579
  } catch (err) {
2580
2580
  warnLoadFailure("model commands", err);
@@ -2582,7 +2582,7 @@ async function registerModelCommand() {
2582
2582
  }
2583
2583
  async function registerUpdateCommand() {
2584
2584
  try {
2585
- const { registerUpdate } = await import("./update-EEUTEI6R.js");
2585
+ const { registerUpdate } = await import("./update-ESNYKUVR.js");
2586
2586
  registerUpdate(program);
2587
2587
  } catch (err) {
2588
2588
  warnLoadFailure("update commands", err);
@@ -4,15 +4,15 @@ import {
4
4
  getMemoryCli,
5
5
  patchMemoryCli,
6
6
  postMemoryCli
7
- } from "./chunk-D6ACFILC.js";
7
+ } from "./chunk-RPBOAQQQ.js";
8
8
  import {
9
9
  currentAgentSpaceId
10
10
  } from "./chunk-RK6GLDGI.js";
11
- import "./chunk-4655PUNX.js";
12
- import "./chunk-PLE722AJ.js";
11
+ import "./chunk-CI24BDR2.js";
12
+ import "./chunk-3YVEAZUN.js";
13
13
  import "./chunk-Y74WTIKJ.js";
14
- import "./chunk-GIK6EDUG.js";
15
- import "./chunk-UQ77JXYH.js";
14
+ import "./chunk-GHXZK54S.js";
15
+ import "./chunk-ZL7SGNIA.js";
16
16
  import {
17
17
  CliValidationError
18
18
  } from "./chunk-WNGFSIOB.js";
@@ -1,18 +1,18 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  withAsyncArtifactLifecycle
4
- } from "./chunk-XCHAYMSF.js";
4
+ } from "./chunk-AQJPNWZF.js";
5
5
  import {
6
6
  createCapabilityCommand
7
- } from "./chunk-KAEHZZH4.js";
8
- import "./chunk-EOYSKMXN.js";
7
+ } from "./chunk-MWIA43UJ.js";
8
+ import "./chunk-VZZNLV3I.js";
9
9
  import {
10
10
  registerCapabilityGatewayRoute
11
11
  } from "./chunk-KPQY44JQ.js";
12
- import "./chunk-KFNMQTZI.js";
12
+ import "./chunk-6VNIR4AP.js";
13
13
  import "./chunk-Y74WTIKJ.js";
14
- import "./chunk-GIK6EDUG.js";
15
- import "./chunk-UQ77JXYH.js";
14
+ import "./chunk-GHXZK54S.js";
15
+ import "./chunk-ZL7SGNIA.js";
16
16
  import "./chunk-WNGFSIOB.js";
17
17
 
18
18
  // src/commands/metadata/shared.ts
@@ -15,10 +15,10 @@ import {
15
15
  getClaudeConfigDir,
16
16
  getSandboxModels,
17
17
  postSandboxModelSelection
18
- } from "./chunk-PLE722AJ.js";
18
+ } from "./chunk-3YVEAZUN.js";
19
19
  import "./chunk-Y74WTIKJ.js";
20
- import "./chunk-GIK6EDUG.js";
21
- import "./chunk-UQ77JXYH.js";
20
+ import "./chunk-GHXZK54S.js";
21
+ import "./chunk-ZL7SGNIA.js";
22
22
  import "./chunk-WNGFSIOB.js";
23
23
 
24
24
  // src/commands/model/index.ts
@@ -1,15 +1,15 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  createCapabilityCommand
4
- } from "./chunk-KAEHZZH4.js";
5
- import "./chunk-EOYSKMXN.js";
4
+ } from "./chunk-MWIA43UJ.js";
5
+ import "./chunk-VZZNLV3I.js";
6
6
  import {
7
7
  registerCapabilityGatewayRoute
8
8
  } from "./chunk-KPQY44JQ.js";
9
- import "./chunk-KFNMQTZI.js";
9
+ import "./chunk-6VNIR4AP.js";
10
10
  import "./chunk-Y74WTIKJ.js";
11
- import "./chunk-GIK6EDUG.js";
12
- import "./chunk-UQ77JXYH.js";
11
+ import "./chunk-GHXZK54S.js";
12
+ import "./chunk-ZL7SGNIA.js";
13
13
  import "./chunk-WNGFSIOB.js";
14
14
 
15
15
  // src/commands/personal-semantic-preference/shared.ts
@@ -3,21 +3,21 @@ import {
3
3
  assertOutputPathAvailable,
4
4
  downloadAnalysisArtifact,
5
5
  withAsyncArtifactLifecycle
6
- } from "./chunk-XCHAYMSF.js";
6
+ } from "./chunk-AQJPNWZF.js";
7
7
  import {
8
8
  CapabilityGatewayError,
9
9
  dryRunCapability,
10
10
  executeCapabilityWithEnvelope,
11
11
  validateCapability
12
- } from "./chunk-EOYSKMXN.js";
12
+ } from "./chunk-VZZNLV3I.js";
13
13
  import {
14
14
  registerCapabilityGatewayRoute,
15
15
  resolveGatewayDomain
16
16
  } from "./chunk-KPQY44JQ.js";
17
- import "./chunk-KFNMQTZI.js";
17
+ import "./chunk-6VNIR4AP.js";
18
18
  import "./chunk-Y74WTIKJ.js";
19
- import "./chunk-GIK6EDUG.js";
20
- import "./chunk-UQ77JXYH.js";
19
+ import "./chunk-GHXZK54S.js";
20
+ import "./chunk-ZL7SGNIA.js";
21
21
  import "./chunk-WNGFSIOB.js";
22
22
 
23
23
  // src/commands/project-semantic/asset-package/materializer.ts
@@ -33,13 +33,13 @@ import {
33
33
  postSandboxSyncPull,
34
34
  postToMainApp,
35
35
  uploadToMainApp
36
- } from "./chunk-PLE722AJ.js";
36
+ } from "./chunk-3YVEAZUN.js";
37
37
  import {
38
38
  printError
39
- } from "./chunk-KFNMQTZI.js";
39
+ } from "./chunk-6VNIR4AP.js";
40
40
  import "./chunk-Y74WTIKJ.js";
41
- import "./chunk-GIK6EDUG.js";
42
- import "./chunk-UQ77JXYH.js";
41
+ import "./chunk-GHXZK54S.js";
42
+ import "./chunk-ZL7SGNIA.js";
43
43
  import {
44
44
  __toESM
45
45
  } from "./chunk-WNGFSIOB.js";
@@ -11,7 +11,7 @@ import {
11
11
  workspaceResourcePath,
12
12
  workspaceTargetFlags,
13
13
  workspaceTargetPath
14
- } from "./chunk-HVHR4SCP.js";
14
+ } from "./chunk-Q5US7JC5.js";
15
15
  import {
16
16
  currentAgentSpaceId
17
17
  } from "./chunk-RK6GLDGI.js";
@@ -23,17 +23,17 @@ import {
23
23
  postAgentApi,
24
24
  putAgentApi,
25
25
  uploadAgentApi
26
- } from "./chunk-4655PUNX.js";
26
+ } from "./chunk-CI24BDR2.js";
27
27
  import {
28
28
  resolveTeClaudeBaseUrl
29
- } from "./chunk-PLE722AJ.js";
29
+ } from "./chunk-3YVEAZUN.js";
30
30
  import {
31
31
  buildCapabilityGatewayUrl,
32
32
  callCapabilityApi
33
- } from "./chunk-EOYSKMXN.js";
33
+ } from "./chunk-VZZNLV3I.js";
34
34
  import "./chunk-Y74WTIKJ.js";
35
- import "./chunk-GIK6EDUG.js";
36
- import "./chunk-UQ77JXYH.js";
35
+ import "./chunk-GHXZK54S.js";
36
+ import "./chunk-ZL7SGNIA.js";
37
37
  import {
38
38
  CliValidationError
39
39
  } from "./chunk-WNGFSIOB.js";
@@ -7,12 +7,12 @@ import {
7
7
  waitForAnalysisRun,
8
8
  withAsyncArtifactLifecycle,
9
9
  withInterruptSignal
10
- } from "./chunk-XCHAYMSF.js";
10
+ } from "./chunk-AQJPNWZF.js";
11
11
  import {
12
12
  createCapabilityCommand,
13
13
  definitionIntentSnapshotFlag,
14
14
  modelDefinitionIntentSnapshotFlag
15
- } from "./chunk-KAEHZZH4.js";
15
+ } from "./chunk-MWIA43UJ.js";
16
16
  import {
17
17
  CapabilityGatewayError,
18
18
  buildCapabilityGatewayUrl,
@@ -26,19 +26,19 @@ import {
26
26
  uploadInputFile,
27
27
  validateCapability,
28
28
  validateCapabilityWithEnvelope
29
- } from "./chunk-EOYSKMXN.js";
29
+ } from "./chunk-VZZNLV3I.js";
30
30
  import {
31
31
  registerCapabilityGatewayRoute,
32
32
  resolveGatewayDomain
33
33
  } from "./chunk-KPQY44JQ.js";
34
34
  import {
35
35
  withOutputMetadata
36
- } from "./chunk-KFNMQTZI.js";
36
+ } from "./chunk-6VNIR4AP.js";
37
37
  import "./chunk-Y74WTIKJ.js";
38
38
  import {
39
39
  getCliToken
40
- } from "./chunk-GIK6EDUG.js";
41
- import "./chunk-UQ77JXYH.js";
40
+ } from "./chunk-GHXZK54S.js";
41
+ import "./chunk-ZL7SGNIA.js";
42
42
  import {
43
43
  CliValidationError
44
44
  } from "./chunk-WNGFSIOB.js";
@@ -8,11 +8,11 @@ import {
8
8
  import {
9
9
  SecureStoreAuthError,
10
10
  getCliToken
11
- } from "./chunk-GIK6EDUG.js";
11
+ } from "./chunk-GHXZK54S.js";
12
12
  import {
13
13
  getActiveHost,
14
14
  safeJsonParse
15
- } from "./chunk-UQ77JXYH.js";
15
+ } from "./chunk-ZL7SGNIA.js";
16
16
  import {
17
17
  CliValidationError,
18
18
  PermissionError,
@@ -1,20 +1,20 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  resolveHost
4
- } from "./chunk-7QXISROD.js";
4
+ } from "./chunk-OP44TT4H.js";
5
5
  import {
6
6
  printError
7
- } from "./chunk-KFNMQTZI.js";
7
+ } from "./chunk-6VNIR4AP.js";
8
8
  import {
9
9
  internalCallSourceHeaders
10
10
  } from "./chunk-Y74WTIKJ.js";
11
11
  import {
12
12
  SecureStoreAuthError,
13
13
  getCliToken
14
- } from "./chunk-GIK6EDUG.js";
14
+ } from "./chunk-GHXZK54S.js";
15
15
  import {
16
16
  safeJsonParse
17
- } from "./chunk-UQ77JXYH.js";
17
+ } from "./chunk-ZL7SGNIA.js";
18
18
  import {
19
19
  CliApiError,
20
20
  CliValidationError,
@@ -1,14 +1,14 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  createCapabilityCommand
4
- } from "./chunk-KAEHZZH4.js";
4
+ } from "./chunk-MWIA43UJ.js";
5
5
  import {
6
6
  CapabilityGatewayError,
7
7
  buildCapabilityGatewayUrl,
8
8
  fetchCapabilityGateway,
9
9
  requestCapabilityGateway,
10
10
  requestCapabilityGatewayWithEnvelope
11
- } from "./chunk-EOYSKMXN.js";
11
+ } from "./chunk-VZZNLV3I.js";
12
12
  import {
13
13
  registerCapabilityGatewayRoute,
14
14
  resolveGatewayDomain
@@ -16,10 +16,10 @@ import {
16
16
  import {
17
17
  printError,
18
18
  withOutputMetadata
19
- } from "./chunk-KFNMQTZI.js";
19
+ } from "./chunk-6VNIR4AP.js";
20
20
  import "./chunk-Y74WTIKJ.js";
21
- import "./chunk-GIK6EDUG.js";
22
- import "./chunk-UQ77JXYH.js";
21
+ import "./chunk-GHXZK54S.js";
22
+ import "./chunk-ZL7SGNIA.js";
23
23
  import {
24
24
  CliValidationError
25
25
  } from "./chunk-WNGFSIOB.js";
@@ -1,15 +1,15 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  createCapabilityCommand
4
- } from "./chunk-KAEHZZH4.js";
5
- import "./chunk-EOYSKMXN.js";
4
+ } from "./chunk-MWIA43UJ.js";
5
+ import "./chunk-VZZNLV3I.js";
6
6
  import {
7
7
  registerCapabilityGatewayRoute
8
8
  } from "./chunk-KPQY44JQ.js";
9
- import "./chunk-KFNMQTZI.js";
9
+ import "./chunk-6VNIR4AP.js";
10
10
  import "./chunk-Y74WTIKJ.js";
11
- import "./chunk-GIK6EDUG.js";
12
- import "./chunk-UQ77JXYH.js";
11
+ import "./chunk-GHXZK54S.js";
12
+ import "./chunk-ZL7SGNIA.js";
13
13
  import "./chunk-WNGFSIOB.js";
14
14
 
15
15
  // src/commands/te-experiment/capability-shared.ts
@@ -2,19 +2,19 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  kbApi,
4
4
  kbUpload
5
- } from "./chunk-FMNNGNYO.js";
5
+ } from "./chunk-7KU2WNQE.js";
6
6
  import {
7
7
  TeAgentApiError
8
- } from "./chunk-PLE722AJ.js";
8
+ } from "./chunk-3YVEAZUN.js";
9
9
  import {
10
10
  CapabilityGatewayError
11
- } from "./chunk-EOYSKMXN.js";
11
+ } from "./chunk-VZZNLV3I.js";
12
12
  import {
13
13
  printError
14
- } from "./chunk-KFNMQTZI.js";
14
+ } from "./chunk-6VNIR4AP.js";
15
15
  import "./chunk-Y74WTIKJ.js";
16
- import "./chunk-GIK6EDUG.js";
17
- import "./chunk-UQ77JXYH.js";
16
+ import "./chunk-GHXZK54S.js";
17
+ import "./chunk-ZL7SGNIA.js";
18
18
  import {
19
19
  CliValidationError,
20
20
  PermissionError
@@ -11,14 +11,15 @@ import {
11
11
  patchToMainApp,
12
12
  postToMainApp,
13
13
  putToMainApp,
14
- tryLoadTeAgentSandboxCredentials,
15
14
  uploadToMainApp
16
- } from "./chunk-PLE722AJ.js";
15
+ } from "./chunk-3YVEAZUN.js";
17
16
  import "./chunk-Y74WTIKJ.js";
18
- import "./chunk-GIK6EDUG.js";
17
+ import "./chunk-GHXZK54S.js";
19
18
  import {
19
+ isAeSandboxRuntime,
20
+ readSandboxCliTokenEntry,
20
21
  safeJsonParse
21
- } from "./chunk-UQ77JXYH.js";
22
+ } from "./chunk-ZL7SGNIA.js";
22
23
  import {
23
24
  CliValidationError,
24
25
  PermissionError,
@@ -2369,8 +2370,8 @@ async function requireUploadPolicy(ctx) {
2369
2370
  return policy;
2370
2371
  }
2371
2372
  function requireLinuxSandbox() {
2372
- const credentials = tryLoadTeAgentSandboxCredentials();
2373
- if (process.platform !== "linux" || !credentials?.sandboxId || !credentials.sandboxSecretKey) {
2373
+ const legacyRuntime = Boolean(process.env.SANDBOX_ID && (process.env.SECRET_KEY || process.env.SANDBOX_SECRET_KEY));
2374
+ if (process.platform !== "linux" || !(isAeSandboxRuntime() || legacyRuntime || readSandboxCliTokenEntry())) {
2374
2375
  throw new CliValidationError(
2375
2376
  "+npm-install must run inside a Linux te-agent sandbox",
2376
2377
  {
@@ -2,15 +2,15 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  getAuthHeaders,
4
4
  kbApi
5
- } from "./chunk-FMNNGNYO.js";
6
- import "./chunk-EOYSKMXN.js";
5
+ } from "./chunk-7KU2WNQE.js";
6
+ import "./chunk-VZZNLV3I.js";
7
7
  import {
8
8
  printError,
9
9
  printOutput
10
- } from "./chunk-KFNMQTZI.js";
10
+ } from "./chunk-6VNIR4AP.js";
11
11
  import "./chunk-Y74WTIKJ.js";
12
- import "./chunk-GIK6EDUG.js";
13
- import "./chunk-UQ77JXYH.js";
12
+ import "./chunk-GHXZK54S.js";
13
+ import "./chunk-ZL7SGNIA.js";
14
14
  import "./chunk-WNGFSIOB.js";
15
15
 
16
16
  // src/commands/te-team/shared.ts
@@ -1,17 +1,17 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  resolveMemoryApiBaseUrl
4
- } from "./chunk-D6ACFILC.js";
5
- import "./chunk-4655PUNX.js";
6
- import "./chunk-PLE722AJ.js";
4
+ } from "./chunk-RPBOAQQQ.js";
5
+ import "./chunk-CI24BDR2.js";
6
+ import "./chunk-3YVEAZUN.js";
7
7
  import {
8
8
  CapabilityGatewayError,
9
9
  buildCapabilityGatewayUrl,
10
10
  callCapabilityApi
11
- } from "./chunk-EOYSKMXN.js";
11
+ } from "./chunk-VZZNLV3I.js";
12
12
  import "./chunk-Y74WTIKJ.js";
13
- import "./chunk-GIK6EDUG.js";
14
- import "./chunk-UQ77JXYH.js";
13
+ import "./chunk-GHXZK54S.js";
14
+ import "./chunk-ZL7SGNIA.js";
15
15
  import {
16
16
  PermissionError
17
17
  } from "./chunk-WNGFSIOB.js";
@@ -14,13 +14,13 @@ import {
14
14
  printError,
15
15
  printOutput,
16
16
  recordVersionSyncResult
17
- } from "./chunk-KFNMQTZI.js";
17
+ } from "./chunk-6VNIR4AP.js";
18
18
  import {
19
19
  peekCliToken
20
- } from "./chunk-GIK6EDUG.js";
20
+ } from "./chunk-GHXZK54S.js";
21
21
  import {
22
22
  getActiveHost
23
- } from "./chunk-UQ77JXYH.js";
23
+ } from "./chunk-ZL7SGNIA.js";
24
24
  import "./chunk-WNGFSIOB.js";
25
25
 
26
26
  // src/commands/update.ts
@@ -13,15 +13,15 @@ import {
13
13
  workspaceResourcePath,
14
14
  workspaceTargetFlags,
15
15
  workspaceTargetPath
16
- } from "./chunk-HVHR4SCP.js";
16
+ } from "./chunk-Q5US7JC5.js";
17
17
  import "./chunk-RK6GLDGI.js";
18
18
  import {
19
19
  getAgentBuffer
20
- } from "./chunk-4655PUNX.js";
21
- import "./chunk-PLE722AJ.js";
20
+ } from "./chunk-CI24BDR2.js";
21
+ import "./chunk-3YVEAZUN.js";
22
22
  import "./chunk-Y74WTIKJ.js";
23
- import "./chunk-GIK6EDUG.js";
24
- import "./chunk-UQ77JXYH.js";
23
+ import "./chunk-GHXZK54S.js";
24
+ import "./chunk-ZL7SGNIA.js";
25
25
  import {
26
26
  CliValidationError
27
27
  } from "./chunk-WNGFSIOB.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkingai/ae-cli",
3
- "version": "6.1.26",
3
+ "version": "6.1.27",
4
4
  "description": "CLI tool for ThinkingAI (AE) analytics platform",
5
5
  "type": "module",
6
6
  "bin": {
@@ -49,7 +49,7 @@
49
49
  "verify:analysis-common-tools": "node scripts/verify-te-common-tools.mjs",
50
50
  "verify:experiment-tools": "node scripts/verify-te-experiment-tools.mjs && node --import tsx test/experiment/experiment-capability-command.test.mjs",
51
51
  "verify:team-tools": "node scripts/verify-te-team-tools.mjs",
52
- "verify:agent-tools": "node --test test/agent-command-registry.test.mjs && tsx tests/te-agent-credentials.test.ts && tsx tests/te-agent-unified-auth.test.ts && tsx tests/te-agent-conversations.test.ts && tsx scripts/verify-agent-tools.mjs && npm run verify:approval && npm run verify:agent-distribution && npm run verify:agent-context && npm run verify:sandbox-tools && npm run verify:notifications",
52
+ "verify:agent-tools": "node --test test/agent-command-registry.test.mjs && tsx tests/te-agent-credentials.test.ts && tsx tests/te-agent-unified-auth.test.ts && node --import tsx --test tests/te-agent-env-isolation.test.ts && tsx tests/te-agent-conversations.test.ts && tsx scripts/verify-agent-tools.mjs && npm run verify:approval && npm run verify:agent-distribution && npm run verify:agent-context && npm run verify:sandbox-tools && npm run verify:notifications",
53
53
  "verify:agent-context": "tsx tests/agent-context-command.test.ts",
54
54
  "verify:cli-agent-model-context": "tsx --test tests/cli-agent-model-context.test.ts",
55
55
  "verify:analysis-feedback": "tsx --test tests/analysis-feedback-command.test.ts",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-agent
3
- version: 2.0.0
3
+ version: 2.0.1
4
4
  description: "AE Agent platform CLI for Agent, notification, approval, archived conversation, model, MCP, Skill, attachment, and user-memory work. Use when managing these resources, browsing Agent markets, handling approval requests and tasks, restoring archived conversations, persisting user memory, or answering from user preferences, background, stable workflows, or historical conventions."
5
5
  ---
6
6
 
@@ -13,6 +13,8 @@ description: "AE Agent platform CLI for Agent, notification, approval, archived
13
13
  > **CRITICAL — Never guess record IDs (Agent / model / MCP / Skill / submission / share / attachment).** Always use the appropriate `+list-*` command to discover real IDs first.
14
14
  > **CRITICAL — Legacy Agent CRUD uses `/api/sandbox/agent/*`; Agent distribution and generic approvals use CLI-token-only `/api/cli/agent/v1/*` and `/api/cli/approval/v1/*`; AgentSpace memory uses `/api/cli/memory/v2/*`.** Do not use Web session, sandbox credentials, or memory v1 paths for CLI-token endpoints.
15
15
 
16
+ Agent API requests with an explicit or configured host use CLI-token authentication without reading legacy sandbox `.env` or `credentials.json` files. Legacy model/sync routes outside Agent CRUD retain sandbox identity for authentication and workspace updates. Do not change file permissions or copy secrets to work around authentication errors.
17
+
16
18
  `CREDENTIAL_STORE_UNREADABLE` (`error.type: config`) means local credentials exist but cannot be read or decrypted. Preserve the files and retry in the original OS user/runtime with machine-identifier access. Do not automatically log in, import another token, or log out; this error does not establish server-side token expiration.
17
19
 
18
20
  AE CLI (`ae-cli`) agent platform resource commands are invoked through: