@thinkingai/ae-cli 6.1.25 → 6.1.27
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 +28 -9
- package/README.zh.md +25 -9
- package/bin/ae-cli.js +6 -1
- package/cli-installation-guide.md +91 -0
- package/dist/{auth-LHM7NQPR.js → auth-WA7YGGRT.js} +6 -8
- package/dist/automation-VAAQBM7Y.js +459 -0
- package/dist/{capability-SJI5KOCK.js → capability-GAAYJ3IQ.js} +6 -6
- package/dist/{chunk-KJDOTPYU.js → chunk-3YVEAZUN.js} +59 -26
- package/dist/{chunk-KS4DE3MX.js → chunk-5XJYLEVC.js} +4 -4
- package/dist/{chunk-BW7JUDEI.js → chunk-6VNIR4AP.js} +514 -213
- package/dist/{chunk-5XRQ3CZR.js → chunk-7KU2WNQE.js} +43 -8
- package/dist/{chunk-7WZACOAI.js → chunk-AP7YP2NX.js} +2 -2
- package/dist/{chunk-XKIW3QMF.js → chunk-AQJPNWZF.js} +3 -3
- package/dist/chunk-CI24BDR2.js +43 -0
- package/dist/{chunk-SO5LKIWP.js → chunk-CT7QDJS6.js} +2 -2
- package/dist/{chunk-DU72X2IO.js → chunk-GHXZK54S.js} +22 -10
- package/dist/{chunk-2FJM4HRV.js → chunk-MWIA43UJ.js} +3 -3
- package/dist/{chunk-N4BLPJC7.js → chunk-OP44TT4H.js} +1 -1
- package/dist/chunk-Q5US7JC5.js +133 -0
- package/dist/chunk-RK6GLDGI.js +27 -0
- package/dist/chunk-RPBOAQQQ.js +56 -0
- package/dist/{chunk-GK7WDY7E.js → chunk-S6M42KND.js} +1 -1
- package/dist/{chunk-QYXDJOLA.js → chunk-VZZNLV3I.js} +19 -11
- package/dist/{chunk-YVGXGTD6.js → chunk-WNGFSIOB.js} +7 -1
- package/dist/{chunk-IG3DYEIR.js → chunk-ZL7SGNIA.js} +5 -3
- package/dist/{community-report-client-6VJDDMJJ.js → community-report-client-PEERQCX2.js} +1 -1
- package/dist/{config-XQWOPDHN.js → config-JOD5DOPE.js} +4 -4
- package/dist/context-NGVFPCBK.js +136 -0
- package/dist/{data-integration-XBTCGXQT.js → data-integration-BCLQFTGU.js} +6 -6
- package/dist/index.js +123 -46
- package/dist/{local-data-upload-client-3P7NIVQ4.js → local-data-upload-client-TWMHFLUA.js} +1 -1
- package/dist/memory-CQKH2JAV.js +580 -0
- package/dist/{metadata-JRYKNUS5.js → metadata-NR3PHR23.js} +7 -7
- package/dist/{model-ZS7HVGKN.js → model-VX5M2CJ6.js} +9 -5
- package/dist/{personal-semantic-preference-IDE2GE5T.js → personal-semantic-preference-2RAI36P3.js} +117 -11
- package/dist/{project-semantic-36KOCYN7.js → project-semantic-3BUGP3ZM.js} +6 -6
- package/dist/{sync-EQLSTUS7.js → sync-RZIAV37C.js} +12 -8
- package/dist/{te-agent-Z3HCTKR7.js → te-agent-AORRE2FM.js} +90 -454
- package/dist/{te-analysis-5ZZ6YHVH.js → te-analysis-GP7DSQ7Q.js} +297 -20
- package/dist/{te-community-Z7JACGF3.js → te-community-42M7ICDO.js} +3 -3
- package/dist/{te-dataops-F7GQOIS6.js → te-dataops-BNKNZ4F2.js} +5 -5
- package/dist/{te-engage-RNRMYDO3.js → te-engage-2CO6LRCX.js} +6 -6
- package/dist/{te-experiment-BTAC2UNK.js → te-experiment-652CLXMU.js} +6 -6
- package/dist/{te-kb-QJLJEX5K.js → te-kb-ULATOTQ3.js} +494 -214
- package/dist/{te-system-IXC43QHZ.js → te-system-UGHVKBVV.js} +10 -9
- package/dist/{te-team-BIZIKIHZ.js → te-team-YA6SNOJ3.js} +6 -6
- package/dist/things-DTCOQIQB.js +1091 -0
- package/dist/{update-W2SGQNKT.js → update-ESNYKUVR.js} +59 -51
- package/dist/workspace-JEOHKFPX.js +554 -0
- package/package.json +21 -9
- package/skills/ae-agent/SKILL.md +91 -139
- package/skills/ae-agent/references/add-model.md +1 -1
- package/skills/ae-agent/references/create-agent.md +1 -1
- package/skills/ae-agent/references/find-archived-conversations.md +12 -5
- package/skills/ae-agent/references/get-agent.md +1 -1
- package/skills/ae-agent/references/list-agents.md +2 -2
- package/skills/ae-agent/references/list-models.md +2 -2
- package/skills/ae-agent/references/restore-conversation.md +3 -1
- package/skills/ae-analysis/SKILL.md +15 -6
- package/skills/ae-analysis/references/ai_models/funnel.md +5 -3
- package/skills/ae-analysis/references/ai_models.md +27 -0
- package/skills/ae-analysis/references/command_index.md +12 -4
- package/skills/ae-analysis/references/dashboard_move.md +21 -0
- package/skills/ae-analysis/references/dashboard_report_add.md +2 -0
- package/skills/ae-analysis/references/dashboard_report_get.md +19 -0
- package/skills/ae-analysis/references/dashboard_report_update.md +27 -0
- package/skills/ae-analysis/references/dashboard_update.md +1 -1
- package/skills/ae-analysis/references/event_report_presentation.md +76 -0
- package/skills/ae-analysis/references/feedback_submit.md +37 -0
- package/skills/ae-analysis/references/metadata_resolution.md +15 -0
- package/skills/ae-analysis/references/personal_semantic_preference_review.md +9 -0
- package/skills/ae-analysis/references/personal_semantic_preference_review_list.md +7 -0
- package/skills/ae-analysis/references/personal_semantic_preference_submit.md +7 -0
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +68 -27
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +40 -1
- package/skills/ae-analysis/references/report_create.md +13 -3
- package/skills/ae-analysis/references/report_get.md +5 -1
- package/skills/ae-analysis/references/report_update.md +15 -4
- package/skills/ae-analysis/references/system_query_monitor_overview.md +2 -0
- package/skills/ae-analysis/references/system_query_task_cancel.md +2 -0
- package/skills/ae-analysis/references/system_query_task_export.md +6 -2
- package/skills/ae-analysis/references/system_query_task_get.md +2 -0
- package/skills/ae-analysis/references/system_query_task_list.md +7 -3
- package/skills/ae-analysis/references/system_query_task_options.md +2 -2
- package/skills/ae-analysis/references/system_query_task_realtime_list.md +15 -0
- package/skills/ae-analysis/references/user_tag_models.md +2 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-empty-skeleton.mjs +105 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +337 -22
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +21 -8
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +24 -11
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-schema.md +66 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/generate-build-ir.mjs +1 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/package-wiki-source-zip.mjs +109 -40
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/plan-kb-source-sync.mjs +1 -1
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/prepare-compile-schema.mjs +64 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/refresh-state-parts.mjs +91 -0
- package/skills/ae-automation/SKILL.md +16 -0
- package/skills/ae-automation/references/cli.md +53 -0
- package/skills/ae-automation/references/command_index.md +17 -0
- package/skills/ae-capability/SKILL.md +15 -6
- package/skills/ae-current-context/SKILL.md +3 -2
- package/skills/ae-kb/SKILL.md +62 -12
- package/skills/ae-kb/references/analysis-workflow.md +73 -36
- package/skills/ae-kb/references/query-workflow.md +67 -33
- package/skills/ae-kb/references/schema-import.md +5 -3
- package/skills/ae-kb/references/source-mutations.md +6 -4
- package/skills/ae-kb/references/text-sources.md +53 -0
- package/skills/ae-kb-discovery/SKILL.md +1 -1
- package/skills/ae-team/SKILL.md +23 -17
- package/skills/ae-things/SKILL.md +85 -0
- package/skills/ae-things/references/cli.md +103 -0
- package/skills/ae-things-progress/SKILL.md +43 -0
- package/skills/ae-things-review/SKILL.md +42 -0
- package/skills/ae-workspace/SKILL.md +43 -0
- package/skills/ae-workspace/references/commands.md +51 -0
- package/dist/chunk-E2JKXMVO.js +0 -29
- package/dist/context-M3HDGEIR.js +0 -46
- package/dist/memory-6APEB2JB.js +0 -892
- package/skills/ae-agent/references/create-automation.md +0 -125
- package/skills/ae-agent/references/list-automations.md +0 -56
- package/skills/ae-agent/references/update-automation.md +0 -107
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ae-things-review
|
|
3
|
+
description: "工作空间事项审查:基于 ae-cli things 的标题、描述、状态与完整时间线,诊断范围漂移、未记录有效更新、拆解和责任、完成证据;默认只读。"
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# 事项推进审查
|
|
7
|
+
|
|
8
|
+
沿用 aha-links 的证据化审查方法,使用 TE 空间权限和三态及独立归档。先读 [事项操作](../ae-things/SKILL.md) 和 [采集契约](../ae-things/references/cli.md)。不猜事项、空间或负责人 ID。
|
|
9
|
+
|
|
10
|
+
涉及本轮绑定事项时,先遵循 [执行快照与实时上下文](../ae-things/references/cli.md#执行快照与实时上下文) 读取本次执行快照,再按以下流程采集最新审查或周期事实;两种来源分开表述。无绑定时仅使用用户明确指定的范围。
|
|
11
|
+
|
|
12
|
+
## 读取事实
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
ae-cli things +detail --agent-space-id <space-id> --id <thing-id> --format json
|
|
16
|
+
ae-cli things +digest --agent-space-id <space-id> --format json
|
|
17
|
+
ae-cli things +digest --agent-space-id <space-id> --thing-ids <id-a>,<id-b> --format json
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
范围只支持当前空间、负责人或显式事项集合。不要迁入关注清单和飞书群范围。大范围先筛查,再每批深审最多 20 项,披露筛查数和深审数。
|
|
21
|
+
|
|
22
|
+
必须核对 `fetchedCount`、`truncated`、`consistency`、`collectedAt`。缺字段视为契约不兼容。截断或不可读取时只对已覆盖事实下结论,不能把首 100 项称为全量。`changed_during_collection` 时重读受影响事项;`non_transactional` 仍不是某时刻的严格快照。未读附件、私有历史和缺失初始目标均明确披露。
|
|
23
|
+
|
|
24
|
+
## 审查顺序
|
|
25
|
+
|
|
26
|
+
1. 目标与验收:是否明确、合理、可验证;用最早 `created` 记录对照当前目标。无法还原时只审当前目标。
|
|
27
|
+
2. 范围漂移:目标变更是否有明确记录;不把后来结论当作原目标。
|
|
28
|
+
3. 有效更新:结果、变化、阻塞或明确下一步才是进展。进展记录是待核查候选;占位、重复状态、备注和仅改标题不重置提醒节奏;采集的计数只是候选,模型仍需核查正文是否有效。
|
|
29
|
+
4. 责任:负责人和协作者是否可用,描述与进展中是否明确下一步。
|
|
30
|
+
5. 完成证据:产物是否可访问、是否符合验收;未读文件不能声称通过验收。
|
|
31
|
+
|
|
32
|
+
优先采用明确约定的节奏。open 表示未完成,不区分尚未开始与进行中;没有约定时只报告最后记录时间,不臆造停滞。paused 检查记录中的暂停原因和恢复条件。只写“未记录更新”,不推断“没有推进”。
|
|
33
|
+
|
|
34
|
+
引用时刻必须注明时区;需要按 Asia/Shanghai 判断自然日时先正确转换 ISO 的 Z/偏移量,不能只删除后缀。例如 `2026-09-10T04:50:00Z` 对应上海时间 12:50。无法转换则保留 UTC 原值并披露限制。
|
|
35
|
+
|
|
36
|
+
## 输出与边界
|
|
37
|
+
|
|
38
|
+
给出健康/需关注/高风险/信息不足,附目标基线、证据(事项链接和日期)、影响、置信度及最多三条优先动作。空间审查先共性问题,再逐项摘要;不评价个人绩效,不制造总分。
|
|
39
|
+
|
|
40
|
+
默认只诊断,不改状态或负责人。用户明确要求落实的具体修改重新读取版本后执行,不再重复索要相同授权;推断变化先给待确认建议。不要自动发消息或创建定时任务。
|
|
41
|
+
|
|
42
|
+
文件证据:+detail/+digest 自动翻页收集资产关联,availability=missing 或 verification_failed 的文件不算可用交付;即使 available,也只代表引用可用,不代表已读取正文或验收通过。披露未读文件及非事务采集边界。私有会话来源只在当前用户有权时读取,报告引用共享事项事实,不能把私有历史自动公开。
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ae-workspace
|
|
3
|
+
version: 1.1.0
|
|
4
|
+
description: "Manage AE AgentSpaces with ae-cli: resolve current workspace context, list or update workspace profiles, transfer files, configure Agent/MCP/Skill/knowledge-base capabilities, manage shared-space members, inspect activities, or scope automations and archived conversations. Use for the new Workspace product; legacy sandbox Workspace sync/model behavior is separate."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# ae-workspace
|
|
8
|
+
|
|
9
|
+
Use `ae-cli workspace` for AgentSpace operations. Here, `workspace_id` and `--workspace-id` always mean `AgentSpace.id`; they never mean the legacy sandbox `Workspace.id` or a filesystem directory name.
|
|
10
|
+
|
|
11
|
+
Before composing a workspace command, read [references/commands.md](references/commands.md). It contains the command matrix, mutation prerequisites, and file-transfer rules.
|
|
12
|
+
|
|
13
|
+
## Targeting
|
|
14
|
+
|
|
15
|
+
1. Prefer an explicit `--workspace-id` supplied by the user or returned by `workspace list`.
|
|
16
|
+
2. Inside a run, the CLI may use `TE_AGENT_CURRENT_AGENT_SPACE_ID`, derive the ID from the canonical `/spaces/actived/<id>/.conversations/...` runtime directory, or ask the server to resolve `TE_AGENT_CONVERSATION_ID`.
|
|
17
|
+
3. When both workspace and conversation are available, send both so the server can reject a scope mismatch.
|
|
18
|
+
4. Outside a run, if the target is unknown, run `workspace list` and select from real IDs. Never fall back to an account default.
|
|
19
|
+
|
|
20
|
+
Use `workspace current` to verify the resolved ID, space type, role, and capabilities before a multi-step mutation.
|
|
21
|
+
|
|
22
|
+
## Safety
|
|
23
|
+
|
|
24
|
+
- Read the latest record or revision before mutations that require `--version`.
|
|
25
|
+
- Treat capability and membership changes as `high-risk-write`; preview them with `--dry-run` and obtain explicit confirmation before passing `--yes`.
|
|
26
|
+
- Treat file and workspace deletion as `high-risk-write`.
|
|
27
|
+
- Shared AgentSpace provisioning is administrator-owned. `workspace create` creates only a personal AgentSpace.
|
|
28
|
+
- `ae-cli sync` and `ae-cli model` manage the legacy sandbox Workspace. In an AgentSpace runtime, use workspace capability commands instead.
|
|
29
|
+
|
|
30
|
+
## Related domains
|
|
31
|
+
|
|
32
|
+
- Memory: `ae-cli memory ...` uses the same strict AgentSpace target.
|
|
33
|
+
- Automations: use `ae-cli automation ... --agent-space-id ...` and follow the `ae-automation` Skill.
|
|
34
|
+
- Archived conversations: `ae-cli agent +find-archived-conversations|+restore-conversation --workspace-id ...`.
|
|
35
|
+
|
|
36
|
+
## Transition record
|
|
37
|
+
|
|
38
|
+
Transition status: transitional
|
|
39
|
+
Owning module: te-claude AgentSpace
|
|
40
|
+
Current transport: CLI-token REST under `/api/cli/workspace/v1`
|
|
41
|
+
Gateway target: TBD
|
|
42
|
+
Review after: 2026-12-01
|
|
43
|
+
Exit condition: equivalent stable Gateway capabilities exist; keep only commands that still add orchestration, file handling, safety, or stable typed output.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Workspace command reference
|
|
2
|
+
|
|
3
|
+
## Context and profile
|
|
4
|
+
|
|
5
|
+
| Command | Risk | Required input | Result boundary |
|
|
6
|
+
|---|---:|---|---|
|
|
7
|
+
| `list` | read | none | Accessible AgentSpaces and stable IDs. |
|
|
8
|
+
| `get` | read | workspace or conversation target | Resolved profile and access. |
|
|
9
|
+
| `current` | read | workspace or conversation target | Server-verified target, role, and capabilities. |
|
|
10
|
+
| `create` | write | `--name`; optional description | Creates only a personal AgentSpace. |
|
|
11
|
+
| `update` | write | target, `--name` | Updates profile only. |
|
|
12
|
+
| `delete` | high-risk-write | target | Soft-deletes an AgentSpace. |
|
|
13
|
+
| `recover` | write | target | Requests runtime recovery for an active but unavailable AgentSpace; it does not undo archival or deletion. |
|
|
14
|
+
| `activity list` | read | target | Recent workspace activity, up to 20 items. |
|
|
15
|
+
|
|
16
|
+
## Files
|
|
17
|
+
|
|
18
|
+
| Command | Risk | Required input |
|
|
19
|
+
|---|---:|---|
|
|
20
|
+
| `asset list` | read | target; optional folder `--path` |
|
|
21
|
+
| `asset read` | read | target, text file `--path` |
|
|
22
|
+
| `asset upload` | write | target, local `--file`; optional destination `--path` |
|
|
23
|
+
| `asset download` | read | target, remote `--path`, local `--output` |
|
|
24
|
+
| `asset mkdir` | write | target, `--name`; optional parent `--path` |
|
|
25
|
+
| `asset move` | write | target, `--path`, `--destination` |
|
|
26
|
+
| `asset delete` | high-risk-write | target, `--path` |
|
|
27
|
+
|
|
28
|
+
Uploads are capped at 50 MB. Downloads preserve raw bytes and refuse to replace an existing local file unless `--overwrite true` is explicit.
|
|
29
|
+
|
|
30
|
+
## Capabilities
|
|
31
|
+
|
|
32
|
+
`capability list` returns the current revision and available selections. `capability set` replaces exactly one type: `agent`, `mcp`, `skill`, or `knowledge_base`.
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
ae-cli workspace capability list --workspace-id <agent-space-id>
|
|
36
|
+
ae-cli workspace capability set --workspace-id <agent-space-id> --version <revision> --capability-type skill --selected-ids '["<skill-id>"]'
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
`--selected-ids '[]'` clears that type. When changing Agent capabilities, pass `--default-agent-id` only when the selected default is valid in the new set. A version conflict means the settings changed; list again and reassess.
|
|
40
|
+
|
|
41
|
+
## Shared-space members
|
|
42
|
+
|
|
43
|
+
| Command | Risk | Required input |
|
|
44
|
+
|---|---:|---|
|
|
45
|
+
| `member list` | read | target; optional `--candidate-query` |
|
|
46
|
+
| `member add` | high-risk-write | target, `--user-id`, `--role ADMIN|MEMBER` |
|
|
47
|
+
| `member update` | high-risk-write | target, `--user-id`, `--role ADMIN|MEMBER` |
|
|
48
|
+
| `member transfer-owner` | high-risk-write | target, new owner `--user-id` |
|
|
49
|
+
| `member remove` | high-risk-write | target, `--user-id` |
|
|
50
|
+
|
|
51
|
+
Discover users through `member list --candidate-query` and use returned IDs. Ownership transfer is a distinct command so it cannot be confused with an ordinary role update.
|
package/dist/chunk-E2JKXMVO.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
-
|
|
3
|
-
// src/core/package-info.ts
|
|
4
|
-
import fs from "fs";
|
|
5
|
-
import path from "path";
|
|
6
|
-
import { fileURLToPath } from "url";
|
|
7
|
-
function getLocalCliPackageInfo() {
|
|
8
|
-
let dir = path.dirname(fileURLToPath(import.meta.url));
|
|
9
|
-
for (let i = 0; i < 8; i += 1) {
|
|
10
|
-
const candidate = path.join(dir, "package.json");
|
|
11
|
-
try {
|
|
12
|
-
if (fs.existsSync(candidate)) {
|
|
13
|
-
const pkg = JSON.parse(fs.readFileSync(candidate, "utf8"));
|
|
14
|
-
if (pkg.name && pkg.version && String(pkg.name).includes("ae-cli")) {
|
|
15
|
-
return { name: pkg.name, version: pkg.version };
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
} catch {
|
|
19
|
-
}
|
|
20
|
-
const parent = path.dirname(dir);
|
|
21
|
-
if (parent === dir) break;
|
|
22
|
-
dir = parent;
|
|
23
|
-
}
|
|
24
|
-
return { name: "@tant/ae-cli", version: "0.0.0" };
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
getLocalCliPackageInfo
|
|
29
|
-
};
|
package/dist/context-M3HDGEIR.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
getFromMainApp
|
|
4
|
-
} from "./chunk-KJDOTPYU.js";
|
|
5
|
-
import "./chunk-Y74WTIKJ.js";
|
|
6
|
-
import "./chunk-DU72X2IO.js";
|
|
7
|
-
import "./chunk-IG3DYEIR.js";
|
|
8
|
-
import {
|
|
9
|
-
CliValidationError
|
|
10
|
-
} from "./chunk-YVGXGTD6.js";
|
|
11
|
-
|
|
12
|
-
// src/commands/context/current.ts
|
|
13
|
-
var CURRENT_PAGE_CONTEXT_PATH = "/api/sandbox/agent/context/current";
|
|
14
|
-
function createCurrentPageContextCommand(read = getFromMainApp, readConversationId = () => process.env.TE_AGENT_CONVERSATION_ID) {
|
|
15
|
-
return {
|
|
16
|
-
service: "context",
|
|
17
|
-
command: "+current",
|
|
18
|
-
description: "Read the current page context bound to the active Agent Run",
|
|
19
|
-
flags: [],
|
|
20
|
-
risk: "read",
|
|
21
|
-
usesAeHost: false,
|
|
22
|
-
execute: async () => {
|
|
23
|
-
const conversationId = readConversationId()?.trim();
|
|
24
|
-
if (!conversationId) {
|
|
25
|
-
throw new CliValidationError(
|
|
26
|
-
"Current page context is available only inside an active Agent Run.",
|
|
27
|
-
{
|
|
28
|
-
code: "CURRENT_PAGE_CONTEXT_RUN_REQUIRED",
|
|
29
|
-
hint: "Open AE Agent from a supported product page and ask about the current page."
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
const query = new URLSearchParams({ conversationId });
|
|
34
|
-
return read(`${CURRENT_PAGE_CONTEXT_PATH}?${query.toString()}`);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
var currentPageContext = createCurrentPageContextCommand();
|
|
39
|
-
|
|
40
|
-
// src/commands/context/index.ts
|
|
41
|
-
var commands = [currentPageContext];
|
|
42
|
-
var context_default = commands;
|
|
43
|
-
export {
|
|
44
|
-
currentPageContext,
|
|
45
|
-
context_default as default
|
|
46
|
-
};
|