@thinkingai/ae-cli 6.1.27 → 6.1.29

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 (177) hide show
  1. package/README.md +52 -6
  2. package/README.zh.md +52 -6
  3. package/bin/ae-cli.js +5 -0
  4. package/bin/runtime-capabilities.json +5 -0
  5. package/cli-installation-guide.md +24 -3
  6. package/dist/{auth-WA7YGGRT.js → auth-OBQ5KVQM.js} +175 -45
  7. package/dist/{automation-VAAQBM7Y.js → automation-NAR5DDGL.js} +94 -38
  8. package/dist/{capability-GAAYJ3IQ.js → capability-LFSVNI5B.js} +57 -28
  9. package/dist/chunk-2UW3Y463.js +2289 -0
  10. package/dist/{chunk-VZZNLV3I.js → chunk-3SDHJOCR.js} +68 -18
  11. package/dist/chunk-6HAUVWOQ.js +132 -0
  12. package/dist/{chunk-5XJYLEVC.js → chunk-72NJKS7O.js} +4 -4
  13. package/dist/{chunk-Q5US7JC5.js → chunk-7JAVT5TK.js} +3 -3
  14. package/dist/{chunk-7KU2WNQE.js → chunk-CVCTFLSO.js} +37 -15
  15. package/dist/{chunk-GHXZK54S.js → chunk-H3K5UGYC.js} +41 -13
  16. package/dist/{chunk-OP44TT4H.js → chunk-IN7KKL6K.js} +4 -2
  17. package/dist/{chunk-S6M42KND.js → chunk-JEUXDY3B.js} +1 -1
  18. package/dist/{chunk-ZL7SGNIA.js → chunk-JNVVJ273.js} +58 -46
  19. package/dist/chunk-N6XBLRB7.js +105 -0
  20. package/dist/{chunk-AP7YP2NX.js → chunk-OAWPT7VP.js} +2 -2
  21. package/dist/{chunk-AQJPNWZF.js → chunk-PWXDWMCW.js} +7 -7
  22. package/dist/{chunk-CT7QDJS6.js → chunk-QVRIDN42.js} +2 -2
  23. package/dist/chunk-QZLRHGVH.js +222 -0
  24. package/dist/{chunk-RPBOAQQQ.js → chunk-QZUVLFNR.js} +1 -1
  25. package/dist/{chunk-3YVEAZUN.js → chunk-RJHGDWSC.js} +32 -21
  26. package/dist/{chunk-MWIA43UJ.js → chunk-VCZE3IWO.js} +10 -8
  27. package/dist/chunk-YVG6QD3V.js +233 -0
  28. package/dist/{chunk-WNGFSIOB.js → chunk-Z3Q2AEIN.js} +237 -86
  29. package/dist/{community-report-client-PEERQCX2.js → community-report-client-TJVCLZ3K.js} +1 -1
  30. package/dist/compat-check-CII6B74E.js +32 -0
  31. package/dist/{config-JOD5DOPE.js → config-YZ6O2UQ2.js} +40 -7
  32. package/dist/{context-NGVFPCBK.js → context-F6FCGTF3.js} +4 -4
  33. package/dist/{data-integration-BCLQFTGU.js → data-integration-6UAZO4GG.js} +207 -24
  34. package/dist/evaluation-4LO2O4AF.js +3714 -0
  35. package/dist/index.js +352 -81
  36. package/dist/{local-data-upload-client-TWMHFLUA.js → local-data-upload-client-KCMG6J62.js} +1 -1
  37. package/dist/{memory-CQKH2JAV.js → memory-HHPX3NF2.js} +6 -6
  38. package/dist/{metadata-NR3PHR23.js → metadata-TIFY24LW.js} +17 -9
  39. package/dist/{model-VX5M2CJ6.js → model-7UHGWYVR.js} +4 -4
  40. package/dist/{personal-semantic-preference-2RAI36P3.js → personal-semantic-preference-WKJEGPTM.js} +7 -6
  41. package/dist/{project-semantic-3BUGP3ZM.js → project-semantic-EIQVZNHW.js} +11 -10
  42. package/dist/{sync-RZIAV37C.js → sync-RV3OPCTI.js} +8 -7
  43. package/dist/{te-agent-AORRE2FM.js → te-agent-5ENVZJUH.js} +757 -94
  44. package/dist/{te-analysis-GP7DSQ7Q.js → te-analysis-USIK6ZZG.js} +584 -100
  45. package/dist/{te-community-42M7ICDO.js → te-community-WE2UU4XV.js} +722 -228
  46. package/dist/{te-dataops-BNKNZ4F2.js → te-dataops-XNMO7MBF.js} +9 -6
  47. package/dist/{te-engage-2CO6LRCX.js → te-engage-6C3HCFQR.js} +13 -12
  48. package/dist/{te-experiment-652CLXMU.js → te-experiment-LVTRI3QK.js} +55 -21
  49. package/dist/{te-kb-ULATOTQ3.js → te-kb-TUPGMVBY.js} +409 -85
  50. package/dist/{te-system-UGHVKBVV.js → te-system-YM657FKO.js} +6 -6
  51. package/dist/{te-team-YA6SNOJ3.js → te-team-G4VEJJNL.js} +64 -41
  52. package/dist/{things-DTCOQIQB.js → things-22KQWC23.js} +7 -7
  53. package/dist/{update-ESNYKUVR.js → update-XX4ILU7X.js} +11 -7
  54. package/dist/{workspace-JEOHKFPX.js → workspace-LYDAP647.js} +6 -6
  55. package/package.json +26 -11
  56. package/skills/ae-agent/SKILL.md +22 -3
  57. package/skills/ae-agent/references/command_index.md +8 -0
  58. package/skills/ae-agent/references/resource-package.md +57 -0
  59. package/skills/ae-analysis/SKILL.md +23 -10
  60. package/skills/ae-analysis/references/adhoc_export.md +1 -1
  61. package/skills/ae-analysis/references/agent_review_preflight.md +55 -10
  62. package/skills/ae-analysis/references/agent_review_priorities_comparisons.md +5 -3
  63. package/skills/ae-analysis/references/agent_review_submit_to_page.md +60 -24
  64. package/skills/ae-analysis/references/ai_models/event.md +58 -2
  65. package/skills/ae-analysis/references/ai_models/rank_list.md +1 -0
  66. package/skills/ae-analysis/references/ai_models/retention.md +2 -0
  67. package/skills/ae-analysis/references/ai_models/revenue.md +2 -0
  68. package/skills/ae-analysis/references/analysis_data_export.md +11 -1
  69. package/skills/ae-analysis/references/asset_batch_info_export.md +2 -2
  70. package/skills/ae-analysis/references/asset_batch_sql_export.md +2 -2
  71. package/skills/ae-analysis/references/asset_export.md +1 -1
  72. package/skills/ae-analysis/references/bi_panel_page_data_export.md +1 -1
  73. package/skills/ae-analysis/references/check_export.md +1 -1
  74. package/skills/ae-analysis/references/command_index.md +39 -26
  75. package/skills/ae-analysis/references/dashboard_report_data_export.md +2 -0
  76. package/skills/ae-analysis/references/dashboard_report_get.md +6 -2
  77. package/skills/ae-analysis/references/dashboard_report_update.md +24 -5
  78. package/skills/ae-analysis/references/feedback_submit.md +1 -1
  79. package/skills/ae-analysis/references/governance_recommendation_export.md +40 -18
  80. package/skills/ae-analysis/references/governance_recommendation_run_update.md +13 -0
  81. package/skills/ae-analysis/references/live_data_export.md +1 -1
  82. package/skills/ae-analysis/references/metric_create.md +29 -0
  83. package/skills/ae-analysis/references/metric_get.md +2 -0
  84. package/skills/ae-analysis/references/metric_update.md +2 -0
  85. package/skills/ae-analysis/references/operation_record_export.md +1 -1
  86. package/skills/ae-analysis/references/plan_change_log_export.md +1 -1
  87. package/skills/ae-analysis/references/plan_export.md +1 -1
  88. package/skills/ae-analysis/references/project_info_get.md +4 -0
  89. package/skills/ae-analysis/references/project_member_group_add_members.md +35 -0
  90. package/skills/ae-analysis/references/project_member_group_create.md +25 -0
  91. package/skills/ae-analysis/references/project_member_group_delete.md +34 -0
  92. package/skills/ae-analysis/references/project_member_group_list.md +29 -0
  93. package/skills/ae-analysis/references/project_member_group_members.md +28 -0
  94. package/skills/ae-analysis/references/project_member_group_remove_members.md +35 -0
  95. package/skills/ae-analysis/references/project_member_group_rename.md +26 -0
  96. package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +9 -1
  97. package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +6 -1
  98. package/skills/ae-analysis/references/report_data_export.md +1 -1
  99. package/skills/ae-analysis/references/scenario_append.md +31 -0
  100. package/skills/ae-analysis/references/scenario_begin.md +11 -0
  101. package/skills/ae-analysis/references/scenario_collect.md +43 -0
  102. package/skills/ae-analysis/references/scenario_evaluation.md +18 -0
  103. package/skills/ae-analysis/references/scenario_get.md +15 -0
  104. package/skills/ae-analysis/references/scenario_list.md +64 -0
  105. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +73 -4
  106. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +14 -1
  107. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-schema.md +5 -1
  108. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/execution-contract.mjs +173 -0
  109. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/generate-build-ir.mjs +109 -64
  110. package/skills/ae-automation/SKILL.md +2 -2
  111. package/skills/ae-automation/references/cli.md +18 -1
  112. package/skills/ae-capability/SKILL.md +7 -3
  113. package/skills/ae-community/SKILL.md +77 -27
  114. package/skills/ae-community/references/community-analyzing-theme-comment.md +10 -8
  115. package/skills/ae-community/references/community-data-quality.md +68 -0
  116. package/skills/ae-community/references/community-query-evidence.md +85 -0
  117. package/skills/ae-community/references/community-scenario-capabilities.md +137 -0
  118. package/skills/ae-community/references/community-weekly-report.md +6 -3
  119. package/skills/ae-community/references/get_channel_info.md +7 -4
  120. package/skills/ae-community/references/get_comment_tag_analysis.md +3 -3
  121. package/skills/ae-community/references/get_comments_summary.md +4 -4
  122. package/skills/ae-community/references/get_corpus_tags.md +3 -3
  123. package/skills/ae-community/references/get_daily_summary.md +3 -3
  124. package/skills/ae-community/references/get_hot_topics.md +3 -3
  125. package/skills/ae-community/references/get_livestream_analysis.md +3 -3
  126. package/skills/ae-community/references/get_livestream_detail.md +4 -4
  127. package/skills/ae-community/references/get_livestream_list.md +3 -3
  128. package/skills/ae-community/references/get_livestream_overview.md +3 -3
  129. package/skills/ae-community/references/get_livestream_room_metrics.md +3 -3
  130. package/skills/ae-community/references/get_livestream_rooms.md +3 -3
  131. package/skills/ae-community/references/get_overview_metrics.md +3 -3
  132. package/skills/ae-community/references/get_post_detail.md +4 -4
  133. package/skills/ae-community/references/get_risk_content.md +5 -5
  134. package/skills/ae-community/references/get_sentiment_overview.md +4 -4
  135. package/skills/ae-community/references/get_tag_trends.md +3 -3
  136. package/skills/ae-community/references/get_topic_detail.md +3 -3
  137. package/skills/ae-community/references/list_sources.md +28 -0
  138. package/skills/ae-community/references/list_spaces.md +39 -0
  139. package/skills/ae-community/references/search_posts.md +21 -7
  140. package/skills/ae-data-integration/SKILL.md +6 -4
  141. package/skills/ae-data-integration/references/error-handling.md +1 -0
  142. package/skills/ae-data-integration/references/handoff.md +1 -1
  143. package/skills/ae-data-integration/references/sink-upload.md +11 -0
  144. package/skills/ae-data-integration/references/source-inspect.md +2 -1
  145. package/skills/ae-data-integration/references/transform.md +1 -1
  146. package/skills/ae-data-integration/references/ue-mapping.md +1 -1
  147. package/skills/ae-evaluation/SKILL.md +83 -0
  148. package/skills/ae-evaluation/references/access-and-members.md +55 -0
  149. package/skills/ae-evaluation/references/connections.md +78 -0
  150. package/skills/ae-evaluation/references/datasets.md +57 -0
  151. package/skills/ae-evaluation/references/evaluators.md +81 -0
  152. package/skills/ae-evaluation/references/files.md +33 -0
  153. package/skills/ae-evaluation/references/integrations.md +39 -0
  154. package/skills/ae-evaluation/references/runs.md +160 -0
  155. package/skills/ae-evaluation/references/schedules.md +31 -0
  156. package/skills/ae-experiment/SKILL.md +7 -1
  157. package/skills/ae-experiment/references/manage_experiment.md +18 -1
  158. package/skills/ae-experiment/references/query_experiment_detail.md +7 -0
  159. package/skills/ae-experiment/references/save_experiment.md +76 -2
  160. package/skills/ae-experiment/references/save_submit_experiment.md +7 -0
  161. package/skills/ae-kb/SKILL.md +33 -7
  162. package/skills/ae-kb/references/publication.md +81 -0
  163. package/skills/ae-kb/references/query-workflow.md +14 -1
  164. package/skills/ae-metadata/SKILL.md +3 -2
  165. package/skills/ae-metadata/references/metadata_data_table_download.md +7 -1
  166. package/skills/ae-metadata/references/metadata_data_table_get.md +37 -0
  167. package/skills/ae-system/SKILL.md +1 -1
  168. package/skills/ae-team/SKILL.md +2 -2
  169. package/skills/ae-team/references/run-start.md +1 -0
  170. package/skills/ae-team/references/run-watch.md +7 -5
  171. package/skills/ae-things/SKILL.md +53 -51
  172. package/skills/ae-things/references/cli.md +56 -54
  173. package/skills/ae-things-progress/SKILL.md +20 -20
  174. package/skills/ae-things-review/SKILL.md +19 -19
  175. package/skills/ae-workspace/SKILL.md +1 -1
  176. package/dist/chunk-6VNIR4AP.js +0 -1422
  177. package/dist/chunk-CI24BDR2.js +0 -43
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-metadata
3
- version: 1.0.2
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
 
