@polterware/polter 0.4.2 → 0.5.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.
Files changed (45) hide show
  1. package/README.md +70 -184
  2. package/dist/api.js +62 -30
  3. package/dist/app-HGIGWI7F.js +393 -0
  4. package/dist/appPanel-EZOHLTBX.js +1365 -0
  5. package/dist/applier-OEXIUYYO.js +10 -0
  6. package/dist/chunk-3RG5ZIWI.js +10 -0
  7. package/dist/chunk-45CQFZU7.js +262 -0
  8. package/dist/chunk-57CZSEY5.js +5398 -0
  9. package/dist/chunk-6IBRTRLX.js +257 -0
  10. package/dist/chunk-AK3NTS3Y.js +220 -0
  11. package/dist/chunk-BGT5TT2A.js +32 -0
  12. package/dist/chunk-BIN7BDA2.js +77 -0
  13. package/dist/chunk-E2B5FFBU.js +81 -0
  14. package/dist/chunk-EAMHFQKU.js +222 -0
  15. package/dist/chunk-ELSIHPJL.js +455 -0
  16. package/dist/{chunk-XCCKD3RZ.js → chunk-GCS7JEYU.js} +7 -3
  17. package/dist/chunk-GKROVUDG.js +15 -0
  18. package/dist/chunk-GVIKF6UI.js +738 -0
  19. package/dist/chunk-JQB2A3CA.js +72 -0
  20. package/dist/chunk-KEGROLGX.js +50 -0
  21. package/dist/chunk-OKHPN6X7.js +49 -0
  22. package/dist/chunk-RVMOIUSL.js +22 -0
  23. package/dist/chunk-TD6YNU6L.js +22 -0
  24. package/dist/chunk-U64WZOJ3.js +101 -0
  25. package/dist/chunk-U6725U7K.js +138 -0
  26. package/dist/chunk-XNRIN3VM.js +125 -0
  27. package/dist/chunk-ZU5VZHYD.js +28 -0
  28. package/dist/commands-BIIWGCVS.js +15 -0
  29. package/dist/editor-AUFJZ4PE.js +11 -0
  30. package/dist/engine-EZQ26HDJ.js +11 -0
  31. package/dist/globalConf-AGMMIKSL.js +7 -0
  32. package/dist/index.js +49 -7601
  33. package/dist/ipcServer-HXOPKNBP.js +10 -0
  34. package/dist/mcp.js +182 -13892
  35. package/dist/mcpInstaller-J2AGFNWR.js +19 -0
  36. package/dist/parser-4ZBGSI2U.js +10 -0
  37. package/dist/planner-ZVBA66V6.js +9 -0
  38. package/dist/processManager-6T5DBURV.js +37 -0
  39. package/dist/projectConfig-TRCJS3VI.js +21 -0
  40. package/dist/skillSetup-ZQEHJ5ZG.js +14 -0
  41. package/dist/status-QMRCV4XJ.js +8 -0
  42. package/dist/storage-C3D7TLJW.js +17 -0
  43. package/dist/toolResolver-A2BUT3NK.js +17 -0
  44. package/package.json +28 -3
  45. package/dist/chunk-CWBIXRZP.js +0 -2607
