@thinkingai/ae-cli 6.0.60 → 6.0.61

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 (82) hide show
  1. package/README.md +4 -1
  2. package/README.zh.md +6 -1
  3. package/bin/runtime-capabilities.json +1 -1
  4. package/dist/{ai-monitor-FCXSLHAP.js → ai-monitor-NUKSJPLE.js} +10 -9
  5. package/dist/ai-monitor.js +14 -13
  6. package/dist/{auth-ATK2SLEV.js → auth-MVAEBGBP.js} +18 -10
  7. package/dist/{automation-FLCPFMN4.js → automation-6L6IAYRK.js} +6 -7
  8. package/dist/{capability-6KTSOI7L.js → capability-74N7AN5X.js} +10 -9
  9. package/dist/{chunk-OAWPT7VP.js → chunk-2I5SZ5DS.js} +2 -2
  10. package/dist/{chunk-5E7MTTFN.js → chunk-7WBCSJL6.js} +23 -9
  11. package/dist/{chunk-4PSTYEG5.js → chunk-AMURHMS3.js} +11 -7
  12. package/dist/{chunk-6M7ZEDT2.js → chunk-BQFLABJQ.js} +11 -7
  13. package/dist/{chunk-KTJXD27G.js → chunk-COOMXFUG.js} +3 -3
  14. package/dist/{chunk-CF6JTT2U.js → chunk-EFGUBGA6.js} +1 -1
  15. package/dist/{chunk-BEYLCUZX.js → chunk-H35VDOAE.js} +3 -3
  16. package/dist/{chunk-F2VFZUGG.js → chunk-HIMOBNEY.js} +2 -2
  17. package/dist/{chunk-JEUXDY3B.js → chunk-HQED4YB4.js} +1 -1
  18. package/dist/{chunk-AXTO4FTM.js → chunk-HRFYYEXR.js} +3 -3
  19. package/dist/{chunk-2ETRY2CU.js → chunk-JZY6WWAP.js} +9 -8
  20. package/dist/{chunk-2F64AZYH.js → chunk-KA5WKR5P.js} +2 -2
  21. package/dist/{chunk-P7QDCWJ6.js → chunk-LFJ7N36I.js} +5 -1
  22. package/dist/{chunk-SDKW6LYE.js → chunk-LPKIMGIU.js} +3 -3
  23. package/dist/chunk-NNK3JBH4.js +60 -0
  24. package/dist/{chunk-VJUXKVRE.js → chunk-OTZ4JQDU.js} +2 -2
  25. package/dist/{chunk-HTZ2MLYA.js → chunk-PLNS5J33.js} +11 -5
  26. package/dist/chunk-PUSFEC6B.js +29 -0
  27. package/dist/{chunk-Z3Q2AEIN.js → chunk-R2SVAO4G.js} +14 -2
  28. package/dist/{chunk-HSZAIPUX.js → chunk-RB26WNLM.js} +7 -5
  29. package/dist/{chunk-VRMGHQKE.js → chunk-SVNED423.js} +11 -11
  30. package/dist/{chunk-HVMCPKOZ.js → chunk-THTROEGD.js} +1 -1
  31. package/dist/{chunk-QVRIDN42.js → chunk-UCMO4LKL.js} +2 -2
  32. package/dist/{chunk-5M5LBRR3.js → chunk-VLOGOM7N.js} +13 -7
  33. package/dist/{chunk-LOR4IA26.js → chunk-XPARQSYS.js} +165 -186
  34. package/dist/{chunk-72NJKS7O.js → chunk-XZDKAR4N.js} +4 -4
  35. package/dist/{community-report-client-TJVCLZ3K.js → community-report-client-ULRNXLQV.js} +1 -1
  36. package/dist/{compat-check-XD2U7PZ2.js → compat-check-W4XC27RG.js} +5 -4
  37. package/dist/{config-U3GDWU6E.js → config-264GB6C7.js} +7 -6
  38. package/dist/{context-YAQG6YQC.js → context-SOQDFZIB.js} +8 -6
  39. package/dist/{data-integration-QE37EQ3A.js → data-integration-UNJ7EPW2.js} +6 -6
  40. package/dist/{evaluation-2JSF4V47.js → evaluation-Q3AIGFOG.js} +5 -5
  41. package/dist/index.js +46 -42
  42. package/dist/{local-data-upload-client-KCMG6J62.js → local-data-upload-client-YTWMAAGE.js} +1 -1
  43. package/dist/{memory-WEB27VI6.js → memory-ZLTTULZK.js} +6 -7
  44. package/dist/{metadata-7FYE4234.js → metadata-EN2IWCDI.js} +10 -9
  45. package/dist/{model-T7H7Q6BG.js → model-NAKQWK4W.js} +4 -5
  46. package/dist/{personal-semantic-preference-O6VXM74A.js → personal-semantic-preference-UGN67KTN.js} +45 -14
  47. package/dist/{project-semantic-2GGFJWW6.js → project-semantic-5OP3YPZD.js} +9 -8
  48. package/dist/{sync-ULBB7WO5.js → sync-LDJQZRQH.js} +9 -9
  49. package/dist/{te-agent-6RMF7LUV.js → te-agent-WNNAD4AJ.js} +303 -17
  50. package/dist/{te-analysis-HSYC7GNV.js → te-analysis-KIMH6AGU.js} +25 -20
  51. package/dist/{te-community-FLKZGQKB.js → te-community-P7NNBVCS.js} +13 -11
  52. package/dist/{te-dataops-OQQGTCUA.js → te-dataops-ZRKSG4R7.js} +13 -11
  53. package/dist/{te-engage-RIEBHL5T.js → te-engage-PVBVNRSU.js} +9 -8
  54. package/dist/{te-kb-4HG2FMHJ.js → te-kb-W7PRC7QN.js} +68 -17
  55. package/dist/{te-system-AL4B4XZL.js → te-system-F4ZU2HRQ.js} +6 -7
  56. package/dist/{te-team-5O4UVUWE.js → te-team-5ONMRGKF.js} +9 -8
  57. package/dist/{things-TSJ64GBT.js → things-PFENSIF4.js} +9 -8
  58. package/dist/{update-Q5LURAWV.js → update-EUZ4GNND.js} +8 -6
  59. package/dist/{workspace-FF2HXJGR.js → workspace-Z7L33OBQ.js} +6 -7
  60. package/package.json +5 -2
  61. package/skills/ae-agent/SKILL.md +19 -5
  62. package/skills/ae-agent/references/a2a.md +103 -0
  63. package/skills/ae-agent/references/command_index.md +11 -0
  64. package/skills/ae-analysis/SKILL.md +35 -23
  65. package/skills/ae-analysis/references/analysis_data_retrieval.md +1 -1
  66. package/skills/ae-analysis/references/asset_authentication_export.md +1 -1
  67. package/skills/ae-analysis/references/asset_authentication_update.md +6 -2
  68. package/skills/ae-analysis/references/bad_case_review.md +4 -4
  69. package/skills/ae-analysis/references/command_index.md +7 -7
  70. package/skills/ae-analysis/references/governance_recommendation_export.md +2 -2
  71. package/skills/ae-analysis/references/personal_semantic_preference_add.md +9 -1
  72. package/skills/ae-analysis/references/personal_semantic_preference_delete.md +2 -0
  73. package/skills/ae-analysis/references/personal_semantic_preference_get.md +2 -0
  74. package/skills/ae-analysis/references/personal_semantic_preference_list.md +10 -2
  75. package/skills/ae-analysis/references/personal_semantic_preference_update.md +8 -0
  76. package/skills/ae-analysis/references/project_owner_update.md +5 -1
  77. package/skills/ae-analysis/references/scenario_evaluation.md +17 -1
  78. package/skills/ae-analysis/references/scenario_list.md +5 -6
  79. package/skills/ae-capability/SKILL.md +8 -4
  80. package/skills/ae-kb/SKILL.md +4 -2
  81. package/skills/ae-kb/references/publication.md +45 -0
  82. package/dist/chunk-Y74WTIKJ.js +0 -10
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-capability
3
- version: 1.3.16
3
+ version: 1.3.17
4
4
  description: "AE capability gateway discovery and generic invocation with ae-cli. Use when the user needs to list or search available capabilities, inspect an unknown capability schema/risk/auth contract, optionally validate complex input or dry-run before execute, or invoke a long-tail capability that has no curated ae-cli command. Always discover and inspect before composing input; never guess capability IDs or input fields. Prefer on-demand validate OR dry-run — do not stack both by default."
