@knowttl/artium-axi 0.0.43 → 0.0.44
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/bin/artium-axi.mjs +598 -59
- package/package.json +1 -1
package/bin/artium-axi.mjs
CHANGED
|
@@ -43,7 +43,7 @@ var init_package = __esm({
|
|
|
43
43
|
"package.json"() {
|
|
44
44
|
package_default = {
|
|
45
45
|
name: "artium-axi",
|
|
46
|
-
version: "0.0.
|
|
46
|
+
version: "0.0.44",
|
|
47
47
|
private: true,
|
|
48
48
|
license: "MIT",
|
|
49
49
|
type: "module",
|
|
@@ -72,6 +72,8 @@ var init_package = __esm({
|
|
|
72
72
|
"test:security": "vitest run --testNamePattern security --passWithNoTests",
|
|
73
73
|
lint: "tsc --noEmit",
|
|
74
74
|
"errors:generate": "node scripts/errors-reference.mjs --write",
|
|
75
|
+
"offered:generate": "node scripts/offered-commands.mjs",
|
|
76
|
+
"pin:freshness": "node scripts/pin-freshness.mjs",
|
|
75
77
|
check: "node scripts/errors-reference.mjs && pnpm lint && pnpm test && pnpm build && pnpm test:axi",
|
|
76
78
|
"hygiene:check": "node scripts/hygiene-check.mjs"
|
|
77
79
|
},
|
|
@@ -31362,18 +31364,29 @@ var init_gh_axi = __esm({
|
|
|
31362
31364
|
"stack",
|
|
31363
31365
|
"issue lock",
|
|
31364
31366
|
"issue unlock",
|
|
31367
|
+
"issue delete",
|
|
31365
31368
|
"project delete",
|
|
31369
|
+
"project field-create",
|
|
31370
|
+
"project field-delete",
|
|
31371
|
+
"project item-delete",
|
|
31366
31372
|
"pr checkout",
|
|
31367
31373
|
"repo clone",
|
|
31368
31374
|
"gist clone",
|
|
31375
|
+
"gist delete",
|
|
31369
31376
|
"run watch",
|
|
31370
31377
|
"run download",
|
|
31371
|
-
"
|
|
31378
|
+
"run delete",
|
|
31379
|
+
"release download",
|
|
31380
|
+
"release delete",
|
|
31381
|
+
"label delete",
|
|
31382
|
+
"variable delete",
|
|
31383
|
+
"secret set",
|
|
31384
|
+
"secret delete"
|
|
31372
31385
|
],
|
|
31373
31386
|
nativeWrites: "host-classified; exact operations, preview and confirmation",
|
|
31374
31387
|
inputs: {
|
|
31375
31388
|
stdin: "gist create/edit with filename only",
|
|
31376
|
-
files: "
|
|
31389
|
+
files: "release upload client files only"
|
|
31377
31390
|
}
|
|
31378
31391
|
},
|
|
31379
31392
|
discovery: {
|
|
@@ -31399,12 +31412,111 @@ var init_gh_axi = __esm({
|
|
|
31399
31412
|
"--limit",
|
|
31400
31413
|
"1"
|
|
31401
31414
|
],
|
|
31402
|
-
help: "gh-axi repo list [<owner>] [--limit <n>]\nManaged GitHub API access. Use -R OWNER/NAME for repository commands. Writes require an administrator-enabled exact operation, host preview and --confirm. api accepts [GET] <relative-path>; GraphQL and other methods are refused. Stdin only for gist create/edit with --filename;
|
|
31415
|
+
help: "gh-axi repo list [<owner>] [--limit <n>]\nManaged GitHub API access. Use -R OWNER/NAME for repository commands. Writes require an administrator-enabled exact operation, host preview and --confirm. api accepts [GET] <relative-path>; GraphQL and other methods are refused. Stdin only for gist create/edit with --filename; only release upload reads client files.\n"
|
|
31403
31416
|
},
|
|
31404
31417
|
suggestionFields: [
|
|
31405
31418
|
"help"
|
|
31406
31419
|
],
|
|
31407
31420
|
format: "TOON",
|
|
31421
|
+
upstreamCommands: [
|
|
31422
|
+
"pr list",
|
|
31423
|
+
"pr view",
|
|
31424
|
+
"pr create",
|
|
31425
|
+
"pr edit",
|
|
31426
|
+
"pr close",
|
|
31427
|
+
"pr merge",
|
|
31428
|
+
"pr review",
|
|
31429
|
+
"pr checks",
|
|
31430
|
+
"pr diff",
|
|
31431
|
+
"pr checkout",
|
|
31432
|
+
"pr ready",
|
|
31433
|
+
"pr reopen",
|
|
31434
|
+
"pr comment",
|
|
31435
|
+
"pr update-branch",
|
|
31436
|
+
"pr revert",
|
|
31437
|
+
"issue list",
|
|
31438
|
+
"issue view",
|
|
31439
|
+
"issue create",
|
|
31440
|
+
"issue edit",
|
|
31441
|
+
"issue close",
|
|
31442
|
+
"issue reopen",
|
|
31443
|
+
"issue comment",
|
|
31444
|
+
"issue delete",
|
|
31445
|
+
"issue lock",
|
|
31446
|
+
"issue unlock",
|
|
31447
|
+
"issue pin",
|
|
31448
|
+
"issue unpin",
|
|
31449
|
+
"issue transfer",
|
|
31450
|
+
"issue subissue add",
|
|
31451
|
+
"issue subissue remove",
|
|
31452
|
+
"issue subissue list",
|
|
31453
|
+
"project list",
|
|
31454
|
+
"project view",
|
|
31455
|
+
"project item-list",
|
|
31456
|
+
"project field-list",
|
|
31457
|
+
"project field-create",
|
|
31458
|
+
"project field-delete",
|
|
31459
|
+
"project item-add",
|
|
31460
|
+
"project item-create",
|
|
31461
|
+
"project item-edit",
|
|
31462
|
+
"project item-archive",
|
|
31463
|
+
"project item-delete",
|
|
31464
|
+
"project create",
|
|
31465
|
+
"project edit",
|
|
31466
|
+
"project close",
|
|
31467
|
+
"project copy",
|
|
31468
|
+
"project delete",
|
|
31469
|
+
"release list",
|
|
31470
|
+
"release view",
|
|
31471
|
+
"release create",
|
|
31472
|
+
"release edit",
|
|
31473
|
+
"release delete",
|
|
31474
|
+
"release download",
|
|
31475
|
+
"release upload",
|
|
31476
|
+
"secret list",
|
|
31477
|
+
"secret set",
|
|
31478
|
+
"secret delete",
|
|
31479
|
+
"variable list",
|
|
31480
|
+
"variable set",
|
|
31481
|
+
"variable delete",
|
|
31482
|
+
"run list",
|
|
31483
|
+
"run view",
|
|
31484
|
+
"run watch",
|
|
31485
|
+
"run rerun",
|
|
31486
|
+
"run cancel",
|
|
31487
|
+
"run delete",
|
|
31488
|
+
"run download",
|
|
31489
|
+
"gist list",
|
|
31490
|
+
"gist view",
|
|
31491
|
+
"gist edit",
|
|
31492
|
+
"gist rename",
|
|
31493
|
+
"gist create",
|
|
31494
|
+
"gist delete",
|
|
31495
|
+
"gist clone",
|
|
31496
|
+
"discussion list",
|
|
31497
|
+
"discussion view",
|
|
31498
|
+
"discussion comment",
|
|
31499
|
+
"label list",
|
|
31500
|
+
"label create",
|
|
31501
|
+
"label edit",
|
|
31502
|
+
"label delete",
|
|
31503
|
+
"repo view",
|
|
31504
|
+
"repo create",
|
|
31505
|
+
"repo edit",
|
|
31506
|
+
"repo clone",
|
|
31507
|
+
"repo fork",
|
|
31508
|
+
"repo list",
|
|
31509
|
+
"workflow list",
|
|
31510
|
+
"workflow view",
|
|
31511
|
+
"workflow run",
|
|
31512
|
+
"workflow enable",
|
|
31513
|
+
"workflow disable",
|
|
31514
|
+
"search issues",
|
|
31515
|
+
"search prs",
|
|
31516
|
+
"search repos",
|
|
31517
|
+
"search commits",
|
|
31518
|
+
"search code"
|
|
31519
|
+
],
|
|
31408
31520
|
commands: [
|
|
31409
31521
|
{
|
|
31410
31522
|
command: "issue list",
|
|
@@ -31912,6 +32024,30 @@ var init_gh_axi = __esm({
|
|
|
31912
32024
|
repository: true,
|
|
31913
32025
|
tier: "collaboration"
|
|
31914
32026
|
},
|
|
32027
|
+
{
|
|
32028
|
+
command: "issue subissue add",
|
|
32029
|
+
effect: "write",
|
|
32030
|
+
flags: {
|
|
32031
|
+
help: "boolean",
|
|
32032
|
+
repo: "value",
|
|
32033
|
+
confirm: "value"
|
|
32034
|
+
},
|
|
32035
|
+
positionals: "variadic",
|
|
32036
|
+
repository: true,
|
|
32037
|
+
tier: "collaboration"
|
|
32038
|
+
},
|
|
32039
|
+
{
|
|
32040
|
+
command: "issue subissue remove",
|
|
32041
|
+
effect: "write",
|
|
32042
|
+
flags: {
|
|
32043
|
+
help: "boolean",
|
|
32044
|
+
repo: "value",
|
|
32045
|
+
confirm: "value"
|
|
32046
|
+
},
|
|
32047
|
+
positionals: 2,
|
|
32048
|
+
repository: true,
|
|
32049
|
+
tier: "collaboration"
|
|
32050
|
+
},
|
|
31915
32051
|
{
|
|
31916
32052
|
command: "pr create",
|
|
31917
32053
|
effect: "write",
|
|
@@ -31969,6 +32105,31 @@ var init_gh_axi = __esm({
|
|
|
31969
32105
|
repository: true,
|
|
31970
32106
|
tier: "collaboration"
|
|
31971
32107
|
},
|
|
32108
|
+
{
|
|
32109
|
+
command: "pr close",
|
|
32110
|
+
effect: "write",
|
|
32111
|
+
flags: {
|
|
32112
|
+
help: "boolean",
|
|
32113
|
+
repo: "value",
|
|
32114
|
+
comment: "value",
|
|
32115
|
+
confirm: "value"
|
|
32116
|
+
},
|
|
32117
|
+
positionals: 1,
|
|
32118
|
+
repository: true,
|
|
32119
|
+
tier: "collaboration"
|
|
32120
|
+
},
|
|
32121
|
+
{
|
|
32122
|
+
command: "pr reopen",
|
|
32123
|
+
effect: "write",
|
|
32124
|
+
flags: {
|
|
32125
|
+
help: "boolean",
|
|
32126
|
+
repo: "value",
|
|
32127
|
+
confirm: "value"
|
|
32128
|
+
},
|
|
32129
|
+
positionals: 1,
|
|
32130
|
+
repository: true,
|
|
32131
|
+
tier: "collaboration"
|
|
32132
|
+
},
|
|
31972
32133
|
{
|
|
31973
32134
|
command: "pr ready",
|
|
31974
32135
|
effect: "write",
|
|
@@ -32361,6 +32522,18 @@ var init_gh_axi = __esm({
|
|
|
32361
32522
|
repository: true,
|
|
32362
32523
|
tier: "repository"
|
|
32363
32524
|
},
|
|
32525
|
+
{
|
|
32526
|
+
command: "issue unpin",
|
|
32527
|
+
effect: "write",
|
|
32528
|
+
flags: {
|
|
32529
|
+
help: "boolean",
|
|
32530
|
+
repo: "value",
|
|
32531
|
+
confirm: "value"
|
|
32532
|
+
},
|
|
32533
|
+
positionals: 1,
|
|
32534
|
+
repository: true,
|
|
32535
|
+
tier: "repository"
|
|
32536
|
+
},
|
|
32364
32537
|
{
|
|
32365
32538
|
command: "issue transfer",
|
|
32366
32539
|
effect: "write",
|
|
@@ -32373,6 +32546,74 @@ var init_gh_axi = __esm({
|
|
|
32373
32546
|
positionals: 1,
|
|
32374
32547
|
repository: true,
|
|
32375
32548
|
tier: "repository"
|
|
32549
|
+
},
|
|
32550
|
+
{
|
|
32551
|
+
command: "project create",
|
|
32552
|
+
effect: "write",
|
|
32553
|
+
flags: {
|
|
32554
|
+
help: "boolean",
|
|
32555
|
+
owner: "value",
|
|
32556
|
+
title: "value",
|
|
32557
|
+
confirm: "value"
|
|
32558
|
+
},
|
|
32559
|
+
positionals: 0,
|
|
32560
|
+
repository: false,
|
|
32561
|
+
tier: "repository"
|
|
32562
|
+
},
|
|
32563
|
+
{
|
|
32564
|
+
command: "project edit",
|
|
32565
|
+
effect: "write",
|
|
32566
|
+
flags: {
|
|
32567
|
+
help: "boolean",
|
|
32568
|
+
owner: "value",
|
|
32569
|
+
title: "value",
|
|
32570
|
+
description: "value",
|
|
32571
|
+
readme: "value",
|
|
32572
|
+
confirm: "value"
|
|
32573
|
+
},
|
|
32574
|
+
positionals: 1,
|
|
32575
|
+
repository: false,
|
|
32576
|
+
tier: "repository"
|
|
32577
|
+
},
|
|
32578
|
+
{
|
|
32579
|
+
command: "project close",
|
|
32580
|
+
effect: "write",
|
|
32581
|
+
flags: {
|
|
32582
|
+
help: "boolean",
|
|
32583
|
+
owner: "value",
|
|
32584
|
+
undo: "boolean",
|
|
32585
|
+
confirm: "value"
|
|
32586
|
+
},
|
|
32587
|
+
positionals: 1,
|
|
32588
|
+
repository: false,
|
|
32589
|
+
tier: "repository"
|
|
32590
|
+
},
|
|
32591
|
+
{
|
|
32592
|
+
command: "project copy",
|
|
32593
|
+
effect: "write",
|
|
32594
|
+
flags: {
|
|
32595
|
+
help: "boolean",
|
|
32596
|
+
"source-owner": "value",
|
|
32597
|
+
"target-owner": "value",
|
|
32598
|
+
title: "value",
|
|
32599
|
+
drafts: "boolean",
|
|
32600
|
+
confirm: "value"
|
|
32601
|
+
},
|
|
32602
|
+
positionals: 1,
|
|
32603
|
+
repository: false,
|
|
32604
|
+
tier: "repository"
|
|
32605
|
+
},
|
|
32606
|
+
{
|
|
32607
|
+
command: "release upload",
|
|
32608
|
+
effect: "write",
|
|
32609
|
+
flags: {
|
|
32610
|
+
help: "boolean",
|
|
32611
|
+
repo: "value",
|
|
32612
|
+
confirm: "value"
|
|
32613
|
+
},
|
|
32614
|
+
positionals: "variadic",
|
|
32615
|
+
repository: true,
|
|
32616
|
+
tier: "repository"
|
|
32376
32617
|
}
|
|
32377
32618
|
]
|
|
32378
32619
|
};
|
|
@@ -38088,6 +38329,19 @@ var init_proxmox_axi = __esm({
|
|
|
38088
38329
|
full: "boolean"
|
|
38089
38330
|
}
|
|
38090
38331
|
},
|
|
38332
|
+
{
|
|
38333
|
+
command: "ls /nodes/{node}/aplinfo",
|
|
38334
|
+
effect: "read",
|
|
38335
|
+
sensitiveInputs: [],
|
|
38336
|
+
flags: {
|
|
38337
|
+
help: "boolean",
|
|
38338
|
+
format: "value",
|
|
38339
|
+
limit: "value",
|
|
38340
|
+
fields: "value",
|
|
38341
|
+
full: "boolean",
|
|
38342
|
+
"api-node": "value"
|
|
38343
|
+
}
|
|
38344
|
+
},
|
|
38091
38345
|
{
|
|
38092
38346
|
command: "ls /nodes/{node}/lxc",
|
|
38093
38347
|
effect: "read",
|
|
@@ -38101,6 +38355,35 @@ var init_proxmox_axi = __esm({
|
|
|
38101
38355
|
"api-node": "value"
|
|
38102
38356
|
}
|
|
38103
38357
|
},
|
|
38358
|
+
{
|
|
38359
|
+
command: "ls /nodes/{node}/lxc/{vmid}/snapshot",
|
|
38360
|
+
effect: "read",
|
|
38361
|
+
sensitiveInputs: [],
|
|
38362
|
+
flags: {
|
|
38363
|
+
help: "boolean",
|
|
38364
|
+
format: "value",
|
|
38365
|
+
limit: "value",
|
|
38366
|
+
fields: "value",
|
|
38367
|
+
full: "boolean",
|
|
38368
|
+
"api-node": "value",
|
|
38369
|
+
"api-vmid": "value"
|
|
38370
|
+
}
|
|
38371
|
+
},
|
|
38372
|
+
{
|
|
38373
|
+
command: "ls /nodes/{node}/lxc/{vmid}/snapshot/{snapname}",
|
|
38374
|
+
effect: "read",
|
|
38375
|
+
sensitiveInputs: [],
|
|
38376
|
+
flags: {
|
|
38377
|
+
help: "boolean",
|
|
38378
|
+
format: "value",
|
|
38379
|
+
limit: "value",
|
|
38380
|
+
fields: "value",
|
|
38381
|
+
full: "boolean",
|
|
38382
|
+
"api-node": "value",
|
|
38383
|
+
"api-snapname": "value",
|
|
38384
|
+
"api-vmid": "value"
|
|
38385
|
+
}
|
|
38386
|
+
},
|
|
38104
38387
|
{
|
|
38105
38388
|
command: "ls /nodes/{node}/qemu",
|
|
38106
38389
|
effect: "read",
|
|
@@ -38115,6 +38398,35 @@ var init_proxmox_axi = __esm({
|
|
|
38115
38398
|
"api-node": "value"
|
|
38116
38399
|
}
|
|
38117
38400
|
},
|
|
38401
|
+
{
|
|
38402
|
+
command: "ls /nodes/{node}/qemu/{vmid}/snapshot",
|
|
38403
|
+
effect: "read",
|
|
38404
|
+
sensitiveInputs: [],
|
|
38405
|
+
flags: {
|
|
38406
|
+
help: "boolean",
|
|
38407
|
+
format: "value",
|
|
38408
|
+
limit: "value",
|
|
38409
|
+
fields: "value",
|
|
38410
|
+
full: "boolean",
|
|
38411
|
+
"api-node": "value",
|
|
38412
|
+
"api-vmid": "value"
|
|
38413
|
+
}
|
|
38414
|
+
},
|
|
38415
|
+
{
|
|
38416
|
+
command: "ls /nodes/{node}/qemu/{vmid}/snapshot/{snapname}",
|
|
38417
|
+
effect: "read",
|
|
38418
|
+
sensitiveInputs: [],
|
|
38419
|
+
flags: {
|
|
38420
|
+
help: "boolean",
|
|
38421
|
+
format: "value",
|
|
38422
|
+
limit: "value",
|
|
38423
|
+
fields: "value",
|
|
38424
|
+
full: "boolean",
|
|
38425
|
+
"api-node": "value",
|
|
38426
|
+
"api-snapname": "value",
|
|
38427
|
+
"api-vmid": "value"
|
|
38428
|
+
}
|
|
38429
|
+
},
|
|
38118
38430
|
{
|
|
38119
38431
|
command: "ls /nodes/{node}/storage",
|
|
38120
38432
|
effect: "read",
|
|
@@ -38133,6 +38445,22 @@ var init_proxmox_axi = __esm({
|
|
|
38133
38445
|
"api-target": "value"
|
|
38134
38446
|
}
|
|
38135
38447
|
},
|
|
38448
|
+
{
|
|
38449
|
+
command: "ls /nodes/{node}/storage/{storage}/content",
|
|
38450
|
+
effect: "read",
|
|
38451
|
+
sensitiveInputs: [],
|
|
38452
|
+
flags: {
|
|
38453
|
+
help: "boolean",
|
|
38454
|
+
format: "value",
|
|
38455
|
+
limit: "value",
|
|
38456
|
+
fields: "value",
|
|
38457
|
+
full: "boolean",
|
|
38458
|
+
"api-content": "value",
|
|
38459
|
+
"api-node": "value",
|
|
38460
|
+
"api-storage": "value",
|
|
38461
|
+
"api-vmid": "value"
|
|
38462
|
+
}
|
|
38463
|
+
},
|
|
38136
38464
|
{
|
|
38137
38465
|
command: "ls /nodes/{node}/tasks",
|
|
38138
38466
|
effect: "read",
|
|
@@ -46469,6 +46797,23 @@ var init_proxmox_axi = __esm({
|
|
|
46469
46797
|
full: "boolean"
|
|
46470
46798
|
}
|
|
46471
46799
|
},
|
|
46800
|
+
{
|
|
46801
|
+
command: "get /nodes/{node}/aplinfo",
|
|
46802
|
+
effect: "read",
|
|
46803
|
+
operationId: "OP-GET-66bdd31664",
|
|
46804
|
+
method: "GET",
|
|
46805
|
+
path: "/nodes/{node}/aplinfo",
|
|
46806
|
+
sensitiveInputs: [],
|
|
46807
|
+
flags: {
|
|
46808
|
+
help: "boolean",
|
|
46809
|
+
format: "value",
|
|
46810
|
+
catalogue: "value",
|
|
46811
|
+
limit: "value",
|
|
46812
|
+
fields: "value",
|
|
46813
|
+
full: "boolean",
|
|
46814
|
+
"api-node": "value"
|
|
46815
|
+
}
|
|
46816
|
+
},
|
|
46472
46817
|
{
|
|
46473
46818
|
command: "get /nodes/{node}/firewall/options",
|
|
46474
46819
|
effect: "read",
|
|
@@ -46521,6 +46866,61 @@ var init_proxmox_axi = __esm({
|
|
|
46521
46866
|
"api-vmid": "value"
|
|
46522
46867
|
}
|
|
46523
46868
|
},
|
|
46869
|
+
{
|
|
46870
|
+
command: "get /nodes/{node}/lxc/{vmid}/snapshot",
|
|
46871
|
+
effect: "read",
|
|
46872
|
+
operationId: "OP-GET-3dd428bcd4",
|
|
46873
|
+
method: "GET",
|
|
46874
|
+
path: "/nodes/{node}/lxc/{vmid}/snapshot",
|
|
46875
|
+
sensitiveInputs: [],
|
|
46876
|
+
flags: {
|
|
46877
|
+
help: "boolean",
|
|
46878
|
+
format: "value",
|
|
46879
|
+
catalogue: "value",
|
|
46880
|
+
limit: "value",
|
|
46881
|
+
fields: "value",
|
|
46882
|
+
full: "boolean",
|
|
46883
|
+
"api-node": "value",
|
|
46884
|
+
"api-vmid": "value"
|
|
46885
|
+
}
|
|
46886
|
+
},
|
|
46887
|
+
{
|
|
46888
|
+
command: "get /nodes/{node}/lxc/{vmid}/snapshot/{snapname}",
|
|
46889
|
+
effect: "read",
|
|
46890
|
+
operationId: "OP-GET-cad4dcb48f",
|
|
46891
|
+
method: "GET",
|
|
46892
|
+
path: "/nodes/{node}/lxc/{vmid}/snapshot/{snapname}",
|
|
46893
|
+
sensitiveInputs: [],
|
|
46894
|
+
flags: {
|
|
46895
|
+
help: "boolean",
|
|
46896
|
+
format: "value",
|
|
46897
|
+
catalogue: "value",
|
|
46898
|
+
limit: "value",
|
|
46899
|
+
fields: "value",
|
|
46900
|
+
full: "boolean",
|
|
46901
|
+
"api-node": "value",
|
|
46902
|
+
"api-snapname": "value",
|
|
46903
|
+
"api-vmid": "value"
|
|
46904
|
+
}
|
|
46905
|
+
},
|
|
46906
|
+
{
|
|
46907
|
+
command: "get /nodes/{node}/lxc/{vmid}/status/current",
|
|
46908
|
+
effect: "read",
|
|
46909
|
+
operationId: "OP-GET-3e89cf9759",
|
|
46910
|
+
method: "GET",
|
|
46911
|
+
path: "/nodes/{node}/lxc/{vmid}/status/current",
|
|
46912
|
+
sensitiveInputs: [],
|
|
46913
|
+
flags: {
|
|
46914
|
+
help: "boolean",
|
|
46915
|
+
format: "value",
|
|
46916
|
+
catalogue: "value",
|
|
46917
|
+
limit: "value",
|
|
46918
|
+
fields: "value",
|
|
46919
|
+
full: "boolean",
|
|
46920
|
+
"api-node": "value",
|
|
46921
|
+
"api-vmid": "value"
|
|
46922
|
+
}
|
|
46923
|
+
},
|
|
46524
46924
|
{
|
|
46525
46925
|
command: "get /nodes/{node}/qemu",
|
|
46526
46926
|
effect: "read",
|
|
@@ -46557,6 +46957,61 @@ var init_proxmox_axi = __esm({
|
|
|
46557
46957
|
"api-vmid": "value"
|
|
46558
46958
|
}
|
|
46559
46959
|
},
|
|
46960
|
+
{
|
|
46961
|
+
command: "get /nodes/{node}/qemu/{vmid}/snapshot",
|
|
46962
|
+
effect: "read",
|
|
46963
|
+
operationId: "OP-GET-21328c5bed",
|
|
46964
|
+
method: "GET",
|
|
46965
|
+
path: "/nodes/{node}/qemu/{vmid}/snapshot",
|
|
46966
|
+
sensitiveInputs: [],
|
|
46967
|
+
flags: {
|
|
46968
|
+
help: "boolean",
|
|
46969
|
+
format: "value",
|
|
46970
|
+
catalogue: "value",
|
|
46971
|
+
limit: "value",
|
|
46972
|
+
fields: "value",
|
|
46973
|
+
full: "boolean",
|
|
46974
|
+
"api-node": "value",
|
|
46975
|
+
"api-vmid": "value"
|
|
46976
|
+
}
|
|
46977
|
+
},
|
|
46978
|
+
{
|
|
46979
|
+
command: "get /nodes/{node}/qemu/{vmid}/snapshot/{snapname}",
|
|
46980
|
+
effect: "read",
|
|
46981
|
+
operationId: "OP-GET-31cf78f27d",
|
|
46982
|
+
method: "GET",
|
|
46983
|
+
path: "/nodes/{node}/qemu/{vmid}/snapshot/{snapname}",
|
|
46984
|
+
sensitiveInputs: [],
|
|
46985
|
+
flags: {
|
|
46986
|
+
help: "boolean",
|
|
46987
|
+
format: "value",
|
|
46988
|
+
catalogue: "value",
|
|
46989
|
+
limit: "value",
|
|
46990
|
+
fields: "value",
|
|
46991
|
+
full: "boolean",
|
|
46992
|
+
"api-node": "value",
|
|
46993
|
+
"api-snapname": "value",
|
|
46994
|
+
"api-vmid": "value"
|
|
46995
|
+
}
|
|
46996
|
+
},
|
|
46997
|
+
{
|
|
46998
|
+
command: "get /nodes/{node}/qemu/{vmid}/status/current",
|
|
46999
|
+
effect: "read",
|
|
47000
|
+
operationId: "OP-GET-51ca5330c0",
|
|
47001
|
+
method: "GET",
|
|
47002
|
+
path: "/nodes/{node}/qemu/{vmid}/status/current",
|
|
47003
|
+
sensitiveInputs: [],
|
|
47004
|
+
flags: {
|
|
47005
|
+
help: "boolean",
|
|
47006
|
+
format: "value",
|
|
47007
|
+
catalogue: "value",
|
|
47008
|
+
limit: "value",
|
|
47009
|
+
fields: "value",
|
|
47010
|
+
full: "boolean",
|
|
47011
|
+
"api-node": "value",
|
|
47012
|
+
"api-vmid": "value"
|
|
47013
|
+
}
|
|
47014
|
+
},
|
|
46560
47015
|
{
|
|
46561
47016
|
command: "get /nodes/{node}/status",
|
|
46562
47017
|
effect: "read",
|
|
@@ -46596,6 +47051,45 @@ var init_proxmox_axi = __esm({
|
|
|
46596
47051
|
"api-target": "value"
|
|
46597
47052
|
}
|
|
46598
47053
|
},
|
|
47054
|
+
{
|
|
47055
|
+
command: "get /nodes/{node}/storage/{storage}/content",
|
|
47056
|
+
effect: "read",
|
|
47057
|
+
operationId: "OP-GET-090607ccf4",
|
|
47058
|
+
method: "GET",
|
|
47059
|
+
path: "/nodes/{node}/storage/{storage}/content",
|
|
47060
|
+
sensitiveInputs: [],
|
|
47061
|
+
flags: {
|
|
47062
|
+
help: "boolean",
|
|
47063
|
+
format: "value",
|
|
47064
|
+
catalogue: "value",
|
|
47065
|
+
limit: "value",
|
|
47066
|
+
fields: "value",
|
|
47067
|
+
full: "boolean",
|
|
47068
|
+
"api-content": "value",
|
|
47069
|
+
"api-node": "value",
|
|
47070
|
+
"api-storage": "value",
|
|
47071
|
+
"api-vmid": "value"
|
|
47072
|
+
}
|
|
47073
|
+
},
|
|
47074
|
+
{
|
|
47075
|
+
command: "get /nodes/{node}/storage/{storage}/content/{volume}",
|
|
47076
|
+
effect: "read",
|
|
47077
|
+
operationId: "OP-GET-d6c763e6d8",
|
|
47078
|
+
method: "GET",
|
|
47079
|
+
path: "/nodes/{node}/storage/{storage}/content/{volume}",
|
|
47080
|
+
sensitiveInputs: [],
|
|
47081
|
+
flags: {
|
|
47082
|
+
help: "boolean",
|
|
47083
|
+
format: "value",
|
|
47084
|
+
catalogue: "value",
|
|
47085
|
+
limit: "value",
|
|
47086
|
+
fields: "value",
|
|
47087
|
+
full: "boolean",
|
|
47088
|
+
"api-node": "value",
|
|
47089
|
+
"api-storage": "value",
|
|
47090
|
+
"api-volume": "value"
|
|
47091
|
+
}
|
|
47092
|
+
},
|
|
46599
47093
|
{
|
|
46600
47094
|
command: "get /nodes/{node}/storage/{storage}/status",
|
|
46601
47095
|
effect: "read",
|
|
@@ -46784,9 +47278,15 @@ var init_proxmox_axi = __esm({
|
|
|
46784
47278
|
"ls /cluster/resources",
|
|
46785
47279
|
"ls /cluster/status",
|
|
46786
47280
|
"ls /nodes",
|
|
47281
|
+
"ls /nodes/{node}/aplinfo",
|
|
46787
47282
|
"ls /nodes/{node}/lxc",
|
|
47283
|
+
"ls /nodes/{node}/lxc/{vmid}/snapshot",
|
|
47284
|
+
"ls /nodes/{node}/lxc/{vmid}/snapshot/{snapname}",
|
|
46788
47285
|
"ls /nodes/{node}/qemu",
|
|
47286
|
+
"ls /nodes/{node}/qemu/{vmid}/snapshot",
|
|
47287
|
+
"ls /nodes/{node}/qemu/{vmid}/snapshot/{snapname}",
|
|
46789
47288
|
"ls /nodes/{node}/storage",
|
|
47289
|
+
"ls /nodes/{node}/storage/{storage}/content",
|
|
46790
47290
|
"ls /nodes/{node}/tasks",
|
|
46791
47291
|
"ls /nodes/{node}/tasks/{upid}/log",
|
|
46792
47292
|
"ls /storage",
|
|
@@ -47478,13 +47978,22 @@ var init_proxmox_axi = __esm({
|
|
|
47478
47978
|
"get /cluster/resources",
|
|
47479
47979
|
"get /cluster/status",
|
|
47480
47980
|
"get /nodes",
|
|
47981
|
+
"get /nodes/{node}/aplinfo",
|
|
47481
47982
|
"get /nodes/{node}/firewall/options",
|
|
47482
47983
|
"get /nodes/{node}/lxc",
|
|
47483
47984
|
"get /nodes/{node}/lxc/{vmid}/firewall/options",
|
|
47985
|
+
"get /nodes/{node}/lxc/{vmid}/snapshot",
|
|
47986
|
+
"get /nodes/{node}/lxc/{vmid}/snapshot/{snapname}",
|
|
47987
|
+
"get /nodes/{node}/lxc/{vmid}/status/current",
|
|
47484
47988
|
"get /nodes/{node}/qemu",
|
|
47485
47989
|
"get /nodes/{node}/qemu/{vmid}/firewall/options",
|
|
47990
|
+
"get /nodes/{node}/qemu/{vmid}/snapshot",
|
|
47991
|
+
"get /nodes/{node}/qemu/{vmid}/snapshot/{snapname}",
|
|
47992
|
+
"get /nodes/{node}/qemu/{vmid}/status/current",
|
|
47486
47993
|
"get /nodes/{node}/status",
|
|
47487
47994
|
"get /nodes/{node}/storage",
|
|
47995
|
+
"get /nodes/{node}/storage/{storage}/content",
|
|
47996
|
+
"get /nodes/{node}/storage/{storage}/content/{volume}",
|
|
47488
47997
|
"get /nodes/{node}/storage/{storage}/status",
|
|
47489
47998
|
"get /nodes/{node}/tasks",
|
|
47490
47999
|
"get /nodes/{node}/tasks/{upid}/log",
|
|
@@ -51095,7 +51604,7 @@ function transferRoutesFor(tool) {
|
|
|
51095
51604
|
function decodedFileBytes(value) {
|
|
51096
51605
|
return value.length / 4 * 3 - (value.endsWith("==") ? 2 : value.endsWith("=") ? 1 : 0);
|
|
51097
51606
|
}
|
|
51098
|
-
var inputLimits, transferLimits, transferWarning, sha256Schema, sampleSha256Schema, reportIdSchema, transferOwnerIdSchema, mailSelectorSchema, transferSelectionSchema, transferPrepareSchema, transferPrepareRequestSchema, transferIdSchema, transferScopeSchema, transferPreviewSchema, transferExecuteSchema, transferRetrieveSchema, transferOutcomeSchema, transferSaveOutcomeSchema, transferArchiveSchema, transferReceiptSchema, transferEvidenceSchema, transferStatusSchema, transferRoutes, transferAuditSchema, byteLength, passwordSchema, passwordChangeSchema, loginSchema, refreshSchema, reauthSchema, reauthResponseSchema, loginResponseSchema, deviceUserCodeSchema, devicePollSchema, deviceStartResponseSchema, devicePollResponseSchema, ssoReauthSchema, ssoReauthResponseSchema, accountId, toolSchema, delegationScopeSchema, meResponseSchema, createDelegationSchema, delegatedExchangeSchema, createdDelegationSchema, skillsResponseSchema, adminUserSchema, adminPageQuerySchema, adminUsersQuerySchema, adminUsersResponseSchema, adminUserDetailSchema, adminUserCreateSchema, adminUserPatchSchema, adminUserUnlockSchema, adminUserResetSchema, adminUserParamsSchema, userSessionsSchema, sessionParamsSchema, emptyInputSchema, revokedSchema, adminUserRoutes, text, auditCursorSchema, auditFiltersSchema, orderedAuditRange, adminAuditQuerySchema, adminAuditExportRoute, adminAuditRecordSchema, adminAuditRoute, falconRtrSettingsSchema, ghWriteOperations, falconWriteOperations, unifiWriteOperations, proxmoxWriteOperations, technitiumWriteOperations, nativeSettingsSchemas, diagnosticSchema, healthSchema, toolWriteStateSchema, writeAccessInputSchema, rawApiModeSchema, toolRawApiSchema, adminToolSchema, adminCredentialSchema, adminToolParamsSchema, adminInstanceParamsSchema, adminInstanceSchema, certificateDetailsSchema, certificateInspectionSchema, trustedCredentialCertificateSchema, adminCertificateRoutes, githubConnectionInput, githubDeviceRoutes, adminToolRoutes, instanceBase, instanceRevisions, adminInstanceRoutes, oidcIssuerSchema, providerSettings, entraSettings, oidcSettings, providerSettingsSchema, providerFields, adminProviderSchema, adminProviderCredentialSchema, adminProviderRoutes, roleRuleSettingsSchema, adminRoleRuleSchema, adminRoleRuleRoutes, invitationLifetimeSchema, adminInvitationSchema, invitationLinkSchema, adminInvitationRoutes, adminRoleSchema, adminRolesResponseSchema, adminRoleRoutes, adminRoleToolParamsSchema, toolsResponseSchema, inputFileSchema, runInputSchema, runRequestSchema, counts, runSuccessSchema, errorResponseSchema, runResponseSchema;
|
|
51607
|
+
var inputLimits, transferLimits, transferWarning, sha256Schema, sampleSha256Schema, reportIdSchema, transferOwnerIdSchema, mailSelectorSchema, transferSelectionSchema, transferPrepareSchema, transferPrepareRequestSchema, transferIdSchema, transferScopeSchema, transferPreviewSchema, transferExecuteSchema, transferRetrieveSchema, transferOutcomeSchema, transferSaveOutcomeSchema, transferArchiveSchema, transferReceiptSchema, transferEvidenceSchema, transferStatusSchema, transferRoutes, transferAuditSchema, byteLength, passwordSchema, passwordChangeSchema, loginSchema, refreshSchema, reauthSchema, reauthResponseSchema, loginResponseSchema, deviceUserCodeSchema, devicePollSchema, deviceStartResponseSchema, devicePollResponseSchema, ssoReauthSchema, ssoReauthResponseSchema, accountId, toolSchema, delegationScopeSchema, meResponseSchema, createDelegationSchema, delegatedExchangeSchema, createdDelegationSchema, skillsResponseSchema, adminUserSchema, adminPageQuerySchema, adminUsersQuerySchema, adminUsersResponseSchema, adminUserDetailSchema, adminUserCreateSchema, adminUserPatchSchema, adminUserUnlockSchema, adminUserResetSchema, adminUserParamsSchema, userSessionsSchema, sessionParamsSchema, emptyInputSchema, revokedSchema, adminUserRoutes, text, auditCursorSchema, auditFiltersSchema, orderedAuditRange, adminAuditQuerySchema, adminAuditExportRoute, adminAuditRecordSchema, adminAuditRoute, falconRtrSettingsSchema, ghWriteOperations, falconWriteOperations, unifiWriteOperations, proxmoxWriteOperations, technitiumWriteOperations, nativeSettingsSchemas, diagnosticSchema, healthSchema, toolWriteStateSchema, writeAccessInputSchema, rawApiModeSchema, rawApiRoutePatterns, rawApiRoutesSchema, toolRawApiSchema, adminToolSchema, adminCredentialSchema, adminToolParamsSchema, adminInstanceParamsSchema, adminInstanceSchema, certificateDetailsSchema, certificateInspectionSchema, trustedCredentialCertificateSchema, adminCertificateRoutes, githubConnectionInput, githubDeviceRoutes, adminToolRoutes, instanceBase, instanceRevisions, adminInstanceRoutes, oidcIssuerSchema, providerSettings, entraSettings, oidcSettings, providerSettingsSchema, providerFields, adminProviderSchema, adminProviderCredentialSchema, adminProviderRoutes, roleRuleSettingsSchema, adminRoleRuleSchema, adminRoleRuleRoutes, invitationLifetimeSchema, adminInvitationSchema, invitationLinkSchema, adminInvitationRoutes, adminRoleSchema, adminRolesResponseSchema, adminRoleRoutes, adminRoleToolParamsSchema, toolsResponseSchema, inputFileSchema, runInputSchema, runRequestSchema, counts, runSuccessSchema, errorResponseSchema, runResponseSchema;
|
|
51099
51608
|
var init_api2 = __esm({
|
|
51100
51609
|
"src/shared/api.ts"() {
|
|
51101
51610
|
"use strict";
|
|
@@ -51707,7 +52216,9 @@ var init_api2 = __esm({
|
|
|
51707
52216
|
expectedRevision: external_exports.number().int().positive()
|
|
51708
52217
|
});
|
|
51709
52218
|
rawApiModeSchema = external_exports.enum(["off", "read", "read-writes"]);
|
|
51710
|
-
|
|
52219
|
+
rawApiRoutePatterns = external_exports.array(external_exports.string().min(1).max(256)).max(50);
|
|
52220
|
+
rawApiRoutesSchema = external_exports.strictObject({ get: rawApiRoutePatterns, write: rawApiRoutePatterns });
|
|
52221
|
+
toolRawApiSchema = external_exports.strictObject({ mode: rawApiModeSchema, modes: external_exports.array(rawApiModeSchema), writes: external_exports.boolean(), routes: rawApiRoutesSchema });
|
|
51711
52222
|
adminToolSchema = external_exports.strictObject({
|
|
51712
52223
|
name: toolSchema,
|
|
51713
52224
|
enabled: external_exports.boolean(),
|
|
@@ -51891,6 +52402,16 @@ var init_api2 = __esm({
|
|
|
51891
52402
|
authorization: "administrator-and-recent-auth",
|
|
51892
52403
|
auditEvent: null
|
|
51893
52404
|
},
|
|
52405
|
+
// GET patterns are relative paths and optional; write patterns are "METHOD path" and required for any raw write.
|
|
52406
|
+
// A "*" segment matches one segment and a final "**" matches any deeper path.
|
|
52407
|
+
rawApiRoutes: {
|
|
52408
|
+
method: "PUT",
|
|
52409
|
+
path: "/v1/admin/tools/:tool/raw-api/routes",
|
|
52410
|
+
input: rawApiRoutesSchema.extend({ expectedRevision: external_exports.number().int().positive() }),
|
|
52411
|
+
response: adminToolSchema,
|
|
52412
|
+
authorization: "administrator-and-recent-auth",
|
|
52413
|
+
auditEvent: "set-tool-raw-api-routes"
|
|
52414
|
+
},
|
|
51894
52415
|
list: {
|
|
51895
52416
|
method: "GET",
|
|
51896
52417
|
path: "/v1/admin/tools",
|
|
@@ -59815,27 +60336,27 @@ var init_mg_axi = __esm({
|
|
|
59815
60336
|
"api patch",
|
|
59816
60337
|
"api delete",
|
|
59817
60338
|
"security hunting query",
|
|
59818
|
-
"mail folder
|
|
59819
|
-
"mail folder
|
|
59820
|
-
"mail
|
|
59821
|
-
"mail
|
|
59822
|
-
"mail
|
|
59823
|
-
"mail
|
|
59824
|
-
"mail rule list",
|
|
59825
|
-
"mail rule show",
|
|
59826
|
-
"mail category list",
|
|
60339
|
+
"mail folder create",
|
|
60340
|
+
"mail folder delete",
|
|
60341
|
+
"mail category create",
|
|
60342
|
+
"mail rule create",
|
|
60343
|
+
"mail rule update",
|
|
60344
|
+
"mail rule delete",
|
|
59827
60345
|
"mail message tag",
|
|
59828
60346
|
"mail message flag",
|
|
59829
60347
|
"mail message mark",
|
|
59830
60348
|
"mail message move",
|
|
59831
60349
|
"mail message copy",
|
|
59832
60350
|
"mail message trash",
|
|
59833
|
-
"mail
|
|
59834
|
-
"mail
|
|
59835
|
-
"mail
|
|
59836
|
-
"mail rule
|
|
59837
|
-
"mail
|
|
59838
|
-
"mail
|
|
60351
|
+
"mail attachment list",
|
|
60352
|
+
"mail settings show",
|
|
60353
|
+
"mail rule list",
|
|
60354
|
+
"mail rule show",
|
|
60355
|
+
"mail category list",
|
|
60356
|
+
"mail message show",
|
|
60357
|
+
"mail message list",
|
|
60358
|
+
"mail folder list",
|
|
60359
|
+
"mail folder show"
|
|
59839
60360
|
],
|
|
59840
60361
|
example: [
|
|
59841
60362
|
"entra",
|
|
@@ -59941,51 +60462,51 @@ var init_mg_axi = __esm({
|
|
|
59941
60462
|
"api patch",
|
|
59942
60463
|
"api delete",
|
|
59943
60464
|
"security hunting query",
|
|
59944
|
-
"mail folder
|
|
59945
|
-
"mail folder
|
|
59946
|
-
"mail
|
|
59947
|
-
"mail
|
|
59948
|
-
"mail
|
|
59949
|
-
"mail
|
|
59950
|
-
"mail rule list",
|
|
59951
|
-
"mail rule show",
|
|
59952
|
-
"mail category list",
|
|
60465
|
+
"mail folder create",
|
|
60466
|
+
"mail folder delete",
|
|
60467
|
+
"mail category create",
|
|
60468
|
+
"mail rule create",
|
|
60469
|
+
"mail rule update",
|
|
60470
|
+
"mail rule delete",
|
|
59953
60471
|
"mail message tag",
|
|
59954
60472
|
"mail message flag",
|
|
59955
60473
|
"mail message mark",
|
|
59956
60474
|
"mail message move",
|
|
59957
60475
|
"mail message copy",
|
|
59958
60476
|
"mail message trash",
|
|
59959
|
-
"mail
|
|
59960
|
-
"mail
|
|
59961
|
-
"mail
|
|
59962
|
-
"mail rule
|
|
59963
|
-
"mail
|
|
59964
|
-
"mail
|
|
60477
|
+
"mail attachment list",
|
|
60478
|
+
"mail settings show",
|
|
60479
|
+
"mail rule list",
|
|
60480
|
+
"mail rule show",
|
|
60481
|
+
"mail category list",
|
|
60482
|
+
"mail message show",
|
|
60483
|
+
"mail message list",
|
|
60484
|
+
"mail folder list",
|
|
60485
|
+
"mail folder show"
|
|
59965
60486
|
],
|
|
59966
60487
|
commandPacks: {
|
|
59967
60488
|
"security hunting query": "security",
|
|
59968
|
-
"mail folder list": "mail",
|
|
59969
|
-
"mail folder show": "mail",
|
|
59970
|
-
"mail message list": "mail",
|
|
59971
|
-
"mail message show": "mail",
|
|
59972
|
-
"mail attachment list": "mail",
|
|
59973
|
-
"mail settings show": "mail",
|
|
59974
|
-
"mail rule list": "mail",
|
|
59975
|
-
"mail rule show": "mail",
|
|
59976
|
-
"mail category list": "mail",
|
|
59977
|
-
"mail message tag": "mail",
|
|
59978
|
-
"mail message flag": "mail",
|
|
59979
|
-
"mail message mark": "mail",
|
|
59980
|
-
"mail message move": "mail",
|
|
59981
|
-
"mail message copy": "mail",
|
|
59982
|
-
"mail message trash": "mail",
|
|
59983
60489
|
"mail folder create": "mail",
|
|
59984
60490
|
"mail folder delete": "mail",
|
|
59985
60491
|
"mail category create": "mail",
|
|
59986
60492
|
"mail rule create": "mail",
|
|
59987
60493
|
"mail rule update": "mail",
|
|
59988
60494
|
"mail rule delete": "mail",
|
|
60495
|
+
"mail message tag": "mail",
|
|
60496
|
+
"mail message flag": "mail",
|
|
60497
|
+
"mail message mark": "mail",
|
|
60498
|
+
"mail message move": "mail",
|
|
60499
|
+
"mail message copy": "mail",
|
|
60500
|
+
"mail message trash": "mail",
|
|
60501
|
+
"mail attachment list": "mail",
|
|
60502
|
+
"mail settings show": "mail",
|
|
60503
|
+
"mail rule list": "mail",
|
|
60504
|
+
"mail rule show": "mail",
|
|
60505
|
+
"mail category list": "mail",
|
|
60506
|
+
"mail message show": "mail",
|
|
60507
|
+
"mail message list": "mail",
|
|
60508
|
+
"mail folder list": "mail",
|
|
60509
|
+
"mail folder show": "mail",
|
|
59989
60510
|
"mail attachment save": "mail",
|
|
59990
60511
|
"mail message export": "mail"
|
|
59991
60512
|
},
|
|
@@ -101428,7 +101949,7 @@ var init_help = __esm({
|
|
|
101428
101949
|
"gh-axi": {
|
|
101429
101950
|
usage: "artium-axi gh-axi [<args>]",
|
|
101430
101951
|
purpose: "Read and update GitHub data with managed credentials.",
|
|
101431
|
-
flags: ["Repository commands require -R OWNER/NAME. Writes require an administrator-enabled exact operation: preview, then repeat with its --confirm value. api is GET only; deletes, secret set, merge --admin, local git
|
|
101952
|
+
flags: ["Repository commands require -R OWNER/NAME. Writes require an administrator-enabled exact operation: preview, then repeat with its --confirm value. api is GET only; deletes, secret set, merge --admin, local git and downloads are unavailable. Only release upload reads client files. Only gist create/edit with --filename accepts piped stdin."],
|
|
101432
101953
|
example: "artium-axi gh-axi repo list --limit 1"
|
|
101433
101954
|
},
|
|
101434
101955
|
home: {
|
|
@@ -101941,11 +102462,21 @@ function inputFileFlags(tool, args2) {
|
|
|
101941
102462
|
if (!route) return [];
|
|
101942
102463
|
return flags.filter((name) => Object.hasOwn(route.flags, name));
|
|
101943
102464
|
}
|
|
102465
|
+
function ghReleaseUploadFileIndexes(args2) {
|
|
102466
|
+
if (args2[0] !== "release" || args2[1] !== "upload" || args2.some((arg) => ["--help", "-h"].includes(arg))) return [];
|
|
102467
|
+
const positionals = [];
|
|
102468
|
+
for (let index = 2; index < args2.length; index++) {
|
|
102469
|
+
if (!args2[index].startsWith("-")) positionals.push(index);
|
|
102470
|
+
else if (["-R", "--repo", "--confirm"].includes(args2[index])) index++;
|
|
102471
|
+
}
|
|
102472
|
+
return positionals.slice(1);
|
|
102473
|
+
}
|
|
101944
102474
|
function validateFileInput(tool, args2, input2) {
|
|
101945
102475
|
if (!input2.files?.length) return;
|
|
101946
102476
|
if (tool === "gitea-axi") args2 = normalizeGiteaFileArguments(args2);
|
|
101947
102477
|
const flags = inputFileFlags(tool, args2);
|
|
101948
102478
|
const names = /* @__PURE__ */ new Set();
|
|
102479
|
+
if (tool === "gh-axi") for (const index of ghReleaseUploadFileIndexes(args2)) names.add(args2[index]);
|
|
101949
102480
|
if (!args2.some((arg) => ["--help", "-h", "--version", "-v", "-V"].includes(arg))) {
|
|
101950
102481
|
for (let index = 0; index < args2.length; index++) {
|
|
101951
102482
|
const token = args2[index];
|
|
@@ -102126,6 +102657,20 @@ async function toolInput(tool, original) {
|
|
|
102126
102657
|
input2.stdin = (await readBounded(process.stdin, 65536, "--protected-input with closed stdin")).toString("utf8");
|
|
102127
102658
|
}
|
|
102128
102659
|
let totalFileBytes = 0;
|
|
102660
|
+
async function stageFile(path, name, limit) {
|
|
102661
|
+
if (input2.files?.some((file2) => file2.name === name)) throw new ArtiumError("INVALID_INPUT", "Upload file names must be distinct.");
|
|
102662
|
+
if ((input2.files?.length ?? 0) >= inputLimits.files) throw new ArtiumError("INVALID_INPUT", "Too many upload files.");
|
|
102663
|
+
const content = await readBounded(createReadStream(path), limit);
|
|
102664
|
+
totalFileBytes += content.length;
|
|
102665
|
+
if (totalFileBytes > inputLimits.totalFileBytes) throw new ArtiumError("INVALID_INPUT", "Uploads exceed the total byte limit.");
|
|
102666
|
+
input2.files ??= [];
|
|
102667
|
+
input2.files.push({ name, size: content.length, contentBase64: content.toString("base64") });
|
|
102668
|
+
}
|
|
102669
|
+
if (tool === "gh-axi") for (const index of ghReleaseUploadFileIndexes(args2)) {
|
|
102670
|
+
const name = basename(args2[index]);
|
|
102671
|
+
await stageFile(args2[index], name, inputLimits.fileBytes);
|
|
102672
|
+
args2[index] = name;
|
|
102673
|
+
}
|
|
102129
102674
|
if (tool === "gh-axi" && ["gist create", "gist edit"].includes(args2.slice(0, 2).join(" ")) && args2.some((arg) => arg === "--filename" || arg.startsWith("--filename=")) && !args2.some((arg) => ["--help", "-h"].includes(arg))) {
|
|
102130
102675
|
if (process.stdin.isTTY) throw new ArtiumError("UNSUPPORTED_INPUT", "Pipe gist content on stdin.");
|
|
102131
102676
|
input2.stdin = (await readBounded(process.stdin, inputLimits.stdinBytes, "--filename with closed stdin")).toString("utf8");
|
|
@@ -102177,13 +102722,7 @@ async function toolInput(tool, original) {
|
|
|
102177
102722
|
if (!path || path === "-") throw new ArtiumError("UNSUPPORTED_INPUT", "A file flag requires a local file path.");
|
|
102178
102723
|
if (mgUpload && (path.split(/[\\/]/).includes("..") || input2.files?.length)) throw new ArtiumError("INVALID_INPUT");
|
|
102179
102724
|
const name = mgUpload ? hunting ? "query.kql" : "rule.json" : basename(path);
|
|
102180
|
-
|
|
102181
|
-
if ((input2.files?.length ?? 0) >= inputLimits.files) throw new ArtiumError("INVALID_INPUT", "Too many upload files.");
|
|
102182
|
-
const content = await readBounded(createReadStream(path), mgUpload ? 65536 : inputLimits.fileBytes);
|
|
102183
|
-
totalFileBytes += content.length;
|
|
102184
|
-
if (totalFileBytes > inputLimits.totalFileBytes) throw new ArtiumError("INVALID_INPUT", "Uploads exceed the total byte limit.");
|
|
102185
|
-
input2.files ??= [];
|
|
102186
|
-
input2.files.push({ name, size: content.length, contentBase64: content.toString("base64") });
|
|
102725
|
+
await stageFile(path, name, mgUpload ? 65536 : inputLimits.fileBytes);
|
|
102187
102726
|
args2[index] = equals < 0 ? name : `${flag}=${name}`;
|
|
102188
102727
|
}
|
|
102189
102728
|
let leading = 0;
|