@thinkingai/ae-cli 6.0.57 → 6.0.58

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 (44) hide show
  1. package/dist/{auth-YEIJLBFY.js → auth-A5OO4VS4.js} +6 -6
  2. package/dist/{automation-NAR5DDGL.js → automation-FD2QZUP6.js} +5 -5
  3. package/dist/{capability-P7DD4Q73.js → capability-SKI4GHF4.js} +6 -6
  4. package/dist/{chunk-IN7KKL6K.js → chunk-2F64AZYH.js} +1 -1
  5. package/dist/{chunk-JNVVJ273.js → chunk-4PSTYEG5.js} +5 -10
  6. package/dist/{chunk-QZUVLFNR.js → chunk-AWVZTN2B.js} +1 -1
  7. package/dist/{chunk-7JAVT5TK.js → chunk-E25OSZLJ.js} +2 -2
  8. package/dist/{chunk-7ABK2PEJ.js → chunk-EEARZNHE.js} +2 -2
  9. package/dist/{chunk-TULINOLS.js → chunk-GBSACKFB.js} +3 -3
  10. package/dist/{chunk-TKVVACEJ.js → chunk-HQCY3QCA.js} +2 -2
  11. package/dist/{chunk-RJHGDWSC.js → chunk-JSBLCLFE.js} +2 -2
  12. package/dist/{chunk-ZGIYG473.js → chunk-K2Z7QHDR.js} +3 -3
  13. package/dist/{chunk-QEMQKVHW.js → chunk-QWSA3EOD.js} +3 -3
  14. package/dist/{chunk-H3K5UGYC.js → chunk-SOSFRU3O.js} +1 -1
  15. package/dist/{chunk-JCWM2TYP.js → chunk-UYJMEHAF.js} +2 -2
  16. package/dist/{chunk-N6XBLRB7.js → chunk-VDICGXCY.js} +2 -2
  17. package/dist/{chunk-752BSLZC.js → chunk-WMDO53YK.js} +1 -1
  18. package/dist/{compat-check-PMEGUPZU.js → compat-check-WFEKVLTH.js} +3 -3
  19. package/dist/{config-VWVPR4WW.js → config-U4I7X25P.js} +5 -5
  20. package/dist/{context-F6FCGTF3.js → context-CDB5H5PD.js} +3 -3
  21. package/dist/{data-integration-6UAZO4GG.js → data-integration-QE37EQ3A.js} +1 -1
  22. package/dist/{evaluation-4LO2O4AF.js → evaluation-LR4YDYWL.js} +2 -2
  23. package/dist/index.js +31 -31
  24. package/dist/{memory-HHPX3NF2.js → memory-SNFR5M23.js} +5 -5
  25. package/dist/{metadata-HEQQEEG3.js → metadata-6QM6EED5.js} +7 -7
  26. package/dist/{model-7UHGWYVR.js → model-KEVCEXWD.js} +3 -3
  27. package/dist/{personal-semantic-preference-V4L6ZWR2.js → personal-semantic-preference-7VXQPP2N.js} +6 -6
  28. package/dist/{project-semantic-NKHKJX6M.js → project-semantic-PSEPYH2L.js} +6 -6
  29. package/dist/{sync-ZJMXCRIN.js → sync-22ACDK5Z.js} +5 -5
  30. package/dist/{te-agent-WBKIFEQD.js → te-agent-BJ36B4QI.js} +6 -6
  31. package/dist/{te-analysis-ADX7RKO4.js → te-analysis-WQ6D6YG4.js} +7 -7
  32. package/dist/{te-community-PREDRXG3.js → te-community-VRWMFGI6.js} +6 -6
  33. package/dist/{te-dataops-ITWJHO2U.js → te-dataops-YTLFTTW7.js} +5 -5
  34. package/dist/{te-engage-VE2NUH5V.js → te-engage-V2QW7TIC.js} +6 -6
  35. package/dist/{te-kb-WSMOW7WS.js → te-kb-4AQLISDR.js} +7 -7
  36. package/dist/{te-system-YM657FKO.js → te-system-CYWSK3UN.js} +3 -3
  37. package/dist/{te-team-T2WRLOOD.js → te-team-6ELNGBWT.js} +6 -6
  38. package/dist/{things-6QOMFXOG.js → things-HFWLGCUH.js} +6 -6
  39. package/dist/{update-I4MOUYOX.js → update-3CRVVHV5.js} +4 -4
  40. package/dist/{workspace-LYDAP647.js → workspace-2CKQX2XL.js} +5 -5
  41. package/package.json +1 -1
  42. package/skills/ae-kb/SKILL.md +5 -3
  43. package/skills/ae-kb/references/query-workflow.md +6 -5
  44. package/skills/ae-kb-discovery/SKILL.md +15 -6
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  invalidateBusinessSkillSynchronization,
4
4
  refreshEnvironmentAfterLogin
5
- } from "./chunk-ZGIYG473.js";
5
+ } from "./chunk-K2Z7QHDR.js";
6
6
  import {
7
7
  MultiselectCancelled,
8
8
  promptSingleSelect
@@ -13,15 +13,15 @@ import {
13
13
  } from "./chunk-6ZIQV5GW.js";
14
14
  import {
15
15
  resolveHost
16
- } from "./chunk-IN7KKL6K.js";
16
+ } from "./chunk-2F64AZYH.js";
17
17
  import {
18
18
  printError,
19
19
  printOutput
20
- } from "./chunk-752BSLZC.js";
20
+ } from "./chunk-WMDO53YK.js";
21
21
  import {
22
22
  getLocalCliPackageInfo,
23
23
  runHostCompatCheck
24
- } from "./chunk-TULINOLS.js";
24
+ } from "./chunk-GBSACKFB.js";
25
25
  import {
26
26
  CliTokenValidationUnavailableError,
27
27
  CredentialStoreUnreadableError,
@@ -37,12 +37,12 @@ import {
37
37
  saveCredential,
38
38
  updateCredentialMetadata,
39
39
  validateCliTokenOnServer
40
- } from "./chunk-H3K5UGYC.js";
40
+ } from "./chunk-SOSFRU3O.js";
41
41
  import {
42
42
  getFallbackCliToken,
43
43
  loadConfig,
44
44
  saveConfig
45
- } from "./chunk-JNVVJ273.js";
45
+ } from "./chunk-4PSTYEG5.js";
46
46
  import {
47
47
  ExternalCliTokenError,
48
48
  PermissionError,
@@ -1,21 +1,21 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  resolveWorkspaceTarget
4
- } from "./chunk-7JAVT5TK.js";
4
+ } from "./chunk-E25OSZLJ.js";
5
5
  import {
6
6
  currentAgentSpaceId
7
7
  } from "./chunk-RK6GLDGI.js";
8
- import "./chunk-N6XBLRB7.js";
8
+ import "./chunk-VDICGXCY.js";
9
9
  import {
10
10
  TeAgentApiError,
11
11
  deleteFromMainApp,
12
12
  getFromMainApp,
13
13
  patchToMainApp,
14
14
  postToMainApp
15
- } from "./chunk-RJHGDWSC.js";
15
+ } from "./chunk-JSBLCLFE.js";
16
16
  import "./chunk-Y74WTIKJ.js";
17
- import "./chunk-H3K5UGYC.js";
18
- import "./chunk-JNVVJ273.js";
17
+ import "./chunk-SOSFRU3O.js";
18
+ import "./chunk-4PSTYEG5.js";
19
19
  import "./chunk-Z3Q2AEIN.js";
20
20
 
21
21
  // src/commands/automation/index.ts
