Commit Graph

28 Commits

Author SHA1 Message Date
Peter Steinberger e74be5d41d refactor: eliminate final wrapper-shadowing hazards (#122157)
* refactor: disambiguate wrapper-shadowed exports

* test: align renamed session and facade boundaries

* test: cover renamed runtime mock exports

* refactor: align remaining wrapper owner call sites

* test: align overlap-rebased runtime mocks

* refactor: preserve public SDK names after overlap rebase

* chore: regenerate wrapper shadowing baselines

* test: align cron model selection mocks
2026-08-11 13:34:24 -07:00
Peter Steinberger 8616c0c374 refactor: finish shared test helper migrations (#120996)
* test: finish shared helper migrations

* test: fix helper migration CI

* style: fix test import ordering

* test(acpx): restore deferred void types

* test: fix helper migrations after rebase
2026-08-09 06:00:06 -07:00
cxbAsDev 7bf263b8b6 Bound plugin bundle command file reads with size cap (#110594)
* Bound bundle command file reads with size cap

* fix: use buffer.toString for readRegularFileSync result

* fix: log oversized bundle command file diagnostic instead of silent skip

The catch block now captures the error and emits a console.warn with the file path and error detail, so upgrades do not silently remove oversized installed commands.

* test: verify oversized bundle command file is skipped and siblings continue

PR #110594: Add focused regression coverage:
- Test: an oversized bundle command markdown file (>1 MB) is skipped via catch + continue
- Test: normal sibling command files still load correctly
- Verifies console.warn diagnostic is emitted for the oversized file

* refactor(plugins): log rejected bundle commands

Co-authored-by: 陈宪彪0668000387 <chen.xianbiao@xydigit.com>

* style(plugins): format bundle warning

Co-authored-by: 陈宪彪0668000387 <chen.xianbiao@xydigit.com>

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-18 23:03:00 +01:00
qingminlong 07d97f6e8d fix(plugins): hide bundle commands when frontmatter uses on (#105013)
* fix(plugins): honor on frontmatter for bundle commands

* fix(plugins): honor bundle command invocation policy

Co-authored-by: qingminlong <qing.minlong@xydigit.com>

* test(plugins): tighten bundle command policy coverage

---------

Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-18 00:18:16 +01:00
NianJiu dbbab1044e fix: require full frontmatter delimiter lines (#101795)
Co-authored-by: NianJiuZst <180004567+NianJiuZst@users.noreply.github.com>
2026-07-07 11:53:03 -07:00
Shakker e253568d52 fix: scope bundle command home env 2026-06-23 05:24:48 +01:00
Peter Steinberger 4d54d196c9 docs: document plugin discovery helpers 2026-06-04 04:41:47 -04:00
Shakker 962149e455 test: tighten bundle command assertions 2026-05-11 06:35:41 +01:00
Peter Steinberger 751d47188c test: clarify bundled command assertion 2026-05-08 11:01:43 +01:00
Peter Steinberger 04f76a8fdb test: remove duplicate plugin enable mock 2026-04-27 09:54:58 +01:00
Peter Steinberger a35ad200d1 test: shrink image sanitizer fixtures 2026-04-27 09:39:28 +01:00
Vincent Koc 56ca4e2269 fix(daemon): handle sudo user-systemd gateway install failures
* fix(daemon): handle sudo user-systemd gateway install failures

* fix(daemon): harden sudo systemctl user scope

* fix(plugins): remove static type-cycle edges

* test(plugins): update bundle command config mock
2026-04-27 01:34:57 -07:00
Peter Steinberger b9b15bec85 fix(ci): stabilize full validation probes 2026-04-27 09:30:53 +01:00
Peter Steinberger c2d82b87ee test(plugins): mock registry contribution seam 2026-04-27 09:23:59 +01:00
Vincent Koc 1252da325f fix(tests): remove duplicate config mock key 2026-04-25 21:27:39 -07:00
Peter Steinberger 38e61e0046 test(plugins): drop duplicate bundle command mock 2026-04-26 04:46:05 +01:00
Peter Steinberger 540c70d166 fix(plugins): ignore bundled load path aliases 2026-04-26 04:46:05 +01:00
Peter Steinberger e74f2e1501 test: remove duplicate plugin enable mock 2026-04-26 04:39:54 +01:00
Colin Johnson 21082d2ede fix(plugins): verify bundled runtime deps installs
Verify bundled runtime dependency installs before reporting success, so a clean npm exit cannot hide packages missing from the managed runtime-deps root.

Also updates the bundle command test mock for the current plugin enable-state API.

Local proof:
- `pnpm test src/plugins/bundle-commands.test.ts`
- `pnpm test src/plugins/bundled-runtime-deps.test.ts src/commands/doctor-bundled-plugin-runtime-deps.test.ts src/plugins/loader.test.ts`
- `pnpm check:changed`

Co-authored-by: Colin <colin@solvely.net>
2026-04-26 04:32:33 +01:00
Pinghuachiu 7b943667a0 fix: expose image edit geometry flags in capability cli
Expose image edit geometry flags in the capability CLI and document the new infer options.\n\nThanks @Pinghuachiu.
2026-04-26 04:22:22 +01:00
Peter Steinberger 969a3757b9 test: harden plugin registry mocks 2026-04-26 04:10:48 +01:00
Peter Steinberger 5985e1d8b9 test: speed up import-heavy tests 2026-04-25 11:04:16 +01:00
Peter Steinberger 89bb2cf03e test: dedupe plugin bundle discovery suites 2026-03-28 06:04:50 +00:00
Peter Steinberger 04792e6c44 test: dedupe plugin bundle and discovery suites 2026-03-28 04:28:54 +00:00
Peter Steinberger de173f0e3e test: dedupe plugin utility install suites 2026-03-28 03:30:25 +00:00
Peter Steinberger 0454612083 test: dedupe plugin bundle and discovery suites 2026-03-28 02:34:39 +00:00
Peter Steinberger 7d79134cee test: dedupe plugin runtime utility suites 2026-03-28 02:05:01 +00:00
Vincent Koc 265386cd6b feat(plugins): register claude bundle commands natively 2026-03-21 08:14:48 -07:00