@@ -43,6 +43,7 @@ Safety:
43
43
  - **Before any command**, read the matching `references/<name>.md` (filename = command with spaces → underscores, e.g. `metadata data-table list` → `metadata_data_table_list.md`).
44
44
  - Never invent `project_id`, event/property names, `input_file_id`, or `data_table_id`. Reuse verified names or discover a metadata lookup capability; find data table IDs via `metadata data-table list`.
45
45
  - `metadata data-table download` is an async artifact command: plain invocation submits, `--wait` waits, and `--output <file>` waits then streams atomically. Resume with `analysis run wait`; local interruption never cancels the remote run.
46
+ - The member's natural-day quota counts every Gateway capability `execute` call eligible for usage statistics (an identifiable user and statistics enabled), including metadata-only reads, previews, table/binding writes, asset exports, and downloads that submit work. It does not depend on database engine or business purpose. Cache hits, repeated calls, reused runs, and failures within `execute` count, including schema errors, permission denials, and unknown capability IDs. Gateway capability discovery (list/inspect), validate/dry-run, and separate run-status/artifact-download HTTP endpoints do not count; pagination and cancellation through capability execution do count. On `QUERY_DAILY_LIMIT_EXCEEDED` (HTTP 429), wait until reset or contact an administrator; `QUERY_QUOTA_UNAVAILABLE` fails explicitly. Do not switch identities to bypass these errors. Omit download `--timeout-seconds` to use the server default; inspect the selected capability for its current policy.
46
47
 
47
48
  ## When to Use
48
49
 
@@ -13,7 +13,7 @@ ae-cli metadata data-table download --project-id <project_id> --data-table-id <i
13
13
  | `--project-id` / `-p` | Yes | Numeric project ID. |
14
14
  | `--data-table-id` | Yes | Data table ID. |