@@ -0,0 +1,738 @@
1
+ // src/data/commands/supabase.ts
2
+ var supabaseCommands = [
3
+ // Quick Start
4
+ {
5
+ id: "supabase:bootstrap",
6
+ tool: "supabase",
7
+ base: ["bootstrap"],
8
+ label: "bootstrap",
9
+ hint: "Bootstrap from a starter template",
10
+ interactive: true
11
+ },
12
+ {
13
+ id: "supabase:init",
14
+ tool: "supabase",
15
+ base: ["init"],
16
+ label: "init",
17
+ hint: "Initialize a local project",
18
+ interactive: true
19
+ },
20
+ {
21
+ id: "supabase:login",
22
+ tool: "supabase",
23
+ base: ["login"],
24
+ label: "login",
25
+ hint: "Authenticate with access token",
26
+ interactive: true
27
+ },
28
+ {
29
+ id: "supabase:logout",
30
+ tool: "supabase",
31
+ base: ["logout"],
32
+ label: "logout",
33
+ hint: "Remove local auth token"
34
+ },
35
+ // Local Dev
36
+ {
37
+ id: "supabase:start",
38
+ tool: "supabase",
39
+ base: ["start"],
40
+ label: "start",
41
+ hint: "Start local Supabase containers"
42
+ },
43
+ {
44
+ id: "supabase:stop",
45
+ tool: "supabase",
46
+ base: ["stop"],
47
+ label: "stop",
48
+ hint: "Stop local Supabase containers"
49
+ },
50
+ {
51
+ id: "supabase:status",
52
+ tool: "supabase",
53
+ base: ["status"],
54
+ label: "status",
55
+ hint: "Show container status"
56
+ },
57
+ {
58
+ id: "supabase:db",
59
+ tool: "supabase",
60
+ base: ["db"],
61
+ label: "db",
62
+ hint: "Manage Postgres databases",
63
+ suggestedArgs: [
64
+ { value: "pull", label: "pull", hint: "Pull schema from remote", args: ["pull"] },
65
+ { value: "push", label: "push", hint: "Push local migrations", args: ["push"] },
66
+ { value: "reset", label: "reset", hint: "Reset local database", args: ["reset"] },
67
+ { value: "dump", label: "dump", hint: "Dump schema/data", args: ["dump"] },
68
+ { value: "diff", label: "diff", hint: "Show migration diff", args: ["diff"] },
69
+ { value: "lint", label: "lint", hint: "Lint SQL migrations", args: ["lint"] }
70
+ ]
71
+ },
72
+ {
73
+ id: "supabase:migration",
74
+ tool: "supabase",
75
+ base: ["migration"],
76
+ label: "migration",
77
+ hint: "Manage migration scripts",
78
+ suggestedArgs: [
79
+ { value: "new", label: "new <name>", hint: "Create migration file", args: ["new"] },
80
+ { value: "up", label: "up", hint: "Apply pending migrations", args: ["up"] },
81
+ { value: "down", label: "down", hint: "Rollback last migration", args: ["down"] },
82
+ { value: "list", label: "list", hint: "List local migrations", args: ["list"] },
83
+ { value: "repair", label: "repair", hint: "Repair migration history", args: ["repair"] },
84
+ { value: "fetch", label: "fetch", hint: "Fetch migration history", args: ["fetch"] }
85
+ ]
86
+ },
87
+ {
88
+ id: "supabase:seed",
89
+ tool: "supabase",
90
+ base: ["seed"],
91
+ label: "seed",
92
+ hint: "Seed from config.toml",
93
+ suggestedArgs: [
94
+ { value: "run", label: "run", hint: "Run configured seed file", args: ["run"] }
95
+ ]
96
+ },
97
+ {
98
+ id: "supabase:test",
99
+ tool: "supabase",
100
+ base: ["test"],
101
+ label: "test",
102
+ hint: "Run tests on local stack"
103
+ },
104
+ // Inspect & Generate
105
+ {
106
+ id: "supabase:inspect",
107
+ tool: "supabase",
108
+ base: ["inspect"],
109
+ label: "inspect",
110
+ hint: "Inspect project resources"
111
+ },
112
+ {
113
+ id: "supabase:gen",
114
+ tool: "supabase",
115
+ base: ["gen"],
116
+ label: "gen",
117
+ hint: "Run code generation tools"
118
+ },
119
+ {
120
+ id: "supabase:services",
121
+ tool: "supabase",
122
+ base: ["services"],
123
+ label: "services",
124
+ hint: "Show service versions"
125
+ },
126
+ {
127
+ id: "supabase:link",
128
+ tool: "supabase",
129
+ base: ["link"],
130
+ label: "link",
131
+ hint: "Link to remote project",
132
+ interactive: true
133
+ },
134
+ {
135
+ id: "supabase:unlink",
136
+ tool: "supabase",
137
+ base: ["unlink"],
138
+ label: "unlink",
139
+ hint: "Unlink remote project"
140
+ },
141
+ // Cloud Management
142
+ {
143
+ id: "supabase:projects",
144
+ tool: "supabase",
145
+ base: ["projects"],
146
+ label: "projects",
147
+ hint: "Manage Supabase projects",
148
+ suggestedArgs: [
149
+ { value: "list", label: "list", hint: "List projects", args: ["list"] },
150
+ { value: "create", label: "create", hint: "Create project", args: ["create"] },
151
+ { value: "delete", label: "delete", hint: "Delete project", args: ["delete"] }
152
+ ]
153
+ },
154
+ {
155
+ id: "supabase:functions",
156
+ tool: "supabase",
157
+ base: ["functions"],
158
+ label: "functions",
159
+ hint: "Manage Edge Functions",
160
+ suggestedArgs: [
161
+ { value: "list", label: "list", hint: "List functions", args: ["list"] },
162
+ { value: "new", label: "new <name>", hint: "Create a function", args: ["new"] },
163
+ { value: "serve", label: "serve", hint: "Serve functions locally", args: ["serve"] },
164
+ { value: "deploy", label: "deploy <name>", hint: "Deploy function", args: ["deploy"] },
165
+ { value: "delete", label: "delete <name>", hint: "Delete function", args: ["delete"] }
166
+ ]
167
+ },
168
+ {
169
+ id: "supabase:secrets",
170
+ tool: "supabase",
171
+ base: ["secrets"],
172
+ label: "secrets",
173
+ hint: "Manage project secrets"
174
+ },
175
+ {
176
+ id: "supabase:config",
177
+ tool: "supabase",
178
+ base: ["config"],
179
+ label: "config",
180
+ hint: "Manage project configuration"
181
+ },
182
+ {
183
+ id: "supabase:storage",
184
+ tool: "supabase",
185
+ base: ["storage"],
186
+ label: "storage",
187
+ hint: "Manage Storage objects",
188
+ suggestedArgs: [
189
+ { value: "ls", label: "ls", hint: "List storage objects", args: ["ls"] },
190
+ { value: "cp", label: "cp", hint: "Copy storage object", args: ["cp"] },
191
+ { value: "mv", label: "mv", hint: "Move storage object", args: ["mv"] },
192
+ { value: "rm", label: "rm", hint: "Remove storage object", args: ["rm"] }
193
+ ]
194
+ },
195
+ // Networking & Security
196
+ {
197
+ id: "supabase:domains",
198
+ tool: "supabase",
199
+ base: ["domains"],
200
+ label: "domains",
201
+ hint: "Manage custom domains"
202
+ },
203
+ {
204
+ id: "supabase:ssl-enforcement",
205
+ tool: "supabase",
206
+ base: ["ssl-enforcement"],
207
+ label: "ssl-enforcement",
208
+ hint: "Manage SSL config"
209
+ },
210
+ {
211
+ id: "supabase:network-bans",
212
+ tool: "supabase",
213
+ base: ["network-bans"],
214
+ label: "network-bans",
215
+ hint: "Manage network bans"
216
+ },
217
+ {
218
+ id: "supabase:network-restrictions",
219
+ tool: "supabase",
220
+ base: ["network-restrictions"],
221
+ label: "network-restrictions",
222
+ hint: "Manage network restrictions"
223
+ },
224
+ {
225
+ id: "supabase:vanity-subdomains",
226
+ tool: "supabase",
227
+ base: ["vanity-subdomains"],
228
+ label: "vanity-subdomains",
229
+ hint: "Manage vanity subdomains"
230
+ },
231
+ {
232
+ id: "supabase:encryption",
233
+ tool: "supabase",
234
+ base: ["encryption"],
235
+ label: "encryption",
236
+ hint: "Manage encryption keys"
237
+ },
238
+ // Organizations & Admin
239
+ {
240
+ id: "supabase:orgs",
241
+ tool: "supabase",
242
+ base: ["orgs"],
243
+ label: "orgs",
244
+ hint: "Manage organizations",
245
+ suggestedArgs: [
246
+ { value: "list", label: "list", hint: "List organizations", args: ["list"] },
247
+ { value: "create", label: "create", hint: "Create organization", args: ["create"] }
248
+ ]
249
+ },
250
+ {
251
+ id: "supabase:sso",
252
+ tool: "supabase",
253
+ base: ["sso"],
254
+ label: "sso",
255
+ hint: "Manage Single Sign-On"
256
+ },
257
+ {
258
+ id: "supabase:branches",
259
+ tool: "supabase",
260
+ base: ["branches"],
261
+ label: "branches",
262
+ hint: "Manage preview branches"
263
+ },
264
+ {
265
+ id: "supabase:backups",
266
+ tool: "supabase",
267
+ base: ["backups"],
268
+ label: "backups",
269
+ hint: "Manage physical backups",
270
+ suggestedArgs: [
271
+ { value: "list", label: "list", hint: "List backups", args: ["list"] },
272
+ { value: "download", label: "download", hint: "Download backup", args: ["download"] }
273
+ ]
274
+ },
275
+ {
276
+ id: "supabase:snippets",
277
+ tool: "supabase",
278
+ base: ["snippets"],
279
+ label: "snippets",
280
+ hint: "Manage SQL snippets",
281
+ suggestedArgs: [
282
+ { value: "list", label: "list", hint: "List SQL snippets", args: ["list"] },
283
+ { value: "create", label: "create", hint: "Create SQL snippet", args: ["create"] },
284
+ { value: "delete", label: "delete", hint: "Delete SQL snippet", args: ["delete"] }
285
+ ]
286
+ },
287
+ {
288
+ id: "supabase:postgres-config",
289
+ tool: "supabase",
290
+ base: ["postgres-config"],
291
+ label: "postgres-config",
292
+ hint: "Manage Postgres config"
293
+ },
294
+ // Utilities
295
+ {
296
+ id: "supabase:completion",
297
+ tool: "supabase",
298
+ base: ["completion"],
299
+ label: "completion",
300
+ hint: "Generate shell completion script"
301
+ },
302
+ {
303
+ id: "supabase:help",
304
+ tool: "supabase",
305
+ base: ["help"],
306
+ label: "help",
307
+ hint: "Help about any command"
308
+ }
309
+ ];
310
+
311
+ // src/data/commands/gh.ts
312
+ var ghCommands = [
313
+ // Repository
314
+ {
315
+ id: "gh:repo:clone",
316
+ tool: "gh",
317
+ base: ["repo", "clone"],
318
+ label: "repo clone",
319
+ hint: "Clone a repository"
320
+ },
321
+ {
322
+ id: "gh:repo:create",
323
+ tool: "gh",
324
+ base: ["repo", "create"],
325
+ label: "repo create",
326
+ hint: "Create a new repository",
327
+ interactive: true
328
+ },
329
+ {
330
+ id: "gh:repo:view",
331
+ tool: "gh",
332
+ base: ["repo", "view"],
333
+ label: "repo view",
334
+ hint: "View repository details"
335
+ },
336
+ {
337
+ id: "gh:repo:list",
338
+ tool: "gh",
339
+ base: ["repo", "list"],
340
+ label: "repo list",
341
+ hint: "List your repositories"
342
+ },
343
+ // Pull Requests
344
+ {
345
+ id: "gh:pr:create",
346
+ tool: "gh",
347
+ base: ["pr", "create"],
348
+ label: "pr create",
349
+ hint: "Create a pull request"
350
+ },
351
+ {
352
+ id: "gh:pr:list",
353
+ tool: "gh",
354
+ base: ["pr", "list"],
355
+ label: "pr list",
356
+ hint: "List pull requests"
357
+ },
358
+ {
359
+ id: "gh:pr:view",
360
+ tool: "gh",
361
+ base: ["pr", "view"],
362
+ label: "pr view",
363
+ hint: "View a pull request"
364
+ },
365
+ {
366
+ id: "gh:pr:merge",
367
+ tool: "gh",
368
+ base: ["pr", "merge"],
369
+ label: "pr merge",
370
+ hint: "Merge a pull request"
371
+ },
372
+ {
373
+ id: "gh:pr:checkout",
374
+ tool: "gh",
375
+ base: ["pr", "checkout"],
376
+ label: "pr checkout",
377
+ hint: "Check out a pull request"
378
+ },
379
+ {
380
+ id: "gh:pr:review",
381
+ tool: "gh",
382
+ base: ["pr", "review"],
383
+ label: "pr review",
384
+ hint: "Review a pull request",
385
+ suggestedArgs: [
386
+ { value: "approve", label: "Approve", hint: "Approve the PR", args: ["--approve"] },
387
+ { value: "comment", label: "Comment", hint: "Leave a comment", args: ["--comment"] },
388
+ { value: "request-changes", label: "Request Changes", hint: "Request changes", args: ["--request-changes"] }
389
+ ]
390
+ },
391
+ // Issues
392
+ {
393
+ id: "gh:issue:create",
394
+ tool: "gh",
395
+ base: ["issue", "create"],
396
+ label: "issue create",
397
+ hint: "Create an issue"
398
+ },
399
+ {
400
+ id: "gh:issue:list",
401
+ tool: "gh",
402
+ base: ["issue", "list"],
403
+ label: "issue list",
404
+ hint: "List issues"
405
+ },
406
+ {
407
+ id: "gh:issue:view",
408
+ tool: "gh",
409
+ base: ["issue", "view"],
410
+ label: "issue view",
411
+ hint: "View an issue"
412
+ },
413
+ {
414
+ id: "gh:issue:close",
415
+ tool: "gh",
416
+ base: ["issue", "close"],
417
+ label: "issue close",
418
+ hint: "Close an issue"
419
+ },
420
+ // Workflows & Runs
421
+ {
422
+ id: "gh:workflow:list",
423
+ tool: "gh",
424
+ base: ["workflow", "list"],
425
+ label: "workflow list",
426
+ hint: "List workflows"
427
+ },
428
+ {
429
+ id: "gh:workflow:run",
430
+ tool: "gh",
431
+ base: ["workflow", "run"],
432
+ label: "workflow run",
433
+ hint: "Run a workflow"
434
+ },
435
+ {
436
+ id: "gh:workflow:view",
437
+ tool: "gh",
438
+ base: ["workflow", "view"],
439
+ label: "workflow view",
440
+ hint: "View a workflow"
441
+ },
442
+ {
443
+ id: "gh:run:list",
444
+ tool: "gh",
445
+ base: ["run", "list"],
446
+ label: "run list",
447
+ hint: "List workflow runs"
448
+ },
449
+ {
450
+ id: "gh:run:view",
451
+ tool: "gh",
452
+ base: ["run", "view"],
453
+ label: "run view",
454
+ hint: "View a workflow run"
455
+ },
456
+ {
457
+ id: "gh:run:watch",
458
+ tool: "gh",
459
+ base: ["run", "watch"],
460
+ label: "run watch",
461
+ hint: "Watch a workflow run"
462
+ },
463
+ // Releases
464
+ {
465
+ id: "gh:release:create",
466
+ tool: "gh",
467
+ base: ["release", "create"],
468
+ label: "release create",
469
+ hint: "Create a release"
470
+ },
471
+ {
472
+ id: "gh:release:list",
473
+ tool: "gh",
474
+ base: ["release", "list"],
475
+ label: "release list",
476
+ hint: "List releases"
477
+ },
478
+ {
479
+ id: "gh:release:view",
480
+ tool: "gh",
481
+ base: ["release", "view"],
482
+ label: "release view",
483
+ hint: "View a release"
484
+ },
485
+ // Auth
486
+ {
487
+ id: "gh:auth:login",
488
+ tool: "gh",
489
+ base: ["auth", "login"],
490
+ label: "auth login",
491
+ hint: "Log in to GitHub",
492
+ interactive: true
493
+ },
494
+ {
495
+ id: "gh:auth:status",
496
+ tool: "gh",
497
+ base: ["auth", "status"],
498
+ label: "auth status",
499
+ hint: "View auth status"
500
+ }
501
+ ];
502
+
503
+ // src/data/commands/vercel.ts
504
+ var vercelCommands = [
505
+ // Deploy
506
+ {
507
+ id: "vercel:deploy",
508
+ tool: "vercel",
509
+ base: ["deploy"],
510
+ label: "deploy",
511
+ hint: "Deploy to Vercel"
512
+ },
513
+ {
514
+ id: "vercel:deploy:prod",
515
+ tool: "vercel",
516
+ base: ["deploy", "--prod"],
517
+ label: "deploy --prod",
518
+ hint: "Deploy to production"
519
+ },
520
+ {
521
+ id: "vercel:promote",
522
+ tool: "vercel",
523
+ base: ["promote"],
524
+ label: "promote",
525
+ hint: "Promote a deployment"
526
+ },
527
+ {
528
+ id: "vercel:rollback",
529
+ tool: "vercel",
530
+ base: ["rollback"],
531
+ label: "rollback",
532
+ hint: "Rollback to previous deployment"
533
+ },
534
+ // Domains
535
+ {
536
+ id: "vercel:domains:list",
537
+ tool: "vercel",
538
+ base: ["domains", "ls"],
539
+ label: "domains ls",
540
+ hint: "List domains"
541
+ },
542
+ {
543
+ id: "vercel:domains:add",
544
+ tool: "vercel",
545
+ base: ["domains", "add"],
546
+ label: "domains add",
547
+ hint: "Add a domain"
548
+ },
549
+ {
550
+ id: "vercel:domains:rm",
551
+ tool: "vercel",
552
+ base: ["domains", "rm"],
553
+ label: "domains rm",
554
+ hint: "Remove a domain"
555
+ },
556
+ // Environment Variables
557
+ {
558
+ id: "vercel:env:ls",
559
+ tool: "vercel",
560
+ base: ["env", "ls"],
561
+ label: "env ls",
562
+ hint: "List environment variables"
563
+ },
564
+ {
565
+ id: "vercel:env:add",
566
+ tool: "vercel",
567
+ base: ["env", "add"],
568
+ label: "env add",
569
+ hint: "Add an environment variable"
570
+ },
571
+ {
572
+ id: "vercel:env:rm",
573
+ tool: "vercel",
574
+ base: ["env", "rm"],
575
+ label: "env rm",
576
+ hint: "Remove an environment variable"
577
+ },
578
+ {
579
+ id: "vercel:env:pull",
580
+ tool: "vercel",
581
+ base: ["env", "pull"],
582
+ label: "env pull",
583
+ hint: "Pull env vars to .env file"
584
+ },
585
+ // Project
586
+ {
587
+ id: "vercel:project:ls",
588
+ tool: "vercel",
589
+ base: ["project", "ls"],
590
+ label: "project ls",
591
+ hint: "List projects"
592
+ },
593
+ {
594
+ id: "vercel:project:add",
595
+ tool: "vercel",
596
+ base: ["project", "add"],
597
+ label: "project add",
598
+ hint: "Add a project"
599
+ },
600
+ {
601
+ id: "vercel:project:rm",
602
+ tool: "vercel",
603
+ base: ["project", "rm"],
604
+ label: "project rm",
605
+ hint: "Remove a project"
606
+ },
607
+ // Setup
608
+ {
609
+ id: "vercel:link",
610
+ tool: "vercel",
611
+ base: ["link"],
612
+ label: "link",
613
+ hint: "Link to a Vercel project",
614
+ interactive: true
615
+ },
616
+ {
617
+ id: "vercel:login",
618
+ tool: "vercel",
619
+ base: ["login"],
620
+ label: "login",
621
+ hint: "Log in to Vercel",
622
+ interactive: true
623
+ },
624
+ {
625
+ id: "vercel:whoami",
626
+ tool: "vercel",
627
+ base: ["whoami"],
628
+ label: "whoami",
629
+ hint: "Show current user"
630
+ },
631
+ // Logs & Inspect
632
+ {
633
+ id: "vercel:logs",
634
+ tool: "vercel",
635
+ base: ["logs"],
636
+ label: "logs",
637
+ hint: "View deployment logs"
638
+ },
639
+ {
640
+ id: "vercel:inspect",
641
+ tool: "vercel",
642
+ base: ["inspect"],
643
+ label: "inspect",
644
+ hint: "Inspect a deployment"
645
+ },
646
+ {
647
+ id: "vercel:ls",
648
+ tool: "vercel",
649
+ base: ["ls"],
650
+ label: "ls",
651
+ hint: "List deployments"
652
+ }
653
+ ];
654
+
655
+ // src/data/commands/git.ts
656
+ var gitCommands = [
657
+ { id: "git:status", tool: "git", base: ["status"], label: "status", hint: "Show working tree status" },
658
+ { id: "git:add", tool: "git", base: ["add"], label: "add", hint: "Stage changes" },
659
+ { id: "git:commit", tool: "git", base: ["commit"], label: "commit", hint: "Create a commit" },
660
+ { id: "git:push", tool: "git", base: ["push"], label: "push", hint: "Push to remote" },
661
+ { id: "git:pull", tool: "git", base: ["pull"], label: "pull", hint: "Pull from remote" },
662
+ { id: "git:checkout", tool: "git", base: ["checkout"], label: "checkout", hint: "Switch branches" },
663
+ { id: "git:branch", tool: "git", base: ["branch"], label: "branch", hint: "List or create branches" },
664
+ { id: "git:stash", tool: "git", base: ["stash"], label: "stash", hint: "Stash changes" },
665
+ { id: "git:diff", tool: "git", base: ["diff"], label: "diff", hint: "Show changes" },
666
+ { id: "git:log", tool: "git", base: ["log"], label: "log", hint: "View commit history" },
667
+ { id: "git:merge", tool: "git", base: ["merge"], label: "merge", hint: "Merge branches" }
668
+ ];
669
+
670
+ // src/data/commands/pkg.ts
671
+ var pkgCommands = [
672
+ // Publish & Version
673
+ { id: "pkg:publish", tool: "pkg", base: ["publish"], label: "publish", hint: "Publish package to registry" },
674
+ { id: "pkg:pack", tool: "pkg", base: ["pack"], label: "pack", hint: "Create tarball from package" },
675
+ { id: "pkg:version:patch", tool: "pkg", base: ["version", "patch"], label: "version patch", hint: "Bump patch version" },
676
+ { id: "pkg:version:minor", tool: "pkg", base: ["version", "minor"], label: "version minor", hint: "Bump minor version" },
677
+ { id: "pkg:version:major", tool: "pkg", base: ["version", "major"], label: "version major", hint: "Bump major version" },
678
+ { id: "pkg:login", tool: "pkg", base: ["login"], label: "login", hint: "Log in to registry" },
679
+ { id: "pkg:logout", tool: "pkg", base: ["logout"], label: "logout", hint: "Log out from registry" },
680
+ // Dependency Management
681
+ { id: "pkg:install", tool: "pkg", base: ["install"], label: "install", hint: "Install all dependencies" },
682
+ { id: "pkg:add", tool: "pkg", base: ["add"], label: "add", hint: "Add a dependency" },
683
+ { id: "pkg:remove", tool: "pkg", base: ["remove"], label: "remove", hint: "Remove a dependency" },
684
+ { id: "pkg:update", tool: "pkg", base: ["update"], label: "update", hint: "Update dependencies" },
685
+ { id: "pkg:outdated", tool: "pkg", base: ["outdated"], label: "outdated", hint: "List outdated packages" },
686
+ { id: "pkg:audit", tool: "pkg", base: ["audit"], label: "audit", hint: "Run security audit" },
687
+ { id: "pkg:ls", tool: "pkg", base: ["ls"], label: "ls", hint: "List installed packages" },
688
+ // Registry & Config
689
+ { id: "pkg:config:list", tool: "pkg", base: ["config", "list"], label: "config list", hint: "Show config" },
690
+ { id: "pkg:whoami", tool: "pkg", base: ["whoami"], label: "whoami", hint: "Show logged-in user" },
691
+ // Info & Registry
692
+ { id: "pkg:info", tool: "pkg", base: ["info"], label: "info", hint: "Show package info" },
693
+ { id: "pkg:search", tool: "pkg", base: ["search"], label: "search", hint: "Search packages in registry" },
694
+ { id: "pkg:init", tool: "pkg", base: ["init"], label: "init", hint: "Initialize a new package.json" }
695
+ ];
696
+
697
+ // src/data/commands/index.ts
698
+ var allCommands = [
699
+ ...supabaseCommands,
700
+ ...ghCommands,
701
+ ...vercelCommands,
702
+ ...gitCommands,
703
+ ...pkgCommands
704
+ ];
705
+ var commandById = new Map(allCommands.map((cmd) => [cmd.id, cmd]));
706
+ var commandByValue = new Map(
707
+ allCommands.map((cmd) => [getCommandValue(cmd), cmd])
708
+ );
709
+ function getCommandById(id) {
710
+ return commandById.get(id);
711
+ }
712
+ function getCommandsByTool(tool) {
713
+ return allCommands.filter((cmd) => cmd.tool === tool);
714
+ }
715
+ function getCommandValue(cmd) {
716
+ if (cmd.tool === "supabase") {
717
+ return cmd.base.join(" ");
718
+ }
719
+ return `${cmd.tool}:${cmd.base.join(" ")}`;
720
+ }
721
+ function findCommandByValue(value) {
722
+ const byId = commandById.get(value);
723
+ if (byId) return byId;
724
+ return commandByValue.get(value);
725
+ }
726
+
727
+ export {
728
+ supabaseCommands,
729
+ ghCommands,
730
+ vercelCommands,
731
+ gitCommands,
732
+ pkgCommands,
733
+ allCommands,
734
+ getCommandById,
735
+ getCommandsByTool,
736
+ getCommandValue,
737
+ findCommandByValue
738
+ };