@@ -17,29 +17,29 @@ import {
17
17
  inspectCapabilityWithEnvelope,
18
18
  listCapabilitiesWithEnvelope,
19
19
  validateCapabilityWithEnvelope
20
- } from "./chunk-JCWM2TYP.js";
20
+ } from "./chunk-UYJMEHAF.js";
21
21
  import {
22
22
  resolveHost
23
- } from "./chunk-IN7KKL6K.js";
23
+ } from "./chunk-2F64AZYH.js";
24
24
  import {
25
25
  printError,
26
26
  printOutput,
27
27
  withOutputMetadata
28
- } from "./chunk-752BSLZC.js";
28
+ } from "./chunk-WMDO53YK.js";
29
29
  import "./chunk-Y74WTIKJ.js";
30
30
  import {
31
31
  assertBusinessEnabled,
32
32
  businessForCapability,
33
33
  readBusinessConfigForExecution,
34
34
  readCurrentBusinessConfig
35
- } from "./chunk-TULINOLS.js";
35
+ } from "./chunk-GBSACKFB.js";
36
36
  import {
37
37
  CredentialStoreUnreadableError,
38
38
  SecureStoreAuthError
39
- } from "./chunk-H3K5UGYC.js";
39
+ } from "./chunk-SOSFRU3O.js";
40
40
  import {
41
41
  parseJsonRequest
42
- } from "./chunk-JNVVJ273.js";
42
+ } from "./chunk-4PSTYEG5.js";
43
43
  import {
44
44
  CliValidationError,
45
45
  ExternalCliTokenError,
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  getActiveHost
4
- } from "./chunk-JNVVJ273.js";
4
+ } from "./chunk-4PSTYEG5.js";
5
5
  import {
6
6
  normalizeUrl
7
7
  } from "./chunk-Z3Q2AEIN.js";
@@ -53,28 +53,23 @@ var require2 = createRequire(import.meta.url);
53
53
  var JSONbig = require2("json-bigint");
54
54
  var jsonParser = JSONbig({ storeAsString: true });
55
55
  var requestJsonStringifier = JSONbig({ useNativeBigInt: true });
56
- var requestJsonParser = JSONbig({
57
- useNativeBigInt: true,
58
- protoAction: "error",
59
- constructorAction: "error"
60
- });
61
56
  var INTEGER_TOKEN = /^-?(?:0|[1-9]\d*)$/;
62
- function normalizeParsedNumbers(lossless, native) {
57
+ function normalizeParsedNumbers(lossless, native, useBigInt = false) {
63
58
  if (typeof lossless === "string" && typeof native === "number") {
64
59
  if (INTEGER_TOKEN.test(lossless) && !Number.isSafeInteger(native)) {
65
- return lossless;
60
+ return useBigInt ? BigInt(lossless) : lossless;
66
61
  }
67
62
  return native;
68
63
  }
69
64
  if (Array.isArray(lossless) && Array.isArray(native)) {
70
65
  for (let index = 0; index < lossless.length; index++) {
71
- lossless[index] = normalizeParsedNumbers(lossless[index], native[index]);
66
+ lossless[index] = normalizeParsedNumbers(lossless[index], native[index], useBigInt);
72
67
  }
73
68
  return lossless;
74
69
  }
75
70
  if (lossless !== null && native !== null && typeof lossless === "object" && typeof native === "object") {
76
71
  for (const key of Object.keys(lossless)) {
77
- lossless[key] = normalizeParsedNumbers(lossless[key], native[key]);
72
+ lossless[key] = normalizeParsedNumbers(lossless[key], native[key], useBigInt);
78
73
  }
79
74
  }
80
75
  return lossless;
@@ -91,7 +86,7 @@ function stringifyJsonRequest(obj) {
91
86
  return requestJsonStringifier.stringify(obj);
92
87
  }
93
88
  function parseJsonRequest(text) {
94
- return requestJsonParser.parse(text);
89
+ return normalizeParsedNumbers(jsonParser.parse(text), JSON.parse(text), true);
95
90
  }
96
91
 
97
92
  // src/core/config.ts
@@ -3,7 +3,7 @@ import {
3
3
  getAgentApi,
4
4
  patchAgentApi,
5
5
  postAgentApi
6
- } from "./chunk-N6XBLRB7.js";
6
+ } from "./chunk-VDICGXCY.js";
7
7
 
8
8
  // src/commands/memory/cli-client.ts
9
9
  var DEFAULT_TE_CLAUDE_BASE_PATH = "/agent";
@@ -9,11 +9,11 @@ import {
9
9
  postAgentApi,
10
10
  putAgentApi,
11
11
  uploadAgentApi
12
- } from "./chunk-N6XBLRB7.js";
12
+ } from "./chunk-VDICGXCY.js";
13
13
  import {
14
14
  TeAgentApiError,
15
15
  createTeAgentApiError
16
- } from "./chunk-RJHGDWSC.js";
16
+ } from "./chunk-JSBLCLFE.js";
17
17
  import {
18
18
  CliValidationError,
19
19
  isApiErrorType
@@ -6,12 +6,12 @@ import {
6
6
  CapabilityGatewayError,
7
7
  fetchCapabilityGateway,
8
8
  requestCapabilityGateway
9
- } from "./chunk-JCWM2TYP.js";
9
+ } from "./chunk-UYJMEHAF.js";
10
10
  import {
11
11
  readOutputMetadata,
12
12
  unwrapOutputData,
13
13
  withOutputMetadata
14
- } from "./chunk-752BSLZC.js";
14
+ } from "./chunk-WMDO53YK.js";
15
15
  import {
16
16
  PermissionError
17
17
  } from "./chunk-Z3Q2AEIN.js";
@@ -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-H3K5UGYC.js";
4
+ } from "./chunk-SOSFRU3O.js";
5
5
  import {
6
6
  getActiveHost,
7
7
  getConfigDir,
8
8
  isAeSandboxRuntime,
9
9
  readSandboxCliTokenEntry
10
- } from "./chunk-JNVVJ273.js";
10
+ } from "./chunk-4PSTYEG5.js";
11
11
  import {
12
12
  PermissionError,
13
13
  externalCliTokenRequestOptions,
@@ -675,7 +675,7 @@ async function readBusinessConfigForExecution(hostOverride) {
675
675
  const token = peekCliToken(host);
676
676
  if (!token) return {};
677
677
  return await resolveBusinessConfig(host, token, async () => {
678
- const { fetchCliConfig: fetchCliConfig2 } = await import("./compat-check-PMEGUPZU.js");
678
+ const { fetchCliConfig: fetchCliConfig2 } = await import("./compat-check-WFEKVLTH.js");
679
679
  return fetchCliConfig2(host, token);
680
680
  });
681
681
  } catch {
@@ -6,10 +6,10 @@ import {
6
6
  dryRunCapability,
7
7
  executeCapabilityWithEnvelope,
8
8
  validateCapability
9
- } from "./chunk-JCWM2TYP.js";
9
+ } from "./chunk-UYJMEHAF.js";
10
10
  import {
11
11
  withOutputMetadata
12
- } from "./chunk-752BSLZC.js";
12
+ } from "./chunk-WMDO53YK.js";
13
13
  import {
14
14
  CliValidationError
15
15
  } from "./chunk-Z3Q2AEIN.js";
@@ -4,11 +4,11 @@ import {
4
4
  } from "./chunk-Y74WTIKJ.js";
5
5
  import {
6
6
  getCliToken
7
- } from "./chunk-H3K5UGYC.js";
7
+ } from "./chunk-SOSFRU3O.js";
8
8
  import {
9
9
  getActiveHost,
10
10
  getSandboxRuntimeRoot
11
- } from "./chunk-JNVVJ273.js";
11
+ } from "./chunk-4PSTYEG5.js";
12
12
  import {
13
13
  PermissionError,
14
14
  externalCliTokenRequestOptions,
@@ -7,14 +7,14 @@ import {
7
7
  rememberBusinessConfig,
8
8
  reserveBusinessSkillContext,
9
9
  syncBusinessSkills
10
- } from "./chunk-TULINOLS.js";
10
+ } from "./chunk-GBSACKFB.js";
11
11
  import {
12
12
  peekCliToken
13
- } from "./chunk-H3K5UGYC.js";
13
+ } from "./chunk-SOSFRU3O.js";
14
14
  import {
15
15
  getActiveHost,
16
16
  getConfigDir
17
- } from "./chunk-JNVVJ273.js";
17
+ } from "./chunk-4PSTYEG5.js";
18
18
  import {
19
19
  normalizeUrl
20
20
  } from "./chunk-Z3Q2AEIN.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-JCWM2TYP.js";