5
5
  ---
6
6
 
@@ -31,16 +31,20 @@ Hard rule: before running gateway-backed `ae-cli` commands, maintain the current
31
31
  Create or update the context file when starting a CLI-backed task and whenever the user's CLI purpose changes. Reuse it while the purpose and model remain unchanged. Use the user's original language for `session_initial_intent`, `user_intent`, and `session_goal`; for example, use Chinese text for a Chinese user request. At minimum, include:
32
32
 
33
33
  - `agent_client`
34
- - `agent_model` whenever the current model can be confirmed
34
+ - `agent_model` (required by this Skill; follow the preflight below)
35
35
  - stable `agent_session_id`
36
36
  - `agent_turn_id` when available
37
37
  - `intent_source: "agent_context_file"`
38
38
  - concise `user_intent` for the current CLI-triggering purpose
39
39
  - current `session_goal`
40
40
 
41
- The Agent must actively obtain the current model identifier and write it explicitly as `agent_model` in the context file. Use trusted runtime context or bounded metadata for the exact current session and turn; for example, Codex's current-session `turn_context.model`. Do not rely solely on a model environment variable being present. Never infer the model from the Agent/product name, a configured default, or another session. This requirement applies to every Agent client. Update the file when the model changes, even if the CLI purpose stays the same.
41
+ **Required Agent preflight:** the Agent must report `agent_model` before every gateway-backed CLI call. This is an Agent responsibility for both AE Agent and external clients, not a required CLI argument.
42
42
 