15
15
  | `--request-id` | No | Optional `cli_<32 lowercase hex>` request ID. |
16
- | `--timeout-seconds` | No | Remote runtime in seconds, 1 to 21600. |
16
+ | `--timeout-seconds` | No | Omit to use the server default (normally 21600 seconds / 6 hours). This CLI accepts explicit values in `1..21600`. Inspect this capability for the server default/max; use `capability run` with `timeout_seconds` for larger values only when its schema allows them. |
17
17
  | `--wait` | No | Wait for run `SUCCEEDED` and artifact `COMPLETED`. |
18
18
  | `--output` | No | Wait, then stream and atomically publish the artifact to this file. |
19
19
  | `--force` | No | Replace an existing `--output` file atomically; invalid without `--output`. |
@@ -23,3 +23,9 @@ invocation submits only. `--output` implies `--wait`; resume an interrupted
23
23
  wait with `ae-cli analysis run wait --run-id <run_id> [--output <file>]`.
24
24
  Local interruption never cancels the remote run. Do not use this command for
25
25
  inline data-table metadata; use `metadata data-table get` instead.
26
+
27
+ Read the returned `effective_timeout_seconds`, `timeout_source`, and `deadline_at` for the actual lifecycle deadline. Local waiting has its own bound and can be resumed without resubmitting.
28
+
29
+ Each Gateway `execute` call consumes one unit of the member's natural-day quota when the user is identifiable and usage statistics are enabled, regardless of database engine or business purpose. Cache hits and failures within `execute` count, including invalid input schemas, permission denials, unknown capability IDs, and accepted work that later fails or times out. Repeating the same input counts again even if a handler reuses an existing run; Gateway has no general `client_request_id` idempotency guarantee. Resume with `analysis run wait` or use `analysis artifact download`: their separate status/download HTTP endpoints do not count. Gateway capability discovery (list/inspect) and validate/dry-run do not count either. Pagination and cancellation do count when invoked through capability execution, such as `analysis.query.cancel`.
30
+
31
+ `QUERY_DAILY_LIMIT_EXCEEDED` (HTTP 429) requires waiting until reset or contacting an administrator; a blocked call does not increase the used quota but remains eligible for failed-call usage auditing. `QUERY_QUOTA_UNAVAILABLE` fails explicitly. Usage persistence is asynchronous and best effort, so persisted usage-row totals need not equal quota counters. Do not switch identities to bypass quota enforcement.
@@ -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 |
@@ -17,8 +19,43 @@ ae-cli metadata data-table get --project-id <project_id> --data-table-id <id> --
17
19
  | `--data-table-id` | Yes | Data table ID from `metadata data-table list`. |
18
20
  | `--include-preview` | No | Include preview rows when true. |
19
21
 
22
+ Each call to this capability's Gateway `execute` endpoint consumes one unit of the member's natural-day quota when the user is identifiable and usage statistics are enabled. This includes metadata-only reads (`include_preview` omitted or false), previews of any table type, cache hits, repeated calls, and failures within `execute`, including schema errors or permission denials. The database engine does not affect counting. Gateway capability-discovery list/inspect and validate/dry-run endpoints do not count. `QUERY_DAILY_LIMIT_EXCEEDED` (HTTP 429) requires waiting until reset or contacting an administrator; a blocked call does not increase the used quota but remains eligible for failed-call usage auditing. `QUERY_QUOTA_UNAVAILABLE` fails explicitly. Usage persistence is asynchronous and best effort, so persisted usage-row totals need not equal quota counters. Do not change identities to bypass quota enforcement.
23
+
20
24
  ## Request Body
21
25
 
22
26
  ```json
23
27
  { "project_id": 1, "data_table_id": 42, "include_preview": true }
24
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.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-system
3
- version: 1.2.0
3
+ version: 1.2.2
4
4
  description: "AE Agent system administration CLI for root and agent administrators. Use when the user asks to manage Agent members, sandboxes and shared tools, company model visibility/defaults/pricing, usage statistics and exports, cost quotas, balance alerts, IM channels, channel routing, WhatsApp Web linking, or Feishu user bindings. Must use ae-cli system commands, discover real IDs before writes, and never attempt to bypass a permission denial."
5
5
  ---
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-team
3
- version: 1.0.0
3
+ version: 1.0.2
4
4
  description: "ThinkingAI AE (Agentic Engine) ae-cli manual for AI Agent Team tasks: managing teams (list, create, update, delete, AI-generate, templates) and executing TeamRuns (start, chat, cancel, reply, result, artifacts). Use when the user asks to find a team, run a team task, check run status, retrieve results or artifacts, or set up multi-agent workflows. Must use ae-cli, read the matching references/<command>.md before composing commands, and never guess team IDs, run IDs, config structures, or parameter formats."
5
5
  ---
6
6
 
@@ -113,7 +113,7 @@ ae-cli team +run-start --team-id <team_id> --input "分析上周用户留存数
113
113
  # 4. Stream until done (blocks; no polling needed)
114
114
  ae-cli team +run-watch --id <run_id>
115
115
  # exit 0 → completed/partial_success → go to step 5
116
- # exit 1 → failed/cancelled → inspect errorMessage in output, report to user
116
+ # exit 1 → inspect the terminal entity or error; for connection errors, use +run-result before considering a new run
117
117
  # exit 2 → waiting_user → go to step 4a
118
118
 
119
119
  # 4a. Handle waiting_user: read pendingQuestion from stdout, get user's answer, reply, re-watch
@@ -16,6 +16,7 @@ Domain: **TeamRun execution / write**
16
16
  - `--notification` must be valid JSON if provided, e.g. `'{"channels":["feishu"],"feishuChatId":"..."}'`.
17
17
  - This is an ordinary `write` operation and does not require CLI confirmation.
18
18
  - After starting, capture the returned `id` (run ID) and use it to poll `+run-result`.
19
+ - `--save-to-kb-id` accepts a personal or company knowledge base ID and maps to the API field `saveToKnowledgeBaseId`. After completion, check `savedKnowledgeBase` and read back the saved source; a successful start alone does not confirm saving.
19
20
 
20
21
  ## Command
21
22
  ```bash
@@ -13,7 +13,8 @@ Domain: **TeamRun execution / read**
13
13
  - `--id` is required. Obtain the real run ID from a previous `+run-start` or `+run-chat` response.
14
14
  - Check the **exit code** to determine what happened — do not guess from output alone.
15
15
  - When exit code is `2` (`waiting_user`): read `pendingQuestion` from stdout, present it to the user, collect their answer, call `+run-reply`, then re-run `+run-watch`.
16
- - Network drops are handled automatically (up to 10 reconnects with 2s delay). Do NOT retry `+run-watch` on exit 1 unless you have confirmed the run itself failed via `+run-result`.
16
+ - Connection failures, premature EOF, and SSE read failures share a maximum of 10 reconnects, with a 2s delay before each retry. Reconnects carry the last complete log timestamp in `afterLog`; an incomplete event is discarded. HTTP rejections and SSE `error` events exit immediately without reconnecting.
17
+ - Exit 1 alone does not mean the server-side run failed. After a connection error or exhausted retries, check `+run-result --id <run_id>`. Resume watching the same run if it is still active; do not start a duplicate run merely because its stream disconnected.
17
18
 
18
19
  ## Command
19
20
  ```bash
@@ -37,16 +38,17 @@ ae-cli team +run-watch --id <run_id> --after-log <lastTimestamp>
37
38
  | Code | Meaning | Action |
38
39
  |---|---|---|
39
40
  | `0` | `completed` or `partial_success` | Proceed to `+run-artifacts` |
40
- | `1` | `failed`, `cancelled`, `stale`, or connection error | Inspect `errorMessage` in stdout JSON; report to user |
41
+ | `1` | `failed`, `cancelled`, `stale`, or connection error | Inspect the terminal entity or error; for connection errors, check the same run with `+run-result` |
41
42
  | `2` | `waiting_user` | Read `pendingQuestion` from stdout JSON, present to user, then `+run-reply` → re-run `+run-watch` |
42
43
 
43
44
  ## Output
44
- stdout always receives the final `TeamRunEntity` as a standard JSON envelope:
45
+ When a terminal or `waiting_user` event is received, stdout receives its `TeamRunEntity` as a standard JSON envelope:
45
46
  ```json
