@aburi/framework-trpc 0.0.0-stage → 0.1.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/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 kage1020
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,112 @@
1
- # Temporary Holding Version
1
+ # @aburi/framework-trpc
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ tRPC framework plugin for `@aburi/core`. Classifies the **server** side of
4
+ tRPC — the instance, routers, procedures, base procedures and middleware —
5
+ into `framework:trpc:*` extKinds, so they are Boundaries in the IR. The client
6
+ side, the calls that reach a procedure over the network, is
7
+ [`@aburi/effects-trpc`](../effects-trpc/README.md)'s.
8
+
9
+ Every shape is a `const` whose own declarator holds it:
10
+
11
+ | Source shape | `extKind` | `derivedBy` |
12
+ |---|---|---|
13
+ | `const t = initTRPC.create()`, `initTRPC.context<Context>().meta<Meta>().create({ … })` | `framework:trpc:instance` | `framework:trpc:instance:initTRPC.create` |
14
+ | `const appRouter = t.router({ … })`, `router({ … })`, `createTRPCRouter({ … })` | `framework:trpc:router` | `framework:trpc:router:t.router` |
15
+ | `const merged = t.mergeRouters(a, b)`, `mergeRouters(a, b)` | `framework:trpc:router` | `framework:trpc:router:t.mergeRouters` |
16
+ | `const byId = publicProcedure.input(schema).query(({ input }) => …)` | `framework:trpc:procedure` | `framework:trpc:procedure:publicProcedure.query` |
17
+ | `const create = protectedProcedure.mutation(…)`, `t.procedure.subscription(…)` | `framework:trpc:procedure` | `framework:trpc:procedure:protectedProcedure.mutation` |
18
+ | `const publicProcedure = t.procedure` | `framework:trpc:base-procedure` | `framework:trpc:base-procedure:t.procedure` |
19
+ | `const protectedProcedure = t.procedure.use(isAuthed)`, `protectedProcedure.use(isAdmin)` | `framework:trpc:base-procedure` | `framework:trpc:base-procedure:t.use` |
20
+ | `const isAuthed = t.middleware(({ ctx, next }) => …)`, `middleware(fn)` | `framework:trpc:middleware` | `framework:trpc:middleware:t.middleware` |
21
+
22
+ A procedure is a `query`, `mutation` or `subscription` handed its resolver — a
23
+ function, an async generator (tRPC v11's subscriptions), a name for one, or a
24
+ call that returns one (`withCache(listUsers)`) — on a chain built from a
25
+ procedure: one that reads `.procedure` straight off a plain name
26
+ (`t.procedure.query(…)`) or starts from a name that is `procedure` or ends in
27
+ `Procedure` (`publicProcedure`, `protectedProcedure`), which is how tRPC's
28
+ documentation and create-t3-app name their base procedures. The chain is what
29
+ tells `publicProcedure.query(resolve)` from `db.query(fn)` and from the client
30
+ call `client.user.byId.query({ id })`. A base procedure is the same chain ending
31
+ in `use`, `input`, `output`, `meta` or `concat` instead, or the bare
32
+ `t.procedure`. That bare read is taken only off a plain name and only in a file
33
+ that imports `@trpc/server`, the file that creates the instance: `procedure` is
34
+ a domain word as well, and `form.procedure` reads the same. The three procedure
35
+ kinds share one extKind, as an Express route's methods do, and `derivedBy` names
36
+ which one it is.
37
+
38
+ A router is `router` or `createTRPCRouter` handed one object literal, or
39
+ `mergeRouters` handed the routers it merges; another library's
40
+ `createRouter({ routes })` is not one. An alias of a factory
41
+ (`export const createTRPCRouter = t.router`) is not classified: it builds
42
+ nothing until it is called.
43
+
44
+ `derivedBy` names the call `<receiver>.<method>`, read off the syntax tree as
45
+ every framework plugin reads it: the method called and the name the receiver
46
+ chain starts from, through `as`, `satisfies`, `!`, parentheses and every call
47
+ on the way. So a chain wrapped over several lines, or with a comment in it,
48
+ gives the same entry, and `t.procedure.use(timing).query(fn)` is
49
+ `t.query`. The bare `t.procedure` is named the same way, `t.procedure`.
50
+
51
+ Confidence is `high` when the file imports `@trpc/server` or one of its
52
+ subpaths, type-only imports included, and `medium` otherwise. Most of the
53
+ names this plugin reads are tRPC's conventions rather than its exports
54
+ (`initTRPC` is the exception), and the usual layout keeps the import in one
55
+ file: create-t3-app's routers import
56
+ `createTRPCRouter` and `publicProcedure` from `~/server/api/trpc`, so their
57
+ routers and procedures are `medium`.
58
+
59
+ A procedure's resolver is its Symbol's body, so the calls, rules and effects
60
+ written in it are the procedure's: with
61
+ [`@aburi/effects-prisma`](../effects-prisma/README.md), a mutation whose
62
+ resolver calls `prisma.user.create(…)` carries `db.write`.
63
+
64
+ Not classified today:
65
+
66
+ - A procedure written inside a router's object literal
67
+ (`router({ byId: publicProcedure.query(…) })`). `@aburi/lang-typescript`
68
+ gives an object handed to a call no member Symbols, so there is no Symbol to
69
+ classify, and the resolver is in no Symbol either. The router itself is
70
+ classified. Declare the procedure as a `const` and name it in the router to
71
+ give it a Symbol.
72
+ - What is built on a base procedure whose name is neither `procedure` nor ends
73
+ in `Procedure` (`const base = t.procedure`, then `base.query(fn)` or
74
+ `base.use(x)`). `base` itself is classified, but the plugin reads one
75
+ declaration at a time, so it cannot see where `base` came from.
76
+ - The bare `t.procedure` in a file that does not import `@trpc/server`.
77
+ - A router or middleware factory under a name other than tRPC's
78
+ (`const makeRouter = t.router`, then `makeRouter({ … })`), for the same reason.
79
+ - `experimental_standaloneMiddleware`, `createCallerFactory(appRouter)` and
80
+ `appRouter.createCaller(ctx)`.
81
+ - A file that reaches `@trpc/server` only through CommonJS
82
+ (`const { initTRPC } = require("@trpc/server")`): the import list carries no
83
+ edge for a `require` call, so its shapes are `medium`.
84
+
85
+ Classified though not tRPC's: the receiver's name is all a declaration shows,
86
+ so another library's shapes under tRPC's names are read as tRPC's, at `medium`
87
+ in a file that does not import `@trpc/server`. A ts-rest contract
88
+ (`c.router({ getPost: … })`) and an oRPC router (`os.router({ ping })`) are
89
+ routers, `app.middleware(handler)` is a middleware, and a `query` on a name
90
+ ending in `Procedure` (`storedProcedure.query(sql)`) is a procedure.
91
+
92
+ ## Install
93
+
94
+ ```bash
95
+ pnpm add @aburi/framework-trpc
96
+ ```
97
+
98
+ ## Usage
99
+
100
+ ```ts
101
+ import { trpcFrameworkPlugin } from "@aburi/framework-trpc"
102
+ ```
103
+
104
+ The plugin's `provides.frameworks: ["trpc"]` matches `@aburi/core`'s Component
105
+ autodetect against a workspace `@trpc/server` npm dependency, and `aburi init`
106
+ writes `"framework-trpc"` into `aburi.json`'s `frameworks` array for one.
107
+
108
+ ## See also
109
+
110
+ - [`docs/design/lang-plugin.md`](../../docs/design/lang-plugin.md) — the framework `classifySymbol` contract this plugin implements.
111
+ - [`docs/design/extension-vocab.md`](../../docs/design/extension-vocab.md) — how framework `extKind` namespaces (`framework:trpc:*`) plug into the shared vocab.
112
+ - [`@aburi/effects-trpc`](../effects-trpc/README.md) — the client side of tRPC.
@@ -0,0 +1,26 @@
1
+ import { FrameworkClassifyContext, FrameworkManifest, FrameworkPlugin, ImportEdge, OpaqueAstNode, PluginContext, SymbolCandidate, SymbolClassification } from "@aburi/types";
2
+
3
+ //#region src/classify.d.ts
4
+ declare function classifyTrpcSymbol(symbol: SymbolCandidate<OpaqueAstNode>, ctx: FrameworkClassifyContext): SymbolClassification | null;
5
+ //#endregion
6
+ //#region src/ext-kinds.d.ts
7
+ declare const TRPC_EXT_KINDS: readonly ["framework:trpc:instance", "framework:trpc:router", "framework:trpc:procedure", "framework:trpc:base-procedure", "framework:trpc:middleware"];
8
+ type TrpcExtKind = (typeof TRPC_EXT_KINDS)[number];
9
+ declare const TRPC_DERIVED_BY_PREFIX = "framework:trpc";
10
+ //#endregion
11
+ //#region src/imports.d.ts
12
+ declare function hasTrpcServerImport(imports: readonly ImportEdge[]): boolean;
13
+ //#endregion
14
+ //#region src/manifest.d.ts
15
+ declare const frameworkTrpcManifest: FrameworkManifest;
16
+ //#endregion
17
+ //#region src/plugin.d.ts
18
+ declare class TrpcFrameworkPlugin implements FrameworkPlugin<OpaqueAstNode> {
19
+ readonly manifest: import("@aburi/types").FrameworkManifest;
20
+ init(_ctx: PluginContext): Promise<void>;
21
+ classifySymbol(symbol: SymbolCandidate<OpaqueAstNode>, ctx: FrameworkClassifyContext): SymbolClassification | null;
22
+ }
23
+ /** Singleton so `manifest` identity is stable for consumers comparing against the constant. */
24
+ declare const trpcFrameworkPlugin: TrpcFrameworkPlugin;
25
+ //#endregion
26
+ export { TRPC_DERIVED_BY_PREFIX, TRPC_EXT_KINDS, type TrpcExtKind, TrpcFrameworkPlugin, classifyTrpcSymbol, frameworkTrpcManifest, hasTrpcServerImport, trpcFrameworkPlugin };
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ import{asSyntaxNode as e,calleeName as t,declaratorValue as n,lastQnameSegment as r,receiverChain as i,unwrapValue as a,writtenChildren as o}from"@aburi/core";import{COMPUTED_TARGET_SEGMENT as s}from"@aburi/types";function c(e){if(e.type===`call_expression`){let n=t(e),r=e.childForFieldName(`function`);if(n===null||r===null)return null;let a=r.type===`member_expression`?r.childForFieldName(`object`):null,o=a===null?{path:[],root:n.name}:i(a);return{call:e,name:n.name,leaf:n.leaf,...o}}if(e.type===`member_expression`){let t=e.childForFieldName(`object`),n=e.childForFieldName(`property`)?.text??``;if(t===null||n.length===0)return null;let r=i(t);return{call:null,name:`${r.root}.${n}`,leaf:n,...r}}return null}const l=[`framework:trpc:instance`,`framework:trpc:router`,`framework:trpc:procedure`,`framework:trpc:base-procedure`,`framework:trpc:middleware`],u=`framework:trpc`,d=`@trpc/server`;function f(e){return e.some(({source:e})=>e===d||e.startsWith(`${d}/`))}const p=new Set([`router`,`createTRPCRouter`]),m=new Set([`query`,`mutation`,`subscription`]),h=new Set([`use`,`input`,`output`,`meta`,`concat`]),g=new Set([`arrow_function`,`function_expression`,`generator_function`,`identifier`,`member_expression`,`call_expression`]),_=/(^p|P)rocedure$/;function v(t,i){if(t.kind!==`const`)return null;let a=e(t.fullNode);if(a===null)return null;let o=n(a,r(t.name)),s=o===null?null:c(o),l=f(i.imports),d=s===null?null:y(s,l);return s===null||d===null?null:{extKind:`${u}:${d}`,derivedBy:`${u}:${d}:${s.name}`,confidence:l?`high`:`medium`}}function y(e,t){let{call:n,leaf:r}=e;if(n===null)return r===`procedure`&&e.path.length===0&&x(e.root)&&t?`base-procedure`:null;let i=S(n);if(r===`create`)return e.root===`initTRPC`?`instance`:null;if(p.has(r)){let[e,...t]=i;return e!==void 0&&t.length===0&&a(e).type===`object`?`router`:null}return r===`mergeRouters`?i.length>0?`router`:null:r===`middleware`?C(i)?`middleware`:null:b(e)?m.has(r)?C(i)?`procedure`:null:h.has(r)?`base-procedure`:null:null}function b(e){return e.path.at(-1)===`procedure`&&x(e.root)||_.test(e.root)}function x(e){return e!==`this`&&e!==s}function S(e){let t=e.childForFieldName(`arguments`);return t?.type===`arguments`?o(t):[]}function C(e){let[t,...n]=e;return t!==void 0&&n.length===0&&g.has(a(t).type)}const w={$schema:`https://aburi.kage1020.com/schema/aburi.plugin.v1.json`,name:`framework-trpc`,version:`0.0.0`,type:`framework`,engines:{aburi:`*`},provides:{effects:[],effectPrefixes:[],extKinds:[{id:`framework:trpc:instance`,baseKind:`const`,description:"The tRPC instance — a const initialised by `initTRPC.create(...)`, configured on the way or not (`initTRPC.context<C>().create()`)."},{id:`framework:trpc:router`,baseKind:`const`,description:"A tRPC router — a const initialised by `router({...})` or `createTRPCRouter({...})`, on the instance or not, or by `mergeRouters(...)`."},{id:`framework:trpc:procedure`,baseKind:`const`,description:"A tRPC procedure — a const initialised by a `query`, `mutation` or `subscription` handed its resolver, on a chain built from a procedure (`t.procedure`, or a name that is `procedure` or ends in `Procedure`)."},{id:`framework:trpc:base-procedure`,baseKind:`const`,description:"A reusable base procedure — a const initialised by `t.procedure`, or by `use`, `input`, `output`, `meta` or `concat` on a chain built from a procedure."},{id:`framework:trpc:middleware`,baseKind:`const`,description:"A tRPC middleware — a const initialised by `middleware(fn)`, on the instance or not."}],extKindPrefixes:[u],derivedByPrefixes:[u],frameworks:[`trpc`]}};var T=class{manifest=w;async init(e){}classifySymbol(e,t){return v(e,t)}};const E=new T;export{u as TRPC_DERIVED_BY_PREFIX,l as TRPC_EXT_KINDS,T as TrpcFrameworkPlugin,v as classifyTrpcSymbol,w as frameworkTrpcManifest,f as hasTrpcServerImport,E as trpcFrameworkPlugin};
package/package.json CHANGED
@@ -1,6 +1,52 @@
1
1
  {
2
2
  "name": "@aburi/framework-trpc",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "Aburi tRPC framework plugin: recognizes the server side of tRPC — the initTRPC instance, routers and merged routers, query / mutation / subscription procedures, base procedures and middleware — emitting framework:trpc:* extKinds",
5
+ "license": "Apache-2.0",
6
+ "author": "kage1020",
7
+ "homepage": "https://github.com/kage1020/Aburi/tree/main/packages/framework-trpc#readme",
8
+ "bugs": {
9
+ "url": "https://github.com/kage1020/Aburi/issues"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/kage1020/Aburi.git",
14
+ "directory": "packages/framework-trpc"
15
+ },
16
+ "type": "module",
17
+ "main": "./dist/index.mjs",
18
+ "types": "./dist/index.d.mts",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.mts",
22
+ "default": "./dist/index.mjs"
23
+ },
24
+ "./package.json": "./package.json"
25
+ },
26
+ "files": [
27
+ "dist",
28
+ "README.md"
29
+ ],
30
+ "sideEffects": false,
31
+ "publishConfig": {
32
+ "access": "public"
33
+ },
34
+ "dependencies": {
35
+ "@aburi/core": "0.6.0",
36
+ "@aburi/types": "0.6.0"
37
+ },
38
+ "devDependencies": {
39
+ "@types/node": "^26.0.1",
40
+ "tsdown": "^0.22.3",
41
+ "typescript": "^6.0.3",
42
+ "vitest": "^4.1.11",
43
+ "@aburi/lang-typescript": "0.6.0",
44
+ "@aburi/test-harness": "0.0.1",
45
+ "@aburi/test-support": "0.0.2"
46
+ },
47
+ "scripts": {
48
+ "build": "tsdown",
49
+ "typecheck": "tsc -p tsconfig.json --noEmit",
50
+ "test": "vitest run"
51
+ }
6
52
  }