@vibesdotdev/host-cef 0.0.0-stage → 1.0.0-rc.3

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.
Files changed (71) hide show
  1. package/LICENSE +18 -0
  2. package/README.md +101 -2
  3. package/dist/cef-environment.impl.d.ts +58 -0
  4. package/dist/cef-environment.impl.d.ts.map +1 -0
  5. package/dist/cef-environment.impl.js +117 -0
  6. package/dist/cef-environment.impl.js.map +1 -0
  7. package/dist/contracts.d.ts +65 -0
  8. package/dist/contracts.d.ts.map +1 -0
  9. package/dist/contracts.js +235 -0
  10. package/dist/contracts.js.map +1 -0
  11. package/dist/docs/plugin.d.ts +10 -0
  12. package/dist/docs/plugin.d.ts.map +1 -0
  13. package/dist/docs/plugin.js +17 -0
  14. package/dist/docs/plugin.js.map +1 -0
  15. package/dist/docs/runtime-environment-cef.docs.descriptor.d.ts +20 -0
  16. package/dist/docs/runtime-environment-cef.docs.descriptor.d.ts.map +1 -0
  17. package/dist/docs/runtime-environment-cef.docs.descriptor.js +174 -0
  18. package/dist/docs/runtime-environment-cef.docs.descriptor.js.map +1 -0
  19. package/dist/environment.d.ts +11 -0
  20. package/dist/environment.d.ts.map +1 -0
  21. package/dist/environment.js +10 -0
  22. package/dist/environment.js.map +1 -0
  23. package/dist/index.d.ts +4 -0
  24. package/dist/index.d.ts.map +1 -0
  25. package/dist/index.js +3 -0
  26. package/dist/index.js.map +1 -0
  27. package/dist/native-host.client.d.ts +15 -0
  28. package/dist/native-host.client.d.ts.map +1 -0
  29. package/dist/native-host.client.descriptor.d.ts +27 -0
  30. package/dist/native-host.client.descriptor.d.ts.map +1 -0
  31. package/dist/native-host.client.descriptor.js +8 -0
  32. package/dist/native-host.client.descriptor.js.map +1 -0
  33. package/dist/native-host.client.impl.browser.d.ts +24 -0
  34. package/dist/native-host.client.impl.browser.d.ts.map +1 -0
  35. package/dist/native-host.client.impl.browser.js +279 -0
  36. package/dist/native-host.client.impl.browser.js.map +1 -0
  37. package/dist/native-host.client.js +5 -0
  38. package/dist/native-host.client.js.map +1 -0
  39. package/dist/native-host.plugin.d.ts +5 -0
  40. package/dist/native-host.plugin.d.ts.map +1 -0
  41. package/dist/native-host.plugin.js +15 -0
  42. package/dist/native-host.plugin.js.map +1 -0
  43. package/dist/runtime-environment-cef.plugin.d.ts +14 -0
  44. package/dist/runtime-environment-cef.plugin.d.ts.map +1 -0
  45. package/dist/runtime-environment-cef.plugin.js +31 -0
  46. package/dist/runtime-environment-cef.plugin.js.map +1 -0
  47. package/dist/schemas/facts.d.ts +48 -0
  48. package/dist/schemas/facts.d.ts.map +1 -0
  49. package/dist/schemas/facts.js +35 -0
  50. package/dist/schemas/facts.js.map +1 -0
  51. package/dist/schemas/failure.d.ts +17 -0
  52. package/dist/schemas/failure.d.ts.map +1 -0
  53. package/dist/schemas/failure.js +7 -0
  54. package/dist/schemas/failure.js.map +1 -0
  55. package/dist/schemas/namespace.d.ts +56 -0
  56. package/dist/schemas/namespace.d.ts.map +1 -0
  57. package/dist/schemas/namespace.js +32 -0
  58. package/dist/schemas/namespace.js.map +1 -0
  59. package/dist/schemas/native-host.d.ts +43 -0
  60. package/dist/schemas/native-host.d.ts.map +1 -0
  61. package/dist/schemas/native-host.js +55 -0
  62. package/dist/schemas/native-host.js.map +1 -0
  63. package/dist/schemas/options.d.ts +88 -0
  64. package/dist/schemas/options.d.ts.map +1 -0
  65. package/dist/schemas/options.js +22 -0
  66. package/dist/schemas/options.js.map +1 -0
  67. package/dist/schemas/readiness.d.ts +10 -0
  68. package/dist/schemas/readiness.d.ts.map +1 -0
  69. package/dist/schemas/readiness.js +11 -0
  70. package/dist/schemas/readiness.js.map +1 -0
  71. package/package.json +91 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native-host.client.impl.browser.js","sourceRoot":"","sources":["../src/native-host.client.impl.browser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,SAAS,EAAsB,MAAM,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O,CAAC,oBAAoB,EAAE,IAAI,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxF,CAAC;CACD"}