46
47
  { "ok": true, "data": { "id": "...", "status": "...", "pendingQuestion": "...", ... } }
47
48
  ```
48
49
  - Exit 0/1: the entity from the `final` SSE event (terminal state)
49
- - Exit 2: the entity from the `update` SSE event at the moment `waiting_user` was detected
50
+ - Exit 2: the entity from the `snapshot` or `update` SSE event at the moment `waiting_user` was detected
51
+ - Connection failures and SSE `error` events emit an error on stderr and may have no entity on stdout. A connection error does not cancel the run.
50
52
 
51
53
  stderr receives real-time log lines and status changes (suppressed with `--quiet`).
52
54
 
@@ -75,7 +77,7 @@ ae-cli team +run-watch --id <run_id>
75
77
 
76
78
  ## Next Steps on Failure
77
79
  - Exit 1 + `status = failed`: read `errorMessage` in the JSON output; ask user whether to retry with `+run-start`.
78
- - Connection drop before `final`: re-run `+run-watch --id <run_id> --after-log <lastTimestamp>`.
80
+ - Connection error before `final`: let automatic reconnects finish. If the command exits 1, check `+run-result --id <run_id>` first. For an active run, resume with `+run-watch --id <run_id> --after-log <lastTimestamp>`; omit `--after-log` if no cursor was retained.
79
81
 
80
82
  ## Recommended Chaining
81
83
  - `+run-start` → `+run-watch` → exit 0 → `+run-artifacts`
@@ -1,85 +1,87 @@
1
1
  ---
2
2
  name: ae-things
3
- description: "工作空间事项(things):在明确的 AgentSpace 中用 ae-cli things 创建、查询、更新和推进事项。当对话出现分工指派(谁负责什么)、要交付的产出、推进节奏、待办、下一步、里程碑或阶段计划时主动使用——不需要用户显式说「创建事项」。"
3
+ description: "Workspace Things: use ae-cli things to create, query, update and advance Things in an explicitly identified AgentSpace. Use proactively when the conversation includes assignments (who owns what), deliverables, a delivery cadence, to-dos, next steps, milestones or phased plans; an explicit request to create a Thing is not required."
4
4
  ---
5
5
 
6
- # 工作空间事项
6
+ # Workspace Things
7
7
 
8
- 使用 `ae-cli things` 操作当前明确指定的 TE 空间事项。先读 [CLI reference](references/cli.md),不猜 ID,不自动选择其他空间。
8
+ Use `ae-cli things` to manage Things in the explicitly identified current TE space. Read the [CLI reference](references/cli.md) first. Never guess IDs or automatically select another space. Use the user's language for replies and user-facing Thing content; keep commands, flags and field identifiers unchanged.
9
9
 
10
- ## 何时创建事项
10
+ <a id="何时创建事项"></a>
11
11
 
12
- **由你自己判断要不要建,不要等「帮我创建事项」这种显式指令。** 个人空间与共享空间一视同仁。
12
+ ## When to create Things
13
13
 
14
- 出现下列任一信号就直接创建,不必先问:
14
+ **Decide proactively whether to create Things; do not wait for an explicit request such as "create a Thing for me".** Apply the same rules to personal and shared spaces.
15
15
 
16
- - 出现「谁做什么」的分工指派,例如「让 A 梳理 X,B 梳理 Y」。
17
- - 出现要交付的产出加上推进意图,例如「输出一份最终方案」「按这个节奏推进」「安排一下」。
18
- - 出现承诺、待办、下一步、里程碑或多阶段计划。
19
- - 用户在复述已经定下来的事,并指向后续执行。
16
+ Create Things directly, without asking first, when any of these signals appears:
20
17
 
21
- 下列情况不要创建:
18
+ - An assignment identifies who does what, such as "Have A investigate X and B investigate Y."
19
+ - A deliverable is paired with intent to proceed, such as "produce a final proposal", "follow this cadence" or "schedule the work".
20
+ - The conversation contains commitments, to-dos, next steps, milestones or phased plans.
21
+ - The user restates an agreed decision and points toward execution.
22
22
 
23
- - 纯信息问答、概念解释、闲聊。
24
- - 还在比较方案、假设性推演,或用户明确说「先不定」。
25
- - 查重命中已有同义事项——指出已存在,不重复建。
26
- - 用户说过不要建。
23
+ Do not create Things in these cases:
27
24
 
28
- **不确定时,把拟建清单(标题、负责人、描述要点)在回复里列出来,一次性问用户确认。不允许什么都不做就把分工排版成清单交差。**
25
+ - Informational questions, conceptual explanations or casual conversation.
26
+ - Options are still being compared, the discussion is hypothetical, or the user explicitly says not to decide yet.
27
+ - Deduplication finds an existing equivalent Thing: point it out instead of creating a duplicate.
28
+ - The user has said not to create Things.
29
29
 
30
- ### 创建时的动作顺序
30
+ **When uncertain, present the proposed Things (titles, assignees and description outlines) in the reply and ask for confirmation once. Merely formatting assignments into a list without taking action is not sufficient.**
31
31
 
32
- 1. 确认已绑定明确的 AgentSpace;没有绑定就不创建。
33
- 2. `members` 取成员列表,把对话里提到的人名映射到成员 ID。唯一命中就直接作为 `--assignee-id`;命中 0 个或多个时该事项负责人留空(服务端默认当前用户),并在回复里点名待确认。
34
- 3. `list --query` 或 `options --query` 查重。
35
- 4. 逐个 `create`:标题写可交付物而不是原话复述,描述写清目标与验收要点,带 `--command-id` 保证重试幂等。
36
- 5. 需要时用 `conversation bind` 绑定主事项,或 `link-conversation` 建普通引用。
37
- 6. 在回复里报告已创建的事项编号、标题、负责人,以及哪些负责人待确认。
32
+ ### Creation sequence
38
33
 
39
- **粒度**:按「可独立交付、可独立负责」的单位建事项。没有子事项和分组,不要试图建层级。例如「A、B、C 各自梳理一块,然后合成一份总方案」对应 4 个事项,而不是 1 个,也不是每句话一个。
34
+ 1. Confirm that an explicit AgentSpace is bound. Without one, do not create Things.
35
+ 2. Use `members` to map names mentioned in the conversation to member IDs. Use a unique match as `--assignee-id`. With zero or multiple matches, omit the assignee (the server defaults to the current user) and identify the unresolved assignment in the reply.
36
+ 3. Deduplicate with `list --query` or `options --query`.
37
+ 4. Run `create` for each Thing: name the deliverable rather than repeating the user's words, describe the goal and acceptance criteria, and include `--command-id` for idempotent retries.
38
+ 5. When needed, use `conversation bind` to bind the primary Thing or `link-conversation` to add an ordinary reference.
39
+ 6. Report the created Thing numbers, titles and assignees, including assignments still awaiting confirmation.
40
40
 
41
- ### 授权边界
41
+ **Granularity:** create one Thing per independently deliverable unit with its own owner. Things have no sub-Things or groups; do not build a hierarchy. For example, "A, B and C each investigate one area, then combine the results into a final proposal" maps to four Things, not one and not one per sentence.
42
42
 
43
- 自主执行:创建新事项;为自己刚建的事项补第一条记录。
43
+ ### Authorization boundaries
44
44
 
45
- 用户已授权推进/完成的事项:直接追加或更新相应进展,并自动关联本次涉及的交付附件,按下节完成发布与回读。个人与共享空间一致,发布仍传 `--confirm-share`;授权事项交付即包含向该事项所在空间共享这些交付文件。
45
+ Act autonomously to create new Things and add the first entry to a Thing you just created.
46
46
 
47
- 其他已有事项改写、负责人变更、归档/恢复、解绑及永久删除仍需明确授权;历史绑定本身不是授权。不自动发消息或创建定时任务。
47
+ For Things the user has authorized you to advance or complete, append or update the relevant progress directly and automatically attach the deliverable files involved in this work. Complete publication and readback as described below. The same rule applies to personal and shared spaces; publication still requires `--confirm-share`. Authorization to deliver work for a Thing includes sharing those deliverable files with that Thing's space.
48
48
 
49
- ### 交付附件闭环
49
+ Other changes to existing Things, reassignment, archiving/restoring, unbinding and permanent deletion still require explicit authorization. A historical binding alone does not grant authorization. Do not automatically send messages or create scheduled tasks.
50
50
 
51
- 追加/更新进展时,逐个核对本次实际交付文件:
51
+ ### Deliverable attachment workflow
52
52
 
53
- 1. 用 `asset available` 查本空间文件并翻完分页。已登记文件按 assetId 关联,未登记文件按返回的相对 path 关联。
54
- 2. 尚未进入空间的新文件用 `asset publish`:本轮未登记产物使用 `--conversation-id --run-id --source-path`;已有产物使用 `--artifact-id` 或 `--file-token`。每个文件保存独立 commandId,重试原样复用。
55
- 3. `linked:false` 表示已发布未关联,只用返回 assetId 补 `asset link`,不重复复制。只发布本次交付文件,不发布临时文件或整个会话目录。
56
- 4. `asset list --id` 回读,核实每个附件存在且 availability=available,再回读进展记录。只有两者均成功才报告“进展和附件已更新”;失败明确区分已发布、已关联、待恢复。
53
+ When appending or updating progress, check each file actually delivered in this work:
57
54
 
58
- 附件使用上述文件关联接口;本地路径文本链接不能代替附件,仅复制文件也不算交付完成。完整参数见 CLI reference。
55
+ 1. Use `asset available` to inspect space files and follow all pages. Link registered files by assetId and unregistered files by the returned relative path.
56
+ 2. Use `asset publish` for new files not yet in the space: use `--conversation-id --run-id --source-path` for unregistered outputs from this run, or `--artifact-id` / `--file-token` for existing artifacts. Keep a separate commandId for each file and reuse it unchanged on retries.
57
+ 3. `linked:false` means the file was published but not linked. Use the returned assetId with `asset link` to complete the link without copying again. Publish only the deliverable files from this work, not temporary files or the entire conversation directory.
58
+ 4. Read back with `asset list --id`, verify that every attachment exists with availability=available, then read back the progress entry. Report "progress and attachments updated" only after both checks succeed. On failure, distinguish published files, linked files and work awaiting recovery.
59
59
 
60
- ## 当前会话绑定与执行快照
60
+ Use these file-linking APIs for attachments. A text link to a local path does not replace an attachment, and copying a file alone does not complete delivery. See the CLI reference for full parameters.
61
61
 
62
- 以本轮冻结的绑定声明确定本轮默认事项。涉及当前事项执行、审查、总结或更新前,按声明中的 `readCommand` 读取本次执行快照;普通聊天无需读取。运行中切换或解绑只立即改变会话归属,本轮(含等待、恢复、重试)仍用原快照;原先无事项则本轮继续无默认事项,下一次新 Run 才使用最新绑定。用户明确指定其他事项时仍按权限读取和操作,不将会话最新归属误认为本轮快照。
62
+ ## Current conversation binding and execution snapshots
63
63
 
64
- 用户明确要求将当前对话绑定到某事项时,唯一定位目标后执行 `conversation bind`,再用 `conversation primary` 回读确认;同名事项不能唯一确定时询问用户。成功说明「已绑定,事项上下文从下一轮生效」。解绑也须回读确认。不得将 `link-conversation` 普通引用当成主事项绑定成功的替代;接口失败应如实说明,不绕过权限。
64
+ Use the binding declaration frozen for this run to determine its default Thing. Before executing, reviewing, summarizing or updating that Thing, use the declaration's `readCommand` to read the execution snapshot; ordinary chat does not require this read. Switching or unbinding during a run changes the conversation's association immediately, but the current run (including waits, resumes and retries) keeps its original snapshot. If the run originally had no Thing, it still has no default Thing. Only a new Run uses the latest binding. If the user explicitly names another Thing, read and operate on it subject to permissions; do not confuse the conversation's latest association with this run's snapshot.
65
65
 
66
- `context --id <thing-id> --run-id <run-id>` 返回执行受理时的业务文本和版本。需要最新事实或写入前版本时额外读取不带 `--run-id` 的实时上下文,并明确区分采集时间与快照版本。读取失败时披露缺失,不凭标题猜测,也不自动改读实时数据。具体契约见 [CLI reference](references/cli.md#执行快照与实时上下文)。
66
+ When the user explicitly asks to bind the current conversation to a Thing, uniquely identify the target, run `conversation bind`, then verify with `conversation primary`. Ask the user when a name does not uniquely identify a Thing. On success, explain that the binding is saved and the Thing context takes effect from the next run. Verify unbinding by readback as well. An ordinary `link-conversation` reference does not substitute for a primary-Thing binding. Report API failures accurately without bypassing permissions.
67
67
 
68
- - 字段为标题、描述、标签、状态、负责人、协作者。状态 open/paused/done;归档与恢复是独立动作。新建描述必填,创建时省略负责人默认本人,显式 null 被拒绝。
69
- - 用 members/options 查询成员和事项候选;创建、编辑和协作者管理遵循服务端权限。修改前读最新 version,409 后比较变化,不仅替换版本号。
70
- - 记录使用 url/note/progress;省略类型时服务端将单个 HTTP(S) URL 保存为链接,其余为备注。更新进展用 entry append --type progress;修改记录用 entry update 和 expected-updated-at,支持单独修改标题、类型或正文;--clear-title 清空标题。
71
- - 从会话消息整理事项用 from-message,提供已核实的 conversation-id/message-id 和确认正文;按上面的创建信号判断是否该整理,不要求用户显式点名该命令。推断出来的内容先在会话中呈现建议;不使用已删除的持久化修改草稿命令。
72
- - 主事项使用 conversation primary/bind/unbind,普通引用用 link-conversation,conversations 查询关联。关联不改变会话隐私和权限。
73
- - 阶段成果使用进展记录;交接使用备注写清已完成内容、证据和下一步。负责人和协作者是唯一人员协作关系,不额外认领。
74
- - 文件使用 asset available/list/link/unlink/publish,遵循上面的授权边界与交付附件闭环;解除关联不删除文件。
75
- - 永久删除先读最新版本,解释不可恢复及会话/文件保留边界,明确确认后使用 delete --confirm-delete --yes。运行冲突时等待,不自动终止运行。
76
- - 已获明确授权的具体修改直接执行,不重复询问。
68
+ `context --id <thing-id> --run-id <run-id>` returns the business text and version captured when execution was accepted. When current facts or a version for a write are needed, explicitly read live context without `--run-id` as an additional step, distinguishing collection time from snapshot version. If the snapshot read fails, disclose the missing information rather than guessing from the title or automatically falling back to live data. See [Execution snapshots and live context](references/cli.md#execution-snapshots-and-live-context).
69
+
70
+ - Fields are title, description, tags, status, assignee and collaborators. Status is open/paused/done; archiving and restoring are separate actions. Creation requires a description. Omitting the assignee on creation defaults to the current user; explicit null is rejected.
71
+ - Use members/options to query member and Thing candidates. Creation, editing and collaborator management follow server permissions. Read the latest version before changes. After a 409, compare the changes instead of merely replacing the version number.
72
+ - Entries use url/note/progress. When type is omitted, the server stores a single HTTP(S) URL as a link and other content as a note. Append progress with entry append --type progress. Edit entries with entry update and expected-updated-at; title, type or body can be changed independently. --clear-title clears the title.
73
+ - Use from-message to turn conversation messages into Things, providing verified conversation-id/message-id values and confirmed body text. Apply the creation signals above without requiring the user to name this command explicitly. Present inferred content as a proposal in the conversation first. Do not use the removed persistent mutation-draft commands.
74
+ - Use conversation primary/bind/unbind for the primary Thing, link-conversation for ordinary references, and conversations to query associations. Linking does not change conversation privacy or permissions.
75
+ - Record interim deliverables as progress entries. Use notes for handoffs, stating completed work, evidence and next steps. Assignees and collaborators are the only people-related collaboration relationships; no separate claiming step is needed.
76
+ - Use asset available/list/link/unlink/publish for files, following the authorization boundaries and deliverable attachment workflow above. Unlinking does not delete a file.
77
+ - Before permanent deletion, read the latest version, explain that deletion is irreversible and which conversations/files remain, then use delete --confirm-delete --yes after explicit confirmation. Wait on active-run conflicts; do not automatically terminate runs.
78
+ - Execute specifically authorized changes directly without asking for the same permission again.
77
79
 
78
80
  ```bash
