@erdoai/cli 0.134.0 → 0.135.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 +14 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1668,6 +1668,9 @@ var ErdoClient = class {
|
|
|
1668
1668
|
`/v1/event-pipelines/${encodeURIComponent(slug)}/executions${qs ? `?${qs}` : ""}`
|
|
1669
1669
|
);
|
|
1670
1670
|
}
|
|
1671
|
+
markEventPipelineExecutionsHandled(slug, body) {
|
|
1672
|
+
return this.request("POST", `/v1/event-pipelines/${encodeURIComponent(slug)}/executions/handled`, body);
|
|
1673
|
+
}
|
|
1671
1674
|
// --- knowledge ---
|
|
1672
1675
|
getKnowledge(id) {
|
|
1673
1676
|
return this.request("GET", `/v1/knowledge/${encodeURIComponent(id)}`);
|
|
@@ -8666,6 +8669,17 @@ pipelinesCmd.command("executions <slug>").description("Show an event pipeline's
|
|
|
8666
8669
|
fail(e);
|
|
8667
8670
|
}
|
|
8668
8671
|
});
|
|
8672
|
+
pipelinesCmd.command("mark-handled <slug>").description("Record that failed executions have been dealt with").requiredOption("--note <text>", "explanation, up to 500 characters").option("--through <iso>", "inclusive RFC3339 receipt-time cutoff (default: now)").option("--execution <id>", "execution UUID; repeat to select specific executions instead of a cutoff", (id, ids) => [...ids, id], []).action(async (slug, opts) => {
|
|
8673
|
+
try {
|
|
8674
|
+
print(await new ErdoClient().markEventPipelineExecutionsHandled(slug, {
|
|
8675
|
+
note: opts.note,
|
|
8676
|
+
through: opts.through,
|
|
8677
|
+
execution_ids: opts.execution.length ? opts.execution : void 0
|
|
8678
|
+
}));
|
|
8679
|
+
} catch (e) {
|
|
8680
|
+
fail(e);
|
|
8681
|
+
}
|
|
8682
|
+
});
|
|
8669
8683
|
var knowledgeCmd = program.command("knowledge").description("Knowledge objects");
|
|
8670
8684
|
knowledgeCmd.command("create").description("Create a Knowledge object").requiredOption("--title <title>", "title").requiredOption("--body <body>", "body text, or @file").option("--description <description>", "short description").option("--type <type>", "snippet or skill", "snippet").option("--category <category>", "category").option("--tags <tags>", "comma-separated tags").option("--agent <name>", "name of the agent making the write").action(async (opts) => {
|
|
8671
8685
|
try {
|