@thinkingai/ae-cli 6.1.29 → 6.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/{auth-OBQ5KVQM.js → auth-ADZHUIJR.js} +6 -6
  2. package/dist/{automation-NAR5DDGL.js → automation-FD2QZUP6.js} +5 -5
  3. package/dist/{capability-LFSVNI5B.js → capability-QXFRJYZD.js} +6 -6
  4. package/dist/{chunk-IN7KKL6K.js → chunk-2F64AZYH.js} +1 -1
  5. package/dist/{chunk-JNVVJ273.js → chunk-4PSTYEG5.js} +5 -10
  6. package/dist/{chunk-6HAUVWOQ.js → chunk-AVXDJAFC.js} +3 -3
  7. package/dist/{chunk-QZUVLFNR.js → chunk-AWVZTN2B.js} +1 -1
  8. package/dist/{chunk-2UW3Y463.js → chunk-CG773QXN.js} +3 -3
  9. package/dist/{chunk-7JAVT5TK.js → chunk-E25OSZLJ.js} +2 -2
  10. package/dist/{chunk-PWXDWMCW.js → chunk-EUFP4M2A.js} +2 -2
  11. package/dist/{chunk-3SDHJOCR.js → chunk-HRUOV6EQ.js} +2 -2
  12. package/dist/{chunk-RJHGDWSC.js → chunk-JSBLCLFE.js} +2 -2
  13. package/dist/{chunk-H3K5UGYC.js → chunk-SOSFRU3O.js} +1 -1
  14. package/dist/{chunk-CVCTFLSO.js → chunk-TFORY6WY.js} +3 -3
  15. package/dist/{chunk-N6XBLRB7.js → chunk-VDICGXCY.js} +2 -2
  16. package/dist/{chunk-VCZE3IWO.js → chunk-Y3AM6LIO.js} +2 -2
  17. package/dist/{chunk-QZLRHGVH.js → chunk-YULUBP3R.js} +1 -1
  18. package/dist/{compat-check-CII6B74E.js → compat-check-HERBTQZN.js} +3 -3
  19. package/dist/{config-YZ6O2UQ2.js → config-E3KANXMK.js} +5 -5
  20. package/dist/{context-F6FCGTF3.js → context-CDB5H5PD.js} +3 -3
  21. package/dist/{data-integration-6UAZO4GG.js → data-integration-QE37EQ3A.js} +1 -1
  22. package/dist/{evaluation-4LO2O4AF.js → evaluation-LR4YDYWL.js} +2 -2
  23. package/dist/index.js +32 -32
  24. package/dist/{memory-HHPX3NF2.js → memory-SNFR5M23.js} +5 -5
  25. package/dist/{metadata-TIFY24LW.js → metadata-EXQYDZTH.js} +7 -7
  26. package/dist/{model-7UHGWYVR.js → model-KEVCEXWD.js} +3 -3
  27. package/dist/{personal-semantic-preference-WKJEGPTM.js → personal-semantic-preference-ETY3KU2O.js} +6 -6
  28. package/dist/{project-semantic-EIQVZNHW.js → project-semantic-UHRMVOJF.js} +6 -6
  29. package/dist/{sync-RV3OPCTI.js → sync-XKEBXESC.js} +5 -5
  30. package/dist/{te-agent-5ENVZJUH.js → te-agent-S6UQR4IE.js} +6 -6
  31. package/dist/{te-analysis-USIK6ZZG.js → te-analysis-WOFFCIBC.js} +7 -7
  32. package/dist/{te-community-WE2UU4XV.js → te-community-R7B6QYOO.js} +6 -6
  33. package/dist/{te-dataops-XNMO7MBF.js → te-dataops-KPILYVHA.js} +5 -5
  34. package/dist/{te-engage-6C3HCFQR.js → te-engage-IAUM6ONX.js} +6 -6
  35. package/dist/{te-experiment-LVTRI3QK.js → te-experiment-TMLRA7B3.js} +6 -6
  36. package/dist/{te-kb-TUPGMVBY.js → te-kb-GKWPSLSY.js} +7 -7
  37. package/dist/{te-system-YM657FKO.js → te-system-CYWSK3UN.js} +3 -3
  38. package/dist/{te-team-G4VEJJNL.js → te-team-ISN52YNG.js} +6 -6
  39. package/dist/{things-22KQWC23.js → things-DDQ52Z3Q.js} +6 -6
  40. package/dist/{update-XX4ILU7X.js → update-CTLNTX35.js} +4 -4
  41. package/dist/{workspace-LYDAP647.js → workspace-2CKQX2XL.js} +5 -5
  42. package/package.json +1 -1
  43. package/skills/ae-kb/SKILL.md +5 -3
  44. package/skills/ae-kb/references/query-workflow.md +6 -5
  45. package/skills/ae-kb-discovery/SKILL.md +15 -6
