@indigoai-us/hq-cli 5.345.228 → 5.345.231

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.
@@ -10511,7 +10511,7 @@ export const COMMAND_CATALOG = [
10511
10511
  },
10512
10512
  {
10513
10513
  "name": "provision",
10514
- "description": "Provision a new Outpost (priced by size: small, medium, large or xlarge; requires --yes)",
10514
+ "description": "Provision a new company or personal Outpost (priced by size: small, medium, large or xlarge)",
10515
10515
  "aliases": [
10516
10516
  "create"
10517
10517
  ],
@@ -10524,7 +10524,7 @@ export const COMMAND_CATALOG = [
10524
10524
  "options": [
10525
10525
  {
10526
10526
  "flags": "--size <size>",
10527
- "description": "Outpost size: small | medium | large | xlarge. Without it, a terminal shows a menu with prices; the default is $100/month",
10527
+ "description": "Outpost size: small | medium | large | xlarge. Without it, a terminal shows a menu with prices and medium preselected; a script gets the default, $100/month",
10528
10528
  "hidden": false
10529
10529
  },
10530
10530
  {
@@ -10544,17 +10544,17 @@ export const COMMAND_CATALOG = [
10544
10544
  },
10545
10545
  {
10546
10546
  "flags": "--company <slug>",
10547
- "description": "Provision the company's Outpost instead of your personal box",
10547
+ "description": "Provision an Outpost for this company. A company that already has one gets another",
10548
10548
  "hidden": false
10549
10549
  },
10550
10550
  {
10551
- "flags": "--name <name>",
10552
- "description": "With --company: not sent. This server creates the company's main Outpost and does not take a name yet",
10551
+ "flags": "--personal",
10552
+ "description": "Provision your own personal Outpost",
10553
10553
  "hidden": false
10554
10554
  },
10555
10555
  {
10556
10556
  "flags": "--yes",
10557
- "description": "Confirm the monthly charge for the chosen size (required to provision or create)",
10557
+ "description": "Confirm the monthly charge for the chosen size (required without a terminal)",
10558
10558
  "hidden": false
10559
10559
  },
10560
10560
  {
@@ -10565,6 +10565,282 @@ export const COMMAND_CATALOG = [
10565
10565
  ],
10566
10566
  "subcommands": []
10567
10567
  },
10568
+ {
10569
+ "name": "request-access",
10570
+ "description": "Ask the owners and admins of a company for access to one of its Outposts",
10571
+ "aliases": [],
10572
+ "hidden": false,
10573
+ "helpOption": true,
10574
+ "helpCommand": false,
10575
+ "usage": "[options]",
10576
+ "helpText": [],
10577
+ "arguments": [],
10578
+ "options": [
10579
+ {
10580
+ "flags": "--company <slug>",
10581
+ "description": "Company that owns the Outpost",
10582
+ "hidden": false
10583
+ },
10584
+ {
10585
+ "flags": "--outpost <name|id>",
10586
+ "description": "The company Outpost you want to use",
10587
+ "hidden": false
10588
+ },
10589
+ {
10590
+ "flags": "--note <text>",
10591
+ "description": "A short note for the owners and admins",
10592
+ "hidden": false
10593
+ },
10594
+ {
10595
+ "flags": "--json",
10596
+ "description": "Emit one JSON object",
10597
+ "hidden": false
10598
+ }
10599
+ ],
10600
+ "subcommands": []
10601
+ },
10602
+ {
10603
+ "name": "request",
10604
+ "description": "Ask the owners and admins of a company for a new company Outpost",
10605
+ "aliases": [],
10606
+ "hidden": false,
10607
+ "helpOption": true,
10608
+ "helpCommand": false,
10609
+ "usage": "[options]",
10610
+ "helpText": [],
10611
+ "arguments": [],
10612
+ "options": [
10613
+ {
10614
+ "flags": "--company <slug>",
10615
+ "description": "Company to ask",
10616
+ "hidden": false
10617
+ },
10618
+ {
10619
+ "flags": "--size <size>",
10620
+ "description": "small, medium, large or xlarge (the server default is medium)",
10621
+ "hidden": false
10622
+ },
10623
+ {
10624
+ "flags": "--note <text>",
10625
+ "description": "A short note for the owners and admins",
10626
+ "hidden": false
10627
+ },
10628
+ {
10629
+ "flags": "--json",
10630
+ "description": "Emit one JSON object",
10631
+ "hidden": false
10632
+ }
10633
+ ],
10634
+ "subcommands": []
10635
+ },
10636
+ {
10637
+ "name": "requests",
10638
+ "description": "List Outpost requests: owners and admins see every request, members see their own",
10639
+ "aliases": [],
10640
+ "hidden": false,
10641
+ "helpOption": true,
10642
+ "helpCommand": false,
10643
+ "usage": "[options]",
10644
+ "helpText": [],
10645
+ "arguments": [],
10646
+ "options": [
10647
+ {
10648
+ "flags": "--company <slug>",
10649
+ "description": "Company",
10650
+ "hidden": false
10651
+ },
10652
+ {
10653
+ "flags": "--json",
10654
+ "description": "Emit JSON",
10655
+ "hidden": false
10656
+ }
10657
+ ],
10658
+ "subcommands": []
10659
+ },
10660
+ {
10661
+ "name": "approve",
10662
+ "description": "Approve an Outpost request (owners and admins). Shows who asked, what for, the price and what approval allows first",
10663
+ "aliases": [],
10664
+ "hidden": false,
10665
+ "helpOption": true,
10666
+ "helpCommand": false,
10667
+ "usage": "[options]",
10668
+ "helpText": [],
10669
+ "arguments": [],
10670
+ "options": [
10671
+ {
10672
+ "flags": "--company <slug>",
10673
+ "description": "Company",
10674
+ "hidden": false
10675
+ },
10676
+ {
10677
+ "flags": "--request <id>",
10678
+ "description": "Request id from hq outposts requests",
10679
+ "hidden": false
10680
+ },
10681
+ {
10682
+ "flags": "--yes",
10683
+ "description": "Approve without asking",
10684
+ "hidden": false
10685
+ },
10686
+ {
10687
+ "flags": "--json",
10688
+ "description": "Emit one JSON object",
10689
+ "hidden": false
10690
+ }
10691
+ ],
10692
+ "subcommands": []
10693
+ },
10694
+ {
10695
+ "name": "decline",
10696
+ "description": "Decline an Outpost request (owners and admins)",
10697
+ "aliases": [],
10698
+ "hidden": false,
10699
+ "helpOption": true,
10700
+ "helpCommand": false,
10701
+ "usage": "[options]",
10702
+ "helpText": [],
10703
+ "arguments": [],
10704
+ "options": [
10705
+ {
10706
+ "flags": "--company <slug>",
10707
+ "description": "Company",
10708
+ "hidden": false
10709
+ },
10710
+ {
10711
+ "flags": "--request <id>",
10712
+ "description": "Request id from hq outposts requests",
10713
+ "hidden": false
10714
+ },
10715
+ {
10716
+ "flags": "--reason <text>",
10717
+ "description": "A short reason the requester sees",
10718
+ "hidden": false
10719
+ },
10720
+ {
10721
+ "flags": "--json",
10722
+ "description": "Emit one JSON object",
10723
+ "hidden": false
10724
+ }
10725
+ ],
10726
+ "subcommands": []
10727
+ },
10728
+ {
10729
+ "name": "access",
10730
+ "description": "See and change who may use a company Outpost (owners and admins)",
10731
+ "aliases": [],
10732
+ "hidden": false,
10733
+ "helpOption": true,
10734
+ "helpCommand": true,
10735
+ "usage": "[options] [command]",
10736
+ "helpText": [],
10737
+ "arguments": [],
10738
+ "options": [],
10739
+ "subcommands": [
10740
+ {
10741
+ "name": "list",
10742
+ "description": "List the members approved for a company Outpost",
10743
+ "aliases": [],
10744
+ "hidden": false,
10745
+ "helpOption": true,
10746
+ "helpCommand": false,
10747
+ "usage": "[options]",
10748
+ "helpText": [],
10749
+ "arguments": [],
10750
+ "options": [
10751
+ {
10752
+ "flags": "--company <slug>",
10753
+ "description": "Company",
10754
+ "hidden": false
10755
+ },
10756
+ {
10757
+ "flags": "--outpost <name|id>",
10758
+ "description": "Company Outpost",
10759
+ "hidden": false
10760
+ },
10761
+ {
10762
+ "flags": "--json",
10763
+ "description": "Emit JSON",
10764
+ "hidden": false
10765
+ }
10766
+ ],
10767
+ "subcommands": []
10768
+ },
10769
+ {
10770
+ "name": "grant",
10771
+ "description": "Approve a member for a company Outpost. This gives them full control of it, including root",
10772
+ "aliases": [],
10773
+ "hidden": false,
10774
+ "helpOption": true,
10775
+ "helpCommand": false,
10776
+ "usage": "[options]",
10777
+ "helpText": [],
10778
+ "arguments": [],
10779
+ "options": [
10780
+ {
10781
+ "flags": "--company <slug>",
10782
+ "description": "Company",
10783
+ "hidden": false
10784
+ },
10785
+ {
10786
+ "flags": "--outpost <name|id>",
10787
+ "description": "Company Outpost",
10788
+ "hidden": false
10789
+ },
10790
+ {
10791
+ "flags": "--person <prs_id>",
10792
+ "description": "The member's person id",
10793
+ "hidden": false
10794
+ },
10795
+ {
10796
+ "flags": "--yes",
10797
+ "description": "Approve without asking",
10798
+ "hidden": false
10799
+ },
10800
+ {
10801
+ "flags": "--json",
10802
+ "description": "Emit one JSON object",
10803
+ "hidden": false
10804
+ }
10805
+ ],
10806
+ "subcommands": []
10807
+ },
10808
+ {
10809
+ "name": "revoke",
10810
+ "description": "End a member's access to a company Outpost and close their open terminals",
10811
+ "aliases": [],
10812
+ "hidden": false,
10813
+ "helpOption": true,
10814
+ "helpCommand": false,
10815
+ "usage": "[options]",
10816
+ "helpText": [],
10817
+ "arguments": [],
10818
+ "options": [
10819
+ {
10820
+ "flags": "--company <slug>",
10821
+ "description": "Company",
10822
+ "hidden": false
10823
+ },
10824
+ {
10825
+ "flags": "--outpost <name|id>",
10826
+ "description": "Company Outpost",
10827
+ "hidden": false
10828
+ },
10829
+ {
10830
+ "flags": "--person <prs_id>",
10831
+ "description": "The member's person id",
10832
+ "hidden": false
10833
+ },
10834
+ {
10835
+ "flags": "--json",
10836
+ "description": "Emit one JSON object",
10837
+ "hidden": false
10838
+ }
10839
+ ],
10840
+ "subcommands": []
10841
+ }
10842
+ ]
10843
+ },
10568
10844
  {
10569
10845
  "name": "list",
10570
10846
  "description": "List every Outpost you own, or a company's Outposts with --company",
@@ -11007,7 +11283,7 @@ export const COMMAND_CATALOG = [
11007
11283
  },
11008
11284
  {
11009
11285
  "flags": "--company <slug>",
11010
- "description": "Run on this company's Outpost (company owners and admins)",
11286
+ "description": "Run on this company's Outpost (owners, admins, and members approved for it; others: hq outposts request-access)",
11011
11287
  "hidden": false
11012
11288
  },
11013
11289
  {
@@ -11071,7 +11347,7 @@ export const COMMAND_CATALOG = [
11071
11347
  },
11072
11348
  {
11073
11349
  "flags": "--company <slug>",
11074
- "description": "Run on this company's Outpost (company owners and admins)",
11350
+ "description": "Run on this company's Outpost (owners, admins, and members approved for it; others: hq outposts request-access)",
11075
11351
  "hidden": false
11076
11352
  },
11077
11353
  {
@@ -11112,7 +11388,7 @@ export const COMMAND_CATALOG = [
11112
11388
  },
11113
11389
  {
11114
11390
  "flags": "--company <slug>",
11115
- "description": "Run on this company's Outpost (company owners and admins)",
11391
+ "description": "Run on this company's Outpost (owners, admins, and members approved for it; others: hq outposts request-access)",
11116
11392
  "hidden": false
11117
11393
  },
11118
11394
  {
@@ -11161,7 +11437,7 @@ export const COMMAND_CATALOG = [
11161
11437
  },
11162
11438
  {
11163
11439
  "flags": "--company <slug>",
11164
- "description": "Run on this company's Outpost (company owners and admins)",
11440
+ "description": "Run on this company's Outpost (owners, admins, and members approved for it; others: hq outposts request-access)",
11165
11441
  "hidden": false
11166
11442
  },
11167
11443
  {
@@ -11243,7 +11519,7 @@ export const COMMAND_CATALOG = [
11243
11519
  },
11244
11520
  {
11245
11521
  "flags": "--company <slug>",
11246
- "description": "Run on this company's Outpost (company owners and admins)",
11522
+ "description": "Run on this company's Outpost (owners, admins, and members approved for it; others: hq outposts request-access)",
11247
11523
  "hidden": false
11248
11524
  },
11249
11525
  {
@@ -6,6 +6,7 @@ import { readSessionCompanyLock } from "../lib/session-company-lock.js";
6
6
  import { sessionIdFromEnv } from "../lib/core-utils/session-id.js";
7
7
  import { MULTI_COMPANY_SESSION_LOCK_FLAG } from "../lib/cli-flag-keys.js";
8
8
  import { fastFlagEnabledDefaultOn } from "../native-fast-route.js";
9
+ import { exitCli } from "../utils/exit-after-worker.js";
9
10
  async function resolveCrmCompany(requestedCompany) {
10
11
  const lock = sessionIdFromEnv(process.env)
11
12
  && await fastFlagEnabledDefaultOn(MULTI_COMPANY_SESSION_LOCK_FLAG)
@@ -187,7 +188,7 @@ export function registerCrmCommand(program) {
187
188
  }
188
189
  catch (error) {
189
190
  console.error(chalk.red(error instanceof Error ? error.message : String(error)));
190
- process.exit(1);
191
+ return await exitCli(1);
191
192
  }
192
193
  }
193
194
  entity.command("list")
@@ -32,6 +32,7 @@ import { classify, PINNED_HQ_ANYWHERE_SOURCE, resolveLatest, parseMarketplaceSou
32
32
  import { contributionLinks, linkStatus, listInstalledPacks, findDependentPacks, readPackManifest, unwirePack, unwireNamespacedSkills, unwirePackMcp, readHqVersion, readRecommendedPackages, packagesDir, } from '../utils/pack-contributions.js';
33
33
  import { readInstalledPackSetup } from '../lib/packages/setup-block.js';
34
34
  import { syncCodexPackHooks, syncCodexPackSkills } from '../lib/install/codex-pack-contributions.js';
35
+ import { exitCli } from '../utils/exit-after-worker.js';
35
36
  function resolveRoot(opts) {
36
37
  return opts.hqRoot ? path.resolve(opts.hqRoot) : findHqRoot();
37
38
  }
@@ -450,7 +451,7 @@ export function registerPacksListCommand(parent) {
450
451
  }
451
452
  catch (e) {
452
453
  console.error(chalk.red('packs list failed:'), e.message);
453
- process.exit(1);
454
+ await exitCli(1);
454
455
  }
455
456
  });
456
457
  }
@@ -550,7 +551,7 @@ export function registerPacksCommand(parent) {
550
551
  }
551
552
  catch (e) {
552
553
  console.error(chalk.red('packs uninstall failed:'), e.message);
553
- process.exit(1);
554
+ await exitCli(1);
554
555
  }
555
556
  });
556
557
  }
@@ -10,6 +10,7 @@ import * as path from 'path';
10
10
  import chalk from 'chalk';
11
11
  import { resolveDefaultHqRoot } from '../utils/cognito-session.js';
12
12
  import { removeFromRegistry, readRegistry } from '../utils/registry.js';
13
+ import { exitCli } from '../utils/exit-after-worker.js';
13
14
  export function registerPackageRemoveCommand(parent) {
14
15
  parent
15
16
  .command('remove <slug>')
@@ -20,7 +21,7 @@ export function registerPackageRemoveCommand(parent) {
20
21
  }
21
22
  catch (error) {
22
23
  console.error(chalk.red('Remove failed:'), error instanceof Error ? error.message : 'Unknown error');
23
- process.exit(1);
24
+ await exitCli(1);
24
25
  }
25
26
  });
26
27
  }
@@ -8,6 +8,7 @@ import { vaultApiFetch } from "../utils/vault-api.js";
8
8
  import { DEPLOY_API_URL, deployApiRequest, deployHeaders } from "../lib/deploy-api.js";
9
9
  import { listDeployApps } from "../lib/deploy-apps.js";
10
10
  import { listReportTemplates } from "../lib/report-templates.js";
11
+ import { stopFlagRegistryWorker } from "../lib/flag-registry.js";
11
12
  import { adoptReport, buildReportTarball, conventionReportDir, deployOrgContext, ReportPublishError, plainFailureReason, publishReport, } from "../lib/report-publish.js";
12
13
  const REPORT_CHANNEL_STATE_FILE = "report-channels.json";
13
14
  const REPORT_UPLOAD_TIMEOUT_MS = 120_000;
@@ -536,6 +537,9 @@ async function runReportCommand(action) {
536
537
  catch (error) {
537
538
  console.error(errorMessage(error));
538
539
  process.exitCode = 1;
540
+ // The CLI still ends through main's normal finish; the flag-registry
541
+ // worker must not be running when it does.
542
+ await stopFlagRegistryWorker();
539
543
  }
540
544
  }
541
545
  //# sourceMappingURL=report.js.map