zinkee 0.1.44 → 0.1.45

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 (94) hide show
  1. package/README.md +4 -0
  2. package/dist/chunk-MHEVRMDX.js +1230 -0
  3. package/dist/chunk-MHEVRMDX.js.map +1 -0
  4. package/{src/utils/examples.ts → dist/examples-E6FFEVBE.js} +856 -1141
  5. package/dist/examples-E6FFEVBE.js.map +1 -0
  6. package/dist/index.js +1145 -8456
  7. package/dist/index.js.map +1 -1
  8. package/package.json +6 -3
  9. package/.github/workflows/npm-publish.yml +0 -77
  10. package/.github/workflows/pr-checks.yml +0 -36
  11. package/AGENTS.md +0 -110
  12. package/docs/cli-contract.md +0 -41
  13. package/docs/npm-release.md +0 -64
  14. package/docs/superpowers/plans/2026-03-24-zinkee-cli-implementation.md +0 -837
  15. package/docs/superpowers/plans/2026-03-25-cli-backend-error-contract.md +0 -503
  16. package/docs/superpowers/plans/2026-03-26-display-freeform-create.md +0 -389
  17. package/docs/superpowers/specs/2026-03-24-zinkee-cli-backend-blockers.md +0 -172
  18. package/docs/superpowers/specs/2026-03-24-zinkee-cli-design.md +0 -1576
  19. package/docs/superpowers/specs/2026-03-24-zinkee-cli-e2e-checklist.md +0 -215
  20. package/docs/superpowers/specs/2026-03-24-zinkee-cli-e2e-design.md +0 -492
  21. package/docs/superpowers/specs/2026-03-24-zinkee-cli-e2e-status.md +0 -307
  22. package/docs/superpowers/specs/2026-07-30-cli-pr-checks-design.md +0 -37
  23. package/src/api/automations.ts +0 -404
  24. package/src/api/comments.ts +0 -51
  25. package/src/api/displays.ts +0 -337
  26. package/src/api/document-templates.ts +0 -110
  27. package/src/api/files.ts +0 -50
  28. package/src/api/formulas.test.ts +0 -65
  29. package/src/api/formulas.ts +0 -67
  30. package/src/api/logs.ts +0 -34
  31. package/src/api/navigation.ts +0 -70
  32. package/src/api/records.ts +0 -184
  33. package/src/api/schemas.ts +0 -148
  34. package/src/api/teamspace.ts +0 -110
  35. package/src/cli-examples.ts +0 -130
  36. package/src/cli-runner.ts +0 -95
  37. package/src/client.test.ts +0 -189
  38. package/src/client.ts +0 -269
  39. package/src/command-registry.ts +0 -882
  40. package/src/commands/automations.test.ts +0 -1030
  41. package/src/commands/automations.ts +0 -2102
  42. package/src/commands/comments.test.ts +0 -214
  43. package/src/commands/comments.ts +0 -303
  44. package/src/commands/config.test.ts +0 -81
  45. package/src/commands/config.ts +0 -150
  46. package/src/commands/displays.test.ts +0 -1105
  47. package/src/commands/displays.ts +0 -1442
  48. package/src/commands/document-templates.test.ts +0 -569
  49. package/src/commands/document-templates.ts +0 -563
  50. package/src/commands/files.test.ts +0 -284
  51. package/src/commands/files.ts +0 -280
  52. package/src/commands/formulas.test.ts +0 -194
  53. package/src/commands/formulas.ts +0 -243
  54. package/src/commands/logs.test.ts +0 -123
  55. package/src/commands/logs.ts +0 -159
  56. package/src/commands/navigation.test.ts +0 -211
  57. package/src/commands/navigation.ts +0 -348
  58. package/src/commands/profiles.test.ts +0 -191
  59. package/src/commands/profiles.ts +0 -303
  60. package/src/commands/records.test.ts +0 -860
  61. package/src/commands/records.ts +0 -883
  62. package/src/commands/schemas.test.ts +0 -1252
  63. package/src/commands/schemas.ts +0 -890
  64. package/src/commands/teamspace.test.ts +0 -229
  65. package/src/commands/teamspace.ts +0 -546
  66. package/src/completion/engine.test.ts +0 -138
  67. package/src/completion/engine.ts +0 -168
  68. package/src/completion/install.test.ts +0 -179
  69. package/src/completion/install.ts +0 -260
  70. package/src/completion/runtime.ts +0 -150
  71. package/src/completion/scripts.ts +0 -91
  72. package/src/config.test.ts +0 -362
  73. package/src/config.ts +0 -294
  74. package/src/index.test.ts +0 -217
  75. package/src/index.ts +0 -8
  76. package/src/parsers/expressions.test.ts +0 -95
  77. package/src/parsers/expressions.ts +0 -128
  78. package/src/parsers/kv.test.ts +0 -35
  79. package/src/parsers/kv.ts +0 -49
  80. package/src/parsers/selectors.test.ts +0 -23
  81. package/src/parsers/selectors.ts +0 -29
  82. package/src/program.ts +0 -64
  83. package/src/runtime-context.ts +0 -103
  84. package/src/types.ts +0 -76
  85. package/src/utils/argv-rewrite.test.ts +0 -149
  86. package/src/utils/argv-rewrite.ts +0 -269
  87. package/src/utils/errors.test.ts +0 -85
  88. package/src/utils/errors.ts +0 -191
  89. package/src/utils/examples.test.ts +0 -374
  90. package/src/utils/output.test.ts +0 -65
  91. package/src/utils/output.ts +0 -154
  92. package/src/utils/schema-fields.ts +0 -1016
  93. package/tsconfig.json +0 -20
  94. package/tsup.config.ts +0 -13
