@vibeorm/runtime 1.3.0 → 2.0.0-alpha.2

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 (44) hide show
  1. package/README.md +50 -107
  2. package/dist/adapter.d.ts +124 -0
  3. package/dist/adapter.d.ts.map +1 -0
  4. package/dist/client.d.ts +152 -0
  5. package/dist/client.d.ts.map +1 -0
  6. package/dist/codecs.d.ts +170 -0
  7. package/dist/codecs.d.ts.map +1 -0
  8. package/dist/computed.d.ts +43 -0
  9. package/dist/computed.d.ts.map +1 -0
  10. package/dist/extensions.d.ts +102 -0
  11. package/dist/extensions.d.ts.map +1 -0
  12. package/dist/index.d.ts +29 -0
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/index.js +6625 -0
  15. package/dist/index.js.map +21 -0
  16. package/dist/model-meta.d.ts +156 -0
  17. package/dist/model-meta.d.ts.map +1 -0
  18. package/dist/nested-writes.d.ts +100 -0
  19. package/dist/nested-writes.d.ts.map +1 -0
  20. package/dist/query-builder.d.ts +250 -0
  21. package/dist/query-builder.d.ts.map +1 -0
  22. package/dist/relation-loader.d.ts +75 -0
  23. package/dist/relation-loader.d.ts.map +1 -0
  24. package/dist/relation-plan.d.ts +103 -0
  25. package/dist/relation-plan.d.ts.map +1 -0
  26. package/dist/render-cache.d.ts +48 -0
  27. package/dist/render-cache.d.ts.map +1 -0
  28. package/dist/views.d.ts +97 -0
  29. package/dist/views.d.ts.map +1 -0
  30. package/package.json +31 -26
  31. package/src/adapter.ts +0 -146
  32. package/src/client.ts +0 -2172
  33. package/src/coerce.ts +0 -184
  34. package/src/count-loader.ts +0 -152
  35. package/src/errors.ts +0 -492
  36. package/src/id-generators.ts +0 -151
  37. package/src/index.ts +0 -55
  38. package/src/lateral-join-builder.ts +0 -1053
  39. package/src/query-builder.ts +0 -1832
  40. package/src/relation-loader.ts +0 -534
  41. package/src/retry.ts +0 -183
  42. package/src/types.ts +0 -317
  43. package/src/view.ts +0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C;IACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAChC,6FAA6F;IAC7F,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAkB5B;AA2CD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE;IAC1C,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CACjC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAkB5B;AAID;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAClD,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,OAAO,CAAC;CAChB,GAAG,OAAO,CAgBV"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Runtime side of computed fields (config-declared derived result properties).
