Rename the internal tool registry to capability registry
This commit is contained in:
1 parent
f8b2b2ecde
commit
bc9256a9d9
41 files changed
+470
-452
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import type { CorpConfig } from "../../core/config/types.js";
|
||||
import type { createSealClient } from "../../core/http/factory.js";
|
||||
import { exportInsightReportToExcel } from "../../domains/seal/insight-export.js";
|
||||
import { runTool } from "../helpers.js";
|
||||
import { runCapability } from "../helpers.js";
|
||||
import { booleanOption, numberOption, stringOption } from "../parser.js";
|
||||
import { outputOptions, printJson } from "../printer.js";
|
||||
import type { ParsedArgs } from "../types.js";
|
||||
@@ -14,7 +14,7 @@ export async function handleAnalyticsCommand(
|
||||
args: ParsedArgs
|
||||
) {
|
||||
if (action === "insight" || action === "insight-stats" || action === "stats") {
|
||||
await runTool(
|
||||
await runCapability(
|
||||
"seal_insight_stats_get",
|
||||
client,
|
||||
corp,
|
||||
@@ -33,7 +33,7 @@ export async function handleAnalyticsCommand(
|
||||
if (!tagId) {
|
||||
throw new Error("Usage: seal-use analytics risks <tagId> [--start-date <ISO>] [--end-date <ISO>] [--corp <corpId>]");
|
||||
}
|
||||
await runTool(
|
||||
await runCapability(
|
||||
"seal_insight_risks_by_tag_get",
|
||||
client,
|
||||
corp,
|
||||
@@ -48,7 +48,7 @@ export async function handleAnalyticsCommand(
|
||||
}
|
||||
|
||||
if (action === "performance" || action === "perf") {
|
||||
await runTool(
|
||||
await runCapability(
|
||||
"seal_insight_performance_get",
|
||||
client,
|
||||
corp,
|
||||
@@ -66,7 +66,7 @@ export async function handleAnalyticsCommand(
|
||||
if (!recordId) {
|
||||
throw new Error("Usage: seal-use analytics analyze <recordId> [--corp <corpId>]");
|
||||
}
|
||||
await runTool(
|
||||
await runCapability(
|
||||
"seal_insight_record_analyze",
|
||||
client,
|
||||
corp,
|
||||
|
||||
Reference in new issue
Block a user