@erdoai/cli 0.193.0 → 0.193.1
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 +4 -0
- package/dist/index.js +3 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -114,6 +114,7 @@ erdo agent ask "what was revenue last week?" --datasets sales
|
|
|
114
114
|
erdo threads create --name "landing build" # -> thread id
|
|
115
115
|
erdo agent send <thread> "Build a landing page for ACME ..." --agent erdo.artifact-builder
|
|
116
116
|
erdo agent send <thread> "What should I do next?" --context "Current screen: checkout experiment"
|
|
117
|
+
erdo agent send <thread> "Summarize the existing data" --read-only
|
|
117
118
|
|
|
118
119
|
erdo pages deploy --title "ACME" --html @page.html --js @page.js --public
|
|
119
120
|
erdo pages list --type html_page
|
|
@@ -122,6 +123,9 @@ erdo pages get <artifact-id>
|
|
|
122
123
|
|
|
123
124
|
`--html/--js/--css` accept `@path` to read a file. Sending a message to a thread
|
|
124
125
|
runs an agent — that's also how the artifact-builder produces a page from a brief.
|
|
126
|
+
Use `--read-only` to limit the default `erdo.data-question-answerer` turn to
|
|
127
|
+
read-only agent tools. Other agents are rejected, and the flag is omitted by
|
|
128
|
+
default so existing sends retain their behavior.
|
|
125
129
|
|
|
126
130
|
```bash
|
|
127
131
|
erdo runs list --agent erdo.artifact-builder --status failed # inspect agent runs
|
package/dist/index.js
CHANGED
|
@@ -4943,7 +4943,7 @@ agentCmd.command("send <threadId> <message>").description("Send a message to a t
|
|
|
4943
4943
|
).option(
|
|
4944
4944
|
"--sync",
|
|
4945
4945
|
"hold one long HTTP request open until the run finishes, instead of polling. Faster for quick questions; a proxy will time it out on any run over ~100s while the run continues server-side"
|
|
4946
|
-
).action(async (threadId, message, opts) => {
|
|
4946
|
+
).option("--read-only", "restrict the default data-question-answerer turn to read-only tools").action(async (threadId, message, opts) => {
|
|
4947
4947
|
try {
|
|
4948
4948
|
const client = new ErdoClient();
|
|
4949
4949
|
const baselineRunID = opts.sync ? void 0 : await client.latestRunID(threadId);
|
|
@@ -4951,7 +4951,8 @@ agentCmd.command("send <threadId> <message>").description("Send a message to a t
|
|
|
4951
4951
|
message: readMaybeFile(message) ?? "",
|
|
4952
4952
|
context: readMaybeFile(opts.context),
|
|
4953
4953
|
agent_key: opts.agent,
|
|
4954
|
-
async: !opts.sync
|
|
4954
|
+
async: !opts.sync,
|
|
4955
|
+
read_only: opts.readOnly
|
|
4955
4956
|
});
|
|
4956
4957
|
if (res.error) throw new Error(res.error);
|
|
4957
4958
|
if (opts.sync) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@erdoai/cli",
|
|
3
|
-
"version": "0.193.
|
|
4
|
-
"description": "Erdo CLI
|
|
3
|
+
"version": "0.193.1",
|
|
4
|
+
"description": "Erdo CLI — drive datasets, pages, and evals from the terminal or CI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"erdo": "dist/index.js"
|