@lightdash-tools/cli 0.5.0 → 0.7.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.
Files changed (109) hide show
  1. package/README.md +6 -2
  2. package/dist/commands/agentops/apply.d.ts +5 -0
  3. package/dist/commands/agentops/apply.js +53 -0
  4. package/dist/commands/agentops/bundle-schema.d.ts +5 -0
  5. package/dist/commands/agentops/bundle-schema.js +16 -0
  6. package/dist/commands/agentops/drift.d.ts +5 -0
  7. package/dist/commands/agentops/drift.js +46 -0
  8. package/dist/commands/agentops/evaluate-gate.d.ts +5 -0
  9. package/dist/commands/agentops/evaluate-gate.js +89 -0
  10. package/dist/commands/agentops/gate-schema.d.ts +5 -0
  11. package/dist/commands/agentops/gate-schema.js +16 -0
  12. package/dist/commands/agentops/plan.d.ts +5 -0
  13. package/dist/commands/agentops/plan.js +42 -0
  14. package/dist/commands/agentops/state.d.ts +4 -0
  15. package/dist/commands/agentops/state.js +8 -0
  16. package/dist/commands/agentops.d.ts +8 -0
  17. package/dist/commands/agentops.js +26 -0
  18. package/dist/commands/agentops.test.d.ts +1 -0
  19. package/dist/commands/agentops.test.js +400 -0
  20. package/dist/commands/agents-crud.d.ts +8 -0
  21. package/dist/commands/agents-crud.js +144 -0
  22. package/dist/commands/agents-discovery.d.ts +8 -0
  23. package/dist/commands/agents-discovery.js +139 -0
  24. package/dist/commands/agents-discovery.test.d.ts +1 -0
  25. package/dist/commands/agents-discovery.test.js +13 -0
  26. package/dist/commands/agents-evals.d.ts +8 -0
  27. package/dist/commands/agents-evals.js +246 -0
  28. package/dist/commands/agents-threads.d.ts +8 -0
  29. package/dist/commands/agents-threads.js +83 -0
  30. package/dist/commands/agents.js +8 -360
  31. package/dist/commands/ai-agents.js +52 -70
  32. package/dist/commands/charts.js +35 -46
  33. package/dist/commands/content.js +3 -12
  34. package/dist/commands/dashboards.js +3 -12
  35. package/dist/commands/explores.js +12 -21
  36. package/dist/commands/groups.js +44 -63
  37. package/dist/commands/metrics.js +6 -15
  38. package/dist/commands/organization-roles.js +28 -39
  39. package/dist/commands/organization.js +3 -12
  40. package/dist/commands/project-access.js +9 -18
  41. package/dist/commands/project-role-assignments.js +15 -24
  42. package/dist/commands/projects.js +33 -26
  43. package/dist/commands/query.js +30 -41
  44. package/dist/commands/schedulers.js +6 -15
  45. package/dist/commands/schema.js +33 -10
  46. package/dist/commands/schema.test.js +58 -1
  47. package/dist/commands/space-access.js +12 -21
  48. package/dist/commands/spaces.js +6 -15
  49. package/dist/commands/tags.js +6 -15
  50. package/dist/commands/users.js +23 -41
  51. package/dist/index.js +18 -16
  52. package/dist/index.test.js +9 -9
  53. package/dist/utils/cli-params.d.ts +4 -0
  54. package/dist/utils/cli-params.js +15 -0
  55. package/dist/utils/cli-params.test.d.ts +1 -0
  56. package/dist/utils/cli-params.test.js +12 -0
  57. package/dist/utils/file-input.d.ts +30 -0
  58. package/dist/utils/file-input.js +77 -0
  59. package/dist/utils/file-input.test.d.ts +1 -0
  60. package/dist/utils/file-input.test.js +68 -0
  61. package/dist/utils/safety.d.ts +5 -0
  62. package/dist/utils/safety.js +97 -109
  63. package/dist/utils/safety.test.js +135 -33
  64. package/package.json +14 -5
  65. package/src/commands/agentops/apply.ts +77 -0
  66. package/src/commands/agentops/bundle-schema.ts +20 -0
  67. package/src/commands/agentops/drift.ts +63 -0
  68. package/src/commands/agentops/evaluate-gate.ts +128 -0
  69. package/src/commands/agentops/gate-schema.ts +20 -0
  70. package/src/commands/agentops/plan.ts +55 -0
  71. package/src/commands/agentops/state.ts +5 -0
  72. package/src/commands/agentops.test.ts +454 -0
  73. package/src/commands/agentops.ts +28 -0
  74. package/src/commands/agents-crud.ts +193 -0
  75. package/src/commands/agents-discovery.test.ts +16 -0
  76. package/src/commands/agents-discovery.ts +180 -0
  77. package/src/commands/agents-evals.ts +353 -0
  78. package/src/commands/agents-threads.ts +116 -0
  79. package/src/commands/agents.ts +9 -493
  80. package/src/commands/ai-agents.ts +37 -28
  81. package/src/commands/charts.ts +6 -3
  82. package/src/commands/content.ts +3 -1
  83. package/src/commands/dashboards.ts +3 -1
  84. package/src/commands/explores.ts +3 -1
  85. package/src/commands/groups.ts +33 -33
  86. package/src/commands/metrics.ts +3 -1
  87. package/src/commands/organization-roles.ts +3 -1
  88. package/src/commands/organization.ts +3 -1
  89. package/src/commands/project-access.ts +3 -1
  90. package/src/commands/project-role-assignments.ts +3 -1
  91. package/src/commands/projects.ts +44 -18
  92. package/src/commands/query.ts +4 -1
  93. package/src/commands/schedulers.ts +3 -1
  94. package/src/commands/schema.test.ts +72 -1
  95. package/src/commands/schema.ts +60 -14
  96. package/src/commands/space-access.ts +3 -1
  97. package/src/commands/spaces.ts +3 -1
  98. package/src/commands/tags.ts +3 -1
  99. package/src/commands/users.ts +29 -25
  100. package/src/index.test.ts +10 -9
  101. package/src/index.ts +19 -16
  102. package/src/utils/cli-params.test.ts +13 -0
  103. package/src/utils/cli-params.ts +12 -0
  104. package/src/utils/client.test.ts +1 -0
  105. package/src/utils/file-input.test.ts +91 -0
  106. package/src/utils/file-input.ts +83 -0
  107. package/src/utils/safety.test.ts +158 -2
  108. package/src/utils/safety.ts +27 -20
  109. package/tsconfig.json +2 -1
