Heo Hao
875f729070
fix(cli): advertise the source-location path and URL constraints ( #9281 )
...
* fix(cli): advertise the source-location path and URL constraints
trace-web-source-location declared manifestPath, sourceMapPath and sourceMapUrl
as bare strings, so `--schema --json` advertised them with no minLength and no
absolute-path pattern. The service then refused a relative manifest or map with
a post-parse invalid_request naming manifest_path and source_map.path, while
trace-web-module-imports already advertises those constraints from its domain
fields.
Bind the three positionals to webSourceLocationInputSchema so the domain field
owns the bounds, format and help, matching the rule in cliDecimalField that the
domain field owns bounds, defaults, nullability and help. The CLI now refuses a
relative or NUL-bearing value at its own boundary with a field-level message
instead of surfacing a service-level failure.
Add a boundary test that compiles the advertised args schema and asserts the
shared path and non-empty URL constraints, next to the existing sibling case.
* test(cli): isolate the NUL rejection from the absolute-path check
The boundary case for trace-web-source-location used "manifest\0.json", which is
also a relative path. The absolute-path constraint alone rejects it, so the case
would still pass if schema conversion dropped the NUL pattern. Use an absolute
path with an embedded NUL instead, and add the same case for sourceMapPath.
* style(test): wrap input schema assertions for oxfmt
The two unknown-byte cases exceeded the line width and tripped
format:check in CI. No assertion changes.
2026-11-09 17:40:25 +08:00
..
2026-10-24 12:30:37 +08:00
2026-11-08 00:25:43 +08:00
2026-11-08 00:25:43 +08:00
2026-10-21 06:23:20 +08:00
2026-10-21 06:23:20 +08:00
2026-11-02 02:13:32 +08:00
2026-11-09 17:40:09 +08:00
2026-11-09 07:59:49 +08:00
2026-10-24 04:08:59 +08:00
2026-10-24 02:50:03 +08:00
2026-11-07 20:12:25 +00:00
2026-10-06 12:46:48 +00:00
2026-10-27 15:47:08 +08:00
2026-10-22 00:31:43 +08:00
2026-10-12 05:24:33 +08:00
2026-10-21 05:50:50 +08:00
2026-10-30 01:00:06 -07:00
2026-10-28 13:28:03 +08:00
2026-10-17 19:46:20 +08:00
2026-11-08 00:01:18 +08:00
2026-10-23 02:29:48 +08:00
2026-10-27 06:28:15 +08:00
2026-10-29 03:12:03 +08:00
2026-10-22 04:10:46 +08:00
2026-11-06 20:12:31 +00:00
2026-10-23 14:01:50 +08:00
2026-11-07 01:28:34 +08:00
2026-10-29 18:50:26 +08:00
2026-10-24 12:30:37 +08:00
2026-11-08 00:01:18 +08:00
2026-10-24 12:30:37 +08:00
2026-10-27 12:31:48 +08:00
2026-10-27 08:52:22 +08:00
2026-10-24 12:30:37 +08:00
2026-11-06 15:38:30 +08:00
2026-10-15 05:19:43 -07:00
2026-10-13 23:47:55 +08:00
2026-10-22 23:52:21 +08:00
2026-11-06 21:56:35 +00:00
2026-10-11 18:01:32 +08:00
2026-11-07 11:52:39 +08:00
2026-11-07 16:17:09 +08:00
2026-10-31 16:43:04 +08:00
2026-10-31 16:43:04 +08:00
2026-11-08 02:02:31 +08:00
2026-11-08 01:42:28 +08:00
2026-11-09 17:40:25 +08:00
2026-11-08 22:50:32 +00:00
2026-10-21 21:18:22 -07:00
2026-10-21 03:50:14 +08:00
2026-11-08 16:39:20 +00:00
2026-10-24 08:54:44 +08:00
2026-11-01 00:15:28 +08:00
2026-11-07 11:52:39 +08:00
2026-11-08 02:02:31 +08:00
2026-10-30 05:23:33 +08:00
2026-10-29 16:47:10 +08:00
2026-10-12 05:09:13 +08:00
2026-11-06 22:30:39 +00:00
2026-10-28 14:12:39 +08:00
2026-11-04 16:10:30 +08:00
2026-10-24 00:32:05 +08:00
2026-11-08 02:16:24 +00:00
2026-10-30 04:25:48 +08:00
2026-11-02 15:56:09 +08:00
2026-10-14 18:20:19 -07:00
2026-10-25 07:31:42 +08:00
2026-11-06 14:37:29 +08:00
2026-10-27 06:31:23 +08:00
2026-11-08 00:25:43 +08:00
2026-11-02 02:13:32 +08:00
2026-11-08 02:02:31 +08:00
2026-10-24 04:32:11 +08:00
2026-11-06 21:56:35 +00:00
2026-11-04 19:10:35 +08:00
2026-11-06 14:34:07 +08:00
2026-11-06 10:01:25 +08:00
2026-11-01 00:15:28 +08:00
2026-10-28 14:12:39 +08:00
2026-11-06 02:01:30 +08:00
2026-10-21 04:37:26 +00:00
2026-10-21 03:44:49 +08:00
2026-11-02 05:14:50 -08:00
2026-10-29 11:27:01 +08:00
2026-11-08 00:01:18 +08:00
2026-11-08 00:01:18 +08:00
2026-10-17 15:59:57 +08:00
2026-10-17 21:24:00 +08:00
2026-10-17 15:41:07 +08:00
2026-10-29 09:20:53 +08:00
2026-11-09 13:21:24 +08:00
2026-11-04 16:47:46 +08:00
2026-11-08 01:42:28 +08:00
2026-10-13 23:53:35 +08:00
2026-11-09 17:40:09 +08:00
2026-11-06 22:30:39 +00:00
2026-11-03 14:48:54 +08:00
2026-10-27 21:24:30 +08:00
2026-10-25 07:31:42 +08:00
2026-11-05 15:39:46 +08:00
2026-10-26 22:55:10 +08:00
2026-11-09 14:58:24 +08:00
2026-10-21 20:32:26 -07:00
2026-11-08 00:01:18 +08:00
2026-10-29 20:07:17 +08:00
2026-10-24 00:32:05 +08:00
2026-10-27 12:31:48 +08:00
2026-10-24 03:00:09 +08:00
2026-10-29 09:26:22 +08:00
2026-10-23 05:23:34 +08:00
2026-10-29 05:11:02 +08:00
2026-11-06 00:31:09 +08:00
2026-10-21 03:21:30 +08:00
2026-10-29 20:52:03 +08:00
2026-11-06 15:15:23 +08:00
2026-11-08 16:39:20 +00:00
2026-11-08 16:39:20 +00:00
2026-11-01 00:15:28 +08:00
2026-11-07 01:28:12 +08:00
2026-10-28 14:12:39 +08:00
2026-10-30 01:03:35 -07:00
2026-10-15 12:15:55 +08:00
2026-10-24 12:30:37 +08:00
2026-11-01 00:15:28 +08:00
2026-10-31 11:12:30 -07:00
2026-10-31 00:22:16 +08:00
2026-11-09 14:58:35 +08:00
2026-10-25 07:31:42 +08:00
2026-10-29 07:34:31 +08:00
2026-11-08 16:39:20 +00:00
2026-10-24 04:14:51 +08:00
2026-10-09 00:09:55 +08:00
2026-10-11 13:29:50 +08:00
2026-10-31 00:22:16 +08:00
2026-11-09 13:21:24 +08:00
2026-10-09 10:01:59 +08:00
2026-10-17 08:32:26 +08:00
2026-11-08 00:25:43 +08:00
2026-10-17 08:27:39 +08:00
2026-10-25 05:25:54 -07:00
2026-11-09 13:21:24 +08:00
2026-10-14 17:09:18 +08:00
2026-10-25 05:32:29 -07:00
2026-10-24 18:00:43 +08:00
2026-11-01 00:15:28 +08:00
2026-10-19 18:45:48 +08:00
2026-10-14 08:31:16 +08:00
2026-11-01 00:15:28 +08:00
2026-11-08 16:39:20 +00:00
2026-11-04 19:40:27 +08:00
2026-10-31 00:22:16 +08:00
2026-10-27 06:43:07 +08:00
2026-10-24 00:30:34 +08:00
2026-10-14 08:59:27 +08:00
2026-11-08 16:39:20 +00:00
2026-10-24 04:03:26 +00:00
2026-10-21 00:52:53 +08:00
2026-10-31 14:45:21 +00:00
2026-11-08 16:39:20 +00:00
2026-11-06 21:21:56 +00:00
2026-11-09 08:40:39 +08:00
2026-11-06 14:53:03 +08:00
2026-11-06 14:53:03 +08:00
2026-10-29 20:07:17 +08:00
2026-10-29 08:57:38 +08:00
2026-11-06 21:56:35 +00:00
2026-11-07 01:27:27 +08:00
2026-11-04 19:40:27 +08:00
2026-10-21 21:19:33 -07:00
2026-11-06 19:09:18 +00:00
2026-10-20 23:15:05 +08:00
2026-10-27 14:10:07 +08:00
2026-11-05 03:26:31 +08:00
2026-10-27 09:16:02 +08:00
2026-10-23 05:14:42 +08:00
2026-10-20 17:16:44 +08:00
2026-10-29 08:37:36 +08:00
2026-11-08 00:12:43 +08:00
2026-11-01 00:15:28 +08:00
2026-10-24 17:21:08 +08:00
2026-11-01 00:15:28 +08:00
2026-10-27 21:33:17 +08:00
2026-10-26 22:20:00 +08:00
2026-11-08 02:02:31 +08:00
2026-10-25 01:45:23 +08:00
2026-11-04 19:45:46 +08:00
2026-10-24 08:22:14 +08:00
2026-11-04 02:01:44 +08:00
2026-10-28 11:34:28 +00:00
2026-10-28 11:34:28 +00:00
2026-11-02 02:13:32 +08:00
2026-11-01 08:53:29 -08:00
2026-11-08 02:16:24 +00:00
2026-10-31 14:45:21 +00:00
2026-10-28 16:48:20 +08:00
2026-10-20 19:26:08 +08:00
2026-11-05 18:35:22 +08:00
2026-11-08 16:39:20 +00:00
2026-10-25 05:20:24 -07:00
2026-10-24 02:40:22 +08:00
2026-10-31 00:22:16 +08:00
2026-10-24 23:14:19 +09:00
2026-10-23 19:18:47 +08:00
2026-10-29 08:18:13 +08:00
2026-11-06 17:21:28 +08:00
2026-10-29 14:35:12 +08:00
2026-10-13 05:52:27 +09:00
2026-10-24 04:23:56 +08:00
2026-10-24 06:46:22 +08:00
2026-10-23 21:28:10 +08:00
2026-10-24 07:28:09 +08:00
2026-10-24 06:24:55 +08:00
2026-10-31 00:22:16 +08:00
2026-10-26 16:46:45 +08:00
2026-11-08 16:39:20 +00:00
2026-11-08 22:05:17 +00:00
2026-11-06 20:48:59 +08:00
2026-10-29 07:56:06 +08:00
2026-10-25 19:03:06 +08:00
2026-11-08 00:01:18 +08:00
2026-10-28 15:00:01 +08:00
2026-10-22 01:20:12 -07:00
2026-11-06 16:58:52 +00:00
2026-10-21 03:46:14 +08:00
2026-10-13 15:58:19 +09:00
2026-10-05 23:27:46 -07:00
2026-11-06 22:30:39 +00:00
2026-10-29 08:09:49 +08:00
2026-11-08 22:05:17 +00:00
2026-11-08 22:05:17 +00:00
2026-10-28 16:47:39 +08:00
2026-11-06 10:13:45 +08:00
2026-10-25 11:29:17 +08:00
2026-10-26 18:26:33 +08:00
2026-10-24 12:30:37 +08:00
2026-10-27 09:16:02 +08:00
2026-10-29 08:42:56 +08:00
2026-10-31 14:45:21 +00:00