79
- ae-cli things create --agent-space-id <space-id> --title '接口验收' --description '验证权限与数据一致性' --format json
80
- ae-cli things entry append --agent-space-id <space-id> --id <thing-id> --type progress --content '已完成接口联调' --format json
81
+ ae-cli things create --agent-space-id <space-id> --title 'API acceptance' --description 'Verify permissions and data consistency' --format json
82
+ ae-cli things entry append --agent-space-id <space-id> --id <thing-id> --type progress --content 'Completed API integration checks' --format json
81
83
  ```
82
84
 
83
- 审查使用 [ae-things-review](../ae-things-review/SKILL.md),周期汇总使用 [ae-things-progress](../ae-things-progress/SKILL.md)。二者按完整采集事实归纳,保留未读文件、截断和非事务采集边界。
85
+ Use [ae-things-review](../ae-things-review/SKILL.md) for reviews and [ae-things-progress](../ae-things-progress/SKILL.md) for periodic summaries. Both synthesize fully collected facts while disclosing unread files, truncation and non-transactional collection limits.
84
86
 
85
87
  Use `things conversations` to list linked conversations and `things conversation get` to read one. Start new conversations from the workspace UI; Things CLI only manages thing links and primary-thing binding.
@@ -1,73 +1,73 @@
1
- # 工作空间事项 CLI reference
1
+ # Workspace Things CLI reference
2
2
 
3
- 本 reference 描述已实现命令,不重复维护权限和数据业务规则。[主 Spec](https://gitlab.thinkingdata.cn/te-ai/te-claude/-/blob/feat/workspace-issues-convergence/docs/specs/2026-09-17-workspace-issues-convergence/spec.md)。
3
+ This reference describes implemented commands without duplicating permission and business-data rules. See the [main spec](https://gitlab.thinkingdata.cn/te-ai/te-claude/-/blob/feat/workspace-issues-convergence/docs/specs/2026-09-17-workspace-issues-convergence/spec.md).
4
4
 
5
5
  Transition status: transitional
6
6
  Owning module: te-claude / src/lib/agent-space-things
7
7
  Current transport: TE REST /api/cli/things/v1; cli-token
8
8
  Gateway target: Capability Gateway things domain (TBD)
9
9
  Review after: 2026-10-14
10
- Exit condition: Gateway 提供等价空间校验、幂等、权限、分页和会话关联能力后迁移 transport。
10
+ Exit condition: Migrate the transport when Gateway provides equivalent space validation, idempotency, permissions, pagination and conversation associations.
11
11
 
12
- 事项尚未接入 Gateway。类型化 flags、JSON/stdin、正文脱敏 dry-run、默认值和目标一致性检查提供必要的 Transitional 入口。
12
+ Things is not yet integrated with Gateway. Typed flags, JSON/stdin, body-redacted dry-run, defaults and target-consistency checks provide the necessary Transitional entry point.
13
13
 
14
- ## 公共参数
14
+ ## Common parameters
15
15
 
16
- `--agent-space-id` 在会话外必填,会话内须与当前会话空间一致。`--id` 为事项 ID。写请求用 `--command-id <uuid>` 支持原样重试,省略时生成;编辑、归档和恢复须带 `--expected-version`。分页为 `--limit 1..100 --cursor <opaque>`,默认 50。通用 `--format json` 输出结构化结果;`--dry-run` 不请求业务 API、不读取文件/stdin、不泄露正文。主事项解除、删除资产关联或协作者属于 high-risk-write,已获授权的脚本使用 `--yes`。
16
+ `--agent-space-id` is required outside a conversation and must match the current conversation's space inside one. `--id` is the Thing ID. Writes use `--command-id <uuid>` for unchanged retries; one is generated when omitted. Editing, archiving and restoring require `--expected-version`. Pagination uses `--limit 1..100 --cursor <opaque>`, defaulting to 50. Global `--format json` produces structured output. `--dry-run` does not call business APIs, read files/stdin or expose body content. Unbinding the primary Thing, unlinking assets and removing collaborators are high-risk-write operations; explicitly authorized scripts use `--yes`.
17
17
 
18
- ## 字段和记录
18
+ ## Fields and entries
19
19
 
20
- 事项字段仅为 title、description、tags、status、assigneeId、collaboratorIds。新建标题 1–200 字符、描述 1–10000 字符必填。活跃状态 `open | paused | done`,归档和恢复使用独立动作。个人或共享空间创建时省略负责人均默认当前用户;更新省略保持不变,`null` 被拒绝。`--tags '["标签"]'`、`--collaborator-ids '["member-id"]'`,空数组清空。`--assignee-id` 只能指定有效空间成员。
20
+ Thing fields are limited to title, description, tags, status, assigneeId and collaboratorIds. Creation requires a title of 1–200 characters and a description of 1–10000 characters. Active statuses are `open | paused | done`; archiving and restoring are separate actions. In both personal and shared spaces, omitting the assignee on creation defaults to the current user. Omitting it on update leaves it unchanged; `null` is rejected. Use `--tags '["tag"]'` and `--collaborator-ids '["member-id"]'`; empty arrays clear these fields. `--assignee-id` must identify a valid space member.
21
21
 
22
- 新建/更新可用 `--file fields.json` 或 `--stdin` 读取 camelCase 字段对象,显式 flags 覆盖同名字段。失效的验收、优先级、分组、截止时间、进展快照、阻塞、下一步、父子事项字段被拒绝;group 和 draft 命令已移除。
22
+ Creation/update can read a camelCase field object with `--file fields.json` or `--stdin`; explicit flags override matching fields. Retired fields for acceptance criteria, priority, groups, due dates, progress snapshots, blockers, next steps and parent/child Things are rejected. The group and draft commands have been removed.
23
23
 
24
- | 命令 | 参数和结果 |
25
- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
26
- | `list` | `--query --status open\|paused\|done\|archived --assignee-id`;返回 items/nextCursor |
27
- | `get` | `--id`;字段、权限、version、协作者及 latestProgress |
28
- | `create` | `--title --description` 和可选业务字段 |
29
- | `update` | `--id --expected-version` 和业务字段 |
30
- | `archive/restore` | `--id --expected-version` |
31
- | `delete` | `--id --expected-version --confirm-delete --yes`;不可恢复,清理事项及所有关联,保留会话、消息、历史运行快照与空间文件;活动运行冲突返回 THING_RUNNING_CONFLICT |
32
- | `members/options` | 分页查询成员/事项候选;options 支持 `--query` |
33
- | `collaborator add/remove` | `--id --user-id` |
34
- | `entry list` | `--id` 和分页,按 createdAt、id 倒序 |
35
- | `entry append` | `--id --type url\|note\|progress`;省略时服务端自动识别链接或备注,可选 `--title`;`--content`、`--file`、`--stdin` 三选一 |
36
- | `entry update` | `--id --entry-id --expected-updated-at`;至少一个修改字段:`--title`、`--clear-title`、`--type note\|url\|progress` 或正文输入;可只改标题或类型,title 与 clear-title 互斥 |
37
- | `from-message` | `--conversation-id --message-id` 和正文;`--id` 追加或 `--title` 新建二选一;仅 `--id` 追加模式可选 `--entry-type note\|progress`,默认 note;`--title` 新建模式传入会报错,新建以正文作为描述,不生成额外进展记录 |
24
+ | Command | Parameters and results |
25
+ | --- | --- |
26
+ | `list` | `--query --status open\|paused\|done\|archived --assignee-id`; returns items/nextCursor |
27
+ | `get` | `--id`; fields, permissions, version, collaborators and latestProgress |
28
+ | `create` | `--title --description` and optional business fields |
29
+ | `update` | `--id --expected-version` and business fields |
30
+ | `archive/restore` | `--id --expected-version` |
31
+ | `delete` | `--id --expected-version --confirm-delete --yes`; irreversible, removes the Thing and all associations while retaining conversations, messages, historical run snapshots and space files; active-run conflicts return THING_RUNNING_CONFLICT |
32
+ | `members/options` | Paginated member/Thing candidates; options supports `--query` |
33
+ | `collaborator add/remove` | `--id --user-id` |
34
+ | `entry list` | `--id` and pagination; descending by createdAt, then id |
35
+ | `entry append` | `--id --type url\|note\|progress`; when type is omitted, the server detects a link or note; optional `--title`; exactly one of `--content`, `--file` or `--stdin` |
36
+ | `entry update` | `--id --entry-id --expected-updated-at`; at least one changed field: `--title`, `--clear-title`, `--type note\|url\|progress` or body input; title-only/type-only edits are allowed; title and clear-title are mutually exclusive |
37
+ | `from-message` | `--conversation-id --message-id` and body; choose either `--id` to append or `--title` to create; only append mode with `--id` accepts optional `--entry-type note\|progress`, defaulting to note; supplying it in create mode with `--title` is an error; creation uses the body as the description without an extra progress entry |
38
38
 
39
39
  ```bash