4
+ } from "./chunk-UYJMEHAF.js";
5
5
  import {
6
6
  SecureStoreAuthError,
7
7
  getCliToken
8
- } from "./chunk-H3K5UGYC.js";
8
+ } from "./chunk-SOSFRU3O.js";
9
9
  import {
10
10
  safeJsonParse
11
- } from "./chunk-JNVVJ273.js";
11
+ } from "./chunk-4PSTYEG5.js";
12
12
  import {
13
13
  PermissionError,
14
14
  externalCliTokenRequestOptions,
@@ -6,7 +6,7 @@ import {
6
6
  readSandboxCliTokenEntry,
7
7
  safeJsonParse,
8
8
  safeReadJsonFile
9
- } from "./chunk-JNVVJ273.js";
9
+ } from "./chunk-4PSTYEG5.js";
10
10
  import {
11
11
  PermissionError,
12
12
  externalCliTokenRequestOptions,
@@ -6,11 +6,11 @@ import {
6
6
  SecureStoreAuthError,
7
7
  clearCliTokenCache,
8
8
  getCliToken
9
- } from "./chunk-H3K5UGYC.js";
9
+ } from "./chunk-SOSFRU3O.js";
10
10
  import {
11
11
  safeJsonParse,
12
12
  stringifyJsonRequest
13
- } from "./chunk-JNVVJ273.js";
13
+ } from "./chunk-4PSTYEG5.js";
14
14
  import {
15
15
  PermissionError,
16
16
  externalCliTokenRequestOptions
@@ -10,10 +10,10 @@ import {
10
10
  postToMainApp,
11
11
  putToMainApp,
12
12
  uploadToMainApp
13
- } from "./chunk-RJHGDWSC.js";
13
+ } from "./chunk-JSBLCLFE.js";
14
14
  import {
15
15
  clearCliTokenCache
16
- } from "./chunk-H3K5UGYC.js";
16
+ } from "./chunk-SOSFRU3O.js";
17
17
 
18
18
  // src/core/resource-package-client.ts
19
19
  function checkPath(path) {
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  getPendingHostCompatNotice,
4
4
  getPendingUpdateNotice
5
- } from "./chunk-TULINOLS.js";
5
+ } from "./chunk-GBSACKFB.js";
6
6
  import {
7
7
  logger,
8
8
  redactExternalCliToken
@@ -12,9 +12,9 @@ import {
12
12
  shouldNotifyCompat,
13
13
  shouldSkipAutoSync,
14
14
  shouldSkipCompatCheck
15
- } from "./chunk-TULINOLS.js";
16
- import "./chunk-H3K5UGYC.js";
17
- import "./chunk-JNVVJ273.js";
15
+ } from "./chunk-GBSACKFB.js";
16
+ import "./chunk-SOSFRU3O.js";
17
+ import "./chunk-4PSTYEG5.js";
18
18
  import "./chunk-Z3Q2AEIN.js";
19
19
  export {
20
20
  fetchCliConfig,
@@ -3,7 +3,7 @@ import {
3
3
  invalidateBusinessSkillSynchronization,
4
4
  refreshEnvironmentAfterLogin,
5
5
  refreshEnvironmentConfig
6
- } from "./chunk-ZGIYG473.js";
6
+ } from "./chunk-K2Z7QHDR.js";
7
7
  import {
8
8
  MultiselectCancelled,
9
9
  promptSingleSelect
@@ -15,15 +15,15 @@ import {
15
15
  import {
16
16
  printError,
17
17
  printOutput
18
- } from "./chunk-752BSLZC.js";
18
+ } from "./chunk-WMDO53YK.js";
19
19
  import {
20
20
  fetchCliConfig,
21
21
  readCurrentBusinessConfig,
22
22
  resolveKbAutoDiscoveryFeature
23
- } from "./chunk-TULINOLS.js";
23
+ } from "./chunk-GBSACKFB.js";
24
24
  import {
25
25
  peekCliToken
26
- } from "./chunk-H3K5UGYC.js";
26
+ } from "./chunk-SOSFRU3O.js";
27
27
  import {
28
28
  addHost,
29
29
  getActiveHost,
@@ -33,7 +33,7 @@ import {
33
33
  resolveHostSelector,
34
34
  setActiveHost,
35
35
  updateHostLabel
36
- } from "./chunk-JNVVJ273.js";
36
+ } from "./chunk-4PSTYEG5.js";
37
37
  import {
38
38
  normalizeUrl
39
39
  } from "./chunk-Z3Q2AEIN.js";
@@ -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-RJHGDWSC.js";
5
+ } from "./chunk-JSBLCLFE.js";
6
6
  import "./chunk-Y74WTIKJ.js";
7
- import "./chunk-H3K5UGYC.js";
7
+ import "./chunk-SOSFRU3O.js";
8
8
  import {
9
9
  safeJsonParse
10
- } from "./chunk-JNVVJ273.js";
10
+ } from "./chunk-4PSTYEG5.js";
11
11
  import {
12
12
  CliValidationError
13
13
  } from "./chunk-Z3Q2AEIN.js";
@@ -16,7 +16,7 @@ import {
16
16
  import "./chunk-JEUXDY3B.js";
17
17
  import {
18
18
  getConfigDir
19
- } from "./chunk-JNVVJ273.js";
19
+ } from "./chunk-4PSTYEG5.js";
20
20
  import {
21
21
  CliValidationError,
22
22
  LocalDataUploadError,
@@ -7,10 +7,10 @@ import {
7
7
  } from "./chunk-YVG6QD3V.js";
8
8
  import {
9
9
  getCliToken
10
- } from "./chunk-H3K5UGYC.js";
10
+ } from "./chunk-SOSFRU3O.js";
11
11
  import {
12
12
  isAeSandboxRuntime
13
- } from "./chunk-JNVVJ273.js";
13
+ } from "./chunk-4PSTYEG5.js";
14
14
  import {
15
15
  CliValidationError,
16
16
  externalCliTokenRequestOptions
package/dist/index.js CHANGED
@@ -27,19 +27,19 @@ import "./chunk-JEUXDY3B.js";
27
27
  import {
28
28
  TeAgentApiError,
29
29
  TeAgentCredentialsError
30
- } from "./chunk-RJHGDWSC.js";
30
+ } from "./chunk-JSBLCLFE.js";
31
31
  import {
32
32
  CapabilityGatewayError,
33
33
  executeCapability,
34
34
  uploadInputFileBytes
35
- } from "./chunk-JCWM2TYP.js";
35
+ } from "./chunk-UYJMEHAF.js";
36
36
  import {
37
37
  resolveHost
38
- } from "./chunk-IN7KKL6K.js";
38
+ } from "./chunk-2F64AZYH.js";
39
39
  import {
40
40
  printError,
41
41
  printOutput
42
- } from "./chunk-752BSLZC.js";
42
+ } from "./chunk-WMDO53YK.js";
43
43
  import "./chunk-Y74WTIKJ.js";
