@indigoai-us/hq-cli 5.345.225 → 5.345.228

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/CHANGELOG.md +174 -0
  2. package/dist/command-catalog.generated.d.ts +215 -0
  3. package/dist/command-catalog.generated.js +261 -0
  4. package/dist/commands/auth.d.ts +2 -2
  5. package/dist/commands/auth.js +3 -3
  6. package/dist/commands/core-delegate-w1b.js +92 -69
  7. package/dist/commands/core-delegate.d.ts +19 -1
  8. package/dist/commands/core-delegate.js +411 -6
  9. package/dist/commands/core-dm-bind-native.js +2 -1
  10. package/dist/commands/core-handoff.d.ts +5 -0
  11. package/dist/commands/core-handoff.js +1008 -14
  12. package/dist/commands/core-pin-native.d.ts +1 -0
  13. package/dist/commands/core-pin-native.js +3 -15
  14. package/dist/commands/core-register-project-native.d.ts +6 -0
  15. package/dist/commands/core-register-project-native.js +182 -52
  16. package/dist/commands/core-work-mesh-bind-trusted-native.js +4 -9
  17. package/dist/commands/daemon.js +3 -3
  18. package/dist/commands/deploy-domains.js +38 -2
  19. package/dist/commands/index-cmd.d.ts +3 -1
  20. package/dist/commands/index-cmd.js +12 -0
  21. package/dist/commands/lanes-accounts.d.ts +14 -0
  22. package/dist/commands/lanes-accounts.js +119 -0
  23. package/dist/commands/lanes-checks.js +1 -1
  24. package/dist/commands/lanes-move.js +10 -0
  25. package/dist/commands/lanes-session-start.d.ts +1 -2
  26. package/dist/commands/lanes-session-start.js +9 -145
  27. package/dist/commands/lanes-shared.d.ts +3 -0
  28. package/dist/commands/lanes-shared.js +9 -0
  29. package/dist/commands/lanes.d.ts +3 -0
  30. package/dist/commands/lanes.js +231 -39
  31. package/dist/commands/link.d.ts +8 -3
  32. package/dist/commands/link.js +14 -17
  33. package/dist/commands/mcp-registration.d.ts +65 -7
  34. package/dist/commands/mcp-registration.js +289 -51
  35. package/dist/commands/mesh.d.ts +12 -0
  36. package/dist/commands/mesh.js +92 -10
  37. package/dist/commands/reindex.js +6 -0
  38. package/dist/commands/repo.d.ts +13 -0
  39. package/dist/commands/repo.js +39 -1
  40. package/dist/commands/sync-held.d.ts +22 -0
  41. package/dist/commands/sync-held.js +167 -18
  42. package/dist/commands/sync-mode.d.ts +3 -1
  43. package/dist/commands/sync-mode.js +11 -1
  44. package/dist/hq-cloud-sync-runner/bin/sync-runner.js +4845 -2524
  45. package/dist/hq-cloud-sync-runner/package.json +1 -1
  46. package/dist/lazy-commands.js +3 -4
  47. package/dist/lib/capacity/accounts.d.ts +4 -0
  48. package/dist/lib/capacity/accounts.js +4 -0
  49. package/dist/lib/capacity/route.js +14 -0
  50. package/dist/lib/capacity/sign-in.d.ts +18 -0
  51. package/dist/lib/capacity/sign-in.js +34 -1
  52. package/dist/lib/checkpoint-ontology/entity-file.js +4 -4
  53. package/dist/lib/checkpoint-ontology/merge-copies.js +7 -11
  54. package/dist/lib/checkpoint-ontology/plan.js +2 -1
  55. package/dist/lib/core-utils/archive-old-threads.js +5 -2
  56. package/dist/lib/core-utils/session-company.d.ts +13 -1
  57. package/dist/lib/core-utils/session-company.js +75 -4
  58. package/dist/lib/core-utils/worktree-resume.d.ts +6 -0
  59. package/dist/lib/core-utils/worktree-resume.js +8 -4
  60. package/dist/lib/daemon/background-qos.d.ts +7 -0
  61. package/dist/lib/daemon/background-qos.js +13 -0
  62. package/dist/lib/daemon/catalog.d.ts +10 -0
  63. package/dist/lib/daemon/catalog.js +9 -2
  64. package/dist/lib/daemon/hook-requests-acl-suggest.d.ts +18 -0
  65. package/dist/lib/daemon/hook-requests-acl-suggest.js +245 -0
  66. package/dist/lib/daemon/hook-requests-fleet-session-start.d.ts +32 -0
  67. package/dist/lib/daemon/hook-requests-fleet-session-start.js +214 -0
  68. package/dist/lib/daemon/hook-requests-mesh-tool-writes.d.ts +44 -0
  69. package/dist/lib/daemon/hook-requests-mesh-tool-writes.js +292 -0
  70. package/dist/lib/daemon/hook-requests-mesh.d.ts +54 -0
  71. package/dist/lib/daemon/hook-requests-mesh.js +559 -0
  72. package/dist/lib/daemon/hook-requests.d.ts +417 -0
  73. package/dist/lib/daemon/hook-requests.js +1747 -0
  74. package/dist/lib/daemon/lanes-reconcile-status.d.ts +35 -0
  75. package/dist/lib/daemon/lanes-reconcile-status.js +86 -0
  76. package/dist/lib/daemon/machine-checks.d.ts +12 -2
  77. package/dist/lib/daemon/machine-checks.js +27 -10
  78. package/dist/lib/daemon/merge-sections.d.ts +24 -2
  79. package/dist/lib/daemon/merge-sections.js +58 -16
  80. package/dist/lib/daemon/ops/policy.d.ts +1 -1
  81. package/dist/lib/daemon/ops/policy.js +47 -6
  82. package/dist/lib/daemon/resolver.js +9 -2
  83. package/dist/lib/daemon/run.d.ts +11 -7
  84. package/dist/lib/daemon/run.js +195 -18
  85. package/dist/lib/daemon/search-index-worker-v1.d.ts +2 -0
  86. package/dist/lib/daemon/search-index-worker-v1.js +25 -0
  87. package/dist/lib/daemon/server.js +6 -1
  88. package/dist/lib/daemon/session-registry.d.ts +0 -1
  89. package/dist/lib/daemon/session-registry.js +0 -3
  90. package/dist/lib/daemon/supervisor.d.ts +5 -1
  91. package/dist/lib/daemon/supervisor.js +1 -1
  92. package/dist/lib/daemon/tcc-eperm.d.ts +59 -4
  93. package/dist/lib/daemon/tcc-eperm.js +110 -8
  94. package/dist/lib/doctor/fix/process-identity.d.ts +20 -2
  95. package/dist/lib/doctor/fix/process-identity.js +48 -5
  96. package/dist/lib/flag-registry-worker-source.generated.d.ts +1 -1
  97. package/dist/lib/flag-registry-worker-source.generated.js +1 -1
  98. package/dist/lib/hook-engine/canary-gate.js +1 -0
  99. package/dist/lib/hook-engine/native-stop-compatibility.json +2 -1
  100. package/dist/lib/hot-channels/adapters/attio.js +2 -1
  101. package/dist/lib/hot-channels/adapters/meetings.js +2 -1
  102. package/dist/lib/lanes/account-company.d.ts +7 -1
  103. package/dist/lib/lanes/account-company.js +22 -4
  104. package/dist/lib/lanes/account-ownership.d.ts +65 -0
  105. package/dist/lib/lanes/account-ownership.js +134 -0
  106. package/dist/lib/lanes/accounts.js +9 -2
  107. package/dist/lib/lanes/claude-balance.js +9 -3
  108. package/dist/lib/lanes/company-outposts.d.ts +37 -0
  109. package/dist/lib/lanes/company-outposts.js +164 -0
  110. package/dist/lib/lanes/config.js +17 -0
  111. package/dist/lib/lanes/host-capacity.d.ts +19 -0
  112. package/dist/lib/lanes/host-capacity.js +37 -0
  113. package/dist/lib/lanes/liveness.d.ts +6 -0
  114. package/dist/lib/lanes/liveness.js +49 -8
  115. package/dist/lib/lanes/orphan-report.d.ts +15 -0
  116. package/dist/lib/lanes/orphan-report.js +223 -0
  117. package/dist/lib/lanes/orphan-sweep.d.ts +26 -0
  118. package/dist/lib/lanes/orphan-sweep.js +152 -0
  119. package/dist/lib/lanes/reaper.d.ts +2 -0
  120. package/dist/lib/lanes/reaper.js +11 -8
  121. package/dist/lib/lanes/reconcile.d.ts +8 -7
  122. package/dist/lib/lanes/reconcile.js +83 -3
  123. package/dist/lib/lanes/spawn.d.ts +0 -10
  124. package/dist/lib/lanes/spawn.js +51 -1
  125. package/dist/lib/lanes/types.d.ts +12 -0
  126. package/dist/lib/mesh/live/backfill-held.d.ts +13 -0
  127. package/dist/lib/mesh/live/backfill-held.js +23 -0
  128. package/dist/lib/mesh/live/daemon/mode.d.ts +8 -4
  129. package/dist/lib/mesh/live/daemon/mode.js +8 -4
  130. package/dist/lib/mesh/live/daemon/run.d.ts +14 -3
  131. package/dist/lib/mesh/live/daemon/run.js +116 -7
  132. package/dist/lib/mesh/live/direct-drain.d.ts +123 -0
  133. package/dist/lib/mesh/live/direct-drain.js +315 -0
  134. package/dist/lib/mesh/live/emit-replay.d.ts +10 -0
  135. package/dist/lib/mesh/live/emit-replay.js +10 -0
  136. package/dist/lib/mesh/live/flush.d.ts +15 -0
  137. package/dist/lib/mesh/live/flush.js +27 -0
  138. package/dist/lib/mesh/live/liveness-carry.d.ts +45 -0
  139. package/dist/lib/mesh/live/liveness-carry.js +141 -0
  140. package/dist/lib/mesh/live/spool.d.ts +19 -0
  141. package/dist/lib/mesh/live/spool.js +80 -0
  142. package/dist/lib/safe-store.d.ts +2 -0
  143. package/dist/lib/safe-store.js +8 -6
  144. package/dist/lib/search-index/index.d.ts +9 -3
  145. package/dist/lib/search-index/index.js +35 -10
  146. package/dist/lib/search-index/worker-process.d.ts +9 -0
  147. package/dist/lib/search-index/worker-process.js +171 -0
  148. package/dist/lib/session-company-lock.d.ts +3 -1
  149. package/dist/lib/session-company-lock.js +3 -2
  150. package/dist/utils/delegate-command-supervisor.d.ts +3 -0
  151. package/dist/utils/delegate-command-supervisor.js +44 -0
  152. package/dist/utils/delegate-lock.d.ts +12 -0
  153. package/dist/utils/delegate-lock.js +88 -0
  154. package/dist/utils/frontmatter.d.ts +27 -0
  155. package/dist/utils/frontmatter.js +33 -0
  156. package/dist/utils/hook-trust.d.ts +1 -0
  157. package/dist/utils/hook-trust.js +18 -2
  158. package/dist/utils/host-registration.d.ts +13 -1
  159. package/dist/utils/host-registration.js +98 -5
  160. package/dist/utils/package-use-lease.d.ts +1 -1
  161. package/dist/utils/package-use-lease.js +15 -7
  162. package/docs/anywhere-runtime.md +17 -0
  163. package/package.json +9 -8
  164. package/scripts/check-function-manifest.mjs +17 -3