@@ -1,17 +1,17 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  resolveMemoryApiBaseUrl
4
- } from "./chunk-QZUVLFNR.js";
5
- import "./chunk-N6XBLRB7.js";
6
- import "./chunk-RJHGDWSC.js";
4
+ } from "./chunk-AWVZTN2B.js";
5
+ import "./chunk-VDICGXCY.js";
6
+ import "./chunk-JSBLCLFE.js";
7
7
  import {
8
8
  CapabilityGatewayError,
9
9
  buildCapabilityGatewayUrl,
10
10
  callCapabilityApi
11
- } from "./chunk-3SDHJOCR.js";
11
+ } from "./chunk-HRUOV6EQ.js";
12
12
  import "./chunk-Y74WTIKJ.js";
13
- import "./chunk-H3K5UGYC.js";
14
- import "./chunk-JNVVJ273.js";
13
+ import "./chunk-SOSFRU3O.js";
14
+ import "./chunk-4PSTYEG5.js";
15
15
  import {
16
16
  PermissionError
17
17
  } from "./chunk-Z3Q2AEIN.js";
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  printError,
7
7
  printOutput
8
- } from "./chunk-QZLRHGVH.js";
8
+ } from "./chunk-YULUBP3R.js";
9
9
  import {
10
10
  buildVersionInstallPlan,
11
11
  exactVersion,
@@ -17,13 +17,13 @@ import {
17
17
  installVersion,
18
18
  recordVersionSyncResult,
19
19
  rememberBusinessConfig
20
- } from "./chunk-2UW3Y463.js";
20
+ } from "./chunk-CG773QXN.js";
21
21
  import {
22
22
  peekCliToken
23
- } from "./chunk-H3K5UGYC.js";
23
+ } from "./chunk-SOSFRU3O.js";
24
24
  import {
25
25
  getActiveHost
26
- } from "./chunk-JNVVJ273.js";
26
+ } from "./chunk-4PSTYEG5.js";
27
27
  import "./chunk-Z3Q2AEIN.js";
28
28
 
29
29
  // src/commands/update.ts
@@ -13,15 +13,15 @@ import {
13
13
  workspaceResourcePath,
14
14
  workspaceTargetFlags,
15
15
  workspaceTargetPath
16
- } from "./chunk-7JAVT5TK.js";
16
+ } from "./chunk-E25OSZLJ.js";
17
17
  import "./chunk-RK6GLDGI.js";
18
18
  import {
19
19
  getAgentBuffer
20
- } from "./chunk-N6XBLRB7.js";
21
- import "./chunk-RJHGDWSC.js";
20
+ } from "./chunk-VDICGXCY.js";
21
+ import "./chunk-JSBLCLFE.js";
22
22
  import "./chunk-Y74WTIKJ.js";
23
- import "./chunk-H3K5UGYC.js";
24
- import "./chunk-JNVVJ273.js";
23
+ import "./chunk-SOSFRU3O.js";
24
+ import "./chunk-4PSTYEG5.js";
25
25
  import {
26
26
  CliValidationError
27
27
  } from "./chunk-Z3Q2AEIN.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkingai/ae-cli",
3
- "version": "6.1.29",
3
+ "version": "6.1.30",
4
4
  "description": "CLI tool for ThinkingAI (AE) analytics platform",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-kb
3
- version: 1.0.8
3
+ version: 1.0.9
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
 
@@ -29,7 +29,7 @@ Read [Publication and read contexts](references/publication.md) for company appr
29
29
  - Read operations can run directly after required inputs are known. Write operations require explicit user intent. Only `high-risk-write` commands require the CLI confirmation prompt; use `--yes` after explicit authorization.
30
30
  - Prefer `--dry-run` before destructive or broad writes when the user has not already validated the target.
31
31
  - Do not invent knowledge base names, scopes, source IDs, source display names, or JSON payloads. Ask the user or query known context when values are missing.