44
44
  import {
45
45
  BusinessDisabledError,
@@ -55,18 +55,18 @@ import {
55
55
  resolveKbAutoDiscoveryFeature,
56
56
  runHostCompatCheck,
57
57
  shouldSkipAutoSync
58
- } from "./chunk-TULINOLS.js";
58
+ } from "./chunk-GBSACKFB.js";
59
59
  import {
60
60
  CredentialStoreUnreadableError,
61
61
  SecureStoreAuthError,
62
62
  getCliToken,
63
63
  peekCliToken
64
- } from "./chunk-H3K5UGYC.js";
64
+ } from "./chunk-SOSFRU3O.js";
65
65
  import {
66
66
  getActiveHost,
67
67
  getConfigDir,
68
68
  safeJsonParse
69
- } from "./chunk-JNVVJ273.js";
69
+ } from "./chunk-4PSTYEG5.js";
70
70
  import {
71
71
  CliApiError,
72
72
  CliValidationError,
@@ -2640,105 +2640,105 @@ function warnLoadFailure(label, err) {
2640
2640
  async function loadCommands() {
2641
2641
  const commands = [];
2642
2642
  try {
2643
- const teAnalysis = await import("./te-analysis-ADX7RKO4.js");
2643
+ const teAnalysis = await import("./te-analysis-WQ6D6YG4.js");
2644
2644
  commands.push(...teAnalysis.default);
2645
2645
  } catch (err) {
2646
2646
  warnLoadFailure("domain te-analysis", err);
2647
2647
  }
2648
2648
  try {
2649
- const engage = await import("./te-engage-VE2NUH5V.js");
2649
+ const engage = await import("./te-engage-V2QW7TIC.js");
2650
2650
  commands.push(...engage.default);
2651
2651
  } catch (err) {
2652
2652
  warnLoadFailure("domain te-engage", err);
2653
2653
  }
2654
2654
  try {
2655
- const community = await import("./te-community-PREDRXG3.js");
2655
+ const community = await import("./te-community-VRWMFGI6.js");
2656
2656
  commands.push(...community.default);
2657
2657
  } catch (err) {
2658
2658
  warnLoadFailure("domain te-community", err);
2659
2659
  }
2660
2660
  try {
2661
- const dataops = await import("./te-dataops-ITWJHO2U.js");
2661
+ const dataops = await import("./te-dataops-YTLFTTW7.js");
2662
2662
  commands.push(...dataops.default);
2663
2663
  } catch (err) {
2664
2664
  warnLoadFailure("domain te-dataops", err);
2665
2665
  }
2666
2666
  try {
2667
- const teKb = await import("./te-kb-WSMOW7WS.js");
2667
+ const teKb = await import("./te-kb-4AQLISDR.js");
2668
2668
  commands.push(...teKb.default);
2669
2669
  } catch (err) {
2670
2670
  warnLoadFailure("domain te-kb", err);
2671
2671
  }
2672
2672
  try {
2673
- const teTeam = await import("./te-team-T2WRLOOD.js");
2673
+ const teTeam = await import("./te-team-6ELNGBWT.js");
2674
2674
  commands.push(...teTeam.default);
2675
2675
  } catch (err) {
2676
2676
  warnLoadFailure("domain te-team", err);
2677
2677
  }
2678
2678
  try {
2679
- const teAgent = await import("./te-agent-WBKIFEQD.js");
2679
+ const teAgent = await import("./te-agent-BJ36B4QI.js");
2680
2680
  commands.push(...teAgent.default);
2681
2681
  } catch (err) {
2682
2682
  warnLoadFailure("domain te-agent", err);
2683
2683
  }
2684
2684
  try {
2685
- const memory = await import("./memory-HHPX3NF2.js");
2685
+ const memory = await import("./memory-SNFR5M23.js");
2686
2686
  commands.push(...memory.default);
2687
2687
  } catch (err) {
2688
2688
  warnLoadFailure("domain memory", err);
2689
2689
  }
2690
- const automation = await import("./automation-NAR5DDGL.js");
2690
+ const automation = await import("./automation-FD2QZUP6.js");
2691
2691
  commands.push(...automation.default);
2692
2692
  try {
2693
- const things = await import("./things-6QOMFXOG.js");
2693
+ const things = await import("./things-HFWLGCUH.js");
2694
2694
  commands.push(...things.default);
2695
2695
  } catch (err) {
2696
2696
  warnLoadFailure("domain things", err);
2697
2697
  }
2698
2698
  try {
2699
- const workspace = await import("./workspace-LYDAP647.js");
2699
+ const workspace = await import("./workspace-2CKQX2XL.js");
2700
2700
  commands.push(...workspace.default);
2701
2701
  } catch (err) {
2702
2702
  warnLoadFailure("domain workspace", err);
2703
2703
  }
2704
2704
  try {
2705
- const teSystem = await import("./te-system-YM657FKO.js");
2705
+ const teSystem = await import("./te-system-CYWSK3UN.js");
2706
2706
  commands.push(...teSystem.default);
2707
2707
  } catch (err) {
2708
2708
  warnLoadFailure("domain te-system", err);
2709
2709
  }
2710
2710
  try {
2711
- const metadata = await import("./metadata-HEQQEEG3.js");
2711
+ const metadata = await import("./metadata-6QM6EED5.js");
2712
2712
  commands.push(...metadata.default);
2713
2713
  } catch (err) {
2714
2714
  warnLoadFailure("domain metadata", err);
2715
2715
  }
2716
2716
  try {
2717
- const personalSemanticPreference = await import("./personal-semantic-preference-V4L6ZWR2.js");
2717
+ const personalSemanticPreference = await import("./personal-semantic-preference-7VXQPP2N.js");
2718
2718
  commands.push(...personalSemanticPreference.default);
2719
2719
  } catch (err) {
2720
2720
  warnLoadFailure("domain personal-semantic-preference", err);
2721
2721
  }
2722
2722
  try {
2723
- const projectSemantic = await import("./project-semantic-NKHKJX6M.js");
2723
+ const projectSemantic = await import("./project-semantic-PSEPYH2L.js");
2724
2724
  commands.push(...projectSemantic.default);
2725
2725
  } catch (err) {
2726
2726
  warnLoadFailure("domain project-semantic", err);
2727
2727
  }
2728
2728
  try {
2729
- const dataIntegration = await import("./data-integration-6UAZO4GG.js");
2729
+ const dataIntegration = await import("./data-integration-QE37EQ3A.js");
2730
2730
  commands.push(...dataIntegration.default);
2731
2731
  } catch (err) {
2732
2732
  warnLoadFailure("domain data-integration", err);
2733
2733
  }
2734
2734
  try {
2735
- const context = await import("./context-F6FCGTF3.js");
2735
+ const context = await import("./context-CDB5H5PD.js");
2736
2736
  commands.push(...context.default);
2737
2737
  } catch (err) {
2738
2738
  warnLoadFailure("domain context", err);
2739
2739
  }
2740
2740
  try {
2741
- const evaluation = await import("./evaluation-4LO2O4AF.js");
2741
+ const evaluation = await import("./evaluation-LR4YDYWL.js");
2742
2742
  commands.push(...evaluation.default);
2743
2743
  } catch (err) {
2744
2744
  warnLoadFailure("domain evaluation", err);
@@ -2747,7 +2747,7 @@ async function loadCommands() {
2747
2747
  }
2748
2748
  async function registerAuthCommands() {
2749
2749
  try {
2750
- const { registerAuth } = await import("./auth-YEIJLBFY.js");
2750
+ const { registerAuth } = await import("./auth-A5OO4VS4.js");
2751
2751
  registerAuth(program);
2752
2752
  } catch (err) {
2753
2753
  warnLoadFailure("auth commands", err);
@@ -2755,7 +2755,7 @@ async function registerAuthCommands() {
2755
2755
  }
2756
2756
  async function registerConfigCommands() {
2757
2757
  try {
2758
- const { registerConfig } = await import("./config-VWVPR4WW.js");
2758
+ const { registerConfig } = await import("./config-U4I7X25P.js");
2759
2759
  registerConfig(program);
2760
2760
  } catch (err) {
2761
2761
  warnLoadFailure("config commands", err);
@@ -2763,7 +2763,7 @@ async function registerConfigCommands() {
2763
2763
  }
2764
2764
  async function registerCapabilityCommands() {
2765
2765
  try {
2766
- const { registerCapability } = await import("./capability-P7DD4Q73.js");
2766
+ const { registerCapability } = await import("./capability-SKI4GHF4.js");
2767
2767
  registerCapability(program);
2768
2768
  } catch (err) {
2769
2769
  warnLoadFailure("capability commands", err);
@@ -2771,7 +2771,7 @@ async function registerCapabilityCommands() {
2771
2771
  }
2772
2772
  async function registerSyncCommand() {
2773
2773
  try {
2774
- const { registerSync } = await import("./sync-ZJMXCRIN.js");
2774
+ const { registerSync } = await import("./sync-22ACDK5Z.js");
2775
2775
  registerSync(program);
2776
2776
  } catch (err) {
2777
2777
  warnLoadFailure("sync commands", err);
@@ -2779,7 +2779,7 @@ async function registerSyncCommand() {
2779
2779
  }
2780
2780
  async function registerModelCommand() {
2781
2781
  try {
2782
- const { registerModel } = await import("./model-7UHGWYVR.js");
2782
+ const { registerModel } = await import("./model-KEVCEXWD.js");
2783
2783
  registerModel(program);
2784
2784
  } catch (err) {
2785
2785
  warnLoadFailure("model commands", err);
@@ -2787,7 +2787,7 @@ async function registerModelCommand() {
2787
2787
  }
2788
2788
  async function registerUpdateCommand() {
2789
2789
  try {
2790
- const { registerUpdate } = await import("./update-I4MOUYOX.js");
2790
+ const { registerUpdate } = await import("./update-3CRVVHV5.js");
2791
2791
  registerUpdate(program);
2792
2792
  } catch (err) {
2793
2793
  warnLoadFailure("update commands", err);
@@ -4,15 +4,15 @@ import {
4
4
  getMemoryCli,
5
5
  patchMemoryCli,
6
6
  postMemoryCli
7
- } from "./chunk-QZUVLFNR.js";
7
+ } from "./chunk-AWVZTN2B.js";
8
8
  import {
9
9
  currentAgentSpaceId
10
10
  } from "./chunk-RK6GLDGI.js";
11
- import "./chunk-N6XBLRB7.js";
12
- import "./chunk-RJHGDWSC.js";
11
+ import "./chunk-VDICGXCY.js";
12
+ import "./chunk-JSBLCLFE.js";
13
13
  import "./chunk-Y74WTIKJ.js";
14
- import "./chunk-H3K5UGYC.js";
15
- import "./chunk-JNVVJ273.js";
14
+ import "./chunk-SOSFRU3O.js";
15
+ import "./chunk-4PSTYEG5.js";
16
16
  import {
17
17
  CliValidationError
18
18
  } from "./chunk-Z3Q2AEIN.js";
@@ -1,19 +1,19 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  withAsyncArtifactLifecycle
4
- } from "./chunk-7ABK2PEJ.js";
4
+ } from "./chunk-EEARZNHE.js";
5
5
  import {
6
6
  createCapabilityCommand
7
- } from "./chunk-TKVVACEJ.js";
7
+ } from "./chunk-HQCY3QCA.js";
8
8
  import {
9
9
  registerCapabilityGatewayRoute
10
10
  } from "./chunk-KPQY44JQ.js";
11
- import "./chunk-JCWM2TYP.js";
12
- import "./chunk-752BSLZC.js";
11
+ import "./chunk-UYJMEHAF.js";
12
+ import "./chunk-WMDO53YK.js";
13
13
  import "./chunk-Y74WTIKJ.js";
14
- import "./chunk-TULINOLS.js";
15
- import "./chunk-H3K5UGYC.js";
16
- import "./chunk-JNVVJ273.js";
14
+ import "./chunk-GBSACKFB.js";
15
+ import "./chunk-SOSFRU3O.js";
16
+ import "./chunk-4PSTYEG5.js";
17
17
  import "./chunk-Z3Q2AEIN.js";
18
18
 
19
19
  // src/commands/metadata/shared.ts
@@ -15,10 +15,10 @@ import {
15
15
  getClaudeConfigDir,
16
16
  getSandboxModels,
17
17
  postSandboxModelSelection
18
- } from "./chunk-RJHGDWSC.js";
18
+ } from "./chunk-JSBLCLFE.js";
19
19
  import "./chunk-Y74WTIKJ.js";
20
- import "./chunk-H3K5UGYC.js";
21
- import "./chunk-JNVVJ273.js";
20
+ import "./chunk-SOSFRU3O.js";
21
+ import "./chunk-4PSTYEG5.js";
22
22
  import "./chunk-Z3Q2AEIN.js";
23
23
 
24
24
  // src/commands/model/index.ts
@@ -1,16 +1,16 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  createCapabilityCommand
4
- } from "./chunk-TKVVACEJ.js";
4
+ } from "./chunk-HQCY3QCA.js";
5
5
  import {
6
6
  registerCapabilityGatewayRoute
7
7
  } from "./chunk-KPQY44JQ.js";
8
- import "./chunk-JCWM2TYP.js";
9
- import "./chunk-752BSLZC.js";
8
+ import "./chunk-UYJMEHAF.js";
9
+ import "./chunk-WMDO53YK.js";
10
10
  import "./chunk-Y74WTIKJ.js";
11
- import "./chunk-TULINOLS.js";
12
- import "./chunk-H3K5UGYC.js";
13
- import "./chunk-JNVVJ273.js";
11
+ import "./chunk-GBSACKFB.js";
12
+ import "./chunk-SOSFRU3O.js";
13
+ import "./chunk-4PSTYEG5.js";
14
14
  import "./chunk-Z3Q2AEIN.js";
15
15
 
16
16
  // src/commands/personal-semantic-preference/shared.ts
@@ -3,7 +3,7 @@ import {
3
3
  assertOutputPathAvailable,
4
4
  downloadAnalysisArtifact,
5
5
  withAsyncArtifactLifecycle
6
- } from "./chunk-7ABK2PEJ.js";
6
+ } from "./chunk-EEARZNHE.js";
7
7
  import {
8
8
  registerCapabilityGatewayRoute,
9
9
  resolveGatewayDomain
@@ -13,12 +13,12 @@ import {
13
13
  dryRunCapability,
14
14
  executeCapabilityWithEnvelope,
15
15
  validateCapability
16
- } from "./chunk-JCWM2TYP.js";
17
- import "./chunk-752BSLZC.js";
16
+ } from "./chunk-UYJMEHAF.js";
17
+ import "./chunk-WMDO53YK.js";
18
18
  import "./chunk-Y74WTIKJ.js";
19
- import "./chunk-TULINOLS.js";
20
- import "./chunk-H3K5UGYC.js";
21
- import "./chunk-JNVVJ273.js";
19
+ import "./chunk-GBSACKFB.js";
20
+ import "./chunk-SOSFRU3O.js";
21
+ import "./chunk-4PSTYEG5.js";
22
22
  import "./chunk-Z3Q2AEIN.js";
23
23
 
24
24
  // src/commands/project-semantic/asset-package/materializer.ts
@@ -33,14 +33,14 @@ import {
33
33
  postSandboxSyncPull,
34
34
  postToMainApp,
35
35
  uploadToMainApp
36
- } from "./chunk-RJHGDWSC.js";
36
+ } from "./chunk-JSBLCLFE.js";
37
37
  import {
38
38
  printError
39
- } from "./chunk-752BSLZC.js";
39
+ } from "./chunk-WMDO53YK.js";
40
40
  import "./chunk-Y74WTIKJ.js";
41
- import "./chunk-TULINOLS.js";
42
- import "./chunk-H3K5UGYC.js";
43
- import "./chunk-JNVVJ273.js";
41
+ import "./chunk-GBSACKFB.js";
42
+ import "./chunk-SOSFRU3O.js";
43
+ import "./chunk-4PSTYEG5.js";
44
44
  import {
45
45
  __toESM
46
46
  } from "./chunk-Z3Q2AEIN.js";
@@ -11,7 +11,7 @@ import {
11
11
  workspaceResourcePath,
12
12
  workspaceTargetFlags,
13
13
  workspaceTargetPath
14
- } from "./chunk-7JAVT5TK.js";
14
+ } from "./chunk-E25OSZLJ.js";
15
15
  import {
16
16
  currentAgentSpaceId
17
17
  } from "./chunk-RK6GLDGI.js";
@@ -27,20 +27,20 @@ import {
27
27
  requestResourcePackageRaw,
28
28
  resourcePackagePreflightChange,
29
29
  uploadAgentApi
30
- } from "./chunk-N6XBLRB7.js";
30
+ } from "./chunk-VDICGXCY.js";
31
31
  import {
32
32
  TeAgentApiError,
33
33
  resolveTeClaudeBaseUrl
34
- } from "./chunk-RJHGDWSC.js";
34
+ } from "./chunk-JSBLCLFE.js";
35
35
  import {
36
36
  buildCapabilityGatewayUrl,
37
37
  callCapabilityApi
38
- } from "./chunk-JCWM2TYP.js";
38
+ } from "./chunk-UYJMEHAF.js";
39
39
  import "./chunk-Y74WTIKJ.js";
40
- import "./chunk-H3K5UGYC.js";
40
+ import "./chunk-SOSFRU3O.js";
41
41
  import {
42
42
  getConfigDir
43
- } from "./chunk-JNVVJ273.js";
43
+ } from "./chunk-4PSTYEG5.js";
44
44
  import {
45
45
  CliValidationError
46
46
  } from "./chunk-Z3Q2AEIN.js";
@@ -7,12 +7,12 @@ import {
7
7
  waitForAnalysisRun,
8
8
  withAsyncArtifactLifecycle,
9
9
  withInterruptSignal
10
- } from "./chunk-7ABK2PEJ.js";
10
+ } from "./chunk-EEARZNHE.js";
11
11
  import {
12
12
  createCapabilityCommand,
13
13
  definitionIntentSnapshotFlag,
14
14
  modelDefinitionIntentSnapshotFlag
15
- } from "./chunk-TKVVACEJ.js";
15
+ } from "./chunk-HQCY3QCA.js";
16
16
  import {
17
17
  registerCapabilityGatewayRoute,
18
18
  resolveGatewayDomain
@@ -30,16 +30,16 @@ import {
30
30
  uploadInputFile,
31
31
  validateCapability,
32
32
  validateCapabilityWithEnvelope
33
- } from "./chunk-JCWM2TYP.js";
33
+ } from "./chunk-UYJMEHAF.js";
34
34
  import {
35
35
  withOutputMetadata
36
- } from "./chunk-752BSLZC.js";
36
+ } from "./chunk-WMDO53YK.js";
37
37
  import "./chunk-Y74WTIKJ.js";
