@indigoai-us/hq-cli 5.345.197 → 5.345.199
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 +111 -0
- package/dist/command-catalog.generated.d.ts +393 -12
- package/dist/command-catalog.generated.js +482 -12
- package/dist/commands/bot-events.d.ts +19 -0
- package/dist/commands/bot-events.js +46 -0
- package/dist/commands/bot-jobs.d.ts +2 -0
- package/dist/commands/bot-jobs.js +43 -2
- package/dist/commands/bot.d.ts +5 -0
- package/dist/commands/bot.js +33 -1
- package/dist/commands/core-resolve-company-native.d.ts +2 -1
- package/dist/commands/core-resolve-company-native.js +2 -24
- package/dist/commands/deploy-domains.d.ts +14 -2
- package/dist/commands/deploy-domains.js +726 -42
- package/dist/commands/integrations-connect.js +41 -3
- package/dist/commands/lanes-report.d.ts +2 -1
- package/dist/commands/lanes-report.js +44 -1
- package/dist/commands/lanes.d.ts +9 -0
- package/dist/commands/lanes.js +95 -9
- package/dist/commands/meetings.js +1 -21
- package/dist/commands/secrets.js +27 -6
- package/dist/commands/signals-run.d.ts +2 -0
- package/dist/commands/signals-run.js +6 -1
- package/dist/lanes-drain-hook.js +9 -0
- package/dist/lib/bot/api.d.ts +5 -0
- package/dist/lib/bot/claude-login.d.ts +31 -0
- package/dist/lib/bot/claude-login.js +160 -0
- package/dist/lib/bot/company-bind.d.ts +34 -0
- package/dist/lib/bot/company-bind.js +112 -0
- package/dist/lib/bot/config.js +3 -1
- package/dist/lib/bot/events.d.ts +18 -0
- package/dist/lib/bot/events.js +160 -0
- package/dist/lib/bot/executive-settings.d.ts +10 -0
- package/dist/lib/bot/executive-settings.js +43 -0
- package/dist/lib/bot/fleet-cron.js +4 -0
- package/dist/lib/bot/fleet-local.d.ts +12 -0
- package/dist/lib/bot/fleet-local.js +50 -20
- package/dist/lib/bot/job-run.js +1 -1
- package/dist/lib/bot/jobs/hot-signal-sync.d.ts +8 -0
- package/dist/lib/bot/jobs/hot-signal-sync.js +2 -0
- package/dist/lib/bot/jobs/meeting-detect.d.ts +28 -0
- package/dist/lib/bot/jobs/meeting-detect.js +176 -0
- package/dist/lib/bot/jobs/meeting-rider.d.ts +53 -0
- package/dist/lib/bot/jobs/meeting-rider.js +284 -0
- package/dist/lib/bot/jobs/signal-to-lane.d.ts +32 -0
- package/dist/lib/bot/jobs/signal-to-lane.js +169 -0
- package/dist/lib/bot/local-jobs.d.ts +15 -2
- package/dist/lib/bot/local-jobs.js +24 -7
- package/dist/lib/bot/run.d.ts +7 -49
- package/dist/lib/bot/run.js +135 -12
- package/dist/lib/bot/session.d.ts +19 -1
- package/dist/lib/bot/session.js +75 -28
- package/dist/lib/bot/status.d.ts +21 -0
- package/dist/lib/core-utils/manifest-slugs.d.ts +2 -0
- package/dist/lib/core-utils/manifest-slugs.js +26 -0
- package/dist/lib/doctor/checks/bots.d.ts +6 -0
- package/dist/lib/doctor/checks/bots.js +47 -1
- package/dist/lib/hot-channels/adapters/meetings.d.ts +1 -0
- package/dist/lib/hot-channels/adapters/meetings.js +3 -1
- package/dist/lib/hot-channels/meeting-source-ref.d.ts +3 -0
- package/dist/lib/hot-channels/meeting-source-ref.js +7 -0
- package/dist/lib/hot-channels/schedule.js +2 -2
- package/dist/lib/hot-channels/signals-pass.d.ts +9 -32
- package/dist/lib/hot-channels/signals-pass.js +51 -17
- package/dist/lib/lanes/admission.d.ts +2 -0
- package/dist/lib/lanes/admission.js +4 -0
- package/dist/lib/lanes/approval-gate.js +4 -1
- package/dist/lib/lanes/links.d.ts +8 -1
- package/dist/lib/lanes/links.js +84 -3
- package/dist/lib/lanes/outcome.d.ts +154 -0
- package/dist/lib/lanes/outcome.js +151 -0
- package/dist/lib/lanes/reconcile.js +1 -0
- package/dist/lib/lanes/signal-brief-template.d.ts +7 -0
- package/dist/lib/lanes/signal-brief-template.js +40 -0
- package/dist/lib/lanes/signal-lane.d.ts +24 -0
- package/dist/lib/lanes/signal-lane.js +99 -0
- package/dist/lib/lanes/source-report.d.ts +37 -0
- package/dist/lib/lanes/source-report.js +66 -0
- package/dist/lib/lanes/spawn.d.ts +6 -0
- package/dist/lib/lanes/spawn.js +21 -0
- package/dist/lib/lanes/store.d.ts +3 -0
- package/dist/lib/lanes/store.js +64 -0
- package/dist/lib/lanes/story-ledger.d.ts +3 -0
- package/dist/lib/lanes/story-ledger.js +1 -0
- package/dist/lib/lanes/types.d.ts +137 -0
- package/dist/lib/lanes/types.js +17 -2
- package/dist/lib/lanes/watcher.js +4 -0
- package/dist/lib/live-meetings.d.ts +19 -0
- package/dist/lib/live-meetings.js +23 -0
- package/dist/lib/mesh/live/daemon/doctor.js +6 -7
- package/dist/lib/mesh/live/spool.d.ts +8 -0
- package/dist/lib/mesh/live/spool.js +59 -40
- package/dist/lib/plan-limit-nag.d.ts +30 -4
- package/dist/lib/plan-limit-nag.js +68 -17
- package/dist/lib/signals/engine.d.ts +4 -0
- package/dist/lib/signals/engine.js +25 -5
- package/dist/lib/signals/incremental.d.ts +42 -0
- package/dist/lib/signals/incremental.js +191 -0
- package/dist/lib/signals/prior-signals.d.ts +11 -0
- package/dist/lib/signals/prior-signals.js +44 -0
- package/dist/lib/signals/reply.js +6 -1
- package/dist/lib/signals/settings.d.ts +5 -0
- package/dist/lib/signals/settings.js +17 -0
- package/dist/lib/signals/steps/extract.d.ts +30 -2
- package/dist/lib/signals/steps/extract.js +153 -11
- package/dist/lib/signals/steps/types.d.ts +1 -0
- package/dist/lib/signals/write-guard.js +7 -0
- package/dist/secrets-env-action.d.ts +70 -0
- package/dist/secrets-env-action.js +220 -2
- package/dist/utils/cognito-callback-port.d.ts +15 -0
- package/dist/utils/cognito-callback-port.js +51 -0
- package/dist/utils/cognito-config.js +2 -3
- package/dist/utils/cognito-session.d.ts +7 -6
- package/dist/utils/cognito-session.js +14 -14
- package/dist/utils/interactive-caller.d.ts +15 -0
- package/dist/utils/interactive-caller.js +70 -0
- package/dist/utils/login-browser.js +3 -1
- package/dist/utils/resident-package-preload.js +4 -0
- package/package.json +9 -7
|
@@ -6723,6 +6723,16 @@ export const COMMAND_CATALOG = [
|
|
|
6723
6723
|
"description": "Run one company (default: every company listed in the companies manifest)",
|
|
6724
6724
|
"hidden": false
|
|
6725
6725
|
},
|
|
6726
|
+
{
|
|
6727
|
+
"flags": "--source <ref>",
|
|
6728
|
+
"description": "Read a growing source: meeting:<id> or <channel>:<file> (needs --incremental and --company)",
|
|
6729
|
+
"hidden": false
|
|
6730
|
+
},
|
|
6731
|
+
{
|
|
6732
|
+
"flags": "--incremental",
|
|
6733
|
+
"description": "Extract only new signals from --source, retaining a cursor and prior signal ids",
|
|
6734
|
+
"hidden": false
|
|
6735
|
+
},
|
|
6726
6736
|
{
|
|
6727
6737
|
"flags": "--dry-run",
|
|
6728
6738
|
"description": "Print what would run; run no mutating step and write nothing",
|
|
@@ -18754,6 +18764,11 @@ export const COMMAND_CATALOG = [
|
|
|
18754
18764
|
"description": "Select the company by slug",
|
|
18755
18765
|
"hidden": false
|
|
18756
18766
|
},
|
|
18767
|
+
{
|
|
18768
|
+
"flags": "--source <ref>",
|
|
18769
|
+
"description": "Report lanes for a source (requires --company; excludes --since)",
|
|
18770
|
+
"hidden": false
|
|
18771
|
+
},
|
|
18757
18772
|
{
|
|
18758
18773
|
"flags": "--since <iso>",
|
|
18759
18774
|
"description": "Report activity from this ISO timestamp",
|
|
@@ -19323,7 +19338,27 @@ export const COMMAND_CATALOG = [
|
|
|
19323
19338
|
},
|
|
19324
19339
|
{
|
|
19325
19340
|
"flags": "--project <slug>",
|
|
19326
|
-
"description": "HQ project slug",
|
|
19341
|
+
"description": "HQ project slug (executive-bot for --signal)",
|
|
19342
|
+
"hidden": false
|
|
19343
|
+
},
|
|
19344
|
+
{
|
|
19345
|
+
"flags": "--signal <id>",
|
|
19346
|
+
"description": "Create one lane for a company signal",
|
|
19347
|
+
"hidden": false
|
|
19348
|
+
},
|
|
19349
|
+
{
|
|
19350
|
+
"flags": "--rules-file <path>",
|
|
19351
|
+
"description": "Standing rules for a signal lane",
|
|
19352
|
+
"hidden": false
|
|
19353
|
+
},
|
|
19354
|
+
{
|
|
19355
|
+
"flags": "--any-type",
|
|
19356
|
+
"description": "Allow signal types other than action_item",
|
|
19357
|
+
"hidden": false
|
|
19358
|
+
},
|
|
19359
|
+
{
|
|
19360
|
+
"flags": "--link <id>",
|
|
19361
|
+
"description": "Conductor link for a signal lane",
|
|
19327
19362
|
"hidden": false
|
|
19328
19363
|
},
|
|
19329
19364
|
{
|
|
@@ -19348,7 +19383,7 @@ export const COMMAND_CATALOG = [
|
|
|
19348
19383
|
},
|
|
19349
19384
|
{
|
|
19350
19385
|
"flags": "--brief-file <path>",
|
|
19351
|
-
"description": "Path to the lane brief",
|
|
19386
|
+
"description": "Path to the lane brief (generated for --signal)",
|
|
19352
19387
|
"hidden": false
|
|
19353
19388
|
},
|
|
19354
19389
|
{
|
|
@@ -20037,18 +20072,25 @@ export const COMMAND_CATALOG = [
|
|
|
20037
20072
|
},
|
|
20038
20073
|
{
|
|
20039
20074
|
"name": "status",
|
|
20040
|
-
"description": "Summarize project stories, lanes, PRs, blockers, and pending questions",
|
|
20075
|
+
"description": "Summarize project stories, lanes, PRs, blockers, and pending questions; with a lane id, report that lane's outcome",
|
|
20041
20076
|
"aliases": [],
|
|
20042
20077
|
"hidden": false,
|
|
20043
20078
|
"helpOption": true,
|
|
20044
20079
|
"helpCommand": false,
|
|
20045
|
-
"usage": "[options]",
|
|
20080
|
+
"usage": "[options] [lane-id]",
|
|
20046
20081
|
"helpText": [],
|
|
20047
|
-
"arguments": [
|
|
20082
|
+
"arguments": [
|
|
20083
|
+
{
|
|
20084
|
+
"name": "lane-id",
|
|
20085
|
+
"required": false,
|
|
20086
|
+
"variadic": false,
|
|
20087
|
+
"description": "Report one lane's state and outcome block instead of a project"
|
|
20088
|
+
}
|
|
20089
|
+
],
|
|
20048
20090
|
"options": [
|
|
20049
20091
|
{
|
|
20050
20092
|
"flags": "--project <slug>",
|
|
20051
|
-
"description": "HQ project slug",
|
|
20093
|
+
"description": "HQ project slug (required without a lane id)",
|
|
20052
20094
|
"hidden": false
|
|
20053
20095
|
},
|
|
20054
20096
|
{
|
|
@@ -23249,6 +23291,17 @@ export const COMMAND_CATALOG = [
|
|
|
23249
23291
|
"description": "How often, as a cron expression (e.g. \"0 9 * * 1-5\")",
|
|
23250
23292
|
"hidden": false
|
|
23251
23293
|
},
|
|
23294
|
+
{
|
|
23295
|
+
"flags": "--on <event>",
|
|
23296
|
+
"description": "Run when this event is emitted",
|
|
23297
|
+
"hidden": false
|
|
23298
|
+
},
|
|
23299
|
+
{
|
|
23300
|
+
"flags": "--filter <key=value>",
|
|
23301
|
+
"description": "Match an event payload field (repeatable)",
|
|
23302
|
+
"hidden": false,
|
|
23303
|
+
"defaultValue": []
|
|
23304
|
+
},
|
|
23252
23305
|
{
|
|
23253
23306
|
"flags": "--tz <zone>",
|
|
23254
23307
|
"description": "IANA timezone for the schedule (default: this computer's)",
|
|
@@ -23277,6 +23330,77 @@ export const COMMAND_CATALOG = [
|
|
|
23277
23330
|
],
|
|
23278
23331
|
"subcommands": []
|
|
23279
23332
|
},
|
|
23333
|
+
{
|
|
23334
|
+
"name": "events",
|
|
23335
|
+
"description": "Emit and inspect local bot events",
|
|
23336
|
+
"aliases": [],
|
|
23337
|
+
"hidden": false,
|
|
23338
|
+
"helpOption": true,
|
|
23339
|
+
"helpCommand": true,
|
|
23340
|
+
"usage": "[options] [command]",
|
|
23341
|
+
"helpText": [],
|
|
23342
|
+
"arguments": [],
|
|
23343
|
+
"options": [],
|
|
23344
|
+
"subcommands": [
|
|
23345
|
+
{
|
|
23346
|
+
"name": "emit",
|
|
23347
|
+
"description": "",
|
|
23348
|
+
"aliases": [],
|
|
23349
|
+
"hidden": false,
|
|
23350
|
+
"helpOption": true,
|
|
23351
|
+
"helpCommand": false,
|
|
23352
|
+
"usage": "[options] <event>",
|
|
23353
|
+
"helpText": [],
|
|
23354
|
+
"arguments": [
|
|
23355
|
+
{
|
|
23356
|
+
"name": "event",
|
|
23357
|
+
"required": true,
|
|
23358
|
+
"variadic": false,
|
|
23359
|
+
"description": ""
|
|
23360
|
+
}
|
|
23361
|
+
],
|
|
23362
|
+
"options": [
|
|
23363
|
+
{
|
|
23364
|
+
"flags": "--bot <name>",
|
|
23365
|
+
"description": "Bot receiving the event",
|
|
23366
|
+
"hidden": false
|
|
23367
|
+
},
|
|
23368
|
+
{
|
|
23369
|
+
"flags": "--json <payload>",
|
|
23370
|
+
"description": "JSON object under 16 KB",
|
|
23371
|
+
"hidden": false
|
|
23372
|
+
}
|
|
23373
|
+
],
|
|
23374
|
+
"subcommands": []
|
|
23375
|
+
},
|
|
23376
|
+
{
|
|
23377
|
+
"name": "tail",
|
|
23378
|
+
"description": "",
|
|
23379
|
+
"aliases": [],
|
|
23380
|
+
"hidden": false,
|
|
23381
|
+
"helpOption": true,
|
|
23382
|
+
"helpCommand": false,
|
|
23383
|
+
"usage": "[options] <name>",
|
|
23384
|
+
"helpText": [],
|
|
23385
|
+
"arguments": [
|
|
23386
|
+
{
|
|
23387
|
+
"name": "name",
|
|
23388
|
+
"required": true,
|
|
23389
|
+
"variadic": false,
|
|
23390
|
+
"description": ""
|
|
23391
|
+
}
|
|
23392
|
+
],
|
|
23393
|
+
"options": [
|
|
23394
|
+
{
|
|
23395
|
+
"flags": "--json",
|
|
23396
|
+
"description": "Print the last 50 events as a JSON array",
|
|
23397
|
+
"hidden": false
|
|
23398
|
+
}
|
|
23399
|
+
],
|
|
23400
|
+
"subcommands": []
|
|
23401
|
+
}
|
|
23402
|
+
]
|
|
23403
|
+
},
|
|
23280
23404
|
{
|
|
23281
23405
|
"name": "promote",
|
|
23282
23406
|
"description": "Move this local bot to cloud compute, preserving its identity and private context",
|
|
@@ -24625,7 +24749,7 @@ export const COMMAND_CATALOG = [
|
|
|
24625
24749
|
},
|
|
24626
24750
|
{
|
|
24627
24751
|
"name": "domains",
|
|
24628
|
-
"description": "Manage custom domains on your deployed apps, and
|
|
24752
|
+
"description": "Manage custom domains on your deployed apps, buy domains, and edit their DNS",
|
|
24629
24753
|
"aliases": [],
|
|
24630
24754
|
"hidden": false,
|
|
24631
24755
|
"helpOption": true,
|
|
@@ -24634,7 +24758,7 @@ export const COMMAND_CATALOG = [
|
|
|
24634
24758
|
"helpText": [
|
|
24635
24759
|
{
|
|
24636
24760
|
"position": "after",
|
|
24637
|
-
"text": "\nadd, remove and buy ask for approval in an interactive terminal. Without
|
|
24761
|
+
"text": "\nadd, remove and buy ask for approval in an interactive terminal. buy accepts y or --yes. Without a terminal (a script, CI, or a Windows shell that does not report a terminal, such as Git Bash under mintty), pass --yes."
|
|
24638
24762
|
}
|
|
24639
24763
|
],
|
|
24640
24764
|
"arguments": [],
|
|
@@ -24948,7 +25072,7 @@ export const COMMAND_CATALOG = [
|
|
|
24948
25072
|
},
|
|
24949
25073
|
{
|
|
24950
25074
|
"name": "search",
|
|
24951
|
-
"description": "Check whether a domain can be bought, and
|
|
25075
|
+
"description": "Check whether a domain can be bought, with availability and registrar prices",
|
|
24952
25076
|
"aliases": [],
|
|
24953
25077
|
"hidden": false,
|
|
24954
25078
|
"helpOption": true,
|
|
@@ -24979,7 +25103,7 @@ export const COMMAND_CATALOG = [
|
|
|
24979
25103
|
},
|
|
24980
25104
|
{
|
|
24981
25105
|
"name": "buy",
|
|
24982
|
-
"description": "Buy a domain for the company (owner or admin)",
|
|
25106
|
+
"description": "Buy a domain for the company and say what it is for (owner or admin)",
|
|
24983
25107
|
"aliases": [],
|
|
24984
25108
|
"hidden": false,
|
|
24985
25109
|
"helpOption": true,
|
|
@@ -24995,9 +25119,14 @@ export const COMMAND_CATALOG = [
|
|
|
24995
25119
|
}
|
|
24996
25120
|
],
|
|
24997
25121
|
"options": [
|
|
25122
|
+
{
|
|
25123
|
+
"flags": "--use <use>",
|
|
25124
|
+
"description": "what the domain is for: app:<app id>, base, or hold",
|
|
25125
|
+
"hidden": false
|
|
25126
|
+
},
|
|
24998
25127
|
{
|
|
24999
25128
|
"flags": "--price <usd>",
|
|
25000
|
-
"description": "first-year price shown by 'hq deploy domains search'",
|
|
25129
|
+
"description": "first-year registrar price shown by 'hq deploy domains search'",
|
|
25001
25130
|
"hidden": false
|
|
25002
25131
|
},
|
|
25003
25132
|
{
|
|
@@ -25017,7 +25146,62 @@ export const COMMAND_CATALOG = [
|
|
|
25017
25146
|
},
|
|
25018
25147
|
{
|
|
25019
25148
|
"flags": "--yes",
|
|
25020
|
-
"description": "buy without a prompt",
|
|
25149
|
+
"description": "buy without a prompt, after you have read the transfer lock and final-purchase notice",
|
|
25150
|
+
"hidden": false
|
|
25151
|
+
},
|
|
25152
|
+
{
|
|
25153
|
+
"flags": "--json",
|
|
25154
|
+
"description": "print machine-readable JSON",
|
|
25155
|
+
"hidden": false
|
|
25156
|
+
}
|
|
25157
|
+
],
|
|
25158
|
+
"subcommands": []
|
|
25159
|
+
},
|
|
25160
|
+
{
|
|
25161
|
+
"name": "owned",
|
|
25162
|
+
"description": "List domains this company bought",
|
|
25163
|
+
"aliases": [],
|
|
25164
|
+
"hidden": false,
|
|
25165
|
+
"helpOption": true,
|
|
25166
|
+
"helpCommand": false,
|
|
25167
|
+
"usage": "[options]",
|
|
25168
|
+
"helpText": [],
|
|
25169
|
+
"arguments": [],
|
|
25170
|
+
"options": [
|
|
25171
|
+
{
|
|
25172
|
+
"flags": "--company <slug>",
|
|
25173
|
+
"description": "use this company instead of the active company",
|
|
25174
|
+
"hidden": false
|
|
25175
|
+
},
|
|
25176
|
+
{
|
|
25177
|
+
"flags": "--json",
|
|
25178
|
+
"description": "print machine-readable JSON",
|
|
25179
|
+
"hidden": false
|
|
25180
|
+
}
|
|
25181
|
+
],
|
|
25182
|
+
"subcommands": []
|
|
25183
|
+
},
|
|
25184
|
+
{
|
|
25185
|
+
"name": "show",
|
|
25186
|
+
"description": "Show one purchased domain, including nameservers and events",
|
|
25187
|
+
"aliases": [],
|
|
25188
|
+
"hidden": false,
|
|
25189
|
+
"helpOption": true,
|
|
25190
|
+
"helpCommand": false,
|
|
25191
|
+
"usage": "[options] <domain>",
|
|
25192
|
+
"helpText": [],
|
|
25193
|
+
"arguments": [
|
|
25194
|
+
{
|
|
25195
|
+
"name": "domain",
|
|
25196
|
+
"required": true,
|
|
25197
|
+
"variadic": false,
|
|
25198
|
+
"description": ""
|
|
25199
|
+
}
|
|
25200
|
+
],
|
|
25201
|
+
"options": [
|
|
25202
|
+
{
|
|
25203
|
+
"flags": "--company <slug>",
|
|
25204
|
+
"description": "use this company instead of the active company",
|
|
25021
25205
|
"hidden": false
|
|
25022
25206
|
},
|
|
25023
25207
|
{
|
|
@@ -25027,6 +25211,292 @@ export const COMMAND_CATALOG = [
|
|
|
25027
25211
|
}
|
|
25028
25212
|
],
|
|
25029
25213
|
"subcommands": []
|
|
25214
|
+
},
|
|
25215
|
+
{
|
|
25216
|
+
"name": "renew",
|
|
25217
|
+
"description": "Turn automatic renewal off or back on for a purchased domain",
|
|
25218
|
+
"aliases": [],
|
|
25219
|
+
"hidden": false,
|
|
25220
|
+
"helpOption": true,
|
|
25221
|
+
"helpCommand": true,
|
|
25222
|
+
"usage": "[options] [command]",
|
|
25223
|
+
"helpText": [],
|
|
25224
|
+
"arguments": [],
|
|
25225
|
+
"options": [],
|
|
25226
|
+
"subcommands": [
|
|
25227
|
+
{
|
|
25228
|
+
"name": "cancel",
|
|
25229
|
+
"description": "Stop automatic renewal for a purchased domain",
|
|
25230
|
+
"aliases": [],
|
|
25231
|
+
"hidden": false,
|
|
25232
|
+
"helpOption": true,
|
|
25233
|
+
"helpCommand": false,
|
|
25234
|
+
"usage": "[options] <domain>",
|
|
25235
|
+
"helpText": [],
|
|
25236
|
+
"arguments": [
|
|
25237
|
+
{
|
|
25238
|
+
"name": "domain",
|
|
25239
|
+
"required": true,
|
|
25240
|
+
"variadic": false,
|
|
25241
|
+
"description": ""
|
|
25242
|
+
}
|
|
25243
|
+
],
|
|
25244
|
+
"options": [
|
|
25245
|
+
{
|
|
25246
|
+
"flags": "--yes",
|
|
25247
|
+
"description": "Confirm the billing setting change",
|
|
25248
|
+
"hidden": false
|
|
25249
|
+
},
|
|
25250
|
+
{
|
|
25251
|
+
"flags": "--company <slug>",
|
|
25252
|
+
"description": "use this company instead of the active company",
|
|
25253
|
+
"hidden": false
|
|
25254
|
+
},
|
|
25255
|
+
{
|
|
25256
|
+
"flags": "--json",
|
|
25257
|
+
"description": "print machine-readable JSON",
|
|
25258
|
+
"hidden": false
|
|
25259
|
+
}
|
|
25260
|
+
],
|
|
25261
|
+
"subcommands": []
|
|
25262
|
+
},
|
|
25263
|
+
{
|
|
25264
|
+
"name": "resume",
|
|
25265
|
+
"description": "Turn automatic renewal back on for a purchased domain",
|
|
25266
|
+
"aliases": [],
|
|
25267
|
+
"hidden": false,
|
|
25268
|
+
"helpOption": true,
|
|
25269
|
+
"helpCommand": false,
|
|
25270
|
+
"usage": "[options] <domain>",
|
|
25271
|
+
"helpText": [],
|
|
25272
|
+
"arguments": [
|
|
25273
|
+
{
|
|
25274
|
+
"name": "domain",
|
|
25275
|
+
"required": true,
|
|
25276
|
+
"variadic": false,
|
|
25277
|
+
"description": ""
|
|
25278
|
+
}
|
|
25279
|
+
],
|
|
25280
|
+
"options": [
|
|
25281
|
+
{
|
|
25282
|
+
"flags": "--yes",
|
|
25283
|
+
"description": "Confirm the billing setting change",
|
|
25284
|
+
"hidden": false
|
|
25285
|
+
},
|
|
25286
|
+
{
|
|
25287
|
+
"flags": "--company <slug>",
|
|
25288
|
+
"description": "use this company instead of the active company",
|
|
25289
|
+
"hidden": false
|
|
25290
|
+
},
|
|
25291
|
+
{
|
|
25292
|
+
"flags": "--json",
|
|
25293
|
+
"description": "print machine-readable JSON",
|
|
25294
|
+
"hidden": false
|
|
25295
|
+
}
|
|
25296
|
+
],
|
|
25297
|
+
"subcommands": []
|
|
25298
|
+
}
|
|
25299
|
+
]
|
|
25300
|
+
},
|
|
25301
|
+
{
|
|
25302
|
+
"name": "records",
|
|
25303
|
+
"description": "Manage DNS records on a domain this company bought",
|
|
25304
|
+
"aliases": [],
|
|
25305
|
+
"hidden": false,
|
|
25306
|
+
"helpOption": true,
|
|
25307
|
+
"helpCommand": true,
|
|
25308
|
+
"usage": "[options] [command]",
|
|
25309
|
+
"helpText": [],
|
|
25310
|
+
"arguments": [],
|
|
25311
|
+
"options": [],
|
|
25312
|
+
"subcommands": [
|
|
25313
|
+
{
|
|
25314
|
+
"name": "list",
|
|
25315
|
+
"description": "List DNS records, marking the ones HQ has locked",
|
|
25316
|
+
"aliases": [],
|
|
25317
|
+
"hidden": false,
|
|
25318
|
+
"helpOption": true,
|
|
25319
|
+
"helpCommand": false,
|
|
25320
|
+
"usage": "[options] <domain>",
|
|
25321
|
+
"helpText": [],
|
|
25322
|
+
"arguments": [
|
|
25323
|
+
{
|
|
25324
|
+
"name": "domain",
|
|
25325
|
+
"required": true,
|
|
25326
|
+
"variadic": false,
|
|
25327
|
+
"description": ""
|
|
25328
|
+
}
|
|
25329
|
+
],
|
|
25330
|
+
"options": [
|
|
25331
|
+
{
|
|
25332
|
+
"flags": "--company <slug>",
|
|
25333
|
+
"description": "use this company instead of the active company",
|
|
25334
|
+
"hidden": false
|
|
25335
|
+
},
|
|
25336
|
+
{
|
|
25337
|
+
"flags": "--json",
|
|
25338
|
+
"description": "print machine-readable JSON",
|
|
25339
|
+
"hidden": false
|
|
25340
|
+
}
|
|
25341
|
+
],
|
|
25342
|
+
"subcommands": []
|
|
25343
|
+
},
|
|
25344
|
+
{
|
|
25345
|
+
"name": "add",
|
|
25346
|
+
"description": "Add a DNS record",
|
|
25347
|
+
"aliases": [],
|
|
25348
|
+
"hidden": false,
|
|
25349
|
+
"helpOption": true,
|
|
25350
|
+
"helpCommand": false,
|
|
25351
|
+
"usage": "[options] <domain>",
|
|
25352
|
+
"helpText": [],
|
|
25353
|
+
"arguments": [
|
|
25354
|
+
{
|
|
25355
|
+
"name": "domain",
|
|
25356
|
+
"required": true,
|
|
25357
|
+
"variadic": false,
|
|
25358
|
+
"description": ""
|
|
25359
|
+
}
|
|
25360
|
+
],
|
|
25361
|
+
"options": [
|
|
25362
|
+
{
|
|
25363
|
+
"flags": "--type <type>",
|
|
25364
|
+
"description": "A, AAAA, CNAME, MX, TXT, SRV, or CAA",
|
|
25365
|
+
"hidden": false
|
|
25366
|
+
},
|
|
25367
|
+
{
|
|
25368
|
+
"flags": "--name <name>",
|
|
25369
|
+
"description": "record name, such as www or the full domain",
|
|
25370
|
+
"hidden": false
|
|
25371
|
+
},
|
|
25372
|
+
{
|
|
25373
|
+
"flags": "--value <value>",
|
|
25374
|
+
"description": "record value (repeat for more than one)",
|
|
25375
|
+
"hidden": false,
|
|
25376
|
+
"defaultValue": []
|
|
25377
|
+
},
|
|
25378
|
+
{
|
|
25379
|
+
"flags": "--ttl <seconds>",
|
|
25380
|
+
"description": "time to live in seconds",
|
|
25381
|
+
"hidden": false
|
|
25382
|
+
},
|
|
25383
|
+
{
|
|
25384
|
+
"flags": "--company <slug>",
|
|
25385
|
+
"description": "use this company instead of the active company",
|
|
25386
|
+
"hidden": false
|
|
25387
|
+
},
|
|
25388
|
+
{
|
|
25389
|
+
"flags": "--json",
|
|
25390
|
+
"description": "print machine-readable JSON",
|
|
25391
|
+
"hidden": false
|
|
25392
|
+
}
|
|
25393
|
+
],
|
|
25394
|
+
"subcommands": []
|
|
25395
|
+
},
|
|
25396
|
+
{
|
|
25397
|
+
"name": "set",
|
|
25398
|
+
"description": "Change a DNS record by id, or by name and type",
|
|
25399
|
+
"aliases": [],
|
|
25400
|
+
"hidden": false,
|
|
25401
|
+
"helpOption": true,
|
|
25402
|
+
"helpCommand": false,
|
|
25403
|
+
"usage": "[options] <domain>",
|
|
25404
|
+
"helpText": [],
|
|
25405
|
+
"arguments": [
|
|
25406
|
+
{
|
|
25407
|
+
"name": "domain",
|
|
25408
|
+
"required": true,
|
|
25409
|
+
"variadic": false,
|
|
25410
|
+
"description": ""
|
|
25411
|
+
}
|
|
25412
|
+
],
|
|
25413
|
+
"options": [
|
|
25414
|
+
{
|
|
25415
|
+
"flags": "--record <id>",
|
|
25416
|
+
"description": "record id from 'hq deploy domains records list'",
|
|
25417
|
+
"hidden": false
|
|
25418
|
+
},
|
|
25419
|
+
{
|
|
25420
|
+
"flags": "--name <name>",
|
|
25421
|
+
"description": "record name, together with --type",
|
|
25422
|
+
"hidden": false
|
|
25423
|
+
},
|
|
25424
|
+
{
|
|
25425
|
+
"flags": "--type <type>",
|
|
25426
|
+
"description": "record type, together with --name",
|
|
25427
|
+
"hidden": false
|
|
25428
|
+
},
|
|
25429
|
+
{
|
|
25430
|
+
"flags": "--value <value>",
|
|
25431
|
+
"description": "replacement value (repeat for more than one)",
|
|
25432
|
+
"hidden": false,
|
|
25433
|
+
"defaultValue": []
|
|
25434
|
+
},
|
|
25435
|
+
{
|
|
25436
|
+
"flags": "--ttl <seconds>",
|
|
25437
|
+
"description": "replacement time to live in seconds",
|
|
25438
|
+
"hidden": false
|
|
25439
|
+
},
|
|
25440
|
+
{
|
|
25441
|
+
"flags": "--company <slug>",
|
|
25442
|
+
"description": "use this company instead of the active company",
|
|
25443
|
+
"hidden": false
|
|
25444
|
+
},
|
|
25445
|
+
{
|
|
25446
|
+
"flags": "--json",
|
|
25447
|
+
"description": "print machine-readable JSON",
|
|
25448
|
+
"hidden": false
|
|
25449
|
+
}
|
|
25450
|
+
],
|
|
25451
|
+
"subcommands": []
|
|
25452
|
+
},
|
|
25453
|
+
{
|
|
25454
|
+
"name": "delete",
|
|
25455
|
+
"description": "Delete a DNS record by id, or by name and type",
|
|
25456
|
+
"aliases": [],
|
|
25457
|
+
"hidden": false,
|
|
25458
|
+
"helpOption": true,
|
|
25459
|
+
"helpCommand": false,
|
|
25460
|
+
"usage": "[options] <domain>",
|
|
25461
|
+
"helpText": [],
|
|
25462
|
+
"arguments": [
|
|
25463
|
+
{
|
|
25464
|
+
"name": "domain",
|
|
25465
|
+
"required": true,
|
|
25466
|
+
"variadic": false,
|
|
25467
|
+
"description": ""
|
|
25468
|
+
}
|
|
25469
|
+
],
|
|
25470
|
+
"options": [
|
|
25471
|
+
{
|
|
25472
|
+
"flags": "--record <id>",
|
|
25473
|
+
"description": "record id from 'hq deploy domains records list'",
|
|
25474
|
+
"hidden": false
|
|
25475
|
+
},
|
|
25476
|
+
{
|
|
25477
|
+
"flags": "--name <name>",
|
|
25478
|
+
"description": "record name, together with --type",
|
|
25479
|
+
"hidden": false
|
|
25480
|
+
},
|
|
25481
|
+
{
|
|
25482
|
+
"flags": "--type <type>",
|
|
25483
|
+
"description": "record type, together with --name",
|
|
25484
|
+
"hidden": false
|
|
25485
|
+
},
|
|
25486
|
+
{
|
|
25487
|
+
"flags": "--company <slug>",
|
|
25488
|
+
"description": "use this company instead of the active company",
|
|
25489
|
+
"hidden": false
|
|
25490
|
+
},
|
|
25491
|
+
{
|
|
25492
|
+
"flags": "--json",
|
|
25493
|
+
"description": "print machine-readable JSON",
|
|
25494
|
+
"hidden": false
|
|
25495
|
+
}
|
|
25496
|
+
],
|
|
25497
|
+
"subcommands": []
|
|
25498
|
+
}
|
|
25499
|
+
]
|
|
25030
25500
|
}
|
|
25031
25501
|
]
|
|
25032
25502
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Command } from "commander";
|
|
2
|
+
import { type BotConfig } from "../lib/bot/config.js";
|
|
3
|
+
export interface BotEventsDeps {
|
|
4
|
+
requireBot(name: string): {
|
|
5
|
+
name: string;
|
|
6
|
+
dir: string;
|
|
7
|
+
config: BotConfig;
|
|
8
|
+
};
|
|
9
|
+
out?: (line: string) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function runBotEventEmit(event: string, opts: {
|
|
12
|
+
bot: string;
|
|
13
|
+
json: string;
|
|
14
|
+
}, deps: BotEventsDeps): void;
|
|
15
|
+
export declare function runBotEventsTail(name: string, opts: {
|
|
16
|
+
json?: boolean;
|
|
17
|
+
}, deps: BotEventsDeps): void;
|
|
18
|
+
export declare function registerBotEventsCommand(bot: Command, deps: BotEventsDeps): void;
|
|
19
|
+
//# sourceMappingURL=bot-events.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { emitBotEvent, tailBotEvents } from "../lib/bot/events.js";
|
|
2
|
+
import { HQ_FLEET_RUNTIME_ENGINE_ID } from "../lib/bot/config.js";
|
|
3
|
+
export function runBotEventEmit(event, opts, deps) {
|
|
4
|
+
const { dir, config } = deps.requireBot(opts.bot);
|
|
5
|
+
if (config.engine?.id === HQ_FLEET_RUNTIME_ENGINE_ID)
|
|
6
|
+
throw new Error("Event journals require a local CLI bot; HQ Fleet Runtime does not drain them.");
|
|
7
|
+
let payload;
|
|
8
|
+
try {
|
|
9
|
+
payload = JSON.parse(opts.json);
|
|
10
|
+
}
|
|
11
|
+
catch {
|
|
12
|
+
throw new Error("Event payload must be valid JSON.");
|
|
13
|
+
}
|
|
14
|
+
const record = emitBotEvent(dir, event, payload);
|
|
15
|
+
(deps.out ?? console.log)(JSON.stringify(record));
|
|
16
|
+
}
|
|
17
|
+
export function runBotEventsTail(name, opts, deps) {
|
|
18
|
+
const { dir } = deps.requireBot(name);
|
|
19
|
+
const records = tailBotEvents(dir);
|
|
20
|
+
const out = deps.out ?? console.log;
|
|
21
|
+
if (opts.json)
|
|
22
|
+
out(JSON.stringify(records, null, 2));
|
|
23
|
+
else
|
|
24
|
+
for (const record of records)
|
|
25
|
+
out(`${record.at} ${record.event} ${JSON.stringify(record.payload)}`);
|
|
26
|
+
}
|
|
27
|
+
export function registerBotEventsCommand(bot, deps) {
|
|
28
|
+
const events = bot.command("events").description("Emit and inspect local bot events");
|
|
29
|
+
const action = (fn) => {
|
|
30
|
+
try {
|
|
31
|
+
fn();
|
|
32
|
+
}
|
|
33
|
+
catch (err) {
|
|
34
|
+
console.error(err instanceof Error ? err.message : String(err));
|
|
35
|
+
process.exitCode = 1;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
events.command("emit <event>")
|
|
39
|
+
.requiredOption("--bot <name>", "Bot receiving the event")
|
|
40
|
+
.requiredOption("--json <payload>", "JSON object under 16 KB")
|
|
41
|
+
.action((event, opts) => action(() => runBotEventEmit(event, opts, deps)));
|
|
42
|
+
events.command("tail <name>")
|
|
43
|
+
.option("--json", "Print the last 50 events as a JSON array")
|
|
44
|
+
.action((name, opts) => action(() => runBotEventsTail(name, opts, deps)));
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=bot-events.js.map
|