@thinkingai/ae-cli 6.1.28 → 6.1.30
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 +24 -4
- package/README.zh.md +24 -4
- package/bin/ae-cli.js +5 -0
- package/bin/runtime-capabilities.json +5 -0
- package/cli-installation-guide.md +24 -3
- package/dist/{auth-NKD5Z5BQ.js → auth-ADZHUIJR.js} +30 -12
- package/dist/{automation-K32V2NKP.js → automation-FD2QZUP6.js} +6 -6
- package/dist/{capability-4CGSL7PK.js → capability-QXFRJYZD.js} +54 -26
- package/dist/{chunk-P6VFCH3P.js → chunk-2F64AZYH.js} +2 -2
- package/dist/{chunk-LMCYSVVA.js → chunk-4PSTYEG5.js} +50 -41
- package/dist/{chunk-KHS64JZQ.js → chunk-72NJKS7O.js} +4 -4
- package/dist/chunk-AVXDJAFC.js +132 -0
- package/dist/{chunk-GI5BMEZO.js → chunk-AWVZTN2B.js} +1 -1
- package/dist/chunk-CG773QXN.js +2289 -0
- package/dist/{chunk-UUD5RB36.js → chunk-E25OSZLJ.js} +3 -3
- package/dist/{chunk-UF244C5C.js → chunk-EUFP4M2A.js} +7 -7
- package/dist/{chunk-QW3R6O7L.js → chunk-HRUOV6EQ.js} +57 -15
- package/dist/{chunk-T44M3PLZ.js → chunk-JEUXDY3B.js} +1 -1
- package/dist/{chunk-2UWS5CUP.js → chunk-JSBLCLFE.js} +3 -3
- package/dist/{chunk-QSAR3GHY.js → chunk-OAWPT7VP.js} +2 -2
- package/dist/{chunk-2IYIYSUO.js → chunk-QVRIDN42.js} +2 -2
- package/dist/{chunk-P7KL7IOH.js → chunk-SOSFRU3O.js} +2 -2
- package/dist/{chunk-GTPWDLTE.js → chunk-TFORY6WY.js} +35 -14
- package/dist/{chunk-JJJIP2XQ.js → chunk-VDICGXCY.js} +2 -2
- package/dist/{chunk-UJ7UPRXK.js → chunk-Y3AM6LIO.js} +10 -8
- package/dist/chunk-YULUBP3R.js +222 -0
- package/dist/{chunk-X7DRLE62.js → chunk-YVG6QD3V.js} +1 -1
- package/dist/{chunk-ZW4VMY5H.js → chunk-Z3Q2AEIN.js} +152 -98
- package/dist/{community-report-client-S2K3A3Q6.js → community-report-client-TJVCLZ3K.js} +1 -1
- package/dist/compat-check-HERBTQZN.js +32 -0
- package/dist/{config-ASSAAIOI.js → config-E3KANXMK.js} +38 -6
- package/dist/{context-6RWLVOM5.js → context-CDB5H5PD.js} +4 -4
- package/dist/{data-integration-EXSUPUDZ.js → data-integration-QE37EQ3A.js} +207 -24
- package/dist/{evaluation-5YT4QLCL.js → evaluation-LR4YDYWL.js} +4 -4
- package/dist/index.js +297 -70
- package/dist/{local-data-upload-client-7HCPGIS3.js → local-data-upload-client-KCMG6J62.js} +1 -1
- package/dist/{memory-VCYLVPMI.js → memory-SNFR5M23.js} +6 -6
- package/dist/{metadata-YGI5M6OF.js → metadata-EXQYDZTH.js} +16 -8
- package/dist/{model-DPJHSD73.js → model-KEVCEXWD.js} +4 -4
- package/dist/{personal-semantic-preference-76TBKAPY.js → personal-semantic-preference-ETY3KU2O.js} +7 -6
- package/dist/{project-semantic-XOEBO2Q5.js → project-semantic-UHRMVOJF.js} +11 -10
- package/dist/{sync-7PP6KQ75.js → sync-XKEBXESC.js} +8 -7
- package/dist/{te-agent-PJVAPKBD.js → te-agent-S6UQR4IE.js} +11 -7
- package/dist/{te-analysis-OX62G5VD.js → te-analysis-WOFFCIBC.js} +185 -33
- package/dist/{te-community-QN3WMPNT.js → te-community-R7B6QYOO.js} +720 -228
- package/dist/{te-dataops-UKD2XN3E.js → te-dataops-KPILYVHA.js} +6 -5
- package/dist/{te-engage-X3DIXPRA.js → te-engage-IAUM6ONX.js} +13 -12
- package/dist/{te-experiment-MEIIK3DP.js → te-experiment-TMLRA7B3.js} +55 -21
- package/dist/{te-kb-73EWDFDF.js → te-kb-GKWPSLSY.js} +409 -85
- package/dist/{te-system-IE7NCKC3.js → te-system-CYWSK3UN.js} +6 -6
- package/dist/{te-team-MGQ5CNRW.js → te-team-ISN52YNG.js} +7 -6
- package/dist/{things-4JIBCA55.js → things-DDQ52Z3Q.js} +7 -7
- package/dist/{update-AX66IFMJ.js → update-CTLNTX35.js} +11 -7
- package/dist/{workspace-Q5NMEKEN.js → workspace-2CKQX2XL.js} +6 -6
- package/package.json +17 -7
- package/skills/ae-agent/references/resource-package.md +4 -0
- package/skills/ae-analysis/SKILL.md +14 -10
- package/skills/ae-analysis/references/agent_review_preflight.md +52 -11
- package/skills/ae-analysis/references/agent_review_priorities_comparisons.md +5 -3
- package/skills/ae-analysis/references/agent_review_submit_to_page.md +57 -25
- package/skills/ae-analysis/references/command_index.md +7 -3
- package/skills/ae-analysis/references/governance_recommendation_export.md +31 -17
- package/skills/ae-analysis/references/governance_recommendation_run_update.md +13 -0
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +9 -1
- package/skills/ae-analysis/references/scenario_append.md +6 -0
- package/skills/ae-analysis/references/scenario_begin.md +11 -0
- package/skills/ae-analysis/references/scenario_collect.md +10 -2
- package/skills/ae-analysis/references/scenario_evaluation.md +6 -18
- package/skills/ae-analysis/references/scenario_get.md +15 -0
- package/skills/ae-analysis/references/scenario_list.md +64 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +14 -1
- package/skills/ae-community/SKILL.md +77 -27
- package/skills/ae-community/references/community-analyzing-theme-comment.md +10 -8
- package/skills/ae-community/references/community-data-quality.md +68 -0
- package/skills/ae-community/references/community-query-evidence.md +85 -0
- package/skills/ae-community/references/community-scenario-capabilities.md +137 -0
- package/skills/ae-community/references/community-weekly-report.md +6 -3
- package/skills/ae-community/references/get_channel_info.md +7 -4
- package/skills/ae-community/references/get_comment_tag_analysis.md +3 -3
- package/skills/ae-community/references/get_comments_summary.md +4 -4
- package/skills/ae-community/references/get_corpus_tags.md +3 -3
- package/skills/ae-community/references/get_daily_summary.md +3 -3
- package/skills/ae-community/references/get_hot_topics.md +3 -3
- package/skills/ae-community/references/get_livestream_analysis.md +3 -3
- package/skills/ae-community/references/get_livestream_detail.md +4 -4
- package/skills/ae-community/references/get_livestream_list.md +3 -3
- package/skills/ae-community/references/get_livestream_overview.md +3 -3
- package/skills/ae-community/references/get_livestream_room_metrics.md +3 -3
- package/skills/ae-community/references/get_livestream_rooms.md +3 -3
- package/skills/ae-community/references/get_overview_metrics.md +3 -3
- package/skills/ae-community/references/get_post_detail.md +4 -4
- package/skills/ae-community/references/get_risk_content.md +5 -5
- package/skills/ae-community/references/get_sentiment_overview.md +4 -4
- package/skills/ae-community/references/get_tag_trends.md +3 -3
- package/skills/ae-community/references/get_topic_detail.md +3 -3
- package/skills/ae-community/references/list_sources.md +28 -0
- package/skills/ae-community/references/list_spaces.md +39 -0
- package/skills/ae-community/references/search_posts.md +21 -7
- package/skills/ae-data-integration/SKILL.md +6 -4
- package/skills/ae-data-integration/references/error-handling.md +1 -0
- package/skills/ae-data-integration/references/handoff.md +1 -1
- package/skills/ae-data-integration/references/sink-upload.md +11 -0
- package/skills/ae-data-integration/references/source-inspect.md +2 -1
- package/skills/ae-data-integration/references/transform.md +1 -1
- package/skills/ae-data-integration/references/ue-mapping.md +1 -1
- package/skills/ae-experiment/SKILL.md +7 -1
- package/skills/ae-experiment/references/manage_experiment.md +18 -1
- package/skills/ae-experiment/references/query_experiment_detail.md +7 -0
- package/skills/ae-experiment/references/save_experiment.md +76 -2
- package/skills/ae-experiment/references/save_submit_experiment.md +7 -0
- package/skills/ae-kb/SKILL.md +37 -8
- package/skills/ae-kb/references/publication.md +81 -0
- package/skills/ae-kb/references/query-workflow.md +20 -6
- package/skills/ae-kb-discovery/SKILL.md +15 -6
- package/skills/ae-metadata/SKILL.md +2 -2
- package/skills/ae-metadata/references/metadata_data_table_get.md +35 -0
- package/dist/chunk-ELCR235M.js +0 -1429
|
@@ -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
|
|
15
|
-
and
|
|
16
|
-
|
|
17
|
-
|
|
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
|
|
@@ -140,7 +141,20 @@ A revision or access-context change requires revalidation, not silent reuse.
|
|
|
140
141
|
5. **Assess coverage, then answer or iterate.** Map the user's question into
|
|
141
142
|
subquestions and check each one against the sections you actually read. If a
|
|
142
143
|
subquestion is covered, answer with citations (knowledge base + page path +
|
|
143
|
-
section
|
|
144
|
+
section, plus the returned `readView.versionId/versionNumber` for snapshots).
|
|
145
|
+
For `version_pinned` results, describe consistency within that captured view.
|
|
146
|
+
Unchanged `versionId/readIdentity` proves that the reads used the same snapshot;
|
|
147
|
+
it does not establish whether a newer publication or rollback occurred outside
|
|
148
|
+
the execution. Claims about the latest formal version require separate current
|
|
149
|
+
publication evidence obtained through an authorized management workflow.
|
|
150
|
+
Preserve version identity with the reference; a fresh read of the same path is
|
|
151
|
+
not a historical citation read. For completed Ask sources with `reference`, use
|
|
152
|
+
`ae-cli kb +ask-status --execution-id <reference.executionId> --source-index <reference.sourceIndex>`
|
|
153
|
+
to reopen the original version under current permissions. An unversioned source
|
|
154
|
+
has no guaranteed historical snapshot; do not label its current content historical.
|
|
155
|
+
Historical source reads are rejected inside a required fixed-context execution;
|
|
156
|
+
never remove that context or fall back to an ordinary token to bypass its KB set.
|
|
157
|
+
If a gap remains, go back to step 2 with another set of `--paths`
|
|
144
158
|
**copied** from current navigation, or return to discovery for the next candidate.
|
|
145
159
|
For a knowledge-only question, missing evidence after the allowed search
|
|
146
160
|
means "not covered by the knowledge base" — do not attach a confident fact
|
|
@@ -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.
|
|
36
|
+
### 1. Use Trusted Active Sources Before Discovery
|
|
36
37
|
|
|
37
|
-
|
|
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
|
-
###
|
|
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
|
|
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
|
-
###
|
|
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.
|
|
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.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ae-metadata
|
|
3
|
-
version: 1.0.
|
|
3
|
+
version: 1.0.5
|
|
4
4
|
description: "AE metadata capability-gateway CLI: list, inspect, create, update, delete and download metadata data tables; bind an existing dimension table to a property or create and bind a CSV dimension table. Local file upload and event/property discovery are separate prerequisite capabilities."
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ Use this skill for gateway-backed data-table and property dimension-table operat
|
|
|
14
14
|
|
|
15
15
|
- Responsibilities: data-table management and dimension-table bindings through the commands below.
|
|
16
16
|
- Inputs: verified project, table/property identifiers and operation-specific parameters; local CSV workflows need a valid uploaded input-file identifier and purpose.
|
|
17
|
-
- Outputs: table/binding operation results, resource identifiers, or download run/artifact status. A submitted asynchronous download is not yet a completed file.
|
|
17
|
+
- Outputs: table/binding operation results, resource identifiers, or download run/artifact status. Data-table get can include saved SQL definitions, parameters, and schedule configuration on supported servers; read its reference for availability and execution-value limits. A submitted asynchronous download is not yet a completed file.
|
|
18
18
|
- Boundaries: local input-file upload, event/property detail and discovery, metric CRUD, virtual metadata, batch metadata, project configuration and tracking plans are separate capabilities.
|
|
19
19
|
- Completion: the requested table or binding result is verified, or pending/blocked work and its remaining requirements are reported.
|
|
20
20
|
|
|
@@ -9,6 +9,8 @@ ae-cli metadata data-table get --project-id <project_id> --data-table-id <id>
|
|
|
9
9
|
ae-cli metadata data-table get --project-id <project_id> --data-table-id <id> --include-preview true
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
+
Use this command to inspect a metadata data table's columns, bindings, and saved SQL configuration. It requires the existing metadata view permission for the selected project. Reading a saved SQL definition does not authorize querying its upstream tables.
|
|
13
|
+
|
|
12
14
|
## Parameters
|
|
13
15
|
|
|
14
16
|
| Parameter | Required | Description |
|
|
@@ -24,3 +26,36 @@ Each call to this capability's Gateway `execute` endpoint consumes one unit of t
|
|
|
24
26
|
```json
|
|
25
27
|
{ "project_id": 1, "data_table_id": 42, "include_preview": true }
|
|
26
28
|
```
|
|
29
|
+
|
|
30
|
+
## Detail output
|
|
31
|
+
|
|
32
|
+
Default JSON returns the complete server payload under `data`, including columns and bindings. `--include-preview true` additionally requests preview rows; it is not required to read saved SQL configuration.
|
|
33
|
+
|
|
34
|
+
On servers that support SQL definition output, SQL tables add the following fields in both default and preview responses. Non-SQL tables omit them.
|
|
35
|
+
|
|
36
|
+
| Field | Meaning |
|
|
37
|
+
|---|---|
|
|
38
|
+
| `create_qp` | Saved creation QP as a JSON object. |
|
|
39
|
+
| `update_qp` | Saved update QP as a JSON object. |
|
|
40
|
+
| `create_zone_offset` / `update_zone_offset` | Offset in hours used to parse SQL parameters for the corresponding QP. These are not the cron schedule timezone. |
|
|
41
|
+
| `strategy` | Saved update strategy, such as `overwrite` or `insert`. |
|
|
42
|
+
| `update_cron` | Saved update cron expression. Interpret it together with `update_conf_status`. |
|
|
43
|
+
| `update_conf_status` | Schedule switch state: `NOT_SET`, `ENABLE`, or `DISABLE`. This is not task running status or evidence that an execution succeeded. |
|
|
44
|
+
|
|
45
|
+
The wrapper fields use snake_case. QP objects retain the published model keys: SQL is at `taSqlVo.sql`, SQL parameters at `taSqlVo.sqlVoParams`, and view parameters at `taSqlView.sqlViewParams`. Preserve all nested keys and values, including extensions, when reading or reusing the definition. See [the SQL-write QP contract](metadata_data_table_sql_write.md#qp-contract-sqldatatabledef) before constructing a write.
|
|
46
|
+
|
|
47
|
+
Parameter definitions and saved values describe configuration. Values containing expressions or placeholders may resolve differently during each execution. This response does not supply the actual resolved values of a specific execution; obtain execution evidence separately when those values are required.
|
|
48
|
+
|
|
49
|
+
For SQL tables, unavailable configuration values are `null`; missing, invalid, or non-object historical QP values also produce `null` QP fields. Default get returns `null` configuration fields when the SQL definition record is missing. `--include-preview true` retains the server's existing preview behavior; missing definition records may still cause preview to fail on affected servers. A `null` QP does not establish that the SQL has no parameters. An empty parameter array is an explicit empty saved parameter list. Older servers may omit the new fields entirely, so missing fields alone do not prove that configuration is empty or that this server supports definition output. Inspect the selected server capability when availability matters.
|
|
50
|
+
|
|
51
|
+
## Read the complete definition
|
|
52
|
+
|
|
53
|
+
Use `--format json` to retain SQL configuration beside columns and bindings. Table format may render only the columns array. CLI `--jq` runs on the payload before envelope wrapping, so paths start at `.create_qp` or `.update_qp`, not `.data`.
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
ae-cli metadata data-table get --project-id <project_id> --data-table-id <id> --format json
|
|
57
|
+
ae-cli metadata data-table get --project-id <project_id> --data-table-id <id> --jq '{create_qp, update_qp, create_zone_offset, update_zone_offset, strategy, update_cron, update_conf_status}'
|
|
58
|
+
ae-cli metadata data-table get --project-id <project_id> --data-table-id <id> --jq '.update_qp.taSqlVo.sqlVoParams'
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Choose the full response or a projection containing all required fields in one read. If the response is saved to a local file, inspect that file for additional paths instead of repeating the server request.
|