38
- import "./chunk-TULINOLS.js";
38
+ import "./chunk-GBSACKFB.js";
39
39
  import {
40
40
  getCliToken
41
- } from "./chunk-H3K5UGYC.js";
42
- import "./chunk-JNVVJ273.js";
41
+ } from "./chunk-SOSFRU3O.js";
42
+ import "./chunk-4PSTYEG5.js";
43
43
  import {
44
44
  CliValidationError
45
45
  } from "./chunk-Z3Q2AEIN.js";
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  createCapabilityCommand
4
- } from "./chunk-TKVVACEJ.js";
4
+ } from "./chunk-HQCY3QCA.js";
5
5
  import {
6
6
  registerCapabilityGatewayRoute,
7
7
  resolveGatewayDomain
@@ -10,25 +10,25 @@ import {
10
10
  CapabilityGatewayError,
11
11
  buildCapabilityGatewayUrl,
12
12
  requestCapabilityGatewayWithEnvelope
13
- } from "./chunk-JCWM2TYP.js";
13
+ } from "./chunk-UYJMEHAF.js";
14
14
  import {
15
15
  unwrapOutputData,
16
16
  withOutputMetadata
17
- } from "./chunk-752BSLZC.js";
17
+ } from "./chunk-WMDO53YK.js";
18
18
  import {
19
19
  internalCallSourceHeaders
20
20
  } from "./chunk-Y74WTIKJ.js";
