@burdenoff/bigconsole-cli 2026.1029.1 → 2026.1110.1

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.
@@ -1,680 +0,0 @@
1
- /**
2
- * GraphQL operations for bigconsole-cli.
3
- * All queries/mutations match the real wspace-bigconsole-svc schema
4
- * (see ~/products/wspace/bigconsole/wspace-bigconsole-svc/.hive-schema.graphql).
5
- */
6
- // ---------------------------------------------------------------------------
7
- // Auth (global gateway)
8
- // ---------------------------------------------------------------------------
9
- export const SIGN_OUT = `
10
- mutation SignOut {
11
- signOut
12
- }
13
- `;
14
- export const REFRESH_TOKEN = `
15
- mutation RefreshToken($token: String!) {
16
- refreshToken(token: $token) {
17
- accessToken
18
- refreshToken
19
- expiresIn
20
- }
21
- }
22
- `;
23
- // ---------------------------------------------------------------------------
24
- // Workspaces (global gateway) — mirrors fetchWorkspaces but exposed to callers
25
- // ---------------------------------------------------------------------------
26
- export const MY_WORKSPACES = `
27
- query MyWorkspaces($limit: Int) {
28
- myWorkspaces(limit: $limit) {
29
- items { id name slug tenantId organizationId }
30
- }
31
- }
32
- `;
33
- // ---------------------------------------------------------------------------
34
- // Dashboards (workspace gateway)
35
- // ---------------------------------------------------------------------------
36
- export const LIST_DASHBOARDS = `
37
- query ListDashboards(
38
- $first: Int
39
- $after: String
40
- $search: String
41
- $visibility: BigConsoleDashboardVisibility
42
- $category: BigConsoleDashboardCategory
43
- $includeArchived: Boolean
44
- $sortBy: BigConsoleDashboardSortField
45
- $sortOrder: SortOrder
46
- ) {
47
- listDashboards(
48
- first: $first
49
- after: $after
50
- search: $search
51
- visibility: $visibility
52
- category: $category
53
- includeArchived: $includeArchived
54
- sortBy: $sortBy
55
- sortOrder: $sortOrder
56
- ) {
57
- edges {
58
- node {
59
- id
60
- name
61
- description
62
- status
63
- visibility
64
- category
65
- ownerId
66
- createdAt
67
- updatedAt
68
- }
69
- }
70
- pageInfo { hasNextPage endCursor }
71
- totalCount
72
- }
73
- }
74
- `;
75
- export const GET_DASHBOARD = `
76
- query GetDashboard($id: ID!) {
77
- getDashboard(id: $id) {
78
- id
79
- name
80
- description
81
- status
82
- visibility
83
- category
84
- ownerId
85
- definitionVersion
86
- createdAt
87
- updatedAt
88
- }
89
- }
90
- `;
91
- export const ARCHIVE_DASHBOARD = `
92
- mutation ArchiveDashboard($id: ID!) {
93
- archiveDashboard(id: $id) {
94
- id
95
- name
96
- status
97
- }
98
- }
99
- `;
100
- export const DELETE_DASHBOARD = `
101
- mutation DeleteDashboard($id: ID!) {
102
- deleteBigConsoleDashboard(id: $id)
103
- }
104
- `;
105
- // ---------------------------------------------------------------------------
106
- // Widgets (workspace gateway)
107
- // ---------------------------------------------------------------------------
108
- export const LIST_WIDGETS = `
109
- query ListWidgets($pageId: ID!, $first: Int, $after: String, $type: BigConsoleWidgetType) {
110
- listWidgets(pageId: $pageId, first: $first, after: $after, type: $type) {
111
- edges {
112
- node {
113
- id
114
- pageId
115
- dashboardId
116
- type
117
- title
118
- dataSinkId
119
- lastRefreshedAt
120
- createdAt
121
- updatedAt
122
- }
123
- }
124
- pageInfo { hasNextPage endCursor }
125
- totalCount
126
- }
127
- }
128
- `;
129
- export const GET_WIDGET = `
130
- query GetWidget($id: ID!) {
131
- getWidget(id: $id) {
132
- id
133
- pageId
134
- dashboardId
135
- type
136
- title
137
- config
138
- dataSinkId
139
- datasetId
140
- lastRefreshedAt
141
- cacheTTL
142
- createdAt
143
- updatedAt
144
- }
145
- }
146
- `;
147
- export const DELETE_WIDGET = `
148
- mutation DeleteWidget($id: ID!) {
149
- deleteBigConsoleWidget(id: $id)
150
- }
151
- `;
152
- // ---------------------------------------------------------------------------
153
- // DataSinks (workspace gateway)
154
- // ---------------------------------------------------------------------------
155
- export const LIST_DATASINKS = `
156
- query ListDataSinks(
157
- $first: Int
158
- $after: String
159
- $search: String
160
- $status: DataSinkStatus
161
- $setupState: DataSinkSetupState
162
- $isActive: Boolean
163
- ) {
164
- listDataSinks(
165
- first: $first
166
- after: $after
167
- search: $search
168
- status: $status
169
- setupState: $setupState
170
- isActive: $isActive
171
- ) {
172
- edges {
173
- node {
174
- id
175
- name
176
- key
177
- description
178
- status
179
- setupState
180
- isActive
181
- createdAt
182
- updatedAt
183
- }
184
- }
185
- pageInfo { hasNextPage endCursor }
186
- totalCount
187
- }
188
- }
189
- `;
190
- export const GET_DATASINK = `
191
- query GetDataSink($id: ID, $key: String) {
192
- getDataSink(id: $id, key: $key) {
193
- id
194
- name
195
- key
196
- description
197
- status
198
- setupState
199
- isActive
200
- createdAt
201
- updatedAt
202
- }
203
- }
204
- `;
205
- export const GET_DATASINK_DATA = `
206
- query GetDataSinkData($id: ID, $key: String, $dataPath: String, $forceRefresh: Boolean) {
207
- getDataSinkData(id: $id, key: $key, dataPath: $dataPath, forceRefresh: $forceRefresh) {
208
- raw
209
- extracted
210
- cached
211
- fetchedAt
212
- version
213
- totalCount
214
- hasMore
215
- limit
216
- offset
217
- }
218
- }
219
- `;
220
- export const DELETE_DATASINK = `
221
- mutation DeleteDataSink($id: ID!) {
222
- deleteDataSink(id: $id) {
223
- id
224
- name
225
- }
226
- }
227
- `;
228
- // ---------------------------------------------------------------------------
229
- // Parsers (workspace gateway)
230
- // ---------------------------------------------------------------------------
231
- export const LIST_PARSERS = `
232
- query ListParsers($first: Int, $after: String, $filter: ParserFilterInput) {
233
- listParsers(first: $first, after: $after, filter: $filter) {
234
- edges {
235
- node {
236
- id
237
- name
238
- description
239
- type
240
- status
241
- inputSinkKey
242
- outputKey
243
- outputWidgetId
244
- ttl
245
- version
246
- createdAt
247
- updatedAt
248
- }
249
- }
250
- pageInfo { hasNextPage endCursor }
251
- totalCount
252
- }
253
- }
254
- `;
255
- export const GET_PARSER = `
256
- query GetParser($id: ID!) {
257
- parser(id: $id) {
258
- id
259
- name
260
- description
261
- type
262
- status
263
- expression
264
- inputSinkKey
265
- outputKey
266
- outputWidgetId
267
- ttl
268
- version
269
- createdAt
270
- updatedAt
271
- }
272
- }
273
- `;
274
- export const DELETE_PARSER = `
275
- mutation DeleteParser($id: ID!) {
276
- deleteParser(id: $id)
277
- }
278
- `;
279
- // ---------------------------------------------------------------------------
280
- // Pipelines (workspace gateway)
281
- // ---------------------------------------------------------------------------
282
- export const LIST_PIPELINES = `
283
- query ListPipelines($first: Int, $after: String, $filter: PipelineFilterInput) {
284
- listPipelines(first: $first, after: $after, filter: $filter) {
285
- edges {
286
- node {
287
- id
288
- name
289
- description
290
- status
291
- version
292
- lastExecutedAt
293
- createdAt
294
- updatedAt
295
- }
296
- }
297
- pageInfo { hasNextPage endCursor }
298
- totalCount
299
- }
300
- }
301
- `;
302
- export const GET_PIPELINE = `
303
- query GetPipeline($id: ID!) {
304
- pipeline(id: $id) {
305
- id
306
- name
307
- description
308
- status
309
- version
310
- lastExecutedAt
311
- stages {
312
- id
313
- position
314
- inputKey
315
- outputKey
316
- enabled
317
- parserName
318
- parserType
319
- }
320
- createdAt
321
- updatedAt
322
- }
323
- }
324
- `;
325
- export const DELETE_PIPELINE = `
326
- mutation DeletePipeline($id: ID!) {
327
- deletePipeline(id: $id)
328
- }
329
- `;
330
- // ---------------------------------------------------------------------------
331
- // Dashboard — create / update / import / export
332
- // ---------------------------------------------------------------------------
333
- export const CREATE_DASHBOARD = `
334
- mutation CreateDashboard($input: BigConsoleCreateDashboardInput!) {
335
- createBigConsoleDashboard(input: $input) {
336
- id
337
- name
338
- status
339
- visibility
340
- category
341
- createdAt
342
- }
343
- }
344
- `;
345
- export const UPDATE_DASHBOARD = `
346
- mutation UpdateDashboard($input: BigConsoleUpdateDashboardInput!) {
347
- updateBigConsoleDashboard(input: $input) {
348
- id
349
- name
350
- status
351
- visibility
352
- category
353
- updatedAt
354
- }
355
- }
356
- `;
357
- export const IMPORT_DASHBOARD = `
358
- mutation ImportDashboard($input: BigConsoleImportDashboardInput!) {
359
- importDashboard(input: $input) {
360
- id
361
- name
362
- status
363
- visibility
364
- category
365
- createdAt
366
- }
367
- }
368
- `;
369
- export const EXPORT_DASHBOARD = `
370
- query ExportDashboard($id: ID!, $options: BigConsoleExportDashboardOptions) {
371
- exportDashboard(id: $id, options: $options)
372
- }
373
- `;
374
- // ---------------------------------------------------------------------------
375
- // Widget — create / update
376
- // ---------------------------------------------------------------------------
377
- export const CREATE_WIDGET = `
378
- mutation CreateWidget($input: BigConsoleCreateWidgetInput!) {
379
- createBigConsoleWidget(input: $input) {
380
- id
381
- pageId
382
- type
383
- title
384
- createdAt
385
- }
386
- }
387
- `;
388
- export const UPDATE_WIDGET = `
389
- mutation UpdateWidget($input: BigConsoleUpdateWidgetInput!) {
390
- updateBigConsoleWidget(input: $input) {
391
- id
392
- pageId
393
- type
394
- title
395
- updatedAt
396
- }
397
- }
398
- `;
399
- // ---------------------------------------------------------------------------
400
- // DataSink — create / update
401
- // ---------------------------------------------------------------------------
402
- export const CREATE_DATASINK = `
403
- mutation CreateDataSink($input: CreateDataSinkInput!) {
404
- createDataSink(input: $input) {
405
- id
406
- name
407
- key
408
- status
409
- setupState
410
- isActive
411
- createdAt
412
- }
413
- }
414
- `;
415
- export const UPDATE_DATASINK = `
416
- mutation UpdateDataSink($input: UpdateDataSinkInput!) {
417
- updateDataSink(input: $input) {
418
- id
419
- name
420
- key
421
- status
422
- isActive
423
- updatedAt
424
- }
425
- }
426
- `;
427
- // ---------------------------------------------------------------------------
428
- // Parser — create / update
429
- // ---------------------------------------------------------------------------
430
- export const CREATE_PARSER = `
431
- mutation CreateParser($input: CreateParserInput!) {
432
- createParser(input: $input) {
433
- id
434
- name
435
- type
436
- status
437
- inputSinkKey
438
- outputKey
439
- version
440
- createdAt
441
- }
442
- }
443
- `;
444
- export const UPDATE_PARSER = `
445
- mutation UpdateParser($id: ID!, $version: Int!, $input: UpdateParserInput!) {
446
- updateParser(id: $id, version: $version, input: $input) {
447
- id
448
- name
449
- type
450
- status
451
- version
452
- updatedAt
453
- }
454
- }
455
- `;
456
- // ---------------------------------------------------------------------------
457
- // Pipeline — create / update
458
- // ---------------------------------------------------------------------------
459
- export const CREATE_PIPELINE = `
460
- mutation CreatePipeline($input: CreatePipelineInput!) {
461
- createPipeline(input: $input) {
462
- id
463
- name
464
- status
465
- version
466
- createdAt
467
- }
468
- }
469
- `;
470
- export const UPDATE_PIPELINE = `
471
- mutation UpdatePipeline($id: ID!, $version: Int!, $input: UpdatePipelineInput!) {
472
- updatePipeline(id: $id, version: $version, input: $input) {
473
- id
474
- name
475
- status
476
- version
477
- updatedAt
478
- }
479
- }
480
- `;
481
- // ---------------------------------------------------------------------------
482
- // Drilldown — list, get, delete
483
- // ---------------------------------------------------------------------------
484
- export const GET_WIDGET_ACTIONS = `
485
- query GetWidgetActions($widgetId: ID!) {
486
- getWidgetActions(widgetId: $widgetId) {
487
- id
488
- widgetId
489
- type
490
- name
491
- label
492
- order
493
- disabled
494
- hidden
495
- createdAt
496
- }
497
- }
498
- `;
499
- export const DELETE_WIDGET_DRILLDOWN = `
500
- mutation DeleteWidgetDrilldown($id: ID!) {
501
- deleteWidgetDrilldown(id: $id)
502
- }
503
- `;
504
- export const GET_WIDGET_DRILLDOWN = `
505
- query GetWidgetDrilldown($id: ID!) {
506
- getWidget(id: $id) {
507
- id
508
- drilldown {
509
- id
510
- }
511
- }
512
- }
513
- `;
514
- // ---------------------------------------------------------------------------
515
- // Share — list, create, delete
516
- // ---------------------------------------------------------------------------
517
- export const LIST_DASHBOARD_SHARES = `
518
- query ListDashboardShares(
519
- $dashboardId: ID!
520
- $first: Int
521
- $after: String
522
- $isActive: Boolean
523
- $permission: BigConsoleDashboardSharePermission
524
- $recipientType: BigConsoleDashboardShareRecipientType
525
- ) {
526
- listDashboardShares(
527
- dashboardId: $dashboardId
528
- first: $first
529
- after: $after
530
- isActive: $isActive
531
- permission: $permission
532
- recipientType: $recipientType
533
- ) {
534
- edges {
535
- node {
536
- id
537
- dashboardId
538
- permission
539
- isActive
540
- expiresAt
541
- createdAt
542
- }
543
- }
544
- pageInfo { hasNextPage endCursor }
545
- totalCount
546
- }
547
- }
548
- `;
549
- // ---------------------------------------------------------------------------
550
- // Template — list, get, featured
551
- // ---------------------------------------------------------------------------
552
- export const LIST_TEMPLATES = `
553
- query ListTemplates(
554
- $first: Int
555
- $after: String
556
- $category: BigConsoleDashboardCategory
557
- $search: String
558
- $isFeatured: Boolean
559
- ) {
560
- listTemplates(
561
- first: $first
562
- after: $after
563
- category: $category
564
- search: $search
565
- isFeatured: $isFeatured
566
- ) {
567
- edges {
568
- node {
569
- id
570
- name
571
- description
572
- category
573
- isFeatured
574
- status
575
- createdAt
576
- }
577
- }
578
- pageInfo { hasNextPage endCursor }
579
- totalCount
580
- }
581
- }
582
- `;
583
- export const GET_TEMPLATE = `
584
- query GetTemplate($id: ID!) {
585
- getTemplate(id: $id) {
586
- id
587
- name
588
- description
589
- category
590
- isFeatured
591
- status
592
- createdAt
593
- }
594
- }
595
- `;
596
- // ---------------------------------------------------------------------------
597
- // Prompt (AI) — generate, list, get, cancel
598
- // ---------------------------------------------------------------------------
599
- export const GENERATE_DASHBOARD_FROM_PROMPT = `
600
- mutation GenerateDashboardFromPrompt($input: BigConsoleGenerateDashboardFromPromptInput!) {
601
- generateDashboardFromPrompt(input: $input) {
602
- id
603
- status
604
- prompt
605
- createdAt
606
- }
607
- }
608
- `;
609
- export const LIST_PROMPT_GENERATIONS = `
610
- query ListPromptGenerations($first: Int, $after: String, $status: PromptGenerationStatus) {
611
- listPromptGenerations(first: $first, after: $after, status: $status) {
612
- edges {
613
- node {
614
- id
615
- status
616
- prompt
617
- createdAt
618
- }
619
- }
620
- pageInfo { hasNextPage endCursor }
621
- totalCount
622
- }
623
- }
624
- `;
625
- export const GET_PROMPT_GENERATION = `
626
- query GetPromptGeneration($id: ID!) {
627
- getPromptGeneration(id: $id) {
628
- id
629
- status
630
- prompt
631
- createdAt
632
- }
633
- }
634
- `;
635
- export const CANCEL_PROMPT_GENERATION = `
636
- mutation CancelPromptGeneration($generationId: ID!) {
637
- cancelPromptGeneration(generationId: $generationId) {
638
- id
639
- status
640
- }
641
- }
642
- `;
643
- // ---------------------------------------------------------------------------
644
- // Workflows (workspace gateway — FluidGrids-backed)
645
- // ---------------------------------------------------------------------------
646
- export const LIST_WORKFLOWS = `
647
- query ListWorkflows($filter: FluidGridsWorkflowFilterInput) {
648
- workflows(filter: $filter) {
649
- id
650
- name
651
- key
652
- description
653
- status
654
- executionCount
655
- linkedDataSinkCount
656
- lastExecutedAt
657
- createdAt
658
- updatedAt
659
- }
660
- }
661
- `;
662
- export const GET_WORKFLOW = `
663
- query GetWorkflow($id: ID!) {
664
- workflow(id: $id) {
665
- id
666
- name
667
- key
668
- description
669
- status
670
- executionCount
671
- linkedDataSinkCount
672
- externalWorkflowId
673
- lastExecutionId
674
- lastExecutedAt
675
- webhookUrl
676
- createdAt
677
- updatedAt
678
- }
679
- }
680
- `;
@@ -1,30 +0,0 @@
1
- /**
2
- * Shared type definitions for the BigConsole CLI.
3
- *
4
- * Domain types (Dashboard, Widget, DataSink, Parser, etc.) will land here
5
- * alongside the corresponding command groups in Phase 1B.
6
- */
7
- export interface CommandOptions {
8
- format?: 'json' | 'table' | 'yaml';
9
- verbose?: boolean;
10
- }
11
- export interface GraphQLResponse<T> {
12
- data?: T;
13
- errors?: Array<{
14
- message: string;
15
- extensions?: Record<string, unknown>;
16
- }>;
17
- }
18
- export interface PageInfo {
19
- hasNextPage: boolean;
20
- endCursor: string | null;
21
- }
22
- export interface Edge<T> {
23
- node: T;
24
- cursor: string;
25
- }
26
- export interface Connection<T> {
27
- edges: Edge<T>[];
28
- pageInfo: PageInfo;
29
- totalCount: number;
30
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * Shared type definitions for the BigConsole CLI.
3
- *
4
- * Domain types (Dashboard, Widget, DataSink, Parser, etc.) will land here
5
- * alongside the corresponding command groups in Phase 1B.
6
- */
7
- export {};
@@ -1,2 +0,0 @@
1
- export * from './output.js';
2
- export * from './sanitize.js';
@@ -1,2 +0,0 @@
1
- export * from './output.js';
2
- export * from './sanitize.js';