40
- ae-cli things create --agent-space-id <space-id> --title '验收事项' --description '验证成员操作与权限' --format json
41
- ae-cli things entry append --agent-space-id <space-id> --id <thing-id> --type progress --content '完成接口联调' --format json
40
+ ae-cli things create --agent-space-id <space-id> --title 'Acceptance checks' --description 'Verify member operations and permissions' --format json
41
+ ae-cli things entry append --agent-space-id <space-id> --id <thing-id> --type progress --content 'Completed API integration checks' --format json
42
42
  ```
43
43
 
44
- ## 会话
44
+ ## Conversations
45
45
 
46
- | 命令 | 参数和含义 |
47
- | -------------------------- | ----------------------------------------------------- |
48
- | `conversation get` | `--conversation-id`;读取可访问会话快照及当前模型投影 |
49
- | `conversation primary` | `--conversation-id`;读取主事项关联 |
50
- | `conversation bind/unbind` | `--conversation-id`;bind 额外需要 `--id` |
51
- | `conversations` | `--id` 和分页;关联会话 |
52
- | `link-conversation` | `--id --conversation-id`;追加引用,不替换主事项 |
46
+ | Command | Parameters and meaning |
47
+ | --- | --- |
48
+ | `conversation get` | `--conversation-id`; read an accessible conversation snapshot and its current model projection |
49
+ | `conversation primary` | `--conversation-id`; read the primary-Thing association |
50
+ | `conversation bind/unbind` | `--conversation-id`; bind also requires `--id` |
51
+ | `conversations` | `--id` and pagination; linked conversations |
52
+ | `link-conversation` | `--id --conversation-id`; append a reference without replacing the primary Thing |
53
53
 
54
- 关联不授予会话访问权;不能读取其他用户私有会话。会话排队、运行或等待交互时允许绑定/解绑,立即更新归属但不修改已受理 Run 的冻结上下文,下一次新 Run 生效。绑定后用 `conversation primary` 回读,不使用普通引用代替主事项绑定。
54
+ An association does not grant conversation access; other users' private conversations remain inaccessible. Binding/unbinding is allowed while a conversation is queued, running or waiting for interaction. It updates the association immediately without changing an accepted Run's frozen context, and takes effect for the next new Run. Read back with `conversation primary` after binding; an ordinary reference is not a substitute for a primary-Thing binding.
55
55
 
56
- ## 进展与汇总
56
+ ## Progress and summaries
57
57
 
58
- 阶段成果写 `entry append --type progress`;交接写 `--type note`,用标题和正文说明已完成内容、证据、下一步。人员关系使用负责人和协作者,不需要认领。
58
+ Record interim deliverables with `entry append --type progress`. Use `--type note` for handoffs, describing completed work, evidence and next steps in the title and body. People-related relationships are assignees and collaborators; no claiming step is needed.
59
59
 
60
- `+detail --id` 收集事项、全部可读 entries/assets 和实时 context。`+digest` 支持负责人筛选或 `--thing-ids id-a,id-b`,不能同时指定两种范围;可选 `--from --to --time-zone`,时间须带时区,窗口左闭右开。默认分别分页采集活动与归档事项,跨集合按 ID 去重。返回 open/paused/done 三态 counts、archivedCount、items 和采集边界。latestProgress 使用服务端最新 progress 记录;effectiveProgressCount 只统计 progress 记录,不代表模型已核实内容;status 时间线的 before/after 用于重建基线。
60
+ `+detail --id` collects the Thing, all readable entries/assets and live context. `+digest` supports an assignee filter or `--thing-ids id-a,id-b`, but not both scopes together. Optional `--from --to --time-zone` values define a start-inclusive, end-exclusive window; timestamps must include a timezone. By default, active and archived Things are paginated separately and deduplicated by ID across collections. Results include three-status open/paused/done counts, archivedCount, items and collection limits. latestProgress uses the server's latest progress entry. effectiveProgressCount counts progress entries only; it does not mean the model has verified their contents. The status timeline's before/after values support baseline reconstruction.
61
61
 
62
- 每链最多 100 页/10000 条。异常、重复游标、空页继续或达到上限标 truncated;重复 ID 不解释为完整。报告核对 fetchedCount、truncated、consistency、collectedAt。non_transactional 不是事务快照;changed_during_collection 或截断时 baseline 为 null。counts 是采集时状态,不能当周期末状态。未记录不等于未推进,附件可用不表示已读取或已验收。
62
+ Each chain is limited to 100 pages / 10000 items. Errors, repeated cursors, continuation after an empty page or reaching a limit set truncated. Duplicate IDs are not evidence of completeness. Reports must check fetchedCount, truncated, consistency and collectedAt. non_transactional is not a transactional snapshot; baseline is null for changed_during_collection or truncation. counts represent state at collection, not period-end state. No recorded update does not mean no progress was made, and an available attachment does not mean it was read or accepted.
63
63
 
64
- ## 错误与恢复
64
+ ## Errors and recovery
65
65
 
66
- THING_INVALID_INPUT 修正参数;THING_FORBIDDEN/THING_NOT_FOUND 不推断不可见资源;THING_READ_ONLY 表示资源只读:归档事项需恢复后编辑,不可用空间需先恢复空间可用性,操作日志不可编辑、应追加新记录;THING_VERSION_CONFLICT/记录时间戳冲突重读并比较,不能只换版本号;THING_COMMAND_CONFLICT 表示同 UUID 不同请求;THING_RATE_LIMITED 等待后用原 commandId 重试。主事项绑定不因运行中而拒绝;永久删除仍保留 THING_RUNNING_CONFLICT 活动运行保护。
66
+ For THING_INVALID_INPUT, correct the parameters. For THING_FORBIDDEN/THING_NOT_FOUND, do not infer facts about invisible resources. THING_READ_ONLY means the resource is read-only: restore archived Things before editing, restore space availability for unavailable spaces, and append a new record instead of editing an operation log. For THING_VERSION_CONFLICT/entry timestamp conflicts, reread and compare changes instead of merely replacing the version number. THING_COMMAND_CONFLICT means the same UUID was used for different requests. For THING_RATE_LIMITED, wait and retry with the original commandId. Primary-Thing binding is not rejected merely because a run is active; permanent deletion still retains the THING_RUNNING_CONFLICT active-run guard.
67
67
 
68
- ## 文件与交付物(阶段4)
68
+ ## Files and deliverables (phase 4)
69
69
 
70
- `asset available` 分页合并当前空间实际文件和登记元数据;已登记项返回稳定 `assetId`,未登记项 assetId=null、path 为相对路径。`asset link` 接受 `--asset-id` 或 `--path` 二选一,路径关联时校验、登记并关联,列表读取不登记。`asset list --id` 分页读取事项关联。核对 availability 及 scanStatus/scanReason;部分扫描不代表目录完整。
70
+ `asset available` paginates over actual files and registered metadata in the current space. Registered items return a stable `assetId`; unregistered items have assetId=null and a relative path. `asset link` accepts exactly one of `--asset-id` or `--path`. Linking by path validates, registers and links the file; listing does not register files. `asset list --id` paginates Thing associations. Check availability and scanStatus/scanReason; a partial scan does not establish directory completeness.
71
71
 
72
72
  ```bash