21
- import "./chunk-TULINOLS.js";
21
+ import "./chunk-GBSACKFB.js";
22
22
  import {
23
23
  SecureStoreAuthError,
24
24
  getCliToken
25
- } from "./chunk-H3K5UGYC.js";
25
+ } from "./chunk-SOSFRU3O.js";
26
26
  import {
27
27
  getActiveHost,
28
28
  parseJsonRequest,
29
29
  safeJsonParse,
30
30
  stringifyJsonRequest
31
- } from "./chunk-JNVVJ273.js";
31
+ } from "./chunk-4PSTYEG5.js";
32
32
  import {
33
33
  CliValidationError,
34
34
  PermissionError,
@@ -1,21 +1,21 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  resolveHost
4
- } from "./chunk-IN7KKL6K.js";
4
+ } from "./chunk-2F64AZYH.js";
5
5
  import {
6
6
  printError
7
- } from "./chunk-752BSLZC.js";
7
+ } from "./chunk-WMDO53YK.js";
8
8
  import {
9
9
  internalCallSourceHeaders
10
10
  } from "./chunk-Y74WTIKJ.js";
11
- import "./chunk-TULINOLS.js";
11
+ import "./chunk-GBSACKFB.js";
12
12
  import {
13
13
  SecureStoreAuthError,
14
14
  getCliToken
15
- } from "./chunk-H3K5UGYC.js";
15
+ } from "./chunk-SOSFRU3O.js";
16
16
  import {
17
17
  safeJsonParse
18
- } from "./chunk-JNVVJ273.js";
18
+ } from "./chunk-4PSTYEG5.js";
19
19
  import {
20
20
  CliApiError,
21
21
  CliValidationError,
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  createCapabilityCommand
4
- } from "./chunk-TKVVACEJ.js";
4
+ } from "./chunk-HQCY3QCA.js";
5
5
  import {
6
6
  registerCapabilityGatewayRoute,
7
7
  resolveGatewayDomain
@@ -12,15 +12,15 @@ import {
12
12
  fetchCapabilityGateway,
13
13
  requestCapabilityGateway,
14
14
  requestCapabilityGatewayWithEnvelope
15
- } from "./chunk-JCWM2TYP.js";
15
+ } from "./chunk-UYJMEHAF.js";
16
16
  import {
17
17
  printError,
18
18
  withOutputMetadata
19
- } from "./chunk-752BSLZC.js";
19
+ } from "./chunk-WMDO53YK.js";
20
20
  import "./chunk-Y74WTIKJ.js";
21
- import "./chunk-TULINOLS.js";
22
- import "./chunk-H3K5UGYC.js";
23
- import "./chunk-JNVVJ273.js";
21
+ import "./chunk-GBSACKFB.js";
22
+ import "./chunk-SOSFRU3O.js";
23
+ import "./chunk-4PSTYEG5.js";
24
24
  import {
25
25
  CliValidationError
26
26
  } from "./chunk-Z3Q2AEIN.js";
@@ -2,20 +2,20 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  kbApi,
4
4
  kbUpload
5
- } from "./chunk-QEMQKVHW.js";
5
+ } from "./chunk-QWSA3EOD.js";
6
6
  import {
7
7
  TeAgentApiError
8
- } from "./chunk-RJHGDWSC.js";
8
+ } from "./chunk-JSBLCLFE.js";
9
9
  import {
10
10
  CapabilityGatewayError
11
- } from "./chunk-JCWM2TYP.js";
11
+ } from "./chunk-UYJMEHAF.js";
12
12
  import {
13
13
  printError
14
- } from "./chunk-752BSLZC.js";
14
+ } from "./chunk-WMDO53YK.js";
15
15
  import "./chunk-Y74WTIKJ.js";
