@indigoai-us/hq-cli 5.345.231 → 5.345.233
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/CHANGELOG.md +48 -0
- package/README.md +3 -2
- package/assets/lanes-reconcile/hq-lanes-reconcile.service +1 -1
- package/assets/scaffold/core/scripts/pipeline-conductor.sh +14 -14
- package/assets/scaffold/core/scripts/pipeline-driver.sh +7 -7
- package/assets/scaffold/core/scripts/session-project.sh +19 -4
- package/dist/command-catalog.generated.d.ts +213 -177
- package/dist/command-catalog.generated.js +263 -212
- package/dist/command-registration-plan.d.ts +6 -24
- package/dist/command-registration-plan.js +4 -8
- package/dist/commands/auth.js +3 -2
- package/dist/commands/core-handoff.d.ts +1 -0
- package/dist/commands/core-handoff.js +2 -28
- package/dist/commands/core-pipeline-conductor-command.js +1 -1
- package/dist/commands/core-pipeline-conductor-native.js +5 -5
- package/dist/commands/core-pipeline-driver-native.js +5 -5
- package/dist/commands/daemon.js +7 -36
- package/dist/commands/deploy-access.js +6 -13
- package/dist/commands/deploy-comments.js +5 -13
- package/dist/commands/deploy-domains.js +6 -13
- package/dist/commands/deploy-list.js +25 -11
- package/dist/commands/deploy-mutations.d.ts +3 -0
- package/dist/commands/deploy-mutations.js +147 -0
- package/dist/commands/link.js +29 -0
- package/dist/commands/mcp-serve-gate.d.ts +22 -0
- package/dist/commands/mcp-serve-gate.js +37 -0
- package/dist/commands/mcp-serve.js +2 -8
- package/dist/commands/mesh.js +3 -1
- package/dist/commands/report.js +8 -9
- package/dist/data/command-states.json +10 -7
- package/dist/hq-cloud-sync-runner/bin/sync-runner.js +257 -214
- package/dist/hq-cloud-sync-runner/package.json +1 -1
- package/dist/index.js +6 -1
- package/dist/lib/bot/fleet-bots-update-pass.d.ts +8 -0
- package/dist/lib/bot/fleet-bots-update-pass.js +40 -0
- package/dist/lib/bot/fleet-bots-update-task.d.ts +12 -0
- package/dist/lib/bot/fleet-bots-update-task.js +52 -0
- package/dist/lib/bot/fleet-bots-update-worker-v1.d.ts +2 -0
- package/dist/lib/bot/fleet-bots-update-worker-v1.js +5 -0
- package/dist/lib/daemon/catalog.d.ts +8 -5
- package/dist/lib/daemon/catalog.js +15 -8
- package/dist/lib/daemon/flag.d.ts +2 -0
- package/dist/lib/daemon/flag.js +6 -4
- package/dist/lib/daemon/lock.js +33 -37
- package/dist/lib/daemon/ops/skill-command.d.ts +99 -0
- package/dist/lib/daemon/ops/skill-command.js +260 -0
- package/dist/lib/daemon/protocol.d.ts +1 -1
- package/dist/lib/daemon/protocol.js +1 -0
- package/dist/lib/daemon/run.js +10 -18
- package/dist/lib/daemon/server.js +7 -0
- package/dist/lib/daemon/shared-flag-reads.d.ts +70 -0
- package/dist/lib/daemon/shared-flag-reads.js +173 -0
- package/dist/lib/daemon/supervisor.d.ts +5 -0
- package/dist/lib/daemon/supervisor.js +17 -2
- package/dist/lib/db/app-ref.js +10 -15
- package/dist/lib/deploy-apps.d.ts +29 -0
- package/dist/lib/deploy-apps.js +37 -0
- package/dist/lib/doctor/checks/search-index.d.ts +16 -0
- package/dist/lib/doctor/checks/search-index.js +61 -0
- package/dist/lib/doctor/checks/stranded-lanes.js +1 -1
- package/dist/lib/doctor/registry.js +4 -0
- package/dist/lib/flag-registry-worker-source.generated.d.ts +1 -1
- package/dist/lib/flag-registry-worker-source.generated.js +1 -1
- package/dist/lib/lanes/accounts.js +3 -3
- package/dist/lib/lanes/admission-host.js +1 -1
- package/dist/lib/lanes/admission.js +4 -4
- package/dist/lib/lanes/autopilot.js +2 -2
- package/dist/lib/lanes/blocker-freshness.js +1 -1
- package/dist/lib/lanes/compaction.js +5 -5
- package/dist/lib/lanes/delivery.js +1 -1
- package/dist/lib/lanes/depth-cap.js +1 -1
- package/dist/lib/lanes/disk-guard.js +1 -1
- package/dist/lib/lanes/dropbox.js +1 -1
- package/dist/lib/lanes/hooks-install.js +1 -1
- package/dist/lib/lanes/imported-question.js +1 -1
- package/dist/lib/lanes/keep-alive.d.ts +2 -2
- package/dist/lib/lanes/keep-alive.js +3 -3
- package/dist/lib/lanes/kr-freshness.js +1 -1
- package/dist/lib/lanes/links.js +4 -4
- package/dist/lib/lanes/loop.js +2 -2
- package/dist/lib/lanes/machine-identity.js +3 -3
- package/dist/lib/lanes/models.js +6 -6
- package/dist/lib/lanes/quota.js +1 -1
- package/dist/lib/lanes/reconcile-install.js +3 -3
- package/dist/lib/lanes/reconcile.js +16 -16
- package/dist/lib/lanes/remote-control-lane.js +6 -6
- package/dist/lib/lanes/reviews.js +2 -2
- package/dist/lib/lanes/spawn.js +24 -24
- package/dist/lib/lanes/status-fields.js +4 -4
- package/dist/lib/lanes/wait.js +4 -4
- package/dist/lib/lanes/watch.js +2 -2
- package/dist/lib/lanes/watcher-main.js +1 -1
- package/dist/lib/lanes/watcher.js +38 -38
- package/dist/lib/lanes/worker-process.js +5 -5
- package/dist/lib/mesh/live/daemon/pid-lock.d.ts +2 -4
- package/dist/lib/mesh/live/daemon/pid-lock.js +38 -55
- package/dist/utils/cognito-session.d.ts +2 -56
- package/dist/utils/cognito-session.js +6 -164
- package/dist/utils/exclusive-lock.d.ts +60 -0
- package/dist/utils/exclusive-lock.js +65 -0
- package/package.json +9 -8
- package/dist/commands/staff/listings.d.ts +0 -41
- package/dist/commands/staff/listings.js +0 -160
- package/dist/commands/staff/reset-test-account.d.ts +0 -121
- package/dist/commands/staff/reset-test-account.js +0 -285
- package/dist/commands/staff/test-account.d.ts +0 -51
- package/dist/commands/staff/test-account.js +0 -196
|
@@ -1898,6 +1898,16 @@ export const COMMAND_CATALOG = [
|
|
|
1898
1898
|
"flags": "--json",
|
|
1899
1899
|
"description": "Print JSON output",
|
|
1900
1900
|
"hidden": false
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
"flags": "--prompt <text>",
|
|
1904
|
+
"description": "Resolve the active company for skills and routing: whole-token manifest slug in <text>, then session, then device default; prints JSON and exits 0",
|
|
1905
|
+
"hidden": false
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
"flags": "--root <dir>",
|
|
1909
|
+
"description": "HQ root for --prompt (default: the live HQ root)",
|
|
1910
|
+
"hidden": false
|
|
1901
1911
|
}
|
|
1902
1912
|
],
|
|
1903
1913
|
"subcommands": []
|
|
@@ -24540,7 +24550,7 @@ export const COMMAND_CATALOG = [
|
|
|
24540
24550
|
"options": [
|
|
24541
24551
|
{
|
|
24542
24552
|
"flags": "--account-id <id>",
|
|
24543
|
-
"description": "Claude account ID from hq
|
|
24553
|
+
"description": "Claude account ID from hq runners accounts",
|
|
24544
24554
|
"hidden": false
|
|
24545
24555
|
}
|
|
24546
24556
|
],
|
|
@@ -24559,7 +24569,7 @@ export const COMMAND_CATALOG = [
|
|
|
24559
24569
|
"options": [
|
|
24560
24570
|
{
|
|
24561
24571
|
"flags": "--account-id <id>",
|
|
24562
|
-
"description": "Claude account ID from hq
|
|
24572
|
+
"description": "Claude account ID from hq runners accounts",
|
|
24563
24573
|
"hidden": false
|
|
24564
24574
|
}
|
|
24565
24575
|
],
|
|
@@ -24578,7 +24588,7 @@ export const COMMAND_CATALOG = [
|
|
|
24578
24588
|
"options": [
|
|
24579
24589
|
{
|
|
24580
24590
|
"flags": "--account-id <id>",
|
|
24581
|
-
"description": "Claude account ID from hq
|
|
24591
|
+
"description": "Claude account ID from hq runners accounts",
|
|
24582
24592
|
"hidden": false
|
|
24583
24593
|
}
|
|
24584
24594
|
],
|
|
@@ -24597,7 +24607,7 @@ export const COMMAND_CATALOG = [
|
|
|
24597
24607
|
"options": [
|
|
24598
24608
|
{
|
|
24599
24609
|
"flags": "--account-id <id>",
|
|
24600
|
-
"description": "Claude account ID from hq
|
|
24610
|
+
"description": "Claude account ID from hq runners accounts",
|
|
24601
24611
|
"hidden": false
|
|
24602
24612
|
},
|
|
24603
24613
|
{
|
|
@@ -26426,6 +26436,11 @@ export const COMMAND_CATALOG = [
|
|
|
26426
26436
|
"description": "use this company instead of the active company",
|
|
26427
26437
|
"hidden": false
|
|
26428
26438
|
},
|
|
26439
|
+
{
|
|
26440
|
+
"flags": "--personal",
|
|
26441
|
+
"description": "list your personal deploy scope instead of a company",
|
|
26442
|
+
"hidden": false
|
|
26443
|
+
},
|
|
26429
26444
|
{
|
|
26430
26445
|
"flags": "--json",
|
|
26431
26446
|
"description": "print the matching apps as JSON",
|
|
@@ -26434,6 +26449,250 @@ export const COMMAND_CATALOG = [
|
|
|
26434
26449
|
],
|
|
26435
26450
|
"subcommands": []
|
|
26436
26451
|
},
|
|
26452
|
+
{
|
|
26453
|
+
"name": "inspect",
|
|
26454
|
+
"description": "Read app access mode, password protection and private mode state",
|
|
26455
|
+
"aliases": [],
|
|
26456
|
+
"hidden": false,
|
|
26457
|
+
"helpOption": true,
|
|
26458
|
+
"helpCommand": false,
|
|
26459
|
+
"usage": "[options] <app>",
|
|
26460
|
+
"helpText": [],
|
|
26461
|
+
"arguments": [
|
|
26462
|
+
{
|
|
26463
|
+
"name": "app",
|
|
26464
|
+
"required": true,
|
|
26465
|
+
"variadic": false,
|
|
26466
|
+
"description": ""
|
|
26467
|
+
}
|
|
26468
|
+
],
|
|
26469
|
+
"options": [
|
|
26470
|
+
{
|
|
26471
|
+
"flags": "--company <slug>",
|
|
26472
|
+
"description": "company owning the app",
|
|
26473
|
+
"hidden": false
|
|
26474
|
+
},
|
|
26475
|
+
{
|
|
26476
|
+
"flags": "--personal",
|
|
26477
|
+
"description": "use personal scope",
|
|
26478
|
+
"hidden": false
|
|
26479
|
+
},
|
|
26480
|
+
{
|
|
26481
|
+
"flags": "--json",
|
|
26482
|
+
"description": "print JSON",
|
|
26483
|
+
"hidden": false
|
|
26484
|
+
}
|
|
26485
|
+
],
|
|
26486
|
+
"subcommands": []
|
|
26487
|
+
},
|
|
26488
|
+
{
|
|
26489
|
+
"name": "create",
|
|
26490
|
+
"description": "Create a deploy app",
|
|
26491
|
+
"aliases": [],
|
|
26492
|
+
"hidden": false,
|
|
26493
|
+
"helpOption": true,
|
|
26494
|
+
"helpCommand": false,
|
|
26495
|
+
"usage": "[options] <name>",
|
|
26496
|
+
"helpText": [],
|
|
26497
|
+
"arguments": [
|
|
26498
|
+
{
|
|
26499
|
+
"name": "name",
|
|
26500
|
+
"required": true,
|
|
26501
|
+
"variadic": false,
|
|
26502
|
+
"description": ""
|
|
26503
|
+
}
|
|
26504
|
+
],
|
|
26505
|
+
"options": [
|
|
26506
|
+
{
|
|
26507
|
+
"flags": "--type <type>",
|
|
26508
|
+
"description": "static, app or ssr",
|
|
26509
|
+
"hidden": false,
|
|
26510
|
+
"defaultValue": "static"
|
|
26511
|
+
},
|
|
26512
|
+
{
|
|
26513
|
+
"flags": "--company <slug>",
|
|
26514
|
+
"description": "company owning the app",
|
|
26515
|
+
"hidden": false
|
|
26516
|
+
},
|
|
26517
|
+
{
|
|
26518
|
+
"flags": "--personal",
|
|
26519
|
+
"description": "use personal scope",
|
|
26520
|
+
"hidden": false
|
|
26521
|
+
},
|
|
26522
|
+
{
|
|
26523
|
+
"flags": "--json",
|
|
26524
|
+
"description": "print JSON",
|
|
26525
|
+
"hidden": false
|
|
26526
|
+
}
|
|
26527
|
+
],
|
|
26528
|
+
"subcommands": []
|
|
26529
|
+
},
|
|
26530
|
+
{
|
|
26531
|
+
"name": "takedown",
|
|
26532
|
+
"description": "Deactivate a deploy app",
|
|
26533
|
+
"aliases": [],
|
|
26534
|
+
"hidden": false,
|
|
26535
|
+
"helpOption": true,
|
|
26536
|
+
"helpCommand": false,
|
|
26537
|
+
"usage": "[options] <app>",
|
|
26538
|
+
"helpText": [],
|
|
26539
|
+
"arguments": [
|
|
26540
|
+
{
|
|
26541
|
+
"name": "app",
|
|
26542
|
+
"required": true,
|
|
26543
|
+
"variadic": false,
|
|
26544
|
+
"description": ""
|
|
26545
|
+
}
|
|
26546
|
+
],
|
|
26547
|
+
"options": [
|
|
26548
|
+
{
|
|
26549
|
+
"flags": "--company <slug>",
|
|
26550
|
+
"description": "company owning the app",
|
|
26551
|
+
"hidden": false
|
|
26552
|
+
},
|
|
26553
|
+
{
|
|
26554
|
+
"flags": "--personal",
|
|
26555
|
+
"description": "use personal scope",
|
|
26556
|
+
"hidden": false
|
|
26557
|
+
},
|
|
26558
|
+
{
|
|
26559
|
+
"flags": "--json",
|
|
26560
|
+
"description": "print JSON",
|
|
26561
|
+
"hidden": false
|
|
26562
|
+
}
|
|
26563
|
+
],
|
|
26564
|
+
"subcommands": []
|
|
26565
|
+
},
|
|
26566
|
+
{
|
|
26567
|
+
"name": "password-gate",
|
|
26568
|
+
"description": "Set a password gate using a file",
|
|
26569
|
+
"aliases": [],
|
|
26570
|
+
"hidden": false,
|
|
26571
|
+
"helpOption": true,
|
|
26572
|
+
"helpCommand": false,
|
|
26573
|
+
"usage": "[options] <app>",
|
|
26574
|
+
"helpText": [],
|
|
26575
|
+
"arguments": [
|
|
26576
|
+
{
|
|
26577
|
+
"name": "app",
|
|
26578
|
+
"required": true,
|
|
26579
|
+
"variadic": false,
|
|
26580
|
+
"description": ""
|
|
26581
|
+
}
|
|
26582
|
+
],
|
|
26583
|
+
"options": [
|
|
26584
|
+
{
|
|
26585
|
+
"flags": "--password-file <path>",
|
|
26586
|
+
"description": "file containing the password",
|
|
26587
|
+
"hidden": false
|
|
26588
|
+
},
|
|
26589
|
+
{
|
|
26590
|
+
"flags": "--company <slug>",
|
|
26591
|
+
"description": "company owning the app",
|
|
26592
|
+
"hidden": false
|
|
26593
|
+
},
|
|
26594
|
+
{
|
|
26595
|
+
"flags": "--personal",
|
|
26596
|
+
"description": "use personal scope",
|
|
26597
|
+
"hidden": false
|
|
26598
|
+
},
|
|
26599
|
+
{
|
|
26600
|
+
"flags": "--json",
|
|
26601
|
+
"description": "print JSON",
|
|
26602
|
+
"hidden": false
|
|
26603
|
+
}
|
|
26604
|
+
],
|
|
26605
|
+
"subcommands": []
|
|
26606
|
+
},
|
|
26607
|
+
{
|
|
26608
|
+
"name": "private-gate",
|
|
26609
|
+
"description": "Set a private gate and grant email patterns",
|
|
26610
|
+
"aliases": [],
|
|
26611
|
+
"hidden": false,
|
|
26612
|
+
"helpOption": true,
|
|
26613
|
+
"helpCommand": false,
|
|
26614
|
+
"usage": "[options] <app>",
|
|
26615
|
+
"helpText": [],
|
|
26616
|
+
"arguments": [
|
|
26617
|
+
{
|
|
26618
|
+
"name": "app",
|
|
26619
|
+
"required": true,
|
|
26620
|
+
"variadic": false,
|
|
26621
|
+
"description": ""
|
|
26622
|
+
}
|
|
26623
|
+
],
|
|
26624
|
+
"options": [
|
|
26625
|
+
{
|
|
26626
|
+
"flags": "--email <pattern>",
|
|
26627
|
+
"description": "email pattern to grant",
|
|
26628
|
+
"hidden": false,
|
|
26629
|
+
"defaultValue": []
|
|
26630
|
+
},
|
|
26631
|
+
{
|
|
26632
|
+
"flags": "--company <slug>",
|
|
26633
|
+
"description": "company owning the app",
|
|
26634
|
+
"hidden": false
|
|
26635
|
+
},
|
|
26636
|
+
{
|
|
26637
|
+
"flags": "--personal",
|
|
26638
|
+
"description": "use personal scope",
|
|
26639
|
+
"hidden": false
|
|
26640
|
+
},
|
|
26641
|
+
{
|
|
26642
|
+
"flags": "--json",
|
|
26643
|
+
"description": "print JSON",
|
|
26644
|
+
"hidden": false
|
|
26645
|
+
}
|
|
26646
|
+
],
|
|
26647
|
+
"subcommands": []
|
|
26648
|
+
},
|
|
26649
|
+
{
|
|
26650
|
+
"name": "upload",
|
|
26651
|
+
"description": "Upload an existing gzip deployment archive",
|
|
26652
|
+
"aliases": [],
|
|
26653
|
+
"hidden": false,
|
|
26654
|
+
"helpOption": true,
|
|
26655
|
+
"helpCommand": false,
|
|
26656
|
+
"usage": "[options] <app> <archive>",
|
|
26657
|
+
"helpText": [],
|
|
26658
|
+
"arguments": [
|
|
26659
|
+
{
|
|
26660
|
+
"name": "app",
|
|
26661
|
+
"required": true,
|
|
26662
|
+
"variadic": false,
|
|
26663
|
+
"description": ""
|
|
26664
|
+
},
|
|
26665
|
+
{
|
|
26666
|
+
"name": "archive",
|
|
26667
|
+
"required": true,
|
|
26668
|
+
"variadic": false,
|
|
26669
|
+
"description": ""
|
|
26670
|
+
}
|
|
26671
|
+
],
|
|
26672
|
+
"options": [
|
|
26673
|
+
{
|
|
26674
|
+
"flags": "--manifest-org",
|
|
26675
|
+
"description": "include the legacy informational org field in the manifest request",
|
|
26676
|
+
"hidden": false
|
|
26677
|
+
},
|
|
26678
|
+
{
|
|
26679
|
+
"flags": "--company <slug>",
|
|
26680
|
+
"description": "company owning the app",
|
|
26681
|
+
"hidden": false
|
|
26682
|
+
},
|
|
26683
|
+
{
|
|
26684
|
+
"flags": "--personal",
|
|
26685
|
+
"description": "use personal scope",
|
|
26686
|
+
"hidden": false
|
|
26687
|
+
},
|
|
26688
|
+
{
|
|
26689
|
+
"flags": "--json",
|
|
26690
|
+
"description": "print JSON",
|
|
26691
|
+
"hidden": false
|
|
26692
|
+
}
|
|
26693
|
+
],
|
|
26694
|
+
"subcommands": []
|
|
26695
|
+
},
|
|
26437
26696
|
{
|
|
26438
26697
|
"name": "access",
|
|
26439
26698
|
"description": "Show or change who can open a deploy app (company, selected members, or public)",
|
|
@@ -27281,214 +27540,6 @@ export const COMMAND_CATALOG = [
|
|
|
27281
27540
|
]
|
|
27282
27541
|
}
|
|
27283
27542
|
]
|
|
27284
|
-
},
|
|
27285
|
-
{
|
|
27286
|
-
"name": "staff",
|
|
27287
|
-
"description": "Staff-only commands (super-admin required)",
|
|
27288
|
-
"aliases": [],
|
|
27289
|
-
"hidden": false,
|
|
27290
|
-
"helpOption": true,
|
|
27291
|
-
"helpCommand": true,
|
|
27292
|
-
"usage": "[options] [command]",
|
|
27293
|
-
"helpText": [],
|
|
27294
|
-
"arguments": [],
|
|
27295
|
-
"options": [],
|
|
27296
|
-
"subcommands": [
|
|
27297
|
-
{
|
|
27298
|
-
"name": "reset-test-account",
|
|
27299
|
-
"description": "Reset a designated real-email test account (dry-run by default). Wraps POST /v1/admin/test-account/reset — super-admin only.",
|
|
27300
|
-
"aliases": [],
|
|
27301
|
-
"hidden": false,
|
|
27302
|
-
"helpOption": true,
|
|
27303
|
-
"helpCommand": false,
|
|
27304
|
-
"usage": "[options] <email>",
|
|
27305
|
-
"helpText": [],
|
|
27306
|
-
"arguments": [
|
|
27307
|
-
{
|
|
27308
|
-
"name": "email",
|
|
27309
|
-
"required": true,
|
|
27310
|
-
"variadic": false,
|
|
27311
|
-
"description": "Designated test-account email (must be in the registry)"
|
|
27312
|
-
}
|
|
27313
|
-
],
|
|
27314
|
-
"options": [
|
|
27315
|
-
{
|
|
27316
|
-
"flags": "--execute",
|
|
27317
|
-
"description": "Actually delete artifacts. Prompts for a typed-email confirmation.",
|
|
27318
|
-
"hidden": false
|
|
27319
|
-
},
|
|
27320
|
-
{
|
|
27321
|
-
"flags": "-y, --yes",
|
|
27322
|
-
"description": "Skip the typed-email confirmation prompt (still sends confirmEmail).",
|
|
27323
|
-
"hidden": false
|
|
27324
|
-
},
|
|
27325
|
-
{
|
|
27326
|
-
"flags": "--handoff-shared-companies",
|
|
27327
|
-
"description": "Keep a company with real members and hand it to one, instead of refusing the reset.",
|
|
27328
|
-
"hidden": false
|
|
27329
|
-
}
|
|
27330
|
-
],
|
|
27331
|
-
"subcommands": []
|
|
27332
|
-
},
|
|
27333
|
-
{
|
|
27334
|
-
"name": "test-account",
|
|
27335
|
-
"description": "Manage the designated test-account registry (super-admin only). Wraps /v1/admin/test-account-registry.",
|
|
27336
|
-
"aliases": [],
|
|
27337
|
-
"hidden": false,
|
|
27338
|
-
"helpOption": true,
|
|
27339
|
-
"helpCommand": true,
|
|
27340
|
-
"usage": "[options] [command]",
|
|
27341
|
-
"helpText": [],
|
|
27342
|
-
"arguments": [],
|
|
27343
|
-
"options": [],
|
|
27344
|
-
"subcommands": [
|
|
27345
|
-
{
|
|
27346
|
-
"name": "add",
|
|
27347
|
-
"description": "Add an email to the registry so `hq staff reset-test-account` will sweep it.",
|
|
27348
|
-
"aliases": [],
|
|
27349
|
-
"hidden": false,
|
|
27350
|
-
"helpOption": true,
|
|
27351
|
-
"helpCommand": false,
|
|
27352
|
-
"usage": "[options] <email>",
|
|
27353
|
-
"helpText": [],
|
|
27354
|
-
"arguments": [
|
|
27355
|
-
{
|
|
27356
|
-
"name": "email",
|
|
27357
|
-
"required": true,
|
|
27358
|
-
"variadic": false,
|
|
27359
|
-
"description": "Designated test-account email"
|
|
27360
|
-
}
|
|
27361
|
-
],
|
|
27362
|
-
"options": [
|
|
27363
|
-
{
|
|
27364
|
-
"flags": "--note <text>",
|
|
27365
|
-
"description": "Short reason recorded on the row",
|
|
27366
|
-
"hidden": false
|
|
27367
|
-
}
|
|
27368
|
-
],
|
|
27369
|
-
"subcommands": []
|
|
27370
|
-
},
|
|
27371
|
-
{
|
|
27372
|
-
"name": "remove",
|
|
27373
|
-
"description": "Soft-delete a registry entry (row stays with active: false).",
|
|
27374
|
-
"aliases": [],
|
|
27375
|
-
"hidden": false,
|
|
27376
|
-
"helpOption": true,
|
|
27377
|
-
"helpCommand": false,
|
|
27378
|
-
"usage": "[options] <email>",
|
|
27379
|
-
"helpText": [],
|
|
27380
|
-
"arguments": [
|
|
27381
|
-
{
|
|
27382
|
-
"name": "email",
|
|
27383
|
-
"required": true,
|
|
27384
|
-
"variadic": false,
|
|
27385
|
-
"description": "Registered test-account email"
|
|
27386
|
-
}
|
|
27387
|
-
],
|
|
27388
|
-
"options": [],
|
|
27389
|
-
"subcommands": []
|
|
27390
|
-
},
|
|
27391
|
-
{
|
|
27392
|
-
"name": "list",
|
|
27393
|
-
"description": "List active registry entries.",
|
|
27394
|
-
"aliases": [],
|
|
27395
|
-
"hidden": false,
|
|
27396
|
-
"helpOption": true,
|
|
27397
|
-
"helpCommand": false,
|
|
27398
|
-
"usage": "[options]",
|
|
27399
|
-
"helpText": [],
|
|
27400
|
-
"arguments": [],
|
|
27401
|
-
"options": [
|
|
27402
|
-
{
|
|
27403
|
-
"flags": "--include-inactive",
|
|
27404
|
-
"description": "Also list soft-deleted rows (active: false).",
|
|
27405
|
-
"hidden": false
|
|
27406
|
-
}
|
|
27407
|
-
],
|
|
27408
|
-
"subcommands": []
|
|
27409
|
-
}
|
|
27410
|
-
]
|
|
27411
|
-
},
|
|
27412
|
-
{
|
|
27413
|
-
"name": "listings",
|
|
27414
|
-
"description": "Review marketplace listings waiting for approval (staff only). Wraps /v1/moderation.",
|
|
27415
|
-
"aliases": [],
|
|
27416
|
-
"hidden": false,
|
|
27417
|
-
"helpOption": true,
|
|
27418
|
-
"helpCommand": true,
|
|
27419
|
-
"usage": "[options] [command]",
|
|
27420
|
-
"helpText": [],
|
|
27421
|
-
"arguments": [],
|
|
27422
|
-
"options": [],
|
|
27423
|
-
"subcommands": [
|
|
27424
|
-
{
|
|
27425
|
-
"name": "queue",
|
|
27426
|
-
"description": "List published packs waiting for review, oldest first.",
|
|
27427
|
-
"aliases": [],
|
|
27428
|
-
"hidden": false,
|
|
27429
|
-
"helpOption": true,
|
|
27430
|
-
"helpCommand": false,
|
|
27431
|
-
"usage": "[options]",
|
|
27432
|
-
"helpText": [],
|
|
27433
|
-
"arguments": [],
|
|
27434
|
-
"options": [],
|
|
27435
|
-
"subcommands": []
|
|
27436
|
-
},
|
|
27437
|
-
{
|
|
27438
|
-
"name": "approve",
|
|
27439
|
-
"description": "Approve a pending listing so it goes live (older approved versions are superseded).",
|
|
27440
|
-
"aliases": [],
|
|
27441
|
-
"hidden": false,
|
|
27442
|
-
"helpOption": true,
|
|
27443
|
-
"helpCommand": false,
|
|
27444
|
-
"usage": "[options] <listingId>",
|
|
27445
|
-
"helpText": [],
|
|
27446
|
-
"arguments": [
|
|
27447
|
-
{
|
|
27448
|
-
"name": "listingId",
|
|
27449
|
-
"required": true,
|
|
27450
|
-
"variadic": false,
|
|
27451
|
-
"description": "Listing id from `hq staff listings queue` (lst_…)"
|
|
27452
|
-
}
|
|
27453
|
-
],
|
|
27454
|
-
"options": [
|
|
27455
|
-
{
|
|
27456
|
-
"flags": "--note <text>",
|
|
27457
|
-
"description": "Reviewer note recorded on the listing",
|
|
27458
|
-
"hidden": false
|
|
27459
|
-
}
|
|
27460
|
-
],
|
|
27461
|
-
"subcommands": []
|
|
27462
|
-
},
|
|
27463
|
-
{
|
|
27464
|
-
"name": "reject",
|
|
27465
|
-
"description": "Reject a pending listing.",
|
|
27466
|
-
"aliases": [],
|
|
27467
|
-
"hidden": false,
|
|
27468
|
-
"helpOption": true,
|
|
27469
|
-
"helpCommand": false,
|
|
27470
|
-
"usage": "[options] <listingId>",
|
|
27471
|
-
"helpText": [],
|
|
27472
|
-
"arguments": [
|
|
27473
|
-
{
|
|
27474
|
-
"name": "listingId",
|
|
27475
|
-
"required": true,
|
|
27476
|
-
"variadic": false,
|
|
27477
|
-
"description": "Listing id from `hq staff listings queue` (lst_…)"
|
|
27478
|
-
}
|
|
27479
|
-
],
|
|
27480
|
-
"options": [
|
|
27481
|
-
{
|
|
27482
|
-
"flags": "--note <reason>",
|
|
27483
|
-
"description": "Why it was rejected (recorded on the listing)",
|
|
27484
|
-
"hidden": false
|
|
27485
|
-
}
|
|
27486
|
-
],
|
|
27487
|
-
"subcommands": []
|
|
27488
|
-
}
|
|
27489
|
-
]
|
|
27490
|
-
}
|
|
27491
|
-
]
|
|
27492
27543
|
}
|
|
27493
27544
|
];
|
|
27494
27545
|
//# sourceMappingURL=command-catalog.generated.js.map
|
|
@@ -558,6 +558,12 @@ export declare const REGISTRATION_PLAN: readonly [{
|
|
|
558
558
|
readonly parent: "deploy";
|
|
559
559
|
readonly module: "./commands/deploy-list.js";
|
|
560
560
|
readonly exportName: "registerDeployListCommand";
|
|
561
|
+
}, {
|
|
562
|
+
readonly type: "registrar";
|
|
563
|
+
readonly root: "deploy";
|
|
564
|
+
readonly parent: "deploy";
|
|
565
|
+
readonly module: "./commands/deploy-mutations.js";
|
|
566
|
+
readonly exportName: "registerDeployMutationsCommand";
|
|
561
567
|
}, {
|
|
562
568
|
readonly type: "registrar";
|
|
563
569
|
readonly root: "deploy";
|
|
@@ -570,30 +576,6 @@ export declare const REGISTRATION_PLAN: readonly [{
|
|
|
570
576
|
readonly parent: "deploy";
|
|
571
577
|
readonly module: "./commands/deploy-domains.js";
|
|
572
578
|
readonly exportName: "registerDeployDomainsCommand";
|
|
573
|
-
}, {
|
|
574
|
-
readonly type: "group";
|
|
575
|
-
readonly root: "staff";
|
|
576
|
-
readonly id: "staff";
|
|
577
|
-
readonly name: "staff";
|
|
578
|
-
readonly description: "Staff-only commands (super-admin required)";
|
|
579
|
-
}, {
|
|
580
|
-
readonly type: "registrar";
|
|
581
|
-
readonly root: "staff";
|
|
582
|
-
readonly parent: "staff";
|
|
583
|
-
readonly module: "./commands/staff/reset-test-account.js";
|
|
584
|
-
readonly exportName: "registerResetTestAccountCommand";
|
|
585
|
-
}, {
|
|
586
|
-
readonly type: "registrar";
|
|
587
|
-
readonly root: "staff";
|
|
588
|
-
readonly parent: "staff";
|
|
589
|
-
readonly module: "./commands/staff/test-account.js";
|
|
590
|
-
readonly exportName: "registerTestAccountCommand";
|
|
591
|
-
}, {
|
|
592
|
-
readonly type: "registrar";
|
|
593
|
-
readonly root: "staff";
|
|
594
|
-
readonly parent: "staff";
|
|
595
|
-
readonly module: "./commands/staff/listings.js";
|
|
596
|
-
readonly exportName: "registerListingsCommand";
|
|
597
579
|
}];
|
|
598
580
|
export declare function registerAllCommands(program: Command): Promise<void>;
|
|
599
581
|
/**
|
|
@@ -95,16 +95,12 @@ export const REGISTRATION_PLAN = [
|
|
|
95
95
|
{ type: "group", root: "deploy", id: "deploy", name: "deploy", description: "Manage deployments in hq-deploy" },
|
|
96
96
|
{ type: "registrar", root: "deploy", parent: "deploy", module: "./commands/deploy-comments.js", exportName: "registerDeployCommentsCommand" },
|
|
97
97
|
{ type: "registrar", root: "deploy", parent: "deploy", module: "./commands/deploy-list.js", exportName: "registerDeployListCommand" },
|
|
98
|
+
{ type: "registrar", root: "deploy", parent: "deploy", module: "./commands/deploy-mutations.js", exportName: "registerDeployMutationsCommand" },
|
|
98
99
|
{ type: "registrar", root: "deploy", parent: "deploy", module: "./commands/deploy-access.js", exportName: "registerDeployAccessCommand" },
|
|
99
100
|
{ type: "registrar", root: "deploy", parent: "deploy", module: "./commands/deploy-domains.js", exportName: "registerDeployDomainsCommand" },
|
|
100
|
-
//
|
|
101
|
-
//
|
|
102
|
-
//
|
|
103
|
-
{ type: "group", root: "staff", id: "staff", name: "staff", description: "Staff-only commands (super-admin required)" },
|
|
104
|
-
{ type: "registrar", root: "staff", parent: "staff", module: "./commands/staff/reset-test-account.js", exportName: "registerResetTestAccountCommand" },
|
|
105
|
-
{ type: "registrar", root: "staff", parent: "staff", module: "./commands/staff/test-account.js", exportName: "registerTestAccountCommand" },
|
|
106
|
-
// Marketplace moderation: queue / approve / reject over /v1/moderation.
|
|
107
|
-
{ type: "registrar", root: "staff", parent: "staff", module: "./commands/staff/listings.js", exportName: "registerListingsCommand" },
|
|
101
|
+
// hq-core-rust US-053: the staff-only `hq staff` group left the public CLI.
|
|
102
|
+
// Its code is deleted from this repo; staff run a staff-only hq-staff tool
|
|
103
|
+
// kept outside it.
|
|
108
104
|
];
|
|
109
105
|
async function executePlan(program, steps) {
|
|
110
106
|
const parents = new Map([["program", program]]);
|
package/dist/commands/auth.js
CHANGED
|
@@ -34,6 +34,7 @@ import * as tokenKeychain from "../utils/token-keychain.js";
|
|
|
34
34
|
import { resolveLoginProviderSelection, } from "../utils/login-provider.js";
|
|
35
35
|
import { getLastLoginProviderStatePath, loadLastLoginProvider, storeLastLoginProvider, } from "../lib/auth-login-provider-state.js";
|
|
36
36
|
import { callbackPortBusyGuidance, DEFAULT_CALLBACK_PORT, isCallbackPortBusy, } from "../utils/callback-port-busy.js";
|
|
37
|
+
import { exitCli } from "../utils/exit-after-worker.js";
|
|
37
38
|
/** Decode token claims for local display and provider-memory purposes only. */
|
|
38
39
|
function decodeIdTokenClaims(idToken) {
|
|
39
40
|
try {
|
|
@@ -405,7 +406,7 @@ export function registerAuthCommands(program) {
|
|
|
405
406
|
authCmd
|
|
406
407
|
.command("status")
|
|
407
408
|
.description("Show whether a valid HQ session is cached")
|
|
408
|
-
.action(() => {
|
|
409
|
+
.action(async () => {
|
|
409
410
|
// Effective source: env opt-in, fresh-box default-creds when no usable
|
|
410
411
|
// person session, or after a definitive person-refresh rejection marked
|
|
411
412
|
// the person cache rejected (transient refresh errors still report person).
|
|
@@ -428,7 +429,7 @@ export function registerAuthCommands(program) {
|
|
|
428
429
|
}
|
|
429
430
|
console.log(chalk.yellow("No cached HQ session — run `hq login`"));
|
|
430
431
|
console.log(chalk.dim(`token source: ${tokenSource}`));
|
|
431
|
-
|
|
432
|
+
return await exitCli(exitCode);
|
|
432
433
|
}
|
|
433
434
|
const claims = peekIdToken(cached.idToken);
|
|
434
435
|
const who = machine
|
|
@@ -16,6 +16,7 @@ type HandoffContext = {
|
|
|
16
16
|
/** Builds the HQ-Fingerprint commit trailer value. Defaults to the offline builder. */
|
|
17
17
|
buildFingerprint?: (root: string) => string | null;
|
|
18
18
|
};
|
|
19
|
+
export declare function boundSessionCompany(root: string): string;
|
|
19
20
|
export declare function runHandoffFinalize(args: string[], context: HandoffContext): RunResult;
|
|
20
21
|
export declare function runHandoffPost(args: string[], context: HandoffContext): RunResult | Promise<RunResult>;
|
|
21
22
|
export declare function runHandoffPostWorker(args: string[], context: HandoffContext): RunResult;
|