@thinkingai/ae-cli 6.0.47 → 6.0.48

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 (80) hide show
  1. package/README.md +93 -36
  2. package/README.zh.md +93 -36
  3. package/dist/{auth-QPEVVBKT.js → auth-FUM37MHF.js} +236 -127
  4. package/dist/{capability-RUSV77CO.js → capability-J4FU4JZW.js} +47 -34
  5. package/dist/{chunk-FR2EDAQM.js → chunk-4P355ZWB.js} +69 -1
  6. package/dist/{chunk-NSIVXKJH.js → chunk-6KBBAPPP.js} +5 -5
  7. package/dist/chunk-6ZIQV5GW.js +26 -0
  8. package/dist/chunk-ATSM5XAW.js +623 -0
  9. package/dist/{chunk-6QK7SYYY.js → chunk-BBEFP4SB.js} +29 -37
  10. package/dist/{chunk-KEWVSO64.js → chunk-CZU3V3DQ.js} +4 -15
  11. package/dist/chunk-ECBLHAZO.js +15 -0
  12. package/dist/{chunk-BVDST5YT.js → chunk-HPLNYQPM.js} +8 -8
  13. package/dist/{chunk-B5HMQAOM.js → chunk-I4WQAEYB.js} +1 -1
  14. package/dist/{chunk-QL6R6TSK.js → chunk-LNZBEQXW.js} +6 -5
  15. package/dist/{chunk-GJXRF7Y6.js → chunk-QJQZH5GQ.js} +47 -78
  16. package/dist/{chunk-JYMGHGCE.js → chunk-VXNMYUXU.js} +24 -13
  17. package/dist/{chunk-KZ6ZHF5J.js → chunk-WZ6YVQSF.js} +14 -14
  18. package/dist/{community-report-client-6OL6GBQW.js → community-report-client-XXWGSBSD.js} +2 -4
  19. package/dist/{config-XNMACCKX.js → config-EXUGQN5T.js} +8 -9
  20. package/dist/{data-integration-4NZGZ45E.js → data-integration-4NZ53OMT.js} +17 -15
  21. package/dist/index.js +52 -79
  22. package/dist/{local-data-upload-client-EFHDLXFG.js → local-data-upload-client-KYOKVYZV.js} +2 -4
  23. package/dist/{memory-HBJQ2GC5.js → memory-ATNKZNW5.js} +4 -6
  24. package/dist/{metadata-PGDJE5RQ.js → metadata-3J5ZAVMF.js} +7 -9
  25. package/dist/{model-BHLJ2QMT.js → model-E4JMQ4V2.js} +4 -6
  26. package/dist/{personal-semantic-preference-E5NZ56DN.js → personal-semantic-preference-32AAJ37M.js} +6 -8
  27. package/dist/{sync-MUWPRM5I.js → sync-2GTAKZYX.js} +9 -11
  28. package/dist/{te-agent-WQZTMEK4.js → te-agent-JB5T3PO7.js} +393 -90
  29. package/dist/{te-analysis-YWCSSLYL.js → te-analysis-WHYXHRJD.js} +97 -31
  30. package/dist/{te-community-BNE6KREL.js → te-community-UDBI672N.js} +9 -32
  31. package/dist/{te-dataops-TXLKM2W6.js → te-dataops-ZLYOCXZ4.js} +19 -20
  32. package/dist/{te-engage-VEW4CJHK.js → te-engage-DHKNJ5BO.js} +11 -13
  33. package/dist/{te-kb-BUD6N3NI.js → te-kb-WYQWHFSC.js} +595 -85
  34. package/dist/{te-system-44LZJDTQ.js → te-system-7G6F2LJA.js} +6 -8
  35. package/dist/{te-team-XMP47YXE.js → te-team-E7FBBXMQ.js} +6 -8
  36. package/dist/{update-UODFOZ4P.js → update-D47BUG25.js} +7 -8
  37. package/package.json +12 -9
  38. package/skills/ae-agent/SKILL.md +30 -13
  39. package/skills/ae-agent/references/agent-distribution.md +94 -0
  40. package/skills/ae-agent/references/approval-request.md +4 -0
  41. package/skills/ae-agent/references/command_index.md +9 -2
  42. package/skills/ae-agent/references/create-automation.md +20 -2
  43. package/skills/ae-agent/references/get-agent-context.md +70 -0
  44. package/skills/ae-agent/references/list-automations.md +18 -3
  45. package/skills/ae-agent/references/list-mcp-credentials.md +1 -1
  46. package/skills/ae-agent/references/mcp-token.md +3 -3
  47. package/skills/ae-agent/references/set-mcp-credential.md +0 -1
  48. package/skills/ae-agent/references/update-automation.md +18 -0
  49. package/skills/ae-analysis/SKILL.md +11 -2
  50. package/skills/ae-analysis/references/adhoc_run.md +2 -0
  51. package/skills/ae-analysis/references/ai_models.md +23 -3
  52. package/skills/ae-analysis/references/analysis_gateway_assets.md +2 -2
  53. package/skills/ae-analysis/references/command_index.md +7 -7
  54. package/skills/ae-analysis/references/cross_source_config.md +84 -0
  55. package/skills/ae-analysis/references/dashboard_update.md +1 -1
  56. package/skills/ae-analysis/references/user_tag_create.md +23 -1
  57. package/skills/ae-analysis/references/user_tag_models.md +9 -1
  58. package/skills/ae-analysis/references/user_tag_update.md +14 -2
  59. package/skills/ae-data-integration/SKILL.md +2 -1
  60. package/skills/ae-data-integration/references/dimension-routing.md +36 -0
  61. package/skills/ae-data-integration/references/local-analysis.md +2 -0
  62. package/skills/ae-data-integration/references/source-inspect.md +1 -1
  63. package/skills/ae-data-integration/references/tracking-plan.md +1 -1
  64. package/skills/ae-data-integration/references/transform.md +1 -1
  65. package/skills/ae-data-integration/references/ue-mapping.md +5 -2
  66. package/skills/ae-data-integration/references/ue-routing.md +17 -1
  67. package/skills/ae-generate-tracking-plan/SKILL.md +25 -13
  68. package/skills/ae-generate-tracking-plan/references/business-dimension-mapping.md +1 -1
  69. package/skills/ae-kb/SKILL.md +107 -36
  70. package/skills/ae-kb/references/query-workflow.md +59 -29
  71. package/skills/ae-kb/references/versions.md +46 -0
  72. package/skills/ae-system/SKILL.md +1 -1
  73. package/skills/ae-use-agent/SKILL.md +42 -0
  74. package/skills/ae-use-agent/references/local-agent.md +114 -0
  75. package/dist/auth-UMJAA72O.js +0 -15
  76. package/dist/chunk-533JK3YX.js +0 -72
  77. package/dist/chunk-O6K2ODUE.js +0 -318
  78. package/dist/chunk-RWXIXOZG.js +0 -326
  79. package/dist/client-N7NGZUNI.js +0 -204
  80. package/skills/ae-agent/references/auto-provision-mcp-credentials.md +0 -57