43
- If the model cannot be confirmed, omit `agent_model`, set `context_capture_status: "partial"`, and continue; do not block or delay the business command or ask the user to identify the model just for telemetry. Once confirmed, write the model and remove the stale partial marker so the CLI can compute capture status from the remaining fields.
43
+ 1. Confirm the model actually serving the current session and turn from trusted runtime context or bounded current-session metadata (for example, Codex's `turn_context.model`). Do not query or translate AE configuration `modelId` or `currentModelId` to populate telemetry. Never infer the model from the Agent/product name, a configured default, or another session. A missing model environment variable does not waive this step.
44
+ 2. Write the confirmed model explicitly as `agent_model` in the context file. Update the file when the model changes, even if the CLI purpose stays the same. Do not leave the example placeholder in the file.
45
+ 3. Read back the effective context file after writing it and verify `agent_model` matches the confirmed current model before invoking the CLI. Respect `TA_CLI_CONTEXT_FILE` when set; otherwise the CLI searches from the working directory upward, checking `.ta/cli-agent-context.json` before `.ae/cli-agent-context.json` in each directory. Update the file that actually wins, not a shadowed copy. Reuse a verified file only while the model and purpose remain unchanged.
46
+
47
+ Only if trusted current-session information cannot confirm the model after this check, omit `agent_model`, set `context_capture_status: "partial"`, and continue; do not block or delay the business command or ask the user to identify the model just for telemetry. Do not fabricate a model to satisfy this Skill. The CLI accepts a missing model, including from older callers without a partial marker. Once confirmed, write the model and remove the stale partial marker so the CLI can compute capture status from the remaining fields.
44
48
 
45
49
  Write this JSON object to `.ae/cli-agent-context.json`:
46
50
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-kb
3
- version: 1.0.12
3
+ version: 1.0.13
4
4
  description: 'AE knowledge base CLI manual for creating, importing read-only compiled snapshots, querying, LLM-powered ask, listing accessible knowledge bases and their sources, deterministic index/grep/read retrieval, checking status, ZIP source upload and directory management, raw child-file reading, revision-checked child updates and deletion, compiling, schema generation, URL sources, source deletion, ordinary text source creation, full reads and revision-checked editing, file/ZIP source draft replacement and restoration, and knowledge base deletion. Use when the user asks to manage AE (Agentic Engine) knowledge bases, import a compiled Markdown ZIP snapshot, upload documents or URLs to a knowledge base, query knowledge, ask knowledge bases with an LLM, list accessible knowledge bases or source metadata, inspect knowledge base indexes, search knowledge base pages, read a specific knowledge base page, check knowledge base status, generate schemas, compile knowledge, remove sources, create or edit text sources, or delete a knowledge base. To choose which knowledge base is worth searching, use the ae-kb-discovery skill first; this skill runs the retrieval once a target is chosen. Must use ae-cli kb commands and must not guess knowledge base names, scopes, page paths, source IDs, source display names, JSON payload shapes, or URL formats.'
5
5
  ---
6
6
 
@@ -448,7 +448,7 @@ ae-cli kb +remove --name engineering-handbook --scope company
448
448
  ### `+ask`
449
449
 
450
450
  ```bash
451
- ae-cli kb +ask --question "<question>" [--sources '[{"scope":"company","name":"kb-name"}]'] [--model-id claude-sonnet-4-6] [--locale zh|en|ja|ko] [--no-wait]
451
+ ae-cli kb +ask --question "<question>" [--sources '[{"scope":"company","name":"kb-name"}]'] [--model-id claude-sonnet-4-6] [--locale zh|en|ja|ko] [--no-wait] [--read-context <id>]
452
452
  ```
453
453
 
454
454
  - `--question`, alias `-q`: required natural-language question (1-2000 characters).
@@ -459,6 +459,8 @@ ae-cli kb +ask --question "<question>" [--sources '[{"scope":"company","name":"k
459
459
  - When to use: multi-page synthesis or multi-hop questions. For simple factual lookups, prefer `+index` / `+grep` / `+read`.
460
460
  - Output: By default, polls and returns `{executionId, answer, sources, modelUsage, toolCallCount, modelId}`. With `--no-wait`, returns `{executionId, status}` immediately. On failure, exits non-zero with the unified stderr envelope containing `error.type="api"`, the server `error.code` (`model_unavailable`, `sandbox_unavailable`, `agent_skill_unavailable`, `dispatch_auth_unavailable`, `provider_failed`, `retrieval_error`, `timeout`, or `process_restart`), and `error.message`.
461
461
 
462
+ With `--read-context`, Ask reads the selected immutable formal snapshot or pending company candidate. Without it, existing published Ask behavior is unchanged. Read [the evaluation contract](references/publication.md#server-side-ask-evaluation) before comparing versions. Explicit-context responses include `readViews`, including no-hit and failed executions. Pending candidate citations cannot be revisited with `--source-index`.
463
+
462
464
  ### `+ask-status`
463
465
 
464
466
  ```bash
@@ -79,3 +79,48 @@ The first successful source-managed KB compilation now publishes automatically,
79
79
  Text and Markdown members return changed hunks. Small, unambiguous CSV/TSV changes may additionally include `table` containing only changed rows. ZIP and URL/Feishu sources expose changed frozen members; PDF, Office, images, invalid UTF-8 and oversized content explicitly return metadata/limit status rather than a fabricated textual diff. No source URL is fetched during preview.
80
80
 
81
81
  Compatibility: deploy the matching server before using new paging flags. Old CLI requests continue to work on the new server. New flags against older servers fail explicitly with `KB_CANDIDATE_PAGING_UNSUPPORTED` when `page` or `filePage` is missing; the CLI never treats an unfiltered old response as a filtered result.
82
+
83
+ ## Evaluate a pending company KB candidate
84
+
85
+ Use the same explicit `--sources '[{"scope":"company","name":"<verified name>"}]'` in two
86
+ `kb read-context create` calls. Add `--candidate <candidateId>` to the candidate call only.
87
+ Get the ID from publication status. Require the formal view to be snapshot-pinned and its
88
+ non-null `versionId` to equal the candidate view's `baseVersion`; otherwise stop.
89
+ Older Hosts may reject the candidate request; never fall back to a formal view.
90
+
91
+ Use two fresh local Agent sessions with identical questions, model, prompt and retrieval budget.
92
+ Give each session only its own context and keep the other session's history, answers, references
93
+ and temporary files out of it. Use `+index`, `+grep` and `+read` with that session's
94
+ `--read-context`. Save each creation response, associate each request with its context ID,
95
+ and verify any returned `readView` against the creation identity. Empty grep results are
96
+ valid no-hit evidence for that context; a failed request is not. Keep version identities,
97
+ session IDs, initial settings, answers and cited paths. Compare and score after both sessions
98
+ finish. Stop on a failed or expired context and restart both rounds if trying again. Release
99
+ both contexts after success or failure using `kb read-context release --id`.
100
+
101
+ The candidate reader accepts one active query per Host process and up to four file reads at a time.
102
+ Its bounds are 1 MiB per file, 8 MiB of selected files and 20,000 lines per request.
103
+ A busy or over-budget query fails explicitly; it does not return a partial comparison.
104
+ Candidate queries count as preview events, outside formal consumption and core activity.
105
+ Formal baseline queries still count as ordinary formal consumption.
106
+
107
+
108
+ ## Server-side Ask evaluation
109
+
110
+ After creating the formal and candidate contexts above, use the same question and actual model with each:
111
+
112
+ ```bash
113
+ ae-cli kb +ask --question '<question>' --model-id '<model-id>' --read-context '<formal-context>'
114
+ ae-cli kb +ask --question '<question>' --model-id '<model-id>' --read-context '<candidate-context>' --no-wait
115
+ ae-cli kb +ask-status --execution-id '<execution-id>'
116
+ ```
117
+
118
+ Only submission carries the context Header. Polling uses your normal user credentials and the returned execution ID. Candidate sources may be omitted (only the bound company KB is selected); if supplied, pass exactly that one company KB. A formal context may select a non-empty subset of its bound immutable snapshots. Execution-owned Agent/Ask/automation contexts cannot start another Ask. An older Host or Sandbox that cannot preserve explicit identities fails; do not retry against current published content.
119
+
120
+ Each Ask creates an independent sandbox session, private working directory and task credential. Run questions serially, keep model/prompt/budget equal, and never pass another round's answer, history or temporary files as input. Compare the formal versionId with candidate baseVersion before starting. Save the creation response and each submission's readViews; match every poll/result to that identity, including sources: [] on a successful no-hit answer. Missing or changed identities invalidate the comparison. Default waiting validates submission/poll identity consistency; asynchronous callers must perform that comparison themselves.
121
+
122
+ The task does not replace or release your source context. Finish all tasks before releasing it; source release/expiry invalidates unfinished work. Contexts expire after 15 minutes and are not extended; Ask retains its existing 5-minute execution timeout and platform turn limit. If a context expires or any question fails, stop the comparison, clean up your contexts and start both rounds afresh if needed. Candidate tools run serially and retain the per-request budgets above; 429/413 is an execution failure, not no-hit or a partial answer.
123
+
124
+ Results preserve answer, sources, readViews, modelUsage and modelId. Candidate sources include candidateId, baseVersion and readIdentity, with versionId/versionNumber null. They do not provide a historical reference; +ask-status --source-index fails explicitly for them. Saved results remain available to the execution owner with current company KB consume/edit permission after approval ends or contexts are released, but do not reopen candidate source files. Normal formal historical citations keep their existing behavior.
125
+
126
+ Candidate Ask and its internal retrieval are non-core preview activity; model usage is still recorded. The formal comparison round still counts as ordinary formal consumption and core Ask activity. This does not add candidate consumption to ordinary platform conversations or automations, or provide automatic grading/approval.
@@ -1,10 +0,0 @@
1
- import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
-
3
- // src/core/internal-call-source.ts
4
- function internalCallSourceHeaders() {
5
- return {};
6
- }
7
-
8
- export {
9
- internalCallSourceHeaders
10
- };