73
73
  ae-cli things asset available --agent-space-id <space-id> --limit 100 --format json
@@ -79,25 +79,27 @@ ae-cli things asset link --agent-space-id <space-id> --id <thing-id> --path <spa
79
79
  ae-cli things asset unlink --agent-space-id <space-id> --id <thing-id> --asset-id <asset-id> --command-id <uuid> --format json
80
80
  ```
81
81
 
82
- - `role` 仅接受 attachment(默认);deliverable 在正常执行与 dry-run 的参数校验阶段均被拒绝。同一事项与资产只有一个关联。
83
- - 发布传 `--confirm-share`,授权边界见 Skill。来源为 artifact-id、file-token、source-path 三选一;source-path 必须同时带 run-id,服务端验证执行归属、真实沙箱文件及会话 artifacts 目录边界。发布到空间后所有成员可见。
84
- - 发布使用既有会话产物发布器。发布回执与资产元数据同事务,使用原 commandId 重试不会再复制。返回 `linked:false, assetId, code:THING_ASSET_LINK_FAILED` 时文件已经共享,用 asset link 只补关联;不重复发布、不声称已交付。
85
- - 解除关联不删除文件、不恢复私有;被引用的资产删除返回 `AGENT_SPACE_ASSET_REFERENCED`,须先解除关联。
86
- - `THING_ASSET_UNAVAILABLE` 表示文件缺失或不能验证,`THING_ASSET_PUBLISH_FAILED` 表示发布未完成。文件引用只冻结 ID 和引用文本,不代表不可变正文。上下文最多选取前10份引用,超出会明确提示,完整文件列表按需读取。
82
+ - `role` accepts only attachment (the default). deliverable is rejected during argument validation in both normal execution and dry-run. Each Thing/asset pair has only one association.
83
+ - Pass `--confirm-share` for publication; see the Skill for authorization boundaries. Choose exactly one source: artifact-id, file-token or source-path. source-path also requires run-id. The server verifies run ownership, the actual sandbox file and the conversation artifacts directory boundary. Once published to the space, the file is visible to all members.
84
+ - Publication uses the existing conversation-artifact publisher. The publication receipt and asset metadata share a transaction; retrying with the original commandId does not copy again. When the response is `linked:false, assetId, code:THING_ASSET_LINK_FAILED`, the file is already shared. Complete only the association with asset link; do not republish or claim delivery is complete.
85
+ - Unlinking neither deletes the file nor makes it private again. Deleting a referenced asset returns `AGENT_SPACE_ASSET_REFERENCED`; unlink it first.
86
+ - `THING_ASSET_UNAVAILABLE` means the file is missing or cannot be verified. `THING_ASSET_PUBLISH_FAILED` means publication did not complete. File references freeze only the ID and reference text, not immutable body content. Context includes at most the first 10 references and explicitly reports overflow; read the full file list when needed.
87
87
 
88
- ## 执行快照与实时上下文
88
+ <a id="执行快照与实时上下文"></a>
89
+
90
+ ## Execution snapshots and live context
89
91
 
90
92
  ```bash