@@ -114,9 +114,77 @@ var Logger = class {
114
114
  };
115
115
  var logger = new Logger();
116
116
 
117
+ // src/core/errors.ts
118
+ var PermissionError = class extends Error {
119
+ constructor(message, code, hint) {
120
+ super(message);
121
+ this.code = code;
122
+ this.hint = hint;
123
+ this.name = "PermissionError";
124
+ }
125
+ code;
126
+ hint;
127
+ };
128
+ var CliValidationError = class extends Error {
129
+ code;
130
+ hint;
131
+ location;
132
+ constructor(message, options = {}) {
133
+ super(message);
134
+ this.name = "CliValidationError";
135
+ this.code = options.code;
136
+ this.hint = options.hint;
137
+ if (options.location) {
138
+ const location = {};
139
+ if (typeof options.location.segment === "number" && Number.isFinite(options.location.segment)) {
140
+ location.segment = options.location.segment;
141
+ }
142
+ if (typeof options.location.record === "number" && Number.isFinite(options.location.record)) {
143
+ location.record = options.location.record;
144
+ }
145
+ if (typeof options.location.field === "string" && options.location.field.length > 0) {
146
+ location.field = options.location.field;
147
+ }
148
+ if (Object.keys(location).length > 0) this.location = location;
149
+ }
150
+ }
151
+ };
152
+ var CommunityReportError = class extends Error {
153
+ code;
154
+ httpStatus;
155
+ hint;
156
+ meta;
157
+ constructor(message, options = {}) {
158
+ super(message, options.cause === void 0 ? void 0 : { cause: options.cause });
159
+ this.name = "CommunityReportError";
160
+ this.code = options.code;
161
+ this.httpStatus = options.httpStatus;
162
+ this.hint = options.hint;
163
+ this.meta = options.meta;
164
+ }
165
+ };
166
+ var LocalDataUploadError = class extends Error {
167
+ code;
168
+ httpStatus;
169
+ hint;
170
+ meta;
171
+ constructor(message, options = {}) {
172
+ super(message, options.cause === void 0 ? void 0 : { cause: options.cause });
173
+ this.name = "LocalDataUploadError";
174
+ this.code = options.code;
175
+ this.httpStatus = options.httpStatus;
176
+ this.hint = options.hint;
177
+ this.meta = options.meta;
178
+ }
179
+ };
180
+
117
181
  export {
118
182
  __require,
119
183
  __commonJS,
120
184
  __toESM,
121
- logger
185
+ logger,
186
+ PermissionError,
187
+ CliValidationError,
188
+ CommunityReportError,
189
+ LocalDataUploadError
122
190
  };
