gemi 0.237.0 → 0.237.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.
- package/dist/ai/index.js +172 -172
- package/dist/ai/index.js.map +4 -4
- package/dist/ai/store/DatabaseAgentStore.d.ts.map +1 -1
- package/dist/ai/testing/index.js +1 -1
- package/dist/ai/usageMeter.d.ts +11 -7
- package/dist/ai/usageMeter.d.ts.map +1 -1
- package/dist/app/index.js +1 -1
- package/dist/auth/UserProvider.d.ts +5 -22
- package/dist/auth/UserProvider.d.ts.map +1 -1
- package/dist/bun/plugin.js +1 -1
- package/dist/bun/preload.js +1 -1
- package/dist/{chunk-5nn0pgxg.js → chunk-1etmnz40.js} +2 -2
- package/dist/{chunk-5nn0pgxg.js.map → chunk-1etmnz40.js.map} +1 -1
- package/dist/{chunk-t4yx1jqb.js → chunk-2apm69wz.js} +1 -1
- package/dist/{chunk-fgnpyj44.js → chunk-2as2xfem.js} +2 -2
- package/dist/{chunk-fgnpyj44.js.map → chunk-2as2xfem.js.map} +1 -1
- package/dist/{chunk-qj2r0v7w.js → chunk-2fw9pm64.js} +2 -2
- package/dist/{chunk-qj2r0v7w.js.map → chunk-2fw9pm64.js.map} +1 -1
- package/dist/{chunk-0kjcd94c.js → chunk-34a5b9xt.js} +2 -2
- package/dist/{chunk-0kjcd94c.js.map → chunk-34a5b9xt.js.map} +1 -1
- package/dist/{chunk-5fxdjmgd.js → chunk-358krc4n.js} +2 -2
- package/dist/{chunk-5fxdjmgd.js.map → chunk-358krc4n.js.map} +1 -1
- package/dist/{chunk-5pbjc6tm.js → chunk-49kkapvr.js} +2 -2
- package/dist/{chunk-5pbjc6tm.js.map → chunk-49kkapvr.js.map} +1 -1
- package/dist/{chunk-rmwhvgvg.js → chunk-4pjv77s5.js} +2 -2
- package/dist/{chunk-rmwhvgvg.js.map → chunk-4pjv77s5.js.map} +1 -1
- package/dist/{chunk-g29wz7h7.js → chunk-4rs6w1gp.js} +2 -2
- package/dist/{chunk-g29wz7h7.js.map → chunk-4rs6w1gp.js.map} +1 -1
- package/dist/{chunk-7b4tsj9x.js → chunk-4wdc4q33.js} +2 -2
- package/dist/{chunk-7b4tsj9x.js.map → chunk-4wdc4q33.js.map} +1 -1
- package/dist/{chunk-k9devrb5.js → chunk-692nx054.js} +2 -2
- package/dist/{chunk-k9devrb5.js.map → chunk-692nx054.js.map} +1 -1
- package/dist/{chunk-dj5d9wcc.js → chunk-7qhqqf0q.js} +2 -2
- package/dist/{chunk-dj5d9wcc.js.map → chunk-7qhqqf0q.js.map} +1 -1
- package/dist/{chunk-ejf6sz1d.js → chunk-7ytazpjd.js} +1 -1
- package/dist/{chunk-9447c20x.js → chunk-80kga3p1.js} +1 -1
- package/dist/{chunk-89jc9yg9.js → chunk-88c8ck33.js} +3 -3
- package/dist/{chunk-89jc9yg9.js.map → chunk-88c8ck33.js.map} +1 -1
- package/dist/{chunk-dmzgw2d8.js → chunk-8adbpxpm.js} +2 -2
- package/dist/{chunk-dmzgw2d8.js.map → chunk-8adbpxpm.js.map} +1 -1
- package/dist/{chunk-n78b8pp5.js → chunk-8ccjtbm2.js} +27 -27
- package/dist/{chunk-n78b8pp5.js.map → chunk-8ccjtbm2.js.map} +3 -3
- package/dist/{chunk-07fy1618.js → chunk-8hfr1qwe.js} +2 -2
- package/dist/{chunk-07fy1618.js.map → chunk-8hfr1qwe.js.map} +1 -1
- package/dist/{chunk-p91yn1b8.js → chunk-8kp4rkd3.js} +2 -2
- package/dist/{chunk-p91yn1b8.js.map → chunk-8kp4rkd3.js.map} +1 -1
- package/dist/{chunk-5c538k7m.js → chunk-8nwfpxh0.js} +2 -2
- package/dist/{chunk-5c538k7m.js.map → chunk-8nwfpxh0.js.map} +1 -1
- package/dist/{chunk-yca8nznt.js → chunk-9779ngzq.js} +2 -2
- package/dist/{chunk-yca8nznt.js.map → chunk-9779ngzq.js.map} +1 -1
- package/dist/{chunk-7159w4qq.js → chunk-97t5t8jp.js} +3 -3
- package/dist/{chunk-7159w4qq.js.map → chunk-97t5t8jp.js.map} +1 -1
- package/dist/{chunk-yb7yw0cp.js → chunk-9wf36729.js} +1 -1
- package/dist/chunk-ab5xsxyx.js +13 -0
- package/dist/{chunk-nznkpf8r.js.map → chunk-ab5xsxyx.js.map} +3 -3
- package/dist/{chunk-gakdsme3.js → chunk-ajyfp09w.js} +2 -2
- package/dist/{chunk-gakdsme3.js.map → chunk-ajyfp09w.js.map} +1 -1
- package/dist/{chunk-185k67yf.js → chunk-bxby9c62.js} +2 -2
- package/dist/{chunk-185k67yf.js.map → chunk-bxby9c62.js.map} +1 -1
- package/dist/{chunk-2d757e1s.js → chunk-c8s4rmej.js} +2 -2
- package/dist/{chunk-2d757e1s.js.map → chunk-c8s4rmej.js.map} +1 -1
- package/dist/{chunk-c6zpn9yp.js → chunk-ca1qwsjj.js} +2 -2
- package/dist/{chunk-c6zpn9yp.js.map → chunk-ca1qwsjj.js.map} +1 -1
- package/dist/{chunk-fb0bazw9.js → chunk-cckfxk08.js} +2 -2
- package/dist/{chunk-fb0bazw9.js.map → chunk-cckfxk08.js.map} +1 -1
- package/dist/chunk-cwkf46bk.js +5 -0
- package/dist/{chunk-2mjtssv3.js.map → chunk-cwkf46bk.js.map} +1 -1
- package/dist/{chunk-q4b79hjb.js → chunk-d2jafhaf.js} +4 -4
- package/dist/{chunk-q4b79hjb.js.map → chunk-d2jafhaf.js.map} +1 -1
- package/dist/{chunk-a3s6cp49.js → chunk-d6p5gm30.js} +17 -17
- package/dist/{chunk-a3s6cp49.js.map → chunk-d6p5gm30.js.map} +4 -4
- package/dist/{chunk-krfz1rzm.js → chunk-dh1wbntq.js} +2 -2
- package/dist/{chunk-krfz1rzm.js.map → chunk-dh1wbntq.js.map} +1 -1
- package/dist/{chunk-b9gf8sqq.js → chunk-dt8bxq4c.js} +2 -2
- package/dist/{chunk-b9gf8sqq.js.map → chunk-dt8bxq4c.js.map} +1 -1
- package/dist/{chunk-vc7ny5zs.js → chunk-ea5fv4h9.js} +2 -2
- package/dist/{chunk-vc7ny5zs.js.map → chunk-ea5fv4h9.js.map} +1 -1
- package/dist/{chunk-gj4hg8xk.js → chunk-engdyem1.js} +2 -2
- package/dist/{chunk-gj4hg8xk.js.map → chunk-engdyem1.js.map} +1 -1
- package/dist/{chunk-3jr6d0cb.js → chunk-fhbre39m.js} +2 -2
- package/dist/{chunk-3jr6d0cb.js.map → chunk-fhbre39m.js.map} +1 -1
- package/dist/chunk-g6re0kkk.js +88 -0
- package/dist/{chunk-bcb1dwhb.js.map → chunk-g6re0kkk.js.map} +4 -4
- package/dist/{chunk-a9p3djqm.js → chunk-g7exgg3k.js} +2 -2
- package/dist/{chunk-a9p3djqm.js.map → chunk-g7exgg3k.js.map} +1 -1
- package/dist/{chunk-k2jxxdj1.js → chunk-gbgwtaqq.js} +1 -1
- package/dist/{chunk-jfqfvx3t.js → chunk-h2cvg5r5.js} +2 -2
- package/dist/{chunk-jfqfvx3t.js.map → chunk-h2cvg5r5.js.map} +1 -1
- package/dist/{chunk-3p4wdpag.js → chunk-hgwtg5zp.js} +2 -2
- package/dist/{chunk-3p4wdpag.js.map → chunk-hgwtg5zp.js.map} +1 -1
- package/dist/{chunk-9ey725pw.js → chunk-hk37x8mp.js} +1 -1
- package/dist/{chunk-96v1bwg4.js → chunk-j0bbh93g.js} +2 -2
- package/dist/{chunk-96v1bwg4.js.map → chunk-j0bbh93g.js.map} +1 -1
- package/dist/{chunk-ack021d9.js → chunk-j5r7vm8a.js} +2 -2
- package/dist/{chunk-ack021d9.js.map → chunk-j5r7vm8a.js.map} +1 -1
- package/dist/{chunk-xj3ebwrj.js → chunk-kbz5s9wb.js} +2 -2
- package/dist/{chunk-xj3ebwrj.js.map → chunk-kbz5s9wb.js.map} +1 -1
- package/dist/{chunk-fp6mxxkq.js → chunk-kgpqz8te.js} +2 -2
- package/dist/{chunk-fp6mxxkq.js.map → chunk-kgpqz8te.js.map} +1 -1
- package/dist/{chunk-t6xe3jr4.js → chunk-kvfg84am.js} +2 -2
- package/dist/{chunk-t6xe3jr4.js.map → chunk-kvfg84am.js.map} +1 -1
- package/dist/{chunk-tmpfcx0v.js → chunk-mhvg8nnb.js} +2 -2
- package/dist/{chunk-tmpfcx0v.js.map → chunk-mhvg8nnb.js.map} +1 -1
- package/dist/{chunk-z55c52fm.js → chunk-mn5xxg4q.js} +2 -2
- package/dist/{chunk-z55c52fm.js.map → chunk-mn5xxg4q.js.map} +1 -1
- package/dist/{chunk-vrp3zzz4.js → chunk-mt68n713.js} +2 -2
- package/dist/{chunk-vrp3zzz4.js.map → chunk-mt68n713.js.map} +1 -1
- package/dist/{chunk-fp31t0ey.js → chunk-mykr2v6g.js} +3 -3
- package/dist/{chunk-fp31t0ey.js.map → chunk-mykr2v6g.js.map} +1 -1
- package/dist/{chunk-8591j0cj.js → chunk-nxap8bmy.js} +2 -2
- package/dist/{chunk-8591j0cj.js.map → chunk-nxap8bmy.js.map} +1 -1
- package/dist/{chunk-mwe7hpbd.js → chunk-p7ae0rnf.js} +2 -2
- package/dist/{chunk-mwe7hpbd.js.map → chunk-p7ae0rnf.js.map} +1 -1
- package/dist/{chunk-va2p7e59.js → chunk-pb7n7vaq.js} +1 -1
- package/dist/{chunk-trbwk80g.js → chunk-pe4f30nw.js} +2 -2
- package/dist/{chunk-trbwk80g.js.map → chunk-pe4f30nw.js.map} +1 -1
- package/dist/{chunk-5kjnbmwp.js → chunk-prvncxxf.js} +3 -3
- package/dist/{chunk-5kjnbmwp.js.map → chunk-prvncxxf.js.map} +1 -1
- package/dist/{chunk-2h1ta6cv.js → chunk-q1grt110.js} +2 -2
- package/dist/{chunk-2h1ta6cv.js.map → chunk-q1grt110.js.map} +1 -1
- package/dist/{chunk-h6z5k6yh.js → chunk-s3fpkpdh.js} +2 -2
- package/dist/{chunk-h6z5k6yh.js.map → chunk-s3fpkpdh.js.map} +1 -1
- package/dist/{chunk-y9efbqmp.js → chunk-vf9jtq9h.js} +2 -2
- package/dist/{chunk-y9efbqmp.js.map → chunk-vf9jtq9h.js.map} +1 -1
- package/dist/{chunk-kpbm4mbc.js → chunk-vtf7tkef.js} +2 -2
- package/dist/{chunk-kpbm4mbc.js.map → chunk-vtf7tkef.js.map} +1 -1
- package/dist/{chunk-z0xmyrjb.js → chunk-wgpg670d.js} +1 -1
- package/dist/{chunk-vbmtyxr4.js → chunk-wj0q7tyn.js} +3 -3
- package/dist/{chunk-vbmtyxr4.js.map → chunk-wj0q7tyn.js.map} +1 -1
- package/dist/{chunk-sxtg2qha.js → chunk-wskms8nf.js} +1 -1
- package/dist/{chunk-2gj2nhve.js → chunk-wzng3k56.js} +2 -2
- package/dist/{chunk-2gj2nhve.js.map → chunk-wzng3k56.js.map} +1 -1
- package/dist/{chunk-x8pk6qqs.js → chunk-xe76d4v6.js} +2 -2
- package/dist/{chunk-x8pk6qqs.js.map → chunk-xe76d4v6.js.map} +1 -1
- package/dist/{chunk-jwh7t982.js → chunk-xm0fb17q.js} +3 -3
- package/dist/{chunk-jwh7t982.js.map → chunk-xm0fb17q.js.map} +1 -1
- package/dist/{chunk-pqaha4f1.js → chunk-xr8mcx1y.js} +2 -2
- package/dist/{chunk-pqaha4f1.js.map → chunk-xr8mcx1y.js.map} +1 -1
- package/dist/{chunk-w7rgnjt5.js → chunk-y73xy0zy.js} +2 -2
- package/dist/{chunk-w7rgnjt5.js.map → chunk-y73xy0zy.js.map} +1 -1
- package/dist/{chunk-fx45rbbn.js → chunk-ygfwbh8p.js} +2 -2
- package/dist/{chunk-fx45rbbn.js.map → chunk-ygfwbh8p.js.map} +1 -1
- package/dist/{chunk-bg0da5pd.js → chunk-zz0k1na4.js} +1 -1
- package/dist/config/index.js +1 -1
- package/dist/console/run.js +2 -2
- package/dist/console/run.js.map +1 -1
- package/dist/container/index.js +2 -2
- package/dist/container/index.js.map +1 -1
- package/dist/database/index.js +2 -2
- package/dist/database/index.js.map +1 -1
- package/dist/email/index.js +2 -2
- package/dist/email/index.js.map +1 -1
- package/dist/facades/DB.d.ts.map +1 -1
- package/dist/facades/index.js +1 -1
- package/dist/foundation/index.js +2 -2
- package/dist/foundation/index.js.map +1 -1
- package/dist/http/index.js +1 -1
- package/dist/i18n/dictionaryRuntime.js +2 -2
- package/dist/i18n/dictionaryRuntime.js.map +1 -1
- package/dist/i18n/index.js +2 -2
- package/dist/i18n/index.js.map +1 -1
- package/dist/kernel/index.js +2 -2
- package/dist/kernel/index.js.map +1 -1
- package/dist/orm/Model.d.ts.map +1 -1
- package/dist/orm/context.d.ts +50 -0
- package/dist/orm/context.d.ts.map +1 -1
- package/dist/orm/index.js +3 -3
- package/dist/orm/index.js.map +3 -3
- package/dist/probe/index.js +2 -2
- package/dist/probe/index.js.map +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/index.js.map +1 -1
- package/dist/services/index.js +2 -2
- package/dist/services/index.js.map +1 -1
- package/dist/services/lock/DatabaseLockStore.d.ts.map +1 -1
- package/dist/services/queue/work.js +2 -2
- package/dist/services/queue/work.js.map +1 -1
- package/dist/stats/route-table.js +1 -1
- package/dist/support/index.js +2 -2
- package/dist/support/index.js.map +1 -1
- package/dist/vitest/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2mjtssv3.js +0 -5
- package/dist/chunk-bcb1dwhb.js +0 -88
- package/dist/chunk-nznkpf8r.js +0 -9
- /package/dist/{chunk-t4yx1jqb.js.map → chunk-2apm69wz.js.map} +0 -0
- /package/dist/{chunk-ejf6sz1d.js.map → chunk-7ytazpjd.js.map} +0 -0
- /package/dist/{chunk-9447c20x.js.map → chunk-80kga3p1.js.map} +0 -0
- /package/dist/{chunk-yb7yw0cp.js.map → chunk-9wf36729.js.map} +0 -0
- /package/dist/{chunk-k2jxxdj1.js.map → chunk-gbgwtaqq.js.map} +0 -0
- /package/dist/{chunk-9ey725pw.js.map → chunk-hk37x8mp.js.map} +0 -0
- /package/dist/{chunk-va2p7e59.js.map → chunk-pb7n7vaq.js.map} +0 -0
- /package/dist/{chunk-z0xmyrjb.js.map → chunk-wgpg670d.js.map} +0 -0
- /package/dist/{chunk-sxtg2qha.js.map → chunk-wskms8nf.js.map} +0 -0
- /package/dist/{chunk-bg0da5pd.js.map → chunk-zz0k1na4.js.map} +0 -0
package/dist/kernel/index.js.map
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
"import { McpHttpServer } from \"../services/mcp/http/McpHttpServer\";\nimport { Application } from \"../foundation/Application\";\nimport type { ServiceProviderConstructor, ShutdownReport } from \"../foundation/Application\";\nimport type { ServiceToken } from \"../container/Container\";\nimport type { ConfigItems } from \"../support/Repository\";\nimport type { Service, ServiceConstructor } from \"../support/Service\";\nimport { registerModels } from \"../orm/registration\";\nimport { registeredNames } from \"../orm/registry\";\nimport { Scheduler } from \"../services/cron/Scheduler\";\nimport { QueueManager } from \"../services/queue/QueueManager\";\nimport { startClaimingIfServing } from \"../services/queue/QueueServiceProvider\";\nimport { ApiRouteDispatcher } from \"../services/router/ApiRouteDispatcher\";\nimport { ViewRouteDispatcher } from \"../services/router/ViewRouteDispatcher\";\nimport { DomainRouter } from \"../services/router/DomainRouter\";\nimport { runGlobalMiddleware } from \"../services/router/globalMiddleware\";\nimport { SocketHub } from \"../services/broadcast/SocketHub\";\nimport { kernelContext } from \"./context\";\nimport { frameworkProviders } from \"./providers\";\n\n/**\n * The app's entry point into the framework. A Kernel subclass declares what the\n * app adds — its `config` slices and any extra `providers` — and everything\n * else lives in the Application container it owns.\n */\nexport class Kernel {\n /**\n * App-level config, merged over the framework defaults. Each key is a config\n * slice: `{ mail: { ... }, route: { ... } }`, normally the modules under\n * `app/config`.\n */\n protected config: ConfigItems = {};\n\n /**\n * App-level providers, registered after the framework's own so they can\n * rebind anything the framework bound.\n */\n protected providers: ServiceProviderConstructor[] = [];\n\n /**\n * The app's own singleton services. Each is constructed during the\n * synchronous boot phase and its `boot()` awaited during the asynchronous\n * one, in the order listed — so a service whose `boot()` depends on another\n * goes after it.\n *\n * An entry is either the class itself or a configured instance from\n * `Service.with({ ... })`. Listing is explicit rather than discovered because\n * the order is load-bearing here, and because a service is always imported by\n * whatever injects it — there is no file the import graph would miss.\n */\n protected services: Array<ServiceConstructor | Service> = [];\n\n private serviceInstances: Service[] = [];\n private serviceTokens = new Set<string>();\n private servicesBooted = false;\n\n /**\n * The modules holding the app's model classes — normally\n * `[generated, models]`, the generated namespace and the barrel of subclasses\n * written over it. Every model class they export is registered under the name\n * its schema carries, later modules winning, and the whole set is audited\n * before anything else boots.\n *\n * ### Why this is a Kernel field and not a line in a file somewhere\n *\n * Registration used to be `register(\"User\", User)` next to each subclass, and\n * the failure mode of forgetting it is an authorization hole that nothing\n * reports: a relation read resolves its target by name, so an unregistered\n * policied subclass leaves the generated base owning the name and every\n * nested `include` of that model comes back unscoped. No error at the root\n * either, because `$exec`'s divergence guard begins `registered !== this` and\n * the base it is running on *is* the registered one. A model only ever read\n * through an include — a membership, a pivot, the kind that carries a tenant\n * scope — never trips anything.\n *\n * Listing the modules here says it once, in the same place the app already\n * declares its config slices and providers, and turns the mistake into a\n * failure to boot rather than a quiet cross-tenant read.\n *\n * It sees the modules it is given, so a model class in a file that no barrel\n * re-exports is still invisible. That is the residual, and it is a smaller\n * one: a barrel is a place to notice an omission, and thirteen `register`\n * lines scattered across thirteen files is not.\n */\n protected models: Array<Record<string, unknown>> = [];\n\n readonly app = new Application();\n\n /**\n * Phase one, synchronous: every provider is constructed and its `register()`\n * runs. Only bindings are recorded here — no service is instantiated, so this\n * is safe to call from a synchronous constructor (`new App({ kernel })`).\n * Phase two is `waitForBoot()`.\n */\n boot() {\n // Before the container, deliberately. This throws on a model whose policies\n // would be skipped, and the useful moment for that is the one where nothing\n // has been constructed and no request can be in flight.\n if (this.models.length > 0) registerModels(...this.models);\n else warnIfModelsAreRegisteredButUndeclared();\n\n this.app.config.merge(this.config);\n Application.setInstance(this.app);\n this.app.registerMany([...frameworkProviders, ...this.providers]);\n this.registerServices();\n }\n\n /**\n * Constructs every listed service and binds it into the container. Runs after\n * the providers have registered, so a provider's `boot()` can `inject()` one;\n * a `Service` constructor does no I/O, so doing this synchronously costs\n * nothing beyond the field initializers.\n */\n private registerServices() {\n // What a previous pass bound, so re-running this on the same kernel is not\n // mistaken for a collision with something else.\n const ours = this.serviceTokens;\n\n this.serviceInstances = [];\n this.serviceTokens = new Set();\n this.servicesBooted = false;\n\n const owners = new Map<string, string>();\n\n for (const declaration of this.services) {\n const instance =\n typeof declaration === \"function\" ? new declaration() : declaration;\n const ctor = instance.constructor as ServiceConstructor;\n\n if (!ctor.token) {\n throw new Error(\n `Service [${ctor.name}] is listed in \\`services\\` but does not declare a \\`static token\\`.`,\n );\n }\n\n // Two services under one token is the failure this refuses to have\n // silently: the second would replace the first in the container, and\n // every `inject()` written against either would hand back whichever was\n // listed last.\n const owner = owners.get(ctor.token);\n if (owner) {\n throw new Error(\n `Services [${owner}] and [${ctor.name}] both declare the token \"${ctor.token}\". Tokens are the container's keys, so they must be unique.`,\n );\n }\n owners.set(ctor.token, ctor.name);\n\n // The same failure one level out. `Container.instance()` writes into\n // `instances`, which `make()` consults before `bindings`, so a token that\n // is already spoken for is not shared with its owner — it replaces it, for\n // every `app()` and `inject()` in the process. An app service that named\n // itself \"mail\" would leave `Mail.send()` resolving to an object with no\n // `send`, and the boot that caused it would report nothing. Providers have\n // all registered by now, so anything bound here belongs to somebody else.\n const token = ctor as unknown as ServiceToken<Service>;\n if (!ours.has(ctor.token) && this.app.bound(token)) {\n throw new Error(\n `Service [${ctor.name}] declares the token \"${ctor.token}\", which is already bound in the container by the framework or a provider. Binding it would replace that service everywhere, so pick a token nothing else owns.`,\n );\n }\n\n this.app.instance(token, instance);\n this.serviceInstances.push(instance);\n this.serviceTokens.add(ctor.token);\n }\n this.app.setShutdownHooks(\n this.serviceInstances.map((service) => ({\n name: `${service.constructor.name}.onShutdown`,\n shutdown: (options) => service.onShutdown(options),\n })),\n );\n }\n\n /**\n * Phase two, asynchronous: every provider's `boot()` runs, in registration\n * order, after all of them have registered. Idempotent.\n */\n async waitForBoot() {\n await this.app.boot();\n await this.bootServices();\n // Last, once every job — queued listeners included — is registered.\n startClaimingIfServing(this.app);\n }\n\n /**\n * Phase two for services, after every provider's `boot()` — so a service may\n * use the facades and anything else a provider owns. Idempotent, like the\n * provider phase it follows.\n */\n private async bootServices() {\n if (this.servicesBooted) {\n return;\n }\n for (const service of this.serviceInstances) {\n await service.boot();\n }\n this.servicesBooted = true;\n }\n\n /**\n * Every provider's `shutdown()`, in reverse registration order, inside the\n * application context — so a hook may use the facades, as a cron tick or a\n * request would. See `Application.shutdown` for the deadline and the\n * report. Idempotent.\n */\n shutdown(options?: { timeoutMs?: number }): Promise<ShutdownReport> {\n return this.run(() => this.app.shutdown(options));\n }\n\n run<T>(cb: () => T) {\n return kernelContext.run(this.app, cb);\n }\n\n /**\n * Resolve a service by token. Callers outside this module should prefer the\n * named accessors below or `app()`; this exists for tooling that holds a\n * Kernel but no ambient context.\n */\n resolve<T>(token: ServiceToken<T>): T {\n return this.app.make(token);\n }\n\n // Named accessors. `app/App.ts` goes through these rather than importing the\n // service classes itself — see the note in that file about the two copies of\n // gemi that coexist at build time.\n apiRoutes(): ApiRouteDispatcher {\n return this.app.make(ApiRouteDispatcher);\n }\n\n viewRoutes(): ViewRouteDispatcher {\n return this.app.make(ViewRouteDispatcher);\n }\n\n domains(): DomainRouter {\n return this.app.make(DomainRouter);\n }\n\n queue(): QueueManager {\n return this.app.make(QueueManager);\n }\n\n /** The MCP endpoint, or `null` when `route.mcp.remote` is not enabled. */\n mcpHttp(): McpHttpServer | null {\n return this.app.config.get(\"route.mcp.remote.enabled\") === true\n ? this.app.make(McpHttpServer)\n : null;\n }\n\n /**\n * The broadcast WebSocket endpoint, or `null` when the app declares no\n * `route.channels` (nothing could be subscribed to, so nothing is upgraded).\n */\n sockets(): SocketHub | null {\n return this.app.config.get(\"route.channels\") ? this.app.make(SocketHub) : null;\n }\n\n /** The `global` middleware list for one request. Call it inside `run`. */\n globalMiddleware(req: Request) {\n return runGlobalMiddleware(req);\n }\n\n destroy() {\n // Only touch services that were actually resolved — resolving one here\n // would construct it purely to tear it down.\n if (this.app.resolved(Scheduler)) {\n this.app.make(Scheduler).stop();\n }\n\n this.app.flush();\n\n if (Application.getInstance() === this.app) {\n Application.setInstance(undefined);\n }\n\n kernelContext.disable();\n }\n}\n\n/**\n * Says something to an application that has models and has not declared them.\n *\n * Without this the fix for #316 defaults to off. `models` is `[]`, `boot()`\n * no-ops, and an app upgrading from 0.48 is in exactly the state the issue\n * describes until somebody edits their Kernel by hand — while the only place\n * that says to is the **Setup** section of `docs/orm.md`, which an existing app\n * read once and will not read again. #316 was filed by an app mid-migration\n * with a 79-model schema, which is precisely the reader who never sees it.\n *\n * The condition is what makes this worth printing. A populated registry with an\n * empty `models` means the generated `index.ts` was imported and its bases are\n * what every nested read resolves to — so if any policy lives on a subclass, it\n * is being skipped inside includes right now. A Kernel with no ORM at all has\n * an empty registry and hears nothing.\n *\n * Development only, and a warning rather than a throw: an app in this state is\n * running today, and turning a working deploy into a failure to start over an\n * arrangement that *might* be fine is not a patch-level thing to do. The\n * failure it points at is silent, so the fix for it has to be noisy somewhere,\n * and the terminal an author is already looking at is the cheapest somewhere\n * there is.\n */\nfunction warnIfModelsAreRegisteredButUndeclared(): void {\n if (process.env.NODE_ENV === \"production\") return;\n\n const registered = registeredNames();\n if (registered.length === 0) return;\n\n console.warn(\n `[gemi] ${registered.length} model${registered.length === 1 ? \" is\" : \"s are\"} ` +\n `registered, but Kernel.models is empty.\\n` +\n ` Nested relation reads resolve a model by name, so a policy on a ` +\n `subclass that does not own its\\n` +\n ` name is skipped inside every include — scoped at the root, ` +\n `unscoped in an include, with nothing\\n` +\n ` to notice it. Declaring the modules registers each class under ` +\n `its own name and audits the set:\\n\\n` +\n ` import * as generated from \"../models/generated\"\\n` +\n ` import * as models from \"../models\"\\n\\n` +\n ` export default class extends Kernel {\\n` +\n ` models = [generated, models]\\n` +\n ` }\\n\\n` +\n ` See docs/orm.md#your-model-class. Development only; this never `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AK,IAAI,KAAK,CAAS,EAAE,KAAK,EAKhC,GAFA,KAAK,IAAI,MAAM,EAEX,EAAY,YAAY,IAAM,KAAK,IACrC,EAAY,YAAY,MAAS,EAGnC,EAAc,QAAQ,EAE1B,CAyBA,SAAS,CAAsC,EAAS,CACtD,GAAI,mBAAyB,aAAc,OAE3C,IAAM,EAAa,EAAgB,EACnC,GAAI,EAAW,SAAW,EAAG,OAE7B,QAAQ,KACN,UAAU,EAAW,eAAe,EAAW,SAAW,EAAI,MAAQ;AAAA;AAAA,EAIpE,2EACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6FAUJ",
|
|
9
|
-
"debugId": "
|
|
9
|
+
"debugId": "7F3A1BDB9E160FD964756E2164756E21",
|
|
10
10
|
"names": []
|
|
11
11
|
}
|
package/dist/orm/Model.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Model.d.ts","sourceRoot":"","sources":["../../orm/Model.ts"],"names":[],"mappings":"AAKA,OAAO,EASL,KAAK,WAAW,EAIjB,MAAM,WAAW,CAAC;AAoBnB,OAAO,EAOL,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACvB,MAAM,iBAAiB,CAAC;AAWzB,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,QAAQ,CAAC;AAChB,OAAO,EAcL,KAAK,WAAW,EAEjB,MAAM,UAAU,CAAC;AASlB,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"Model.d.ts","sourceRoot":"","sources":["../../orm/Model.ts"],"names":[],"mappings":"AAKA,OAAO,EASL,KAAK,WAAW,EAIjB,MAAM,WAAW,CAAC;AAoBnB,OAAO,EAOL,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACvB,MAAM,i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AC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,GACpC,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAY7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCG;WACU,IAAI,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;IAkG7D;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG;IA0B7B;;;OAGG;IACH,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;IAIxB,MAAM,CAAC,YAAY,IAAI,WAAW;IAMlC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4DG;WAMU,WAAW,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAY7D;;;;;;;;;;;;;;;;;;;;;;OAsBG;WACU,KAAK,CAChB,EAAE,EAAE,SAAS,EACb,IAAI,GAAE,GAAQ,EACd,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,OAAO,CAAC;mBAYE,QAAQ;IAuxB7B;;;;;OAKG;IACH,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,OAAO;CAGzD"}
|
package/dist/orm/context.d.ts
CHANGED
|
@@ -433,6 +433,56 @@ export declare function withTransaction<T>(pool: SQL, fn: (tx: TransactionSQL) =
|
|
|
433
433
|
* (`SET TRANSACTION READ ONLY`).
|
|
434
434
|
*/
|
|
435
435
|
deferSettings?: boolean;
|
|
436
|
+
/**
|
|
437
|
+
* The connection's dialect. On `"sqlite"` an outermost transaction
|
|
438
|
+
* queues behind the one already open on the same pool (#1362); see
|
|
439
|
+
* `queuedOnSqlite`.
|
|
440
|
+
*/
|
|
441
|
+
dialect?: string;
|
|
442
|
+
}): Promise<T>;
|
|
443
|
+
/**
|
|
444
|
+
* A transaction on a SQLite pool waited, in the queue, for one it is itself
|
|
445
|
+
* inside (#1362). It would wait forever: the open transaction can't commit
|
|
446
|
+
* until this one, which it is waiting on, has run.
|
|
447
|
+
*
|
|
448
|
+
* Thrown, rather than hung, when a transaction that isn't nested through the
|
|
449
|
+
* ORM's scope starts from inside an open one on the same connection, and is
|
|
450
|
+
* still waiting on it 5 seconds later: a raw
|
|
451
|
+
* `sql.begin` (a store's), or code that deliberately left the transaction's
|
|
452
|
+
* ORM scope while still awaited by it (an in-process API call or channel
|
|
453
|
+
* message, `ormContext.exit`). Run that work after the commit
|
|
454
|
+
* (`afterCommit`), or inside the transaction, where it becomes a savepoint.
|
|
455
|
+
*/
|
|
456
|
+
export declare class TransactionQueueDeadlockError extends Error {
|
|
457
|
+
constructor();
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* `begin` once the transactions queued on `pool` before it have let it go
|
|
461
|
+
* (#1362). Exported for the stores that open their own transactions on an
|
|
462
|
+
* app connection, so every transaction on the pool takes the same turns.
|
|
463
|
+
*
|
|
464
|
+
* `release` lets the next one go. The ORM calls it first thing after COMMIT,
|
|
465
|
+
* before the after-commit callbacks: `begin` resolves only after those have
|
|
466
|
+
* run, and one that opened a transaction would otherwise wait on the very
|
|
467
|
+
* transaction that waits on it. Settling lets it go too, so a caller that
|
|
468
|
+
* ignores `release` (a raw `sql.begin`, whose commit is its settle) holds the
|
|
469
|
+
* queue until its promise settles, including any work it does after its own
|
|
470
|
+
* commit. `begin` must not queue on the same pool again from inside (it
|
|
471
|
+
* would wait for itself; see below).
|
|
472
|
+
*
|
|
473
|
+
* Savepoints never come here: they run inside the open transaction.
|
|
474
|
+
*
|
|
475
|
+
* A transaction queued from inside the one holding the pool (its async
|
|
476
|
+
* context says so) is only a suspected deadlock: async context is inherited
|
|
477
|
+
* by work the transaction never waits for too (a `setTimeout`, an un-awaited
|
|
478
|
+
* call), which just waits its turn. So it queues like any other, and is
|
|
479
|
+
* rejected with `TransactionQueueDeadlockError` only if, after 5 seconds, it
|
|
480
|
+
* is still waiting on a transaction it is inside. In development any
|
|
481
|
+
* transaction still waiting then warns (`slowTransactionThreshold: false`
|
|
482
|
+
* turns the warning off).
|
|
483
|
+
*/
|
|
484
|
+
export declare function queuedOnSqlite<T>(pool: SQL, begin: (release: () => void) => Promise<T>, options?: {
|
|
485
|
+
slowTransactionThreshold?: number | false;
|
|
436
486
|
}): Promise<T>;
|
|
437
487
|
/** The value a setting can be given. `null` sets it to the empty string. */
|
|
438
488
|
export type SessionSettingValue = string | number | boolean | bigint | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../orm/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAOrD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,QAAQ;IACvB;;;;;OAKG;IACH,EAAE,CAAC,EAAE,cAAc,CAAC;IACpB,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;;;;;;;;;;OAgBG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,CAAC;IAC1B;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,WAAW,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACpC;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;IACrC;;;;;;;;;;;;OAYG;IACH,eAAe,CAAC,EAAE;QAAE,KAAK,E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