Peter Steinberger
6b95f98fe7
fix(core): make indexed access explicit across remaining src (NUIA phase 3b) ( #104773 )
...
* fix(core): make indexed access explicit in auto-reply, infra, and config
Part 1/3 of the src NUIA phase-3b burn-down (#104600 ): iteration and
destructuring over index reads, boundary guards on parsed input, and
named invariants. Config path walkers bind the path head once; SQLite
migration key handling is hoisted without query-shape changes.
* fix(core): make indexed access explicit in cli, gateway, commands, security, shared
Part 2/3: argv/token selection restructured, gateway event/attachment
invariants named, security parsers stay fail-closed (invariant
violations throw), edit-distance matrices access checked entries.
* fix(core): make indexed access explicit across remaining src surfaces
Part 3/3: channels, plugins, process, cron, plugin-sdk, media, logging,
tui, hooks, daemon, and small directories. Latent bug fixed: a tailnet
resolver could leak undefined through a string|null contract and now
fails with a descriptive local error.
* fix(core): keep optional boundaries optional after per-commit review
Review findings: expectDefined misused where absence is a legitimate
state. CLI --profile/route-args missing next tokens take their existing
miss paths; help normalization compares --help against the last
positional again; first-time plugin install spreads absent cfg.plugins;
denylist scan iterates manifest dependency entries instead of throwing
on omitted sections; tailnet resolver returns a guaranteed string at
the source instead of a caller-side undefined throw.
* refactor(core): closed-key provider labels and honest optional passthroughs
PROVIDER_LABELS becomes a satisfies-typed closed record (static reads
provably defined; dynamic lookups go through providerUsageLabel with
honest string|undefined). Status-scan overview passes its optional
params through unchanged instead of asserting them.
* fix(channels): make getChatChannelMeta honestly optional
The original signature claimed ChatChannelMeta while leaking undefined
on bundled channel id metadata drift; three of four callers already
handled absence. The return type now says so, and the one assuming
caller falls back to the raw channel label.
* fix(core): index-safety for post-rebase main drift
Covers the sqlite-sessions flip and auth-source-plan code that landed
mid-phase, plus the channel-validation test consuming the now honestly
optional getChatChannelMeta.
* refactor(channels): split chat-meta accessors along the SDK contract
getChatChannelMeta keeps its shipped plugin-SDK signature (defined for
bundled ids, fail-loud on impossible misses); new findChatChannelMeta
carries the drift-tolerant optional contract for core auto-enable and
formatting paths.
* fix(qa-channel): own channel metadata instead of a guaranteed-undefined catalog lookup
qa-channel spread getChatChannelMeta over an id that is never in the
bundled catalog, shipping an empty setup meta by accident; the fail-loud
SDK accessor exposed it. The channel now declares its metadata once.
* fix(gateway): heartbeat projection lookahead is optional at the transcript tail
expectDefined wrapped messages[i + 1] whose absence on the final message
is the normal case; the adjacent ternary already handled it. Restores
the plain optional read with an explicit guard in the pair condition.
* fix(plugin-sdk): channel plugin factory tolerates non-bundled channel ids again
createChannelPluginBase spreads bundled catalog meta for ANY channel id,
where absence is the normal case for external plugins; the resolver is
honestly optional again while the exported bundled-id accessor keeps the
fail-loud contract.
* fix(core): spreads of optional config sections stay optional
Fresh-setup and first-install paths (crestodian setup inference, hook
installs, agent config base, target agent models) legitimately lack the
section being rebuilt; spreading undefined is the shipped {} semantics.
Removes the remaining gratuitous assertion wraps found by tree audit.
2026-07-11 20:47:34 -07:00
..
2026-07-11 20:47:34 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:14:41 -04:00
2026-06-04 19:14:41 -04:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-07-02 18:43:14 -07:00
2026-06-05 08:40:35 -07:00
2026-06-04 22:22:21 -04:00
2026-05-31 11:30:33 +01:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:22:21 -04:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:21:04 -04:00
2026-06-18 10:12:48 +10:00
2026-07-11 15:26:48 -07:00
2026-07-11 14:50:37 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:45:30 -04:00
2026-06-23 15:48:27 +08:00
2026-06-16 00:38:16 -06:00
2026-06-04 22:16:29 -04:00
2026-07-10 13:31:22 +01:00
2026-06-15 02:53:14 -07:00
2026-07-01 11:16:49 -07:00
2026-06-03 15:20:39 -07:00
2026-05-16 12:38:51 +01:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:20:19 -04:00
2026-06-03 15:20:39 -07:00
2026-07-11 20:47:34 -07:00
2026-06-04 22:22:21 -04:00
2026-06-19 20:55:49 +02:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:16:24 -04:00
2026-06-03 15:20:39 -07:00
2026-07-12 05:38:05 +02:00
2026-07-12 05:38:05 +02:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:16:24 -04:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:16:24 -04:00
2026-06-03 15:20:39 -07:00
2026-07-02 14:15:25 -07:00
2026-07-02 14:15:25 -07:00
2026-06-03 15:20:39 -07:00
2026-07-11 18:31:05 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:24:26 -04:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:38:03 -04:00
2026-06-03 15:20:39 -07:00
2026-07-11 18:31:05 -07:00
2026-07-11 18:31:05 -07:00
2026-07-11 18:31:05 -07:00
2026-07-11 18:31:05 -07:00
2026-07-11 18:31:05 -07:00
2026-07-11 18:31:05 -07:00
2026-05-13 13:33:38 +01:00
2026-07-03 19:42:06 -07:00
2026-06-19 20:55:49 +02:00
2026-06-06 22:56:48 -07:00
2026-07-10 01:12:51 +01:00
2026-06-04 19:21:04 -04:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:16:29 -04:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:21:04 -04:00
2026-06-04 19:21:04 -04:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-06 22:56:48 -07:00
2026-07-10 01:12:51 +01:00
2026-06-03 15:20:39 -07:00
2026-06-06 22:56:48 -07:00
2026-07-11 13:00:53 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:16:24 -04:00
2026-06-03 15:20:39 -07:00
2026-07-11 13:00:53 -07:00
2026-07-11 13:00:53 -07:00
2026-07-11 13:00:53 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-07-11 06:49:27 -07:00
2026-06-07 19:03:38 +09:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:21:04 -04:00
2026-06-07 19:03:38 +09:00
2026-06-07 19:03:38 +09:00
2026-05-27 09:26:06 +01:00
2026-06-03 15:20:39 -07:00
2026-05-27 09:26:06 +01:00
2026-06-23 11:56:49 +08:00
2026-07-04 20:28:52 -04:00
2026-06-04 19:21:04 -04:00
2026-06-04 22:38:03 -04:00
2026-06-04 19:21:04 -04:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-05-27 09:26:06 +01:00
2026-05-27 09:26:06 +01:00
2026-05-27 09:26:06 +01:00
2026-06-03 18:45:11 -04:00
2026-05-27 09:26:06 +01:00
2026-07-08 23:53:19 -07:00
2026-05-27 09:26:06 +01:00
2026-06-10 13:35:19 +05:30
2026-07-11 05:48:33 -07:00
2026-05-27 09:26:06 +01:00
2026-07-05 19:11:58 -07:00
2026-07-05 19:11:58 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:21:04 -04:00
2026-06-03 15:20:39 -07:00
2026-05-27 09:26:06 +01:00
2026-07-10 14:32:11 +01:00
2026-05-27 09:26:06 +01:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:14:41 -04:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:16:24 -04:00
2026-06-04 19:21:04 -04:00
2026-06-04 19:21:04 -04:00
2026-06-03 15:20:39 -07:00
2026-07-11 18:15:03 -07:00
2026-05-27 09:26:06 +01:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:14:41 -04:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-07-11 10:25:14 -07:00
2026-05-30 11:07:45 +02:00
2026-07-10 17:49:43 -07:00
2026-05-18 01:47:44 -05:00
2026-07-10 15:23:24 +01:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:16:29 -04:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-05-27 09:26:06 +01:00
2026-05-31 10:34:56 +01:00
2026-06-03 15:20:39 -07:00
2026-07-11 00:12:08 -07:00
2026-07-11 14:50:37 -07:00
2026-06-03 15:20:39 -07:00
2026-05-18 14:56:06 +01:00
2026-07-08 23:53:19 -07:00
2026-07-11 20:47:34 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-07-04 01:51:03 -07:00
2026-07-04 01:51:03 -07:00
2026-07-10 22:33:33 -07:00
2026-07-10 22:33:33 -07:00
2026-07-10 07:53:37 +05:30
2026-05-26 02:24:02 +01:00
2026-05-27 09:26:06 +01:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-05-27 09:26:06 +01:00
2026-06-09 19:58:10 +09:00
2026-07-11 13:00:53 -07:00
2026-06-03 15:20:39 -07:00
2026-06-15 09:29:42 +08:00
2026-06-21 11:50:51 +08:00
2026-07-10 23:52:35 +01:00
2026-05-30 00:04:06 +10:00
2026-06-04 19:21:04 -04:00
2026-07-11 20:47:34 -07:00
2026-07-07 07:38:41 +01:00
2026-07-07 07:38:41 +01:00
2026-06-03 15:20:39 -07:00
2026-07-04 10:57:42 +10:00
2026-06-03 15:20:39 -07:00
2026-07-07 07:38:41 +01:00
2026-07-04 10:57:42 +10:00
2026-06-04 22:22:21 -04:00
2026-06-04 19:21:04 -04:00
2026-06-04 22:20:19 -04:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:20:19 -04:00
2026-07-10 21:35:05 +01:00
2026-07-10 21:35:05 +01:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:14:54 -04:00
2026-07-10 20:24:53 +01:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:27:50 -04:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-07-02 18:43:14 -07:00
2026-06-03 15:20:39 -07:00
2026-06-26 07:08:30 -04:00
2026-06-04 19:14:41 -04:00
2026-06-04 19:21:04 -04:00
2026-05-27 13:59:33 +01:00
2026-07-06 22:14:46 -07:00
2026-07-12 06:25:54 +05:30
2026-06-03 15:20:39 -07:00
2026-07-11 18:31:05 -07:00
2026-06-04 19:14:41 -04:00
2026-06-03 15:20:39 -07:00
2026-07-04 16:45:07 -07:00
2026-07-04 16:45:07 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:18:33 -04:00
2026-06-04 22:26:17 -04:00
2026-07-05 01:56:40 -04:00
2026-06-04 19:21:04 -04:00
2026-06-04 22:41:26 -04:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:22:21 -04:00
2026-05-15 18:44:04 +01:00
2026-05-31 11:30:33 +01:00
2026-07-01 03:53:54 -07:00
2026-07-04 12:15:57 -07:00
2026-05-13 15:04:49 +01:00
2026-06-03 15:20:39 -07:00
2026-05-31 12:56:38 +01:00
2026-07-12 06:33:57 +08:00
2026-07-12 06:33:57 +08:00
2026-07-12 06:33:57 +08:00
2026-07-12 06:33:57 +08:00
2026-06-03 15:20:39 -07:00
2026-07-11 16:43:58 -07:00
2026-07-11 14:50:37 -07:00
2026-06-03 15:20:39 -07:00
2026-07-11 10:54:34 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:21:04 -04:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-05-14 12:50:22 +08:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-30 09:56:20 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-07-02 16:05:49 -07:00
2026-05-23 21:26:55 +01:00
2026-06-03 15:20:39 -07:00
2026-07-04 02:08:35 -07:00
2026-06-04 22:24:26 -04:00
2026-06-04 22:26:17 -04:00
2026-07-11 00:12:08 -07:00
2026-06-03 15:20:39 -07:00
2026-05-17 02:05:22 +01:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-07-06 09:26:04 -07:00
2026-06-04 19:14:41 -04:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:16:29 -04:00
2026-06-04 22:26:17 -04:00
2026-06-04 19:14:41 -04:00
2026-06-06 22:56:48 -07:00
2026-06-06 22:56:48 -07:00
2026-05-27 09:26:06 +01:00
2026-05-27 09:26:06 +01:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:21:04 -04:00
2026-06-03 15:20:39 -07:00
2026-07-03 16:24:43 -07:00
2026-07-11 00:12:08 -07:00
2026-07-11 09:26:08 -07:00
2026-06-16 09:36:32 +08:00
2026-06-03 15:20:39 -07:00
2026-07-11 04:54:27 -07:00
2026-06-03 15:20:39 -07:00
2026-06-28 02:36:53 -04:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-07-12 07:40:35 +08:00
2026-07-01 11:16:49 -07:00
2026-07-01 11:16:49 -07:00
2026-06-04 19:21:04 -04:00
2026-06-04 19:21:04 -04:00
2026-07-11 13:00:17 -07:00
2026-07-11 13:00:17 -07:00
2026-07-08 18:59:41 -07:00
2026-07-08 18:59:41 -07:00
2026-07-11 21:29:40 +08:00
2026-07-04 12:15:57 -07:00
2026-07-01 06:48:57 +01:00
2026-07-01 06:48:57 +01:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:16:29 -04:00
2026-06-04 19:21:04 -04:00
2026-06-04 19:21:04 -04:00
2026-06-03 15:20:39 -07:00
2026-06-24 19:08:22 -05:00
2026-07-09 22:13:56 +01:00
2026-07-09 22:13:56 +01:00
2026-07-11 15:26:48 -07:00
2026-06-09 20:12:25 +09:00
2026-07-07 04:48:01 +01:00
2026-07-08 17:26:29 -07:00
2026-06-04 19:21:04 -04:00
2026-06-04 19:21:04 -04:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:14:54 -04:00
2026-06-03 15:20:39 -07:00
2026-07-10 20:00:11 -07:00
2026-07-10 20:00:11 -07:00
2026-07-10 15:23:24 +01:00
2026-06-22 09:37:09 +08:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:21:04 -04:00
2026-07-05 01:56:40 -04:00
2026-07-05 01:56:40 -04:00
2026-07-06 12:06:55 +01:00
2026-05-28 22:04:22 -04:00
2026-06-04 22:16:29 -04:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-05-30 07:53:51 +02:00
2026-06-04 22:22:21 -04:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:21:04 -04:00
2026-07-02 16:51:30 -07:00
2026-06-04 19:21:04 -04:00
2026-07-06 18:35:41 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:22:21 -04:00
2026-06-21 11:26:58 -03:00
2026-07-06 09:24:34 -07:00
2026-07-06 09:24:34 -07:00
2026-07-06 18:35:41 -07:00
2026-06-03 15:20:39 -07:00
2026-06-19 20:55:49 +02:00
2026-07-06 09:24:34 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-07-11 00:12:08 -07:00
2026-06-03 15:20:39 -07:00
2026-07-02 18:43:14 -07:00
2026-05-15 18:44:04 +01:00
2026-06-03 15:20:39 -07:00
2026-07-04 01:09:12 -07:00
2026-07-11 20:47:34 -07:00
2026-06-03 15:20:39 -07:00
2026-07-11 15:47:15 -07:00
2026-06-03 15:20:39 -07:00
2026-07-09 23:43:26 +01:00
2026-07-10 04:02:44 +01:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:16:29 -04:00
2026-06-03 15:20:39 -07:00
2026-07-11 18:15:03 -07:00
2026-07-03 17:58:15 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:27:50 -04:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:18:33 -04:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-26 08:02:00 +10:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-20 06:41:33 +02:00
2026-06-03 15:20:39 -07:00
2026-07-11 04:54:27 -07:00
2026-06-03 15:20:39 -07:00
2026-07-09 05:30:12 -05:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:18:33 -04:00
2026-05-18 14:56:06 +01:00
2026-07-11 17:26:26 -07:00
2026-06-03 15:20:39 -07:00
2026-07-12 06:50:30 +08:00
2026-07-12 06:50:30 +08:00
2026-07-11 14:50:37 -07:00
2026-07-11 20:47:34 -07:00
2026-06-20 14:01:07 -07:00
2026-07-11 14:50:37 -07:00
2026-07-11 14:50:37 -07:00
2026-06-22 16:45:01 +00:00
2026-06-03 15:20:39 -07:00
2026-06-18 09:46:56 +08:00
2026-06-18 09:46:56 +08:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-05-29 10:05:37 -04:00
2026-07-11 14:50:37 -07:00
2026-06-19 01:20:06 +08:00
2026-07-10 11:16:26 +05:30
2026-06-04 22:24:26 -04:00
2026-05-23 23:53:27 +01:00
2026-05-15 11:00:29 +01:00
2026-05-13 13:33:38 +01:00
2026-07-05 05:49:33 -07:00
2026-07-05 05:49:33 -07:00
2026-05-31 01:33:00 +01:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:22:21 -04:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:16:24 -04:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:21:04 -04:00
2026-06-03 15:20:39 -07:00
2026-05-27 19:24:04 +01:00
2026-05-30 11:07:45 +02:00
2026-06-03 15:20:39 -07:00
2026-05-17 03:00:39 +01:00
2026-05-30 11:07:45 +02:00
2026-06-03 15:20:39 -07:00
2026-06-24 06:41:38 -07:00
2026-05-31 01:33:00 +01:00
2026-06-14 18:18:20 +05:30
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-07-10 20:00:11 -07:00
2026-07-09 07:47:23 +01:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:13:13 -04:00
2026-07-04 16:50:44 -07:00
2026-07-04 16:50:44 -07:00
2026-06-14 09:11:05 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:21:04 -04:00
2026-06-04 20:31:41 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 22:34:53 -04:00
2026-07-10 04:49:42 +01:00
2026-06-03 15:20:39 -07:00
2026-07-10 04:49:42 +01:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:14:41 -04:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:16:24 -04:00
2026-06-03 15:20:39 -07:00
2026-06-04 19:16:24 -04:00
2026-07-07 06:57:16 +01:00
2026-07-07 06:57:16 +01:00
2026-06-04 22:26:17 -04:00
2026-06-03 15:20:39 -07:00