@indigoai-us/hq-cli 5.345.234 → 5.345.235
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 +60 -0
- package/dist/command-catalog.generated.d.ts +236 -7
- package/dist/command-catalog.generated.js +291 -7
- package/dist/command-registration-plan.d.ts +24 -0
- package/dist/command-registration-plan.js +4 -0
- package/dist/commands/bot-companies.d.ts +4 -1
- package/dist/commands/bot-companies.js +5 -1
- package/dist/commands/bot.d.ts +10 -0
- package/dist/commands/bot.js +165 -36
- package/dist/commands/capacity.js +1 -1
- package/dist/commands/core-handoff.js +2 -2
- package/dist/commands/core-ontology-native.js +5 -4
- package/dist/commands/core-pipeline-workflow-runner-native.js +4 -9
- package/dist/commands/deploy-app-db.d.ts +3 -0
- package/dist/commands/deploy-app-db.js +79 -0
- package/dist/commands/deploy-app-upload.d.ts +3 -0
- package/dist/commands/deploy-app-upload.js +120 -0
- package/dist/commands/deploy-comments.js +46 -1
- package/dist/commands/deploy-mutations.js +71 -5
- package/dist/commands/deploy-ssr.d.ts +3 -0
- package/dist/commands/deploy-ssr.js +74 -0
- package/dist/commands/dm.d.ts +7 -1
- package/dist/commands/dm.js +39 -9
- package/dist/commands/doctor.js +2 -10
- package/dist/commands/fingerprint.js +4 -9
- package/dist/commands/lanes-accounts.js +5 -5
- package/dist/commands/lanes-hold.js +1 -1
- package/dist/commands/lanes-message.js +3 -3
- package/dist/commands/lanes-move.js +1 -1
- package/dist/commands/lanes-resume.js +6 -6
- package/dist/commands/lanes-watch.js +2 -2
- package/dist/commands/lanes.js +21 -21
- package/dist/commands/work-env.d.ts +90 -0
- package/dist/commands/work-env.js +304 -0
- package/dist/lazy-commands.js +2 -10
- package/dist/lib/bot/api.d.ts +27 -0
- package/dist/lib/bot/api.js +28 -2
- package/dist/lib/bot/cloud-create.d.ts +46 -0
- package/dist/lib/bot/cloud-create.js +128 -0
- package/dist/lib/bot/fleet-daemon.js +4 -1
- package/dist/lib/bot/fleet-local.d.ts +7 -0
- package/dist/lib/bot/fleet-local.js +39 -3
- package/dist/lib/bot/fleet-owner-companies.js +2 -2
- package/dist/lib/bot/promote.d.ts +81 -2
- package/dist/lib/bot/promote.js +425 -51
- package/dist/lib/bot/promotion-hold.d.ts +9 -0
- package/dist/lib/bot/promotion-hold.js +29 -0
- package/dist/lib/bot/promotion-receipt.d.ts +10 -0
- package/dist/lib/bot/promotion-receipt.js +41 -1
- package/dist/lib/bot/promotion-upload.d.ts +6 -1
- package/dist/lib/bot/promotion-upload.js +3 -1
- package/dist/lib/bot/readiness.d.ts +9 -0
- package/dist/lib/bot/readiness.js +16 -0
- package/dist/lib/capacity/route.js +4 -4
- package/dist/lib/capacity/sign-in.js +1 -1
- package/dist/lib/checkpoint-ontology/entity-file.js +15 -17
- package/dist/lib/daemon/catalog.d.ts +2 -0
- package/dist/lib/daemon/catalog.js +2 -0
- package/dist/lib/daemon/hook-requests.js +23 -3
- package/dist/lib/daemon/run.d.ts +14 -0
- package/dist/lib/daemon/run.js +24 -14
- package/dist/lib/deploy-api.d.ts +2 -0
- package/dist/lib/deploy-api.js +9 -0
- package/dist/lib/environment/work-requirements.js +1 -1
- package/dist/lib/hot-channels/signals-pass.d.ts +0 -76
- package/dist/lib/hot-channels/signals-pass.js +81 -4
- package/dist/lib/lanes/account-company.js +1 -1
- package/dist/lib/lanes/account-ownership.js +1 -1
- package/dist/lib/lanes/accounts.js +1 -1
- package/dist/lib/lanes/delivery.js +7 -7
- package/dist/lib/lanes/dropbox.js +1 -1
- package/dist/lib/lanes/grants.js +3 -3
- package/dist/lib/lanes/hq-root.js +1 -1
- package/dist/lib/lanes/keep-alive-audit.js +2 -2
- package/dist/lib/lanes/links.js +4 -4
- package/dist/lib/lanes/monitor.js +3 -3
- package/dist/lib/lanes/quota-notice.js +1 -1
- package/dist/lib/lanes/reconcile.js +22 -12
- package/dist/lib/lanes/signal-brief-template.js +1 -1
- package/dist/lib/lanes/worker-continuity.js +1 -1
- package/dist/lib/mesh/live/direct-drain.d.ts +1 -0
- package/dist/lib/mesh/live/direct-drain.js +12 -1
- package/dist/lib/mesh/live/emit.d.ts +1 -1
- package/dist/lib/mesh/live/emit.js +10 -5
- package/dist/lib/mesh/live/flush.js +19 -4
- package/dist/lib/mesh/live/reporting-privacy.d.ts +9 -3
- package/dist/lib/mesh/live/reporting-privacy.js +27 -7
- package/dist/lib/mesh/live/spool.d.ts +2 -0
- package/dist/lib/mesh/live/spool.js +41 -0
- package/dist/lib/signals/sanitize.js +5 -4
- package/dist/lib/signals/steps/garden.js +5 -4
- package/dist/utils/frontmatter.d.ts +8 -0
- package/dist/utils/frontmatter.js +11 -2
- package/dist/utils/hq-roots-core.d.ts +5 -0
- package/dist/utils/hq-roots-core.js +18 -9
- package/dist/utils/owner-session.d.ts +13 -0
- package/dist/utils/owner-session.js +28 -0
- package/package.json +7 -7
|
@@ -5194,7 +5194,7 @@ export const COMMAND_CATALOG = [
|
|
|
5194
5194
|
},
|
|
5195
5195
|
{
|
|
5196
5196
|
"name": "thread",
|
|
5197
|
-
"description": "Show your two-way conversation with a person (email, personUid, or agentUid). Reads oldest-first and marks their messages read unless --no-ack.",
|
|
5197
|
+
"description": "Show your two-way conversation with a person (email, personUid, or agentUid). Reads oldest-first and marks their messages read unless --no-ack (agents never mark read).",
|
|
5198
5198
|
"aliases": [
|
|
5199
5199
|
"read"
|
|
5200
5200
|
],
|
|
@@ -5219,7 +5219,7 @@ export const COMMAND_CATALOG = [
|
|
|
5219
5219
|
},
|
|
5220
5220
|
{
|
|
5221
5221
|
"flags": "--no-ack",
|
|
5222
|
-
"description": "Do not mark the incoming messages as read",
|
|
5222
|
+
"description": "Do not mark the incoming messages as read (agents never mark read)",
|
|
5223
5223
|
"hidden": false
|
|
5224
5224
|
},
|
|
5225
5225
|
{
|
|
@@ -15450,7 +15450,7 @@ export const COMMAND_CATALOG = [
|
|
|
15450
15450
|
},
|
|
15451
15451
|
{
|
|
15452
15452
|
"name": "login",
|
|
15453
|
-
"description": "Show signed-in accounts, or sign into a provider through hq
|
|
15453
|
+
"description": "Show signed-in accounts, or sign into a provider through hq runners accounts login",
|
|
15454
15454
|
"aliases": [],
|
|
15455
15455
|
"hidden": false,
|
|
15456
15456
|
"helpOption": true,
|
|
@@ -15709,6 +15709,31 @@ export const COMMAND_CATALOG = [
|
|
|
15709
15709
|
}
|
|
15710
15710
|
]
|
|
15711
15711
|
},
|
|
15712
|
+
{
|
|
15713
|
+
"name": "work-env",
|
|
15714
|
+
"description": "Start, inspect and stop a company-scoped work environment (runs the work-env skill script)",
|
|
15715
|
+
"aliases": [],
|
|
15716
|
+
"hidden": false,
|
|
15717
|
+
"helpOption": false,
|
|
15718
|
+
"helpCommand": false,
|
|
15719
|
+
"usage": "<start|status|logs|stop|build> [args...]",
|
|
15720
|
+
"helpText": [
|
|
15721
|
+
{
|
|
15722
|
+
"position": "after",
|
|
15723
|
+
"text": "\nSubcommands (handled by the company's work-env.sh):\n start --company <slug> --secrets NAME1,NAME2 --workdir <abs path> --hours <n>\n [--cpus 2] [--memory 4] [--backend local|microvm] -- <command...>\n status <id>\n logs <id>\n stop <id>\n build [--context <agent-image dir>]\n\nRuns only in an HQ session locked to the company. The company is --company\n(start) or, for the other subcommands, the session's primary company. It must\nbe in the session's locked company set; it selects\ncompanies/<company>/skills/work-env/scripts/work-env.sh under the HQ root.\nEvery argument reaches the script unchanged, and the script enforces the lock\nagain, mints and revokes the per-run key, and runs teardown and the leak scan.\n\nRuns the script with bash from PATH and no shell. A terminal Ctrl-C reaches\nthe script directly; SIGTERM and SIGHUP sent to hq are forwarded once. hq\nwaits for teardown and exits with the script's exit code (2 refused, 3\nteardown failed, 4 key mint failed, 5 docker run failed, 124 timeout, 130/143\ninterrupted).\n\nExamples:\n hq work-env start --company indigo --secrets NPM_TOKEN --workdir \"$PWD\" --hours 1 -- pnpm test\n hq work-env status we-20261118t210000z-a1b2c3\n hq work-env stop we-20261118t210000z-a1b2c3\n"
|
|
15724
|
+
}
|
|
15725
|
+
],
|
|
15726
|
+
"arguments": [
|
|
15727
|
+
{
|
|
15728
|
+
"name": "args",
|
|
15729
|
+
"required": false,
|
|
15730
|
+
"variadic": true,
|
|
15731
|
+
"description": "Arguments passed unchanged to work-env.sh"
|
|
15732
|
+
}
|
|
15733
|
+
],
|
|
15734
|
+
"options": [],
|
|
15735
|
+
"subcommands": []
|
|
15736
|
+
},
|
|
15712
15737
|
{
|
|
15713
15738
|
"name": "doctor",
|
|
15714
15739
|
"description": "Verify HQ hook wiring, runtimes, and connection health (read-only; integrations uses one control-plane inventory read).",
|
|
@@ -22467,7 +22492,7 @@ export const COMMAND_CATALOG = [
|
|
|
22467
22492
|
},
|
|
22468
22493
|
{
|
|
22469
22494
|
"name": "interrupt",
|
|
22470
|
-
"description": "Stop a running lane's turn and keep it resumable with hq
|
|
22495
|
+
"description": "Stop a running lane's turn and keep it resumable with hq runners resume",
|
|
22471
22496
|
"aliases": [],
|
|
22472
22497
|
"hidden": false,
|
|
22473
22498
|
"helpOption": true,
|
|
@@ -25010,6 +25035,11 @@ export const COMMAND_CATALOG = [
|
|
|
25010
25035
|
"description": "Destination company identity",
|
|
25011
25036
|
"hidden": false
|
|
25012
25037
|
},
|
|
25038
|
+
{
|
|
25039
|
+
"flags": "--cancel",
|
|
25040
|
+
"description": "Cancel the move: shut down the cloud copy and run the bot on this computer again",
|
|
25041
|
+
"hidden": false
|
|
25042
|
+
},
|
|
25013
25043
|
{
|
|
25014
25044
|
"flags": "--json",
|
|
25015
25045
|
"description": "Print promotion progress as JSON",
|
|
@@ -25103,6 +25133,11 @@ export const COMMAND_CATALOG = [
|
|
|
25103
25133
|
"hidden": false,
|
|
25104
25134
|
"defaultValue": "synced"
|
|
25105
25135
|
},
|
|
25136
|
+
{
|
|
25137
|
+
"flags": "--cloud",
|
|
25138
|
+
"description": "Create a personal bot that runs on your personal Outpost instead of this computer; it acts as you in every company you belong to",
|
|
25139
|
+
"hidden": false
|
|
25140
|
+
},
|
|
25106
25141
|
{
|
|
25107
25142
|
"flags": "--no-daemon",
|
|
25108
25143
|
"description": "Accepted for compatibility; HQ Fleet bots run under their own background service",
|
|
@@ -26337,7 +26372,7 @@ export const COMMAND_CATALOG = [
|
|
|
26337
26372
|
"subcommands": [
|
|
26338
26373
|
{
|
|
26339
26374
|
"name": "comments",
|
|
26340
|
-
"description": "
|
|
26375
|
+
"description": "Read and configure comments on your deployed apps",
|
|
26341
26376
|
"aliases": [],
|
|
26342
26377
|
"hidden": false,
|
|
26343
26378
|
"helpOption": true,
|
|
@@ -26415,6 +26450,48 @@ export const COMMAND_CATALOG = [
|
|
|
26415
26450
|
}
|
|
26416
26451
|
],
|
|
26417
26452
|
"subcommands": []
|
|
26453
|
+
},
|
|
26454
|
+
{
|
|
26455
|
+
"name": "toggle",
|
|
26456
|
+
"description": "Turn app comments on or off by app ID",
|
|
26457
|
+
"aliases": [],
|
|
26458
|
+
"hidden": false,
|
|
26459
|
+
"helpOption": true,
|
|
26460
|
+
"helpCommand": false,
|
|
26461
|
+
"usage": "[options] <app-id> <mode>",
|
|
26462
|
+
"helpText": [],
|
|
26463
|
+
"arguments": [
|
|
26464
|
+
{
|
|
26465
|
+
"name": "app-id",
|
|
26466
|
+
"required": true,
|
|
26467
|
+
"variadic": false,
|
|
26468
|
+
"description": ""
|
|
26469
|
+
},
|
|
26470
|
+
{
|
|
26471
|
+
"name": "mode",
|
|
26472
|
+
"required": true,
|
|
26473
|
+
"variadic": false,
|
|
26474
|
+
"description": ""
|
|
26475
|
+
}
|
|
26476
|
+
],
|
|
26477
|
+
"options": [
|
|
26478
|
+
{
|
|
26479
|
+
"flags": "--company <slug>",
|
|
26480
|
+
"description": "company owning the app",
|
|
26481
|
+
"hidden": false
|
|
26482
|
+
},
|
|
26483
|
+
{
|
|
26484
|
+
"flags": "--personal",
|
|
26485
|
+
"description": "use personal scope",
|
|
26486
|
+
"hidden": false
|
|
26487
|
+
},
|
|
26488
|
+
{
|
|
26489
|
+
"flags": "--json",
|
|
26490
|
+
"description": "print the updated comments setting as JSON",
|
|
26491
|
+
"hidden": false
|
|
26492
|
+
}
|
|
26493
|
+
],
|
|
26494
|
+
"subcommands": []
|
|
26418
26495
|
}
|
|
26419
26496
|
]
|
|
26420
26497
|
},
|
|
@@ -26456,7 +26533,79 @@ export const COMMAND_CATALOG = [
|
|
|
26456
26533
|
},
|
|
26457
26534
|
{
|
|
26458
26535
|
"name": "inspect",
|
|
26459
|
-
"description": "Read app access
|
|
26536
|
+
"description": "Read app access state by id, exact name or subdomain",
|
|
26537
|
+
"aliases": [],
|
|
26538
|
+
"hidden": false,
|
|
26539
|
+
"helpOption": true,
|
|
26540
|
+
"helpCommand": false,
|
|
26541
|
+
"usage": "[options] <app>",
|
|
26542
|
+
"helpText": [],
|
|
26543
|
+
"arguments": [
|
|
26544
|
+
{
|
|
26545
|
+
"name": "app",
|
|
26546
|
+
"required": true,
|
|
26547
|
+
"variadic": false,
|
|
26548
|
+
"description": ""
|
|
26549
|
+
}
|
|
26550
|
+
],
|
|
26551
|
+
"options": [
|
|
26552
|
+
{
|
|
26553
|
+
"flags": "--company <slug>",
|
|
26554
|
+
"description": "company owning the app",
|
|
26555
|
+
"hidden": false
|
|
26556
|
+
},
|
|
26557
|
+
{
|
|
26558
|
+
"flags": "--personal",
|
|
26559
|
+
"description": "use personal scope",
|
|
26560
|
+
"hidden": false
|
|
26561
|
+
},
|
|
26562
|
+
{
|
|
26563
|
+
"flags": "--json",
|
|
26564
|
+
"description": "print JSON",
|
|
26565
|
+
"hidden": false
|
|
26566
|
+
}
|
|
26567
|
+
],
|
|
26568
|
+
"subcommands": []
|
|
26569
|
+
},
|
|
26570
|
+
{
|
|
26571
|
+
"name": "app-info",
|
|
26572
|
+
"description": "Read deploy app identity and access metadata",
|
|
26573
|
+
"aliases": [],
|
|
26574
|
+
"hidden": false,
|
|
26575
|
+
"helpOption": true,
|
|
26576
|
+
"helpCommand": false,
|
|
26577
|
+
"usage": "[options] <app>",
|
|
26578
|
+
"helpText": [],
|
|
26579
|
+
"arguments": [
|
|
26580
|
+
{
|
|
26581
|
+
"name": "app",
|
|
26582
|
+
"required": true,
|
|
26583
|
+
"variadic": false,
|
|
26584
|
+
"description": ""
|
|
26585
|
+
}
|
|
26586
|
+
],
|
|
26587
|
+
"options": [
|
|
26588
|
+
{
|
|
26589
|
+
"flags": "--company <slug>",
|
|
26590
|
+
"description": "company owning the app",
|
|
26591
|
+
"hidden": false
|
|
26592
|
+
},
|
|
26593
|
+
{
|
|
26594
|
+
"flags": "--personal",
|
|
26595
|
+
"description": "use personal scope",
|
|
26596
|
+
"hidden": false
|
|
26597
|
+
},
|
|
26598
|
+
{
|
|
26599
|
+
"flags": "--json",
|
|
26600
|
+
"description": "print JSON",
|
|
26601
|
+
"hidden": false
|
|
26602
|
+
}
|
|
26603
|
+
],
|
|
26604
|
+
"subcommands": []
|
|
26605
|
+
},
|
|
26606
|
+
{
|
|
26607
|
+
"name": "history",
|
|
26608
|
+
"description": "Read deployment history for one app",
|
|
26460
26609
|
"aliases": [],
|
|
26461
26610
|
"hidden": false,
|
|
26462
26611
|
"helpOption": true,
|
|
@@ -26534,7 +26683,7 @@ export const COMMAND_CATALOG = [
|
|
|
26534
26683
|
},
|
|
26535
26684
|
{
|
|
26536
26685
|
"name": "takedown",
|
|
26537
|
-
"description": "Deactivate a deploy app",
|
|
26686
|
+
"description": "Deactivate a deploy app by id, exact name or subdomain",
|
|
26538
26687
|
"aliases": [],
|
|
26539
26688
|
"hidden": false,
|
|
26540
26689
|
"helpOption": true,
|
|
@@ -27543,6 +27692,141 @@ export const COMMAND_CATALOG = [
|
|
|
27543
27692
|
]
|
|
27544
27693
|
}
|
|
27545
27694
|
]
|
|
27695
|
+
},
|
|
27696
|
+
{
|
|
27697
|
+
"name": "enable-database",
|
|
27698
|
+
"description": "Enable database attachment for the next app deploy",
|
|
27699
|
+
"aliases": [],
|
|
27700
|
+
"hidden": false,
|
|
27701
|
+
"helpOption": true,
|
|
27702
|
+
"helpCommand": false,
|
|
27703
|
+
"usage": "[options] <app-id>",
|
|
27704
|
+
"helpText": [],
|
|
27705
|
+
"arguments": [
|
|
27706
|
+
{
|
|
27707
|
+
"name": "app-id",
|
|
27708
|
+
"required": true,
|
|
27709
|
+
"variadic": false,
|
|
27710
|
+
"description": ""
|
|
27711
|
+
}
|
|
27712
|
+
],
|
|
27713
|
+
"options": [
|
|
27714
|
+
{
|
|
27715
|
+
"flags": "--company <slug>",
|
|
27716
|
+
"description": "company owning the app",
|
|
27717
|
+
"hidden": false
|
|
27718
|
+
},
|
|
27719
|
+
{
|
|
27720
|
+
"flags": "--personal",
|
|
27721
|
+
"description": "use personal scope",
|
|
27722
|
+
"hidden": false
|
|
27723
|
+
},
|
|
27724
|
+
{
|
|
27725
|
+
"flags": "--acknowledge-database-billing",
|
|
27726
|
+
"description": "confirm explicit database billing approval",
|
|
27727
|
+
"hidden": false
|
|
27728
|
+
},
|
|
27729
|
+
{
|
|
27730
|
+
"flags": "--json",
|
|
27731
|
+
"description": "print the saved database setting as JSON",
|
|
27732
|
+
"hidden": false
|
|
27733
|
+
}
|
|
27734
|
+
],
|
|
27735
|
+
"subcommands": []
|
|
27736
|
+
},
|
|
27737
|
+
{
|
|
27738
|
+
"name": "register-ssr",
|
|
27739
|
+
"description": "Register an existing ECR image for an SSR deployment",
|
|
27740
|
+
"aliases": [],
|
|
27741
|
+
"hidden": false,
|
|
27742
|
+
"helpOption": true,
|
|
27743
|
+
"helpCommand": false,
|
|
27744
|
+
"usage": "[options] <app-id> <image-tag>",
|
|
27745
|
+
"helpText": [],
|
|
27746
|
+
"arguments": [
|
|
27747
|
+
{
|
|
27748
|
+
"name": "app-id",
|
|
27749
|
+
"required": true,
|
|
27750
|
+
"variadic": false,
|
|
27751
|
+
"description": ""
|
|
27752
|
+
},
|
|
27753
|
+
{
|
|
27754
|
+
"name": "image-tag",
|
|
27755
|
+
"required": true,
|
|
27756
|
+
"variadic": false,
|
|
27757
|
+
"description": ""
|
|
27758
|
+
}
|
|
27759
|
+
],
|
|
27760
|
+
"options": [
|
|
27761
|
+
{
|
|
27762
|
+
"flags": "--company <slug>",
|
|
27763
|
+
"description": "company owning the app",
|
|
27764
|
+
"hidden": false
|
|
27765
|
+
},
|
|
27766
|
+
{
|
|
27767
|
+
"flags": "--personal",
|
|
27768
|
+
"description": "use personal scope",
|
|
27769
|
+
"hidden": false
|
|
27770
|
+
},
|
|
27771
|
+
{
|
|
27772
|
+
"flags": "--json",
|
|
27773
|
+
"description": "print the acceptance receipt as JSON",
|
|
27774
|
+
"hidden": false
|
|
27775
|
+
}
|
|
27776
|
+
],
|
|
27777
|
+
"subcommands": []
|
|
27778
|
+
},
|
|
27779
|
+
{
|
|
27780
|
+
"name": "upload-app",
|
|
27781
|
+
"description": "Upload an app archive with frontend and backend code",
|
|
27782
|
+
"aliases": [],
|
|
27783
|
+
"hidden": false,
|
|
27784
|
+
"helpOption": true,
|
|
27785
|
+
"helpCommand": false,
|
|
27786
|
+
"usage": "[options] <app-id> <archive>",
|
|
27787
|
+
"helpText": [],
|
|
27788
|
+
"arguments": [
|
|
27789
|
+
{
|
|
27790
|
+
"name": "app-id",
|
|
27791
|
+
"required": true,
|
|
27792
|
+
"variadic": false,
|
|
27793
|
+
"description": ""
|
|
27794
|
+
},
|
|
27795
|
+
{
|
|
27796
|
+
"name": "archive",
|
|
27797
|
+
"required": true,
|
|
27798
|
+
"variadic": false,
|
|
27799
|
+
"description": ""
|
|
27800
|
+
}
|
|
27801
|
+
],
|
|
27802
|
+
"options": [
|
|
27803
|
+
{
|
|
27804
|
+
"flags": "--company <slug>",
|
|
27805
|
+
"description": "company owning the app",
|
|
27806
|
+
"hidden": false
|
|
27807
|
+
},
|
|
27808
|
+
{
|
|
27809
|
+
"flags": "--personal",
|
|
27810
|
+
"description": "use personal scope",
|
|
27811
|
+
"hidden": false
|
|
27812
|
+
},
|
|
27813
|
+
{
|
|
27814
|
+
"flags": "--acknowledge-database-billing",
|
|
27815
|
+
"description": "confirm explicit database billing approval",
|
|
27816
|
+
"hidden": false
|
|
27817
|
+
},
|
|
27818
|
+
{
|
|
27819
|
+
"flags": "--acknowledge-public-secret-risk",
|
|
27820
|
+
"description": "confirm explicit approval for the public app's secret-binding risk",
|
|
27821
|
+
"hidden": false
|
|
27822
|
+
},
|
|
27823
|
+
{
|
|
27824
|
+
"flags": "--json",
|
|
27825
|
+
"description": "print the deployment receipt as JSON",
|
|
27826
|
+
"hidden": false
|
|
27827
|
+
}
|
|
27828
|
+
],
|
|
27829
|
+
"subcommands": []
|
|
27546
27830
|
}
|
|
27547
27831
|
]
|
|
27548
27832
|
}
|
|
@@ -490,6 +490,12 @@ export declare const REGISTRATION_PLAN: readonly [{
|
|
|
490
490
|
readonly parent: "program";
|
|
491
491
|
readonly module: "./commands/env.js";
|
|
492
492
|
readonly exportName: "registerEnvCommand";
|
|
493
|
+
}, {
|
|
494
|
+
readonly type: "registrar";
|
|
495
|
+
readonly root: "work-env";
|
|
496
|
+
readonly parent: "program";
|
|
497
|
+
readonly module: "./commands/work-env.js";
|
|
498
|
+
readonly exportName: "registerWorkEnvCommand";
|
|
493
499
|
}, {
|
|
494
500
|
readonly type: "registrar";
|
|
495
501
|
readonly root: "doctor";
|
|
@@ -576,6 +582,24 @@ export declare const REGISTRATION_PLAN: readonly [{
|
|
|
576
582
|
readonly parent: "deploy";
|
|
577
583
|
readonly module: "./commands/deploy-domains.js";
|
|
578
584
|
readonly exportName: "registerDeployDomainsCommand";
|
|
585
|
+
}, {
|
|
586
|
+
readonly type: "registrar";
|
|
587
|
+
readonly root: "deploy";
|
|
588
|
+
readonly parent: "deploy";
|
|
589
|
+
readonly module: "./commands/deploy-app-db.js";
|
|
590
|
+
readonly exportName: "registerDeployAppDatabaseCommand";
|
|
591
|
+
}, {
|
|
592
|
+
readonly type: "registrar";
|
|
593
|
+
readonly root: "deploy";
|
|
594
|
+
readonly parent: "deploy";
|
|
595
|
+
readonly module: "./commands/deploy-ssr.js";
|
|
596
|
+
readonly exportName: "registerDeploySsrCommand";
|
|
597
|
+
}, {
|
|
598
|
+
readonly type: "registrar";
|
|
599
|
+
readonly root: "deploy";
|
|
600
|
+
readonly parent: "deploy";
|
|
601
|
+
readonly module: "./commands/deploy-app-upload.js";
|
|
602
|
+
readonly exportName: "registerDeployAppUploadCommand";
|
|
579
603
|
}];
|
|
580
604
|
export declare function registerAllCommands(program: Command): Promise<void>;
|
|
581
605
|
/**
|
|
@@ -84,6 +84,7 @@ export const REGISTRATION_PLAN = [
|
|
|
84
84
|
{ type: "registrar", root: "index", parent: "program", module: "./commands/index-cmd.js", exportName: "registerIndexCommand" },
|
|
85
85
|
{ type: "registrar", root: "capacity", parent: "program", module: "./commands/capacity.js", exportName: "registerCapacityCommand" },
|
|
86
86
|
{ type: "registrar", root: "env", parent: "program", module: "./commands/env.js", exportName: "registerEnvCommand" },
|
|
87
|
+
{ type: "registrar", root: "work-env", parent: "program", module: "./commands/work-env.js", exportName: "registerWorkEnvCommand" },
|
|
87
88
|
{ type: "registrar", root: "doctor", parent: "program", module: "./commands/doctor.js", exportName: "registerDoctorCommand" },
|
|
88
89
|
{ type: "registrar", root: "mesh", parent: "program", module: "./commands/mesh.js", exportName: "registerMeshCommand" },
|
|
89
90
|
{ type: "registrar", root: "runners", parent: "program", module: "./commands/lanes.js", exportName: "registerRunnersCommand" },
|
|
@@ -98,6 +99,9 @@ export const REGISTRATION_PLAN = [
|
|
|
98
99
|
{ type: "registrar", root: "deploy", parent: "deploy", module: "./commands/deploy-mutations.js", exportName: "registerDeployMutationsCommand" },
|
|
99
100
|
{ type: "registrar", root: "deploy", parent: "deploy", module: "./commands/deploy-access.js", exportName: "registerDeployAccessCommand" },
|
|
100
101
|
{ type: "registrar", root: "deploy", parent: "deploy", module: "./commands/deploy-domains.js", exportName: "registerDeployDomainsCommand" },
|
|
102
|
+
{ type: "registrar", root: "deploy", parent: "deploy", module: "./commands/deploy-app-db.js", exportName: "registerDeployAppDatabaseCommand" },
|
|
103
|
+
{ type: "registrar", root: "deploy", parent: "deploy", module: "./commands/deploy-ssr.js", exportName: "registerDeploySsrCommand" },
|
|
104
|
+
{ type: "registrar", root: "deploy", parent: "deploy", module: "./commands/deploy-app-upload.js", exportName: "registerDeployAppUploadCommand" },
|
|
101
105
|
// hq-core-rust US-053: the staff-only `hq staff` group left the public CLI.
|
|
102
106
|
// Its code is deleted from this repo; staff run a staff-only hq-staff tool
|
|
103
107
|
// kept outside it.
|
|
@@ -29,11 +29,14 @@ export declare function addBotToCompanies(input: {
|
|
|
29
29
|
companies: readonly string[];
|
|
30
30
|
token: string;
|
|
31
31
|
}, deps?: BotCompanyDeps): Promise<BotCompanyOutcome>;
|
|
32
|
-
/** Remove the bot's membership in each company (the `hq members revoke` route).
|
|
32
|
+
/** Remove the bot's membership in each company (the `hq members revoke` route).
|
|
33
|
+
* `skipCompanyUid`: a company whose seat HQ already took away; it is left out of the outcome.
|
|
34
|
+
*/
|
|
33
35
|
export declare function removeBotFromCompanies(input: {
|
|
34
36
|
agentUid: string;
|
|
35
37
|
companies: readonly string[];
|
|
36
38
|
token: string;
|
|
39
|
+
skipCompanyUid?: string | null;
|
|
37
40
|
}, deps?: BotCompanyDeps): Promise<BotCompanyOutcome>;
|
|
38
41
|
/** One line per failure, for an error message or a log. */
|
|
39
42
|
export declare function describeCompanyFailures(failed: BotCompanyOutcome["failed"]): string;
|
|
@@ -42,12 +42,16 @@ export async function addBotToCompanies(input, deps = defaultDeps) {
|
|
|
42
42
|
}
|
|
43
43
|
return out;
|
|
44
44
|
}
|
|
45
|
-
/** Remove the bot's membership in each company (the `hq members revoke` route).
|
|
45
|
+
/** Remove the bot's membership in each company (the `hq members revoke` route).
|
|
46
|
+
* `skipCompanyUid`: a company whose seat HQ already took away; it is left out of the outcome.
|
|
47
|
+
*/
|
|
46
48
|
export async function removeBotFromCompanies(input, deps = defaultDeps) {
|
|
47
49
|
const out = { done: [], failed: [] };
|
|
48
50
|
for (const slug of input.companies) {
|
|
49
51
|
try {
|
|
50
52
|
const companyUid = await deps.companyUid(input.token, slug);
|
|
53
|
+
if (input.skipCompanyUid && companyUid === input.skipCompanyUid)
|
|
54
|
+
continue;
|
|
51
55
|
await deps.revoke(input.token, resolveRevokeTargetToMembershipKey(input.agentUid, companyUid), companyUid);
|
|
52
56
|
out.done.push(slug);
|
|
53
57
|
}
|
package/dist/commands/bot.d.ts
CHANGED
|
@@ -42,6 +42,8 @@ export interface BotRow {
|
|
|
42
42
|
promotionHold?: {
|
|
43
43
|
companyUid: string | null;
|
|
44
44
|
} | null;
|
|
45
|
+
/** `cloud` once the bot runs in the cloud, `moving` while it is held for the move, else null. */
|
|
46
|
+
promotion: "cloud" | "moving" | null;
|
|
45
47
|
online: boolean | null;
|
|
46
48
|
lastHeartbeatAt: string | null;
|
|
47
49
|
lastHeartbeatOk: boolean | null;
|
|
@@ -333,6 +335,7 @@ export interface BotCreateOptions {
|
|
|
333
335
|
company?: string[];
|
|
334
336
|
progress?: boolean;
|
|
335
337
|
readyTimeout?: string;
|
|
338
|
+
cloud?: boolean;
|
|
336
339
|
}
|
|
337
340
|
/**
|
|
338
341
|
* Which way `hq bot create` went. For HQ's setup assistant all three are a
|
|
@@ -653,6 +656,13 @@ export interface RemoteBotRow {
|
|
|
653
656
|
/** The owner's person uid exactly as GET /v1/agents/mine sends it; null when the server omits it. */
|
|
654
657
|
ownerUid: string | null;
|
|
655
658
|
}
|
|
659
|
+
/** The bot's lifecycle seams for `hq bot promote`; tests replace them. */
|
|
660
|
+
export declare const botPromoteSeams: {
|
|
661
|
+
start: (name: string, dir: string, config: BotConfig) => Promise<{
|
|
662
|
+
running: boolean;
|
|
663
|
+
how: string;
|
|
664
|
+
}>;
|
|
665
|
+
};
|
|
656
666
|
export declare function registerBotCommand(program: Command): void;
|
|
657
667
|
/**
|
|
658
668
|
* The company a bot's hot-signal-sync job syncs: the bot's own company, else
|