@erdoai/cli 0.185.0 → 0.187.0
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/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4813,7 +4813,7 @@ caseCmd.command("rm <slug> <caseName>").description("Archive a case from a suite
|
|
|
4813
4813
|
}
|
|
4814
4814
|
});
|
|
4815
4815
|
var agentCmd = program.command("agent").description("Run agents");
|
|
4816
|
-
agentCmd.command("ask <question>").description("Ask the data-question agent (one-shot); question accepts @path to a UTF-8 file").option("-d, --datasets <csv>", "dataset slugs to scope to").option(
|
|
4816
|
+
agentCmd.command("ask <question>").description("Ask the data-question agent (one-shot); question accepts @path to a UTF-8 file").option("-d, --datasets <csv>", "dataset slugs to scope to").option("--allow-writes", "let this question create datasets, write declarations, schedule syncs, and persist other changes. A question is read-only without it").option(
|
|
4817
4817
|
"--sync",
|
|
4818
4818
|
"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, losing the thread id while the run continues server-side"
|
|
4819
4819
|
).action(async (question, opts) => {
|
|
@@ -4822,6 +4822,7 @@ agentCmd.command("ask <question>").description("Ask the data-question agent (one
|
|
|
4822
4822
|
const res = await client.ask({
|
|
4823
4823
|
question: readMaybeFile(question) ?? "",
|
|
4824
4824
|
dataset_slugs: opts.datasets ? opts.datasets.split(",").map((s) => s.trim()) : void 0,
|
|
4825
|
+
allow_writes: opts.allowWrites ? true : void 0,
|
|
4825
4826
|
async: !opts.sync
|
|
4826
4827
|
});
|
|
4827
4828
|
if (opts.sync) {
|
|
@@ -6650,7 +6651,7 @@ domainsCmd.command("manager-default <domain>").description(
|
|
|
6650
6651
|
fail(e);
|
|
6651
6652
|
}
|
|
6652
6653
|
});
|
|
6653
|
-
domainsCmd.command("home <domain> [artifactId]").description("Set the domain root's public home page, or clear
|
|
6654
|
+
domainsCmd.command("home <domain> [artifactId]").description("Set the domain root's public home page (also allows search engines to index it), or clear the root with --unset").option("--unset", "clear the home page (the domain root will return 404)").action(async (domain, artifactId, opts) => {
|
|
6654
6655
|
try {
|
|
6655
6656
|
if (opts.unset ? artifactId !== void 0 : !artifactId) {
|
|
6656
6657
|
throw new Error("Provide a page artifact ID, or use --unset without an ID");
|