16
- import "./chunk-TULINOLS.js";
17
- import "./chunk-H3K5UGYC.js";
18
- import "./chunk-JNVVJ273.js";
16
+ import "./chunk-GBSACKFB.js";
17
+ import "./chunk-SOSFRU3O.js";
18
+ import "./chunk-4PSTYEG5.js";
19
19
  import {
20
20
  CliApiError,
21
21
  CliValidationError,
@@ -12,14 +12,14 @@ import {
12
12
  postToMainApp,
13
13
  putToMainApp,
14
14
  uploadToMainApp
15
- } from "./chunk-RJHGDWSC.js";
15
+ } from "./chunk-JSBLCLFE.js";
16
16
  import "./chunk-Y74WTIKJ.js";
17
- import "./chunk-H3K5UGYC.js";
17
+ import "./chunk-SOSFRU3O.js";
18
18
  import {
19
19
  isAeSandboxRuntime,
20
20
  readSandboxCliTokenEntry,
21
21
  safeJsonParse
22
- } from "./chunk-JNVVJ273.js";
22
+ } from "./chunk-4PSTYEG5.js";
23
23
  import {
24
24
  CliValidationError,
25
25
  PermissionError,
@@ -2,16 +2,16 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  getAuthHeaders,
4
4
  kbApi
5
- } from "./chunk-QEMQKVHW.js";
6
- import "./chunk-JCWM2TYP.js";
5
+ } from "./chunk-QWSA3EOD.js";
6
+ import "./chunk-UYJMEHAF.js";
7
7
  import {
8
8
  printError,
9
9
  printOutput
10
- } from "./chunk-752BSLZC.js";
10
+ } from "./chunk-WMDO53YK.js";
11
11
  import "./chunk-Y74WTIKJ.js";
12
- import "./chunk-TULINOLS.js";
13
- import "./chunk-H3K5UGYC.js";
14
- import "./chunk-JNVVJ273.js";
12
+ import "./chunk-GBSACKFB.js";
13
+ import "./chunk-SOSFRU3O.js";
14
+ import "./chunk-4PSTYEG5.js";
15
15
  import {
16
16
  externalCliTokenRequestOptions,
17
17
  redactExternalCliToken
@@ -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-QZUVLFNR.js";
5
- import "./chunk-N6XBLRB7.js";
6
- import "./chunk-RJHGDWSC.js";
4
+ } from "./chunk-AWVZTN2B.js";
5
+ import "./chunk-VDICGXCY.js";
6
+ import "./chunk-JSBLCLFE.js";
7
7
  import {
8
8
  CapabilityGatewayError,
9
9
  buildCapabilityGatewayUrl,
10
10
  callCapabilityApi
11
- } from "./chunk-JCWM2TYP.js";
11
+ } from "./chunk-UYJMEHAF.js";
12
12
  import "./chunk-Y74WTIKJ.js";
13
- import "./chunk-H3K5UGYC.js";
14
- import "./chunk-JNVVJ273.js";
13
+ import "./chunk-SOSFRU3O.js";
14
+ import "./chunk-4PSTYEG5.js";
15
15
  import {
16
16
  PermissionError
17
17
  } from "./chunk-Z3Q2AEIN.js";
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  printError,
7
7
  printOutput
8
- } from "./chunk-752BSLZC.js";
8
+ } from "./chunk-WMDO53YK.js";
9
9
  import {
10
10
  buildVersionInstallPlan,
11
11
  exactVersion,
@@ -17,13 +17,13 @@ import {
17
17
  installVersion,
18
18
  recordVersionSyncResult,
19
19
  rememberBusinessConfig
20
- } from "./chunk-TULINOLS.js";
20
+ } from "./chunk-GBSACKFB.js";
21
21
  import {
22
22
  peekCliToken
23
- } from "./chunk-H3K5UGYC.js";
23
+ } from "./chunk-SOSFRU3O.js";
24
24
  import {
25
25
  getActiveHost
26
- } from "./chunk-JNVVJ273.js";
26
+ } from "./chunk-4PSTYEG5.js";
27
27
  import "./chunk-Z3Q2AEIN.js";
28
28
 
29
29
  // src/commands/update.ts
@@ -13,15 +13,15 @@ import {
13
13
  workspaceResourcePath,
14
14
  workspaceTargetFlags,
15
15
  workspaceTargetPath
16
- } from "./chunk-7JAVT5TK.js";
16
+ } from "./chunk-E25OSZLJ.js";
17
17
  import "./chunk-RK6GLDGI.js";
18
18
  import {
19
19
  getAgentBuffer
20
- } from "./chunk-N6XBLRB7.js";
21
- import "./chunk-RJHGDWSC.js";
20
+ } from "./chunk-VDICGXCY.js";
21
+ import "./chunk-JSBLCLFE.js";
22
22
  import "./chunk-Y74WTIKJ.js";
23
- import "./chunk-H3K5UGYC.js";
24
- import "./chunk-JNVVJ273.js";
23
+ import "./chunk-SOSFRU3O.js";
24
+ import "./chunk-4PSTYEG5.js";
25
25
  import {
26
26
  CliValidationError
27
27
  } from "./chunk-Z3Q2AEIN.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkingai/ae-cli",
3
- "version": "6.0.57",
3
+ "version": "6.0.58",
4
4
  "description": "CLI tool for ThinkingAI (AE) analytics platform",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-kb
3
- version: 1.0.8
3
+ version: 1.0.9
4
4
  description: 'AE knowledge base CLI manual for creating, importing read-only compiled snapshots, querying, LLM-powered ask, listing accessible knowledge bases and their sources, deterministic index/grep/read retrieval, checking status, ZIP source upload and directory management, raw child-file reading, revision-checked child updates and deletion, compiling, schema generation, URL sources, source deletion, ordinary text source creation, full reads and revision-checked editing, file/ZIP source draft replacement and restoration, and knowledge base deletion. Use when the user asks to manage AE (Agentic Engine) knowledge bases, import a compiled Markdown ZIP snapshot, upload documents or URLs to a knowledge base, query knowledge, ask knowledge bases with an LLM, list accessible knowledge bases or source metadata, inspect knowledge base indexes, search knowledge base pages, read a specific knowledge base page, check knowledge base status, generate schemas, compile knowledge, remove sources, create or edit text sources, or delete a knowledge base. To choose which knowledge base is worth searching, use the ae-kb-discovery skill first; this skill runs the retrieval once a target is chosen. Must use ae-cli kb commands and must not guess knowledge base names, scopes, page paths, source IDs, source display names, JSON payload shapes, or URL formats.'
5
5
  ---
6
6
 
@@ -29,7 +29,7 @@ Read [Publication and read contexts](references/publication.md) for company appr
29
29
  - Read operations can run directly after required inputs are known. Write operations require explicit user intent. Only `high-risk-write` commands require the CLI confirmation prompt; use `--yes` after explicit authorization.
30
30
  - Prefer `--dry-run` before destructive or broad writes when the user has not already validated the target.
31
31
  - Do not invent knowledge base names, scopes, source IDs, source display names, or JSON payloads. Ask the user or query known context when values are missing.
32
- - When building a `--sources` ref (or `+read --source`), copy the exact `scope` and `name` from `+list` output — run `ae-cli kb +list` first when the scope of a named knowledge base is unknown.
32
+ - When building a `--sources` ref (or `+read --source`), copy the exact `scope` and display `name` from trusted active-source context or `+list` output. Run `ae-cli kb +list` when neither supplies the exact scope and name; never use a slug as the display name.
33
33
  - JSON flags must be valid JSON strings, usually wrapped in single quotes in shell commands.
34
34
  - Successful commands return JSON by default. Use `--format table` only when a table is easier for a human to scan. Envelope may include optional `_notice.host_compat`.
35
35
  - `--host <url>` overrides the active AE host. It is available on every command and may be placed after the subcommand, e.g. `ae-cli kb +<command> --host <url>`.
@@ -348,7 +348,9 @@ Use the deterministic retrieval primitives when an agent needs to explore knowle
348
348
 