@@ -1,882 +0,0 @@
1
- import type {
2
- CommandAccessLevel,
3
- CommandMeta,
4
- CommandOutputCapability,
5
- } from "./types.js";
6
-
7
- export type {
8
- CommandAccessLevel,
9
- CommandMeta,
10
- CommandOutputCapability,
11
- } from "./types.js";
12
-
13
- const readOutput: CommandOutputCapability = "table-json";
14
- const writeOutput: CommandOutputCapability = "json-only";
15
-
16
- export const commandRegistry = {
17
- "formulas recompute field": {
18
- command: "formulas recompute field",
19
- accessLevel: "write",
20
- supportsExample: true,
21
- supportsRaw: false,
22
- output: writeOutput,
23
- },
24
- "formulas recompute schema": {
25
- command: "formulas recompute schema",
26
- accessLevel: "write",
27
- supportsExample: true,
28
- supportsRaw: false,
29
- output: writeOutput,
30
- },
31
- "formulas recompute workspace": {
32
- command: "formulas recompute workspace",
33
- accessLevel: "write",
34
- supportsExample: true,
35
- supportsRaw: false,
36
- output: writeOutput,
37
- },
38
- "config path": {
39
- command: "config path",
40
- accessLevel: "read",
41
- supportsExample: true,
42
- supportsRaw: false,
43
- output: "json-only",
44
- },
45
- "config show": {
46
- command: "config show",
47
- accessLevel: "read",
48
- supportsExample: true,
49
- supportsRaw: false,
50
- output: readOutput,
51
- },
52
- "config validate": {
53
- command: "config validate",
54
- accessLevel: "read",
55
- supportsExample: true,
56
- supportsRaw: false,
57
- output: "json-only",
58
- },
59
- "automations folders list": {
60
- command: "automations folders list",
61
- accessLevel: "read",
62
- supportsExample: true,
63
- supportsRaw: false,
64
- output: readOutput,
65
- },
66
- "automations folders create": {
67
- command: "automations folders create",
68
- accessLevel: "write",
69
- supportsExample: true,
70
- supportsRaw: false,
71
- output: writeOutput,
72
- },
73
- "automations folders update": {
74
- command: "automations folders update",
75
- accessLevel: "write",
76
- supportsExample: true,
77
- supportsRaw: false,
78
- output: writeOutput,
79
- },
80
- "automations folders delete": {
81
- command: "automations folders delete",
82
- accessLevel: "destructive",
83
- supportsExample: true,
84
- supportsRaw: false,
85
- output: writeOutput,
86
- },
87
- "automations folders move": {
88
- command: "automations folders move",
89
- accessLevel: "write",
90
- supportsExample: true,
91
- supportsRaw: false,
92
- output: writeOutput,
93
- },
94
- "automations list": {
95
- command: "automations list",
96
- accessLevel: "read",
97
- supportsExample: true,
98
- supportsRaw: false,
99
- output: readOutput,
100
- },
101
- "automations get": {
102
- command: "automations get",
103
- accessLevel: "read",
104
- supportsExample: true,
105
- supportsRaw: false,
106
- output: readOutput,
107
- },
108
- "automations create": {
109
- command: "automations create",
110
- accessLevel: "write",
111
- supportsExample: true,
112
- supportsRaw: true,
113
- output: writeOutput,
114
- },
115
- "automations update": {
116
- command: "automations update",
117
- accessLevel: "write",
118
- supportsExample: true,
119
- supportsRaw: false,
120
- output: writeOutput,
121
- },
122
- "automations delete": {
123
- command: "automations delete",
124
- accessLevel: "destructive",
125
- supportsExample: true,
126
- supportsRaw: false,
127
- output: writeOutput,
128
- },
129
- "automations activate": {
130
- command: "automations activate",
131
- accessLevel: "write",
132
- supportsExample: true,
133
- supportsRaw: false,
134
- output: writeOutput,
135
- },
136
- "automations deactivate": {
137
- command: "automations deactivate",
138
- accessLevel: "write",
139
- supportsExample: true,
140
- supportsRaw: false,
141
- output: writeOutput,
142
- },
143
- "automations trigger get": {
144
- command: "automations trigger get",
145
- accessLevel: "read",
146
- supportsExample: true,
147
- supportsRaw: false,
148
- output: readOutput,
149
- },
150
- "automations trigger set": {
151
- command: "automations trigger set",
152
- accessLevel: "write",
153
- supportsExample: true,
154
- supportsRaw: true,
155
- output: writeOutput,
156
- },
157
- "automations actions list": {
158
- command: "automations actions list",
159
- accessLevel: "read",
160
- supportsExample: true,
161
- supportsRaw: false,
162
- output: readOutput,
163
- },
164
- "automations actions add": {
165
- command: "automations actions add",
166
- accessLevel: "write",
167
- supportsExample: true,
168
- supportsRaw: true,
169
- output: writeOutput,
170
- },
171
- "automations actions update": {
172
- command: "automations actions update",
173
- accessLevel: "write",
174
- supportsExample: true,
175
- supportsRaw: true,
176
- output: writeOutput,
177
- },
178
- "automations actions delete": {
179
- command: "automations actions delete",
180
- accessLevel: "destructive",
181
- supportsExample: true,
182
- supportsRaw: false,
183
- output: writeOutput,
184
- },
185
- "automations flow get": {
186
- command: "automations flow get",
187
- accessLevel: "read",
188
- supportsExample: true,
189
- supportsRaw: false,
190
- output: readOutput,
191
- },
192
- "automations flow set": {
193
- command: "automations flow set",
194
- accessLevel: "write",
195
- supportsExample: true,
196
- supportsRaw: false,
197
- output: writeOutput,
198
- },
199
- "automations webhook get": {
200
- command: "automations webhook get",
201
- accessLevel: "read",
202
- supportsExample: true,
203
- supportsRaw: false,
204
- output: readOutput,
205
- },
206
- "automations webhook set": {
207
- command: "automations webhook set",
208
- accessLevel: "write",
209
- supportsExample: true,
210
- supportsRaw: true,
211
- output: writeOutput,
212
- },
213
- "automations webhook delete": {
214
- command: "automations webhook delete",
215
- accessLevel: "destructive",
216
- supportsExample: true,
217
- supportsRaw: false,
218
- output: writeOutput,
219
- },
220
- "automations plugins list": {
221
- command: "automations plugins list",
222
- accessLevel: "read",
223
- supportsExample: true,
224
- supportsRaw: false,
225
- output: readOutput,
226
- },
227
- "automations plugins get": {
228
- command: "automations plugins get",
229
- accessLevel: "read",
230
- supportsExample: true,
231
- supportsRaw: false,
232
- output: readOutput,
233
- },
234
- "automations connections list": {
235
- command: "automations connections list",
236
- accessLevel: "read",
237
- supportsExample: true,
238
- supportsRaw: false,
239
- output: readOutput,
240
- },
241
- "automations connections get": {
242
- command: "automations connections get",
243
- accessLevel: "read",
244
- supportsExample: true,
245
- supportsRaw: false,
246
- output: readOutput,
247
- },
248
- "automations connections create": {
249
- command: "automations connections create",
250
- accessLevel: "write",
251
- supportsExample: true,
252
- supportsRaw: false,
253
- output: writeOutput,
254
- },
255
- "automations connections update": {
256
- command: "automations connections update",
257
- accessLevel: "write",
258
- supportsExample: true,
259
- supportsRaw: false,
260
- output: writeOutput,
261
- },
262
- "automations connections delete": {
263
- command: "automations connections delete",
264
- accessLevel: "destructive",
265
- supportsExample: true,
266
- supportsRaw: false,
267
- output: writeOutput,
268
- },
269
- "displays list": {
270
- command: "displays list",
271
- accessLevel: "read",
272
- supportsExample: true,
273
- supportsRaw: false,
274
- output: readOutput,
275
- },
276
- "displays get": {
277
- command: "displays get",
278
- accessLevel: "read",
279
- supportsExample: true,
280
- supportsRaw: false,
281
- output: readOutput,
282
- },
283
- "displays create": {
284
- command: "displays create",
285
- accessLevel: "write",
286
- supportsExample: true,
287
- supportsRaw: false,
288
- output: writeOutput,
289
- },
290
- "displays update": {
291
- command: "displays update",
292
- accessLevel: "write",
293
- supportsExample: true,
294
- supportsRaw: false,
295
- output: writeOutput,
296
- },
297
- "displays delete": {
298
- command: "displays delete",
299
- accessLevel: "destructive",
300
- supportsExample: true,
301
- supportsRaw: false,
302
- output: writeOutput,
303
- },
304
- "displays folders list": {
305
- command: "displays folders list",
306
- accessLevel: "read",
307
- supportsExample: true,
308
- supportsRaw: false,
309
- output: readOutput,
310
- },
311
- "displays folders create": {
312
- command: "displays folders create",
313
- accessLevel: "write",
314
- supportsExample: true,
315
- supportsRaw: false,
316
- output: writeOutput,
317
- },
318
- "displays folders update": {
319
- command: "displays folders update",
320
- accessLevel: "write",
321
- supportsExample: true,
322
- supportsRaw: false,
323
- output: writeOutput,
324
- },
325
- "displays folders delete": {
326
- command: "displays folders delete",
327
- accessLevel: "destructive",
328
- supportsExample: true,
329
- supportsRaw: false,
330
- output: writeOutput,
331
- },
332
- "displays folders move": {
333
- command: "displays folders move",
334
- accessLevel: "write",
335
- supportsExample: true,
336
- supportsRaw: false,
337
- output: writeOutput,
338
- },
339
- "displays layout get": {
340
- command: "displays layout get",
341
- accessLevel: "read",
342
- supportsExample: true,
343
- supportsRaw: false,
344
- output: readOutput,
345
- },
346
- "displays layout update": {
347
- command: "displays layout update",
348
- accessLevel: "write",
349
- supportsExample: true,
350
- supportsRaw: false,
351
- output: writeOutput,
352
- },
353
- "displays tabs list": {
354
- command: "displays tabs list",
355
- accessLevel: "read",
356
- supportsExample: true,
357
- supportsRaw: false,
358
- output: readOutput,
359
- },
360
- "displays tabs create": {
361
- command: "displays tabs create",
362
- accessLevel: "write",
363
- supportsExample: true,
364
- supportsRaw: false,
365
- output: writeOutput,
366
- },
367
- "displays tabs update": {
368
- command: "displays tabs update",
369
- accessLevel: "write",
370
- supportsExample: true,
371
- supportsRaw: false,
372
- output: writeOutput,
373
- },
374
- "displays tabs delete": {
375
- command: "displays tabs delete",
376
- accessLevel: "destructive",
377
- supportsExample: true,
378
- supportsRaw: false,
379
- output: writeOutput,
380
- },
381
- "displays variables list": {
382
- command: "displays variables list",
383
- accessLevel: "read",
384
- supportsExample: true,
385
- supportsRaw: false,
386
- output: readOutput,
387
- },
388
- "displays variables get": {
389
- command: "displays variables get",
390
- accessLevel: "read",
391
- supportsExample: true,
392
- supportsRaw: false,
393
- output: readOutput,
394
- },
395
- "displays variables create": {
396
- command: "displays variables create",
397
- accessLevel: "write",
398
- supportsExample: true,
399
- supportsRaw: true,
400
- output: writeOutput,
401
- },
402
- "displays variables update": {
403
- command: "displays variables update",
404
- accessLevel: "write",
405
- supportsExample: true,
406
- supportsRaw: true,
407
- output: writeOutput,
408
- },
409
- "displays variables delete": {
410
- command: "displays variables delete",
411
- accessLevel: "destructive",
412
- supportsExample: true,
413
- supportsRaw: false,
414
- output: writeOutput,
415
- },
416
- "displays widgets list": {
417
- command: "displays widgets list",
418
- accessLevel: "read",
419
- supportsExample: true,
420
- supportsRaw: false,
421
- output: readOutput,
422
- },
423
- "displays widgets get": {
424
- command: "displays widgets get",
425
- accessLevel: "read",
426
- supportsExample: true,
427
- supportsRaw: false,
428
- output: readOutput,
429
- },
430
- "displays widgets create": {
431
- command: "displays widgets create",
432
- accessLevel: "write",
433
- supportsExample: true,
434
- supportsRaw: true,
435
- output: writeOutput,
436
- },
437
- "displays widgets update": {
438
- command: "displays widgets update",
439
- accessLevel: "write",
440
- supportsExample: true,
441
- supportsRaw: true,
442
- output: writeOutput,
443
- },
444
- "displays widgets delete": {
445
- command: "displays widgets delete",
446
- accessLevel: "destructive",
447
- supportsExample: true,
448
- supportsRaw: false,
449
- output: writeOutput,
450
- },
451
- "displays navigation-targets list": {
452
- command: "displays navigation-targets list",
453
- accessLevel: "read",
454
- supportsExample: true,
455
- supportsRaw: false,
456
- output: readOutput,
457
- },
458
- "displays navigation-targets create": {
459
- command: "displays navigation-targets create",
460
- accessLevel: "write",
461
- supportsExample: true,
462
- supportsRaw: false,
463
- output: writeOutput,
464
- },
465
- "displays navigation-targets update": {
466
- command: "displays navigation-targets update",
467
- accessLevel: "write",
468
- supportsExample: true,
469
- supportsRaw: false,
470
- output: writeOutput,
471
- },
472
- "displays navigation-targets delete": {
473
- command: "displays navigation-targets delete",
474
- accessLevel: "destructive",
475
- supportsExample: true,
476
- supportsRaw: false,
477
- output: writeOutput,
478
- },
479
- "displays cross-widget-filter get": {
480
- command: "displays cross-widget-filter get",
481
- accessLevel: "read",
482
- supportsExample: true,
483
- supportsRaw: false,
484
- output: readOutput,
485
- },
486
- "displays cross-widget-filter set": {
487
- command: "displays cross-widget-filter set",
488
- accessLevel: "write",
489
- supportsExample: true,
490
- supportsRaw: true,
491
- output: writeOutput,
492
- },
493
- "displays cross-widget-filter delete": {
494
- command: "displays cross-widget-filter delete",
495
- accessLevel: "destructive",
496
- supportsExample: true,
497
- supportsRaw: false,
498
- output: writeOutput,
499
- },
500
- "document-templates list": {
501
- command: "document-templates list",
502
- accessLevel: "read",
503
- supportsExample: true,
504
- supportsRaw: false,
505
- output: readOutput,
506
- },
507
- "document-templates get": {
508
- command: "document-templates get",
509
- accessLevel: "read",
510
- supportsExample: true,
511
- supportsRaw: false,
512
- output: readOutput,
513
- },
514
- "document-templates create": {
515
- command: "document-templates create",
516
- accessLevel: "write",
517
- supportsExample: true,
518
- supportsRaw: true,
519
- output: writeOutput,
520
- },
521
- "document-templates update": {
522
- command: "document-templates update",
523
- accessLevel: "write",
524
- supportsExample: true,
525
- supportsRaw: false,
526
- output: writeOutput,
527
- },
528
- "document-templates delete": {
529
- command: "document-templates delete",
530
- accessLevel: "destructive",
531
- supportsExample: true,
532
- supportsRaw: false,
533
- output: writeOutput,
534
- },
535
- "document-templates assets add": {
536
- command: "document-templates assets add",
537
- accessLevel: "write",
538
- supportsExample: true,
539
- supportsRaw: false,
540
- output: writeOutput,
541
- },
542
- "document-templates assets delete": {
543
- command: "document-templates assets delete",
544
- accessLevel: "destructive",
545
- supportsExample: true,
546
- supportsRaw: false,
547
- output: writeOutput,
548
- },
549
- "document-templates assets download": {
550
- command: "document-templates assets download",
551
- accessLevel: "read",
552
- supportsExample: true,
553
- supportsRaw: false,
554
- output: "binary",
555
- },
556
- "files upload": {
557
- command: "files upload",
558
- accessLevel: "write",
559
- supportsExample: true,
560
- supportsRaw: false,
561
- output: "json-only",
562
- },
563
- "files download": {
564
- command: "files download",
565
- accessLevel: "read",
566
- supportsExample: true,
567
- supportsRaw: false,
568
- output: "binary",
569
- },
570
- "files delete": {
571
- command: "files delete",
572
- accessLevel: "destructive",
573
- supportsExample: true,
574
- supportsRaw: false,
575
- output: "json-only",
576
- },
577
- "files storage": {
578
- command: "files storage",
579
- accessLevel: "read",
580
- supportsExample: true,
581
- supportsRaw: false,
582
- output: readOutput,
583
- },
584
- "navigation folders list": {
585
- command: "navigation folders list",
586
- accessLevel: "read",
587
- supportsExample: true,
588
- supportsRaw: false,
589
- output: readOutput,
590
- },
591
- "navigation folders get": {
592
- command: "navigation folders get",
593
- accessLevel: "read",
594
- supportsExample: true,
595
- supportsRaw: false,
596
- output: readOutput,
597
- },
598
- "navigation folders create": {
599
- command: "navigation folders create",
600
- accessLevel: "write",
601
- supportsExample: true,
602
- supportsRaw: false,
603
- output: writeOutput,
604
- },
605
- "navigation folders update": {
606
- command: "navigation folders update",
607
- accessLevel: "write",
608
- supportsExample: true,
609
- supportsRaw: false,
610
- output: writeOutput,
611
- },
612
- "navigation folders delete": {
613
- command: "navigation folders delete",
614
- accessLevel: "destructive",
615
- supportsExample: true,
616
- supportsRaw: false,
617
- output: writeOutput,
618
- },
619
- "navigation resources move": {
620
- command: "navigation resources move",
621
- accessLevel: "write",
622
- supportsExample: true,
623
- supportsRaw: false,
624
- output: writeOutput,
625
- },
626
- "profiles list": {
627
- command: "profiles list",
628
- accessLevel: "read",
629
- supportsExample: true,
630
- supportsRaw: false,
631
- output: readOutput,
632
- },
633
- "profiles get": {
634
- command: "profiles get",
635
- accessLevel: "read",
636
- supportsExample: true,
637
- supportsRaw: false,
638
- output: readOutput,
639
- },
640
- "profiles use": {
641
- command: "profiles use",
642
- accessLevel: "write",
643
- supportsExample: true,
644
- supportsRaw: false,
645
- output: writeOutput,
646
- },
647
- "profiles add": {
648
- command: "profiles add",
649
- accessLevel: "write",
650
- supportsExample: true,
651
- supportsRaw: false,
652
- output: writeOutput,
653
- },
654
- "profiles update": {
655
- command: "profiles update",
656
- accessLevel: "write",
657
- supportsExample: true,
658
- supportsRaw: false,
659
- output: writeOutput,
660
- },
661
- "profiles remove": {
662
- command: "profiles remove",
663
- accessLevel: "destructive",
664
- supportsExample: true,
665
- supportsRaw: false,
666
- output: writeOutput,
667
- },
668
- "schemas list": {
669
- command: "schemas list",
670
- accessLevel: "read",
671
- supportsExample: true,
672
- supportsRaw: false,
673
- output: readOutput,
674
- },
675
- "schemas get": {
676
- command: "schemas get",
677
- accessLevel: "read",
678
- supportsExample: true,
679
- supportsRaw: false,
680
- output: readOutput,
681
- },
682
- "schemas create": {
683
- command: "schemas create",
684
- accessLevel: "write",
685
- supportsExample: true,
686
- supportsRaw: false,
687
- output: writeOutput,
688
- },
689
- "schemas update": {
690
- command: "schemas update",
691
- accessLevel: "write",
692
- supportsExample: true,
693
- supportsRaw: false,
694
- output: writeOutput,
695
- },
696
- "schemas set-unique-fields": {
697
- command: "schemas set-unique-fields",
698
- accessLevel: "write",
699
- supportsExample: true,
700
- supportsRaw: false,
701
- output: writeOutput,
702
- },
703
- "schemas delete": {
704
- command: "schemas delete",
705
- accessLevel: "destructive",
706
- supportsExample: true,
707
- supportsRaw: false,
708
- output: writeOutput,
709
- },
710
- "schemas fields list": {
711
- command: "schemas fields list",
712
- accessLevel: "read",
713
- supportsExample: true,
714
- supportsRaw: false,
715
- output: readOutput,
716
- },
717
- "schemas fields get": {
718
- command: "schemas fields get",
719
- accessLevel: "read",
720
- supportsExample: true,
721
- supportsRaw: false,
722
- output: readOutput,
723
- },
724
- "schemas fields create": {
725
- command: "schemas fields create",
726
- accessLevel: "write",
727
- supportsExample: true,
728
- supportsRaw: true,
729
- output: writeOutput,
730
- },
731
- "schemas fields update": {
732
- command: "schemas fields update",
733
- accessLevel: "write",
734
- supportsExample: true,
735
- supportsRaw: true,
736
- output: writeOutput,
737
- },
738
- "schemas fields delete": {
739
- command: "schemas fields delete",
740
- accessLevel: "destructive",
741
- supportsExample: true,
742
- supportsRaw: false,
743
- output: writeOutput,
744
- },
745
- "records list": {
746
- command: "records list",
747
- accessLevel: "read",
748
- supportsExample: true,
749
- supportsRaw: false,
750
- output: readOutput,
751
- },
752
- "records query": {
753
- command: "records query",
754
- accessLevel: "read",
755
- supportsExample: true,
756
- supportsRaw: true,
757
- output: readOutput,
758
- },
759
- "records get": {
760
- command: "records get",
761
- accessLevel: "read",
762
- supportsExample: true,
763
- supportsRaw: false,
764
- output: readOutput,
765
- },
766
- "records create": {
767
- command: "records create",
768
- accessLevel: "write",
769
- supportsExample: true,
770
- supportsRaw: true,
771
- output: writeOutput,
772
- },
773
- "records update": {
774
- command: "records update",
775
- accessLevel: "write",
776
- supportsExample: true,
777
- supportsRaw: true,
778
- output: writeOutput,
779
- },
780
- "records delete": {
781
- command: "records delete",
782
- accessLevel: "destructive",
783
- supportsExample: true,
784
- supportsRaw: false,
785
- output: writeOutput,
786
- },
787
- "records clear": {
788
- command: "records clear",
789
- accessLevel: "destructive",
790
- supportsExample: true,
791
- supportsRaw: false,
792
- output: writeOutput,
793
- },
794
- "comments list": {
795
- command: "comments list",
796
- accessLevel: "read",
797
- supportsExample: true,
798
- supportsRaw: false,
799
- output: readOutput,
800
- },
801
- "comments create": {
802
- command: "comments create",
803
- accessLevel: "write",
804
- supportsExample: true,
805
- supportsRaw: true,
806
- output: writeOutput,
807
- },
808
- "logs list": {
809
- command: "logs list",
810
- accessLevel: "read",
811
- supportsExample: true,
812
- supportsRaw: false,
813
- output: readOutput,
814
- },
815
- "teamspace folders list": {
816
- command: "teamspace folders list",
817
- accessLevel: "read",
818
- supportsExample: true,
819
- supportsRaw: false,
820
- output: readOutput,
821
- },
822
- "teamspace folders get": {
823
- command: "teamspace folders get",
824
- accessLevel: "read",
825
- supportsExample: true,
826
- supportsRaw: false,
827
- output: readOutput,
828
- },
829
- "teamspace folders create": {
830
- command: "teamspace folders create",
831
- accessLevel: "write",
832
- supportsExample: true,
833
- supportsRaw: false,
834
- output: writeOutput,
835
- },
836
- "teamspace folders update": {
837
- command: "teamspace folders update",
838
- accessLevel: "write",
839
- supportsExample: true,
840
- supportsRaw: false,
841
- output: writeOutput,
842
- },
843
- "teamspace folders delete": {
844
- command: "teamspace folders delete",
845
- accessLevel: "destructive",
846
- supportsExample: true,
847
- supportsRaw: false,
848
- output: writeOutput,
849
- },
850
- "teamspace resources publish": {
851
- command: "teamspace resources publish",
852
- accessLevel: "write",
853
- supportsExample: true,
854
- supportsRaw: false,
855
- output: writeOutput,
856
- },
857
- "teamspace resources unpublish": {
858
- command: "teamspace resources unpublish",
859
- accessLevel: "write",
860
- supportsExample: true,
861
- supportsRaw: false,
862
- output: writeOutput,
863
- },
864
- } as const satisfies Record<string, CommandMeta>;
865
-
866
- export type CommandName = keyof typeof commandRegistry;
867
-
868
- export function getCommandMeta(command: string): CommandMeta | undefined {
869
- return command in commandRegistry
870
- ? commandRegistry[command as CommandName]
871
- : undefined;
872
- }
873
-
874
- export function listCommandMeta(): readonly CommandMeta[] {
875
- return Object.values(commandRegistry);
876
- }
877
-
878
- export function isCommandAllowedInReadOnly(command: string): boolean {
879
- const meta = getCommandMeta(command);
880
-
881
- return meta ? meta.accessLevel === "read" : true;
882
- }