@lightdash-tools/cli 0.23.0 → 0.25.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/commands/content.js +2 -2
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/src/commands/content.ts +7 -4
- package/src/index.ts +1 -1
package/dist/commands/content.js
CHANGED
|
@@ -14,9 +14,9 @@ function registerContentCommand(program) {
|
|
|
14
14
|
const contentCmd = program.command('content').description('Manage project content');
|
|
15
15
|
contentCmd
|
|
16
16
|
.command('search <query>')
|
|
17
|
-
.description('Search project content (charts, dashboards, spaces)')
|
|
17
|
+
.description('Search project content (charts, dashboards, spaces, data apps, documents)')
|
|
18
18
|
.option('--projects <uuids...>', 'Filter by project UUIDs')
|
|
19
|
-
.option('--type <types...>', 'Filter by content types (chart, dashboard, space)')
|
|
19
|
+
.option('--type <types...>', 'Filter by content types (chart, dashboard, space, data_app, document)')
|
|
20
20
|
.option('--page <number>', 'Page number', (v) => parseInt(v, 10))
|
|
21
21
|
.option('--page-size <number>', 'Page size', (v) => parseInt(v, 10))
|
|
22
22
|
.action((0, safety_1.wrapAction)(common_1.READ_ONLY_DEFAULT, async (query, options) => {
|
package/dist/index.js
CHANGED
|
@@ -32,7 +32,7 @@ const program = new commander_1.Command();
|
|
|
32
32
|
program
|
|
33
33
|
.name('lightdash-ai')
|
|
34
34
|
.description('CLI for Lightdash AI')
|
|
35
|
-
.version('0.
|
|
35
|
+
.version('0.25.0')
|
|
36
36
|
.option('--safety-mode <mode>', 'Safety mode (read-only, write-idempotent, write-destructive)', 'read-only')
|
|
37
37
|
.option('--projects <uuids>', 'Comma-separated list of allowed project UUIDs (security guardrail)')
|
|
38
38
|
.option('--dry-run', 'Simulate mutating operations without executing (env: LIGHTDASH_TOOLS_DRY_RUN=1)');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightdash-tools/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "CLI for Lightdash AI.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"repository": {
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"commander": "^15.0.0",
|
|
20
20
|
"yaml": "^2.9.0",
|
|
21
|
-
"@lightdash-tools/
|
|
22
|
-
"@lightdash-tools/
|
|
21
|
+
"@lightdash-tools/common": "0.25.0",
|
|
22
|
+
"@lightdash-tools/client": "0.25.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/node": "^25.9.3"
|
package/src/commands/content.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Content command implementation.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { READ_ONLY_DEFAULT } from '@lightdash-tools/common';
|
|
5
|
+
import { READ_ONLY_DEFAULT, type LightdashApi } from '@lightdash-tools/common';
|
|
6
6
|
|
|
7
7
|
import { getClient } from '../utils/client';
|
|
8
8
|
import { wrapAction } from '../utils/safety';
|
|
@@ -17,9 +17,12 @@ export function registerContentCommand(program: Command): void {
|
|
|
17
17
|
|
|
18
18
|
contentCmd
|
|
19
19
|
.command('search <query>')
|
|
20
|
-
.description('Search project content (charts, dashboards, spaces)')
|
|
20
|
+
.description('Search project content (charts, dashboards, spaces, data apps, documents)')
|
|
21
21
|
.option('--projects <uuids...>', 'Filter by project UUIDs')
|
|
22
|
-
.option(
|
|
22
|
+
.option(
|
|
23
|
+
'--type <types...>',
|
|
24
|
+
'Filter by content types (chart, dashboard, space, data_app, document)',
|
|
25
|
+
)
|
|
23
26
|
.option('--page <number>', 'Page number', (v) => parseInt(v, 10))
|
|
24
27
|
.option('--page-size <number>', 'Page size', (v) => parseInt(v, 10))
|
|
25
28
|
.action(
|
|
@@ -29,7 +32,7 @@ export function registerContentCommand(program: Command): void {
|
|
|
29
32
|
query: string,
|
|
30
33
|
options: {
|
|
31
34
|
projects?: string[];
|
|
32
|
-
type?:
|
|
35
|
+
type?: LightdashApi.Content.ContentType[];
|
|
33
36
|
page?: number;
|
|
34
37
|
pageSize?: number;
|
|
35
38
|
},
|
package/src/index.ts
CHANGED