@indigoai-us/hq-cli 5.345.220 → 5.345.221
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 +118 -0
- package/dist/command-catalog.generated.d.ts +144 -2
- package/dist/command-catalog.generated.js +175 -2
- package/dist/commands/auth.js +4 -1
- package/dist/commands/bot-runtime.d.ts +18 -5
- package/dist/commands/bot-runtime.js +29 -12
- package/dist/commands/bot.d.ts +39 -2
- package/dist/commands/bot.js +140 -11
- package/dist/commands/core-stop-autosave.d.ts +21 -0
- package/dist/commands/core-stop-autosave.js +300 -0
- package/dist/commands/core.js +2 -0
- package/dist/commands/daemon.d.ts +5 -0
- package/dist/commands/daemon.js +31 -7
- package/dist/commands/doctor-usage.d.ts +5 -0
- package/dist/commands/doctor-usage.js +25 -0
- package/dist/commands/env.d.ts +49 -4
- package/dist/commands/env.js +355 -5
- package/dist/commands/lanes-shared.d.ts +3 -0
- package/dist/commands/lanes.d.ts +3 -0
- package/dist/commands/lanes.js +87 -3
- package/dist/commands/sources.js +3 -3
- package/dist/commands/sync-core.d.ts +1 -0
- package/dist/commands/sync-core.js +77 -3
- package/dist/commands/whoami.js +96 -80
- package/dist/lib/bot/config.d.ts +17 -0
- package/dist/lib/bot/config.js +13 -0
- package/dist/lib/bot/fleet-cron.js +24 -2
- package/dist/lib/bot/fleet-local.d.ts +30 -2
- package/dist/lib/bot/fleet-local.js +60 -1
- package/dist/lib/bot/grok-login-scope.d.ts +36 -0
- package/dist/lib/bot/grok-login-scope.js +93 -0
- package/dist/lib/bot/legacy-provider-login.d.ts +32 -9
- package/dist/lib/bot/legacy-provider-login.js +28 -22
- package/dist/lib/bot/runtime-sign-in-check.js +6 -1
- package/dist/lib/bot/runtime-sign-in.d.ts +2 -0
- package/dist/lib/core-utils/sentry-report.js +2 -0
- package/dist/lib/daemon/machine-checks.d.ts +22 -1
- package/dist/lib/daemon/machine-checks.js +54 -12
- package/dist/lib/daemon/run.js +66 -8
- package/dist/lib/daemon/stop-autosave-lock.d.ts +19 -0
- package/dist/lib/daemon/stop-autosave-lock.js +166 -0
- package/dist/lib/daemon/stop-autosave.d.ts +28 -0
- package/dist/lib/daemon/stop-autosave.js +111 -0
- package/dist/lib/daemon/stop-diagnostics.d.ts +11 -0
- package/dist/lib/daemon/stop-diagnostics.js +136 -0
- package/dist/lib/daemon/stop-job-executor.d.ts +19 -0
- package/dist/lib/daemon/stop-job-executor.js +126 -0
- package/dist/lib/daemon/stop-jobs.d.ts +93 -0
- package/dist/lib/daemon/stop-jobs.js +599 -0
- package/dist/lib/doctor/checks/fleet-hook-core.js +1 -1
- package/dist/lib/doctor/checks/host-core.js +1 -1
- package/dist/lib/environment/access-probes.d.ts +234 -0
- package/dist/lib/environment/access-probes.js +918 -0
- package/dist/lib/environment/profile.d.ts +15 -2
- package/dist/lib/environment/profile.js +55 -20
- package/dist/lib/environment/rfc3339.d.ts +8 -0
- package/dist/lib/environment/rfc3339.js +26 -0
- package/dist/lib/environment/work-requirements.d.ts +169 -0
- package/dist/lib/environment/work-requirements.js +389 -0
- package/dist/lib/hook-engine/coverage.d.ts +137 -7
- package/dist/lib/hook-engine/coverage.js +1424 -4
- package/dist/lib/hook-engine/fleet-registration.js +2 -2
- package/dist/lib/hook-engine/git-stop-config.json +513 -0
- package/dist/lib/hook-engine/native-stop-compatibility.json +311 -0
- package/dist/lib/hook-engine/reconcile.js +2 -2
- package/dist/lib/hot-channels/alert.d.ts +2 -2
- package/dist/lib/hot-channels/alert.js +8 -5
- package/dist/lib/hot-channels/signals-pass.d.ts +126 -17
- package/dist/lib/hot-channels/signals-pass.js +296 -17
- package/dist/lib/hot-channels/signals-runtime.d.ts +30 -0
- package/dist/lib/hot-channels/signals-runtime.js +82 -0
- package/dist/lib/install/hook-target.js +1 -1
- package/dist/lib/lanes/host-capacity.d.ts +26 -2
- package/dist/lib/lanes/host-capacity.js +17 -2
- package/dist/lib/lanes/host-compute.d.ts +90 -0
- package/dist/lib/lanes/host-compute.js +185 -0
- package/dist/lib/lanes/index.d.ts +2 -0
- package/dist/lib/lanes/index.js +1 -0
- package/dist/lib/lanes/reconcile.js +22 -1
- package/dist/lib/lanes/resource-usage.d.ts +155 -0
- package/dist/lib/lanes/resource-usage.js +589 -0
- package/dist/lib/lanes/run-size.d.ts +46 -0
- package/dist/lib/lanes/run-size.js +197 -0
- package/dist/lib/lanes/store.js +27 -0
- package/dist/lib/lanes/throttle.d.ts +36 -1
- package/dist/lib/lanes/throttle.js +47 -10
- package/dist/lib/lanes/types.d.ts +40 -0
- package/dist/lib/lanes/types.js +2 -2
- package/dist/lib/lanes/watcher.js +13 -4
- package/dist/lib/lanes/worker-process.d.ts +25 -2
- package/dist/lib/lanes/worker-process.js +71 -19
- package/dist/lib/placement/match.d.ts +192 -0
- package/dist/lib/placement/match.js +667 -0
- package/dist/lib/safe-store.d.ts +14 -0
- package/dist/lib/safe-store.js +77 -4
- package/dist/lib/search-index/index.d.ts +88 -4
- package/dist/lib/search-index/index.js +288 -24
- package/dist/lib/search-index/max-doc-bytes.d.ts +17 -6
- package/dist/lib/search-index/max-doc-bytes.js +48 -23
- package/dist/lib/signals/codex-lockdown.d.ts +79 -0
- package/dist/lib/signals/codex-lockdown.js +271 -0
- package/dist/lib/signals/codex-login.d.ts +37 -0
- package/dist/lib/signals/codex-login.js +83 -0
- package/dist/lib/signals/engine.d.ts +27 -0
- package/dist/lib/signals/engine.js +70 -0
- package/dist/lib/signals/reply.js +22 -1
- package/dist/lib/signals/run-record.js +6 -1
- package/dist/lib/signals/settings.d.ts +5 -0
- package/dist/lib/signals/settings.js +2 -0
- package/dist/lib/signals/steps/extract.d.ts +85 -9
- package/dist/lib/signals/steps/extract.js +317 -68
- package/dist/lib/signals/steps/types.d.ts +2 -0
- package/dist/lib/sync-core/engine-home.d.ts +35 -1
- package/dist/lib/sync-core/engine-home.js +119 -16
- package/dist/lib/sync-core/rollout-state.d.ts +2 -1
- package/dist/lib/sync-core/rollout-state.js +5 -2
- package/dist/lib/sync-core/vault-uid.d.ts +2 -0
- package/dist/lib/sync-core/vault-uid.js +4 -0
- package/dist/schemas/hq-work-requirements.v1.schema.json +145 -0
- package/dist/utils/auth-session-check.d.ts +16 -0
- package/dist/utils/auth-session-check.js +16 -0
- package/dist/utils/client-health-contract.d.ts +6 -0
- package/dist/utils/client-health-contract.js +13 -0
- package/dist/utils/client-health.d.ts +7 -0
- package/dist/utils/client-health.js +22 -1
- package/dist/utils/command-usage.d.ts +40 -0
- package/dist/utils/command-usage.js +61 -0
- package/dist/utils/duplicate-command-usage.d.ts +72 -0
- package/dist/utils/duplicate-command-usage.js +125 -0
- package/dist/utils/host-registration.js +2 -1
- package/dist/utils/resident-package-preload.js +4 -0
- package/dist/utils/sentry-fingerprint.js +9 -0
- package/dist/utils/windows-bash.d.ts +2 -0
- package/dist/utils/windows-bash.js +2 -1
- package/package.json +9 -8
- package/scripts/bench-core-compare.mjs +313 -0
- package/scripts/bench-core.mjs +399 -12
- package/scripts/check-function-manifest.mjs +116 -3
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dispatcher": [
|
|
3
|
+
"HQ_MASTER_CHILD_TIMEOUT"
|
|
4
|
+
],
|
|
5
|
+
"gitEnvironmentAllowlist": [
|
|
6
|
+
"GIT_EDITOR",
|
|
7
|
+
"GIT_PAGER",
|
|
8
|
+
"GIT_ASKPASS",
|
|
9
|
+
"GIT_TERMINAL_PROMPT"
|
|
10
|
+
],
|
|
11
|
+
"gitConfigSections": [
|
|
12
|
+
"format",
|
|
13
|
+
"pretty",
|
|
14
|
+
"i18n"
|
|
15
|
+
],
|
|
16
|
+
"gitConfigKeys": [
|
|
17
|
+
"core.abbrev",
|
|
18
|
+
"core.repositoryformatversion",
|
|
19
|
+
"core.usereplacerefs",
|
|
20
|
+
"extensions.objectformat"
|
|
21
|
+
],
|
|
22
|
+
"gitConfigBooleans": [
|
|
23
|
+
"extensions.worktreeconfig"
|
|
24
|
+
],
|
|
25
|
+
"gitSystemConfigs": [
|
|
26
|
+
"/etc/gitconfig",
|
|
27
|
+
"/usr/local/etc/gitconfig",
|
|
28
|
+
"/opt/homebrew/etc/gitconfig",
|
|
29
|
+
"/opt/local/etc/gitconfig",
|
|
30
|
+
"/Library/Developer/CommandLineTools/usr/share/git-core/gitconfig",
|
|
31
|
+
"/Applications/Xcode.app/Contents/Developer/usr/share/git-core/gitconfig"
|
|
32
|
+
],
|
|
33
|
+
"gitEnvironmentConfigs": {
|
|
34
|
+
"DEVELOPER_DIR": [
|
|
35
|
+
"usr/share/git-core/gitconfig",
|
|
36
|
+
"Contents/Developer/usr/share/git-core/gitconfig"
|
|
37
|
+
],
|
|
38
|
+
"PROGRAMDATA": [
|
|
39
|
+
"Git/config"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"gitDeveloperDirLink": "/var/db/xcode_select_link",
|
|
43
|
+
"gitAppleShim": "/usr/bin/git",
|
|
44
|
+
"gitPrefixConfigs": [
|
|
45
|
+
"etc/gitconfig",
|
|
46
|
+
"share/git-core/gitconfig"
|
|
47
|
+
],
|
|
48
|
+
"registry": {
|
|
49
|
+
"observe-patterns": 30,
|
|
50
|
+
"hq-autocommit-bash-sweep": 30,
|
|
51
|
+
"checkpoint-stop-gate": 30,
|
|
52
|
+
"capture-estimates": 30,
|
|
53
|
+
"enforce-capability-link-render": 30,
|
|
54
|
+
"enforce-final-message-link-placement": 30,
|
|
55
|
+
"enforce-humanize-before-send": 30,
|
|
56
|
+
"lanes-senior-monitor-stop-gate": 30,
|
|
57
|
+
"conduct-lanes-link-deliver": 5
|
|
58
|
+
},
|
|
59
|
+
"scripts": {
|
|
60
|
+
".claude/hooks/observe-patterns.sh": [
|
|
61
|
+
"f2d442586a1d09ddd79cb259253a773192fc17763d7cc6c1b586a86d4d7df787"
|
|
62
|
+
],
|
|
63
|
+
".claude/hooks/hq-autocommit-bash-sweep.sh": [
|
|
64
|
+
"01b9669c41dcdb438295aea52545ec9306b8ed8c83c30c7560798bdc06b50aed"
|
|
65
|
+
],
|
|
66
|
+
".claude/hooks/checkpoint-stop-gate.sh": [
|
|
67
|
+
"1fc121ad2d0d3acfd13c8daee9215013d9a01bd1856aa716154739f18506c3ce"
|
|
68
|
+
],
|
|
69
|
+
".claude/hooks/capture-estimates.sh": [
|
|
70
|
+
"915f6ccd632e284b861b2e683e63fbe68153a96c7142dbc8b6c158f6bd72cef8"
|
|
71
|
+
],
|
|
72
|
+
".claude/hooks/enforce-capability-link-render.sh": [
|
|
73
|
+
"14a3c4821e5187719beeeb3d1e583185e1cbc12d81633fc97a72dbafc425e54a"
|
|
74
|
+
],
|
|
75
|
+
".claude/hooks/enforce-final-message-link-placement.sh": [
|
|
76
|
+
"48d27e0cd7ef9230355c1e249b841aeb372766e5f919ce30f658e821f2dc6a18"
|
|
77
|
+
],
|
|
78
|
+
".claude/hooks/enforce-humanize-before-send.sh": [
|
|
79
|
+
"af967704bca886acf3c2e6c54ee86ec776385f8da89c8603d79398744abd0e44"
|
|
80
|
+
],
|
|
81
|
+
".claude/hooks/lanes-senior-monitor-stop-gate.sh": [
|
|
82
|
+
"c34e55aa10cf2c768943711a6a3cd89a69c7d5947050cb0f4cebb1289b55f671",
|
|
83
|
+
"03d8896cac9756c84f8fb8e5d51af9ee26bac3e6e024795bb0d10c2823c01208"
|
|
84
|
+
],
|
|
85
|
+
".claude/hooks/conduct-lanes-link-deliver.sh": [
|
|
86
|
+
"b1124363238ba405a0efd4bca08b4601430a596614037fbd30bf92b2e6bf8465"
|
|
87
|
+
],
|
|
88
|
+
"core/hooks/Stop/40-auto-acl-share-suggestion.sh": [
|
|
89
|
+
"286246caa6234ab2f449c1af987b4956b3afd0349ac310429ebd50fbaf594ab9"
|
|
90
|
+
],
|
|
91
|
+
"core/hooks/Stop/50-after-turn-suggestions.sh": [
|
|
92
|
+
"e9398ea6abc5ed2c8ad010f5135ea3e37d7f244f9d506d8e0f426d29358c6773"
|
|
93
|
+
],
|
|
94
|
+
"core/hooks/Stop/70-work-mesh-turn-end.sh": [
|
|
95
|
+
"1b37183a94a46152c9592d6821f323203438e09ed59956d6239880bb73f896db"
|
|
96
|
+
],
|
|
97
|
+
".claude/hooks/hq-autocommit-bash-flag.cjs": [
|
|
98
|
+
"419c65157c0167473ace808bacc7cb5902afa4336f8281f7e7f9c228d74a77a4"
|
|
99
|
+
],
|
|
100
|
+
".claude/hooks/hq-autocommit-failure-context-flag.cjs": [
|
|
101
|
+
"9e6fa4930830624fd588241b24315f6e6b5f3ae6778e8f61020bf237490ac30c"
|
|
102
|
+
],
|
|
103
|
+
".claude/hooks/hq-autocommit.sh": [
|
|
104
|
+
"f7c01bc6de7f79e51eedc9806a7c903fdf0947e540ba226d1b37fc3667919304"
|
|
105
|
+
],
|
|
106
|
+
".claude/hooks/lib/parse-estimates.pl": [
|
|
107
|
+
"absent"
|
|
108
|
+
],
|
|
109
|
+
".claude/skills/_shared/journal.sh": [
|
|
110
|
+
"e7ae5c522075b8535672fc2c8642c220282aa5cd91a19accc1072aff304be63e"
|
|
111
|
+
],
|
|
112
|
+
".codex/hooks/codex-explicit-path-flag.cjs": [
|
|
113
|
+
"85e3c00b1f879bfc695c32714129d00554674bce7a139c4386d07f01a63ef83f"
|
|
114
|
+
],
|
|
115
|
+
"core/hooks/SessionStart/35-work-mesh-session-start.sh": [
|
|
116
|
+
"865e5855c72c5ac0d503efbbc095a2d2835396418a12b20fa0ce3bd2f66d8d27",
|
|
117
|
+
"1653dd9f939b6bce651fb81a9619db6441ff56d3916bc05714424008719408be"
|
|
118
|
+
],
|
|
119
|
+
"core/scripts/board-project-id.sh": [
|
|
120
|
+
"b3c80668460c556267b06a0869e41e0088963ba2a709ac459d14bb8bd08252a7"
|
|
121
|
+
],
|
|
122
|
+
"core/scripts/conduct-runner-resolve.sh": [
|
|
123
|
+
"1510f360bb6773206fb2bd2d07091c15c1018ee1910f992e60fa7df6d49c845b",
|
|
124
|
+
"absent"
|
|
125
|
+
],
|
|
126
|
+
"core/scripts/hook-lib.sh": [
|
|
127
|
+
"89899ae7720f0bdde5cd8e014c614a6aa1796f4b79f23194e397d33b9c7e0bf2",
|
|
128
|
+
"4c98cd6f07d4090c062d980b0d85b0084635efdcd4a09afc05cf77287a74b28d",
|
|
129
|
+
"be7ca74b2524afba56fefd530bf46cbd1dd39a4c181b6a64c87e124b29bdebe7",
|
|
130
|
+
"b971dae4a2b82bfa5b31782e54717115abaf052457fb1a546893d04cae43adbb",
|
|
131
|
+
"df3d8ddc15a0c179227c9ba7f855c040973fcee249673156d08b2e2ff2c850b8",
|
|
132
|
+
"49c337ceccf0a2d7c2a64f6b1de8c3c4d1da507bc5d7afcd01ed292e1f25abf7"
|
|
133
|
+
],
|
|
134
|
+
"core/scripts/hook-stop-async-drain.sh": [
|
|
135
|
+
"d7be9aa17c42bd96ba6f9d929240e06d9c057471347374de40ea4be3560da4f5"
|
|
136
|
+
],
|
|
137
|
+
"core/scripts/hq-anywhere-runtime-flag.cjs": [
|
|
138
|
+
"8a484cef83d383b440462798ac13e26d132e10bbe509b47e0eb1a3d0db76b2b4"
|
|
139
|
+
],
|
|
140
|
+
"core/scripts/hq-detach.sh": [
|
|
141
|
+
"10de31d5d6c9dde06585445274d08b467e4d7a0741375b17cfd2f856ecd57be2"
|
|
142
|
+
],
|
|
143
|
+
"core/scripts/hq-hidden-run.sh": [
|
|
144
|
+
"13843967ff68810919f4966af17e68c1a74974874957a3aeab281cd2481dc73a"
|
|
145
|
+
],
|
|
146
|
+
"core/scripts/hq-session.sh": [
|
|
147
|
+
"db701162f71b53fd2188974d2f46c58250593dde1252d65b36e6d02b9a765fe7",
|
|
148
|
+
"a0dd3e603c201150e6f2bf4de9f2d01c822978dcf40b3ed03a547a8f070da2de",
|
|
149
|
+
"e686c5a5a477d2640c4056122223d1cbf85e71c5dce965776c15dfee86232c6b"
|
|
150
|
+
],
|
|
151
|
+
"core/scripts/hqd-hook-flag-cache-lib.sh": [
|
|
152
|
+
"061d264460408e9eaf43fdf0fdde662c906a9a7dacb4e7a591e684bca28c138a"
|
|
153
|
+
],
|
|
154
|
+
"core/scripts/lib/epochrealtime.sh": [
|
|
155
|
+
"4c9205520dba31533c95eea145f6068ba626885c342c2aa1f232a7237d046cdf",
|
|
156
|
+
"absent"
|
|
157
|
+
],
|
|
158
|
+
"core/scripts/lib/hook-stop-async.sh": [
|
|
159
|
+
"fe89218c3f92413cff36e82a937eed5e548e712644d8228b34d59c7f459917ad",
|
|
160
|
+
"730b008b81b360923f82785467f3a3b6592be6610ee3b909e446b242543ab3bc"
|
|
161
|
+
],
|
|
162
|
+
"core/scripts/lib/perl-child-locale.sh": [
|
|
163
|
+
"18e6b9d0e22874eea00ecc868b4dcfebbc3bb42434d8d0c81b20baec1194df2e"
|
|
164
|
+
],
|
|
165
|
+
"core/scripts/lib/provider-adapter-version.sh": [
|
|
166
|
+
"45a8252fbe0012cbca64839248aa4bc45c80c96d2d544154c3321acbbe8ac5c9"
|
|
167
|
+
],
|
|
168
|
+
"core/scripts/lib/resolve-hq-bin.sh": [
|
|
169
|
+
"96efe7a40703885581012f0cc2b84d8ca339b59c8374fed88adf6a258235ad8c",
|
|
170
|
+
"fd3bc136b31087391657f91b09d24b493f8cb671b13fc604fb02066896520af1"
|
|
171
|
+
],
|
|
172
|
+
"core/scripts/lib/session-auto-bind.sh": [
|
|
173
|
+
"b8da1a401473dceb610c2b63aaf93dda3cf304fe507091817dd19b152a0346ac",
|
|
174
|
+
"38e95508a7e2bed70c0b33015a7a2f704ae0e3a465d9192d7532074a2bcdf1d0",
|
|
175
|
+
"89c0273ad7bac4bda2b114ca5f02c38229343a5418bad92f641e400c2883b4e0"
|
|
176
|
+
],
|
|
177
|
+
"core/scripts/lib/session-id.sh": [
|
|
178
|
+
"5178dfed9387cf5924bb71d5cdded37f445fd7b496e6037e81c43af0e7831d5b"
|
|
179
|
+
],
|
|
180
|
+
"core/scripts/lib/session-scope-capability.sh": [
|
|
181
|
+
"388ffef43cfe05810c38ce377245d0d86f415b4009b21a008bca8897be0c9ead"
|
|
182
|
+
],
|
|
183
|
+
"core/scripts/lib/transcript-tail.sh": [
|
|
184
|
+
"73eadafdd8e7c375bd12383947ac73c43e7dfe79b29e6553da1cb5b2746bb217"
|
|
185
|
+
],
|
|
186
|
+
"core/scripts/lib/work-mesh-enqueue.sh": [
|
|
187
|
+
"ac44fc8f68dbe7311811e0e97bba2b1e53b3aa856856db566635a135c6319451",
|
|
188
|
+
"db440318b8933b7c436c7b7172adffc9e8fd00c92f0e1745ed5da76871accbe7"
|
|
189
|
+
],
|
|
190
|
+
"core/scripts/lib/work-mesh-live-hook.sh": [
|
|
191
|
+
"25dc6d35877366ae91532a28a64d380aee054a8c571df88ed0b741aef29cf34e"
|
|
192
|
+
],
|
|
193
|
+
"core/scripts/lib/work-mesh-live-rebind.sh": [
|
|
194
|
+
"d351bf68103b7f8514d96a945bdeb6c371d9d7ba289347c368a34fea36fd4ad9"
|
|
195
|
+
],
|
|
196
|
+
"core/scripts/register-project.sh": [
|
|
197
|
+
"fdce833824a8e387a50f0dd3020f5c5c0535af6372242e391ab99518d2fa5fc4",
|
|
198
|
+
"b65670de9a5aa063f88694fb1cf44239725f0e71bd6245972aa093ef31f09114"
|
|
199
|
+
],
|
|
200
|
+
"core/scripts/share-suggestion-state.sh": [
|
|
201
|
+
"d2a8ba30f7650b89f0ed221f840ef2c8e731b9df35d57e0f4576feadad6f7597"
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
"dependencies": {
|
|
205
|
+
".claude/hooks/hq-autocommit-bash-sweep.sh": [
|
|
206
|
+
".claude/hooks/hq-autocommit-bash-flag.cjs",
|
|
207
|
+
".claude/hooks/hq-autocommit.sh",
|
|
208
|
+
"core/scripts/lib/hook-stop-async.sh"
|
|
209
|
+
],
|
|
210
|
+
".claude/hooks/checkpoint-stop-gate.sh": [
|
|
211
|
+
"core/scripts/hq-hidden-run.sh"
|
|
212
|
+
],
|
|
213
|
+
".claude/hooks/capture-estimates.sh": [
|
|
214
|
+
".claude/hooks/lib/parse-estimates.pl",
|
|
215
|
+
"core/scripts/lib/transcript-tail.sh"
|
|
216
|
+
],
|
|
217
|
+
".claude/hooks/enforce-capability-link-render.sh": [
|
|
218
|
+
"core/scripts/hook-lib.sh",
|
|
219
|
+
"core/scripts/lib/transcript-tail.sh"
|
|
220
|
+
],
|
|
221
|
+
".claude/hooks/enforce-final-message-link-placement.sh": [
|
|
222
|
+
"core/scripts/hook-lib.sh",
|
|
223
|
+
"core/scripts/lib/transcript-tail.sh"
|
|
224
|
+
],
|
|
225
|
+
".claude/hooks/enforce-humanize-before-send.sh": [
|
|
226
|
+
"core/scripts/hook-lib.sh",
|
|
227
|
+
"core/scripts/lib/transcript-tail.sh"
|
|
228
|
+
],
|
|
229
|
+
".claude/hooks/lanes-senior-monitor-stop-gate.sh": [
|
|
230
|
+
"core/scripts/conduct-runner-resolve.sh",
|
|
231
|
+
"core/scripts/lib/perl-child-locale.sh",
|
|
232
|
+
"core/scripts/lib/resolve-hq-bin.sh"
|
|
233
|
+
],
|
|
234
|
+
".claude/hooks/conduct-lanes-link-deliver.sh": [
|
|
235
|
+
"core/scripts/lib/perl-child-locale.sh"
|
|
236
|
+
],
|
|
237
|
+
"core/hooks/Stop/40-auto-acl-share-suggestion.sh": [
|
|
238
|
+
"core/scripts/share-suggestion-state.sh"
|
|
239
|
+
],
|
|
240
|
+
"core/hooks/Stop/50-after-turn-suggestions.sh": [
|
|
241
|
+
".claude/skills/_shared/journal.sh",
|
|
242
|
+
"core/scripts/lib/transcript-tail.sh",
|
|
243
|
+
"core/scripts/share-suggestion-state.sh"
|
|
244
|
+
],
|
|
245
|
+
"core/hooks/Stop/70-work-mesh-turn-end.sh": [
|
|
246
|
+
"core/scripts/lib/hook-stop-async.sh",
|
|
247
|
+
"core/scripts/lib/work-mesh-enqueue.sh"
|
|
248
|
+
],
|
|
249
|
+
".claude/hooks/hq-autocommit.sh": [
|
|
250
|
+
".claude/hooks/hq-autocommit-failure-context-flag.cjs"
|
|
251
|
+
],
|
|
252
|
+
".claude/hooks/hq-autocommit-bash-flag.cjs": [
|
|
253
|
+
"core/scripts/hq-session.sh"
|
|
254
|
+
],
|
|
255
|
+
".codex/hooks/codex-explicit-path-flag.cjs": [
|
|
256
|
+
"core/scripts/hq-session.sh"
|
|
257
|
+
],
|
|
258
|
+
"core/hooks/SessionStart/35-work-mesh-session-start.sh": [
|
|
259
|
+
"core/scripts/lib/session-auto-bind.sh",
|
|
260
|
+
"core/scripts/lib/session-scope-capability.sh",
|
|
261
|
+
"core/scripts/lib/work-mesh-enqueue.sh",
|
|
262
|
+
"core/scripts/lib/work-mesh-live-rebind.sh",
|
|
263
|
+
"core/scripts/register-project.sh"
|
|
264
|
+
],
|
|
265
|
+
"core/scripts/conduct-runner-resolve.sh": [
|
|
266
|
+
"core/scripts/hq-session.sh"
|
|
267
|
+
],
|
|
268
|
+
"core/scripts/hook-lib.sh": [
|
|
269
|
+
"core/scripts/lib/session-id.sh"
|
|
270
|
+
],
|
|
271
|
+
"core/scripts/hook-stop-async-drain.sh": [
|
|
272
|
+
"core/scripts/lib/hook-stop-async.sh"
|
|
273
|
+
],
|
|
274
|
+
"core/scripts/hq-hidden-run.sh": [
|
|
275
|
+
"core/scripts/hq-detach.sh"
|
|
276
|
+
],
|
|
277
|
+
"core/scripts/hq-session.sh": [
|
|
278
|
+
"core/hooks/SessionStart/35-work-mesh-session-start.sh",
|
|
279
|
+
"core/scripts/lib/session-id.sh",
|
|
280
|
+
"core/scripts/lib/session-scope-capability.sh",
|
|
281
|
+
"core/scripts/lib/work-mesh-enqueue.sh",
|
|
282
|
+
"core/scripts/lib/work-mesh-live-hook.sh",
|
|
283
|
+
"core/scripts/lib/work-mesh-live-rebind.sh"
|
|
284
|
+
],
|
|
285
|
+
"core/scripts/hqd-hook-flag-cache-lib.sh": [
|
|
286
|
+
"core/scripts/hq-anywhere-runtime-flag.cjs"
|
|
287
|
+
],
|
|
288
|
+
"core/scripts/lib/hook-stop-async.sh": [
|
|
289
|
+
"core/scripts/hook-stop-async-drain.sh",
|
|
290
|
+
"core/scripts/hq-detach.sh",
|
|
291
|
+
"core/scripts/hq-hidden-run.sh",
|
|
292
|
+
"core/scripts/lib/epochrealtime.sh"
|
|
293
|
+
],
|
|
294
|
+
"core/scripts/lib/session-scope-capability.sh": [
|
|
295
|
+
".codex/hooks/codex-explicit-path-flag.cjs",
|
|
296
|
+
"core/scripts/hqd-hook-flag-cache-lib.sh"
|
|
297
|
+
],
|
|
298
|
+
"core/scripts/lib/work-mesh-enqueue.sh": [
|
|
299
|
+
"core/scripts/lib/epochrealtime.sh"
|
|
300
|
+
],
|
|
301
|
+
"core/scripts/lib/work-mesh-live-hook.sh": [
|
|
302
|
+
"core/scripts/lib/provider-adapter-version.sh",
|
|
303
|
+
"core/scripts/lib/session-id.sh",
|
|
304
|
+
"core/scripts/lib/work-mesh-enqueue.sh"
|
|
305
|
+
],
|
|
306
|
+
"core/scripts/register-project.sh": [
|
|
307
|
+
"core/scripts/board-project-id.sh",
|
|
308
|
+
"core/scripts/hq-session.sh"
|
|
309
|
+
]
|
|
310
|
+
}
|
|
311
|
+
}
|
|
@@ -134,8 +134,8 @@ export function reconcileHookRegistrations(root, home = homedir(), env = process
|
|
|
134
134
|
// the switch. A failure to set up the new core is one warning and the
|
|
135
135
|
// flag-off path.
|
|
136
136
|
const coreNext = coreNextTargetOrWarn(home, env);
|
|
137
|
-
const claudeNext = forHost(coreNext, root, 'claude');
|
|
138
|
-
const codexNext = forHost(coreNext, root, 'codex');
|
|
137
|
+
const claudeNext = forHost(coreNext, root, 'claude', env);
|
|
138
|
+
const codexNext = forHost(coreNext, root, 'codex', env);
|
|
139
139
|
const launcher = registrationEngine(home, env);
|
|
140
140
|
const native = coreNext ?? (launcher ? { engine: launcher } : null);
|
|
141
141
|
const ours = (entry) => isNativeEntry(entry, root) || isCoreNextEntry(entry, root);
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { RunLedgerEntry } from "./ledger.js";
|
|
17
17
|
import type { OnDemandSyncDeps } from "./run.js";
|
|
18
|
-
/** Pass failures that mean Claude Code is signed out
|
|
18
|
+
/** Pass failures that mean the tool signals run on (Claude Code, or a Codex bot's Codex) is signed out or missing on this computer. */
|
|
19
19
|
export declare const SIGNED_OUT_SIGNALS_CODES: ReadonlySet<string>;
|
|
20
|
-
/** A failed ledger line whose pass found
|
|
20
|
+
/** A failed ledger line whose pass found its tool signed out. */
|
|
21
21
|
export declare function isSignedOutSignalsFailure(entry: Pick<RunLedgerEntry, "status" | "error">): boolean;
|
|
22
22
|
export declare const SIGNALS_HEALTH_RULE: string;
|
|
23
23
|
/** One alert per adapter and connection per hour. */
|
|
@@ -17,12 +17,13 @@ import * as fs from "node:fs";
|
|
|
17
17
|
import * as path from "node:path";
|
|
18
18
|
import { assertNotIntegrationSecretsPath, personDirName } from "./cursors.js";
|
|
19
19
|
import { writeFileAtomic } from "./landing.js";
|
|
20
|
-
import { CLAUDE_SIGNED_OUT_TEXT, CODEX_BOT_NEEDS_CLAUDE_TEXT } from "./signals-pass.js";
|
|
20
|
+
import { CLAUDE_SIGNED_OUT_TEXT, CODEX_BOT_NEEDS_CLAUDE_TEXT, CODEX_SIGNED_OUT_TEXT } from "./signals-pass.js";
|
|
21
21
|
const CODEX_BOT_NEEDS_CLAUDE_CODE = "claude-logged-out-codex-bot";
|
|
22
22
|
const CLAUDE_SIGNED_OUT_CODE = "claude-logged-out";
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
const CODEX_SIGNED_OUT_CODE = "codex-logged-out";
|
|
24
|
+
/** Pass failures that mean the tool signals run on (Claude Code, or a Codex bot's Codex) is signed out or missing on this computer. */
|
|
25
|
+
export const SIGNED_OUT_SIGNALS_CODES = new Set([CLAUDE_SIGNED_OUT_CODE, CODEX_BOT_NEEDS_CLAUDE_CODE, CODEX_SIGNED_OUT_CODE]);
|
|
26
|
+
/** A failed ledger line whose pass found its tool signed out. */
|
|
26
27
|
export function isSignedOutSignalsFailure(entry) {
|
|
27
28
|
return entry.status === "failed" && entry.error !== null && SIGNED_OUT_SIGNALS_CODES.has(entry.error);
|
|
28
29
|
}
|
|
@@ -65,11 +66,13 @@ export function formatSignalsFailureAlert(entry, options = {}) {
|
|
|
65
66
|
];
|
|
66
67
|
if (entry.error)
|
|
67
68
|
lines.push(`Error: ${entry.error}`);
|
|
68
|
-
//
|
|
69
|
+
// Name the tool the pass ran on, and how to fix it on this computer.
|
|
69
70
|
if (entry.error === CODEX_BOT_NEEDS_CLAUDE_CODE)
|
|
70
71
|
lines.push(CODEX_BOT_NEEDS_CLAUDE_TEXT);
|
|
71
72
|
else if (entry.error === CLAUDE_SIGNED_OUT_CODE)
|
|
72
73
|
lines.push(CLAUDE_SIGNED_OUT_TEXT);
|
|
74
|
+
else if (entry.error === CODEX_SIGNED_OUT_CODE)
|
|
75
|
+
lines.push(CODEX_SIGNED_OUT_TEXT);
|
|
73
76
|
// The rule is about a run that landed sources and made no signals; a
|
|
74
77
|
// partial pass, or a backlog-only run, fails on its error alone.
|
|
75
78
|
if (entry.signalsGenerated === 0 && entry.sourcesLanded > 0)
|
|
@@ -23,12 +23,40 @@
|
|
|
23
23
|
* MAX_PAYLOAD_BYTES. A payload outside `sources/`, missing or unreadable falls
|
|
24
24
|
* back to the pointer alone, and the reason is warned and kept on the signal.
|
|
25
25
|
*
|
|
26
|
+
* Runtime: Claude Code (`claude -p`) by default, exactly as before. When the
|
|
27
|
+
* Executive bot (the bot whose runtime the pass already reads for its
|
|
28
|
+
* signed-out wording) is a Codex bot with `signalsRuntime: "bot"` in bot.json
|
|
29
|
+
* (`hq bot set <name> --signals-runtime bot`), the pass runs on Codex
|
|
30
|
+
* instead, through `runRuntimeTurn`, the turn runner a Daily Brief job uses.
|
|
31
|
+
* The argv and environment differ from a DM turn on purpose, because the
|
|
32
|
+
* documents are untrusted (see codexSignalsArgs and codexSignalsEnv). The
|
|
33
|
+
* opt-in defaults off so the first Codex runs can be compared with Claude's.
|
|
34
|
+
* When it is on, a failed Codex run is a Codex failure (`codex-*` codes); it
|
|
35
|
+
* never falls back to Claude.
|
|
36
|
+
*
|
|
26
37
|
* Billing: policy hq-no-headless-print-subscription-billing forbids headless
|
|
27
|
-
* `claude -p` in general.
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
38
|
+
* `claude -p` / `codex exec` in general.
|
|
39
|
+
* - Claude: this is its allowed case, per the owner decision of 2026-10-21:
|
|
40
|
+
* the owner's own `claude` login, on their own machine, in a bounded
|
|
41
|
+
* single-turn call.
|
|
42
|
+
* - Codex: narrow exception hq-signals-pass-codex-exec-narrow-exception (owner
|
|
43
|
+
* decision 2026-11-15). It holds only while the Codex call is
|
|
44
|
+
* 1. a single bounded turn (one `codex exec`, a per-document timeout),
|
|
45
|
+
* 2. with every Codex tool and feature off (codexLockdownFlags in
|
|
46
|
+
* signals/codex-lockdown.ts: shell, apps, plugins, hooks, multi-agent,
|
|
47
|
+
* web search, browser and computer use, bundled skills),
|
|
48
|
+
* 3. with no network (`permissions.*.network.enabled=false`),
|
|
49
|
+
* 4. with read access limited to the empty temp dir plus the codex install
|
|
50
|
+
* dir, never $HOME, ~/.hq, or a parent of either
|
|
51
|
+
* (resolveCodexLockdownTarget),
|
|
52
|
+
* 5. under an environment allowlist (CODEX_SIGNALS_ENV_ALLOWLIST).
|
|
53
|
+
* The login is the bot's own Codex login dir (never the owner's ~/.codex,
|
|
54
|
+
* and not available for an HQ Fleet Runtime bot), used in place so Codex's
|
|
55
|
+
* own refresh lock applies; the pass never copies or writes it.
|
|
56
|
+
* A change that loosens any of these is outside the exception;
|
|
57
|
+
* signals-pass.codex.test.ts pins all five.
|
|
58
|
+
* Cloud Claude is not the bot brain, and no model is called from the poller
|
|
59
|
+
* itself. Do not reuse this pass for a shared, fleet or hosted identity.
|
|
32
60
|
*
|
|
33
61
|
* Failures: a pass that fails keeps the real class as its ledger code (see
|
|
34
62
|
* SignalsPassErrorCode), and writes the provider's own reason, redacted and
|
|
@@ -47,18 +75,26 @@
|
|
|
47
75
|
* BAD_OUTPUT_STOP_AFTER × BAD_OUTPUT_ATTEMPTS when every reply is unusable.
|
|
48
76
|
*/
|
|
49
77
|
import type { BotRuntimeId } from "../bot/config.js";
|
|
78
|
+
import { type SpawnLike } from "../bot/runtime/index.js";
|
|
50
79
|
import type { HotChannelRunResult, WriteGuard } from "./loop.js";
|
|
80
|
+
/** The tools the pass can run on. */
|
|
81
|
+
export type SignalsRuntimeId = "claude" | "codex";
|
|
82
|
+
/** What went wrong, whatever the tool. */
|
|
83
|
+
export type SignalsFailureClass = "usage-limit" | "logged-out" | "timeout" | "provider-error" | "bad-output";
|
|
51
84
|
/**
|
|
52
|
-
* Ledger `error` values a failed pass records
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* -
|
|
56
|
-
* -
|
|
57
|
-
* -
|
|
58
|
-
* -
|
|
59
|
-
*
|
|
85
|
+
* Ledger `error` values a failed pass records, `{tool}-{class}` with the tool
|
|
86
|
+
* the pass ran on (`claude-*` on Claude Code, `codex-*` on a Codex bot that
|
|
87
|
+
* opted in):
|
|
88
|
+
* - `*-usage-limit`: the account's plan has no usage left.
|
|
89
|
+
* - `*-logged-out`: no usable sign-in, or the tool could not start.
|
|
90
|
+
* - `*-timeout`: the call ran past its budget.
|
|
91
|
+
* - `*-provider-error`: the tool reported or exited with some other error.
|
|
92
|
+
* - `*-bad-output`: the tool finished cleanly and its reply is unusable.
|
|
93
|
+
* - `claude-logged-out-codex-bot`: claude is missing or signed out, the main
|
|
94
|
+
* bot runs on Codex, and signals still run on Claude Code because the bot
|
|
95
|
+
* has not opted in (see CODEX_BOT_NEEDS_CLAUDE_TEXT).
|
|
60
96
|
*/
|
|
61
|
-
export type SignalsPassErrorCode =
|
|
97
|
+
export type SignalsPassErrorCode = `${SignalsRuntimeId}-${SignalsFailureClass}` | "claude-logged-out-codex-bot";
|
|
62
98
|
/**
|
|
63
99
|
* A pass failure the run ledger records as `status: failed` with `error` set
|
|
64
100
|
* to the code. Any other error thrown from the pass is a crash.
|
|
@@ -70,6 +106,8 @@ export declare class SignalsPassError extends Error {
|
|
|
70
106
|
/** Set on bad output that another call cannot fix, so the document is not sent again. */
|
|
71
107
|
noRetry: boolean;
|
|
72
108
|
constructor(code: SignalsPassErrorCode, message: string);
|
|
109
|
+
/** The failure class without the tool: `bad-output` for both `claude-bad-output` and `codex-bad-output`. */
|
|
110
|
+
get failure(): SignalsFailureClass;
|
|
73
111
|
}
|
|
74
112
|
/**
|
|
75
113
|
* How to sign Claude Code in for signals. The desktop app comes first: its
|
|
@@ -79,14 +117,24 @@ export declare class SignalsPassError extends Error {
|
|
|
79
117
|
* The terminal command is the fallback.
|
|
80
118
|
*/
|
|
81
119
|
export declare const CLAUDE_SIGN_IN_STEPS: string;
|
|
120
|
+
/** The same steps for Codex: the pane's Codex row has "Connect Codex" / "Install Codex". */
|
|
121
|
+
export declare const CODEX_SIGN_IN_STEPS: string;
|
|
122
|
+
/** The sign-in steps for the tool the pass runs on. */
|
|
123
|
+
export declare function signalsSignInSteps(runtime: SignalsRuntimeId): string;
|
|
124
|
+
/** The command that switches one bot's signals to its own Codex. */
|
|
125
|
+
export declare function codexBotSignalsOptInCommand(botName: string): string;
|
|
82
126
|
/**
|
|
83
|
-
* What the owner of a Codex main bot is told when this pass
|
|
84
|
-
* missing or signed out
|
|
85
|
-
*
|
|
127
|
+
* What the owner of a Codex main bot is told when this pass, on Claude Code,
|
|
128
|
+
* finds claude missing or signed out: sign Claude Code in. The DM does not
|
|
129
|
+
* offer moving signals to Codex, because whether that is possible depends on
|
|
130
|
+
* the bot (an HQ Fleet Runtime bot cannot, and a bot needs its own Codex
|
|
131
|
+
* login); `hq bot status` offers it where the bot qualifies.
|
|
86
132
|
*/
|
|
87
133
|
export declare const CODEX_BOT_NEEDS_CLAUDE_TEXT: string;
|
|
88
134
|
/** What the owner is told when this pass finds claude signed out on any other bot. */
|
|
89
135
|
export declare const CLAUDE_SIGNED_OUT_TEXT: string;
|
|
136
|
+
/** What the owner of a Codex bot that runs signals on Codex is told when Codex is missing or signed out. */
|
|
137
|
+
export declare const CODEX_SIGNED_OUT_TEXT: string;
|
|
90
138
|
/** Signal types the pass accepts; the same type folders existing signals use. */
|
|
91
139
|
export declare const SIGNAL_TYPES: readonly ["action_item", "commitment", "decision", "key_point", "participant_contribution", "question", "risk", "summary"];
|
|
92
140
|
export type SignalType = (typeof SIGNAL_TYPES)[number];
|
|
@@ -161,11 +209,30 @@ export interface ClaudeSignalsPassOptions {
|
|
|
161
209
|
* CODEX_BOT_NEEDS_CLAUDE_TEXT. Unset: the failure is reported as is.
|
|
162
210
|
*/
|
|
163
211
|
botRuntime?: () => BotRuntimeId | null;
|
|
212
|
+
/**
|
|
213
|
+
* The bot's `signalsRuntime: "bot"` opt-in. When it answers true and
|
|
214
|
+
* `botRuntime` answers codex, the pass runs on Codex (see the file header).
|
|
215
|
+
* Unset, false, a throw, or any other bot runtime: Claude Code. Read once,
|
|
216
|
+
* when the first document is about to be sent.
|
|
217
|
+
*/
|
|
218
|
+
useBotRuntime?: () => boolean;
|
|
219
|
+
/**
|
|
220
|
+
* The environment the bot's own turns use (its login choice applied), for
|
|
221
|
+
* the Codex sign-in check and the Codex turn. Defaults to `env`. A throw (a
|
|
222
|
+
* bot set to its own login that has none) fails the pass as
|
|
223
|
+
* `codex-logged-out`; no other login is used.
|
|
224
|
+
*/
|
|
225
|
+
botRuntimeEnv?: () => NodeJS.ProcessEnv;
|
|
226
|
+
/** The `codex` CLI for the Codex runtime; the bot runtime's own lookup by default. */
|
|
227
|
+
codexBin?: string;
|
|
228
|
+
/** Test seam: the spawn used for the sign-in check and the Codex turn. */
|
|
229
|
+
runtimeSpawn?: SpawnLike;
|
|
164
230
|
/**
|
|
165
231
|
* Told what the pass saw of the Claude login: true after a preflight that
|
|
166
232
|
* passed, false when the pass failed signed out. Unset: nothing is recorded.
|
|
167
233
|
* `hq bot` and `hq sources sync` pass `recordSignalsPassClaudeLogin` here
|
|
168
234
|
* (signals-claude-login.ts), which `hq bot status` reads. Must not throw.
|
|
235
|
+
* Only a pass on Claude Code reports; a pass on Codex does not.
|
|
169
236
|
*/
|
|
170
237
|
onClaudeLogin?: (signedIn: boolean) => void;
|
|
171
238
|
}
|
|
@@ -231,12 +298,54 @@ export declare function splitFrontmatter(text: string): {
|
|
|
231
298
|
* document's own `.raw.json` sidecar and the body is the content.
|
|
232
299
|
*/
|
|
233
300
|
export declare function buildSignalsInput(vaultRoot: string, file: string): Promise<SignalsInput>;
|
|
301
|
+
/**
|
|
302
|
+
* Sort a failed Codex turn (a RuntimeError from runRuntimeTurn) into a failure
|
|
303
|
+
* class. Only the error Codex reported, or stderr, is quoted; a RuntimeError
|
|
304
|
+
* whose excerpt is a tail of ordinary output never decides the class and is
|
|
305
|
+
* never quoted, because that output is built from the document.
|
|
306
|
+
*/
|
|
307
|
+
export declare function classifyCodexFailure(err: unknown, item: {
|
|
308
|
+
file: string;
|
|
309
|
+
}, timeoutMs: number, elapsedMs: number): SignalsPassError;
|
|
234
310
|
/**
|
|
235
311
|
* Parse `claude -p --output-format json` output into signals. The envelope's
|
|
236
312
|
* `result` must itself be one JSON object, optionally inside a single code
|
|
237
313
|
* fence; nothing is scraped out of prose.
|
|
238
314
|
*/
|
|
239
315
|
export declare function parseClaudeSignals(stdout: string): ParsedSignal[];
|
|
316
|
+
/**
|
|
317
|
+
* Parse the model's final reply text into signals, for either tool: one JSON
|
|
318
|
+
* object, optionally inside a single code fence; nothing is scraped out of
|
|
319
|
+
* prose. Claude's reply is its envelope's `result`; Codex's is its last agent
|
|
320
|
+
* message (`codex exec -o`). Same schema and the same per-document cap.
|
|
321
|
+
*/
|
|
322
|
+
export declare function parseSignalsReply(reply: string, runtime: SignalsRuntimeId): ParsedSignal[];
|
|
323
|
+
/** The Codex permission profile a signals turn runs under. */
|
|
324
|
+
export declare const CODEX_SIGNALS_PROFILE = "hq_signals_pass";
|
|
325
|
+
/**
|
|
326
|
+
* The lockdown is the signals engine's shared one (signals/codex-lockdown.ts):
|
|
327
|
+
* the same disabled features and config, environment allowlist, real-binary
|
|
328
|
+
* lookup past HQ's wrappers, and install-dir grant checks as the extract step.
|
|
329
|
+
*/
|
|
330
|
+
export declare const CODEX_SIGNALS_DISABLED_FEATURES: readonly string[];
|
|
331
|
+
export declare const CODEX_SIGNALS_ENV_ALLOWLIST: readonly string[];
|
|
332
|
+
/**
|
|
333
|
+
* argv for one Codex signals turn. The prompt and document go on stdin (`-`),
|
|
334
|
+
* which keeps a 200 KB payload off argv. `--ignore-user-config` drops
|
|
335
|
+
* config.toml (MCP servers, settings), `--ignore-rules` drops execpolicy allow
|
|
336
|
+
* rules, `--ephemeral` keeps no session, `-a never` asks no one,
|
|
337
|
+
* codexLockdownFlags turns every tool feature, web search and bundled skills
|
|
338
|
+
* off, and the permission profile (codexLockdownFilesystem) reads only the
|
|
339
|
+
* platform minimum, the codex install and the empty turn dir, writes
|
|
340
|
+
* nothing, and has no network. The reply comes back in the `-o` file.
|
|
341
|
+
*/
|
|
342
|
+
export declare function codexSignalsArgs(input: {
|
|
343
|
+
turnDir: string;
|
|
344
|
+
outputFile: string;
|
|
345
|
+
/** resolveCodexLockdownTarget's install dir. */
|
|
346
|
+
installDir: string;
|
|
347
|
+
model?: string;
|
|
348
|
+
}): string[];
|
|
240
349
|
/** `sha256(source_ref \n type \n title)`: the same signal from the same source keeps its id. */
|
|
241
350
|
export declare function signalId(sourceRef: string, type: string, title: string): string;
|
|
242
351
|
/**
|