@thinkingai/ae-cli 6.1.32 → 6.1.33

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 (94) hide show
  1. package/README.md +6 -3
  2. package/README.zh.md +8 -3
  3. package/bin/runtime-capabilities.json +1 -1
  4. package/dist/{ai-monitor-MKMHSSNI.js → ai-monitor-OHTSU6SV.js} +10 -9
  5. package/dist/ai-monitor.js +14 -13
  6. package/dist/{auth-CZHHPZOQ.js → auth-2MOK4OI6.js} +18 -9
  7. package/dist/{automation-FLCPFMN4.js → automation-6L6IAYRK.js} +6 -7
  8. package/dist/{capability-64KVJFIA.js → capability-EMIHQJA3.js} +10 -9
  9. package/dist/{chunk-OAWPT7VP.js → chunk-2I5SZ5DS.js} +2 -2
  10. package/dist/{chunk-4XKTRCRK.js → chunk-4IQYPWCX.js} +9 -8
  11. package/dist/{chunk-T7WF4HYW.js → chunk-7DHSB3FL.js} +3 -3
  12. package/dist/{chunk-4PSTYEG5.js → chunk-AMURHMS3.js} +11 -7
  13. package/dist/{chunk-6M7ZEDT2.js → chunk-BQFLABJQ.js} +11 -7
  14. package/dist/{chunk-KTJXD27G.js → chunk-COOMXFUG.js} +3 -3
  15. package/dist/{chunk-NLEXY2TM.js → chunk-DWAG2QJM.js} +7 -5
  16. package/dist/{chunk-DWBYNGSR.js → chunk-E3ONSFUN.js} +165 -186
  17. package/dist/{chunk-CF6JTT2U.js → chunk-EFGUBGA6.js} +1 -1
  18. package/dist/{chunk-BNBCMCYN.js → chunk-EWVEAERM.js} +11 -11
  19. package/dist/{chunk-F2VFZUGG.js → chunk-HIMOBNEY.js} +2 -2
  20. package/dist/{chunk-JEUXDY3B.js → chunk-HQED4YB4.js} +1 -1
  21. package/dist/{chunk-2F64AZYH.js → chunk-KA5WKR5P.js} +2 -2
  22. package/dist/{chunk-FCAA7I2D.js → chunk-KD5UC33N.js} +23 -9
  23. package/dist/{chunk-P7QDCWJ6.js → chunk-LFJ7N36I.js} +5 -1
  24. package/dist/chunk-NNK3JBH4.js +60 -0
  25. package/dist/{chunk-3ULDJJTZ.js → chunk-O45NOIWR.js} +2 -2
  26. package/dist/{chunk-HTZ2MLYA.js → chunk-PLNS5J33.js} +11 -5
  27. package/dist/chunk-PUSFEC6B.js +29 -0
  28. package/dist/{chunk-Z3Q2AEIN.js → chunk-R2SVAO4G.js} +14 -2
  29. package/dist/{chunk-TMQGS4TO.js → chunk-RC3PPCYD.js} +3 -3
  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-72NJKS7O.js → chunk-XZDKAR4N.js} +4 -4
  34. package/dist/{chunk-IDDWEZ7F.js → chunk-YE6MJB5V.js} +3 -3
  35. package/dist/{community-report-client-TJVCLZ3K.js → community-report-client-ULRNXLQV.js} +1 -1
  36. package/dist/{compat-check-ZJNCMNQV.js → compat-check-CADG7GND.js} +5 -4
  37. package/dist/{config-FSH2NMNZ.js → config-PFD3KWQG.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 +47 -43
  42. package/dist/{local-data-upload-client-KCMG6J62.js → local-data-upload-client-YTWMAAGE.js} +1 -1
  43. package/dist/{memory-VEZZVAAP.js → memory-HKNGUIPK.js} +6 -7
  44. package/dist/{metadata-3IWHX3V4.js → metadata-GFWR5ZHC.js} +10 -9
  45. package/dist/{model-T7H7Q6BG.js → model-NAKQWK4W.js} +4 -5
  46. package/dist/{personal-semantic-preference-YITU23SA.js → personal-semantic-preference-JCTKXLC3.js} +45 -14
  47. package/dist/{project-semantic-MHEXJF3C.js → project-semantic-B2NWQOKK.js} +9 -8
  48. package/dist/{sync-AQHVCSPI.js → sync-UQH4J4BD.js} +9 -9
  49. package/dist/{te-agent-RXI7WOH4.js → te-agent-L6EYFQCC.js} +303 -17
  50. package/dist/{te-analysis-CZY74HVF.js → te-analysis-U7NNOY66.js} +25 -20
  51. package/dist/{te-community-DKCYUBCM.js → te-community-3UQEW3KD.js} +13 -11
  52. package/dist/{te-dataops-QEH6VE56.js → te-dataops-SUNYXF5G.js} +13 -11
  53. package/dist/{te-engage-WK7WKDKF.js → te-engage-KMXZJ2KN.js} +9 -8
  54. package/dist/{te-experiment-LH3RPIOE.js → te-experiment-IEYKP6VC.js} +215 -28
  55. package/dist/{te-kb-UPORIOVN.js → te-kb-MT3V5ZMH.js} +68 -17
  56. package/dist/{te-system-AL4B4XZL.js → te-system-F4ZU2HRQ.js} +6 -7
  57. package/dist/{te-team-LLVTO2G4.js → te-team-M6E6XQ5H.js} +9 -8
  58. package/dist/{things-XLMLBYQR.js → things-FRLBZV2Z.js} +9 -8
  59. package/dist/{update-7J5UQHSK.js → update-NULYHVE6.js} +8 -6
  60. package/dist/{workspace-FF2HXJGR.js → workspace-Z7L33OBQ.js} +6 -7
  61. package/package.json +6 -3
  62. package/skills/ae-agent/SKILL.md +19 -5
  63. package/skills/ae-agent/references/a2a.md +103 -0
  64. package/skills/ae-agent/references/command_index.md +11 -0
  65. package/skills/ae-analysis/SKILL.md +35 -23
  66. package/skills/ae-analysis/references/analysis_data_retrieval.md +1 -1
  67. package/skills/ae-analysis/references/asset_authentication_export.md +1 -1
  68. package/skills/ae-analysis/references/asset_authentication_update.md +6 -2
  69. package/skills/ae-analysis/references/bad_case_review.md +4 -4
  70. package/skills/ae-analysis/references/command_index.md +7 -7
  71. package/skills/ae-analysis/references/governance_recommendation_export.md +2 -2
  72. package/skills/ae-analysis/references/personal_semantic_preference_add.md +9 -1
  73. package/skills/ae-analysis/references/personal_semantic_preference_delete.md +2 -0
  74. package/skills/ae-analysis/references/personal_semantic_preference_get.md +2 -0
  75. package/skills/ae-analysis/references/personal_semantic_preference_list.md +10 -2
  76. package/skills/ae-analysis/references/personal_semantic_preference_update.md +8 -0
  77. package/skills/ae-analysis/references/project_owner_update.md +5 -1
  78. package/skills/ae-analysis/references/scenario_evaluation.md +17 -1
  79. package/skills/ae-analysis/references/scenario_list.md +5 -6
  80. package/skills/ae-capability/SKILL.md +8 -4
  81. package/skills/ae-experiment/SKILL.md +45 -16
  82. package/skills/ae-experiment/references/experiment_approval.md +87 -29
  83. package/skills/ae-experiment/references/manage_experiment.md +7 -3
  84. package/skills/ae-experiment/references/manage_traffic_domains.md +131 -0
  85. package/skills/ae-experiment/references/query_experiment_detail.md +8 -0
  86. package/skills/ae-experiment/references/query_experiment_list.md +6 -0
  87. package/skills/ae-experiment/references/save_experiment.md +39 -13
  88. package/skills/ae-experiment/references/save_metric.md +29 -2
  89. package/skills/ae-experiment/references/save_submit_experiment.md +11 -7
  90. package/skills/ae-experiment/references/save_submit_external_experiment.md +16 -14
  91. package/skills/ae-experiment/references/save_traffic_layer.md +17 -1
  92. package/skills/ae-kb/SKILL.md +4 -2
  93. package/skills/ae-kb/references/publication.md +45 -0
  94. package/dist/chunk-Y74WTIKJ.js +0 -10
@@ -10,4 +10,20 @@ Flags:
10
10
  - `--project-id`, `-p`: Project ID.
11
11
  - `--req`: Traffic layer save request JSON object.
12
12
 
13
- Create mode requires `bucketId`, `layerName`, and `layerType` in the request. Modify mode requires `layerId`.
13
+ Create mode requires `bucketId`, `layerName`, and `layerType` in the request. `layerType`
14
+ must be `remote` or `local`; local routing does not support `bucketId="#user_id"`.
15
+ Modify mode requires `layerId`.
16
+
17
+ ```bash
18
+ ae-cli experiment traffic-layer save --project-id 1 --req '{"layerName":"Local account layer","layerType":"local","bucketId":"#account_id"}' --dry-run
19
+ ```
20
+
21
+
22
+ ## Traffic domain membership
23
+
24
+ Optional `req.domainId` binds the layer to a root traffic domain in the same project and
25
+ bucket subject. For an existing layer, omit/null to retain membership or pass an empty
26
+ string to clear it. A membership-only patch is supported. Related experiments must all
27
+ be draft, ended, or archive before changing membership. Layer ID and salt remain stable.
28
+ List/get return nullable `domain_id` and `domain_name`. Read
29
+ [`manage_traffic_domains.md`](manage_traffic_domains.md) for versioned quota management.
@@ -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
- };