349
349
  **Before running a real query, read [`references/query-workflow.md`](references/query-workflow.md)** — it selects the next useful retrieval step without crawling. It covers candidate indexing, copied-path grep, direct bounded reads of linked short pages, same-page read windows, linked-page re-grep when needed, optional outline-derived ranges, and coverage assessment. This section below is the per-command reference the workflow draws on.
350
350
 
351
- Start with `+list` or `+index` to discover accessible knowledge bases. Use `+index` when you also need navigation maps:
351
+ Start with the trusted active sources described by `ae-kb-discovery`. Explicit references go straight to scoped retrieval without `+list`; relevant preferred candidates go first, with `+list` only if unrelated or insufficient. When no trusted active sources exist, use `+list` to discover accessible knowledge bases. Use `+index` when you also need navigation maps:
352
+
353
+ When discovery is needed:
352
354
 
353
355
  ```bash
354
356
  ae-cli kb +list
@@ -11,11 +11,12 @@ Everything below is server-side LLM-free.
11
11
 
12
12
  ## The loop
13
13
 
14
- This picks up **after** `ae-kb-discovery` has listed accessible knowledge bases
15
- and ranked candidates. Start here with a chosen candidate; scope every `+index`
16
- / `+grep` / `+read` call to it with `--sources` / `--source`. If the candidate
17
- turns out not to cover the question, go back to `ae-kb-discovery` for the next
18
- candidate rather than searching everything blindly.
14
+ This picks up **after** `ae-kb-discovery` has chosen a candidate from trusted active sources or `+list`.
15
+ An explicit reference skips `+list` and stays within the referenced list, even when page evidence is insufficient.
16
+ Preferred candidates are searched only when relevant; clearly unrelated candidates or evidence gaps can lead to `+list`.
17
+ After `+list`, retrieve from at most three distinct newly discovered knowledge bases; count every new source in a multi-source `+ask` separately. Explicit references and preferred candidates do not consume that budget.
18
+ Start here with a chosen candidate; scope every `+index` / `+grep` / `+read` call to it with `--sources` / `--source`. If the candidate turns out not to cover the question, go back to `ae-kb-discovery` for the next allowed candidate rather than searching everything blindly.
19
+ When using `+ask` with explicit references or preferred candidates, always pass `--sources` containing only the relevant authorized sources from that active list; never omit it or include unrelated sources. For an explicit reference, insufficient evidence does not authorize expansion to another knowledge base.
19
20
 
20
21
  **Known-page fast path:** within the same host, identity, KB and published revision,
21
22
  reuse navigation and read evidence already obtained in this task. Copy exact
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  name: ae-kb-discovery
3
+ version: 1.0.0
3
4
  description: >
4
5
  Discover which AE (Agentic Engine) knowledge bases accessible to the current user are worth searching, and decide whether to search at all, through read-only operations. Use when the user explicitly asks to search knowledge bases, internal documentation, or company materials. Also use when a task requires internal facts or business context, or when ae-analysis sees an enabled KB auto-discovery company switch before choosing its query route. Use internal context to explain data analysis results, anomalies, or trends and form evidence-backed conclusions. Do not use if the user explicitly asks not to access knowledge bases. This skill covers discovery and candidate selection; run the actual `+index` / `+grep` / `+read` / `+ask` retrieval with the `ae-kb` skill.
5
6
  ---
@@ -32,9 +33,17 @@ Do not use this skill when:
32
33
 
33
34
  ## Discovery Workflow
34
35
 
35
- ### 1. Get the List of Accessible Knowledge Bases
36
+ ### 1. Use Trusted Active Sources Before Discovery
36
37
 
37
- First, get the lightweight list of knowledge bases accessible to the current user:
38
+ If the current turn's trusted system context supplies **explicitly referenced** knowledge bases with exact `scope` and display `name`, use only relevant references from that list. Hand them directly to `ae-kb` for scoped `+index` / `+grep` / `+read` retrieval; do not call `+list` or search an unreferenced knowledge base. If retrieved pages leave a gap, report it. A knowledge base named only in user text is not a trusted active reference.
39
+
40
+ If trusted context instead supplies **preferred candidates**, compare their names, descriptions and bindings with the question. Search only relevant candidates first. If all are clearly unrelated, or their retrieved pages leave a gap, call `+list` for other accessible sources. Metadata never counts as answer evidence. Preferred candidates are not a search limit and do not consume the newly discovered source budget below.
41
+
42
+ When no trusted active sources are supplied, discover accessible knowledge bases with `+list` as usual. Copy exact `scope` and display `name` from trusted context or `+list`; never derive a CLI `--sources` name from a slug alone.
43
+
44
+ ### 2. Get the List of Accessible Knowledge Bases When Needed
45
+
46
+ When discovery is needed, get the lightweight list of knowledge bases accessible to the current user:
38
47
 
39
48
  ```bash
40
49
  ae-cli kb +list
@@ -44,7 +53,7 @@ Use the exact `scope` and knowledge base name returned by the command, together
44
53
 
45
54
  If `+list` is unavailable or fails, do not guess which knowledge bases exist. If the user explicitly requested a knowledge base search, explain that discovery cannot currently be completed. Otherwise, return to the original task and reassess the capabilities currently available.
46
55
 
47
- ### 2. Rank Candidate Knowledge Bases
56
+ ### 3. Rank Candidate Knowledge Bases
48
57
 
49
58
  Rank candidates in this order:
50
59
 
@@ -54,9 +63,9 @@ Rank candidates in this order:
54
63
 
55
64
  Compare `targetId` with the corresponding current ID or code first. Use `targetName` only as a secondary signal when an ID or code is unavailable; do not replace a conflicting ID match with a name match. A candidate with no bindings or no current-context match remains eligible for semantic ranking. A binding to another project or space lowers implicit priority but does not exclude the candidate, and an explicit user choice still takes precedence.
56
65
 
57
- Select one preferred knowledge base by default. When several candidates are highly relevant, retain no more than three and try them one at a time in priority order. Do not read the indexes of all candidates in advance. A binding, name, description, tag, or language match only indicates that a knowledge base is worth searching; it does not prove a content match, grant access, or count as knowledge base evidence.
66
+ Select one candidate to search at a time. After `+list`, retrieve from at most three distinct newly discovered knowledge bases in this task; stop when page evidence is sufficient. Every new source used by `+index`, `+grep`, `+read` or `+ask` counts once, including each source in a multi-source `+ask`. Explicit references and preferred candidates do not count toward this budget. Do not read the indexes of all candidates in advance. A binding, name, description, tag, or language match only indicates that a knowledge base is worth searching; it does not prove a content match, grant access, or count as knowledge base evidence.
58
67
 
59
- ### 3. Hand Off to Retrieval
68
+ ### 4. Hand Off to Retrieval
60
69
 
61
70
  Once a preferred knowledge base is selected, hand off to the `ae-kb` skill and follow its `references/query-workflow.md` for the entire retrieval procedure — including when `+ask` is appropriate.
62
71
 
@@ -98,7 +107,7 @@ When using internal context to explain data analysis results, anomalies, or tren
98
107
  When knowledge base evidence provides only partial coverage, is entirely absent, or retrieval fails:
99
108
 
100
109
  1. Stop repeating searches against the same candidate knowledge base.
101
- 2. If ranked candidates remain, switch to the next candidate. Search no more than three knowledge bases in one task.
110
+ 2. If ranked candidates remain, switch to the next candidate. After `+list`, retrieve from no more than three distinct newly discovered knowledge bases; explicit references and preferred candidates do not consume that budget.
102
111
  3. When all candidates provide no coverage, return to the user's original request instead of remaining in the knowledge base retrieval subtask.
103
112
  4. Reassess the capabilities currently available and choose the next path that best serves the original task. Do not hard-code a fixed fallback.
104
113
  5. Retain verified background evidence when useful, but never attribute conclusions drawn from other sources to a knowledge base.