package/README.md CHANGED
@@ -31,6 +31,10 @@ The CLI requires the following environment variables (consistent with `@lightdas
31
31
 
32
32
  Prefer env vars from the parent process. Avoid plaintext `.env` when AI agents have file access. If using `.env`, use [dotenvx](https://dotenvx.com/) for encrypted secrets. See [docs/secrets-and-credentials.md](../../docs/secrets-and-credentials.md).
33
33
 
34
+ ### Agent-safe surface
35
+
36
+ CLI exposes the agent-safe operation tier (with `--safety-mode` / `--dry-run` / project allowlist). MCP ships a narrower persona surface (semantic-layer discovery/compile) without those process knobs — see [ADR-0008](../../docs/adr/0008-mcp-request-scope-and-hardening.md). Irrecoverable actions (e.g. deleting org members) are **not** CLI or MCP tools — use `@lightdash-tools/client`. See [ADR-0004](../../docs/adr/0004-agent-safe-exposure-mcp-cli-vs-client-only.md) and [docs/agent-context/CONTEXT.md](../../docs/agent-context/CONTEXT.md).
37
+
34
38
  Example:
35
39
 
36
40
  ```bash
@@ -211,8 +215,8 @@ Example:
211
215
  # This will work
212
216
  lightdash-ai --safety-mode read-only users list
213
217
 
214
- # This will fail if delete was implemented
215
- lightdash-ai --safety-mode read-only users delete <uuid>
218
+ # Reversible destructive commands (e.g. groups delete) fail in read-only mode
219
+ lightdash-ai --safety-mode read-only groups delete <groupUuid>
216
220
  ```
217
221
 
218
222
  When a command is blocked, you will see an error like:
@@ -0,0 +1,5 @@
1
+ /**
2
+ * agentops apply — apply bundle diff to Lightdash.
3
+ */
4
+ import type { Command } from 'commander';
5
+ export declare function registerAgentopsApplyCommand(agentopsCmd: Command): void;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /**
3
+ * agentops apply — apply bundle diff to Lightdash.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.registerAgentopsApplyCommand = registerAgentopsApplyCommand;
7
+ const client_1 = require("@lightdash-tools/client");
8
+ const common_1 = require("@lightdash-tools/common");
9
+ const client_2 = require("../../utils/client");
10
+ const file_input_1 = require("../../utils/file-input");
11
+ const safety_1 = require("../../utils/safety");
12
+ const state_1 = require("./state");
13
+ function registerAgentopsApplyCommand(agentopsCmd) {
14
+ agentopsCmd
15
+ .command('apply')
16
+ .description('Apply an agent bundle to Lightdash')
17
+ .option('--file <path>', 'Path to bundle YAML file')
18
+ .option('--stdin', 'Read bundle YAML from stdin')
19
+ .action((0, safety_1.wrapAction)(common_1.WRITE_NONDESTRUCTIVE, async function () {
20
+ const options = this.opts();
21
+ try {
22
+ const content = await (0, file_input_1.readExplicitFileOrStdin)({
23
+ file: options.file,
24
+ stdin: options.stdin,
25
+ });
26
+ const bundle = (0, common_1.parseLightdashAiAgentBundle)(content);
27
+ (0, safety_1.assertAllowedProject)(this, bundle.spec.projectUuid);
28
+ const client = (0, client_2.getClient)();
29
+ const current = await (0, state_1.fetchBundleCurrentState)(client, bundle);
30
+ const diff = (0, common_1.computeBundleDiff)(bundle, current);
31
+ if (diff.summary.deletes > 0 && !(0, common_1.isAllowed)((0, safety_1.getSafetyMode)(this), common_1.WRITE_DESTRUCTIVE)) {
32
+ console.error('Error: bundle requires destructive operations (deletes). Use --safety-mode write-destructive.');
33
+ process.exit(1);
34
+ }
35
+ const result = await (0, client_1.applyBundleDiff)(client, bundle, diff.changes);
36
+ console.log(JSON.stringify({
37
+ bundleName: bundle.metadata.name,
38
+ projectUuid: bundle.spec.projectUuid,
39
+ summary: diff.summary,
40
+ applied: result.applied,
41
+ skipped: result.skipped,
42
+ failed: result.failed,
43
+ }, null, 2));
44
+ if (result.failed.length > 0) {
45
+ process.exit(1);
46
+ }
47
+ }
48
+ catch (error) {
49
+ console.error('Error applying bundle:', error instanceof Error ? error.message : String(error));
50
+ process.exit(1);
51
+ }
52
+ }));
53
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * agentops bundle-schema — emit JSON Schema for LightdashAiAgentBundle.
3
+ */
4
+ import type { Command } from 'commander';
5
+ export declare function registerAgentopsBundleSchemaCommand(agentopsCmd: Command): void;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /**
3
+ * agentops bundle-schema — emit JSON Schema for LightdashAiAgentBundle.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.registerAgentopsBundleSchemaCommand = registerAgentopsBundleSchemaCommand;
7
+ const common_1 = require("@lightdash-tools/common");
8
+ const safety_1 = require("../../utils/safety");
9
+ function registerAgentopsBundleSchemaCommand(agentopsCmd) {
10
+ agentopsCmd
11
+ .command('bundle-schema')
12
+ .description('Print JSON Schema for LightdashAiAgentBundle documents')
13
+ .action((0, safety_1.wrapAction)(common_1.READ_ONLY_DEFAULT, () => {
14
+ console.log(JSON.stringify((0, common_1.getLightdashAiAgentBundleJsonSchema)(), null, 2));
15
+ }));
16
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * agentops drift — detect configuration drift vs desired bundle state.
3
+ */
4
+ import type { Command } from 'commander';
5
+ export declare function registerAgentopsDriftCommand(agentopsCmd: Command): void;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /**
3
+ * agentops drift — detect configuration drift vs desired bundle state.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.registerAgentopsDriftCommand = registerAgentopsDriftCommand;
7
+ const common_1 = require("@lightdash-tools/common");
8
+ const client_1 = require("../../utils/client");
9
+ const file_input_1 = require("../../utils/file-input");
10
+ const safety_1 = require("../../utils/safety");
11
+ const state_1 = require("./state");
12
+ function registerAgentopsDriftCommand(agentopsCmd) {
13
+ agentopsCmd
14
+ .command('drift')
15
+ .description('Detect drift between bundle desired state and Lightdash')
16
+ .option('--file <path>', 'Path to bundle YAML file')
17
+ .option('--stdin', 'Read bundle YAML from stdin')
18
+ .action((0, safety_1.wrapAction)(common_1.READ_ONLY_DEFAULT, async function () {
19
+ const options = this.opts();
20
+ try {
21
+ const content = await (0, file_input_1.readExplicitFileOrStdin)({
22
+ file: options.file,
23
+ stdin: options.stdin,
24
+ });
25
+ const bundle = (0, common_1.parseLightdashAiAgentBundle)(content);
26
+ (0, safety_1.assertAllowedProject)(this, bundle.spec.projectUuid);
27
+ const client = (0, client_1.getClient)();
28
+ const current = await (0, state_1.fetchBundleCurrentState)(client, bundle);
29
+ const { hasDrift, diff } = (0, common_1.detectBundleDrift)(bundle, current);
30
+ console.log(JSON.stringify({
31
+ bundleName: bundle.metadata.name,
32
+ projectUuid: bundle.spec.projectUuid,
33
+ hasDrift,
34
+ summary: diff.summary,
35
+ changes: diff.changes.filter((c) => c.operation !== 'noop'),
36
+ }, null, 2));
37
+ if (hasDrift) {
38
+ process.exit(1);
39
+ }
40
+ }
41
+ catch (error) {
42
+ console.error('Error detecting drift:', error instanceof Error ? error.message : String(error));
43
+ process.exit(1);
44
+ }
45
+ }));
46
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * agentops evaluate-gate — evaluate an evaluation gate policy against a run.
3
+ */
4
+ import type { Command } from 'commander';
5
+ export declare function registerAgentopsEvaluateGateCommand(agentopsCmd: Command): void;
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ /**
3
+ * agentops evaluate-gate — evaluate an evaluation gate policy against a run.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.registerAgentopsEvaluateGateCommand = registerAgentopsEvaluateGateCommand;
7
+ const client_1 = require("@lightdash-tools/client");
8
+ const common_1 = require("@lightdash-tools/common");
9
+ const client_2 = require("../../utils/client");
10
+ const file_input_1 = require("../../utils/file-input");
11
+ const safety_1 = require("../../utils/safety");
12
+ function parsePositiveSeconds(value, flag) {
13
+ const parsed = Number.parseInt(value, 10);
14
+ if (!Number.isFinite(parsed) || parsed <= 0) {
15
+ throw new Error(`${flag} must be a positive integer`);
16
+ }
17
+ return parsed;
18
+ }
19
+ function registerAgentopsEvaluateGateCommand(agentopsCmd) {
20
+ agentopsCmd
21
+ .command('evaluate-gate')
22
+ .description('Evaluate an evaluation gate policy against a run')
23
+ .option('--file <path>', 'Path to gate YAML file')
24
+ .option('--stdin', 'Read gate YAML from stdin')
25
+ .option('--wait', 'Wait for the evaluation run to complete', false)
26
+ .option('--timeout <seconds>', 'Wait timeout in seconds', (v) => parsePositiveSeconds(v, '--timeout'), 600)
27
+ .option('--poll-interval <seconds>', 'Poll interval in seconds', (v) => parsePositiveSeconds(v, '--poll-interval'), 10)
28
+ .option('--output <format>', 'Output format: json, junit, markdown', 'json')
29
+ .action((0, safety_1.wrapAction)(common_1.WRITE_OPEN_WORLD, async function () {
30
+ var _a, _b, _c;
31
+ const options = this.opts();
32
+ const output = (_a = options.output) !== null && _a !== void 0 ? _a : 'json';
33
+ if (!['json', 'junit', 'markdown'].includes(output)) {
34
+ console.error(`Error: unsupported --output '${output}'. Use json, junit, or markdown.`);
35
+ process.exit(common_1.GateExitCode.INVALID);
36
+ }
37
+ try {
38
+ const content = await (0, file_input_1.readExplicitFileOrStdin)({
39
+ file: options.file,
40
+ stdin: options.stdin,
41
+ });
42
+ const gate = (0, common_1.parseLightdashAiEvaluationGate)(content);
43
+ (0, safety_1.assertAllowedProject)(this, gate.spec.projectUuid);
44
+ const timeoutSeconds = (_b = options.timeout) !== null && _b !== void 0 ? _b : 600;
45
+ const pollIntervalSeconds = (_c = options.pollInterval) !== null && _c !== void 0 ? _c : 10;
46
+ const client = (0, client_2.getClient)();
47
+ const { run, timedOut } = await (0, client_1.resolveEvaluationRun)(client, gate, {
48
+ wait: options.wait === true,
49
+ timeoutMs: timeoutSeconds * 1000,
50
+ pollIntervalMs: pollIntervalSeconds * 1000,
51
+ });
52
+ if (timedOut) {
53
+ const payload = {
54
+ gateName: gate.metadata.name,
55
+ exitCode: common_1.GateExitCode.TIMEOUT,
56
+ passed: false,
57
+ reasons: ['Timed out waiting for evaluation run to complete'],
58
+ run,
59
+ };
60
+ if (output === 'json')
61
+ console.log(JSON.stringify(payload, null, 2));
62
+ else if (output === 'markdown') {
63
+ console.log((0, common_1.formatGateTimeoutMarkdown)(gate));
64
+ }
65
+ else {
66
+ console.log((0, common_1.formatGateTimeoutJUnit)(gate));
67
+ }
68
+ process.exit(common_1.GateExitCode.TIMEOUT);
69
+ }
70
+ const evaluation = (0, common_1.evaluateGatePolicy)(gate.spec.policy, run);
71
+ const payload = Object.assign({ gateName: gate.metadata.name, projectUuid: gate.spec.projectUuid, agentUuid: gate.spec.agentUuid, evaluationUuid: gate.spec.evaluationUuid, runUuid: run.runUuid }, evaluation);
72
+ if (output === 'json') {
73
+ console.log(JSON.stringify(payload, null, 2));
74
+ }
75
+ else if (output === 'junit') {
76
+ console.log((0, common_1.formatGateJUnit)(gate, evaluation));
77
+ }
78
+ else {
79
+ console.log((0, common_1.formatGateMarkdown)(gate, evaluation));
80
+ }
81
+ process.exit(evaluation.exitCode);
82
+ }
83
+ catch (error) {
84
+ const message = error instanceof Error ? error.message : String(error);
85
+ console.error('Error evaluating gate:', message);
86
+ process.exit(common_1.GateExitCode.ERROR);
87
+ }
88
+ }));
89
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * agentops gate-schema — emit JSON Schema for LightdashAiEvaluationGate.
3
+ */
4
+ import type { Command } from 'commander';
5
+ export declare function registerAgentopsGateSchemaCommand(agentopsCmd: Command): void;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /**
3
+ * agentops gate-schema — emit JSON Schema for LightdashAiEvaluationGate.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.registerAgentopsGateSchemaCommand = registerAgentopsGateSchemaCommand;
7
+ const common_1 = require("@lightdash-tools/common");
8
+ const safety_1 = require("../../utils/safety");
9
+ function registerAgentopsGateSchemaCommand(agentopsCmd) {
10
+ agentopsCmd
11
+ .command('gate-schema')
12
+ .description('Print JSON Schema for LightdashAiEvaluationGate documents')
13
+ .action((0, safety_1.wrapAction)(common_1.READ_ONLY_DEFAULT, () => {
14
+ console.log(JSON.stringify((0, common_1.getLightdashAiEvaluationGateJsonSchema)(), null, 2));
15
+ }));
16
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * agentops plan — validate bundle, fetch current state, compute diff (read-only).
3
+ */
4
+ import type { Command } from 'commander';
5
+ export declare function registerAgentopsPlanCommand(agentopsCmd: Command): void;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /**
3
+ * agentops plan — validate bundle, fetch current state, compute diff (read-only).
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.registerAgentopsPlanCommand = registerAgentopsPlanCommand;
7
+ const common_1 = require("@lightdash-tools/common");
8
+ const client_1 = require("../../utils/client");
9
+ const file_input_1 = require("../../utils/file-input");
10
+ const safety_1 = require("../../utils/safety");
11
+ const state_1 = require("./state");
12
+ function registerAgentopsPlanCommand(agentopsCmd) {
13
+ agentopsCmd
14
+ .command('plan')
15
+ .description('Validate an agent bundle and show the planned diff (read-only)')
16
+ .option('--file <path>', 'Path to bundle YAML file')
17
+ .option('--stdin', 'Read bundle YAML from stdin')
18
+ .option('--output <format>', 'Output format: json', 'json')
19
+ .action((0, safety_1.wrapAction)(common_1.READ_ONLY_DEFAULT, async function () {
20
+ const options = this.opts();
21
+ if (options.output !== 'json') {
22
+ console.error(`Error: unsupported --output '${options.output}'. Only 'json' is supported.`);
23
+ process.exit(1);
24
+ }
25
+ try {
26
+ const content = await (0, file_input_1.readExplicitFileOrStdin)({
27
+ file: options.file,
28
+ stdin: options.stdin,
29
+ });
30
+ const bundle = (0, common_1.parseLightdashAiAgentBundle)(content);
31
+ (0, safety_1.assertAllowedProject)(this, bundle.spec.projectUuid);
32
+ const client = (0, client_1.getClient)();
33
+ const current = await (0, state_1.fetchBundleCurrentState)(client, bundle);
34
+ const diff = (0, common_1.computeBundleDiff)(bundle, current);
35
+ console.log(JSON.stringify(diff, null, 2));
36
+ }
37
+ catch (error) {
38
+ console.error('Error planning bundle:', error instanceof Error ? error.message : String(error));
39
+ process.exit(1);
40
+ }
41
+ }));
42
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Re-exports shared bundle state fetch from the client package.
3
+ */
4
+ export { fetchBundleCurrentState } from '@lightdash-tools/client';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * Re-exports shared bundle state fetch from the client package.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.fetchBundleCurrentState = void 0;
7
+ var client_1 = require("@lightdash-tools/client");
8
+ Object.defineProperty(exports, "fetchBundleCurrentState", { enumerable: true, get: function () { return client_1.fetchBundleCurrentState; } });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * AgentOps CLI command group (RFC Phase 2).
3
+ */
4
+ import { type Command } from 'commander';
5
+ /**
6
+ * Registers the top-level agentops command and subcommands.
7
+ */
8
+ export declare function registerAgentopsCommand(program: Command): void;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ /**
3
+ * AgentOps CLI command group (RFC Phase 2).
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.registerAgentopsCommand = registerAgentopsCommand;
7
+ const apply_1 = require("./agentops/apply");
8
+ const bundle_schema_1 = require("./agentops/bundle-schema");
9
+ const drift_1 = require("./agentops/drift");
10
+ const evaluate_gate_1 = require("./agentops/evaluate-gate");
11
+ const gate_schema_1 = require("./agentops/gate-schema");
12
+ const plan_1 = require("./agentops/plan");
13
+ /**
14
+ * Registers the top-level agentops command and subcommands.
15
+ */
16
+ function registerAgentopsCommand(program) {
17
+ const agentopsCmd = program
18
+ .command('agentops')
19
+ .description('AgentOps workflows — bundle plan/apply/drift and evaluation gates');
20
+ (0, plan_1.registerAgentopsPlanCommand)(agentopsCmd);
21
+ (0, apply_1.registerAgentopsApplyCommand)(agentopsCmd);
22
+ (0, drift_1.registerAgentopsDriftCommand)(agentopsCmd);
23
+ (0, evaluate_gate_1.registerAgentopsEvaluateGateCommand)(agentopsCmd);
24
+ (0, bundle_schema_1.registerAgentopsBundleSchemaCommand)(agentopsCmd);
25
+ (0, gate_schema_1.registerAgentopsGateSchemaCommand)(agentopsCmd);
26
+ }
@@ -0,0 +1 @@
1
+ export {};