@@ -1498,6 +1498,11 @@ export const COMMAND_CATALOG = [
1498
1498
  "description": "Do not ask for confirmation",
1499
1499
  "hidden": false
1500
1500
  },
1501
+ {
1502
+ "flags": "--confirm-unproven",
1503
+ "description": "Restore an unreadable identity file and keep every upload held until you confirm which files are yours",
1504
+ "hidden": false
1505
+ },
1501
1506
  {
1502
1507
  "flags": "--json",
1503
1508
  "description": "Print the result as JSON",
@@ -11000,6 +11005,16 @@ export const COMMAND_CATALOG = [
11000
11005
  "description": "Outpost id (defaults to your primary box)",
11001
11006
  "hidden": false
11002
11007
  },
11008
+ {
11009
+ "flags": "--company <slug>",
11010
+ "description": "Run on this company's Outpost (company owners and admins)",
11011
+ "hidden": false
11012
+ },
11013
+ {
11014
+ "flags": "--outpost <name|id>",
11015
+ "description": "Which company Outpost, when the company has more than one",
11016
+ "hidden": false
11017
+ },
11003
11018
  {
11004
11019
  "flags": "--root",
11005
11020
  "description": "Run the command as root (default: ec2-user)",
@@ -11054,6 +11069,16 @@ export const COMMAND_CATALOG = [
11054
11069
  "description": "Outpost id (defaults to your primary box)",
11055
11070
  "hidden": false
11056
11071
  },
11072
+ {
11073
+ "flags": "--company <slug>",
11074
+ "description": "Run on this company's Outpost (company owners and admins)",
11075
+ "hidden": false
11076
+ },
11077
+ {
11078
+ "flags": "--outpost <name|id>",
11079
+ "description": "Which company Outpost, when the company has more than one",
11080
+ "hidden": false
11081
+ },
11057
11082
  {
11058
11083
  "flags": "--json",
11059
11084
  "description": "Emit raw JSON",
@@ -11085,6 +11110,16 @@ export const COMMAND_CATALOG = [
11085
11110
  "description": "Outpost id (defaults to your primary box)",
11086
11111
  "hidden": false
11087
11112
  },
11113
+ {
11114
+ "flags": "--company <slug>",
11115
+ "description": "Run on this company's Outpost (company owners and admins)",
11116
+ "hidden": false
11117
+ },
11118
+ {
11119
+ "flags": "--outpost <name|id>",
11120
+ "description": "Which company Outpost, when the company has more than one",
11121
+ "hidden": false
11122
+ },
11088
11123
  {
11089
11124
  "flags": "--root",
11090
11125
  "description": "Run the command as root (default: ec2-user)",
@@ -11124,6 +11159,16 @@ export const COMMAND_CATALOG = [
11124
11159
  "description": "Outpost id (defaults to your primary box)",
11125
11160
  "hidden": false
11126
11161
  },
11162
+ {
11163
+ "flags": "--company <slug>",
11164
+ "description": "Run on this company's Outpost (company owners and admins)",
11165
+ "hidden": false
11166
+ },
11167
+ {
11168
+ "flags": "--outpost <name|id>",
11169
+ "description": "Which company Outpost, when the company has more than one",
11170
+ "hidden": false
11171
+ },
11127
11172
  {
11128
11173
  "flags": "--wait",
11129
11174
  "description": "Poll until the command reaches a terminal state",
@@ -11196,6 +11241,16 @@ export const COMMAND_CATALOG = [
11196
11241
  "description": "Outpost id (defaults to your primary box)",
11197
11242
  "hidden": false
11198
11243
  },
11244
+ {
11245
+ "flags": "--company <slug>",
11246
+ "description": "Run on this company's Outpost (company owners and admins)",
11247
+ "hidden": false
11248
+ },
11249
+ {
11250
+ "flags": "--outpost <name|id>",
11251
+ "description": "Which company Outpost, when the company has more than one",
11252
+ "hidden": false
11253
+ },
11199
11254
  {
11200
11255
  "flags": "--forward <port>",
11201
11256
  "description": "Forward this port on the box to your machine instead of opening a shell",
@@ -12522,6 +12577,70 @@ export const COMMAND_CATALOG = [
12522
12577
  "options": [],
12523
12578
  "subcommands": []
12524
12579
  },
12580
+ {
12581
+ "name": "run",
12582
+ "description": "Run a delegation from resolve through send in one process",
12583
+ "aliases": [],
12584
+ "hidden": false,
12585
+ "helpOption": true,
12586
+ "helpCommand": false,
12587
+ "usage": "[options]",
12588
+ "helpText": [],
12589
+ "arguments": [],
12590
+ "options": [
12591
+ {
12592
+ "flags": "--company <slug>",
12593
+ "description": "Company slug",
12594
+ "hidden": false
12595
+ },
12596
+ {
12597
+ "flags": "--project <name>",
12598
+ "description": "Project name",
12599
+ "hidden": false
12600
+ },
12601
+ {
12602
+ "flags": "--to <recipient>",
12603
+ "description": "Recipient name, email, person uid, or agent uid",
12604
+ "hidden": false
12605
+ },
12606
+ {
12607
+ "flags": "--share",
12608
+ "description": "Grant access without transferring ownership",
12609
+ "hidden": false
12610
+ },
12611
+ {
12612
+ "flags": "--no-secrets",
12613
+ "description": "Skip credential handover",
12614
+ "hidden": false
12615
+ },
12616
+ {
12617
+ "flags": "--dry-run",
12618
+ "description": "Print the plan and change nothing",
12619
+ "hidden": false
12620
+ },
12621
+ {
12622
+ "flags": "--manifest <path>",
12623
+ "description": "Use this delegation manifest instead of resuming or bundling",
12624
+ "hidden": false
12625
+ },
12626
+ {
12627
+ "flags": "--headline <text>",
12628
+ "description": "Pickup DM headline",
12629
+ "hidden": false
12630
+ },
12631
+ {
12632
+ "flags": "--note <text>",
12633
+ "description": "Note included in the pickup DM",
12634
+ "hidden": false
12635
+ },
12636
+ {
12637
+ "flags": "--github-user <login>",
12638
+ "description": "GitHub login for the repository access check",
12639
+ "hidden": false
12640
+ }
12641
+ ],
12642
+ "subcommands": []
12643
+ },
12525
12644
  {
12526
12645
  "name": "bundle",
12527
12646
  "description": "Build a portable delegation bundle",
@@ -12695,6 +12814,106 @@ export const COMMAND_CATALOG = [
12695
12814
  ],
12696
12815
  "options": [],
12697
12816
  "subcommands": []
12817
+ },
12818
+ {
12819
+ "name": "pointer-company",
12820
+ "description": "Print the single company slug from the latest handoff",
12821
+ "aliases": [],
12822
+ "hidden": false,
12823
+ "helpOption": false,
12824
+ "helpCommand": false,
12825
+ "usage": "[args...]",
12826
+ "helpText": [],
12827
+ "arguments": [
12828
+ {
12829
+ "name": "args",
12830
+ "required": false,
12831
+ "variadic": true,
12832
+ "description": "arguments accepted for shell ABI compatibility"
12833
+ }
12834
+ ],
12835
+ "options": [],
12836
+ "subcommands": []
12837
+ },
12838
+ {
12839
+ "name": "builder-route",
12840
+ "description": "Choose the handoff builder or public route",
12841
+ "aliases": [],
12842
+ "hidden": false,
12843
+ "helpOption": false,
12844
+ "helpCommand": false,
12845
+ "usage": "[args...]",
12846
+ "helpText": [],
12847
+ "arguments": [
12848
+ {
12849
+ "name": "args",
12850
+ "required": false,
12851
+ "variadic": true,
12852
+ "description": "arguments accepted for shell ABI compatibility"
12853
+ }
12854
+ ],
12855
+ "options": [],
12856
+ "subcommands": []
12857
+ },
12858
+ {
12859
+ "name": "autofile",
12860
+ "description": "File one feedback report for hq-core handoff deficiencies",
12861
+ "aliases": [],
12862
+ "hidden": false,
12863
+ "helpOption": false,
12864
+ "helpCommand": false,
12865
+ "usage": "[args...]",
12866
+ "helpText": [],
12867
+ "arguments": [
12868
+ {
12869
+ "name": "args",
12870
+ "required": false,
12871
+ "variadic": true,
12872
+ "description": "arguments accepted for shell ABI compatibility"
12873
+ }
12874
+ ],
12875
+ "options": [],
12876
+ "subcommands": []
12877
+ },
12878
+ {
12879
+ "name": "archive-decision",
12880
+ "description": "Decide whether the handoff session should be archived",
12881
+ "aliases": [],
12882
+ "hidden": false,
12883
+ "helpOption": false,
12884
+ "helpCommand": false,
12885
+ "usage": "[args...]",
12886
+ "helpText": [],
12887
+ "arguments": [
12888
+ {
12889
+ "name": "args",
12890
+ "required": false,
12891
+ "variadic": true,
12892
+ "description": "arguments accepted for shell ABI compatibility"
12893
+ }
12894
+ ],
12895
+ "options": [],
12896
+ "subcommands": []
12897
+ },
12898
+ {
12899
+ "name": "run",
12900
+ "description": "Run the mechanical handoff steps",
12901
+ "aliases": [],
12902
+ "hidden": false,
12903
+ "helpOption": false,
12904
+ "helpCommand": false,
12905
+ "usage": "[args...]",
12906
+ "helpText": [],
12907
+ "arguments": [
12908
+ {
12909
+ "name": "args",
12910
+ "required": false,
12911
+ "variadic": true,
12912
+ "description": "arguments accepted for shell ABI compatibility"
12913
+ }
12914
+ ],
12915
+ "options": [],
12916
+ "subcommands": []
12698
12917
  }
12699
12918
  ]
12700
12919
  },
@@ -22401,6 +22620,48 @@ export const COMMAND_CATALOG = [
22401
22620
  ],
22402
22621
  "subcommands": []
22403
22622
  },
22623
+ {
22624
+ "name": "set-owner",
22625
+ "description": "Record which business owns a login and who holds it (labels only; no credential moves)",
22626
+ "aliases": [],
22627
+ "hidden": false,
22628
+ "helpOption": true,
22629
+ "helpCommand": false,
22630
+ "usage": "[options] <provider> <account-id>",
22631
+ "helpText": [],
22632
+ "arguments": [
22633
+ {
22634
+ "name": "provider",
22635
+ "required": true,
22636
+ "variadic": false,
22637
+ "description": "claude | codex | grok"
22638
+ },
22639
+ {
22640
+ "name": "account-id",
22641
+ "required": true,
22642
+ "variadic": false,
22643
+ "description": "Existing account id"
22644
+ }
22645
+ ],
22646
+ "options": [
22647
+ {
22648
+ "flags": "--owning-company <slug>",
22649
+ "description": "Company slug, personal, or unknown",
22650
+ "hidden": false
22651
+ },
22652
+ {
22653
+ "flags": "--holder <name>",
22654
+ "description": "owner, or the name of the person who holds the login",
22655
+ "hidden": false
22656
+ },
22657
+ {
22658
+ "flags": "--json",
22659
+ "description": "JSON on stdout (always)",
22660
+ "hidden": false
22661
+ }
22662
+ ],
22663
+ "subcommands": []
22664
+ },
22404
22665
  {
22405
22666
  "name": "login",
22406
22667
  "description": "Create a home, run the vendor login, and register the account",
@@ -10,8 +10,8 @@
10
10
  * hq auth machine-session --output - [--field <name>] — print a fresh machine
11
11
  * session to a pipe; nothing is written to disk
12
12
  *
13
- * Sign-up is owned by the onboarding web app at
14
- * https://onboarding.hq.computer. `hq auth login` signs an existing account
13
+ * Sign-up is owned by the web app at
14
+ * https://hqforwork.com. `hq auth login` signs an existing account
15
15
  * into this machine by writing ~/.hq/cognito-tokens.json; once cached, the
16
16
  * session is kept valid by `hq auth refresh` / `hq-auth-refresh` and consumed
17
17
  * by the deploy + sync skills.
@@ -10,8 +10,8 @@
10
10
  * hq auth machine-session --output - [--field <name>] — print a fresh machine
11
11
  * session to a pipe; nothing is written to disk
12
12
  *
13
- * Sign-up is owned by the onboarding web app at
14
- * https://onboarding.hq.computer. `hq auth login` signs an existing account
13
+ * Sign-up is owned by the web app at
14
+ * https://hqforwork.com. `hq auth login` signs an existing account
15
15
  * into this machine by writing ~/.hq/cognito-tokens.json; once cached, the
16
16
  * session is kept valid by `hq auth refresh` / `hq-auth-refresh` and consumed
17
17
  * by the deploy + sync skills.
@@ -317,7 +317,7 @@ export function registerAuthCommands(program) {
317
317
  console.error(chalk.dim(` ${callbackPortBusyGuidance(DEFAULT_COGNITO.port ?? DEFAULT_CALLBACK_PORT)}`));
318
318
  }
319
319
  else {
320
- console.error(chalk.dim(" If you do not have an account, sign up at https://onboarding.hq.computer"));
320
+ console.error(chalk.dim(" If you do not have an account, sign up at https://hqforwork.com"));
321
321
  }
322
322
  process.exit(1);
323
323
  }