@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.
- package/README.md +52 -6
- package/README.zh.md +52 -6
- package/bin/ae-cli.js +5 -0
- package/bin/runtime-capabilities.json +5 -0
- package/cli-installation-guide.md +24 -3
- package/dist/{auth-WA7YGGRT.js → auth-OBQ5KVQM.js} +175 -45
- package/dist/{automation-VAAQBM7Y.js → automation-NAR5DDGL.js} +94 -38
- package/dist/{capability-GAAYJ3IQ.js → capability-LFSVNI5B.js} +57 -28
- package/dist/chunk-2UW3Y463.js +2289 -0
- package/dist/{chunk-VZZNLV3I.js → chunk-3SDHJOCR.js} +68 -18
- package/dist/chunk-6HAUVWOQ.js +132 -0
- package/dist/{chunk-5XJYLEVC.js → chunk-72NJKS7O.js} +4 -4
- package/dist/{chunk-Q5US7JC5.js → chunk-7JAVT5TK.js} +3 -3
- package/dist/{chunk-7KU2WNQE.js → chunk-CVCTFLSO.js} +37 -15
- package/dist/{chunk-GHXZK54S.js → chunk-H3K5UGYC.js} +41 -13
- package/dist/{chunk-OP44TT4H.js → chunk-IN7KKL6K.js} +4 -2
- package/dist/{chunk-S6M42KND.js → chunk-JEUXDY3B.js} +1 -1
- package/dist/{chunk-ZL7SGNIA.js → chunk-JNVVJ273.js} +58 -46
- package/dist/chunk-N6XBLRB7.js +105 -0
- package/dist/{chunk-AP7YP2NX.js → chunk-OAWPT7VP.js} +2 -2
- package/dist/{chunk-AQJPNWZF.js → chunk-PWXDWMCW.js} +7 -7
- package/dist/{chunk-CT7QDJS6.js → chunk-QVRIDN42.js} +2 -2
- package/dist/chunk-QZLRHGVH.js +222 -0
- package/dist/{chunk-RPBOAQQQ.js → chunk-QZUVLFNR.js} +1 -1
- package/dist/{chunk-3YVEAZUN.js → chunk-RJHGDWSC.js} +32 -21
- package/dist/{chunk-MWIA43UJ.js → chunk-VCZE3IWO.js} +10 -8
- package/dist/chunk-YVG6QD3V.js +233 -0
- package/dist/{chunk-WNGFSIOB.js → chunk-Z3Q2AEIN.js} +237 -86
- package/dist/{community-report-client-PEERQCX2.js → community-report-client-TJVCLZ3K.js} +1 -1
- package/dist/compat-check-CII6B74E.js +32 -0
- package/dist/{config-JOD5DOPE.js → config-YZ6O2UQ2.js} +40 -7
- package/dist/{context-NGVFPCBK.js → context-F6FCGTF3.js} +4 -4
- package/dist/{data-integration-BCLQFTGU.js → data-integration-6UAZO4GG.js} +207 -24
- package/dist/evaluation-4LO2O4AF.js +3714 -0
- package/dist/index.js +352 -81
- package/dist/{local-data-upload-client-TWMHFLUA.js → local-data-upload-client-KCMG6J62.js} +1 -1
- package/dist/{memory-CQKH2JAV.js → memory-HHPX3NF2.js} +6 -6
- package/dist/{metadata-NR3PHR23.js → metadata-TIFY24LW.js} +17 -9
- package/dist/{model-VX5M2CJ6.js → model-7UHGWYVR.js} +4 -4
- package/dist/{personal-semantic-preference-2RAI36P3.js → personal-semantic-preference-WKJEGPTM.js} +7 -6
- package/dist/{project-semantic-3BUGP3ZM.js → project-semantic-EIQVZNHW.js} +11 -10
- package/dist/{sync-RZIAV37C.js → sync-RV3OPCTI.js} +8 -7
- package/dist/{te-agent-AORRE2FM.js → te-agent-5ENVZJUH.js} +757 -94
- package/dist/{te-analysis-GP7DSQ7Q.js → te-analysis-USIK6ZZG.js} +584 -100
- package/dist/{te-community-42M7ICDO.js → te-community-WE2UU4XV.js} +722 -228
- package/dist/{te-dataops-BNKNZ4F2.js → te-dataops-XNMO7MBF.js} +9 -6
- package/dist/{te-engage-2CO6LRCX.js → te-engage-6C3HCFQR.js} +13 -12
- package/dist/{te-experiment-652CLXMU.js → te-experiment-LVTRI3QK.js} +55 -21
- package/dist/{te-kb-ULATOTQ3.js → te-kb-TUPGMVBY.js} +409 -85
- package/dist/{te-system-UGHVKBVV.js → te-system-YM657FKO.js} +6 -6
- package/dist/{te-team-YA6SNOJ3.js → te-team-G4VEJJNL.js} +64 -41
- package/dist/{things-DTCOQIQB.js → things-22KQWC23.js} +7 -7
- package/dist/{update-ESNYKUVR.js → update-XX4ILU7X.js} +11 -7
- package/dist/{workspace-JEOHKFPX.js → workspace-LYDAP647.js} +6 -6
- package/package.json +26 -11
- package/skills/ae-agent/SKILL.md +22 -3
- package/skills/ae-agent/references/command_index.md +8 -0
- package/skills/ae-agent/references/resource-package.md +57 -0
- package/skills/ae-analysis/SKILL.md +23 -10
- package/skills/ae-analysis/references/adhoc_export.md +1 -1
- package/skills/ae-analysis/references/agent_review_preflight.md +55 -10
- package/skills/ae-analysis/references/agent_review_priorities_comparisons.md +5 -3
- package/skills/ae-analysis/references/agent_review_submit_to_page.md +60 -24
- package/skills/ae-analysis/references/ai_models/event.md +58 -2
- package/skills/ae-analysis/references/ai_models/rank_list.md +1 -0
- package/skills/ae-analysis/references/ai_models/retention.md +2 -0
- package/skills/ae-analysis/references/ai_models/revenue.md +2 -0
- package/skills/ae-analysis/references/analysis_data_export.md +11 -1
- package/skills/ae-analysis/references/asset_batch_info_export.md +2 -2
- package/skills/ae-analysis/references/asset_batch_sql_export.md +2 -2
- package/skills/ae-analysis/references/asset_export.md +1 -1
- package/skills/ae-analysis/references/bi_panel_page_data_export.md +1 -1
- package/skills/ae-analysis/references/check_export.md +1 -1
- package/skills/ae-analysis/references/command_index.md +39 -26
- package/skills/ae-analysis/references/dashboard_report_data_export.md +2 -0
- package/skills/ae-analysis/references/dashboard_report_get.md +6 -2
- package/skills/ae-analysis/references/dashboard_report_update.md +24 -5
- package/skills/ae-analysis/references/feedback_submit.md +1 -1
- package/skills/ae-analysis/references/governance_recommendation_export.md +40 -18
- package/skills/ae-analysis/references/governance_recommendation_run_update.md +13 -0
- package/skills/ae-analysis/references/live_data_export.md +1 -1
- package/skills/ae-analysis/references/metric_create.md +29 -0
- package/skills/ae-analysis/references/metric_get.md +2 -0
- package/skills/ae-analysis/references/metric_update.md +2 -0
- package/skills/ae-analysis/references/operation_record_export.md +1 -1
- package/skills/ae-analysis/references/plan_change_log_export.md +1 -1
- package/skills/ae-analysis/references/plan_export.md +1 -1
- package/skills/ae-analysis/references/project_info_get.md +4 -0
- package/skills/ae-analysis/references/project_member_group_add_members.md +35 -0
- package/skills/ae-analysis/references/project_member_group_create.md +25 -0
- package/skills/ae-analysis/references/project_member_group_delete.md +34 -0
- package/skills/ae-analysis/references/project_member_group_list.md +29 -0
- package/skills/ae-analysis/references/project_member_group_members.md +28 -0
- package/skills/ae-analysis/references/project_member_group_remove_members.md +35 -0
- package/skills/ae-analysis/references/project_member_group_rename.md +26 -0
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +9 -1
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +6 -1
- package/skills/ae-analysis/references/report_data_export.md +1 -1
- package/skills/ae-analysis/references/scenario_append.md +31 -0
- package/skills/ae-analysis/references/scenario_begin.md +11 -0
- package/skills/ae-analysis/references/scenario_collect.md +43 -0
- package/skills/ae-analysis/references/scenario_evaluation.md +18 -0
- 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/build-project-semantic-wiki.mjs +73 -4
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +14 -1
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-schema.md +5 -1
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/execution-contract.mjs +173 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/generate-build-ir.mjs +109 -64
- package/skills/ae-automation/SKILL.md +2 -2
- package/skills/ae-automation/references/cli.md +18 -1
- package/skills/ae-capability/SKILL.md +7 -3
- 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-evaluation/SKILL.md +83 -0
- package/skills/ae-evaluation/references/access-and-members.md +55 -0
- package/skills/ae-evaluation/references/connections.md +78 -0
- package/skills/ae-evaluation/references/datasets.md +57 -0
- package/skills/ae-evaluation/references/evaluators.md +81 -0
- package/skills/ae-evaluation/references/files.md +33 -0
- package/skills/ae-evaluation/references/integrations.md +39 -0
- package/skills/ae-evaluation/references/runs.md +160 -0
- package/skills/ae-evaluation/references/schedules.md +31 -0
- 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 +33 -7
- package/skills/ae-kb/references/publication.md +81 -0
- package/skills/ae-kb/references/query-workflow.md +14 -1
- package/skills/ae-metadata/SKILL.md +3 -2
- package/skills/ae-metadata/references/metadata_data_table_download.md +7 -1
- package/skills/ae-metadata/references/metadata_data_table_get.md +37 -0
- package/skills/ae-system/SKILL.md +1 -1
- package/skills/ae-team/SKILL.md +2 -2
- package/skills/ae-team/references/run-start.md +1 -0
- package/skills/ae-team/references/run-watch.md +7 -5
- package/skills/ae-things/SKILL.md +53 -51
- package/skills/ae-things/references/cli.md +56 -54
- package/skills/ae-things-progress/SKILL.md +20 -20
- package/skills/ae-things-review/SKILL.md +19 -19
- package/skills/ae-workspace/SKILL.md +1 -1
- package/dist/chunk-6VNIR4AP.js +0 -1422
- package/dist/chunk-CI24BDR2.js +0 -43
|
@@ -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
|
|
|
@@ -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 |
|
|
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.
|
|
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
|
|
package/skills/ae-team/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ae-team
|
|
3
|
-
version: 1.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 →
|
|
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
|
-
-
|
|
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
|
|
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
|
|
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
|
|
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: "
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
62
|
+
## Current conversation binding and execution snapshots
|
|
63
63
|
|
|
64
|
-
|
|
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
|
|
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
|
-
-
|
|
69
|
-
|
|
70
|
-
-
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
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 '
|
|
80
|
-
ae-cli things entry append --agent-space-id <space-id> --id <thing-id> --type progress --content '
|
|
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
|
-
|
|
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
|
-
#
|
|
1
|
+
# Workspace Things CLI reference
|
|
2
2
|
|
|
3
|
-
|
|
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
|
|
10
|
+
Exit condition: Migrate the transport when Gateway provides equivalent space validation, idempotency, permissions, pagination and conversation associations.
|
|
11
11
|
|
|
12
|
-
|
|
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`
|
|
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
|
-
|
|
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
|
-
|
|
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`
|
|
27
|
-
| `get`
|
|
28
|
-
| `create`
|
|
29
|
-
| `update`
|
|
30
|
-
| `archive/restore`
|
|
31
|
-
| `delete`
|
|
32
|
-
| `members/options`
|
|
33
|
-
| `collaborator add/remove` | `--id --user-id`
|
|
34
|
-
| `entry list`
|
|
35
|
-
| `entry append`
|
|
36
|
-
| `entry update`
|
|
37
|
-
| `from-message`
|
|
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 '
|
|
41
|
-
ae-cli things entry append --agent-space-id <space-id> --id <thing-id> --type progress --content '
|
|
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`
|
|
49
|
-
| `conversation primary`
|
|
50
|
-
| `conversation bind/unbind` | `--conversation-id
|
|
51
|
-
| `conversations`
|
|
52
|
-
| `link-conversation`
|
|
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
|
-
|
|
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
|
-
|
|
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`
|
|
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
|
-
|
|
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
|
|
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
|
-
##
|
|
68
|
+
## Files and deliverables (phase 4)
|
|
69
69
|
|
|
70
|
-
`asset available`
|
|
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`
|
|
83
|
-
-
|
|
84
|
-
-
|
|
85
|
-
-
|
|
86
|
-
- `THING_ASSET_UNAVAILABLE`
|
|
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
|
-
#
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|