3
+ *
4
+ * The runtime stays config-AGNOSTIC the same way it is extension-agnostic:
5
+ * `createClient({ computed })` receives the live spec object plus the baked
6
+ * manifest from the generated client, verifies them against each other
7
+ * (VIBE_STALE_CLIENT before the first query), folds the specs into the model
8
+ * metadata, and `applyComputedFields` runs the compute functions at every row
9
+ * materialization point — top-level rows, mutation returns, and relation-loaded
10
+ * children on BOTH strategies (the codec lesson from LEARNINGS, applied to
11
+ * computes).
12
+ */
13
+ import type { ComputedConfig, ComputedManifestEntry } from "@vibeorm/schema";
14
+ import type { ModelMeta } from "./model-meta.ts";
15
+ /** Computed-field wiring accepted by `createClient`. */
16
+ export type ClientComputedOptions = {
17
+ /** The live spec object (`vibeorm.config.ts`'s `computed`) — provides the compute functions. */
18
+ readonly specs?: ComputedConfig;
19
+ /** Manifest baked by the generator — presence turns on the staleness check. */
20
+ readonly manifest?: readonly ComputedManifestEntry[];
21
+ };
22
+ /**
23
+ * Compare the generated client's baked computed manifest against the live
24
+ * config. Any drift — missing, added, type or needs change — throws
25
+ * `VIBE_STALE_CLIENT` at construction instead of an untyped (or missing)
26
+ * property surprise at query time.
27
+ */
28
+ export declare function assertComputedManifest(params: {
29
+ manifest: readonly ComputedManifestEntry[];
30
+ specs: ComputedConfig | undefined;
31
+ }): void;
32
+ /**
33
+ * Attach the named computed fields to each row, in place. Runs BEFORE
34
+ * projection narrows rows to `resultFields`, so `needs` scalars are present
35
+ * even when the caller did not select them. `names` is always a concrete list
36
+ * (the builder resolves "all" at plan time); `null` means nothing to do.
37
+ */
38
+ export declare function applyComputedFields(params: {
39
+ model: ModelMeta;
40
+ rows: readonly Record<string, unknown>[];
41
+ names: readonly string[] | null;
42
+ }): void;
43
+ //# sourceMappingURL=computed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computed.d.ts","sourceRoot":"","sources":["../src/computed.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAIjD,wDAAwD;AACxD,MAAM,MAAM,qBAAqB,GAAG;IAClC,gGAAgG;IAChG,QAAQ,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC;IAChC,+EAA+E;IAC/E,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,qBAAqB,EAAE,CAAC;CACtD,CAAC;AAWF;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE;IAC7C,QAAQ,EAAE,SAAS,qBAAqB,EAAE,CAAC;IAC3C,KAAK,EAAE,cAAc,GAAG,SAAS,CAAC;CACnC,GAAG,IAAI,CAqCP;AAID;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE;IAC1C,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IACzC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC;CACjC,GAAG,IAAI,CAWP"}
@@ -0,0 +1,102 @@
1
+ /**
2
+ * Runtime side of the extension framework (extensions.md §3).
3
+ *
4
+ * The runtime stays extension-AGNOSTIC: it never imports an extension. What it
5
+ * offers is plumbing —
6
+ * - mounts: generate-time baked surfaces (D9) attached to model delegates
7
+ * and the client on every build, transaction clients included;
8
+ * - a manifest check throwing VIBE_STALE_CLIENT before the first query;
9
+ * - where-operator injection (`{ name: { similarTo: … } }`) compiled through
10
+ * the extension's sql plane into bound fragments;
11
+ * - onConnect session hooks run by `$connect()`.
12
+ */
13
+ import type { Dialect, ExtensionManifestEntry, Provider, VibeExtension } from "@vibeorm/schema";
14
+ import type { SqlDialect, SqlExpr } from "@vibeorm/sql";
15
+ import type { ExtensionOperatorFn, ModelMeta, RuntimeMeta } from "./model-meta.ts";
16
+ /** What a mounted extension surface gets to work with. */
17
+ export type ExtensionMountContext = {
18
+ readonly extension: string;
19
+ readonly dialect: SqlDialect;
20
+ readonly provider: Provider;
21
+ readonly meta: RuntimeMeta;
22
+ /** The mount's model, or `null` for client-scope mounts. */
23
+ readonly model: ModelMeta | null;
24
+ /**
25
+ * Execute a row-returning statement on the CURRENT connection (transaction
26
+ * clients re-mount with their tx adapter). Rows decode through the mount
27
+ * model's codec plan; unknown columns (scores, distances) pass verbatim.
28
+ * Reports to `$on("query")` under `method`.
29
+ */
30
+ readonly executeRows: (params: {
31
+ text: string;
32
+ values: readonly unknown[];
33
+ method?: string;
34
+ }) => Promise<Record<string, unknown>[]>;
35
+ /** Compile a user `where` tree for AND-ing into extension SQL. */
36
+ readonly compileWhere: (params: {
37
+ where: Record<string, unknown>;
38
+ model?: string;
39
+ qualify?: string;
40
+ }) => SqlExpr | undefined;
41
+ };
42
+ /**
43
+ * One baked client surface: the generated client passes these to
44
+ * `createClient` and the runtime attaches `create(ctx)`'s result under
45
+ * `property` on the model delegate (scope "model") or the client (scope
46
+ * "client", `$`-prefixed) — on every client build, so `$transaction` callbacks
47
+ * see the same surface.
48
+ */
49
+ export type ClientExtensionMount = {
50
+ readonly extension: string;
51
+ readonly scope: "model" | "client";
52
+ /** Model name (IR name) — required for scope "model". */
53
+ readonly model?: string;
54
+ readonly property: string;
55
+ readonly create: (ctx: ExtensionMountContext) => unknown;
56
+ };
57
+ /** Extension wiring accepted by `createClient`. */
58
+ export type ClientExtensionsOptions = {
59
+ /**
60
+ * Live extension instances (`[search(), trgm({ … })]`). Provide the where-
61
+ * operator and onConnect planes, and are verified against `manifest`.
62
+ */
63
+ readonly instances?: readonly VibeExtension[];
64
+ /** Manifest baked by the generator — presence turns on the staleness check. */
65
+ readonly manifest?: readonly ExtensionManifestEntry[];
66
+ /** Baked surface mounts emitted by the generator. */
67
+ readonly mounts?: readonly ClientExtensionMount[];
68
+ };
69
+ /**
70
+ * Compare the generated client's baked manifest against the live extension
71
+ * instances. Any drift — missing, added, version or options change — throws
72
+ * `VIBE_STALE_CLIENT` at construction instead of undefined-method surprises
73
+ * at query time.
74
+ */
75
+ export declare function assertExtensionManifest(params: {
76
+ manifest: readonly ExtensionManifestEntry[];
77
+ instances: readonly VibeExtension[] | undefined;
78
+ }): void;
79
+ /**
80
+ * Index the configured extensions' where-operators, pre-bound to the dialect
81
+ * and provider. `null` when none contribute any (the common case — keeps the
82
+ * hot path free of an empty-map lookup).
83
+ */
84
+ export declare function buildExtensionOperatorMap(params: {
85
+ instances: readonly VibeExtension[];
86
+ dialect: Dialect;
87
+ provider: Provider;
88
+ }): ReadonlyMap<string, ExtensionOperatorFn> | null;
89
+ /** A prepared onConnect hook — run by `$connect()` after the adapter connects. */
90
+ export type ConnectHook = (params: {
91
+ execute: (execParams: {
92
+ text: string;
93
+ values?: readonly unknown[];
94
+ }) => Promise<readonly Record<string, unknown>[]>;
95
+ }) => Promise<void>;
96
+ /** Collect the configured extensions' onConnect hooks, options pre-bound. */
97
+ export declare function buildConnectHooks(params: {
98
+ instances: readonly VibeExtension[];
99
+ dialect: Dialect;
100
+ provider: Provider;
101
+ }): readonly ConnectHook[];
102
+ //# sourceMappingURL=extensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../src/extensions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,KAAK,EACV,OAAO,EACP,sBAAsB,EACtB,QAAQ,EACR,aAAa,EACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAInF,0DAA0D;AAC1D,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,4DAA4D;IAC5D,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;IACjC;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE;QAC7B,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,SAAS,OAAO,EAAE,CAAC;QAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,KAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;IACzC,kEAAkE;IAClE,QAAQ,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE;QAC9B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAA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G,CAAC,MAAM,EAAE;IACjC,OAAO,EAAE,CAAC,UAAU,EAAE;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;KAC7B,KAAK,OAAO,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;CACnD,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEpB,6EAA6E;AAC7E,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IACxC,SAAS,EAAE,SAAS,aAAa,EAAE,CAAC;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,GAAG,SAAS,WAAW,EAAE,CAoBzB"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @vibeorm/runtime — driver-agnostic query engine and client runtime.
3
+ * P2 core slice: adapter contract (frozen), runtime metadata, the codec table,
4
+ * the query builder and the dynamic client. The typed generated client wraps
5
+ * this surface in P2 proper.
6
+ */
7
+ export { toSqlExecutor } from "./adapter.ts";
8
+ export type { DatabaseAdapter, IsolationLevel, QueryResult, SqlExecutor, TransactionOptions, } from "./adapter.ts";
9
+ export { buildRuntimeMeta, generateCuid, generateDefaultValue, generateNanoid, generateUlid, generateUuid, getFieldMeta, getModelMeta, toClientName, } from "./model-meta.ts";
10
+ export type { ComputedFieldMeta, DefaultOrigin, ExtensionOperatorFn, FieldMeta, ModelMeta, RuntimeMeta, } from "./model-meta.ts";
11
+ export { DIALECT_CODECS, MYSQL_CODECS, POSTGRES_CODECS, SQLITE_CODECS, decodeAggregateValue, decodeIsNoop, decodeRow, decodeRows, decodeValue, encodeValue, getCodec, } from "./codecs.ts";
12
+ export type { CodecTable, ScalarCodec, WireFidelity } from "./codecs.ts";
13
+ export { COUNT_ALIAS, buildQuery, compileOrderBy, compileSelect, compileWhere, lateralColumnAlias, resolveResultShape, } from "./query-builder.ts";
14
+ export type { AggregateKey, AggregateSelection, AggregateSpec, BuilderClientOptions, QueryMethod, QueryPlan, RelationStrategy, } from "./query-builder.ts";
15
+ export { resolveRelationLink, resolveRelationSelection } from "./relation-plan.ts";
16
+ export type { RelationArgs, RelationKind, RelationLink, RelationSelection, RelationTreeNode, } from "./relation-plan.ts";
17
+ export { attachLateralRelations, attachRelations } from "./relation-loader.ts";
18
+ export type { RelationExecutor } from "./relation-loader.ts";
19
+ export { createWithNested, hasNestedWrites, updateWithNested } from "./nested-writes.ts";
20
+ export type { StatementRunner, WriteContext } from "./nested-writes.ts";
21
+ export { applyComputedFields, assertComputedManifest } from "./computed.ts";
22
+ export type { ClientComputedOptions } from "./computed.ts";
23
+ export { assertExtensionManifest, buildConnectHooks, buildExtensionOperatorMap, } from "./extensions.ts";
24
+ export type { ClientExtensionMount, ClientExtensionsOptions, ConnectHook, ExtensionMountContext, } from "./extensions.ts";
25
+ export { ViewResult, attachDefineView, createView } from "./views.ts";
26
+ export type { DefineViewFn, ViewClientShape, ViewDefinition, ViewModelDelegate } from "./views.ts";
27
+ export { createClient } from "./client.ts";
28
+ export type { BatchResult, ClientOptions, ClientRow, DynamicClient, ModelDelegate, QueryEvent, } from "./client.ts";
29
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,YAAY,EACV,eAAe,EACf,cAAc,EACd,WAAW,EACX,WAAW,EACX,kBAAkB,GACnB,MAAM,cAAc,CAAC;AAItB,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,GACb,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,iBAAiB,EACjB,aAAa,EACb,mBAAmB,EACnB,SAAS,EACT,SAAS,EACT,WAAW,GACZ,M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