32
- - When building a `--sources` ref (or `+read --source`), copy the exact `scope` and `name` from `+list` output — run `ae-cli kb +list` first when the scope of a named knowledge base is unknown.
32
+ - When building a `--sources` ref (or `+read --source`), copy the exact `scope` and display `name` from trusted active-source context or `+list` output. Run `ae-cli kb +list` when neither supplies the exact scope and name; never use a slug as the display name.
33
33
  - JSON flags must be valid JSON strings, usually wrapped in single quotes in shell commands.
34
34
  - Successful commands return JSON by default. Use `--format table` only when a table is easier for a human to scan. Envelope may include optional `_notice.host_compat`.
35
35
  - `--host <url>` overrides the active AE host. It is available on every command and may be placed after the subcommand, e.g. `ae-cli kb +<command> --host <url>`.
@@ -348,7 +348,9 @@ Use the deterministic retrieval primitives when an agent needs to explore knowle
348
348
 
349
349
  **Before running a real query, read [`references/query-workflow.md`](references/query-workflow.md)** — it selects the next useful retrieval step without crawling. It covers candidate indexing, copied-path grep, direct bounded reads of linked short pages, same-page read windows, linked-page re-grep when needed, optional outline-derived ranges, and coverage assessment. This section below is the per-command reference the workflow draws on.
350
350
 
351
- Start with `+list` or `+index` to discover accessible knowledge bases. Use `+index` when you also need navigation maps:
351
+ Start with the trusted active sources described by `ae-kb-discovery`. Explicit references go straight to scoped retrieval without `+list`; relevant preferred candidates go first, with `+list` only if unrelated or insufficient. When no trusted active sources exist, use `+list` to discover accessible knowledge bases. Use `+index` when you also need navigation maps:
352
+
353
+ When discovery is needed:
352
354
 
353
355
  ```bash
354
356
  ae-cli kb +list
@@ -11,11 +11,12 @@ Everything below is server-side LLM-free.
11
11
 
12
12
  ## The loop
13
13
 
14
- This picks up **after** `ae-kb-discovery` has listed accessible knowledge bases
15
- and ranked candidates. Start here with a chosen candidate; scope every `+index`
16
- / `+grep` / `+read` call to it with `--sources` / `--source`. If the candidate
17
- turns out not to cover the question, go back to `ae-kb-discovery` for the next
18
- candidate rather than searching everything blindly.
14
+ This picks up **after** `ae-kb-discovery` has chosen a candidate from trusted active sources or `+list`.
15
+ An explicit reference skips `+list` and stays within the referenced list, even when page evidence is insufficient.
16
+ Preferred candidates are searched only when relevant; clearly unrelated candidates or evidence gaps can lead to `+list`.
17
+ After `+list`, retrieve from at most three distinct newly discovered knowledge bases; count every new source in a multi-source `+ask` separately. Explicit references and preferred candidates do not consume that budget.
18
+ Start here with a chosen candidate; scope every `+index` / `+grep` / `+read` call to it with `--sources` / `--source`. If the candidate turns out not to cover the question, go back to `ae-kb-discovery` for the next allowed candidate rather than searching everything blindly.
19
+ When using `+ask` with explicit references or preferred candidates, always pass `--sources` containing only the relevant authorized sources from that active list; never omit it or include unrelated sources. For an explicit reference, insufficient evidence does not authorize expansion to another knowledge base.
19
20
 
20
21
  **Known-page fast path:** within the same host, identity, KB and published revision,
21
22
  reuse navigation and read evidence already obtained in this task. Copy exact
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  name: ae-kb-discovery
3
+ version: 1.0.0
3
4
  description: >
4
5
  Discover which AE (Agentic Engine) knowledge bases accessible to the current user are worth searching, and decide whether to search at all, through read-only operations. Use when the user explicitly asks to search knowledge bases, internal documentation, or company materials. Also use when a task requires internal facts or business context, or when ae-analysis sees an enabled KB auto-discovery company switch before choosing its query route. Use internal context to explain data analysis results, anomalies, or trends and form evidence-backed conclusions. Do not use if the user explicitly asks not to access knowledge bases. This skill covers discovery and candidate selection; run the actual `+index` / `+grep` / `+read` / `+ask` retrieval with the `ae-kb` skill.
5
6
  ---
@@ -32,9 +33,17 @@ Do not use this skill when:
32
33
 
33
34
  ## Discovery Workflow
34
35
 
35
- ### 1. Get the List of Accessible Knowledge Bases
36
+ ### 1. Use Trusted Active Sources Before Discovery
36
37
 
37
- First, get the lightweight list of knowledge bases accessible to the current user:
38
+ If the current turn's trusted system context supplies **explicitly referenced** knowledge bases with exact `scope` and display `name`, use only relevant references from that list. Hand them directly to `ae-kb` for scoped `+index` / `+grep` / `+read` retrieval; do not call `+list` or search an unreferenced knowledge base. If retrieved pages leave a gap, report it. A knowledge base named only in user text is not a trusted active reference.
39
+
40
+ If trusted context instead supplies **preferred candidates**, compare their names, descriptions and bindings with the question. Search only relevant candidates first. If all are clearly unrelated, or their retrieved pages leave a gap, call `+list` for other accessible sources. Metadata never counts as answer evidence. Preferred candidates are not a search limit and do not consume the newly discovered source budget below.
41
+
42
+ When no trusted active sources are supplied, discover accessible knowledge bases with `+list` as usual. Copy exact `scope` and display `name` from trusted context or `+list`; never derive a CLI `--sources` name from a slug alone.
43
+
44
+ ### 2. Get the List of Accessible Knowledge Bases When Needed
45
+
46
+ When discovery is needed, get the lightweight list of knowledge bases accessible to the current user:
38
47
 
39
48
  ```bash