91
- # 本次执行使用的冻结事实;参数取自本轮绑定声明
93
+ # Frozen facts used by this run; take parameters from this run's binding declaration
92
94
  ae-cli things context --agent-space-id <space-id> --id <thing-id> --run-id <run-id> --format json
93
- # 显式读取当前事实;不带 run-id 的既有行为保持不变
95
+ # Explicitly read current facts; existing behavior without run-id is unchanged
94
96
  ae-cli things context --agent-space-id <space-id> --id <thing-id> --format json
95
97
  ```
96
98
 
97
- 带 `--run-id` 时请求现有 GET context 的 `runId` 参数,返回保存的快照及 `source: {kind: "run_snapshot", runId}`、`currentFiles`、`fileReferencePolicy`。`thing.version`/`capturedAt` 为受理时版本/时间,`currentFiles` 为当前可用路径;文件正文不保证版本冻结,使用前读取。原 `notices` 保留。无参数时返回原实时上下文;不从环境变量自动选择执行,`+detail`/`+digest` 也继续实时采集。
99
+ With `--run-id`, the existing GET context request includes the `runId` parameter and returns the saved snapshot with `source: {kind: "run_snapshot", runId}`, `currentFiles` and `fileReferencePolicy`. `thing.version`/`capturedAt` are the version/time at acceptance; `currentFiles` contains currently available paths. File body versions are not guaranteed to be frozen; read them before use. Existing `notices` remain. Without this parameter, the original live context is returned. A run is not selected automatically from environment variables, and `+detail`/`+digest` continue collecting live data.
98
100
 
99
- 执行、会话、空间及快照中的原事项必须匹配,且操作者仍有访问权限;执行 ID 不是授权。会话当前主事项可以已切换或解除,本轮等待/恢复/重试仍读取原快照。`THING_TARGET_CONFLICT` 表示快照与请求目标不一致,应重新确认目标;`THING_CONTEXT_UNAVAILABLE` 表示快照缺失或损坏,应重新发起执行,不自动降级实时读取。`THING_NOT_FOUND` 不区分不存在和不可见。归档或不可用文件沿用 `THING_READ_ONLY` / `THING_ASSET_UNAVAILABLE`。
101
+ The run, conversation, space and original Thing in the snapshot must match, and the caller must still have access; a run ID is not authorization. The conversation's current primary Thing may have changed or been unbound; waits/resumes/retries in this run still read the original snapshot. `THING_TARGET_CONFLICT` means the snapshot and requested target differ; reconfirm the target. `THING_CONTEXT_UNAVAILABLE` means the snapshot is missing or corrupt; start a new execution instead of automatically falling back to live reads. `THING_NOT_FOUND` does not distinguish nonexistent from invisible resources. Archived Things and unavailable files continue using `THING_READ_ONLY` / `THING_ASSET_UNAVAILABLE`.
100
102
 
101
- 切换或解绑保留历史和 provider session,只改变会话归属及下一新 Run 默认目标;不是遗忘或撤权。普通聊天无需查事项,具体事项工作先读快照;当前状态及写入前版本需额外显式实时读取。工具失败时披露缺失。**对已有事项的修改**只按用户明确授权或确认执行,不能因为历史关联过就默认回写;创建新事项不受此限,按 [SKILL 的创建信号](../SKILL.md#何时创建事项)自主判断。
103
+ Switching or unbinding retains history and the provider session. It changes only the conversation association and the next new Run's default target; it does not erase memory or revoke access. Ordinary chat does not need a Thing lookup; specific Thing work reads the snapshot first. Current state and pre-write versions require an additional explicit live read. Disclose missing information when tools fail. **Changes to existing Things** require explicit user authorization or confirmation; a historical association does not authorize writeback. Creating new Things is not subject to that restriction: decide proactively using the [Skill's creation signals](../SKILL.md#when-to-create-things).
102
104
 
103
- 维护模块沿用 Things Transitional transport;新增参数不创建同义命令或独立 Gateway 入口,迁移出口沿用本 reference 的收录记录。跨仓实施契约见 te-claude `docs/specs/2026-09-17-workspace-issues-convergence/spec.md`;应用与 CLI/Skill 配套交付。
105
+ The owning module continues using the Things Transitional transport. The added parameter does not create a synonymous command or a separate Gateway entry point; the migration exit condition remains the admission record in this reference. The cross-repository implementation contract is te-claude `docs/specs/2026-09-17-workspace-issues-convergence/spec.md`; deliver the application and CLI/Skill together.