@thinkingai/ae-cli 6.1.41 → 6.1.43
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 +14 -4
- package/README.zh.md +14 -4
- package/bin/ae-cli.js +3 -0
- package/bin/heari/commander-LICENSE +22 -0
- package/bin/heari/engine.mjs +6136 -0
- package/bin/heari/package.json +6 -0
- package/bin/heari.mjs +29 -0
- package/cli-installation-guide.md +6 -7
- package/dist/{ai-monitor-OOOD4QDK.js → ai-monitor-4VPHXQTL.js} +7 -6
- package/dist/ai-monitor.js +10 -9
- package/dist/{auth-6BUUY5XS.js → auth-RDSS2LUT.js} +18 -16
- package/dist/{automation-IMDCJUML.js → automation-VLIWG2XY.js} +5 -4
- package/dist/{capability-XXFCANX7.js → capability-CUOEIB5F.js} +5 -4
- package/dist/{chunk-KE5WGBXS.js → chunk-3DTMWDJX.js} +1 -1
- package/dist/{chunk-FPPCXG6K.js → chunk-3FSYICDW.js} +6 -5
- package/dist/{chunk-BEVWMPCZ.js → chunk-3TV24AVQ.js} +10 -10
- package/dist/{chunk-DTODOQ6T.js → chunk-3U75VLCP.js} +1 -1
- package/dist/{chunk-6W56UQPO.js → chunk-4MOCV6HU.js} +1 -1
- package/dist/{chunk-M2OCZRVX.js → chunk-6VLHJKDD.js} +2 -2
- package/dist/{chunk-WG27BD67.js → chunk-7KBENPQF.js} +8 -16
- package/dist/{chunk-5YQSCMGS.js → chunk-BFSWGXM2.js} +3 -3
- package/dist/{chunk-UK7HQ4IL.js → chunk-CBNE2S44.js} +2 -2
- package/dist/{chunk-UWQXGF44.js → chunk-FEYZBUFQ.js} +4 -353
- package/dist/chunk-FKTVD63C.js +369 -0
- package/dist/{chunk-2H3SFJE3.js → chunk-FKVG7LOP.js} +5 -3
- package/dist/{chunk-I7H72CMN.js → chunk-IAZ4AMVY.js} +109 -85
- package/dist/{chunk-KDRE7SWM.js → chunk-LSELMDKQ.js} +2 -2
- package/dist/{chunk-2RORKIF6.js → chunk-NJGB4YOH.js} +2 -2
- package/dist/{chunk-L7MT53VM.js → chunk-PWG5IGCP.js} +1 -1
- package/dist/{chunk-EHH3ZF7D.js → chunk-TFEGYB4X.js} +2 -2
- package/dist/{chunk-DZRQGI2Z.js → chunk-ZPAOEDK7.js} +5 -3
- package/dist/{compat-check-AO3BFA3N.js → compat-check-L3C7HCVG.js} +4 -3
- package/dist/{config-N5V4VNER.js → config-LAF5MMYK.js} +6 -5
- package/dist/context-E4YKECC4.js +350 -0
- package/dist/{evaluation-OZM54MES.js → evaluation-I4IJ25CY.js} +4 -3
- package/dist/heari-cli-login.js +83 -0
- package/dist/index.js +43 -34
- package/dist/{memory-VPOPSU52.js → memory-Y7LPCRP4.js} +5 -4
- package/dist/{metadata-OUJPEMLD.js → metadata-T6HYAU7E.js} +7 -6
- package/dist/{model-2F2354QP.js → model-2BNN72MN.js} +7 -6
- package/dist/{personal-semantic-preference-WEAIZQXM.js → personal-semantic-preference-WCZBOA7V.js} +42 -16
- package/dist/{project-semantic-6VXUYU4A.js → project-semantic-WW5AZST3.js} +266 -17
- package/dist/{sync-BAV3UY46.js → sync-6PL25V42.js} +13 -12
- package/dist/{te-agent-QWZC36YS.js → te-agent-KXLDW4NE.js} +6 -5
- package/dist/{te-analysis-43RCOPUA.js → te-analysis-KKRECQ7F.js} +311 -52
- package/dist/{te-community-ECNTP35Z.js → te-community-6RGX7IWH.js} +8 -6
- package/dist/{te-dataops-ISEKYRLZ.js → te-dataops-RSPBC6WJ.js} +726 -220
- package/dist/{te-engage-LBKIZXZO.js → te-engage-FIPP5L2Z.js} +6 -5
- package/dist/{te-experiment-5TPQKN6B.js → te-experiment-KQ5CBYKI.js} +86 -10
- package/dist/{te-kb-SHL56BJ5.js → te-kb-XYSDXZUG.js} +32 -11
- package/dist/{te-system-Z4VEB6PL.js → te-system-QSOHAP7M.js} +7 -6
- package/dist/{te-team-EZ3TZTLV.js → te-team-R6MZ4RK2.js} +6 -5
- package/dist/{things-UBMLTY3S.js → things-DEONFUGS.js} +6 -5
- package/dist/{update-WE7VNRKZ.js → update-C6G4P3C7.js} +5 -4
- package/dist/{web-runtime-H53QKJS2.js → web-runtime-UGKPTBOK.js} +18 -12
- package/dist/{workspace-W5ZPVWJS.js → workspace-OBIIE5FN.js} +5 -4
- package/package.json +7 -5
- package/skills/ae-analysis/SKILL.md +41 -16
- package/skills/ae-analysis/references/adhoc_export.md +1 -1
- package/skills/ae-analysis/references/adhoc_run.md +8 -2
- package/skills/ae-analysis/references/analysis_drilldown_contract.md +1 -1
- package/skills/ae-analysis/references/audience_scheduling.md +30 -0
- package/skills/ae-analysis/references/business_semantics_workspace.md +57 -0
- package/skills/ae-analysis/references/command_index.md +18 -13
- package/skills/ae-analysis/references/context_prepare.md +49 -0
- package/skills/ae-analysis/references/drilldown_entities_export.md +1 -1
- package/skills/ae-analysis/references/drilldown_entities_run.md +1 -1
- package/skills/ae-analysis/references/drilldown_user_events_export.md +3 -1
- package/skills/ae-analysis/references/drilldown_user_events_run.md +2 -1
- package/skills/ae-analysis/references/governance_recommendation_export.md +1 -1
- package/skills/ae-analysis/references/personal_semantic_preference_add.md +5 -1
- package/skills/ae-analysis/references/personal_semantic_preference_get.md +4 -2
- package/skills/ae-analysis/references/personal_semantic_preference_list.md +7 -6
- package/skills/ae-analysis/references/personal_semantic_preference_submit.md +1 -1
- package/skills/ae-analysis/references/personal_semantic_preference_update.md +5 -1
- package/skills/ae-analysis/references/project_info_get.md +4 -0
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +1 -1
- package/skills/ae-analysis/references/project_semantic_setup.md +60 -0
- package/skills/ae-analysis/references/report_get.md +2 -0
- package/skills/ae-analysis/references/report_presentation.md +55 -0
- package/skills/ae-analysis/references/report_update.md +4 -2
- package/skills/ae-analysis/references/system_openapi_token_batch_generate.md +20 -0
- package/skills/ae-analysis/references/system_openapi_token_get.md +14 -0
- package/skills/ae-analysis/references/user_cluster_create.md +3 -1
- package/skills/ae-analysis/references/user_cluster_models.md +2 -0
- package/skills/ae-analysis/references/user_cluster_update.md +5 -3
- package/skills/ae-analysis/references/user_tag_create.md +4 -22
- package/skills/ae-analysis/references/user_tag_models.md +8 -0
- package/skills/ae-analysis/references/user_tag_update.md +6 -14
- package/skills/ae-analysis/scripts/read-semantic-catalog.mjs +40 -0
- package/skills/ae-capability/SKILL.md +5 -1
- package/skills/ae-dataops/SKILL.md +9 -6
- package/skills/ae-dataops/references/dataops-flow-create.md +64 -47
- package/skills/ae-dataops/references/dataops-flow-monitor.md +4 -2
- package/skills/ae-dataops/references/dataops-flow-python.md +109 -0
- package/skills/ae-experiment/SKILL.md +9 -1
- package/skills/ae-experiment/references/manage_feature_fixed_value.md +73 -0
- package/skills/ae-experiment/references/save_feature.md +14 -1
- package/skills/ae-heari-research/SKILL.md +40 -0
- package/skills/ae-heari-research/references/design.md +35 -0
- package/skills/ae-heari-research/references/examples.md +46 -0
- package/skills/ae-heari-research/references/platform-auth.md +35 -0
- package/skills/ae-heari-research/references/platform-research.md +74 -0
- package/skills/ae-heari-research/references/platform-results.md +73 -0
- package/skills/ae-heari-research/references/platform.md +34 -0
- package/skills/ae-heari-research/references/probing-screening.md +31 -0
- package/skills/ae-heari-research/references/quality.md +44 -0
- package/skills/ae-kb/SKILL.md +10 -5
- package/skills/ae-kb/references/analysis-workflow.md +19 -10
- package/skills/ae-kb/references/query-workflow.md +34 -17
- package/skills/ae-kb-discovery/SKILL.md +4 -3
- package/skills/ae-onboarding/SKILL.md +4 -6
- package/skills/ae-onboarding/references/onboarding_run.md +5 -1
- package/dist/context-WJQGJD6F.js +0 -139
- package/dist/{data-integration-KMJWYAKK.js → data-integration-SCYYZLWI.js} +4 -4
package/README.md
CHANGED
|
@@ -12,6 +12,10 @@ The CLI is designed around:
|
|
|
12
12
|
- Explicit validation, dry-run, and confirmation contracts for safer writes.
|
|
13
13
|
- Exact CLI and Skills version synchronization with the connected AE environment.
|
|
14
14
|
|
|
15
|
+
## User research with HearI
|
|
16
|
+
|
|
17
|
+
On Node.js 22+, run `ae-cli heari schema` to explore commands offline. When your AE deployment enables HearI CLI login, HearI verifies your AE ticket on first use and links your active identity to its workspace. You can skip signing in on the HearI website and run `ae-cli heari studies list --no-input` directly after AE login. This grants read access for the current command. Use `ae-cli heari login` to verify access through the current AE registration. AE selects the endpoint; this flow has no browser callback. Use `ae-cli heari` wherever HearI help shows `heari`. The CLI and research Skill ship and update with AE.
|
|
18
|
+
|
|
15
19
|
## Requirements
|
|
16
20
|
|
|
17
21
|
- Node.js 20 or later.
|
|
@@ -119,13 +123,13 @@ The table covers every current root command individually. Use `ae-cli --help` fo
|
|
|
119
123
|
| Category | Root command | Purpose |
|
|
120
124
|
|---|---|---|
|
|
121
125
|
| Analysis and projects | `analysis` | Reports, dashboards, ad-hoc analysis, drilldowns, details, alerts, tags, and cohorts |
|
|
122
|
-
| Analysis and projects | `experiment` | Atlas experiments, reports, traffic domains and layers, buckets, Features, metrics, and operation logs |
|
|
126
|
+
| Analysis and projects | `experiment` | Atlas experiments, reports, traffic domains and layers, buckets, Features (including fixed values and reset), metrics, and operation logs |
|
|
123
127
|
| Analysis and projects | `analysis-meta` | Event/property catalogs, metrics, virtual metadata, tracking governance, and project analysis settings |
|
|
124
128
|
| Analysis and projects | `analysis-governance` | Data-asset search, lineage, impact analysis, certification, and governance |
|
|
125
129
|
| Analysis and projects | `project` | Project information, members, roles, permissions, entities, time zones, and handover settings |
|
|
126
130
|
| Analysis and projects | `metadata` | Capability-backed data-table, property, and dimension-table binding operations |
|
|
127
131
|
| Analysis and projects | `personal-semantic-preference` | Current-user semantic preferences for a project or across projects (`--project-id -1`) |
|
|
128
|
-
| Analysis and projects | `project-semantic` |
|
|
132
|
+
| Analysis and projects | `project-semantic` | Project-semantics setup evidence and reusable asset-package export |
|
|
129
133
|
| Observability | `ai-monitor` | Read traces, conversations, Bad Traces, metrics, cost, security and existing diagnosis reports; export verified ZIPs ([guide](skills/ae-ai-monitor/SKILL.md)) |
|
|
130
134
|
| Data and tracking | `tracking` | Tracking plans, SDK samples, checks, ingestion diagnostics, code generation, and bundled wiki |
|
|
131
135
|
| Data and tracking | `data-integration` | Inspect, plan, convert, upload, hand off, and reuse local CSV/JSON/Excel data |
|
|
@@ -157,11 +161,15 @@ The table covers every current root command individually. Use `ae-cli --help` fo
|
|
|
157
161
|
| General tools | `model` | Inspect and switch the current workspace model inside an Agent sandbox; blocked in AgentSpace context |
|
|
158
162
|
| General tools | `update` | Synchronize CLI and Skills to the version required by the current Host |
|
|
159
163
|
| General tools | `install` | Install and verify CLI and matching global Skills |
|
|
164
|
+
| User research | `heari` | Design studies, manage interviews, and read results in a HearI workspace |
|
|
160
165
|
| Agent platform | `workspace` | AgentSpace context, profiles, capabilities, members, activities, and lifecycle |
|
|
161
166
|
| Agent platform | `things` | Workspace issues, collaborators, timeline, archive, and restore |
|
|
162
167
|
| Agent platform | `automation` | Automation configuration, execution, history, and results |
|
|
163
168
|
<!-- root-command-surface:end -->
|
|
164
169
|
|
|
170
|
+
For project business-semantics setup, use the bundled [setup workflow](skills/ae-analysis/references/project_semantic_setup.md). `ae-cli project-semantic setup --project-id 5 --asset-scope certified --output ./project-evidence` prepares a private evidence workspace; it does not generate or save semantics. Choose `frequent`, `all`, `specified` (with exact `--asset-refs`) or `none` (with `--materials`) as needed. The CLI Agent reviews complete catalogs and source definitions, proposes a background draft and distinct entries, then saves only user-confirmed changes through existing capabilities. Background publication remains a separate action.
|
|
171
|
+
|
|
172
|
+
|
|
165
173
|
Review collected analysis questions with `ae-cli analysis scenario list --project-id 1 --days 7`. The `ae-analysis` Skill can deduplicate questions and assess badcases with concise, evidence-based reasons. See the [scenario review guide](skills/ae-analysis/references/scenario_list.md). Answers can include elapsed time; use `ae-cli analysis scenario get --help` to query linked command execution details.
|
|
166
174
|
|
|
167
175
|
To save and review Bad Cases, use `ae-cli analysis bad-case --help`. The Agent semantically deduplicates each batch against all historical states. Review in CLI or explicitly submit to the page; each batch reports discovered, duplicate, and new counts. Notes are optional. Approval adds the case to the bound AE dataset; revoking approval removes it. See the [Bad Case workflow](skills/ae-analysis/references/bad_case_review.md).
|
|
@@ -204,11 +212,11 @@ Use `validate` while fixing complex nested input. Use `dry-run` when you need th
|
|
|
204
212
|
|
|
205
213
|
Gateway-backed features follow the [Capability command admission rules](docs/capability-command-admission.md). Common workflows may have curated commands; long-tail capabilities remain dynamically discoverable.
|
|
206
214
|
|
|
207
|
-
Event-report presentation is separate from its query definition: `analysis report create|update --presentation '{"chart_type":"bar","table_layout":"event"}'` sets the source chart/result-table layout, and `report get` returns its effective presentation. On same-model updates, omit presentation to preserve the saved chart and result-table layout. For a table card on an analysis board, use `analysis dashboard-report get|update` with exact project/dashboard/report IDs; `update --chart-type table --table-layout event --date-outside false` changes only that card, preserving the source definition and other boards.
|
|
215
|
+
Event-report presentation is separate from its query definition: `analysis report create|update --presentation '{"chart_type":"bar","table_layout":"event"}'` sets the source chart/result-table layout, and `report get` returns its effective presentation. On same-model updates, omit presentation to preserve the saved chart and result-table layout. For a table card on an analysis board, use `analysis dashboard-report get|update` with exact project/dashboard/report IDs; `update --chart-type table --table-layout event --date-outside false` changes only that card, preserving the source definition and other boards. Source report update also supports ordinary-model labels, retention key periods, funnel/pie display, date annotations and other bounded display options; see [source presentation](skills/ae-analysis/references/report_presentation.md) for applicability. Dashboard presentation remains event-only. See [report update](skills/ae-analysis/references/report_update.md) and [card update](skills/ae-analysis/references/dashboard_report_update.md).
|
|
208
216
|
|
|
209
217
|
Event combination charts use source `presentation.chart_type=combo` and `series` items `{metric_index:1,type:"bar",axis:"primary"}` (`type=bar|line`, `axis=primary|secondary`). Indexes are current 1-based `definition.metrics` positions; updates use the current report version, subset patches, or explicit `series: []`/`chart_type=line` resets. Board trends inherit source series, so source edits affect its other trend cards; `dashboard-report update --chart-type combo` selects existing combo, not a card-local override. Cumulative line is not combo. See [combination-chart scope and safety](skills/ae-analysis/references/event_report_presentation.md).
|
|
210
218
|
|
|
211
|
-
`analysis user-tag create|update` supports periodic refresh in one command: pass `--auto-refresh-schedule '{"frequency":"daily","time":"02:30"}'` (also weekly
|
|
219
|
+
`analysis user-tag create|update` supports periodic refresh in one command: pass `--auto-refresh-schedule '{"frequency":"daily","time":"02:30"}'` (also daily_multiple, weekly, and monthly). Use `--enable-auto-refresh false` to disable it. Scheduling-only updates do not recompute; omitted settings preserve the existing plan. See the [tag create](skills/ae-analysis/references/user_tag_create.md) and [tag update](skills/ae-analysis/references/user_tag_update.md) references.
|
|
212
220
|
|
|
213
221
|
## Authentication and Environments
|
|
214
222
|
|
|
@@ -269,6 +277,8 @@ The CLI calls business endpoints directly; services enforce product License and
|
|
|
269
277
|
|
|
270
278
|
Trial guidance is emitted only when no Host is configured; normal commands and authentication flows for configured environments do not display it.
|
|
271
279
|
|
|
280
|
+
Before every business action, the analysis Skill runs `ae-cli context prepare` for company background and the full global personal directory, then `ae-cli context prepare --project-id <id>` after project selection for project background and personal/public catalogs. Context is cached per conversation, shared duplicates are folded, and every returned page must be consumed. Existing business commands remain independent. See [context preparation](skills/ae-analysis/references/context_prepare.md).
|
|
281
|
+
|
|
272
282
|
## Output and Safety
|
|
273
283
|
|
|
274
284
|
Commands return a stable envelope:
|
package/README.zh.md
CHANGED
|
@@ -12,6 +12,10 @@ CLI 的核心设计包括:
|
|
|
12
12
|
- 明确的参数校验、dry-run 和高风险确认契约。
|
|
13
13
|
- CLI 与 Skills 按当前 AE 环境要求的精确版本同步。
|
|
14
14
|
|
|
15
|
+
## 使用 HearI 开展用户研究
|
|
16
|
+
|
|
17
|
+
使用 Node.js 22+ 时,可以运行 `ae-cli heari schema` 离线查看命令。当前 AE 环境启用 HearI CLI 登录后,首次使用时,HearI 验票后会为有效的 AE 身份建立工作区绑定,无需提前登录 HearI 网页。登录 AE 即可运行 `ae-cli heari studies list --no-input` 查看研究。每次调用获取只读权限。运行 `ae-cli heari login` 可验证当前 AE 绑定的 HearI 工作区,无需设置地址或浏览器回调。将 HearI 帮助中的 `heari` 替换为 `ae-cli heari` 即可执行示例。CLI 和配套研究技能随 AE 安装和更新。
|
|
18
|
+
|
|
15
19
|
## 环境要求
|
|
16
20
|
|
|
17
21
|
- Node.js 20 或更高版本。
|
|
@@ -119,13 +123,13 @@ ae-cli capability list --domain analysis --jq '.capabilities[] | .id'
|
|
|
119
123
|
| 类别 | 根命令 | 用途 |
|
|
120
124
|
|---|---|---|
|
|
121
125
|
| 分析与项目 | `analysis` | 报告、看板、即席分析、下钻、详情、告警、标签和分群 |
|
|
122
|
-
| 分析与项目 | `experiment` | Atlas 实验、报表、流量域与流量层、分桶、Feature
|
|
126
|
+
| 分析与项目 | `experiment` | Atlas 实验、报表、流量域与流量层、分桶、Feature(含值固定与重置)、指标和操作日志 |
|
|
123
127
|
| 分析与项目 | `analysis-meta` | 事件/属性目录、指标、虚拟元数据、埋点治理和项目分析配置 |
|
|
124
128
|
| 分析与项目 | `analysis-governance` | 数据资产搜索、血缘、影响分析、认证和治理 |
|
|
125
129
|
| 分析与项目 | `project` | 项目信息、成员、角色、权限、实体、时区和交接配置 |
|
|
126
130
|
| 分析与项目 | `metadata` | 基于 Capability Gateway 的数据表、属性及维度表绑定 |
|
|
127
131
|
| 分析与项目 | `personal-semantic-preference` | 当前用户的项目内或跨项目个人语义偏好(`--project-id -1`) |
|
|
128
|
-
| 分析与项目 | `project-semantic` |
|
|
132
|
+
| 分析与项目 | `project-semantic` | 项目业务语义搭建资料准备及资产包导出 |
|
|
129
133
|
| 可观测性 | `ai-monitor` | 查询 Trace、会话、Bad Trace、指标、成本、安全与已有诊断报告,导出校验后的 ZIP([指南](skills/ae-ai-monitor/SKILL.md)) |
|
|
130
134
|
| 数据与埋点 | `tracking` | 埋点方案、SDK 示例、检查、采集诊断、代码生成和内置 Wiki |
|
|
131
135
|
| 数据与埋点 | `data-integration` | 检查、规划、转换、上传、交接和复用本地 CSV/JSON/Excel 数据 |
|
|
@@ -157,11 +161,15 @@ ae-cli capability list --domain analysis --jq '.capabilities[] | .id'
|
|
|
157
161
|
| 通用工具 | `model` | 在 Agent 沙盒中查看并切换当前工作区模型;在 AgentSpace 上下文中禁用 |
|
|
158
162
|
| 通用工具 | `update` | 将 CLI 和 Skills 同步到当前 Host 要求的版本 |
|
|
159
163
|
| 通用工具 | `install` | 一键安装、验证 CLI 和同版本全局 Skills |
|
|
164
|
+
| 用户研究 | `heari` | 在 HearI 工作区设计研究、管理访谈和查看结果 |
|
|
160
165
|
| Agent 平台 | `workspace` | AgentSpace 上下文、资料、能力、成员、动态与生命周期 |
|
|
161
166
|
| Agent 平台 | `things` | 工作空间事项、协作成员、时间线、归档与恢复 |
|
|
162
167
|
| Agent 平台 | `automation` | 自动化配置、执行、历史和结果 |
|
|
163
168
|
<!-- root-command-surface:end -->
|
|
164
169
|
|
|
170
|
+
项目业务语义首次搭建使用随 CLI 分发的[专项流程](skills/ae-analysis/references/project_semantic_setup.md)。`ae-cli project-semantic setup --project-id 5 --asset-scope certified --output ./project-evidence` 只准备私有资料目录,不自动生成或保存语义。可选择高频资产 `frequent`、全部资产 `all`、指定资产 `specified`(传入准确的 `--asset-refs`),或仅业务资料 `none`(传入 `--materials`)。CLI Agent 完整读取目录和来源定义,整理背景草稿与条目提案,经用户确认后通过现有能力保存;背景发布单独确认。
|
|
171
|
+
|
|
172
|
+
|
|
165
173
|
使用 `ae-cli analysis scenario list --project-id 1 --days 7` 查询已采集的分析问题,由 `ae-analysis` Skill 指导 Agent 去重、判断 badcase 并简要说明原因和证据。详见[分析问题复盘指南](skills/ae-analysis/references/scenario_list.md)。 回答可附带耗时;使用 `ae-cli analysis scenario get --help` 查看关联命令执行明细的查询方式。
|
|
166
174
|
|
|
167
175
|
需保存并审核 Bad Case 时,使用 `ae-cli analysis bad-case --help`。Agent 按语义对同批及所有历史状态去重;CLI 可直接审核,也可显式提交页面。每批汇报发现、重复、新增数量,补充说明选填。认证后将案例加入已绑定的 AE 评测集,取消认证后移除。详见[Bad Case 工作流](skills/ae-analysis/references/bad_case_review.md)。
|
|
@@ -204,11 +212,11 @@ ae-cli capability run analysis.report.list --input input.json
|
|
|
204
212
|
|
|
205
213
|
Gateway 命令遵循 [Capability 命令收录规则](docs/capability-command-admission.md)。常见工作流可以提供精选命令,长尾能力则保持动态发现。
|
|
206
214
|
|
|
207
|
-
事件报表的展示配置与查询定义分开:`analysis report create|update --presentation '{"chart_type":"bar","table_layout":"event"}'` 设置原报表图形及结果表布局,`report get` 返回实际生效的展示配置。同模型更新时省略 presentation 可保留原有图形和结果表布局。看板表格卡片使用 `analysis dashboard-report get|update`,明确项目、看板和报表 ID;`update --chart-type table --table-layout event --date-outside false`
|
|
215
|
+
事件报表的展示配置与查询定义分开:`analysis report create|update --presentation '{"chart_type":"bar","table_layout":"event"}'` 设置原报表图形及结果表布局,`report get` 返回实际生效的展示配置。同模型更新时省略 presentation 可保留原有图形和结果表布局。看板表格卡片使用 `analysis dashboard-report get|update`,明确项目、看板和报表 ID;`update --chart-type table --table-layout event --date-outside false` 只改变该卡片,保留原报表定义及其他看板。源报表更新还支持常规模型的数值标签、留存关键周期、漏斗及饼图展示、日期标注等配置,适用范围见[源报表展示](skills/ae-analysis/references/report_presentation.md);看板展示配置仍限事件报表。详见[报表更新](skills/ae-analysis/references/report_update.md)和[卡片更新](skills/ae-analysis/references/dashboard_report_update.md)。
|
|
208
216
|
|
|
209
217
|
事件组合图使用原报表 `presentation.chart_type=combo` 和 `series` 项 `{metric_index:1,type:"bar",axis:"primary"}`(`type=bar|line`,`axis=primary|secondary`)。索引是当前 `definition.metrics` 从 1 开始的位置;更新使用当前报表版本,支持部分指标补丁及显式 `series: []` / `chart_type=line` 重置。看板趋势图继承原报表系列,修改源系列会影响该报表的其他趋势卡片;`dashboard-report update --chart-type combo` 选择已有组合图,不提供卡片独立覆盖。累计折线不等于组合图。详见[组合图作用域与安全规则](skills/ae-analysis/references/event_report_presentation.md)。
|
|
210
218
|
|
|
211
|
-
`analysis user-tag create|update` 支持一次配置自动更新:传入 `--auto-refresh-schedule '{"frequency":"daily","time":"02:30"}'
|
|
219
|
+
`analysis user-tag create|update` 支持一次配置自动更新:传入 `--auto-refresh-schedule '{"frequency":"daily","time":"02:30"}'`(也支持每天多次、每周、每月)。用 `--enable-auto-refresh false` 关闭自动更新。仅修改调度计划不触发即时重算;省略调度参数则保留原计划。详见[创建标签](skills/ae-analysis/references/user_tag_create.md)和[更新标签](skills/ae-analysis/references/user_tag_update.md)。
|
|
212
220
|
|
|
213
221
|
## 认证与多环境
|
|
214
222
|
|
|
@@ -269,6 +277,8 @@ CLI 直接请求对应业务接口,由服务端校验产品 License 和用户/
|
|
|
269
277
|
|
|
270
278
|
试用引导仅在尚未配置 Host 时出现;已配置环境的正常命令和认证流程不会展示该提示。
|
|
271
279
|
|
|
280
|
+
分析 Skill 在所有业务动作前先执行 `ae-cli context prepare`,读取公司背景与完整个人全局目录;确定项目后执行 `ae-cli context prepare --project-id <id>`,读取项目背景、个人与公共语义目录。上下文按会话缓存,重复共享条目折叠展示;请消费全部返回页。现有业务命令保持独立。详见[上下文准备](skills/ae-analysis/references/context_prepare.md)。
|
|
281
|
+
|
|
272
282
|
## 输出与安全
|
|
273
283
|
|
|
274
284
|
命令返回稳定的输出信封:
|
package/bin/ae-cli.js
CHANGED
|
@@ -7,6 +7,9 @@ if (Number(process.versions.node.split('.')[0]) < 20) {
|
|
|
7
7
|
// Keep discovery independent of application imports and credential initialization.
|
|
8
8
|
const capabilities = JSON.parse(readFileSync(new URL('./runtime-capabilities.json', import.meta.url), 'utf8'));
|
|
9
9
|
process.stdout.write(JSON.stringify(capabilities) + '\n');
|
|
10
|
+
} else if (process.argv[2] === 'heari') {
|
|
11
|
+
const { runHearI } = await import('./heari.mjs');
|
|
12
|
+
process.exitCode = await runHearI(process.argv.slice(3));
|
|
10
13
|
} else {
|
|
11
14
|
await import('../dist/index.js');
|
|
12
15
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|