@@ -0,0 +1,5 @@
1
+ import { BaseRuntimeClient } from '@vibesdotdev/kernel/client';
2
+ /** Semantic native mechanism; resolve 'host-cef' through kernel/client. Domain replies belong to their owners. */
3
+ export class CefNativeHostClient extends BaseRuntimeClient {
4
+ }
5
+ //# sourceMappingURL=native-host.client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native-host.client.js","sourceRoot":"","sources":["../src/native-host.client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAO/D,kHAAkH;AAClH,MAAM,OAAgB,mBAAoB,SAAQ,iBAA+B;CAMhF"}
@@ -0,0 +1,5 @@
1
+ export declare const cefNativeHostPlugin: import("@vibesdotdev/kernel").RuntimePlugin;
2
+ export { CefNativeHostClient } from './native-host.client.ts';
3
+ export type { CefNativeCall, CefNativeEvent, CefNativeListener, CefLegacyListener } from './schemas/native-host.ts';
4
+ export default cefNativeHostPlugin;
5
+ //# sourceMappingURL=native-host.plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native-host.plugin.d.ts","sourceRoot":"","sources":["../src/native-host.plugin.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,6CAS9B,CAAC;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACpH,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { createRuntimePlugin, loader } from '@vibesdotdev/kernel';
2
+ import { runtimeClientKind } from '@vibesdotdev/kernel/client';
3
+ import nativeHost from "./native-host.client.descriptor.js";
4
+ export const cefNativeHostPlugin = createRuntimePlugin({
5
+ id: 'host-cef-native',
6
+ name: 'CEF Native Host',
7
+ kinds: [runtimeClientKind],
8
+ descriptors: [nativeHost],
9
+ loaders: [
10
+ loader('host-cef', { kind: 'runtime/client', scope: { surfaces: ['browser'] } }, () => import("./native-host.client.impl.browser.js"))
11
+ ]
12
+ });
13
+ export { CefNativeHostClient } from "./native-host.client.js";
14
+ export default cefNativeHostPlugin;
15
+ //# sourceMappingURL=native-host.plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native-host.plugin.js","sourceRoot":"","sources":["../src/native-host.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,UAAU,MAAM,oCAAoC,CAAC;AAE5D,MAAM,CAAC,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;IACtD,EAAE,EAAE,iBAAiB;IACrB,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,CAAC,iBAAiB,CAAC;IAC1B,WAAW,EAAE,CAAC,UAAU,CAAC;IACzB,OAAO,EAAE;QACR,MAAM,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE,EAC9E,GAAG,EAAE,CAAC,MAAM,CAAC,sCAAsC,CAAC,CAAC;KACtD;CACD,CAAC,CAAC;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /** Registers the native-attested CEF renderer as the local runtime environment. */
2
+ import { type RuntimeEnvironmentCefPluginOptions } from './schemas/options.ts';
3
+ export type { RuntimeEnvironmentCefPluginOptions } from './schemas/options.ts';
4
+ export { CEF_ENVIRONMENT_OPTIONS_INVALID } from './contracts.ts';
5
+ /**
6
+ * The plugin options, read once inside a guard (`readCefInput`): a namespace is an object with a callable `call`
7
+ * (kept by reference, so its methods keep their receiver), a workspace is `{ root }` with the same bounded root the
8
+ * environment's constructor reads. A hostile value is refused `INVALID_INPUT` `cef-environment-options-invalid`,
9
+ * reporting issue counts and fixed failure categories only, never raw errors or input values.
10
+ */
11
+ export declare function createRuntimeEnvironmentCefPlugin(optionsInput?: RuntimeEnvironmentCefPluginOptions): import("@vibesdotdev/kernel").RuntimePlugin;
12
+ export declare const runtimeEnvironmentCefPlugin: import("@vibesdotdev/kernel").RuntimePlugin;
13
+ export default runtimeEnvironmentCefPlugin;
14
+ //# sourceMappingURL=runtime-environment-cef.plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-environment-cef.plugin.d.ts","sourceRoot":"","sources":["../src/runtime-environment-cef.plugin.ts"],"names":[],"mappings":"AAAA,mFAAmF;AAYnF,OAAO,EAA4B,KAAK,kCAAkC,EAAkC,MAAM,sBAAsB,CAAC;AACzI,YAAY,EAAE,kCAAkC,EAAE,MAAM,sBAAsB,CAAC;AAE/E,OAAO,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AAEjE;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAAC,YAAY,GAAE,kCAAuC,+CAetG;AAED,eAAO,MAAM,2BAA2B,6CAAsC,CAAC;AAC/E,eAAe,2BAA2B,CAAC"}
@@ -0,0 +1,31 @@
1
+ /** Registers the native-attested CEF renderer as the local runtime environment. */
2
+ import { createRuntimePlugin, environmentKind, registerRuntimeEnvironment } from '@vibesdotdev/kernel';
3
+ import { awaitCefRuntimeNamespace, readCefHostFacts, readCefInput } from "./contracts.js";
4
+ import { PluginOptionsInputSchema } from "./schemas/options.js";
5
+ export { CEF_ENVIRONMENT_OPTIONS_INVALID } from "./contracts.js";
6
+ /**
7
+ * The plugin options, read once inside a guard (`readCefInput`): a namespace is an object with a callable `call`
8
+ * (kept by reference, so its methods keep their receiver), a workspace is `{ root }` with the same bounded root the
9
+ * environment's constructor reads. A hostile value is refused `INVALID_INPUT` `cef-environment-options-invalid`,
10
+ * reporting issue counts and fixed failure categories only, never raw errors or input values.
11
+ */
12
+ export function createRuntimeEnvironmentCefPlugin(optionsInput = {}) {
13
+ const options = readCefInput(PluginOptionsInputSchema, optionsInput) ?? {};
14
+ return createRuntimePlugin({
15
+ id: 'runtime-environment-cef',
16
+ name: 'Runtime Environment — CEF',
17
+ description: 'Credential-dark CEF renderer identity and lifecycle facts.',
18
+ kinds: [environmentKind],
19
+ async onRegister(runtime) {
20
+ const namespace = options.namespace ?? (await awaitCefRuntimeNamespace());
21
+ const { CefEnvironment } = await import("./cef-environment.impl.js");
22
+ const declaration = {};
23
+ if (options.workspace)
24
+ declaration.workspace = options.workspace;
25
+ registerRuntimeEnvironment(runtime, new CefEnvironment(await readCefHostFacts(namespace), declaration, namespace));
26
+ }
27
+ });
28
+ }
29
+ export const runtimeEnvironmentCefPlugin = createRuntimeEnvironmentCefPlugin();
30
+ export default runtimeEnvironmentCefPlugin;
31
+ //# sourceMappingURL=runtime-environment-cef.plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-environment-cef.plugin.js","sourceRoot":"","sources":["../src/runtime-environment-cef.plugin.ts"],"names":[],"mappings":"AAAA,mFAAmF;AAEnF,OAAO,EACN,mBAAmB,EACnB,eAAe,EACf,0BAA0B,EAC1B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,wBAAwB,EACxB,gBAAgB,EAChB,YAAY,EACZ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAA2E,MAAM,sBAAsB,CAAC;AAGzI,OAAO,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,UAAU,iCAAiC,CAAC,eAAmD,EAAE;IACtG,MAAM,OAAO,GAAG,YAAY,CAAC,wBAAwB,EAAE,YAAY,CAAC,IAAI,EAAE,CAAC;IAC3E,OAAO,mBAAmB,CAAC;QAC1B,EAAE,EAAE,yBAAyB;QAC7B,IAAI,EAAE,2BAA2B;QACjC,WAAW,EAAE,4DAA4D;QACzE,KAAK,EAAE,CAAC,eAAe,CAAC;QACxB,KAAK,CAAC,UAAU,CAAC,OAAO;YACvB,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,MAAM,wBAAwB,EAAE,CAAC,CAAC;YAC1E,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,MAAM,CAAC,2BAA2B,CAAC,CAAC;YACrE,MAAM,WAAW,GAA8B,EAAE,CAAC;YAClD,IAAI,OAAO,CAAC,SAAS;gBAAE,WAAW,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;YACjE,0BAA0B,CAAC,OAAO,EAAE,IAAI,cAAc,CAAC,MAAM,gBAAgB,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC;QACpH,CAAC;KACD,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,2BAA2B,GAAG,iCAAiC,EAAE,CAAC;AAC/E,eAAe,2BAA2B,CAAC"}
@@ -0,0 +1,48 @@
1
+ import * as z from 'zod/v4';
2
+ export declare const CefHostLifecycleSchema: z.ZodObject<{
3
+ phase: z.ZodEnum<{
4
+ ready: "ready";
5
+ loading: "loading";
6
+ closing: "closing";
7
+ }>;
8
+ generation: z.ZodNumber;
9
+ }, z.core.$strict>;
10
+ export declare const CefHostFactsSchema: z.ZodObject<{
11
+ protocol: z.ZodObject<{
12
+ major: z.ZodLiteral<1>;
13
+ minor: z.ZodNumber;
14
+ }, z.core.$strict>;
15
+ renderer: z.ZodObject<{
16
+ windowId: z.ZodString;
17
+ frameId: z.ZodString;
18
+ generation: z.ZodNumber;
19
+ origin: z.ZodString;
20
+ }, z.core.$strict>;
21
+ lifecycle: z.ZodObject<{
22
+ phase: z.ZodEnum<{
23
+ ready: "ready";
24
+ loading: "loading";
25
+ closing: "closing";
26
+ }>;
27
+ generation: z.ZodNumber;
28
+ }, z.core.$strict>;
29
+ trustedOrigin: z.ZodString;
30
+ platform: z.ZodEnum<{
31
+ unknown: "unknown";
32
+ macos: "macos";
33
+ linux: "linux";
34
+ windows: "windows";
35
+ }>;
36
+ environmentTier: z.ZodEnum<{
37
+ local: "local";
38
+ staging: "staging";
39
+ production: "production";
40
+ }>;
41
+ dev: z.ZodBoolean;
42
+ channelReady: z.ZodBoolean;
43
+ env: z.ZodRecord<z.ZodString, z.ZodString>;
44
+ capabilities: z.ZodArray<z.ZodString>;
45
+ }, z.core.$strict>;
46
+ export type CefHostLifecycle = z.infer<typeof CefHostLifecycleSchema>;
47
+ export type CefHostFacts = z.infer<typeof CefHostFactsSchema>;
48
+ //# sourceMappingURL=facts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facts.d.ts","sourceRoot":"","sources":["../../src/schemas/facts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAY5B,eAAO,MAAM,sBAAsB;;;;;;;kBAGjC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAmB7B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,35 @@
1
+ import * as z from 'zod/v4';
2
+ import { RuntimeProtocolVersionSchema, RuntimeRendererIdentitySchema } from '@vibesdotdev/kernel/federation';
3
+ /*
4
+ * Runtime's shared federation schemas are non-strict because other consumers
5
+ * parse them too. This package owns the strict parse of host facts, so nested
6
+ * endpoint- or credential-shaped keys fail closed here instead of being
7
+ * silently stripped.
8
+ */
9
+ const StrictProtocolVersionSchema = z.strictObject(RuntimeProtocolVersionSchema.shape);
10
+ const StrictRendererIdentitySchema = z.strictObject(RuntimeRendererIdentitySchema.shape);
11
+ export const CefHostLifecycleSchema = z.strictObject({
12
+ phase: z.enum(['loading', 'ready', 'closing']),
13
+ generation: z.number().int().positive()
14
+ });
15
+ export const CefHostFactsSchema = z.strictObject({
16
+ protocol: StrictProtocolVersionSchema,
17
+ renderer: StrictRendererIdentitySchema,
18
+ lifecycle: CefHostLifecycleSchema,
19
+ trustedOrigin: z.string().min(1),
20
+ platform: z.enum(['macos', 'linux', 'windows', 'unknown']),
21
+ /** Non-secret deployment selection attested by the native runtime host. */
22
+ environmentTier: z.enum(['local', 'staging', 'production']),
23
+ /** Whether the native host runs a development build. */
24
+ dev: z.boolean(),
25
+ channelReady: z.boolean(),
26
+ /**
27
+ * Declared public values (`PUBLIC_*` only) the native host captured once
28
+ * from its launch config. Non-`PUBLIC_` keys fail the parse, so a
29
+ * credential-shaped key can never ride this channel.
30
+ */
31
+ env: z.record(z.string().regex(/^PUBLIC_[A-Z0-9_]+$/), z.string()),
32
+ /** Semantic runtime kind/capability ids only; never native method names. */
33
+ capabilities: z.array(z.string().min(1)).max(256)
34
+ });
35
+ //# sourceMappingURL=facts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facts.js","sourceRoot":"","sources":["../../src/schemas/facts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,4BAA4B,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAE7G;;;;;GAKG;AACH,MAAM,2BAA2B,GAAG,CAAC,CAAC,YAAY,CAAC,4BAA4B,CAAC,KAAK,CAAC,CAAC;AACvF,MAAM,4BAA4B,GAAG,CAAC,CAAC,YAAY,CAAC,6BAA6B,CAAC,KAAK,CAAC,CAAC;AAEzF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACpD,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;IAC9C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,YAAY,CAAC;IAChD,QAAQ,EAAE,2BAA2B;IACrC,QAAQ,EAAE,4BAA4B;IACtC,SAAS,EAAE,sBAAsB;IACjC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAChC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAC1D,2EAA2E;IAC3E,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC;IAC3D,wDAAwD;IACxD,GAAG,EAAE,CAAC,CAAC,OAAO,EAAE;IAChB,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;IACzB;;;;OAIG;IACH,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;IAClE,4EAA4E;IAC5E,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;CACjD,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import * as z from 'zod/v4';
2
+ /** Fixed public categories: even a forged Error subclass name can contain an input value. */
3
+ export declare const FailureNameSchema: z.ZodCatch<z.ZodEnum<{
4
+ Error: "Error";
5
+ NonErrorThrown: "NonErrorThrown";
6
+ UnreadableFailure: "UnreadableFailure";
7
+ CapabilityError: "CapabilityError";
8
+ TypeError: "TypeError";
9
+ RangeError: "RangeError";
10
+ SyntaxError: "SyntaxError";
11
+ ReferenceError: "ReferenceError";
12
+ URIError: "URIError";
13
+ EvalError: "EvalError";
14
+ AggregateError: "AggregateError";
15
+ ZodError: "ZodError";
16
+ }>>;
17
+ //# sourceMappingURL=failure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"failure.d.ts","sourceRoot":"","sources":["../../src/schemas/failure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,6FAA6F;AAC7F,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;GAGb,CAAC"}
@@ -0,0 +1,7 @@
1
+ import * as z from 'zod/v4';
2
+ /** Fixed public categories: even a forged Error subclass name can contain an input value. */
3
+ export const FailureNameSchema = z.enum([
4
+ 'Error', 'TypeError', 'RangeError', 'SyntaxError', 'ReferenceError', 'URIError',
5
+ 'EvalError', 'AggregateError', 'CapabilityError', 'ZodError', 'UnreadableFailure', 'NonErrorThrown'
6
+ ]).catch('Error');
7
+ //# sourceMappingURL=failure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"failure.js","sourceRoot":"","sources":["../../src/schemas/failure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,6FAA6F;AAC7F,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC;IACvC,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,UAAU;IAC/E,WAAW,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,UAAU,EAAE,mBAAmB,EAAE,gBAAgB;CACnG,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,56 @@
1
+ import * as z from 'zod/v4';
2
+ import type { JsonValue } from '@vibesdotdev/kernel/schemas/json';
3
+ export declare const CefRuntimeNamespaceSchema: z.ZodCustom<{
4
+ call: (method: string, args?: JsonValue) => Promise<JsonValue>;
5
+ subscribe?: ((event: string, listener: (value: JsonValue) => void) => () => void) | undefined;
6
+ }, {
7
+ call: (method: string, args?: JsonValue) => Promise<JsonValue>;
8
+ subscribe?: ((event: string, listener: (value: JsonValue) => void) => () => void) | undefined;
9
+ }>;
10
+ export type CefRuntimeNamespace = z.infer<typeof CefRuntimeNamespaceSchema>;
11
+ export declare const CefNamespaceGlobalSchema: z.ZodObject<{
12
+ vibes: z.ZodObject<{
13
+ runtime: z.ZodCustom<{
14
+ call: (method: string, args?: JsonValue) => Promise<JsonValue>;
15
+ subscribe?: ((event: string, listener: (value: JsonValue) => void) => () => void) | undefined;
16
+ }, {
17
+ call: (method: string, args?: JsonValue) => Promise<JsonValue>;
18
+ subscribe?: ((event: string, listener: (value: JsonValue) => void) => () => void) | undefined;
19
+ }>;
20
+ }, z.core.$strip>;
21
+ }, z.core.$strip>;
22
+ /**
23
+ * The renderer's `performance` global: the browser performance clock this host reads, once, at construction.
24
+ * Structural validation keeps the page's own object: `Performance.now` is a browser interface operation that
25
+ * requires its original receiver, so the clock must never be read off a copied object.
26
+ */
27
+ export declare const CefPerformanceHolderSchema: z.ZodCustom<{
28
+ performance: {
29
+ now: () => number;
30
+ };
31
+ }, {
32
+ performance: {
33
+ now: () => number;
34
+ };
35
+ }>;
36
+ /** Keep the page itself: EventTarget methods require their original receiver. */
37
+ export declare const CefMarkedPageSchema: z.ZodCustom<{
38
+ addEventListener: (type: "vibes:runtime-host-ready" | "bridgeReady", listener: () => void, options: {
39
+ once: true;
40
+ }) => void;
41
+ removeEventListener: (type: string, listener: () => void) => void;
42
+ } & ({
43
+ __vibesNativeHost: "cef";
44
+ } | {
45
+ __vibes_runtime_conduit_enabled: true;
46
+ }), {
47
+ addEventListener: (type: "vibes:runtime-host-ready" | "bridgeReady", listener: () => void, options: {
48
+ once: true;
49
+ }) => void;
50
+ removeEventListener: (type: string, listener: () => void) => void;
51
+ } & ({
52
+ __vibesNativeHost: "cef";
53
+ } | {
54
+ __vibes_runtime_conduit_enabled: true;
55
+ })>;
56
+ //# sourceMappingURL=namespace.d.ts.map
@@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AAE,IAAI,CAAA;KAAE,KAC3F,IAAI;gCAC4B,MAAM,YAAY,MAAM,IAAI,KAAK,IAAI;;;;;GAW1E,CAAC"}
@@ -0,0 +1,32 @@
1
+ import * as z from 'zod/v4';
2
+ /** Validate callable structure without wrapping methods or copying the native receiver. */
3
+ const NamespaceMethodsSchema = z.object({
4
+ call: z.custom((value) => z.function().safeParse(value).success),
5
+ subscribe: z.custom((value) => z.function().safeParse(value).success).optional()
6
+ });
7
+ export const CefRuntimeNamespaceSchema = z.custom((value) => NamespaceMethodsSchema.safeParse(value).success);
8
+ export const CefNamespaceGlobalSchema = z.object({
9
+ vibes: z.object({ runtime: CefRuntimeNamespaceSchema })
10
+ });
11
+ const PerformanceClockSchema = z.object({
12
+ now: z.custom((value) => z.function().safeParse(value).success)
13
+ });
14
+ const PerformanceHolderSchema = z.object({
15
+ performance: PerformanceClockSchema
16
+ });
17
+ /**
18
+ * The renderer's `performance` global: the browser performance clock this host reads, once, at construction.
19
+ * Structural validation keeps the page's own object: `Performance.now` is a browser interface operation that
20
+ * requires its original receiver, so the clock must never be read off a copied object.
21
+ */
22
+ export const CefPerformanceHolderSchema = z.custom((value) => PerformanceHolderSchema.safeParse(value).success);
23
+ const MarkedPageEventsSchema = z.object({
24
+ addEventListener: z.custom((value) => z.function().safeParse(value).success),
25
+ removeEventListener: z.custom((value) => z.function().safeParse(value).success)
26
+ }).and(z.union([
27
+ z.object({ __vibesNativeHost: z.literal('cef') }),
28
+ z.object({ __vibes_runtime_conduit_enabled: z.literal(true) })
29
+ ]));
30
+ /** Keep the page itself: EventTarget methods require their original receiver. */
31
+ export const CefMarkedPageSchema = z.custom((value) => MarkedPageEventsSchema.safeParse(value).success);
32
+ //# sourceMappingURL=namespace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"namespace.js","sourceRoot":"","sources":["../../src/schemas/namespace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,2FAA2F;AAC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AAgB,EAAE,CAAC,CAAC,MAAM,CAEf,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;IAC5D,mBAAmB,EAAE,CAAC,CAAC,MAAM,CAC5B,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAChD;CACD,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC;IACd,CAAC,CAAC,MAAM,CAAC,EAAE,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;IACjD,CAAC,CAAC,MAAM,CAAC,EAAE,+BAA+B,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;CAC9D,CAAC,CAAC,CAAC;AAEJ,iFAAiF;AACjF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAC1C,CAAC,KAAK,EAAE,EAAE,CAAC,sBAAsB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAC1D,CAAC"}
@@ -0,0 +1,43 @@
1
+ import * as z from 'zod/v4';
2
+ import { type JsonValue } from '@vibesdotdev/kernel/schemas/json';
3
+ export declare const CefNativeNameSchema: z.ZodString;
4
+ export declare const CefNativeAddressSchema: z.ZodObject<{
5
+ scope: z.ZodEnum<{
6
+ bridge: "bridge";
7
+ vibes: "vibes";
8
+ }>;
9
+ namespace: z.ZodNullable<z.ZodString>;
10
+ }, z.core.$strip>;
11
+ export declare const CefNativeCallSchema: z.ZodObject<{
12
+ scope: z.ZodEnum<{
13
+ bridge: "bridge";
14
+ vibes: "vibes";
15
+ }>;
16
+ namespace: z.ZodNullable<z.ZodString>;
17
+ method: z.ZodString;
18
+ args: z.ZodOptional<z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>>;
19
+ }, z.core.$strip>;
20
+ export declare const CefNativeEventSchema: z.ZodObject<{
21
+ scope: z.ZodEnum<{
22
+ bridge: "bridge";
23
+ vibes: "vibes";
24
+ }>;
25
+ namespace: z.ZodNullable<z.ZodString>;
26
+ event: z.ZodString;
27
+ }, z.core.$strip>;
28
+ export declare const CefNativeListenerSchema: z.ZodCustom<z.core.$InferOuterFunctionType<z.ZodTuple<readonly [z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>], null>, z.ZodVoid>, z.core.$InferOuterFunctionType<z.ZodTuple<readonly [z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>], null>, z.ZodVoid>>;
29
+ export declare const CefLegacyListenerSchema: z.ZodCustom<z.core.$InferOuterFunctionType<z.ZodTuple<readonly [z.ZodString, z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>], null>, z.ZodVoid>, z.core.$InferOuterFunctionType<z.ZodTuple<readonly [z.ZodString, z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>], null>, z.ZodVoid>>;
30
+ export declare const CefNativeDisposeSchema: z.ZodCustom<z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodVoid>, z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodVoid>>;
31
+ export declare const CefNativeFunctionSchema: z.ZodCustom<z.core.$InferOuterFunctionType<z.ZodTuple<readonly [z.ZodString, z.ZodOptional<z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>>], null>, z.ZodUnion<readonly [z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>, z.ZodPromise<z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>>]>>, z.core.$InferOuterFunctionType<z.ZodTuple<readonly [z.ZodString, z.ZodOptional<z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>>], null>, z.ZodUnion<readonly [z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>, z.ZodPromise<z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>>]>>>;
32
+ export declare const CefNativeEmitSchema: z.ZodCustom<z.core.$InferOuterFunctionType<z.ZodTuple<readonly [z.ZodString, z.ZodOptional<z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>>], null>, z.ZodVoid>, z.core.$InferOuterFunctionType<z.ZodTuple<readonly [z.ZodString, z.ZodOptional<z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>>], null>, z.ZodVoid>>;
33
+ export declare const CefNativeSubscribeSchema: z.ZodCustom<z.core.$InferOuterFunctionType<z.ZodTuple<readonly [z.ZodString, z.ZodCustom<z.core.$InferOuterFunctionType<z.ZodTuple<readonly [z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>], null>, z.ZodVoid>, z.core.$InferOuterFunctionType<z.ZodTuple<readonly [z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>], null>, z.ZodVoid>>], null>, z.ZodCustom<z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodVoid>, z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodVoid>>>, z.core.$InferOuterFunctionType<z.ZodTuple<readonly [z.ZodString, z.ZodCustom<z.core.$InferOuterFunctionType<z.ZodTuple<readonly [z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>], null>, z.ZodVoid>, z.core.$InferOuterFunctionType<z.ZodTuple<readonly [z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>], null>, z.ZodVoid>>], null>, z.ZodCustom<z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodVoid>, z.core.$InferOuterFunctionType<z.ZodTuple<readonly [], null>, z.ZodVoid>>>>;
34
+ export declare const CefNativeObjectSchema: z.ZodCustom<object, object>;
35
+ /** Legacy hosts serialize JSON; ordinary non-JSON strings remain supported payloads. */
36
+ export declare const CefNativePayloadSchema: z.ZodPreprocess<z.ZodType<JsonValue, JsonValue, z.core.$ZodTypeInternals<JsonValue, JsonValue>>, unknown>;
37
+ export type CefNativeAddress = z.infer<typeof CefNativeAddressSchema>;
38
+ export type CefNativeCall = z.infer<typeof CefNativeCallSchema>;
39
+ export type CefNativeEvent = z.infer<typeof CefNativeEventSchema>;
40
+ export type CefNativeListener = z.infer<typeof CefNativeListenerSchema>;
41
+ export type CefLegacyListener = z.infer<typeof CefLegacyListenerSchema>;
42
+ export type CefNativeObject = z.infer<typeof CefNativeObjectSchema>;
43
+ //# sourceMappingURL=native-host.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native-host.d.ts","sourceRoot":"","sources":["../../src/schemas/native-host.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAEnF,eAAO,MAAM,mBAAmB,aAG/B,CAAC;AACF,eAAO,MAAM,sBAAsB;;;;;;iBAGjC,CAAC;AACH,eAAO,MAAM,mBAAmB;;;;;;;;iBAG9B,CAAC;AACH,eAAO,MAAM,oBAAoB;;;;;;;iBAAgE,CAAC;AAIlG,eAAO,MAAM,uBAAuB,+TAEnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,yVAEnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,iKAElC,CAAC;AAKF,eAAO,MAAM,uBAAuB,+uBAEnC,CAAC;AAIF,eAAO,MAAM,mBAAmB,uXAE/B,CAAC;AAIF,eAAO,MAAM,wBAAwB,imCAEpC,CAAC;AACF,eAAO,MAAM,qBAAqB,6BAEjC,CAAC;AAaF,wFAAwF;AACxF,eAAO,MAAM,sBAAsB,2GAIhB,CAAC;AACpB,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,55 @@
1
+ import * as z from 'zod/v4';
2
+ import { settleNow } from '@vibesdotdev/kernel';
3
+ import { JsonValueSchema } from '@vibesdotdev/kernel/schemas/json';
4
+ export const CefNativeNameSchema = z.string().min(1).max(256).refine((value) => value.split('.').every((part) => part.length > 0 && !['__proto__', 'prototype', 'constructor'].includes(part)));
5
+ export const CefNativeAddressSchema = z.object({
6
+ scope: z.enum(['bridge', 'vibes']),
7
+ namespace: CefNativeNameSchema.nullable()
8
+ });
9
+ export const CefNativeCallSchema = CefNativeAddressSchema.extend({
10
+ method: CefNativeNameSchema,
11
+ args: JsonValueSchema.optional()
12
+ });
13
+ export const CefNativeEventSchema = CefNativeAddressSchema.extend({ event: CefNativeNameSchema });
14
+ /** Structural function checks keep the native callable itself and its receiver. */
15
+ const ListenerContract = z.function({ input: [JsonValueSchema], output: z.void() });
16
+ export const CefNativeListenerSchema = z.custom((value) => z.function().safeParse(value).success);
17
+ const LegacyContract = z.function({ input: [CefNativeNameSchema, JsonValueSchema], output: z.void() });
18
+ export const CefLegacyListenerSchema = z.custom((value) => z.function().safeParse(value).success);
19
+ const DisposeContract = z.function({ input: [], output: z.void() });
20
+ export const CefNativeDisposeSchema = z.custom((value) => z.function().safeParse(value).success);
21
+ const CallContract = z.function({
22
+ input: [CefNativeNameSchema, JsonValueSchema.optional()],
23
+ output: z.union([JsonValueSchema, z.promise(JsonValueSchema)])
24
+ });
25
+ export const CefNativeFunctionSchema = z.custom((value) => z.function().safeParse(value).success);
26
+ const EmitContract = z.function({
27
+ input: [CefNativeNameSchema, JsonValueSchema.optional()], output: z.void()
28
+ });
29
+ export const CefNativeEmitSchema = z.custom((value) => z.function().safeParse(value).success);
30
+ const SubscribeContract = z.function({
31
+ input: [CefNativeNameSchema, CefNativeListenerSchema], output: CefNativeDisposeSchema
32
+ });
33
+ export const CefNativeSubscribeSchema = z.custom((value) => z.function().safeParse(value).success);
34
+ export const CefNativeObjectSchema = z.custom((value) => z.object({}).safeParse(value).success);
35
+ /**
36
+ * Parse a host payload string as JSON: a non-JSON string is confirmed not-JSON
37
+ * (a `SyntaxError` is JSON.parse's only way of saying so) and stays the ordinary
38
+ * string payload; any other throw is a real failure and is rethrown unchanged.
39
+ */
40
+ function parseNativePayload(text) {
41
+ const parsed = settleNow(() => JSON.parse(text));
42
+ if (parsed.ok)
43
+ return parsed.value;
44
+ if (parsed.cause instanceof SyntaxError)
45
+ return text;
46
+ throw parsed.cause;
47
+ }
48
+ /** Legacy hosts serialize JSON; ordinary non-JSON strings remain supported payloads. */
49
+ export const CefNativePayloadSchema = z.preprocess((value) => {
50
+ const text = z.string().safeParse(value);
51
+ if (!text.success)
52
+ return value;
53
+ return parseNativePayload(text.data);
54
+ }, JsonValueSchema);
55
+ //# sourceMappingURL=native-host.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native-host.js","sourceRoot":"","sources":["../../src/schemas/native-host.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EA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AE,OAAO,KAAK,CAAC;IAChC,OAAO,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACtC,CAAC,EAAE,eAAe,CAAC,CAAC"}
@@ -0,0 +1,88 @@
1
+ import * as z from 'zod/v4';
2
+ export declare const CefWorkspaceDeclarationSchema: z.ZodObject<{
3
+ root: z.ZodString;
4
+ }, z.core.$strip>;
5
+ export declare const CefEnvironmentDeclarationSchema: z.ZodObject<{
6
+ workspace: z.ZodOptional<z.ZodObject<{
7
+ root: z.ZodString;
8
+ }, z.core.$strip>>;
9
+ }, z.core.$strip>;
10
+ export type CefEnvironmentDeclaration = z.infer<typeof CefEnvironmentDeclarationSchema>;
11
+ export declare const CefEnvironmentInputSchema: z.ZodObject<{
12
+ facts: z.ZodObject<{
13
+ protocol: z.ZodObject<{
14
+ major: z.ZodLiteral<1>;
15
+ minor: z.ZodNumber;
16
+ }, z.core.$strict>;
17
+ renderer: z.ZodObject<{
18
+ windowId: z.ZodString;
19
+ frameId: z.ZodString;
20
+ generation: z.ZodNumber;
21
+ origin: z.ZodString;
22
+ }, z.core.$strict>;
23
+ lifecycle: z.ZodObject<{
24
+ phase: z.ZodEnum<{
25
+ ready: "ready";
26
+ loading: "loading";
27
+ closing: "closing";
28
+ }>;
29
+ generation: z.ZodNumber;
30
+ }, z.core.$strict>;
31
+ trustedOrigin: z.ZodString;
32
+ platform: z.ZodEnum<{
33
+ unknown: "unknown";
34
+ macos: "macos";
35
+ linux: "linux";
36
+ windows: "windows";
37
+ }>;
38
+ environmentTier: z.ZodEnum<{
39
+ local: "local";
40
+ staging: "staging";
41
+ production: "production";
42
+ }>;
43
+ dev: z.ZodBoolean;
44
+ channelReady: z.ZodBoolean;
45
+ env: z.ZodRecord<z.ZodString, z.ZodString>;
46
+ capabilities: z.ZodArray<z.ZodString>;
47
+ }, z.core.$strict>;
48
+ declaration: z.ZodObject<{
49
+ workspace: z.ZodOptional<z.ZodObject<{
50
+ root: z.ZodString;
51
+ }, z.core.$strip>>;
52
+ }, z.core.$strip>;
53
+ namespace: z.ZodOptional<z.ZodCustom<{
54
+ call: (method: string, args?: import("@vibesdotdev/kernel/bootstrap").JsonValue) => Promise<import("@vibesdotdev/kernel/bootstrap").JsonValue>;
55
+ subscribe?: ((event: string, listener: (value: import("@vibesdotdev/kernel/bootstrap").JsonValue) => void) => () => void) | undefined;
56
+ }, {
57
+ call: (method: string, args?: import("@vibesdotdev/kernel/bootstrap").JsonValue) => Promise<import("@vibesdotdev/kernel/bootstrap").JsonValue>;
58
+ subscribe?: ((event: string, listener: (value: import("@vibesdotdev/kernel/bootstrap").JsonValue) => void) => () => void) | undefined;
59
+ }>>;
60
+ }, z.core.$strip>;
61
+ export declare const PluginOptionsSchema: z.ZodObject<{
62
+ signal: z.ZodOptional<z.ZodCustom<AbortSignal, AbortSignal>>;
63
+ namespace: z.ZodOptional<z.ZodCustom<{
64
+ call: (method: string, args?: import("@vibesdotdev/kernel/bootstrap").JsonValue) => Promise<import("@vibesdotdev/kernel/bootstrap").JsonValue>;
65
+ subscribe?: ((event: string, listener: (value: import("@vibesdotdev/kernel/bootstrap").JsonValue) => void) => () => void) | undefined;
66
+ }, {
67
+ call: (method: string, args?: import("@vibesdotdev/kernel/bootstrap").JsonValue) => Promise<import("@vibesdotdev/kernel/bootstrap").JsonValue>;
68
+ subscribe?: ((event: string, listener: (value: import("@vibesdotdev/kernel/bootstrap").JsonValue) => void) => () => void) | undefined;
69
+ }>>;
70
+ workspace: z.ZodOptional<z.ZodObject<{
71
+ root: z.ZodString;
72
+ }, z.core.$strip>>;
73
+ }, z.core.$strip>;
74
+ export type RuntimeEnvironmentCefPluginOptions = z.infer<typeof PluginOptionsSchema>;
75
+ export declare const PluginOptionsInputSchema: z.ZodOptional<z.ZodObject<{
76
+ signal: z.ZodOptional<z.ZodCustom<AbortSignal, AbortSignal>>;
77
+ namespace: z.ZodOptional<z.ZodCustom<{
78
+ call: (method: string, args?: import("@vibesdotdev/kernel/bootstrap").JsonValue) => Promise<import("@vibesdotdev/kernel/bootstrap").JsonValue>;
79
+ subscribe?: ((event: string, listener: (value: import("@vibesdotdev/kernel/bootstrap").JsonValue) => void) => () => void) | undefined;
80
+ }, {
81
+ call: (method: string, args?: import("@vibesdotdev/kernel/bootstrap").JsonValue) => Promise<import("@vibesdotdev/kernel/bootstrap").JsonValue>;
82
+ subscribe?: ((event: string, listener: (value: import("@vibesdotdev/kernel/bootstrap").JsonValue) => void) => () => void) | undefined;
83
+ }>>;
84
+ workspace: z.ZodOptional<z.ZodObject<{
85
+ root: z.ZodString;
86
+ }, z.core.$strip>>;
87
+ }, z.core.$strip>>;
88
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/schemas/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAK5B,eAAO,MAAM,6BAA6B;;iBAExC,CAAC;AACH,eAAO,MAAM,+BAA+B;;;;iBAE1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIpC,CAAC;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;iBAI9B,CAAC;AACH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;kBAAiC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import * as z from 'zod/v4';
2
+ import { CefAbortSignalSchema } from "./readiness.js";
3
+ import { CefHostFactsSchema } from "./facts.js";
4
+ import { CefRuntimeNamespaceSchema } from "./namespace.js";
5
+ export const CefWorkspaceDeclarationSchema = z.object({
6
+ root: z.string().min(1).max(4096)
7
+ });
8
+ export const CefEnvironmentDeclarationSchema = z.object({
9
+ workspace: CefWorkspaceDeclarationSchema.optional()
10
+ });
11
+ export const CefEnvironmentInputSchema = z.object({
12
+ facts: CefHostFactsSchema,
13
+ declaration: CefEnvironmentDeclarationSchema,
14
+ namespace: CefRuntimeNamespaceSchema.optional()
15
+ });
16
+ export const PluginOptionsSchema = z.object({
17
+ signal: CefAbortSignalSchema.optional(),
18
+ namespace: CefRuntimeNamespaceSchema.optional(),
19
+ workspace: CefWorkspaceDeclarationSchema.optional()
20
+ });
21
+ export const PluginOptionsInputSchema = PluginOptionsSchema.optional();
22
+ //# sourceMappingURL=options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/schemas/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;CACjC,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,SAAS,EAAE,6BAA6B,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,+BAA+B;IAC5C,SAAS,EAAE,yBAAyB,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,oBAAoB,CAAC,QAAQ,EAAE;IACvC,SAAS,EAAE,yBAAyB,CAAC,QAAQ,EAAE;IAC/C,SAAS,EAAE,6BAA6B,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CAAC,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ import * as z from 'zod/v4';
2
+ export declare const CefAbortSignalSchema: z.ZodCustom<AbortSignal, AbortSignal>;
3
+ export declare const CefReadinessOptionsSchema: z.ZodObject<{
4
+ signal: z.ZodOptional<z.ZodCustom<AbortSignal, AbortSignal>>;
5
+ lifecycle: z.ZodOptional<z.ZodObject<{
6
+ signal: z.ZodCustom<AbortSignal, AbortSignal>;
7
+ }, z.core.$strip>>;
8
+ }, z.core.$strip>;
9
+ export type CefReadinessOptions = z.infer<typeof CefReadinessOptionsSchema>;
10
+ //# sourceMappingURL=readiness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readiness.d.ts","sourceRoot":"","sources":["../../src/schemas/readiness.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,eAAO,MAAM,oBAAoB,uCAMhC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;iBAGpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}