@thinkingai/ae-cli 6.0.48-customer.1 → 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.
- package/README.md +93 -36
- package/README.zh.md +93 -36
- package/dist/{auth-QPEVVBKT.js → auth-FUM37MHF.js} +236 -127
- package/dist/{capability-RUSV77CO.js → capability-J4FU4JZW.js} +47 -34
- package/dist/{chunk-FR2EDAQM.js → chunk-4P355ZWB.js} +69 -1
- package/dist/{chunk-NSIVXKJH.js → chunk-6KBBAPPP.js} +5 -5
- package/dist/chunk-6ZIQV5GW.js +26 -0
- package/dist/chunk-ATSM5XAW.js +623 -0
- package/dist/{chunk-6QK7SYYY.js → chunk-BBEFP4SB.js} +29 -37
- package/dist/{chunk-KEWVSO64.js → chunk-CZU3V3DQ.js} +4 -15
- package/dist/chunk-ECBLHAZO.js +15 -0
- package/dist/{chunk-BVDST5YT.js → chunk-HPLNYQPM.js} +8 -8
- package/dist/{chunk-B5HMQAOM.js → chunk-I4WQAEYB.js} +1 -1
- package/dist/{chunk-BE73PUFX.js → chunk-LNZBEQXW.js} +2 -2
- package/dist/{chunk-GJXRF7Y6.js → chunk-QJQZH5GQ.js} +47 -78
- package/dist/{chunk-JYMGHGCE.js → chunk-VXNMYUXU.js} +24 -13
- package/dist/{chunk-KZ6ZHF5J.js → chunk-WZ6YVQSF.js} +14 -14
- package/dist/{community-report-client-6OL6GBQW.js → community-report-client-XXWGSBSD.js} +2 -4
- package/dist/{config-XNMACCKX.js → config-EXUGQN5T.js} +8 -9
- package/dist/{data-integration-FZQQC3KW.js → data-integration-4NZ53OMT.js} +7 -9
- package/dist/index.js +52 -79
- package/dist/{local-data-upload-client-EFHDLXFG.js → local-data-upload-client-KYOKVYZV.js} +2 -4
- package/dist/{memory-HBJQ2GC5.js → memory-ATNKZNW5.js} +4 -6
- package/dist/{metadata-PGDJE5RQ.js → metadata-3J5ZAVMF.js} +7 -9
- package/dist/{model-BHLJ2QMT.js → model-E4JMQ4V2.js} +4 -6
- package/dist/{personal-semantic-preference-E5NZ56DN.js → personal-semantic-preference-32AAJ37M.js} +6 -8
- package/dist/{sync-MUWPRM5I.js → sync-2GTAKZYX.js} +9 -11
- package/dist/{te-agent-WQZTMEK4.js → te-agent-JB5T3PO7.js} +393 -90
- package/dist/{te-analysis-YWCSSLYL.js → te-analysis-WHYXHRJD.js} +97 -31
- package/dist/{te-community-BNE6KREL.js → te-community-UDBI672N.js} +9 -32
- package/dist/{te-dataops-TXLKM2W6.js → te-dataops-ZLYOCXZ4.js} +19 -20
- package/dist/{te-engage-VEW4CJHK.js → te-engage-DHKNJ5BO.js} +11 -13
- package/dist/{te-kb-BUD6N3NI.js → te-kb-WYQWHFSC.js} +595 -85
- package/dist/{te-system-44LZJDTQ.js → te-system-7G6F2LJA.js} +6 -8
- package/dist/{te-team-XMP47YXE.js → te-team-E7FBBXMQ.js} +6 -8
- package/dist/{update-UODFOZ4P.js → update-D47BUG25.js} +7 -8
- package/package.json +12 -9
- package/skills/ae-agent/SKILL.md +30 -13
- package/skills/ae-agent/references/agent-distribution.md +94 -0
- package/skills/ae-agent/references/approval-request.md +4 -0
- package/skills/ae-agent/references/command_index.md +9 -2
- package/skills/ae-agent/references/create-automation.md +20 -2
- package/skills/ae-agent/references/get-agent-context.md +70 -0
- package/skills/ae-agent/references/list-automations.md +18 -3
- package/skills/ae-agent/references/list-mcp-credentials.md +1 -1
- package/skills/ae-agent/references/mcp-token.md +3 -3
- package/skills/ae-agent/references/set-mcp-credential.md +0 -1
- package/skills/ae-agent/references/update-automation.md +18 -0
- package/skills/ae-analysis/SKILL.md +11 -2
- package/skills/ae-analysis/references/adhoc_run.md +2 -0
- package/skills/ae-analysis/references/ai_models.md +23 -3
- package/skills/ae-analysis/references/analysis_gateway_assets.md +2 -2
- package/skills/ae-analysis/references/command_index.md +7 -7
- package/skills/ae-analysis/references/cross_source_config.md +84 -0
- package/skills/ae-analysis/references/dashboard_update.md +1 -1
- package/skills/ae-analysis/references/user_tag_create.md +23 -1
- package/skills/ae-analysis/references/user_tag_models.md +9 -1
- package/skills/ae-analysis/references/user_tag_update.md +14 -2
- package/skills/ae-data-integration/SKILL.md +2 -1
- package/skills/ae-data-integration/references/dimension-routing.md +36 -0
- package/skills/ae-data-integration/references/local-analysis.md +2 -0
- package/skills/ae-data-integration/references/source-inspect.md +1 -1
- package/skills/ae-data-integration/references/ue-routing.md +17 -1
- package/skills/ae-generate-tracking-plan/SKILL.md +16 -5
- package/skills/ae-kb/SKILL.md +107 -36
- package/skills/ae-kb/references/query-workflow.md +59 -29
- package/skills/ae-kb/references/versions.md +46 -0
- package/skills/ae-system/SKILL.md +1 -1
- package/skills/ae-use-agent/SKILL.md +42 -0
- package/skills/ae-use-agent/references/local-agent.md +114 -0
- package/dist/auth-UMJAA72O.js +0 -15
- package/dist/chunk-533JK3YX.js +0 -72
- package/dist/chunk-O6K2ODUE.js +0 -318
- package/dist/chunk-RWXIXOZG.js +0 -326
- package/dist/client-N7NGZUNI.js +0 -204
- 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
|
-
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
resolveGatewayDomain
|
|
4
|
+
} from "./chunk-TKHSULJT.js";
|
|
5
5
|
import {
|
|
6
6
|
dryRunCapability,
|
|
7
7
|
executeCapabilityWithEnvelope,
|
|
8
8
|
validateCapability
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QJQZH5GQ.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./chunk-
|
|
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
|
+
};
|