40
49
  ae-cli kb +list
@@ -44,7 +53,7 @@ Use the exact `scope` and knowledge base name returned by the command, together
44
53
 
45
54
  If `+list` is unavailable or fails, do not guess which knowledge bases exist. If the user explicitly requested a knowledge base search, explain that discovery cannot currently be completed. Otherwise, return to the original task and reassess the capabilities currently available.
46
55
 
47
- ### 2. Rank Candidate Knowledge Bases
56
+ ### 3. Rank Candidate Knowledge Bases
48
57
 
49
58
  Rank candidates in this order:
50
59
 
@@ -54,9 +63,9 @@ Rank candidates in this order:
54
63
 
55
64
  Compare `targetId` with the corresponding current ID or code first. Use `targetName` only as a secondary signal when an ID or code is unavailable; do not replace a conflicting ID match with a name match. A candidate with no bindings or no current-context match remains eligible for semantic ranking. A binding to another project or space lowers implicit priority but does not exclude the candidate, and an explicit user choice still takes precedence.
56
65
 
57
- Select one preferred knowledge base by default. When several candidates are highly relevant, retain no more than three and try them one at a time in priority order. Do not read the indexes of all candidates in advance. A binding, name, description, tag, or language match only indicates that a knowledge base is worth searching; it does not prove a content match, grant access, or count as knowledge base evidence.
66
+ Select one candidate to search at a time. After `+list`, retrieve from at most three distinct newly discovered knowledge bases in this task; stop when page evidence is sufficient. Every new source used by `+index`, `+grep`, `+read` or `+ask` counts once, including each source in a multi-source `+ask`. Explicit references and preferred candidates do not count toward this budget. Do not read the indexes of all candidates in advance. A binding, name, description, tag, or language match only indicates that a knowledge base is worth searching; it does not prove a content match, grant access, or count as knowledge base evidence.
58
67
 
59
- ### 3. Hand Off to Retrieval
68
+ ### 4. Hand Off to Retrieval
60
69
 
61
70
  Once a preferred knowledge base is selected, hand off to the `ae-kb` skill and follow its `references/query-workflow.md` for the entire retrieval procedure — including when `+ask` is appropriate.
62
71
 
@@ -98,7 +107,7 @@ When using internal context to explain data analysis results, anomalies, or tren
98
107
  When knowledge base evidence provides only partial coverage, is entirely absent, or retrieval fails:
99
108
 
100
109
  1. Stop repeating searches against the same candidate knowledge base.
101
- 2. If ranked candidates remain, switch to the next candidate. Search no more than three knowledge bases in one task.
110
+ 2. If ranked candidates remain, switch to the next candidate. After `+list`, retrieve from no more than three distinct newly discovered knowledge bases; explicit references and preferred candidates do not consume that budget.
102
111
  3. When all candidates provide no coverage, return to the user's original request instead of remaining in the knowledge base retrieval subtask.
103
112
  4. Reassess the capabilities currently available and choose the next path that best serves the original task. Do not hard-code a fixed fallback.
104
113
  5. Retain verified background evidence when useful, but never attribute conclusions drawn from other sources to a knowledge base.