@mandujs/core 0.41.2 → 0.43.0
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/package.json +21 -4
- package/src/auth/__tests__/login.test.ts +420 -419
- package/src/auth/__tests__/reset.test.ts +296 -296
- package/src/brain/adapters/anthropic-oauth.ts +421 -420
- package/src/brain/adapters/index.ts +2 -1
- package/src/brain/adapters/ollama.ts +1 -1
- package/src/brain/adapters/openai-oauth.ts +534 -533
- package/src/brain/brain.ts +2 -1
- package/src/brain/redactor.ts +196 -196
- package/src/bundler/__tests__/cli-bench-utils.test.ts +149 -149
- package/src/bundler/__tests__/cold-start.test.ts +504 -504
- package/src/bundler/__tests__/fast-refresh.test.ts +607 -606
- package/src/bundler/__tests__/hdr.test.ts +1 -1
- package/src/bundler/analyzer.ts +958 -958
- package/src/bundler/build.ts +104 -14
- package/src/bundler/dev.ts +125 -0
- package/src/bundler/hmr-types.ts +1 -0
- package/src/bundler/plugins/__tests__/react-compiler-lint.test.ts +110 -0
- package/src/bundler/plugins/index.ts +14 -0
- package/src/bundler/plugins/react-compiler-lint.ts +253 -0
- package/src/bundler/plugins/react-compiler.ts +162 -0
- package/src/bundler/types.ts +12 -0
- package/src/change/integrity.ts +2 -1
- package/src/client/index.ts +10 -0
- package/src/client/island.ts +38 -11
- package/src/client/router.ts +6 -1
- package/src/config/mandu.ts +57 -0
- package/src/config/validate.ts +42 -0
- package/src/content/collection.ts +844 -809
- package/src/content/content-layer.ts +316 -314
- package/src/content/content.test.ts +433 -433
- package/src/content/digest.ts +133 -133
- package/src/content/generate-types.ts +168 -168
- package/src/content/index.ts +6 -1
- package/src/content/llms-txt.ts +277 -277
- package/src/contract/define.ts +474 -474
- package/src/contract/route-helpers.ts +2 -1
- package/src/contract/zod-utils.ts +158 -155
- package/src/db/index.ts +513 -513
- package/src/desktop/__tests__/smoke.test.ts +100 -100
- package/src/desktop/webview-fallback.ts +583 -583
- package/src/desktop/window.ts +3 -1
- package/src/dev-error-overlay/overlay-client.ts +300 -300
- package/src/devtools/ai/mcp-connector.ts +499 -498
- package/src/devtools/client/components/kitchen-root.tsx +7 -2
- package/src/email/resend.ts +163 -163
- package/src/guard/__tests__/tsgolint-bridge.test.ts +347 -0
- package/src/guard/ast-analyzer.ts +806 -806
- package/src/guard/graph.ts +898 -898
- package/src/guard/index.ts +16 -0
- package/src/guard/statistics.ts +578 -578
- package/src/guard/tsgolint-bridge.ts +512 -0
- package/src/i18n/locale-resolver.ts +214 -214
- package/src/id/__tests__/id.test.ts +120 -120
- package/src/intent/index.ts +321 -321
- package/src/island/index.ts +39 -23
- package/src/kitchen/api/contract-api.ts +15 -8
- package/src/kitchen/kitchen-ui.ts +2137 -2137
- package/src/lockfile/index.ts +3 -2
- package/src/middleware/oauth/__tests__/oauth.test.ts +575 -574
- package/src/middleware/rate-limit/__tests__/rate-limit.test.ts +642 -642
- package/src/middleware/secure/index.ts +417 -417
- package/src/observability/event-bus.ts +2 -2
- package/src/observability/metrics.ts +334 -334
- package/src/observability/tracing.ts +694 -694
- package/src/openapi/generator.ts +1 -1
- package/src/perf/user-marks.ts +553 -553
- package/src/plugins/registry.ts +387 -387
- package/src/resource/ddl/diff.ts +392 -392
- package/src/resource/ddl/snapshot.ts +448 -447
- package/src/resource/generator-schema.ts +477 -476
- package/src/resource/parser.ts +4 -2
- package/src/resource/schema.ts +1 -1
- package/src/router/fs-patterns.ts +422 -422
- package/src/runtime/fast-refresh-types.ts +126 -128
- package/src/runtime/image-handler.ts +206 -195
- package/src/runtime/router.test.ts +476 -476
- package/src/runtime/security.ts +155 -155
- package/src/runtime/server.ts +36 -19
- package/src/runtime/session-key.ts +328 -328
- package/src/scheduler/__tests__/scheduler.test.ts +514 -514
- package/src/seo/resolve/index.ts +353 -353
- package/src/spec/load.ts +1 -1
- package/src/testing/reporter.ts +676 -676
- package/src/testing/server.ts +196 -196
- package/src/testing/snapshot.ts +444 -444
- package/src/utils/__tests__/lru-cache.test.ts +186 -186
- package/src/utils/bun.ts +8 -8
package/src/config/validate.ts
CHANGED
|
@@ -93,6 +93,19 @@ const CustomGuardRuleSchema = z.custom<CustomGuardRule>(
|
|
|
93
93
|
}
|
|
94
94
|
);
|
|
95
95
|
|
|
96
|
+
/**
|
|
97
|
+
* Follow-up E — type-aware lint sub-block (strict).
|
|
98
|
+
*
|
|
99
|
+
* Keys map 1:1 to `TsgolintBridgeOptions` in `guard/tsgolint-bridge.ts`.
|
|
100
|
+
*/
|
|
101
|
+
const GuardTypeAwareConfigSchema = z
|
|
102
|
+
.object({
|
|
103
|
+
rules: z.array(z.string().min(1)).optional(),
|
|
104
|
+
severity: z.enum(["off", "warn", "error"]).optional(),
|
|
105
|
+
configPath: z.string().min(1).optional(),
|
|
106
|
+
})
|
|
107
|
+
.strict();
|
|
108
|
+
|
|
96
109
|
/**
|
|
97
110
|
* Guard 설정 스키마 (strict)
|
|
98
111
|
*
|
|
@@ -119,6 +132,10 @@ const GuardConfigSchema = z
|
|
|
119
132
|
* `mandu:block-generated-imports` Bun plugin.
|
|
120
133
|
*/
|
|
121
134
|
blockGeneratedImport: z.boolean().default(true),
|
|
135
|
+
/**
|
|
136
|
+
* Follow-up E — `oxlint --type-aware` bridge. Optional.
|
|
137
|
+
*/
|
|
138
|
+
typeAware: GuardTypeAwareConfigSchema.optional(),
|
|
122
139
|
})
|
|
123
140
|
.strict();
|
|
124
141
|
|
|
@@ -692,6 +709,31 @@ export const ManduConfigSchema = z
|
|
|
692
709
|
* ollama → template.
|
|
693
710
|
*/
|
|
694
711
|
brain: BrainConfigSchema.optional(),
|
|
712
|
+
/**
|
|
713
|
+
* Issue #240 — experimental feature flags. All fields are opt-in
|
|
714
|
+
* and may change shape between minor releases. Kept permissive
|
|
715
|
+
* (`passthrough` on the reactCompiler block) so forward-compat
|
|
716
|
+
* `compilerConfig` keys flow through without bumping this schema.
|
|
717
|
+
*/
|
|
718
|
+
experimental: z
|
|
719
|
+
.object({
|
|
720
|
+
reactCompiler: z
|
|
721
|
+
.object({
|
|
722
|
+
enabled: z.boolean().optional(),
|
|
723
|
+
compilerConfig: z.record(z.unknown()).optional(),
|
|
724
|
+
/**
|
|
725
|
+
* Phase 2 — `mandu check` fails (exit 1) when any bailout
|
|
726
|
+
* diagnostic is produced. Useful as a CI gate once a
|
|
727
|
+
* project stabilises its client components. Default
|
|
728
|
+
* `false` (report but do not fail).
|
|
729
|
+
*/
|
|
730
|
+
strict: z.boolean().optional(),
|
|
731
|
+
})
|
|
732
|
+
.strict()
|
|
733
|
+
.optional(),
|
|
734
|
+
})
|
|
735
|
+
.strict()
|
|
736
|
+
.optional(),
|
|
695
737
|
})
|
|
696
738
|
.strict();
|
|
697
739
|
|