@@ -1,15 +1,15 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
- withOutputMetadata
4
- } from "./chunk-KEWVSO64.js";
3
+ resolveGatewayDomain
4
+ } from "./chunk-TKHSULJT.js";
5
5
  import {
6
6
  dryRunCapability,
7
7
  executeCapabilityWithEnvelope,
8
8
  validateCapability
9
- } from "./chunk-GJXRF7Y6.js";
9
+ } from "./chunk-QJQZH5GQ.js";
10
10
  import {
11
- resolveGatewayDomain
12
- } from "./chunk-TKHSULJT.js";
11
+ withOutputMetadata
12
+ } from "./chunk-CZU3V3DQ.js";
13
13
 
14
14
  // src/core/capability-command.ts
15
15
  import { randomBytes } from "crypto";
@@ -0,0 +1,26 @@
1
+ import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
+
3
+ // src/core/host-guidance.ts
4
+ var AE_TRIAL_URL = "https://thinkingai.cn/request-demo";
5
+ var AE_HOST_SETUP_COMMAND = "ae-cli config set-host <url>";
6
+ function missingAeHostHint(additionalAction) {
7
+ const actions = [
8
+ `If your organization already uses AgenticEngine, ask your administrator for its AE URL, then run: ${AE_HOST_SETUP_COMMAND}.`,
9
+ `If you do not have an AgenticEngine environment, request a trial: ${AE_TRIAL_URL}`
10
+ ];
11
+ if (additionalAction) actions.push(additionalAction);
12
+ return actions.join(" ");
13
+ }
14
+ function missingAeHostGuidance() {
15
+ return {
16
+ configure_host: AE_HOST_SETUP_COMMAND,
17
+ existing_customer: "Ask your AgenticEngine administrator for the AE environment URL.",
18
+ request_trial_url: AE_TRIAL_URL
19
+ };
20
+ }
21
+
22
+ export {
23
+ AE_TRIAL_URL,
24
+ missingAeHostHint,
25
+ missingAeHostGuidance
26
+ };